jeopi-stats 16.7.12 → 16.7.14
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 +109 -109
- package/package.json +4 -4
package/dist/client/index.js
CHANGED
|
@@ -1,76 +1,76 @@
|
|
|
1
|
-
var tV=Object.create;var{getPrototypeOf:eV,defineProperty:zR,getOwnPropertyNames:$O}=Object;var ZO=Object.prototype.hasOwnProperty;function QO(Q){return this[Q]}var JO,GO,t=(Q,J,X)=>{var q=Q!=null&&typeof Q==="object";if(q){var N=J?JO??=new WeakMap:GO??=new WeakMap,K=N.get(Q);if(K)return K}X=Q!=null?tV(eV(Q)):{};let H=J||!Q||!Q.__esModule?zR(X,"default",{value:Q,enumerable:!0}):X;for(let M of $O(Q))if(!ZO.call(H,M))zR(H,M,{get:QO.bind(Q,M),enumerable:!0});if(q)N.set(Q,H);return H};var C2=(Q,J)=>()=>(J||Q((J={exports:{}}).exports,J),J.exports);var uT=C2((FS)=>{(function(){function Q(){if(s=!1,o){var l=FS.unstable_now();K0=l;var X0=!0;try{$:{h=!1,p&&(p=!1,$0(q0),q0=-1),D=!0;var B0=V;try{Z:{K(l);for(O=X(L);O!==null&&!(O.expirationTime>l&&M());){var r0=O.callback;if(typeof r0==="function"){O.callback=null,V=O.priorityLevel;var u0=r0(O.expirationTime<=l);if(l=FS.unstable_now(),typeof u0==="function"){O.callback=u0,K(l),X0=!0;break Z}O===X(L)&&q(L),K(l)}else q(L);O=X(L)}if(O!==null)X0=!0;else{var v=X(I);v!==null&&F(H,v.startTime-l),X0=!1}}break $}finally{O=null,V=B0,D=!1}X0=void 0}}finally{X0?P0():o=!1}}}function J(l,X0){var B0=l.length;l.push(X0);$:for(;0<B0;){var r0=B0-1>>>1,u0=l[r0];if(0<N(u0,X0))l[r0]=X0,l[B0]=u0,B0=r0;else break $}}function X(l){return l.length===0?null:l[0]}function q(l){if(l.length===0)return null;var X0=l[0],B0=l.pop();if(B0!==X0){l[0]=B0;$:for(var r0=0,u0=l.length,v=u0>>>1;r0<v;){var i=2*(r0+1)-1,H0=l[i],F0=i+1,x0=l[F0];if(0>N(H0,B0))F0<u0&&0>N(x0,H0)?(l[r0]=x0,l[F0]=B0,r0=F0):(l[r0]=H0,l[i]=B0,r0=i);else if(F0<u0&&0>N(x0,B0))l[r0]=x0,l[F0]=B0,r0=F0;else break $}}return X0}function N(l,X0){var B0=l.sortIndex-X0.sortIndex;return B0!==0?B0:l.id-X0.id}function K(l){for(var X0=X(I);X0!==null;){if(X0.callback===null)q(I);else if(X0.startTime<=l)q(I),X0.sortIndex=X0.expirationTime,J(L,X0);else break;X0=X(I)}}function H(l){if(p=!1,K(l),!h)if(X(L)!==null)h=!0,o||(o=!0,P0());else{var X0=X(I);X0!==null&&F(H,X0.startTime-l)}}function M(){return s?!0:FS.unstable_now()-K0<d?!1:!0}function F(l,X0){q0=n(function(){l(FS.unstable_now())},X0)}if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart==="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error()),FS.unstable_now=void 0,typeof performance==="object"&&typeof performance.now==="function"){var w=performance;FS.unstable_now=function(){return w.now()}}else{var z=Date,T=z.now();FS.unstable_now=function(){return z.now()-T}}var L=[],I=[],E=1,O=null,V=3,D=!1,h=!1,p=!1,s=!1,n=typeof setTimeout==="function"?setTimeout:null,$0=typeof clearTimeout==="function"?clearTimeout:null,a=typeof setImmediate<"u"?setImmediate:null,o=!1,q0=-1,d=5,K0=-1;if(typeof a==="function")var P0=function(){a(Q)};else if(typeof MessageChannel<"u"){var C0=new MessageChannel,D0=C0.port2;C0.port1.onmessage=Q,P0=function(){D0.postMessage(null)}}else P0=function(){n(Q,0)};FS.unstable_IdlePriority=5,FS.unstable_ImmediatePriority=1,FS.unstable_LowPriority=4,FS.unstable_NormalPriority=3,FS.unstable_Profiling=null,FS.unstable_UserBlockingPriority=2,FS.unstable_cancelCallback=function(l){l.callback=null},FS.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},FS.unstable_getCurrentPriorityLevel=function(){return V},FS.unstable_next=function(l){switch(V){case 1:case 2:case 3:var X0=3;break;default:X0=V}var B0=V;V=X0;try{return l()}finally{V=B0}},FS.unstable_requestPaint=function(){s=!0},FS.unstable_runWithPriority=function(l,X0){switch(l){case 1:case 2:case 3:case 4:case 5:break;default:l=3}var B0=V;V=l;try{return X0()}finally{V=B0}},FS.unstable_scheduleCallback=function(l,X0,B0){var r0=FS.unstable_now();switch(typeof B0==="object"&&B0!==null?(B0=B0.delay,B0=typeof B0==="number"&&0<B0?r0+B0:r0):B0=r0,l){case 1:var u0=-1;break;case 2:u0=250;break;case 5:u0=1073741823;break;case 4:u0=1e4;break;default:u0=5000}return u0=B0+u0,l={id:E++,callback:X0,priorityLevel:l,startTime:B0,expirationTime:u0,sortIndex:-1},B0>r0?(l.sortIndex=B0,J(I,l),X(L)===null&&l===X(I)&&(p?($0(q0),q0=-1):p=!0,F(H,B0-r0))):(l.sortIndex=u0,J(L,l),h||D||(h=!0,o||(o=!0,P0()))),l},FS.unstable_shouldYield=M,FS.unstable_wrapCallback=function(l){var X0=V;return function(){var B0=V;V=X0;try{return l.apply(this,arguments)}finally{V=B0}}},typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop==="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()});var I1=C2((WS,i3)=>{(function(){function Q(_,y){Object.defineProperty(q.prototype,_,{get:function(){console.warn("%s(...) is deprecated in plain JavaScript React classes. %s",y[0],y[1])}})}function J(_){if(_===null||typeof _!=="object")return null;return _=ZJ&&_[ZJ]||_["@@iterator"],typeof _==="function"?_:null}function X(_,y){_=(_=_.constructor)&&(_.displayName||_.name)||"ReactClass";var r=_+"."+y;G0[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,_),G0[r]=!0)}function q(_,y,r){this.props=_,this.context=y,this.refs=v8,this.updater=r||i9}function N(){}function K(_,y,r){this.props=_,this.context=y,this.refs=v8,this.updater=r||i9}function H(){}function M(_){return""+_}function F(_){try{M(_);var y=!1}catch(Y0){y=!0}if(y){y=console;var r=y.error,Z0=typeof Symbol==="function"&&Symbol.toStringTag&&_[Symbol.toStringTag]||_.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),M(_)}}function w(_){if(_==null)return null;if(typeof _==="function")return _.$$typeof===V$?null:_.displayName||_.name||null;if(typeof _==="string")return _;switch(_){case u0:return"Fragment";case i:return"Profiler";case v:return"StrictMode";case y1:return"Suspense";case v0:return"SuspenseList";case r6: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 r0:return"Portal";case F0:return _.displayName||"Context";case H0:return(_._context.displayName||"Context")+".Consumer";case x0:var y=_.render;return _=_.displayName,_||(_=y.displayName||y.name||"",_=_!==""?"ForwardRef("+_+")":"ForwardRef"),_;case p1:return y=_.displayName||null,y!==null?y:w(_.type)||"Memo";case P5:y=_._payload,_=_._init;try{return w(_(y))}catch(r){}}return null}function z(_){if(_===u0)return"<>";if(typeof _==="object"&&_!==null&&_.$$typeof===P5)return"<...>";try{var y=w(_);return y?"<"+y+">":"<...>"}catch(r){return"<...>"}}function T(){var _=k0.A;return _===null?null:_.getOwner()}function L(){return Error("react-stack-top-frame")}function I(_){if(a9.call(_,"key")){var y=Object.getOwnPropertyDescriptor(_,"key").get;if(y&&y.isReactWarning)return!1}return _.key!==void 0}function E(_,y){function r(){QJ||(QJ=!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(_,"key",{get:r,configurable:!0})}function O(){var _=w(this.type);return m2[_]||(m2[_]=!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.")),_=this.props.ref,_!==void 0?_:null}function V(_,y,r,Z0,Y0,j0){var S0=r.ref;return _={$$typeof:B0,type:_,key:y,props:r,_owner:Z0},(S0!==void 0?S0:null)!==null?Object.defineProperty(_,"ref",{enumerable:!1,get:O}):Object.defineProperty(_,"ref",{enumerable:!1,value:null}),_._store={},Object.defineProperty(_._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(_,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(_,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:Y0}),Object.defineProperty(_,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:j0}),Object.freeze&&(Object.freeze(_.props),Object.freeze(_)),_}function D(_,y){return y=V(_.type,y,_.props,_._owner,_._debugStack,_._debugTask),_._store&&(y._store.validated=_._store.validated),y}function h(_){p(_)?_._store&&(_._store.validated=1):typeof _==="object"&&_!==null&&_.$$typeof===P5&&(_._payload.status==="fulfilled"?p(_._payload.value)&&_._payload.value._store&&(_._payload.value._store.validated=1):_._store&&(_._store.validated=1))}function p(_){return typeof _==="object"&&_!==null&&_.$$typeof===B0}function s(_){var y={"=":"=0",":":"=2"};return"$"+_.replace(/[=:]/g,function(r){return y[r]})}function n(_,y){return typeof _==="object"&&_!==null&&_.key!=null?(F(_.key),s(""+_.key)):y.toString(36)}function $0(_){switch(_.status){case"fulfilled":return _.value;case"rejected":throw _.reason;default:switch(typeof _.status==="string"?_.then(H,H):(_.status="pending",_.then(function(y){_.status==="pending"&&(_.status="fulfilled",_.value=y)},function(y){_.status==="pending"&&(_.status="rejected",_.reason=y)})),_.status){case"fulfilled":return _.value;case"rejected":throw _.reason}}throw _}function a(_,y,r,Z0,Y0){var j0=typeof _;if(j0==="undefined"||j0==="boolean")_=null;var S0=!1;if(_===null)S0=!0;else switch(j0){case"bigint":case"string":case"number":S0=!0;break;case"object":switch(_.$$typeof){case B0:case r0:S0=!0;break;case P5:return S0=_._init,a(S0(_._payload),y,r,Z0,Y0)}}if(S0){S0=_,Y0=Y0(S0);var e0=Z0===""?"."+n(S0,0):Z0;return B1(Y0)?(r="",e0!=null&&(r=e0.replace(e9,"$&/")+"/"),a(Y0,y,r,"",function(L5){return L5})):Y0!=null&&(p(Y0)&&(Y0.key!=null&&(S0&&S0.key===Y0.key||F(Y0.key)),r=D(Y0,r+(Y0.key==null||S0&&S0.key===Y0.key?"":(""+Y0.key).replace(e9,"$&/")+"/")+e0),Z0!==""&&S0!=null&&p(S0)&&S0.key==null&&S0._store&&!S0._store.validated&&(r._store.validated=2),Y0=r),y.push(Y0)),1}if(S0=0,e0=Z0===""?".":Z0+":",B1(_))for(var z0=0;z0<_.length;z0++)Z0=_[z0],j0=e0+n(Z0,z0),S0+=a(Z0,y,r,j0,Y0);else if(z0=J(_),typeof z0==="function")for(z0===_.entries&&(t9||console.warn("Using Maps as children is not supported. Use an array of keyed ReactElements instead."),t9=!0),_=z0.call(_),z0=0;!(Z0=_.next()).done;)Z0=Z0.value,j0=e0+n(Z0,z0++),S0+=a(Z0,y,r,j0,Y0);else if(j0==="object"){if(typeof _.then==="function")return a($0(_),y,r,Z0,Y0);throw y=String(_),Error("Objects are not valid as a React child (found: "+(y==="[object Object]"?"object with keys {"+Object.keys(_).join(", ")+"}":y)+"). If you meant to render a collection of children, use an array instead.")}return S0}function o(_,y,r){if(_==null)return _;var Z0=[],Y0=0;return a(_,Z0,"","",function(j0){return y.call(r,j0,Y0++)}),Z0}function q0(_){if(_._status===-1){var y=_._ioInfo;y!=null&&(y.start=y.end=performance.now()),y=_._result;var r=y();if(r.then(function(Y0){if(_._status===0||_._status===-1){_._status=1,_._result=Y0;var j0=_._ioInfo;j0!=null&&(j0.end=performance.now()),r.status===void 0&&(r.status="fulfilled",r.value=Y0)}},function(Y0){if(_._status===0||_._status===-1){_._status=2,_._result=Y0;var j0=_._ioInfo;j0!=null&&(j0.end=performance.now()),r.status===void 0&&(r.status="rejected",r.reason=Y0)}}),y=_._ioInfo,y!=null){y.value=r;var Z0=r.displayName;typeof Z0==="string"&&(y.name=Z0)}_._status===-1&&(_._status=0,_._result=r)}if(_._status===1)return y=_._result,y===void 0&&console.error(`lazy: Expected the result of a dynamic import() call. Instead received: %s
|
|
1
|
+
var eV=Object.create;var{getPrototypeOf:$O,defineProperty:PR,getOwnPropertyNames:QO}=Object;var JO=Object.prototype.hasOwnProperty;function ZO(J){return this[J]}var GO,qO,t=(J,Z,q)=>{var X=J!=null&&typeof J==="object";if(X){var Y=Z?GO??=new WeakMap:qO??=new WeakMap,K=Y.get(J);if(K)return K}q=J!=null?eV($O(J)):{};let H=Z||!J||!J.__esModule?PR(q,"default",{value:J,enumerable:!0}):q;for(let M of QO(J))if(!JO.call(H,M))PR(H,M,{get:ZO.bind(J,M),enumerable:!0});if(X)Y.set(J,H);return H};var E8=(J,Z)=>()=>(Z||J((Z={exports:{}}).exports,Z),Z.exports);var uT=E8((ES)=>{(function(){function J(){if(s=!1,i){var l=ES.unstable_now();B0=l;var e=!0;try{$:{h=!1,p&&(p=!1,Z0(X0),X0=-1),D=!0;var N0=V;try{Q:{K(l);for(O=q(P);O!==null&&!(O.expirationTime>l&&M());){var c0=O.callback;if(typeof c0==="function"){O.callback=null,V=O.priorityLevel;var r0=c0(O.expirationTime<=l);if(l=ES.unstable_now(),typeof r0==="function"){O.callback=r0,K(l),e=!0;break Q}O===q(P)&&X(P),K(l)}else X(P);O=q(P)}if(O!==null)e=!0;else{var v=q(I);v!==null&&W(H,v.startTime-l),e=!1}}break $}finally{O=null,V=N0,D=!1}e=void 0}}finally{e?H0():i=!1}}}function Z(l,e){var N0=l.length;l.push(e);$:for(;0<N0;){var c0=N0-1>>>1,r0=l[c0];if(0<Y(r0,e))l[c0]=e,l[N0]=r0,N0=c0;else break $}}function q(l){return l.length===0?null:l[0]}function X(l){if(l.length===0)return null;var e=l[0],N0=l.pop();if(N0!==e){l[0]=N0;$:for(var c0=0,r0=l.length,v=r0>>>1;c0<v;){var o=2*(c0+1)-1,W0=l[o],R0=o+1,h0=l[R0];if(0>Y(W0,N0))R0<r0&&0>Y(h0,W0)?(l[c0]=h0,l[R0]=N0,c0=R0):(l[c0]=W0,l[o]=N0,c0=o);else if(R0<r0&&0>Y(h0,N0))l[c0]=h0,l[R0]=N0,c0=R0;else break $}}return e}function Y(l,e){var N0=l.sortIndex-e.sortIndex;return N0!==0?N0:l.id-e.id}function K(l){for(var e=q(I);e!==null;){if(e.callback===null)X(I);else if(e.startTime<=l)X(I),e.sortIndex=e.expirationTime,Z(P,e);else break;e=q(I)}}function H(l){if(p=!1,K(l),!h)if(q(P)!==null)h=!0,i||(i=!0,H0());else{var e=q(I);e!==null&&W(H,e.startTime-l)}}function M(){return s?!0:ES.unstable_now()-B0<d?!1:!0}function W(l,e){X0=n(function(){l(ES.unstable_now())},e)}if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart==="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error()),ES.unstable_now=void 0,typeof performance==="object"&&typeof performance.now==="function"){var w=performance;ES.unstable_now=function(){return w.now()}}else{var z=Date,T=z.now();ES.unstable_now=function(){return z.now()-T}}var P=[],I=[],E=1,O=null,V=3,D=!1,h=!1,p=!1,s=!1,n=typeof setTimeout==="function"?setTimeout:null,Z0=typeof clearTimeout==="function"?clearTimeout:null,a=typeof setImmediate<"u"?setImmediate:null,i=!1,X0=-1,d=5,B0=-1;if(typeof a==="function")var H0=function(){a(J)};else if(typeof MessageChannel<"u"){var C0=new MessageChannel,T1=C0.port2;C0.port1.onmessage=J,H0=function(){T1.postMessage(null)}}else H0=function(){n(J,0)};ES.unstable_IdlePriority=5,ES.unstable_ImmediatePriority=1,ES.unstable_LowPriority=4,ES.unstable_NormalPriority=3,ES.unstable_Profiling=null,ES.unstable_UserBlockingPriority=2,ES.unstable_cancelCallback=function(l){l.callback=null},ES.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},ES.unstable_getCurrentPriorityLevel=function(){return V},ES.unstable_next=function(l){switch(V){case 1:case 2:case 3:var e=3;break;default:e=V}var N0=V;V=e;try{return l()}finally{V=N0}},ES.unstable_requestPaint=function(){s=!0},ES.unstable_runWithPriority=function(l,e){switch(l){case 1:case 2:case 3:case 4:case 5:break;default:l=3}var N0=V;V=l;try{return e()}finally{V=N0}},ES.unstable_scheduleCallback=function(l,e,N0){var c0=ES.unstable_now();switch(typeof N0==="object"&&N0!==null?(N0=N0.delay,N0=typeof N0==="number"&&0<N0?c0+N0:c0):N0=c0,l){case 1:var r0=-1;break;case 2:r0=250;break;case 5:r0=1073741823;break;case 4:r0=1e4;break;default:r0=5000}return r0=N0+r0,l={id:E++,callback:e,priorityLevel:l,startTime:N0,expirationTime:r0,sortIndex:-1},N0>c0?(l.sortIndex=N0,Z(I,l),q(P)===null&&l===q(I)&&(p?(Z0(X0),X0=-1):p=!0,W(H,N0-c0))):(l.sortIndex=r0,Z(P,l),h||D||(h=!0,i||(i=!0,H0()))),l},ES.unstable_shouldYield=M,ES.unstable_wrapCallback=function(l){var e=V;return function(){var N0=V;V=e;try{return l.apply(this,arguments)}finally{V=N0}}},typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop==="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()});var I1=E8((AS,$X)=>{(function(){function J(_,f){Object.defineProperty(X.prototype,_,{get:function(){console.warn("%s(...) is deprecated in plain JavaScript React classes. %s",f[0],f[1])}})}function Z(_){if(_===null||typeof _!=="object")return null;return _=qZ&&_[qZ]||_["@@iterator"],typeof _==="function"?_:null}function q(_,f){_=(_=_.constructor)&&(_.displayName||_.name)||"ReactClass";var r=_+"."+f;q0[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.",f,_),q0[r]=!0)}function X(_,f,r){this.props=_,this.context=f,this.refs=g$,this.updater=r||t7}function Y(){}function K(_,f,r){this.props=_,this.context=f,this.refs=g$,this.updater=r||t7}function H(){}function M(_){return""+_}function W(_){try{M(_);var f=!1}catch(Y0){f=!0}if(f){f=console;var r=f.error,Q0=typeof Symbol==="function"&&Symbol.toStringTag&&_[Symbol.toStringTag]||_.constructor.name||"Object";return r.call(f,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",Q0),M(_)}}function w(_){if(_==null)return null;if(typeof _==="function")return _.$$typeof===OQ?null:_.displayName||_.name||null;if(typeof _==="string")return _;switch(_){case r0:return"Fragment";case o:return"Profiler";case v:return"StrictMode";case p1:return"Suspense";case j0:return"SuspenseList";case n5: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 c0:return"Portal";case R0:return _.displayName||"Context";case W0:return(_._context.displayName||"Context")+".Consumer";case h0:var f=_.render;return _=_.displayName,_||(_=f.displayName||f.name||"",_=_!==""?"ForwardRef("+_+")":"ForwardRef"),_;case A1:return f=_.displayName||null,f!==null?f:w(_.type)||"Memo";case P6:f=_._payload,_=_._init;try{return w(_(f))}catch(r){}}return null}function z(_){if(_===r0)return"<>";if(typeof _==="object"&&_!==null&&_.$$typeof===P6)return"<...>";try{var f=w(_);return f?"<"+f+">":"<...>"}catch(r){return"<...>"}}function T(){var _=k0.A;return _===null?null:_.getOwner()}function P(){return Error("react-stack-top-frame")}function I(_){if(e7.call(_,"key")){var f=Object.getOwnPropertyDescriptor(_,"key").get;if(f&&f.isReactWarning)return!1}return _.key!==void 0}function E(_,f){function r(){XZ||(XZ=!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)",f))}r.isReactWarning=!0,Object.defineProperty(_,"key",{get:r,configurable:!0})}function O(){var _=w(this.type);return p8[_]||(p8[_]=!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.")),_=this.props.ref,_!==void 0?_:null}function V(_,f,r,Q0,Y0,S0){var D0=r.ref;return _={$$typeof:N0,type:_,key:f,props:r,_owner:Q0},(D0!==void 0?D0:null)!==null?Object.defineProperty(_,"ref",{enumerable:!1,get:O}):Object.defineProperty(_,"ref",{enumerable:!1,value:null}),_._store={},Object.defineProperty(_._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(_,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(_,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:Y0}),Object.defineProperty(_,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:S0}),Object.freeze&&(Object.freeze(_.props),Object.freeze(_)),_}function D(_,f){return f=V(_.type,f,_.props,_._owner,_._debugStack,_._debugTask),_._store&&(f._store.validated=_._store.validated),f}function h(_){p(_)?_._store&&(_._store.validated=1):typeof _==="object"&&_!==null&&_.$$typeof===P6&&(_._payload.status==="fulfilled"?p(_._payload.value)&&_._payload.value._store&&(_._payload.value._store.validated=1):_._store&&(_._store.validated=1))}function p(_){return typeof _==="object"&&_!==null&&_.$$typeof===N0}function s(_){var f={"=":"=0",":":"=2"};return"$"+_.replace(/[=:]/g,function(r){return f[r]})}function n(_,f){return typeof _==="object"&&_!==null&&_.key!=null?(W(_.key),s(""+_.key)):f.toString(36)}function Z0(_){switch(_.status){case"fulfilled":return _.value;case"rejected":throw _.reason;default:switch(typeof _.status==="string"?_.then(H,H):(_.status="pending",_.then(function(f){_.status==="pending"&&(_.status="fulfilled",_.value=f)},function(f){_.status==="pending"&&(_.status="rejected",_.reason=f)})),_.status){case"fulfilled":return _.value;case"rejected":throw _.reason}}throw _}function a(_,f,r,Q0,Y0){var S0=typeof _;if(S0==="undefined"||S0==="boolean")_=null;var D0=!1;if(_===null)D0=!0;else switch(S0){case"bigint":case"string":case"number":D0=!0;break;case"object":switch(_.$$typeof){case N0:case c0:D0=!0;break;case P6:return D0=_._init,a(D0(_._payload),f,r,Q0,Y0)}}if(D0){D0=_,Y0=Y0(D0);var t0=Q0===""?"."+n(D0,0):Q0;return K1(Y0)?(r="",t0!=null&&(r=t0.replace(Q9,"$&/")+"/"),a(Y0,f,r,"",function(C6){return C6})):Y0!=null&&(p(Y0)&&(Y0.key!=null&&(D0&&D0.key===Y0.key||W(Y0.key)),r=D(Y0,r+(Y0.key==null||D0&&D0.key===Y0.key?"":(""+Y0.key).replace(Q9,"$&/")+"/")+t0),Q0!==""&&D0!=null&&p(D0)&&D0.key==null&&D0._store&&!D0._store.validated&&(r._store.validated=2),Y0=r),f.push(Y0)),1}if(D0=0,t0=Q0===""?".":Q0+":",K1(_))for(var T0=0;T0<_.length;T0++)Q0=_[T0],S0=t0+n(Q0,T0),D0+=a(Q0,f,r,S0,Y0);else if(T0=Z(_),typeof T0==="function")for(T0===_.entries&&($9||console.warn("Using Maps as children is not supported. Use an array of keyed ReactElements instead."),$9=!0),_=T0.call(_),T0=0;!(Q0=_.next()).done;)Q0=Q0.value,S0=t0+n(Q0,T0++),D0+=a(Q0,f,r,S0,Y0);else if(S0==="object"){if(typeof _.then==="function")return a(Z0(_),f,r,Q0,Y0);throw f=String(_),Error("Objects are not valid as a React child (found: "+(f==="[object Object]"?"object with keys {"+Object.keys(_).join(", ")+"}":f)+"). If you meant to render a collection of children, use an array instead.")}return D0}function i(_,f,r){if(_==null)return _;var Q0=[],Y0=0;return a(_,Q0,"","",function(S0){return f.call(r,S0,Y0++)}),Q0}function X0(_){if(_._status===-1){var f=_._ioInfo;f!=null&&(f.start=f.end=performance.now()),f=_._result;var r=f();if(r.then(function(Y0){if(_._status===0||_._status===-1){_._status=1,_._result=Y0;var S0=_._ioInfo;S0!=null&&(S0.end=performance.now()),r.status===void 0&&(r.status="fulfilled",r.value=Y0)}},function(Y0){if(_._status===0||_._status===-1){_._status=2,_._result=Y0;var S0=_._ioInfo;S0!=null&&(S0.end=performance.now()),r.status===void 0&&(r.status="rejected",r.reason=Y0)}}),f=_._ioInfo,f!=null){f.value=r;var Q0=r.displayName;typeof Q0==="string"&&(f.name=Q0)}_._status===-1&&(_._status=0,_._result=r)}if(_._status===1)return f=_._result,f===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'))
|
|
5
5
|
|
|
6
|
-
Did you accidentally put curly braces around the import?`,
|
|
6
|
+
Did you accidentally put curly braces around the import?`,f),"default"in f||console.error(`lazy: Expected the result of a dynamic import() call. Instead received: %s
|
|
7
7
|
|
|
8
8
|
Your code should look like:
|
|
9
|
-
const MyComponent = lazy(() => import('./MyComponent'))`,
|
|
9
|
+
const MyComponent = lazy(() => import('./MyComponent'))`,f),f.default;throw _._result}function d(){var _=k0.H;return _===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:
|
|
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.`),_}function K0(){k0.asyncTransitions--}function P0(_){if(p2===null)try{var y=("require"+Math.random()).slice(0,7);p2=(i3&&i3[y]).call(i3,"timers").setImmediate}catch(r){p2=function(Z0){JJ===!1&&(JJ=!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 Y0=new MessageChannel;Y0.port1.onmessage=Z0,Y0.port2.postMessage(void 0)}}return p2(_)}function C0(_){return 1<_.length&&typeof AggregateError==="function"?AggregateError(_):_[0]}function D0(_,y){y!==c2-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. "),c2=y}function l(_,y,r){var Z0=k0.actQueue;if(Z0!==null)if(Z0.length!==0)try{X0(Z0),P0(function(){return l(_,y,r)});return}catch(Y0){k0.thrownErrors.push(Y0)}else k0.actQueue=null;0<k0.thrownErrors.length?(Z0=C0(k0.thrownErrors),k0.thrownErrors.length=0,r(Z0)):y(_)}function X0(_){if(!r2){r2=!0;var y=0;try{for(;y<_.length;y++){var r=_[y];do{k0.didUsePromise=!1;var Z0=r(!1);if(Z0!==null){if(k0.didUsePromise){_[y]=r,_.splice(0,y);return}r=Z0}else break}while(1)}_.length=0}catch(Y0){_.splice(0,y+1),k0.thrownErrors.push(Y0)}finally{r2=!1}}}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart==="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var B0=Symbol.for("react.transitional.element"),r0=Symbol.for("react.portal"),u0=Symbol.for("react.fragment"),v=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),H0=Symbol.for("react.consumer"),F0=Symbol.for("react.context"),x0=Symbol.for("react.forward_ref"),y1=Symbol.for("react.suspense"),v0=Symbol.for("react.suspense_list"),p1=Symbol.for("react.memo"),P5=Symbol.for("react.lazy"),r6=Symbol.for("react.activity"),ZJ=Symbol.iterator,G0={},i9={isMounted:function(){return!1},enqueueForceUpdate:function(_){X(_,"forceUpdate")},enqueueReplaceState:function(_){X(_,"replaceState")},enqueueSetState:function(_){X(_,"setState")}},x2=Object.assign,v8={};Object.freeze(v8),q.prototype.isReactComponent={},q.prototype.setState=function(_,y){if(typeof _!=="object"&&typeof _!=="function"&&_!=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,_,y,"setState")},q.prototype.forceUpdate=function(_){this.updater.enqueueForceUpdate(this,_,"forceUpdate")};var X5={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(k8 in X5)X5.hasOwnProperty(k8)&&Q(k8,X5[k8]);N.prototype=q.prototype,X5=K.prototype=new N,X5.constructor=K,x2(X5,q.prototype),X5.isPureReactComponent=!0;var B1=Array.isArray,V$=Symbol.for("react.client.reference"),k0={H:null,A:null,T:null,S:null,actQueue:null,asyncTransitions:0,isBatchingLegacy:!1,didScheduleLegacyUpdate:!1,didUsePromise:!1,thrownErrors:[],getCurrentStack:null,recentlyCreatedOwnerStacks:0},a9=Object.prototype.hasOwnProperty,w1=console.createTask?console.createTask:function(){return null};X5={react_stack_bottom_frame:function(_){return _()}};var QJ,Y4,m2={},d2=X5.react_stack_bottom_frame.bind(X5,L)(),_X=w1(z(L)),t9=!1,e9=/\/+/g,b8=typeof reportError==="function"?reportError:function(_){if(typeof window==="object"&&typeof window.ErrorEvent==="function"){var y=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof _==="object"&&_!==null&&typeof _.message==="string"?String(_.message):String(_),error:_});if(!window.dispatchEvent(y))return}else if(typeof process==="object"&&typeof process.emit==="function"){process.emit("uncaughtException",_);return}console.error(_)},JJ=!1,p2=null,c2=0,l2=!1,r2=!1,O$=typeof queueMicrotask==="function"?function(_){queueMicrotask(function(){return queueMicrotask(_)})}:P0;X5=Object.freeze({__proto__:null,c:function(_){return d().useMemoCache(_)}});var k8={map:o,forEach:function(_,y,r){o(_,function(){y.apply(this,arguments)},r)},count:function(_){var y=0;return o(_,function(){y++}),y},toArray:function(_){return o(_,function(y){return y})||[]},only:function(_){if(!p(_))throw Error("React.Children.only expected to receive a single React element child.");return _}};WS.Activity=r6,WS.Children=k8,WS.Component=q,WS.Fragment=u0,WS.Profiler=i,WS.PureComponent=K,WS.StrictMode=v,WS.Suspense=y1,WS.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=k0,WS.__COMPILER_RUNTIME=X5,WS.act=function(_){var y=k0.actQueue,r=c2;c2++;var Z0=k0.actQueue=y!==null?y:[],Y0=!1;try{var j0=_()}catch(z0){k0.thrownErrors.push(z0)}if(0<k0.thrownErrors.length)throw D0(y,r),_=C0(k0.thrownErrors),k0.thrownErrors.length=0,_;if(j0!==null&&typeof j0==="object"&&typeof j0.then==="function"){var S0=j0;return O$(function(){Y0||l2||(l2=!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(z0,L5){Y0=!0,S0.then(function(G6){if(D0(y,r),r===0){try{X0(Z0),P0(function(){return l(G6,z0,L5)})}catch(E$){k0.thrownErrors.push(E$)}if(0<k0.thrownErrors.length){var f8=C0(k0.thrownErrors);k0.thrownErrors.length=0,L5(f8)}}else z0(G6)},function(G6){D0(y,r),0<k0.thrownErrors.length?(G6=C0(k0.thrownErrors),k0.thrownErrors.length=0,L5(G6)):L5(G6)})}}}var e0=j0;if(D0(y,r),r===0&&(X0(Z0),Z0.length!==0&&O$(function(){Y0||l2||(l2=!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(() => ...)"))}),k0.actQueue=null),0<k0.thrownErrors.length)throw _=C0(k0.thrownErrors),k0.thrownErrors.length=0,_;return{then:function(z0,L5){Y0=!0,r===0?(k0.actQueue=Z0,P0(function(){return l(e0,z0,L5)})):z0(e0)}}},WS.cache=function(_){return function(){return _.apply(null,arguments)}},WS.cacheSignal=function(){return null},WS.captureOwnerStack=function(){var _=k0.getCurrentStack;return _===null?null:_()},WS.cloneElement=function(_,y,r){if(_===null||_===void 0)throw Error("The argument must be a React element, but you passed "+_+".");var Z0=x2({},_.props),Y0=_.key,j0=_._owner;if(y!=null){var S0;$:{if(a9.call(y,"ref")&&(S0=Object.getOwnPropertyDescriptor(y,"ref").get)&&S0.isReactWarning){S0=!1;break $}S0=y.ref!==void 0}S0&&(j0=T()),I(y)&&(F(y.key),Y0=""+y.key);for(e0 in y)!a9.call(y,e0)||e0==="key"||e0==="__self"||e0==="__source"||e0==="ref"&&y.ref===void 0||(Z0[e0]=y[e0])}var e0=arguments.length-2;if(e0===1)Z0.children=r;else if(1<e0){S0=Array(e0);for(var z0=0;z0<e0;z0++)S0[z0]=arguments[z0+2];Z0.children=S0}Z0=V(_.type,Y0,Z0,j0,_._debugStack,_._debugTask);for(Y0=2;Y0<arguments.length;Y0++)h(arguments[Y0]);return Z0},WS.createContext=function(_){return _={$$typeof:F0,_currentValue:_,_currentValue2:_,_threadCount:0,Provider:null,Consumer:null},_.Provider=_,_.Consumer={$$typeof:H0,_context:_},_._currentRenderer=null,_._currentRenderer2=null,_},WS.createElement=function(_,y,r){for(var Z0=2;Z0<arguments.length;Z0++)h(arguments[Z0]);Z0={};var Y0=null;if(y!=null)for(z0 in Y4||!("__self"in y)||"key"in y||(Y4=!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)&&(F(y.key),Y0=""+y.key),y)a9.call(y,z0)&&z0!=="key"&&z0!=="__self"&&z0!=="__source"&&(Z0[z0]=y[z0]);var j0=arguments.length-2;if(j0===1)Z0.children=r;else if(1<j0){for(var S0=Array(j0),e0=0;e0<j0;e0++)S0[e0]=arguments[e0+2];Object.freeze&&Object.freeze(S0),Z0.children=S0}if(_&&_.defaultProps)for(z0 in j0=_.defaultProps,j0)Z0[z0]===void 0&&(Z0[z0]=j0[z0]);Y0&&E(Z0,typeof _==="function"?_.displayName||_.name||"Unknown":_);var z0=1e4>k0.recentlyCreatedOwnerStacks++;return V(_,Y0,Z0,T(),z0?Error("react-stack-top-frame"):d2,z0?w1(z(_)):_X)},WS.createRef=function(){var _={current:null};return Object.seal(_),_},WS.forwardRef=function(_){_!=null&&_.$$typeof===p1?console.error("forwardRef requires a render function but received a `memo` component. Instead of forwardRef(memo(...)), use memo(forwardRef(...))."):typeof _!=="function"?console.error("forwardRef requires a render function but was given %s.",_===null?"null":typeof _):_.length!==0&&_.length!==2&&console.error("forwardRef render functions accept exactly two parameters: props and ref. %s",_.length===1?"Did you forget to use the ref parameter?":"Any additional parameter will be undefined."),_!=null&&_.defaultProps!=null&&console.error("forwardRef render functions do not support defaultProps. Did you accidentally pass a React component?");var y={$$typeof:x0,render:_},r;return Object.defineProperty(y,"displayName",{enumerable:!1,configurable:!0,get:function(){return r},set:function(Z0){r=Z0,_.name||_.displayName||(Object.defineProperty(_,"name",{value:Z0}),_.displayName=Z0)}}),y},WS.isValidElement=p,WS.lazy=function(_){_={_status:-1,_result:_};var y={$$typeof:P5,_payload:_,_init:q0},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 _._ioInfo=r,y._debugInfo=[{awaited:r}],y},WS.memo=function(_,y){_==null&&console.error("memo: The first argument must be a component. Instead received: %s",_===null?"null":typeof _),y={$$typeof:p1,type:_,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,_.name||_.displayName||(Object.defineProperty(_,"name",{value:Z0}),_.displayName=Z0)}}),y},WS.startTransition=function(_){var y=k0.T,r={};r._updatedFibers=new Set,k0.T=r;try{var Z0=_(),Y0=k0.S;Y0!==null&&Y0(r,Z0),typeof Z0==="object"&&Z0!==null&&typeof Z0.then==="function"&&(k0.asyncTransitions++,Z0.then(K0,K0),Z0.then(H,b8))}catch(j0){b8(j0)}finally{y===null&&r._updatedFibers&&(_=r._updatedFibers.size,r._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.")),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),k0.T=y}},WS.unstable_useCacheRefresh=function(){return d().useCacheRefresh()},WS.use=function(_){return d().use(_)},WS.useActionState=function(_,y,r){return d().useActionState(_,y,r)},WS.useCallback=function(_,y){return d().useCallback(_,y)},WS.useContext=function(_){var y=d();return _.$$typeof===H0&&console.error("Calling useContext(Context.Consumer) is not supported and will cause bugs. Did you mean to call useContext(Context) instead?"),y.useContext(_)},WS.useDebugValue=function(_,y){return d().useDebugValue(_,y)},WS.useDeferredValue=function(_,y){return d().useDeferredValue(_,y)},WS.useEffect=function(_,y){return _==null&&console.warn("React Hook useEffect requires an effect callback. Did you forget to pass a callback to the hook?"),d().useEffect(_,y)},WS.useEffectEvent=function(_){return d().useEffectEvent(_)},WS.useId=function(){return d().useId()},WS.useImperativeHandle=function(_,y,r){return d().useImperativeHandle(_,y,r)},WS.useInsertionEffect=function(_,y){return _==null&&console.warn("React Hook useInsertionEffect requires an effect callback. Did you forget to pass a callback to the hook?"),d().useInsertionEffect(_,y)},WS.useLayoutEffect=function(_,y){return _==null&&console.warn("React Hook useLayoutEffect requires an effect callback. Did you forget to pass a callback to the hook?"),d().useLayoutEffect(_,y)},WS.useMemo=function(_,y){return d().useMemo(_,y)},WS.useOptimistic=function(_,y){return d().useOptimistic(_,y)},WS.useReducer=function(_,y,r){return d().useReducer(_,y,r)},WS.useRef=function(_){return d().useRef(_)},WS.useState=function(_){return d().useState(_)},WS.useSyncExternalStore=function(_,y,r){return d().useSyncExternalStore(_,y,r)},WS.useTransition=function(){return d().useTransition()},WS.version="19.2.7",typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop==="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()});var xT=C2((wS)=>{var BK=t(I1());(function(){function Q(){}function J(z){return""+z}function X(z,T,L){var I=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;try{J(I);var E=!1}catch(O){E=!0}return E&&(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:F,key:I==null?null:""+I,children:z,containerInfo:T,implementation:L}}function q(z,T){if(z==="font")return"";if(typeof T==="string")return T==="use-credentials"?T:""}function N(z){return z===null?"`null`":z===void 0?"`undefined`":z===""?"an empty string":'something with type "'+typeof z+'"'}function K(z){return z===null?"`null`":z===void 0?"`undefined`":z===""?"an empty string":typeof z==="string"?JSON.stringify(z):typeof z==="number"?"`"+z+"`":'something with type "'+typeof z+'"'}function H(){var z=w.H;return z===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.`),_}function B0(){k0.asyncTransitions--}function H0(_){if(l8===null)try{var f=("require"+Math.random()).slice(0,7);l8=($X&&$X[f]).call($X,"timers").setImmediate}catch(r){l8=function(Q0){NZ===!1&&(NZ=!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 Y0=new MessageChannel;Y0.port1.onmessage=Q0,Y0.port2.postMessage(void 0)}}return l8(_)}function C0(_){return 1<_.length&&typeof AggregateError==="function"?AggregateError(_):_[0]}function T1(_,f){f!==r8-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. "),r8=f}function l(_,f,r){var Q0=k0.actQueue;if(Q0!==null)if(Q0.length!==0)try{e(Q0),H0(function(){return l(_,f,r)});return}catch(Y0){k0.thrownErrors.push(Y0)}else k0.actQueue=null;0<k0.thrownErrors.length?(Q0=C0(k0.thrownErrors),k0.thrownErrors.length=0,r(Q0)):f(_)}function e(_){if(!n8){n8=!0;var f=0;try{for(;f<_.length;f++){var r=_[f];do{k0.didUsePromise=!1;var Q0=r(!1);if(Q0!==null){if(k0.didUsePromise){_[f]=r,_.splice(0,f);return}r=Q0}else break}while(1)}_.length=0}catch(Y0){_.splice(0,f+1),k0.thrownErrors.push(Y0)}finally{n8=!1}}}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart==="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var N0=Symbol.for("react.transitional.element"),c0=Symbol.for("react.portal"),r0=Symbol.for("react.fragment"),v=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),W0=Symbol.for("react.consumer"),R0=Symbol.for("react.context"),h0=Symbol.for("react.forward_ref"),p1=Symbol.for("react.suspense"),j0=Symbol.for("react.suspense_list"),A1=Symbol.for("react.memo"),P6=Symbol.for("react.lazy"),n5=Symbol.for("react.activity"),qZ=Symbol.iterator,q0={},t7={isMounted:function(){return!1},enqueueForceUpdate:function(_){q(_,"forceUpdate")},enqueueReplaceState:function(_){q(_,"replaceState")},enqueueSetState:function(_){q(_,"setState")}},d8=Object.assign,g$={};Object.freeze(g$),X.prototype.isReactComponent={},X.prototype.setState=function(_,f){if(typeof _!=="object"&&typeof _!=="function"&&_!=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,_,f,"setState")},X.prototype.forceUpdate=function(_){this.updater.enqueueForceUpdate(this,_,"forceUpdate")};var q6={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(x$ in q6)q6.hasOwnProperty(x$)&&J(x$,q6[x$]);Y.prototype=X.prototype,q6=K.prototype=new Y,q6.constructor=K,d8(q6,X.prototype),q6.isPureReactComponent=!0;var K1=Array.isArray,OQ=Symbol.for("react.client.reference"),k0={H:null,A:null,T:null,S:null,actQueue:null,asyncTransitions:0,isBatchingLegacy:!1,didScheduleLegacyUpdate:!1,didUsePromise:!1,thrownErrors:[],getCurrentStack:null,recentlyCreatedOwnerStacks:0},e7=Object.prototype.hasOwnProperty,F1=console.createTask?console.createTask:function(){return null};q6={react_stack_bottom_frame:function(_){return _()}};var XZ,U4,p8={},c8=q6.react_stack_bottom_frame.bind(q6,P)(),EX=F1(z(P)),$9=!1,Q9=/\/+/g,h$=typeof reportError==="function"?reportError:function(_){if(typeof window==="object"&&typeof window.ErrorEvent==="function"){var f=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof _==="object"&&_!==null&&typeof _.message==="string"?String(_.message):String(_),error:_});if(!window.dispatchEvent(f))return}else if(typeof process==="object"&&typeof process.emit==="function"){process.emit("uncaughtException",_);return}console.error(_)},NZ=!1,l8=null,r8=0,s8=!1,n8=!1,EQ=typeof queueMicrotask==="function"?function(_){queueMicrotask(function(){return queueMicrotask(_)})}:H0;q6=Object.freeze({__proto__:null,c:function(_){return d().useMemoCache(_)}});var x$={map:i,forEach:function(_,f,r){i(_,function(){f.apply(this,arguments)},r)},count:function(_){var f=0;return i(_,function(){f++}),f},toArray:function(_){return i(_,function(f){return f})||[]},only:function(_){if(!p(_))throw Error("React.Children.only expected to receive a single React element child.");return _}};AS.Activity=n5,AS.Children=x$,AS.Component=X,AS.Fragment=r0,AS.Profiler=o,AS.PureComponent=K,AS.StrictMode=v,AS.Suspense=p1,AS.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=k0,AS.__COMPILER_RUNTIME=q6,AS.act=function(_){var f=k0.actQueue,r=r8;r8++;var Q0=k0.actQueue=f!==null?f:[],Y0=!1;try{var S0=_()}catch(T0){k0.thrownErrors.push(T0)}if(0<k0.thrownErrors.length)throw T1(f,r),_=C0(k0.thrownErrors),k0.thrownErrors.length=0,_;if(S0!==null&&typeof S0==="object"&&typeof S0.then==="function"){var D0=S0;return EQ(function(){Y0||s8||(s8=!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(T0,C6){Y0=!0,D0.then(function(X5){if(T1(f,r),r===0){try{e(Q0),H0(function(){return l(X5,T0,C6)})}catch(AQ){k0.thrownErrors.push(AQ)}if(0<k0.thrownErrors.length){var u$=C0(k0.thrownErrors);k0.thrownErrors.length=0,C6(u$)}}else T0(X5)},function(X5){T1(f,r),0<k0.thrownErrors.length?(X5=C0(k0.thrownErrors),k0.thrownErrors.length=0,C6(X5)):C6(X5)})}}}var t0=S0;if(T1(f,r),r===0&&(e(Q0),Q0.length!==0&&EQ(function(){Y0||s8||(s8=!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(() => ...)"))}),k0.actQueue=null),0<k0.thrownErrors.length)throw _=C0(k0.thrownErrors),k0.thrownErrors.length=0,_;return{then:function(T0,C6){Y0=!0,r===0?(k0.actQueue=Q0,H0(function(){return l(t0,T0,C6)})):T0(t0)}}},AS.cache=function(_){return function(){return _.apply(null,arguments)}},AS.cacheSignal=function(){return null},AS.captureOwnerStack=function(){var _=k0.getCurrentStack;return _===null?null:_()},AS.cloneElement=function(_,f,r){if(_===null||_===void 0)throw Error("The argument must be a React element, but you passed "+_+".");var Q0=d8({},_.props),Y0=_.key,S0=_._owner;if(f!=null){var D0;$:{if(e7.call(f,"ref")&&(D0=Object.getOwnPropertyDescriptor(f,"ref").get)&&D0.isReactWarning){D0=!1;break $}D0=f.ref!==void 0}D0&&(S0=T()),I(f)&&(W(f.key),Y0=""+f.key);for(t0 in f)!e7.call(f,t0)||t0==="key"||t0==="__self"||t0==="__source"||t0==="ref"&&f.ref===void 0||(Q0[t0]=f[t0])}var t0=arguments.length-2;if(t0===1)Q0.children=r;else if(1<t0){D0=Array(t0);for(var T0=0;T0<t0;T0++)D0[T0]=arguments[T0+2];Q0.children=D0}Q0=V(_.type,Y0,Q0,S0,_._debugStack,_._debugTask);for(Y0=2;Y0<arguments.length;Y0++)h(arguments[Y0]);return Q0},AS.createContext=function(_){return _={$$typeof:R0,_currentValue:_,_currentValue2:_,_threadCount:0,Provider:null,Consumer:null},_.Provider=_,_.Consumer={$$typeof:W0,_context:_},_._currentRenderer=null,_._currentRenderer2=null,_},AS.createElement=function(_,f,r){for(var Q0=2;Q0<arguments.length;Q0++)h(arguments[Q0]);Q0={};var Y0=null;if(f!=null)for(T0 in U4||!("__self"in f)||"key"in f||(U4=!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(f)&&(W(f.key),Y0=""+f.key),f)e7.call(f,T0)&&T0!=="key"&&T0!=="__self"&&T0!=="__source"&&(Q0[T0]=f[T0]);var S0=arguments.length-2;if(S0===1)Q0.children=r;else if(1<S0){for(var D0=Array(S0),t0=0;t0<S0;t0++)D0[t0]=arguments[t0+2];Object.freeze&&Object.freeze(D0),Q0.children=D0}if(_&&_.defaultProps)for(T0 in S0=_.defaultProps,S0)Q0[T0]===void 0&&(Q0[T0]=S0[T0]);Y0&&E(Q0,typeof _==="function"?_.displayName||_.name||"Unknown":_);var T0=1e4>k0.recentlyCreatedOwnerStacks++;return V(_,Y0,Q0,T(),T0?Error("react-stack-top-frame"):c8,T0?F1(z(_)):EX)},AS.createRef=function(){var _={current:null};return Object.seal(_),_},AS.forwardRef=function(_){_!=null&&_.$$typeof===A1?console.error("forwardRef requires a render function but received a `memo` component. Instead of forwardRef(memo(...)), use memo(forwardRef(...))."):typeof _!=="function"?console.error("forwardRef requires a render function but was given %s.",_===null?"null":typeof _):_.length!==0&&_.length!==2&&console.error("forwardRef render functions accept exactly two parameters: props and ref. %s",_.length===1?"Did you forget to use the ref parameter?":"Any additional parameter will be undefined."),_!=null&&_.defaultProps!=null&&console.error("forwardRef render functions do not support defaultProps. Did you accidentally pass a React component?");var f={$$typeof:h0,render:_},r;return Object.defineProperty(f,"displayName",{enumerable:!1,configurable:!0,get:function(){return r},set:function(Q0){r=Q0,_.name||_.displayName||(Object.defineProperty(_,"name",{value:Q0}),_.displayName=Q0)}}),f},AS.isValidElement=p,AS.lazy=function(_){_={_status:-1,_result:_};var f={$$typeof:P6,_payload:_,_init:X0},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 _._ioInfo=r,f._debugInfo=[{awaited:r}],f},AS.memo=function(_,f){_==null&&console.error("memo: The first argument must be a component. Instead received: %s",_===null?"null":typeof _),f={$$typeof:A1,type:_,compare:f===void 0?null:f};var r;return Object.defineProperty(f,"displayName",{enumerable:!1,configurable:!0,get:function(){return r},set:function(Q0){r=Q0,_.name||_.displayName||(Object.defineProperty(_,"name",{value:Q0}),_.displayName=Q0)}}),f},AS.startTransition=function(_){var f=k0.T,r={};r._updatedFibers=new Set,k0.T=r;try{var Q0=_(),Y0=k0.S;Y0!==null&&Y0(r,Q0),typeof Q0==="object"&&Q0!==null&&typeof Q0.then==="function"&&(k0.asyncTransitions++,Q0.then(B0,B0),Q0.then(H,h$))}catch(S0){h$(S0)}finally{f===null&&r._updatedFibers&&(_=r._updatedFibers.size,r._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.")),f!==null&&r.types!==null&&(f.types!==null&&f.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."),f.types=r.types),k0.T=f}},AS.unstable_useCacheRefresh=function(){return d().useCacheRefresh()},AS.use=function(_){return d().use(_)},AS.useActionState=function(_,f,r){return d().useActionState(_,f,r)},AS.useCallback=function(_,f){return d().useCallback(_,f)},AS.useContext=function(_){var f=d();return _.$$typeof===W0&&console.error("Calling useContext(Context.Consumer) is not supported and will cause bugs. Did you mean to call useContext(Context) instead?"),f.useContext(_)},AS.useDebugValue=function(_,f){return d().useDebugValue(_,f)},AS.useDeferredValue=function(_,f){return d().useDeferredValue(_,f)},AS.useEffect=function(_,f){return _==null&&console.warn("React Hook useEffect requires an effect callback. Did you forget to pass a callback to the hook?"),d().useEffect(_,f)},AS.useEffectEvent=function(_){return d().useEffectEvent(_)},AS.useId=function(){return d().useId()},AS.useImperativeHandle=function(_,f,r){return d().useImperativeHandle(_,f,r)},AS.useInsertionEffect=function(_,f){return _==null&&console.warn("React Hook useInsertionEffect requires an effect callback. Did you forget to pass a callback to the hook?"),d().useInsertionEffect(_,f)},AS.useLayoutEffect=function(_,f){return _==null&&console.warn("React Hook useLayoutEffect requires an effect callback. Did you forget to pass a callback to the hook?"),d().useLayoutEffect(_,f)},AS.useMemo=function(_,f){return d().useMemo(_,f)},AS.useOptimistic=function(_,f){return d().useOptimistic(_,f)},AS.useReducer=function(_,f,r){return d().useReducer(_,f,r)},AS.useRef=function(_){return d().useRef(_)},AS.useState=function(_){return d().useState(_)},AS.useSyncExternalStore=function(_,f,r){return d().useSyncExternalStore(_,f,r)},AS.useTransition=function(){return d().useTransition()},AS.version="19.2.7",typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop==="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()});var mT=E8((jS)=>{var WK=t(I1());(function(){function J(){}function Z(z){return""+z}function q(z,T,P){var I=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;try{Z(I);var E=!1}catch(O){E=!0}return E&&(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"),Z(I)),{$$typeof:W,key:I==null?null:""+I,children:z,containerInfo:T,implementation:P}}function X(z,T){if(z==="font")return"";if(typeof T==="string")return T==="use-credentials"?T:""}function Y(z){return z===null?"`null`":z===void 0?"`undefined`":z===""?"an empty string":'something with type "'+typeof z+'"'}function K(z){return z===null?"`null`":z===void 0?"`undefined`":z===""?"an empty string":typeof z==="string"?JSON.stringify(z):typeof z==="number"?"`"+z+"`":'something with type "'+typeof z+'"'}function H(){var z=w.H;return z===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.`),z}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart==="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var M={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},F=Symbol.for("react.portal"),w=BK.__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"),wS.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=M,wS.createPortal=function(z,T){var L=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!T||T.nodeType!==1&&T.nodeType!==9&&T.nodeType!==11)throw Error("Target container is not a DOM element.");return X(z,T,null,L)},wS.flushSync=function(z){var T=w.T,L=M.p;try{if(w.T=null,M.p=2,z)return z()}finally{w.T=T,M.p=L,M.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.")}},wS.preconnect=function(z,T){typeof z==="string"&&z?T!=null&&typeof T!=="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(T)):T!=null&&typeof T.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(T.crossOrigin)):console.error("ReactDOM.preconnect(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.",N(z)),typeof z==="string"&&(T?(T=T.crossOrigin,T=typeof T==="string"?T==="use-credentials"?T:"":void 0):T=null,M.d.C(z,T))},wS.prefetchDNS=function(z){if(typeof z!=="string"||!z)console.error("ReactDOM.prefetchDNS(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.",N(z));else if(1<arguments.length){var T=arguments[1];typeof T==="object"&&T.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(T)):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(T))}typeof z==="string"&&M.d.D(z)},wS.preinit=function(z,T){if(typeof z==="string"&&z?T==null||typeof T!=="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(T)):T.as!=="style"&&T.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(T.as)):console.error("ReactDOM.preinit(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.",N(z)),typeof z==="string"&&T&&typeof T.as==="string"){var L=T.as,I=q(L,T.crossOrigin),E=typeof T.integrity==="string"?T.integrity:void 0,O=typeof T.fetchPriority==="string"?T.fetchPriority:void 0;L==="style"?M.d.S(z,typeof T.precedence==="string"?T.precedence:void 0,{crossOrigin:I,integrity:E,fetchPriority:O}):L==="script"&&M.d.X(z,{crossOrigin:I,integrity:E,fetchPriority:O,nonce:typeof T.nonce==="string"?T.nonce:void 0})}},wS.preinitModule=function(z,T){var L="";if(typeof z==="string"&&z||(L+=" The `href` argument encountered was "+N(z)+"."),T!==void 0&&typeof T!=="object"?L+=" The `options` argument encountered was "+N(T)+".":T&&("as"in T)&&T.as!=="script"&&(L+=" The `as` option encountered was "+K(T.as)+"."),L)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",L);else switch(L=T&&typeof T.as==="string"?T.as:"script",L){case"script":break;default:L=K(L),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)',L,z)}if(typeof z==="string")if(typeof T==="object"&&T!==null){if(T.as==null||T.as==="script")L=q(T.as,T.crossOrigin),M.d.M(z,{crossOrigin:L,integrity:typeof T.integrity==="string"?T.integrity:void 0,nonce:typeof T.nonce==="string"?T.nonce:void 0})}else T==null&&M.d.M(z)},wS.preload=function(z,T){var L="";if(typeof z==="string"&&z||(L+=" The `href` argument encountered was "+N(z)+"."),T==null||typeof T!=="object"?L+=" The `options` argument encountered was "+N(T)+".":typeof T.as==="string"&&T.as||(L+=" The `as` option encountered was "+N(T.as)+"."),L&&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',L),typeof z==="string"&&typeof T==="object"&&T!==null&&typeof T.as==="string"){L=T.as;var I=q(L,T.crossOrigin);M.d.L(z,L,{crossOrigin:I,integrity:typeof T.integrity==="string"?T.integrity:void 0,nonce:typeof T.nonce==="string"?T.nonce:void 0,type:typeof T.type==="string"?T.type:void 0,fetchPriority:typeof T.fetchPriority==="string"?T.fetchPriority:void 0,referrerPolicy:typeof T.referrerPolicy==="string"?T.referrerPolicy:void 0,imageSrcSet:typeof T.imageSrcSet==="string"?T.imageSrcSet:void 0,imageSizes:typeof T.imageSizes==="string"?T.imageSizes:void 0,media:typeof T.media==="string"?T.media:void 0})}},wS.preloadModule=function(z,T){var L="";typeof z==="string"&&z||(L+=" The `href` argument encountered was "+N(z)+"."),T!==void 0&&typeof T!=="object"?L+=" The `options` argument encountered was "+N(T)+".":T&&("as"in T)&&typeof T.as!=="string"&&(L+=" The `as` option encountered was "+N(T.as)+"."),L&&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',L),typeof z==="string"&&(T?(L=q(T.as,T.crossOrigin),M.d.m(z,{as:typeof T.as==="string"&&T.as!=="script"?T.as:void 0,crossOrigin:L,integrity:typeof T.integrity==="string"?T.integrity:void 0})):M.d.m(z))},wS.requestFormReset=function(z){M.d.r(z)},wS.unstable_batchedUpdates=function(z,T){return z(T)},wS.useFormState=function(z,T,L){return H().useFormState(z,T,L)},wS.useFormStatus=function(){return H().useHostTransitionStatus()},wS.version="19.2.7",typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop==="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()});var dT=C2((Lb,mT)=>{var RS=t(xT());mT.exports=RS});var pT=C2((zS)=>{var Z1=t(uT()),H$=t(I1()),HK=t(dT());(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=$5($)?$.slice():d0({},$);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=$5($)?$.slice():d0({},$);return Y+1===Z.length?(B[G[Y]]=B[U],$5(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=$5($)?$.slice():d0({},$);if(G+1===Z.length)return $5(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 M(){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 F(){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 z(){}function T($){var Z=[];return $.forEach(function(G){Z.push(G)}),Z.sort().join(", ")}function L($,Z,G,Y){return new mC($,Z,G,Y)}function I($,Z){$.context===Z2&&(_Y($.current,2,Z,$,null,null),H7())}function E($,Z){if(j6!==null){var G=Z.staleFamilies;Z=Z.updatedFamilies,e$(),IB($.current,Z,G),H7()}}function O($){j6=$}function V($){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 n($){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,R=U.child;R;){if(R===G){W=!0,G=U,Y=B;break}if(R===Y){W=!0,Y=U,G=B;break}R=R.sibling}if(!W){for(R=B.child;R;){if(R===G){W=!0,G=B,Y=U;break}if(R===Y){W=!0,Y=B,G=U;break}R=R.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 $0($){var Z=$.tag;if(Z===5||Z===26||Z===27||Z===6)return $;for($=$.child;$!==null;){if(Z=$0($),Z!==null)return Z;$=$.sibling}return null}function a($){if($===null||typeof $!=="object")return null;return $=DF&&$[DF]||$["@@iterator"],typeof $==="function"?$:null}function o($){if($==null)return null;if(typeof $==="function")return $.$$typeof===NI?null:$.displayName||$.name||null;if(typeof $==="string")return $;switch($){case T7:return"Fragment";case jY:return"Profiler";case HG:return"StrictMode";case DY:return"Suspense";case vY:return"SuspenseList";case bY: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 z7:return"Portal";case V4:return $.displayName||"Context";case SY:return($._context.displayName||"Context")+".Consumer";case UZ:var Z=$.render;return $=$.displayName,$||($=Z.displayName||Z.name||"",$=$!==""?"ForwardRef("+$+")":"ForwardRef"),$;case MG:return Z=$.displayName||null,Z!==null?Z:o($.type)||"Memo";case M6:Z=$._payload,$=$._init;try{return o($(Z))}catch(G){}}return null}function q0($){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 o(Z);case 8:return Z===HG?"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 K0($){return{current:$}}function P0($,Z){0>Z8?console.error("Unexpected pop."):(Z!==fY[Z8]&&console.error("Unexpected Fiber popped."),$.current=kY[Z8],kY[Z8]=null,fY[Z8]=null,Z8--)}function C0($,Z,G){Z8++,kY[Z8]=$.current,fY[Z8]=G,$.current=Z}function D0($){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){C0(o8,Z,$),C0(KZ,$,$),C0(n8,null,$);var G=Z.nodeType;switch(G){case 9:case 11:G=G===9?"#document":"#fragment",Z=(Z=Z.documentElement)?(Z=Z.namespaceURI)?ZF(Z):W8:W8;break;default:if(G=Z.tagName,Z=Z.namespaceURI)Z=ZF(Z),Z=QF(Z,G);else switch(G){case"svg":Z=e7;break;case"math":Z=B3;break;default:Z=W8}}G=G.toLowerCase(),G=oK(null,G),G={context:Z,ancestorInfo:G},P0(n8,$),C0(n8,G,$)}function X0($){P0(n8,$),P0(KZ,$),P0(o8,$)}function B0(){return D0(n8.current)}function r0($){$.memoizedState!==null&&C0(FG,$,$);var Z=D0(n8.current),G=$.type,Y=QF(Z.context,G);G=oK(Z.ancestorInfo,G),Y={context:Y,ancestorInfo:G},Z!==Y&&(C0(KZ,$,$),C0(n8,Y,$))}function u0($){KZ.current===$&&(P0(n8,$),P0(KZ,$)),FG.current===$&&(P0(FG,$),ZQ._currentValue=S9)}function v(){}function i(){if(BZ===0){vF=console.log,bF=console.info,kF=console.warn,fF=console.error,yF=console.group,gF=console.groupCollapsed,hF=console.groupEnd;var $={configurable:!0,enumerable:!0,value:v,writable:!0};Object.defineProperties(console,{info:$,log:$,warn:$,error:$,group:$,groupCollapsed:$,groupEnd:$})}BZ++}function H0(){if(BZ--,BZ===0){var $={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:d0({},$,{value:vF}),info:d0({},$,{value:bF}),warn:d0({},$,{value:kF}),error:d0({},$,{value:fF}),group:d0({},$,{value:yF}),groupCollapsed:d0({},$,{value:gF}),groupEnd:d0({},$,{value:hF})})}0>BZ&&console.error("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}function F0($){var Z=Error.prepareStackTrace;if(Error.prepareStackTrace=void 0,$=$.stack,Error.prepareStackTrace=Z,$.startsWith(`Error: react-stack-top-frame
|
|
18
|
-
`)&&($=$.slice(29)),
|
|
19
|
-
`),
|
|
20
|
-
`,
|
|
17
|
+
See https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem.`),z}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart==="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var M={d:{f:J,r:function(){throw Error("Invalid form element. requestFormReset must be passed a form that was rendered by React.")},D:J,C:J,L:J,m:J,X:J,S:J,M:J},p:0,findDOMNode:null},W=Symbol.for("react.portal"),w=WK.__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"),jS.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=M,jS.createPortal=function(z,T){var P=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!T||T.nodeType!==1&&T.nodeType!==9&&T.nodeType!==11)throw Error("Target container is not a DOM element.");return q(z,T,null,P)},jS.flushSync=function(z){var T=w.T,P=M.p;try{if(w.T=null,M.p=2,z)return z()}finally{w.T=T,M.p=P,M.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.")}},jS.preconnect=function(z,T){typeof z==="string"&&z?T!=null&&typeof T!=="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(T)):T!=null&&typeof T.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.",Y(T.crossOrigin)):console.error("ReactDOM.preconnect(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.",Y(z)),typeof z==="string"&&(T?(T=T.crossOrigin,T=typeof T==="string"?T==="use-credentials"?T:"":void 0):T=null,M.d.C(z,T))},jS.prefetchDNS=function(z){if(typeof z!=="string"||!z)console.error("ReactDOM.prefetchDNS(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.",Y(z));else if(1<arguments.length){var T=arguments[1];typeof T==="object"&&T.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(T)):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(T))}typeof z==="string"&&M.d.D(z)},jS.preinit=function(z,T){if(typeof z==="string"&&z?T==null||typeof T!=="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(T)):T.as!=="style"&&T.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(T.as)):console.error("ReactDOM.preinit(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.",Y(z)),typeof z==="string"&&T&&typeof T.as==="string"){var P=T.as,I=X(P,T.crossOrigin),E=typeof T.integrity==="string"?T.integrity:void 0,O=typeof T.fetchPriority==="string"?T.fetchPriority:void 0;P==="style"?M.d.S(z,typeof T.precedence==="string"?T.precedence:void 0,{crossOrigin:I,integrity:E,fetchPriority:O}):P==="script"&&M.d.X(z,{crossOrigin:I,integrity:E,fetchPriority:O,nonce:typeof T.nonce==="string"?T.nonce:void 0})}},jS.preinitModule=function(z,T){var P="";if(typeof z==="string"&&z||(P+=" The `href` argument encountered was "+Y(z)+"."),T!==void 0&&typeof T!=="object"?P+=" The `options` argument encountered was "+Y(T)+".":T&&("as"in T)&&T.as!=="script"&&(P+=" The `as` option encountered was "+K(T.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=T&&typeof T.as==="string"?T.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,z)}if(typeof z==="string")if(typeof T==="object"&&T!==null){if(T.as==null||T.as==="script")P=X(T.as,T.crossOrigin),M.d.M(z,{crossOrigin:P,integrity:typeof T.integrity==="string"?T.integrity:void 0,nonce:typeof T.nonce==="string"?T.nonce:void 0})}else T==null&&M.d.M(z)},jS.preload=function(z,T){var P="";if(typeof z==="string"&&z||(P+=" The `href` argument encountered was "+Y(z)+"."),T==null||typeof T!=="object"?P+=" The `options` argument encountered was "+Y(T)+".":typeof T.as==="string"&&T.as||(P+=" The `as` option encountered was "+Y(T.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 z==="string"&&typeof T==="object"&&T!==null&&typeof T.as==="string"){P=T.as;var I=X(P,T.crossOrigin);M.d.L(z,P,{crossOrigin:I,integrity:typeof T.integrity==="string"?T.integrity:void 0,nonce:typeof T.nonce==="string"?T.nonce:void 0,type:typeof T.type==="string"?T.type:void 0,fetchPriority:typeof T.fetchPriority==="string"?T.fetchPriority:void 0,referrerPolicy:typeof T.referrerPolicy==="string"?T.referrerPolicy:void 0,imageSrcSet:typeof T.imageSrcSet==="string"?T.imageSrcSet:void 0,imageSizes:typeof T.imageSizes==="string"?T.imageSizes:void 0,media:typeof T.media==="string"?T.media:void 0})}},jS.preloadModule=function(z,T){var P="";typeof z==="string"&&z||(P+=" The `href` argument encountered was "+Y(z)+"."),T!==void 0&&typeof T!=="object"?P+=" The `options` argument encountered was "+Y(T)+".":T&&("as"in T)&&typeof T.as!=="string"&&(P+=" The `as` option encountered was "+Y(T.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 z==="string"&&(T?(P=X(T.as,T.crossOrigin),M.d.m(z,{as:typeof T.as==="string"&&T.as!=="script"?T.as:void 0,crossOrigin:P,integrity:typeof T.integrity==="string"?T.integrity:void 0})):M.d.m(z))},jS.requestFormReset=function(z){M.d.r(z)},jS.unstable_batchedUpdates=function(z,T){return z(T)},jS.useFormState=function(z,T,P){return H().useFormState(z,T,P)},jS.useFormStatus=function(){return H().useHostTransitionStatus()},jS.version="19.2.7",typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop==="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()});var pT=E8((bk,dT)=>{var SS=t(mT());dT.exports=SS});var cT=E8((DS)=>{var $1=t(uT()),MQ=t(I1()),FK=t(pT());(function(){function J($,Q){for($=$.memoizedState;$!==null&&0<Q;)$=$.next,Q--;return $}function Z($,Q,G,N){if(G>=Q.length)return N;var U=Q[G],B=$6($)?$.slice():u0({},$);return B[U]=Z($[U],Q,G+1,N),B}function q($,Q,G){if(Q.length!==G.length)console.warn("copyWithRename() expects paths of the same length");else{for(var N=0;N<G.length-1;N++)if(Q[N]!==G[N]){console.warn("copyWithRename() expects paths to be the same except for the deepest key");return}return X($,Q,G,0)}}function X($,Q,G,N){var U=Q[N],B=$6($)?$.slice():u0({},$);return N+1===Q.length?(B[G[N]]=B[U],$6(B)?B.splice(U,1):delete B[U]):B[U]=X($[U],Q,G,N+1),B}function Y($,Q,G){var N=Q[G],U=$6($)?$.slice():u0({},$);if(G+1===Q.length)return $6(U)?U.splice(N,1):delete U[N],U;return U[N]=Y($[N],Q,G+1),U}function K(){return!1}function H(){return null}function M(){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 W(){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 z(){}function T($){var Q=[];return $.forEach(function(G){Q.push(G)}),Q.sort().join(", ")}function P($,Q,G,N){return new dC($,Q,G,N)}function I($,Q){$.context===X8&&(EN($.current,2,Q,$,null,null),W9())}function E($,Q){if(D5!==null){var G=Q.staleFamilies;Q=Q.updatedFamilies,$2(),EB($.current,Q,G),W9()}}function O($){D5=$}function V($){return!(!$||$.nodeType!==1&&$.nodeType!==9&&$.nodeType!==11)}function D($){var Q=$,G=$;if($.alternate)for(;Q.return;)Q=Q.return;else{$=Q;do Q=$,(Q.flags&4098)!==0&&(G=Q.return),$=Q.return;while($)}return Q.tag===3?G:null}function h($){if($.tag===13){var Q=$.memoizedState;if(Q===null&&($=$.alternate,$!==null&&(Q=$.memoizedState)),Q!==null)return Q.dehydrated}return null}function p($){if($.tag===31){var Q=$.memoizedState;if(Q===null&&($=$.alternate,$!==null&&(Q=$.memoizedState)),Q!==null)return Q.dehydrated}return null}function s($){if(D($)!==$)throw Error("Unable to find node on an unmounted component.")}function n($){var Q=$.alternate;if(!Q){if(Q=D($),Q===null)throw Error("Unable to find node on an unmounted component.");return Q!==$?null:$}for(var G=$,N=Q;;){var U=G.return;if(U===null)break;var B=U.alternate;if(B===null){if(N=U.return,N!==null){G=N;continue}break}if(U.child===B.child){for(B=U.child;B;){if(B===G)return s(U),$;if(B===N)return s(U),Q;B=B.sibling}throw Error("Unable to find node on an unmounted component.")}if(G.return!==N.return)G=U,N=B;else{for(var F=!1,R=U.child;R;){if(R===G){F=!0,G=U,N=B;break}if(R===N){F=!0,N=U,G=B;break}R=R.sibling}if(!F){for(R=B.child;R;){if(R===G){F=!0,G=B,N=U;break}if(R===N){F=!0,N=B,G=U;break}R=R.sibling}if(!F)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!==N)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?$:Q}function Z0($){var Q=$.tag;if(Q===5||Q===26||Q===27||Q===6)return $;for($=$.child;$!==null;){if(Q=Z0($),Q!==null)return Q;$=$.sibling}return null}function a($){if($===null||typeof $!=="object")return null;return $=bW&&$[bW]||$["@@iterator"],typeof $==="function"?$:null}function i($){if($==null)return null;if(typeof $==="function")return $.$$typeof===UI?null:$.displayName||$.name||null;if(typeof $==="string")return $;switch($){case P9:return"Fragment";case kN:return"Profiler";case wG:return"StrictMode";case yN:return"Suspense";case fN:return"SuspenseList";case gN: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 L9:return"Portal";case E4:return $.displayName||"Context";case bN:return($._context.displayName||"Context")+".Consumer";case K2:var Q=$.render;return $=$.displayName,$||($=Q.displayName||Q.name||"",$=$!==""?"ForwardRef("+$+")":"ForwardRef"),$;case RG:return Q=$.displayName||null,Q!==null?Q:i($.type)||"Memo";case F5:Q=$._payload,$=$._init;try{return i($(Q))}catch(G){}}return null}function X0($){return typeof $.tag==="number"?d($):typeof $.name==="string"?$.name:null}function d($){var Q=$.type;switch($.tag){case 31:return"Activity";case 24:return"Cache";case 9:return(Q._context.displayName||"Context")+".Consumer";case 10:return Q.displayName||"Context";case 18:return"DehydratedFragment";case 11:return $=Q.render,$=$.displayName||$.name||"",Q.displayName||($!==""?"ForwardRef("+$+")":"ForwardRef");case 7:return"Fragment";case 26:case 27:case 5:return Q;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return i(Q);case 8:return Q===wG?"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 Q==="function")return Q.displayName||Q.name||null;if(typeof Q==="string")return Q;break;case 29:if(Q=$._debugInfo,Q!=null){for(var G=Q.length-1;0<=G;G--)if(typeof Q[G].name==="string")return Q[G].name}if($.return!==null)return d($.return)}return null}function B0($){return{current:$}}function H0($,Q){0>G$?console.error("Unexpected pop."):(Q!==xN[G$]&&console.error("Unexpected Fiber popped."),$.current=hN[G$],hN[G$]=null,xN[G$]=null,G$--)}function C0($,Q,G){G$++,hN[G$]=$.current,xN[G$]=G,$.current=Q}function T1($){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($,Q){C0($8,Q,$),C0(B2,$,$),C0(e$,null,$);var G=Q.nodeType;switch(G){case 9:case 11:G=G===9?"#document":"#fragment",Q=(Q=Q.documentElement)?(Q=Q.namespaceURI)?GW(Q):z$:z$;break;default:if(G=Q.tagName,Q=Q.namespaceURI)Q=GW(Q),Q=qW(Q,G);else switch(G){case"svg":Q=QQ;break;case"math":Q=Fq;break;default:Q=z$}}G=G.toLowerCase(),G=tK(null,G),G={context:Q,ancestorInfo:G},H0(e$,$),C0(e$,G,$)}function e($){H0(e$,$),H0(B2,$),H0($8,$)}function N0(){return T1(e$.current)}function c0($){$.memoizedState!==null&&C0(zG,$,$);var Q=T1(e$.current),G=$.type,N=qW(Q.context,G);G=tK(Q.ancestorInfo,G),N={context:N,ancestorInfo:G},Q!==N&&(C0(B2,$,$),C0(e$,N,$))}function r0($){B2.current===$&&(H0(e$,$),H0(B2,$)),zG.current===$&&(H0(zG,$),JJ._currentValue=v7)}function v(){}function o(){if(H2===0){yW=console.log,fW=console.info,gW=console.warn,hW=console.error,xW=console.group,uW=console.groupCollapsed,mW=console.groupEnd;var $={configurable:!0,enumerable:!0,value:v,writable:!0};Object.defineProperties(console,{info:$,log:$,warn:$,error:$,group:$,groupCollapsed:$,groupEnd:$})}H2++}function W0(){if(H2--,H2===0){var $={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:u0({},$,{value:yW}),info:u0({},$,{value:fW}),warn:u0({},$,{value:gW}),error:u0({},$,{value:hW}),group:u0({},$,{value:xW}),groupCollapsed:u0({},$,{value:uW}),groupEnd:u0({},$,{value:mW})})}0>H2&&console.error("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}function R0($){var Q=Error.prepareStackTrace;if(Error.prepareStackTrace=void 0,$=$.stack,Error.prepareStackTrace=Q,$.startsWith(`Error: react-stack-top-frame
|
|
18
|
+
`)&&($=$.slice(29)),Q=$.indexOf(`
|
|
19
|
+
`),Q!==-1&&($=$.slice(Q+1)),Q=$.indexOf("react_stack_bottom_frame"),Q!==-1&&(Q=$.lastIndexOf(`
|
|
20
|
+
`,Q)),Q!==-1)$=$.slice(0,Q);else return"";return $}function h0($){if(uN===void 0)try{throw Error()}catch(G){var Q=G.stack.trim().match(/\n( *(at )?)/);uN=Q&&Q[1]||"",dW=-1<G.stack.indexOf(`
|
|
21
21
|
at`)?" (<anonymous>)":-1<G.stack.indexOf("@")?"@unknown:0:0":""}return`
|
|
22
|
-
`+
|
|
23
|
-
`),
|
|
24
|
-
`);for(
|
|
25
|
-
`+C[B].replace(" at new "," at ");return $.displayName&&
|
|
26
|
-
`),j=
|
|
27
|
-
`+j;break $}}g=
|
|
28
|
-
Error generating stack:
|
|
29
|
-
|
|
30
|
-
`+U)}}else if($.debugStack!=null){var B=$.debugStack;($=$.owner)&&B&&(
|
|
31
|
-
`+
|
|
22
|
+
`+uN+$+dW}function p1($,Q){if(!$||mN)return"";var G=dN.get($);if(G!==void 0)return G;mN=!0,G=Error.prepareStackTrace,Error.prepareStackTrace=void 0;var N=null;N=u.H,u.H=null,o();try{var U={DetermineComponentFrameRoot:function(){try{if(Q){var j=function(){throw Error()};if(Object.defineProperty(j.prototype,"props",{set:function(){throw Error()}}),typeof Reflect==="object"&&Reflect.construct){try{Reflect.construct(j,[])}catch($0){var g=$0}Reflect.construct($,[],j)}else{try{j.call()}catch($0){g=$0}$.call(j.prototype)}}else{try{throw Error()}catch($0){g=$0}(j=$())&&typeof j.catch==="function"&&j.catch(function(){})}}catch($0){if($0&&g&&typeof $0.stack==="string")return[$0.stack,g.stack]}return[null,null]}};U.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var B=Object.getOwnPropertyDescriptor(U.DetermineComponentFrameRoot,"name");B&&B.configurable&&Object.defineProperty(U.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var F=U.DetermineComponentFrameRoot(),R=F[0],L=F[1];if(R&&L){var C=R.split(`
|
|
23
|
+
`),b=L.split(`
|
|
24
|
+
`);for(F=B=0;B<C.length&&!C[B].includes("DetermineComponentFrameRoot");)B++;for(;F<b.length&&!b[F].includes("DetermineComponentFrameRoot");)F++;if(B===C.length||F===b.length)for(B=C.length-1,F=b.length-1;1<=B&&0<=F&&C[B]!==b[F];)F--;for(;1<=B&&0<=F;B--,F--)if(C[B]!==b[F]){if(B!==1||F!==1)do if(B--,F--,0>F||C[B]!==b[F]){var y=`
|
|
25
|
+
`+C[B].replace(" at new "," at ");return $.displayName&&y.includes("<anonymous>")&&(y=y.replace("<anonymous>",$.displayName)),typeof $==="function"&&dN.set($,y),y}while(1<=B&&0<=F);break}}}finally{mN=!1,u.H=N,W0(),Error.prepareStackTrace=G}return C=(C=$?$.displayName||$.name:"")?h0(C):"",typeof $==="function"&&dN.set($,C),C}function j0($,Q){switch($.tag){case 26:case 27:case 5:return h0($.type);case 16:return h0("Lazy");case 13:return $.child!==Q&&Q!==null?h0("Suspense Fallback"):h0("Suspense");case 19:return h0("SuspenseList");case 0:case 15:return p1($.type,!1);case 11:return p1($.type.render,!1);case 1:return p1($.type,!0);case 31:return h0("Activity");default:return""}}function A1($){try{var Q="",G=null;do{Q+=j0($,G);var N=$._debugInfo;if(N)for(var U=N.length-1;0<=U;U--){var B=N[U];if(typeof B.name==="string"){var F=Q;$:{var{name:R,env:L,debugLocation:C}=B;if(C!=null){var b=R0(C),y=b.lastIndexOf(`
|
|
26
|
+
`),j=y===-1?b:b.slice(y+1);if(j.indexOf(R)!==-1){var g=`
|
|
27
|
+
`+j;break $}}g=h0(R+(L?" ["+L+"]":""))}Q=F+g}}G=$,$=$.return}while($);return Q}catch($0){return`
|
|
28
|
+
Error generating stack: `+$0.message+`
|
|
29
|
+
`+$0.stack}}function P6($){return($=$?$.displayName||$.name:"")?h0($):""}function n5(){if(w5===null)return null;var $=w5._debugOwner;return $!=null?X0($):null}function qZ(){if(w5===null)return"";var $=w5;try{var Q="";switch($.tag===6&&($=$.return),$.tag){case 26:case 27:case 5:Q+=h0($.type);break;case 13:Q+=h0("Suspense");break;case 19:Q+=h0("SuspenseList");break;case 31:Q+=h0("Activity");break;case 30:case 0:case 15:case 1:$._debugOwner||Q!==""||(Q+=P6($.type));break;case 11:$._debugOwner||Q!==""||(Q+=P6($.type.render))}for(;$;)if(typeof $.tag==="number"){var G=$;$=G._debugOwner;var N=G._debugStack;if($&&N){var U=R0(N);U!==""&&(Q+=`
|
|
30
|
+
`+U)}}else if($.debugStack!=null){var B=$.debugStack;($=$.owner)&&B&&(Q+=`
|
|
31
|
+
`+R0(B))}else break;var F=Q}catch(R){F=`
|
|
32
32
|
Error generating stack: `+R.message+`
|
|
33
|
-
`+R.stack}return W}function G0($,Z,G,Y,U,B,W){var R=F6;i9($);try{return $!==null&&$._debugTask?$._debugTask.run(Z.bind(null,G,Y,U,B,W)):Z(G,Y,U,B,W)}finally{i9(R)}throw Error("runWithFiberInDEV should never be called in production. This is a bug in React.")}function i9($){x.getCurrentStack=$===null?null:ZJ,O4=!1,F6=$}function x2($){return typeof Symbol==="function"&&Symbol.toStringTag&&$[Symbol.toStringTag]||$.constructor.name||"Object"}function v8($){try{return X5($),!1}catch(Z){return!0}}function X5($){return""+$}function B1($,Z){if(v8($))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,x2($)),X5($)}function V$($,Z){if(v8($))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,x2($)),X5($)}function k0($){if(v8($))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.",x2($)),X5($)}function a9($){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{L7=Z.inject($),_5=Z}catch(G){console.error("React instrumentation encountered an error: %o.",G)}return Z.checkDCE?!0:!1}function w1($){if(typeof WI==="function"&&wI($),_5&&typeof _5.setStrictMode==="function")try{_5.setStrictMode(L7,$)}catch(Z){E4||(E4=!0,console.error("React instrumentation encountered an error: %o",Z))}}function QJ($){return $>>>=0,$===0?32:31-(RI($)/zI|0)|0}function Y4($){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 m2($,Z,G){var Y=$.pendingLanes;if(Y===0)return 0;var U=0,B=$.suspendedLanes,W=$.pingedLanes;$=$.warmLanes;var R=Y&134217727;return R!==0?(Y=R&~B,Y!==0?U=Y4(Y):(W&=R,W!==0?U=Y4(W):G||(G=R&~$,G!==0&&(U=Y4(G))))):(R=Y&~B,R!==0?U=Y4(R):W!==0?U=Y4(W):G||(G=Y&~$,G!==0&&(U=Y4(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 d2($,Z){return($.pendingLanes&~($.suspendedLanes&~$.pingedLanes)&Z)===0}function _X($,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 t9(){var $=RG;return RG<<=1,(RG&62914560)===0&&(RG=4194304),$}function e9($){for(var Z=[],G=0;31>G;G++)Z.push($);return Z}function b8($,Z){$.pendingLanes|=Z,Z!==268435456&&($.suspendedLanes=0,$.pingedLanes=0,$.warmLanes=0)}function JJ($,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:R,expirationTimes:P,hiddenUpdates:C}=$;for(G=W&~G;0<G;){var k=31-j5(G),f=1<<k;R[k]=0,P[k]=-1;var j=C[k];if(j!==null)for(C[k]=null,k=0;k<j.length;k++){var g=j[k];g!==null&&(g.lane&=-536870913)}G&=~f}Y!==0&&p2($,Y,0),B!==0&&U===0&&$.tag!==0&&($.suspendedLanes|=B&~(W&~Z))}function p2($,Z,G){$.pendingLanes|=Z,$.suspendedLanes&=~Z;var Y=31-j5(Z);$.entangledLanes|=Z,$.entanglements[Y]=$.entanglements[Y]|1073741824|G&261930}function c2($,Z){var G=$.entangledLanes|=Z;for($=$.entanglements;G;){var Y=31-j5(G),U=1<<Y;U&Z|$[Y]&Z&&($[Y]|=Z),G&=~U}}function l2($,Z){var G=Z&-Z;return G=(G&42)!==0?1:r2(G),(G&($.suspendedLanes|Z))!==0?0:G}function r2($){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 O$($,Z,G){if(A4)for($=$.pendingUpdatersLaneMap;0<G;){var Y=31-j5(G),U=1<<Y;$[Y].add(Z),G&=~U}}function k8($,Z){if(A4)for(var{pendingUpdatersLaneMap:G,memoizedUpdaters:Y}=$;0<Z;){var U=31-j5(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 _($){return $&=-$,W6!==0&&W6<$?a6!==0&&a6<$?($&134217727)!==0?j4:zG:a6:W6}function y(){var $=q1.p;if($!==0)return $;return $=window.event,$===void 0?j4:IF($.type)}function r($,Z){var G=q1.p;try{return q1.p=$,Z()}finally{q1.p=G}}function Z0($){delete $[F5],delete $[S5],delete $[pY],delete $[TI],delete $[PI]}function Y0($){var Z=$[F5];if(Z)return Z;for(var G=$.parentNode;G;){if(Z=G[a8]||G[F5]){if(G=Z.alternate,Z.child!==null||G!==null&&G.child!==null)for($=KF($);$!==null;){if(G=$[F5])return G;$=KF($)}return Z}$=G,G=$.parentNode}return null}function j0($){if($=$[F5]||$[a8]){var Z=$.tag;if(Z===5||Z===6||Z===13||Z===31||Z===26||Z===27||Z===3)return $}return null}function S0($){var Z=$.tag;if(Z===5||Z===26||Z===27||Z===6)return $.stateNode;throw Error("getNodeFromInstance: Invalid argument.")}function e0($){var Z=$[xF];return Z||(Z=$[xF]={hoistableStyles:new Map,hoistableScripts:new Map}),Z}function z0($){$[HZ]=!0}function L5($,Z){G6($,Z),G6($+"Capture",Z)}function G6($,Z){N9[$]&&console.error("EventRegistry: More than one plugin attempted to publish the same registration name, `%s`.",$),N9[$]=Z;var G=$.toLowerCase();cY[G]=$,$==="onDoubleClick"&&(cY.ondblclick=$);for($=0;$<Z.length;$++)mF.add(Z[$])}function f8($,Z){LI[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 E$($){if(i6.call(pF,$))return!0;if(i6.call(dF,$))return!1;if(CI.test($))return pF[$]=!0;return dF[$]=!0,console.error("Invalid attribute name: `%s`",$),!1}function kK($,Z,G){if(E$(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 B1(G,Z),$===""+G?G:$}}function GJ($,Z,G){if(E$(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}}B1(G,Z),$.setAttribute(Z,""+G)}}function XJ($,Z,G){if(G===null)$.removeAttribute(Z);else{switch(typeof G){case"undefined":case"function":case"symbol":case"boolean":$.removeAttribute(Z);return}B1(G,Z),$.setAttribute(Z,""+G)}}function r4($,Z,G,Y){if(Y===null)$.removeAttribute(G);else{switch(typeof Y){case"undefined":case"function":case"symbol":case"boolean":$.removeAttribute(G);return}B1(Y,G),$.setAttributeNS(Z,G,""+Y)}}function I6($){switch(typeof $){case"bigint":case"boolean":case"number":case"string":case"undefined":return $;case"object":return k0($),$;default:return""}}function fK($){var Z=$.type;return($=$.nodeName)&&$.toLowerCase()==="input"&&(Z==="checkbox"||Z==="radio")}function zC($,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){k0(W),G=""+W,B.call(this,W)}}),Object.defineProperty($,Z,{enumerable:Y.enumerable}),{getValue:function(){return G},setValue:function(W){k0(W),G=""+W},stopTracking:function(){$._valueTracker=null,delete $[Z]}}}}function IX($){if(!$._valueTracker){var Z=fK($)?"checked":"value";$._valueTracker=zC($,Z,""+$[Z])}}function yK($){if(!$)return!1;var Z=$._valueTracker;if(!Z)return!0;var G=Z.getValue(),Y="";return $&&(Y=fK($)?$.checked?"true":"false":$.value),$=Y,$!==G?(Z.setValue($),!0):!1}function qJ($){if($=$||(typeof document<"u"?document:void 0),typeof $>"u")return null;try{return $.activeElement||$.body}catch(Z){return $.body}}function V6($){return $.replace(_I,function(Z){return"\\"+Z.charCodeAt(0).toString(16)+" "})}function gK($,Z){Z.checked===void 0||Z.defaultChecked===void 0||lF||(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",r6()||"A component",Z.type),lF=!0),Z.value===void 0||Z.defaultValue===void 0||cF||(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",r6()||"A component",Z.type),cF=!0)}function VX($,Z,G,Y,U,B,W,R){if($.name="",W!=null&&typeof W!=="function"&&typeof W!=="symbol"&&typeof W!=="boolean"?(B1(W,"type"),$.type=W):$.removeAttribute("type"),Z!=null)if(W==="number"){if(Z===0&&$.value===""||$.value!=Z)$.value=""+I6(Z)}else $.value!==""+I6(Z)&&($.value=""+I6(Z));else W!=="submit"&&W!=="reset"||$.removeAttribute("value");Z!=null?OX($,W,I6(Z)):G!=null?OX($,W,I6(G)):Y!=null&&$.removeAttribute("value"),U==null&&B!=null&&($.defaultChecked=!!B),U!=null&&($.checked=U&&typeof U!=="function"&&typeof U!=="symbol"),R!=null&&typeof R!=="function"&&typeof R!=="symbol"&&typeof R!=="boolean"?(B1(R,"name"),$.name=""+I6(R)):$.removeAttribute("name")}function hK($,Z,G,Y,U,B,W,R){if(B!=null&&typeof B!=="function"&&typeof B!=="symbol"&&typeof B!=="boolean"&&(B1(B,"type"),$.type=B),Z!=null||G!=null){if(!(B!=="submit"&&B!=="reset"||Z!==void 0&&Z!==null)){IX($);return}G=G!=null?""+I6(G):"",Z=Z!=null?""+I6(Z):G,R||Z===$.value||($.value=Z),$.defaultValue=Z}Y=Y!=null?Y:U,Y=typeof Y!=="function"&&typeof Y!=="symbol"&&!!Y,$.checked=R?$.checked:!!Y,$.defaultChecked=!!Y,W!=null&&typeof W!=="function"&&typeof W!=="symbol"&&typeof W!=="boolean"&&(B1(W,"name"),$.name=W),IX($)}function OX($,Z,G){Z==="number"&&qJ($.ownerDocument)===$||$.defaultValue===""+G||($.defaultValue=""+G)}function uK($,Z){Z.value==null&&(typeof Z.children==="object"&&Z.children!==null?H$.Children.forEach(Z.children,function(G){G==null||typeof G==="string"||typeof G==="number"||typeof G==="bigint"||sF||(sF=!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||nF||(nF=!0,console.error("Pass a `value` prop if you set dangerouslyInnerHTML so React knows which value should be selected."))),Z.selected==null||rF||(console.error("Use the `defaultValue` or `value` props on <select> instead of setting `selected` on <option>."),rF=!0)}function xK(){var $=r6();return $?`
|
|
34
|
-
|
|
35
|
-
Check the render method of \``+$+"`.":""}function
|
|
36
|
-
`;if(typeof
|
|
37
|
-
`+
|
|
38
|
-
`}return
|
|
39
|
-
`}function
|
|
40
|
-
`:0<
|
|
33
|
+
`+R.stack}return F}function q0($,Q,G,N,U,B,F){var R=w5;t7($);try{return $!==null&&$._debugTask?$._debugTask.run(Q.bind(null,G,N,U,B,F)):Q(G,N,U,B,F)}finally{t7(R)}throw Error("runWithFiberInDEV should never be called in production. This is a bug in React.")}function t7($){u.getCurrentStack=$===null?null:qZ,A4=!1,w5=$}function d8($){return typeof Symbol==="function"&&Symbol.toStringTag&&$[Symbol.toStringTag]||$.constructor.name||"Object"}function g$($){try{return q6($),!1}catch(Q){return!0}}function q6($){return""+$}function K1($,Q){if(g$($))return console.error("The provided `%s` attribute is an unsupported type %s. This value must be coerced to a string before using it here.",Q,d8($)),q6($)}function OQ($,Q){if(g$($))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.",Q,d8($)),q6($)}function k0($){if(g$($))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.",d8($)),q6($)}function e7($){if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u")return!1;var Q=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(Q.isDisabled)return!0;if(!Q.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{_9=Q.inject($),I6=Q}catch(G){console.error("React instrumentation encountered an error: %o.",G)}return Q.checkDCE?!0:!1}function F1($){if(typeof wI==="function"&&RI($),I6&&typeof I6.setStrictMode==="function")try{I6.setStrictMode(_9,$)}catch(Q){j4||(j4=!0,console.error("React instrumentation encountered an error: %o",Q))}}function XZ($){return $>>>=0,$===0?32:31-(zI($)/TI|0)|0}function U4($){var Q=$&42;if(Q!==0)return Q;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 p8($,Q,G){var N=$.pendingLanes;if(N===0)return 0;var U=0,B=$.suspendedLanes,F=$.pingedLanes;$=$.warmLanes;var R=N&134217727;return R!==0?(N=R&~B,N!==0?U=U4(N):(F&=R,F!==0?U=U4(F):G||(G=R&~$,G!==0&&(U=U4(G))))):(R=N&~B,R!==0?U=U4(R):F!==0?U=U4(F):G||(G=N&~$,G!==0&&(U=U4(G)))),U===0?0:Q!==0&&Q!==U&&(Q&B)===0&&(B=U&-U,G=Q&-Q,B>=G||B===32&&(G&4194048)!==0)?Q:U}function c8($,Q){return($.pendingLanes&~($.suspendedLanes&~$.pingedLanes)&Q)===0}function EX($,Q){switch($){case 1:case 2:case 4:case 8:case 64:return Q+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 Q+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 $9(){var $=PG;return PG<<=1,(PG&62914560)===0&&(PG=4194304),$}function Q9($){for(var Q=[],G=0;31>G;G++)Q.push($);return Q}function h$($,Q){$.pendingLanes|=Q,Q!==268435456&&($.suspendedLanes=0,$.pingedLanes=0,$.warmLanes=0)}function NZ($,Q,G,N,U,B){var F=$.pendingLanes;$.pendingLanes=G,$.suspendedLanes=0,$.pingedLanes=0,$.warmLanes=0,$.expiredLanes&=G,$.entangledLanes&=G,$.errorRecoveryDisabledLanes&=G,$.shellSuspendCounter=0;var{entanglements:R,expirationTimes:L,hiddenUpdates:C}=$;for(G=F&~G;0<G;){var b=31-D6(G),y=1<<b;R[b]=0,L[b]=-1;var j=C[b];if(j!==null)for(C[b]=null,b=0;b<j.length;b++){var g=j[b];g!==null&&(g.lane&=-536870913)}G&=~y}N!==0&&l8($,N,0),B!==0&&U===0&&$.tag!==0&&($.suspendedLanes|=B&~(F&~Q))}function l8($,Q,G){$.pendingLanes|=Q,$.suspendedLanes&=~Q;var N=31-D6(Q);$.entangledLanes|=Q,$.entanglements[N]=$.entanglements[N]|1073741824|G&261930}function r8($,Q){var G=$.entangledLanes|=Q;for($=$.entanglements;G;){var N=31-D6(G),U=1<<N;U&Q|$[N]&Q&&($[N]|=Q),G&=~U}}function s8($,Q){var G=Q&-Q;return G=(G&42)!==0?1:n8(G),(G&($.suspendedLanes|Q))!==0?0:G}function n8($){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 EQ($,Q,G){if(S4)for($=$.pendingUpdatersLaneMap;0<G;){var N=31-D6(G),U=1<<N;$[N].add(Q),G&=~U}}function x$($,Q){if(S4)for(var{pendingUpdatersLaneMap:G,memoizedUpdaters:N}=$;0<Q;){var U=31-D6(Q);$=1<<U,U=G[U],0<U.size&&(U.forEach(function(B){var F=B.alternate;F!==null&&N.has(F)||N.add(B)}),U.clear()),Q&=~$}}function _($){return $&=-$,R5!==0&&R5<$?e5!==0&&e5<$?($&134217727)!==0?D4:CG:e5:R5}function f(){var $=q1.p;if($!==0)return $;return $=window.event,$===void 0?D4:EW($.type)}function r($,Q){var G=q1.p;try{return q1.p=$,Q()}finally{q1.p=G}}function Q0($){delete $[F6],delete $[v6],delete $[sN],delete $[LI],delete $[PI]}function Y0($){var Q=$[F6];if(Q)return Q;for(var G=$.parentNode;G;){if(Q=G[J8]||G[F6]){if(G=Q.alternate,Q.child!==null||G!==null&&G.child!==null)for($=MW($);$!==null;){if(G=$[F6])return G;$=MW($)}return Q}$=G,G=$.parentNode}return null}function S0($){if($=$[F6]||$[J8]){var Q=$.tag;if(Q===5||Q===6||Q===13||Q===31||Q===26||Q===27||Q===3)return $}return null}function D0($){var Q=$.tag;if(Q===5||Q===26||Q===27||Q===6)return $.stateNode;throw Error("getNodeFromInstance: Invalid argument.")}function t0($){var Q=$[pW];return Q||(Q=$[pW]={hoistableStyles:new Map,hoistableScripts:new Map}),Q}function T0($){$[M2]=!0}function C6($,Q){X5($,Q),X5($+"Capture",Q)}function X5($,Q){K7[$]&&console.error("EventRegistry: More than one plugin attempted to publish the same registration name, `%s`.",$),K7[$]=Q;var G=$.toLowerCase();nN[G]=$,$==="onDoubleClick"&&(nN.ondblclick=$);for($=0;$<Q.length;$++)cW.add(Q[$])}function u$($,Q){CI[Q.type]||Q.onChange||Q.onInput||Q.readOnly||Q.disabled||Q.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`.")),Q.onChange||Q.readOnly||Q.disabled||Q.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 AQ($){if(t5.call(rW,$))return!0;if(t5.call(lW,$))return!1;if(_I.test($))return rW[$]=!0;return lW[$]=!0,console.error("Invalid attribute name: `%s`",$),!1}function gK($,Q,G){if(AQ(Q)){if(!$.hasAttribute(Q)){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(Q),$===""&&G===!0)return!0;return K1(G,Q),$===""+G?G:$}}function YZ($,Q,G){if(AQ(Q))if(G===null)$.removeAttribute(Q);else{switch(typeof G){case"undefined":case"function":case"symbol":$.removeAttribute(Q);return;case"boolean":var N=Q.toLowerCase().slice(0,5);if(N!=="data-"&&N!=="aria-"){$.removeAttribute(Q);return}}K1(G,Q),$.setAttribute(Q,""+G)}}function UZ($,Q,G){if(G===null)$.removeAttribute(Q);else{switch(typeof G){case"undefined":case"function":case"symbol":case"boolean":$.removeAttribute(Q);return}K1(G,Q),$.setAttribute(Q,""+G)}}function o4($,Q,G,N){if(N===null)$.removeAttribute(G);else{switch(typeof N){case"undefined":case"function":case"symbol":case"boolean":$.removeAttribute(G);return}K1(N,G),$.setAttributeNS(Q,G,""+N)}}function O5($){switch(typeof $){case"bigint":case"boolean":case"number":case"string":case"undefined":return $;case"object":return k0($),$;default:return""}}function hK($){var Q=$.type;return($=$.nodeName)&&$.toLowerCase()==="input"&&(Q==="checkbox"||Q==="radio")}function TC($,Q,G){var N=Object.getOwnPropertyDescriptor($.constructor.prototype,Q);if(!$.hasOwnProperty(Q)&&typeof N<"u"&&typeof N.get==="function"&&typeof N.set==="function"){var{get:U,set:B}=N;return Object.defineProperty($,Q,{configurable:!0,get:function(){return U.call(this)},set:function(F){k0(F),G=""+F,B.call(this,F)}}),Object.defineProperty($,Q,{enumerable:N.enumerable}),{getValue:function(){return G},setValue:function(F){k0(F),G=""+F},stopTracking:function(){$._valueTracker=null,delete $[Q]}}}}function AX($){if(!$._valueTracker){var Q=hK($)?"checked":"value";$._valueTracker=TC($,Q,""+$[Q])}}function xK($){if(!$)return!1;var Q=$._valueTracker;if(!Q)return!0;var G=Q.getValue(),N="";return $&&(N=hK($)?$.checked?"true":"false":$.value),$=N,$!==G?(Q.setValue($),!0):!1}function KZ($){if($=$||(typeof document<"u"?document:void 0),typeof $>"u")return null;try{return $.activeElement||$.body}catch(Q){return $.body}}function E5($){return $.replace(II,function(Q){return"\\"+Q.charCodeAt(0).toString(16)+" "})}function uK($,Q){Q.checked===void 0||Q.defaultChecked===void 0||nW||(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",n5()||"A component",Q.type),nW=!0),Q.value===void 0||Q.defaultValue===void 0||sW||(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",n5()||"A component",Q.type),sW=!0)}function jX($,Q,G,N,U,B,F,R){if($.name="",F!=null&&typeof F!=="function"&&typeof F!=="symbol"&&typeof F!=="boolean"?(K1(F,"type"),$.type=F):$.removeAttribute("type"),Q!=null)if(F==="number"){if(Q===0&&$.value===""||$.value!=Q)$.value=""+O5(Q)}else $.value!==""+O5(Q)&&($.value=""+O5(Q));else F!=="submit"&&F!=="reset"||$.removeAttribute("value");Q!=null?SX($,F,O5(Q)):G!=null?SX($,F,O5(G)):N!=null&&$.removeAttribute("value"),U==null&&B!=null&&($.defaultChecked=!!B),U!=null&&($.checked=U&&typeof U!=="function"&&typeof U!=="symbol"),R!=null&&typeof R!=="function"&&typeof R!=="symbol"&&typeof R!=="boolean"?(K1(R,"name"),$.name=""+O5(R)):$.removeAttribute("name")}function mK($,Q,G,N,U,B,F,R){if(B!=null&&typeof B!=="function"&&typeof B!=="symbol"&&typeof B!=="boolean"&&(K1(B,"type"),$.type=B),Q!=null||G!=null){if(!(B!=="submit"&&B!=="reset"||Q!==void 0&&Q!==null)){AX($);return}G=G!=null?""+O5(G):"",Q=Q!=null?""+O5(Q):G,R||Q===$.value||($.value=Q),$.defaultValue=Q}N=N!=null?N:U,N=typeof N!=="function"&&typeof N!=="symbol"&&!!N,$.checked=R?$.checked:!!N,$.defaultChecked=!!N,F!=null&&typeof F!=="function"&&typeof F!=="symbol"&&typeof F!=="boolean"&&(K1(F,"name"),$.name=F),AX($)}function SX($,Q,G){Q==="number"&&KZ($.ownerDocument)===$||$.defaultValue===""+G||($.defaultValue=""+G)}function dK($,Q){Q.value==null&&(typeof Q.children==="object"&&Q.children!==null?MQ.Children.forEach(Q.children,function(G){G==null||typeof G==="string"||typeof G==="number"||typeof G==="bigint"||iW||(iW=!0,console.error("Cannot infer the option value of complex children. Pass a `value` prop or use a plain string as children to <option>."))}):Q.dangerouslySetInnerHTML==null||aW||(aW=!0,console.error("Pass a `value` prop if you set dangerouslyInnerHTML so React knows which value should be selected."))),Q.selected==null||oW||(console.error("Use the `defaultValue` or `value` props on <select> instead of setting `selected` on <option>."),oW=!0)}function pK(){var $=n5();return $?`
|
|
34
|
+
|
|
35
|
+
Check the render method of \``+$+"`.":""}function J9($,Q,G,N){if($=$.options,Q){Q={};for(var U=0;U<G.length;U++)Q["$"+G[U]]=!0;for(G=0;G<$.length;G++)U=Q.hasOwnProperty("$"+$[G].value),$[G].selected!==U&&($[G].selected=U),U&&N&&($[G].defaultSelected=!0)}else{G=""+O5(G),Q=null;for(U=0;U<$.length;U++){if($[U].value===G){$[U].selected=!0,N&&($[U].defaultSelected=!0);return}Q!==null||$[U].disabled||(Q=$[U])}Q!==null&&(Q.selected=!0)}}function cK($,Q){for($=0;$<eW.length;$++){var G=eW[$];if(Q[G]!=null){var N=$6(Q[G]);Q.multiple&&!N?console.error("The `%s` prop supplied to <select> must be an array if `multiple` is true.%s",G,pK()):!Q.multiple&&N&&console.error("The `%s` prop supplied to <select> must be a scalar value if `multiple` is false.%s",G,pK())}}Q.value===void 0||Q.defaultValue===void 0||tW||(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"),tW=!0)}function lK($,Q){Q.value===void 0||Q.defaultValue===void 0||$F||(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",n5()||"A component"),$F=!0),Q.children!=null&&Q.value==null&&console.error("Use the `defaultValue` or `value` props instead of setting children on <textarea>.")}function rK($,Q,G){if(Q!=null&&(Q=""+O5(Q),Q!==$.value&&($.value=Q),G==null)){$.defaultValue!==Q&&($.defaultValue=Q);return}$.defaultValue=G!=null?""+O5(G):""}function sK($,Q,G,N){if(Q==null){if(N!=null){if(G!=null)throw Error("If you supply `defaultValue` on a <textarea>, do not pass children.");if($6(N)){if(1<N.length)throw Error("<textarea> can only have at most one child.");N=N[0]}G=N}G==null&&(G=""),Q=G}G=O5(Q),$.defaultValue=G,N=$.textContent,N===G&&N!==""&&N!==null&&($.value=N),AX($)}function nK($,Q){return $.serverProps===void 0&&$.serverTail.length===0&&$.children.length===1&&3<$.distanceFromLeaf&&$.distanceFromLeaf>15-Q?nK($.children[0],Q):$}function N5($){return" "+" ".repeat($)}function Z9($){return"+ "+" ".repeat($)}function o8($){return"- "+" ".repeat($)}function oK($){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 jQ($,Q){return QF.test($)?($=JSON.stringify($),$.length>Q-2?8>Q?'{"..."}':"{"+$.slice(0,Q-7)+'..."}':"{"+$+"}"):$.length>Q?5>Q?'{"..."}':$.slice(0,Q-3)+"...":$}function BZ($,Q,G){var N=120-2*G;if(Q===null)return Z9(G)+jQ($,N)+`
|
|
36
|
+
`;if(typeof Q==="string"){for(var U=0;U<Q.length&&U<$.length&&Q.charCodeAt(U)===$.charCodeAt(U);U++);return U>N-8&&10<U&&($="..."+$.slice(U-8),Q="..."+Q.slice(U-8)),Z9(G)+jQ($,N)+`
|
|
37
|
+
`+o8(G)+jQ(Q,N)+`
|
|
38
|
+
`}return N5(G)+jQ($,N)+`
|
|
39
|
+
`}function DX($){return Object.prototype.toString.call($).replace(/^\[object (.*)\]$/,function(Q,G){return G})}function SQ($,Q){switch(typeof $){case"string":return $=JSON.stringify($),$.length>Q?5>Q?'"..."':$.slice(0,Q-4)+'..."':$;case"object":if($===null)return"null";if($6($))return"[...]";if($.$$typeof===O4)return(Q=i($.type))?"<"+Q+">":"<...>";var G=DX($);if(G==="Object"){G="",Q-=2;for(var N in $)if($.hasOwnProperty(N)){var U=JSON.stringify(N);if(U!=='"'+N+'"'&&(N=U),Q-=N.length-2,U=SQ($[N],15>Q?Q:15),Q-=U.length,0>Q){G+=G===""?"...":", ...";break}G+=(G===""?"":",")+N+":"+U}return"{"+G+"}"}return G;case"function":return(Q=$.displayName||$.name)?"function "+Q:"function";default:return String($)}}function G9($,Q){return typeof $!=="string"||QF.test($)?"{"+SQ($,Q-2)+"}":$.length>Q-2?5>Q?'"..."':'"'+$.slice(0,Q-5)+'..."':'"'+$+'"'}function vX($,Q,G){var N=120-G.length-$.length,U=[],B;for(B in Q)if(Q.hasOwnProperty(B)&&B!=="children"){var F=G9(Q[B],120-G.length-B.length-1);N-=B.length+F.length+2,U.push(B+"="+F)}return U.length===0?G+"<"+$+`>
|
|
40
|
+
`:0<N?G+"<"+$+" "+U.join(" ")+`>
|
|
41
41
|
`:G+"<"+$+`
|
|
42
42
|
`+G+" "+U.join(`
|
|
43
43
|
`+G+" ")+`
|
|
44
44
|
`+G+`>
|
|
45
|
-
`}function
|
|
46
|
-
`,
|
|
47
|
-
`):
|
|
48
|
-
`}for(var
|
|
49
|
-
`);return
|
|
50
|
-
`+
|
|
51
|
-
`:(U+=
|
|
52
|
-
`,U+=
|
|
53
|
-
`)}else U+=
|
|
54
|
-
`}B.forEach(function(
|
|
55
|
-
`}}),U=U===""?
|
|
56
|
-
`:
|
|
57
|
-
`+U+
|
|
58
|
-
`}if($=G.children,
|
|
59
|
-
`}function
|
|
60
|
-
`+
|
|
61
|
-
`,
|
|
62
|
-
`,
|
|
63
|
-
`),U=$.serverTail,$.serverProps===null&&
|
|
64
|
-
`):C+
|
|
65
|
-
|
|
66
|
-
`+
|
|
67
|
-
This will cause a hydration error.%s`,
|
|
68
|
-
This will cause a hydration error.%s`,
|
|
69
|
-
See this log for the ancestor stack trace.`,
|
|
70
|
-
This will cause a hydration error.%s`,
|
|
71
|
-
This will cause a hydration error.%s`,Z,G),!1}function S$($,Z){if(Z){var G=$.firstChild;if(G&&G===$.lastChild&&G.nodeType===3){G.nodeValue=Z;return}}$.textContent=Z}function CC($){return $.replace(jI,function(Z,G){return G.toUpperCase()})}function tK($,Z,G){var Y=Z.indexOf("--")===0;Y||(-1<Z.indexOf("-")?C7.hasOwnProperty(Z)&&C7[Z]||(C7[Z]=!0,console.error("Unsupported style property %s. Did you mean %s?",Z,CC(Z.replace(AI,"ms-")))):EI.test(Z)?C7.hasOwnProperty(Z)&&C7[Z]||(C7[Z]=!0,console.error("Unsupported vendor-prefixed style property %s. Did you mean %s?",Z,Z.charAt(0).toUpperCase()+Z.slice(1))):!JW.test(G)||rY.hasOwnProperty(G)&&rY[G]||(rY[G]=!0,console.error(`Style property values shouldn't contain a semicolon. Try "%s: %s" instead.`,Z,G.replace(JW,""))),typeof G==="number"&&(isNaN(G)?GW||(GW=!0,console.error("`NaN` is an invalid value for the `%s` css style property.",Z)):isFinite(G)||XW||(XW=!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||qW.has(Z)?Z==="float"?$.cssFloat=G:(V$(G,Z),$[Z]=(""+G).trim()):$[Z]=G+"px"}function eK($,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=lY[U]||[U],W=0;W<B.length;W++)Y[B[W]]=U}for(var R in Z)if(Z.hasOwnProperty(R)&&(!G||G[R]!==Z[R]))for(U=lY[R]||[R],B=0;B<U.length;B++)Y[U[B]]=R;R={};for(var P in Z)for(U=lY[P]||[P],B=0;B<U.length;B++)R[U[B]]=P;P={};for(var C in Y)if(U=Y[C],(B=R[C])&&U!==B&&(W=U+","+B,!P[W])){P[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 j in Z)C=Z[j],Z.hasOwnProperty(j)&&G[j]!==C&&tK($,j,C)}else for(Y in Z)Z.hasOwnProperty(Y)&&tK($,Y,Z[Y])}function D$($){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 $B($){return SI.get($)||$}function _C($,Z){if(i6.call(I7,Z)&&I7[Z])return!0;if(vI.test(Z)){if($="aria-"+Z.slice(4).toLowerCase(),$=YW.hasOwnProperty($)?$:null,$==null)return console.error("Invalid ARIA attribute `%s`. ARIA attributes follow the pattern aria-* and must be lowercase.",Z),I7[Z]=!0;if(Z!==$)return console.error("Invalid ARIA attribute `%s`. Did you mean `%s`?",Z,$),I7[Z]=!0}if(DI.test(Z)){if($=Z.toLowerCase(),$=YW.hasOwnProperty($)?$:null,$==null)return I7[Z]=!0,!1;Z!==$&&(console.error("Unknown ARIA attribute `%s`. Did you mean `%s`?",Z,$),I7[Z]=!0)}return!0}function IC($,Z){var G=[],Y;for(Y in Z)_C($,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 VC($,Z,G,Y){if(i6.call(D5,Z)&&D5[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."),D5[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),D5[Z]=!0;if(UW.test(Z))return console.error("Unknown event handler property `%s`. It will be ignored.",Z),D5[Z]=!0}else if(UW.test(Z))return bI.test(Z)&&console.error("Invalid event handler property `%s`. React events use the camelCase naming convention, for example `onClick`.",Z),D5[Z]=!0;if(kI.test(Z)||fI.test(Z))return!0;if(U==="innerhtml")return console.error("Directly setting property `innerHTML` is not permitted. For more information, lookup documentation on `dangerouslySetInnerHTML`."),D5[Z]=!0;if(U==="aria")return console.error("The `aria` attribute is reserved for future use in React. Pass individual `aria-` attributes instead."),D5[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),D5[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),D5[Z]=!0;if(LG.hasOwnProperty(U)){if(U=LG[U],U!==Z)return console.error("Invalid DOM property `%s`. Did you mean `%s`?",Z,U),D5[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),D5[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),D5[Z]=!0}case"function":case"symbol":return D5[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),D5[Z]=!0}}return!0}function OC($,Z,G){var Y=[],U;for(U in Z)VC($,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 v$($){return yI.test(""+$)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":$}function s4(){}function vX($){return $=$.target||$.srcElement||window,$.correspondingUseElement&&($=$.correspondingUseElement),$.nodeType===3?$.parentNode:$}function ZB($){var Z=j0($);if(Z&&($=Z.stateNode)){var G=$[S5]||null;$:switch($=Z.stateNode,Z.type){case"input":if(VX($,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;B1(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[S5]||null;if(!U)throw Error("ReactDOMInput: Mixing React and non-React radio inputs with the same `name` is not supported.");VX(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&&yK(Y)}break $;case"textarea":pK($,G.value,G.defaultValue);break $;case"select":Z=G.value,Z!=null&&$7($,!!G.multiple,Z,!1)}}}function QB($,Z,G){if(sY)return $(Z,G);sY=!0;try{var Y=$(Z);return Y}finally{if(sY=!1,V7!==null||O7!==null){if(H7(),V7&&(Z=V7,$=O7,O7=V7=null,ZB(Z),$))for(Z=0;Z<$.length;Z++)ZB($[Z])}}}function b$($,Z){var G=$.stateNode;if(G===null)return null;var Y=G[S5]||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 JB(){if(CG)return CG;var $,Z=oY,G=Z.length,Y,U="value"in t8?t8.value:t8.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 CG=U.slice($,1<Y?1-Y:void 0)}function UJ($){var Z=$.keyCode;return"charCode"in $?($=$.charCode,$===0&&Z===13&&($=13)):$=Z,$===10&&($=13),32<=$||$===13?$:0}function KJ(){return!0}function GB(){return!1}function u5($){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 R in $)$.hasOwnProperty(R)&&(G=$[R],this[R]=G?G(B):B[R]);return this.isDefaultPrevented=(B.defaultPrevented!=null?B.defaultPrevented:B.returnValue===!1)?KJ:GB,this.isPropagationStopped=GB,this}return d0(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=KJ)},stopPropagation:function(){var G=this.nativeEvent;G&&(G.stopPropagation?G.stopPropagation():typeof G.cancelBubble!=="unknown"&&(G.cancelBubble=!0),this.isPropagationStopped=KJ)},persist:function(){},isPersistent:KJ}),Z}function EC($){var Z=this.nativeEvent;return Z.getModifierState?Z.getModifierState($):($=oI[$])?!!Z[$]:!1}function bX(){return EC}function XB($,Z){switch($){case"keyup":return YV.indexOf(Z.keyCode)!==-1;case"keydown":return Z.keyCode!==MW;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function qB($){return $=$.detail,typeof $==="object"&&"data"in $?$.data:null}function AC($,Z){switch($){case"compositionend":return qB(Z);case"keypress":if(Z.which!==WW)return null;return RW=!0,wW;case"textInput":return $=Z.data,$===wW&&RW?null:$;default:return null}}function jC($,Z){if(E7)return $==="compositionend"||!eY&&XB($,Z)?($=JB(),CG=oY=t8=null,E7=!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 FW&&Z.locale!=="ko"?null:Z.data;default:return null}}function YB($){var Z=$&&$.nodeName&&$.nodeName.toLowerCase();return Z==="input"?!!UV[$.type]:Z==="textarea"?!0:!1}function SC($){if(!S4)return!1;$="on"+$;var Z=$ in document;return Z||(Z=document.createElement("div"),Z.setAttribute($,"return;"),Z=typeof Z[$]==="function"),Z}function NB($,Z,G,Y){V7?O7?O7.push(Y):O7=[Y]:V7=Y,Z=QG(Z,"onChange"),0<Z.length&&(G=new _G("onChange","change",null,G,Y),$.push({event:G,listeners:Z}))}function DC($){cM($,0)}function BJ($){var Z=S0($);if(yK(Z))return $}function UB($,Z){if($==="change")return Z}function KB(){zZ&&(zZ.detachEvent("onpropertychange",BB),TZ=zZ=null)}function BB($){if($.propertyName==="value"&&BJ(TZ)){var Z=[];NB(Z,TZ,$,vX($)),QB(DC,Z)}}function vC($,Z,G){$==="focusin"?(KB(),zZ=Z,TZ=G,zZ.attachEvent("onpropertychange",BB)):$==="focusout"&&KB()}function bC($){if($==="selectionchange"||$==="keyup"||$==="keydown")return BJ(TZ)}function kC($,Z){if($==="click")return BJ(Z)}function fC($,Z){if($==="input"||$==="change")return BJ(Z)}function yC($,Z){return $===Z&&($!==0||1/$===1/Z)||$!==$&&Z!==Z}function k$($,Z){if(v5($,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(!i6.call(Z,U)||!v5($[U],Z[U]))return!1}return!0}function HB($){for(;$&&$.firstChild;)$=$.firstChild;return $}function MB($,Z){var G=HB($);$=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=HB(G)}}function FB($,Z){return $&&Z?$===Z?!0:$&&$.nodeType===3?!1:Z&&Z.nodeType===3?FB($,Z.parentNode):("contains"in $)?$.contains(Z):$.compareDocumentPosition?!!($.compareDocumentPosition(Z)&16):!1:!1}function WB($){$=$!=null&&$.ownerDocument!=null&&$.ownerDocument.defaultView!=null?$.ownerDocument.defaultView:window;for(var Z=qJ($.document);Z instanceof $.HTMLIFrameElement;){try{var G=typeof Z.contentWindow.location.href==="string"}catch(Y){G=!1}if(G)$=Z.contentWindow;else break;Z=qJ($.document)}return Z}function kX($){var Z=$&&$.nodeName&&$.nodeName.toLowerCase();return Z&&(Z==="input"&&($.type==="text"||$.type==="search"||$.type==="tel"||$.type==="url"||$.type==="password")||Z==="textarea"||$.contentEditable==="true")}function wB($,Z,G){var Y=G.window===G?G.document:G.nodeType===9?G:G.ownerDocument;ZN||A7==null||A7!==qJ(Y)||(Y=A7,("selectionStart"in Y)&&kX(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}),PZ&&k$(PZ,Y)||(PZ=Y,Y=QG($N,"onSelect"),0<Y.length&&(Z=new _G("onSelect","select",null,Z,G),$.push({event:Z,listeners:Y}),Z.target=A7)))}function n2($,Z){var G={};return G[$.toLowerCase()]=Z.toLowerCase(),G["Webkit"+$]="webkit"+Z,G["Moz"+$]="moz"+Z,G}function o2($){if(QN[$])return QN[$];if(!j7[$])return $;var Z=j7[$],G;for(G in Z)if(Z.hasOwnProperty(G)&&G in TW)return QN[$]=Z[G];return $}function s6($,Z){IW.set($,Z),L5(Z,[$])}function gC($){for(var Z=VG,G=0;G<$.length;G++){var Y=$[G];if(typeof Y==="object"&&Y!==null)if($5(Y)&&Y.length===2&&typeof Y[0]==="string"){if(Z!==VG&&Z!==YN)return XN;Z=YN}else return XN;else{if(typeof Y==="function"||typeof Y==="string"&&50<Y.length||Z!==VG&&Z!==qN)return XN;Z=qN}}return Z}function fX($,Z,G,Y){for(var U in $)i6.call($,U)&&U[0]!=="_"&&N4(U,$[U],Z,G,Y)}function N4($,Z,G,Y,U){switch(typeof Z){case"object":if(Z===null){Z="null";break}else{if(Z.$$typeof===I4){var B=o(Z.type)||"…",W=Z.key;Z=Z.props;var R=Object.keys(Z),P=R.length;if(W==null&&P===0){Z="<"+B+" />";break}if(3>Y||P===1&&R[0]==="children"&&W==null){Z="<"+B+" … />";break}G.push([U+" ".repeat(Y)+$,"<"+B]),W!==null&&N4("key",W,G,Y+1,U),$=!1;for(var C in Z)C==="children"?Z.children!=null&&(!$5(Z.children)||0<Z.children.length)&&($=!0):i6.call(Z,C)&&C[0]!=="_"&&N4(C,Z[C],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(C=gC(Z),C===qN||C===VG){Z=JSON.stringify(Z);break}else if(C===YN){G.push([U+" ".repeat(Y)+$,""]);for($=0;$<Z.length;$++)B=Z[$],N4(B[0],B[1],G,Y+1,U);return}}if(B==="Promise"){if(Z.status==="fulfilled"){if(B=G.length,N4($,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,N4($,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"&&(C=Object.getPrototypeOf(Z))&&typeof C.constructor==="function"&&(B=C.constructor.name),G.push([U+" ".repeat(Y)+$,B==="Object"?3>Y?"":"…":B]),3>Y&&fX(Z,G,Y+1,U);return}case"function":Z=Z.name===""?"() => {}":Z.name+"() {}";break;case"string":Z=Z===wV?"…":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 RB($,Z,G,Y){var U=!0;for(W in $)W in Z||(G.push([OG+" ".repeat(Y)+W,"…"]),U=!1);for(var B in Z)if(B in $){var W=$[B],R=Z[B];if(W!==R){if(Y===0&&B==="children")U=" ".repeat(Y)+B,G.push([OG+U,"…"],[EG+U,"…"]);else{if(!(3<=Y)){if(typeof W==="object"&&typeof R==="object"&&W!==null&&R!==null&&W.$$typeof===R.$$typeof)if(R.$$typeof===I4){if(W.type===R.type&&W.key===R.key){W=o(R.type)||"…",U=" ".repeat(Y)+B,W="<"+W+" … />",G.push([OG+U,W],[EG+U,W]),U=!1;continue}}else{var P=Object.prototype.toString.call(W),C=Object.prototype.toString.call(R);if(P===C&&(C==="[object Object]"||C==="[object Array]")){P=[EW+" ".repeat(Y)+B,C==="[object Array]"?"Array":""],G.push(P),C=G.length,RB(W,R,G,Y+1)?C===G.length&&(P[1]="Referentially unequal but deeply equal objects. Consider memoization."):U=!1;continue}}else if(typeof W==="function"&&typeof R==="function"&&W.name===R.name&&W.length===R.length&&(P=Function.prototype.toString.call(W),C=Function.prototype.toString.call(R),P===C)){W=R.name===""?"() => {}":R.name+"() {}",G.push([EW+" ".repeat(Y)+B,W+" Referentially unequal function closure. Consider memoization."]);continue}}N4(B,W,G,Y,OG),N4(B,R,G,Y,EG)}U=!1}}else G.push([EG+" ".repeat(Y)+B,"…"]),U=!1;return U}function q6($){l0=$&63?"Blocking":$&64?"Gesture":$&4194176?"Transition":$&62914560?"Suspense":$&2080374784?"Idle":"Other"}function U4($,Z,G,Y){P1&&($2.start=Z,$2.end=G,Q8.color="warning",Q8.tooltipText=Y,Q8.properties=null,($=$._debugTask)?$.run(performance.measure.bind(performance,Y,$2)):performance.measure(Y,$2))}function HJ($,Z,G){U4($,Z,G,"Reconnect")}function MJ($,Z,G,Y,U){var B=d($);if(B!==null&&P1){var{alternate:W,actualDuration:R}=$;if(W===null||W.child!==$.child)for(var P=$.child;P!==null;P=P.sibling)R-=P.actualDuration;Y=0.5>R?Y?"tertiary-light":"primary-light":10>R?Y?"tertiary":"primary":100>R?Y?"tertiary-dark":"primary-dark":"error";var C=$.memoizedProps;R=$._debugTask,C!==null&&W!==null&&W.memoizedProps!==C?(P=[RV],C=RB(W.memoizedProps,C,P,0),1<P.length&&(C&&!e8&&(W.lanes&U)===0&&100<$.actualDuration?(e8=!0,P[0]=zV,Q8.color="warning",Q8.tooltipText=AW):(Q8.color=Y,Q8.tooltipText=B),Q8.properties=P,$2.start=Z,$2.end=G,R!=null?R.run(performance.measure.bind(performance,""+B,$2)):performance.measure(""+B,$2))):R!=null?R.run(console.timeStamp.bind(console,B,Z,G,E6,void 0,Y)):console.timeStamp(B,Z,G,E6,void 0,Y)}}function yX($,Z,G,Y){if(P1){var U=d($);if(U!==null){for(var B=null,W=[],R=0;R<Y.length;R++){var P=Y[R];B==null&&P.source!==null&&(B=P.source._debugTask),P=P.value,W.push(["Error",typeof P==="object"&&P!==null&&typeof P.message==="string"?String(P.message):String(P)])}$.key!==null&&N4("key",$.key,W,0,""),$.memoizedProps!==null&&fX($.memoizedProps,W,0,""),B==null&&(B=$._debugTask),$={start:Z,end:G,detail:{devtools:{color:"error",track:E6,tooltipText:$.tag===13?"Hydration failed":"Error boundary caught an error",properties:W}}},B?B.run(performance.measure.bind(performance,""+U,$)):performance.measure(""+U,$)}}}function K4($,Z,G,Y,U){if(U!==null){if(P1){var B=d($);if(B!==null){Y=[];for(var W=0;W<U.length;W++){var R=U[W].value;Y.push(["Error",typeof R==="object"&&R!==null&&typeof R.message==="string"?String(R.message):String(R)])}$.key!==null&&N4("key",$.key,Y,0,""),$.memoizedProps!==null&&fX($.memoizedProps,Y,0,""),Z={start:Z,end:G,detail:{devtools:{color:"error",track:E6,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&&P1&&(U=1>Y?"secondary-light":100>Y?"secondary":500>Y?"secondary-dark":"error",($=$._debugTask)?$.run(console.timeStamp.bind(console,B,Z,G,E6,void 0,U)):console.timeStamp(B,Z,G,E6,void 0,U))}function hC($,Z,G,Y){if(P1&&!(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,l0,p0,U)):console.timeStamp(G,$,Z,l0,p0,U)}}function zB($,Z,G,Y){!P1||Z<=$||(G=(G&738197653)===G?"tertiary-dark":"primary-dark",Y?Y.run(console.timeStamp.bind(console,"Prewarm",$,Z,l0,p0,G)):console.timeStamp("Prewarm",$,Z,l0,p0,G))}function TB($,Z,G,Y){!P1||Z<=$||(G=(G&738197653)===G?"tertiary-dark":"primary-dark",Y?Y.run(console.timeStamp.bind(console,"Suspended",$,Z,l0,p0,G)):console.timeStamp("Suspended",$,Z,l0,p0,G))}function uC($,Z,G,Y,U,B){if(P1&&!(Z<=$)){G=[];for(var W=0;W<Y.length;W++){var R=Y[W].value;G.push(["Recoverable Error",typeof R==="object"&&R!==null&&typeof R.message==="string"?String(R.message):String(R)])}$={start:$,end:Z,detail:{devtools:{color:"primary-dark",track:l0,trackGroup:p0,tooltipText:U?"Hydration Failed":"Recovered after Error",properties:G}}},B?B.run(performance.measure.bind(performance,"Recovered",$)):performance.measure("Recovered",$)}}function gX($,Z,G,Y){!P1||Z<=$||(Y?Y.run(console.timeStamp.bind(console,"Errored",$,Z,l0,p0,"error")):console.timeStamp("Errored",$,Z,l0,p0,"error"))}function xC($,Z,G,Y){!P1||Z<=$||(Y?Y.run(console.timeStamp.bind(console,G,$,Z,l0,p0,"secondary-light")):console.timeStamp(G,$,Z,l0,p0,"secondary-light"))}function PB($,Z,G,Y,U){if(P1&&!(Z<=$)){for(var B=[],W=0;W<G.length;W++){var R=G[W].value;B.push(["Error",typeof R==="object"&&R!==null&&typeof R.message==="string"?String(R.message):String(R)])}$={start:$,end:Z,detail:{devtools:{color:"error",track:l0,trackGroup:p0,tooltipText:Y?"Remaining Effects Errored":"Commit Errored",properties:B}}},U?U.run(performance.measure.bind(performance,"Errored",$)):performance.measure("Errored",$)}}function f$($,Z,G){!P1||Z<=$||(G?G.run(console.timeStamp.bind(console,"Animating",$,Z,l0,p0,"secondary-dark")):console.timeStamp("Animating",$,Z,l0,p0,"secondary-dark"))}function FJ(){for(var $=S7,Z=NN=S7=0;Z<$;){var G=A6[Z];A6[Z++]=null;var Y=A6[Z];A6[Z++]=null;var U=A6[Z];A6[Z++]=null;var B=A6[Z];if(A6[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&&LB(G,U,B)}}function WJ($,Z,G,Y){A6[S7++]=$,A6[S7++]=Z,A6[S7++]=G,A6[S7++]=Y,NN|=Y,$.lanes|=Y,$=$.alternate,$!==null&&($.lanes|=Y)}function hX($,Z,G,Y){return WJ($,Z,G,Y),wJ($)}function C5($,Z){return WJ($,null,null,Z),wJ($)}function LB($,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&LZ||(U=!0)),$=B,B=B.return;return $.tag===3?(B=$.stateNode,U&&Z!==null&&(U=31-j5(G),$=B.hiddenUpdates,Y=$[U],Y===null?$[U]=[Z]:Y.push(Z),Z.lane=G|536870912),B):null}function wJ($){if(nZ>bV)throw I9=nZ=0,oZ=mN=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.");I9>kV&&(I9=0,oZ=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&&gM($);for(var Z=$,G=Z.return;G!==null;)Z.alternate===null&&(Z.flags&4098)!==0&&gM($),Z=G,G=Z.return;return Z.tag===3?Z.stateNode:null}function i2($){if(j6===null)return $;var Z=j6($);return Z===void 0?$:Z.current}function uX($){if(j6===null)return $;var Z=j6($);return Z===void 0?$!==null&&$!==void 0&&typeof $.render==="function"&&(Z=i2($.render),$.render!==Z)?(Z={$$typeof:UZ,render:Z},$.displayName!==void 0&&(Z.displayName=$.displayName),Z):$:Z.current}function CB($,Z){if(j6===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===M6&&(Y=!0);break;case 11:U===UZ?Y=!0:U===M6&&(Y=!0);break;case 14:case 15:U===MG?Y=!0:U===M6&&(Y=!0);break;default:return!1}return Y&&($=j6(G),$!==void 0&&$===j6(Z))?!0:!1}function _B($){j6!==null&&typeof WeakSet==="function"&&(D7===null&&(D7=new WeakSet),D7.add($))}function IB($,Z,G){do{var Y=$,U=Y.alternate,B=Y.child,W=Y.sibling,R=Y.tag;Y=Y.type;var P=null;switch(R){case 0:case 15:case 1:P=Y;break;case 11:P=Y.render}if(j6===null)throw Error("Expected resolveFamily to be set during hot reload.");var C=!1;if(Y=!1,P!==null&&(P=j6(P),P!==void 0&&(G.has(P)?Y=!0:Z.has(P)&&(R===1?Y=!0:C=!0))),D7!==null&&(D7.has($)||U!==null&&D7.has(U))&&(Y=!0),Y&&($._debugNeedsRemount=!0),Y||C)U=C5($,2),U!==null&&D1(U,$,2);if(B===null||Y||IB(B,Z,G),W===null)break;$=W}while(1)}function mC($,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,jW||typeof Object.preventExtensions!=="function"||Object.preventExtensions(this)}function xX($){return $=$.prototype,!(!$||!$.isReactComponent)}function n4($,Z){var G=$.alternate;switch(G===null?(G=L($.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=i2($.type);break;case 1:G.type=i2($.type);break;case 11:G.type=uX($.type)}return G}function VB($,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 mX($,Z,G,Y,U,B){var W=0,R=$;if(typeof $==="function")xX($)&&(W=1),R=i2(R);else if(typeof $==="string")W=B0(),W=i_($,G,W)?26:$==="html"||$==="head"||$==="body"?27:5;else $:switch($){case bY:return Z=L(31,G,Z,U),Z.elementType=bY,Z.lanes=B,Z;case T7:return a2(G.children,U,B,Z);case HG:W=8,U|=I5,U|=t6;break;case jY: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=L(12,$,Z,Y|f0),Z.elementType=jY,Z.lanes=B,Z.stateNode={effectDuration:0,passiveEffectDuration:0},Z;case DY:return Z=L(13,G,Z,U),Z.elementType=DY,Z.lanes=B,Z;case vY:return Z=L(19,G,Z,U),Z.elementType=vY,Z.lanes=B,Z;default:if(typeof $==="object"&&$!==null)switch($.$$typeof){case V4:W=10;break $;case SY:W=9;break $;case UZ:W=11,R=uX(R);break $;case MG:W=14;break $;case M6:W=16,R=null;break $}if(R="",$===void 0||typeof $==="object"&&$!==null&&Object.keys($).length===0)R+=" 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":$5($)?G="array":$!==void 0&&$.$$typeof===I4?(G="<"+(o($.type)||"Unknown")+" />",R=" Did you accidentally export a JSX literal instead of a component?"):G=typeof $,(W=Y?q0(Y):null)&&(R+=`
|
|
72
|
-
|
|
73
|
-
Check the render method of \``+
|
|
45
|
+
`}function LC($,Q,G){var N="",U=u0({},Q),B;for(B in $)if($.hasOwnProperty(B)){delete U[B];var F=120-2*G-B.length-2,R=SQ($[B],F);Q.hasOwnProperty(B)?(F=SQ(Q[B],F),N+=Z9(G)+B+": "+R+`
|
|
46
|
+
`,N+=o8(G)+B+": "+F+`
|
|
47
|
+
`):N+=Z9(G)+B+": "+R+`
|
|
48
|
+
`}for(var L in U)U.hasOwnProperty(L)&&($=SQ(U[L],120-2*G-L.length-2),N+=o8(G)+L+": "+$+`
|
|
49
|
+
`);return N}function PC($,Q,G,N){var U="",B=new Map;for(C in G)G.hasOwnProperty(C)&&B.set(C.toLowerCase(),C);if(B.size===1&&B.has("children"))U+=vX($,Q,N5(N));else{for(var F in Q)if(Q.hasOwnProperty(F)&&F!=="children"){var R=120-2*(N+1)-F.length-1,L=B.get(F.toLowerCase());if(L!==void 0){B.delete(F.toLowerCase());var C=Q[F];L=G[L];var b=G9(C,R);R=G9(L,R),typeof C==="object"&&C!==null&&typeof L==="object"&&L!==null&&DX(C)==="Object"&&DX(L)==="Object"&&(2<Object.keys(C).length||2<Object.keys(L).length||-1<b.indexOf("...")||-1<R.indexOf("..."))?U+=N5(N+1)+F+`={{
|
|
50
|
+
`+LC(C,L,N+2)+N5(N+1)+`}}
|
|
51
|
+
`:(U+=Z9(N+1)+F+"="+b+`
|
|
52
|
+
`,U+=o8(N+1)+F+"="+R+`
|
|
53
|
+
`)}else U+=N5(N+1)+F+"="+G9(Q[F],R)+`
|
|
54
|
+
`}B.forEach(function(y){if(y!=="children"){var j=120-2*(N+1)-y.length-1;U+=o8(N+1)+y+"="+G9(G[y],j)+`
|
|
55
|
+
`}}),U=U===""?N5(N)+"<"+$+`>
|
|
56
|
+
`:N5(N)+"<"+$+`
|
|
57
|
+
`+U+N5(N)+`>
|
|
58
|
+
`}if($=G.children,Q=Q.children,typeof $==="string"||typeof $==="number"||typeof $==="bigint"){if(B="",typeof Q==="string"||typeof Q==="number"||typeof Q==="bigint")B=""+Q;U+=BZ(B,""+$,N+1)}else if(typeof Q==="string"||typeof Q==="number"||typeof Q==="bigint")U=$==null?U+BZ(""+Q,null,N+1):U+BZ(""+Q,void 0,N+1);return U}function iK($,Q){var G=oK($);if(G===null){G="";for($=$.child;$;)G+=iK($,Q),$=$.sibling;return G}return N5(Q)+"<"+G+`>
|
|
59
|
+
`}function kX($,Q){var G=nK($,Q);if(G!==$&&($.children.length!==1||$.children[0]!==G))return N5(Q)+`...
|
|
60
|
+
`+kX(G,Q+1);G="";var N=$.fiber._debugInfo;if(N)for(var U=0;U<N.length;U++){var B=N[U].name;typeof B==="string"&&(G+=N5(Q)+"<"+B+`>
|
|
61
|
+
`,Q++)}if(N="",U=$.fiber.pendingProps,$.fiber.tag===6)N=BZ(U,$.serverProps,Q),Q++;else if(B=oK($.fiber),B!==null)if($.serverProps===void 0){N=Q;var F=120-2*N-B.length-2,R="";for(C in U)if(U.hasOwnProperty(C)&&C!=="children"){var L=G9(U[C],15);if(F-=C.length+L.length+2,0>F){R+=" ...";break}R+=" "+C+"="+L}N=N5(N)+"<"+B+R+`>
|
|
62
|
+
`,Q++}else $.serverProps===null?(N=vX(B,U,Z9(Q)),Q++):typeof $.serverProps==="string"?console.error("Should not have matched a non HostText fiber to a Text node. This is a bug in React."):(N=PC(B,U,$.serverProps,Q),Q++);var C="";U=$.fiber.child;for(B=0;U&&B<$.children.length;)F=$.children[B],F.fiber===U?(C+=kX(F,Q),B++):C+=iK(U,Q),U=U.sibling;U&&0<$.children.length&&(C+=N5(Q)+`...
|
|
63
|
+
`),U=$.serverTail,$.serverProps===null&&Q--;for($=0;$<U.length;$++)B=U[$],C=typeof B==="string"?C+(o8(Q)+jQ(B,120-2*Q)+`
|
|
64
|
+
`):C+vX(B.type,B.props,o8(Q));return G+N+C}function bX($){try{return`
|
|
65
|
+
|
|
66
|
+
`+kX($,0)}catch(Q){return""}}function aK($,Q,G){for(var N=Q,U=null,B=0;N;)N===$&&(B=0),U={fiber:N,children:U!==null?[U]:[],serverProps:N===Q?G:N===$?null:void 0,serverTail:[],distanceFromLeaf:B},B++,N=N.return;return U!==null?bX(U).replaceAll(/^[+-]/gm,">"):""}function tK($,Q){var G=u0({},$||ZF),N={tag:Q};if(JF.indexOf(Q)!==-1&&(G.aTagInScope=null,G.buttonTagInScope=null,G.nobrTagInScope=null),OI.indexOf(Q)!==-1&&(G.pTagInButtonScope=null),VI.indexOf(Q)!==-1&&Q!=="address"&&Q!=="div"&&Q!=="p"&&(G.listItemTagAutoclosing=null,G.dlItemTagAutoclosing=null),G.current=N,Q==="form"&&(G.formTag=N),Q==="a"&&(G.aTagInScope=N),Q==="button"&&(G.buttonTagInScope=N),Q==="nobr"&&(G.nobrTagInScope=N),Q==="p"&&(G.pTagInButtonScope=N),Q==="li"&&(G.listItemTagAutoclosing=N),Q==="dd"||Q==="dt")G.dlItemTagAutoclosing=N;return Q==="#document"||Q==="html"?G.containerTagInScope=null:G.containerTagInScope||(G.containerTagInScope=N),$!==null||Q!=="#document"&&Q!=="html"&&Q!=="body"?G.implicitRootScope===!0&&(G.implicitRootScope=!1):G.implicitRootScope=!0,G}function eK($,Q,G){switch(Q){case"select":return $==="hr"||$==="option"||$==="optgroup"||$==="script"||$==="template"||$==="#text";case"optgroup":return $==="option"||$==="#text";case"option":return $==="#text";case"tr":return $==="th"||$==="td"||$==="style"||$==="script"||$==="template";case"tbody":case"thead":case"tfoot":return $==="tr"||$==="style"||$==="script"||$==="template";case"colgroup":return $==="col"||$==="template";case"table":return $==="caption"||$==="colgroup"||$==="tbody"||$==="tfoot"||$==="thead"||$==="style"||$==="script"||$==="template";case"head":return $==="base"||$==="basefont"||$==="bgsound"||$==="link"||$==="meta"||$==="title"||$==="noscript"||$==="noframes"||$==="style"||$==="script"||$==="template";case"html":if(G)break;return $==="head"||$==="body"||$==="frameset";case"frameset":return $==="frame";case"#document":if(!G)return $==="html"}switch($){case"h1":case"h2":case"h3":case"h4":case"h5":case"h6":return Q!=="h1"&&Q!=="h2"&&Q!=="h3"&&Q!=="h4"&&Q!=="h5"&&Q!=="h6";case"rp":case"rt":return EI.indexOf(Q)===-1;case"caption":case"col":case"colgroup":case"frameset":case"frame":case"tbody":case"td":case"tfoot":case"th":case"thead":case"tr":return Q==null;case"head":return G||Q===null;case"html":return G&&Q==="#document"||Q===null;case"body":return G&&(Q==="#document"||Q==="html")||Q===null}return!0}function CC($,Q){switch($){case"address":case"article":case"aside":case"blockquote":case"center":case"details":case"dialog":case"dir":case"div":case"dl":case"fieldset":case"figcaption":case"figure":case"footer":case"header":case"hgroup":case"main":case"menu":case"nav":case"ol":case"p":case"section":case"summary":case"ul":case"pre":case"listing":case"table":case"hr":case"xmp":case"h1":case"h2":case"h3":case"h4":case"h5":case"h6":return Q.pTagInButtonScope;case"form":return Q.formTag||Q.pTagInButtonScope;case"li":return Q.listItemTagAutoclosing;case"dd":case"dt":return Q.dlItemTagAutoclosing;case"button":return Q.buttonTagInScope;case"a":return Q.aTagInScope;case"nobr":return Q.nobrTagInScope}return null}function $B($,Q){for(;$;){switch($.tag){case 5:case 26:case 27:if($.type===Q)return $}$=$.return}return null}function yX($,Q){Q=Q||ZF;var G=Q.current;if(Q=(G=eK($,G&&G.tag,Q.implicitRootScope)?null:G)?null:CC($,Q),Q=G||Q,!Q)return!0;var N=Q.tag;if(Q=String(!!G)+"|"+$+"|"+N,_G[Q])return!1;_G[Q]=!0;var U=(Q=w5)?$B(Q.return,N):null,B=Q!==null&&U!==null?aK(U,Q,null):"",F="<"+$+">";return G?(G="",N==="table"&&$==="tr"&&(G+=" Add a <tbody>, <thead> or <tfoot> to your code to match the DOM tree generated by the browser."),console.error(`In HTML, %s cannot be a child of <%s>.%s
|
|
67
|
+
This will cause a hydration error.%s`,F,N,G,B)):console.error(`In HTML, %s cannot be a descendant of <%s>.
|
|
68
|
+
This will cause a hydration error.%s`,F,N,B),Q&&($=Q.return,U===null||$===null||U===$&&$._debugOwner===Q._debugOwner||q0(U,function(){console.error(`<%s> cannot contain a nested %s.
|
|
69
|
+
See this log for the ancestor stack trace.`,N,F)})),!1}function HZ($,Q,G){if(G||eK("#text",Q,!1))return!0;if(G="#text|"+Q,_G[G])return!1;_G[G]=!0;var N=(G=w5)?$B(G,Q):null;return G=G!==null&&N!==null?aK(N,G,G.tag!==6?{children:null}:null):"",/\S/.test($)?console.error(`In HTML, text nodes cannot be a child of <%s>.
|
|
70
|
+
This will cause a hydration error.%s`,Q,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`,Q,G),!1}function DQ($,Q){if(Q){var G=$.firstChild;if(G&&G===$.lastChild&&G.nodeType===3){G.nodeValue=Q;return}}$.textContent=Q}function _C($){return $.replace(SI,function(Q,G){return G.toUpperCase()})}function QB($,Q,G){var N=Q.indexOf("--")===0;N||(-1<Q.indexOf("-")?I9.hasOwnProperty(Q)&&I9[Q]||(I9[Q]=!0,console.error("Unsupported style property %s. Did you mean %s?",Q,_C(Q.replace(jI,"ms-")))):AI.test(Q)?I9.hasOwnProperty(Q)&&I9[Q]||(I9[Q]=!0,console.error("Unsupported vendor-prefixed style property %s. Did you mean %s?",Q,Q.charAt(0).toUpperCase()+Q.slice(1))):!XF.test(G)||iN.hasOwnProperty(G)&&iN[G]||(iN[G]=!0,console.error(`Style property values shouldn't contain a semicolon. Try "%s: %s" instead.`,Q,G.replace(XF,""))),typeof G==="number"&&(isNaN(G)?NF||(NF=!0,console.error("`NaN` is an invalid value for the `%s` css style property.",Q)):isFinite(G)||YF||(YF=!0,console.error("`Infinity` is an invalid value for the `%s` css style property.",Q)))),G==null||typeof G==="boolean"||G===""?N?$.setProperty(Q,""):Q==="float"?$.cssFloat="":$[Q]="":N?$.setProperty(Q,G):typeof G!=="number"||G===0||UF.has(Q)?Q==="float"?$.cssFloat=G:(OQ(G,Q),$[Q]=(""+G).trim()):$[Q]=G+"px"}function JB($,Q,G){if(Q!=null&&typeof Q!=="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(Q&&Object.freeze(Q),$=$.style,G!=null){if(Q){var N={};if(G){for(var U in G)if(G.hasOwnProperty(U)&&!Q.hasOwnProperty(U))for(var B=oN[U]||[U],F=0;F<B.length;F++)N[B[F]]=U}for(var R in Q)if(Q.hasOwnProperty(R)&&(!G||G[R]!==Q[R]))for(U=oN[R]||[R],B=0;B<U.length;B++)N[U[B]]=R;R={};for(var L in Q)for(U=oN[L]||[L],B=0;B<U.length;B++)R[U[B]]=L;L={};for(var C in N)if(U=N[C],(B=R[C])&&U!==B&&(F=U+","+B,!L[F])){L[F]=!0,F=console;var b=Q[U];F.error.call(F,"%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.",b==null||typeof b==="boolean"||b===""?"Removing":"Updating",U,B)}}for(var y in G)!G.hasOwnProperty(y)||Q!=null&&Q.hasOwnProperty(y)||(y.indexOf("--")===0?$.setProperty(y,""):y==="float"?$.cssFloat="":$[y]="");for(var j in Q)C=Q[j],Q.hasOwnProperty(j)&&G[j]!==C&&QB($,j,C)}else for(N in Q)Q.hasOwnProperty(N)&&QB($,N,Q[N])}function vQ($){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 ZB($){return DI.get($)||$}function IC($,Q){if(t5.call(O9,Q)&&O9[Q])return!0;if(kI.test(Q)){if($="aria-"+Q.slice(4).toLowerCase(),$=KF.hasOwnProperty($)?$:null,$==null)return console.error("Invalid ARIA attribute `%s`. ARIA attributes follow the pattern aria-* and must be lowercase.",Q),O9[Q]=!0;if(Q!==$)return console.error("Invalid ARIA attribute `%s`. Did you mean `%s`?",Q,$),O9[Q]=!0}if(vI.test(Q)){if($=Q.toLowerCase(),$=KF.hasOwnProperty($)?$:null,$==null)return O9[Q]=!0,!1;Q!==$&&(console.error("Unknown ARIA attribute `%s`. Did you mean `%s`?",Q,$),O9[Q]=!0)}return!0}function VC($,Q){var G=[],N;for(N in Q)IC($,N)||G.push(N);Q=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",Q,$):1<G.length&&console.error("Invalid aria props %s on <%s> tag. For details, see https://react.dev/link/invalid-aria-props",Q,$)}function OC($,Q,G,N){if(t5.call(k6,Q)&&k6[Q])return!0;var U=Q.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."),k6[Q]=!0;if(typeof G==="function"&&($==="form"&&Q==="action"||$==="input"&&Q==="formAction"||$==="button"&&Q==="formAction"))return!0;if(N!=null){if($=N.possibleRegistrationNames,N.registrationNameDependencies.hasOwnProperty(Q))return!0;if(N=$.hasOwnProperty(U)?$[U]:null,N!=null)return console.error("Invalid event handler property `%s`. Did you mean `%s`?",Q,N),k6[Q]=!0;if(HF.test(Q))return console.error("Unknown event handler property `%s`. It will be ignored.",Q),k6[Q]=!0}else if(HF.test(Q))return bI.test(Q)&&console.error("Invalid event handler property `%s`. React events use the camelCase naming convention, for example `onClick`.",Q),k6[Q]=!0;if(yI.test(Q)||fI.test(Q))return!0;if(U==="innerhtml")return console.error("Directly setting property `innerHTML` is not permitted. For more information, lookup documentation on `dangerouslySetInnerHTML`."),k6[Q]=!0;if(U==="aria")return console.error("The `aria` attribute is reserved for future use in React. Pass individual `aria-` attributes instead."),k6[Q]=!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),k6[Q]=!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.",Q),k6[Q]=!0;if(VG.hasOwnProperty(U)){if(U=VG[U],U!==Q)return console.error("Invalid DOM property `%s`. Did you mean `%s`?",Q,U),k6[Q]=!0}else if(Q!==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.",Q,U),k6[Q]=!0;switch(Q){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(Q){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=Q.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,Q,Q,G,Q):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,Q,Q,G,Q,Q,Q),k6[Q]=!0}case"function":case"symbol":return k6[Q]=!0,!1;case"string":if(G==="false"||G==="true"){switch(Q){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,Q,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".',Q,G),k6[Q]=!0}}return!0}function EC($,Q,G){var N=[],U;for(U in Q)OC($,U,Q[U],G)||N.push(U);Q=N.map(function(B){return"`"+B+"`"}).join(", "),N.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 ",Q,$):1<N.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 ",Q,$)}function kQ($){return gI.test(""+$)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":$}function i4(){}function fX($){return $=$.target||$.srcElement||window,$.correspondingUseElement&&($=$.correspondingUseElement),$.nodeType===3?$.parentNode:$}function GB($){var Q=S0($);if(Q&&($=Q.stateNode)){var G=$[v6]||null;$:switch($=Q.stateNode,Q.type){case"input":if(jX($,G.value,G.defaultValue,G.defaultValue,G.checked,G.defaultChecked,G.type,G.name),Q=G.name,G.type==="radio"&&Q!=null){for(G=$;G.parentNode;)G=G.parentNode;K1(Q,"name"),G=G.querySelectorAll('input[name="'+E5(""+Q)+'"][type="radio"]');for(Q=0;Q<G.length;Q++){var N=G[Q];if(N!==$&&N.form===$.form){var U=N[v6]||null;if(!U)throw Error("ReactDOMInput: Mixing React and non-React radio inputs with the same `name` is not supported.");jX(N,U.value,U.defaultValue,U.defaultValue,U.checked,U.defaultChecked,U.type,U.name)}}for(Q=0;Q<G.length;Q++)N=G[Q],N.form===$.form&&xK(N)}break $;case"textarea":rK($,G.value,G.defaultValue);break $;case"select":Q=G.value,Q!=null&&J9($,!!G.multiple,Q,!1)}}}function qB($,Q,G){if(aN)return $(Q,G);aN=!0;try{var N=$(Q);return N}finally{if(aN=!1,E9!==null||A9!==null){if(W9(),E9&&(Q=E9,$=A9,A9=E9=null,GB(Q),$))for(Q=0;Q<$.length;Q++)GB($[Q])}}}function bQ($,Q){var G=$.stateNode;if(G===null)return null;var N=G[v6]||null;if(N===null)return null;G=N[Q];$:switch(Q){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(N=!N.disabled)||($=$.type,N=!($==="button"||$==="input"||$==="select"||$==="textarea")),$=!N;break $;default:$=!1}if($)return null;if(G&&typeof G!=="function")throw Error("Expected `"+Q+"` listener to be a function, instead got a value of `"+typeof G+"` type.");return G}function XB(){if(OG)return OG;var $,Q=eN,G=Q.length,N,U="value"in Z8?Z8.value:Z8.textContent,B=U.length;for($=0;$<G&&Q[$]===U[$];$++);var F=G-$;for(N=1;N<=F&&Q[G-N]===U[B-N];N++);return OG=U.slice($,1<N?1-N:void 0)}function MZ($){var Q=$.keyCode;return"charCode"in $?($=$.charCode,$===0&&Q===13&&($=13)):$=Q,$===10&&($=13),32<=$||$===13?$:0}function WZ(){return!0}function NB(){return!1}function m6($){function Q(G,N,U,B,F){this._reactName=G,this._targetInst=U,this.type=N,this.nativeEvent=B,this.target=F,this.currentTarget=null;for(var R in $)$.hasOwnProperty(R)&&(G=$[R],this[R]=G?G(B):B[R]);return this.isDefaultPrevented=(B.defaultPrevented!=null?B.defaultPrevented:B.returnValue===!1)?WZ:NB,this.isPropagationStopped=NB,this}return u0(Q.prototype,{preventDefault:function(){this.defaultPrevented=!0;var G=this.nativeEvent;G&&(G.preventDefault?G.preventDefault():typeof G.returnValue!=="unknown"&&(G.returnValue=!1),this.isDefaultPrevented=WZ)},stopPropagation:function(){var G=this.nativeEvent;G&&(G.stopPropagation?G.stopPropagation():typeof G.cancelBubble!=="unknown"&&(G.cancelBubble=!0),this.isPropagationStopped=WZ)},persist:function(){},isPersistent:WZ}),Q}function AC($){var Q=this.nativeEvent;return Q.getModifierState?Q.getModifierState($):($=iI[$])?!!Q[$]:!1}function gX(){return AC}function YB($,Q){switch($){case"keyup":return YV.indexOf(Q.keyCode)!==-1;case"keydown":return Q.keyCode!==wF;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function UB($){return $=$.detail,typeof $==="object"&&"data"in $?$.data:null}function jC($,Q){switch($){case"compositionend":return UB(Q);case"keypress":if(Q.which!==zF)return null;return LF=!0,TF;case"textInput":return $=Q.data,$===TF&&LF?null:$;default:return null}}function SC($,Q){if(j9)return $==="compositionend"||!ZY&&YB($,Q)?($=XB(),OG=eN=Z8=null,j9=!1,$):null;switch($){case"paste":return null;case"keypress":if(!(Q.ctrlKey||Q.altKey||Q.metaKey)||Q.ctrlKey&&Q.altKey){if(Q.char&&1<Q.char.length)return Q.char;if(Q.which)return String.fromCharCode(Q.which)}return null;case"compositionend":return RF&&Q.locale!=="ko"?null:Q.data;default:return null}}function KB($){var Q=$&&$.nodeName&&$.nodeName.toLowerCase();return Q==="input"?!!KV[$.type]:Q==="textarea"?!0:!1}function DC($){if(!v4)return!1;$="on"+$;var Q=$ in document;return Q||(Q=document.createElement("div"),Q.setAttribute($,"return;"),Q=typeof Q[$]==="function"),Q}function BB($,Q,G,N){E9?A9?A9.push(N):A9=[N]:E9=N,Q=XG(Q,"onChange"),0<Q.length&&(G=new EG("onChange","change",null,G,N),$.push({event:G,listeners:Q}))}function vC($){sM($,0)}function FZ($){var Q=D0($);if(xK(Q))return $}function HB($,Q){if($==="change")return Q}function MB(){T2&&(T2.detachEvent("onpropertychange",WB),L2=T2=null)}function WB($){if($.propertyName==="value"&&FZ(L2)){var Q=[];BB(Q,L2,$,fX($)),qB(vC,Q)}}function kC($,Q,G){$==="focusin"?(MB(),T2=Q,L2=G,T2.attachEvent("onpropertychange",WB)):$==="focusout"&&MB()}function bC($){if($==="selectionchange"||$==="keyup"||$==="keydown")return FZ(L2)}function yC($,Q){if($==="click")return FZ(Q)}function fC($,Q){if($==="input"||$==="change")return FZ(Q)}function gC($,Q){return $===Q&&($!==0||1/$===1/Q)||$!==$&&Q!==Q}function yQ($,Q){if(b6($,Q))return!0;if(typeof $!=="object"||$===null||typeof Q!=="object"||Q===null)return!1;var G=Object.keys($),N=Object.keys(Q);if(G.length!==N.length)return!1;for(N=0;N<G.length;N++){var U=G[N];if(!t5.call(Q,U)||!b6($[U],Q[U]))return!1}return!0}function FB($){for(;$&&$.firstChild;)$=$.firstChild;return $}function wB($,Q){var G=FB($);$=0;for(var N;G;){if(G.nodeType===3){if(N=$+G.textContent.length,$<=Q&&N>=Q)return{node:G,offset:Q-$};$=N}$:{for(;G;){if(G.nextSibling){G=G.nextSibling;break $}G=G.parentNode}G=void 0}G=FB(G)}}function RB($,Q){return $&&Q?$===Q?!0:$&&$.nodeType===3?!1:Q&&Q.nodeType===3?RB($,Q.parentNode):("contains"in $)?$.contains(Q):$.compareDocumentPosition?!!($.compareDocumentPosition(Q)&16):!1:!1}function zB($){$=$!=null&&$.ownerDocument!=null&&$.ownerDocument.defaultView!=null?$.ownerDocument.defaultView:window;for(var Q=KZ($.document);Q instanceof $.HTMLIFrameElement;){try{var G=typeof Q.contentWindow.location.href==="string"}catch(N){G=!1}if(G)$=Q.contentWindow;else break;Q=KZ($.document)}return Q}function hX($){var Q=$&&$.nodeName&&$.nodeName.toLowerCase();return Q&&(Q==="input"&&($.type==="text"||$.type==="search"||$.type==="tel"||$.type==="url"||$.type==="password")||Q==="textarea"||$.contentEditable==="true")}function TB($,Q,G){var N=G.window===G?G.document:G.nodeType===9?G:G.ownerDocument;qY||S9==null||S9!==KZ(N)||(N=S9,("selectionStart"in N)&&hX(N)?N={start:N.selectionStart,end:N.selectionEnd}:(N=(N.ownerDocument&&N.ownerDocument.defaultView||window).getSelection(),N={anchorNode:N.anchorNode,anchorOffset:N.anchorOffset,focusNode:N.focusNode,focusOffset:N.focusOffset}),P2&&yQ(P2,N)||(P2=N,N=XG(GY,"onSelect"),0<N.length&&(Q=new EG("onSelect","select",null,Q,G),$.push({event:Q,listeners:N}),Q.target=S9)))}function i8($,Q){var G={};return G[$.toLowerCase()]=Q.toLowerCase(),G["Webkit"+$]="webkit"+Q,G["Moz"+$]="moz"+Q,G}function a8($){if(XY[$])return XY[$];if(!D9[$])return $;var Q=D9[$],G;for(G in Q)if(Q.hasOwnProperty(G)&&G in CF)return XY[$]=Q[G];return $}function o5($,Q){EF.set($,Q),C6(Q,[$])}function hC($){for(var Q=jG,G=0;G<$.length;G++){var N=$[G];if(typeof N==="object"&&N!==null)if($6(N)&&N.length===2&&typeof N[0]==="string"){if(Q!==jG&&Q!==BY)return UY;Q=BY}else return UY;else{if(typeof N==="function"||typeof N==="string"&&50<N.length||Q!==jG&&Q!==KY)return UY;Q=KY}}return Q}function xX($,Q,G,N){for(var U in $)t5.call($,U)&&U[0]!=="_"&&K4(U,$[U],Q,G,N)}function K4($,Q,G,N,U){switch(typeof Q){case"object":if(Q===null){Q="null";break}else{if(Q.$$typeof===O4){var B=i(Q.type)||"…",F=Q.key;Q=Q.props;var R=Object.keys(Q),L=R.length;if(F==null&&L===0){Q="<"+B+" />";break}if(3>N||L===1&&R[0]==="children"&&F==null){Q="<"+B+" … />";break}G.push([U+" ".repeat(N)+$,"<"+B]),F!==null&&K4("key",F,G,N+1,U),$=!1;for(var C in Q)C==="children"?Q.children!=null&&(!$6(Q.children)||0<Q.children.length)&&($=!0):t5.call(Q,C)&&C[0]!=="_"&&K4(C,Q[C],G,N+1,U);G.push(["",$?">…</"+B+">":"/>"]);return}if(B=Object.prototype.toString.call(Q),B=B.slice(8,B.length-1),B==="Array"){if(C=hC(Q),C===KY||C===jG){Q=JSON.stringify(Q);break}else if(C===BY){G.push([U+" ".repeat(N)+$,""]);for($=0;$<Q.length;$++)B=Q[$],K4(B[0],B[1],G,N+1,U);return}}if(B==="Promise"){if(Q.status==="fulfilled"){if(B=G.length,K4($,Q.value,G,N,U),G.length>B){G=G[B],G[1]="Promise<"+(G[1]||"Object")+">";return}}else if(Q.status==="rejected"&&(B=G.length,K4($,Q.reason,G,N,U),G.length>B)){G=G[B],G[1]="Rejected Promise<"+G[1]+">";return}G.push([" ".repeat(N)+$,"Promise"]);return}B==="Object"&&(C=Object.getPrototypeOf(Q))&&typeof C.constructor==="function"&&(B=C.constructor.name),G.push([U+" ".repeat(N)+$,B==="Object"?3>N?"":"…":B]),3>N&&xX(Q,G,N+1,U);return}case"function":Q=Q.name===""?"() => {}":Q.name+"() {}";break;case"string":Q=Q===RV?"…":JSON.stringify(Q);break;case"undefined":Q="undefined";break;case"boolean":Q=Q?"true":"false";break;default:Q=String(Q)}G.push([U+" ".repeat(N)+$,Q])}function LB($,Q,G,N){var U=!0;for(F in $)F in Q||(G.push([SG+" ".repeat(N)+F,"…"]),U=!1);for(var B in Q)if(B in $){var F=$[B],R=Q[B];if(F!==R){if(N===0&&B==="children")U=" ".repeat(N)+B,G.push([SG+U,"…"],[DG+U,"…"]);else{if(!(3<=N)){if(typeof F==="object"&&typeof R==="object"&&F!==null&&R!==null&&F.$$typeof===R.$$typeof)if(R.$$typeof===O4){if(F.type===R.type&&F.key===R.key){F=i(R.type)||"…",U=" ".repeat(N)+B,F="<"+F+" … />",G.push([SG+U,F],[DG+U,F]),U=!1;continue}}else{var L=Object.prototype.toString.call(F),C=Object.prototype.toString.call(R);if(L===C&&(C==="[object Object]"||C==="[object Array]")){L=[SF+" ".repeat(N)+B,C==="[object Array]"?"Array":""],G.push(L),C=G.length,LB(F,R,G,N+1)?C===G.length&&(L[1]="Referentially unequal but deeply equal objects. Consider memoization."):U=!1;continue}}else if(typeof F==="function"&&typeof R==="function"&&F.name===R.name&&F.length===R.length&&(L=Function.prototype.toString.call(F),C=Function.prototype.toString.call(R),L===C)){F=R.name===""?"() => {}":R.name+"() {}",G.push([SF+" ".repeat(N)+B,F+" Referentially unequal function closure. Consider memoization."]);continue}}K4(B,F,G,N,SG),K4(B,R,G,N,DG)}U=!1}}else G.push([DG+" ".repeat(N)+B,"…"]),U=!1;return U}function Y5($){p0=$&63?"Blocking":$&64?"Gesture":$&4194176?"Transition":$&62914560?"Suspense":$&2080374784?"Idle":"Other"}function B4($,Q,G,N){L1&&(q8.start=Q,q8.end=G,q$.color="warning",q$.tooltipText=N,q$.properties=null,($=$._debugTask)?$.run(performance.measure.bind(performance,N,q8)):performance.measure(N,q8))}function wZ($,Q,G){B4($,Q,G,"Reconnect")}function RZ($,Q,G,N,U){var B=d($);if(B!==null&&L1){var{alternate:F,actualDuration:R}=$;if(F===null||F.child!==$.child)for(var L=$.child;L!==null;L=L.sibling)R-=L.actualDuration;N=0.5>R?N?"tertiary-light":"primary-light":10>R?N?"tertiary":"primary":100>R?N?"tertiary-dark":"primary-dark":"error";var C=$.memoizedProps;R=$._debugTask,C!==null&&F!==null&&F.memoizedProps!==C?(L=[zV],C=LB(F.memoizedProps,C,L,0),1<L.length&&(C&&!G8&&(F.lanes&U)===0&&100<$.actualDuration?(G8=!0,L[0]=TV,q$.color="warning",q$.tooltipText=DF):(q$.color=N,q$.tooltipText=B),q$.properties=L,q8.start=Q,q8.end=G,R!=null?R.run(performance.measure.bind(performance,""+B,q8)):performance.measure(""+B,q8))):R!=null?R.run(console.timeStamp.bind(console,B,Q,G,j5,void 0,N)):console.timeStamp(B,Q,G,j5,void 0,N)}}function uX($,Q,G,N){if(L1){var U=d($);if(U!==null){for(var B=null,F=[],R=0;R<N.length;R++){var L=N[R];B==null&&L.source!==null&&(B=L.source._debugTask),L=L.value,F.push(["Error",typeof L==="object"&&L!==null&&typeof L.message==="string"?String(L.message):String(L)])}$.key!==null&&K4("key",$.key,F,0,""),$.memoizedProps!==null&&xX($.memoizedProps,F,0,""),B==null&&(B=$._debugTask),$={start:Q,end:G,detail:{devtools:{color:"error",track:j5,tooltipText:$.tag===13?"Hydration failed":"Error boundary caught an error",properties:F}}},B?B.run(performance.measure.bind(performance,""+U,$)):performance.measure(""+U,$)}}}function H4($,Q,G,N,U){if(U!==null){if(L1){var B=d($);if(B!==null){N=[];for(var F=0;F<U.length;F++){var R=U[F].value;N.push(["Error",typeof R==="object"&&R!==null&&typeof R.message==="string"?String(R.message):String(R)])}$.key!==null&&K4("key",$.key,N,0,""),$.memoizedProps!==null&&xX($.memoizedProps,N,0,""),Q={start:Q,end:G,detail:{devtools:{color:"error",track:j5,tooltipText:"A lifecycle or effect errored",properties:N}}},($=$._debugTask)?$.run(performance.measure.bind(performance,""+B,Q)):performance.measure(""+B,Q)}}}else B=d($),B!==null&&L1&&(U=1>N?"secondary-light":100>N?"secondary":500>N?"secondary-dark":"error",($=$._debugTask)?$.run(console.timeStamp.bind(console,B,Q,G,j5,void 0,U)):console.timeStamp(B,Q,G,j5,void 0,U))}function xC($,Q,G,N){if(L1&&!(Q<=$)){var U=(G&738197653)===G?"tertiary-dark":"primary-dark";G=(G&536870912)===G?"Prepared":(G&201326741)===G?"Hydrated":"Render",N?N.run(console.timeStamp.bind(console,G,$,Q,p0,m0,U)):console.timeStamp(G,$,Q,p0,m0,U)}}function PB($,Q,G,N){!L1||Q<=$||(G=(G&738197653)===G?"tertiary-dark":"primary-dark",N?N.run(console.timeStamp.bind(console,"Prewarm",$,Q,p0,m0,G)):console.timeStamp("Prewarm",$,Q,p0,m0,G))}function CB($,Q,G,N){!L1||Q<=$||(G=(G&738197653)===G?"tertiary-dark":"primary-dark",N?N.run(console.timeStamp.bind(console,"Suspended",$,Q,p0,m0,G)):console.timeStamp("Suspended",$,Q,p0,m0,G))}function uC($,Q,G,N,U,B){if(L1&&!(Q<=$)){G=[];for(var F=0;F<N.length;F++){var R=N[F].value;G.push(["Recoverable Error",typeof R==="object"&&R!==null&&typeof R.message==="string"?String(R.message):String(R)])}$={start:$,end:Q,detail:{devtools:{color:"primary-dark",track:p0,trackGroup:m0,tooltipText:U?"Hydration Failed":"Recovered after Error",properties:G}}},B?B.run(performance.measure.bind(performance,"Recovered",$)):performance.measure("Recovered",$)}}function mX($,Q,G,N){!L1||Q<=$||(N?N.run(console.timeStamp.bind(console,"Errored",$,Q,p0,m0,"error")):console.timeStamp("Errored",$,Q,p0,m0,"error"))}function mC($,Q,G,N){!L1||Q<=$||(N?N.run(console.timeStamp.bind(console,G,$,Q,p0,m0,"secondary-light")):console.timeStamp(G,$,Q,p0,m0,"secondary-light"))}function _B($,Q,G,N,U){if(L1&&!(Q<=$)){for(var B=[],F=0;F<G.length;F++){var R=G[F].value;B.push(["Error",typeof R==="object"&&R!==null&&typeof R.message==="string"?String(R.message):String(R)])}$={start:$,end:Q,detail:{devtools:{color:"error",track:p0,trackGroup:m0,tooltipText:N?"Remaining Effects Errored":"Commit Errored",properties:B}}},U?U.run(performance.measure.bind(performance,"Errored",$)):performance.measure("Errored",$)}}function fQ($,Q,G){!L1||Q<=$||(G?G.run(console.timeStamp.bind(console,"Animating",$,Q,p0,m0,"secondary-dark")):console.timeStamp("Animating",$,Q,p0,m0,"secondary-dark"))}function zZ(){for(var $=v9,Q=HY=v9=0;Q<$;){var G=S5[Q];S5[Q++]=null;var N=S5[Q];S5[Q++]=null;var U=S5[Q];S5[Q++]=null;var B=S5[Q];if(S5[Q++]=null,N!==null&&U!==null){var F=N.pending;F===null?U.next=U:(U.next=F.next,F.next=U),N.pending=U}B!==0&&IB(G,U,B)}}function TZ($,Q,G,N){S5[v9++]=$,S5[v9++]=Q,S5[v9++]=G,S5[v9++]=N,HY|=N,$.lanes|=N,$=$.alternate,$!==null&&($.lanes|=N)}function dX($,Q,G,N){return TZ($,Q,G,N),LZ($)}function _6($,Q){return TZ($,null,null,Q),LZ($)}function IB($,Q,G){$.lanes|=G;var N=$.alternate;N!==null&&(N.lanes|=G);for(var U=!1,B=$.return;B!==null;)B.childLanes|=G,N=B.alternate,N!==null&&(N.childLanes|=G),B.tag===22&&($=B.stateNode,$===null||$._visibility&C2||(U=!0)),$=B,B=B.return;return $.tag===3?(B=$.stateNode,U&&Q!==null&&(U=31-D6(G),$=B.hiddenUpdates,N=$[U],N===null?$[U]=[Q]:N.push(Q),Q.lane=G|536870912),B):null}function LZ($){if(o2>bV)throw O7=o2=0,i2=lY=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.");O7>yV&&(O7=0,i2=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&&uM($);for(var Q=$,G=Q.return;G!==null;)Q.alternate===null&&(Q.flags&4098)!==0&&uM($),Q=G,G=Q.return;return Q.tag===3?Q.stateNode:null}function t8($){if(D5===null)return $;var Q=D5($);return Q===void 0?$:Q.current}function pX($){if(D5===null)return $;var Q=D5($);return Q===void 0?$!==null&&$!==void 0&&typeof $.render==="function"&&(Q=t8($.render),$.render!==Q)?(Q={$$typeof:K2,render:Q},$.displayName!==void 0&&(Q.displayName=$.displayName),Q):$:Q.current}function VB($,Q){if(D5===null)return!1;var G=$.elementType;Q=Q.type;var N=!1,U=typeof Q==="object"&&Q!==null?Q.$$typeof:null;switch($.tag){case 1:typeof Q==="function"&&(N=!0);break;case 0:typeof Q==="function"?N=!0:U===F5&&(N=!0);break;case 11:U===K2?N=!0:U===F5&&(N=!0);break;case 14:case 15:U===RG?N=!0:U===F5&&(N=!0);break;default:return!1}return N&&($=D5(G),$!==void 0&&$===D5(Q))?!0:!1}function OB($){D5!==null&&typeof WeakSet==="function"&&(k9===null&&(k9=new WeakSet),k9.add($))}function EB($,Q,G){do{var N=$,U=N.alternate,B=N.child,F=N.sibling,R=N.tag;N=N.type;var L=null;switch(R){case 0:case 15:case 1:L=N;break;case 11:L=N.render}if(D5===null)throw Error("Expected resolveFamily to be set during hot reload.");var C=!1;if(N=!1,L!==null&&(L=D5(L),L!==void 0&&(G.has(L)?N=!0:Q.has(L)&&(R===1?N=!0:C=!0))),k9!==null&&(k9.has($)||U!==null&&k9.has(U))&&(N=!0),N&&($._debugNeedsRemount=!0),N||C)U=_6($,2),U!==null&&v1(U,$,2);if(B===null||N||EB(B,Q,G),F===null)break;$=F}while(1)}function dC($,Q,G,N){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=Q,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=N,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,vF||typeof Object.preventExtensions!=="function"||Object.preventExtensions(this)}function cX($){return $=$.prototype,!(!$||!$.isReactComponent)}function a4($,Q){var G=$.alternate;switch(G===null?(G=P($.tag,Q,$.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=Q,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,Q=$.dependencies,G.dependencies=Q===null?null:{lanes:Q.lanes,firstContext:Q.firstContext,_debugThenableState:Q._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=t8($.type);break;case 1:G.type=t8($.type);break;case 11:G.type=pX($.type)}return G}function AB($,Q){$.flags&=65011714;var G=$.alternate;return G===null?($.childLanes=0,$.lanes=Q,$.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,Q=G.dependencies,$.dependencies=Q===null?null:{lanes:Q.lanes,firstContext:Q.firstContext,_debugThenableState:Q._debugThenableState},$.selfBaseDuration=G.selfBaseDuration,$.treeBaseDuration=G.treeBaseDuration),$}function lX($,Q,G,N,U,B){var F=0,R=$;if(typeof $==="function")cX($)&&(F=1),R=t8(R);else if(typeof $==="string")F=N0(),F=a_($,G,F)?26:$==="html"||$==="head"||$==="body"?27:5;else $:switch($){case gN:return Q=P(31,G,Q,U),Q.elementType=gN,Q.lanes=B,Q;case P9:return e8(G.children,U,B,Q);case wG:F=8,U|=V6,U|=$4;break;case kN:return $=G,N=U,typeof $.id!=="string"&&console.error('Profiler must specify an "id" of type `string` as a prop. Received the type `%s` instead.',typeof $.id),Q=P(12,$,Q,N|b0),Q.elementType=kN,Q.lanes=B,Q.stateNode={effectDuration:0,passiveEffectDuration:0},Q;case yN:return Q=P(13,G,Q,U),Q.elementType=yN,Q.lanes=B,Q;case fN:return Q=P(19,G,Q,U),Q.elementType=fN,Q.lanes=B,Q;default:if(typeof $==="object"&&$!==null)switch($.$$typeof){case E4:F=10;break $;case bN:F=9;break $;case K2:F=11,R=pX(R);break $;case RG:F=14;break $;case F5:F=16,R=null;break $}if(R="",$===void 0||typeof $==="object"&&$!==null&&Object.keys($).length===0)R+=" 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":$6($)?G="array":$!==void 0&&$.$$typeof===O4?(G="<"+(i($.type)||"Unknown")+" />",R=" Did you accidentally export a JSX literal instead of a component?"):G=typeof $,(F=N?X0(N):null)&&(R+=`
|
|
72
|
+
|
|
73
|
+
Check the render method of \``+F+"`."),F=29,G=Error("Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) but got: "+(G+"."+R)),R=null}return Q=P(F,G,Q,U),Q.elementType=$,Q.type=R,Q.lanes=B,Q._debugOwner=N,Q}function PZ($,Q,G){return Q=lX($.type,$.key,$.props,$._owner,Q,G),Q._debugOwner=$._owner,Q._debugStack=$._debugStack,Q._debugTask=$._debugTask,Q}function e8($,Q,G,N){return $=P(7,$,N,Q),$.lanes=G,$}function rX($,Q,G){return $=P(6,$,null,Q),$.lanes=G,$}function jB($){var Q=P(18,null,null,I0);return Q.stateNode=$,Q}function sX($,Q,G){return Q=P(4,$.children!==null?$.children:[],$.key,Q),Q.lanes=G,Q.stateNode={containerInfo:$.containerInfo,pendingChildren:null,implementation:$.implementation},Q}function U5($,Q){if(typeof $==="object"&&$!==null){var G=MY.get($);if(G!==void 0)return G;return Q={value:$,source:Q,stack:A1(Q)},MY.set($,Q),Q}return{value:$,source:Q,stack:A1(Q)}}function t4($,Q){m$(),b9[y9++]=_2,b9[y9++]=vG,vG=$,_2=Q}function SB($,Q,G){m$(),v5[k5++]=N$,v5[k5++]=Y$,v5[k5++]=H7,H7=$;var N=N$;$=Y$;var U=32-D6(N)-1;N&=~(1<<U),G+=1;var B=32-D6(Q)+U;if(30<B){var F=U-U%5;B=(N&(1<<F)-1).toString(32),N>>=F,U-=F,N$=1<<32-D6(Q)+U|G<<U|N,Y$=B+$}else N$=1<<B|G<<U|N,Y$=$}function nX($){m$(),$.return!==null&&(t4($,1),SB($,1,0))}function oX($){for(;$===vG;)vG=b9[--y9],b9[y9]=null,_2=b9[--y9],b9[y9]=null;for(;$===H7;)H7=v5[--k5],v5[k5]=null,Y$=v5[--k5],v5[k5]=null,N$=v5[--k5],v5[k5]=null}function DB(){return m$(),H7!==null?{id:N$,overflow:Y$}:null}function vB($,Q){m$(),v5[k5++]=N$,v5[k5++]=Y$,v5[k5++]=H7,N$=Q.id,Y$=Q.overflow,H7=$}function m$(){l0||console.error("Expected to be hydrating. This is a bug in React. Please file an issue.")}function $7($,Q){if($.return===null){if(z5===null)z5={fiber:$,children:[],serverProps:void 0,serverTail:[],distanceFromLeaf:Q};else{if(z5.fiber!==$)throw Error("Saw multiple hydration diff roots in a pass. This is a bug in React.");z5.distanceFromLeaf>Q&&(z5.distanceFromLeaf=Q)}return z5}var G=$7($.return,Q+1).children;if(0<G.length&&G[G.length-1].fiber===$)return G=G[G.length-1],G.distanceFromLeaf>Q&&(G.distanceFromLeaf=Q),G;return Q={fiber:$,children:[],serverProps:void 0,serverTail:[],distanceFromLeaf:Q},G.push(Q),Q}function kB(){l0&&console.error("We should not be hydrating here. This is a bug in React. Please file a bug.")}function CZ($,Q){k4||($=$7($,0),$.serverProps=null,Q!==null&&(Q=BW(Q),$.serverTail.push(Q)))}function d$($){var Q=1<arguments.length&&arguments[1]!==void 0?arguments[1]:!1,G="",N=z5;throw N!==null&&(z5=null,G=bX(N)),gQ(U5(Error("Hydration failed because the server rendered "+(Q?"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),$)),
|
|
83
|
+
https://react.dev/link/hydration-mismatch`+G),$)),WY}function bB($){var{stateNode:Q,type:G,memoizedProps:N}=$;switch(Q[F6]=$,Q[v6]=N,FN(G,N),G){case"dialog":s0("cancel",Q),s0("close",Q);break;case"iframe":case"object":case"embed":s0("load",Q);break;case"video":case"audio":for(G=0;G<a2.length;G++)s0(a2[G],Q);break;case"source":s0("error",Q);break;case"img":case"image":case"link":s0("error",Q),s0("load",Q);break;case"details":s0("toggle",Q);break;case"input":u$("input",N),s0("invalid",Q),uK(Q,N),mK(Q,N.value,N.defaultValue,N.checked,N.defaultChecked,N.type,N.name,!0);break;case"option":dK(Q,N);break;case"select":u$("select",N),s0("invalid",Q),cK(Q,N);break;case"textarea":u$("textarea",N),s0("invalid",Q),lK(Q,N),sK(Q,N.value,N.defaultValue,N.children)}G=N.children,typeof G!=="string"&&typeof G!=="number"&&typeof G!=="bigint"||Q.textContent===""+G||N.suppressHydrationWarning===!0||aM(Q.textContent,G)?(N.popover!=null&&(s0("beforetoggle",Q),s0("toggle",Q)),N.onScroll!=null&&s0("scroll",Q),N.onScrollEnd!=null&&s0("scrollend",Q),N.onClick!=null&&(Q.onclick=i4),Q=!0):Q=!1,Q||d$($,!0)}function yB($){for(w6=$.return;w6;)switch(w6.tag){case 5:case 31:case 13:b5=!1;return;case 27:case 3:b5=!0;return;default:w6=w6.return}}function q9($){if($!==w6)return!1;if(!l0)return yB($),l0=!0,!1;var Q=$.tag,G;if(G=Q!==3&&Q!==27){if(G=Q===5)G=$.type,G=!(G!=="form"&&G!=="button")||LN($.type,$.memoizedProps);G=!G}if(G&&P1){for(G=P1;G;){var N=$7($,0),U=BW(G);N.serverTail.push(U),G=U.type==="Suspense"?IN(G):W5(G.nextSibling)}d$($)}if(yB($),Q===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.");P1=IN($)}else if(Q===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.");P1=IN($)}else Q===27?(Q=P1,t$($.type)?($=ZU,ZU=null,P1=$):P1=Q):P1=w6?W5($.stateNode.nextSibling):null;return!0}function Q7(){P1=w6=null,k4=l0=!1}function iX(){var $=N8;return $!==null&&(h6===null?h6=$:h6.push.apply(h6,$),N8=null),$}function gQ($){N8===null?N8=[$]:N8.push($)}function aX(){var $=z5;if($!==null){z5=null;for(var Q=bX($);0<$.children.length;)$=$.children[0];q0($.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,54 +90,54 @@ https://react.dev/link/hydration-mismatch`+G),$)),KN}function DB($){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",
|
|
93
|
+
%s%s`,"https://react.dev/link/hydration-mismatch",Q)})}}function _Z(){f9=kG=null,g9=!1}function p$($,Q,G){C0(FY,Q._currentValue,$),Q._currentValue=G,C0(wY,Q._currentRenderer,$),Q._currentRenderer!==void 0&&Q._currentRenderer!==null&&Q._currentRenderer!==bF&&console.error("Detected multiple renderers concurrently rendering the same context provider. This is currently unsupported."),Q._currentRenderer=bF}function e4($,Q){$._currentValue=FY.current;var G=wY.current;H0(wY,Q),$._currentRenderer=G,H0(FY,Q)}function tX($,Q,G){for(;$!==null;){var N=$.alternate;if(($.childLanes&Q)!==Q?($.childLanes|=Q,N!==null&&(N.childLanes|=Q)):N!==null&&(N.childLanes&Q)!==Q&&(N.childLanes|=Q),$===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 eX($,Q,G,N){var U=$.child;U!==null&&(U.return=$);for(;U!==null;){var B=U.dependencies;if(B!==null){var F=U.child;B=B.firstContext;$:for(;B!==null;){var R=B;B=U;for(var L=0;L<Q.length;L++)if(R.context===Q[L]){B.lanes|=G,R=B.alternate,R!==null&&(R.lanes|=G),tX(B.return,G,$),N||(F=null);break $}B=R.next}}else if(U.tag===18){if(F=U.return,F===null)throw Error("We just came from a parent so we must have had a parent. This is a bug in React.");F.lanes|=G,B=F.alternate,B!==null&&(B.lanes|=G),tX(F,G,$),F=null}else F=U.child;if(F!==null)F.return=U;else for(F=U;F!==null;){if(F===$){F=null;break}if(U=F.sibling,U!==null){U.return=F.return,F=U;break}F=F.return}U=F}}function X9($,Q,G,N){$=null;for(var U=Q,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 F=U.alternate;if(F===null)throw Error("Should have a current fiber. This is a bug in React.");if(F=F.memoizedProps,F!==null){var R=U.type;b6(U.pendingProps.value,F.value)||($!==null?$.push(R):$=[R])}}else if(U===zG.current){if(F=U.alternate,F===null)throw Error("Should have a current fiber. This is a bug in React.");F.memoizedState.memoizedState!==U.memoizedState.memoizedState&&($!==null?$.push(JJ):$=[JJ])}U=U.return}$!==null&&eX(Q,$,G,N),Q.flags|=262144}function IZ($){for($=$.firstContext;$!==null;){if(!b6($.context._currentValue,$.memoizedValue))return!0;$=$.next}return!1}function J7($){kG=$,f9=null,$=$.dependencies,$!==null&&($.firstContext=null)}function O1($){return g9&&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()."),fB(kG,$)}function VZ($,Q){return kG===null&&J7($),fB($,Q)}function fB($,Q){var G=Q._currentValue;if(Q={context:Q,memoizedValue:G,next:null},f9===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().");f9=Q,$.dependencies={lanes:0,firstContext:Q,_debugThenableState:null},$.flags|=524288}else f9=f9.next=Q;return G}function $3(){return{controller:new CV,data:new Map,refCount:0}}function Z7($){$.controller.signal.aborted&&console.warn("A cache instance was retained after it was already freed. This likely indicates a bug in React."),$.refCount++}function hQ($){$.refCount--,0>$.refCount&&console.warn("A cache instance was released after it was already freed. This likely indicates a bug in React."),$.refCount===0&&_V(IV,function(){$.controller.abort()})}function M4($,Q,G){if(($&127)!==0)0>b4&&(b4=l1(),V2=bG(Q),RY=Q,G!=null&&(zY=d(G)),(i0&(J6|P5))!==K6&&(k1=!0,K8=I2),$=q2(),Q=G2(),$!==h9||Q!==O2?h9=-1.1:Q!==null&&(K8=I2),W7=$,O2=Q);else if(($&4194048)!==0&&0>y5&&(y5=l1(),E2=bG(Q),yF=Q,G!=null&&(fF=d(G)),0>B$)){if($=q2(),Q=G2(),$!==H8||Q!==F7)H8=-1.1;B8=$,F7=Q}}function pC($){if(0>b4){b4=l1(),V2=$._debugTask!=null?$._debugTask:null,(i0&(J6|P5))!==K6&&(K8=I2);var Q=q2(),G=G2();Q!==h9||G!==O2?h9=-1.1:G!==null&&(K8=I2),W7=Q,O2=G}if(0>y5&&(y5=l1(),E2=$._debugTask!=null?$._debugTask:null,0>B$)){if($=q2(),Q=G2(),$!==H8||Q!==F7)H8=-1.1;B8=$,F7=Q}}function $$(){var $=M7;return M7=0,$}function OZ($){var Q=M7;return M7=$,Q}function xQ($){var Q=M7;return M7+=$,Q}function EZ(){P0=L0=-1.1}function K5(){var $=L0;return L0=-1.1,$}function B5($){0<=$&&(L0=$)}function W4(){var $=j1;return j1=-0,$}function F4($){0<=$&&(j1=$)}function w4(){var $=E1;return E1=null,$}function R4(){var $=k1;return k1=!1,$}function Q3($){y6=l1(),0>$.actualStartTime&&($.actualStartTime=y6)}function J3($){if(0<=y6){var Q=l1()-y6;$.actualDuration+=Q,$.selfBaseDuration=Q,y6=-1}}function gB($){if(0<=y6){var Q=l1()-y6;$.actualDuration+=Q,y6=-1}}function z4(){if(0<=y6){var $=l1(),Q=$-y6;y6=-1,M7+=Q,j1+=Q,P0=$}}function hB($){E1===null&&(E1=[]),E1.push($),K$===null&&(K$=[]),K$.push($)}function T4(){y6=l1(),0>L0&&(L0=y6)}function uQ($){for(var Q=$.child;Q;)$.actualDuration+=Q.actualDuration,Q=Q.sibling}function cC($,Q){if(j2===null){var G=j2=[];LY=0,w7=BN(),x9={status:"pending",value:void 0,then:function(N){G.push(N)}}}return LY++,Q.then(xB,xB),Q}function xB(){if(--LY===0&&(-1<y5||(B$=-1.1),j2!==null)){x9!==null&&(x9.status="fulfilled");var $=j2;j2=null,w7=0,x9=null;for(var Q=0;Q<$.length;Q++)(0,$[Q])()}}function lC($,Q){var G=[],N={status:"pending",value:null,reason:null,then:function(U){G.push(U)}};return $.then(function(){N.status="fulfilled",N.value=Q;for(var U=0;U<G.length;U++)(0,G[U])(Q)},function(U){N.status="rejected",N.reason=U;for(U=0;U<G.length;U++)(0,G[U])(void 0)}),N}function Z3(){var $=R7.current;return $!==null?$:W1.pooledCache}function AZ($,Q){Q===null?C0(R7,R7.current,$):C0(R7,Q.pool,$)}function uB(){var $=Z3();return $===null?null:{parent:c1._currentValue,pool:$}}function mB(){return{didWarnAboutUncachedPromise:!1,thenables:[]}}function dB($){return $=$.status,$==="fulfilled"||$==="rejected"}function pB($,Q,G){u.actQueue!==null&&(u.didUsePromise=!0);var N=$.thenables;if(G=N[G],G===void 0?N.push(Q):G!==Q&&($.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.")),Q.then(i4,i4),Q=G),Q._debugInfo===void 0){$=performance.now(),N=Q.displayName;var U={name:typeof N==="string"?N:"Promise",start:$,end:$,value:Q};Q._debugInfo=[{awaited:U}],Q.status!=="fulfilled"&&Q.status!=="rejected"&&($=function(){U.end=performance.now()},Q.then($,$))}switch(Q.status){case"fulfilled":return Q.value;case"rejected":throw $=Q.reason,lB($),$;default:if(typeof Q.status==="string")Q.then(i4,i4);else{if($=W1,$!==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.");$=Q,$.status="pending",$.then(function(B){if(Q.status==="pending"){var F=Q;F.status="fulfilled",F.value=B}},function(B){if(Q.status==="pending"){var F=Q;F.status="rejected",F.reason=B}})}switch(Q.status){case"fulfilled":return Q.value;case"rejected":throw $=Q.reason,lB($),$}throw T7=Q,f2=!0,u9}}function c$($){try{return AV($)}catch(Q){if(Q!==null&&typeof Q==="object"&&typeof Q.then==="function")throw T7=Q,f2=!0,u9;throw Q}}function cB(){if(T7===null)throw Error("Expected a suspended thenable. This is a bug in React. Please file an issue.");var $=T7;return T7=null,f2=!1,$}function lB($){if($===u9||$===dG)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 H6($){var Q=y0;return $!=null&&(y0=Q===null?$:Q.concat($)),Q}function G3(){var $=y0;if($!=null){for(var Q=$.length-1;0<=Q;Q--)if($[Q].name!=null){var G=$[Q].debugTask;if(G!=null)return G}}return null}function jZ($,Q,G){for(var N=Object.keys($.props),U=0;U<N.length;U++){var B=N[U];if(B!=="children"&&B!=="key"){Q===null&&(Q=PZ($,G.mode,0),Q._debugInfo=y0,Q.return=G),q0(Q,function(F){console.error("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",F)},B);break}}}function SZ($){var Q=g2;return g2+=1,m9===null&&(m9=mB()),pB(m9,$,Q)}function mQ($,Q){Q=Q.props.ref,$.ref=Q!==void 0?Q:null}function rB($,Q){if(Q.$$typeof===NI)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
|
-
- A compiler tries to "inline" JSX instead of using the runtime.`);throw $=Object.prototype.toString.call(
|
|
97
|
-
root.render(%s)`,
|
|
98
|
-
<%s>{%s}</%s>`,
|
|
99
|
-
root.render(%s)`,
|
|
100
|
-
<%s>%s</%s>`,G,Z,G))}function jJ($,Z){var G=$q();G!==null?G.run(lB.bind(null,$,Z)):lB($,Z)}function rB($){function Z(A,S){if($){var b=A.deletions;b===null?(A.deletions=[S],A.flags|=16):b.push(S)}}function G(A,S){if(!$)return null;for(;S!==null;)Z(A,S),S=S.sibling;return null}function Y(A){for(var S=new Map;A!==null;)A.key!==null?S.set(A.key,A):S.set(A.index,A),A=A.sibling;return S}function U(A,S){return A=n4(A,S),A.index=0,A.sibling=null,A}function B(A,S,b){if(A.index=b,!$)return A.flags|=1048576,S;if(b=A.alternate,b!==null)return b=b.index,b<S?(A.flags|=67108866,S):b;return A.flags|=67108866,S}function W(A){return $&&A.alternate===null&&(A.flags|=67108866),A}function R(A,S,b,m){if(S===null||S.tag!==6)return S=dX(b,A.mode,m),S.return=A,S._debugOwner=A,S._debugTask=A._debugTask,S._debugInfo=y0,S;return S=U(S,b),S.return=A,S._debugInfo=y0,S}function P(A,S,b,m){var Q0=b.type;if(Q0===T7)return S=k(A,S,b.props.children,m,b.key),VJ(b,S,A),S;if(S!==null&&(S.elementType===Q0||CB(S,b)||typeof Q0==="object"&&Q0!==null&&Q0.$$typeof===M6&&u8(Q0)===S.type))return S=U(S,b.props),x$(S,b),S.return=A,S._debugOwner=b._owner,S._debugInfo=y0,S;return S=RJ(b,A.mode,m),x$(S,b),S.return=A,S._debugInfo=y0,S}function C(A,S,b,m){if(S===null||S.tag!==4||S.stateNode.containerInfo!==b.containerInfo||S.stateNode.implementation!==b.implementation)return S=pX(b,A.mode,m),S.return=A,S._debugInfo=y0,S;return S=U(S,b.children||[]),S.return=A,S._debugInfo=y0,S}function k(A,S,b,m,Q0){if(S===null||S.tag!==7)return S=a2(b,A.mode,m,Q0),S.return=A,S._debugOwner=A,S._debugTask=A._debugTask,S._debugInfo=y0,S;return S=U(S,b),S.return=A,S._debugInfo=y0,S}function f(A,S,b){if(typeof S==="string"&&S!==""||typeof S==="number"||typeof S==="bigint")return S=dX(""+S,A.mode,b),S.return=A,S._debugOwner=A,S._debugTask=A._debugTask,S._debugInfo=y0,S;if(typeof S==="object"&&S!==null){switch(S.$$typeof){case I4:return b=RJ(S,A.mode,b),x$(b,S),b.return=A,A=B5(S._debugInfo),b._debugInfo=y0,y0=A,b;case z7:return S=pX(S,A.mode,b),S.return=A,S._debugInfo=y0,S;case M6:var m=B5(S._debugInfo);return S=u8(S),A=f(A,S,b),y0=m,A}if($5(S)||a(S))return b=a2(S,A.mode,b,null),b.return=A,b._debugOwner=A,b._debugTask=A._debugTask,A=B5(S._debugInfo),b._debugInfo=y0,y0=A,b;if(typeof S.then==="function")return m=B5(S._debugInfo),A=f(A,OJ(S),b),y0=m,A;if(S.$$typeof===V4)return f(A,LJ(A,S),b);EJ(A,S)}return typeof S==="function"&&AJ(A,S),typeof S==="symbol"&&jJ(A,S),null}function j(A,S,b,m){var Q0=S!==null?S.key:null;if(typeof b==="string"&&b!==""||typeof b==="number"||typeof b==="bigint")return Q0!==null?null:R(A,S,""+b,m);if(typeof b==="object"&&b!==null){switch(b.$$typeof){case I4:return b.key===Q0?(Q0=B5(b._debugInfo),A=P(A,S,b,m),y0=Q0,A):null;case z7:return b.key===Q0?C(A,S,b,m):null;case M6:return Q0=B5(b._debugInfo),b=u8(b),A=j(A,S,b,m),y0=Q0,A}if($5(b)||a(b)){if(Q0!==null)return null;return Q0=B5(b._debugInfo),A=k(A,S,b,m,null),y0=Q0,A}if(typeof b.then==="function")return Q0=B5(b._debugInfo),A=j(A,S,OJ(b),m),y0=Q0,A;if(b.$$typeof===V4)return j(A,S,LJ(A,b),m);EJ(A,b)}return typeof b==="function"&&AJ(A,b),typeof b==="symbol"&&jJ(A,b),null}function g(A,S,b,m,Q0){if(typeof m==="string"&&m!==""||typeof m==="number"||typeof m==="bigint")return A=A.get(b)||null,R(S,A,""+m,Q0);if(typeof m==="object"&&m!==null){switch(m.$$typeof){case I4:return b=A.get(m.key===null?b:m.key)||null,A=B5(m._debugInfo),S=P(S,b,m,Q0),y0=A,S;case z7:return A=A.get(m.key===null?b:m.key)||null,C(S,A,m,Q0);case M6:var O0=B5(m._debugInfo);return m=u8(m),S=g(A,S,b,m,Q0),y0=O0,S}if($5(m)||a(m))return b=A.get(b)||null,A=B5(m._debugInfo),S=k(S,b,m,Q0,null),y0=A,S;if(typeof m.then==="function")return O0=B5(m._debugInfo),S=g(A,S,b,OJ(m),Q0),y0=O0,S;if(m.$$typeof===V4)return g(A,S,b,LJ(S,m),Q0);EJ(S,m)}return typeof m==="function"&&AJ(S,m),typeof m==="symbol"&&jJ(S,m),null}function e(A,S,b,m){if(typeof b!=="object"||b===null)return m;switch(b.$$typeof){case I4:case z7:z(A,S,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}G0(S,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 M6:b=u8(b),e(A,S,b,m)}return m}function J0(A,S,b,m){for(var Q0=null,O0=null,R0=null,U0=S,b0=S=0,C1=null;U0!==null&&b0<b.length;b0++){U0.index>b0?(C1=U0,U0=null):C1=U0.sibling;var x1=j(A,U0,b[b0],m);if(x1===null){U0===null&&(U0=C1);break}Q0=e(A,x1,b[b0],Q0),$&&U0&&x1.alternate===null&&Z(A,U0),S=B(x1,S,b0),R0===null?O0=x1:R0.sibling=x1,R0=x1,U0=C1}if(b0===b.length)return G(A,U0),s0&&o4(A,b0),O0;if(U0===null){for(;b0<b.length;b0++)U0=f(A,b[b0],m),U0!==null&&(Q0=e(A,U0,b[b0],Q0),S=B(U0,S,b0),R0===null?O0=U0:R0.sibling=U0,R0=U0);return s0&&o4(A,b0),O0}for(U0=Y(U0);b0<b.length;b0++)C1=g(U0,A,b0,b[b0],m),C1!==null&&(Q0=e(A,C1,b[b0],Q0),$&&C1.alternate!==null&&U0.delete(C1.key===null?b0:C1.key),S=B(C1,S,b0),R0===null?O0=C1:R0.sibling=C1,R0=C1);return $&&U0.forEach(function(R8){return Z(A,R8)}),s0&&o4(A,b0),O0}function z1(A,S,b,m){if(b==null)throw Error("An iterable object provided no iterator.");for(var Q0=null,O0=null,R0=S,U0=S=0,b0=null,C1=null,x1=b.next();R0!==null&&!x1.done;U0++,x1=b.next()){R0.index>U0?(b0=R0,R0=null):b0=R0.sibling;var R8=j(A,R0,x1.value,m);if(R8===null){R0===null&&(R0=b0);break}C1=e(A,R8,x1.value,C1),$&&R0&&R8.alternate===null&&Z(A,R0),S=B(R8,S,U0),O0===null?Q0=R8:O0.sibling=R8,O0=R8,R0=b0}if(x1.done)return G(A,R0),s0&&o4(A,U0),Q0;if(R0===null){for(;!x1.done;U0++,x1=b.next())R0=f(A,x1.value,m),R0!==null&&(C1=e(A,R0,x1.value,C1),S=B(R0,S,U0),O0===null?Q0=R0:O0.sibling=R0,O0=R0);return s0&&o4(A,U0),Q0}for(R0=Y(R0);!x1.done;U0++,x1=b.next())b0=g(R0,A,U0,x1.value,m),b0!==null&&(C1=e(A,b0,x1.value,C1),$&&b0.alternate!==null&&R0.delete(b0.key===null?U0:b0.key),S=B(b0,S,U0),O0===null?Q0=b0:O0.sibling=b0,O0=b0);return $&&R0.forEach(function(aV){return Z(A,aV)}),s0&&o4(A,U0),Q0}function o0(A,S,b,m){if(typeof b==="object"&&b!==null&&b.type===T7&&b.key===null&&(VJ(b,null,A),b=b.props.children),typeof b==="object"&&b!==null){switch(b.$$typeof){case I4:var Q0=B5(b._debugInfo);$:{for(var O0=b.key;S!==null;){if(S.key===O0){if(O0=b.type,O0===T7){if(S.tag===7){G(A,S.sibling),m=U(S,b.props.children),m.return=A,m._debugOwner=b._owner,m._debugInfo=y0,VJ(b,m,A),A=m;break $}}else if(S.elementType===O0||CB(S,b)||typeof O0==="object"&&O0!==null&&O0.$$typeof===M6&&u8(O0)===S.type){G(A,S.sibling),m=U(S,b.props),x$(m,b),m.return=A,m._debugOwner=b._owner,m._debugInfo=y0,A=m;break $}G(A,S);break}else Z(A,S);S=S.sibling}b.type===T7?(m=a2(b.props.children,A.mode,m,b.key),m.return=A,m._debugOwner=A,m._debugTask=A._debugTask,m._debugInfo=y0,VJ(b,m,A),A=m):(m=RJ(b,A.mode,m),x$(m,b),m.return=A,m._debugInfo=y0,A=m)}return A=W(A),y0=Q0,A;case z7:$:{Q0=b;for(b=Q0.key;S!==null;){if(S.key===b)if(S.tag===4&&S.stateNode.containerInfo===Q0.containerInfo&&S.stateNode.implementation===Q0.implementation){G(A,S.sibling),m=U(S,Q0.children||[]),m.return=A,A=m;break $}else{G(A,S);break}else Z(A,S);S=S.sibling}m=pX(Q0,A.mode,m),m.return=A,A=m}return W(A);case M6:return Q0=B5(b._debugInfo),b=u8(b),A=o0(A,S,b,m),y0=Q0,A}if($5(b))return Q0=B5(b._debugInfo),A=J0(A,S,b,m),y0=Q0,A;if(a(b)){if(Q0=B5(b._debugInfo),O0=a(b),typeof O0!=="function")throw Error("An object is not an iterable. This error is likely caused by a bug in React. Please file an issue.");var R0=O0.call(b);if(R0===b){if(A.tag!==0||Object.prototype.toString.call(A.type)!=="[object GeneratorFunction]"||Object.prototype.toString.call(R0)!=="[object Generator]")aW||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."),aW=!0}else b.entries!==O0||PN||(console.error("Using Maps as children is not supported. Use an array of keyed ReactElements instead."),PN=!0);return A=z1(A,S,R0,m),y0=Q0,A}if(typeof b.then==="function")return Q0=B5(b._debugInfo),A=o0(A,S,OJ(b),m),y0=Q0,A;if(b.$$typeof===V4)return o0(A,S,LJ(A,b),m);EJ(A,b)}if(typeof b==="string"&&b!==""||typeof b==="number"||typeof b==="bigint")return Q0=""+b,S!==null&&S.tag===6?(G(A,S.sibling),m=U(S,Q0),m.return=A,A=m):(G(A,S),m=dX(Q0,A.mode,m),m.return=A,m._debugOwner=A,m._debugTask=A._debugTask,m._debugInfo=y0,A=m),W(A);return typeof b==="function"&&AJ(A,b),typeof b==="symbol"&&jJ(A,b),G(A,S)}return function(A,S,b,m){var Q0=y0;y0=null;try{yZ=0;var O0=o0(A,S,b,m);return u7=null,O0}catch(C1){if(C1===h7||C1===hG)throw C1;var R0=L(29,C1,null,A.mode);R0.lanes=m,R0.return=A;var U0=R0._debugInfo=y0;if(R0._debugOwner=A._debugOwner,R0._debugTask=A._debugTask,U0!=null){for(var b0=U0.length-1;0<=b0;b0--)if(typeof U0[b0].stack==="string"){R0._debugOwner=U0[b0],R0._debugTask=U0[b0].debugTask;break}}return R0}finally{y0=Q0}}}function sB($,Z){var G=$5($);return $=!G&&typeof a($)==="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 Zq($){$.updateQueue={baseState:$.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Qq($,Z){$=$.updateQueue,Z.updateQueue===$&&(Z.updateQueue={baseState:$.baseState,firstBaseUpdate:$.firstBaseUpdate,lastBaseUpdate:$.lastBaseUpdate,shared:$.shared,callbacks:null})}function x8($){return{lane:$,tag:Qw,payload:null,callback:null,next:null}}function m8($,Z,G){var Y=$.updateQueue;if(Y===null)return null;if(Y=Y.shared,CN===Y&&!Xw){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.
|
|
96
|
+
- A compiler tries to "inline" JSX instead of using the runtime.`);throw $=Object.prototype.toString.call(Q),Error("Objects are not valid as a React child (found: "+($==="[object Object]"?"object with keys {"+Object.keys(Q).join(", ")+"}":$)+"). If you meant to render a collection of children, use an array instead.")}function DZ($,Q){var G=G3();G!==null?G.run(rB.bind(null,$,Q)):rB($,Q)}function sB($,Q){var G=d($)||"Component";Jw[G]||(Jw[G]=!0,Q=Q.displayName||Q.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
|
+
root.render(%s)`,Q,Q,Q):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
|
+
<%s>{%s}</%s>`,Q,Q,G,Q,G))}function vZ($,Q){var G=G3();G!==null?G.run(sB.bind(null,$,Q)):sB($,Q)}function nB($,Q){var G=d($)||"Component";Zw[G]||(Zw[G]=!0,Q=String(Q),$.tag===3?console.error(`Symbols are not valid as a React child.
|
|
99
|
+
root.render(%s)`,Q):console.error(`Symbols are not valid as a React child.
|
|
100
|
+
<%s>%s</%s>`,G,Q,G))}function kZ($,Q){var G=G3();G!==null?G.run(nB.bind(null,$,Q)):nB($,Q)}function oB($){function Q(A,S){if($){var k=A.deletions;k===null?(A.deletions=[S],A.flags|=16):k.push(S)}}function G(A,S){if(!$)return null;for(;S!==null;)Q(A,S),S=S.sibling;return null}function N(A){for(var S=new Map;A!==null;)A.key!==null?S.set(A.key,A):S.set(A.index,A),A=A.sibling;return S}function U(A,S){return A=a4(A,S),A.index=0,A.sibling=null,A}function B(A,S,k){if(A.index=k,!$)return A.flags|=1048576,S;if(k=A.alternate,k!==null)return k=k.index,k<S?(A.flags|=67108866,S):k;return A.flags|=67108866,S}function F(A){return $&&A.alternate===null&&(A.flags|=67108866),A}function R(A,S,k,m){if(S===null||S.tag!==6)return S=rX(k,A.mode,m),S.return=A,S._debugOwner=A,S._debugTask=A._debugTask,S._debugInfo=y0,S;return S=U(S,k),S.return=A,S._debugInfo=y0,S}function L(A,S,k,m){var J0=k.type;if(J0===P9)return S=b(A,S,k.props.children,m,k.key),jZ(k,S,A),S;if(S!==null&&(S.elementType===J0||VB(S,k)||typeof J0==="object"&&J0!==null&&J0.$$typeof===F5&&c$(J0)===S.type))return S=U(S,k.props),mQ(S,k),S.return=A,S._debugOwner=k._owner,S._debugInfo=y0,S;return S=PZ(k,A.mode,m),mQ(S,k),S.return=A,S._debugInfo=y0,S}function C(A,S,k,m){if(S===null||S.tag!==4||S.stateNode.containerInfo!==k.containerInfo||S.stateNode.implementation!==k.implementation)return S=sX(k,A.mode,m),S.return=A,S._debugInfo=y0,S;return S=U(S,k.children||[]),S.return=A,S._debugInfo=y0,S}function b(A,S,k,m,J0){if(S===null||S.tag!==7)return S=e8(k,A.mode,m,J0),S.return=A,S._debugOwner=A,S._debugTask=A._debugTask,S._debugInfo=y0,S;return S=U(S,k),S.return=A,S._debugInfo=y0,S}function y(A,S,k){if(typeof S==="string"&&S!==""||typeof S==="number"||typeof S==="bigint")return S=rX(""+S,A.mode,k),S.return=A,S._debugOwner=A,S._debugTask=A._debugTask,S._debugInfo=y0,S;if(typeof S==="object"&&S!==null){switch(S.$$typeof){case O4:return k=PZ(S,A.mode,k),mQ(k,S),k.return=A,A=H6(S._debugInfo),k._debugInfo=y0,y0=A,k;case L9:return S=sX(S,A.mode,k),S.return=A,S._debugInfo=y0,S;case F5:var m=H6(S._debugInfo);return S=c$(S),A=y(A,S,k),y0=m,A}if($6(S)||a(S))return k=e8(S,A.mode,k,null),k.return=A,k._debugOwner=A,k._debugTask=A._debugTask,A=H6(S._debugInfo),k._debugInfo=y0,y0=A,k;if(typeof S.then==="function")return m=H6(S._debugInfo),A=y(A,SZ(S),k),y0=m,A;if(S.$$typeof===E4)return y(A,VZ(A,S),k);DZ(A,S)}return typeof S==="function"&&vZ(A,S),typeof S==="symbol"&&kZ(A,S),null}function j(A,S,k,m){var J0=S!==null?S.key:null;if(typeof k==="string"&&k!==""||typeof k==="number"||typeof k==="bigint")return J0!==null?null:R(A,S,""+k,m);if(typeof k==="object"&&k!==null){switch(k.$$typeof){case O4:return k.key===J0?(J0=H6(k._debugInfo),A=L(A,S,k,m),y0=J0,A):null;case L9:return k.key===J0?C(A,S,k,m):null;case F5:return J0=H6(k._debugInfo),k=c$(k),A=j(A,S,k,m),y0=J0,A}if($6(k)||a(k)){if(J0!==null)return null;return J0=H6(k._debugInfo),A=b(A,S,k,m,null),y0=J0,A}if(typeof k.then==="function")return J0=H6(k._debugInfo),A=j(A,S,SZ(k),m),y0=J0,A;if(k.$$typeof===E4)return j(A,S,VZ(A,k),m);DZ(A,k)}return typeof k==="function"&&vZ(A,k),typeof k==="symbol"&&kZ(A,k),null}function g(A,S,k,m,J0){if(typeof m==="string"&&m!==""||typeof m==="number"||typeof m==="bigint")return A=A.get(k)||null,R(S,A,""+m,J0);if(typeof m==="object"&&m!==null){switch(m.$$typeof){case O4:return k=A.get(m.key===null?k:m.key)||null,A=H6(m._debugInfo),S=L(S,k,m,J0),y0=A,S;case L9:return A=A.get(m.key===null?k:m.key)||null,C(S,A,m,J0);case F5:var O0=H6(m._debugInfo);return m=c$(m),S=g(A,S,k,m,J0),y0=O0,S}if($6(m)||a(m))return k=A.get(k)||null,A=H6(m._debugInfo),S=b(S,k,m,J0,null),y0=A,S;if(typeof m.then==="function")return O0=H6(m._debugInfo),S=g(A,S,k,SZ(m),J0),y0=O0,S;if(m.$$typeof===E4)return g(A,S,k,VZ(S,m),J0);DZ(S,m)}return typeof m==="function"&&vZ(S,m),typeof m==="symbol"&&kZ(S,m),null}function $0(A,S,k,m){if(typeof k!=="object"||k===null)return m;switch(k.$$typeof){case O4:case L9:z(A,S,k);var J0=k.key;if(typeof J0!=="string")break;if(m===null){m=new Set,m.add(J0);break}if(!m.has(J0)){m.add(J0);break}q0(S,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.",J0)});break;case F5:k=c$(k),$0(A,S,k,m)}return m}function G0(A,S,k,m){for(var J0=null,O0=null,z0=null,K0=S,v0=S=0,C1=null;K0!==null&&v0<k.length;v0++){K0.index>v0?(C1=K0,K0=null):C1=K0.sibling;var u1=j(A,K0,k[v0],m);if(u1===null){K0===null&&(K0=C1);break}J0=$0(A,u1,k[v0],J0),$&&K0&&u1.alternate===null&&Q(A,K0),S=B(u1,S,v0),z0===null?O0=u1:z0.sibling=u1,z0=u1,K0=C1}if(v0===k.length)return G(A,K0),l0&&t4(A,v0),O0;if(K0===null){for(;v0<k.length;v0++)K0=y(A,k[v0],m),K0!==null&&(J0=$0(A,K0,k[v0],J0),S=B(K0,S,v0),z0===null?O0=K0:z0.sibling=K0,z0=K0);return l0&&t4(A,v0),O0}for(K0=N(K0);v0<k.length;v0++)C1=g(K0,A,v0,k[v0],m),C1!==null&&(J0=$0(A,C1,k[v0],J0),$&&C1.alternate!==null&&K0.delete(C1.key===null?v0:C1.key),S=B(C1,S,v0),z0===null?O0=C1:z0.sibling=C1,z0=C1);return $&&K0.forEach(function(L$){return Q(A,L$)}),l0&&t4(A,v0),O0}function R1(A,S,k,m){if(k==null)throw Error("An iterable object provided no iterator.");for(var J0=null,O0=null,z0=S,K0=S=0,v0=null,C1=null,u1=k.next();z0!==null&&!u1.done;K0++,u1=k.next()){z0.index>K0?(v0=z0,z0=null):v0=z0.sibling;var L$=j(A,z0,u1.value,m);if(L$===null){z0===null&&(z0=v0);break}C1=$0(A,L$,u1.value,C1),$&&z0&&L$.alternate===null&&Q(A,z0),S=B(L$,S,K0),O0===null?J0=L$:O0.sibling=L$,O0=L$,z0=v0}if(u1.done)return G(A,z0),l0&&t4(A,K0),J0;if(z0===null){for(;!u1.done;K0++,u1=k.next())z0=y(A,u1.value,m),z0!==null&&(C1=$0(A,z0,u1.value,C1),S=B(z0,S,K0),O0===null?J0=z0:O0.sibling=z0,O0=z0);return l0&&t4(A,K0),J0}for(z0=N(z0);!u1.done;K0++,u1=k.next())v0=g(z0,A,K0,u1.value,m),v0!==null&&(C1=$0(A,v0,u1.value,C1),$&&v0.alternate!==null&&z0.delete(v0.key===null?K0:v0.key),S=B(v0,S,K0),O0===null?J0=v0:O0.sibling=v0,O0=v0);return $&&z0.forEach(function(tV){return Q(A,tV)}),l0&&t4(A,K0),J0}function n0(A,S,k,m){if(typeof k==="object"&&k!==null&&k.type===P9&&k.key===null&&(jZ(k,null,A),k=k.props.children),typeof k==="object"&&k!==null){switch(k.$$typeof){case O4:var J0=H6(k._debugInfo);$:{for(var O0=k.key;S!==null;){if(S.key===O0){if(O0=k.type,O0===P9){if(S.tag===7){G(A,S.sibling),m=U(S,k.props.children),m.return=A,m._debugOwner=k._owner,m._debugInfo=y0,jZ(k,m,A),A=m;break $}}else if(S.elementType===O0||VB(S,k)||typeof O0==="object"&&O0!==null&&O0.$$typeof===F5&&c$(O0)===S.type){G(A,S.sibling),m=U(S,k.props),mQ(m,k),m.return=A,m._debugOwner=k._owner,m._debugInfo=y0,A=m;break $}G(A,S);break}else Q(A,S);S=S.sibling}k.type===P9?(m=e8(k.props.children,A.mode,m,k.key),m.return=A,m._debugOwner=A,m._debugTask=A._debugTask,m._debugInfo=y0,jZ(k,m,A),A=m):(m=PZ(k,A.mode,m),mQ(m,k),m.return=A,m._debugInfo=y0,A=m)}return A=F(A),y0=J0,A;case L9:$:{J0=k;for(k=J0.key;S!==null;){if(S.key===k)if(S.tag===4&&S.stateNode.containerInfo===J0.containerInfo&&S.stateNode.implementation===J0.implementation){G(A,S.sibling),m=U(S,J0.children||[]),m.return=A,A=m;break $}else{G(A,S);break}else Q(A,S);S=S.sibling}m=sX(J0,A.mode,m),m.return=A,A=m}return F(A);case F5:return J0=H6(k._debugInfo),k=c$(k),A=n0(A,S,k,m),y0=J0,A}if($6(k))return J0=H6(k._debugInfo),A=G0(A,S,k,m),y0=J0,A;if(a(k)){if(J0=H6(k._debugInfo),O0=a(k),typeof O0!=="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=O0.call(k);if(z0===k){if(A.tag!==0||Object.prototype.toString.call(A.type)!=="[object GeneratorFunction]"||Object.prototype.toString.call(z0)!=="[object Generator]")$w||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."),$w=!0}else k.entries!==O0||IY||(console.error("Using Maps as children is not supported. Use an array of keyed ReactElements instead."),IY=!0);return A=R1(A,S,z0,m),y0=J0,A}if(typeof k.then==="function")return J0=H6(k._debugInfo),A=n0(A,S,SZ(k),m),y0=J0,A;if(k.$$typeof===E4)return n0(A,S,VZ(A,k),m);DZ(A,k)}if(typeof k==="string"&&k!==""||typeof k==="number"||typeof k==="bigint")return J0=""+k,S!==null&&S.tag===6?(G(A,S.sibling),m=U(S,J0),m.return=A,A=m):(G(A,S),m=rX(J0,A.mode,m),m.return=A,m._debugOwner=A,m._debugTask=A._debugTask,m._debugInfo=y0,A=m),F(A);return typeof k==="function"&&vZ(A,k),typeof k==="symbol"&&kZ(A,k),G(A,S)}return function(A,S,k,m){var J0=y0;y0=null;try{g2=0;var O0=n0(A,S,k,m);return m9=null,O0}catch(C1){if(C1===u9||C1===dG)throw C1;var z0=P(29,C1,null,A.mode);z0.lanes=m,z0.return=A;var K0=z0._debugInfo=y0;if(z0._debugOwner=A._debugOwner,z0._debugTask=A._debugTask,K0!=null){for(var v0=K0.length-1;0<=v0;v0--)if(typeof K0[v0].stack==="string"){z0._debugOwner=K0[v0],z0._debugTask=K0[v0].debugTask;break}}return z0}finally{y0=J0}}}function iB($,Q){var G=$6($);return $=!G&&typeof a($)==="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,Q,G),!1):!0}function q3($){$.updateQueue={baseState:$.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function X3($,Q){$=$.updateQueue,Q.updateQueue===$&&(Q.updateQueue={baseState:$.baseState,firstBaseUpdate:$.firstBaseUpdate,lastBaseUpdate:$.lastBaseUpdate,shared:$.shared,callbacks:null})}function l$($){return{lane:$,tag:qw,payload:null,callback:null,next:null}}function r$($,Q,G){var N=$.updateQueue;if(N===null)return null;if(N=N.shared,OY===N&&!Yw){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),
|
|
102
|
+
Please update the following component: %s`,U),Yw=!0}if((i0&J6)!==K6)return U=N.pending,U===null?Q.next=Q:(Q.next=U.next,U.next=Q),N.pending=Q,Q=LZ($),IB($,null,G),Q;return TZ($,N,Q,G),LZ($)}function dQ($,Q,G){if(Q=Q.updateQueue,Q!==null&&(Q=Q.shared,(G&4194048)!==0)){var N=Q.lanes;N&=$.pendingLanes,G|=N,Q.lanes=G,r8($,G)}}function bZ($,Q){var{updateQueue:G,alternate:N}=$;if(N!==null&&(N=N.updateQueue,G===N)){var U=null,B=null;if(G=G.firstBaseUpdate,G!==null){do{var F={lane:G.lane,tag:G.tag,payload:G.payload,callback:null,next:null};B===null?U=B=F:B=B.next=F,G=G.next}while(G!==null);B===null?U=B=Q:B=B.next=Q}else U=B=Q;G={baseState:N.baseState,firstBaseUpdate:U,lastBaseUpdate:B,shared:N.shared,callbacks:N.callbacks},$.updateQueue=G;return}$=G.lastBaseUpdate,$===null?G.firstBaseUpdate=Q:$.next=Q,G.lastBaseUpdate=Q}function pQ(){if(EY){var $=x9;if($!==null)throw $}}function cQ($,Q,G,N){EY=!1;var U=$.updateQueue;M8=!1,OY=U.shared;var{firstBaseUpdate:B,lastBaseUpdate:F}=U,R=U.shared.pending;if(R!==null){U.shared.pending=null;var L=R,C=L.next;L.next=null,F===null?B=C:F.next=C,F=L;var b=$.alternate;b!==null&&(b=b.updateQueue,R=b.lastBaseUpdate,R!==F&&(R===null?b.firstBaseUpdate=C:R.next=C,b.lastBaseUpdate=L))}if(B!==null){var y=U.baseState;F=0,b=C=L=null,R=B;do{var j=R.lane&-536870913,g=j!==R.lane;if(g?(f0&j)===j:(N&j)===j){j!==0&&j===w7&&(EY=!0),b!==null&&(b=b.next={lane:0,tag:R.tag,payload:R.payload,callback:null,next:null});$:{j=$;var $0=R,G0=Q,R1=G;switch($0.tag){case Xw:if($0=$0.payload,typeof $0==="function"){g9=!0;var n0=$0.call(R1,y,G0);if(j.mode&V6){F1(!0);try{$0.call(R1,y,G0)}finally{F1(!1)}}g9=!1,y=n0;break $}y=$0;break $;case VY:j.flags=j.flags&-65537|128;case qw:if(n0=$0.payload,typeof n0==="function"){if(g9=!0,$0=n0.call(R1,y,G0),j.mode&V6){F1(!0);try{n0.call(R1,y,G0)}finally{F1(!1)}}g9=!1}else $0=n0;if($0===null||$0===void 0)break $;y=u0({},y,$0);break $;case Nw:M8=!0}}j=R.callback,j!==null&&($.flags|=64,g&&($.flags|=8192),g=U.callbacks,g===null?U.callbacks=[j]:g.push(j))}else g={lane:j,tag:R.tag,payload:R.payload,callback:R.callback,next:null},b===null?(C=b=g,L=y):b=b.next=g,F|=j;if(R=R.next,R===null)if(R=U.shared.pending,R===null)break;else g=R,R=g.next,g.next=null,U.lastBaseUpdate=g,U.shared.pending=null}while(1);b===null&&(L=y),U.baseState=L,U.firstBaseUpdate=C,U.lastBaseUpdate=b,B===null&&(U.shared.lanes=0),w8|=F,$.lanes=F,$.memoizedState=y}OY=null}function aB($,Q){if(typeof $!=="function")throw Error("Invalid argument passed as callback. Expected a function. Instead received: "+$);$.call(Q)}function rC($,Q){var G=$.shared.hiddenCallbacks;if(G!==null)for($.shared.hiddenCallbacks=null,$=0;$<G.length;$++)aB(G[$],Q)}function tB($,Q){var G=$.callbacks;if(G!==null)for($.callbacks=null,$=0;$<G.length;$++)aB(G[$],Q)}function eB($,Q){var G=g4;C0(cG,G,$),C0(d9,Q,$),g4=G|Q.baseLanes}function N3($){C0(cG,g4,$),C0(d9,d9.current,$)}function Y3($){g4=cG.current,H0(d9,$),H0(cG,$)}function s$($){var Q=$.alternate;C0(x1,x1.current&p9,$),C0(T5,$,$),f5===null&&(Q===null||d9.current!==null?f5=$:Q.memoizedState!==null&&(f5=$))}function U3($){C0(x1,x1.current,$),C0(T5,$,$),f5===null&&(f5=$)}function $H($){$.tag===22?(C0(x1,x1.current,$),C0(T5,$,$),f5===null&&(f5=$)):n$($)}function n$($){C0(x1,x1.current,$),C0(T5,T5.current,$)}function H5($){H0(T5,$),f5===$&&(f5=null),H0(x1,$)}function yZ($){for(var Q=$;Q!==null;){if(Q.tag===13){var G=Q.memoizedState;if(G!==null&&(G=G.dehydrated,G===null||CN(G)||_N(G)))return Q}else if(Q.tag===19&&(Q.memoizedProps.revealOrder==="forwards"||Q.memoizedProps.revealOrder==="backwards"||Q.memoizedProps.revealOrder==="unstable_legacy-backwards"||Q.memoizedProps.revealOrder==="together")){if((Q.flags&128)!==0)return Q}else if(Q.child!==null){Q.child.return=Q,Q=Q.child;continue}if(Q===$)break;for(;Q.sibling===null;){if(Q.return===null||Q.return===$)return null;Q=Q.return}Q.sibling.return=Q.return,Q=Q.sibling}return null}function x0(){var $=x;h5===null?h5=[$]:h5.push($)}function c(){var $=x;if(h5!==null&&(F$++,h5[F$]!==$)){var Q=d(V0);if(!Uw.has(Q)&&(Uw.add(Q),h5!==null)){for(var G="",N=0;N<=F$;N++){var U=h5[N],B=N===F$?$:U;for(U=N+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
|
-
`,
|
|
108
|
+
`,Q,G)}}}function N9($){$===void 0||$===null||$6($)||console.error("%s received a final argument that is not an array (instead, received `%s`). When specified, the final argument must be an array.",x,typeof $)}function fZ(){var $=d(V0);Bw.has($)||(Bw.add($),console.error("ReactDOM.useFormState has been renamed to React.useActionState. Please update %s to use React.useActionState.",$))}function g1(){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
|
-
See https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem.`)}function
|
|
112
|
+
See https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem.`)}function K3($,Q){if(u2)return!1;if(Q===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.",x),!1;$.length!==Q.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(!v5($[G],Z[G]))return!1;return!0}function Yq($,Z,G,Y,U,B){if(K8=B,V0=Z,y6=$!==null?$._debugHookTypes:null,H8=-1,uZ=$!==null&&$.type!==Z.type,Object.prototype.toString.call(G)==="[object AsyncFunction]"||Object.prototype.toString.call(G)==="[object AsyncGeneratorFunction]")B=d(V0),IN.has(B)||(IN.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?ON:y6!==null?Uw:VN,T9=B=(Z.mode&I5)!==I0;var W=RN(G,Y,U);if(T9=!1,p7&&(W=Nq(Z,G,Y,U)),B){w1(!0);try{W=Nq(Z,G,Y,U)}finally{w1(!1)}}return tB($,Z),W}function tB($,Z){Z._debugHookTypes=y6,Z.dependencies===null?B8!==null&&(Z.dependencies={lanes:0,firstContext:null,_debugThenableState:B8}):Z.dependencies._debugThenableState=B8,x.H=xZ;var G=F1!==null&&F1.next!==null;if(K8=0,y6=u=r1=F1=V0=null,H8=-1,$!==null&&($.flags&65011712)!==(Z.flags&65011712)&&console.error("Internal React error: Expected static flag was missing. Please notify the React team."),dG=!1,hZ=0,B8=null,G)throw Error("Rendered fewer hooks than expected. This may be caused by an accidental early return statement.");$===null||s1||($=$.dependencies,$!==null&&PJ($)&&(s1=!0)),fZ?(fZ=!1,$=!0):$=!1,$&&(Z=d(Z)||"Unknown",Yw.has(Z)||IN.has(Z)||(Yw.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 Nq($,Z,G,Y){V0=$;var U=0;do{if(p7&&(B8=null),hZ=0,p7=!1,U>=jV)throw Error("Too many re-renders. React limits the number of renders to prevent an infinite loop.");if(U+=1,uZ=!1,r1=F1=null,$.updateQueue!=null){var B=$.updateQueue;B.lastEffect=null,B.events=null,B.stores=null,B.memoCache!=null&&(B.memoCache.index=0)}H8=-1,x.H=Kw,B=RN(Z,G,Y)}while(p7);return B}function rC(){var $=x.H,Z=$.useState()[0];return Z=typeof Z.then==="function"?c$(Z):Z,$=$.useState()[0],(F1!==null?F1.memoizedState:null)!==$&&(V0.flags|=1024),Z}function Uq(){var $=pG!==0;return pG=0,$}function Kq($,Z,G){Z.updateQueue=$.updateQueue,Z.flags=(Z.mode&t6)!==I0?Z.flags&-402655237:Z.flags&-2053,$.lanes&=~G}function Bq($){if(dG){for($=$.memoizedState;$!==null;){var Z=$.queue;Z!==null&&(Z.pending=null),$=$.next}dG=!1}K8=0,y6=r1=F1=V0=null,H8=-1,u=null,p7=!1,hZ=pG=0,B8=null}function A5(){var $={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return r1===null?V0.memoizedState=r1=$:r1=r1.next=$,r1}function N1(){if(F1===null){var $=V0.alternate;$=$!==null?$.memoizedState:null}else $=F1.next;var Z=r1===null?V0.memoizedState:r1.next;if(Z!==null)r1=Z,F1=$;else{if($===null){if(V0.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.")}F1=$,$={memoizedState:F1.memoizedState,baseState:F1.baseState,baseQueue:F1.baseQueue,queue:F1.queue,next:null},r1===null?V0.memoizedState=r1=$:r1=r1.next=$}return r1}function bJ(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function c$($){var Z=hZ;return hZ+=1,B8===null&&(B8=hB()),$=xB(B8,$,Z),Z=V0,(r1===null?Z.memoizedState:r1.next)===null&&(Z=Z.alternate,x.H=Z!==null&&Z.memoizedState!==null?ON:VN),$}function c8($){if($!==null&&typeof $==="object"){if(typeof $.then==="function")return c$($);if($.$$typeof===V4)return O1($)}throw Error("An unsupported type was passed to use(): "+String($))}function Q9($){var Z=null,G=V0.updateQueue;if(G!==null&&(Z=G.memoCache),Z==null){var Y=V0.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=bJ(),V0.updateQueue=G),G.memoCache=Z,G=Z.data[Z.index],G===void 0||uZ)for(G=Z.data[Z.index]=Array($),Y=0;Y<$;Y++)G[Y]=YI;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 n6($,Z){return typeof Z==="function"?Z($):Z}function Hq($,Z,G){var Y=A5();if(G!==void 0){var U=G(Z);if(T9){w1(!0);try{G(Z)}finally{w1(!1)}}}else U=Z;return Y.memoizedState=Y.baseState=U,$={pending:null,lanes:0,dispatch:null,lastRenderedReducer:$,lastRenderedState:U},Y.queue=$,$=$.dispatch=aC.bind(null,V0,$),[Y.memoizedState,$]}function q7($){var Z=N1();return Mq(Z,F1,$)}function Mq($,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 R=W=null,P=null,C=Z,k=!1;do{var f=C.lane&-536870913;if(f!==C.lane?(g0&f)===f:(K8&f)===f){var j=C.revertLane;if(j===0)P!==null&&(P=P.next={lane:0,revertLane:0,gesture:null,action:C.action,hasEagerState:C.hasEagerState,eagerState:C.eagerState,next:null}),f===F9&&(k=!0);else if((K8&j)===j){C=C.next,j===F9&&(k=!0);continue}else f={lane:0,revertLane:C.revertLane,gesture:null,action:C.action,hasEagerState:C.hasEagerState,eagerState:C.eagerState,next:null},P===null?(R=P=f,W=B):P=P.next=f,V0.lanes|=j,B2|=j;f=C.action,T9&&G(B,f),B=C.hasEagerState?C.eagerState:G(B,f)}else j={lane:f,revertLane:C.revertLane,gesture:C.gesture,action:C.action,hasEagerState:C.hasEagerState,eagerState:C.eagerState,next:null},P===null?(R=P=j,W=B):P=P.next=j,V0.lanes|=f,B2|=f;C=C.next}while(C!==null&&C!==Z);if(P===null?W=B:P.next=R,!v5(B,$.memoizedState)&&(s1=!0,k&&(G=g7,G!==null)))throw G;$.memoizedState=B,$.baseState=W,$.baseQueue=P,Y.lastRenderedState=B}return U===null&&(Y.lanes=0),[$.memoizedState,Y.dispatch]}function l$($){var Z=N1(),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);v5(B,Z.memoizedState)||(s1=!0),Z.memoizedState=B,Z.baseQueue===null&&(Z.baseState=B),G.lastRenderedState=B}return[B,Y]}function Fq($,Z,G){var Y=V0,U=A5();if(s0){if(G===void 0)throw Error("Missing getServerSnapshot, which is required for server-rendered content. Will revert to client rendering.");var B=G();d7||B===G()||(console.error("The result of getServerSnapshot should be cached to avoid an infinite loop"),d7=!0)}else{if(B=Z(),d7||(G=Z(),v5(B,G)||(console.error("The result of getSnapshot should be cached to avoid an infinite loop"),d7=!0)),W1===null)throw Error("Expected a work-in-progress root. This is a bug in React. Please file an issue.");(g0&127)!==0||eB(Y,Z,B)}return U.memoizedState=B,G={value:B,getSnapshot:Z},U.queue=G,gJ(ZH.bind(null,Y,G,$),[$]),Y.flags|=2048,N7(f6|f5,{destroy:void 0},$H.bind(null,Y,G,B,Z),null),B}function kJ($,Z,G){var Y=V0,U=N1(),B=s0;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(),!d7){var W=Z();v5(G,W)||(console.error("The result of getSnapshot should be cached to avoid an infinite loop"),d7=!0)}if(W=!v5((F1||U).memoizedState,G))U.memoizedState=G,s1=!0;U=U.queue;var R=ZH.bind(null,Y,U,$);if(x5(2048,f5,R,[$]),U.getSnapshot!==Z||W||r1!==null&&r1.memoizedState.tag&f6){if(Y.flags|=2048,N7(f6|f5,{destroy:void 0},$H.bind(null,Y,U,G,Z),null),W1===null)throw Error("Expected a work-in-progress root. This is a bug in React. Please file an issue.");B||(K8&127)!==0||eB(Y,Z,G)}return G}function eB($,Z,G){$.flags|=16384,$={getSnapshot:Z,value:G},Z=V0.updateQueue,Z===null?(Z=bJ(),V0.updateQueue=Z,Z.stores=[$]):(G=Z.stores,G===null?Z.stores=[$]:G.push($))}function $H($,Z,G,Y){Z.value=G,Z.getSnapshot=Y,QH(Z)&&JH($)}function ZH($,Z,G){return G(function(){QH(Z)&&(B4(2,"updateSyncExternalStore()",$),JH($))})}function QH($){var Z=$.getSnapshot;$=$.value;try{var G=Z();return!v5($,G)}catch(Y){return!0}}function JH($){var Z=C5($,2);Z!==null&&D1(Z,$,2)}function Wq($){var Z=A5();if(typeof $==="function"){var G=$;if($=G(),T9){w1(!0);try{G()}finally{w1(!1)}}}return Z.memoizedState=Z.baseState=$,Z.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:n6,lastRenderedState:$},Z}function wq($){$=Wq($);var Z=$.queue,G=CH.bind(null,V0,Z);return Z.dispatch=G,[$.memoizedState,G]}function Rq($){var Z=A5();Z.memoizedState=Z.baseState=$;var G={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return Z.queue=G,Z=Dq.bind(null,V0,!0,G),G.dispatch=Z,[$,Z]}function GH($,Z){var G=N1();return XH(G,F1,$,Z)}function XH($,Z,G,Y){return $.baseState=G,Mq($,F1,typeof Y==="function"?Y:n6)}function qH($,Z){var G=N1();if(F1!==null)return XH(G,F1,$,Z);return G.baseState=$,[$,G.queue.dispatch]}function sC($,Z,G,Y,U){if(pJ($))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,YH(Z,B)):(B.next=G.next,Z.pending=G.next=B)}}function YH($,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 R=G(U,Y),P=x.S;P!==null&&P(W,R),NH($,Z,R)}catch(C){zq($,Z,C)}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),NH($,Z,W)}catch(C){zq($,Z,C)}}function NH($,Z,G){G!==null&&typeof G==="object"&&typeof G.then==="function"?(x.asyncTransitions++,G.then(dJ,dJ),G.then(function(Y){UH($,Z,Y)},function(Y){return zq($,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.")):UH($,Z,G)}function UH($,Z,G){Z.status="fulfilled",Z.value=G,KH(Z),$.state=G,Z=$.pending,Z!==null&&(G=Z.next,G===Z?$.pending=null:(G=G.next,Z.next=G,YH($,G)))}function zq($,Z,G){var Y=$.pending;if($.pending=null,Y!==null){Y=Y.next;do Z.status="rejected",Z.reason=G,KH(Z),Z=Z.next;while(Z!==Y)}$.action=null}function KH($){$=$.listeners;for(var Z=0;Z<$.length;Z++)(0,$[Z])()}function BH($,Z){return Z}function Y7($,Z){if(s0){var G=W1.formState;if(G!==null){$:{var Y=V0;if(s0){if(L1){Z:{var U=L1;for(var B=v6;U.nodeType!==8;){if(!B){U=null;break Z}if(U=H6(U.nextSibling),U===null){U=null;break Z}}B=U.data,U=B===oN||B===ow?U:null}if(U){L1=H6(U.nextSibling),Y=U.data===oN;break $}}g8(Y)}Y=!1}Y&&(Z=G[0])}}return G=A5(),G.memoizedState=G.baseState=Z,Y={pending:null,lanes:0,dispatch:null,lastRenderedReducer:BH,lastRenderedState:Z},G.queue=Y,G=CH.bind(null,V0,Y),Y.dispatch=G,Y=Wq(!1),B=Dq.bind(null,V0,!1,Y.queue),Y=A5(),U={state:Z,dispatch:null,action:$,pending:null},Y.queue=U,G=sC.bind(null,V0,U,B,G),U.dispatch=G,Y.memoizedState=$,[Z,G,!1]}function fJ($){var Z=N1();return HH(Z,F1,$)}function HH($,Z,G){if(Z=Mq($,Z,BH)[0],$=q7(n6)[0],typeof Z==="object"&&Z!==null&&typeof Z.then==="function")try{var Y=c$(Z)}catch(W){if(W===h7)throw hG;throw W}else Y=Z;Z=N1();var U=Z.queue,B=U.dispatch;return G!==Z.memoizedState&&(V0.flags|=2048,N7(f6|f5,{destroy:void 0},nC.bind(null,U,G),null)),[Y,B,$]}function nC($,Z){$.action=Z}function yJ($){var Z=N1(),G=F1;if(G!==null)return HH(Z,G,$);N1(),Z=Z.memoizedState,G=N1();var Y=G.queue.dispatch;return G.memoizedState=$,[Z,Y,!1]}function N7($,Z,G,Y){return $={tag:$,create:G,deps:Y,inst:Z,next:null},Z=V0.updateQueue,Z===null&&(Z=bJ(),V0.updateQueue=Z),G=Z.lastEffect,G===null?Z.lastEffect=$.next=$:(Y=G.next,G.next=$,$.next=Y,Z.lastEffect=$),$}function Tq($){var Z=A5();return $={current:$},Z.memoizedState=$}function J9($,Z,G,Y){var U=A5();V0.flags|=$,U.memoizedState=N7(f6|Z,{destroy:void 0},G,Y===void 0?null:Y)}function x5($,Z,G,Y){var U=N1();Y=Y===void 0?null:Y;var B=U.memoizedState.inst;F1!==null&&Y!==null&&qq(Y,F1.memoizedState.deps)?U.memoizedState=N7(Z,B,G,Y):(V0.flags|=$,U.memoizedState=N7(f6|Z,B,G,Y))}function gJ($,Z){(V0.mode&t6)!==I0?J9(276826112,f5,$,Z):J9(8390656,f5,$,Z)}function oC($){V0.flags|=4;var Z=V0.updateQueue;if(Z===null)Z=bJ(),V0.updateQueue=Z,Z.events=[$];else{var G=Z.events;G===null?Z.events=[$]:G.push($)}}function Pq($){var Z=A5(),G={impl:$};return Z.memoizedState=G,function(){if((a0&Q5)!==K5)throw Error("A function wrapped in useEffectEvent can't be called during rendering.");return G.impl.apply(void 0,arguments)}}function hJ($){var Z=N1().memoizedState;return oC({ref:Z,nextImpl:$}),function(){if((a0&Q5)!==K5)throw Error("A function wrapped in useEffectEvent can't be called during rendering.");return Z.impl.apply(void 0,arguments)}}function Lq($,Z){var G=4194308;return(V0.mode&t6)!==I0&&(G|=134217728),J9(G,z6,$,Z)}function MH($,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 Cq($,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;(V0.mode&t6)!==I0&&(Y|=134217728),J9(Y,z6,MH.bind(null,Z,$),G)}function uJ($,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,x5(4,z6,MH.bind(null,Z,$),G)}function _q($,Z){return A5().memoizedState=[$,Z===void 0?null:Z],$}function xJ($,Z){var G=N1();Z=Z===void 0?null:Z;var Y=G.memoizedState;if(Z!==null&&qq(Z,Y[1]))return Y[0];return G.memoizedState=[$,Z],$}function Iq($,Z){var G=A5();Z=Z===void 0?null:Z;var Y=$();if(T9){w1(!0);try{$()}finally{w1(!1)}}return G.memoizedState=[Y,Z],Y}function mJ($,Z){var G=N1();Z=Z===void 0?null:Z;var Y=G.memoizedState;if(Z!==null&&qq(Z,Y[1]))return Y[0];if(Y=$(),T9){w1(!0);try{$()}finally{w1(!1)}}return G.memoizedState=[Y,Z],Y}function Vq($,Z){var G=A5();return Oq(G,$,Z)}function FH($,Z){var G=N1();return wH(G,F1.memoizedState,$,Z)}function WH($,Z){var G=N1();return F1===null?Oq(G,$,Z):wH(G,F1.memoizedState,$,Z)}function Oq($,Z,G){if(G===void 0||(K8&1073741824)!==0&&(g0&261930)===0)return $.memoizedState=Z;return $.memoizedState=G,$=RM(),V0.lanes|=$,B2|=$,G}function wH($,Z,G,Y){if(v5(G,Z))return G;if(x7.current!==null)return $=Oq($,G,Y),v5($,Z)||(s1=!0),$;if((K8&42)===0||(K8&1073741824)!==0&&(g0&261930)===0)return s1=!0,$.memoizedState=G;return $=RM(),V0.lanes|=$,B2|=$,Z}function dJ(){x.asyncTransitions--}function RH($,Z,G,Y,U){var B=q1.p;q1.p=B!==0&&B<a6?B:a6;var W=x.T,R={};R._updatedFibers=new Set,x.T=R,Dq($,!1,Z,G);try{var P=U(),C=x.S;if(C!==null&&C(R,P),P!==null&&typeof P==="object"&&typeof P.then==="function"){x.asyncTransitions++,P.then(dJ,dJ);var k=cC(P,Y);r$($,Z,k,B6($))}else r$($,Z,Y,B6($))}catch(f){r$($,Z,{then:function(){},status:"rejected",reason:f},B6($))}finally{q1.p=B,W!==null&&R.types!==null&&(W.types!==null&&W.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."),W.types=R.types),x.T=W,W===null&&R._updatedFibers&&($=R._updatedFibers.size,R._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 Eq($,Z,G,Y){if($.tag!==5)throw Error("Expected the form instance to be a HostComponent. This is a bug in React.");var U=zH($).queue;dC($),RH($,U,Z,S9,G===null?w:function(){return TH($),G(Y)})}function zH($){var Z=$.memoizedState;if(Z!==null)return Z;Z={memoizedState:S9,baseState:S9,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:n6,lastRenderedState:S9},next:null};var G={};return Z.next={memoizedState:G,baseState:G,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:n6,lastRenderedState:G},next:null},$.memoizedState=Z,$=$.alternate,$!==null&&($.memoizedState=Z),Z}function TH($){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=zH($);Z.next===null&&(Z=$.alternate.memoizedState),r$($,Z.next.queue,{},B6($))}function Aq(){var $=Wq(!1);return $=RH.bind(null,V0,$.queue,!0,!1),A5().memoizedState=$,[!1,$]}function PH(){var $=q7(n6)[0],Z=N1().memoizedState;return[typeof $==="boolean"?$:c$($),Z]}function LH(){var $=l$(n6)[0],Z=N1().memoizedState;return[typeof $==="boolean"?$:c$($),Z]}function G9(){return O1(ZQ)}function jq(){var $=A5(),Z=W1.identifierPrefix;if(s0){var G=X8,Y=G8;G=(Y&~(1<<32-j5(Y)-1)).toString(32)+G,Z="_"+Z+"R_"+G,G=pG++,0<G&&(Z+="H"+G.toString(32)),Z+="_"}else G=AV++,Z="_"+Z+"r_"+G.toString(32)+"_";return $.memoizedState=Z}function Sq(){return A5().memoizedState=iC.bind(null,V0)}function iC($,Z){for(var G=$.return;G!==null;){switch(G.tag){case 24:case 3:var Y=B6(G),U=x8(Y),B=m8(G,U,Y);B!==null&&(B4(Y,"refresh()",$),D1(B,G,Y),m$(B,G,Y)),$=iX(),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 aC($,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=B6($);var U={lane:Y,revertLane:0,gesture:null,action:G,hasEagerState:!1,eagerState:null,next:null};pJ($)?_H(Z,U):(U=hX($,Z,U,Y),U!==null&&(B4(Y,"dispatch()",$),D1(U,$,Y),IH(U,Z,Y)))}function CH($,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=B6($),r$($,Z,G,Y)&&B4(Y,"setState()",$)}function r$($,Z,G,Y){var U={lane:Y,revertLane:0,gesture:null,action:G,hasEagerState:!1,eagerState:null,next:null};if(pJ($))_H(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=$4;try{var R=Z.lastRenderedState,P=B(R,G);if(U.hasEagerState=!0,U.eagerState=P,v5(P,R))return WJ($,Z,U,0),W1===null&&FJ(),!1}catch(C){}finally{x.H=W}}if(G=hX($,Z,U,Y),G!==null)return D1(G,$,Y),IH(G,Z,Y),!0}return!1}function Dq($,Z,G,Y){if(x.T===null&&F9===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:YY(),gesture:null,action:Y,hasEagerState:!1,eagerState:null,next:null},pJ($)){if(Z)throw Error("Cannot update optimistic state while rendering.");console.error("Cannot call startTransition while rendering.")}else Z=hX($,G,Y,2),Z!==null&&(B4(2,"setOptimistic()",$),D1(Z,$,2))}function pJ($){var Z=$.alternate;return $===V0||Z!==null&&Z===V0}function _H($,Z){p7=dG=!0;var G=$.pending;G===null?Z.next=Z:(Z.next=G.next,G.next=Z),$.pending=Z}function IH($,Z,G){if((G&4194048)!==0){var Y=Z.lanes;Y&=$.pendingLanes,G|=Y,Z.lanes=G,c2($,G)}}function vq($){if($!==null&&typeof $!=="function"){var Z=String($);Lw.has(Z)||(Lw.add(Z),console.error("Expected the last optional `callback` argument to be a function. Instead received: %s.",$))}}function bq($,Z,G,Y){var U=$.memoizedState,B=G(Y,U);if($.mode&I5){w1(!0);try{B=G(Y,U)}finally{w1(!1)}}B===void 0&&(Z=o(Z)||"Component",Rw.has(Z)||(Rw.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:d0({},U,B),$.memoizedState=U,$.lanes===0&&($.updateQueue.baseState=U)}function VH($,Z,G,Y,U,B,W){var R=$.stateNode;if(typeof R.shouldComponentUpdate==="function"){if(G=R.shouldComponentUpdate(Y,B,W),$.mode&I5){w1(!0);try{G=R.shouldComponentUpdate(Y,B,W)}finally{w1(!1)}}return G===void 0&&console.error("%s.shouldComponentUpdate(): Returned undefined instead of a boolean value. Make sure to return true or false.",o(Z)||"Component"),G}return Z.prototype&&Z.prototype.isPureReactComponent?!k$(G,Y)||!k$(U,B):!0}function OH($,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",Hw.has($)||(Hw.add($),console.error("%s.componentWillReceiveProps(): Assigning directly to this.state is deprecated (except inside a component's constructor). Use setState instead.",$)),EN.enqueueReplaceState(Z,Z.state,null))}function X9($,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=d0({},G));for(var U in $)G[U]===void 0&&(G[U]=$[U])}return G}function EH($){GN($),console.warn(`%s
|
|
115
|
+
Incoming: %s`,x,"["+Q.join(", ")+"]","["+$.join(", ")+"]");for(var G=0;G<Q.length&&G<$.length;G++)if(!b6($[G],Q[G]))return!1;return!0}function B3($,Q,G,N,U,B){if(M$=B,V0=Q,h5=$!==null?$._debugHookTypes:null,F$=-1,u2=$!==null&&$.type!==Q.type,Object.prototype.toString.call(G)==="[object AsyncFunction]"||Object.prototype.toString.call(G)==="[object AsyncGeneratorFunction]")B=d(V0),AY.has(B)||(AY.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+">"));Q.memoizedState=null,Q.updateQueue=null,Q.lanes=0,u.H=$!==null&&$.memoizedState!==null?SY:h5!==null?Hw:jY,P7=B=(Q.mode&V6)!==I0;var F=PY(G,N,U);if(P7=!1,l9&&(F=H3(Q,G,N,U)),B){F1(!0);try{F=H3(Q,G,N,U)}finally{F1(!1)}}return QH($,Q),F}function QH($,Q){Q._debugHookTypes=h5,Q.dependencies===null?W$!==null&&(Q.dependencies={lanes:0,firstContext:null,_debugThenableState:W$}):Q.dependencies._debugThenableState=W$,u.H=m2;var G=M1!==null&&M1.next!==null;if(M$=0,h5=x=r1=M1=V0=null,F$=-1,$!==null&&($.flags&65011712)!==(Q.flags&65011712)&&console.error("Internal React error: Expected static flag was missing. Please notify the React team."),rG=!1,x2=0,W$=null,G)throw Error("Rendered fewer hooks than expected. This may be caused by an accidental early return statement.");$===null||s1||($=$.dependencies,$!==null&&IZ($)&&(s1=!0)),f2?(f2=!1,$=!0):$=!1,$&&(Q=d(Q)||"Unknown",Kw.has(Q)||AY.has(Q)||(Kw.add(Q),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 H3($,Q,G,N){V0=$;var U=0;do{if(l9&&(W$=null),x2=0,l9=!1,U>=SV)throw Error("Too many re-renders. React limits the number of renders to prevent an infinite loop.");if(U+=1,u2=!1,r1=M1=null,$.updateQueue!=null){var B=$.updateQueue;B.lastEffect=null,B.events=null,B.stores=null,B.memoCache!=null&&(B.memoCache.index=0)}F$=-1,u.H=Mw,B=PY(Q,G,N)}while(l9);return B}function sC(){var $=u.H,Q=$.useState()[0];return Q=typeof Q.then==="function"?lQ(Q):Q,$=$.useState()[0],(M1!==null?M1.memoizedState:null)!==$&&(V0.flags|=1024),Q}function M3(){var $=sG!==0;return sG=0,$}function W3($,Q,G){Q.updateQueue=$.updateQueue,Q.flags=(Q.mode&$4)!==I0?Q.flags&-402655237:Q.flags&-2053,$.lanes&=~G}function F3($){if(rG){for($=$.memoizedState;$!==null;){var Q=$.queue;Q!==null&&(Q.pending=null),$=$.next}rG=!1}M$=0,h5=r1=M1=V0=null,F$=-1,x=null,l9=!1,x2=sG=0,W$=null}function S6(){var $={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return r1===null?V0.memoizedState=r1=$:r1=r1.next=$,r1}function N1(){if(M1===null){var $=V0.alternate;$=$!==null?$.memoizedState:null}else $=M1.next;var Q=r1===null?V0.memoizedState:r1.next;if(Q!==null)r1=Q,M1=$;else{if($===null){if(V0.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.")}M1=$,$={memoizedState:M1.memoizedState,baseState:M1.baseState,baseQueue:M1.baseQueue,queue:M1.queue,next:null},r1===null?V0.memoizedState=r1=$:r1=r1.next=$}return r1}function gZ(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function lQ($){var Q=x2;return x2+=1,W$===null&&(W$=mB()),$=pB(W$,$,Q),Q=V0,(r1===null?Q.memoizedState:r1.next)===null&&(Q=Q.alternate,u.H=Q!==null&&Q.memoizedState!==null?SY:jY),$}function o$($){if($!==null&&typeof $==="object"){if(typeof $.then==="function")return lQ($);if($.$$typeof===E4)return O1($)}throw Error("An unsupported type was passed to use(): "+String($))}function G7($){var Q=null,G=V0.updateQueue;if(G!==null&&(Q=G.memoCache),Q==null){var N=V0.alternate;N!==null&&(N=N.updateQueue,N!==null&&(N=N.memoCache,N!=null&&(Q={data:N.data.map(function(U){return U.slice()}),index:0})))}if(Q==null&&(Q={data:[],index:0}),G===null&&(G=gZ(),V0.updateQueue=G),G.memoCache=Q,G=Q.data[Q.index],G===void 0||u2)for(G=Q.data[Q.index]=Array($),N=0;N<$;N++)G[N]=YI;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 Q.index++,G}function i5($,Q){return typeof Q==="function"?Q($):Q}function w3($,Q,G){var N=S6();if(G!==void 0){var U=G(Q);if(P7){F1(!0);try{G(Q)}finally{F1(!1)}}}else U=Q;return N.memoizedState=N.baseState=U,$={pending:null,lanes:0,dispatch:null,lastRenderedReducer:$,lastRenderedState:U},N.queue=$,$=$.dispatch=tC.bind(null,V0,$),[N.memoizedState,$]}function Y9($){var Q=N1();return R3(Q,M1,$)}function R3($,Q,G){var N=$.queue;if(N===null)throw Error("Should have a queue. You are likely calling Hooks conditionally, which is not allowed. (https://react.dev/link/invalid-hook-call)");N.lastRenderedReducer=G;var U=$.baseQueue,B=N.pending;if(B!==null){if(U!==null){var F=U.next;U.next=B.next,B.next=F}Q.baseQueue!==U&&console.error("Internal error: Expected work-in-progress queue to be a clone. This is a bug in React."),Q.baseQueue=U=B,N.pending=null}if(B=$.baseState,U===null)$.memoizedState=B;else{Q=U.next;var R=F=null,L=null,C=Q,b=!1;do{var y=C.lane&-536870913;if(y!==C.lane?(f0&y)===y:(M$&y)===y){var j=C.revertLane;if(j===0)L!==null&&(L=L.next={lane:0,revertLane:0,gesture:null,action:C.action,hasEagerState:C.hasEagerState,eagerState:C.eagerState,next:null}),y===w7&&(b=!0);else if((M$&j)===j){C=C.next,j===w7&&(b=!0);continue}else y={lane:0,revertLane:C.revertLane,gesture:null,action:C.action,hasEagerState:C.hasEagerState,eagerState:C.eagerState,next:null},L===null?(R=L=y,F=B):L=L.next=y,V0.lanes|=j,w8|=j;y=C.action,P7&&G(B,y),B=C.hasEagerState?C.eagerState:G(B,y)}else j={lane:y,revertLane:C.revertLane,gesture:C.gesture,action:C.action,hasEagerState:C.hasEagerState,eagerState:C.eagerState,next:null},L===null?(R=L=j,F=B):L=L.next=j,V0.lanes|=y,w8|=y;C=C.next}while(C!==null&&C!==Q);if(L===null?F=B:L.next=R,!b6(B,$.memoizedState)&&(s1=!0,b&&(G=x9,G!==null)))throw G;$.memoizedState=B,$.baseState=F,$.baseQueue=L,N.lastRenderedState=B}return U===null&&(N.lanes=0),[$.memoizedState,N.dispatch]}function rQ($){var Q=N1(),G=Q.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:N,pending:U}=G,B=Q.memoizedState;if(U!==null){G.pending=null;var F=U=U.next;do B=$(B,F.action),F=F.next;while(F!==U);b6(B,Q.memoizedState)||(s1=!0),Q.memoizedState=B,Q.baseQueue===null&&(Q.baseState=B),G.lastRenderedState=B}return[B,N]}function z3($,Q,G){var N=V0,U=S6();if(l0){if(G===void 0)throw Error("Missing getServerSnapshot, which is required for server-rendered content. Will revert to client rendering.");var B=G();c9||B===G()||(console.error("The result of getServerSnapshot should be cached to avoid an infinite loop"),c9=!0)}else{if(B=Q(),c9||(G=Q(),b6(B,G)||(console.error("The result of getSnapshot should be cached to avoid an infinite loop"),c9=!0)),W1===null)throw Error("Expected a work-in-progress root. This is a bug in React. Please file an issue.");(f0&127)!==0||JH(N,Q,B)}return U.memoizedState=B,G={value:B,getSnapshot:Q},U.queue=G,mZ(GH.bind(null,N,G,$),[$]),N.flags|=2048,K9(g5|g6,{destroy:void 0},ZH.bind(null,N,G,B,Q),null),B}function hZ($,Q,G){var N=V0,U=N1(),B=l0;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=Q(),!c9){var F=Q();b6(G,F)||(console.error("The result of getSnapshot should be cached to avoid an infinite loop"),c9=!0)}if(F=!b6((M1||U).memoizedState,G))U.memoizedState=G,s1=!0;U=U.queue;var R=GH.bind(null,N,U,$);if(d6(2048,g6,R,[$]),U.getSnapshot!==Q||F||r1!==null&&r1.memoizedState.tag&g5){if(N.flags|=2048,K9(g5|g6,{destroy:void 0},ZH.bind(null,N,U,G,Q),null),W1===null)throw Error("Expected a work-in-progress root. This is a bug in React. Please file an issue.");B||(M$&127)!==0||JH(N,Q,G)}return G}function JH($,Q,G){$.flags|=16384,$={getSnapshot:Q,value:G},Q=V0.updateQueue,Q===null?(Q=gZ(),V0.updateQueue=Q,Q.stores=[$]):(G=Q.stores,G===null?Q.stores=[$]:G.push($))}function ZH($,Q,G,N){Q.value=G,Q.getSnapshot=N,qH(Q)&&XH($)}function GH($,Q,G){return G(function(){qH(Q)&&(M4(2,"updateSyncExternalStore()",$),XH($))})}function qH($){var Q=$.getSnapshot;$=$.value;try{var G=Q();return!b6($,G)}catch(N){return!0}}function XH($){var Q=_6($,2);Q!==null&&v1(Q,$,2)}function T3($){var Q=S6();if(typeof $==="function"){var G=$;if($=G(),P7){F1(!0);try{G()}finally{F1(!1)}}}return Q.memoizedState=Q.baseState=$,Q.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:i5,lastRenderedState:$},Q}function L3($){$=T3($);var Q=$.queue,G=VH.bind(null,V0,Q);return Q.dispatch=G,[$.memoizedState,G]}function P3($){var Q=S6();Q.memoizedState=Q.baseState=$;var G={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return Q.queue=G,Q=y3.bind(null,V0,!0,G),G.dispatch=Q,[$,Q]}function NH($,Q){var G=N1();return YH(G,M1,$,Q)}function YH($,Q,G,N){return $.baseState=G,R3($,M1,typeof N==="function"?N:i5)}function UH($,Q){var G=N1();if(M1!==null)return YH(G,M1,$,Q);return G.baseState=$,[$,G.queue.dispatch]}function nC($,Q,G,N,U){if(sZ($))throw Error("Cannot update form state while rendering.");if($=Q.action,$!==null){var B={payload:U,action:$,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(F){B.listeners.push(F)}};u.T!==null?G(!0):B.isTransition=!1,N(B),G=Q.pending,G===null?(B.next=Q.pending=B,KH(Q,B)):(B.next=G.next,Q.pending=G.next=B)}}function KH($,Q){var{action:G,payload:N}=Q,U=$.state;if(Q.isTransition){var B=u.T,F={};F._updatedFibers=new Set,u.T=F;try{var R=G(U,N),L=u.S;L!==null&&L(F,R),BH($,Q,R)}catch(C){C3($,Q,C)}finally{B!==null&&F.types!==null&&(B.types!==null&&B.types!==F.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=F.types),u.T=B,B===null&&F._updatedFibers&&($=F._updatedFibers.size,F._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{F=G(U,N),BH($,Q,F)}catch(C){C3($,Q,C)}}function BH($,Q,G){G!==null&&typeof G==="object"&&typeof G.then==="function"?(u.asyncTransitions++,G.then(rZ,rZ),G.then(function(N){HH($,Q,N)},function(N){return C3($,Q,N)}),Q.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.")):HH($,Q,G)}function HH($,Q,G){Q.status="fulfilled",Q.value=G,MH(Q),$.state=G,Q=$.pending,Q!==null&&(G=Q.next,G===Q?$.pending=null:(G=G.next,Q.next=G,KH($,G)))}function C3($,Q,G){var N=$.pending;if($.pending=null,N!==null){N=N.next;do Q.status="rejected",Q.reason=G,MH(Q),Q=Q.next;while(Q!==N)}$.action=null}function MH($){$=$.listeners;for(var Q=0;Q<$.length;Q++)(0,$[Q])()}function WH($,Q){return Q}function U9($,Q){if(l0){var G=W1.formState;if(G!==null){$:{var N=V0;if(l0){if(P1){Q:{var U=P1;for(var B=b5;U.nodeType!==8;){if(!B){U=null;break Q}if(U=W5(U.nextSibling),U===null){U=null;break Q}}B=U.data,U=B===eY||B===tw?U:null}if(U){P1=W5(U.nextSibling),N=U.data===eY;break $}}d$(N)}N=!1}N&&(Q=G[0])}}return G=S6(),G.memoizedState=G.baseState=Q,N={pending:null,lanes:0,dispatch:null,lastRenderedReducer:WH,lastRenderedState:Q},G.queue=N,G=VH.bind(null,V0,N),N.dispatch=G,N=T3(!1),B=y3.bind(null,V0,!1,N.queue),N=S6(),U={state:Q,dispatch:null,action:$,pending:null},N.queue=U,G=nC.bind(null,V0,U,B,G),U.dispatch=G,N.memoizedState=$,[Q,G,!1]}function xZ($){var Q=N1();return FH(Q,M1,$)}function FH($,Q,G){if(Q=R3($,Q,WH)[0],$=Y9(i5)[0],typeof Q==="object"&&Q!==null&&typeof Q.then==="function")try{var N=lQ(Q)}catch(F){if(F===u9)throw dG;throw F}else N=Q;Q=N1();var U=Q.queue,B=U.dispatch;return G!==Q.memoizedState&&(V0.flags|=2048,K9(g5|g6,{destroy:void 0},oC.bind(null,U,G),null)),[N,B,$]}function oC($,Q){$.action=Q}function uZ($){var Q=N1(),G=M1;if(G!==null)return FH(Q,G,$);N1(),Q=Q.memoizedState,G=N1();var N=G.queue.dispatch;return G.memoizedState=$,[Q,N,!1]}function K9($,Q,G,N){return $={tag:$,create:G,deps:N,inst:Q,next:null},Q=V0.updateQueue,Q===null&&(Q=gZ(),V0.updateQueue=Q),G=Q.lastEffect,G===null?Q.lastEffect=$.next=$:(N=G.next,G.next=$,$.next=N,Q.lastEffect=$),$}function _3($){var Q=S6();return $={current:$},Q.memoizedState=$}function q7($,Q,G,N){var U=S6();V0.flags|=$,U.memoizedState=K9(g5|Q,{destroy:void 0},G,N===void 0?null:N)}function d6($,Q,G,N){var U=N1();N=N===void 0?null:N;var B=U.memoizedState.inst;M1!==null&&N!==null&&K3(N,M1.memoizedState.deps)?U.memoizedState=K9(Q,B,G,N):(V0.flags|=$,U.memoizedState=K9(g5|Q,B,G,N))}function mZ($,Q){(V0.mode&$4)!==I0?q7(276826112,g6,$,Q):q7(8390656,g6,$,Q)}function iC($){V0.flags|=4;var Q=V0.updateQueue;if(Q===null)Q=gZ(),V0.updateQueue=Q,Q.events=[$];else{var G=Q.events;G===null?Q.events=[$]:G.push($)}}function I3($){var Q=S6(),G={impl:$};return Q.memoizedState=G,function(){if((i0&J6)!==K6)throw Error("A function wrapped in useEffectEvent can't be called during rendering.");return G.impl.apply(void 0,arguments)}}function dZ($){var Q=N1().memoizedState;return iC({ref:Q,nextImpl:$}),function(){if((i0&J6)!==K6)throw Error("A function wrapped in useEffectEvent can't be called during rendering.");return Q.impl.apply(void 0,arguments)}}function V3($,Q){var G=4194308;return(V0.mode&$4)!==I0&&(G|=134217728),q7(G,L5,$,Q)}function wH($,Q){if(typeof Q==="function"){$=$();var G=Q($);return function(){typeof G==="function"?G():Q(null)}}if(Q!==null&&Q!==void 0)return Q.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(Q).join(", ")+"}"),$=$(),Q.current=$,function(){Q.current=null}}function O3($,Q,G){typeof Q!=="function"&&console.error("Expected useImperativeHandle() second argument to be a function that creates a handle. Instead received: %s.",Q!==null?typeof Q:"null"),G=G!==null&&G!==void 0?G.concat([$]):null;var N=4194308;(V0.mode&$4)!==I0&&(N|=134217728),q7(N,L5,wH.bind(null,Q,$),G)}function pZ($,Q,G){typeof Q!=="function"&&console.error("Expected useImperativeHandle() second argument to be a function that creates a handle. Instead received: %s.",Q!==null?typeof Q:"null"),G=G!==null&&G!==void 0?G.concat([$]):null,d6(4,L5,wH.bind(null,Q,$),G)}function E3($,Q){return S6().memoizedState=[$,Q===void 0?null:Q],$}function cZ($,Q){var G=N1();Q=Q===void 0?null:Q;var N=G.memoizedState;if(Q!==null&&K3(Q,N[1]))return N[0];return G.memoizedState=[$,Q],$}function A3($,Q){var G=S6();Q=Q===void 0?null:Q;var N=$();if(P7){F1(!0);try{$()}finally{F1(!1)}}return G.memoizedState=[N,Q],N}function lZ($,Q){var G=N1();Q=Q===void 0?null:Q;var N=G.memoizedState;if(Q!==null&&K3(Q,N[1]))return N[0];if(N=$(),P7){F1(!0);try{$()}finally{F1(!1)}}return G.memoizedState=[N,Q],N}function j3($,Q){var G=S6();return S3(G,$,Q)}function RH($,Q){var G=N1();return TH(G,M1.memoizedState,$,Q)}function zH($,Q){var G=N1();return M1===null?S3(G,$,Q):TH(G,M1.memoizedState,$,Q)}function S3($,Q,G){if(G===void 0||(M$&1073741824)!==0&&(f0&261930)===0)return $.memoizedState=Q;return $.memoizedState=G,$=LM(),V0.lanes|=$,w8|=$,G}function TH($,Q,G,N){if(b6(G,Q))return G;if(d9.current!==null)return $=S3($,G,N),b6($,Q)||(s1=!0),$;if((M$&42)===0||(M$&1073741824)!==0&&(f0&261930)===0)return s1=!0,$.memoizedState=G;return $=LM(),V0.lanes|=$,w8|=$,Q}function rZ(){u.asyncTransitions--}function LH($,Q,G,N,U){var B=q1.p;q1.p=B!==0&&B<e5?B:e5;var F=u.T,R={};R._updatedFibers=new Set,u.T=R,y3($,!1,Q,G);try{var L=U(),C=u.S;if(C!==null&&C(R,L),L!==null&&typeof L==="object"&&typeof L.then==="function"){u.asyncTransitions++,L.then(rZ,rZ);var b=lC(L,N);sQ($,Q,b,M5($))}else sQ($,Q,N,M5($))}catch(y){sQ($,Q,{then:function(){},status:"rejected",reason:y},M5($))}finally{q1.p=B,F!==null&&R.types!==null&&(F.types!==null&&F.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."),F.types=R.types),u.T=F,F===null&&R._updatedFibers&&($=R._updatedFibers.size,R._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 D3($,Q,G,N){if($.tag!==5)throw Error("Expected the form instance to be a HostComponent. This is a bug in React.");var U=PH($).queue;pC($),LH($,U,Q,v7,G===null?w:function(){return CH($),G(N)})}function PH($){var Q=$.memoizedState;if(Q!==null)return Q;Q={memoizedState:v7,baseState:v7,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:i5,lastRenderedState:v7},next:null};var G={};return Q.next={memoizedState:G,baseState:G,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:i5,lastRenderedState:G},next:null},$.memoizedState=Q,$=$.alternate,$!==null&&($.memoizedState=Q),Q}function CH($){u.T===null&&console.error("requestFormReset was called outside a transition or action. To fix, move to an action, or wrap with startTransition.");var Q=PH($);Q.next===null&&(Q=$.alternate.memoizedState),sQ($,Q.next.queue,{},M5($))}function v3(){var $=T3(!1);return $=LH.bind(null,V0,$.queue,!0,!1),S6().memoizedState=$,[!1,$]}function _H(){var $=Y9(i5)[0],Q=N1().memoizedState;return[typeof $==="boolean"?$:lQ($),Q]}function IH(){var $=rQ(i5)[0],Q=N1().memoizedState;return[typeof $==="boolean"?$:lQ($),Q]}function X7(){return O1(JJ)}function k3(){var $=S6(),Q=W1.identifierPrefix;if(l0){var G=Y$,N=N$;G=(N&~(1<<32-D6(N)-1)).toString(32)+G,Q="_"+Q+"R_"+G,G=sG++,0<G&&(Q+="H"+G.toString(32)),Q+="_"}else G=jV++,Q="_"+Q+"r_"+G.toString(32)+"_";return $.memoizedState=Q}function b3(){return S6().memoizedState=aC.bind(null,V0)}function aC($,Q){for(var G=$.return;G!==null;){switch(G.tag){case 24:case 3:var N=M5(G),U=l$(N),B=r$(G,U,N);B!==null&&(M4(N,"refresh()",$),v1(B,G,N),dQ(B,G,N)),$=$3(),Q!==null&&Q!==void 0&&B!==null&&console.error("The seed argument is not enabled outside experimental channels."),U.payload={cache:$};return}G=G.return}}function tC($,Q,G){var N=arguments;typeof N[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()."),N=M5($);var U={lane:N,revertLane:0,gesture:null,action:G,hasEagerState:!1,eagerState:null,next:null};sZ($)?OH(Q,U):(U=dX($,Q,U,N),U!==null&&(M4(N,"dispatch()",$),v1(U,$,N),EH(U,Q,N)))}function VH($,Q,G){var N=arguments;typeof N[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()."),N=M5($),sQ($,Q,G,N)&&M4(N,"setState()",$)}function sQ($,Q,G,N){var U={lane:N,revertLane:0,gesture:null,action:G,hasEagerState:!1,eagerState:null,next:null};if(sZ($))OH(Q,U);else{var B=$.alternate;if($.lanes===0&&(B===null||B.lanes===0)&&(B=Q.lastRenderedReducer,B!==null)){var F=u.H;u.H=J4;try{var R=Q.lastRenderedState,L=B(R,G);if(U.hasEagerState=!0,U.eagerState=L,b6(L,R))return TZ($,Q,U,0),W1===null&&zZ(),!1}catch(C){}finally{u.H=F}}if(G=dX($,Q,U,N),G!==null)return v1(G,$,N),EH(G,Q,N),!0}return!1}function y3($,Q,G,N){if(u.T===null&&w7===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."),N={lane:2,revertLane:BN(),gesture:null,action:N,hasEagerState:!1,eagerState:null,next:null},sZ($)){if(Q)throw Error("Cannot update optimistic state while rendering.");console.error("Cannot call startTransition while rendering.")}else Q=dX($,G,N,2),Q!==null&&(M4(2,"setOptimistic()",$),v1(Q,$,2))}function sZ($){var Q=$.alternate;return $===V0||Q!==null&&Q===V0}function OH($,Q){l9=rG=!0;var G=$.pending;G===null?Q.next=Q:(Q.next=G.next,G.next=Q),$.pending=Q}function EH($,Q,G){if((G&4194048)!==0){var N=Q.lanes;N&=$.pendingLanes,G|=N,Q.lanes=G,r8($,G)}}function f3($){if($!==null&&typeof $!=="function"){var Q=String($);Iw.has(Q)||(Iw.add(Q),console.error("Expected the last optional `callback` argument to be a function. Instead received: %s.",$))}}function g3($,Q,G,N){var U=$.memoizedState,B=G(N,U);if($.mode&V6){F1(!0);try{B=G(N,U)}finally{F1(!1)}}B===void 0&&(Q=i(Q)||"Component",Lw.has(Q)||(Lw.add(Q),console.error("%s.getDerivedStateFromProps(): A valid state object (or null) must be returned. You have returned undefined.",Q))),U=B===null||B===void 0?U:u0({},U,B),$.memoizedState=U,$.lanes===0&&($.updateQueue.baseState=U)}function AH($,Q,G,N,U,B,F){var R=$.stateNode;if(typeof R.shouldComponentUpdate==="function"){if(G=R.shouldComponentUpdate(N,B,F),$.mode&V6){F1(!0);try{G=R.shouldComponentUpdate(N,B,F)}finally{F1(!1)}}return G===void 0&&console.error("%s.shouldComponentUpdate(): Returned undefined instead of a boolean value. Make sure to return true or false.",i(Q)||"Component"),G}return Q.prototype&&Q.prototype.isPureReactComponent?!yQ(G,N)||!yQ(U,B):!0}function jH($,Q,G,N){var U=Q.state;typeof Q.componentWillReceiveProps==="function"&&Q.componentWillReceiveProps(G,N),typeof Q.UNSAFE_componentWillReceiveProps==="function"&&Q.UNSAFE_componentWillReceiveProps(G,N),Q.state!==U&&($=d($)||"Component",Fw.has($)||(Fw.add($),console.error("%s.componentWillReceiveProps(): Assigning directly to this.state is deprecated (except inside a component's constructor). Use setState instead.",$)),DY.enqueueReplaceState(Q,Q.state,null))}function N7($,Q){var G=Q;if("ref"in Q){G={};for(var N in Q)N!=="ref"&&(G[N]=Q[N])}if($=$.defaultProps){G===Q&&(G=u0({},G));for(var U in $)G[U]===void 0&&(G[U]=$[U])}return G}function SH($){YY($),console.warn(`%s
|
|
116
116
|
|
|
117
117
|
%s
|
|
118
|
-
`,
|
|
119
|
-
Visit https://react.dev/link/error-boundaries to learn more about error boundaries.`)}function
|
|
118
|
+
`,r9?"An error occurred in the <"+r9+"> 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 DH($){var Q=r9?"The above error occurred in the <"+r9+"> 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, "+((vY||"Anonymous")+".");if(typeof $==="object"&&$!==null&&typeof $.environmentName==="string"){var N=$.environmentName;$=[`%o
|
|
120
120
|
|
|
121
121
|
%s
|
|
122
122
|
|
|
123
123
|
%s
|
|
124
|
-
`,$,
|
|
124
|
+
`,$,Q,G].slice(0),typeof $[0]==="string"?$.splice(0,1,XR+" "+$[0],NR,zq+N+zq,YR):$.splice(0,0,XR,NR,zq+N+zq,YR),$.unshift(console),N=iV.apply(console.error,$),N()}else console.error(`%o
|
|
125
125
|
|
|
126
126
|
%s
|
|
127
127
|
|
|
128
128
|
%s
|
|
129
|
-
`,$,
|
|
129
|
+
`,$,Q,G)}function vH($){YY($)}function nZ($,Q){try{r9=Q.source?d(Q.source):null,vY=null;var G=Q.value;if(u.actQueue!==null)u.thrownErrors.push(G);else{var N=$.onUncaughtError;N(G,{componentStack:Q.stack})}}catch(U){setTimeout(function(){throw U})}}function kH($,Q,G){try{r9=G.source?d(G.source):null,vY=d(Q);var N=$.onCaughtError;N(G.value,{componentStack:G.stack,errorBoundary:Q.tag===1?Q.stateNode:null})}catch(U){setTimeout(function(){throw U})}}function h3($,Q,G){return G=l$(G),G.tag=VY,G.payload={element:null},G.callback=function(){q0(Q.source,nZ,$,Q)},G}function x3($){return $=l$($),$.tag=VY,$}function u3($,Q,G,N){var U=G.type.getDerivedStateFromError;if(typeof U==="function"){var B=N.value;$.payload=function(){return U(B)},$.callback=function(){OB(G),q0(N.source,kH,Q,G,N)}}var F=G.stateNode;F!==null&&typeof F.componentDidCatch==="function"&&($.callback=function(){OB(G),q0(N.source,kH,Q,G,N),typeof U!=="function"&&(z8===null?z8=new Set([this]):z8.add(this)),VV(this,N),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 eC($,Q,G,N,U){if(G.flags|=32768,S4&&Q2($,U),N!==null&&typeof N==="object"&&typeof N.then==="function"){if(Q=G.alternate,Q!==null&&X9(Q,G,U,!0),l0&&(k4=!0),G=T5.current,G!==null){switch(G.tag){case 31:case 13:return f5===null?ZG():G.alternate===null&&S1===R$&&(S1=iG),G.flags&=-257,G.flags|=65536,G.lanes=U,N===pG?G.flags|=16384:(Q=G.updateQueue,Q===null?G.updateQueue=new Set([N]):Q.add(N),NN($,N,U)),!1;case 22:return G.flags|=65536,N===pG?G.flags|=16384:(Q=G.updateQueue,Q===null?(Q={transitions:null,markerInstances:null,retryQueue:new Set([N])},G.updateQueue=Q):(G=Q.retryQueue,G===null?Q.retryQueue=new Set([N]):G.add(N)),NN($,N,U)),!1}throw Error("Unexpected Suspense handler tag ("+G.tag+"). This is a bug in React.")}return NN($,N,U),ZG(),!1}if(l0)return k4=!0,Q=T5.current,Q!==null?((Q.flags&65536)===0&&(Q.flags|=256),Q.flags|=65536,Q.lanes=U,N!==WY&&gQ(U5(Error("There was an error while hydrating but React was able to recover by instead client rendering from the nearest Suspense boundary.",{cause:N}),G))):(N!==WY&&gQ(U5(Error("There was an error while hydrating but React was able to recover by instead client rendering the entire root.",{cause:N}),G)),$=$.current.alternate,$.flags|=65536,U&=-U,$.lanes|=U,N=U5(N,G),U=h3($.stateNode,N,U),bZ($,U),S1!==W8&&(S1=C7)),!1;var B=U5(Error("There was an error during concurrent rendering but React was able to recover by instead synchronously rendering the entire root.",{cause:N}),G);if(s2===null?s2=[B]:s2.push(B),S1!==W8&&(S1=C7),Q===null)return!0;N=U5(N,G),G=Q;do{switch(G.tag){case 3:return G.flags|=65536,$=U&-U,G.lanes|=$,$=h3(G.stateNode,N,$),bZ(G,$),!1;case 1:if(Q=G.type,B=G.stateNode,(G.flags&128)===0&&(typeof Q.getDerivedStateFromError==="function"||B!==null&&typeof B.componentDidCatch==="function"&&(z8===null||!z8.has(B))))return G.flags|=65536,U&=-U,G.lanes|=U,U=x3(U),u3(U,$,G,N),bZ(G,U),!1}G=G.return}while(G!==null);return!1}function M6($,Q,G,N){Q.child=$===null?Gw(Q,null,G,N):L7(Q,$.child,G,N)}function bH($,Q,G,N,U){G=G.render;var B=Q.ref;if("ref"in N){var F={};for(var R in N)R!=="ref"&&(F[R]=N[R])}else F=N;if(J7(Q),N=B3($,Q,G,F,B,U),R=M3(),$!==null&&!s1)return W3($,Q,U),Q$($,Q,U);return l0&&R&&nX(Q),Q.flags|=1,M6($,Q,N,U),Q.child}function yH($,Q,G,N,U){if($===null){var B=G.type;if(typeof B==="function"&&!cX(B)&&B.defaultProps===void 0&&G.compare===null)return G=t8(B),Q.tag=15,Q.type=G,d3(Q,B),fH($,Q,G,N,U);return $=lX(G.type,null,N,Q,Q.mode,U),$.ref=Q.ref,$.return=Q,Q.child=$}if(B=$.child,!n3($,U)){var F=B.memoizedProps;if(G=G.compare,G=G!==null?G:yQ,G(F,N)&&$.ref===Q.ref)return Q$($,Q,U)}return Q.flags|=1,$=a4(B,N),$.ref=Q.ref,$.return=Q,Q.child=$}function fH($,Q,G,N,U){if($!==null){var B=$.memoizedProps;if(yQ(B,N)&&$.ref===Q.ref&&Q.type===$.type)if(s1=!1,Q.pendingProps=N=B,n3($,U))($.flags&131072)!==0&&(s1=!0);else return Q.lanes=$.lanes,Q$($,Q,U)}return m3($,Q,G,N,U)}function gH($,Q,G,N){var U=N.children,B=$!==null?$.memoizedState:null;if($===null&&Q.stateNode===null&&(Q.stateNode={_visibility:C2,_pendingMarkers:null,_retryCache:null,_transitions:null}),N.mode==="hidden"){if((Q.flags&128)!==0){if(B=B!==null?B.baseLanes|G:G,$!==null){N=Q.child=$.child;for(U=0;N!==null;)U=U|N.lanes|N.childLanes,N=N.sibling;N=U&~B}else N=0,Q.child=null;return hH($,Q,B,G,N)}if((G&536870912)!==0)Q.memoizedState={baseLanes:0,cachePool:null},$!==null&&AZ(Q,B!==null?B.cachePool:null),B!==null?eB(Q,B):N3(Q),$H(Q);else return N=Q.lanes=536870912,hH($,Q,B!==null?B.baseLanes|G:G,G,N)}else B!==null?(AZ(Q,B.cachePool),eB(Q,B),n$(Q),Q.memoizedState=null):($!==null&&AZ(Q,null),N3(Q),n$(Q));return M6($,Q,U,G),Q.child}function nQ($,Q){return $!==null&&$.tag===22||Q.stateNode!==null||(Q.stateNode={_visibility:C2,_pendingMarkers:null,_retryCache:null,_transitions:null}),Q.sibling}function hH($,Q,G,N,U){var B=Z3();return B=B===null?null:{parent:c1._currentValue,pool:B},Q.memoizedState={baseLanes:G,cachePool:B},$!==null&&AZ(Q,null),N3(Q),$H(Q),$!==null&&X9($,Q,N,!0),Q.childLanes=U,null}function oZ($,Q){var G=Q.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"'),
|
|
131
|
+
+ <Activity %s>`,G===!0?"hidden":G===!1?"hidden={false}":"hidden={...}",G?'mode="hidden"':'mode="visible"'),Q=aZ({mode:Q.mode,children:Q.children},$.mode),Q.ref=$.ref,$.child=Q,Q.return=$,Q}function xH($,Q,G){return L7(Q,$.child,null,G),$=oZ(Q,Q.pendingProps),$.flags|=2,H5(Q),Q.memoizedState=null,$}function $_($,Q,G){var N=Q.pendingProps,U=(Q.flags&128)!==0;if(Q.flags&=-129,$===null){if(l0){if(N.mode==="hidden")return $=oZ(Q,N),Q.lanes=536870912,nQ(null,$);if(U3(Q),($=P1)?(G=KW($,b5),G=G!==null&&G.data===A7?G:null,G!==null&&(N={dehydrated:G,treeContext:DB(),retryLane:536870912,hydrationErrors:null},Q.memoizedState=N,N=jB(G),N.return=Q,Q.child=N,w6=Q,P1=null)):G=null,G===null)throw CZ(Q,$),d$(Q);return Q.lanes=536870912,null}return oZ(Q,N)}var B=$.memoizedState;if(B!==null){var F=B.dehydrated;if(U3(Q),U)if(Q.flags&256)Q.flags&=-257,Q=xH($,Q,G);else if(Q.memoizedState!==null)Q.child=$.child,Q.flags|=128,Q=null;else throw Error("Client rendering an Activity suspended it again. This is a bug in React.");else if(kB(),(G&536870912)!==0&&JG(Q),s1||X9($,Q,G,!1),U=(G&$.childLanes)!==0,s1||U){if(N=W1,N!==null&&(F=s8(N,G),F!==0&&F!==B.retryLane))throw B.retryLane=F,_6($,F),v1(N,$,F),kY;ZG(),Q=xH($,Q,G)}else $=B.treeContext,P1=W5(F.nextSibling),w6=Q,l0=!0,N8=null,k4=!1,z5=null,b5=!1,$!==null&&vB(Q,$),Q=oZ(Q,N),Q.flags|=4096;return Q}return B=$.child,N={mode:N.mode,children:N.children},(G&536870912)!==0&&(G&$.lanes)!==0&&JG(Q),$=a4(B,N),$.ref=Q.ref,Q.child=$,$.return=Q,$}function iZ($,Q){var G=Q.ref;if(G===null)$!==null&&$.ref!==null&&(Q.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)Q.flags|=4194816}}function m3($,Q,G,N,U){if(G.prototype&&typeof G.prototype.render==="function"){var B=i(G)||"Unknown";Vw[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),Vw[B]=!0)}if(Q.mode&V6&&Q4.recordLegacyContextWarning(Q,null),$===null&&(d3(Q,Q.type),G.contextTypes&&(B=i(G)||"Unknown",Ew[B]||(Ew[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)))),J7(Q),G=B3($,Q,G,N,void 0,U),N=M3(),$!==null&&!s1)return W3($,Q,U),Q$($,Q,U);return l0&&N&&nX(Q),Q.flags|=1,M6($,Q,G,U),Q.child}function uH($,Q,G,N,U,B){if(J7(Q),F$=-1,u2=$!==null&&$.type!==Q.type,Q.updateQueue=null,G=H3(Q,N,G,U),QH($,Q),N=M3(),$!==null&&!s1)return W3($,Q,B),Q$($,Q,B);return l0&&N&&nX(Q),Q.flags|=1,M6($,Q,G,B),Q.child}function mH($,Q,G,N,U){switch(H(Q)){case!1:var B=Q.stateNode,F=new Q.type(Q.memoizedProps,B.context).state;B.updater.enqueueSetState(B,F,null);break;case!0:Q.flags|=128,Q.flags|=65536,B=Error("Simulated error coming from DevTools");var R=U&-U;if(Q.lanes|=R,F=W1,F===null)throw Error("Expected a work-in-progress root. This is a bug in React. Please file an issue.");R=x3(R),u3(R,F,Q,U5(B,Q)),bZ(Q,R)}if(J7(Q),Q.stateNode===null){if(F=X8,B=G.contextType,"contextType"in G&&B!==null&&(B===void 0||B.$$typeof!==E4)&&!_w.has(G)&&(_w.add(G),R=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===bN?" 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",R)),typeof B==="object"&&B!==null&&(F=O1(B)),B=new G(N,F),Q.mode&V6){F1(!0);try{B=new G(N,F)}finally{F1(!1)}}if(F=Q.memoizedState=B.state!==null&&B.state!==void 0?B.state:null,B.updater=DY,Q.stateNode=B,B._reactInternals=Q,B._reactInternalInstance=Ww,typeof G.getDerivedStateFromProps==="function"&&F===null&&(F=i(G)||"Component",ww.has(F)||(ww.add(F),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.",F,B.state===null?"null":"undefined",F))),typeof G.getDerivedStateFromProps==="function"||typeof B.getSnapshotBeforeUpdate==="function"){var L=R=F=null;if(typeof B.componentWillMount==="function"&&B.componentWillMount.__suppressDeprecationWarning!==!0?F="componentWillMount":typeof B.UNSAFE_componentWillMount==="function"&&(F="UNSAFE_componentWillMount"),typeof B.componentWillReceiveProps==="function"&&B.componentWillReceiveProps.__suppressDeprecationWarning!==!0?R="componentWillReceiveProps":typeof B.UNSAFE_componentWillReceiveProps==="function"&&(R="UNSAFE_componentWillReceiveProps"),typeof B.componentWillUpdate==="function"&&B.componentWillUpdate.__suppressDeprecationWarning!==!0?L="componentWillUpdate":typeof B.UNSAFE_componentWillUpdate==="function"&&(L="UNSAFE_componentWillUpdate"),F!==null||R!==null||L!==null){B=i(G)||"Component";var C=typeof G.getDerivedStateFromProps==="function"?"getDerivedStateFromProps()":"getSnapshotBeforeUpdate()";zw.has(B)||(zw.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
|
|
|
135
135
|
The above lifecycles should be removed. Learn more about this warning here:
|
|
136
|
-
https://react.dev/link/unsafe-component-lifecycles`,B,C,
|
|
137
|
-
`+
|
|
138
|
-
`+R:"",
|
|
139
|
-
`+
|
|
140
|
-
%s.childContextTypes = ...`,Z.displayName||Z.name||"Component"),typeof Z.getDerivedStateFromProps==="function"&&($=o(Z)||"Unknown",Vw[$]||(console.error("%s: Function components do not support getDerivedStateFromProps.",$),Vw[$]=!0)),typeof Z.contextType==="object"&&Z.contextType!==null&&(Z=o(Z)||"Unknown",_w[Z]||(console.error("%s: Function components do not support contextType.",Z),_w[Z]=!0))}function uq($){return{baseLanes:$,cachePool:gB()}}function xq($,Z,G){return $=$!==null?$.childLanes&~G:0,Z&&($|=l5),$}function xH($,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:(u1.current&gZ)!==0),Y&&(B=!0,Z.flags&=-129),Y=(Z.flags&32)!==0,Z.flags&=-33,$===null){if(s0){if(B?d8(Z):p8(Z),($=L1)?(G=YF($,v6),G=G!==null&&G.data!==O9?G:null,G!==null&&(Y={dehydrated:G,treeContext:AB(),retryLane:536870912,hydrationErrors:null},Z.memoizedState=Y,Y=OB(G),Y.return=Z,Z.child=Y,W5=Z,L1=null)):G=null,G===null)throw zJ(Z,$),g8(Z);return TY(G)?Z.lanes=32:Z.lanes=536870912,null}var R=U.children;if(U=U.fallback,B){p8(Z);var P=Z.mode;return R=sJ({mode:"hidden",children:R},P),U=a2(U,P,G,null),R.return=Z,U.return=Z,R.sibling=U,Z.child=R,U=Z.child,U.memoizedState=uq(G),U.childLanes=xq($,Y,G),Z.memoizedState=SN,s$(null,U)}return d8(Z),mq(Z,R)}var C=$.memoizedState;if(C!==null){var k=C.dehydrated;if(k!==null){if(W)Z.flags&256?(d8(Z),Z.flags&=-257,Z=dq($,Z,G)):Z.memoizedState!==null?(p8(Z),Z.child=$.child,Z.flags|=128,Z=null):(p8(Z),R=U.fallback,P=Z.mode,U=sJ({mode:"visible",children:U.children},P),R=a2(R,P,G,null),R.flags|=2,U.return=Z,R.return=Z,U.sibling=R,Z.child=U,z9(Z,$.child,null,G),U=Z.child,U.memoizedState=uq(G),U.childLanes=xq($,Y,G),Z.memoizedState=SN,Z=s$(null,U));else if(d8(Z),SB(),(G&536870912)!==0&&tJ(Z),TY(k)){if(Y=k.nextSibling&&k.nextSibling.dataset,Y){R=Y.dgst;var f=Y.msg;P=Y.stck;var j=Y.cstck}B=f,Y=R,U=P,k=j,R=B,P=k,R=R?Error(R):Error("The server could not finish this Suspense boundary, likely due to an error during server rendering. Switched to client rendering."),R.stack=U||"",R.digest=Y,Y=P===void 0?null:P,U={value:R,source:null,stack:Y},typeof Y==="string"&&UN.set(R,U),y$(U),Z=dq($,Z,G)}else if(s1||G7($,Z,G,!1),Y=(G&$.childLanes)!==0,s1||Y){if(Y=W1,Y!==null&&(U=l2(Y,G),U!==0&&U!==C.retryLane))throw C.retryLane=U,C5($,U),D1(Y,$,U),jN;zY(k)||eJ(),Z=dq($,Z,G)}else zY(k)?(Z.flags|=192,Z.child=$.child,Z=null):($=C.treeContext,L1=H6(k.nextSibling),W5=Z,s0=!0,Q2=null,D4=!1,w6=null,v6=!1,$!==null&&jB(Z,$),Z=mq(Z,U.children),Z.flags|=4096);return Z}}if(B)return p8(Z),R=U.fallback,P=Z.mode,j=$.child,k=j.sibling,U=n4(j,{mode:"hidden",children:U.children}),U.subtreeFlags=j.subtreeFlags&65011712,k!==null?R=n4(k,R):(R=a2(R,P,G,null),R.flags|=2),R.return=Z,U.return=Z,U.sibling=R,Z.child=U,s$(null,U),U=Z.child,R=$.child.memoizedState,R===null?R=uq(G):(P=R.cachePool,P!==null?(j=c1._currentValue,P=P.parent!==j?{parent:j,pool:j}:P):P=gB(),R={baseLanes:R.baseLanes|G,cachePool:P}),U.memoizedState=R,U.childLanes=xq($,Y,G),Z.memoizedState=SN,s$($.child,U);return C!==null&&(G&62914560)===G&&(G&$.lanes)!==0&&tJ(Z),d8(Z),G=$.child,$=G.sibling,G=n4(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 mq($,Z){return Z=sJ({mode:"visible",children:Z},$.mode),Z.return=$,$.child=Z}function sJ($,Z){return $=L(22,$,null,Z),$.lanes=0,$}function dq($,Z,G){return z9(Z,$.child,null,G),$=mq(Z,Z.pendingProps.children),$.flags|=2,Z.memoizedState=null,$}function mH($,Z,G){$.lanes|=Z;var Y=$.alternate;Y!==null&&(Y.lanes|=Z),nX($.return,Z,G)}function pq($,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 dH($,Z,G){var Y=Z.pendingProps,U=Y.revealOrder,B=Y.tail,W=Y.children,R=u1.current;if((Y=(R&gZ)!==0)?(R=R&m7|gZ,Z.flags|=128):R&=m7,C0(u1,R,Z),R=U==null?"null":U,U!=="forwards"&&U!=="unstable_legacy-backwards"&&U!=="together"&&U!=="independent"&&!Ow[R])if(Ow[R]=!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(R=B==null?"null":B,!lG[R])if(B==null){if(U==="forwards"||U==="backwards"||U==="unstable_legacy-backwards")lG[R]=!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"?(lG[R]=!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"&&(lG[R]=!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($5(W)){for(R=0;R<W.length;R++)if(!sB(W[R],R))break $}else if(R=a(W),typeof R==="function"){if(R=R.call(W))for(var P=R.next(),C=0;!P.done;P=R.next()){if(!sB(P.value,C))break $;C++}}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(H5($,Z,W,G),s0?(y8(),W=CZ):W=0,!Y&&$!==null&&($.flags&128)!==0)$:for($=Z.child;$!==null;){if($.tag===13)$.memoizedState!==null&&mH($,G,Z);else if($.tag===19)mH($,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&&DJ($)===null&&(U=G),G=G.sibling;G=U,G===null?(U=Z.child,Z.child=null):(U=G.sibling,G.sibling=null),pq(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&&DJ($)===null){Z.child=U;break}$=U.sibling,U.sibling=G,G=U,U=$}pq(Z,!0,G,null,B,W);break;case"together":pq(Z,!1,null,null,void 0,W);break;default:Z.memoizedState=null}return Z.child}function t4($,Z,G){if($!==null&&(Z.dependencies=$.dependencies),b5=-1,B2|=Z.lanes,(G&Z.childLanes)===0)if($!==null){if(G7($,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=n4($,$.pendingProps),Z.child=G;for(G.return=Z;$.sibling!==null;)$=$.sibling,G=G.sibling=n4($,$.pendingProps),G.return=Z;G.sibling=null}return Z.child}function cq($,Z){if(($.lanes&Z)!==0)return!0;return $=$.dependencies,$!==null&&PJ($)?!0:!1}function $_($,Z,G){switch(Z.tag){case 3:l(Z,Z.stateNode.containerInfo),h8(Z,c1,$.memoizedState.cache),e2();break;case 27:case 5:r0(Z);break;case 4:l(Z,Z.stateNode.containerInfo);break;case 10:h8(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,Xq(Z),null;break;case 13:if(Y=Z.memoizedState,Y!==null){if(Y.dehydrated!==null)return d8(Z),Z.flags|=128,null;if((G&Z.child.childLanes)!==0)return xH($,Z,G);return d8(Z),$=t4($,Z,G),$!==null?$.sibling:null}d8(Z);break;case 19:var U=($.flags&128)!==0;if(Y=(G&Z.childLanes)!==0,Y||(G7($,Z,G,!1),Y=(G&Z.childLanes)!==0),U){if(Y)return dH($,Z,G);Z.flags|=128}if(U=Z.memoizedState,U!==null&&(U.rendering=null,U.tail=null,U.lastEffect=null),C0(u1,u1.current,Z),Y)break;else return null;case 22:return Z.lanes=0,kH($,Z,G,Z.pendingProps);case 24:h8(Z,c1,$.memoizedState.cache)}return t4($,Z,G)}function lq($,Z,G){if(Z._debugNeedsRemount&&$!==null){G=mX(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)s1=!0;else{if(!cq($,G)&&(Z.flags&128)===0)return s1=!1,$_($,Z,G);s1=($.flags&131072)!==0?!0:!1}else{if(s1=!1,Y=s0)y8(),Y=(Z.flags&1048576)!==0;Y&&(Y=Z.index,y8(),EB(Z,CZ,Y))}switch(Z.lanes=0,Z.tag){case 16:$:if(Y=Z.pendingProps,$=u8(Z.elementType),Z.type=$,typeof $==="function")xX($)?(Y=X9($,Y),Z.tag=1,Z.type=$=i2($),Z=hH(null,Z,$,Y,G)):(Z.tag=0,hq(Z,$),Z.type=$=i2($),Z=gq(null,Z,$,Y,G));else{if($!==void 0&&$!==null){if(U=$.$$typeof,U===UZ){Z.tag=11,Z.type=$=uX($),Z=DH(null,Z,$,Y,G);break $}else if(U===MG){Z.tag=14,Z=vH(null,Z,$,Y,G);break $}}throw Z="",$!==null&&typeof $==="object"&&$.$$typeof===M6&&(Z=" Did you wrap a component in React.lazy() more than once?"),G=o($)||$,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 gq($,Z,Z.type,Z.pendingProps,G);case 1:return Y=Z.type,U=X9(Y,Z.pendingProps),hH($,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,Qq($,Z),p$(Z,Y,null,G);var W=Z.memoizedState;if(Y=W.cache,h8(Z,c1,Y),Y!==B.cache&&oX(Z,[c1],G,!0),d$(),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=uH($,Z,Y,G);break $}else if(Y!==U){U=Y6(Error("This root received an early update, before anything was able hydrate. Switched the entire root to client rendering."),Z),y$(U),Z=uH($,Z,Y,G);break $}else{switch($=Z.stateNode.containerInfo,$.nodeType){case 9:$=$.body;break;default:$=$.nodeName==="HTML"?$.ownerDocument.body:$}L1=H6($.firstChild),W5=Z,s0=!0,Q2=null,D4=!1,w6=null,v6=!0,G=Zw(Z,null,Y,G);for(Z.child=G;G;)G.flags=G.flags&-3|4096,G=G.sibling}else{if(e2(),Y===U){Z=t4($,Z,G);break $}H5($,Z,Y,G)}Z=Z.child}return Z;case 26:return rJ($,Z),$===null?(G=MF(Z.type,null,Z.pendingProps,null))?Z.memoizedState=G:s0||(G=Z.type,$=Z.pendingProps,Y=D0(o8.current),Y=JG(Y).createElement(G),Y[F5]=Z,Y[S5]=$,M5(Y,G,$),z0(Y),Z.stateNode=Y):Z.memoizedState=MF(Z.type,$.memoizedProps,Z.pendingProps,$.memoizedState),null;case 27:return r0(Z),$===null&&s0&&(Y=D0(o8.current),U=B0(),Y=Z.stateNode=BF(Z.type,Z.pendingProps,Y,U,!1),D4||(U=eM(Y,Z.type,Z.pendingProps,U),U!==null&&(t2(Z,0).serverProps=U)),W5=Z,v6=!0,U=L1,s8(Z.type)?(eN=U,L1=H6(Y.firstChild)):L1=U),H5($,Z,Z.pendingProps.children,G),rJ($,Z),$===null&&(Z.flags|=4194304),Z.child;case 5:return $===null&&s0&&(B=B0(),Y=DX(Z.type,B.ancestorInfo),U=L1,(W=!U)||(W=d_(U,Z.type,Z.pendingProps,v6),W!==null?(Z.stateNode=W,D4||(B=eM(W,Z.type,Z.pendingProps,B),B!==null&&(t2(Z,0).serverProps=B)),W5=Z,L1=H6(W.firstChild),v6=!1,B=!0):B=!1,W=!B),W&&(Y&&zJ(Z,U),g8(Z))),r0(Z),U=Z.type,B=Z.pendingProps,W=$!==null?$.memoizedProps:null,Y=B.children,wY(U,B)?Y=null:W!==null&&wY(U,W)&&(Z.flags|=32),Z.memoizedState!==null&&(U=Yq($,Z,rC,null,null,G),ZQ._currentValue=U),rJ($,Z),H5($,Z,Y,G),Z.child;case 6:return $===null&&s0&&(G=Z.pendingProps,$=B0(),Y=$.ancestorInfo.current,G=Y!=null?NJ(G,Y.tag,$.ancestorInfo.implicitRootScope):!0,$=L1,(Y=!$)||(Y=p_($,Z.pendingProps,v6),Y!==null?(Z.stateNode=Y,W5=Z,L1=null,Y=!0):Y=!1,Y=!Y),Y&&(G&&zJ(Z,$),g8(Z))),null;case 13:return xH($,Z,G);case 4:return l(Z,Z.stateNode.containerInfo),Y=Z.pendingProps,$===null?Z.child=z9(Z,null,Y,G):H5($,Z,Y,G),Z.child;case 11:return DH($,Z,Z.type,Z.pendingProps,G);case 7:return H5($,Z,Z.pendingProps,G),Z.child;case 8:return H5($,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,H5($,Z,Z.pendingProps.children,G),Z.child;case 10:return Y=Z.type,U=Z.pendingProps,B=U.value,"value"in U||Ew||(Ew=!0,console.error("The `value` prop is required for the `<Context.Provider>`. Did you misspell it or forget to pass it?")),h8(Z,Y,B),H5($,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."),$9(Z),U=O1(U),Y=RN(Y,U,void 0),Z.flags|=1,H5($,Z,Y,G),Z.child;case 14:return vH($,Z,Z.type,Z.pendingProps,G);case 15:return bH($,Z,Z.type,Z.pendingProps,G);case 19:return dH($,Z,G);case 31:return eC($,Z,G);case 22:return kH($,Z,G,Z.pendingProps);case 24:return $9(Z),Y=O1(c1),$===null?(U=eX(),U===null&&(U=W1,B=iX(),U.pooledCache=B,Z9(B),B!==null&&(U.pooledCacheLanes|=G),U=B),Z.memoizedState={parent:Y,cache:U},Zq(Z),h8(Z,c1,U)):(($.lanes&G)!==0&&(Qq($,Z),p$(Z,null,null,G),d$()),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),h8(Z,c1,Y)):(Y=B.cache,h8(Z,c1,Y),Y!==U.cache&&oX(Z,[c1],G,!0))),H5($,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 e4($){$.flags|=4}function rq($,Z,G,Y,U){if(Z=($.mode&PV)!==I0)Z=!1;if(Z){if($.flags|=16777216,(U&335544128)===U)if($.stateNode.complete)$.flags|=8192;else if(LM())$.flags|=8192;else throw R9=uG,TN}else $.flags&=-16777217}function pH($,Z){if(Z.type!=="stylesheet"||(Z.state.loading&g6)!==j9)$.flags&=-16777217;else if($.flags|=16777216,!zF(Z))if(LM())$.flags|=8192;else throw R9=uG,TN}function nJ($,Z){Z!==null&&($.flags|=4),$.flags&16384&&(Z=$.tag!==22?t9():536870912,$.lanes|=Z,_9|=Z)}function n$($,Z){if(!s0)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 R1($){var Z=$.alternate!==null&&$.alternate.child===$.child,G=0,Y=0;if(Z)if(($.mode&f0)!==I0){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&f0)!==I0){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 Z_($,Z,G){var Y=Z.pendingProps;switch(lX(Z),Z.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return R1(Z),null;case 1:return R1(Z),null;case 3:if(G=Z.stateNode,Y=null,$!==null&&(Y=$.memoizedState.cache),Z.memoizedState.cache!==Y&&(Z.flags|=2048),i4(c1,Z),X0(Z),G.pendingContext&&(G.context=G.pendingContext,G.pendingContext=null),$===null||$.child===null)J7(Z)?(sX(),e4(Z)):$===null||$.memoizedState.isDehydrated&&(Z.flags&256)===0||(Z.flags|=1024,rX());return R1(Z),null;case 26:var{type:U,memoizedState:B}=Z;return $===null?(e4(Z),B!==null?(R1(Z),pH(Z,B)):(R1(Z),rq(Z,U,null,Y,G))):B?B!==$.memoizedState?(e4(Z),R1(Z),pH(Z,B)):(R1(Z),Z.flags&=-16777217):($=$.memoizedProps,$!==Y&&e4(Z),R1(Z),rq(Z,U,$,Y,G)),null;case 27:if(u0(Z),G=D0(o8.current),U=Z.type,$!==null&&Z.stateNode!=null)$.memoizedProps!==Y&&e4(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 R1(Z),null}$=B0(),J7(Z)?DB(Z,$):($=BF(U,Y,G,$,!0),Z.stateNode=$,e4(Z))}return R1(Z),null;case 5:if(u0(Z),U=Z.type,$!==null&&Z.stateNode!=null)$.memoizedProps!==Y&&e4(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 R1(Z),null}var W=B0();if(J7(Z))DB(Z,W);else{switch(B=D0(o8.current),DX(U,W.ancestorInfo),W=W.context,B=JG(B),W){case e7:B=B.createElementNS(_7,U);break;case B3:B=B.createElementNS(PG,U);break;default:switch(U){case"svg":B=B.createElementNS(_7,U);break;case"math":B=B.createElementNS(PG,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]"||i6.call(aw,U)||(aw[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[F5]=Z,B[S5]=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(M5(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&&e4(Z)}}return R1(Z),rq(Z,Z.type,$===null?null:$.memoizedProps,Z.pendingProps,G),null;case 6:if($&&Z.stateNode!=null)$.memoizedProps!==Y&&e4(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($=D0(o8.current),G=B0(),J7(Z)){if($=Z.stateNode,G=Z.memoizedProps,U=!D4,Y=null,B=W5,B!==null)switch(B.tag){case 3:U&&(U=UF($,G,Y),U!==null&&(t2(Z,0).serverProps=U));break;case 27:case 5:Y=B.memoizedProps,U&&(U=UF($,G,Y),U!==null&&(t2(Z,0).serverProps=U))}$[F5]=Z,$=$.nodeValue===G||Y!==null&&Y.suppressHydrationWarning===!0||nM($.nodeValue,G)?!0:!1,$||g8(Z,!0)}else U=G.ancestorInfo.current,U!=null&&NJ(Y,U.tag,G.ancestorInfo.implicitRootScope),$=JG($).createTextNode(Y),$[F5]=Z,Z.stateNode=$}return R1(Z),null;case 31:if(G=Z.memoizedState,$===null||$.memoizedState!==null){if(Y=J7(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.");$[F5]=Z,R1(Z),(Z.mode&f0)!==I0&&G!==null&&($=Z.child,$!==null&&(Z.treeBaseDuration-=$.treeBaseDuration))}else sX(),e2(),(Z.flags&128)===0&&(G=Z.memoizedState=null),Z.flags|=4,R1(Z),(Z.mode&f0)!==I0&&G!==null&&($=Z.child,$!==null&&(Z.treeBaseDuration-=$.treeBaseDuration));$=!1}else G=rX(),$!==null&&$.memoizedState!==null&&($.memoizedState.hydrationErrors=G),$=!0;if(!$){if(Z.flags&256)return K6(Z),Z;return K6(Z),null}if((Z.flags&128)!==0)throw Error("Client rendering an Activity suspended it again. This is a bug in React.")}return R1(Z),null;case 13:if(Y=Z.memoizedState,$===null||$.memoizedState!==null&&$.memoizedState.dehydrated!==null){if(U=Y,B=J7(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[F5]=Z,R1(Z),(Z.mode&f0)!==I0&&U!==null&&(U=Z.child,U!==null&&(Z.treeBaseDuration-=U.treeBaseDuration))}else sX(),e2(),(Z.flags&128)===0&&(U=Z.memoizedState=null),Z.flags|=4,R1(Z),(Z.mode&f0)!==I0&&U!==null&&(U=Z.child,U!==null&&(Z.treeBaseDuration-=U.treeBaseDuration));U=!1}else U=rX(),$!==null&&$.memoizedState!==null&&($.memoizedState.hydrationErrors=U),U=!0;if(!U){if(Z.flags&256)return K6(Z),Z;return K6(Z),null}}if(K6(Z),(Z.flags&128)!==0)return Z.lanes=G,(Z.mode&f0)!==I0&&u$(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),nJ(Z,Z.updateQueue),R1(Z),(Z.mode&f0)!==I0&&G&&($=Z.child,$!==null&&(Z.treeBaseDuration-=$.treeBaseDuration)),null;case 4:return X0(Z),$===null&&UY(Z.stateNode.containerInfo),R1(Z),null;case 10:return i4(Z.type,Z),R1(Z),null;case 19:if(P0(u1,Z),Y=Z.memoizedState,Y===null)return R1(Z),null;if(U=(Z.flags&128)!==0,B=Y.rendering,B===null)if(U)n$(Y,!1);else{if(j1!==F8||$!==null&&($.flags&128)!==0)for($=Z.child;$!==null;){if(B=DJ($),B!==null){Z.flags|=128,n$(Y,!1),$=B.updateQueue,Z.updateQueue=$,nJ(Z,$),Z.subtreeFlags=0,$=G;for(G=Z.child;G!==null;)VB(G,$),G=G.sibling;return C0(u1,u1.current&m7|gZ,Z),s0&&o4(Z,Y.treeForkCount),Z.child}$=$.sibling}Y.tail!==null&&Y5()>tG&&(Z.flags|=128,U=!0,n$(Y,!1),Z.lanes=4194304)}else{if(!U)if($=DJ(B),$!==null){if(Z.flags|=128,U=!0,$=$.updateQueue,Z.updateQueue=$,nJ(Z,$),n$(Y,!0),Y.tail===null&&Y.tailMode==="hidden"&&!B.alternate&&!s0)return R1(Z),null}else 2*Y5()-Y.renderingStartTime>tG&&G!==536870912&&(Z.flags|=128,U=!0,n$(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=Y5(),$.sibling=null,G=u1.current,G=U?G&m7|gZ:G&m7,C0(u1,G,Z),s0&&o4(Z,Y.treeForkCount),$;return R1(Z),null;case 22:case 23:return K6(Z),Gq(Z),Y=Z.memoizedState!==null,$!==null?$.memoizedState!==null!==Y&&(Z.flags|=8192):Y&&(Z.flags|=8192),Y?(G&536870912)!==0&&(Z.flags&128)===0&&(R1(Z),Z.subtreeFlags&6&&(Z.flags|=8192)):R1(Z),G=Z.updateQueue,G!==null&&nJ(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(W9,Z),null;case 24:return G=null,$!==null&&(G=$.memoizedState.cache),Z.memoizedState.cache!==G&&(Z.flags|=2048),i4(c1,Z),R1(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 Q_($,Z){switch(lX(Z),Z.tag){case 1:return $=Z.flags,$&65536?(Z.flags=$&-65537|128,(Z.mode&f0)!==I0&&u$(Z),Z):null;case 3:return i4(c1,Z),X0(Z),$=Z.flags,($&65536)!==0&&($&128)===0?(Z.flags=$&-65537|128,Z):null;case 26:case 27:case 5:return u0(Z),null;case 31:if(Z.memoizedState!==null){if(K6(Z),Z.alternate===null)throw Error("Threw in newly mounted dehydrated component. This is likely a bug in React. Please file an issue.");e2()}return $=Z.flags,$&65536?(Z.flags=$&-65537|128,(Z.mode&f0)!==I0&&u$(Z),Z):null;case 13:if(K6(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.");e2()}return $=Z.flags,$&65536?(Z.flags=$&-65537|128,(Z.mode&f0)!==I0&&u$(Z),Z):null;case 19:return P0(u1,Z),null;case 4:return X0(Z),null;case 10:return i4(Z.type,Z),null;case 22:case 23:return K6(Z),Gq(Z),$!==null&&P0(W9,Z),$=Z.flags,$&65536?(Z.flags=$&-65537|128,(Z.mode&f0)!==I0&&u$(Z),Z):null;case 24:return i4(c1,Z),null;case 25:return null;default:return null}}function cH($,Z){switch(lX(Z),Z.tag){case 3:i4(c1,Z),X0(Z);break;case 26:case 27:case 5:u0(Z);break;case 4:X0(Z);break;case 31:Z.memoizedState!==null&&K6(Z);break;case 13:K6(Z);break;case 19:P0(u1,Z);break;case 10:i4(Z.type,Z);break;case 22:case 23:K6(Z),Gq(Z),$!==null&&P0(W9,Z);break;case 24:i4(c1,Z)}}function z4($){return($.mode&f0)!==I0}function lH($,Z){z4($)?(R4(),o$(Z,$),w4()):o$(Z,$)}function sq($,Z,G){z4($)?(R4(),U7(G,$,Z),w4()):U7(G,$,Z)}function o$($,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,($&k5)!==mG&&(i7=!0),Y=G0(Z,VV,G),($&k5)!==mG&&(i7=!1),Y!==void 0&&typeof Y!=="function")){var B=void 0;B=(G.tag&z6)!==0?"useLayoutEffect":(G.tag&k5)!==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"?`
|
|
136
|
+
https://react.dev/link/unsafe-component-lifecycles`,B,C,F!==null?`
|
|
137
|
+
`+F:"",R!==null?`
|
|
138
|
+
`+R:"",L!==null?`
|
|
139
|
+
`+L:""))}}B=Q.stateNode,F=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?",F):console.error("No `render` method found on the %s instance: you may have forgotten to define `render`.",F)),!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?",F),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.",F),B.contextType&&console.error("contextType was defined as an instance property on %s. Use a static property to define contextType instead.",F),G.childContextTypes&&!Cw.has(G)&&(Cw.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)",F)),G.contextTypes&&!Pw.has(G)&&(Pw.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)",F)),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.",F),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()?",F),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().",F),typeof B.componentWillRecieveProps==="function"&&console.error("%s has a method called componentWillRecieveProps(). Did you mean componentWillReceiveProps()?",F),typeof B.UNSAFE_componentWillRecieveProps==="function"&&console.error("%s has a method called UNSAFE_componentWillRecieveProps(). Did you mean UNSAFE_componentWillReceiveProps()?",F),R=B.props!==N,B.props!==void 0&&R&&console.error("When calling super() in `%s`, make sure to pass up the same props that your component's constructor was passed.",F),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.",F,F),typeof B.getSnapshotBeforeUpdate!=="function"||typeof B.componentDidUpdate==="function"||Rw.has(G)||(Rw.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.",F),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.",F),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.",F),(R=B.state)&&(typeof R!=="object"||$6(R))&&console.error("%s.state: must be set to an object or null",F),typeof B.getChildContext==="function"&&typeof G.childContextTypes!=="object"&&console.error("%s.getChildContext(): childContextTypes must be defined in order to use getChildContext().",F),B=Q.stateNode,B.props=N,B.state=Q.memoizedState,B.refs={},q3(Q),F=G.contextType,B.context=typeof F==="object"&&F!==null?O1(F):X8,B.state===N&&(F=i(G)||"Component",Tw.has(F)||(Tw.add(F),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.",F))),Q.mode&V6&&Q4.recordLegacyContextWarning(Q,B),Q4.recordUnsafeLifecycleWarnings(Q,B),B.state=Q.memoizedState,F=G.getDerivedStateFromProps,typeof F==="function"&&(g3(Q,G,F,N),B.state=Q.memoizedState),typeof G.getDerivedStateFromProps==="function"||typeof B.getSnapshotBeforeUpdate==="function"||typeof B.UNSAFE_componentWillMount!=="function"&&typeof B.componentWillMount!=="function"||(F=B.state,typeof B.componentWillMount==="function"&&B.componentWillMount(),typeof B.UNSAFE_componentWillMount==="function"&&B.UNSAFE_componentWillMount(),F!==B.state&&(console.error("%s.componentWillMount(): Assigning directly to this.state is deprecated (except inside a component's constructor). Use setState instead.",d(Q)||"Component"),DY.enqueueReplaceState(B,B.state,null)),cQ(Q,N,B,U),pQ(),B.state=Q.memoizedState),typeof B.componentDidMount==="function"&&(Q.flags|=4194308),(Q.mode&$4)!==I0&&(Q.flags|=134217728),B=!0}else if($===null){B=Q.stateNode;var b=Q.memoizedProps;R=N7(G,b),B.props=R;var y=B.context;L=G.contextType,F=X8,typeof L==="object"&&L!==null&&(F=O1(L)),C=G.getDerivedStateFromProps,L=typeof C==="function"||typeof B.getSnapshotBeforeUpdate==="function",b=Q.pendingProps!==b,L||typeof B.UNSAFE_componentWillReceiveProps!=="function"&&typeof B.componentWillReceiveProps!=="function"||(b||y!==F)&&jH(Q,B,N,F),M8=!1;var j=Q.memoizedState;B.state=j,cQ(Q,N,B,U),pQ(),y=Q.memoizedState,b||j!==y||M8?(typeof C==="function"&&(g3(Q,G,C,N),y=Q.memoizedState),(R=M8||AH(Q,G,R,N,j,y,F))?(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"&&(Q.flags|=4194308),(Q.mode&$4)!==I0&&(Q.flags|=134217728)):(typeof B.componentDidMount==="function"&&(Q.flags|=4194308),(Q.mode&$4)!==I0&&(Q.flags|=134217728),Q.memoizedProps=N,Q.memoizedState=y),B.props=N,B.state=y,B.context=F,B=R):(typeof B.componentDidMount==="function"&&(Q.flags|=4194308),(Q.mode&$4)!==I0&&(Q.flags|=134217728),B=!1)}else{B=Q.stateNode,X3($,Q),F=Q.memoizedProps,L=N7(G,F),B.props=L,C=Q.pendingProps,j=B.context,y=G.contextType,R=X8,typeof y==="object"&&y!==null&&(R=O1(y)),b=G.getDerivedStateFromProps,(y=typeof b==="function"||typeof B.getSnapshotBeforeUpdate==="function")||typeof B.UNSAFE_componentWillReceiveProps!=="function"&&typeof B.componentWillReceiveProps!=="function"||(F!==C||j!==R)&&jH(Q,B,N,R),M8=!1,j=Q.memoizedState,B.state=j,cQ(Q,N,B,U),pQ();var g=Q.memoizedState;F!==C||j!==g||M8||$!==null&&$.dependencies!==null&&IZ($.dependencies)?(typeof b==="function"&&(g3(Q,G,b,N),g=Q.memoizedState),(L=M8||AH(Q,G,L,N,j,g,R)||$!==null&&$.dependencies!==null&&IZ($.dependencies))?(y||typeof B.UNSAFE_componentWillUpdate!=="function"&&typeof B.componentWillUpdate!=="function"||(typeof B.componentWillUpdate==="function"&&B.componentWillUpdate(N,g,R),typeof B.UNSAFE_componentWillUpdate==="function"&&B.UNSAFE_componentWillUpdate(N,g,R)),typeof B.componentDidUpdate==="function"&&(Q.flags|=4),typeof B.getSnapshotBeforeUpdate==="function"&&(Q.flags|=1024)):(typeof B.componentDidUpdate!=="function"||F===$.memoizedProps&&j===$.memoizedState||(Q.flags|=4),typeof B.getSnapshotBeforeUpdate!=="function"||F===$.memoizedProps&&j===$.memoizedState||(Q.flags|=1024),Q.memoizedProps=N,Q.memoizedState=g),B.props=N,B.state=g,B.context=R,B=L):(typeof B.componentDidUpdate!=="function"||F===$.memoizedProps&&j===$.memoizedState||(Q.flags|=4),typeof B.getSnapshotBeforeUpdate!=="function"||F===$.memoizedProps&&j===$.memoizedState||(Q.flags|=1024),B=!1)}if(R=B,iZ($,Q),F=(Q.flags&128)!==0,R||F){if(R=Q.stateNode,t7(Q),F&&typeof G.getDerivedStateFromError!=="function")G=null,y6=-1;else if(G=cF(R),Q.mode&V6){F1(!0);try{cF(R)}finally{F1(!1)}}Q.flags|=1,$!==null&&F?(Q.child=L7(Q,$.child,null,U),Q.child=L7(Q,null,G,U)):M6($,Q,G,U),Q.memoizedState=R.state,$=Q.child}else $=Q$($,Q,U);return U=Q.stateNode,B&&U.props!==N&&(s9||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(Q)||"a component"),s9=!0),$}function dH($,Q,G,N){return Q7(),Q.flags|=256,M6($,Q,G,N),Q.child}function d3($,Q){Q&&Q.childContextTypes&&console.error(`childContextTypes cannot be defined on a function component.
|
|
140
|
+
%s.childContextTypes = ...`,Q.displayName||Q.name||"Component"),typeof Q.getDerivedStateFromProps==="function"&&($=i(Q)||"Unknown",Aw[$]||(console.error("%s: Function components do not support getDerivedStateFromProps.",$),Aw[$]=!0)),typeof Q.contextType==="object"&&Q.contextType!==null&&(Q=i(Q)||"Unknown",Ow[Q]||(console.error("%s: Function components do not support contextType.",Q),Ow[Q]=!0))}function p3($){return{baseLanes:$,cachePool:uB()}}function c3($,Q,G){return $=$!==null?$.childLanes&~G:0,Q&&($|=s6),$}function pH($,Q,G){var N,U=Q.pendingProps;K(Q)&&(Q.flags|=128);var B=!1,F=(Q.flags&128)!==0;if((N=F)||(N=$!==null&&$.memoizedState===null?!1:(x1.current&h2)!==0),N&&(B=!0,Q.flags&=-129),N=(Q.flags&32)!==0,Q.flags&=-33,$===null){if(l0){if(B?s$(Q):n$(Q),($=P1)?(G=KW($,b5),G=G!==null&&G.data!==A7?G:null,G!==null&&(N={dehydrated:G,treeContext:DB(),retryLane:536870912,hydrationErrors:null},Q.memoizedState=N,N=jB(G),N.return=Q,Q.child=N,w6=Q,P1=null)):G=null,G===null)throw CZ(Q,$),d$(Q);return _N(G)?Q.lanes=32:Q.lanes=536870912,null}var R=U.children;if(U=U.fallback,B){n$(Q);var L=Q.mode;return R=aZ({mode:"hidden",children:R},L),U=e8(U,L,G,null),R.return=Q,U.return=Q,R.sibling=U,Q.child=R,U=Q.child,U.memoizedState=p3(G),U.childLanes=c3($,N,G),Q.memoizedState=bY,nQ(null,U)}return s$(Q),l3(Q,R)}var C=$.memoizedState;if(C!==null){var b=C.dehydrated;if(b!==null){if(F)Q.flags&256?(s$(Q),Q.flags&=-257,Q=r3($,Q,G)):Q.memoizedState!==null?(n$(Q),Q.child=$.child,Q.flags|=128,Q=null):(n$(Q),R=U.fallback,L=Q.mode,U=aZ({mode:"visible",children:U.children},L),R=e8(R,L,G,null),R.flags|=2,U.return=Q,R.return=Q,U.sibling=R,Q.child=U,L7(Q,$.child,null,G),U=Q.child,U.memoizedState=p3(G),U.childLanes=c3($,N,G),Q.memoizedState=bY,Q=nQ(null,U));else if(s$(Q),kB(),(G&536870912)!==0&&JG(Q),_N(b)){if(N=b.nextSibling&&b.nextSibling.dataset,N){R=N.dgst;var y=N.msg;L=N.stck;var j=N.cstck}B=y,N=R,U=L,b=j,R=B,L=b,R=R?Error(R):Error("The server could not finish this Suspense boundary, likely due to an error during server rendering. Switched to client rendering."),R.stack=U||"",R.digest=N,N=L===void 0?null:L,U={value:R,source:null,stack:N},typeof N==="string"&&MY.set(R,U),gQ(U),Q=r3($,Q,G)}else if(s1||X9($,Q,G,!1),N=(G&$.childLanes)!==0,s1||N){if(N=W1,N!==null&&(U=s8(N,G),U!==0&&U!==C.retryLane))throw C.retryLane=U,_6($,U),v1(N,$,U),kY;CN(b)||ZG(),Q=r3($,Q,G)}else CN(b)?(Q.flags|=192,Q.child=$.child,Q=null):($=C.treeContext,P1=W5(b.nextSibling),w6=Q,l0=!0,N8=null,k4=!1,z5=null,b5=!1,$!==null&&vB(Q,$),Q=l3(Q,U.children),Q.flags|=4096);return Q}}if(B)return n$(Q),R=U.fallback,L=Q.mode,j=$.child,b=j.sibling,U=a4(j,{mode:"hidden",children:U.children}),U.subtreeFlags=j.subtreeFlags&65011712,b!==null?R=a4(b,R):(R=e8(R,L,G,null),R.flags|=2),R.return=Q,U.return=Q,U.sibling=R,Q.child=U,nQ(null,U),U=Q.child,R=$.child.memoizedState,R===null?R=p3(G):(L=R.cachePool,L!==null?(j=c1._currentValue,L=L.parent!==j?{parent:j,pool:j}:L):L=uB(),R={baseLanes:R.baseLanes|G,cachePool:L}),U.memoizedState=R,U.childLanes=c3($,N,G),Q.memoizedState=bY,nQ($.child,U);return C!==null&&(G&62914560)===G&&(G&$.lanes)!==0&&JG(Q),s$(Q),G=$.child,$=G.sibling,G=a4(G,{mode:"visible",children:U.children}),G.return=Q,G.sibling=null,$!==null&&(N=Q.deletions,N===null?(Q.deletions=[$],Q.flags|=16):N.push($)),Q.child=G,Q.memoizedState=null,G}function l3($,Q){return Q=aZ({mode:"visible",children:Q},$.mode),Q.return=$,$.child=Q}function aZ($,Q){return $=P(22,$,null,Q),$.lanes=0,$}function r3($,Q,G){return L7(Q,$.child,null,G),$=l3(Q,Q.pendingProps.children),$.flags|=2,Q.memoizedState=null,$}function cH($,Q,G){$.lanes|=Q;var N=$.alternate;N!==null&&(N.lanes|=Q),tX($.return,Q,G)}function s3($,Q,G,N,U,B){var F=$.memoizedState;F===null?$.memoizedState={isBackwards:Q,rendering:null,renderingStartTime:0,last:N,tail:G,tailMode:U,treeForkCount:B}:(F.isBackwards=Q,F.rendering=null,F.renderingStartTime=0,F.last=N,F.tail=G,F.tailMode=U,F.treeForkCount=B)}function lH($,Q,G){var N=Q.pendingProps,U=N.revealOrder,B=N.tail,F=N.children,R=x1.current;if((N=(R&h2)!==0)?(R=R&p9|h2,Q.flags|=128):R&=p9,C0(x1,R,Q),R=U==null?"null":U,U!=="forwards"&&U!=="unstable_legacy-backwards"&&U!=="together"&&U!=="independent"&&!jw[R])if(jw[R]=!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(R=B==null?"null":B,!oG[R])if(B==null){if(U==="forwards"||U==="backwards"||U==="unstable_legacy-backwards")oG[R]=!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"?(oG[R]=!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"&&(oG[R]=!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")&&F!==void 0&&F!==null&&F!==!1)if($6(F)){for(R=0;R<F.length;R++)if(!iB(F[R],R))break $}else if(R=a(F),typeof R==="function"){if(R=R.call(F))for(var L=R.next(),C=0;!L.done;L=R.next()){if(!iB(L.value,C))break $;C++}}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(M6($,Q,F,G),l0?(m$(),F=_2):F=0,!N&&$!==null&&($.flags&128)!==0)$:for($=Q.child;$!==null;){if($.tag===13)$.memoizedState!==null&&cH($,G,Q);else if($.tag===19)cH($,G,Q);else if($.child!==null){$.child.return=$,$=$.child;continue}if($===Q)break $;for(;$.sibling===null;){if($.return===null||$.return===Q)break $;$=$.return}$.sibling.return=$.return,$=$.sibling}switch(U){case"forwards":G=Q.child;for(U=null;G!==null;)$=G.alternate,$!==null&&yZ($)===null&&(U=G),G=G.sibling;G=U,G===null?(U=Q.child,Q.child=null):(U=G.sibling,G.sibling=null),s3(Q,!1,U,G,B,F);break;case"backwards":case"unstable_legacy-backwards":G=null,U=Q.child;for(Q.child=null;U!==null;){if($=U.alternate,$!==null&&yZ($)===null){Q.child=U;break}$=U.sibling,U.sibling=G,G=U,U=$}s3(Q,!0,G,null,B,F);break;case"together":s3(Q,!1,null,null,void 0,F);break;default:Q.memoizedState=null}return Q.child}function Q$($,Q,G){if($!==null&&(Q.dependencies=$.dependencies),y6=-1,w8|=Q.lanes,(G&Q.childLanes)===0)if($!==null){if(X9($,Q,G,!1),(G&Q.childLanes)===0)return null}else return null;if($!==null&&Q.child!==$.child)throw Error("Resuming work not yet implemented.");if(Q.child!==null){$=Q.child,G=a4($,$.pendingProps),Q.child=G;for(G.return=Q;$.sibling!==null;)$=$.sibling,G=G.sibling=a4($,$.pendingProps),G.return=Q;G.sibling=null}return Q.child}function n3($,Q){if(($.lanes&Q)!==0)return!0;return $=$.dependencies,$!==null&&IZ($)?!0:!1}function Q_($,Q,G){switch(Q.tag){case 3:l(Q,Q.stateNode.containerInfo),p$(Q,c1,$.memoizedState.cache),Q7();break;case 27:case 5:c0(Q);break;case 4:l(Q,Q.stateNode.containerInfo);break;case 10:p$(Q,Q.type,Q.memoizedProps.value);break;case 12:(G&Q.childLanes)!==0&&(Q.flags|=4),Q.flags|=2048;var N=Q.stateNode;N.effectDuration=-0,N.passiveEffectDuration=-0;break;case 31:if(Q.memoizedState!==null)return Q.flags|=128,U3(Q),null;break;case 13:if(N=Q.memoizedState,N!==null){if(N.dehydrated!==null)return s$(Q),Q.flags|=128,null;if((G&Q.child.childLanes)!==0)return pH($,Q,G);return s$(Q),$=Q$($,Q,G),$!==null?$.sibling:null}s$(Q);break;case 19:var U=($.flags&128)!==0;if(N=(G&Q.childLanes)!==0,N||(X9($,Q,G,!1),N=(G&Q.childLanes)!==0),U){if(N)return lH($,Q,G);Q.flags|=128}if(U=Q.memoizedState,U!==null&&(U.rendering=null,U.tail=null,U.lastEffect=null),C0(x1,x1.current,Q),N)break;else return null;case 22:return Q.lanes=0,gH($,Q,G,Q.pendingProps);case 24:p$(Q,c1,$.memoizedState.cache)}return Q$($,Q,G)}function o3($,Q,G){if(Q._debugNeedsRemount&&$!==null){G=lX(Q.type,Q.key,Q.pendingProps,Q._debugOwner||null,Q.mode,Q.lanes),G._debugStack=Q._debugStack,G._debugTask=Q._debugTask;var N=Q.return;if(N===null)throw Error("Cannot swap the root fiber.");if($.alternate=null,Q.alternate=null,G.index=Q.index,G.sibling=Q.sibling,G.return=Q.return,G.ref=Q.ref,G._debugInfo=Q._debugInfo,Q===N.child)N.child=G;else{var U=N.child;if(U===null)throw Error("Expected parent to have a child.");for(;U.sibling!==Q;)if(U=U.sibling,U===null)throw Error("Expected to find the previous sibling.");U.sibling=G}return Q=N.deletions,Q===null?(N.deletions=[$],N.flags|=16):Q.push($),G.flags|=2,G}if($!==null)if($.memoizedProps!==Q.pendingProps||Q.type!==$.type)s1=!0;else{if(!n3($,G)&&(Q.flags&128)===0)return s1=!1,Q_($,Q,G);s1=($.flags&131072)!==0?!0:!1}else{if(s1=!1,N=l0)m$(),N=(Q.flags&1048576)!==0;N&&(N=Q.index,m$(),SB(Q,_2,N))}switch(Q.lanes=0,Q.tag){case 16:$:if(N=Q.pendingProps,$=c$(Q.elementType),Q.type=$,typeof $==="function")cX($)?(N=N7($,N),Q.tag=1,Q.type=$=t8($),Q=mH(null,Q,$,N,G)):(Q.tag=0,d3(Q,$),Q.type=$=t8($),Q=m3(null,Q,$,N,G));else{if($!==void 0&&$!==null){if(U=$.$$typeof,U===K2){Q.tag=11,Q.type=$=pX($),Q=bH(null,Q,$,N,G);break $}else if(U===RG){Q.tag=14,Q=yH(null,Q,$,N,G);break $}}throw Q="",$!==null&&typeof $==="object"&&$.$$typeof===F5&&(Q=" 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."+Q)}return Q;case 0:return m3($,Q,Q.type,Q.pendingProps,G);case 1:return N=Q.type,U=N7(N,Q.pendingProps),mH($,Q,N,U,G);case 3:$:{if(l(Q,Q.stateNode.containerInfo),$===null)throw Error("Should have a current fiber. This is a bug in React.");N=Q.pendingProps;var B=Q.memoizedState;U=B.element,X3($,Q),cQ(Q,N,null,G);var F=Q.memoizedState;if(N=F.cache,p$(Q,c1,N),N!==B.cache&&eX(Q,[c1],G,!0),pQ(),N=F.element,B.isDehydrated)if(B={element:N,isDehydrated:!1,cache:F.cache},Q.updateQueue.baseState=B,Q.memoizedState=B,Q.flags&256){Q=dH($,Q,N,G);break $}else if(N!==U){U=U5(Error("This root received an early update, before anything was able hydrate. Switched the entire root to client rendering."),Q),gQ(U),Q=dH($,Q,N,G);break $}else{switch($=Q.stateNode.containerInfo,$.nodeType){case 9:$=$.body;break;default:$=$.nodeName==="HTML"?$.ownerDocument.body:$}P1=W5($.firstChild),w6=Q,l0=!0,N8=null,k4=!1,z5=null,b5=!0,G=Gw(Q,null,N,G);for(Q.child=G;G;)G.flags=G.flags&-3|4096,G=G.sibling}else{if(Q7(),N===U){Q=Q$($,Q,G);break $}M6($,Q,N,G)}Q=Q.child}return Q;case 26:return iZ($,Q),$===null?(G=wW(Q.type,null,Q.pendingProps,null))?Q.memoizedState=G:l0||(G=Q.type,$=Q.pendingProps,N=T1($8.current),N=NG(N).createElement(G),N[F6]=Q,N[v6]=$,W6(N,G,$),T0(N),Q.stateNode=N):Q.memoizedState=wW(Q.type,$.memoizedProps,Q.pendingProps,$.memoizedState),null;case 27:return c0(Q),$===null&&l0&&(N=T1($8.current),U=N0(),N=Q.stateNode=WW(Q.type,Q.pendingProps,N,U,!1),k4||(U=JW(N,Q.type,Q.pendingProps,U),U!==null&&($7(Q,0).serverProps=U)),w6=Q,b5=!0,U=P1,t$(Q.type)?(ZU=U,P1=W5(N.firstChild)):P1=U),M6($,Q,Q.pendingProps.children,G),iZ($,Q),$===null&&(Q.flags|=4194304),Q.child;case 5:return $===null&&l0&&(B=N0(),N=yX(Q.type,B.ancestorInfo),U=P1,(F=!U)||(F=p_(U,Q.type,Q.pendingProps,b5),F!==null?(Q.stateNode=F,k4||(B=JW(F,Q.type,Q.pendingProps,B),B!==null&&($7(Q,0).serverProps=B)),w6=Q,P1=W5(F.firstChild),b5=!1,B=!0):B=!1,F=!B),F&&(N&&CZ(Q,U),d$(Q))),c0(Q),U=Q.type,B=Q.pendingProps,F=$!==null?$.memoizedProps:null,N=B.children,LN(U,B)?N=null:F!==null&&LN(U,F)&&(Q.flags|=32),Q.memoizedState!==null&&(U=B3($,Q,sC,null,null,G),JJ._currentValue=U),iZ($,Q),M6($,Q,N,G),Q.child;case 6:return $===null&&l0&&(G=Q.pendingProps,$=N0(),N=$.ancestorInfo.current,G=N!=null?HZ(G,N.tag,$.ancestorInfo.implicitRootScope):!0,$=P1,(N=!$)||(N=c_($,Q.pendingProps,b5),N!==null?(Q.stateNode=N,w6=Q,P1=null,N=!0):N=!1,N=!N),N&&(G&&CZ(Q,$),d$(Q))),null;case 13:return pH($,Q,G);case 4:return l(Q,Q.stateNode.containerInfo),N=Q.pendingProps,$===null?Q.child=L7(Q,null,N,G):M6($,Q,N,G),Q.child;case 11:return bH($,Q,Q.type,Q.pendingProps,G);case 7:return M6($,Q,Q.pendingProps,G),Q.child;case 8:return M6($,Q,Q.pendingProps.children,G),Q.child;case 12:return Q.flags|=4,Q.flags|=2048,N=Q.stateNode,N.effectDuration=-0,N.passiveEffectDuration=-0,M6($,Q,Q.pendingProps.children,G),Q.child;case 10:return N=Q.type,U=Q.pendingProps,B=U.value,"value"in U||Sw||(Sw=!0,console.error("The `value` prop is required for the `<Context.Provider>`. Did you misspell it or forget to pass it?")),p$(Q,N,B),M6($,Q,U.children,G),Q.child;case 9:return U=Q.type._context,N=Q.pendingProps.children,typeof N!=="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."),J7(Q),U=O1(U),N=PY(N,U,void 0),Q.flags|=1,M6($,Q,N,G),Q.child;case 14:return yH($,Q,Q.type,Q.pendingProps,G);case 15:return fH($,Q,Q.type,Q.pendingProps,G);case 19:return lH($,Q,G);case 31:return $_($,Q,G);case 22:return gH($,Q,G,Q.pendingProps);case 24:return J7(Q),N=O1(c1),$===null?(U=Z3(),U===null&&(U=W1,B=$3(),U.pooledCache=B,Z7(B),B!==null&&(U.pooledCacheLanes|=G),U=B),Q.memoizedState={parent:N,cache:U},q3(Q),p$(Q,c1,U)):(($.lanes&G)!==0&&(X3($,Q),cQ(Q,null,null,G),pQ()),U=$.memoizedState,B=Q.memoizedState,U.parent!==N?(U={parent:N,cache:N},Q.memoizedState=U,Q.lanes===0&&(Q.memoizedState=Q.updateQueue.baseState=U),p$(Q,c1,N)):(N=B.cache,p$(Q,c1,N),N!==U.cache&&eX(Q,[c1],G,!0))),M6($,Q,Q.pendingProps.children,G),Q.child;case 29:throw Q.pendingProps}throw Error("Unknown unit of work tag ("+Q.tag+"). This error is likely caused by a bug in React. Please file an issue.")}function J$($){$.flags|=4}function i3($,Q,G,N,U){if(Q=($.mode&PV)!==I0)Q=!1;if(Q){if($.flags|=16777216,(U&335544128)===U)if($.stateNode.complete)$.flags|=8192;else if(IM())$.flags|=8192;else throw T7=pG,_Y}else $.flags&=-16777217}function rH($,Q){if(Q.type!=="stylesheet"||(Q.state.loading&x5)!==D7)$.flags&=-16777217;else if($.flags|=16777216,!PW(Q))if(IM())$.flags|=8192;else throw T7=pG,_Y}function tZ($,Q){Q!==null&&($.flags|=4),$.flags&16384&&(Q=$.tag!==22?$9():536870912,$.lanes|=Q,V7|=Q)}function oQ($,Q){if(!l0)switch($.tailMode){case"hidden":Q=$.tail;for(var G=null;Q!==null;)Q.alternate!==null&&(G=Q),Q=Q.sibling;G===null?$.tail=null:G.sibling=null;break;case"collapsed":G=$.tail;for(var N=null;G!==null;)G.alternate!==null&&(N=G),G=G.sibling;N===null?Q||$.tail===null?$.tail=null:$.tail.sibling=null:N.sibling=null}}function w1($){var Q=$.alternate!==null&&$.alternate.child===$.child,G=0,N=0;if(Q)if(($.mode&b0)!==I0){for(var{selfBaseDuration:U,child:B}=$;B!==null;)G|=B.lanes|B.childLanes,N|=B.subtreeFlags&65011712,N|=B.flags&65011712,U+=B.treeBaseDuration,B=B.sibling;$.treeBaseDuration=U}else for(U=$.child;U!==null;)G|=U.lanes|U.childLanes,N|=U.subtreeFlags&65011712,N|=U.flags&65011712,U.return=$,U=U.sibling;else if(($.mode&b0)!==I0){U=$.actualDuration,B=$.selfBaseDuration;for(var F=$.child;F!==null;)G|=F.lanes|F.childLanes,N|=F.subtreeFlags,N|=F.flags,U+=F.actualDuration,B+=F.treeBaseDuration,F=F.sibling;$.actualDuration=U,$.treeBaseDuration=B}else for(U=$.child;U!==null;)G|=U.lanes|U.childLanes,N|=U.subtreeFlags,N|=U.flags,U.return=$,U=U.sibling;return $.subtreeFlags|=N,$.childLanes=G,Q}function J_($,Q,G){var N=Q.pendingProps;switch(oX(Q),Q.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return w1(Q),null;case 1:return w1(Q),null;case 3:if(G=Q.stateNode,N=null,$!==null&&(N=$.memoizedState.cache),Q.memoizedState.cache!==N&&(Q.flags|=2048),e4(c1,Q),e(Q),G.pendingContext&&(G.context=G.pendingContext,G.pendingContext=null),$===null||$.child===null)q9(Q)?(aX(),J$(Q)):$===null||$.memoizedState.isDehydrated&&(Q.flags&256)===0||(Q.flags|=1024,iX());return w1(Q),null;case 26:var{type:U,memoizedState:B}=Q;return $===null?(J$(Q),B!==null?(w1(Q),rH(Q,B)):(w1(Q),i3(Q,U,null,N,G))):B?B!==$.memoizedState?(J$(Q),w1(Q),rH(Q,B)):(w1(Q),Q.flags&=-16777217):($=$.memoizedProps,$!==N&&J$(Q),w1(Q),i3(Q,U,$,N,G)),null;case 27:if(r0(Q),G=T1($8.current),U=Q.type,$!==null&&Q.stateNode!=null)$.memoizedProps!==N&&J$(Q);else{if(!N){if(Q.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 w1(Q),null}$=N0(),q9(Q)?bB(Q,$):($=WW(U,N,G,$,!0),Q.stateNode=$,J$(Q))}return w1(Q),null;case 5:if(r0(Q),U=Q.type,$!==null&&Q.stateNode!=null)$.memoizedProps!==N&&J$(Q);else{if(!N){if(Q.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 w1(Q),null}var F=N0();if(q9(Q))bB(Q,F);else{switch(B=T1($8.current),yX(U,F.ancestorInfo),F=F.context,B=NG(B),F){case QQ:B=B.createElementNS(V9,U);break;case Fq:B=B.createElementNS(IG,U);break;default:switch(U){case"svg":B=B.createElementNS(V9,U);break;case"math":B=B.createElementNS(IG,U);break;case"script":B=B.createElement("div"),B.innerHTML="<script></script>",B=B.removeChild(B.firstChild);break;case"select":B=typeof N.is==="string"?B.createElement("select",{is:N.is}):B.createElement("select"),N.multiple?B.multiple=!0:N.size&&(B.size=N.size);break;default:B=typeof N.is==="string"?B.createElement(U,{is:N.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]"||t5.call($R,U)||($R[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[F6]=Q,B[v6]=N;$:for(F=Q.child;F!==null;){if(F.tag===5||F.tag===6)B.appendChild(F.stateNode);else if(F.tag!==4&&F.tag!==27&&F.child!==null){F.child.return=F,F=F.child;continue}if(F===Q)break $;for(;F.sibling===null;){if(F.return===null||F.return===Q)break $;F=F.return}F.sibling.return=F.return,F=F.sibling}Q.stateNode=B;$:switch(W6(B,U,N),U){case"button":case"input":case"select":case"textarea":N=!!N.autoFocus;break $;case"img":N=!0;break $;default:N=!1}N&&J$(Q)}}return w1(Q),i3(Q,Q.type,$===null?null:$.memoizedProps,Q.pendingProps,G),null;case 6:if($&&Q.stateNode!=null)$.memoizedProps!==N&&J$(Q);else{if(typeof N!=="string"&&Q.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($=T1($8.current),G=N0(),q9(Q)){if($=Q.stateNode,G=Q.memoizedProps,U=!k4,N=null,B=w6,B!==null)switch(B.tag){case 3:U&&(U=HW($,G,N),U!==null&&($7(Q,0).serverProps=U));break;case 27:case 5:N=B.memoizedProps,U&&(U=HW($,G,N),U!==null&&($7(Q,0).serverProps=U))}$[F6]=Q,$=$.nodeValue===G||N!==null&&N.suppressHydrationWarning===!0||aM($.nodeValue,G)?!0:!1,$||d$(Q,!0)}else U=G.ancestorInfo.current,U!=null&&HZ(N,U.tag,G.ancestorInfo.implicitRootScope),$=NG($).createTextNode(N),$[F6]=Q,Q.stateNode=$}return w1(Q),null;case 31:if(G=Q.memoizedState,$===null||$.memoizedState!==null){if(N=q9(Q),G!==null){if($===null){if(!N)throw Error("A dehydrated suspense component was completed without a hydrated node. This is probably a bug in React.");if($=Q.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.");$[F6]=Q,w1(Q),(Q.mode&b0)!==I0&&G!==null&&($=Q.child,$!==null&&(Q.treeBaseDuration-=$.treeBaseDuration))}else aX(),Q7(),(Q.flags&128)===0&&(G=Q.memoizedState=null),Q.flags|=4,w1(Q),(Q.mode&b0)!==I0&&G!==null&&($=Q.child,$!==null&&(Q.treeBaseDuration-=$.treeBaseDuration));$=!1}else G=iX(),$!==null&&$.memoizedState!==null&&($.memoizedState.hydrationErrors=G),$=!0;if(!$){if(Q.flags&256)return H5(Q),Q;return H5(Q),null}if((Q.flags&128)!==0)throw Error("Client rendering an Activity suspended it again. This is a bug in React.")}return w1(Q),null;case 13:if(N=Q.memoizedState,$===null||$.memoizedState!==null&&$.memoizedState.dehydrated!==null){if(U=N,B=q9(Q),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=Q.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[F6]=Q,w1(Q),(Q.mode&b0)!==I0&&U!==null&&(U=Q.child,U!==null&&(Q.treeBaseDuration-=U.treeBaseDuration))}else aX(),Q7(),(Q.flags&128)===0&&(U=Q.memoizedState=null),Q.flags|=4,w1(Q),(Q.mode&b0)!==I0&&U!==null&&(U=Q.child,U!==null&&(Q.treeBaseDuration-=U.treeBaseDuration));U=!1}else U=iX(),$!==null&&$.memoizedState!==null&&($.memoizedState.hydrationErrors=U),U=!0;if(!U){if(Q.flags&256)return H5(Q),Q;return H5(Q),null}}if(H5(Q),(Q.flags&128)!==0)return Q.lanes=G,(Q.mode&b0)!==I0&&uQ(Q),Q;return G=N!==null,$=$!==null&&$.memoizedState!==null,G&&(N=Q.child,U=null,N.alternate!==null&&N.alternate.memoizedState!==null&&N.alternate.memoizedState.cachePool!==null&&(U=N.alternate.memoizedState.cachePool.pool),B=null,N.memoizedState!==null&&N.memoizedState.cachePool!==null&&(B=N.memoizedState.cachePool.pool),B!==U&&(N.flags|=2048)),G!==$&&G&&(Q.child.flags|=8192),tZ(Q,Q.updateQueue),w1(Q),(Q.mode&b0)!==I0&&G&&($=Q.child,$!==null&&(Q.treeBaseDuration-=$.treeBaseDuration)),null;case 4:return e(Q),$===null&&MN(Q.stateNode.containerInfo),w1(Q),null;case 10:return e4(Q.type,Q),w1(Q),null;case 19:if(H0(x1,Q),N=Q.memoizedState,N===null)return w1(Q),null;if(U=(Q.flags&128)!==0,B=N.rendering,B===null)if(U)oQ(N,!1);else{if(S1!==R$||$!==null&&($.flags&128)!==0)for($=Q.child;$!==null;){if(B=yZ($),B!==null){Q.flags|=128,oQ(N,!1),$=B.updateQueue,Q.updateQueue=$,tZ(Q,$),Q.subtreeFlags=0,$=G;for(G=Q.child;G!==null;)AB(G,$),G=G.sibling;return C0(x1,x1.current&p9|h2,Q),l0&&t4(Q,N.treeForkCount),Q.child}$=$.sibling}N.tail!==null&&N6()>Jq&&(Q.flags|=128,U=!0,oQ(N,!1),Q.lanes=4194304)}else{if(!U)if($=yZ(B),$!==null){if(Q.flags|=128,U=!0,$=$.updateQueue,Q.updateQueue=$,tZ(Q,$),oQ(N,!0),N.tail===null&&N.tailMode==="hidden"&&!B.alternate&&!l0)return w1(Q),null}else 2*N6()-N.renderingStartTime>Jq&&G!==536870912&&(Q.flags|=128,U=!0,oQ(N,!1),Q.lanes=4194304);N.isBackwards?(B.sibling=Q.child,Q.child=B):($=N.last,$!==null?$.sibling=B:Q.child=B,N.last=B)}if(N.tail!==null)return $=N.tail,N.rendering=$,N.tail=$.sibling,N.renderingStartTime=N6(),$.sibling=null,G=x1.current,G=U?G&p9|h2:G&p9,C0(x1,G,Q),l0&&t4(Q,N.treeForkCount),$;return w1(Q),null;case 22:case 23:return H5(Q),Y3(Q),N=Q.memoizedState!==null,$!==null?$.memoizedState!==null!==N&&(Q.flags|=8192):N&&(Q.flags|=8192),N?(G&536870912)!==0&&(Q.flags&128)===0&&(w1(Q),Q.subtreeFlags&6&&(Q.flags|=8192)):w1(Q),G=Q.updateQueue,G!==null&&tZ(Q,G.retryQueue),G=null,$!==null&&$.memoizedState!==null&&$.memoizedState.cachePool!==null&&(G=$.memoizedState.cachePool.pool),N=null,Q.memoizedState!==null&&Q.memoizedState.cachePool!==null&&(N=Q.memoizedState.cachePool.pool),N!==G&&(Q.flags|=2048),$!==null&&H0(R7,Q),null;case 24:return G=null,$!==null&&(G=$.memoizedState.cache),Q.memoizedState.cache!==G&&(Q.flags|=2048),e4(c1,Q),w1(Q),null;case 25:return null;case 30:return null}throw Error("Unknown unit of work tag ("+Q.tag+"). This error is likely caused by a bug in React. Please file an issue.")}function Z_($,Q){switch(oX(Q),Q.tag){case 1:return $=Q.flags,$&65536?(Q.flags=$&-65537|128,(Q.mode&b0)!==I0&&uQ(Q),Q):null;case 3:return e4(c1,Q),e(Q),$=Q.flags,($&65536)!==0&&($&128)===0?(Q.flags=$&-65537|128,Q):null;case 26:case 27:case 5:return r0(Q),null;case 31:if(Q.memoizedState!==null){if(H5(Q),Q.alternate===null)throw Error("Threw in newly mounted dehydrated component. This is likely a bug in React. Please file an issue.");Q7()}return $=Q.flags,$&65536?(Q.flags=$&-65537|128,(Q.mode&b0)!==I0&&uQ(Q),Q):null;case 13:if(H5(Q),$=Q.memoizedState,$!==null&&$.dehydrated!==null){if(Q.alternate===null)throw Error("Threw in newly mounted dehydrated component. This is likely a bug in React. Please file an issue.");Q7()}return $=Q.flags,$&65536?(Q.flags=$&-65537|128,(Q.mode&b0)!==I0&&uQ(Q),Q):null;case 19:return H0(x1,Q),null;case 4:return e(Q),null;case 10:return e4(Q.type,Q),null;case 22:case 23:return H5(Q),Y3(Q),$!==null&&H0(R7,Q),$=Q.flags,$&65536?(Q.flags=$&-65537|128,(Q.mode&b0)!==I0&&uQ(Q),Q):null;case 24:return e4(c1,Q),null;case 25:return null;default:return null}}function sH($,Q){switch(oX(Q),Q.tag){case 3:e4(c1,Q),e(Q);break;case 26:case 27:case 5:r0(Q);break;case 4:e(Q);break;case 31:Q.memoizedState!==null&&H5(Q);break;case 13:H5(Q);break;case 19:H0(x1,Q);break;case 10:e4(Q.type,Q);break;case 22:case 23:H5(Q),Y3(Q),$!==null&&H0(R7,Q);break;case 24:e4(c1,Q)}}function L4($){return($.mode&b0)!==I0}function nH($,Q){L4($)?(T4(),iQ(Q,$),z4()):iQ(Q,$)}function a3($,Q,G){L4($)?(T4(),B9(G,$,Q),z4()):B9(G,$,Q)}function iQ($,Q){try{var G=Q.updateQueue,N=G!==null?G.lastEffect:null;if(N!==null){var U=N.next;G=U;do{if((G.tag&$)===$&&(N=void 0,($&f6)!==lG&&(t9=!0),N=q0(Q,OV,G),($&f6)!==lG&&(t9=!1),N!==void 0&&typeof N!=="function")){var B=void 0;B=(G.tag&L5)!==0?"useLayoutEffect":(G.tag&f6)!==0?"useInsertionEffect":"useEffect";var F=void 0;F=N===null?" You returned null. If your effect does not require clean up, return undefined (or nothing).":typeof N.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,11 +150,11 @@ 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,G0(Z,function(R,P){console.error("%s must not return anything besides a function, which is used for clean-up.%s",R,P)},B,W)}G=G.next}while(G!==U)}}catch(R){X1(Z,Z.return,R)}}function U7($,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,R=W.destroy;R!==void 0&&(W.destroy=void 0,($&k5)!==mG&&(i7=!0),U=Z,G0(U,OV,U,G,R),($&k5)!==mG&&(i7=!1))}Y=Y.next}while(Y!==B)}}catch(P){X1(Z,Z.return,P)}}function rH($,Z){z4($)?(R4(),o$(Z,$),w4()):o$(Z,$)}function nq($,Z,G){z4($)?(R4(),U7(G,$,Z),w4()):U7(G,$,Z)}function sH($){var Z=$.updateQueue;if(Z!==null){var G=$.stateNode;$.type.defaultProps||"ref"in $.memoizedProps||l7||(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{G0($,oB,Z,G)}catch(Y){X1($,$.return,Y)}}}function J_($,Z,G){return $.getSnapshotBeforeUpdate(Z,G)}function G_($,Z){var{memoizedProps:G,memoizedState:Y}=Z;Z=$.stateNode,$.type.defaultProps||"ref"in $.memoizedProps||l7||(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=X9($.type,G),B=G0($,J_,Z,U,Y);G=Aw,B!==void 0||G.has($.type)||(G.add($.type),G0($,function(){console.error("%s.getSnapshotBeforeUpdate(): A snapshot value (or null) must be returned. You have returned undefined.",d($))})),Z.__reactInternalSnapshotBeforeUpdate=B}catch(W){X1($,$.return,W)}}function nH($,Z,G){G.props=X9($.type,$.memoizedProps),G.state=$.memoizedState,z4($)?(R4(),G0($,sW,$,Z,G),w4()):G0($,sW,$,Z,G)}function X_($){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(z4($))try{R4(),$.refCleanup=Z(G)}finally{w4()}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 i$($,Z){try{G0($,X_,$)}catch(G){X1($,Z,G)}}function T4($,Z){var{ref:G,refCleanup:Y}=$;if(G!==null)if(typeof Y==="function")try{if(z4($))try{R4(),G0($,Y)}finally{w4($)}else G0($,Y)}catch(U){X1($,Z,U)}finally{$.refCleanup=null,$=$.alternate,$!=null&&($.refCleanup=null)}else if(typeof G==="function")try{if(z4($))try{R4(),G0($,G,null)}finally{w4($)}else G0($,G,null)}catch(U){X1($,Z,U)}else G.current=null}function oH($,Z,G,Y){var U=$.memoizedProps,B=U.id,W=U.onCommit;U=U.onRender,Z=Z===null?"mount":"update",fG&&(Z="nested-update"),typeof U==="function"&&U(B,Z,$.actualDuration,$.treeBaseDuration,$.actualStartTime,G),typeof W==="function"&&W(B,Z,Y,G)}function q_($,Z,G,Y){var U=$.memoizedProps;$=U.id,U=U.onPostCommit,Z=Z===null?"mount":"update",fG&&(Z="nested-update"),typeof U==="function"&&U($,Z,Y,G)}function iH($){var{type:Z,memoizedProps:G,stateNode:Y}=$;try{G0($,S_,Y,Z,G,$)}catch(U){X1($,$.return,U)}}function oq($,Z,G){try{G0($,v_,$.stateNode,$.type,G,Z,$)}catch(Y){X1($,$.return,Y)}}function aH($){return $.tag===5||$.tag===3||$.tag===26||$.tag===27&&s8($.type)||$.tag===4}function iq($){$:for(;;){for(;$.sibling===null;){if($.return===null||aH($.return))return null;$=$.return}$.sibling.return=$.return;for($=$.sibling;$.tag!==5&&$.tag!==6&&$.tag!==18;){if($.tag===27&&s8($.type))continue $;if($.flags&2)continue $;if($.child===null||$.tag===4)continue $;else $.child.return=$,$=$.child}if(!($.flags&2))return $.stateNode}}function aq($,Z,G){var Y=$.tag;if(Y===5||Y===6)$=$.stateNode,Z?(GF(G),(G.nodeType===9?G.body:G.nodeName==="HTML"?G.ownerDocument.body:G).insertBefore($,Z)):(GF(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=s4));else if(Y!==4&&(Y===27&&s8($.type)&&(G=$.stateNode,Z=null),$=$.child,$!==null))for(aq($,Z,G),$=$.sibling;$!==null;)aq($,Z,G),$=$.sibling}function oJ($,Z,G){var Y=$.tag;if(Y===5||Y===6)$=$.stateNode,Z?G.insertBefore($,Z):G.appendChild($);else if(Y!==4&&(Y===27&&s8($.type)&&(G=$.stateNode),$=$.child,$!==null))for(oJ($,Z,G),$=$.sibling;$!==null;)oJ($,Z,G),$=$.sibling}function Y_($){for(var Z,G=$.return;G!==null;){if(aH(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=iq($),oJ($,G,Z);break;case 5:G=Z.stateNode,Z.flags&32&&(JF(G),Z.flags&=-33),Z=iq($),oJ($,Z,G);break;case 3:case 4:Z=Z.stateNode.containerInfo,G=iq($),aq($,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 tH($){var{stateNode:Z,memoizedProps:G}=$;try{G0($,n_,$.type,G,Z,$)}catch(Y){X1($,$.return,Y)}}function eH($,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 N_($,Z){if($=$.containerInfo,iN=W3,$=WB($),kX($)){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(e){G=null;break $}var W=0,R=-1,P=-1,C=0,k=0,f=$,j=null;Z:for(;;){for(var g;;){if(f!==G||U!==0&&f.nodeType!==3||(R=W+U),f!==B||Y!==0&&f.nodeType!==3||(P=W+Y),f.nodeType===3&&(W+=f.nodeValue.length),(g=f.firstChild)===null)break;j=f,f=g}for(;;){if(f===$)break Z;if(j===G&&++C===U&&(R=W),j===B&&++k===Y&&(P=W),(g=f.nextSibling)!==null)break;f=j,j=f.parentNode}f=g}G=R===-1||P===-1?null:{start:R,end:P}}else G=null}G=G||{start:0,end:0}}else G=null;aN={focusedElem:$,selectionRange:G},W3=!1;for(U5=Z;U5!==null;)if(Z=U5,$=Z.child,(Z.subtreeFlags&1028)!==0&&$!==null)$.return=Z,U5=$;else for(;U5!==null;){switch($=Z=U5,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&&G_($,G);break;case 3:if((U&1024)!==0){if($=$.stateNode.containerInfo,G=$.nodeType,G===9)RY($);else if(G===1)switch($.nodeName){case"HEAD":case"HTML":case"BODY":RY($);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,U5=$;break}U5=Z.return}}function $M($,Z,G){var Y=N6(),U=H4(),B=F4(),W=W4(),R=G.flags;switch(G.tag){case 0:case 11:case 15:P4($,G),R&4&&lH(G,z6|f6);break;case 1:if(P4($,G),R&4)if($=G.stateNode,Z===null)G.type.defaultProps||"ref"in G.memoizedProps||l7||($.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")),z4(G)?(R4(),G0(G,zN,G,$),w4()):G0(G,zN,G,$);else{var P=X9(G.type,Z.memoizedProps);Z=Z.memoizedState,G.type.defaultProps||"ref"in G.memoizedProps||l7||($.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")),z4(G)?(R4(),G0(G,cW,G,$,P,Z,$.__reactInternalSnapshotBeforeUpdate),w4()):G0(G,cW,G,$,P,Z,$.__reactInternalSnapshotBeforeUpdate)}R&64&&sH(G),R&512&&i$(G,G.return);break;case 3:if(Z=a4(),P4($,G),R&64&&(R=G.updateQueue,R!==null)){if(P=null,G.child!==null)switch(G.child.tag){case 27:case 5:P=G.child.stateNode;break;case 1:P=G.child.stateNode}try{G0(G,oB,R,P)}catch(k){X1(G,G.return,k)}}$.effectDuration+=CJ(Z);break;case 27:Z===null&&R&4&&tH(G);case 26:case 5:if(P4($,G),Z===null){if(R&4)iH(G);else if(R&64){$=G.type,Z=G.memoizedProps,P=G.stateNode;try{G0(G,D_,P,$,Z,G)}catch(k){X1(G,G.return,k)}}}R&512&&i$(G,G.return);break;case 12:if(R&4){R=a4(),P4($,G),$=G.stateNode,$.effectDuration+=h$(R);try{G0(G,oH,G,Z,J2,$.effectDuration)}catch(k){X1(G,G.return,k)}}else P4($,G);break;case 31:P4($,G),R&4&&JM($,G);break;case 13:P4($,G),R&4&&GM($,G),R&64&&($=G.memoizedState,$!==null&&($=$.dehydrated,$!==null&&(R=R_.bind(null,G),c_($,R))));break;case 22:if(R=G.memoizedState!==null||M8,!R){Z=Z!==null&&Z.memoizedState!==null||n1,P=M8;var C=n1;M8=R,(n1=Z)&&!C?(L4($,G,(G.subtreeFlags&8772)!==0),(G.mode&f0)!==I0&&0<=T0&&0<=L0&&0.05<L0-T0&&HJ(G,T0,L0)):P4($,G),M8=P,n1=C}break;case 30:break;default:P4($,G)}(G.mode&f0)!==I0&&0<=T0&&0<=L0&&((v1||0.05<A1)&&K4(G,T0,L0,A1,E1),G.alternate===null&&G.return!==null&&G.return.alternate!==null&&0.05<L0-T0&&(eH(G.return.alternate,G.return)||U4(G,T0,L0,"Mount"))),U6(Y),M4(U),E1=B,v1=W}function ZM($){var Z=$.alternate;Z!==null&&($.alternate=null,ZM(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 $8($,Z,G){for(G=G.child;G!==null;)QM($,Z,G),G=G.sibling}function QM($,Z,G){if(_5&&typeof _5.onCommitFiberUnmount==="function")try{_5.onCommitFiberUnmount(L7,G)}catch(C){E4||(E4=!0,console.error("React instrumentation encountered an error: %o",C))}var Y=N6(),U=H4(),B=F4(),W=W4();switch(G.tag){case 26:n1||T4(G,Z),$8($,Z,G),G.memoizedState?G.memoizedState.count--:G.stateNode&&($=G.stateNode,$.parentNode.removeChild($));break;case 27:n1||T4(G,Z);var R=o1,P=p5;s8(G.type)&&(o1=G.stateNode,p5=!1),$8($,Z,G),G0(G,XZ,G.stateNode),o1=R,p5=P;break;case 5:n1||T4(G,Z);case 6:if(R=o1,P=p5,o1=null,$8($,Z,G),o1=R,p5=P,o1!==null)if(p5)try{G0(G,f_,o1,G.stateNode)}catch(C){X1(G,Z,C)}else try{G0(G,k_,o1,G.stateNode)}catch(C){X1(G,Z,C)}break;case 18:o1!==null&&(p5?($=o1,XF($.nodeType===9?$.body:$.nodeName==="HTML"?$.ownerDocument.body:$,G.stateNode),R7($)):XF(o1,G.stateNode));break;case 4:R=o1,P=p5,o1=G.stateNode.containerInfo,p5=!0,$8($,Z,G),o1=R,p5=P;break;case 0:case 11:case 14:case 15:U7(k5,G,Z),n1||sq(G,Z,z6),$8($,Z,G);break;case 1:n1||(T4(G,Z),R=G.stateNode,typeof R.componentWillUnmount==="function"&&nH(G,Z,R)),$8($,Z,G);break;case 21:$8($,Z,G);break;case 22:n1=(R=n1)||G.memoizedState!==null,$8($,Z,G),n1=R;break;default:$8($,Z,G)}(G.mode&f0)!==I0&&0<=T0&&0<=L0&&(v1||0.05<A1)&&K4(G,T0,L0,A1,E1),U6(Y),M4(U),E1=B,v1=W}function JM($,Z){if(Z.memoizedState===null&&($=Z.alternate,$!==null&&($=$.memoizedState,$!==null))){$=$.dehydrated;try{G0(Z,r_,$)}catch(G){X1(Z,Z.return,G)}}}function GM($,Z){if(Z.memoizedState===null&&($=Z.alternate,$!==null&&($=$.memoizedState,$!==null&&($=$.dehydrated,$!==null))))try{G0(Z,s_,$)}catch(G){X1(Z,Z.return,G)}}function U_($){switch($.tag){case 31:case 13:case 19:var Z=$.stateNode;return Z===null&&(Z=$.stateNode=new jw),Z;case 22:return $=$.stateNode,Z=$._retryCache,Z===null&&(Z=$._retryCache=new jw),Z;default:throw Error("Unexpected Suspense handler tag ("+$.tag+"). This is a bug in React.")}}function iJ($,Z){var G=U_($);Z.forEach(function(Y){if(!G.has(Y)){if(G.add(Y),A4)if(r7!==null&&s7!==null)$Z(s7,r7);else throw Error("Expected finished root and lanes to be set. This is a bug in React.");var U=z_.bind(null,$,Y);Y.then(U,U)}})}function m5($,Z){var G=Z.deletions;if(G!==null)for(var Y=0;Y<G.length;Y++){var U=$,B=Z,W=G[Y],R=N6(),P=B;$:for(;P!==null;){switch(P.tag){case 27:if(s8(P.type)){o1=P.stateNode,p5=!1;break $}break;case 5:o1=P.stateNode,p5=!1;break $;case 3:case 4:o1=P.stateNode.containerInfo,p5=!0;break $}P=P.return}if(o1===null)throw Error("Expected to find a host parent. This error is likely caused by a bug in React. Please file an issue.");QM(U,B,W),o1=null,p5=!1,(W.mode&f0)!==I0&&0<=T0&&0<=L0&&0.05<L0-T0&&U4(W,T0,L0,"Unmount"),U6(R),U=W,B=U.alternate,B!==null&&(B.return=null),U.return=null}if(Z.subtreeFlags&13886)for(Z=Z.child;Z!==null;)XM(Z,$),Z=Z.sibling}function XM($,Z){var G=N6(),Y=H4(),U=F4(),B=W4(),W=$.alternate,R=$.flags;switch($.tag){case 0:case 11:case 14:case 15:m5(Z,$),d5($),R&4&&(U7(k5|f6,$,$.return),o$(k5|f6,$),sq($,$.return,z6|f6));break;case 1:if(m5(Z,$),d5($),R&512&&(n1||W===null||T4(W,W.return)),R&64&&M8&&(R=$.updateQueue,R!==null&&(W=R.callbacks,W!==null))){var P=R.shared.hiddenCallbacks;R.shared.hiddenCallbacks=P===null?W:P.concat(W)}break;case 26:if(P=Z4,m5(Z,$),d5($),R&512&&(n1||W===null||T4(W,W.return)),R&4){var C=W!==null?W.memoizedState:null;if(R=$.memoizedState,W===null)if(R===null)if($.stateNode===null){$:{R=$.type,W=$.memoizedProps,P=P.ownerDocument||P;Z:switch(R){case"title":if(C=P.getElementsByTagName("title")[0],!C||C[HZ]||C[F5]||C.namespaceURI===_7||C.hasAttribute("itemprop"))C=P.createElement(R),P.head.insertBefore(C,P.querySelector("head > title"));M5(C,R,W),C[F5]=$,z0(C),R=C;break $;case"link":var k=wF("link","href",P).get(R+(W.href||""));if(k){for(var f=0;f<k.length;f++)if(C=k[f],C.getAttribute("href")===(W.href==null||W.href===""?null:W.href)&&C.getAttribute("rel")===(W.rel==null?null:W.rel)&&C.getAttribute("title")===(W.title==null?null:W.title)&&C.getAttribute("crossorigin")===(W.crossOrigin==null?null:W.crossOrigin)){k.splice(f,1);break Z}}C=P.createElement(R),M5(C,R,W),P.head.appendChild(C);break;case"meta":if(k=wF("meta","content",P).get(R+(W.content||""))){for(f=0;f<k.length;f++)if(C=k[f],B1(W.content,"content"),C.getAttribute("content")===(W.content==null?null:""+W.content)&&C.getAttribute("name")===(W.name==null?null:W.name)&&C.getAttribute("property")===(W.property==null?null:W.property)&&C.getAttribute("http-equiv")===(W.httpEquiv==null?null:W.httpEquiv)&&C.getAttribute("charset")===(W.charSet==null?null:W.charSet)){k.splice(f,1);break Z}}C=P.createElement(R),M5(C,R,W),P.head.appendChild(C);break;default:throw Error('getNodesForType encountered a type it did not expect: "'+R+'". This is a bug in React.')}C[F5]=$,z0(C),R=C}$.stateNode=R}else RF(P,$.type,$.stateNode);else $.stateNode=WF(P,R,$.memoizedProps);else C!==R?(C===null?W.stateNode!==null&&(W=W.stateNode,W.parentNode.removeChild(W)):C.count--,R===null?RF(P,$.type,$.stateNode):WF(P,R,$.memoizedProps)):R===null&&$.stateNode!==null&&oq($,$.memoizedProps,W.memoizedProps)}break;case 27:m5(Z,$),d5($),R&512&&(n1||W===null||T4(W,W.return)),W!==null&&R&4&&oq($,$.memoizedProps,W.memoizedProps);break;case 5:if(m5(Z,$),d5($),R&512&&(n1||W===null||T4(W,W.return)),$.flags&32){P=$.stateNode;try{G0($,JF,P)}catch(J0){X1($,$.return,J0)}}R&4&&$.stateNode!=null&&(P=$.memoizedProps,oq($,P,W!==null?W.memoizedProps:P)),R&1024&&(DN=!0,$.type!=="form"&&console.error("Unexpected host component type. Expected a form. This is a bug in React."));break;case 6:if(m5(Z,$),d5($),R&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.");R=$.memoizedProps,W=W!==null?W.memoizedProps:R,P=$.stateNode;try{G0($,b_,P,W,R)}catch(J0){X1($,$.return,J0)}}break;case 3:if(P=a4(),H3=null,C=Z4,Z4=GG(Z.containerInfo),m5(Z,$),Z4=C,d5($),R&4&&W!==null&&W.memoizedState.isDehydrated)try{G0($,l_,Z.containerInfo)}catch(J0){X1($,$.return,J0)}DN&&(DN=!1,qM($)),Z.effectDuration+=CJ(P);break;case 4:R=Z4,Z4=GG($.stateNode.containerInfo),m5(Z,$),d5($),Z4=R;break;case 12:R=a4(),m5(Z,$),d5($),$.stateNode.effectDuration+=h$(R);break;case 31:m5(Z,$),d5($),R&4&&(R=$.updateQueue,R!==null&&($.updateQueue=null,iJ($,R)));break;case 13:m5(Z,$),d5($),$.child.flags&8192&&$.memoizedState!==null!==(W!==null&&W.memoizedState!==null)&&(aG=Y5()),R&4&&(R=$.updateQueue,R!==null&&($.updateQueue=null,iJ($,R)));break;case 22:P=$.memoizedState!==null;var j=W!==null&&W.memoizedState!==null,g=M8,e=n1;if(M8=g||P,n1=e||j,m5(Z,$),n1=e,M8=g,j&&!P&&!g&&!e&&($.mode&f0)!==I0&&0<=T0&&0<=L0&&0.05<L0-T0&&HJ($,T0,L0),d5($),R&8192)$:for(Z=$.stateNode,Z._visibility=P?Z._visibility&~LZ:Z._visibility|LZ,!P||W===null||j||M8||n1||(q9($),($.mode&f0)!==I0&&0<=T0&&0<=L0&&0.05<L0-T0&&U4($,T0,L0,"Disconnect")),W=null,Z=$;;){if(Z.tag===5||Z.tag===26){if(W===null){j=W=Z;try{C=j.stateNode,P?G0(j,g_,C):G0(j,x_,j.stateNode,j.memoizedProps)}catch(J0){X1(j,j.return,J0)}}}else if(Z.tag===6){if(W===null){j=Z;try{k=j.stateNode,P?G0(j,h_,k):G0(j,m_,k,j.memoizedProps)}catch(J0){X1(j,j.return,J0)}}}else if(Z.tag===18){if(W===null){j=Z;try{f=j.stateNode,P?G0(j,y_,f):G0(j,u_,j.stateNode)}catch(J0){X1(j,j.return,J0)}}}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}R&4&&(R=$.updateQueue,R!==null&&(W=R.retryQueue,W!==null&&(R.retryQueue=null,iJ($,W))));break;case 19:m5(Z,$),d5($),R&4&&(R=$.updateQueue,R!==null&&($.updateQueue=null,iJ($,R)));break;case 30:break;case 21:break;default:m5(Z,$),d5($)}($.mode&f0)!==I0&&0<=T0&&0<=L0&&((v1||0.05<A1)&&K4($,T0,L0,A1,E1),$.alternate===null&&$.return!==null&&$.return.alternate!==null&&0.05<L0-T0&&(eH($.return.alternate,$.return)||U4($,T0,L0,"Mount"))),U6(G),M4(Y),E1=U,v1=B}function d5($){var Z=$.flags;if(Z&2){try{G0($,Y_,$)}catch(G){X1($,$.return,G)}$.flags&=-3}Z&4096&&($.flags&=-4097)}function qM($){if($.subtreeFlags&1024)for($=$.child;$!==null;){var Z=$;qM(Z),Z.tag===5&&Z.flags&1024&&Z.stateNode.reset(),$=$.sibling}}function P4($,Z){if(Z.subtreeFlags&8772)for(Z=Z.child;Z!==null;)$M($,Z.alternate,Z),Z=Z.sibling}function YM($){var Z=N6(),G=H4(),Y=F4(),U=W4();switch($.tag){case 0:case 11:case 14:case 15:sq($,$.return,z6),q9($);break;case 1:T4($,$.return);var B=$.stateNode;typeof B.componentWillUnmount==="function"&&nH($,$.return,B),q9($);break;case 27:G0($,XZ,$.stateNode);case 26:case 5:T4($,$.return),q9($);break;case 22:$.memoizedState===null&&q9($);break;case 30:q9($);break;default:q9($)}($.mode&f0)!==I0&&0<=T0&&0<=L0&&(v1||0.05<A1)&&K4($,T0,L0,A1,E1),U6(Z),M4(G),E1=Y,v1=U}function q9($){for($=$.child;$!==null;)YM($),$=$.sibling}function NM($,Z,G,Y){var U=N6(),B=H4(),W=F4(),R=W4(),P=G.flags;switch(G.tag){case 0:case 11:case 15:L4($,G,Y),lH(G,z6);break;case 1:if(L4($,G,Y),Z=G.stateNode,typeof Z.componentDidMount==="function"&&G0(G,zN,G,Z),Z=G.updateQueue,Z!==null){$=G.stateNode;try{G0(G,lC,Z,$)}catch(C){X1(G,G.return,C)}}Y&&P&64&&sH(G),i$(G,G.return);break;case 27:tH(G);case 26:case 5:L4($,G,Y),Y&&Z===null&&P&4&&iH(G),i$(G,G.return);break;case 12:if(Y&&P&4){P=a4(),L4($,G,Y),Y=G.stateNode,Y.effectDuration+=h$(P);try{G0(G,oH,G,Z,J2,Y.effectDuration)}catch(C){X1(G,G.return,C)}}else L4($,G,Y);break;case 31:L4($,G,Y),Y&&P&4&&JM($,G);break;case 13:L4($,G,Y),Y&&P&4&&GM($,G);break;case 22:G.memoizedState===null&&L4($,G,Y),i$(G,G.return);break;case 30:break;default:L4($,G,Y)}(G.mode&f0)!==I0&&0<=T0&&0<=L0&&(v1||0.05<A1)&&K4(G,T0,L0,A1,E1),U6(U),M4(B),E1=W,v1=R}function L4($,Z,G){G=G&&(Z.subtreeFlags&8772)!==0;for(Z=Z.child;Z!==null;)NM($,Z.alternate,Z,G),Z=Z.sibling}function tq($,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&&Z9($),G!=null&&g$(G))}function eq($,Z){$=null,Z.alternate!==null&&($=Z.alternate.memoizedState.cache),Z=Z.memoizedState.cache,Z!==$&&(Z9(Z),$!=null&&g$($))}function o6($,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;UM($,Z,G,Y,B!==null?B.actualStartTime:U),Z=B}}function UM($,Z,G,Y,U){var B=N6(),W=H4(),R=F4(),P=W4(),C=e8,k=Z.flags;switch(Z.tag){case 0:case 11:case 15:(Z.mode&f0)!==I0&&0<Z.actualStartTime&&(Z.flags&1)!==0&&MJ(Z,Z.actualStartTime,U,Z5,G),o6($,Z,G,Y,U),k&2048&&rH(Z,f5|f6);break;case 1:(Z.mode&f0)!==I0&&0<Z.actualStartTime&&((Z.flags&128)!==0?yX(Z,Z.actualStartTime,U,[]):(Z.flags&1)!==0&&MJ(Z,Z.actualStartTime,U,Z5,G)),o6($,Z,G,Y,U);break;case 3:var f=a4(),j=Z5;Z5=Z.alternate!==null&&Z.alternate.memoizedState.isDehydrated&&(Z.flags&256)===0,o6($,Z,G,Y,U),Z5=j,k&2048&&(G=null,Z.alternate!==null&&(G=Z.alternate.memoizedState.cache),Y=Z.memoizedState.cache,Y!==G&&(Z9(Y),G!=null&&g$(G))),$.passiveEffectDuration+=CJ(f);break;case 12:if(k&2048){k=a4(),o6($,Z,G,Y,U),$=Z.stateNode,$.passiveEffectDuration+=h$(k);try{G0(Z,q_,Z,Z.alternate,J2,$.passiveEffectDuration)}catch(g){X1(Z,Z.return,g)}}else o6($,Z,G,Y,U);break;case 31:k=Z5,f=Z.alternate!==null?Z.alternate.memoizedState:null,j=Z.memoizedState,f!==null&&j===null?(j=Z.deletions,j!==null&&0<j.length&&j[0].tag===18?(Z5=!1,f=f.hydrationErrors,f!==null&&yX(Z,Z.actualStartTime,U,f)):Z5=!0):Z5=!1,o6($,Z,G,Y,U),Z5=k;break;case 13:k=Z5,f=Z.alternate!==null?Z.alternate.memoizedState:null,j=Z.memoizedState,f===null||f.dehydrated===null||j!==null&&j.dehydrated!==null?Z5=!1:(j=Z.deletions,j!==null&&0<j.length&&j[0].tag===18?(Z5=!1,f=f.hydrationErrors,f!==null&&yX(Z,Z.actualStartTime,U,f)):Z5=!0),o6($,Z,G,Y,U),Z5=k;break;case 23:break;case 22:j=Z.stateNode,f=Z.alternate,Z.memoizedState!==null?j._visibility&J8?o6($,Z,G,Y,U):a$($,Z,G,Y,U):j._visibility&J8?o6($,Z,G,Y,U):(j._visibility|=J8,K7($,Z,G,Y,(Z.subtreeFlags&10256)!==0||Z.actualDuration!==0&&(Z.alternate===null||Z.alternate.child!==Z.child),U),(Z.mode&f0)===I0||Z5||($=Z.actualStartTime,0<=$&&0.05<U-$&&HJ(Z,$,U),0<=T0&&0<=L0&&0.05<L0-T0&&HJ(Z,T0,L0))),k&2048&&tq(f,Z);break;case 24:o6($,Z,G,Y,U),k&2048&&eq(Z.alternate,Z);break;default:o6($,Z,G,Y,U)}if((Z.mode&f0)!==I0){if($=!Z5&&Z.alternate===null&&Z.return!==null&&Z.return.alternate!==null)G=Z.actualStartTime,0<=G&&0.05<U-G&&U4(Z,G,U,"Mount");0<=T0&&0<=L0&&((v1||0.05<A1)&&K4(Z,T0,L0,A1,E1),$&&0.05<L0-T0&&U4(Z,T0,L0,"Mount"))}U6(B),M4(W),E1=R,v1=P,e8=C}function K7($,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;KM($,Z,G,Y,U,W!==null?W.actualStartTime:B),Z=W}}function KM($,Z,G,Y,U,B){var W=N6(),R=H4(),P=F4(),C=W4(),k=e8;U&&(Z.mode&f0)!==I0&&0<Z.actualStartTime&&(Z.flags&1)!==0&&MJ(Z,Z.actualStartTime,B,Z5,G);var f=Z.flags;switch(Z.tag){case 0:case 11:case 15:K7($,Z,G,Y,U,B),rH(Z,f5);break;case 23:break;case 22:var j=Z.stateNode;Z.memoizedState!==null?j._visibility&J8?K7($,Z,G,Y,U,B):a$($,Z,G,Y,B):(j._visibility|=J8,K7($,Z,G,Y,U,B)),U&&f&2048&&tq(Z.alternate,Z);break;case 24:K7($,Z,G,Y,U,B),U&&f&2048&&eq(Z.alternate,Z);break;default:K7($,Z,G,Y,U,B)}(Z.mode&f0)!==I0&&0<=T0&&0<=L0&&(v1||0.05<A1)&&K4(Z,T0,L0,A1,E1),U6(W),M4(R),E1=P,v1=C,e8=k}function a$($,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=$,R=G,P=Y,C=Z!==null?Z.actualStartTime:U,k=e8;(B.mode&f0)!==I0&&0<B.actualStartTime&&(B.flags&1)!==0&&MJ(B,B.actualStartTime,C,Z5,R);var f=B.flags;switch(B.tag){case 22:a$(W,B,R,P,C),f&2048&&tq(B.alternate,B);break;case 24:a$(W,B,R,P,C),f&2048&&eq(B.alternate,B);break;default:a$(W,B,R,P,C)}e8=k,B=Z}}function B7($,Z,G){if($.subtreeFlags&mZ)for($=$.child;$!==null;)BM($,Z,G),$=$.sibling}function BM($,Z,G){switch($.tag){case 26:B7($,Z,G),$.flags&mZ&&$.memoizedState!==null&&a_(G,Z4,$.memoizedState,$.memoizedProps);break;case 5:B7($,Z,G);break;case 3:case 4:var Y=Z4;Z4=GG($.stateNode.containerInfo),B7($,Z,G),Z4=Y;break;case 22:$.memoizedState===null&&(Y=$.alternate,Y!==null&&Y.memoizedState!==null?(Y=mZ,mZ=16777216,B7($,Z,G),mZ=Y):B7($,Z,G));break;default:B7($,Z,G)}}function HM($){var Z=$.alternate;if(Z!==null&&($=Z.child,$!==null)){Z.child=null;do Z=$.sibling,$.sibling=null,$=Z;while($!==null)}}function t$($){var Z=$.deletions;if(($.flags&16)!==0){if(Z!==null)for(var G=0;G<Z.length;G++){var Y=Z[G],U=N6();U5=Y,WM(Y,$),(Y.mode&f0)!==I0&&0<=T0&&0<=L0&&0.05<L0-T0&&U4(Y,T0,L0,"Unmount"),U6(U)}HM($)}if($.subtreeFlags&10256)for($=$.child;$!==null;)MM($),$=$.sibling}function MM($){var Z=N6(),G=H4(),Y=F4(),U=W4();switch($.tag){case 0:case 11:case 15:t$($),$.flags&2048&&nq($,$.return,f5|f6);break;case 3:var B=a4();t$($),$.stateNode.passiveEffectDuration+=CJ(B);break;case 12:B=a4(),t$($),$.stateNode.passiveEffectDuration+=h$(B);break;case 22:B=$.stateNode,$.memoizedState!==null&&B._visibility&J8&&($.return===null||$.return.tag!==13)?(B._visibility&=~J8,aJ($),($.mode&f0)!==I0&&0<=T0&&0<=L0&&0.05<L0-T0&&U4($,T0,L0,"Disconnect")):t$($);break;default:t$($)}($.mode&f0)!==I0&&0<=T0&&0<=L0&&(v1||0.05<A1)&&K4($,T0,L0,A1,E1),U6(Z),M4(G),v1=U,E1=Y}function aJ($){var Z=$.deletions;if(($.flags&16)!==0){if(Z!==null)for(var G=0;G<Z.length;G++){var Y=Z[G],U=N6();U5=Y,WM(Y,$),(Y.mode&f0)!==I0&&0<=T0&&0<=L0&&0.05<L0-T0&&U4(Y,T0,L0,"Unmount"),U6(U)}HM($)}for($=$.child;$!==null;)FM($),$=$.sibling}function FM($){var Z=N6(),G=H4(),Y=F4(),U=W4();switch($.tag){case 0:case 11:case 15:nq($,$.return,f5),aJ($);break;case 22:var B=$.stateNode;B._visibility&J8&&(B._visibility&=~J8,aJ($));break;default:aJ($)}($.mode&f0)!==I0&&0<=T0&&0<=L0&&(v1||0.05<A1)&&K4($,T0,L0,A1,E1),U6(Z),M4(G),v1=U,E1=Y}function WM($,Z){for(;U5!==null;){var G=U5,Y=G,U=Z,B=N6(),W=H4(),R=F4(),P=W4();switch(Y.tag){case 0:case 11:case 15:nq(Y,U,f5);break;case 23:case 22:Y.memoizedState!==null&&Y.memoizedState.cachePool!==null&&(U=Y.memoizedState.cachePool.pool,U!=null&&Z9(U));break;case 24:g$(Y.memoizedState.cache)}if((Y.mode&f0)!==I0&&0<=T0&&0<=L0&&(v1||0.05<A1)&&K4(Y,T0,L0,A1,E1),U6(B),M4(W),v1=P,E1=R,Y=G.child,Y!==null)Y.return=G,U5=Y;else $:for(G=$;U5!==null;){if(Y=U5,B=Y.sibling,W=Y.return,ZM(Y),Y===G){U5=null;break $}if(B!==null){B.return=W,U5=B;break $}U5=W}}}function K_(){DV.forEach(function($){return $()})}function wM(){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 B6($){if((a0&Q5)!==K5&&g0!==0)return g0&-g0;var Z=x.T;return Z!==null?(Z._updatedFibers||(Z._updatedFibers=new Set),Z._updatedFibers.add($),YY()):y()}function RM(){if(l5===0)if((g0&536870912)===0||s0){var $=wG;wG<<=1,(wG&3932160)===0&&(wG=262144),l5=$}else l5=536870912;return $=R6.current,$!==null&&($.flags|=32),l5}function D1($,Z,G){if(i7&&console.error("useInsertionEffect must not schedule updates."),dN&&(Z3=!0),$===W1&&(U1===L9||U1===C9)||$.cancelPendingCommit!==null)M7($,0),l8($,g0,l5,!1);if(b8($,G),(a0&Q5)!==K5&&$===W1){if(O4)switch(Z.tag){case 0:case 11:case 15:$=h0&&d(h0)||"Unknown",cw.has($)||(cw.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:pw||(console.error("Cannot update during an existing state transition (such as within `render`). Render methods should be a pure function of props and state."),pw=!0)}}else A4&&O$($,Z,G),P_(Z),$===W1&&((a0&Q5)===K5&&(H2|=G),j1===U2&&l8($,g0,l5,!1)),C4($)}function zM($,Z,G){if((a0&(Q5|T6))!==K5)throw Error("Should not already be working.");if(g0!==0&&h0!==null){var Y=h0,U=Y5();switch(yW){case cZ:case L9:var B=EZ;P1&&((Y=Y._debugTask)?Y.run(console.timeStamp.bind(console,"Suspended",B,U,E6,void 0,"primary-light")):console.timeStamp("Suspended",B,U,E6,void 0,"primary-light"));break;case C9:B=EZ,P1&&((Y=Y._debugTask)?Y.run(console.timeStamp.bind(console,"Action",B,U,E6,void 0,"primary-light")):console.timeStamp("Action",B,U,E6,void 0,"primary-light"));break;default:P1&&(Y=U-EZ,3>Y||console.timeStamp("Blocked",EZ,U,E6,void 0,5>Y?"primary-light":10>Y?"primary":100>Y?"primary-dark":"error"))}}B=(G=!G&&(Z&127)===0&&(Z&$.expiredLanes)===0||d2($,Z))?H_($,Z):ZY($,Z,!0);var W=G;do{if(B===F8){n7&&!G&&l8($,Z,0,!1),Z=U1,EZ=l1(),yW=Z;break}else{if(Y=Y5(),U=$.current.alternate,W&&!B_(U)){q6(Z),U=N5,B=Y,!P1||B<=U||(h1?h1.run(console.timeStamp.bind(console,"Teared Render",U,B,l0,p0,"error")):console.timeStamp("Teared Render",U,B,l0,p0,"error")),Y9(Z,Y),B=ZY($,Z,!1),W=!1;continue}if(B===P9){if(W=Z,$.errorRecoveryDisabledLanes&W)var R=0;else R=$.pendingLanes&-536870913,R=R!==0?R:R&536870912?536870912:0;if(R!==0){q6(Z),gX(N5,Y,Z,h1),Y9(Z,Y),Z=R;$:{Y=$,B=W,W=rZ;var P=Y.current.memoizedState.isDehydrated;if(P&&(M7(Y,R).flags|=256),R=ZY(Y,R,!1),R!==P9){if(kN&&!P){Y.errorRecoveryDisabledLanes|=B,H2|=B,B=U2;break $}Y=y5,y5=W,Y!==null&&(y5===null?y5=Y:y5.push.apply(y5,Y))}B=R}if(W=!1,B!==P9)continue;else Y=Y5()}}if(B===pZ){q6(Z),gX(N5,Y,Z,h1),Y9(Z,Y),M7($,0),l8($,Z,0,!0);break}$:{switch(G=$,B){case F8:case pZ:throw Error("Root did not complete. This is a bug in React.");case U2:if((Z&4194048)!==Z)break;case sG:q6(Z),zB(N5,Y,Z,h1),Y9(Z,Y),U=Z,(U&127)!==0?vG=Y:(U&4194048)!==0&&(bG=Y),l8(G,Z,l5,!K2);break $;case P9:y5=null;break;case rG:case Sw:break;default:throw Error("Unknown root exit status.")}if(x.actQueue!==null)QY(G,U,Z,y5,sZ,iG,l5,H2,_9,B,null,null,N5,Y);else{if((Z&62914560)===Z&&(W=aG+bw-Y5(),10<W)){if(l8(G,Z,l5,!K2),m2(G,0,!0)!==0)break $;Q4=Z,G.timeoutHandle=tw(TM.bind(null,G,U,y5,sZ,iG,Z,l5,H2,_9,K2,B,"Throttled",N5,Y),W);break $}TM(G,U,y5,sZ,iG,Z,l5,H2,_9,K2,B,null,N5,Y)}}}break}while(1);C4($)}function TM($,Z,G,Y,U,B,W,R,P,C,k,f,j,g){$.timeoutHandle=A9;var e=Z.subtreeFlags,J0=null;if(e&8192||(e&16785408)===16785408){if(J0={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:s4},BM(Z,B,J0),e=(B&62914560)===B?aG-Y5():(B&4194048)===B?vw-Y5():0,e=t_(J0,e),e!==null){Q4=B,$.cancelPendingCommit=e(QY.bind(null,$,Z,B,G,Y,U,W,R,P,k,J0,J0.waitingForViewTransition?"Waiting for the previous Animation":0<J0.count?0<J0.imgCount?"Suspended on CSS and Images":"Suspended on CSS":J0.imgCount===1?"Suspended on an Image":0<J0.imgCount?"Suspended on Images":null,j,g)),l8($,B,W,!C);return}}QY($,Z,B,G,Y,U,W,R,P,k,J0,f,j,g)}function B_($){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(!v5(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 l8($,Z,G,Y){Z&=~fN,Z&=~H2,$.suspendedLanes|=Z,$.pingedLanes&=~Z,Y&&($.warmLanes|=Z),Y=$.expirationTimes;for(var U=Z;0<U;){var B=31-j5(U),W=1<<B;Y[B]=-1,U&=~W}G!==0&&p2($,G,Z)}function H7(){return(a0&(Q5|T6))===K5?(ZZ(0,!1),!1):!0}function $Y(){if(h0!==null){if(U1===c5)var $=h0.return;else $=h0,TJ(),Bq($),u7=null,yZ=0,$=h0;for(;$!==null;)cH($.alternate,$),$=$.return;h0=null}}function Y9($,Z){($&127)!==0&&(G2=Z),($&4194048)!==0&&(b4=Z),($&62914560)!==0&&(kW=Z),($&2080374784)!==0&&(fW=Z)}function M7($,Z){P1&&(console.timeStamp("Blocking Track",0.003,0.003,"Blocking",p0,"primary-light"),console.timeStamp("Transition Track",0.003,0.003,"Transition",p0,"primary-light"),console.timeStamp("Suspense Track",0.003,0.003,"Suspense",p0,"primary-light"),console.timeStamp("Idle Track",0.003,0.003,"Idle",p0,"primary-light"));var G=N5;if(N5=l1(),g0!==0&&0<G){if(q6(g0),j1===rG||j1===U2)zB(G,N5,Z,h1);else{var Y=N5,U=h1;if(P1&&!(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,l0,p0,B)):console.timeStamp(W,G,Y,l0,p0,B)}}Y9(g0,N5)}if(G=h1,h1=null,(Z&127)!==0){h1=IZ,U=0<=v4&&v4<G2?G2:v4,Y=0<=H9&&H9<G2?G2:H9,B=0<=Y?Y:0<=U?U:N5,0<=vG?(q6(2),TB(vG,B,Z,G)):(kG&127)!==0&&(q6(2),f$(G2,B,U8)),G=U;var R=Y,P=VZ,C=0<y7,k=X2===_Z,f=X2===DG;if(U=N5,Y=IZ,B=MN,W=FN,P1){if(l0="Blocking",0<G?G>U&&(G=U):G=U,0<R?R>G&&(R=G):R=G,P!==null&&G>R){var j=C?"secondary-light":"warning";Y?Y.run(console.timeStamp.bind(console,C?"Consecutive":"Event: "+P,R,G,l0,p0,j)):console.timeStamp(C?"Consecutive":"Event: "+P,R,G,l0,p0,j)}U>G&&(R=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:l0,trackGroup:p0,color:R}}},Y?Y.run(performance.measure.bind(performance,k,G)):performance.measure(k,G))}v4=-1.1,X2=0,FN=MN=null,vG=-1.1,y7=H9,H9=-1.1,G2=l1()}if((Z&4194048)!==0&&(h1=OZ,U=0<=N8&&N8<b4?b4:N8,G=0<=b6&&b6<b4?b4:b6,Y=0<=q2&&q2<b4?b4:q2,B=0<=Y?Y:0<=G?G:N5,0<=bG?(q6(256),TB(bG,B,Z,h1)):(kG&4194048)!==0&&(q6(256),f$(b4,B,U8)),f=Y,R=M9,P=0<Y2,C=WN===DG,B=N5,Y=OZ,W=vW,k=bW,P1&&(l0="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&&R!==null&&(j=P?"secondary-light":"warning",Y?Y.run(console.timeStamp.bind(console,P?"Consecutive":"Event: "+R,f,U,l0,p0,j)):console.timeStamp(P?"Consecutive":"Event: "+R,f,U,l0,p0,j)),G>U&&(Y?Y.run(console.timeStamp.bind(console,"Action",U,G,l0,p0,"primary-dark")):console.timeStamp("Action",U,G,l0,p0,"primary-dark")),B>G&&(U=C?"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:l0,trackGroup:p0,color:"primary-light"}}},Y?Y.run(performance.measure.bind(performance,U,G)):performance.measure(U,G))),b6=N8=-1.1,WN=0,bG=-1.1,Y2=q2,q2=-1.1,b4=l1()),(Z&62914560)!==0&&(kG&62914560)!==0&&(q6(4194304),f$(kW,N5,U8)),(Z&2080374784)!==0&&(kG&2080374784)!==0&&(q6(268435456),f$(fW,N5,U8)),G=$.timeoutHandle,G!==A9&&($.timeoutHandle=A9,cV(G)),G=$.cancelPendingCommit,G!==null&&($.cancelPendingCommit=null,G()),Q4=0,$Y(),W1=$,h0=G=n4($.current,null),g0=Z,U1=c5,P6=null,K2=!1,n7=d2($,Z),kN=!1,j1=F8,_9=l5=fN=H2=B2=0,y5=rZ=null,iG=!1,(Z&8)!==0&&(Z|=Z&32),Y=$.entangledLanes,Y!==0)for($=$.entanglements,Y&=Z;0<Y;)U=31-j5(Y),B=1<<U,Z|=$[U],Y&=~B;return f4=Z,FJ(),$=OW(),1000<$-VW&&(x.recentlyCreatedOwnerStacks=0,VW=$),e6.discardPendingWarnings(),G}function PM($,Z){V0=null,x.H=xZ,x.getCurrentStack=null,O4=!1,F6=null,Z===h7||Z===hG?(Z=mB(),U1=cZ):Z===TN?(Z=mB(),U1=Dw):U1=Z===jN?bN:Z!==null&&typeof Z==="object"&&typeof Z.then==="function"?lZ:nG,P6=Z;var G=h0;G===null?(j1=pZ,cJ($,Y6(Z,$.current))):G.mode&f0&&tX(G)}function LM(){var $=R6.current;return $===null?!0:(g0&4194048)===g0?k6===null?!0:!1:(g0&62914560)===g0||(g0&536870912)!==0?$===k6:!1}function CM(){var $=x.H;return x.H=xZ,$===null?xZ:$}function _M(){var $=x.A;return x.A=SV,$}function tJ($){h1===null&&(h1=$._debugTask==null?null:$._debugTask)}function eJ(){j1=U2,K2||(g0&4194048)!==g0&&R6.current!==null||(n7=!0),(B2&134217727)===0&&(H2&134217727)===0||W1===null||l8(W1,g0,l5,!1)}function ZY($,Z,G){var Y=a0;a0|=Q5;var U=CM(),B=_M();if(W1!==$||g0!==Z){if(A4){var W=$.memoizedUpdaters;0<W.size&&($Z($,g0),W.clear()),k8($,Z)}sZ=null,M7($,Z)}Z=!1,W=j1;$:do try{if(U1!==c5&&h0!==null){var R=h0,P=P6;switch(U1){case bN:$Y(),W=sG;break $;case cZ:case L9:case C9:case lZ:R6.current===null&&(Z=!0);var C=U1;if(U1=c5,P6=null,F7($,R,P,C),G&&n7){W=F8;break $}break;default:C=U1,U1=c5,P6=null,F7($,R,P,C)}}IM(),W=j1;break}catch(k){PM($,k)}while(1);return Z&&$.shellSuspendCounter++,TJ(),a0=Y,x.H=U,x.A=B,h0===null&&(W1=null,g0=0,FJ()),W}function IM(){for(;h0!==null;)VM(h0)}function H_($,Z){var G=a0;a0|=Q5;var Y=CM(),U=_M();if(W1!==$||g0!==Z){if(A4){var B=$.memoizedUpdaters;0<B.size&&($Z($,g0),B.clear()),k8($,Z)}sZ=null,tG=Y5()+kw,M7($,Z)}else n7=d2($,Z);$:do try{if(U1!==c5&&h0!==null)Z:switch(Z=h0,B=P6,U1){case nG:U1=c5,P6=null,F7($,Z,B,nG);break;case L9:case C9:if(uB(B)){U1=c5,P6=null,OM(Z);break}Z=function(){U1!==L9&&U1!==C9||W1!==$||(U1=oG),C4($)},B.then(Z,Z);break $;case cZ:U1=oG;break $;case Dw:U1=vN;break $;case oG:uB(B)?(U1=c5,P6=null,OM(Z)):(U1=c5,P6=null,F7($,Z,B,oG));break;case vN:var W=null;switch(h0.tag){case 26:W=h0.memoizedState;case 5:case 27:var R=h0;if(W?zF(W):R.stateNode.complete){U1=c5,P6=null;var P=R.sibling;if(P!==null)h0=P;else{var C=R.return;C!==null?(h0=C,$G(C)):h0=null}break Z}break;default:console.error("Unexpected type of fiber triggered a suspensey commit. This is a bug in React.")}U1=c5,P6=null,F7($,Z,B,vN);break;case lZ:U1=c5,P6=null,F7($,Z,B,lZ);break;case bN:$Y(),j1=sG;break $;default:throw Error("Unexpected SuspendedReason. This is a bug in React.")}x.actQueue!==null?IM():M_();break}catch(k){PM($,k)}while(1);if(TJ(),x.H=Y,x.A=U,a0=G,h0!==null)return F8;return W1=null,g0=0,FJ(),j1}function M_(){for(;h0!==null&&!BI();)VM(h0)}function VM($){var Z=$.alternate;($.mode&f0)!==I0?(aX($),Z=G0($,lq,Z,$,f4),tX($)):Z=G0($,lq,Z,$,f4),$.memoizedProps=$.pendingProps,Z===null?$G($):h0=Z}function OM($){var Z=G0($,F_,$);$.memoizedProps=$.pendingProps,Z===null?$G($):h0=Z}function F_($){var Z=$.alternate,G=($.mode&f0)!==I0;switch(G&&aX($),$.tag){case 15:case 0:Z=gH(Z,$,$.pendingProps,$.type,void 0,g0);break;case 11:Z=gH(Z,$,$.pendingProps,$.type.render,$.ref,g0);break;case 5:Bq($);default:cH(Z,$),$=h0=VB($,f4),Z=lq(Z,$,f4)}return G&&tX($),Z}function F7($,Z,G,Y){TJ(),Bq(Z),u7=null,yZ=0;var U=Z.return;try{if(tC($,U,Z,G,g0)){j1=pZ,cJ($,Y6(G,$.current)),h0=null;return}}catch(B){if(U!==null)throw h0=U,B;j1=pZ,cJ($,Y6(G,$.current)),h0=null;return}if(Z.flags&32768){if(s0||Y===nG)$=!0;else if(n7||(g0&536870912)!==0)$=!1;else if(K2=$=!0,Y===L9||Y===C9||Y===cZ||Y===lZ)Y=R6.current,Y!==null&&Y.tag===13&&(Y.flags|=16384);EM(Z,$)}else $G(Z)}function $G($){var Z=$;do{if((Z.flags&32768)!==0){EM(Z,K2);return}var G=Z.alternate;if($=Z.return,aX(Z),G=G0(Z,Z_,G,Z,f4),(Z.mode&f0)!==I0&&kB(Z),G!==null){h0=G;return}if(Z=Z.sibling,Z!==null){h0=Z;return}h0=Z=$}while(Z!==null);j1===F8&&(j1=Sw)}function EM($,Z){do{var G=Q_($.alternate,$);if(G!==null){G.flags&=32767,h0=G;return}if(($.mode&f0)!==I0){kB($),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)){h0=$;return}h0=$=G}while($!==null);j1=sG,h0=null}function QY($,Z,G,Y,U,B,W,R,P,C,k,f,j,g){$.cancelPendingCommit=null;do e$();while(i1!==F2);if(e6.flushLegacyContextWarning(),e6.flushPendingUnsafeLifecycleWarnings(),(a0&(Q5|T6))!==K5)throw Error("Should not already be working.");if(q6(G),C===P9?gX(j,g,G,h1):Y!==null?uC(j,g,G,Y,Z!==null&&Z.alternate!==null&&Z.alternate.memoizedState.isDehydrated&&(Z.flags&256)!==0,h1):hC(j,g,G,h1),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|=NN,JJ($,G,B,W,R,P),$===W1&&(h0=W1=null,g0=0),o7=Z,W2=$,Q4=G,hN=B,xN=U,xw=Y,uN=g,mw=f,J4=eG,dw=null,Z.actualDuration!==0||(Z.subtreeFlags&10256)!==0||(Z.flags&10256)!==0?($.callbackNode=null,$.callbackPriority=0,T_(P7,function(){return eZ=window.event,J4===eG&&(J4=gN),vM(),null})):($.callbackNode=null,$.callbackPriority=0),Y8=null,J2=l1(),f!==null&&xC(g,J2,f,h1),Y=(Z.flags&13878)!==0,(Z.subtreeFlags&13878)!==0||Y){Y=x.T,x.T=null,U=q1.p,q1.p=W6,W=a0,a0|=T6;try{N_($,Z,G)}finally{a0=W,q1.p=U,x.T=Y}}i1=yw,AM(),jM(),SM()}}function AM(){if(i1===yw){i1=F2;var $=W2,Z=o7,G=Q4,Y=(Z.flags&13878)!==0;if((Z.subtreeFlags&13878)!==0||Y){Y=x.T,x.T=null;var U=q1.p;q1.p=W6;var B=a0;a0|=T6;try{r7=G,s7=$,_J(),XM(Z,$),s7=r7=null,G=aN;var W=WB($.containerInfo),R=G.focusedElem,P=G.selectionRange;if(W!==R&&R&&R.ownerDocument&&FB(R.ownerDocument.documentElement,R)){if(P!==null&&kX(R)){var{start:C,end:k}=P;if(k===void 0&&(k=C),"selectionStart"in R)R.selectionStart=C,R.selectionEnd=Math.min(k,R.value.length);else{var f=R.ownerDocument||document,j=f&&f.defaultView||window;if(j.getSelection){var g=j.getSelection(),e=R.textContent.length,J0=Math.min(P.start,e),z1=P.end===void 0?J0:Math.min(P.end,e);!g.extend&&J0>z1&&(W=z1,z1=J0,J0=W);var o0=MB(R,J0),A=MB(R,z1);if(o0&&A&&(g.rangeCount!==1||g.anchorNode!==o0.node||g.anchorOffset!==o0.offset||g.focusNode!==A.node||g.focusOffset!==A.offset)){var S=f.createRange();S.setStart(o0.node,o0.offset),g.removeAllRanges(),J0>z1?(g.addRange(S),g.extend(A.node,A.offset)):(S.setEnd(A.node,A.offset),g.addRange(S))}}}}f=[];for(g=R;g=g.parentNode;)g.nodeType===1&&f.push({element:g,left:g.scrollLeft,top:g.scrollTop});typeof R.focus==="function"&&R.focus();for(R=0;R<f.length;R++){var b=f[R];b.element.scrollLeft=b.left,b.element.scrollTop=b.top}}W3=!!iN,aN=iN=null}finally{a0=B,q1.p=U,x.T=Y}}$.current=Z,i1=gw}}function jM(){if(i1===gw){i1=F2;var $=dw;if($!==null){J2=l1();var Z=q8,G=J2;!P1||G<=Z||(U8?U8.run(console.timeStamp.bind(console,$,Z,G,l0,p0,"secondary-light")):console.timeStamp($,Z,G,l0,p0,"secondary-light"))}$=W2,Z=o7,G=Q4;var Y=(Z.flags&8772)!==0;if((Z.subtreeFlags&8772)!==0||Y){Y=x.T,x.T=null;var U=q1.p;q1.p=W6;var B=a0;a0|=T6;try{r7=G,s7=$,_J(),$M($,Z.alternate,Z),s7=r7=null}finally{a0=B,q1.p=U,x.T=Y}}$=uN,Z=mw,q8=l1(),$=Z===null?$:J2,Z=q8,G=J4===yN,Y=h1,Y8!==null?PB($,Z,Y8,!1,Y):!P1||Z<=$||(Y?Y.run(console.timeStamp.bind(console,G?"Commit Interrupted View Transition":"Commit",$,Z,l0,p0,G?"error":"secondary-dark")):console.timeStamp(G?"Commit Interrupted View Transition":"Commit",$,Z,l0,p0,G?"error":"secondary-dark")),i1=hw}}function SM(){if(i1===uw||i1===hw){if(i1===uw){var $=q8;q8=l1();var Z=q8,G=J4===yN;!P1||Z<=$||(U8?U8.run(console.timeStamp.bind(console,G?"Interrupted View Transition":"Starting Animation",$,Z,l0,p0,G?"error":"secondary-light")):console.timeStamp(G?"Interrupted View Transition":"Starting Animation",$,Z,l0,p0,G?" error":"secondary-light")),J4!==yN&&(J4=fw)}i1=F2,HI(),$=W2;var Y=o7;Z=Q4,G=xw;var U=Y.actualDuration!==0||(Y.subtreeFlags&10256)!==0||(Y.flags&10256)!==0;U?i1=$3:(i1=F2,o7=W2=null,DM($,$.pendingLanes),I9=0,oZ=null);var B=$.pendingLanes;if(B===0&&(M2=null),U||yM($),B=_(Z),Y=Y.stateNode,_5&&typeof _5.onCommitFiberRoot==="function")try{var W=(Y.current.flags&128)===128;switch(B){case W6:var R=xY;break;case a6:R=mY;break;case j4:R=P7;break;case zG:R=dY;break;default:R=P7}_5.onCommitFiberRoot(L7,Y,R,W)}catch(f){E4||(E4=!0,console.error("React instrumentation encountered an error: %o",f))}if(A4&&$.memoizedUpdaters.clear(),K_(),G!==null){W=x.T,R=q1.p,q1.p=W6,x.T=null;try{var P=$.onRecoverableError;for(Y=0;Y<G.length;Y++){var C=G[Y],k=W_(C.stack);G0(C.source,P,C.value,k)}}finally{x.T=W,q1.p=R}}(Q4&3)!==0&&e$(),C4($),B=$.pendingLanes,(Z&261930)!==0&&(B&42)!==0?(yG=!0,$===mN?nZ++:(nZ=0,mN=$)):nZ=0,U||Y9(Z,q8),ZZ(0,!1)}}function W_($){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 DM($,Z){($.pooledCacheLanes&=Z)===0&&(Z=$.pooledCache,Z!=null&&($.pooledCache=null,g$(Z)))}function e$(){return AM(),jM(),SM(),vM()}function vM(){if(i1!==$3)return!1;var $=W2,Z=hN;hN=0;var G=_(Q4),Y=j4===0||j4>G?j4:G;G=x.T;var U=q1.p;try{q1.p=Y,x.T=null;var B=xN;xN=null,Y=W2;var W=Q4;if(i1=F2,o7=W2=null,Q4=0,(a0&(Q5|T6))!==K5)throw Error("Cannot flush passive effects while already rendering.");q6(W),dN=!0,Z3=!1;var R=0;if(Y8=null,R=Y5(),J4===fw)f$(q8,R,U8);else{var P=q8,C=R,k=J4===gN;!P1||C<=P||(h1?h1.run(console.timeStamp.bind(console,k?"Waiting for Paint":"Waiting",P,C,l0,p0,"secondary-light")):console.timeStamp(k?"Waiting for Paint":"Waiting",P,C,l0,p0,"secondary-light"))}P=a0,a0|=T6;var f=Y.current;_J(),MM(f);var j=Y.current;f=uN,_J(),UM(Y,j,W,B,f),yM(Y),a0=P;var g=Y5();if(j=R,f=h1,Y8!==null?PB(j,g,Y8,!0,f):!P1||g<=j||(f?f.run(console.timeStamp.bind(console,"Remaining Effects",j,g,l0,p0,"secondary-dark")):console.timeStamp("Remaining Effects",j,g,l0,p0,"secondary-dark")),Y9(W,g),ZZ(0,!1),Z3?Y===oZ?I9++:(I9=0,oZ=Y):I9=0,Z3=dN=!1,_5&&typeof _5.onPostCommitFiberRoot==="function")try{_5.onPostCommitFiberRoot(L7,Y)}catch(J0){E4||(E4=!0,console.error("React instrumentation encountered an error: %o",J0))}var e=Y.current.stateNode;return e.effectDuration=0,e.passiveEffectDuration=0,!0}finally{q1.p=U,x.T=G,DM($,Z)}}function bM($,Z,G){Z=Y6(G,Z),fB(Z),Z=kq($.stateNode,Z,2),$=m8($,Z,2),$!==null&&(b8($,2),C4($))}function X1($,Z,G){if(i7=!1,$.tag===3)bM($,$,G);else{for(;Z!==null;){if(Z.tag===3){bM(Z,$,G);return}if(Z.tag===1){var Y=Z.stateNode;if(typeof Z.type.getDerivedStateFromError==="function"||typeof Y.componentDidCatch==="function"&&(M2===null||!M2.has(Y))){$=Y6(G,$),fB($),G=fq(2),Y=m8(Z,G,2),Y!==null&&(yq(G,Y,Z,$),b8(Y,2),C4(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: "+N,q0(Q,function(R,L){console.error("%s must not return anything besides a function, which is used for clean-up.%s",R,L)},B,F)}G=G.next}while(G!==U)}}catch(R){G1(Q,Q.return,R)}}function B9($,Q,G){try{var N=Q.updateQueue,U=N!==null?N.lastEffect:null;if(U!==null){var B=U.next;N=B;do{if((N.tag&$)===$){var F=N.inst,R=F.destroy;R!==void 0&&(F.destroy=void 0,($&f6)!==lG&&(t9=!0),U=Q,q0(U,EV,U,G,R),($&f6)!==lG&&(t9=!1))}N=N.next}while(N!==B)}}catch(L){G1(Q,Q.return,L)}}function oH($,Q){L4($)?(T4(),iQ(Q,$),z4()):iQ(Q,$)}function t3($,Q,G){L4($)?(T4(),B9(G,$,Q),z4()):B9(G,$,Q)}function iH($){var Q=$.updateQueue;if(Q!==null){var G=$.stateNode;$.type.defaultProps||"ref"in $.memoizedProps||s9||(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{q0($,tB,Q,G)}catch(N){G1($,$.return,N)}}}function G_($,Q,G){return $.getSnapshotBeforeUpdate(Q,G)}function q_($,Q){var{memoizedProps:G,memoizedState:N}=Q;Q=$.stateNode,$.type.defaultProps||"ref"in $.memoizedProps||s9||(Q.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"),Q.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=N7($.type,G),B=q0($,G_,Q,U,N);G=Dw,B!==void 0||G.has($.type)||(G.add($.type),q0($,function(){console.error("%s.getSnapshotBeforeUpdate(): A snapshot value (or null) must be returned. You have returned undefined.",d($))})),Q.__reactInternalSnapshotBeforeUpdate=B}catch(F){G1($,$.return,F)}}function aH($,Q,G){G.props=N7($.type,$.memoizedProps),G.state=$.memoizedState,L4($)?(T4(),q0($,iF,$,Q,G),z4()):q0($,iF,$,Q,G)}function X_($){var Q=$.ref;if(Q!==null){switch($.tag){case 26:case 27:case 5:var G=$.stateNode;break;case 30:G=$.stateNode;break;default:G=$.stateNode}if(typeof Q==="function")if(L4($))try{T4(),$.refCleanup=Q(G)}finally{z4()}else $.refCleanup=Q(G);else typeof Q==="string"?console.error("String refs are no longer supported."):Q.hasOwnProperty("current")||console.error("Unexpected ref object provided for %s. Use either a ref-setter function or React.createRef().",d($)),Q.current=G}}function aQ($,Q){try{q0($,X_,$)}catch(G){G1($,Q,G)}}function P4($,Q){var{ref:G,refCleanup:N}=$;if(G!==null)if(typeof N==="function")try{if(L4($))try{T4(),q0($,N)}finally{z4($)}else q0($,N)}catch(U){G1($,Q,U)}finally{$.refCleanup=null,$=$.alternate,$!=null&&($.refCleanup=null)}else if(typeof G==="function")try{if(L4($))try{T4(),q0($,G,null)}finally{z4($)}else q0($,G,null)}catch(U){G1($,Q,U)}else G.current=null}function tH($,Q,G,N){var U=$.memoizedProps,B=U.id,F=U.onCommit;U=U.onRender,Q=Q===null?"mount":"update",xG&&(Q="nested-update"),typeof U==="function"&&U(B,Q,$.actualDuration,$.treeBaseDuration,$.actualStartTime,G),typeof F==="function"&&F(B,Q,N,G)}function N_($,Q,G,N){var U=$.memoizedProps;$=U.id,U=U.onPostCommit,Q=Q===null?"mount":"update",xG&&(Q="nested-update"),typeof U==="function"&&U($,Q,N,G)}function eH($){var{type:Q,memoizedProps:G,stateNode:N}=$;try{q0($,D_,N,Q,G,$)}catch(U){G1($,$.return,U)}}function e3($,Q,G){try{q0($,k_,$.stateNode,$.type,G,Q,$)}catch(N){G1($,$.return,N)}}function $M($){return $.tag===5||$.tag===3||$.tag===26||$.tag===27&&t$($.type)||$.tag===4}function $N($){$:for(;;){for(;$.sibling===null;){if($.return===null||$M($.return))return null;$=$.return}$.sibling.return=$.return;for($=$.sibling;$.tag!==5&&$.tag!==6&&$.tag!==18;){if($.tag===27&&t$($.type))continue $;if($.flags&2)continue $;if($.child===null||$.tag===4)continue $;else $.child.return=$,$=$.child}if(!($.flags&2))return $.stateNode}}function QN($,Q,G){var N=$.tag;if(N===5||N===6)$=$.stateNode,Q?(NW(G),(G.nodeType===9?G.body:G.nodeName==="HTML"?G.ownerDocument.body:G).insertBefore($,Q)):(NW(G),Q=G.nodeType===9?G.body:G.nodeName==="HTML"?G.ownerDocument.body:G,Q.appendChild($),G=G._reactRootContainer,G!==null&&G!==void 0||Q.onclick!==null||(Q.onclick=i4));else if(N!==4&&(N===27&&t$($.type)&&(G=$.stateNode,Q=null),$=$.child,$!==null))for(QN($,Q,G),$=$.sibling;$!==null;)QN($,Q,G),$=$.sibling}function eZ($,Q,G){var N=$.tag;if(N===5||N===6)$=$.stateNode,Q?G.insertBefore($,Q):G.appendChild($);else if(N!==4&&(N===27&&t$($.type)&&(G=$.stateNode),$=$.child,$!==null))for(eZ($,Q,G),$=$.sibling;$!==null;)eZ($,Q,G),$=$.sibling}function Y_($){for(var Q,G=$.return;G!==null;){if($M(G)){Q=G;break}G=G.return}if(Q==null)throw Error("Expected to find a host parent. This error is likely caused by a bug in React. Please file an issue.");switch(Q.tag){case 27:Q=Q.stateNode,G=$N($),eZ($,G,Q);break;case 5:G=Q.stateNode,Q.flags&32&&(XW(G),Q.flags&=-33),Q=$N($),eZ($,Q,G);break;case 3:case 4:Q=Q.stateNode.containerInfo,G=$N($),QN($,G,Q);break;default:throw Error("Invalid host parent fiber. This error is likely caused by a bug in React. Please file an issue.")}}function QM($){var{stateNode:Q,memoizedProps:G}=$;try{q0($,o_,$.type,G,Q,$)}catch(N){G1($,$.return,N)}}function JM($,Q){return Q.tag===31?(Q=Q.memoizedState,$.memoizedState!==null&&Q===null):Q.tag===13?($=$.memoizedState,Q=Q.memoizedState,$!==null&&$.dehydrated!==null&&(Q===null||Q.dehydrated===null)):Q.tag===3?$.memoizedState.isDehydrated&&(Q.flags&256)===0:!1}function U_($,Q){if($=$.containerInfo,$U=Tq,$=zB($),hX($)){if("selectionStart"in $)var G={start:$.selectionStart,end:$.selectionEnd};else $:{G=(G=$.ownerDocument)&&G.defaultView||window;var N=G.getSelection&&G.getSelection();if(N&&N.rangeCount!==0){G=N.anchorNode;var{anchorOffset:U,focusNode:B}=N;N=N.focusOffset;try{G.nodeType,B.nodeType}catch($0){G=null;break $}var F=0,R=-1,L=-1,C=0,b=0,y=$,j=null;Q:for(;;){for(var g;;){if(y!==G||U!==0&&y.nodeType!==3||(R=F+U),y!==B||N!==0&&y.nodeType!==3||(L=F+N),y.nodeType===3&&(F+=y.nodeValue.length),(g=y.firstChild)===null)break;j=y,y=g}for(;;){if(y===$)break Q;if(j===G&&++C===U&&(R=F),j===B&&++b===N&&(L=F),(g=y.nextSibling)!==null)break;y=j,j=y.parentNode}y=g}G=R===-1||L===-1?null:{start:R,end:L}}else G=null}G=G||{start:0,end:0}}else G=null;QU={focusedElem:$,selectionRange:G},Tq=!1;for(U6=Q;U6!==null;)if(Q=U6,$=Q.child,(Q.subtreeFlags&1028)!==0&&$!==null)$.return=Q,U6=$;else for(;U6!==null;){switch($=Q=U6,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&&q_($,G);break;case 3:if((U&1024)!==0){if($=$.stateNode.containerInfo,G=$.nodeType,G===9)PN($);else if(G===1)switch($.nodeName){case"HEAD":case"HTML":case"BODY":PN($);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($=Q.sibling,$!==null){$.return=Q.return,U6=$;break}U6=Q.return}}function ZM($,Q,G){var N=K5(),U=W4(),B=w4(),F=R4(),R=G.flags;switch(G.tag){case 0:case 11:case 15:C4($,G),R&4&&nH(G,L5|g5);break;case 1:if(C4($,G),R&4)if($=G.stateNode,Q===null)G.type.defaultProps||"ref"in G.memoizedProps||s9||($.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")),L4(G)?(T4(),q0(G,CY,G,$),z4()):q0(G,CY,G,$);else{var L=N7(G.type,Q.memoizedProps);Q=Q.memoizedState,G.type.defaultProps||"ref"in G.memoizedProps||s9||($.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")),L4(G)?(T4(),q0(G,sF,G,$,L,Q,$.__reactInternalSnapshotBeforeUpdate),z4()):q0(G,sF,G,$,L,Q,$.__reactInternalSnapshotBeforeUpdate)}R&64&&iH(G),R&512&&aQ(G,G.return);break;case 3:if(Q=$$(),C4($,G),R&64&&(R=G.updateQueue,R!==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{q0(G,tB,R,L)}catch(b){G1(G,G.return,b)}}$.effectDuration+=OZ(Q);break;case 27:Q===null&&R&4&&QM(G);case 26:case 5:if(C4($,G),Q===null){if(R&4)eH(G);else if(R&64){$=G.type,Q=G.memoizedProps,L=G.stateNode;try{q0(G,v_,L,$,Q,G)}catch(b){G1(G,G.return,b)}}}R&512&&aQ(G,G.return);break;case 12:if(R&4){R=$$(),C4($,G),$=G.stateNode,$.effectDuration+=xQ(R);try{q0(G,tH,G,Q,Y8,$.effectDuration)}catch(b){G1(G,G.return,b)}}else C4($,G);break;case 31:C4($,G),R&4&&XM($,G);break;case 13:C4($,G),R&4&&NM($,G),R&64&&($=G.memoizedState,$!==null&&($=$.dehydrated,$!==null&&(R=z_.bind(null,G),l_($,R))));break;case 22:if(R=G.memoizedState!==null||w$,!R){Q=Q!==null&&Q.memoizedState!==null||n1,L=w$;var C=n1;w$=R,(n1=Q)&&!C?(_4($,G,(G.subtreeFlags&8772)!==0),(G.mode&b0)!==I0&&0<=L0&&0<=P0&&0.05<P0-L0&&wZ(G,L0,P0)):C4($,G),w$=L,n1=C}break;case 30:break;default:C4($,G)}(G.mode&b0)!==I0&&0<=L0&&0<=P0&&((k1||0.05<j1)&&H4(G,L0,P0,j1,E1),G.alternate===null&&G.return!==null&&G.return.alternate!==null&&0.05<P0-L0&&(JM(G.return.alternate,G.return)||B4(G,L0,P0,"Mount"))),B5(N),F4(U),E1=B,k1=F}function GM($){var Q=$.alternate;Q!==null&&($.alternate=null,GM(Q)),$.child=null,$.deletions=null,$.sibling=null,$.tag===5&&(Q=$.stateNode,Q!==null&&Q0(Q)),$.stateNode=null,$._debugOwner=null,$.return=null,$.dependencies=null,$.memoizedProps=null,$.memoizedState=null,$.pendingProps=null,$.stateNode=null,$.updateQueue=null}function Z$($,Q,G){for(G=G.child;G!==null;)qM($,Q,G),G=G.sibling}function qM($,Q,G){if(I6&&typeof I6.onCommitFiberUnmount==="function")try{I6.onCommitFiberUnmount(_9,G)}catch(C){j4||(j4=!0,console.error("React instrumentation encountered an error: %o",C))}var N=K5(),U=W4(),B=w4(),F=R4();switch(G.tag){case 26:n1||P4(G,Q),Z$($,Q,G),G.memoizedState?G.memoizedState.count--:G.stateNode&&($=G.stateNode,$.parentNode.removeChild($));break;case 27:n1||P4(G,Q);var R=o1,L=l6;t$(G.type)&&(o1=G.stateNode,l6=!1),Z$($,Q,G),q0(G,X2,G.stateNode),o1=R,l6=L;break;case 5:n1||P4(G,Q);case 6:if(R=o1,L=l6,o1=null,Z$($,Q,G),o1=R,l6=L,o1!==null)if(l6)try{q0(G,f_,o1,G.stateNode)}catch(C){G1(G,Q,C)}else try{q0(G,y_,o1,G.stateNode)}catch(C){G1(G,Q,C)}break;case 18:o1!==null&&(l6?($=o1,YW($.nodeType===9?$.body:$.nodeName==="HTML"?$.ownerDocument.body:$,G.stateNode),T9($)):YW(o1,G.stateNode));break;case 4:R=o1,L=l6,o1=G.stateNode.containerInfo,l6=!0,Z$($,Q,G),o1=R,l6=L;break;case 0:case 11:case 14:case 15:B9(f6,G,Q),n1||a3(G,Q,L5),Z$($,Q,G);break;case 1:n1||(P4(G,Q),R=G.stateNode,typeof R.componentWillUnmount==="function"&&aH(G,Q,R)),Z$($,Q,G);break;case 21:Z$($,Q,G);break;case 22:n1=(R=n1)||G.memoizedState!==null,Z$($,Q,G),n1=R;break;default:Z$($,Q,G)}(G.mode&b0)!==I0&&0<=L0&&0<=P0&&(k1||0.05<j1)&&H4(G,L0,P0,j1,E1),B5(N),F4(U),E1=B,k1=F}function XM($,Q){if(Q.memoizedState===null&&($=Q.alternate,$!==null&&($=$.memoizedState,$!==null))){$=$.dehydrated;try{q0(Q,s_,$)}catch(G){G1(Q,Q.return,G)}}}function NM($,Q){if(Q.memoizedState===null&&($=Q.alternate,$!==null&&($=$.memoizedState,$!==null&&($=$.dehydrated,$!==null))))try{q0(Q,n_,$)}catch(G){G1(Q,Q.return,G)}}function K_($){switch($.tag){case 31:case 13:case 19:var Q=$.stateNode;return Q===null&&(Q=$.stateNode=new vw),Q;case 22:return $=$.stateNode,Q=$._retryCache,Q===null&&(Q=$._retryCache=new vw),Q;default:throw Error("Unexpected Suspense handler tag ("+$.tag+"). This is a bug in React.")}}function $G($,Q){var G=K_($);Q.forEach(function(N){if(!G.has(N)){if(G.add(N),S4)if(n9!==null&&o9!==null)Q2(o9,n9);else throw Error("Expected finished root and lanes to be set. This is a bug in React.");var U=T_.bind(null,$,N);N.then(U,U)}})}function p6($,Q){var G=Q.deletions;if(G!==null)for(var N=0;N<G.length;N++){var U=$,B=Q,F=G[N],R=K5(),L=B;$:for(;L!==null;){switch(L.tag){case 27:if(t$(L.type)){o1=L.stateNode,l6=!1;break $}break;case 5:o1=L.stateNode,l6=!1;break $;case 3:case 4:o1=L.stateNode.containerInfo,l6=!0;break $}L=L.return}if(o1===null)throw Error("Expected to find a host parent. This error is likely caused by a bug in React. Please file an issue.");qM(U,B,F),o1=null,l6=!1,(F.mode&b0)!==I0&&0<=L0&&0<=P0&&0.05<P0-L0&&B4(F,L0,P0,"Unmount"),B5(R),U=F,B=U.alternate,B!==null&&(B.return=null),U.return=null}if(Q.subtreeFlags&13886)for(Q=Q.child;Q!==null;)YM(Q,$),Q=Q.sibling}function YM($,Q){var G=K5(),N=W4(),U=w4(),B=R4(),F=$.alternate,R=$.flags;switch($.tag){case 0:case 11:case 14:case 15:p6(Q,$),c6($),R&4&&(B9(f6|g5,$,$.return),iQ(f6|g5,$),a3($,$.return,L5|g5));break;case 1:if(p6(Q,$),c6($),R&512&&(n1||F===null||P4(F,F.return)),R&64&&w$&&(R=$.updateQueue,R!==null&&(F=R.callbacks,F!==null))){var L=R.shared.hiddenCallbacks;R.shared.hiddenCallbacks=L===null?F:L.concat(F)}break;case 26:if(L=Z4,p6(Q,$),c6($),R&512&&(n1||F===null||P4(F,F.return)),R&4){var C=F!==null?F.memoizedState:null;if(R=$.memoizedState,F===null)if(R===null)if($.stateNode===null){$:{R=$.type,F=$.memoizedProps,L=L.ownerDocument||L;Q:switch(R){case"title":if(C=L.getElementsByTagName("title")[0],!C||C[M2]||C[F6]||C.namespaceURI===V9||C.hasAttribute("itemprop"))C=L.createElement(R),L.head.insertBefore(C,L.querySelector("head > title"));W6(C,R,F),C[F6]=$,T0(C),R=C;break $;case"link":var b=TW("link","href",L).get(R+(F.href||""));if(b){for(var y=0;y<b.length;y++)if(C=b[y],C.getAttribute("href")===(F.href==null||F.href===""?null:F.href)&&C.getAttribute("rel")===(F.rel==null?null:F.rel)&&C.getAttribute("title")===(F.title==null?null:F.title)&&C.getAttribute("crossorigin")===(F.crossOrigin==null?null:F.crossOrigin)){b.splice(y,1);break Q}}C=L.createElement(R),W6(C,R,F),L.head.appendChild(C);break;case"meta":if(b=TW("meta","content",L).get(R+(F.content||""))){for(y=0;y<b.length;y++)if(C=b[y],K1(F.content,"content"),C.getAttribute("content")===(F.content==null?null:""+F.content)&&C.getAttribute("name")===(F.name==null?null:F.name)&&C.getAttribute("property")===(F.property==null?null:F.property)&&C.getAttribute("http-equiv")===(F.httpEquiv==null?null:F.httpEquiv)&&C.getAttribute("charset")===(F.charSet==null?null:F.charSet)){b.splice(y,1);break Q}}C=L.createElement(R),W6(C,R,F),L.head.appendChild(C);break;default:throw Error('getNodesForType encountered a type it did not expect: "'+R+'". This is a bug in React.')}C[F6]=$,T0(C),R=C}$.stateNode=R}else LW(L,$.type,$.stateNode);else $.stateNode=zW(L,R,$.memoizedProps);else C!==R?(C===null?F.stateNode!==null&&(F=F.stateNode,F.parentNode.removeChild(F)):C.count--,R===null?LW(L,$.type,$.stateNode):zW(L,R,$.memoizedProps)):R===null&&$.stateNode!==null&&e3($,$.memoizedProps,F.memoizedProps)}break;case 27:p6(Q,$),c6($),R&512&&(n1||F===null||P4(F,F.return)),F!==null&&R&4&&e3($,$.memoizedProps,F.memoizedProps);break;case 5:if(p6(Q,$),c6($),R&512&&(n1||F===null||P4(F,F.return)),$.flags&32){L=$.stateNode;try{q0($,XW,L)}catch(G0){G1($,$.return,G0)}}R&4&&$.stateNode!=null&&(L=$.memoizedProps,e3($,L,F!==null?F.memoizedProps:L)),R&1024&&(yY=!0,$.type!=="form"&&console.error("Unexpected host component type. Expected a form. This is a bug in React."));break;case 6:if(p6(Q,$),c6($),R&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.");R=$.memoizedProps,F=F!==null?F.memoizedProps:R,L=$.stateNode;try{q0($,b_,L,F,R)}catch(G0){G1($,$.return,G0)}}break;case 3:if(L=$$(),wq=null,C=Z4,Z4=YG(Q.containerInfo),p6(Q,$),Z4=C,c6($),R&4&&F!==null&&F.memoizedState.isDehydrated)try{q0($,r_,Q.containerInfo)}catch(G0){G1($,$.return,G0)}yY&&(yY=!1,UM($)),Q.effectDuration+=OZ(L);break;case 4:R=Z4,Z4=YG($.stateNode.containerInfo),p6(Q,$),c6($),Z4=R;break;case 12:R=$$(),p6(Q,$),c6($),$.stateNode.effectDuration+=xQ(R);break;case 31:p6(Q,$),c6($),R&4&&(R=$.updateQueue,R!==null&&($.updateQueue=null,$G($,R)));break;case 13:p6(Q,$),c6($),$.child.flags&8192&&$.memoizedState!==null!==(F!==null&&F.memoizedState!==null)&&(Qq=N6()),R&4&&(R=$.updateQueue,R!==null&&($.updateQueue=null,$G($,R)));break;case 22:L=$.memoizedState!==null;var j=F!==null&&F.memoizedState!==null,g=w$,$0=n1;if(w$=g||L,n1=$0||j,p6(Q,$),n1=$0,w$=g,j&&!L&&!g&&!$0&&($.mode&b0)!==I0&&0<=L0&&0<=P0&&0.05<P0-L0&&wZ($,L0,P0),c6($),R&8192)$:for(Q=$.stateNode,Q._visibility=L?Q._visibility&~C2:Q._visibility|C2,!L||F===null||j||w$||n1||(Y7($),($.mode&b0)!==I0&&0<=L0&&0<=P0&&0.05<P0-L0&&B4($,L0,P0,"Disconnect")),F=null,Q=$;;){if(Q.tag===5||Q.tag===26){if(F===null){j=F=Q;try{C=j.stateNode,L?q0(j,h_,C):q0(j,m_,j.stateNode,j.memoizedProps)}catch(G0){G1(j,j.return,G0)}}}else if(Q.tag===6){if(F===null){j=Q;try{b=j.stateNode,L?q0(j,x_,b):q0(j,d_,b,j.memoizedProps)}catch(G0){G1(j,j.return,G0)}}}else if(Q.tag===18){if(F===null){j=Q;try{y=j.stateNode,L?q0(j,g_,y):q0(j,u_,j.stateNode)}catch(G0){G1(j,j.return,G0)}}}else if((Q.tag!==22&&Q.tag!==23||Q.memoizedState===null||Q===$)&&Q.child!==null){Q.child.return=Q,Q=Q.child;continue}if(Q===$)break $;for(;Q.sibling===null;){if(Q.return===null||Q.return===$)break $;F===Q&&(F=null),Q=Q.return}F===Q&&(F=null),Q.sibling.return=Q.return,Q=Q.sibling}R&4&&(R=$.updateQueue,R!==null&&(F=R.retryQueue,F!==null&&(R.retryQueue=null,$G($,F))));break;case 19:p6(Q,$),c6($),R&4&&(R=$.updateQueue,R!==null&&($.updateQueue=null,$G($,R)));break;case 30:break;case 21:break;default:p6(Q,$),c6($)}($.mode&b0)!==I0&&0<=L0&&0<=P0&&((k1||0.05<j1)&&H4($,L0,P0,j1,E1),$.alternate===null&&$.return!==null&&$.return.alternate!==null&&0.05<P0-L0&&(JM($.return.alternate,$.return)||B4($,L0,P0,"Mount"))),B5(G),F4(N),E1=U,k1=B}function c6($){var Q=$.flags;if(Q&2){try{q0($,Y_,$)}catch(G){G1($,$.return,G)}$.flags&=-3}Q&4096&&($.flags&=-4097)}function UM($){if($.subtreeFlags&1024)for($=$.child;$!==null;){var Q=$;UM(Q),Q.tag===5&&Q.flags&1024&&Q.stateNode.reset(),$=$.sibling}}function C4($,Q){if(Q.subtreeFlags&8772)for(Q=Q.child;Q!==null;)ZM($,Q.alternate,Q),Q=Q.sibling}function KM($){var Q=K5(),G=W4(),N=w4(),U=R4();switch($.tag){case 0:case 11:case 14:case 15:a3($,$.return,L5),Y7($);break;case 1:P4($,$.return);var B=$.stateNode;typeof B.componentWillUnmount==="function"&&aH($,$.return,B),Y7($);break;case 27:q0($,X2,$.stateNode);case 26:case 5:P4($,$.return),Y7($);break;case 22:$.memoizedState===null&&Y7($);break;case 30:Y7($);break;default:Y7($)}($.mode&b0)!==I0&&0<=L0&&0<=P0&&(k1||0.05<j1)&&H4($,L0,P0,j1,E1),B5(Q),F4(G),E1=N,k1=U}function Y7($){for($=$.child;$!==null;)KM($),$=$.sibling}function BM($,Q,G,N){var U=K5(),B=W4(),F=w4(),R=R4(),L=G.flags;switch(G.tag){case 0:case 11:case 15:_4($,G,N),nH(G,L5);break;case 1:if(_4($,G,N),Q=G.stateNode,typeof Q.componentDidMount==="function"&&q0(G,CY,G,Q),Q=G.updateQueue,Q!==null){$=G.stateNode;try{q0(G,rC,Q,$)}catch(C){G1(G,G.return,C)}}N&&L&64&&iH(G),aQ(G,G.return);break;case 27:QM(G);case 26:case 5:_4($,G,N),N&&Q===null&&L&4&&eH(G),aQ(G,G.return);break;case 12:if(N&&L&4){L=$$(),_4($,G,N),N=G.stateNode,N.effectDuration+=xQ(L);try{q0(G,tH,G,Q,Y8,N.effectDuration)}catch(C){G1(G,G.return,C)}}else _4($,G,N);break;case 31:_4($,G,N),N&&L&4&&XM($,G);break;case 13:_4($,G,N),N&&L&4&&NM($,G);break;case 22:G.memoizedState===null&&_4($,G,N),aQ(G,G.return);break;case 30:break;default:_4($,G,N)}(G.mode&b0)!==I0&&0<=L0&&0<=P0&&(k1||0.05<j1)&&H4(G,L0,P0,j1,E1),B5(U),F4(B),E1=F,k1=R}function _4($,Q,G){G=G&&(Q.subtreeFlags&8772)!==0;for(Q=Q.child;Q!==null;)BM($,Q.alternate,Q,G),Q=Q.sibling}function JN($,Q){var G=null;$!==null&&$.memoizedState!==null&&$.memoizedState.cachePool!==null&&(G=$.memoizedState.cachePool.pool),$=null,Q.memoizedState!==null&&Q.memoizedState.cachePool!==null&&($=Q.memoizedState.cachePool.pool),$!==G&&($!=null&&Z7($),G!=null&&hQ(G))}function ZN($,Q){$=null,Q.alternate!==null&&($=Q.alternate.memoizedState.cache),Q=Q.memoizedState.cache,Q!==$&&(Z7(Q),$!=null&&hQ($))}function a5($,Q,G,N,U){if(Q.subtreeFlags&10256||Q.actualDuration!==0&&(Q.alternate===null||Q.alternate.child!==Q.child))for(Q=Q.child;Q!==null;){var B=Q.sibling;HM($,Q,G,N,B!==null?B.actualStartTime:U),Q=B}}function HM($,Q,G,N,U){var B=K5(),F=W4(),R=w4(),L=R4(),C=G8,b=Q.flags;switch(Q.tag){case 0:case 11:case 15:(Q.mode&b0)!==I0&&0<Q.actualStartTime&&(Q.flags&1)!==0&&RZ(Q,Q.actualStartTime,U,Q6,G),a5($,Q,G,N,U),b&2048&&oH(Q,g6|g5);break;case 1:(Q.mode&b0)!==I0&&0<Q.actualStartTime&&((Q.flags&128)!==0?uX(Q,Q.actualStartTime,U,[]):(Q.flags&1)!==0&&RZ(Q,Q.actualStartTime,U,Q6,G)),a5($,Q,G,N,U);break;case 3:var y=$$(),j=Q6;Q6=Q.alternate!==null&&Q.alternate.memoizedState.isDehydrated&&(Q.flags&256)===0,a5($,Q,G,N,U),Q6=j,b&2048&&(G=null,Q.alternate!==null&&(G=Q.alternate.memoizedState.cache),N=Q.memoizedState.cache,N!==G&&(Z7(N),G!=null&&hQ(G))),$.passiveEffectDuration+=OZ(y);break;case 12:if(b&2048){b=$$(),a5($,Q,G,N,U),$=Q.stateNode,$.passiveEffectDuration+=xQ(b);try{q0(Q,N_,Q,Q.alternate,Y8,$.passiveEffectDuration)}catch(g){G1(Q,Q.return,g)}}else a5($,Q,G,N,U);break;case 31:b=Q6,y=Q.alternate!==null?Q.alternate.memoizedState:null,j=Q.memoizedState,y!==null&&j===null?(j=Q.deletions,j!==null&&0<j.length&&j[0].tag===18?(Q6=!1,y=y.hydrationErrors,y!==null&&uX(Q,Q.actualStartTime,U,y)):Q6=!0):Q6=!1,a5($,Q,G,N,U),Q6=b;break;case 13:b=Q6,y=Q.alternate!==null?Q.alternate.memoizedState:null,j=Q.memoizedState,y===null||y.dehydrated===null||j!==null&&j.dehydrated!==null?Q6=!1:(j=Q.deletions,j!==null&&0<j.length&&j[0].tag===18?(Q6=!1,y=y.hydrationErrors,y!==null&&uX(Q,Q.actualStartTime,U,y)):Q6=!0),a5($,Q,G,N,U),Q6=b;break;case 23:break;case 22:j=Q.stateNode,y=Q.alternate,Q.memoizedState!==null?j._visibility&X$?a5($,Q,G,N,U):tQ($,Q,G,N,U):j._visibility&X$?a5($,Q,G,N,U):(j._visibility|=X$,H9($,Q,G,N,(Q.subtreeFlags&10256)!==0||Q.actualDuration!==0&&(Q.alternate===null||Q.alternate.child!==Q.child),U),(Q.mode&b0)===I0||Q6||($=Q.actualStartTime,0<=$&&0.05<U-$&&wZ(Q,$,U),0<=L0&&0<=P0&&0.05<P0-L0&&wZ(Q,L0,P0))),b&2048&&JN(y,Q);break;case 24:a5($,Q,G,N,U),b&2048&&ZN(Q.alternate,Q);break;default:a5($,Q,G,N,U)}if((Q.mode&b0)!==I0){if($=!Q6&&Q.alternate===null&&Q.return!==null&&Q.return.alternate!==null)G=Q.actualStartTime,0<=G&&0.05<U-G&&B4(Q,G,U,"Mount");0<=L0&&0<=P0&&((k1||0.05<j1)&&H4(Q,L0,P0,j1,E1),$&&0.05<P0-L0&&B4(Q,L0,P0,"Mount"))}B5(B),F4(F),E1=R,k1=L,G8=C}function H9($,Q,G,N,U,B){U=U&&((Q.subtreeFlags&10256)!==0||Q.actualDuration!==0&&(Q.alternate===null||Q.alternate.child!==Q.child));for(Q=Q.child;Q!==null;){var F=Q.sibling;MM($,Q,G,N,U,F!==null?F.actualStartTime:B),Q=F}}function MM($,Q,G,N,U,B){var F=K5(),R=W4(),L=w4(),C=R4(),b=G8;U&&(Q.mode&b0)!==I0&&0<Q.actualStartTime&&(Q.flags&1)!==0&&RZ(Q,Q.actualStartTime,B,Q6,G);var y=Q.flags;switch(Q.tag){case 0:case 11:case 15:H9($,Q,G,N,U,B),oH(Q,g6);break;case 23:break;case 22:var j=Q.stateNode;Q.memoizedState!==null?j._visibility&X$?H9($,Q,G,N,U,B):tQ($,Q,G,N,B):(j._visibility|=X$,H9($,Q,G,N,U,B)),U&&y&2048&&JN(Q.alternate,Q);break;case 24:H9($,Q,G,N,U,B),U&&y&2048&&ZN(Q.alternate,Q);break;default:H9($,Q,G,N,U,B)}(Q.mode&b0)!==I0&&0<=L0&&0<=P0&&(k1||0.05<j1)&&H4(Q,L0,P0,j1,E1),B5(F),F4(R),E1=L,k1=C,G8=b}function tQ($,Q,G,N,U){if(Q.subtreeFlags&10256||Q.actualDuration!==0&&(Q.alternate===null||Q.alternate.child!==Q.child))for(var B=Q.child;B!==null;){Q=B.sibling;var F=$,R=G,L=N,C=Q!==null?Q.actualStartTime:U,b=G8;(B.mode&b0)!==I0&&0<B.actualStartTime&&(B.flags&1)!==0&&RZ(B,B.actualStartTime,C,Q6,R);var y=B.flags;switch(B.tag){case 22:tQ(F,B,R,L,C),y&2048&&JN(B.alternate,B);break;case 24:tQ(F,B,R,L,C),y&2048&&ZN(B.alternate,B);break;default:tQ(F,B,R,L,C)}G8=b,B=Q}}function M9($,Q,G){if($.subtreeFlags&d2)for($=$.child;$!==null;)WM($,Q,G),$=$.sibling}function WM($,Q,G){switch($.tag){case 26:M9($,Q,G),$.flags&d2&&$.memoizedState!==null&&t_(G,Z4,$.memoizedState,$.memoizedProps);break;case 5:M9($,Q,G);break;case 3:case 4:var N=Z4;Z4=YG($.stateNode.containerInfo),M9($,Q,G),Z4=N;break;case 22:$.memoizedState===null&&(N=$.alternate,N!==null&&N.memoizedState!==null?(N=d2,d2=16777216,M9($,Q,G),d2=N):M9($,Q,G));break;default:M9($,Q,G)}}function FM($){var Q=$.alternate;if(Q!==null&&($=Q.child,$!==null)){Q.child=null;do Q=$.sibling,$.sibling=null,$=Q;while($!==null)}}function eQ($){var Q=$.deletions;if(($.flags&16)!==0){if(Q!==null)for(var G=0;G<Q.length;G++){var N=Q[G],U=K5();U6=N,zM(N,$),(N.mode&b0)!==I0&&0<=L0&&0<=P0&&0.05<P0-L0&&B4(N,L0,P0,"Unmount"),B5(U)}FM($)}if($.subtreeFlags&10256)for($=$.child;$!==null;)wM($),$=$.sibling}function wM($){var Q=K5(),G=W4(),N=w4(),U=R4();switch($.tag){case 0:case 11:case 15:eQ($),$.flags&2048&&t3($,$.return,g6|g5);break;case 3:var B=$$();eQ($),$.stateNode.passiveEffectDuration+=OZ(B);break;case 12:B=$$(),eQ($),$.stateNode.passiveEffectDuration+=xQ(B);break;case 22:B=$.stateNode,$.memoizedState!==null&&B._visibility&X$&&($.return===null||$.return.tag!==13)?(B._visibility&=~X$,QG($),($.mode&b0)!==I0&&0<=L0&&0<=P0&&0.05<P0-L0&&B4($,L0,P0,"Disconnect")):eQ($);break;default:eQ($)}($.mode&b0)!==I0&&0<=L0&&0<=P0&&(k1||0.05<j1)&&H4($,L0,P0,j1,E1),B5(Q),F4(G),k1=U,E1=N}function QG($){var Q=$.deletions;if(($.flags&16)!==0){if(Q!==null)for(var G=0;G<Q.length;G++){var N=Q[G],U=K5();U6=N,zM(N,$),(N.mode&b0)!==I0&&0<=L0&&0<=P0&&0.05<P0-L0&&B4(N,L0,P0,"Unmount"),B5(U)}FM($)}for($=$.child;$!==null;)RM($),$=$.sibling}function RM($){var Q=K5(),G=W4(),N=w4(),U=R4();switch($.tag){case 0:case 11:case 15:t3($,$.return,g6),QG($);break;case 22:var B=$.stateNode;B._visibility&X$&&(B._visibility&=~X$,QG($));break;default:QG($)}($.mode&b0)!==I0&&0<=L0&&0<=P0&&(k1||0.05<j1)&&H4($,L0,P0,j1,E1),B5(Q),F4(G),k1=U,E1=N}function zM($,Q){for(;U6!==null;){var G=U6,N=G,U=Q,B=K5(),F=W4(),R=w4(),L=R4();switch(N.tag){case 0:case 11:case 15:t3(N,U,g6);break;case 23:case 22:N.memoizedState!==null&&N.memoizedState.cachePool!==null&&(U=N.memoizedState.cachePool.pool,U!=null&&Z7(U));break;case 24:hQ(N.memoizedState.cache)}if((N.mode&b0)!==I0&&0<=L0&&0<=P0&&(k1||0.05<j1)&&H4(N,L0,P0,j1,E1),B5(B),F4(F),k1=L,E1=R,N=G.child,N!==null)N.return=G,U6=N;else $:for(G=$;U6!==null;){if(N=U6,B=N.sibling,F=N.return,GM(N),N===G){U6=null;break $}if(B!==null){B.return=F,U6=B;break $}U6=F}}}function B_(){vV.forEach(function($){return $()})}function TM(){var $=typeof IS_REACT_ACT_ENVIRONMENT<"u"?IS_REACT_ACT_ENVIRONMENT:void 0;return $||u.actQueue===null||console.error("The current testing environment is not configured to support act(...)"),$}function M5($){if((i0&J6)!==K6&&f0!==0)return f0&-f0;var Q=u.T;return Q!==null?(Q._updatedFibers||(Q._updatedFibers=new Set),Q._updatedFibers.add($),BN()):f()}function LM(){if(s6===0)if((f0&536870912)===0||l0){var $=LG;LG<<=1,(LG&3932160)===0&&(LG=262144),s6=$}else s6=536870912;return $=T5.current,$!==null&&($.flags|=32),s6}function v1($,Q,G){if(t9&&console.error("useInsertionEffect must not schedule updates."),rY&&(qq=!0),$===W1&&(Y1===_7||Y1===I7)||$.cancelPendingCommit!==null)F9($,0),i$($,f0,s6,!1);if(h$($,G),(i0&J6)!==K6&&$===W1){if(A4)switch(Q.tag){case 0:case 11:case 15:$=g0&&d(g0)||"Unknown",sw.has($)||(sw.add($),Q=d(Q)||"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",Q,$,$));break;case 1:rw||(console.error("Cannot update during an existing state transition (such as within `render`). Render methods should be a pure function of props and state."),rw=!0)}}else S4&&EQ($,Q,G),P_(Q),$===W1&&((i0&J6)===K6&&(R8|=G),S1===W8&&i$($,f0,s6,!1)),I4($)}function PM($,Q,G){if((i0&(J6|P5))!==K6)throw Error("Should not already be working.");if(f0!==0&&g0!==null){var N=g0,U=N6();switch(xF){case l2:case _7:var B=A2;L1&&((N=N._debugTask)?N.run(console.timeStamp.bind(console,"Suspended",B,U,j5,void 0,"primary-light")):console.timeStamp("Suspended",B,U,j5,void 0,"primary-light"));break;case I7:B=A2,L1&&((N=N._debugTask)?N.run(console.timeStamp.bind(console,"Action",B,U,j5,void 0,"primary-light")):console.timeStamp("Action",B,U,j5,void 0,"primary-light"));break;default:L1&&(N=U-A2,3>N||console.timeStamp("Blocked",A2,U,j5,void 0,5>N?"primary-light":10>N?"primary":100>N?"primary-dark":"error"))}}B=(G=!G&&(Q&127)===0&&(Q&$.expiredLanes)===0||c8($,Q))?M_($,Q):qN($,Q,!0);var F=G;do{if(B===R$){i9&&!G&&i$($,Q,0,!1),Q=Y1,A2=l1(),xF=Q;break}else{if(N=N6(),U=$.current.alternate,F&&!H_(U)){Y5(Q),U=Y6,B=N,!L1||B<=U||(h1?h1.run(console.timeStamp.bind(console,"Teared Render",U,B,p0,m0,"error")):console.timeStamp("Teared Render",U,B,p0,m0,"error")),U7(Q,N),B=qN($,Q,!1),F=!1;continue}if(B===C7){if(F=Q,$.errorRecoveryDisabledLanes&F)var R=0;else R=$.pendingLanes&-536870913,R=R!==0?R:R&536870912?536870912:0;if(R!==0){Y5(Q),mX(Y6,N,Q,h1),U7(Q,N),Q=R;$:{N=$,B=F,F=s2;var L=N.current.memoizedState.isDehydrated;if(L&&(F9(N,R).flags|=256),R=qN(N,R,!1),R!==C7){if(hY&&!L){N.errorRecoveryDisabledLanes|=B,R8|=B,B=W8;break $}N=h6,h6=F,N!==null&&(h6===null?h6=N:h6.push.apply(h6,N))}B=R}if(F=!1,B!==C7)continue;else N=N6()}}if(B===c2){Y5(Q),mX(Y6,N,Q,h1),U7(Q,N),F9($,0),i$($,Q,0,!0);break}$:{switch(G=$,B){case R$:case c2:throw Error("Root did not complete. This is a bug in React.");case W8:if((Q&4194048)!==Q)break;case aG:Y5(Q),PB(Y6,N,Q,h1),U7(Q,N),U=Q,(U&127)!==0?fG=N:(U&4194048)!==0&&(gG=N),i$(G,Q,s6,!F8);break $;case C7:h6=null;break;case iG:case kw:break;default:throw Error("Unknown root exit status.")}if(u.actQueue!==null)XN(G,U,Q,h6,n2,$q,s6,R8,V7,B,null,null,Y6,N);else{if((Q&62914560)===Q&&(F=Qq+fw-N6(),10<F)){if(i$(G,Q,s6,!F8),p8(G,0,!0)!==0)break $;G4=Q,G.timeoutHandle=QR(CM.bind(null,G,U,h6,n2,$q,Q,s6,R8,V7,F8,B,"Throttled",Y6,N),F);break $}CM(G,U,h6,n2,$q,Q,s6,R8,V7,F8,B,null,Y6,N)}}}break}while(1);I4($)}function CM($,Q,G,N,U,B,F,R,L,C,b,y,j,g){$.timeoutHandle=S7;var $0=Q.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:i4},WM(Q,B,G0),$0=(B&62914560)===B?Qq-N6():(B&4194048)===B?yw-N6():0,$0=e_(G0,$0),$0!==null){G4=B,$.cancelPendingCommit=$0(XN.bind(null,$,Q,B,G,N,U,F,R,L,b,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,j,g)),i$($,B,F,!C);return}}XN($,Q,B,G,N,U,F,R,L,b,G0,y,j,g)}function H_($){for(var Q=$;;){var G=Q.tag;if((G===0||G===11||G===15)&&Q.flags&16384&&(G=Q.updateQueue,G!==null&&(G=G.stores,G!==null)))for(var N=0;N<G.length;N++){var U=G[N],B=U.getSnapshot;U=U.value;try{if(!b6(B(),U))return!1}catch(F){return!1}}if(G=Q.child,Q.subtreeFlags&16384&&G!==null)G.return=Q,Q=G;else{if(Q===$)break;for(;Q.sibling===null;){if(Q.return===null||Q.return===$)return!0;Q=Q.return}Q.sibling.return=Q.return,Q=Q.sibling}}return!0}function i$($,Q,G,N){Q&=~xY,Q&=~R8,$.suspendedLanes|=Q,$.pingedLanes&=~Q,N&&($.warmLanes|=Q),N=$.expirationTimes;for(var U=Q;0<U;){var B=31-D6(U),F=1<<B;N[B]=-1,U&=~F}G!==0&&l8($,G,Q)}function W9(){return(i0&(J6|P5))===K6?(J2(0,!1),!1):!0}function GN(){if(g0!==null){if(Y1===r6)var $=g0.return;else $=g0,_Z(),F3($),m9=null,g2=0,$=g0;for(;$!==null;)sH($.alternate,$),$=$.return;g0=null}}function U7($,Q){($&127)!==0&&(U8=Q),($&4194048)!==0&&(y4=Q),($&62914560)!==0&&(gF=Q),($&2080374784)!==0&&(hF=Q)}function F9($,Q){L1&&(console.timeStamp("Blocking Track",0.003,0.003,"Blocking",m0,"primary-light"),console.timeStamp("Transition Track",0.003,0.003,"Transition",m0,"primary-light"),console.timeStamp("Suspense Track",0.003,0.003,"Suspense",m0,"primary-light"),console.timeStamp("Idle Track",0.003,0.003,"Idle",m0,"primary-light"));var G=Y6;if(Y6=l1(),f0!==0&&0<G){if(Y5(f0),S1===iG||S1===W8)PB(G,Y6,Q,h1);else{var N=Y6,U=h1;if(L1&&!(N<=G)){var B=(Q&738197653)===Q?"tertiary-dark":"primary-dark",F=(Q&536870912)===Q?"Prewarm":(Q&201326741)===Q?"Interrupted Hydration":"Interrupted Render";U?U.run(console.timeStamp.bind(console,F,G,N,p0,m0,B)):console.timeStamp(F,G,N,p0,m0,B)}}U7(f0,Y6)}if(G=h1,h1=null,(Q&127)!==0){h1=V2,U=0<=b4&&b4<U8?U8:b4,N=0<=W7&&W7<U8?U8:W7,B=0<=N?N:0<=U?U:Y6,0<=fG?(Y5(2),CB(fG,B,Q,G)):(hG&127)!==0&&(Y5(2),fQ(U8,B,H$)),G=U;var R=N,L=O2,C=0<h9,b=K8===I2,y=K8===yG;if(U=Y6,N=V2,B=RY,F=zY,L1){if(p0="Blocking",0<G?G>U&&(G=U):G=U,0<R?R>G&&(R=G):R=G,L!==null&&G>R){var j=C?"secondary-light":"warning";N?N.run(console.timeStamp.bind(console,C?"Consecutive":"Event: "+L,R,G,p0,m0,j)):console.timeStamp(C?"Consecutive":"Event: "+L,R,G,p0,m0,j)}U>G&&(R=b?"error":(Q&738197653)===Q?"tertiary-light":"primary-light",b=y?"Promise Resolved":b?"Cascading Update":5<U-G?"Update Blocked":"Update",y=[],F!=null&&y.push(["Component name",F]),B!=null&&y.push(["Method name",B]),G={start:G,end:U,detail:{devtools:{properties:y,track:p0,trackGroup:m0,color:R}}},N?N.run(performance.measure.bind(performance,b,G)):performance.measure(b,G))}b4=-1.1,K8=0,zY=RY=null,fG=-1.1,h9=W7,W7=-1.1,U8=l1()}if((Q&4194048)!==0&&(h1=E2,U=0<=B$&&B$<y4?y4:B$,G=0<=y5&&y5<y4?y4:y5,N=0<=B8&&B8<y4?y4:B8,B=0<=N?N:0<=G?G:Y6,0<=gG?(Y5(256),CB(gG,B,Q,h1)):(hG&4194048)!==0&&(Y5(256),fQ(y4,B,H$)),y=N,R=F7,L=0<H8,C=TY===yG,B=Y6,N=E2,F=yF,b=fF,L1&&(p0="Transition",0<G?G>B&&(G=B):G=B,0<U?U>G&&(U=G):U=G,0<y?y>U&&(y=U):y=U,U>y&&R!==null&&(j=L?"secondary-light":"warning",N?N.run(console.timeStamp.bind(console,L?"Consecutive":"Event: "+R,y,U,p0,m0,j)):console.timeStamp(L?"Consecutive":"Event: "+R,y,U,p0,m0,j)),G>U&&(N?N.run(console.timeStamp.bind(console,"Action",U,G,p0,m0,"primary-dark")):console.timeStamp("Action",U,G,p0,m0,"primary-dark")),B>G&&(U=C?"Promise Resolved":5<B-G?"Update Blocked":"Update",y=[],b!=null&&y.push(["Component name",b]),F!=null&&y.push(["Method name",F]),G={start:G,end:B,detail:{devtools:{properties:y,track:p0,trackGroup:m0,color:"primary-light"}}},N?N.run(performance.measure.bind(performance,U,G)):performance.measure(U,G))),y5=B$=-1.1,TY=0,gG=-1.1,H8=B8,B8=-1.1,y4=l1()),(Q&62914560)!==0&&(hG&62914560)!==0&&(Y5(4194304),fQ(gF,Y6,H$)),(Q&2080374784)!==0&&(hG&2080374784)!==0&&(Y5(268435456),fQ(hF,Y6,H$)),G=$.timeoutHandle,G!==S7&&($.timeoutHandle=S7,lV(G)),G=$.cancelPendingCommit,G!==null&&($.cancelPendingCommit=null,G()),G4=0,GN(),W1=$,g0=G=a4($.current,null),f0=Q,Y1=r6,C5=null,F8=!1,i9=c8($,Q),hY=!1,S1=R$,V7=s6=xY=R8=w8=0,h6=s2=null,$q=!1,(Q&8)!==0&&(Q|=Q&32),N=$.entangledLanes,N!==0)for($=$.entanglements,N&=Q;0<N;)U=31-D6(N),B=1<<U,Q|=$[U],N&=~B;return g4=Q,zZ(),$=jF(),1000<$-AF&&(u.recentlyCreatedOwnerStacks=0,AF=$),Q4.discardPendingWarnings(),G}function _M($,Q){V0=null,u.H=m2,u.getCurrentStack=null,A4=!1,w5=null,Q===u9||Q===dG?(Q=cB(),Y1=l2):Q===_Y?(Q=cB(),Y1=bw):Y1=Q===kY?gY:Q!==null&&typeof Q==="object"&&typeof Q.then==="function"?r2:tG,C5=Q;var G=g0;G===null?(S1=c2,nZ($,U5(Q,$.current))):G.mode&b0&&J3(G)}function IM(){var $=T5.current;return $===null?!0:(f0&4194048)===f0?f5===null?!0:!1:(f0&62914560)===f0||(f0&536870912)!==0?$===f5:!1}function VM(){var $=u.H;return u.H=m2,$===null?m2:$}function OM(){var $=u.A;return u.A=DV,$}function JG($){h1===null&&(h1=$._debugTask==null?null:$._debugTask)}function ZG(){S1=W8,F8||(f0&4194048)!==f0&&T5.current!==null||(i9=!0),(w8&134217727)===0&&(R8&134217727)===0||W1===null||i$(W1,f0,s6,!1)}function qN($,Q,G){var N=i0;i0|=J6;var U=VM(),B=OM();if(W1!==$||f0!==Q){if(S4){var F=$.memoizedUpdaters;0<F.size&&(Q2($,f0),F.clear()),x$($,Q)}n2=null,F9($,Q)}Q=!1,F=S1;$:do try{if(Y1!==r6&&g0!==null){var R=g0,L=C5;switch(Y1){case gY:GN(),F=aG;break $;case l2:case _7:case I7:case r2:T5.current===null&&(Q=!0);var C=Y1;if(Y1=r6,C5=null,w9($,R,L,C),G&&i9){F=R$;break $}break;default:C=Y1,Y1=r6,C5=null,w9($,R,L,C)}}EM(),F=S1;break}catch(b){_M($,b)}while(1);return Q&&$.shellSuspendCounter++,_Z(),i0=N,u.H=U,u.A=B,g0===null&&(W1=null,f0=0,zZ()),F}function EM(){for(;g0!==null;)AM(g0)}function M_($,Q){var G=i0;i0|=J6;var N=VM(),U=OM();if(W1!==$||f0!==Q){if(S4){var B=$.memoizedUpdaters;0<B.size&&(Q2($,f0),B.clear()),x$($,Q)}n2=null,Jq=N6()+gw,F9($,Q)}else i9=c8($,Q);$:do try{if(Y1!==r6&&g0!==null)Q:switch(Q=g0,B=C5,Y1){case tG:Y1=r6,C5=null,w9($,Q,B,tG);break;case _7:case I7:if(dB(B)){Y1=r6,C5=null,jM(Q);break}Q=function(){Y1!==_7&&Y1!==I7||W1!==$||(Y1=eG),I4($)},B.then(Q,Q);break $;case l2:Y1=eG;break $;case bw:Y1=fY;break $;case eG:dB(B)?(Y1=r6,C5=null,jM(Q)):(Y1=r6,C5=null,w9($,Q,B,eG));break;case fY:var F=null;switch(g0.tag){case 26:F=g0.memoizedState;case 5:case 27:var R=g0;if(F?PW(F):R.stateNode.complete){Y1=r6,C5=null;var L=R.sibling;if(L!==null)g0=L;else{var C=R.return;C!==null?(g0=C,GG(C)):g0=null}break Q}break;default:console.error("Unexpected type of fiber triggered a suspensey commit. This is a bug in React.")}Y1=r6,C5=null,w9($,Q,B,fY);break;case r2:Y1=r6,C5=null,w9($,Q,B,r2);break;case gY:GN(),S1=aG;break $;default:throw Error("Unexpected SuspendedReason. This is a bug in React.")}u.actQueue!==null?EM():W_();break}catch(b){_M($,b)}while(1);if(_Z(),u.H=N,u.A=U,i0=G,g0!==null)return R$;return W1=null,f0=0,zZ(),S1}function W_(){for(;g0!==null&&!HI();)AM(g0)}function AM($){var Q=$.alternate;($.mode&b0)!==I0?(Q3($),Q=q0($,o3,Q,$,g4),J3($)):Q=q0($,o3,Q,$,g4),$.memoizedProps=$.pendingProps,Q===null?GG($):g0=Q}function jM($){var Q=q0($,F_,$);$.memoizedProps=$.pendingProps,Q===null?GG($):g0=Q}function F_($){var Q=$.alternate,G=($.mode&b0)!==I0;switch(G&&Q3($),$.tag){case 15:case 0:Q=uH(Q,$,$.pendingProps,$.type,void 0,f0);break;case 11:Q=uH(Q,$,$.pendingProps,$.type.render,$.ref,f0);break;case 5:F3($);default:sH(Q,$),$=g0=AB($,g4),Q=o3(Q,$,g4)}return G&&J3($),Q}function w9($,Q,G,N){_Z(),F3(Q),m9=null,g2=0;var U=Q.return;try{if(eC($,U,Q,G,f0)){S1=c2,nZ($,U5(G,$.current)),g0=null;return}}catch(B){if(U!==null)throw g0=U,B;S1=c2,nZ($,U5(G,$.current)),g0=null;return}if(Q.flags&32768){if(l0||N===tG)$=!0;else if(i9||(f0&536870912)!==0)$=!1;else if(F8=$=!0,N===_7||N===I7||N===l2||N===r2)N=T5.current,N!==null&&N.tag===13&&(N.flags|=16384);SM(Q,$)}else GG(Q)}function GG($){var Q=$;do{if((Q.flags&32768)!==0){SM(Q,F8);return}var G=Q.alternate;if($=Q.return,Q3(Q),G=q0(Q,J_,G,Q,g4),(Q.mode&b0)!==I0&&gB(Q),G!==null){g0=G;return}if(Q=Q.sibling,Q!==null){g0=Q;return}g0=Q=$}while(Q!==null);S1===R$&&(S1=kw)}function SM($,Q){do{var G=Z_($.alternate,$);if(G!==null){G.flags&=32767,g0=G;return}if(($.mode&b0)!==I0){gB($),G=$.actualDuration;for(var N=$.child;N!==null;)G+=N.actualDuration,N=N.sibling;$.actualDuration=G}if(G=$.return,G!==null&&(G.flags|=32768,G.subtreeFlags=0,G.deletions=null),!Q&&($=$.sibling,$!==null)){g0=$;return}g0=$=G}while($!==null);S1=aG,g0=null}function XN($,Q,G,N,U,B,F,R,L,C,b,y,j,g){$.cancelPendingCommit=null;do $2();while(i1!==T8);if(Q4.flushLegacyContextWarning(),Q4.flushPendingUnsafeLifecycleWarnings(),(i0&(J6|P5))!==K6)throw Error("Should not already be working.");if(Y5(G),C===C7?mX(j,g,G,h1):N!==null?uC(j,g,G,N,Q!==null&&Q.alternate!==null&&Q.alternate.memoizedState.isDehydrated&&(Q.flags&256)!==0,h1):xC(j,g,G,h1),Q!==null){if(G===0&&console.error("finishedLanes should not be empty during a commit. This is a bug in React."),Q===$.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=Q.lanes|Q.childLanes,B|=HY,NZ($,G,B,F,R,L),$===W1&&(g0=W1=null,f0=0),a9=Q,L8=$,G4=G,dY=B,cY=U,pw=N,pY=g,cw=y,q4=Zq,lw=null,Q.actualDuration!==0||(Q.subtreeFlags&10256)!==0||(Q.flags&10256)!==0?($.callbackNode=null,$.callbackPriority=0,L_(C9,function(){return $J=window.event,q4===Zq&&(q4=mY),yM(),null})):($.callbackNode=null,$.callbackPriority=0),K$=null,Y8=l1(),y!==null&&mC(g,Y8,y,h1),N=(Q.flags&13878)!==0,(Q.subtreeFlags&13878)!==0||N){N=u.T,u.T=null,U=q1.p,q1.p=R5,F=i0,i0|=P5;try{U_($,Q,G)}finally{i0=F,q1.p=U,u.T=N}}i1=xw,DM(),vM(),kM()}}function DM(){if(i1===xw){i1=T8;var $=L8,Q=a9,G=G4,N=(Q.flags&13878)!==0;if((Q.subtreeFlags&13878)!==0||N){N=u.T,u.T=null;var U=q1.p;q1.p=R5;var B=i0;i0|=P5;try{n9=G,o9=$,EZ(),YM(Q,$),o9=n9=null,G=QU;var F=zB($.containerInfo),R=G.focusedElem,L=G.selectionRange;if(F!==R&&R&&R.ownerDocument&&RB(R.ownerDocument.documentElement,R)){if(L!==null&&hX(R)){var{start:C,end:b}=L;if(b===void 0&&(b=C),"selectionStart"in R)R.selectionStart=C,R.selectionEnd=Math.min(b,R.value.length);else{var y=R.ownerDocument||document,j=y&&y.defaultView||window;if(j.getSelection){var g=j.getSelection(),$0=R.textContent.length,G0=Math.min(L.start,$0),R1=L.end===void 0?G0:Math.min(L.end,$0);!g.extend&&G0>R1&&(F=R1,R1=G0,G0=F);var n0=wB(R,G0),A=wB(R,R1);if(n0&&A&&(g.rangeCount!==1||g.anchorNode!==n0.node||g.anchorOffset!==n0.offset||g.focusNode!==A.node||g.focusOffset!==A.offset)){var S=y.createRange();S.setStart(n0.node,n0.offset),g.removeAllRanges(),G0>R1?(g.addRange(S),g.extend(A.node,A.offset)):(S.setEnd(A.node,A.offset),g.addRange(S))}}}}y=[];for(g=R;g=g.parentNode;)g.nodeType===1&&y.push({element:g,left:g.scrollLeft,top:g.scrollTop});typeof R.focus==="function"&&R.focus();for(R=0;R<y.length;R++){var k=y[R];k.element.scrollLeft=k.left,k.element.scrollTop=k.top}}Tq=!!$U,QU=$U=null}finally{i0=B,q1.p=U,u.T=N}}$.current=Q,i1=uw}}function vM(){if(i1===uw){i1=T8;var $=lw;if($!==null){Y8=l1();var Q=U$,G=Y8;!L1||G<=Q||(H$?H$.run(console.timeStamp.bind(console,$,Q,G,p0,m0,"secondary-light")):console.timeStamp($,Q,G,p0,m0,"secondary-light"))}$=L8,Q=a9,G=G4;var N=(Q.flags&8772)!==0;if((Q.subtreeFlags&8772)!==0||N){N=u.T,u.T=null;var U=q1.p;q1.p=R5;var B=i0;i0|=P5;try{n9=G,o9=$,EZ(),ZM($,Q.alternate,Q),o9=n9=null}finally{i0=B,q1.p=U,u.T=N}}$=pY,Q=cw,U$=l1(),$=Q===null?$:Y8,Q=U$,G=q4===uY,N=h1,K$!==null?_B($,Q,K$,!1,N):!L1||Q<=$||(N?N.run(console.timeStamp.bind(console,G?"Commit Interrupted View Transition":"Commit",$,Q,p0,m0,G?"error":"secondary-dark")):console.timeStamp(G?"Commit Interrupted View Transition":"Commit",$,Q,p0,m0,G?"error":"secondary-dark")),i1=mw}}function kM(){if(i1===dw||i1===mw){if(i1===dw){var $=U$;U$=l1();var Q=U$,G=q4===uY;!L1||Q<=$||(H$?H$.run(console.timeStamp.bind(console,G?"Interrupted View Transition":"Starting Animation",$,Q,p0,m0,G?"error":"secondary-light")):console.timeStamp(G?"Interrupted View Transition":"Starting Animation",$,Q,p0,m0,G?" error":"secondary-light")),q4!==uY&&(q4=hw)}i1=T8,MI(),$=L8;var N=a9;Q=G4,G=pw;var U=N.actualDuration!==0||(N.subtreeFlags&10256)!==0||(N.flags&10256)!==0;U?i1=Gq:(i1=T8,a9=L8=null,bM($,$.pendingLanes),O7=0,i2=null);var B=$.pendingLanes;if(B===0&&(z8=null),U||xM($),B=_(Q),N=N.stateNode,I6&&typeof I6.onCommitFiberRoot==="function")try{var F=(N.current.flags&128)===128;switch(B){case R5:var R=cN;break;case e5:R=lN;break;case D4:R=C9;break;case CG:R=rN;break;default:R=C9}I6.onCommitFiberRoot(_9,N,R,F)}catch(y){j4||(j4=!0,console.error("React instrumentation encountered an error: %o",y))}if(S4&&$.memoizedUpdaters.clear(),B_(),G!==null){F=u.T,R=q1.p,q1.p=R5,u.T=null;try{var L=$.onRecoverableError;for(N=0;N<G.length;N++){var C=G[N],b=w_(C.stack);q0(C.source,L,C.value,b)}}finally{u.T=F,q1.p=R}}(G4&3)!==0&&$2(),I4($),B=$.pendingLanes,(Q&261930)!==0&&(B&42)!==0?(uG=!0,$===lY?o2++:(o2=0,lY=$)):o2=0,U||U7(Q,U$),J2(0,!1)}}function w_($){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 bM($,Q){($.pooledCacheLanes&=Q)===0&&(Q=$.pooledCache,Q!=null&&($.pooledCache=null,hQ(Q)))}function $2(){return DM(),vM(),kM(),yM()}function yM(){if(i1!==Gq)return!1;var $=L8,Q=dY;dY=0;var G=_(G4),N=D4===0||D4>G?D4:G;G=u.T;var U=q1.p;try{q1.p=N,u.T=null;var B=cY;cY=null,N=L8;var F=G4;if(i1=T8,a9=L8=null,G4=0,(i0&(J6|P5))!==K6)throw Error("Cannot flush passive effects while already rendering.");Y5(F),rY=!0,qq=!1;var R=0;if(K$=null,R=N6(),q4===hw)fQ(U$,R,H$);else{var L=U$,C=R,b=q4===mY;!L1||C<=L||(h1?h1.run(console.timeStamp.bind(console,b?"Waiting for Paint":"Waiting",L,C,p0,m0,"secondary-light")):console.timeStamp(b?"Waiting for Paint":"Waiting",L,C,p0,m0,"secondary-light"))}L=i0,i0|=P5;var y=N.current;EZ(),wM(y);var j=N.current;y=pY,EZ(),HM(N,j,F,B,y),xM(N),i0=L;var g=N6();if(j=R,y=h1,K$!==null?_B(j,g,K$,!0,y):!L1||g<=j||(y?y.run(console.timeStamp.bind(console,"Remaining Effects",j,g,p0,m0,"secondary-dark")):console.timeStamp("Remaining Effects",j,g,p0,m0,"secondary-dark")),U7(F,g),J2(0,!1),qq?N===i2?O7++:(O7=0,i2=N):O7=0,qq=rY=!1,I6&&typeof I6.onPostCommitFiberRoot==="function")try{I6.onPostCommitFiberRoot(_9,N)}catch(G0){j4||(j4=!0,console.error("React instrumentation encountered an error: %o",G0))}var $0=N.current.stateNode;return $0.effectDuration=0,$0.passiveEffectDuration=0,!0}finally{q1.p=U,u.T=G,bM($,Q)}}function fM($,Q,G){Q=U5(G,Q),hB(Q),Q=h3($.stateNode,Q,2),$=r$($,Q,2),$!==null&&(h$($,2),I4($))}function G1($,Q,G){if(t9=!1,$.tag===3)fM($,$,G);else{for(;Q!==null;){if(Q.tag===3){fM(Q,$,G);return}if(Q.tag===1){var N=Q.stateNode;if(typeof Q.type.getDerivedStateFromError==="function"||typeof N.componentDidCatch==="function"&&(z8===null||!z8.has(N))){$=U5(G,$),hB($),G=x3(2),N=r$(Q,G,2),N!==null&&(u3(G,N,Q,$),h$(N,2),I4(N));return}}Q=Q.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
|
|
|
157
|
-
%s`,G)}}function
|
|
157
|
+
%s`,G)}}function NN($,Q,G){var N=$.pingCache;if(N===null){N=$.pingCache=new kV;var U=new Set;N.set(Q,U)}else U=N.get(Q),U===void 0&&(U=new Set,N.set(Q,U));U.has(G)||(hY=!0,U.add(G),N=R_.bind(null,$,Q,G),S4&&Q2($,G),Q.then(N,N))}function R_($,Q,G){var N=$.pingCache;N!==null&&N.delete(Q),$.pingedLanes|=$.suspendedLanes&G,$.warmLanes&=~G,(G&127)!==0?0>b4&&(U8=b4=l1(),V2=bG("Promise Resolved"),K8=yG):(G&4194048)!==0&&0>y5&&(y4=y5=l1(),E2=bG("Promise Resolved"),TY=yG),TM()&&u.actQueue===null&&console.error(`A suspended resource finished loading inside a test, but the event was not wrapped in act(...).
|
|
158
158
|
|
|
159
159
|
When testing, code that resolves suspended data should be wrapped into act(...):
|
|
160
160
|
|
|
@@ -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`),W1===$&&(
|
|
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`),W1===$&&(f0&G)===G&&(S1===W8||S1===iG&&(f0&62914560)===f0&&N6()-Qq<fw?(i0&J6)===K6&&F9($,0):xY|=G,V7===f0&&(V7=0)),I4($)}function gM($,Q){Q===0&&(Q=$9()),$=_6($,Q),$!==null&&(h$($,Q),I4($))}function z_($){var Q=$.memoizedState,G=0;Q!==null&&(G=Q.retryLane),gM($,G)}function T_($,Q){var G=0;switch($.tag){case 31:case 13:var{stateNode:N,memoizedState:U}=$;U!==null&&(G=U.retryLane);break;case 19:N=$.stateNode;break;case 22:N=$.stateNode._retryCache;break;default:throw Error("Pinged unknown suspense boundary type. This is probably a bug in React.")}N!==null&&N.delete(Q),gM($,G)}function YN($,Q,G){if((Q.subtreeFlags&67117056)!==0)for(Q=Q.child;Q!==null;){var N=$,U=Q,B=U.type===wG;B=G||B,U.tag!==22?U.flags&67108864?B&&q0(U,hM,N,U):YN(N,U,B):U.memoizedState===null&&(B&&U.flags&8192?q0(U,hM,N,U):U.subtreeFlags&67108864&&q0(U,YN,N,U,B)),Q=Q.sibling}}function hM($,Q){F1(!0);try{KM(Q),RM(Q),BM($,Q.alternate,Q,!1),MM($,Q,0,null,!1,0)}finally{F1(!1)}}function xM($){var Q=!0;$.current.mode&(V6|$4)||(Q=!1),YN($,$.current,Q)}function uM($){if((i0&J6)===K6){var Q=$.tag;if(Q===3||Q===1||Q===0||Q===11||Q===14||Q===15){if(Q=d($)||"ReactComponent",Xq!==null){if(Xq.has(Q))return;Xq.add(Q)}else Xq=new Set([Q]);q0($,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 Q2($,Q){S4&&$.memoizedUpdaters.forEach(function(G){EQ($,G,Q)})}function L_($,Q){var G=u.actQueue;return G!==null?(G.push(Q),fV):pN($,Q)}function P_($){TM()&&u.actQueue===null&&q0($,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,86 +172,86 @@ 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 C4($){$!==a7&&$.next===null&&(a7===null?J3=a7=$:a7=a7.next=$),G3=!0,x.actQueue!==null?cN||(cN=!0,mM()):pN||(pN=!0,mM())}function ZZ($,Z){if(!lN&&G3){lN=!0;do{var G=!1;for(var Y=J3;Y!==null;){if(!Z)if($!==0){var U=Y.pendingLanes;if(U===0)var B=0;else{var{suspendedLanes:W,pingedLanes:R}=Y;B=(1<<31-j5(42|$)+1)-1,B&=U&~(W&~R),B=B&201326741?B&201326741|1:B?B|2:0}B!==0&&(G=!0,xM(Y,B))}else B=g0,B=m2(Y,Y===W1?B:0,Y.cancelPendingCommit!==null||Y.timeoutHandle!==A9),(B&3)===0||d2(Y,B)||(G=!0,xM(Y,B));Y=Y.next}}while(G);lN=!1}}function L_(){eZ=window.event,XY()}function XY(){G3=cN=pN=!1;var $=0;w2!==0&&A_()&&($=w2);for(var Z=Y5(),G=null,Y=J3;Y!==null;){var U=Y.next,B=hM(Y,Z);if(B===0)Y.next=null,G===null?J3=U:G.next=U,U===null&&(a7=G);else if(G=Y,$!==0||(B&3)!==0)G3=!0;Y=U}i1!==F2&&i1!==$3||ZZ($,!1),w2!==0&&(w2=0)}function hM($,Z){for(var{suspendedLanes:G,pingedLanes:Y,expirationTimes:U}=$,B=$.pendingLanes&-62914561;0<B;){var W=31-j5(B),R=1<<W,P=U[W];if(P===-1){if((R&G)===0||(R&Y)!==0)U[W]=_X(R,Z)}else P<=Z&&($.expiredLanes|=R);B&=~R}if(Z=W1,G=g0,G=m2($,$===Z?G:0,$.cancelPendingCommit!==null||$.timeoutHandle!==A9),Y=$.callbackNode,G===0||$===Z&&(U1===L9||U1===C9)||$.cancelPendingCommit!==null)return Y!==null&&qY(Y),$.callbackNode=null,$.callbackPriority=0;if((G&3)===0||d2($,G)){if(Z=G&-G,Z!==$.callbackPriority||x.actQueue!==null&&Y!==rN)qY(Y);else return Z;switch(_(G)){case W6:case a6:G=mY;break;case j4:G=P7;break;case zG:G=dY;break;default:G=P7}return Y=uM.bind(null,$),x.actQueue!==null?(x.actQueue.push(Y),G=rN):G=uY(G,Y),$.callbackPriority=Z,$.callbackNode=G,Z}return Y!==null&&qY(Y),$.callbackPriority=2,$.callbackNode=null,2}function uM($,Z){if(yG=fG=!1,eZ=window.event,i1!==F2&&i1!==$3)return $.callbackNode=null,$.callbackPriority=0,null;var G=$.callbackNode;if(J4===eG&&(J4=gN),e$()&&$.callbackNode!==G)return null;var Y=g0;if(Y=m2($,$===W1?Y:0,$.cancelPendingCommit!==null||$.timeoutHandle!==A9),Y===0)return null;return zM($,Y,Z),hM($,Y5()),$.callbackNode!=null&&$.callbackNode===G?uM.bind(null,$):null}function xM($,Z){if(e$())return null;fG=yG,yG=!1,zM($,Z,!0)}function qY($){$!==rN&&$!==null&&KI($)}function mM(){x.actQueue!==null&&x.actQueue.push(function(){return XY(),null}),lV(function(){(a0&(Q5|T6))!==K5?uY(xY,L_):XY()})}function YY(){if(w2===0){var $=F9;$===0&&($=WG,WG<<=1,(WG&261888)===0&&(WG=256)),w2=$}return w2}function dM($){if($==null||typeof $==="symbol"||typeof $==="boolean")return null;if(typeof $==="function")return $;return B1($,"action"),v$(""+$)}function pM($,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 C_($,Z,G,Y,U){if(Z==="submit"&&G&&G.stateNode===U){var B=dM((U[S5]||null).action),W=Y.submitter;W&&(Z=(Z=W[S5]||null)?dM(Z.formAction):W.getAttribute("formAction"),Z!==null&&(B=Z,W=null));var R=new _G("action","action",null,Y,U);$.push({event:R,listeners:[{instance:null,listener:function(){if(Y.defaultPrevented){if(w2!==0){var P=W?pM(U,W):new FormData(U),C={pending:!0,data:P,method:U.method,action:B};Object.freeze(C),Eq(G,C,null,P)}}else typeof B==="function"&&(R.preventDefault(),P=W?pM(U,W):new FormData(U),C={pending:!0,data:P,method:U.method,action:B},Object.freeze(C),Eq(G,C,B,P))},currentTarget:U}]})}}function ZG($,Z,G){$.currentTarget=G;try{Z($)}catch(Y){GN(Y)}$.currentTarget=null}function cM($,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 R=Y[W],P=R.instance,C=R.currentTarget;if(R=R.listener,P!==U&&B.isPropagationStopped())break $;P!==null?G0(P,ZG,B,R,C):ZG(B,R,C),U=P}else for(W=0;W<Y.length;W++){if(R=Y[W],P=R.instance,C=R.currentTarget,R=R.listener,P!==U&&B.isPropagationStopped())break $;P!==null?G0(P,ZG,B,R,C):ZG(B,R,C),U=P}}}}function n0($,Z){sN.has($)||console.error('Did not expect a listenToNonDelegatedEvent() call for "%s". This is a bug in React. Please file an issue.',$);var G=Z[pY];G===void 0&&(G=Z[pY]=new Set);var Y=$+"__bubble";G.has(Y)||(lM(Z,$,2,!1),G.add(Y))}function NY($,Z,G){sN.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),lM(G,$,Y,Z)}function UY($){if(!$[X3]){$[X3]=!0,mF.forEach(function(G){G!=="selectionchange"&&(sN.has(G)||NY(G,!1,$),NY(G,!0,$))});var Z=$.nodeType===9?$:$.ownerDocument;Z===null||Z[X3]||(Z[X3]=!0,NY("selectionchange",!1,Z))}}function lM($,Z,G,Y){switch(IF(Z)){case W6:var U=QI;break;case a6:U=JI;break;default:U=VY}G=U.bind(null,Z,G,$),U=void 0,!nY||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 KY($,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 R=Y.stateNode.containerInfo;if(R===U)break;if(W===4)for(W=Y.return;W!==null;){var P=W.tag;if((P===3||P===4)&&W.stateNode.containerInfo===U)return;W=W.return}for(;R!==null;){if(W=Y0(R),W===null)return;if(P=W.tag,P===5||P===6||P===26||P===27){Y=B=W;continue $}R=R.parentNode}}Y=Y.return}QB(function(){var C=B,k=vX(G),f=[];$:{var j=IW.get($);if(j!==void 0){var g=_G,e=$;switch($){case"keypress":if(UJ(G)===0)break $;case"keydown":case"keyup":g=aI;break;case"focusin":e="focus",g=tY;break;case"focusout":e="blur",g=tY;break;case"beforeblur":case"afterblur":g=tY;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=KW;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":g=uI;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":g=$V;break;case PW:case LW:case CW:g=dI;break;case _W:g=QV;break;case"scroll":case"scrollend":g=gI;break;case"wheel":g=GV;break;case"copy":case"cut":case"paste":g=cI;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":g=HW;break;case"toggle":case"beforetoggle":g=qV}var J0=(Z&4)!==0,z1=!J0&&($==="scroll"||$==="scrollend"),o0=J0?j!==null?j+"Capture":null:j;J0=[];for(var A=C,S;A!==null;){var b=A;if(S=b.stateNode,b=b.tag,b!==5&&b!==26&&b!==27||S===null||o0===null||(b=b$(A,o0),b!=null&&J0.push(QZ(A,b,S))),z1)break;A=A.return}0<J0.length&&(j=new g(j,e,null,G,k),f.push({event:j,listeners:J0}))}}if((Z&7)===0){$:{if(j=$==="mouseover"||$==="pointerover",g=$==="mouseout"||$==="pointerout",j&&G!==MZ&&(e=G.relatedTarget||G.fromElement)&&(Y0(e)||e[a8]))break $;if(g||j){if(j=k.window===k?k:(j=k.ownerDocument)?j.defaultView||j.parentWindow:window,g){if(e=G.relatedTarget||G.toElement,g=C,e=e?Y0(e):null,e!==null&&(z1=D(e),J0=e.tag,e!==z1||J0!==5&&J0!==27&&J0!==6))e=null}else g=null,e=C;if(g!==e){if(J0=KW,b="onMouseLeave",o0="onMouseEnter",A="mouse",$==="pointerout"||$==="pointerover")J0=HW,b="onPointerLeave",o0="onPointerEnter",A="pointer";if(z1=g==null?j:S0(g),S=e==null?j:S0(e),j=new J0(b,A+"leave",g,G,k),j.target=z1,j.relatedTarget=S,b=null,Y0(k)===C&&(J0=new J0(o0,A+"enter",e,G,k),J0.target=S,J0.relatedTarget=z1,b=J0),z1=b,g&&e)Z:{J0=__,o0=g,A=e,S=0;for(b=o0;b;b=J0(b))S++;b=0;for(var m=A;m;m=J0(m))b++;for(;0<S-b;)o0=J0(o0),S--;for(;0<b-S;)A=J0(A),b--;for(;S--;){if(o0===A||A!==null&&o0===A.alternate){J0=o0;break Z}o0=J0(o0),A=J0(A)}J0=null}else J0=null;g!==null&&rM(f,j,g,J0,!1),e!==null&&z1!==null&&rM(f,z1,e,J0,!0)}}}$:{if(j=C?S0(C):window,g=j.nodeName&&j.nodeName.toLowerCase(),g==="select"||g==="input"&&j.type==="file")var Q0=UB;else if(YB(j))if(zW)Q0=fC;else{Q0=bC;var O0=vC}else g=j.nodeName,!g||g.toLowerCase()!=="input"||j.type!=="checkbox"&&j.type!=="radio"?C&&D$(C.elementType)&&(Q0=UB):Q0=kC;if(Q0&&(Q0=Q0($,C))){NB(f,Q0,G,k);break $}O0&&O0($,j,C),$==="focusout"&&C&&j.type==="number"&&C.memoizedProps.value!=null&&OX(j,"number",j.value)}switch(O0=C?S0(C):window,$){case"focusin":if(YB(O0)||O0.contentEditable==="true")A7=O0,$N=C,PZ=null;break;case"focusout":PZ=$N=A7=null;break;case"mousedown":ZN=!0;break;case"contextmenu":case"mouseup":case"dragend":ZN=!1,wB(f,G,k);break;case"selectionchange":if(KV)break;case"keydown":case"keyup":wB(f,G,k)}var R0;if(eY)$:{switch($){case"compositionstart":var U0="onCompositionStart";break $;case"compositionend":U0="onCompositionEnd";break $;case"compositionupdate":U0="onCompositionUpdate";break $}U0=void 0}else E7?XB($,G)&&(U0="onCompositionEnd"):$==="keydown"&&G.keyCode===MW&&(U0="onCompositionStart");if(U0&&(FW&&G.locale!=="ko"&&(E7||U0!=="onCompositionStart"?U0==="onCompositionEnd"&&E7&&(R0=JB()):(t8=k,oY=("value"in t8)?t8.value:t8.textContent,E7=!0)),O0=QG(C,U0),0<O0.length&&(U0=new BW(U0,$,null,G,k),f.push({event:U0,listeners:O0}),R0?U0.data=R0:(R0=qB(G),R0!==null&&(U0.data=R0)))),R0=NV?AC($,G):jC($,G))U0=QG(C,"onBeforeInput"),0<U0.length&&(O0=new rI("onBeforeInput","beforeinput",null,G,k),f.push({event:O0,listeners:U0}),O0.data=R0);C_(f,$,C,G,k)}cM(f,Z)})}function QZ($,Z,G){return{instance:$,listener:Z,currentTarget:G}}function QG($,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=b$($,G),U!=null&&Y.unshift(QZ($,U,B)),U=b$($,Z),U!=null&&Y.push(QZ($,U,B))),$.tag===3)return Y;$=$.return}return[]}function __($){if($===null)return null;do $=$.return;while($&&$.tag!==5&&$.tag!==27);return $?$:null}function rM($,Z,G,Y,U){for(var B=Z._reactName,W=[];G!==null&&G!==Y;){var R=G,P=R.alternate,C=R.stateNode;if(R=R.tag,P!==null&&P===Y)break;R!==5&&R!==26&&R!==27||C===null||(P=C,U?(C=b$(G,B),C!=null&&W.unshift(QZ(G,C,P))):U||(C=b$(G,B),C!=null&&W.push(QZ(G,C,P)))),G=G.return}W.length!==0&&$.push({event:Z,listeners:W})}function BY($,Z){IC($,Z),$!=="input"&&$!=="textarea"&&$!=="select"||Z==null||Z.value!==null||NW||(NW=!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:N9,possibleRegistrationNames:cY};D$($)||typeof Z.is==="string"||OC($,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 q5($,Z,G,Y){Z!==G&&(G=r8(G),r8(Z)!==G&&(Y[$]=Z))}function I_($,Z,G){Z.forEach(function(Y){G[oM(Y)]=Y==="style"?MY($):$.getAttribute(Y)})}function _4($,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 sM($,Z){return $=$.namespaceURI===PG||$.namespaceURI===_7?$.ownerDocument.createElementNS($.namespaceURI,$.tagName):$.ownerDocument.createElement($.tagName),$.innerHTML=Z,$.innerHTML}function r8($){return v8($)&&(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.",x2($)),X5($)),(typeof $==="string"?$:""+$).replace(yV,`
|
|
176
|
-
`).replace(gV,"")}function nM($,Z){return Z=r8(Z),r8($)===Z?!0:!1}function M1($,Z,G,Y,U,B){switch(G){case"children":if(typeof Y==="string")NJ(Y,Z,!1),Z==="body"||Z==="textarea"&&Y===""||S$($,Y);else if(typeof Y==="number"||typeof Y==="bigint")NJ(""+Y,Z,!1),Z!=="body"&&S$($,""+Y);break;case"className":XJ($,"class",Y);break;case"tabIndex":XJ($,"tabindex",Y);break;case"dir":case"role":case"viewBox":case"width":case"height":XJ($,G,Y);break;case"style":eK($,Y,B);break;case"data":if(Z!=="object"){XJ($,"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}B1(Y,G),Y=v$(""+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||N3||(N3=!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||Y3||(Y3=!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"||q3?Z!=="button"||U.type==null||U.type==="submit"||q3?typeof Y==="function"&&(U.name==null||sw||(sw=!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||N3||(N3=!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||Y3||(Y3=!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."))):(q3=!0,console.error('A button can only specify a formAction along with type="submit" or no type.')):(q3=!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"&&M1($,Z,"name",U.name,U,null),M1($,Z,"formEncType",U.formEncType,U,null),M1($,Z,"formMethod",U.formMethod,U,null),M1($,Z,"formTarget",U.formTarget,U,null)):(M1($,Z,"encType",U.encType,U,null),M1($,Z,"method",U.method,U,null),M1($,Z,"target",U.target,U,null)));if(Y==null||typeof Y==="symbol"||typeof Y==="boolean"){$.removeAttribute(G);break}B1(Y,G),Y=v$(""+Y),$.setAttribute(G,Y);break;case"onClick":Y!=null&&(typeof Y!=="function"&&_4(G,Y),$.onclick=s4);break;case"onScroll":Y!=null&&(typeof Y!=="function"&&_4(G,Y),n0("scroll",$));break;case"onScrollEnd":Y!=null&&(typeof Y!=="function"&&_4(G,Y),n0("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}B1(Y,G),G=v$(""+Y),$.setAttributeNS(V9,"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"?(B1(Y,G),$.setAttribute(G,""+Y)):$.removeAttribute(G);break;case"inert":Y!==""||U3[G]||(U3[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"?(B1(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?(B1(Y,G),$.setAttribute(G,Y)):$.removeAttribute(G);break;case"rowSpan":case"start":Y==null||typeof Y==="function"||typeof Y==="symbol"||isNaN(Y)?$.removeAttribute(G):(B1(Y,G),$.setAttribute(G,Y));break;case"popover":n0("beforetoggle",$),n0("toggle",$),GJ($,"popover",Y);break;case"xlinkActuate":r4($,V9,"xlink:actuate",Y);break;case"xlinkArcrole":r4($,V9,"xlink:arcrole",Y);break;case"xlinkRole":r4($,V9,"xlink:role",Y);break;case"xlinkShow":r4($,V9,"xlink:show",Y);break;case"xlinkTitle":r4($,V9,"xlink:title",Y);break;case"xlinkType":r4($,V9,"xlink:type",Y);break;case"xmlBase":r4($,nN,"xml:base",Y);break;case"xmlLang":r4($,nN,"xml:lang",Y);break;case"xmlSpace":r4($,nN,"xml:space",Y);break;case"is":B!=null&&console.error('Cannot update the "is" prop after it has been initialized.'),GJ($,"is",Y);break;case"innerText":case"textContent":break;case"popoverTarget":nw||Y==null||typeof Y!=="object"||(nw=!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=$B(G),GJ($,G,Y)):N9.hasOwnProperty(G)&&Y!=null&&typeof Y!=="function"&&_4(G,Y)}}function HY($,Z,G,Y,U,B){switch(G){case"style":eK($,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"?S$($,Y):(typeof Y==="number"||typeof Y==="bigint")&&S$($,""+Y);break;case"onScroll":Y!=null&&(typeof Y!=="function"&&_4(G,Y),n0("scroll",$));break;case"onScrollEnd":Y!=null&&(typeof Y!=="function"&&_4(G,Y),n0("scrollend",$));break;case"onClick":Y!=null&&(typeof Y!=="function"&&_4(G,Y),$.onclick=s4);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(N9.hasOwnProperty(G))Y!=null&&typeof Y!=="function"&&_4(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=$[S5]||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,""):GJ($,G,Y)}}}function M5($,Z,G){switch(BY(Z,G),Z){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":n0("error",$),n0("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:M1($,Z,B,W,G,null)}}U&&M1($,Z,"srcSet",G.srcSet,G,null),Y&&M1($,Z,"src",G.src,G,null);return;case"input":f8("input",G),n0("invalid",$);var R=B=W=U=null,P=null,C=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":P=k;break;case"defaultChecked":C=k;break;case"value":B=k;break;case"defaultValue":R=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:M1($,Z,Y,k,G,null)}}gK($,G),hK($,B,R,P,C,W,U,!1);return;case"select":f8("select",G),n0("invalid",$),Y=W=B=null;for(U in G)if(G.hasOwnProperty(U)&&(R=G[U],R!=null))switch(U){case"value":B=R;break;case"defaultValue":W=R;break;case"multiple":Y=R;default:M1($,Z,U,R,G,null)}mK($,G),Z=B,G=W,$.multiple=!!Y,Z!=null?$7($,!!Y,Z,!1):G!=null&&$7($,!!Y,G,!0);return;case"textarea":f8("textarea",G),n0("invalid",$),B=U=Y=null;for(W in G)if(G.hasOwnProperty(W)&&(R=G[W],R!=null))switch(W){case"value":Y=R;break;case"defaultValue":U=R;break;case"children":B=R;break;case"dangerouslySetInnerHTML":if(R!=null)throw Error("`dangerouslySetInnerHTML` does not make sense on <textarea>.");break;default:M1($,Z,W,R,G,null)}dK($,G),cK($,Y,U,B);return;case"option":uK($,G);for(P in G)if(G.hasOwnProperty(P)&&(Y=G[P],Y!=null))switch(P){case"selected":$.selected=Y&&typeof Y!=="function"&&typeof Y!=="symbol";break;default:M1($,Z,P,Y,G,null)}return;case"dialog":n0("beforetoggle",$),n0("toggle",$),n0("cancel",$),n0("close",$);break;case"iframe":case"object":n0("load",$);break;case"video":case"audio":for(Y=0;Y<iZ.length;Y++)n0(iZ[Y],$);break;case"image":n0("error",$),n0("load",$);break;case"details":n0("toggle",$);break;case"embed":case"source":case"link":n0("error",$),n0("load",$);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(C in G)if(G.hasOwnProperty(C)&&(Y=G[C],Y!=null))switch(C){case"children":case"dangerouslySetInnerHTML":throw Error(Z+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");default:M1($,Z,C,Y,G,null)}return;default:if(D$(Z)){for(k in G)G.hasOwnProperty(k)&&(Y=G[k],Y!==void 0&&HY($,Z,k,Y,G,void 0));return}}for(R in G)G.hasOwnProperty(R)&&(Y=G[R],Y!=null&&M1($,Z,R,Y,G,null))}function V_($,Z,G,Y){switch(BY(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,R=null,P=null,C=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":P=f;default:Y.hasOwnProperty(g)||M1($,Z,g,null,Y,f)}}for(var j in Y){var g=Y[j];if(f=G[j],Y.hasOwnProperty(j)&&(g!=null||f!=null))switch(j){case"type":B=g;break;case"name":U=g;break;case"checked":C=g;break;case"defaultChecked":k=g;break;case"value":W=g;break;case"defaultValue":R=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&&M1($,Z,j,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||rw||(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"),rw=!0),!Z||Y||lw||(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"),lw=!0),VX($,W,R,P,C,k,B,U);return;case"select":g=W=R=j=null;for(B in G)if(P=G[B],G.hasOwnProperty(B)&&P!=null)switch(B){case"value":break;case"multiple":g=P;default:Y.hasOwnProperty(B)||M1($,Z,B,null,Y,P)}for(U in Y)if(B=Y[U],P=G[U],Y.hasOwnProperty(U)&&(B!=null||P!=null))switch(U){case"value":j=B;break;case"defaultValue":R=B;break;case"multiple":W=B;default:B!==P&&M1($,Z,U,B,Y,P)}Y=R,Z=W,G=g,j!=null?$7($,!!Z,j,!1):!!G!==!!Z&&(Y!=null?$7($,!!Z,Y,!0):$7($,!!Z,Z?[]:"",!1));return;case"textarea":g=j=null;for(R in G)if(U=G[R],G.hasOwnProperty(R)&&U!=null&&!Y.hasOwnProperty(R))switch(R){case"value":break;case"children":break;default:M1($,Z,R,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":j=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&&M1($,Z,W,U,Y,B)}pK($,j,g);return;case"option":for(var e in G)if(j=G[e],G.hasOwnProperty(e)&&j!=null&&!Y.hasOwnProperty(e))switch(e){case"selected":$.selected=!1;break;default:M1($,Z,e,null,Y,j)}for(P in Y)if(j=Y[P],g=G[P],Y.hasOwnProperty(P)&&j!==g&&(j!=null||g!=null))switch(P){case"selected":$.selected=j&&typeof j!=="function"&&typeof j!=="symbol";break;default:M1($,Z,P,j,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 J0 in G)j=G[J0],G.hasOwnProperty(J0)&&j!=null&&!Y.hasOwnProperty(J0)&&M1($,Z,J0,null,Y,j);for(C in Y)if(j=Y[C],g=G[C],Y.hasOwnProperty(C)&&j!==g&&(j!=null||g!=null))switch(C){case"children":case"dangerouslySetInnerHTML":if(j!=null)throw Error(Z+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");break;default:M1($,Z,C,j,Y,g)}return;default:if(D$(Z)){for(var z1 in G)j=G[z1],G.hasOwnProperty(z1)&&j!==void 0&&!Y.hasOwnProperty(z1)&&HY($,Z,z1,void 0,Y,j);for(k in Y)j=Y[k],g=G[k],!Y.hasOwnProperty(k)||j===g||j===void 0&&g===void 0||HY($,Z,k,j,Y,g);return}}for(var o0 in G)j=G[o0],G.hasOwnProperty(o0)&&j!=null&&!Y.hasOwnProperty(o0)&&M1($,Z,o0,null,Y,j);for(f in Y)j=Y[f],g=G[f],!Y.hasOwnProperty(f)||j===g||j==null&&g==null||M1($,Z,f,j,Y,g)}function oM($){switch($){case"class":return"className";case"for":return"htmlFor";default:return $}}function MY($){var Z={};$=$.style;for(var G=0;G<$.length;G++){var Y=$[G];Z[Y]=$.getPropertyValue(Y)}return Z}function iM($,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?(V$(W,B),Y+=U+B+":"+(""+W).trim()):typeof W!=="number"||W===0||qW.has(B)?(V$(W,B),Y+=U+B.replace(ZW,"-$1").toLowerCase().replace(QW,"-ms-")+":"+(""+W).trim()):Y+=U+B.replace(ZW,"-$1").toLowerCase().replace(QW,"-ms-")+":"+W+"px",U=";")}Y=Y||null,Z=$.getAttribute("style"),Z!==Y&&(Y=r8(Y),r8(Z)!==Y&&(G.style=MY($)))}}function O6($,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(B1(Y,Z),$===""+Y)return}q5(Z,$,Y,B)}function aM($,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}q5(Z,$,Y,B)}function FY($,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(B1(Y,G),$===""+Y)return}q5(Z,$,Y,B)}function tM($,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)&&(B1(Y,Z),$===""+Y))return}q5(Z,$,Y,B)}function WY($,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(B1(Y,Z),G=v$(""+Y),$===G)return}q5(Z,$,Y,B)}function eM($,Z,G,Y){for(var U={},B=new Set,W=$.attributes,R=0;R<W.length;R++)switch(W[R].name.toLowerCase()){case"value":break;case"checked":break;case"selected":break;default:B.add(W[R].name)}if(D$(Z)){for(var P in G)if(G.hasOwnProperty(P)){var C=G[P];if(C!=null){if(N9.hasOwnProperty(P))typeof C!=="function"&&_4(P,C);else if(G.suppressHydrationWarning!==!0)switch(P){case"children":typeof C!=="string"&&typeof C!=="number"||q5("children",$.textContent,C,U);continue;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":continue;case"dangerouslySetInnerHTML":W=$.innerHTML,C=C?C.__html:void 0,C!=null&&(C=sM($,C),q5(P,W,C,U));continue;case"style":B.delete(P),iM($,C,U);continue;case"offsetParent":case"offsetTop":case"offsetLeft":case"offsetWidth":case"offsetHeight":case"isContentEditable":case"outerText":case"outerHTML":B.delete(P.toLowerCase()),console.error("Assignment to read-only property will result in a no-op: `%s`",P);continue;case"className":B.delete("class"),W=kK($,"class",C),q5("className",W,C,U);continue;default:Y.context===W8&&Z!=="svg"&&Z!=="math"?B.delete(P.toLowerCase()):B.delete(P),W=kK($,P,C),q5(P,W,C,U)}}}}else for(C in G)if(G.hasOwnProperty(C)&&(P=G[C],P!=null)){if(N9.hasOwnProperty(C))typeof P!=="function"&&_4(C,P);else if(G.suppressHydrationWarning!==!0)switch(C){case"children":typeof P!=="string"&&typeof P!=="number"||q5("children",$.textContent,P,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,P=P?P.__html:void 0,P!=null&&(P=sM($,P),W!==P&&(U[C]={__html:W}));continue;case"className":O6($,C,"class",P,B,U);continue;case"tabIndex":O6($,C,"tabindex",P,B,U);continue;case"style":B.delete(C),iM($,P,U);continue;case"multiple":B.delete(C),q5(C,$.multiple,P,U);continue;case"muted":B.delete(C),q5(C,$.muted,P,U);continue;case"autoFocus":B.delete("autofocus"),q5(C,$.autofocus,P,U);continue;case"data":if(Z!=="object"){B.delete(C),W=$.getAttribute("data"),q5(C,W,P,U);continue}case"src":case"href":if(!(P!==""||Z==="a"&&C==="href"||Z==="object"&&C==="data")){C==="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.',C,C):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.',C,C);continue}WY($,C,C,P,B,U);continue;case"action":case"formAction":if(W=$.getAttribute(C),typeof P==="function"){B.delete(C.toLowerCase()),C==="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===hV){B.delete(C.toLowerCase()),q5(C,"function",P,U);continue}WY($,C,C.toLowerCase(),P,B,U);continue;case"xlinkHref":WY($,C,"xlink:href",P,B,U);continue;case"contentEditable":FY($,C,"contenteditable",P,B,U);continue;case"spellCheck":FY($,C,"spellcheck",P,B,U);continue;case"draggable":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":FY($,C,C,P,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":aM($,C,C.toLowerCase(),P,B,U);continue;case"capture":case"download":$:{R=$;var k=W=C,f=U;if(B.delete(k),R=R.getAttribute(k),R===null)switch(typeof P){case"undefined":case"function":case"symbol":break $;default:if(P===!1)break $}else if(P!=null)switch(typeof P){case"function":case"symbol":break;case"boolean":if(P===!0&&R==="")break $;break;default:if(B1(P,W),R===""+P)break $}q5(W,R,P,f)}continue;case"cols":case"rows":case"size":case"span":$:{if(R=$,k=W=C,f=U,B.delete(k),R=R.getAttribute(k),R===null)switch(typeof P){case"undefined":case"function":case"symbol":case"boolean":break $;default:if(isNaN(P)||1>P)break $}else if(P!=null)switch(typeof P){case"function":case"symbol":case"boolean":break;default:if(!(isNaN(P)||1>P)&&(B1(P,W),R===""+P))break $}q5(W,R,P,f)}continue;case"rowSpan":tM($,C,"rowspan",P,B,U);continue;case"start":tM($,C,C,P,B,U);continue;case"xHeight":O6($,C,"x-height",P,B,U);continue;case"xlinkActuate":O6($,C,"xlink:actuate",P,B,U);continue;case"xlinkArcrole":O6($,C,"xlink:arcrole",P,B,U);continue;case"xlinkRole":O6($,C,"xlink:role",P,B,U);continue;case"xlinkShow":O6($,C,"xlink:show",P,B,U);continue;case"xlinkTitle":O6($,C,"xlink:title",P,B,U);continue;case"xlinkType":O6($,C,"xlink:type",P,B,U);continue;case"xmlBase":O6($,C,"xml:base",P,B,U);continue;case"xmlLang":O6($,C,"xml:lang",P,B,U);continue;case"xmlSpace":O6($,C,"xml:space",P,B,U);continue;case"inert":P!==""||U3[C]||(U3[C]=!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.",C)),aM($,C,C,P,B,U);continue;default:if(!(2<C.length)||C[0]!=="o"&&C[0]!=="O"||C[1]!=="n"&&C[1]!=="N"){R=$B(C),W=!1,Y.context===W8&&Z!=="svg"&&Z!=="math"?B.delete(R.toLowerCase()):(k=C.toLowerCase(),k=LG.hasOwnProperty(k)?LG[k]||null:null,k!==null&&k!==C&&(W=!0,B.delete(k)),B.delete(R));$:if(k=$,f=R,R=P,E$(f))if(k.hasAttribute(f))k=k.getAttribute(f),B1(R,f),R=k===""+R?R:k;else{switch(typeof R){case"function":case"symbol":break $;case"boolean":if(k=f.toLowerCase().slice(0,5),k!=="data-"&&k!=="aria-")break $}R=R===void 0?void 0:null}else R=void 0;W||q5(C,R,P,U)}}}return 0<B.size&&G.suppressHydrationWarning!==!0&&I_($,B,U),Object.keys(U).length===0?null:U}function O_($,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 $F($){switch($){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function E_(){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,R=U.duration;if(B&&R&&$F(W)){W=0,R=U.responseEnd;for(Y+=1;Y<G.length;Y++){var P=G[Y],C=P.startTime;if(C>R)break;var{transferSize:k,initiatorType:f}=P;k&&$F(f)&&(P=P.responseEnd,W+=k*(P<R?1:(R-C)/(P-C)))}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 JG($){return $.nodeType===9?$:$.ownerDocument}function ZF($){switch($){case _7:return e7;case PG:return B3;default:return W8}}function QF($,Z){if($===W8)switch(Z){case"svg":return e7;case"math":return B3;default:return W8}return $===e7&&Z==="foreignObject"?W8:$}function wY($,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 A_(){var $=window.event;if($&&$.type==="popstate"){if($===tN)return!1;return tN=$,!0}return tN=null,!1}function JZ(){var $=window.event;return $&&$!==eZ?$.type:null}function GZ(){var $=window.event;return $&&$!==eZ?$.timeStamp:-1.1}function j_($){setTimeout(function(){throw $})}function S_($,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 D_(){}function v_($,Z,G,Y){V_($,Z,G,Y),$[S5]=Y}function JF($){S$($,"")}function b_($,Z,G){$.nodeValue=G}function GF($){if(!$.__reactWarnedAboutChildrenConflict){var Z=$[S5]||null;if(Z!==null){var G=j0($);G!==null&&(typeof Z.children==="string"||typeof Z.children==="number"?($.__reactWarnedAboutChildrenConflict=!0,G0(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,G0(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 s8($){return $==="head"}function k_($,Z){$.removeChild(Z)}function f_($,Z){($.nodeType===9?$.body:$.nodeName==="HTML"?$.ownerDocument.body:$).removeChild(Z)}function XF($,Z){var G=Z,Y=0;do{var U=G.nextSibling;if($.removeChild(G),U&&U.nodeType===8)if(G=U.data,G===tZ||G===K3){if(Y===0){$.removeChild(U),R7(Z);return}Y--}else if(G===aZ||G===R2||G===E9||G===t7||G===O9)Y++;else if(G===xV)XZ($.ownerDocument.documentElement);else if(G===dV){G=$.ownerDocument.head,XZ(G);for(var B=G.firstChild;B;){var{nextSibling:W,nodeName:R}=B;B[HZ]||R==="SCRIPT"||R==="STYLE"||R==="LINK"&&B.rel.toLowerCase()==="stylesheet"||G.removeChild(B),B=W}}else G===mV&&XZ($.ownerDocument.body);G=U}while(G);R7(Z)}function qF($,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===tZ)if($===0)break;else $--;else G!==aZ&&G!==R2&&G!==E9&&G!==t7||$++;G=Y}while(G)}function y_($){qF($,!0)}function g_($){$=$.style,typeof $.setProperty==="function"?$.setProperty("display","none","important"):$.display="none"}function h_($){$.nodeValue=""}function u_($){qF($,!1)}function x_($,Z){Z=Z[pV],Z=Z!==void 0&&Z!==null&&Z.hasOwnProperty("display")?Z.display:null,$.style.display=Z==null||typeof Z==="boolean"?"":(""+Z).trim()}function m_($,Z){$.nodeValue=Z}function RY($){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":RY(G),Z0(G);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(G.rel.toLowerCase()==="stylesheet")continue}$.removeChild(G)}}function d_($,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"){B1(U.name,"name");var B=U.name==null?null:""+U.name;if(U.type==="hidden"&&$.getAttribute("name")===B)return $}else return $;else if(!$[HZ])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($=H6($.nextSibling),$===null)break}return null}function p_($,Z,G){if(Z==="")return null;for(;$.nodeType!==3;){if(($.nodeType!==1||$.nodeName!=="INPUT"||$.type!=="hidden")&&!G)return null;if($=H6($.nextSibling),$===null)return null}return $}function YF($,Z){for(;$.nodeType!==8;){if(($.nodeType!==1||$.nodeName!=="INPUT"||$.type!=="hidden")&&!Z)return null;if($=H6($.nextSibling),$===null)return null}return $}function zY($){return $.data===R2||$.data===E9}function TY($){return $.data===t7||$.data===R2&&$.ownerDocument.readyState!==iw}function c_($,Z){var G=$.ownerDocument;if($.data===E9)$._reactRetry=Z;else if($.data!==R2||G.readyState!==iw)Z();else{var Y=function(){Z(),G.removeEventListener("DOMContentLoaded",Y)};G.addEventListener("DOMContentLoaded",Y),$._reactRetry=Y}}function H6($){for(;$!=null;$=$.nextSibling){var Z=$.nodeType;if(Z===1||Z===3)break;if(Z===8){if(Z=$.data,Z===aZ||Z===t7||Z===R2||Z===E9||Z===O9||Z===oN||Z===ow)break;if(Z===tZ||Z===K3)return null}}return $}function NF($){if($.nodeType===1){for(var Z=$.nodeName.toLowerCase(),G={},Y=$.attributes,U=0;U<Y.length;U++){var B=Y[U];G[oM(B.name)]=B.name.toLowerCase()==="style"?MY($):B.value}return{type:Z,props:G}}return $.nodeType===8?$.data===O9?{type:"Activity",props:{}}:{type:"Suspense",props:{}}:$.nodeValue}function UF($,Z,G){return G===null||G[uV]!==!0?($.nodeValue===Z?$=null:(Z=r8(Z),$=r8($.nodeValue)===Z?null:$.nodeValue),$):null}function PY($){$=$.nextSibling;for(var Z=0;$;){if($.nodeType===8){var G=$.data;if(G===tZ||G===K3){if(Z===0)return H6($.nextSibling);Z--}else G!==aZ&&G!==t7&&G!==R2&&G!==E9&&G!==O9||Z++}$=$.nextSibling}return null}function KF($){$=$.previousSibling;for(var Z=0;$;){if($.nodeType===8){var G=$.data;if(G===aZ||G===t7||G===R2||G===E9||G===O9){if(Z===0)return $;Z--}else G!==tZ&&G!==K3||Z++}$=$.previousSibling}return null}function l_($){R7($)}function r_($){R7($)}function s_($){R7($)}function BF($,Z,G,Y,U){switch(U&&DX($,Y.ancestorInfo),Z=JG(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 n_($,Z,G,Y){if(!G[a8]&&j0(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]);M5(G,$,Z),G[F5]=Y,G[S5]=Z}function XZ($){for(var Z=$.attributes;Z.length;)$.removeAttributeNode(Z[0]);Z0($)}function GG($){return typeof $.getRootNode==="function"?$.getRootNode():$.nodeType===9?$:$.ownerDocument}function HF($,Z,G){var Y=$$;if(Y&&typeof Z==="string"&&Z){var U=V6(Z);U='link[rel="'+$+'"][href="'+U+'"]',typeof G==="string"&&(U+='[crossorigin="'+G+'"]'),QR.has(U)||(QR.add(U),$={rel:$,crossOrigin:G,href:Z},Y.querySelector(U)===null&&(Z=Y.createElement("link"),M5(Z,"link",$),z0(Z),Y.head.appendChild(Z)))}}function MF($,Z,G,Y){var U=(U=o8.current)?GG(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=W7(G.href),Z=e0(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"){$=W7(G.href);var B=e0(U).hoistableStyles,W=B.get($);if(!W&&(U=U.ownerDocument||U,W={type:"stylesheet",instance:null,count:0,state:{loading:j9,preload:null}},B.set($,W),(B=U.querySelector(qZ($)))&&!B._p&&(W.instance=B,W.state.loading=$Q|g6),!h6.has($))){var R={rel:"preload",as:"style",href:G.href,crossOrigin:G.crossOrigin,integrity:G.integrity,media:G.media,hrefLang:G.hrefLang,referrerPolicy:G.referrerPolicy};h6.set($,R),B||o_(U,$,R,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 I4($){$!==e9&&$.next===null&&(e9===null?Nq=e9=$:e9=e9.next=$),Yq=!0,u.actQueue!==null?nY||(nY=!0,cM()):sY||(sY=!0,cM())}function J2($,Q){if(!oY&&Yq){oY=!0;do{var G=!1;for(var N=Nq;N!==null;){if(!Q)if($!==0){var U=N.pendingLanes;if(U===0)var B=0;else{var{suspendedLanes:F,pingedLanes:R}=N;B=(1<<31-D6(42|$)+1)-1,B&=U&~(F&~R),B=B&201326741?B&201326741|1:B?B|2:0}B!==0&&(G=!0,pM(N,B))}else B=f0,B=p8(N,N===W1?B:0,N.cancelPendingCommit!==null||N.timeoutHandle!==S7),(B&3)===0||c8(N,B)||(G=!0,pM(N,B));N=N.next}}while(G);oY=!1}}function C_(){$J=window.event,UN()}function UN(){Yq=nY=sY=!1;var $=0;P8!==0&&j_()&&($=P8);for(var Q=N6(),G=null,N=Nq;N!==null;){var U=N.next,B=mM(N,Q);if(B===0)N.next=null,G===null?Nq=U:G.next=U,U===null&&(e9=G);else if(G=N,$!==0||(B&3)!==0)Yq=!0;N=U}i1!==T8&&i1!==Gq||J2($,!1),P8!==0&&(P8=0)}function mM($,Q){for(var{suspendedLanes:G,pingedLanes:N,expirationTimes:U}=$,B=$.pendingLanes&-62914561;0<B;){var F=31-D6(B),R=1<<F,L=U[F];if(L===-1){if((R&G)===0||(R&N)!==0)U[F]=EX(R,Q)}else L<=Q&&($.expiredLanes|=R);B&=~R}if(Q=W1,G=f0,G=p8($,$===Q?G:0,$.cancelPendingCommit!==null||$.timeoutHandle!==S7),N=$.callbackNode,G===0||$===Q&&(Y1===_7||Y1===I7)||$.cancelPendingCommit!==null)return N!==null&&KN(N),$.callbackNode=null,$.callbackPriority=0;if((G&3)===0||c8($,G)){if(Q=G&-G,Q!==$.callbackPriority||u.actQueue!==null&&N!==iY)KN(N);else return Q;switch(_(G)){case R5:case e5:G=lN;break;case D4:G=C9;break;case CG:G=rN;break;default:G=C9}return N=dM.bind(null,$),u.actQueue!==null?(u.actQueue.push(N),G=iY):G=pN(G,N),$.callbackPriority=Q,$.callbackNode=G,Q}return N!==null&&KN(N),$.callbackPriority=2,$.callbackNode=null,2}function dM($,Q){if(uG=xG=!1,$J=window.event,i1!==T8&&i1!==Gq)return $.callbackNode=null,$.callbackPriority=0,null;var G=$.callbackNode;if(q4===Zq&&(q4=mY),$2()&&$.callbackNode!==G)return null;var N=f0;if(N=p8($,$===W1?N:0,$.cancelPendingCommit!==null||$.timeoutHandle!==S7),N===0)return null;return PM($,N,Q),mM($,N6()),$.callbackNode!=null&&$.callbackNode===G?dM.bind(null,$):null}function pM($,Q){if($2())return null;xG=uG,uG=!1,PM($,Q,!0)}function KN($){$!==iY&&$!==null&&BI($)}function cM(){u.actQueue!==null&&u.actQueue.push(function(){return UN(),null}),rV(function(){(i0&(J6|P5))!==K6?pN(cN,C_):UN()})}function BN(){if(P8===0){var $=w7;$===0&&($=TG,TG<<=1,(TG&261888)===0&&(TG=256)),P8=$}return P8}function lM($){if($==null||typeof $==="symbol"||typeof $==="boolean")return null;if(typeof $==="function")return $;return K1($,"action"),kQ(""+$)}function rM($,Q){var G=Q.ownerDocument.createElement("input");return G.name=Q.name,G.value=Q.value,$.id&&G.setAttribute("form",$.id),Q.parentNode.insertBefore(G,Q),$=new FormData($),G.parentNode.removeChild(G),$}function __($,Q,G,N,U){if(Q==="submit"&&G&&G.stateNode===U){var B=lM((U[v6]||null).action),F=N.submitter;F&&(Q=(Q=F[v6]||null)?lM(Q.formAction):F.getAttribute("formAction"),Q!==null&&(B=Q,F=null));var R=new EG("action","action",null,N,U);$.push({event:R,listeners:[{instance:null,listener:function(){if(N.defaultPrevented){if(P8!==0){var L=F?rM(U,F):new FormData(U),C={pending:!0,data:L,method:U.method,action:B};Object.freeze(C),D3(G,C,null,L)}}else typeof B==="function"&&(R.preventDefault(),L=F?rM(U,F):new FormData(U),C={pending:!0,data:L,method:U.method,action:B},Object.freeze(C),D3(G,C,B,L))},currentTarget:U}]})}}function qG($,Q,G){$.currentTarget=G;try{Q($)}catch(N){YY(N)}$.currentTarget=null}function sM($,Q){Q=(Q&4)!==0;for(var G=0;G<$.length;G++){var N=$[G];$:{var U=void 0,B=N.event;if(N=N.listeners,Q)for(var F=N.length-1;0<=F;F--){var R=N[F],L=R.instance,C=R.currentTarget;if(R=R.listener,L!==U&&B.isPropagationStopped())break $;L!==null?q0(L,qG,B,R,C):qG(B,R,C),U=L}else for(F=0;F<N.length;F++){if(R=N[F],L=R.instance,C=R.currentTarget,R=R.listener,L!==U&&B.isPropagationStopped())break $;L!==null?q0(L,qG,B,R,C):qG(B,R,C),U=L}}}}function s0($,Q){aY.has($)||console.error('Did not expect a listenToNonDelegatedEvent() call for "%s". This is a bug in React. Please file an issue.',$);var G=Q[sN];G===void 0&&(G=Q[sN]=new Set);var N=$+"__bubble";G.has(N)||(nM(Q,$,2,!1),G.add(N))}function HN($,Q,G){aY.has($)&&!Q&&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 N=0;Q&&(N|=4),nM(G,$,N,Q)}function MN($){if(!$[Uq]){$[Uq]=!0,cW.forEach(function(G){G!=="selectionchange"&&(aY.has(G)||HN(G,!1,$),HN(G,!0,$))});var Q=$.nodeType===9?$:$.ownerDocument;Q===null||Q[Uq]||(Q[Uq]=!0,HN("selectionchange",!1,Q))}}function nM($,Q,G,N){switch(EW(Q)){case R5:var U=ZI;break;case e5:U=GI;break;default:U=jN}G=U.bind(null,Q,G,$),U=void 0,!tN||Q!=="touchstart"&&Q!=="touchmove"&&Q!=="wheel"||(U=!0),N?U!==void 0?$.addEventListener(Q,G,{capture:!0,passive:U}):$.addEventListener(Q,G,!0):U!==void 0?$.addEventListener(Q,G,{passive:U}):$.addEventListener(Q,G,!1)}function WN($,Q,G,N,U){var B=N;if((Q&1)===0&&(Q&2)===0&&N!==null)$:for(;;){if(N===null)return;var F=N.tag;if(F===3||F===4){var R=N.stateNode.containerInfo;if(R===U)break;if(F===4)for(F=N.return;F!==null;){var L=F.tag;if((L===3||L===4)&&F.stateNode.containerInfo===U)return;F=F.return}for(;R!==null;){if(F=Y0(R),F===null)return;if(L=F.tag,L===5||L===6||L===26||L===27){N=B=F;continue $}R=R.parentNode}}N=N.return}qB(function(){var C=B,b=fX(G),y=[];$:{var j=EF.get($);if(j!==void 0){var g=EG,$0=$;switch($){case"keypress":if(MZ(G)===0)break $;case"keydown":case"keyup":g=tI;break;case"focusin":$0="focus",g=JY;break;case"focusout":$0="blur",g=JY;break;case"beforeblur":case"afterblur":g=JY;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=MF;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":g=uI;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":g=QV;break;case _F:case IF:case VF:g=pI;break;case OF:g=ZV;break;case"scroll":case"scrollend":g=hI;break;case"wheel":g=qV;break;case"copy":case"cut":case"paste":g=lI;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":g=FF;break;case"toggle":case"beforetoggle":g=NV}var G0=(Q&4)!==0,R1=!G0&&($==="scroll"||$==="scrollend"),n0=G0?j!==null?j+"Capture":null:j;G0=[];for(var A=C,S;A!==null;){var k=A;if(S=k.stateNode,k=k.tag,k!==5&&k!==26&&k!==27||S===null||n0===null||(k=bQ(A,n0),k!=null&&G0.push(Z2(A,k,S))),R1)break;A=A.return}0<G0.length&&(j=new g(j,$0,null,G,b),y.push({event:j,listeners:G0}))}}if((Q&7)===0){$:{if(j=$==="mouseover"||$==="pointerover",g=$==="mouseout"||$==="pointerout",j&&G!==W2&&($0=G.relatedTarget||G.fromElement)&&(Y0($0)||$0[J8]))break $;if(g||j){if(j=b.window===b?b:(j=b.ownerDocument)?j.defaultView||j.parentWindow:window,g){if($0=G.relatedTarget||G.toElement,g=C,$0=$0?Y0($0):null,$0!==null&&(R1=D($0),G0=$0.tag,$0!==R1||G0!==5&&G0!==27&&G0!==6))$0=null}else g=null,$0=C;if(g!==$0){if(G0=MF,k="onMouseLeave",n0="onMouseEnter",A="mouse",$==="pointerout"||$==="pointerover")G0=FF,k="onPointerLeave",n0="onPointerEnter",A="pointer";if(R1=g==null?j:D0(g),S=$0==null?j:D0($0),j=new G0(k,A+"leave",g,G,b),j.target=R1,j.relatedTarget=S,k=null,Y0(b)===C&&(G0=new G0(n0,A+"enter",$0,G,b),G0.target=S,G0.relatedTarget=R1,k=G0),R1=k,g&&$0)Q:{G0=I_,n0=g,A=$0,S=0;for(k=n0;k;k=G0(k))S++;k=0;for(var m=A;m;m=G0(m))k++;for(;0<S-k;)n0=G0(n0),S--;for(;0<k-S;)A=G0(A),k--;for(;S--;){if(n0===A||A!==null&&n0===A.alternate){G0=n0;break Q}n0=G0(n0),A=G0(A)}G0=null}else G0=null;g!==null&&oM(y,j,g,G0,!1),$0!==null&&R1!==null&&oM(y,R1,$0,G0,!0)}}}$:{if(j=C?D0(C):window,g=j.nodeName&&j.nodeName.toLowerCase(),g==="select"||g==="input"&&j.type==="file")var J0=HB;else if(KB(j))if(PF)J0=fC;else{J0=bC;var O0=kC}else g=j.nodeName,!g||g.toLowerCase()!=="input"||j.type!=="checkbox"&&j.type!=="radio"?C&&vQ(C.elementType)&&(J0=HB):J0=yC;if(J0&&(J0=J0($,C))){BB(y,J0,G,b);break $}O0&&O0($,j,C),$==="focusout"&&C&&j.type==="number"&&C.memoizedProps.value!=null&&SX(j,"number",j.value)}switch(O0=C?D0(C):window,$){case"focusin":if(KB(O0)||O0.contentEditable==="true")S9=O0,GY=C,P2=null;break;case"focusout":P2=GY=S9=null;break;case"mousedown":qY=!0;break;case"contextmenu":case"mouseup":case"dragend":qY=!1,TB(y,G,b);break;case"selectionchange":if(BV)break;case"keydown":case"keyup":TB(y,G,b)}var z0;if(ZY)$:{switch($){case"compositionstart":var K0="onCompositionStart";break $;case"compositionend":K0="onCompositionEnd";break $;case"compositionupdate":K0="onCompositionUpdate";break $}K0=void 0}else j9?YB($,G)&&(K0="onCompositionEnd"):$==="keydown"&&G.keyCode===wF&&(K0="onCompositionStart");if(K0&&(RF&&G.locale!=="ko"&&(j9||K0!=="onCompositionStart"?K0==="onCompositionEnd"&&j9&&(z0=XB()):(Z8=b,eN=("value"in Z8)?Z8.value:Z8.textContent,j9=!0)),O0=XG(C,K0),0<O0.length&&(K0=new WF(K0,$,null,G,b),y.push({event:K0,listeners:O0}),z0?K0.data=z0:(z0=UB(G),z0!==null&&(K0.data=z0)))),z0=UV?jC($,G):SC($,G))K0=XG(C,"onBeforeInput"),0<K0.length&&(O0=new sI("onBeforeInput","beforeinput",null,G,b),y.push({event:O0,listeners:K0}),O0.data=z0);__(y,$,C,G,b)}sM(y,Q)})}function Z2($,Q,G){return{instance:$,listener:Q,currentTarget:G}}function XG($,Q){for(var G=Q+"Capture",N=[];$!==null;){var U=$,B=U.stateNode;if(U=U.tag,U!==5&&U!==26&&U!==27||B===null||(U=bQ($,G),U!=null&&N.unshift(Z2($,U,B)),U=bQ($,Q),U!=null&&N.push(Z2($,U,B))),$.tag===3)return N;$=$.return}return[]}function I_($){if($===null)return null;do $=$.return;while($&&$.tag!==5&&$.tag!==27);return $?$:null}function oM($,Q,G,N,U){for(var B=Q._reactName,F=[];G!==null&&G!==N;){var R=G,L=R.alternate,C=R.stateNode;if(R=R.tag,L!==null&&L===N)break;R!==5&&R!==26&&R!==27||C===null||(L=C,U?(C=bQ(G,B),C!=null&&F.unshift(Z2(G,C,L))):U||(C=bQ(G,B),C!=null&&F.push(Z2(G,C,L)))),G=G.return}F.length!==0&&$.push({event:Q,listeners:F})}function FN($,Q){VC($,Q),$!=="input"&&$!=="textarea"&&$!=="select"||Q==null||Q.value!==null||BF||(BF=!0,$==="select"&&Q.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:K7,possibleRegistrationNames:nN};vQ($)||typeof Q.is==="string"||EC($,Q,G),Q.contentEditable&&!Q.suppressContentEditableWarning&&Q.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 X6($,Q,G,N){Q!==G&&(G=a$(G),a$(Q)!==G&&(N[$]=Q))}function V_($,Q,G){Q.forEach(function(N){G[tM(N)]=N==="style"?RN($):$.getAttribute(N)})}function V4($,Q){Q===!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 Q)}function iM($,Q){return $=$.namespaceURI===IG||$.namespaceURI===V9?$.ownerDocument.createElementNS($.namespaceURI,$.tagName):$.ownerDocument.createElement($.tagName),$.innerHTML=Q,$.innerHTML}function a$($){return g$($)&&(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.",d8($)),q6($)),(typeof $==="string"?$:""+$).replace(gV,`
|
|
176
|
+
`).replace(hV,"")}function aM($,Q){return Q=a$(Q),a$($)===Q?!0:!1}function H1($,Q,G,N,U,B){switch(G){case"children":if(typeof N==="string")HZ(N,Q,!1),Q==="body"||Q==="textarea"&&N===""||DQ($,N);else if(typeof N==="number"||typeof N==="bigint")HZ(""+N,Q,!1),Q!=="body"&&DQ($,""+N);break;case"className":UZ($,"class",N);break;case"tabIndex":UZ($,"tabindex",N);break;case"dir":case"role":case"viewBox":case"width":case"height":UZ($,G,N);break;case"style":JB($,N,B);break;case"data":if(Q!=="object"){UZ($,"data",N);break}case"src":case"href":if(N===""&&(Q!=="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(N==null||typeof N==="function"||typeof N==="symbol"||typeof N==="boolean"){$.removeAttribute(G);break}K1(N,G),N=kQ(""+N),$.setAttribute(G,N);break;case"action":case"formAction":if(N!=null&&(Q==="form"?G==="formAction"?console.error("You can only pass the formAction prop to <input> or <button>. Use the action prop on <form>."):typeof N==="function"&&(U.encType==null&&U.method==null||Hq||(Hq=!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||Bq||(Bq=!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."))):Q==="input"||Q==="button"?G==="action"?console.error("You can only pass the action prop to <form>. Use the formAction prop on <input> or <button>."):Q!=="input"||U.type==="submit"||U.type==="image"||Kq?Q!=="button"||U.type==null||U.type==="submit"||Kq?typeof N==="function"&&(U.name==null||iw||(iw=!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||Hq||(Hq=!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||Bq||(Bq=!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."))):(Kq=!0,console.error('A button can only specify a formAction along with type="submit" or no type.')):(Kq=!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 N==="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"?(Q!=="input"&&H1($,Q,"name",U.name,U,null),H1($,Q,"formEncType",U.formEncType,U,null),H1($,Q,"formMethod",U.formMethod,U,null),H1($,Q,"formTarget",U.formTarget,U,null)):(H1($,Q,"encType",U.encType,U,null),H1($,Q,"method",U.method,U,null),H1($,Q,"target",U.target,U,null)));if(N==null||typeof N==="symbol"||typeof N==="boolean"){$.removeAttribute(G);break}K1(N,G),N=kQ(""+N),$.setAttribute(G,N);break;case"onClick":N!=null&&(typeof N!=="function"&&V4(G,N),$.onclick=i4);break;case"onScroll":N!=null&&(typeof N!=="function"&&V4(G,N),s0("scroll",$));break;case"onScrollEnd":N!=null&&(typeof N!=="function"&&V4(G,N),s0("scrollend",$));break;case"dangerouslySetInnerHTML":if(N!=null){if(typeof N!=="object"||!("__html"in N))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=N.__html,G!=null){if(U.children!=null)throw Error("Can only set one of `children` or `props.dangerouslySetInnerHTML`.");$.innerHTML=G}}break;case"multiple":$.multiple=N&&typeof N!=="function"&&typeof N!=="symbol";break;case"muted":$.muted=N&&typeof N!=="function"&&typeof N!=="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(N==null||typeof N==="function"||typeof N==="boolean"||typeof N==="symbol"){$.removeAttribute("xlink:href");break}K1(N,G),G=kQ(""+N),$.setAttributeNS(E7,"xlink:href",G);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":N!=null&&typeof N!=="function"&&typeof N!=="symbol"?(K1(N,G),$.setAttribute(G,""+N)):$.removeAttribute(G);break;case"inert":N!==""||Mq[G]||(Mq[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":N&&typeof N!=="function"&&typeof N!=="symbol"?$.setAttribute(G,""):$.removeAttribute(G);break;case"capture":case"download":N===!0?$.setAttribute(G,""):N!==!1&&N!=null&&typeof N!=="function"&&typeof N!=="symbol"?(K1(N,G),$.setAttribute(G,N)):$.removeAttribute(G);break;case"cols":case"rows":case"size":case"span":N!=null&&typeof N!=="function"&&typeof N!=="symbol"&&!isNaN(N)&&1<=N?(K1(N,G),$.setAttribute(G,N)):$.removeAttribute(G);break;case"rowSpan":case"start":N==null||typeof N==="function"||typeof N==="symbol"||isNaN(N)?$.removeAttribute(G):(K1(N,G),$.setAttribute(G,N));break;case"popover":s0("beforetoggle",$),s0("toggle",$),YZ($,"popover",N);break;case"xlinkActuate":o4($,E7,"xlink:actuate",N);break;case"xlinkArcrole":o4($,E7,"xlink:arcrole",N);break;case"xlinkRole":o4($,E7,"xlink:role",N);break;case"xlinkShow":o4($,E7,"xlink:show",N);break;case"xlinkTitle":o4($,E7,"xlink:title",N);break;case"xlinkType":o4($,E7,"xlink:type",N);break;case"xmlBase":o4($,tY,"xml:base",N);break;case"xmlLang":o4($,tY,"xml:lang",N);break;case"xmlSpace":o4($,tY,"xml:space",N);break;case"is":B!=null&&console.error('Cannot update the "is" prop after it has been initialized.'),YZ($,"is",N);break;case"innerText":case"textContent":break;case"popoverTarget":aw||N==null||typeof N!=="object"||(aw=!0,console.error("The `popoverTarget` prop expects the ID of an Element as a string. Received %s instead.",N));default:!(2<G.length)||G[0]!=="o"&&G[0]!=="O"||G[1]!=="n"&&G[1]!=="N"?(G=ZB(G),YZ($,G,N)):K7.hasOwnProperty(G)&&N!=null&&typeof N!=="function"&&V4(G,N)}}function wN($,Q,G,N,U,B){switch(G){case"style":JB($,N,B);break;case"dangerouslySetInnerHTML":if(N!=null){if(typeof N!=="object"||!("__html"in N))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=N.__html,G!=null){if(U.children!=null)throw Error("Can only set one of `children` or `props.dangerouslySetInnerHTML`.");$.innerHTML=G}}break;case"children":typeof N==="string"?DQ($,N):(typeof N==="number"||typeof N==="bigint")&&DQ($,""+N);break;case"onScroll":N!=null&&(typeof N!=="function"&&V4(G,N),s0("scroll",$));break;case"onScrollEnd":N!=null&&(typeof N!=="function"&&V4(G,N),s0("scrollend",$));break;case"onClick":N!=null&&(typeof N!=="function"&&V4(G,N),$.onclick=i4);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(K7.hasOwnProperty(G))N!=null&&typeof N!=="function"&&V4(G,N);else $:{if(G[0]==="o"&&G[1]==="n"&&(U=G.endsWith("Capture"),Q=G.slice(2,U?G.length-7:void 0),B=$[v6]||null,B=B!=null?B[G]:null,typeof B==="function"&&$.removeEventListener(Q,B,U),typeof N==="function")){typeof B!=="function"&&B!==null&&(G in $?$[G]=null:$.hasAttribute(G)&&$.removeAttribute(G)),$.addEventListener(Q,N,U);break $}G in $?$[G]=N:N===!0?$.setAttribute(G,""):YZ($,G,N)}}}function W6($,Q,G){switch(FN(Q,G),Q){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":s0("error",$),s0("load",$);var N=!1,U=!1,B;for(B in G)if(G.hasOwnProperty(B)){var F=G[B];if(F!=null)switch(B){case"src":N=!0;break;case"srcSet":U=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(Q+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");default:H1($,Q,B,F,G,null)}}U&&H1($,Q,"srcSet",G.srcSet,G,null),N&&H1($,Q,"src",G.src,G,null);return;case"input":u$("input",G),s0("invalid",$);var R=B=F=U=null,L=null,C=null;for(N in G)if(G.hasOwnProperty(N)){var b=G[N];if(b!=null)switch(N){case"name":U=b;break;case"type":F=b;break;case"checked":L=b;break;case"defaultChecked":C=b;break;case"value":B=b;break;case"defaultValue":R=b;break;case"children":case"dangerouslySetInnerHTML":if(b!=null)throw Error(Q+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");break;default:H1($,Q,N,b,G,null)}}uK($,G),mK($,B,R,L,C,F,U,!1);return;case"select":u$("select",G),s0("invalid",$),N=F=B=null;for(U in G)if(G.hasOwnProperty(U)&&(R=G[U],R!=null))switch(U){case"value":B=R;break;case"defaultValue":F=R;break;case"multiple":N=R;default:H1($,Q,U,R,G,null)}cK($,G),Q=B,G=F,$.multiple=!!N,Q!=null?J9($,!!N,Q,!1):G!=null&&J9($,!!N,G,!0);return;case"textarea":u$("textarea",G),s0("invalid",$),B=U=N=null;for(F in G)if(G.hasOwnProperty(F)&&(R=G[F],R!=null))switch(F){case"value":N=R;break;case"defaultValue":U=R;break;case"children":B=R;break;case"dangerouslySetInnerHTML":if(R!=null)throw Error("`dangerouslySetInnerHTML` does not make sense on <textarea>.");break;default:H1($,Q,F,R,G,null)}lK($,G),sK($,N,U,B);return;case"option":dK($,G);for(L in G)if(G.hasOwnProperty(L)&&(N=G[L],N!=null))switch(L){case"selected":$.selected=N&&typeof N!=="function"&&typeof N!=="symbol";break;default:H1($,Q,L,N,G,null)}return;case"dialog":s0("beforetoggle",$),s0("toggle",$),s0("cancel",$),s0("close",$);break;case"iframe":case"object":s0("load",$);break;case"video":case"audio":for(N=0;N<a2.length;N++)s0(a2[N],$);break;case"image":s0("error",$),s0("load",$);break;case"details":s0("toggle",$);break;case"embed":case"source":case"link":s0("error",$),s0("load",$);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(C in G)if(G.hasOwnProperty(C)&&(N=G[C],N!=null))switch(C){case"children":case"dangerouslySetInnerHTML":throw Error(Q+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");default:H1($,Q,C,N,G,null)}return;default:if(vQ(Q)){for(b in G)G.hasOwnProperty(b)&&(N=G[b],N!==void 0&&wN($,Q,b,N,G,void 0));return}}for(R in G)G.hasOwnProperty(R)&&(N=G[R],N!=null&&H1($,Q,R,N,G,null))}function O_($,Q,G,N){switch(FN(Q,N),Q){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var U=null,B=null,F=null,R=null,L=null,C=null,b=null;for(g in G){var y=G[g];if(G.hasOwnProperty(g)&&y!=null)switch(g){case"checked":break;case"value":break;case"defaultValue":L=y;default:N.hasOwnProperty(g)||H1($,Q,g,null,N,y)}}for(var j in N){var g=N[j];if(y=G[j],N.hasOwnProperty(j)&&(g!=null||y!=null))switch(j){case"type":B=g;break;case"name":U=g;break;case"checked":C=g;break;case"defaultChecked":b=g;break;case"value":F=g;break;case"defaultValue":R=g;break;case"children":case"dangerouslySetInnerHTML":if(g!=null)throw Error(Q+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");break;default:g!==y&&H1($,Q,j,g,N,y)}}Q=G.type==="checkbox"||G.type==="radio"?G.checked!=null:G.value!=null,N=N.type==="checkbox"||N.type==="radio"?N.checked!=null:N.value!=null,Q||!N||ow||(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"),ow=!0),!Q||N||nw||(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"),nw=!0),jX($,F,R,L,C,b,B,U);return;case"select":g=F=R=j=null;for(B in G)if(L=G[B],G.hasOwnProperty(B)&&L!=null)switch(B){case"value":break;case"multiple":g=L;default:N.hasOwnProperty(B)||H1($,Q,B,null,N,L)}for(U in N)if(B=N[U],L=G[U],N.hasOwnProperty(U)&&(B!=null||L!=null))switch(U){case"value":j=B;break;case"defaultValue":R=B;break;case"multiple":F=B;default:B!==L&&H1($,Q,U,B,N,L)}N=R,Q=F,G=g,j!=null?J9($,!!Q,j,!1):!!G!==!!Q&&(N!=null?J9($,!!Q,N,!0):J9($,!!Q,Q?[]:"",!1));return;case"textarea":g=j=null;for(R in G)if(U=G[R],G.hasOwnProperty(R)&&U!=null&&!N.hasOwnProperty(R))switch(R){case"value":break;case"children":break;default:H1($,Q,R,null,N,U)}for(F in N)if(U=N[F],B=G[F],N.hasOwnProperty(F)&&(U!=null||B!=null))switch(F){case"value":j=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&&H1($,Q,F,U,N,B)}rK($,j,g);return;case"option":for(var $0 in G)if(j=G[$0],G.hasOwnProperty($0)&&j!=null&&!N.hasOwnProperty($0))switch($0){case"selected":$.selected=!1;break;default:H1($,Q,$0,null,N,j)}for(L in N)if(j=N[L],g=G[L],N.hasOwnProperty(L)&&j!==g&&(j!=null||g!=null))switch(L){case"selected":$.selected=j&&typeof j!=="function"&&typeof j!=="symbol";break;default:H1($,Q,L,j,N,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)j=G[G0],G.hasOwnProperty(G0)&&j!=null&&!N.hasOwnProperty(G0)&&H1($,Q,G0,null,N,j);for(C in N)if(j=N[C],g=G[C],N.hasOwnProperty(C)&&j!==g&&(j!=null||g!=null))switch(C){case"children":case"dangerouslySetInnerHTML":if(j!=null)throw Error(Q+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");break;default:H1($,Q,C,j,N,g)}return;default:if(vQ(Q)){for(var R1 in G)j=G[R1],G.hasOwnProperty(R1)&&j!==void 0&&!N.hasOwnProperty(R1)&&wN($,Q,R1,void 0,N,j);for(b in N)j=N[b],g=G[b],!N.hasOwnProperty(b)||j===g||j===void 0&&g===void 0||wN($,Q,b,j,N,g);return}}for(var n0 in G)j=G[n0],G.hasOwnProperty(n0)&&j!=null&&!N.hasOwnProperty(n0)&&H1($,Q,n0,null,N,j);for(y in N)j=N[y],g=G[y],!N.hasOwnProperty(y)||j===g||j==null&&g==null||H1($,Q,y,j,N,g)}function tM($){switch($){case"class":return"className";case"for":return"htmlFor";default:return $}}function RN($){var Q={};$=$.style;for(var G=0;G<$.length;G++){var N=$[G];Q[N]=$.getPropertyValue(N)}return Q}function eM($,Q,G){if(Q!=null&&typeof Q!=="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 N,U=N="",B;for(B in Q)if(Q.hasOwnProperty(B)){var F=Q[B];F!=null&&typeof F!=="boolean"&&F!==""&&(B.indexOf("--")===0?(OQ(F,B),N+=U+B+":"+(""+F).trim()):typeof F!=="number"||F===0||UF.has(B)?(OQ(F,B),N+=U+B.replace(GF,"-$1").toLowerCase().replace(qF,"-ms-")+":"+(""+F).trim()):N+=U+B.replace(GF,"-$1").toLowerCase().replace(qF,"-ms-")+":"+F+"px",U=";")}N=N||null,Q=$.getAttribute("style"),Q!==N&&(N=a$(N),a$(Q)!==N&&(G.style=RN($)))}}function A5($,Q,G,N,U,B){if(U.delete(G),$=$.getAttribute(G),$===null)switch(typeof N){case"undefined":case"function":case"symbol":case"boolean":return}else if(N!=null)switch(typeof N){case"function":case"symbol":case"boolean":break;default:if(K1(N,Q),$===""+N)return}X6(Q,$,N,B)}function $W($,Q,G,N,U,B){if(U.delete(G),$=$.getAttribute(G),$===null){switch(typeof N){case"function":case"symbol":return}if(!N)return}else switch(typeof N){case"function":case"symbol":break;default:if(N)return}X6(Q,$,N,B)}function zN($,Q,G,N,U,B){if(U.delete(G),$=$.getAttribute(G),$===null)switch(typeof N){case"undefined":case"function":case"symbol":return}else if(N!=null)switch(typeof N){case"function":case"symbol":break;default:if(K1(N,G),$===""+N)return}X6(Q,$,N,B)}function QW($,Q,G,N,U,B){if(U.delete(G),$=$.getAttribute(G),$===null)switch(typeof N){case"undefined":case"function":case"symbol":case"boolean":return;default:if(isNaN(N))return}else if(N!=null)switch(typeof N){case"function":case"symbol":case"boolean":break;default:if(!isNaN(N)&&(K1(N,Q),$===""+N))return}X6(Q,$,N,B)}function TN($,Q,G,N,U,B){if(U.delete(G),$=$.getAttribute(G),$===null)switch(typeof N){case"undefined":case"function":case"symbol":case"boolean":return}else if(N!=null)switch(typeof N){case"function":case"symbol":case"boolean":break;default:if(K1(N,Q),G=kQ(""+N),$===G)return}X6(Q,$,N,B)}function JW($,Q,G,N){for(var U={},B=new Set,F=$.attributes,R=0;R<F.length;R++)switch(F[R].name.toLowerCase()){case"value":break;case"checked":break;case"selected":break;default:B.add(F[R].name)}if(vQ(Q)){for(var L in G)if(G.hasOwnProperty(L)){var C=G[L];if(C!=null){if(K7.hasOwnProperty(L))typeof C!=="function"&&V4(L,C);else if(G.suppressHydrationWarning!==!0)switch(L){case"children":typeof C!=="string"&&typeof C!=="number"||X6("children",$.textContent,C,U);continue;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":continue;case"dangerouslySetInnerHTML":F=$.innerHTML,C=C?C.__html:void 0,C!=null&&(C=iM($,C),X6(L,F,C,U));continue;case"style":B.delete(L),eM($,C,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"),F=gK($,"class",C),X6("className",F,C,U);continue;default:N.context===z$&&Q!=="svg"&&Q!=="math"?B.delete(L.toLowerCase()):B.delete(L),F=gK($,L,C),X6(L,F,C,U)}}}}else for(C in G)if(G.hasOwnProperty(C)&&(L=G[C],L!=null)){if(K7.hasOwnProperty(C))typeof L!=="function"&&V4(C,L);else if(G.suppressHydrationWarning!==!0)switch(C){case"children":typeof L!=="string"&&typeof L!=="number"||X6("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":F=$.innerHTML,L=L?L.__html:void 0,L!=null&&(L=iM($,L),F!==L&&(U[C]={__html:F}));continue;case"className":A5($,C,"class",L,B,U);continue;case"tabIndex":A5($,C,"tabindex",L,B,U);continue;case"style":B.delete(C),eM($,L,U);continue;case"multiple":B.delete(C),X6(C,$.multiple,L,U);continue;case"muted":B.delete(C),X6(C,$.muted,L,U);continue;case"autoFocus":B.delete("autofocus"),X6(C,$.autofocus,L,U);continue;case"data":if(Q!=="object"){B.delete(C),F=$.getAttribute("data"),X6(C,F,L,U);continue}case"src":case"href":if(!(L!==""||Q==="a"&&C==="href"||Q==="object"&&C==="data")){C==="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.',C,C):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.',C,C);continue}TN($,C,C,L,B,U);continue;case"action":case"formAction":if(F=$.getAttribute(C),typeof L==="function"){B.delete(C.toLowerCase()),C==="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(F===xV){B.delete(C.toLowerCase()),X6(C,"function",L,U);continue}TN($,C,C.toLowerCase(),L,B,U);continue;case"xlinkHref":TN($,C,"xlink:href",L,B,U);continue;case"contentEditable":zN($,C,"contenteditable",L,B,U);continue;case"spellCheck":zN($,C,"spellcheck",L,B,U);continue;case"draggable":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":zN($,C,C,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":$W($,C,C.toLowerCase(),L,B,U);continue;case"capture":case"download":$:{R=$;var b=F=C,y=U;if(B.delete(b),R=R.getAttribute(b),R===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&&R==="")break $;break;default:if(K1(L,F),R===""+L)break $}X6(F,R,L,y)}continue;case"cols":case"rows":case"size":case"span":$:{if(R=$,b=F=C,y=U,B.delete(b),R=R.getAttribute(b),R===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)&&(K1(L,F),R===""+L))break $}X6(F,R,L,y)}continue;case"rowSpan":QW($,C,"rowspan",L,B,U);continue;case"start":QW($,C,C,L,B,U);continue;case"xHeight":A5($,C,"x-height",L,B,U);continue;case"xlinkActuate":A5($,C,"xlink:actuate",L,B,U);continue;case"xlinkArcrole":A5($,C,"xlink:arcrole",L,B,U);continue;case"xlinkRole":A5($,C,"xlink:role",L,B,U);continue;case"xlinkShow":A5($,C,"xlink:show",L,B,U);continue;case"xlinkTitle":A5($,C,"xlink:title",L,B,U);continue;case"xlinkType":A5($,C,"xlink:type",L,B,U);continue;case"xmlBase":A5($,C,"xml:base",L,B,U);continue;case"xmlLang":A5($,C,"xml:lang",L,B,U);continue;case"xmlSpace":A5($,C,"xml:space",L,B,U);continue;case"inert":L!==""||Mq[C]||(Mq[C]=!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.",C)),$W($,C,C,L,B,U);continue;default:if(!(2<C.length)||C[0]!=="o"&&C[0]!=="O"||C[1]!=="n"&&C[1]!=="N"){R=ZB(C),F=!1,N.context===z$&&Q!=="svg"&&Q!=="math"?B.delete(R.toLowerCase()):(b=C.toLowerCase(),b=VG.hasOwnProperty(b)?VG[b]||null:null,b!==null&&b!==C&&(F=!0,B.delete(b)),B.delete(R));$:if(b=$,y=R,R=L,AQ(y))if(b.hasAttribute(y))b=b.getAttribute(y),K1(R,y),R=b===""+R?R:b;else{switch(typeof R){case"function":case"symbol":break $;case"boolean":if(b=y.toLowerCase().slice(0,5),b!=="data-"&&b!=="aria-")break $}R=R===void 0?void 0:null}else R=void 0;F||X6(C,R,L,U)}}}return 0<B.size&&G.suppressHydrationWarning!==!0&&V_($,B,U),Object.keys(U).length===0?null:U}function E_($,Q){switch($.length){case 0:return"";case 1:return $[0];case 2:return $[0]+" "+Q+" "+$[1];default:return $.slice(0,-1).join(", ")+", "+Q+" "+$[$.length-1]}}function ZW($){switch($){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function A_(){if(typeof performance.getEntriesByType==="function"){for(var $=0,Q=0,G=performance.getEntriesByType("resource"),N=0;N<G.length;N++){var U=G[N],B=U.transferSize,F=U.initiatorType,R=U.duration;if(B&&R&&ZW(F)){F=0,R=U.responseEnd;for(N+=1;N<G.length;N++){var L=G[N],C=L.startTime;if(C>R)break;var{transferSize:b,initiatorType:y}=L;b&&ZW(y)&&(L=L.responseEnd,F+=b*(L<R?1:(R-C)/(L-C)))}if(--N,Q+=8*(B+F)/(U.duration/1000),$++,10<$)break}}if(0<$)return Q/$/1e6}return navigator.connection&&($=navigator.connection.downlink,typeof $==="number")?$:5}function NG($){return $.nodeType===9?$:$.ownerDocument}function GW($){switch($){case V9:return QQ;case IG:return Fq;default:return z$}}function qW($,Q){if($===z$)switch(Q){case"svg":return QQ;case"math":return Fq;default:return z$}return $===QQ&&Q==="foreignObject"?z$:$}function LN($,Q){return $==="textarea"||$==="noscript"||typeof Q.children==="string"||typeof Q.children==="number"||typeof Q.children==="bigint"||typeof Q.dangerouslySetInnerHTML==="object"&&Q.dangerouslySetInnerHTML!==null&&Q.dangerouslySetInnerHTML.__html!=null}function j_(){var $=window.event;if($&&$.type==="popstate"){if($===JU)return!1;return JU=$,!0}return JU=null,!1}function G2(){var $=window.event;return $&&$!==$J?$.type:null}function q2(){var $=window.event;return $&&$!==$J?$.timeStamp:-1.1}function S_($){setTimeout(function(){throw $})}function D_($,Q,G){switch(Q){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 v_(){}function k_($,Q,G,N){O_($,Q,G,N),$[v6]=N}function XW($){DQ($,"")}function b_($,Q,G){$.nodeValue=G}function NW($){if(!$.__reactWarnedAboutChildrenConflict){var Q=$[v6]||null;if(Q!==null){var G=S0($);G!==null&&(typeof Q.children==="string"||typeof Q.children==="number"?($.__reactWarnedAboutChildrenConflict=!0,q0(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.')})):Q.dangerouslySetInnerHTML!=null&&($.__reactWarnedAboutChildrenConflict=!0,q0(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 t$($){return $==="head"}function y_($,Q){$.removeChild(Q)}function f_($,Q){($.nodeType===9?$.body:$.nodeName==="HTML"?$.ownerDocument.body:$).removeChild(Q)}function YW($,Q){var G=Q,N=0;do{var U=G.nextSibling;if($.removeChild(G),U&&U.nodeType===8)if(G=U.data,G===e2||G===Wq){if(N===0){$.removeChild(U),T9(Q);return}N--}else if(G===t2||G===C8||G===j7||G===$Q||G===A7)N++;else if(G===mV)X2($.ownerDocument.documentElement);else if(G===pV){G=$.ownerDocument.head,X2(G);for(var B=G.firstChild;B;){var{nextSibling:F,nodeName:R}=B;B[M2]||R==="SCRIPT"||R==="STYLE"||R==="LINK"&&B.rel.toLowerCase()==="stylesheet"||G.removeChild(B),B=F}}else G===dV&&X2($.ownerDocument.body);G=U}while(G);T9(Q)}function UW($,Q){var G=$;$=0;do{var N=G.nextSibling;if(G.nodeType===1?Q?(G._stashedDisplay=G.style.display,G.style.display="none"):(G.style.display=G._stashedDisplay||"",G.getAttribute("style")===""&&G.removeAttribute("style")):G.nodeType===3&&(Q?(G._stashedText=G.nodeValue,G.nodeValue=""):G.nodeValue=G._stashedText||""),N&&N.nodeType===8)if(G=N.data,G===e2)if($===0)break;else $--;else G!==t2&&G!==C8&&G!==j7&&G!==$Q||$++;G=N}while(G)}function g_($){UW($,!0)}function h_($){$=$.style,typeof $.setProperty==="function"?$.setProperty("display","none","important"):$.display="none"}function x_($){$.nodeValue=""}function u_($){UW($,!1)}function m_($,Q){Q=Q[cV],Q=Q!==void 0&&Q!==null&&Q.hasOwnProperty("display")?Q.display:null,$.style.display=Q==null||typeof Q==="boolean"?"":(""+Q).trim()}function d_($,Q){$.nodeValue=Q}function PN($){var Q=$.firstChild;Q&&Q.nodeType===10&&(Q=Q.nextSibling);for(;Q;){var G=Q;switch(Q=Q.nextSibling,G.nodeName){case"HTML":case"HEAD":case"BODY":PN(G),Q0(G);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(G.rel.toLowerCase()==="stylesheet")continue}$.removeChild(G)}}function p_($,Q,G,N){for(;$.nodeType===1;){var U=G;if($.nodeName.toLowerCase()!==Q.toLowerCase()){if(!N&&($.nodeName!=="INPUT"||$.type!=="hidden"))break}else if(!N)if(Q==="input"&&$.type==="hidden"){K1(U.name,"name");var B=U.name==null?null:""+U.name;if(U.type==="hidden"&&$.getAttribute("name")===B)return $}else return $;else if(!$[M2])switch(Q){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($=W5($.nextSibling),$===null)break}return null}function c_($,Q,G){if(Q==="")return null;for(;$.nodeType!==3;){if(($.nodeType!==1||$.nodeName!=="INPUT"||$.type!=="hidden")&&!G)return null;if($=W5($.nextSibling),$===null)return null}return $}function KW($,Q){for(;$.nodeType!==8;){if(($.nodeType!==1||$.nodeName!=="INPUT"||$.type!=="hidden")&&!Q)return null;if($=W5($.nextSibling),$===null)return null}return $}function CN($){return $.data===C8||$.data===j7}function _N($){return $.data===$Q||$.data===C8&&$.ownerDocument.readyState!==ew}function l_($,Q){var G=$.ownerDocument;if($.data===j7)$._reactRetry=Q;else if($.data!==C8||G.readyState!==ew)Q();else{var N=function(){Q(),G.removeEventListener("DOMContentLoaded",N)};G.addEventListener("DOMContentLoaded",N),$._reactRetry=N}}function W5($){for(;$!=null;$=$.nextSibling){var Q=$.nodeType;if(Q===1||Q===3)break;if(Q===8){if(Q=$.data,Q===t2||Q===$Q||Q===C8||Q===j7||Q===A7||Q===eY||Q===tw)break;if(Q===e2||Q===Wq)return null}}return $}function BW($){if($.nodeType===1){for(var Q=$.nodeName.toLowerCase(),G={},N=$.attributes,U=0;U<N.length;U++){var B=N[U];G[tM(B.name)]=B.name.toLowerCase()==="style"?RN($):B.value}return{type:Q,props:G}}return $.nodeType===8?$.data===A7?{type:"Activity",props:{}}:{type:"Suspense",props:{}}:$.nodeValue}function HW($,Q,G){return G===null||G[uV]!==!0?($.nodeValue===Q?$=null:(Q=a$(Q),$=a$($.nodeValue)===Q?null:$.nodeValue),$):null}function IN($){$=$.nextSibling;for(var Q=0;$;){if($.nodeType===8){var G=$.data;if(G===e2||G===Wq){if(Q===0)return W5($.nextSibling);Q--}else G!==t2&&G!==$Q&&G!==C8&&G!==j7&&G!==A7||Q++}$=$.nextSibling}return null}function MW($){$=$.previousSibling;for(var Q=0;$;){if($.nodeType===8){var G=$.data;if(G===t2||G===$Q||G===C8||G===j7||G===A7){if(Q===0)return $;Q--}else G!==e2&&G!==Wq||Q++}$=$.previousSibling}return null}function r_($){T9($)}function s_($){T9($)}function n_($){T9($)}function WW($,Q,G,N,U){switch(U&&yX($,N.ancestorInfo),Q=NG(G),$){case"html":if($=Q.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($=Q.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($=Q.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 o_($,Q,G,N){if(!G[J8]&&S0(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]);W6(G,$,Q),G[F6]=N,G[v6]=Q}function X2($){for(var Q=$.attributes;Q.length;)$.removeAttributeNode(Q[0]);Q0($)}function YG($){return typeof $.getRootNode==="function"?$.getRootNode():$.nodeType===9?$:$.ownerDocument}function FW($,Q,G){var N=JQ;if(N&&typeof Q==="string"&&Q){var U=E5(Q);U='link[rel="'+$+'"][href="'+U+'"]',typeof G==="string"&&(U+='[crossorigin="'+G+'"]'),qR.has(U)||(qR.add(U),$={rel:$,crossOrigin:G,href:Q},N.querySelector(U)===null&&(Q=N.createElement("link"),W6(Q,"link",$),T0(Q),N.head.appendChild(Q)))}}function wW($,Q,G,N){var U=(U=$8.current)?YG(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=R9(G.href),Q=t0(U).hoistableStyles,N=Q.get(G),N||(N={type:"style",instance:null,count:0,state:null},Q.set(G,N)),N):{type:"void",instance:null,count:0,state:null};case"link":if(G.rel==="stylesheet"&&typeof G.href==="string"&&typeof G.precedence==="string"){$=R9(G.href);var B=t0(U).hoistableStyles,F=B.get($);if(!F&&(U=U.ownerDocument||U,F={type:"stylesheet",instance:null,count:0,state:{loading:D7,preload:null}},B.set($,F),(B=U.querySelector(N2($)))&&!B._p&&(F.instance=B,F.state.loading=QJ|x5),!u5.has($))){var R={rel:"preload",as:"style",href:G.href,crossOrigin:G.crossOrigin,integrity:G.integrity,media:G.media,hrefLang:G.hrefLang,referrerPolicy:G.referrerPolicy};u5.set($,R),B||i_(U,$,R,F.state)}if(Q&&N===null)throw G=`
|
|
177
177
|
|
|
178
|
-
- `+
|
|
179
|
-
+ `+
|
|
178
|
+
- `+UG(Q)+`
|
|
179
|
+
+ `+UG(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 F}if(Q&&N!==null)throw G=`
|
|
180
180
|
|
|
181
|
-
- `+
|
|
182
|
-
+ `+XG(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=w7(G),Z=e0(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 XG($){var Z=0,G="<link";return typeof $.rel==="string"?(Z++,G+=' rel="'+$.rel+'"'):i6.call($,"rel")&&(Z++,G+=' rel="'+($.rel===null?"null":"invalid type "+typeof $.rel)+'"'),typeof $.href==="string"?(Z++,G+=' href="'+$.href+'"'):i6.call($,"href")&&(Z++,G+=' href="'+($.href===null?"null":"invalid type "+typeof $.href)+'"'),typeof $.precedence==="string"?(Z++,G+=' precedence="'+$.precedence+'"'):i6.call($,"precedence")&&(Z++,G+=" precedence={"+($.precedence===null?"null":"invalid type "+typeof $.precedence)+"}"),Object.getOwnPropertyNames($).length>Z&&(G+=" ..."),G+" />"}function W7($){return'href="'+V6($)+'"'}function qZ($){return'link[rel="stylesheet"]['+$+"]"}function FF($){return d0({},$,{"data-precedence":$.precedence,precedence:null})}function o_($,Z,G,Y){$.querySelector('link[rel="preload"][as="style"]['+Z+"]")?Y.loading=$Q:(Z=$.createElement("link"),Y.preload=Z,Z.addEventListener("load",function(){return Y.loading|=$Q}),Z.addEventListener("error",function(){return Y.loading|=$R}),M5(Z,"link",G),z0(Z),$.head.appendChild(Z))}function w7($){return'[src="'+V6($)+'"]'}function YZ($){return"script[async]"+$}function WF($,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,z0(Y),Y;var U=d0({},G,{"data-href":G.href,"data-precedence":G.precedence,href:null,precedence:null});return Y=($.ownerDocument||$).createElement("style"),z0(Y),M5(Y,"style",U),qG(Y,G.precedence,$),Z.instance=Y;case"stylesheet":U=W7(G.href);var B=$.querySelector(qZ(U));if(B)return Z.state.loading|=g6,Z.instance=B,z0(B),B;Y=FF(G),(U=h6.get(U))&&LY(Y,U),B=($.ownerDocument||$).createElement("link"),z0(B);var W=B;return W._p=new Promise(function(R,P){W.onload=R,W.onerror=P}),M5(B,"link",Y),Z.state.loading|=g6,qG(B,G.precedence,$),Z.instance=B;case"script":if(B=w7(G.src),U=$.querySelector(YZ(B)))return Z.instance=U,z0(U),U;if(Y=G,U=h6.get(B))Y=d0({},G),CY(Y,U);return $=$.ownerDocument||$,U=$.createElement("script"),z0(U),M5(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&g6)===j9&&(Y=Z.instance,Z.state.loading|=g6,qG(Y,G.precedence,$));return Z.instance}function qG($,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 R=Y[W];if(R.dataset.precedence===Z)B=R;else if(B!==U)break}B?B.parentNode.insertBefore($,B.nextSibling):(Z=G.nodeType===9?G.head:G,Z.insertBefore($,Z.firstChild))}function LY($,Z){$.crossOrigin==null&&($.crossOrigin=Z.crossOrigin),$.referrerPolicy==null&&($.referrerPolicy=Z.referrerPolicy),$.title==null&&($.title=Z.title)}function CY($,Z){$.crossOrigin==null&&($.crossOrigin=Z.crossOrigin),$.referrerPolicy==null&&($.referrerPolicy=Z.referrerPolicy),$.integrity==null&&($.integrity=Z.integrity)}function wF($,Z,G){if(H3===null){var Y=new Map,U=H3=new Map;U.set(G,Y)}else U=H3,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[HZ]||B[F5]||$==="link"&&B.getAttribute("rel")==="stylesheet")&&B.namespaceURI!==_7){var W=B.getAttribute(Z)||"";W=$+W;var R=Y.get(W);R?R.push(B):Y.set(W,[B])}}return Y}function RF($,Z,G){$=$.ownerDocument||$,$.head.insertBefore(G,Z==="title"?$.querySelector("head > title"):null)}function i_($,Z,G){var Y=!G.ancestorInfo.containerTagInScope;if(G.context===e7||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=O_(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 zF($){return $.type==="stylesheet"&&($.state.loading&ZR)===j9?!1:!0}function a_($,Z,G,Y){if(G.type==="stylesheet"&&(typeof Y.media!=="string"||matchMedia(Y.media).matches!==!1)&&(G.state.loading&g6)===j9){if(G.instance===null){var U=W7(Y.href),B=Z.querySelector(qZ(U));if(B){Z=B._p,Z!==null&&typeof Z==="object"&&typeof Z.then==="function"&&($.count++,$=YG.bind($),Z.then($,$)),G.state.loading|=g6,G.instance=B,z0(B);return}B=Z.ownerDocument||Z,Y=FF(Y),(U=h6.get(U))&&LY(Y,U),B=B.createElement("link"),z0(B);var W=B;W._p=new Promise(function(R,P){W.onload=R,W.onerror=P}),M5(B,"link",Y),G.instance=B}$.stylesheets===null&&($.stylesheets=new Map),$.stylesheets.set(G,Z),(Z=G.state.preload)&&(G.state.loading&ZR)===j9&&($.count++,G=YG.bind($),Z.addEventListener("load",G),Z.addEventListener("error",G))}}function t_($,Z){return $.stylesheets&&$.count===0&&NG($,$.stylesheets),0<$.count||0<$.imgCount?function(G){var Y=setTimeout(function(){if($.stylesheets&&NG($,$.stylesheets),$.unsuspend){var B=$.unsuspend;$.unsuspend=null,B()}},rV+Z);0<$.imgBytes&&$U===0&&($U=125*E_()*nV);var U=setTimeout(function(){if($.waitingForImages=!1,$.count===0&&($.stylesheets&&NG($,$.stylesheets),$.unsuspend)){var B=$.unsuspend;$.unsuspend=null,B()}},($.imgBytes>$U?50:sV)+Z);return $.unsuspend=G,function(){$.unsuspend=null,clearTimeout(Y),clearTimeout(U)}}:null}function YG(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)NG(this,this.stylesheets);else if(this.unsuspend){var $=this.unsuspend;this.unsuspend=null,$()}}}function NG($,Z){$.stylesheets=null,$.unsuspend!==null&&($.count++,M3=new Map,Z.forEach(e_,$),M3=null,YG.call($))}function e_($,Z){if(!(Z.state.loading&g6)){var G=M3.get($);if(G)var Y=G.get(ZU);else{G=new Map,M3.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(ZU,Y)}U=Z.instance,W=U.getAttribute("data-precedence"),B=G.get(W)||Y,B===Y&&G.set(ZU,U),G.set(W,U),this.count++,Y=YG.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|=g6}}function $I($,Z,G,Y,U,B,W,R,P){this.tag=1,this.containerInfo=$,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=A9,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=e9(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=e9(0),this.hiddenUpdates=e9(null),this.identifierPrefix=Y,this.onUncaughtError=U,this.onCaughtError=B,this.onRecoverableError=W,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=P,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 TF($,Z,G,Y,U,B,W,R,P,C,k,f){return $=new $I($,Z,G,W,P,C,k,f,R),Z=TV,B===!0&&(Z|=I5|t6),Z|=f0,B=L(3,null,null,Z),$.current=B,B.stateNode=$,Z=iX(),Z9(Z),$.pooledCache=Z,Z9(Z),B.memoizedState={element:Y,isDehydrated:G,cache:Z},Zq(B),$}function PF($){if(!$)return Z2;return $=Z2,$}function _Y($,Z,G,Y,U,B){if(_5&&typeof _5.onScheduleFiberRoot==="function")try{_5.onScheduleFiberRoot(L7,Y,G)}catch(W){E4||(E4=!0,console.error("React instrumentation encountered an error: %o",W))}U=PF(U),Y.context===null?Y.context=U:Y.pendingContext=U,O4&&F6!==null&&!qR&&(qR=!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.
|
|
181
|
+
- `+UG(Q)+`
|
|
182
|
+
+ `+UG(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 Q=G.async,G=G.src,typeof G==="string"&&Q&&typeof Q!=="function"&&typeof Q!=="symbol"?(G=z9(G),Q=t0(U).hoistableScripts,N=Q.get(G),N||(N={type:"script",instance:null,count:0,state:null},Q.set(G,N)),N):{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 UG($){var Q=0,G="<link";return typeof $.rel==="string"?(Q++,G+=' rel="'+$.rel+'"'):t5.call($,"rel")&&(Q++,G+=' rel="'+($.rel===null?"null":"invalid type "+typeof $.rel)+'"'),typeof $.href==="string"?(Q++,G+=' href="'+$.href+'"'):t5.call($,"href")&&(Q++,G+=' href="'+($.href===null?"null":"invalid type "+typeof $.href)+'"'),typeof $.precedence==="string"?(Q++,G+=' precedence="'+$.precedence+'"'):t5.call($,"precedence")&&(Q++,G+=" precedence={"+($.precedence===null?"null":"invalid type "+typeof $.precedence)+"}"),Object.getOwnPropertyNames($).length>Q&&(G+=" ..."),G+" />"}function R9($){return'href="'+E5($)+'"'}function N2($){return'link[rel="stylesheet"]['+$+"]"}function RW($){return u0({},$,{"data-precedence":$.precedence,precedence:null})}function i_($,Q,G,N){$.querySelector('link[rel="preload"][as="style"]['+Q+"]")?N.loading=QJ:(Q=$.createElement("link"),N.preload=Q,Q.addEventListener("load",function(){return N.loading|=QJ}),Q.addEventListener("error",function(){return N.loading|=ZR}),W6(Q,"link",G),T0(Q),$.head.appendChild(Q))}function z9($){return'[src="'+E5($)+'"]'}function Y2($){return"script[async]"+$}function zW($,Q,G){if(Q.count++,Q.instance===null)switch(Q.type){case"style":var N=$.querySelector('style[data-href~="'+E5(G.href)+'"]');if(N)return Q.instance=N,T0(N),N;var U=u0({},G,{"data-href":G.href,"data-precedence":G.precedence,href:null,precedence:null});return N=($.ownerDocument||$).createElement("style"),T0(N),W6(N,"style",U),KG(N,G.precedence,$),Q.instance=N;case"stylesheet":U=R9(G.href);var B=$.querySelector(N2(U));if(B)return Q.state.loading|=x5,Q.instance=B,T0(B),B;N=RW(G),(U=u5.get(U))&&VN(N,U),B=($.ownerDocument||$).createElement("link"),T0(B);var F=B;return F._p=new Promise(function(R,L){F.onload=R,F.onerror=L}),W6(B,"link",N),Q.state.loading|=x5,KG(B,G.precedence,$),Q.instance=B;case"script":if(B=z9(G.src),U=$.querySelector(Y2(B)))return Q.instance=U,T0(U),U;if(N=G,U=u5.get(B))N=u0({},G),ON(N,U);return $=$.ownerDocument||$,U=$.createElement("script"),T0(U),W6(U,"link",N),$.head.appendChild(U),Q.instance=U;case"void":return null;default:throw Error('acquireResource encountered a resource type it did not expect: "'+Q.type+'". this is a bug in React.')}else Q.type==="stylesheet"&&(Q.state.loading&x5)===D7&&(N=Q.instance,Q.state.loading|=x5,KG(N,G.precedence,$));return Q.instance}function KG($,Q,G){for(var N=G.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),U=N.length?N[N.length-1]:null,B=U,F=0;F<N.length;F++){var R=N[F];if(R.dataset.precedence===Q)B=R;else if(B!==U)break}B?B.parentNode.insertBefore($,B.nextSibling):(Q=G.nodeType===9?G.head:G,Q.insertBefore($,Q.firstChild))}function VN($,Q){$.crossOrigin==null&&($.crossOrigin=Q.crossOrigin),$.referrerPolicy==null&&($.referrerPolicy=Q.referrerPolicy),$.title==null&&($.title=Q.title)}function ON($,Q){$.crossOrigin==null&&($.crossOrigin=Q.crossOrigin),$.referrerPolicy==null&&($.referrerPolicy=Q.referrerPolicy),$.integrity==null&&($.integrity=Q.integrity)}function TW($,Q,G){if(wq===null){var N=new Map,U=wq=new Map;U.set(G,N)}else U=wq,N=U.get(G),N||(N=new Map,U.set(G,N));if(N.has($))return N;N.set($,null),G=G.getElementsByTagName($);for(U=0;U<G.length;U++){var B=G[U];if(!(B[M2]||B[F6]||$==="link"&&B.getAttribute("rel")==="stylesheet")&&B.namespaceURI!==V9){var F=B.getAttribute(Q)||"";F=$+F;var R=N.get(F);R?R.push(B):N.set(F,[B])}}return N}function LW($,Q,G){$=$.ownerDocument||$,$.head.insertBefore(G,Q==="title"?$.querySelector("head > title"):null)}function a_($,Q,G){var N=!G.ancestorInfo.containerTagInScope;if(G.context===QQ||Q.itemProp!=null)return!N||Q.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 Q.precedence!=="string"||typeof Q.href!=="string"||Q.href===""){N&&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 Q.rel!=="string"||typeof Q.href!=="string"||Q.href===""||Q.onLoad||Q.onError){if(Q.rel==="stylesheet"&&typeof Q.precedence==="string"){$=Q.href;var{onError:U,disabled:B}=Q;G=[],Q.onLoad&&G.push("`onLoad`"),U&&G.push("`onError`"),B!=null&&G.push("`disabled`"),U=E_(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)}N&&(typeof Q.rel!=="string"||typeof Q.href!=="string"||Q.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"):(Q.onError||Q.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(Q.rel){case"stylesheet":return $=Q.precedence,Q=Q.disabled,typeof $!=="string"&&N&&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"&&Q==null;default:return!0}case"script":if($=Q.async&&typeof Q.async!=="function"&&typeof Q.async!=="symbol",!$||Q.onLoad||Q.onError||!Q.src||typeof Q.src!=="string"){N&&($?Q.onLoad||Q.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":N&&console.error("Cannot render <%s> outside the main document. Try moving it into the root <head> tag.",$)}return!1}function PW($){return $.type==="stylesheet"&&($.state.loading&GR)===D7?!1:!0}function t_($,Q,G,N){if(G.type==="stylesheet"&&(typeof N.media!=="string"||matchMedia(N.media).matches!==!1)&&(G.state.loading&x5)===D7){if(G.instance===null){var U=R9(N.href),B=Q.querySelector(N2(U));if(B){Q=B._p,Q!==null&&typeof Q==="object"&&typeof Q.then==="function"&&($.count++,$=BG.bind($),Q.then($,$)),G.state.loading|=x5,G.instance=B,T0(B);return}B=Q.ownerDocument||Q,N=RW(N),(U=u5.get(U))&&VN(N,U),B=B.createElement("link"),T0(B);var F=B;F._p=new Promise(function(R,L){F.onload=R,F.onerror=L}),W6(B,"link",N),G.instance=B}$.stylesheets===null&&($.stylesheets=new Map),$.stylesheets.set(G,Q),(Q=G.state.preload)&&(G.state.loading&GR)===D7&&($.count++,G=BG.bind($),Q.addEventListener("load",G),Q.addEventListener("error",G))}}function e_($,Q){return $.stylesheets&&$.count===0&&HG($,$.stylesheets),0<$.count||0<$.imgCount?function(G){var N=setTimeout(function(){if($.stylesheets&&HG($,$.stylesheets),$.unsuspend){var B=$.unsuspend;$.unsuspend=null,B()}},sV+Q);0<$.imgBytes&&GU===0&&(GU=125*A_()*oV);var U=setTimeout(function(){if($.waitingForImages=!1,$.count===0&&($.stylesheets&&HG($,$.stylesheets),$.unsuspend)){var B=$.unsuspend;$.unsuspend=null,B()}},($.imgBytes>GU?50:nV)+Q);return $.unsuspend=G,function(){$.unsuspend=null,clearTimeout(N),clearTimeout(U)}}:null}function BG(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)HG(this,this.stylesheets);else if(this.unsuspend){var $=this.unsuspend;this.unsuspend=null,$()}}}function HG($,Q){$.stylesheets=null,$.unsuspend!==null&&($.count++,Rq=new Map,Q.forEach($I,$),Rq=null,BG.call($))}function $I($,Q){if(!(Q.state.loading&x5)){var G=Rq.get($);if(G)var N=G.get(qU);else{G=new Map,Rq.set($,G);for(var U=$.querySelectorAll("link[data-precedence],style[data-precedence]"),B=0;B<U.length;B++){var F=U[B];if(F.nodeName==="LINK"||F.getAttribute("media")!=="not all")G.set(F.dataset.precedence,F),N=F}N&&G.set(qU,N)}U=Q.instance,F=U.getAttribute("data-precedence"),B=G.get(F)||N,B===N&&G.set(qU,U),G.set(F,U),this.count++,N=BG.bind(this),U.addEventListener("load",N),U.addEventListener("error",N),B?B.parentNode.insertBefore(U,B.nextSibling):($=$.nodeType===9?$.head:$,$.insertBefore(U,$.firstChild)),Q.state.loading|=x5}}function QI($,Q,G,N,U,B,F,R,L){this.tag=1,this.containerInfo=$,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=S7,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=Q9(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Q9(0),this.hiddenUpdates=Q9(null),this.identifierPrefix=N,this.onUncaughtError=U,this.onCaughtError=B,this.onRecoverableError=F,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(Q=0;31>Q;Q++)$.push(new Set);this._debugRootType=G?"hydrateRoot()":"createRoot()"}function CW($,Q,G,N,U,B,F,R,L,C,b,y){return $=new QI($,Q,G,F,L,C,b,y,R),Q=LV,B===!0&&(Q|=V6|$4),Q|=b0,B=P(3,null,null,Q),$.current=B,B.stateNode=$,Q=$3(),Z7(Q),$.pooledCache=Q,Z7(Q),B.memoizedState={element:N,isDehydrated:G,cache:Q},q3(B),$}function _W($){if(!$)return X8;return $=X8,$}function EN($,Q,G,N,U,B){if(I6&&typeof I6.onScheduleFiberRoot==="function")try{I6.onScheduleFiberRoot(_9,N,G)}catch(F){j4||(j4=!0,console.error("React instrumentation encountered an error: %o",F))}U=_W(U),N.context===null?N.context=U:N.pendingContext=U,A4&&w5!==null&&!UR&&(UR=!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(F6)||"Unknown")),Y=x8(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=m8($,Y,Z),G!==null&&(B4(Z,"root.render()",null),D1(G,$,Z),m$(G,$,Z))}function LF($,Z){if($=$.memoizedState,$!==null&&$.dehydrated!==null){var G=$.retryLane;$.retryLane=G!==0&&G<Z?G:Z}}function IY($,Z){LF($,Z),($=$.alternate)&&LF($,Z)}function CF($){if($.tag===13||$.tag===31){var Z=C5($,67108864);Z!==null&&D1(Z,$,67108864),IY($,67108864)}}function _F($){if($.tag===13||$.tag===31){var Z=B6($);Z=r2(Z);var G=C5($,Z);G!==null&&D1(G,$,Z),IY($,Z)}}function ZI(){return F6}function QI($,Z,G,Y){var U=x.T;x.T=null;var B=q1.p;try{q1.p=W6,VY($,Z,G,Y)}finally{q1.p=B,x.T=U}}function JI($,Z,G,Y){var U=x.T;x.T=null;var B=q1.p;try{q1.p=a6,VY($,Z,G,Y)}finally{q1.p=B,x.T=U}}function VY($,Z,G,Y){if(W3){var U=OY(Y);if(U===null)KY($,Z,Y,w3,G),VF($,Y);else if(GI(U,$,Z,G,Y))Y.stopPropagation();else if(VF($,Y),Z&4&&-1<iV.indexOf($)){for(;U!==null;){var B=j0(U);if(B!==null)switch(B.tag){case 3:if(B=B.stateNode,B.current.memoizedState.isDehydrated){var W=Y4(B.pendingLanes);if(W!==0){var R=B;R.pendingLanes|=2;for(R.entangledLanes|=2;W;){var P=1<<31-j5(W);R.entanglements[1]|=P,W&=~P}C4(B),(a0&(Q5|T6))===K5&&(tG=Y5()+kw,ZZ(0,!1))}}break;case 31:case 13:R=C5(B,2),R!==null&&D1(R,B,2),H7(),IY(B,2)}if(B=OY(Y),B===null&&KY($,Z,Y,w3,G),B===U)break;U=B}U!==null&&Y.stopPropagation()}else KY($,Z,Y,null,G)}}function OY($){return $=vX($),EY($)}function EY($){if(w3=null,$=Y0($),$!==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 w3=$,null}function IF($){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 W6;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 a6;case"message":switch(MI()){case xY:return W6;case mY:return a6;case P7:case FI:return j4;case dY:return zG;default:return j4}default:return j4}}function VF($,Z){switch($){case"focusin":case"focusout":z2=null;break;case"dragenter":case"dragleave":T2=null;break;case"mouseover":case"mouseout":P2=null;break;case"pointerover":case"pointerout":QQ.delete(Z.pointerId);break;case"gotpointercapture":case"lostpointercapture":JQ.delete(Z.pointerId)}}function NZ($,Z,G,Y,U,B){if($===null||$.nativeEvent!==B)return $={blockedOn:Z,domEventName:G,eventSystemFlags:Y,nativeEvent:B,targetContainers:[U]},Z!==null&&(Z=j0(Z),Z!==null&&CF(Z)),$;return $.eventSystemFlags|=Y,Z=$.targetContainers,U!==null&&Z.indexOf(U)===-1&&Z.push(U),$}function GI($,Z,G,Y,U){switch(Z){case"focusin":return z2=NZ(z2,$,Z,G,Y,U),!0;case"dragenter":return T2=NZ(T2,$,Z,G,Y,U),!0;case"mouseover":return P2=NZ(P2,$,Z,G,Y,U),!0;case"pointerover":var B=U.pointerId;return QQ.set(B,NZ(QQ.get(B)||null,$,Z,G,Y,U)),!0;case"gotpointercapture":return B=U.pointerId,JQ.set(B,NZ(JQ.get(B)||null,$,Z,G,Y,U)),!0}return!1}function OF($){var Z=Y0($.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(){_F(G)});return}}else if(Z===31){if(Z=p(G),Z!==null){$.blockedOn=Z,r($.priority,function(){_F(G)});return}}else if(Z===3&&G.stateNode.current.memoizedState.isDehydrated){$.blockedOn=G.tag===3?G.stateNode.containerInfo:null;return}}}$.blockedOn=null}function UG($){if($.blockedOn!==null)return!1;for(var Z=$.targetContainers;0<Z.length;){var G=OY($.nativeEvent);if(G===null){G=$.nativeEvent;var Y=new G.constructor(G.type,G),U=Y;MZ!==null&&console.error("Expected currently replaying event to be null. This error is likely caused by a bug in React. Please file an issue."),MZ=U,G.target.dispatchEvent(Y),MZ===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."),MZ=null}else return Z=j0(G),Z!==null&&CF(Z),$.blockedOn=G,!1;Z.shift()}return!0}function EF($,Z,G){UG($)&&G.delete(Z)}function XI(){QU=!1,z2!==null&&UG(z2)&&(z2=null),T2!==null&&UG(T2)&&(T2=null),P2!==null&&UG(P2)&&(P2=null),QQ.forEach(EF),JQ.forEach(EF)}function KG($,Z){$.blockedOn===Z&&($.blockedOn=null,QU||(QU=!0,Z1.unstable_scheduleCallback(Z1.unstable_NormalPriority,XI)))}function AF($){R3!==$&&(R3=$,Z1.unstable_scheduleCallback(Z1.unstable_NormalPriority,function(){R3===$&&(R3=null);for(var Z=0;Z<$.length;Z+=3){var G=$[Z],Y=$[Z+1],U=$[Z+2];if(typeof Y!=="function")if(EY(Y||G)===null)continue;else break;var B=j0(G);B!==null&&($.splice(Z,3),Z-=3,G={pending:!0,data:U,method:G.method,action:Y},Object.freeze(G),Eq(B,G,Y,U))}}))}function R7($){function Z(P){return KG(P,$)}z2!==null&&KG(z2,$),T2!==null&&KG(T2,$),P2!==null&&KG(P2,$),QQ.forEach(Z),JQ.forEach(Z);for(var G=0;G<L2.length;G++){var Y=L2[G];Y.blockedOn===$&&(Y.blockedOn=null)}for(;0<L2.length&&(G=L2[0],G.blockedOn===null);)OF(G),G.blockedOn===null&&L2.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[S5]||null;if(typeof B==="function")W||AF(G);else if(W){var R=null;if(B&&B.hasAttribute("formAction")){if(U=B,W=B[S5]||null)R=W.formAction;else if(EY(U)!==null)continue}else R=W.action;typeof R==="function"?G[Y+1]=R:(G.splice(Y,3),Y-=3),AF(G)}}}function jF(){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 AY($){this._internalRoot=$}function BG($){this._internalRoot=$}function SF($){$[a8]&&($._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 d0=Object.assign,qI=Symbol.for("react.element"),I4=Symbol.for("react.transitional.element"),z7=Symbol.for("react.portal"),T7=Symbol.for("react.fragment"),HG=Symbol.for("react.strict_mode"),jY=Symbol.for("react.profiler"),SY=Symbol.for("react.consumer"),V4=Symbol.for("react.context"),UZ=Symbol.for("react.forward_ref"),DY=Symbol.for("react.suspense"),vY=Symbol.for("react.suspense_list"),MG=Symbol.for("react.memo"),M6=Symbol.for("react.lazy"),bY=Symbol.for("react.activity"),YI=Symbol.for("react.memo_cache_sentinel"),DF=Symbol.iterator,NI=Symbol.for("react.client.reference"),$5=Array.isArray,x=H$.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,q1=HK.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,UI=Object.freeze({pending:!1,data:null,method:null,action:null}),kY=[],fY=[],Z8=-1,n8=K0(null),KZ=K0(null),o8=K0(null),FG=K0(null),BZ=0,vF,bF,kF,fF,yF,gF,hF;v.__reactDisabledLog=!0;var yY,uF,gY=!1,hY=new(typeof WeakMap==="function"?WeakMap:Map),F6=null,O4=!1,i6=Object.prototype.hasOwnProperty,uY=Z1.unstable_scheduleCallback,KI=Z1.unstable_cancelCallback,BI=Z1.unstable_shouldYield,HI=Z1.unstable_requestPaint,Y5=Z1.unstable_now,MI=Z1.unstable_getCurrentPriorityLevel,xY=Z1.unstable_ImmediatePriority,mY=Z1.unstable_UserBlockingPriority,P7=Z1.unstable_NormalPriority,FI=Z1.unstable_LowPriority,dY=Z1.unstable_IdlePriority,WI=Z1.log,wI=Z1.unstable_setDisableYieldValue,L7=null,_5=null,E4=!1,A4=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u",j5=Math.clz32?Math.clz32:QJ,RI=Math.log,zI=Math.LN2,WG=256,wG=262144,RG=4194304,W6=2,a6=8,j4=32,zG=268435456,i8=Math.random().toString(36).slice(2),F5="__reactFiber$"+i8,S5="__reactProps$"+i8,a8="__reactContainer$"+i8,pY="__reactEvents$"+i8,TI="__reactListeners$"+i8,PI="__reactHandles$"+i8,xF="__reactResources$"+i8,HZ="__reactMarker$"+i8,mF=new Set,N9={},cY={},LI={button:!0,checkbox:!0,image:!0,hidden:!0,radio:!0,reset:!0,submit:!0},CI=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]*$"),dF={},pF={},_I=/[\n"\\]/g,cF=!1,lF=!1,rF=!1,sF=!1,nF=!1,oF=!1,iF=["value","defaultValue"],aF=!1,tF=/["'&<>\n\t]|^\s|\s$/,II="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(" "),eF="applet caption html table td th marquee object template foreignObject desc title".split(" "),VI=eF.concat(["button"]),OI="dd dt li option optgroup p rp rt".split(" "),$W={current:null,formTag:null,aTagInScope:null,buttonTagInScope:null,nobrTagInScope:null,pTagInButtonScope:null,listItemTagAutoclosing:null,dlItemTagAutoclosing:null,containerTagInScope:null,implicitRootScope:!1},TG={},lY={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"]},ZW=/([A-Z])/g,QW=/^ms-/,EI=/^(?:webkit|moz|o)[A-Z]/,AI=/^-ms-/,jI=/-(.)/g,JW=/;\s*$/,C7={},rY={},GW=!1,XW=!1,qW=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(" ")),PG="http://www.w3.org/1998/Math/MathML",_7="http://www.w3.org/2000/svg",SI=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"]]),LG={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"},YW={"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},I7={},DI=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]*$"),vI=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]*$"),NW=!1,D5={},UW=/^on./,bI=/^on[^A-Z]/,kI=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]*$"),fI=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]*$"),yI=/^[\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,MZ=null,V7=null,O7=null,sY=!1,S4=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),nY=!1;if(S4)try{var FZ={};Object.defineProperty(FZ,"passive",{get:function(){nY=!0}}),window.addEventListener("test",FZ,FZ),window.removeEventListener("test",FZ,FZ)}catch($){nY=!1}var t8=null,oY=null,CG=null,U9={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function($){return $.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},_G=u5(U9),WZ=d0({},U9,{view:0,detail:0}),gI=u5(WZ),iY,aY,wZ,IG=d0({},WZ,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:bX,button:0,buttons:0,relatedTarget:function($){return $.relatedTarget===void 0?$.fromElement===$.srcElement?$.toElement:$.fromElement:$.relatedTarget},movementX:function($){if("movementX"in $)return $.movementX;return $!==wZ&&(wZ&&$.type==="mousemove"?(iY=$.screenX-wZ.screenX,aY=$.screenY-wZ.screenY):aY=iY=0,wZ=$),iY},movementY:function($){return"movementY"in $?$.movementY:aY}}),KW=u5(IG),hI=d0({},IG,{dataTransfer:0}),uI=u5(hI),xI=d0({},WZ,{relatedTarget:0}),tY=u5(xI),mI=d0({},U9,{animationName:0,elapsedTime:0,pseudoElement:0}),dI=u5(mI),pI=d0({},U9,{clipboardData:function($){return"clipboardData"in $?$.clipboardData:window.clipboardData}}),cI=u5(pI),lI=d0({},U9,{data:0}),BW=u5(lI),rI=BW,sI={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},nI={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"},oI={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"},iI=d0({},WZ,{key:function($){if($.key){var Z=sI[$.key]||$.key;if(Z!=="Unidentified")return Z}return $.type==="keypress"?($=UJ($),$===13?"Enter":String.fromCharCode($)):$.type==="keydown"||$.type==="keyup"?nI[$.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:bX,charCode:function($){return $.type==="keypress"?UJ($):0},keyCode:function($){return $.type==="keydown"||$.type==="keyup"?$.keyCode:0},which:function($){return $.type==="keypress"?UJ($):$.type==="keydown"||$.type==="keyup"?$.keyCode:0}}),aI=u5(iI),tI=d0({},IG,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),HW=u5(tI),eI=d0({},WZ,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:bX}),$V=u5(eI),ZV=d0({},U9,{propertyName:0,elapsedTime:0,pseudoElement:0}),QV=u5(ZV),JV=d0({},IG,{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}),GV=u5(JV),XV=d0({},U9,{newState:0,oldState:0}),qV=u5(XV),YV=[9,13,27,32],MW=229,eY=S4&&"CompositionEvent"in window,RZ=null;S4&&"documentMode"in document&&(RZ=document.documentMode);var NV=S4&&"TextEvent"in window&&!RZ,FW=S4&&(!eY||RZ&&8<RZ&&11>=RZ),WW=32,wW=String.fromCharCode(WW),RW=!1,E7=!1,UV={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},zZ=null,TZ=null,zW=!1;S4&&(zW=SC("input")&&(!document.documentMode||9<document.documentMode));var v5=typeof Object.is==="function"?Object.is:yC,KV=S4&&"documentMode"in document&&11>=document.documentMode,A7=null,$N=null,PZ=null,ZN=!1,j7={animationend:n2("Animation","AnimationEnd"),animationiteration:n2("Animation","AnimationIteration"),animationstart:n2("Animation","AnimationStart"),transitionrun:n2("Transition","TransitionRun"),transitionstart:n2("Transition","TransitionStart"),transitioncancel:n2("Transition","TransitionCancel"),transitionend:n2("Transition","TransitionEnd")},QN={},TW={};S4&&(TW=document.createElement("div").style,("AnimationEvent"in window)||(delete j7.animationend.animation,delete j7.animationiteration.animation,delete j7.animationstart.animation),("TransitionEvent"in window)||delete j7.transitionend.transition);var PW=o2("animationend"),LW=o2("animationiteration"),CW=o2("animationstart"),BV=o2("transitionrun"),HV=o2("transitionstart"),MV=o2("transitioncancel"),_W=o2("transitionend"),IW=new Map,JN="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(" ");JN.push("scrollEnd");var VW=0;if(typeof performance==="object"&&typeof performance.now==="function")var FV=performance,OW=function(){return FV.now()};else{var WV=Date;OW=function(){return WV.now()}}var GN=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($)},wV="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.",VG=0,XN=1,qN=2,YN=3,OG="– ",EG="+ ",EW=" ",P1=typeof console<"u"&&typeof console.timeStamp==="function"&&typeof performance<"u"&&typeof performance.measure==="function",E6="Components ⚛",p0="Scheduler ⚛",l0="Blocking",e8=!1,Q8={color:"primary",properties:null,tooltipText:"",track:E6},$2={start:-0,end:-0,detail:{devtools:Q8}},RV=["Changed Props",""],AW="This component received deeply equal props. It might benefit from useMemo or the React Compiler in its owner.",zV=["Changed Props",AW],LZ=1,J8=2,A6=[],S7=0,NN=0,Z2={};Object.freeze(Z2);var j6=null,D7=null,I0=0,TV=1,f0=2,I5=8,t6=16,PV=32,jW=!1;try{var SW=Object.preventExtensions({})}catch($){jW=!0}var UN=new WeakMap,v7=[],b7=0,AG=null,CZ=0,S6=[],D6=0,K9=null,G8=1,X8="",W5=null,L1=null,s0=!1,D4=!1,w6=null,Q2=null,v6=!1,KN=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."),BN=K0(null),HN=K0(null),DW={},jG=null,k7=null,f7=!1,LV=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()})}},CV=Z1.unstable_scheduleCallback,_V=Z1.unstable_NormalPriority,c1={$$typeof:V4,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0,_currentRenderer:null,_currentRenderer2:null},l1=Z1.unstable_now,SG=console.createTask?console.createTask:function(){return null},_Z=1,DG=2,N5=-0,J2=-0,q8=-0,Y8=null,b5=-1.1,B9=-0,A1=-0,T0=-1.1,L0=-1.1,E1=null,v1=!1,G2=-0,v4=-1.1,IZ=null,X2=0,MN=null,FN=null,H9=-1.1,VZ=null,y7=-1.1,vG=-1.1,b4=-0,N8=-1.1,b6=-1.1,WN=0,OZ=null,vW=null,bW=null,q2=-1.1,M9=null,Y2=-1.1,bG=-1.1,kW=-0,fW=-0,kG=0,U8=null,yW=0,EZ=-1.1,fG=!1,yG=!1,AZ=null,wN=0,F9=0,g7=null,gW=x.S;x.S=function($,Z){if(vw=Y5(),typeof Z==="object"&&Z!==null&&typeof Z.then==="function"){if(0>N8&&0>b6){N8=l1();var G=GZ(),Y=JZ();if(G!==Y2||Y!==M9)Y2=-1.1;q2=G,M9=Y}pC($,Z)}gW!==null&&gW($,Z)};var W9=K0(null),e6={recordUnsafeLifecycleWarnings:function(){},flushPendingUnsafeLifecycleWarnings:function(){},recordLegacyContextWarning:function(){},flushLegacyContextWarning:function(){},discardPendingWarnings:function(){}},jZ=[],SZ=[],DZ=[],vZ=[],bZ=[],kZ=[],w9=new Set;e6.recordUnsafeLifecycleWarnings=function($,Z){w9.has($.type)||(typeof Z.componentWillMount==="function"&&Z.componentWillMount.__suppressDeprecationWarning!==!0&&jZ.push($),$.mode&I5&&typeof Z.UNSAFE_componentWillMount==="function"&&SZ.push($),typeof Z.componentWillReceiveProps==="function"&&Z.componentWillReceiveProps.__suppressDeprecationWarning!==!0&&DZ.push($),$.mode&I5&&typeof Z.UNSAFE_componentWillReceiveProps==="function"&&vZ.push($),typeof Z.componentWillUpdate==="function"&&Z.componentWillUpdate.__suppressDeprecationWarning!==!0&&bZ.push($),$.mode&I5&&typeof Z.UNSAFE_componentWillUpdate==="function"&&kZ.push($))},e6.flushPendingUnsafeLifecycleWarnings=function(){var $=new Set;0<jZ.length&&(jZ.forEach(function(R){$.add(d(R)||"Component"),w9.add(R.type)}),jZ=[]);var Z=new Set;0<SZ.length&&(SZ.forEach(function(R){Z.add(d(R)||"Component"),w9.add(R.type)}),SZ=[]);var G=new Set;0<DZ.length&&(DZ.forEach(function(R){G.add(d(R)||"Component"),w9.add(R.type)}),DZ=[]);var Y=new Set;0<vZ.length&&(vZ.forEach(function(R){Y.add(d(R)||"Component"),w9.add(R.type)}),vZ=[]);var U=new Set;0<bZ.length&&(bZ.forEach(function(R){U.add(d(R)||"Component"),w9.add(R.type)}),bZ=[]);var B=new Set;if(0<kZ.length&&(kZ.forEach(function(R){B.add(d(R)||"Component"),w9.add(R.type)}),kZ=[]),0<Z.size){var W=T(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(w5)||"Unknown")),N=l$(Q),N.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),N.callback=B),G=r$($,N,Q),G!==null&&(M4(Q,"root.render()",null),v1(G,$,Q),dQ(G,$,Q))}function IW($,Q){if($=$.memoizedState,$!==null&&$.dehydrated!==null){var G=$.retryLane;$.retryLane=G!==0&&G<Q?G:Q}}function AN($,Q){IW($,Q),($=$.alternate)&&IW($,Q)}function VW($){if($.tag===13||$.tag===31){var Q=_6($,67108864);Q!==null&&v1(Q,$,67108864),AN($,67108864)}}function OW($){if($.tag===13||$.tag===31){var Q=M5($);Q=n8(Q);var G=_6($,Q);G!==null&&v1(G,$,Q),AN($,Q)}}function JI(){return w5}function ZI($,Q,G,N){var U=u.T;u.T=null;var B=q1.p;try{q1.p=R5,jN($,Q,G,N)}finally{q1.p=B,u.T=U}}function GI($,Q,G,N){var U=u.T;u.T=null;var B=q1.p;try{q1.p=e5,jN($,Q,G,N)}finally{q1.p=B,u.T=U}}function jN($,Q,G,N){if(Tq){var U=SN(N);if(U===null)WN($,Q,N,Lq,G),AW($,N);else if(qI(U,$,Q,G,N))N.stopPropagation();else if(AW($,N),Q&4&&-1<aV.indexOf($)){for(;U!==null;){var B=S0(U);if(B!==null)switch(B.tag){case 3:if(B=B.stateNode,B.current.memoizedState.isDehydrated){var F=U4(B.pendingLanes);if(F!==0){var R=B;R.pendingLanes|=2;for(R.entangledLanes|=2;F;){var L=1<<31-D6(F);R.entanglements[1]|=L,F&=~L}I4(B),(i0&(J6|P5))===K6&&(Jq=N6()+gw,J2(0,!1))}}break;case 31:case 13:R=_6(B,2),R!==null&&v1(R,B,2),W9(),AN(B,2)}if(B=SN(N),B===null&&WN($,Q,N,Lq,G),B===U)break;U=B}U!==null&&N.stopPropagation()}else WN($,Q,N,null,G)}}function SN($){return $=fX($),DN($)}function DN($){if(Lq=null,$=Y0($),$!==null){var Q=D($);if(Q===null)$=null;else{var G=Q.tag;if(G===13){if($=h(Q),$!==null)return $;$=null}else if(G===31){if($=p(Q),$!==null)return $;$=null}else if(G===3){if(Q.stateNode.current.memoizedState.isDehydrated)return Q.tag===3?Q.stateNode.containerInfo:null;$=null}else Q!==$&&($=null)}}return Lq=$,null}function EW($){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 R5;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 e5;case"message":switch(WI()){case cN:return R5;case lN:return e5;case C9:case FI:return D4;case rN:return CG;default:return D4}default:return D4}}function AW($,Q){switch($){case"focusin":case"focusout":_8=null;break;case"dragenter":case"dragleave":I8=null;break;case"mouseover":case"mouseout":V8=null;break;case"pointerover":case"pointerout":ZJ.delete(Q.pointerId);break;case"gotpointercapture":case"lostpointercapture":GJ.delete(Q.pointerId)}}function U2($,Q,G,N,U,B){if($===null||$.nativeEvent!==B)return $={blockedOn:Q,domEventName:G,eventSystemFlags:N,nativeEvent:B,targetContainers:[U]},Q!==null&&(Q=S0(Q),Q!==null&&VW(Q)),$;return $.eventSystemFlags|=N,Q=$.targetContainers,U!==null&&Q.indexOf(U)===-1&&Q.push(U),$}function qI($,Q,G,N,U){switch(Q){case"focusin":return _8=U2(_8,$,Q,G,N,U),!0;case"dragenter":return I8=U2(I8,$,Q,G,N,U),!0;case"mouseover":return V8=U2(V8,$,Q,G,N,U),!0;case"pointerover":var B=U.pointerId;return ZJ.set(B,U2(ZJ.get(B)||null,$,Q,G,N,U)),!0;case"gotpointercapture":return B=U.pointerId,GJ.set(B,U2(GJ.get(B)||null,$,Q,G,N,U)),!0}return!1}function jW($){var Q=Y0($.target);if(Q!==null){var G=D(Q);if(G!==null){if(Q=G.tag,Q===13){if(Q=h(G),Q!==null){$.blockedOn=Q,r($.priority,function(){OW(G)});return}}else if(Q===31){if(Q=p(G),Q!==null){$.blockedOn=Q,r($.priority,function(){OW(G)});return}}else if(Q===3&&G.stateNode.current.memoizedState.isDehydrated){$.blockedOn=G.tag===3?G.stateNode.containerInfo:null;return}}}$.blockedOn=null}function MG($){if($.blockedOn!==null)return!1;for(var Q=$.targetContainers;0<Q.length;){var G=SN($.nativeEvent);if(G===null){G=$.nativeEvent;var N=new G.constructor(G.type,G),U=N;W2!==null&&console.error("Expected currently replaying event to be null. This error is likely caused by a bug in React. Please file an issue."),W2=U,G.target.dispatchEvent(N),W2===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."),W2=null}else return Q=S0(G),Q!==null&&VW(Q),$.blockedOn=G,!1;Q.shift()}return!0}function SW($,Q,G){MG($)&&G.delete(Q)}function XI(){XU=!1,_8!==null&&MG(_8)&&(_8=null),I8!==null&&MG(I8)&&(I8=null),V8!==null&&MG(V8)&&(V8=null),ZJ.forEach(SW),GJ.forEach(SW)}function WG($,Q){$.blockedOn===Q&&($.blockedOn=null,XU||(XU=!0,$1.unstable_scheduleCallback($1.unstable_NormalPriority,XI)))}function DW($){Pq!==$&&(Pq=$,$1.unstable_scheduleCallback($1.unstable_NormalPriority,function(){Pq===$&&(Pq=null);for(var Q=0;Q<$.length;Q+=3){var G=$[Q],N=$[Q+1],U=$[Q+2];if(typeof N!=="function")if(DN(N||G)===null)continue;else break;var B=S0(G);B!==null&&($.splice(Q,3),Q-=3,G={pending:!0,data:U,method:G.method,action:N},Object.freeze(G),D3(B,G,N,U))}}))}function T9($){function Q(L){return WG(L,$)}_8!==null&&WG(_8,$),I8!==null&&WG(I8,$),V8!==null&&WG(V8,$),ZJ.forEach(Q),GJ.forEach(Q);for(var G=0;G<O8.length;G++){var N=O8[G];N.blockedOn===$&&(N.blockedOn=null)}for(;0<O8.length&&(G=O8[0],G.blockedOn===null);)jW(G),G.blockedOn===null&&O8.shift();if(G=($.ownerDocument||$).$$reactFormReplay,G!=null)for(N=0;N<G.length;N+=3){var U=G[N],B=G[N+1],F=U[v6]||null;if(typeof B==="function")F||DW(G);else if(F){var R=null;if(B&&B.hasAttribute("formAction")){if(U=B,F=B[v6]||null)R=F.formAction;else if(DN(U)!==null)continue}else R=F.action;typeof R==="function"?G[N+1]=R:(G.splice(N,3),N-=3),DW(G)}}}function vW(){function $(B){B.canIntercept&&B.info==="react-transition"&&B.intercept({handler:function(){return new Promise(function(F){return U=F})},focusReset:"manual",scroll:"manual"})}function Q(){U!==null&&(U(),U=null),N||setTimeout(G,20)}function G(){if(!N&&!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 N=!1,U=null;return navigation.addEventListener("navigate",$),navigation.addEventListener("navigatesuccess",Q),navigation.addEventListener("navigateerror",Q),setTimeout(G,100),function(){N=!0,navigation.removeEventListener("navigate",$),navigation.removeEventListener("navigatesuccess",Q),navigation.removeEventListener("navigateerror",Q),U!==null&&(U(),U=null)}}}function vN($){this._internalRoot=$}function FG($){this._internalRoot=$}function kW($){$[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 u0=Object.assign,NI=Symbol.for("react.element"),O4=Symbol.for("react.transitional.element"),L9=Symbol.for("react.portal"),P9=Symbol.for("react.fragment"),wG=Symbol.for("react.strict_mode"),kN=Symbol.for("react.profiler"),bN=Symbol.for("react.consumer"),E4=Symbol.for("react.context"),K2=Symbol.for("react.forward_ref"),yN=Symbol.for("react.suspense"),fN=Symbol.for("react.suspense_list"),RG=Symbol.for("react.memo"),F5=Symbol.for("react.lazy"),gN=Symbol.for("react.activity"),YI=Symbol.for("react.memo_cache_sentinel"),bW=Symbol.iterator,UI=Symbol.for("react.client.reference"),$6=Array.isArray,u=MQ.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,q1=FK.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,KI=Object.freeze({pending:!1,data:null,method:null,action:null}),hN=[],xN=[],G$=-1,e$=B0(null),B2=B0(null),$8=B0(null),zG=B0(null),H2=0,yW,fW,gW,hW,xW,uW,mW;v.__reactDisabledLog=!0;var uN,dW,mN=!1,dN=new(typeof WeakMap==="function"?WeakMap:Map),w5=null,A4=!1,t5=Object.prototype.hasOwnProperty,pN=$1.unstable_scheduleCallback,BI=$1.unstable_cancelCallback,HI=$1.unstable_shouldYield,MI=$1.unstable_requestPaint,N6=$1.unstable_now,WI=$1.unstable_getCurrentPriorityLevel,cN=$1.unstable_ImmediatePriority,lN=$1.unstable_UserBlockingPriority,C9=$1.unstable_NormalPriority,FI=$1.unstable_LowPriority,rN=$1.unstable_IdlePriority,wI=$1.log,RI=$1.unstable_setDisableYieldValue,_9=null,I6=null,j4=!1,S4=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u",D6=Math.clz32?Math.clz32:XZ,zI=Math.log,TI=Math.LN2,TG=256,LG=262144,PG=4194304,R5=2,e5=8,D4=32,CG=268435456,Q8=Math.random().toString(36).slice(2),F6="__reactFiber$"+Q8,v6="__reactProps$"+Q8,J8="__reactContainer$"+Q8,sN="__reactEvents$"+Q8,LI="__reactListeners$"+Q8,PI="__reactHandles$"+Q8,pW="__reactResources$"+Q8,M2="__reactMarker$"+Q8,cW=new Set,K7={},nN={},CI={button:!0,checkbox:!0,image:!0,hidden:!0,radio:!0,reset:!0,submit:!0},_I=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]*$"),lW={},rW={},II=/[\n"\\]/g,sW=!1,nW=!1,oW=!1,iW=!1,aW=!1,tW=!1,eW=["value","defaultValue"],$F=!1,QF=/["'&<>\n\t]|^\s|\s$/,VI="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(" "),JF="applet caption html table td th marquee object template foreignObject desc title".split(" "),OI=JF.concat(["button"]),EI="dd dt li option optgroup p rp rt".split(" "),ZF={current:null,formTag:null,aTagInScope:null,buttonTagInScope:null,nobrTagInScope:null,pTagInButtonScope:null,listItemTagAutoclosing:null,dlItemTagAutoclosing:null,containerTagInScope:null,implicitRootScope:!1},_G={},oN={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"]},GF=/([A-Z])/g,qF=/^ms-/,AI=/^(?:webkit|moz|o)[A-Z]/,jI=/^-ms-/,SI=/-(.)/g,XF=/;\s*$/,I9={},iN={},NF=!1,YF=!1,UF=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(" ")),IG="http://www.w3.org/1998/Math/MathML",V9="http://www.w3.org/2000/svg",DI=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"]]),VG={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"},KF={"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},O9={},vI=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]*$"),kI=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]*$"),BF=!1,k6={},HF=/^on./,bI=/^on[^A-Z]/,yI=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]*$"),fI=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]*$"),gI=/^[\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,W2=null,E9=null,A9=null,aN=!1,v4=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),tN=!1;if(v4)try{var F2={};Object.defineProperty(F2,"passive",{get:function(){tN=!0}}),window.addEventListener("test",F2,F2),window.removeEventListener("test",F2,F2)}catch($){tN=!1}var Z8=null,eN=null,OG=null,B7={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function($){return $.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},EG=m6(B7),w2=u0({},B7,{view:0,detail:0}),hI=m6(w2),$Y,QY,R2,AG=u0({},w2,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:gX,button:0,buttons:0,relatedTarget:function($){return $.relatedTarget===void 0?$.fromElement===$.srcElement?$.toElement:$.fromElement:$.relatedTarget},movementX:function($){if("movementX"in $)return $.movementX;return $!==R2&&(R2&&$.type==="mousemove"?($Y=$.screenX-R2.screenX,QY=$.screenY-R2.screenY):QY=$Y=0,R2=$),$Y},movementY:function($){return"movementY"in $?$.movementY:QY}}),MF=m6(AG),xI=u0({},AG,{dataTransfer:0}),uI=m6(xI),mI=u0({},w2,{relatedTarget:0}),JY=m6(mI),dI=u0({},B7,{animationName:0,elapsedTime:0,pseudoElement:0}),pI=m6(dI),cI=u0({},B7,{clipboardData:function($){return"clipboardData"in $?$.clipboardData:window.clipboardData}}),lI=m6(cI),rI=u0({},B7,{data:0}),WF=m6(rI),sI=WF,nI={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},oI={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"},iI={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"},aI=u0({},w2,{key:function($){if($.key){var Q=nI[$.key]||$.key;if(Q!=="Unidentified")return Q}return $.type==="keypress"?($=MZ($),$===13?"Enter":String.fromCharCode($)):$.type==="keydown"||$.type==="keyup"?oI[$.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:gX,charCode:function($){return $.type==="keypress"?MZ($):0},keyCode:function($){return $.type==="keydown"||$.type==="keyup"?$.keyCode:0},which:function($){return $.type==="keypress"?MZ($):$.type==="keydown"||$.type==="keyup"?$.keyCode:0}}),tI=m6(aI),eI=u0({},AG,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),FF=m6(eI),$V=u0({},w2,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:gX}),QV=m6($V),JV=u0({},B7,{propertyName:0,elapsedTime:0,pseudoElement:0}),ZV=m6(JV),GV=u0({},AG,{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}),qV=m6(GV),XV=u0({},B7,{newState:0,oldState:0}),NV=m6(XV),YV=[9,13,27,32],wF=229,ZY=v4&&"CompositionEvent"in window,z2=null;v4&&"documentMode"in document&&(z2=document.documentMode);var UV=v4&&"TextEvent"in window&&!z2,RF=v4&&(!ZY||z2&&8<z2&&11>=z2),zF=32,TF=String.fromCharCode(zF),LF=!1,j9=!1,KV={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},T2=null,L2=null,PF=!1;v4&&(PF=DC("input")&&(!document.documentMode||9<document.documentMode));var b6=typeof Object.is==="function"?Object.is:gC,BV=v4&&"documentMode"in document&&11>=document.documentMode,S9=null,GY=null,P2=null,qY=!1,D9={animationend:i8("Animation","AnimationEnd"),animationiteration:i8("Animation","AnimationIteration"),animationstart:i8("Animation","AnimationStart"),transitionrun:i8("Transition","TransitionRun"),transitionstart:i8("Transition","TransitionStart"),transitioncancel:i8("Transition","TransitionCancel"),transitionend:i8("Transition","TransitionEnd")},XY={},CF={};v4&&(CF=document.createElement("div").style,("AnimationEvent"in window)||(delete D9.animationend.animation,delete D9.animationiteration.animation,delete D9.animationstart.animation),("TransitionEvent"in window)||delete D9.transitionend.transition);var _F=a8("animationend"),IF=a8("animationiteration"),VF=a8("animationstart"),HV=a8("transitionrun"),MV=a8("transitionstart"),WV=a8("transitioncancel"),OF=a8("transitionend"),EF=new Map,NY="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(" ");NY.push("scrollEnd");var AF=0;if(typeof performance==="object"&&typeof performance.now==="function")var FV=performance,jF=function(){return FV.now()};else{var wV=Date;jF=function(){return wV.now()}}var YY=typeof reportError==="function"?reportError:function($){if(typeof window==="object"&&typeof window.ErrorEvent==="function"){var Q=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof $==="object"&&$!==null&&typeof $.message==="string"?String($.message):String($),error:$});if(!window.dispatchEvent(Q))return}else if(typeof process==="object"&&typeof process.emit==="function"){process.emit("uncaughtException",$);return}console.error($)},RV="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.",jG=0,UY=1,KY=2,BY=3,SG="– ",DG="+ ",SF=" ",L1=typeof console<"u"&&typeof console.timeStamp==="function"&&typeof performance<"u"&&typeof performance.measure==="function",j5="Components ⚛",m0="Scheduler ⚛",p0="Blocking",G8=!1,q$={color:"primary",properties:null,tooltipText:"",track:j5},q8={start:-0,end:-0,detail:{devtools:q$}},zV=["Changed Props",""],DF="This component received deeply equal props. It might benefit from useMemo or the React Compiler in its owner.",TV=["Changed Props",DF],C2=1,X$=2,S5=[],v9=0,HY=0,X8={};Object.freeze(X8);var D5=null,k9=null,I0=0,LV=1,b0=2,V6=8,$4=16,PV=32,vF=!1;try{var kF=Object.preventExtensions({})}catch($){vF=!0}var MY=new WeakMap,b9=[],y9=0,vG=null,_2=0,v5=[],k5=0,H7=null,N$=1,Y$="",w6=null,P1=null,l0=!1,k4=!1,z5=null,N8=null,b5=!1,WY=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."),FY=B0(null),wY=B0(null),bF={},kG=null,f9=null,g9=!1,CV=typeof AbortController<"u"?AbortController:function(){var $=[],Q=this.signal={aborted:!1,addEventListener:function(G,N){$.push(N)}};this.abort=function(){Q.aborted=!0,$.forEach(function(G){return G()})}},_V=$1.unstable_scheduleCallback,IV=$1.unstable_NormalPriority,c1={$$typeof:E4,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0,_currentRenderer:null,_currentRenderer2:null},l1=$1.unstable_now,bG=console.createTask?console.createTask:function(){return null},I2=1,yG=2,Y6=-0,Y8=-0,U$=-0,K$=null,y6=-1.1,M7=-0,j1=-0,L0=-1.1,P0=-1.1,E1=null,k1=!1,U8=-0,b4=-1.1,V2=null,K8=0,RY=null,zY=null,W7=-1.1,O2=null,h9=-1.1,fG=-1.1,y4=-0,B$=-1.1,y5=-1.1,TY=0,E2=null,yF=null,fF=null,B8=-1.1,F7=null,H8=-1.1,gG=-1.1,gF=-0,hF=-0,hG=0,H$=null,xF=0,A2=-1.1,xG=!1,uG=!1,j2=null,LY=0,w7=0,x9=null,uF=u.S;u.S=function($,Q){if(yw=N6(),typeof Q==="object"&&Q!==null&&typeof Q.then==="function"){if(0>B$&&0>y5){B$=l1();var G=q2(),N=G2();if(G!==H8||N!==F7)H8=-1.1;B8=G,F7=N}cC($,Q)}uF!==null&&uF($,Q)};var R7=B0(null),Q4={recordUnsafeLifecycleWarnings:function(){},flushPendingUnsafeLifecycleWarnings:function(){},recordLegacyContextWarning:function(){},flushLegacyContextWarning:function(){},discardPendingWarnings:function(){}},S2=[],D2=[],v2=[],k2=[],b2=[],y2=[],z7=new Set;Q4.recordUnsafeLifecycleWarnings=function($,Q){z7.has($.type)||(typeof Q.componentWillMount==="function"&&Q.componentWillMount.__suppressDeprecationWarning!==!0&&S2.push($),$.mode&V6&&typeof Q.UNSAFE_componentWillMount==="function"&&D2.push($),typeof Q.componentWillReceiveProps==="function"&&Q.componentWillReceiveProps.__suppressDeprecationWarning!==!0&&v2.push($),$.mode&V6&&typeof Q.UNSAFE_componentWillReceiveProps==="function"&&k2.push($),typeof Q.componentWillUpdate==="function"&&Q.componentWillUpdate.__suppressDeprecationWarning!==!0&&b2.push($),$.mode&V6&&typeof Q.UNSAFE_componentWillUpdate==="function"&&y2.push($))},Q4.flushPendingUnsafeLifecycleWarnings=function(){var $=new Set;0<S2.length&&(S2.forEach(function(R){$.add(d(R)||"Component"),z7.add(R.type)}),S2=[]);var Q=new Set;0<D2.length&&(D2.forEach(function(R){Q.add(d(R)||"Component"),z7.add(R.type)}),D2=[]);var G=new Set;0<v2.length&&(v2.forEach(function(R){G.add(d(R)||"Component"),z7.add(R.type)}),v2=[]);var N=new Set;0<k2.length&&(k2.forEach(function(R){N.add(d(R)||"Component"),z7.add(R.type)}),k2=[]);var U=new Set;0<b2.length&&(b2.forEach(function(R){U.add(d(R)||"Component"),z7.add(R.type)}),b2=[]);var B=new Set;if(0<y2.length&&(y2.forEach(function(R){B.add(d(R)||"Component"),z7.add(R.type)}),y2=[]),0<Q.size){var F=T(Q);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
|
|
|
188
|
-
Please update the following components: %s`,
|
|
188
|
+
Please update the following components: %s`,F)}0<N.size&&(F=T(N),console.error(`Using UNSAFE_componentWillReceiveProps in strict mode is not recommended and may indicate bugs in your code. See https://react.dev/link/unsafe-component-lifecycles for details.
|
|
189
189
|
|
|
190
190
|
* Move data fetching code or side effects to componentDidUpdate.
|
|
191
191
|
* If you're updating state whenever props change, refactor your code to use memoization techniques or move it to static getDerivedStateFromProps. Learn more at: https://react.dev/link/derived-state
|
|
192
192
|
|
|
193
|
-
Please update the following components: %s`,
|
|
193
|
+
Please update the following components: %s`,F)),0<B.size&&(F=T(B),console.error(`Using UNSAFE_componentWillUpdate in strict mode is not recommended and may indicate bugs in your code. See https://react.dev/link/unsafe-component-lifecycles for details.
|
|
194
194
|
|
|
195
195
|
* Move data fetching code or side effects to componentDidUpdate.
|
|
196
196
|
|
|
197
|
-
Please update the following components: %s`,
|
|
197
|
+
Please update the following components: %s`,F)),0<$.size&&(F=T($),console.warn(`componentWillMount has been renamed, and is not recommended for use. See https://react.dev/link/unsafe-component-lifecycles for details.
|
|
198
198
|
|
|
199
199
|
* Move code with side effects to componentDidMount, and set initial state in the constructor.
|
|
200
200
|
* Rename componentWillMount to UNSAFE_componentWillMount to suppress this warning in non-strict mode. In React 18.x, only the UNSAFE_ name will work. To rename all deprecated lifecycles to their new names, you can run \`npx react-codemod rename-unsafe-lifecycles\` in your project source folder.
|
|
201
201
|
|
|
202
|
-
Please update the following components: %s`,
|
|
202
|
+
Please update the following components: %s`,F)),0<G.size&&(F=T(G),console.warn(`componentWillReceiveProps has been renamed, and is not recommended for use. See https://react.dev/link/unsafe-component-lifecycles for details.
|
|
203
203
|
|
|
204
204
|
* Move data fetching code or side effects to componentDidUpdate.
|
|
205
205
|
* If you're updating state whenever props change, refactor your code to use memoization techniques or move it to static getDerivedStateFromProps. Learn more at: https://react.dev/link/derived-state
|
|
206
206
|
* Rename componentWillReceiveProps to UNSAFE_componentWillReceiveProps to suppress this warning in non-strict mode. In React 18.x, only the UNSAFE_ name will work. To rename all deprecated lifecycles to their new names, you can run \`npx react-codemod rename-unsafe-lifecycles\` in your project source folder.
|
|
207
207
|
|
|
208
|
-
Please update the following components: %s`,
|
|
208
|
+
Please update the following components: %s`,F)),0<U.size&&(F=T(U),console.warn(`componentWillUpdate has been renamed, and is not recommended for use. See https://react.dev/link/unsafe-component-lifecycles for details.
|
|
209
209
|
|
|
210
210
|
* Move data fetching code or side effects to componentDidUpdate.
|
|
211
211
|
* Rename componentWillUpdate to UNSAFE_componentWillUpdate to suppress this warning in non-strict mode. In React 18.x, only the UNSAFE_ name will work. To rename all deprecated lifecycles to their new names, you can run \`npx react-codemod rename-unsafe-lifecycles\` in your project source folder.
|
|
212
212
|
|
|
213
|
-
Please update the following components: %s`,
|
|
213
|
+
Please update the following components: %s`,F))};var mG=new Map,mF=new Set;Q4.recordLegacyContextWarning=function($,Q){var G=null;for(var N=$;N!==null;)N.mode&V6&&(G=N),N=N.return;G===null?console.error("Expected to find a StrictMode component in a strict mode tree. This error is likely caused by a bug in React. Please file an issue."):!mF.has($.type)&&(N=mG.get(G),$.type.contextTypes!=null||$.type.childContextTypes!=null||Q!==null&&typeof Q.getChildContext==="function")&&(N===void 0&&(N=[],mG.set(G,N)),N.push($))},Q4.flushLegacyContextWarning=function(){mG.forEach(function($){if($.length!==0){var Q=$[0],G=new Set;$.forEach(function(U){G.add(d(U)||"Component"),mF.add(U.type)});var N=T(G);q0(Q,function(){console.error(`Legacy context API has been detected within a strict-mode tree.
|
|
214
214
|
|
|
215
215
|
The old API will be supported in all 16.x releases, but applications using it should migrate to the new version.
|
|
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`,
|
|
219
|
+
Learn more about this warning here: https://react.dev/link/legacy-context`,N)})}})},Q4.discardPendingWarnings=function(){S2=[],D2=[],v2=[],k2=[],b2=[],y2=[],mG=new Map};var dF={react_stack_bottom_frame:function($,Q,G){var N=A4;A4=!0;try{return $(Q,G)}finally{A4=N}}},PY=dF.react_stack_bottom_frame.bind(dF),pF={react_stack_bottom_frame:function($){var Q=A4;A4=!0;try{return $.render()}finally{A4=Q}}},cF=pF.react_stack_bottom_frame.bind(pF),lF={react_stack_bottom_frame:function($,Q){try{Q.componentDidMount()}catch(G){G1($,$.return,G)}}},CY=lF.react_stack_bottom_frame.bind(lF),rF={react_stack_bottom_frame:function($,Q,G,N,U){try{Q.componentDidUpdate(G,N,U)}catch(B){G1($,$.return,B)}}},sF=rF.react_stack_bottom_frame.bind(rF),nF={react_stack_bottom_frame:function($,Q){var G=Q.stack;$.componentDidCatch(Q.value,{componentStack:G!==null?G:""})}},VV=nF.react_stack_bottom_frame.bind(nF),oF={react_stack_bottom_frame:function($,Q,G){try{G.componentWillUnmount()}catch(N){G1($,Q,N)}}},iF=oF.react_stack_bottom_frame.bind(oF),aF={react_stack_bottom_frame:function($){var Q=$.create;return $=$.inst,Q=Q(),$.destroy=Q}},OV=aF.react_stack_bottom_frame.bind(aF),tF={react_stack_bottom_frame:function($,Q,G){try{G()}catch(N){G1($,Q,N)}}},EV=tF.react_stack_bottom_frame.bind(tF),eF={react_stack_bottom_frame:function($){var Q=$._init;return Q($._payload)}},AV=eF.react_stack_bottom_frame.bind(eF),u9=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`."),_Y=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."),dG=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."),pG={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.')}},T7=null,f2=!1,m9=null,g2=0,y0=null,IY,$w=IY=!1,Qw={},Jw={},Zw={};z=function($,Q,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 N=d($),U=N||"null";if(!Qw[U]){Qw[U]=!0,G=G._owner,$=$._debugOwner;var B="";$&&typeof $.tag==="number"&&(U=d($))&&(B=`
|
|
220
220
|
|
|
221
|
-
Check the render method of \``+U+"`."),B||
|
|
221
|
+
Check the render method of \``+U+"`."),B||N&&(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+".")),G0(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 z9=rB(!0),Zw=rB(!1),Qw=0,Jw=1,Gw=2,LN=3,N2=!1,Xw=!1,CN=null,_N=!1,x7=K0(null),xG=K0(0),R6=K0(null),k6=null,m7=1,gZ=2,u1=K0(0),mG=0,f6=1,k5=2,z6=4,f5=8,d7,qw=new Set,Yw=new Set,IN=new Set,Nw=new Set,K8=0,V0=null,F1=null,r1=null,dG=!1,p7=!1,T9=!1,pG=0,hZ=0,B8=null,AV=0,jV=25,u=null,y6=null,H8=-1,uZ=!1,xZ={readContext:O1,use:c8,useCallback:g1,useContext:g1,useEffect:g1,useImperativeHandle:g1,useLayoutEffect:g1,useInsertionEffect:g1,useMemo:g1,useReducer:g1,useRef:g1,useState:g1,useDebugValue:g1,useDeferredValue:g1,useTransition:g1,useSyncExternalStore:g1,useId:g1,useHostTransitionStatus:g1,useFormState:g1,useActionState:g1,useOptimistic:g1,useMemoCache:g1,useCacheRefresh:g1};xZ.useEffectEvent=g1;var VN=null,Uw=null,ON=null,Kw=null,k4=null,$4=null,cG=null;VN={readContext:function($){return O1($)},use:c8,useCallback:function($,Z){return u="useCallback",m0(),X7(Z),_q($,Z)},useContext:function($){return u="useContext",m0(),O1($)},useEffect:function($,Z){return u="useEffect",m0(),X7(Z),gJ($,Z)},useImperativeHandle:function($,Z,G){return u="useImperativeHandle",m0(),X7(G),Cq($,Z,G)},useInsertionEffect:function($,Z){u="useInsertionEffect",m0(),X7(Z),J9(4,k5,$,Z)},useLayoutEffect:function($,Z){return u="useLayoutEffect",m0(),X7(Z),Lq($,Z)},useMemo:function($,Z){u="useMemo",m0(),X7(Z);var G=x.H;x.H=k4;try{return Iq($,Z)}finally{x.H=G}},useReducer:function($,Z,G){u="useReducer",m0();var Y=x.H;x.H=k4;try{return Hq($,Z,G)}finally{x.H=Y}},useRef:function($){return u="useRef",m0(),Tq($)},useState:function($){u="useState",m0();var Z=x.H;x.H=k4;try{return wq($)}finally{x.H=Z}},useDebugValue:function(){u="useDebugValue",m0()},useDeferredValue:function($,Z){return u="useDeferredValue",m0(),Vq($,Z)},useTransition:function(){return u="useTransition",m0(),Aq()},useSyncExternalStore:function($,Z,G){return u="useSyncExternalStore",m0(),Fq($,Z,G)},useId:function(){return u="useId",m0(),jq()},useFormState:function($,Z){return u="useFormState",m0(),vJ(),Y7($,Z)},useActionState:function($,Z){return u="useActionState",m0(),Y7($,Z)},useOptimistic:function($){return u="useOptimistic",m0(),Rq($)},useHostTransitionStatus:G9,useMemoCache:Q9,useCacheRefresh:function(){return u="useCacheRefresh",m0(),Sq()},useEffectEvent:function($){return u="useEffectEvent",m0(),Pq($)}},Uw={readContext:function($){return O1($)},use:c8,useCallback:function($,Z){return u="useCallback",c(),_q($,Z)},useContext:function($){return u="useContext",c(),O1($)},useEffect:function($,Z){return u="useEffect",c(),gJ($,Z)},useImperativeHandle:function($,Z,G){return u="useImperativeHandle",c(),Cq($,Z,G)},useInsertionEffect:function($,Z){u="useInsertionEffect",c(),J9(4,k5,$,Z)},useLayoutEffect:function($,Z){return u="useLayoutEffect",c(),Lq($,Z)},useMemo:function($,Z){u="useMemo",c();var G=x.H;x.H=k4;try{return Iq($,Z)}finally{x.H=G}},useReducer:function($,Z,G){u="useReducer",c();var Y=x.H;x.H=k4;try{return Hq($,Z,G)}finally{x.H=Y}},useRef:function($){return u="useRef",c(),Tq($)},useState:function($){u="useState",c();var Z=x.H;x.H=k4;try{return wq($)}finally{x.H=Z}},useDebugValue:function(){u="useDebugValue",c()},useDeferredValue:function($,Z){return u="useDeferredValue",c(),Vq($,Z)},useTransition:function(){return u="useTransition",c(),Aq()},useSyncExternalStore:function($,Z,G){return u="useSyncExternalStore",c(),Fq($,Z,G)},useId:function(){return u="useId",c(),jq()},useActionState:function($,Z){return u="useActionState",c(),Y7($,Z)},useFormState:function($,Z){return u="useFormState",c(),vJ(),Y7($,Z)},useOptimistic:function($){return u="useOptimistic",c(),Rq($)},useHostTransitionStatus:G9,useMemoCache:Q9,useCacheRefresh:function(){return u="useCacheRefresh",c(),Sq()},useEffectEvent:function($){return u="useEffectEvent",c(),Pq($)}},ON={readContext:function($){return O1($)},use:c8,useCallback:function($,Z){return u="useCallback",c(),xJ($,Z)},useContext:function($){return u="useContext",c(),O1($)},useEffect:function($,Z){u="useEffect",c(),x5(2048,f5,$,Z)},useImperativeHandle:function($,Z,G){return u="useImperativeHandle",c(),uJ($,Z,G)},useInsertionEffect:function($,Z){return u="useInsertionEffect",c(),x5(4,k5,$,Z)},useLayoutEffect:function($,Z){return u="useLayoutEffect",c(),x5(4,z6,$,Z)},useMemo:function($,Z){u="useMemo",c();var G=x.H;x.H=$4;try{return mJ($,Z)}finally{x.H=G}},useReducer:function($,Z,G){u="useReducer",c();var Y=x.H;x.H=$4;try{return q7($,Z,G)}finally{x.H=Y}},useRef:function(){return u="useRef",c(),N1().memoizedState},useState:function(){u="useState",c();var $=x.H;x.H=$4;try{return q7(n6)}finally{x.H=$}},useDebugValue:function(){u="useDebugValue",c()},useDeferredValue:function($,Z){return u="useDeferredValue",c(),FH($,Z)},useTransition:function(){return u="useTransition",c(),PH()},useSyncExternalStore:function($,Z,G){return u="useSyncExternalStore",c(),kJ($,Z,G)},useId:function(){return u="useId",c(),N1().memoizedState},useFormState:function($){return u="useFormState",c(),vJ(),fJ($)},useActionState:function($){return u="useActionState",c(),fJ($)},useOptimistic:function($,Z){return u="useOptimistic",c(),GH($,Z)},useHostTransitionStatus:G9,useMemoCache:Q9,useCacheRefresh:function(){return u="useCacheRefresh",c(),N1().memoizedState},useEffectEvent:function($){return u="useEffectEvent",c(),hJ($)}},Kw={readContext:function($){return O1($)},use:c8,useCallback:function($,Z){return u="useCallback",c(),xJ($,Z)},useContext:function($){return u="useContext",c(),O1($)},useEffect:function($,Z){u="useEffect",c(),x5(2048,f5,$,Z)},useImperativeHandle:function($,Z,G){return u="useImperativeHandle",c(),uJ($,Z,G)},useInsertionEffect:function($,Z){return u="useInsertionEffect",c(),x5(4,k5,$,Z)},useLayoutEffect:function($,Z){return u="useLayoutEffect",c(),x5(4,z6,$,Z)},useMemo:function($,Z){u="useMemo",c();var G=x.H;x.H=cG;try{return mJ($,Z)}finally{x.H=G}},useReducer:function($,Z,G){u="useReducer",c();var Y=x.H;x.H=cG;try{return l$($,Z,G)}finally{x.H=Y}},useRef:function(){return u="useRef",c(),N1().memoizedState},useState:function(){u="useState",c();var $=x.H;x.H=cG;try{return l$(n6)}finally{x.H=$}},useDebugValue:function(){u="useDebugValue",c()},useDeferredValue:function($,Z){return u="useDeferredValue",c(),WH($,Z)},useTransition:function(){return u="useTransition",c(),LH()},useSyncExternalStore:function($,Z,G){return u="useSyncExternalStore",c(),kJ($,Z,G)},useId:function(){return u="useId",c(),N1().memoizedState},useFormState:function($){return u="useFormState",c(),vJ(),yJ($)},useActionState:function($){return u="useActionState",c(),yJ($)},useOptimistic:function($,Z){return u="useOptimistic",c(),qH($,Z)},useHostTransitionStatus:G9,useMemoCache:Q9,useCacheRefresh:function(){return u="useCacheRefresh",c(),N1().memoizedState},useEffectEvent:function($){return u="useEffectEvent",c(),hJ($)}},k4={readContext:function($){return F(),O1($)},use:function($){return M(),c8($)},useCallback:function($,Z){return u="useCallback",M(),m0(),_q($,Z)},useContext:function($){return u="useContext",M(),m0(),O1($)},useEffect:function($,Z){return u="useEffect",M(),m0(),gJ($,Z)},useImperativeHandle:function($,Z,G){return u="useImperativeHandle",M(),m0(),Cq($,Z,G)},useInsertionEffect:function($,Z){u="useInsertionEffect",M(),m0(),J9(4,k5,$,Z)},useLayoutEffect:function($,Z){return u="useLayoutEffect",M(),m0(),Lq($,Z)},useMemo:function($,Z){u="useMemo",M(),m0();var G=x.H;x.H=k4;try{return Iq($,Z)}finally{x.H=G}},useReducer:function($,Z,G){u="useReducer",M(),m0();var Y=x.H;x.H=k4;try{return Hq($,Z,G)}finally{x.H=Y}},useRef:function($){return u="useRef",M(),m0(),Tq($)},useState:function($){u="useState",M(),m0();var Z=x.H;x.H=k4;try{return wq($)}finally{x.H=Z}},useDebugValue:function(){u="useDebugValue",M(),m0()},useDeferredValue:function($,Z){return u="useDeferredValue",M(),m0(),Vq($,Z)},useTransition:function(){return u="useTransition",M(),m0(),Aq()},useSyncExternalStore:function($,Z,G){return u="useSyncExternalStore",M(),m0(),Fq($,Z,G)},useId:function(){return u="useId",M(),m0(),jq()},useFormState:function($,Z){return u="useFormState",M(),m0(),Y7($,Z)},useActionState:function($,Z){return u="useActionState",M(),m0(),Y7($,Z)},useOptimistic:function($){return u="useOptimistic",M(),m0(),Rq($)},useMemoCache:function($){return M(),Q9($)},useHostTransitionStatus:G9,useCacheRefresh:function(){return u="useCacheRefresh",m0(),Sq()},useEffectEvent:function($){return u="useEffectEvent",M(),m0(),Pq($)}},$4={readContext:function($){return F(),O1($)},use:function($){return M(),c8($)},useCallback:function($,Z){return u="useCallback",M(),c(),xJ($,Z)},useContext:function($){return u="useContext",M(),c(),O1($)},useEffect:function($,Z){u="useEffect",M(),c(),x5(2048,f5,$,Z)},useImperativeHandle:function($,Z,G){return u="useImperativeHandle",M(),c(),uJ($,Z,G)},useInsertionEffect:function($,Z){return u="useInsertionEffect",M(),c(),x5(4,k5,$,Z)},useLayoutEffect:function($,Z){return u="useLayoutEffect",M(),c(),x5(4,z6,$,Z)},useMemo:function($,Z){u="useMemo",M(),c();var G=x.H;x.H=$4;try{return mJ($,Z)}finally{x.H=G}},useReducer:function($,Z,G){u="useReducer",M(),c();var Y=x.H;x.H=$4;try{return q7($,Z,G)}finally{x.H=Y}},useRef:function(){return u="useRef",M(),c(),N1().memoizedState},useState:function(){u="useState",M(),c();var $=x.H;x.H=$4;try{return q7(n6)}finally{x.H=$}},useDebugValue:function(){u="useDebugValue",M(),c()},useDeferredValue:function($,Z){return u="useDeferredValue",M(),c(),FH($,Z)},useTransition:function(){return u="useTransition",M(),c(),PH()},useSyncExternalStore:function($,Z,G){return u="useSyncExternalStore",M(),c(),kJ($,Z,G)},useId:function(){return u="useId",M(),c(),N1().memoizedState},useFormState:function($){return u="useFormState",M(),c(),fJ($)},useActionState:function($){return u="useActionState",M(),c(),fJ($)},useOptimistic:function($,Z){return u="useOptimistic",M(),c(),GH($,Z)},useMemoCache:function($){return M(),Q9($)},useHostTransitionStatus:G9,useCacheRefresh:function(){return u="useCacheRefresh",c(),N1().memoizedState},useEffectEvent:function($){return u="useEffectEvent",M(),c(),hJ($)}},cG={readContext:function($){return F(),O1($)},use:function($){return M(),c8($)},useCallback:function($,Z){return u="useCallback",M(),c(),xJ($,Z)},useContext:function($){return u="useContext",M(),c(),O1($)},useEffect:function($,Z){u="useEffect",M(),c(),x5(2048,f5,$,Z)},useImperativeHandle:function($,Z,G){return u="useImperativeHandle",M(),c(),uJ($,Z,G)},useInsertionEffect:function($,Z){return u="useInsertionEffect",M(),c(),x5(4,k5,$,Z)},useLayoutEffect:function($,Z){return u="useLayoutEffect",M(),c(),x5(4,z6,$,Z)},useMemo:function($,Z){u="useMemo",M(),c();var G=x.H;x.H=$4;try{return mJ($,Z)}finally{x.H=G}},useReducer:function($,Z,G){u="useReducer",M(),c();var Y=x.H;x.H=$4;try{return l$($,Z,G)}finally{x.H=Y}},useRef:function(){return u="useRef",M(),c(),N1().memoizedState},useState:function(){u="useState",M(),c();var $=x.H;x.H=$4;try{return l$(n6)}finally{x.H=$}},useDebugValue:function(){u="useDebugValue",M(),c()},useDeferredValue:function($,Z){return u="useDeferredValue",M(),c(),WH($,Z)},useTransition:function(){return u="useTransition",M(),c(),LH()},useSyncExternalStore:function($,Z,G){return u="useSyncExternalStore",M(),c(),kJ($,Z,G)},useId:function(){return u="useId",M(),c(),N1().memoizedState},useFormState:function($){return u="useFormState",M(),c(),yJ($)},useActionState:function($){return u="useActionState",M(),c(),yJ($)},useOptimistic:function($,Z){return u="useOptimistic",M(),c(),qH($,Z)},useMemoCache:function($){return M(),Q9($)},useHostTransitionStatus:G9,useCacheRefresh:function(){return u="useCacheRefresh",c(),N1().memoizedState},useEffectEvent:function($){return u="useEffectEvent",M(),c(),hJ($)}};var Bw={},Hw=new Set,Mw=new Set,Fw=new Set,Ww=new Set,ww=new Set,Rw=new Set,zw=new Set,Tw=new Set,Pw=new Set,Lw=new Set;Object.freeze(Bw);var EN={enqueueSetState:function($,Z,G){$=$._reactInternals;var Y=B6($),U=x8(Y);U.payload=Z,G!==void 0&&G!==null&&(vq(G),U.callback=G),Z=m8($,U,Y),Z!==null&&(B4(Y,"this.setState()",$),D1(Z,$,Y),m$(Z,$,Y))},enqueueReplaceState:function($,Z,G){$=$._reactInternals;var Y=B6($),U=x8(Y);U.tag=Jw,U.payload=Z,G!==void 0&&G!==null&&(vq(G),U.callback=G),Z=m8($,U,Y),Z!==null&&(B4(Y,"this.replaceState()",$),D1(Z,$,Y),m$(Z,$,Y))},enqueueForceUpdate:function($,Z){$=$._reactInternals;var G=B6($),Y=x8(G);Y.tag=Gw,Z!==void 0&&Z!==null&&(vq(Z),Y.callback=Z),Z=m8($,Y,G),Z!==null&&(B4(G,"this.forceUpdate()",$),D1(Z,$,G),m$(Z,$,G))}},c7=null,AN=null,jN=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."),s1=!1,Cw={},_w={},Iw={},Vw={},l7=!1,Ow={},lG={},SN={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null},Ew=!1,Aw=null;Aw=new Set;var M8=!1,n1=!1,DN=!1,jw=typeof WeakSet==="function"?WeakSet:Set,U5=null,r7=null,s7=null,o1=null,p5=!1,Z4=null,Z5=!1,mZ=8192,SV={getCacheForType:function($){var Z=O1(c1),G=Z.data.get($);return G===void 0&&(G=$(),Z.data.set($,G)),G},cacheSignal:function(){return O1(c1).controller.signal},getOwner:function(){return F6}};if(typeof Symbol==="function"&&Symbol.for){var dZ=Symbol.for;dZ("selector.component"),dZ("selector.has_pseudo_class"),dZ("selector.role"),dZ("selector.test_id"),dZ("selector.text")}var DV=[],vV=typeof WeakMap==="function"?WeakMap:Map,K5=0,Q5=2,T6=4,F8=0,pZ=1,P9=2,rG=3,U2=4,sG=6,Sw=5,a0=K5,W1=null,h0=null,g0=0,c5=0,nG=1,L9=2,cZ=3,Dw=4,vN=5,lZ=6,oG=7,bN=8,C9=9,U1=c5,P6=null,K2=!1,n7=!1,kN=!1,f4=0,j1=F8,B2=0,H2=0,fN=0,l5=0,_9=0,rZ=null,y5=null,iG=!1,aG=0,vw=0,bw=300,tG=1/0,kw=500,sZ=null,h1=null,M2=null,eG=0,yN=1,gN=2,fw=3,F2=0,yw=1,gw=2,hw=3,uw=4,$3=5,i1=0,W2=null,o7=null,Q4=0,hN=0,uN=-0,xN=null,xw=null,mw=null,J4=eG,dw=null,bV=50,nZ=0,mN=null,dN=!1,Z3=!1,kV=50,I9=0,oZ=null,i7=!1,Q3=null,pw=!1,cw=new Set,fV={},J3=null,a7=null,pN=!1,cN=!1,G3=!1,lN=!1,w2=0,rN={};(function(){for(var $=0;$<JN.length;$++){var Z=JN[$],G=Z.toLowerCase();Z=Z[0].toUpperCase()+Z.slice(1),s6(G,"on"+Z)}s6(PW,"onAnimationEnd"),s6(LW,"onAnimationIteration"),s6(CW,"onAnimationStart"),s6("dblclick","onDoubleClick"),s6("focusin","onFocus"),s6("focusout","onBlur"),s6(BV,"onTransitionRun"),s6(HV,"onTransitionStart"),s6(MV,"onTransitionCancel"),s6(_W,"onTransitionEnd")})(),G6("onMouseEnter",["mouseout","mouseover"]),G6("onMouseLeave",["mouseout","mouseover"]),G6("onPointerEnter",["pointerout","pointerover"]),G6("onPointerLeave",["pointerout","pointerover"]),L5("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),L5("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),L5("onBeforeInput",["compositionend","keypress","textInput","paste"]),L5("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),L5("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),L5("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var iZ="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(" "),sN=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(iZ)),X3="_reactListening"+Math.random().toString(36).slice(2),lw=!1,rw=!1,q3=!1,sw=!1,Y3=!1,N3=!1,nw=!1,U3={},yV=/\r\n?/g,gV=/\u0000|\uFFFD/g,V9="http://www.w3.org/1999/xlink",nN="http://www.w3.org/XML/1998/namespace",hV="javascript:throw new Error('React form unexpectedly submitted.')",uV="suppressHydrationWarning",O9="&",K3="/&",aZ="$",tZ="/$",R2="$?",E9="$~",t7="$!",xV="html",mV="body",dV="head",oN="F!",ow="F",iw="loading",pV="style",W8=0,e7=1,B3=2,iN=null,aN=null,aw={dialog:!0,webview:!0},tN=null,eZ=void 0,tw=typeof setTimeout==="function"?setTimeout:void 0,cV=typeof clearTimeout==="function"?clearTimeout:void 0,A9=-1,ew=typeof Promise==="function"?Promise:void 0,lV=typeof queueMicrotask==="function"?queueMicrotask:typeof ew<"u"?function($){return ew.resolve(null).then($).catch(j_)}:tw,eN=null,j9=0,$Q=1,$R=2,ZR=3,g6=4,h6=new Map,QR=new Set,w8=q1.d;q1.d={f:function(){var $=w8.f(),Z=H7();return $||Z},r:function($){var Z=j0($);Z!==null&&Z.tag===5&&Z.type==="form"?TH(Z):w8.r($)},D:function($){w8.D($),HF("dns-prefetch",$,null)},C:function($,Z){w8.C($,Z),HF("preconnect",$,Z)},L:function($,Z,G){w8.L($,Z,G);var Y=$$;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=W7($);break;case"script":B=w7($)}h6.has(B)||($=d0({rel:"preload",href:Z==="image"&&G&&G.imageSrcSet?void 0:$,as:Z},G),h6.set(B,$),Y.querySelector(U)!==null||Z==="style"&&Y.querySelector(qZ(B))||Z==="script"&&Y.querySelector(YZ(B))||(Z=Y.createElement("link"),M5(Z,"link",$),z0(Z),Y.head.appendChild(Z)))}},m:function($,Z){w8.m($,Z);var G=$$;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=w7($)}if(!h6.has(B)&&($=d0({rel:"modulepreload",href:$},Z),h6.set(B,$),G.querySelector(U)===null)){switch(Y){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(G.querySelector(YZ(B)))return}Y=G.createElement("link"),M5(Y,"link",$),z0(Y),G.head.appendChild(Y)}}},X:function($,Z){w8.X($,Z);var G=$$;if(G&&$){var Y=e0(G).hoistableScripts,U=w7($),B=Y.get(U);B||(B=G.querySelector(YZ(U)),B||($=d0({src:$,async:!0},Z),(Z=h6.get(U))&&CY($,Z),B=G.createElement("script"),z0(B),M5(B,"link",$),G.head.appendChild(B)),B={type:"script",instance:B,count:1,state:null},Y.set(U,B))}},S:function($,Z,G){w8.S($,Z,G);var Y=$$;if(Y&&$){var U=e0(Y).hoistableStyles,B=W7($);Z=Z||"default";var W=U.get(B);if(!W){var R={loading:j9,preload:null};if(W=Y.querySelector(qZ(B)))R.loading=$Q|g6;else{$=d0({rel:"stylesheet",href:$,"data-precedence":Z},G),(G=h6.get(B))&&LY($,G);var P=W=Y.createElement("link");z0(P),M5(P,"link",$),P._p=new Promise(function(C,k){P.onload=C,P.onerror=k}),P.addEventListener("load",function(){R.loading|=$Q}),P.addEventListener("error",function(){R.loading|=$R}),R.loading|=g6,qG(W,Z,Y)}W={type:"stylesheet",instance:W,count:1,state:R},U.set(B,W)}}},M:function($,Z){w8.M($,Z);var G=$$;if(G&&$){var Y=e0(G).hoistableScripts,U=w7($),B=Y.get(U);B||(B=G.querySelector(YZ(U)),B||($=d0({src:$,async:!0,type:"module"},Z),(Z=h6.get(U))&&CY($,Z),B=G.createElement("script"),z0(B),M5(B,"link",$),G.head.appendChild(B)),B={type:"script",instance:B,count:1,state:null},Y.set(U,B))}}};var $$=typeof document>"u"?null:document,H3=null,rV=60000,sV=800,nV=500,$U=0,ZU=null,M3=null,S9=UI,ZQ={$$typeof:V4,Provider:null,Consumer:null,_currentValue:S9,_currentValue2:S9,_threadCount:0},JR="%c%s%c",GR="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",XR="",F3=" ",oV=Function.prototype.bind,qR=!1,YR=null,NR=null,UR=null,KR=null,BR=null,HR=null,MR=null,FR=null,WR=null,wR=null;YR=function($,Z,G,Y){Z=Q($,Z),Z!==null&&(G=J(Z.memoizedState,G,0,Y),Z.memoizedState=G,Z.baseState=G,$.memoizedProps=d0({},$.memoizedProps),G=C5($,2),G!==null&&D1(G,$,2))},NR=function($,Z,G){Z=Q($,Z),Z!==null&&(G=N(Z.memoizedState,G,0),Z.memoizedState=G,Z.baseState=G,$.memoizedProps=d0({},$.memoizedProps),G=C5($,2),G!==null&&D1(G,$,2))},UR=function($,Z,G,Y){Z=Q($,Z),Z!==null&&(G=X(Z.memoizedState,G,Y),Z.memoizedState=G,Z.baseState=G,$.memoizedProps=d0({},$.memoizedProps),G=C5($,2),G!==null&&D1(G,$,2))},KR=function($,Z,G){$.pendingProps=J($.memoizedProps,Z,0,G),$.alternate&&($.alternate.pendingProps=$.pendingProps),Z=C5($,2),Z!==null&&D1(Z,$,2)},BR=function($,Z){$.pendingProps=N($.memoizedProps,Z,0),$.alternate&&($.alternate.pendingProps=$.pendingProps),Z=C5($,2),Z!==null&&D1(Z,$,2)},HR=function($,Z,G){$.pendingProps=X($.memoizedProps,Z,G),$.alternate&&($.alternate.pendingProps=$.pendingProps),Z=C5($,2),Z!==null&&D1(Z,$,2)},MR=function($){var Z=C5($,2);Z!==null&&D1(Z,$,2)},FR=function($){var Z=t9(),G=C5($,Z);G!==null&&D1(G,$,Z)},WR=function($){H=$},wR=function($){K=$};var W3=!0,w3=null,QU=!1,z2=null,T2=null,P2=null,QQ=new Map,JQ=new Map,L2=[],iV="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(" "),R3=null;if(BG.prototype.render=AY.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()."):V(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=B6(Y);_Y(Y,U,G,Z,null,null)},BG.prototype.unmount=AY.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;(a0&(Q5|T6))!==K5&&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."),_Y($.current,2,null,$,null,null),H7(),Z[a8]=null}},BG.prototype.unstable_scheduleHydration=function($){if($){var Z=y();$={blockedOn:null,target:$,priority:Z};for(var G=0;G<L2.length&&Z!==0&&Z<L2[G].priority;G++);L2.splice(G,0,$),G===0&&OF($)}},function(){var $=H$.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 <`+N+">.");var F="";G!=null&&$!==G&&(N=null,typeof G.tag==="number"?N=d(G):typeof G.name==="string"&&(N=G.name),N&&(F=" It was passed a child from "+N+".")),q0(Q,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,F)})}}};var L7=oB(!0),Gw=oB(!1),qw=0,Xw=1,Nw=2,VY=3,M8=!1,Yw=!1,OY=null,EY=!1,d9=B0(null),cG=B0(0),T5=B0(null),f5=null,p9=1,h2=2,x1=B0(0),lG=0,g5=1,f6=2,L5=4,g6=8,c9,Uw=new Set,Kw=new Set,AY=new Set,Bw=new Set,M$=0,V0=null,M1=null,r1=null,rG=!1,l9=!1,P7=!1,sG=0,x2=0,W$=null,jV=0,SV=25,x=null,h5=null,F$=-1,u2=!1,m2={readContext:O1,use:o$,useCallback:g1,useContext:g1,useEffect:g1,useImperativeHandle:g1,useLayoutEffect:g1,useInsertionEffect:g1,useMemo:g1,useReducer:g1,useRef:g1,useState:g1,useDebugValue:g1,useDeferredValue:g1,useTransition:g1,useSyncExternalStore:g1,useId:g1,useHostTransitionStatus:g1,useFormState:g1,useActionState:g1,useOptimistic:g1,useMemoCache:g1,useCacheRefresh:g1};m2.useEffectEvent=g1;var jY=null,Hw=null,SY=null,Mw=null,f4=null,J4=null,nG=null;jY={readContext:function($){return O1($)},use:o$,useCallback:function($,Q){return x="useCallback",x0(),N9(Q),E3($,Q)},useContext:function($){return x="useContext",x0(),O1($)},useEffect:function($,Q){return x="useEffect",x0(),N9(Q),mZ($,Q)},useImperativeHandle:function($,Q,G){return x="useImperativeHandle",x0(),N9(G),O3($,Q,G)},useInsertionEffect:function($,Q){x="useInsertionEffect",x0(),N9(Q),q7(4,f6,$,Q)},useLayoutEffect:function($,Q){return x="useLayoutEffect",x0(),N9(Q),V3($,Q)},useMemo:function($,Q){x="useMemo",x0(),N9(Q);var G=u.H;u.H=f4;try{return A3($,Q)}finally{u.H=G}},useReducer:function($,Q,G){x="useReducer",x0();var N=u.H;u.H=f4;try{return w3($,Q,G)}finally{u.H=N}},useRef:function($){return x="useRef",x0(),_3($)},useState:function($){x="useState",x0();var Q=u.H;u.H=f4;try{return L3($)}finally{u.H=Q}},useDebugValue:function(){x="useDebugValue",x0()},useDeferredValue:function($,Q){return x="useDeferredValue",x0(),j3($,Q)},useTransition:function(){return x="useTransition",x0(),v3()},useSyncExternalStore:function($,Q,G){return x="useSyncExternalStore",x0(),z3($,Q,G)},useId:function(){return x="useId",x0(),k3()},useFormState:function($,Q){return x="useFormState",x0(),fZ(),U9($,Q)},useActionState:function($,Q){return x="useActionState",x0(),U9($,Q)},useOptimistic:function($){return x="useOptimistic",x0(),P3($)},useHostTransitionStatus:X7,useMemoCache:G7,useCacheRefresh:function(){return x="useCacheRefresh",x0(),b3()},useEffectEvent:function($){return x="useEffectEvent",x0(),I3($)}},Hw={readContext:function($){return O1($)},use:o$,useCallback:function($,Q){return x="useCallback",c(),E3($,Q)},useContext:function($){return x="useContext",c(),O1($)},useEffect:function($,Q){return x="useEffect",c(),mZ($,Q)},useImperativeHandle:function($,Q,G){return x="useImperativeHandle",c(),O3($,Q,G)},useInsertionEffect:function($,Q){x="useInsertionEffect",c(),q7(4,f6,$,Q)},useLayoutEffect:function($,Q){return x="useLayoutEffect",c(),V3($,Q)},useMemo:function($,Q){x="useMemo",c();var G=u.H;u.H=f4;try{return A3($,Q)}finally{u.H=G}},useReducer:function($,Q,G){x="useReducer",c();var N=u.H;u.H=f4;try{return w3($,Q,G)}finally{u.H=N}},useRef:function($){return x="useRef",c(),_3($)},useState:function($){x="useState",c();var Q=u.H;u.H=f4;try{return L3($)}finally{u.H=Q}},useDebugValue:function(){x="useDebugValue",c()},useDeferredValue:function($,Q){return x="useDeferredValue",c(),j3($,Q)},useTransition:function(){return x="useTransition",c(),v3()},useSyncExternalStore:function($,Q,G){return x="useSyncExternalStore",c(),z3($,Q,G)},useId:function(){return x="useId",c(),k3()},useActionState:function($,Q){return x="useActionState",c(),U9($,Q)},useFormState:function($,Q){return x="useFormState",c(),fZ(),U9($,Q)},useOptimistic:function($){return x="useOptimistic",c(),P3($)},useHostTransitionStatus:X7,useMemoCache:G7,useCacheRefresh:function(){return x="useCacheRefresh",c(),b3()},useEffectEvent:function($){return x="useEffectEvent",c(),I3($)}},SY={readContext:function($){return O1($)},use:o$,useCallback:function($,Q){return x="useCallback",c(),cZ($,Q)},useContext:function($){return x="useContext",c(),O1($)},useEffect:function($,Q){x="useEffect",c(),d6(2048,g6,$,Q)},useImperativeHandle:function($,Q,G){return x="useImperativeHandle",c(),pZ($,Q,G)},useInsertionEffect:function($,Q){return x="useInsertionEffect",c(),d6(4,f6,$,Q)},useLayoutEffect:function($,Q){return x="useLayoutEffect",c(),d6(4,L5,$,Q)},useMemo:function($,Q){x="useMemo",c();var G=u.H;u.H=J4;try{return lZ($,Q)}finally{u.H=G}},useReducer:function($,Q,G){x="useReducer",c();var N=u.H;u.H=J4;try{return Y9($,Q,G)}finally{u.H=N}},useRef:function(){return x="useRef",c(),N1().memoizedState},useState:function(){x="useState",c();var $=u.H;u.H=J4;try{return Y9(i5)}finally{u.H=$}},useDebugValue:function(){x="useDebugValue",c()},useDeferredValue:function($,Q){return x="useDeferredValue",c(),RH($,Q)},useTransition:function(){return x="useTransition",c(),_H()},useSyncExternalStore:function($,Q,G){return x="useSyncExternalStore",c(),hZ($,Q,G)},useId:function(){return x="useId",c(),N1().memoizedState},useFormState:function($){return x="useFormState",c(),fZ(),xZ($)},useActionState:function($){return x="useActionState",c(),xZ($)},useOptimistic:function($,Q){return x="useOptimistic",c(),NH($,Q)},useHostTransitionStatus:X7,useMemoCache:G7,useCacheRefresh:function(){return x="useCacheRefresh",c(),N1().memoizedState},useEffectEvent:function($){return x="useEffectEvent",c(),dZ($)}},Mw={readContext:function($){return O1($)},use:o$,useCallback:function($,Q){return x="useCallback",c(),cZ($,Q)},useContext:function($){return x="useContext",c(),O1($)},useEffect:function($,Q){x="useEffect",c(),d6(2048,g6,$,Q)},useImperativeHandle:function($,Q,G){return x="useImperativeHandle",c(),pZ($,Q,G)},useInsertionEffect:function($,Q){return x="useInsertionEffect",c(),d6(4,f6,$,Q)},useLayoutEffect:function($,Q){return x="useLayoutEffect",c(),d6(4,L5,$,Q)},useMemo:function($,Q){x="useMemo",c();var G=u.H;u.H=nG;try{return lZ($,Q)}finally{u.H=G}},useReducer:function($,Q,G){x="useReducer",c();var N=u.H;u.H=nG;try{return rQ($,Q,G)}finally{u.H=N}},useRef:function(){return x="useRef",c(),N1().memoizedState},useState:function(){x="useState",c();var $=u.H;u.H=nG;try{return rQ(i5)}finally{u.H=$}},useDebugValue:function(){x="useDebugValue",c()},useDeferredValue:function($,Q){return x="useDeferredValue",c(),zH($,Q)},useTransition:function(){return x="useTransition",c(),IH()},useSyncExternalStore:function($,Q,G){return x="useSyncExternalStore",c(),hZ($,Q,G)},useId:function(){return x="useId",c(),N1().memoizedState},useFormState:function($){return x="useFormState",c(),fZ(),uZ($)},useActionState:function($){return x="useActionState",c(),uZ($)},useOptimistic:function($,Q){return x="useOptimistic",c(),UH($,Q)},useHostTransitionStatus:X7,useMemoCache:G7,useCacheRefresh:function(){return x="useCacheRefresh",c(),N1().memoizedState},useEffectEvent:function($){return x="useEffectEvent",c(),dZ($)}},f4={readContext:function($){return W(),O1($)},use:function($){return M(),o$($)},useCallback:function($,Q){return x="useCallback",M(),x0(),E3($,Q)},useContext:function($){return x="useContext",M(),x0(),O1($)},useEffect:function($,Q){return x="useEffect",M(),x0(),mZ($,Q)},useImperativeHandle:function($,Q,G){return x="useImperativeHandle",M(),x0(),O3($,Q,G)},useInsertionEffect:function($,Q){x="useInsertionEffect",M(),x0(),q7(4,f6,$,Q)},useLayoutEffect:function($,Q){return x="useLayoutEffect",M(),x0(),V3($,Q)},useMemo:function($,Q){x="useMemo",M(),x0();var G=u.H;u.H=f4;try{return A3($,Q)}finally{u.H=G}},useReducer:function($,Q,G){x="useReducer",M(),x0();var N=u.H;u.H=f4;try{return w3($,Q,G)}finally{u.H=N}},useRef:function($){return x="useRef",M(),x0(),_3($)},useState:function($){x="useState",M(),x0();var Q=u.H;u.H=f4;try{return L3($)}finally{u.H=Q}},useDebugValue:function(){x="useDebugValue",M(),x0()},useDeferredValue:function($,Q){return x="useDeferredValue",M(),x0(),j3($,Q)},useTransition:function(){return x="useTransition",M(),x0(),v3()},useSyncExternalStore:function($,Q,G){return x="useSyncExternalStore",M(),x0(),z3($,Q,G)},useId:function(){return x="useId",M(),x0(),k3()},useFormState:function($,Q){return x="useFormState",M(),x0(),U9($,Q)},useActionState:function($,Q){return x="useActionState",M(),x0(),U9($,Q)},useOptimistic:function($){return x="useOptimistic",M(),x0(),P3($)},useMemoCache:function($){return M(),G7($)},useHostTransitionStatus:X7,useCacheRefresh:function(){return x="useCacheRefresh",x0(),b3()},useEffectEvent:function($){return x="useEffectEvent",M(),x0(),I3($)}},J4={readContext:function($){return W(),O1($)},use:function($){return M(),o$($)},useCallback:function($,Q){return x="useCallback",M(),c(),cZ($,Q)},useContext:function($){return x="useContext",M(),c(),O1($)},useEffect:function($,Q){x="useEffect",M(),c(),d6(2048,g6,$,Q)},useImperativeHandle:function($,Q,G){return x="useImperativeHandle",M(),c(),pZ($,Q,G)},useInsertionEffect:function($,Q){return x="useInsertionEffect",M(),c(),d6(4,f6,$,Q)},useLayoutEffect:function($,Q){return x="useLayoutEffect",M(),c(),d6(4,L5,$,Q)},useMemo:function($,Q){x="useMemo",M(),c();var G=u.H;u.H=J4;try{return lZ($,Q)}finally{u.H=G}},useReducer:function($,Q,G){x="useReducer",M(),c();var N=u.H;u.H=J4;try{return Y9($,Q,G)}finally{u.H=N}},useRef:function(){return x="useRef",M(),c(),N1().memoizedState},useState:function(){x="useState",M(),c();var $=u.H;u.H=J4;try{return Y9(i5)}finally{u.H=$}},useDebugValue:function(){x="useDebugValue",M(),c()},useDeferredValue:function($,Q){return x="useDeferredValue",M(),c(),RH($,Q)},useTransition:function(){return x="useTransition",M(),c(),_H()},useSyncExternalStore:function($,Q,G){return x="useSyncExternalStore",M(),c(),hZ($,Q,G)},useId:function(){return x="useId",M(),c(),N1().memoizedState},useFormState:function($){return x="useFormState",M(),c(),xZ($)},useActionState:function($){return x="useActionState",M(),c(),xZ($)},useOptimistic:function($,Q){return x="useOptimistic",M(),c(),NH($,Q)},useMemoCache:function($){return M(),G7($)},useHostTransitionStatus:X7,useCacheRefresh:function(){return x="useCacheRefresh",c(),N1().memoizedState},useEffectEvent:function($){return x="useEffectEvent",M(),c(),dZ($)}},nG={readContext:function($){return W(),O1($)},use:function($){return M(),o$($)},useCallback:function($,Q){return x="useCallback",M(),c(),cZ($,Q)},useContext:function($){return x="useContext",M(),c(),O1($)},useEffect:function($,Q){x="useEffect",M(),c(),d6(2048,g6,$,Q)},useImperativeHandle:function($,Q,G){return x="useImperativeHandle",M(),c(),pZ($,Q,G)},useInsertionEffect:function($,Q){return x="useInsertionEffect",M(),c(),d6(4,f6,$,Q)},useLayoutEffect:function($,Q){return x="useLayoutEffect",M(),c(),d6(4,L5,$,Q)},useMemo:function($,Q){x="useMemo",M(),c();var G=u.H;u.H=J4;try{return lZ($,Q)}finally{u.H=G}},useReducer:function($,Q,G){x="useReducer",M(),c();var N=u.H;u.H=J4;try{return rQ($,Q,G)}finally{u.H=N}},useRef:function(){return x="useRef",M(),c(),N1().memoizedState},useState:function(){x="useState",M(),c();var $=u.H;u.H=J4;try{return rQ(i5)}finally{u.H=$}},useDebugValue:function(){x="useDebugValue",M(),c()},useDeferredValue:function($,Q){return x="useDeferredValue",M(),c(),zH($,Q)},useTransition:function(){return x="useTransition",M(),c(),IH()},useSyncExternalStore:function($,Q,G){return x="useSyncExternalStore",M(),c(),hZ($,Q,G)},useId:function(){return x="useId",M(),c(),N1().memoizedState},useFormState:function($){return x="useFormState",M(),c(),uZ($)},useActionState:function($){return x="useActionState",M(),c(),uZ($)},useOptimistic:function($,Q){return x="useOptimistic",M(),c(),UH($,Q)},useMemoCache:function($){return M(),G7($)},useHostTransitionStatus:X7,useCacheRefresh:function(){return x="useCacheRefresh",c(),N1().memoizedState},useEffectEvent:function($){return x="useEffectEvent",M(),c(),dZ($)}};var Ww={},Fw=new Set,ww=new Set,Rw=new Set,zw=new Set,Tw=new Set,Lw=new Set,Pw=new Set,Cw=new Set,_w=new Set,Iw=new Set;Object.freeze(Ww);var DY={enqueueSetState:function($,Q,G){$=$._reactInternals;var N=M5($),U=l$(N);U.payload=Q,G!==void 0&&G!==null&&(f3(G),U.callback=G),Q=r$($,U,N),Q!==null&&(M4(N,"this.setState()",$),v1(Q,$,N),dQ(Q,$,N))},enqueueReplaceState:function($,Q,G){$=$._reactInternals;var N=M5($),U=l$(N);U.tag=Xw,U.payload=Q,G!==void 0&&G!==null&&(f3(G),U.callback=G),Q=r$($,U,N),Q!==null&&(M4(N,"this.replaceState()",$),v1(Q,$,N),dQ(Q,$,N))},enqueueForceUpdate:function($,Q){$=$._reactInternals;var G=M5($),N=l$(G);N.tag=Nw,Q!==void 0&&Q!==null&&(f3(Q),N.callback=Q),Q=r$($,N,G),Q!==null&&(M4(G,"this.forceUpdate()",$),v1(Q,$,G),dQ(Q,$,G))}},r9=null,vY=null,kY=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."),s1=!1,Vw={},Ow={},Ew={},Aw={},s9=!1,jw={},oG={},bY={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null},Sw=!1,Dw=null;Dw=new Set;var w$=!1,n1=!1,yY=!1,vw=typeof WeakSet==="function"?WeakSet:Set,U6=null,n9=null,o9=null,o1=null,l6=!1,Z4=null,Q6=!1,d2=8192,DV={getCacheForType:function($){var Q=O1(c1),G=Q.data.get($);return G===void 0&&(G=$(),Q.data.set($,G)),G},cacheSignal:function(){return O1(c1).controller.signal},getOwner:function(){return w5}};if(typeof Symbol==="function"&&Symbol.for){var p2=Symbol.for;p2("selector.component"),p2("selector.has_pseudo_class"),p2("selector.role"),p2("selector.test_id"),p2("selector.text")}var vV=[],kV=typeof WeakMap==="function"?WeakMap:Map,K6=0,J6=2,P5=4,R$=0,c2=1,C7=2,iG=3,W8=4,aG=6,kw=5,i0=K6,W1=null,g0=null,f0=0,r6=0,tG=1,_7=2,l2=3,bw=4,fY=5,r2=6,eG=7,gY=8,I7=9,Y1=r6,C5=null,F8=!1,i9=!1,hY=!1,g4=0,S1=R$,w8=0,R8=0,xY=0,s6=0,V7=0,s2=null,h6=null,$q=!1,Qq=0,yw=0,fw=300,Jq=1/0,gw=500,n2=null,h1=null,z8=null,Zq=0,uY=1,mY=2,hw=3,T8=0,xw=1,uw=2,mw=3,dw=4,Gq=5,i1=0,L8=null,a9=null,G4=0,dY=0,pY=-0,cY=null,pw=null,cw=null,q4=Zq,lw=null,bV=50,o2=0,lY=null,rY=!1,qq=!1,yV=50,O7=0,i2=null,t9=!1,Xq=null,rw=!1,sw=new Set,fV={},Nq=null,e9=null,sY=!1,nY=!1,Yq=!1,oY=!1,P8=0,iY={};(function(){for(var $=0;$<NY.length;$++){var Q=NY[$],G=Q.toLowerCase();Q=Q[0].toUpperCase()+Q.slice(1),o5(G,"on"+Q)}o5(_F,"onAnimationEnd"),o5(IF,"onAnimationIteration"),o5(VF,"onAnimationStart"),o5("dblclick","onDoubleClick"),o5("focusin","onFocus"),o5("focusout","onBlur"),o5(HV,"onTransitionRun"),o5(MV,"onTransitionStart"),o5(WV,"onTransitionCancel"),o5(OF,"onTransitionEnd")})(),X5("onMouseEnter",["mouseout","mouseover"]),X5("onMouseLeave",["mouseout","mouseover"]),X5("onPointerEnter",["pointerout","pointerover"]),X5("onPointerLeave",["pointerout","pointerover"]),C6("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),C6("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),C6("onBeforeInput",["compositionend","keypress","textInput","paste"]),C6("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),C6("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),C6("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var a2="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(" "),aY=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(a2)),Uq="_reactListening"+Math.random().toString(36).slice(2),nw=!1,ow=!1,Kq=!1,iw=!1,Bq=!1,Hq=!1,aw=!1,Mq={},gV=/\r\n?/g,hV=/\u0000|\uFFFD/g,E7="http://www.w3.org/1999/xlink",tY="http://www.w3.org/XML/1998/namespace",xV="javascript:throw new Error('React form unexpectedly submitted.')",uV="suppressHydrationWarning",A7="&",Wq="/&",t2="$",e2="/$",C8="$?",j7="$~",$Q="$!",mV="html",dV="body",pV="head",eY="F!",tw="F",ew="loading",cV="style",z$=0,QQ=1,Fq=2,$U=null,QU=null,$R={dialog:!0,webview:!0},JU=null,$J=void 0,QR=typeof setTimeout==="function"?setTimeout:void 0,lV=typeof clearTimeout==="function"?clearTimeout:void 0,S7=-1,JR=typeof Promise==="function"?Promise:void 0,rV=typeof queueMicrotask==="function"?queueMicrotask:typeof JR<"u"?function($){return JR.resolve(null).then($).catch(S_)}:QR,ZU=null,D7=0,QJ=1,ZR=2,GR=3,x5=4,u5=new Map,qR=new Set,T$=q1.d;q1.d={f:function(){var $=T$.f(),Q=W9();return $||Q},r:function($){var Q=S0($);Q!==null&&Q.tag===5&&Q.type==="form"?CH(Q):T$.r($)},D:function($){T$.D($),FW("dns-prefetch",$,null)},C:function($,Q){T$.C($,Q),FW("preconnect",$,Q)},L:function($,Q,G){T$.L($,Q,G);var N=JQ;if(N&&$&&Q){var U='link[rel="preload"][as="'+E5(Q)+'"]';Q==="image"?G&&G.imageSrcSet?(U+='[imagesrcset="'+E5(G.imageSrcSet)+'"]',typeof G.imageSizes==="string"&&(U+='[imagesizes="'+E5(G.imageSizes)+'"]')):U+='[href="'+E5($)+'"]':U+='[href="'+E5($)+'"]';var B=U;switch(Q){case"style":B=R9($);break;case"script":B=z9($)}u5.has(B)||($=u0({rel:"preload",href:Q==="image"&&G&&G.imageSrcSet?void 0:$,as:Q},G),u5.set(B,$),N.querySelector(U)!==null||Q==="style"&&N.querySelector(N2(B))||Q==="script"&&N.querySelector(Y2(B))||(Q=N.createElement("link"),W6(Q,"link",$),T0(Q),N.head.appendChild(Q)))}},m:function($,Q){T$.m($,Q);var G=JQ;if(G&&$){var N=Q&&typeof Q.as==="string"?Q.as:"script",U='link[rel="modulepreload"][as="'+E5(N)+'"][href="'+E5($)+'"]',B=U;switch(N){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":B=z9($)}if(!u5.has(B)&&($=u0({rel:"modulepreload",href:$},Q),u5.set(B,$),G.querySelector(U)===null)){switch(N){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(G.querySelector(Y2(B)))return}N=G.createElement("link"),W6(N,"link",$),T0(N),G.head.appendChild(N)}}},X:function($,Q){T$.X($,Q);var G=JQ;if(G&&$){var N=t0(G).hoistableScripts,U=z9($),B=N.get(U);B||(B=G.querySelector(Y2(U)),B||($=u0({src:$,async:!0},Q),(Q=u5.get(U))&&ON($,Q),B=G.createElement("script"),T0(B),W6(B,"link",$),G.head.appendChild(B)),B={type:"script",instance:B,count:1,state:null},N.set(U,B))}},S:function($,Q,G){T$.S($,Q,G);var N=JQ;if(N&&$){var U=t0(N).hoistableStyles,B=R9($);Q=Q||"default";var F=U.get(B);if(!F){var R={loading:D7,preload:null};if(F=N.querySelector(N2(B)))R.loading=QJ|x5;else{$=u0({rel:"stylesheet",href:$,"data-precedence":Q},G),(G=u5.get(B))&&VN($,G);var L=F=N.createElement("link");T0(L),W6(L,"link",$),L._p=new Promise(function(C,b){L.onload=C,L.onerror=b}),L.addEventListener("load",function(){R.loading|=QJ}),L.addEventListener("error",function(){R.loading|=ZR}),R.loading|=x5,KG(F,Q,N)}F={type:"stylesheet",instance:F,count:1,state:R},U.set(B,F)}}},M:function($,Q){T$.M($,Q);var G=JQ;if(G&&$){var N=t0(G).hoistableScripts,U=z9($),B=N.get(U);B||(B=G.querySelector(Y2(U)),B||($=u0({src:$,async:!0,type:"module"},Q),(Q=u5.get(U))&&ON($,Q),B=G.createElement("script"),T0(B),W6(B,"link",$),G.head.appendChild(B)),B={type:"script",instance:B,count:1,state:null},N.set(U,B))}}};var JQ=typeof document>"u"?null:document,wq=null,sV=60000,nV=800,oV=500,GU=0,qU=null,Rq=null,v7=KI,JJ={$$typeof:E4,Provider:null,Consumer:null,_currentValue:v7,_currentValue2:v7,_threadCount:0},XR="%c%s%c",NR="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",YR="",zq=" ",iV=Function.prototype.bind,UR=!1,KR=null,BR=null,HR=null,MR=null,WR=null,FR=null,wR=null,RR=null,zR=null,TR=null;KR=function($,Q,G,N){Q=J($,Q),Q!==null&&(G=Z(Q.memoizedState,G,0,N),Q.memoizedState=G,Q.baseState=G,$.memoizedProps=u0({},$.memoizedProps),G=_6($,2),G!==null&&v1(G,$,2))},BR=function($,Q,G){Q=J($,Q),Q!==null&&(G=Y(Q.memoizedState,G,0),Q.memoizedState=G,Q.baseState=G,$.memoizedProps=u0({},$.memoizedProps),G=_6($,2),G!==null&&v1(G,$,2))},HR=function($,Q,G,N){Q=J($,Q),Q!==null&&(G=q(Q.memoizedState,G,N),Q.memoizedState=G,Q.baseState=G,$.memoizedProps=u0({},$.memoizedProps),G=_6($,2),G!==null&&v1(G,$,2))},MR=function($,Q,G){$.pendingProps=Z($.memoizedProps,Q,0,G),$.alternate&&($.alternate.pendingProps=$.pendingProps),Q=_6($,2),Q!==null&&v1(Q,$,2)},WR=function($,Q){$.pendingProps=Y($.memoizedProps,Q,0),$.alternate&&($.alternate.pendingProps=$.pendingProps),Q=_6($,2),Q!==null&&v1(Q,$,2)},FR=function($,Q,G){$.pendingProps=q($.memoizedProps,Q,G),$.alternate&&($.alternate.pendingProps=$.pendingProps),Q=_6($,2),Q!==null&&v1(Q,$,2)},wR=function($){var Q=_6($,2);Q!==null&&v1(Q,$,2)},RR=function($){var Q=$9(),G=_6($,Q);G!==null&&v1(G,$,Q)},zR=function($){H=$},TR=function($){K=$};var Tq=!0,Lq=null,XU=!1,_8=null,I8=null,V8=null,ZJ=new Map,GJ=new Map,O8=[],aV="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(" "),Pq=null;if(FG.prototype.render=vN.prototype.render=function($){var Q=this._internalRoot;if(Q===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()."):V(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 N=Q.current,U=M5(N);EN(N,U,G,Q,null,null)},FG.prototype.unmount=vN.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 Q=$.containerInfo;(i0&(J6|P5))!==K6&&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."),EN($.current,2,null,$,null,null),W9(),Q[J8]=null}},FG.prototype.unstable_scheduleHydration=function($){if($){var Q=f();$={blockedOn:null,target:$,priority:Q};for(var G=0;G<O8.length&&Q!==0&&Q<O8[G].priority;G++);O8.splice(G,0,$),G===0&&jW($)}},function(){var $=MQ.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"),q1.findDOMNode=function($){var
|
|
227
|
-
You might need to use a local HTTP server (instead of file://): https://react.dev/link/react-devtools-faq`:""),"font-weight:bold")}
|
|
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"),q1.findDOMNode=function($){var Q=$._reactInternals;if(Q===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 $=n(Q),$=$!==null?Z0($):null,$=$===null?null:$.stateNode,$},!function(){var $={bundleType:1,version:"19.2.7",rendererPackageName:"react-dom",currentDispatcherRef:u,reconcilerVersion:"19.2.7"};return $.overrideHookState=KR,$.overrideHookStateDeletePath=BR,$.overrideHookStateRenamePath=HR,$.overrideProps=MR,$.overridePropsDeletePath=WR,$.overridePropsRenamePath=FR,$.scheduleUpdate=wR,$.scheduleRetry=RR,$.setErrorHandler=zR,$.setSuspenseHandler=TR,$.scheduleRefresh=E,$.scheduleRoot=I,$.setRefreshHandler=O,$.getCurrentFiber=JI,e7($)}()&&v4&&window.top===window.self&&(-1<navigator.userAgent.indexOf("Chrome")&&navigator.userAgent.indexOf("Edge")===-1||-1<navigator.userAgent.indexOf("Firefox"))){var LR=window.location.protocol;/^(https?|file):$/.test(LR)&&console.info("%cDownload the React DevTools for a better development experience: https://react.dev/link/react-devtools"+(LR==="file:"?`
|
|
227
|
+
You might need to use a local HTTP server (instead of file://): https://react.dev/link/react-devtools-faq`:""),"font-weight:bold")}DS.createRoot=function($,Q){if(!V($))throw Error("Target container is not a DOM element.");kW($);var G=!1,N="",U=SH,B=DH,F=vH;return Q!==null&&Q!==void 0&&(Q.hydrate?console.warn("hydrate through createRoot is deprecated. Use ReactDOMClient.hydrateRoot(container, <App />) instead."):typeof Q==="object"&&Q!==null&&Q.$$typeof===O4&&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 />);`),
|
|
230
|
+
root.render(<App />);`),Q.unstable_strictMode===!0&&(G=!0),Q.identifierPrefix!==void 0&&(N=Q.identifierPrefix),Q.onUncaughtError!==void 0&&(U=Q.onUncaughtError),Q.onCaughtError!==void 0&&(B=Q.onCaughtError),Q.onRecoverableError!==void 0&&(F=Q.onRecoverableError)),Q=CW($,1,!1,null,null,G,N,null,U,B,F,vW),$[J8]=Q.current,MN($),new vN(Q)},DS.hydrateRoot=function($,Q,G){if(!V($))throw Error("Target container is not a DOM element.");kW($),Q===void 0&&console.error("Must provide initial children as second argument to hydrateRoot. Example usage: hydrateRoot(domContainer, <App />)");var N=!1,U="",B=SH,F=DH,R=vH,L=null;return G!==null&&G!==void 0&&(G.unstable_strictMode===!0&&(N=!0),G.identifierPrefix!==void 0&&(U=G.identifierPrefix),G.onUncaughtError!==void 0&&(B=G.onUncaughtError),G.onCaughtError!==void 0&&(F=G.onCaughtError),G.onRecoverableError!==void 0&&(R=G.onRecoverableError),G.formState!==void 0&&(L=G.formState)),Q=CW($,1,!0,Q,G!=null?G:null,N,U,L,B,F,R,vW),Q.context=_W(null),G=Q.current,N=M5(G),N=n8(N),U=l$(N),U.callback=null,r$(G,U,N),M4(N,"hydrateRoot()",null),G=N,Q.current.lanes=G,h$(Q,G),I4(Q),$[J8]=Q.current,MN($),new FG(Q)},DS.version="19.2.7",typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop==="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()});var rT=E8((dk,lT)=>{var vS=t(cT());lT.exports=vS});var M0=E8((bS)=>{var l7=t(I1());(function(){function J(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 O:return"Fragment";case D:return"Profiler";case V:return"StrictMode";case n:return"Suspense";case Z0:return"SuspenseList";case X0: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 E: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 a:return o=v.displayName||null,o!==null?o:J(v.type)||"Memo";case i:o=v._payload,v=v._init;try{return J(v(o))}catch(W0){}}return null}function Z(v){return""+v}function q(v){try{Z(v);var o=!1}catch(h0){o=!0}if(o){o=console;var W0=o.error,R0=typeof Symbol==="function"&&Symbol.toStringTag&&v[Symbol.toStringTag]||v.constructor.name||"Object";return W0.call(o,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",R0),Z(v)}}function X(v){if(v===O)return"<>";if(typeof v==="object"&&v!==null&&v.$$typeof===i)return"<...>";try{var o=J(v);return o?"<"+o+">":"<...>"}catch(W0){return"<...>"}}function Y(){var v=B0.A;return v===null?null:v.getOwner()}function K(){return Error("react-stack-top-frame")}function H(v){if(H0.call(v,"key")){var o=Object.getOwnPropertyDescriptor(v,"key").get;if(o&&o.isReactWarning)return!1}return v.key!==void 0}function M(v,o){function W0(){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))}W0.isReactWarning=!0,Object.defineProperty(v,"key",{get:W0,configurable:!0})}function W(){var v=J(this.type);return e[v]||(e[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,W0,R0,h0,p1){var j0=W0.ref;return v={$$typeof:I,type:v,key:o,props:W0,_owner:R0},(j0!==void 0?j0:null)!==null?Object.defineProperty(v,"ref",{enumerable:!1,get:W}):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:h0}),Object.defineProperty(v,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:p1}),Object.freeze&&(Object.freeze(v.props),Object.freeze(v)),v}function z(v,o,W0,R0,h0,p1){var j0=o.children;if(j0!==void 0)if(R0)if(C0(j0)){for(R0=0;R0<j0.length;R0++)T(j0[R0]);Object.freeze&&Object.freeze(j0)}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 T(j0);if(H0.call(o,"key")){j0=J(v);var A1=Object.keys(o).filter(function(n5){return n5!=="key"});R0=0<A1.length?"{key: someKey, "+A1.join(": ..., ")+": ...}":"{key: someKey}",r0[j0+R0]||(A1=0<A1.length?"{"+A1.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} />`,
|
|
235
|
+
<%s key={someKey} {...props} />`,R0,j0,A1,j0),r0[j0+R0]=!0)}if(j0=null,W0!==void 0&&(q(W0),j0=""+W0),H(o)&&(q(o.key),j0=""+o.key),"key"in o){W0={};for(var P6 in o)P6!=="key"&&(W0[P6]=o[P6])}else W0=o;return j0&&M(W0,typeof v==="function"?v.displayName||v.name||"Unknown":v),w(v,j0,W0,Y(),h0,p1)}function T(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"),E=Symbol.for("react.portal"),O=Symbol.for("react.fragment"),V=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"),n=Symbol.for("react.suspense"),Z0=Symbol.for("react.suspense_list"),a=Symbol.for("react.memo"),i=Symbol.for("react.lazy"),X0=Symbol.for("react.activity"),d=Symbol.for("react.client.reference"),B0=l7.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,H0=Object.prototype.hasOwnProperty,C0=Array.isArray,T1=console.createTask?console.createTask:function(){return null};l7={react_stack_bottom_frame:function(v){return v()}};var l,e={},N0=l7.react_stack_bottom_frame.bind(l7,K)(),c0=T1(X(K)),r0={};bS.Fragment=O,bS.jsxDEV=function(v,o,W0,R0){var h0=1e4>B0.recentlyCreatedOwnerStacks++;return z(v,o,W0,R0,h0?Error("react-stack-top-frame"):N0,h0?T1(X(v)):c0)}})()});var DP=E8((OD)=>{var o7=t(I1());(function(){function J(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 O:return"Fragment";case D:return"Profiler";case V:return"StrictMode";case n:return"Suspense";case Z0:return"SuspenseList";case X0: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 E: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 a:return o=v.displayName||null,o!==null?o:J(v.type)||"Memo";case i:o=v._payload,v=v._init;try{return J(v(o))}catch(W0){}}return null}function Z(v){return""+v}function q(v){try{Z(v);var o=!1}catch(h0){o=!0}if(o){o=console;var W0=o.error,R0=typeof Symbol==="function"&&Symbol.toStringTag&&v[Symbol.toStringTag]||v.constructor.name||"Object";return W0.call(o,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",R0),Z(v)}}function X(v){if(v===O)return"<>";if(typeof v==="object"&&v!==null&&v.$$typeof===i)return"<...>";try{var o=J(v);return o?"<"+o+">":"<...>"}catch(W0){return"<...>"}}function Y(){var v=B0.A;return v===null?null:v.getOwner()}function K(){return Error("react-stack-top-frame")}function H(v){if(H0.call(v,"key")){var o=Object.getOwnPropertyDescriptor(v,"key").get;if(o&&o.isReactWarning)return!1}return v.key!==void 0}function M(v,o){function W0(){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))}W0.isReactWarning=!0,Object.defineProperty(v,"key",{get:W0,configurable:!0})}function W(){var v=J(this.type);return e[v]||(e[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,W0,R0,h0,p1){var j0=W0.ref;return v={$$typeof:I,type:v,key:o,props:W0,_owner:R0},(j0!==void 0?j0:null)!==null?Object.defineProperty(v,"ref",{enumerable:!1,get:W}):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:h0}),Object.defineProperty(v,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:p1}),Object.freeze&&(Object.freeze(v.props),Object.freeze(v)),v}function z(v,o,W0,R0,h0,p1){var j0=o.children;if(j0!==void 0)if(R0)if(C0(j0)){for(R0=0;R0<j0.length;R0++)T(j0[R0]);Object.freeze&&Object.freeze(j0)}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 T(j0);if(H0.call(o,"key")){j0=J(v);var A1=Object.keys(o).filter(function(n5){return n5!=="key"});R0=0<A1.length?"{key: someKey, "+A1.join(": ..., ")+": ...}":"{key: someKey}",r0[j0+R0]||(A1=0<A1.length?"{"+A1.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} />`,
|
|
241
|
-
* @kurkle/color v0.
|
|
240
|
+
<%s key={someKey} {...props} />`,R0,j0,A1,j0),r0[j0+R0]=!0)}if(j0=null,W0!==void 0&&(q(W0),j0=""+W0),H(o)&&(q(o.key),j0=""+o.key),"key"in o){W0={};for(var P6 in o)P6!=="key"&&(W0[P6]=o[P6])}else W0=o;return j0&&M(W0,typeof v==="function"?v.displayName||v.name||"Unknown":v),w(v,j0,W0,Y(),h0,p1)}function T(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"),E=Symbol.for("react.portal"),O=Symbol.for("react.fragment"),V=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"),n=Symbol.for("react.suspense"),Z0=Symbol.for("react.suspense_list"),a=Symbol.for("react.memo"),i=Symbol.for("react.lazy"),X0=Symbol.for("react.activity"),d=Symbol.for("react.client.reference"),B0=o7.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,H0=Object.prototype.hasOwnProperty,C0=Array.isArray,T1=console.createTask?console.createTask:function(){return null};o7={react_stack_bottom_frame:function(v){return v()}};var l,e={},N0=o7.react_stack_bottom_frame.bind(o7,K)(),c0=T1(X(K)),r0={};OD.Fragment=O,OD.jsx=function(v,o,W0){var R0=1e4>B0.recentlyCreatedOwnerStacks++;return z(v,o,W0,!1,R0?Error("react-stack-top-frame"):N0,R0?T1(X(v)):c0)},OD.jsxs=function(v,o,W0){var R0=1e4>B0.recentlyCreatedOwnerStacks++;return z(v,o,W0,!0,R0?Error("react-stack-top-frame"):N0,R0?T1(X(v)):c0)}})()});/*!
|
|
241
|
+
* @kurkle/color v0.6.6
|
|
242
242
|
* https://github.com/kurkle/color#readme
|
|
243
|
-
* (c)
|
|
243
|
+
* (c) 2026 Jukka Kurkela
|
|
244
244
|
* Released under the MIT License
|
|
245
|
-
*/function
|
|
246
|
-
* Chart.js v4.6.
|
|
245
|
+
*/function A8(J){return J+0.5|0}var C$=(J,Z,q)=>Math.max(Math.min(J,q),Z);function qJ(J){return C$(A8(J*255/100),0,255)}function B6(J){return C$(A8(J*255),0,255)}function m5(J){return C$(A8(J/2.55)/100,0,1)}function CR(J){return C$(A8(J*100),0,100)}function IR(J,Z){if(J===void 0)return 255;let q=J==="none"?0:+J;return Z?qJ(q):B6(q)}var O6={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,A:10,a:10,B:11,b:11,C:12,c:12,D:13,d:13,E:14,e:14,F:15,f:15},YU=[..."0123456789ABCDEF"],XO=(J)=>YU[J&15],NO=(J)=>YU[(J&240)>>4]+YU[J&15],Cq=(J)=>(J&240)>>4===(J&15),YO=(J)=>Cq(J.r)&&Cq(J.g)&&Cq(J.b)&&Cq(J.a);function UO(J){if(J[0]!=="#")return;let Z=J.length;if(Z===4||Z===5)return{a:Z===5?O6[J[4]]<<4|O6[J[4]]:255,b:O6[J[3]]<<4|O6[J[3]],g:O6[J[2]]<<4|O6[J[2]],r:O6[J[1]]<<4|O6[J[1]]};if(Z===7||Z===9)return{a:Z===9?O6[J[7]]<<4|O6[J[8]]:255,b:O6[J[5]]<<4|O6[J[6]],g:O6[J[3]]<<4|O6[J[4]],r:O6[J[1]]<<4|O6[J[2]]}}var KO=(J,Z)=>J<255?Z(J):"";function BO(J){let Z=J&&YO(J)?XO:NO;return J?`#${Z(J.r)}${Z(J.g)}${Z(J.b)}${KO(J.a,Z)}`:void 0}var HO=/^(hsla?|hwb|hsv)\(\s*([-+.e\d]+)(?:deg)?[\s,]+([-+.e\d]+)%[\s,]+([-+.e\d]+)%(?:[\s,/]+([-+.e\d]+)(%)?)?\s*\)$/;function Oq(J,Z,q){let X=Z*Math.min(q,1-q),Y=(K,H=(K+J/30)%12)=>q-X*Math.max(Math.min(H-3,9-H,1),-1);return[Y(0),Y(8),Y(4)]}function MO(J,Z,q){let X=(Y,K=(Y+J/60)%6)=>q-q*Z*Math.max(Math.min(K,4-K,1),0);return[X(5),X(3),X(1)]}function WO(J,Z,q){let X=Oq(J,1,0.5),Y;if(Z+q>1)Y=1/(Z+q),Z*=Y,q*=Y;for(Y=0;Y<3;Y++)X[Y]*=1-Z-q,X[Y]+=Z;return X}function FO(J,Z,q,X,Y){if(J===Y)return(Z-q)/X+(Z<q?6:0);if(Z===Y)return(q-J)/X+2;return(J-Z)/X+4}function UU(J){let q=J.r/255,X=J.g/255,Y=J.b/255,K=Math.max(q,X,Y),H=Math.min(q,X,Y),M=(K+H)/2,W=0,w=0,z;if(K!==H)z=K-H,w=M>0.5?z/(2-K-H):z/(K+H),W=FO(q,X,Y,z,K),W=W*60+0.5;return[W|0,w||0,M]}function KU(J,Z,q,X){return(Array.isArray(Z)?J(Z[0],Z[1],Z[2]):J(Z,q,X)).map(B6)}function wO(J,Z,q){return KU(Oq,J,Z,q)}function RO(J,Z,q){return KU(WO,J,Z,q)}function zO(J,Z,q){return KU(MO,J,Z,q)}function VR(J){return(J%360+360)%360}function TO(J){let Z=HO.exec(J),q;if(!Z)return;let X=IR(Z[5],Z[6]),Y=VR(+Z[2]),K=+Z[3]/100,H=+Z[4]/100;if(Z[1]==="hwb")q=RO(Y,K,H);else if(Z[1]==="hsv")q=zO(Y,K,H);else q=wO(Y,K,H);return{a:X,b:q[2],g:q[1],r:q[0]}}function LO(J,Z){let q=UU(J),X=Oq(VR(q[0]+Z),q[1],q[2]);J.r=B6(X[0]),J.g=B6(X[1]),J.b=B6(X[2])}function PO(J){if(!J)return;let Z=UU(J),q=Z[0],X=CR(Z[1]),Y=CR(Z[2]);return J.a<255?`hsla(${q}, ${X}%, ${Y}%, ${m5(J.a)})`:`hsl(${q}, ${X}%, ${Y}%)`}var CO="alicebluef0f8ff antiquewhitefaebd7 aqua00ffff aquamarine7fffd4 azuref0ffff beigef5f5dc bisqueffe4c4 black000000 blanchedalmondffebcd blue0000ff blueviolet8a2be2 browna52a2a burlywooddeb887 cadetblue5f9ea0 chartreuse7fff00 chocolated2691e coralff7f50 cornflowerblue6495ed cornsilkfff8dc crimsondc143c cyan00ffff darkblue00008b darkcyan008b8b darkgoldenrodb8860b darkgraya9a9a9 darkgreen006400 darkgreya9a9a9 darkkhakibdb76b darkmagenta8b008b darkolivegreen556b2f darkorangeff8c00 darkorchid9932cc darkred8b0000 darksalmone9967a darkseagreen8fbc8f darkslateblue483d8b darkslategray2f4f4f darkslategrey2f4f4f darkturquoise00ced1 darkviolet9400d3 deeppinkff1493 deepskyblue00bfff dimgray696969 dimgrey696969 dodgerblue1e90ff firebrickb22222 floralwhitefffaf0 forestgreen228b22 fuchsiaff00ff gainsborodcdcdc ghostwhitef8f8ff goldffd700 goldenroddaa520 gray808080 green008000 greenyellowadff2f grey808080 honeydewf0fff0 hotpinkff69b4 indianredcd5c5c indigo4b0082 ivoryfffff0 khakif0e68c lavendere6e6fa lavenderblushfff0f5 lawngreen7cfc00 lemonchiffonfffacd lightblueadd8e6 lightcoralf08080 lightcyane0ffff lightgoldenrodyellowfafad2 lightgrayd3d3d3 lightgreen90ee90 lightgreyd3d3d3 lightpinkffb6c1 lightsalmonffa07a lightseagreen20b2aa lightskyblue87cefa lightslategray778899 lightslategrey778899 lightsteelblueb0c4de lightyellowffffe0 lime00ff00 limegreen32cd32 linenfaf0e6 magentaff00ff maroon800000 mediumaquamarine66cdaa mediumblue0000cd mediumorchidba55d3 mediumpurple9370db mediumseagreen3cb371 mediumslateblue7b68ee mediumspringgreen00fa9a mediumturquoise48d1cc mediumvioletredc71585 midnightblue191970 mintcreamf5fffa mistyroseffe4e1 moccasinffe4b5 navajowhiteffdead navy000080 oldlacefdf5e6 olive808000 olivedrab6b8e23 orangeffa500 orangeredff4500 orchidda70d6 palegoldenrodeee8aa palegreen98fb98 paleturquoiseafeeee palevioletreddb7093 papayawhipffefd5 peachpuffffdab9 perucd853f pinkffc0cb plumdda0dd powderblueb0e0e6 purple800080 rebeccapurple663399 redff0000 rosybrownbc8f8f royalblue4169e1 saddlebrown8b4513 salmonfa8072 sandybrownf4a460 seagreen2e8b57 seashellfff5ee siennaa0522d silverc0c0c0 skyblue87ceeb slateblue6a5acd slategray708090 slategrey708090 snowfffafa springgreen00ff7f steelblue4682b4 tand2b48c teal008080 thistled8bfd8 tomatoff6347 turquoise40e0d0 violetee82ee wheatf5deb3 whiteffffff whitesmokef5f5f5 yellowffff00 yellowgreen9acd32";function _O(){let J={};for(let Z of CO.split(" ")){let q=parseInt(Z.slice(-6),16);J[Z.slice(0,-6)]=[q>>16&255,q>>8&255,q&255]}return J}var _q;function IO(J){if(!_q)_q=_O(),_q.transparent=[0,0,0,0];let Z=_q[J.toLowerCase()];return Z&&{a:Z.length===4?Z[3]:255,b:Z[2],g:Z[1],r:Z[0]}}function ZQ(J){return J<=0.0031308?J*12.92:J**0.4166666666666667*1.055-0.055}function P$(J){return J<=0.04045?J/12.92:((J+0.055)/1.055)**2.4}function VO(J,Z,q){let X=P$(m5(J.r)),Y=P$(m5(J.g)),K=P$(m5(J.b));return{a:J.a+q*(Z.a-J.a),b:B6(ZQ(K+q*(P$(m5(Z.b))-K))),g:B6(ZQ(Y+q*(P$(m5(Z.g))-Y))),r:B6(ZQ(X+q*(P$(m5(Z.r))-X)))}}var OO=/^oklch\(\s*([-+.e\d]+|none)(%)?[\s,]+([-+.e\d]+|none)(%)?[\s,]+([-+.e\d]+|none)(deg|rad|grad|turn)?(?:[\s,/]+([-+.e\d]+|none)(%)?)?\s*\)$/,EO={deg:1,grad:0.9,rad:180/Math.PI,turn:360};function AO(J,Z,q){let X=P$(J/255),Y=P$(Z/255),K=P$(q/255),H=Math.cbrt(0.4122214708*X+0.5363325363*Y+0.0514459929*K),M=Math.cbrt(0.2119034982*X+0.6806995451*Y+0.1073969566*K),W=Math.cbrt(0.0883024619*X+0.2817188376*Y+0.6299787005*K);return[0.2104542553*H+0.793617785*M-0.0040720468*W,1.9779984951*H-2.428592205*M+0.4505937099*W,0.0259040371*H+0.7827717662*M-0.808675766*W]}function jO(J,Z,q){let X=J+0.3963377774*Z+0.2158037573*q,Y=J-0.1055613458*Z-0.0638541728*q,K=J-0.0894841775*Z-1.291485548*q,H=X*X*X,M=Y*Y*Y,W=K*K*K;return[ZQ(4.0767416621*H-3.3077115913*M+0.2309699292*W),ZQ(-1.2684380046*H+2.6097574011*M-0.3413193965*W),ZQ(-0.0041960863*H-0.7034186147*M+1.707614701*W)]}function SO(J){let[Z,q,X]=AO(J.r,J.g,J.b),Y=Math.hypot(q,X),K=0;if(Y>=0.0001){if(K=Math.atan2(X,q)*180/Math.PI,K<0)K+=360}return[Z,Y,K]}function DO(J,Z,q){let X,Y,K;if(Array.isArray(J))X=J[0],Y=J[1],K=J[2];else X=J,Y=Z,K=q;let H=K*Math.PI/180,M=jO(X,Y*Math.cos(H),Y*Math.sin(H));return M[0]=B6(M[0]),M[1]=B6(M[1]),M[2]=B6(M[2]),M}function NU(J){return J==="none"?0:+J}function vO(J){let Z=OO.exec(J);if(!Z)return;let q=NU(Z[1]),X=C$(Z[2]?q/100:q,0,1),Y=NU(Z[3]),K=Math.max(Z[4]?Y/100*0.4:Y,0),H=NU(Z[5])*(Z[6]?EO[Z[6]]:1),M=IR(Z[7],!!Z[8]),W=DO(X,K,H);return{a:M,b:W[2],g:W[1],r:W[0]}}function kO(J){if(!J)return;let[Z,q,X]=SO(J),Y=Math.round(Z*1e4)/1e4,K=Math.round(q*1e4)/1e4,H=Math.round(X*100)/100;return J.a<255?`oklch(${Y} ${K} ${H} / ${m5(J.a)})`:`oklch(${Y} ${K} ${H})`}var Iq=String.raw`([-+]?(?:\d*\.\d+|\d+)(?:[eE][-+]?\d+)?)`,bO=new RegExp(String.raw`^rgba?\(\s*${Iq}(%)?[\s,]+${Iq}(%)?[\s,]+${Iq}(%)?(?:[\s,/]+${Iq}(%)?)?\s*\)$`);function yO(J){let Z=bO.exec(J),q=255,X,Y,K;if(!Z)return;if(Z[7]!==void 0){let H=+Z[7];q=Z[8]?qJ(H):C$(H*255,0,255)}return X=+Z[1],Y=+Z[3],K=+Z[5],X=Z[2]?qJ(X):A8(C$(X,0,255)),Y=Z[4]?qJ(Y):A8(C$(Y,0,255)),K=Z[6]?qJ(K):A8(C$(K,0,255)),{a:q,b:K,g:Y,r:X}}function fO(J){return J&&(J.a<255?`rgba(${J.r}, ${J.g}, ${J.b}, ${m5(J.a)})`:`rgb(${J.r}, ${J.g}, ${J.b})`)}var gO=/\/\*[\s\S]*?\*\//g;function Vq(J,Z,q){if(J){let X=UU(J);X[Z]=Math.max(0,Math.min(X[Z]+X[Z]*q,Z===0?360:1));let Y=Oq(X[0],X[1],X[2]);J.r=B6(Y[0]),J.g=B6(Y[1]),J.b=B6(Y[2])}}function OR(J,Z){return J?Object.assign(Z||{},J):J}function _R(J){let Z={a:255,b:0,g:0,r:0};if(Array.isArray(J)){if(J.length>=3){if(Z={a:255,b:J[2],g:J[1],r:J[0]},J.length>3)Z.a=B6(J[3])}}else Z=OR(J,{a:1,b:0,g:0,r:0}),Z.a=B6(Z.a);return Z}function hO(J){let Z=(J.indexOf("/*")===-1?J:J.replace(gO,"")).trim(),q=Z.charAt(0);if(q==="r")return yO(Z);if(q==="o")return vO(Z);return TO(Z)}var BU=class J{constructor(Z){if(Z instanceof J)return Z;let q=typeof Z,X;if(q==="object")X=_R(Z);else if(q==="string")X=UO(Z)||IO(Z)||hO(Z);this.h=X,this.i=!!X}get valid(){return this.i}get rgb(){let Z=OR(this.h);if(Z)Z.a=m5(Z.a);return Z}set rgb(Z){this.h=_R(Z)}rgbString(){return this.i?fO(this.h):void 0}hexString(){return this.i?BO(this.h):void 0}hslString(){return this.i?PO(this.h):void 0}oklchString(){return this.i?kO(this.h):void 0}mix(Z,q=0.5){if(Z){let X=this.h,Y=Z.h,K=m5(X.a),H=m5(Y.a),M=2*q-1,W=K-H,w=((M*W===-1?M:(M+W)/(1+M*W))+1)/2,z=1-w;X.r=255&w*X.r+z*Y.r+0.5,X.g=255&w*X.g+z*Y.g+0.5,X.b=255&w*X.b+z*Y.b+0.5,X.a=B6(q*K+(1-q)*H)}return this}interpolate(Z,q){if(Z)this.h=VO(this.h,Z.h,q);return this}clone(){return new J(this.rgb)}alpha(Z){return this.h.a=B6(Z),this}clearer(Z){let q=this.h;return q.a*=1-Z,this}greyscale(){let Z=this.h,q=A8(Z.r*0.3+Z.g*0.59+Z.b*0.11);return Z.r=Z.g=Z.b=q,this}opaquer(Z){let q=this.h;return q.a*=1+Z,this}negate(){let Z=this.h;return Z.r=255-Z.r,Z.g=255-Z.g,Z.b=255-Z.b,this}lighten(Z){return Vq(this.h,2,Z),this}darken(Z){return Vq(this.h,2,-Z),this}saturate(Z){return Vq(this.h,1,Z),this}desaturate(Z){return Vq(this.h,1,-Z),this}rotate(Z){return LO(this.h,Z),this}};/*!
|
|
246
|
+
* Chart.js v4.6.2
|
|
247
247
|
* https://www.chartjs.org
|
|
248
248
|
* (c) 2026 Chart.js Contributors
|
|
249
249
|
* Released under the MIT License
|
|
250
|
-
*/function g4(){}var yR=(()=>{let Q=0;return()=>Q++})();function $1(Q){return Q===null||Q===void 0}function _1(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 i0(Q){return Q!==null&&Object.prototype.toString.call(Q)==="[object Object]"}function b1(Q){return(typeof Q==="number"||Q instanceof Number)&&isFinite(+Q)}function i5(Q,J){return b1(Q)?Q:J}function c0(Q,J){return typeof Q>"u"?J:Q}var gR=(Q,J)=>typeof Q==="string"&&Q.endsWith("%")?parseFloat(Q)/100*J:+Q;function T1(Q,J,X){if(Q&&typeof Q.call==="function")return Q.apply(X,J)}function K1(Q,J,X,q){let N,K,H;if(_1(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(i0(Q)){H=Object.keys(Q),K=H.length;for(N=0;N<K;N++)J.call(X,Q[H[N]],H[N])}}function NQ(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 I3(Q){if(_1(Q))return Q.map(I3);if(i0(Q)){let J=Object.create(null),X=Object.keys(Q),q=X.length,N=0;for(;N<q;++N)J[X[N]]=I3(Q[X[N]]);return J}return Q}function hR(Q){return["__proto__","prototype","constructor"].indexOf(Q)===-1}function EO(Q,J,X,q){if(!hR(Q))return;let N=J[Q],K=X[Q];if(i0(N)&&i0(K))G$(N,K,q);else J[Q]=I3(K)}function G$(Q,J,X){let q=_1(J)?J:[J],N=q.length;if(!i0(Q))return Q;X=X||{};let K=X.merger||EO,H;for(let M=0;M<N;++M){if(H=q[M],!i0(H))continue;let F=Object.keys(H);for(let w=0,z=F.length;w<z;++w)K(F[w],Q,H,X)}return Q}function q$(Q,J){return G$(Q,J,{merger:AO})}function AO(Q,J,X){if(!hR(Q))return;let q=J[Q],N=X[Q];if(i0(q)&&i0(N))q$(q,N);else if(!Object.prototype.hasOwnProperty.call(J,Q))J[Q]=I3(N)}var OR={"":(Q)=>Q,x:(Q)=>Q.x,y:(Q)=>Q.y};function jO(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 SO(Q){let J=jO(Q);return(X)=>{for(let q of J){if(q==="")break;X=X&&X[q]}return X}}function k9(Q,J){return(OR[J]||(OR[J]=SO(J)))(Q)}function A3(Q){return Q.charAt(0).toUpperCase()+Q.slice(1)}var Y$=(Q)=>typeof Q<"u",T8=(Q)=>typeof Q==="function",KU=(Q,J)=>{if(Q.size!==J.size)return!1;for(let X of Q)if(!J.has(X))return!1;return!0};function uR(Q){return Q.type==="mouseup"||Q.type==="click"||Q.type==="contextmenu"}var m1=Math.PI,n5=2*m1,DO=n5+m1,V3=Number.POSITIVE_INFINITY,vO=m1/180,s5=m1/2,D9=m1/4,ER=m1*2/3,P8=Math.log10,G4=Math.sign;function N$(Q,J,X){return Math.abs(Q-J)<X}function BU(Q){let J=Math.round(Q);Q=N$(Q,J,Q/1000)?J:Q;let X=Math.pow(10,Math.floor(P8(Q))),q=Q/X;return(q<=1?1:q<=2?2:q<=5?5:10)*X}function xR(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 bO(Q){return typeof Q==="symbol"||typeof Q==="object"&&Q!==null&&!((Symbol.toPrimitive in Q)||("toString"in Q)||("valueOf"in Q))}function U$(Q){return!bO(Q)&&!isNaN(parseFloat(Q))&&isFinite(Q)}function mR(Q,J){let X=Math.round(Q);return X-J<=Q&&X+J>=Q}function HU(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 L8(Q){return Q*(m1/180)}function j3(Q){return Q*(180/m1)}function MU(Q){if(!b1(Q))return;let J=1,X=0;while(Math.round(Q*J)/J!==Q)J*=10,X++;return X}function dR(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*m1)K+=n5;return{angle:K,distance:N}}function O3(Q,J){return Math.sqrt(Math.pow(J.x-Q.x,2)+Math.pow(J.y-Q.y,2))}function kO(Q,J){return(Q-J+DO)%n5-m1}function r5(Q){return(Q%n5+n5)%n5}function FU(Q,J,X,q){let N=r5(Q),K=r5(J),H=r5(X),M=r5(K-N),F=r5(H-N),w=r5(N-K),z=r5(N-H);return N===K||N===H||q&&K===H||M>F&&w<z}function o5(Q,J,X){return Math.max(J,Math.min(X,Q))}function pR(Q){return o5(Q,-32768,32767)}function C8(Q,J,X,q=0.000001){return Q>=Math.min(J,X)-q&&Q<=Math.max(J,X)+q}function S3(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 O2=(Q,J,X,q)=>S3(Q,X,q?(N)=>{let K=Q[N][J];return K<X||K===X&&Q[N+1][J]===X}:(N)=>Q[N][J]<X),cR=(Q,J,X)=>S3(Q,X,(q)=>Q[q][J]>=X);function lR(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 rR=["push","pop","shift","splice","unshift"];function sR(Q,J){if(Q._chartjs){Q._chartjs.listeners.push(J);return}Object.defineProperty(Q,"_chartjs",{configurable:!0,enumerable:!1,value:{listeners:[J]}}),rR.forEach((X)=>{let q="_onData"+A3(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((M)=>{if(typeof M[q]==="function")M[q](...K)}),H}})})}function WU(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;rR.forEach((K)=>{delete Q[K]}),delete Q._chartjs}function wU(Q){let J=new Set(Q);if(J.size===Q.length)return Q;return Array.from(J)}var RU=function(){if(typeof window>"u")return function(Q){return Q()};return window.requestAnimationFrame}();function zU(Q,J){let X=[],q=!1;return function(...N){if(X=N,!q)q=!0,RU.call(window,()=>{q=!1,Q.apply(J,X)})}}function nR(Q,J){let X;return function(...q){if(J)clearTimeout(X),X=setTimeout(Q,J,q);else Q.apply(this,q);return J}}var D3=(Q)=>Q==="start"?"left":Q==="end"?"right":"center",w5=(Q,J,X)=>Q==="start"?J:Q==="end"?X:(J+X)/2,oR=(Q,J,X,q)=>{return Q===(q?"left":"right")?X:Q==="center"?(J+X)/2:J};function iR(Q,J,X){let q=J.length,N=0,K=q;if(Q._sorted){let{iScale:H,vScale:M,_parsed:F}=Q,w=Q.dataset?Q.dataset.options?Q.dataset.options.spanGaps:null:null,z=H.axis,{min:T,max:L,minDefined:I,maxDefined:E}=H.getUserBounds();if(I){if(N=Math.min(O2(F,z,T).lo,X?q:O2(J,z,H.getPixelForValue(T)).lo),w){let O=F.slice(0,N+1).reverse().findIndex((V)=>!$1(V[M.axis]));N-=Math.max(0,O)}N=o5(N,0,q-1)}if(E){let O=Math.max(O2(F,H.axis,L,!0).hi+1,X?0:O2(J,z,H.getPixelForValue(L),!0).hi+1);if(w){let V=F.slice(O-1).findIndex((D)=>!$1(D[M.axis]));O+=Math.max(0,V)}K=o5(O,N,q)-N}else K=q-N}return{start:N,count:K}}function aR(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 L3=(Q)=>Q===0||Q===1,AR=(Q,J,X)=>-(Math.pow(2,10*(Q-=1))*Math.sin((Q-J)*n5/X)),jR=(Q,J,X)=>Math.pow(2,-10*Q)*Math.sin((Q-J)*n5/X)+1,J$={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*s5)+1,easeOutSine:(Q)=>Math.sin(Q*s5),easeInOutSine:(Q)=>-0.5*(Math.cos(m1*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)=>L3(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)=>L3(Q)?Q:AR(Q,0.075,0.3),easeOutElastic:(Q)=>L3(Q)?Q:jR(Q,0.075,0.3),easeInOutElastic(Q){return L3(Q)?Q:Q<0.5?0.5*AR(Q*2,0.1125,0.45):0.5+0.5*jR(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-J$.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?J$.easeInBounce(Q*2)*0.5:J$.easeOutBounce(Q*2-1)*0.5+0.5};function TU(Q){if(Q&&typeof Q==="object"){let J=Q.toString();return J==="[object CanvasPattern]"||J==="[object CanvasGradient]"}return!1}function PU(Q){return TU(Q)?Q:new Q$(Q)}function NU(Q){return TU(Q)?Q:new Q$(Q).saturate(0.5).darken(0.1).hexString()}var fO=["x","y","borderWidth","radius","tension"],yO=["color","borderColor","backgroundColor"];function gO(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:yO},numbers:{type:"number",properties:fO}}),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 hO(Q){Q.set("layout",{autoPadding:!0,padding:{top:0,right:0,bottom:0,left:0}})}var SR=new Map;function uO(Q,J){J=J||{};let X=Q+JSON.stringify(J),q=SR.get(X);if(!q)q=new Intl.NumberFormat(Q,J),SR.set(X,q);return q}function v3(Q,J,X){return uO(J,X).format(Q)}var tR={values(Q){return _1(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=xO(Q,X)}let H=P8(Math.abs(K)),M=isNaN(H)?1:Math.max(Math.min(-1*Math.floor(H),20),0),F={notation:N,minimumFractionDigits:M,maximumFractionDigits:M};return Object.assign(F,this.options.ticks.format),v3(Q,q,F)},logarithmic(Q,J,X){if(Q===0)return"0";let q=X[J].significand||Q/Math.pow(10,Math.floor(P8(Q)));if([1,2,3,5,10,15].includes(q)||J>0.8*X.length)return tR.numeric.call(this,Q,J,X);return""}};function xO(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 UQ={formatters:tR};function mO(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:UQ.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 A2=Object.create(null),b3=Object.create(null);function qQ(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 UU(Q,J,X){if(typeof J==="string")return G$(qQ(Q,J),X);return G$(qQ(Q,""),J)}class eR{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)=>NU(q.backgroundColor),this.hoverBorderColor=(X,q)=>NU(q.borderColor),this.hoverColor=(X,q)=>NU(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 UU(this,Q,J)}get(Q){return qQ(this,Q)}describe(Q,J){return UU(b3,Q,J)}override(Q,J){return UU(A2,Q,J)}route(Q,J,X,q){let N=qQ(this,Q),K=qQ(this,X),H="_"+J;Object.defineProperties(N,{[H]:{value:N[J],writable:!0},[J]:{enumerable:!0,get(){let M=this[H],F=K[q];if(i0(M))return Object.assign({},F,M);return c0(M,F)},set(M){this[H]=M}}})}apply(Q){Q.forEach((J)=>J(this))}}var k1=new eR({_scriptable:(Q)=>!Q.startsWith("on"),_indexable:(Q)=>Q!=="events",hover:{_fallback:"interaction"},interaction:{_scriptable:!1,_indexable:!1}},[gO,hO,mO]);function dO(Q){if(!Q||$1(Q.size)||$1(Q.family))return null;return(Q.style?Q.style+" ":"")+(Q.weight?Q.weight+" ":"")+Q.size+"px "+Q.family}function YQ(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 $z(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,M=X.length,F,w,z,T,L;for(F=0;F<M;F++)if(T=X[F],T!==void 0&&T!==null&&!_1(T))H=YQ(Q,N,K,H,T);else if(_1(T)){for(w=0,z=T.length;w<z;w++)if(L=T[w],L!==void 0&&L!==null&&!_1(L))H=YQ(Q,N,K,H,L)}Q.restore();let I=K.length/2;if(I>X.length){for(F=0;F<I;F++)delete N[K[F]];K.splice(0,I)}return H}function j2(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 LU(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 k3(Q,J,X,q){CU(Q,J,X,q,null)}function CU(Q,J,X,q,N){let K,H,M,F,w,z,T,L,I=J.pointStyle,E=J.rotation,O=J.radius,V=(E||0)*vO;if(I&&typeof I==="object"){if(K=I.toString(),K==="[object HTMLImageElement]"||K==="[object HTMLCanvasElement]"){Q.save(),Q.translate(X,q),Q.rotate(V),Q.drawImage(I,-I.width/2,-I.height/2,I.width,I.height),Q.restore();return}}if(isNaN(O)||O<=0)return;switch(Q.beginPath(),I){default:if(N)Q.ellipse(X,q,N/2,O,0,0,n5);else Q.arc(X,q,O,0,n5);Q.closePath();break;case"triangle":z=N?N/2:O,Q.moveTo(X+Math.sin(V)*z,q-Math.cos(V)*O),V+=ER,Q.lineTo(X+Math.sin(V)*z,q-Math.cos(V)*O),V+=ER,Q.lineTo(X+Math.sin(V)*z,q-Math.cos(V)*O),Q.closePath();break;case"rectRounded":w=O*0.516,F=O-w,H=Math.cos(V+D9)*F,T=Math.cos(V+D9)*(N?N/2-w:F),M=Math.sin(V+D9)*F,L=Math.sin(V+D9)*(N?N/2-w:F),Q.arc(X-T,q-M,w,V-m1,V-s5),Q.arc(X+L,q-H,w,V-s5,V),Q.arc(X+T,q+M,w,V,V+s5),Q.arc(X-L,q+H,w,V+s5,V+m1),Q.closePath();break;case"rect":if(!E){F=Math.SQRT1_2*O,z=N?N/2:F,Q.rect(X-z,q-F,2*z,2*F);break}V+=D9;case"rectRot":T=Math.cos(V)*(N?N/2:O),H=Math.cos(V)*O,M=Math.sin(V)*O,L=Math.sin(V)*(N?N/2:O),Q.moveTo(X-T,q-M),Q.lineTo(X+L,q-H),Q.lineTo(X+T,q+M),Q.lineTo(X-L,q+H),Q.closePath();break;case"crossRot":V+=D9;case"cross":T=Math.cos(V)*(N?N/2:O),H=Math.cos(V)*O,M=Math.sin(V)*O,L=Math.sin(V)*(N?N/2:O),Q.moveTo(X-T,q-M),Q.lineTo(X+T,q+M),Q.moveTo(X+L,q-H),Q.lineTo(X-L,q+H);break;case"star":T=Math.cos(V)*(N?N/2:O),H=Math.cos(V)*O,M=Math.sin(V)*O,L=Math.sin(V)*(N?N/2:O),Q.moveTo(X-T,q-M),Q.lineTo(X+T,q+M),Q.moveTo(X+L,q-H),Q.lineTo(X-L,q+H),V+=D9,T=Math.cos(V)*(N?N/2:O),H=Math.cos(V)*O,M=Math.sin(V)*O,L=Math.sin(V)*(N?N/2:O),Q.moveTo(X-T,q-M),Q.lineTo(X+T,q+M),Q.moveTo(X+L,q-H),Q.lineTo(X-L,q+H);break;case"line":H=N?N/2:Math.cos(V)*O,M=Math.sin(V)*O,Q.moveTo(X-H,q-M),Q.lineTo(X+H,q+M);break;case"dash":Q.moveTo(X,q),Q.lineTo(X+Math.cos(V)*(N?N/2:O),q+Math.sin(V)*O);break;case!1:Q.closePath();break}if(Q.fill(),J.borderWidth>0)Q.stroke()}function y4(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 KQ(Q,J){Q.save(),Q.beginPath(),Q.rect(J.left,J.top,J.right-J.left,J.bottom-J.top),Q.clip()}function BQ(Q){Q.restore()}function Zz(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 Qz(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 pO(Q,J){if(J.translation)Q.translate(J.translation[0],J.translation[1]);if(!$1(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 cO(Q,J,X,q,N){if(N.strikethrough||N.underline){let K=Q.measureText(q),H=J-K.actualBoundingBoxLeft,M=J+K.actualBoundingBoxRight,F=X-K.actualBoundingBoxAscent,w=X+K.actualBoundingBoxDescent,z=N.strikethrough?(F+w)/2:w;Q.strokeStyle=Q.fillStyle,Q.beginPath(),Q.lineWidth=N.decorationWidth||2,Q.moveTo(H,z),Q.lineTo(M,z),Q.stroke()}}function lO(Q,J){let X=Q.fillStyle;Q.fillStyle=J.color,Q.fillRect(J.left,J.top,J.width,J.height),Q.fillStyle=X}function S2(Q,J,X,q,N,K={}){let H=_1(J)?J:[J],M=K.strokeWidth>0&&K.strokeColor!=="",F,w;Q.save(),Q.font=N.string,pO(Q,K);for(F=0;F<H.length;++F){if(w=H[F],K.backdrop)lO(Q,K.backdrop);if(M){if(K.strokeColor)Q.strokeStyle=K.strokeColor;if(!$1(K.strokeWidth))Q.lineWidth=K.strokeWidth;Q.strokeText(w,X,q,K.maxWidth)}Q.fillText(w,X,q,K.maxWidth),cO(Q,X,q,w,K),q+=Number(N.lineHeight)}Q.restore()}function K$(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*m1,m1,!0),Q.lineTo(X,q+K-H.bottomLeft),Q.arc(X+H.bottomLeft,q+K-H.bottomLeft,H.bottomLeft,m1,s5,!0),Q.lineTo(X+N-H.bottomRight,q+K),Q.arc(X+N-H.bottomRight,q+K-H.bottomRight,H.bottomRight,s5,0,!0),Q.lineTo(X+N,q+H.topRight),Q.arc(X+N-H.topRight,q+H.topRight,H.topRight,0,-s5,!0),Q.lineTo(X+H.topLeft,q)}var rO=/^(normal|(\d+(?:\.\d+)?)(px|em|%)?)$/,sO=/^(normal|italic|initial|inherit|unset|(oblique( -?[0-9]?[0-9]deg)?))$/;function nO(Q,J){let X=(""+Q).match(rO);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 oO=(Q)=>+Q||0;function _U(Q,J){let X={},q=i0(J),N=q?Object.keys(J):J,K=i0(Q)?q?(H)=>c0(Q[H],Q[J[H]]):(H)=>Q[H]:()=>Q;for(let H of N)X[H]=oO(K(H));return X}function IU(Q){return _U(Q,{top:"y",right:"x",bottom:"y",left:"x"})}function D2(Q){return _U(Q,["topLeft","topRight","bottomLeft","bottomRight"])}function R5(Q){let J=IU(Q);return J.width=J.left+J.right,J.height=J.top+J.bottom,J}function a1(Q,J){Q=Q||{},J=J||k1.font;let X=c0(Q.size,J.size);if(typeof X==="string")X=parseInt(X,10);let q=c0(Q.style,J.style);if(q&&!(""+q).match(sO))console.warn('Invalid font style specified: "'+q+'"'),q=void 0;let N={family:c0(Q.family,J.family),lineHeight:nO(c0(Q.lineHeight,J.lineHeight),X),size:X,style:q,weight:c0(Q.weight,J.weight),string:""};return N.string=dO(N),N}function HQ(Q,J,X,q){let N=!0,K,H,M;for(K=0,H=Q.length;K<H;++K){if(M=Q[K],M===void 0)continue;if(J!==void 0&&typeof M==="function")M=M(J),N=!1;if(X!==void 0&&_1(M))M=M[X%M.length],N=!1;if(M!==void 0){if(q&&!N)q.cacheable=!1;return M}}}function Jz(Q,J,X){let{min:q,max:N}=Q,K=gR(J,(N-q)/2),H=(M,F)=>X&&M===0?0:M+F;return{min:H(q,-Math.abs(K)),max:H(N,K)}}function _8(Q,J){return Object.assign(Object.create(Q),J)}function f3(Q,J=[""],X,q,N=()=>Q[0]){let K=X||Q;if(typeof q>"u")q=qz("_fallback",Q);let H={[Symbol.toStringTag]:"Object",_cacheable:!0,_scopes:Q,_rootScopes:K,_fallback:q,_getTarget:N,override:(M)=>f3([M,...Q],J,K,q)};return new Proxy(H,{deleteProperty(M,F){return delete M[F],delete M._keys,delete Q[0][F],!0},get(M,F){return Gz(M,F,()=>JE(F,J,Q,M))},getOwnPropertyDescriptor(M,F){return Reflect.getOwnPropertyDescriptor(M._scopes[0],F)},getPrototypeOf(){return Reflect.getPrototypeOf(Q[0])},has(M,F){return vR(M).includes(F)},ownKeys(M){return vR(M)},set(M,F,w){let z=M._storage||(M._storage=N());return M[F]=z[F]=w,delete M._keys,!0}})}function b9(Q,J,X,q){let N={_cacheable:!1,_proxy:Q,_context:J,_subProxy:X,_stack:new Set,_descriptors:VU(Q,q),setContext:(K)=>b9(Q,K,X,q),override:(K)=>b9(Q.override(K),J,X,q)};return new Proxy(N,{deleteProperty(K,H){return delete K[H],delete Q[H],!0},get(K,H,M){return Gz(K,H,()=>aO(K,H,M))},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,M){return Q[H]=M,delete K[H],!0}})}function VU(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:T8(X)?X:()=>X,isIndexable:T8(q)?q:()=>q}}var iO=(Q,J)=>Q?Q+A3(J):J,OU=(Q,J)=>i0(J)&&Q!=="adapters"&&(Object.getPrototypeOf(J)===null||J.constructor===Object);function Gz(Q,J,X){if(Object.prototype.hasOwnProperty.call(Q,J)||J==="constructor")return Q[J];let q=X();return Q[J]=q,q}function aO(Q,J,X){let{_proxy:q,_context:N,_subProxy:K,_descriptors:H}=Q,M=q[J];if(T8(M)&&H.isScriptable(J))M=tO(J,M,Q,X);if(_1(M)&&M.length)M=eO(J,M,Q,H.isIndexable);if(OU(J,M))M=b9(M,N,K&&K[J],H);return M}function tO(Q,J,X,q){let{_proxy:N,_context:K,_subProxy:H,_stack:M}=X;if(M.has(Q))throw Error("Recursion detected: "+Array.from(M).join("->")+"->"+Q);M.add(Q);let F=J(K,H||q);if(M.delete(Q),OU(Q,F))F=EU(N._scopes,N,Q,F);return F}function eO(Q,J,X,q){let{_proxy:N,_context:K,_subProxy:H,_descriptors:M}=X;if(typeof K.index<"u"&&q(Q))return J[K.index%J.length];else if(i0(J[0])){let F=J,w=N._scopes.filter((z)=>z!==F);J=[];for(let z of F){let T=EU(w,N,Q,z);J.push(b9(T,K,H&&H[Q],M))}}return J}function Xz(Q,J,X){return T8(Q)?Q(J,X):Q}var $E=(Q,J)=>Q===!0?J:typeof Q==="string"?k9(J,Q):void 0;function ZE(Q,J,X,q,N){for(let K of J){let H=$E(X,K);if(H){Q.add(H);let M=Xz(H._fallback,X,N);if(typeof M<"u"&&M!==X&&M!==q)return M}else if(H===!1&&typeof q<"u"&&X!==q)return null}return!1}function EU(Q,J,X,q){let N=J._rootScopes,K=Xz(J._fallback,X,q),H=[...Q,...N],M=new Set;M.add(q);let F=DR(M,H,X,K||X,q);if(F===null)return!1;if(typeof K<"u"&&K!==X){if(F=DR(M,H,K,F,q),F===null)return!1}return f3(Array.from(M),[""],N,K,()=>QE(J,X,q))}function DR(Q,J,X,q,N){while(X)X=ZE(Q,J,X,q,N);return X}function QE(Q,J,X){let q=Q._getTarget();if(!(J in q))q[J]={};let N=q[J];if(_1(N)&&i0(X))return X;return N||{}}function JE(Q,J,X,q){let N;for(let K of J)if(N=qz(iO(K,Q),X),typeof N<"u")return OU(Q,N)?EU(X,q,Q,N):N}function qz(Q,J){for(let X of J){if(!X)continue;let q=X[Q];if(typeof q<"u")return q}}function vR(Q){let J=Q._keys;if(!J)J=Q._keys=GE(Q._scopes);return J}function GE(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 XE=Number.EPSILON||0.00000000000001,X$=(Q,J)=>J<Q.length&&!Q[J].skip&&Q[J],Yz=(Q)=>Q==="x"?"y":"x";function qE(Q,J,X,q){let N=Q.skip?J:Q,K=J,H=X.skip?J:X,M=O3(K,N),F=O3(H,K),w=M/(M+F),z=F/(M+F);w=isNaN(w)?0:w,z=isNaN(z)?0:z;let T=q*w,L=q*z;return{previous:{x:K.x-T*(H.x-N.x),y:K.y-T*(H.y-N.y)},next:{x:K.x+L*(H.x-N.x),y:K.y+L*(H.y-N.y)}}}function YE(Q,J,X){let q=Q.length,N,K,H,M,F,w=X$(Q,0);for(let z=0;z<q-1;++z){if(F=w,w=X$(Q,z+1),!F||!w)continue;if(N$(J[z],0,XE)){X[z]=X[z+1]=0;continue}if(N=X[z]/J[z],K=X[z+1]/J[z],M=Math.pow(N,2)+Math.pow(K,2),M<=9)continue;H=3/Math.sqrt(M),X[z]=N*H*J[z],X[z+1]=K*H*J[z]}}function NE(Q,J,X="x"){let q=Yz(X),N=Q.length,K,H,M,F=X$(Q,0);for(let w=0;w<N;++w){if(H=M,M=F,F=X$(Q,w+1),!M)continue;let z=M[X],T=M[q];if(H)K=(z-H[X])/3,M[`cp1${X}`]=z-K,M[`cp1${q}`]=T-K*J[w];if(F)K=(F[X]-z)/3,M[`cp2${X}`]=z+K,M[`cp2${q}`]=T+K*J[w]}}function UE(Q,J="x"){let X=Yz(J),q=Q.length,N=Array(q).fill(0),K=Array(q),H,M,F,w=X$(Q,0);for(H=0;H<q;++H){if(M=F,F=w,w=X$(Q,H+1),!F)continue;if(w){let z=w[J]-F[J];N[H]=z!==0?(w[X]-F[X])/z:0}K[H]=!M?N[H]:!w?N[H-1]:G4(N[H-1])!==G4(N[H])?0:(N[H-1]+N[H])/2}YE(Q,N,K),NE(Q,K,J)}function C3(Q,J,X){return Math.max(Math.min(Q,X),J)}function KE(Q,J){let X,q,N,K,H,M=y4(Q[0],J);for(X=0,q=Q.length;X<q;++X){if(H=K,K=M,M=X<q-1&&y4(Q[X+1],J),!K)continue;if(N=Q[X],H)N.cp1x=C3(N.cp1x,J.left,J.right),N.cp1y=C3(N.cp1y,J.top,J.bottom);if(M)N.cp2x=C3(N.cp2x,J.left,J.right),N.cp2y=C3(N.cp2y,J.top,J.bottom)}}function Nz(Q,J,X,q,N){let K,H,M,F;if(J.spanGaps)Q=Q.filter((w)=>!w.skip);if(J.cubicInterpolationMode==="monotone")UE(Q,N);else{let w=q?Q[Q.length-1]:Q[0];for(K=0,H=Q.length;K<H;++K)M=Q[K],F=qE(w,M,Q[Math.min(K+1,H-(q?0:1))%H],J.tension),M.cp1x=F.previous.x,M.cp1y=F.previous.y,M.cp2x=F.next.x,M.cp2y=F.next.y,w=M}if(J.capBezierPoints)KE(Q,X)}function y3(){return typeof window<"u"&&typeof document<"u"}function g3(Q){let J=Q.parentNode;if(J&&J.toString()==="[object ShadowRoot]")J=J.host;return J}function E3(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 h3=(Q)=>Q.ownerDocument.defaultView.getComputedStyle(Q,null);function BE(Q,J){return h3(Q).getPropertyValue(J)}var HE=["top","right","bottom","left"];function v9(Q,J,X){let q={};X=X?"-"+X:"";for(let N=0;N<4;N++){let K=HE[N];q[K]=parseFloat(Q[J+"-"+K+X])||0}return q.width=q.left+q.right,q.height=q.top+q.bottom,q}var ME=(Q,J,X)=>(Q>0||J>0)&&(!X||!X.shadowRoot);function FE(Q,J){let X=Q.touches,q=X&&X.length?X[0]:Q,{offsetX:N,offsetY:K}=q,H=!1,M,F;if(ME(N,K,Q.target))M=N,F=K;else{let w=J.getBoundingClientRect();M=q.clientX-w.left,F=q.clientY-w.top,H=!0}return{x:M,y:F,box:H}}function v2(Q,J){if("native"in Q)return Q;let{canvas:X,currentDevicePixelRatio:q}=J,N=h3(X),K=N.boxSizing==="border-box",H=v9(N,"padding"),M=v9(N,"border","width"),{x:F,y:w,box:z}=FE(Q,X),T=H.left+(z&&M.left),L=H.top+(z&&M.top),{width:I,height:E}=J;if(K)I-=H.width+M.width,E-=H.height+M.height;return{x:Math.round((F-T)/I*X.width/q),y:Math.round((w-L)/E*X.height/q)}}function WE(Q,J,X){let q,N;if(J===void 0||X===void 0){let K=Q&&g3(Q);if(!K)J=Q.clientWidth,X=Q.clientHeight;else{let H=K.getBoundingClientRect(),M=h3(K),F=v9(M,"border","width"),w=v9(M,"padding");J=H.width-w.width-F.width,X=H.height-w.height-F.height,q=E3(M.maxWidth,K,"clientWidth"),N=E3(M.maxHeight,K,"clientHeight")}}return{width:J,height:X,maxWidth:q||V3,maxHeight:N||V3}}var E2=(Q)=>Math.round(Q*10)/10;function Uz(Q,J,X,q){let N=h3(Q),K=v9(N,"margin"),H=E3(N.maxWidth,Q,"clientWidth")||V3,M=E3(N.maxHeight,Q,"clientHeight")||V3,F=WE(Q,J,X),{width:w,height:z}=F;if(N.boxSizing==="content-box"){let L=v9(N,"border","width"),I=v9(N,"padding");w-=I.width+L.width,z-=I.height+L.height}if(w=Math.max(0,w-K.width),z=Math.max(0,q?w/q:z-K.height),w=E2(Math.min(w,H,F.maxWidth)),z=E2(Math.min(z,M,F.maxHeight)),w&&!z)z=E2(w/2);if((J!==void 0||X!==void 0)&&q&&F.height&&z>F.height)z=F.height,w=E2(Math.floor(z*q));return{width:w,height:z}}function AU(Q,J,X){let q=J||1,N=E2(Q.height*q),K=E2(Q.width*q);Q.height=E2(Q.height),Q.width=E2(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`;let M=Math.floor(N),F=Math.floor(K);if(Q.currentDevicePixelRatio!==q||H.height!==M||H.width!==F)return Q.currentDevicePixelRatio=q,H.height=M,H.width=F,Q.ctx.setTransform(q,0,0,q,0,0),!0;return!1}var Kz=function(){let Q=!1;try{let J={get passive(){return Q=!0,!1}};if(y3())window.addEventListener("test",null,J),window.removeEventListener("test",null,J)}catch(J){}return Q}();function jU(Q,J){let X=BE(Q,J),q=X&&X.match(/^(\d+)(\.\d+)?px$/);return q?+q[1]:void 0}function V2(Q,J,X,q){return{x:Q.x+X*(J.x-Q.x),y:Q.y+X*(J.y-Q.y)}}function Bz(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 Hz(Q,J,X,q){let N={x:Q.cp2x,y:Q.cp2y},K={x:J.cp1x,y:J.cp1y},H=V2(Q,N,X),M=V2(N,K,X),F=V2(K,J,X),w=V2(H,M,X),z=V2(M,F,X);return V2(w,z,X)}var wE=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}}},RE=function(){return{x(Q){return Q},setWidth(Q){},textAlign(Q){return Q},xPlus(Q,J){return Q+J},leftForLtr(Q,J){return Q}}};function f9(Q,J,X){return Q?wE(J,X):RE()}function SU(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 DU(Q,J){if(J!==void 0)delete Q.prevTextDirection,Q.canvas.style.setProperty("direction",J[0],J[1])}function Mz(Q){if(Q==="angle")return{between:FU,compare:kO,normalize:r5};return{between:C8,compare:(J,X)=>J-X,normalize:(J)=>J}}function bR({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 zE(Q,J,X){let{property:q,start:N,end:K}=X,{between:H,normalize:M}=Mz(q),F=J.length,{start:w,end:z,loop:T}=Q,L,I;if(T){w+=F,z+=F;for(L=0,I=F;L<I;++L){if(!H(M(J[w%F][q]),N,K))break;w--,z--}w%=F,z%=F}if(z<w)z+=F;return{start:w,end:z,loop:T,style:Q.style}}function vU(Q,J,X){if(!X)return[Q];let{property:q,start:N,end:K}=X,H=J.length,{compare:M,between:F,normalize:w}=Mz(q),{start:z,end:T,loop:L,style:I}=zE(Q,J,X),E=[],O=!1,V=null,D,h,p,s=()=>F(N,p,D)&&M(N,p)!==0,n=()=>M(K,D)===0||F(K,p,D),$0=()=>O||s(),a=()=>!O||n();for(let o=z,q0=z;o<=T;++o){if(h=J[o%H],h.skip)continue;if(D=w(h[q]),D===p)continue;if(O=F(D,N,K),V===null&&$0())V=M(D,N)===0?o:q0;if(V!==null&&a())E.push(bR({start:V,end:o,loop:L,count:H,style:I})),V=null;q0=o,p=D}if(V!==null)E.push(bR({start:V,end:T,loop:L,count:H,style:I}));return E}function bU(Q,J){let X=[],q=Q.segments;for(let N=0;N<q.length;N++){let K=vU(q[N],Q.points,J);if(K.length)X.push(...K)}return X}function TE(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 PE(Q,J,X,q){let N=Q.length,K=[],H=J,M=Q[J],F;for(F=J+1;F<=X;++F){let w=Q[F%N];if(w.skip||w.stop){if(!M.skip)q=!1,K.push({start:J%N,end:(F-1)%N,loop:q}),J=H=w.stop?F:null}else if(H=F,M.skip)J=F;M=w}if(H!==null)K.push({start:J%N,end:H%N,loop:q});return K}function Fz(Q,J){let X=Q.points,q=Q.options.spanGaps,N=X.length;if(!N)return[];let K=!!Q._loop,{start:H,end:M}=TE(X,N,K,q);if(q===!0)return kR(Q,[{start:H,end:M,loop:K}],X,J);let F=M<H?M+N:M,w=!!Q._fullLoop&&H===0&&M===N-1;return kR(Q,PE(X,H,F,w),X,J)}function kR(Q,J,X,q){if(!q||!q.setContext||!X)return J;return LE(Q,J,X,q)}function LE(Q,J,X,q){let N=Q._chart.getContext(),K=fR(Q.options),{_datasetIndex:H,options:{spanGaps:M}}=Q,F=X.length,w=[],z=K,T=J[0].start,L=T;function I(E,O,V,D){let h=M?-1:1;if(E===O)return;E+=F;while(X[E%F].skip)E-=h;while(X[O%F].skip)O+=h;if(E%F!==O%F)w.push({start:E%F,end:O%F,loop:V,style:D}),z=D,T=O%F}for(let E of J){T=M?T:E.start;let O=X[T%F],V;for(L=T+1;L<=E.end;L++){let D=X[L%F];if(V=fR(q.setContext(_8(N,{type:"segment",p0:O,p1:D,p0DataIndex:(L-1)%F,p1DataIndex:L%F,datasetIndex:H}))),CE(V,z))I(T,L-1,E.loop,z);O=D,z=V}if(T<L-1)I(T,L-1,E.loop,z)}return w}function fR(Q){return{backgroundColor:Q.backgroundColor,borderCapStyle:Q.borderCapStyle,borderDash:Q.borderDash,borderDashOffset:Q.borderDashOffset,borderJoinStyle:Q.borderJoinStyle,borderWidth:Q.borderWidth,borderColor:Q.borderColor}}function CE(Q,J){if(!J)return!1;let X=[],q=function(N,K){if(!TU(K))return K;if(!X.includes(K))X.push(K);return X.indexOf(K)};return JSON.stringify(Q,q)!==JSON.stringify(J,q)}function _3(Q,J,X){return Q.options.clip?Q[X]:J[X]}function _E(Q,J){let{xScale:X,yScale:q}=Q;if(X&&q)return{left:_3(X,J,"left"),right:_3(X,J,"right"),top:_3(q,J,"top"),bottom:_3(q,J,"bottom")};return J}function kU(Q,J){let X=J._clip;if(X.disabled)return!1;let q=_E(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
|
-
* Chart.js v4.6.
|
|
250
|
+
*/function WU(J){if(J&&typeof J==="object"){let Z=J.toString();return Z==="[object CanvasPattern]"||Z==="[object CanvasGradient]"}return!1}function FU(J){return WU(J)?J:new BU(J)}function HU(J){return WU(J)?J:new BU(J).saturate(0.5).darken(0.1).hexString()}function u4(){}var gR=(()=>{let J=0;return()=>J++})();function e0(J){return J===null||J===void 0}function _1(J){if(Array.isArray&&Array.isArray(J))return!0;let Z=Object.prototype.toString.call(J);if(Z.slice(0,7)==="[object"&&Z.slice(-6)==="Array]")return!0;return!1}function o0(J){return J!==null&&Object.prototype.toString.call(J)==="[object Object]"}function b1(J){return(typeof J==="number"||J instanceof Number)&&isFinite(+J)}function t6(J,Z){return b1(J)?J:Z}function d0(J,Z){return typeof J>"u"?Z:J}var hR=(J,Z)=>typeof J==="string"&&J.endsWith("%")?parseFloat(J)/100*Z:+J;function z1(J,Z,q){if(J&&typeof J.call==="function")return J.apply(q,Z)}function U1(J,Z,q,X){let Y,K,H;if(_1(J))if(K=J.length,X)for(Y=K-1;Y>=0;Y--)Z.call(q,J[Y],Y);else for(Y=0;Y<K;Y++)Z.call(q,J[Y],Y);else if(o0(J)){H=Object.keys(J),K=H.length;for(Y=0;Y<K;Y++)Z.call(q,J[H[Y]],H[Y])}}function KJ(J,Z){let q,X,Y,K;if(!J||!Z||J.length!==Z.length)return!1;for(q=0,X=J.length;q<X;++q)if(Y=J[q],K=Z[q],Y.datasetIndex!==K.datasetIndex||Y.index!==K.index)return!1;return!0}function Sq(J){if(_1(J))return J.map(Sq);if(o0(J)){let Z=Object.create(null),q=Object.keys(J),X=q.length,Y=0;for(;Y<X;++Y)Z[q[Y]]=Sq(J[q[Y]]);return Z}return J}function xR(J){return["__proto__","prototype","constructor"].indexOf(J)===-1}function xO(J,Z,q,X){if(!xR(J))return;let Y=Z[J],K=q[J];if(o0(Y)&&o0(K))qQ(Y,K,X);else Z[J]=Sq(K)}function qQ(J,Z,q){let X=_1(Z)?Z:[Z],Y=X.length;if(!o0(J))return J;q=q||{};let K=q.merger||xO,H;for(let M=0;M<Y;++M){if(H=X[M],!o0(H))continue;let W=Object.keys(H);for(let w=0,z=W.length;w<z;++w)K(W[w],J,H,q)}return J}function NQ(J,Z){return qQ(J,Z,{merger:uO})}function uO(J,Z,q){if(!xR(J))return;let X=Z[J],Y=q[J];if(o0(X)&&o0(Y))NQ(X,Y);else if(!Object.prototype.hasOwnProperty.call(Z,J))Z[J]=Sq(Y)}var NJ=Object.create(null);NJ[""]=(J)=>J;NJ.x=(J)=>J.x;NJ.y=(J)=>J.y;function mO(J){let Z=J.split("."),q=[],X="";for(let Y of Z)if(X+=Y,X.endsWith("\\"))X=X.slice(0,-1)+".";else q.push(X),X="";return q}function dO(J){let Z=mO(J);return(q)=>{for(let X of Z){if(X==="")break;q=q&&q[X]}return q}}function y7(J,Z){return(NJ[Z]||(NJ[Z]=dO(Z)))(J)}function bq(J){return J.charAt(0).toUpperCase()+J.slice(1)}var YQ=(J)=>typeof J<"u",I$=(J)=>typeof J==="function",wU=(J,Z)=>{if(J.size!==Z.size)return!1;for(let q of J)if(!Z.has(q))return!1;return!0};function uR(J){return J.type==="mouseup"||J.type==="click"||J.type==="contextmenu"}var m1=Math.PI,i6=2*m1,pO=i6+m1,Dq=Number.POSITIVE_INFINITY,cO=m1/180,o6=m1/2,k7=m1/4,ER=m1*2/3,V$=Math.log10,X4=Math.sign;function UQ(J,Z,q){return Math.abs(J-Z)<q}function RU(J){let Z=Math.round(J);J=UQ(J,Z,J/1000)?Z:J;let q=Math.pow(10,Math.floor(V$(J))),X=J/q;return(X<=1?1:X<=2?2:X<=5?5:10)*q}function mR(J){let Z=[],q=Math.sqrt(J),X;for(X=1;X<q;X++)if(J%X===0)Z.push(X),Z.push(J/X);if(q===(q|0))Z.push(q);return Z.sort((Y,K)=>Y-K).pop(),Z}function lO(J){return typeof J==="symbol"||typeof J==="object"&&J!==null&&!((Symbol.toPrimitive in J)||("toString"in J)||("valueOf"in J))}function KQ(J){return!lO(J)&&!isNaN(parseFloat(J))&&isFinite(J)}function dR(J,Z){let q=Math.round(J);return q-Z<=J&&q+Z>=J}function zU(J,Z,q){let X,Y,K;for(X=0,Y=J.length;X<Y;X++)if(K=J[X][q],!isNaN(K))Z.min=Math.min(Z.min,K),Z.max=Math.max(Z.max,K)}function O$(J){return J*(m1/180)}function yq(J){return J*(180/m1)}function fq(J){if(!b1(J))return;let Z=1,q=0;while(Math.round(J*Z)/Z!==J)Z*=10,q++;return q}function pR(J,Z){let q=Z.x-J.x,X=Z.y-J.y,Y=Math.sqrt(q*q+X*X),K=Math.atan2(X,q);if(K<-0.5*m1)K+=i6;return{angle:K,distance:Y}}function vq(J,Z){return Math.sqrt(Math.pow(Z.x-J.x,2)+Math.pow(Z.y-J.y,2))}function rO(J,Z){return(J-Z+pO)%i6-m1}function n6(J){return(J%i6+i6)%i6}function TU(J,Z,q,X){let Y=n6(J),K=n6(Z),H=n6(q),M=n6(K-Y),W=n6(H-Y),w=n6(Y-K),z=n6(Y-H);return Y===K||Y===H||X&&K===H||M>W&&w<z}function a6(J,Z,q){return Math.max(Z,Math.min(q,J))}function cR(J){return a6(J,-32768,32767)}function E$(J,Z,q,X=0.000001){return J>=Math.min(Z,q)-X&&J<=Math.max(Z,q)+X}function sO(J){if(!J||e0(J.size)||e0(J.family))return null;return(J.style?J.style+" ":"")+(J.weight?J.weight+" ":"")+J.size+"px "+J.family}function YJ(J,Z,q,X,Y){let K=Z[Y];if(!K)K=Z[Y]=J.measureText(Y).width,q.push(Y);if(K>X)X=K;return X}function lR(J,Z,q,X){X=X||{};let Y=X.data=X.data||{},K=X.garbageCollect=X.garbageCollect||[];if(X.font!==Z)Y=X.data={},K=X.garbageCollect=[],X.font=Z;J.save(),J.font=Z;let H=0,M=q.length,W,w,z,T,P;for(W=0;W<M;W++)if(T=q[W],T!==void 0&&T!==null&&!_1(T))H=YJ(J,Y,K,H,T);else if(_1(T)){for(w=0,z=T.length;w<z;w++)if(P=T[w],P!==void 0&&P!==null&&!_1(P))H=YJ(J,Y,K,H,P)}J.restore();let I=K.length/2;if(I>q.length){for(W=0;W<I;W++)delete Y[K[W]];K.splice(0,I)}return H}function D8(J,Z,q){let X=J.currentDevicePixelRatio,Y=q!==0?Math.max(q/2,0.5):0;return Math.round((Z-Y)*X)/X+Y}function LU(J,Z){if(!Z&&!J)return;Z=Z||J.getContext("2d"),Z.save(),Z.resetTransform(),Z.clearRect(0,0,J.width,J.height),Z.restore()}function gq(J,Z,q,X){PU(J,Z,q,X,null)}function PU(J,Z,q,X,Y){let K,H,M,W,w,z,T,P,I=Z.pointStyle,E=Z.rotation,O=Z.radius,V=(E||0)*cO;if(I&&typeof I==="object"){if(K=I.toString(),K==="[object HTMLImageElement]"||K==="[object HTMLCanvasElement]"){J.save(),J.translate(q,X),J.rotate(V),J.drawImage(I,-I.width/2,-I.height/2,I.width,I.height),J.restore();return}}if(isNaN(O)||O<=0)return;switch(J.beginPath(),I){default:if(Y)J.ellipse(q,X,Y/2,O,0,0,i6);else J.arc(q,X,O,0,i6);J.closePath();break;case"triangle":z=Y?Y/2:O,J.moveTo(q+Math.sin(V)*z,X-Math.cos(V)*O),V+=ER,J.lineTo(q+Math.sin(V)*z,X-Math.cos(V)*O),V+=ER,J.lineTo(q+Math.sin(V)*z,X-Math.cos(V)*O),J.closePath();break;case"rectRounded":w=O*0.516,W=O-w,H=Math.cos(V+k7)*W,T=Math.cos(V+k7)*(Y?Y/2-w:W),M=Math.sin(V+k7)*W,P=Math.sin(V+k7)*(Y?Y/2-w:W),J.arc(q-T,X-M,w,V-m1,V-o6),J.arc(q+P,X-H,w,V-o6,V),J.arc(q+T,X+M,w,V,V+o6),J.arc(q-P,X+H,w,V+o6,V+m1),J.closePath();break;case"rect":if(!E){W=Math.SQRT1_2*O,z=Y?Y/2:W,J.rect(q-z,X-W,2*z,2*W);break}V+=k7;case"rectRot":T=Math.cos(V)*(Y?Y/2:O),H=Math.cos(V)*O,M=Math.sin(V)*O,P=Math.sin(V)*(Y?Y/2:O),J.moveTo(q-T,X-M),J.lineTo(q+P,X-H),J.lineTo(q+T,X+M),J.lineTo(q-P,X+H),J.closePath();break;case"crossRot":V+=k7;case"cross":T=Math.cos(V)*(Y?Y/2:O),H=Math.cos(V)*O,M=Math.sin(V)*O,P=Math.sin(V)*(Y?Y/2:O),J.moveTo(q-T,X-M),J.lineTo(q+T,X+M),J.moveTo(q+P,X-H),J.lineTo(q-P,X+H);break;case"star":T=Math.cos(V)*(Y?Y/2:O),H=Math.cos(V)*O,M=Math.sin(V)*O,P=Math.sin(V)*(Y?Y/2:O),J.moveTo(q-T,X-M),J.lineTo(q+T,X+M),J.moveTo(q+P,X-H),J.lineTo(q-P,X+H),V+=k7,T=Math.cos(V)*(Y?Y/2:O),H=Math.cos(V)*O,M=Math.sin(V)*O,P=Math.sin(V)*(Y?Y/2:O),J.moveTo(q-T,X-M),J.lineTo(q+T,X+M),J.moveTo(q+P,X-H),J.lineTo(q-P,X+H);break;case"line":H=Y?Y/2:Math.cos(V)*O,M=Math.sin(V)*O,J.moveTo(q-H,X-M),J.lineTo(q+H,X+M);break;case"dash":J.moveTo(q,X),J.lineTo(q+Math.cos(V)*(Y?Y/2:O),X+Math.sin(V)*O);break;case!1:J.closePath();break}if(J.fill(),Z.borderWidth>0)J.stroke()}function x4(J,Z,q){return q=q||0.5,!Z||J&&J.x>Z.left-q&&J.x<Z.right+q&&J.y>Z.top-q&&J.y<Z.bottom+q}function BJ(J,Z){J.save(),J.beginPath(),J.rect(Z.left,Z.top,Z.right-Z.left,Z.bottom-Z.top),J.clip()}function HJ(J){J.restore()}function rR(J,Z,q,X,Y){if(!Z)return J.lineTo(q.x,q.y);if(Y==="middle"){let K=(Z.x+q.x)/2;J.lineTo(K,Z.y),J.lineTo(K,q.y)}else if(Y==="after"!==!!X)J.lineTo(Z.x,q.y);else J.lineTo(q.x,Z.y);J.lineTo(q.x,q.y)}function sR(J,Z,q,X){if(!Z)return J.lineTo(q.x,q.y);J.bezierCurveTo(X?Z.cp1x:Z.cp2x,X?Z.cp1y:Z.cp2y,X?q.cp2x:q.cp1x,X?q.cp2y:q.cp1y,q.x,q.y)}function nO(J,Z){if(Z.translation)J.translate(Z.translation[0],Z.translation[1]);if(!e0(Z.rotation))J.rotate(Z.rotation);if(Z.color)J.fillStyle=Z.color;if(Z.textAlign)J.textAlign=Z.textAlign;if(Z.textBaseline)J.textBaseline=Z.textBaseline}function oO(J,Z,q,X,Y){if(Y.strikethrough||Y.underline){let K=J.measureText(X),H=Z-K.actualBoundingBoxLeft,M=Z+K.actualBoundingBoxRight,W=q-K.actualBoundingBoxAscent,w=q+K.actualBoundingBoxDescent,z=Y.strikethrough?(W+w)/2:w;J.strokeStyle=J.fillStyle,J.beginPath(),J.lineWidth=Y.decorationWidth||2,J.moveTo(H,z),J.lineTo(M,z),J.stroke()}}function iO(J,Z){let q=J.fillStyle;J.fillStyle=Z.color,J.fillRect(Z.left,Z.top,Z.width,Z.height),J.fillStyle=q}function v8(J,Z,q,X,Y,K={}){let H=_1(Z)?Z:[Z],M=K.strokeWidth>0&&K.strokeColor!=="",W,w;J.save(),J.font=Y.string,nO(J,K);for(W=0;W<H.length;++W){if(w=H[W],K.backdrop)iO(J,K.backdrop);if(M){if(K.strokeColor)J.strokeStyle=K.strokeColor;if(!e0(K.strokeWidth))J.lineWidth=K.strokeWidth;J.strokeText(w,q,X,K.maxWidth)}J.fillText(w,q,X,K.maxWidth),oO(J,q,X,w,K),X+=Number(Y.lineHeight)}J.restore()}function BQ(J,Z){let{x:q,y:X,w:Y,h:K,radius:H}=Z;J.arc(q+H.topLeft,X+H.topLeft,H.topLeft,1.5*m1,m1,!0),J.lineTo(q,X+K-H.bottomLeft),J.arc(q+H.bottomLeft,X+K-H.bottomLeft,H.bottomLeft,m1,o6,!0),J.lineTo(q+Y-H.bottomRight,X+K),J.arc(q+Y-H.bottomRight,X+K-H.bottomRight,H.bottomRight,o6,0,!0),J.lineTo(q+Y,X+H.topRight),J.arc(q+Y-H.topRight,X+H.topRight,H.topRight,0,-o6,!0),J.lineTo(q+H.topLeft,X)}function hq(J,Z,q){q=q||((H)=>J[H]<Z);let X=J.length-1,Y=0,K;while(X-Y>1)if(K=Y+X>>1,q(K))Y=K;else X=K;return{lo:Y,hi:X}}var S8=(J,Z,q,X)=>hq(J,q,X?(Y)=>{let K=J[Y][Z];return K<q||K===q&&J[Y+1][Z]===q}:(Y)=>J[Y][Z]<q),nR=(J,Z,q)=>hq(J,q,(X)=>J[X][Z]>=q);function oR(J,Z,q){let X=0,Y=J.length;while(X<Y&&J[X]<Z)X++;while(Y>X&&J[Y-1]>q)Y--;return X>0||Y<J.length?J.slice(X,Y):J}var iR=["push","pop","shift","splice","unshift"];function aR(J,Z){if(J._chartjs){J._chartjs.listeners.push(Z);return}Object.defineProperty(J,"_chartjs",{configurable:!0,enumerable:!1,value:{listeners:[Z]}}),iR.forEach((q)=>{let X="_onData"+bq(q),Y=J[q];Object.defineProperty(J,q,{configurable:!0,enumerable:!1,value(...K){let H=Y.apply(this,K);return J._chartjs.listeners.forEach((M)=>{if(typeof M[X]==="function")M[X](...K)}),H}})})}function CU(J,Z){let q=J._chartjs;if(!q)return;let X=q.listeners,Y=X.indexOf(Z);if(Y!==-1)X.splice(Y,1);if(X.length>0)return;iR.forEach((K)=>{delete J[K]}),delete J._chartjs}function _U(J){let Z=new Set(J);if(Z.size===J.length)return J;return Array.from(Z)}function xq(J,Z=[""],q,X,Y=()=>J[0]){let K=q||J;if(typeof X>"u")X=$z("_fallback",J);let H={[Symbol.toStringTag]:"Object",_cacheable:!0,_scopes:J,_rootScopes:K,_fallback:X,_getTarget:Y,override:(M)=>xq([M,...J],Z,K,X)};return new Proxy(H,{deleteProperty(M,W){return delete M[W],delete M._keys,delete J[0][W],!0},get(M,W){return tR(M,W,()=>GE(W,Z,J,M))},getOwnPropertyDescriptor(M,W){return Reflect.getOwnPropertyDescriptor(M._scopes[0],W)},getPrototypeOf(){return Reflect.getPrototypeOf(J[0])},has(M,W){return jR(M).includes(W)},ownKeys(M){return jR(M)},set(M,W,w){let z=M._storage||(M._storage=Y());return M[W]=z[W]=w,delete M._keys,!0}})}function b7(J,Z,q,X){let Y={_cacheable:!1,_proxy:J,_context:Z,_subProxy:q,_stack:new Set,_descriptors:IU(J,X),setContext:(K)=>b7(J,K,q,X),override:(K)=>b7(J.override(K),Z,q,X)};return new Proxy(Y,{deleteProperty(K,H){return delete K[H],delete J[H],!0},get(K,H,M){return tR(K,H,()=>tO(K,H,M))},getOwnPropertyDescriptor(K,H){return K._descriptors.allKeys?Reflect.has(J,H)?{enumerable:!0,configurable:!0}:void 0:Reflect.getOwnPropertyDescriptor(J,H)},getPrototypeOf(){return Reflect.getPrototypeOf(J)},has(K,H){return Reflect.has(J,H)},ownKeys(){return Reflect.ownKeys(J)},set(K,H,M){return J[H]=M,delete K[H],!0}})}function IU(J,Z={scriptable:!0,indexable:!0}){let{_scriptable:q=Z.scriptable,_indexable:X=Z.indexable,_allKeys:Y=Z.allKeys}=J;return{allKeys:Y,scriptable:q,indexable:X,isScriptable:I$(q)?q:()=>q,isIndexable:I$(X)?X:()=>X}}var aO=(J,Z)=>J?J+bq(Z):Z,VU=(J,Z)=>o0(Z)&&J!=="adapters"&&(Object.getPrototypeOf(Z)===null||Z.constructor===Object);function tR(J,Z,q){if(Object.prototype.hasOwnProperty.call(J,Z)||Z==="constructor")return J[Z];let X=q();return J[Z]=X,X}function tO(J,Z,q){let{_proxy:X,_context:Y,_subProxy:K,_descriptors:H}=J,M=X[Z];if(I$(M)&&H.isScriptable(Z))M=eO(Z,M,J,q);if(_1(M)&&M.length)M=$E(Z,M,J,H.isIndexable);if(VU(Z,M))M=b7(M,Y,K&&K[Z],H);return M}function eO(J,Z,q,X){let{_proxy:Y,_context:K,_subProxy:H,_stack:M}=q;if(M.has(J))throw Error("Recursion detected: "+Array.from(M).join("->")+"->"+J);M.add(J);let W=Z(K,H||X);if(M.delete(J),VU(J,W))W=OU(Y._scopes,Y,J,W);return W}function $E(J,Z,q,X){let{_proxy:Y,_context:K,_subProxy:H,_descriptors:M}=q;if(typeof K.index<"u"&&X(J))return Z[K.index%Z.length];else if(o0(Z[0])){let W=Z,w=Y._scopes.filter((z)=>z!==W);Z=[];for(let z of W){let T=OU(w,Y,J,z);Z.push(b7(T,K,H&&H[J],M))}}return Z}function eR(J,Z,q){return I$(J)?J(Z,q):J}var QE=(J,Z)=>J===!0?Z:typeof J==="string"?y7(Z,J):void 0;function JE(J,Z,q,X,Y){for(let K of Z){let H=QE(q,K);if(H){J.add(H);let M=eR(H._fallback,q,Y);if(typeof M<"u"&&M!==q&&M!==X)return M}else if(H===!1&&typeof X<"u"&&q!==X)return null}return!1}function OU(J,Z,q,X){let Y=Z._rootScopes,K=eR(Z._fallback,q,X),H=[...J,...Y],M=new Set;M.add(X);let W=AR(M,H,q,K||q,X);if(W===null)return!1;if(typeof K<"u"&&K!==q){if(W=AR(M,H,K,W,X),W===null)return!1}return xq(Array.from(M),[""],Y,K,()=>ZE(Z,q,X))}function AR(J,Z,q,X,Y){while(q)q=JE(J,Z,q,X,Y);return q}function ZE(J,Z,q){let X=J._getTarget();if(!(Z in X))X[Z]={};let Y=X[Z];if(_1(Y)&&o0(q))return q;return Y||{}}function GE(J,Z,q,X){let Y;for(let K of Z)if(Y=$z(aO(K,J),q),typeof Y<"u")return VU(J,Y)?OU(q,X,J,Y):Y}function $z(J,Z){for(let q of Z){if(!q)continue;let X=q[J];if(typeof X<"u")return X}}function jR(J){let Z=J._keys;if(!Z)Z=J._keys=qE(J._scopes);return Z}function qE(J){let Z=new Set;for(let q of J)for(let X of Object.keys(q).filter((Y)=>!Y.startsWith("_")))Z.add(X);return Array.from(Z)}var XE=Number.EPSILON||0.00000000000001,XQ=(J,Z)=>Z<J.length&&!J[Z].skip&&J[Z],Qz=(J)=>J==="x"?"y":"x";function NE(J,Z,q,X){let Y=J.skip?Z:J,K=Z,H=q.skip?Z:q,M=vq(K,Y),W=vq(H,K),w=M/(M+W),z=W/(M+W);w=isNaN(w)?0:w,z=isNaN(z)?0:z;let T=X*w,P=X*z;return{previous:{x:K.x-T*(H.x-Y.x),y:K.y-T*(H.y-Y.y)},next:{x:K.x+P*(H.x-Y.x),y:K.y+P*(H.y-Y.y)}}}function YE(J,Z,q){let X=J.length,Y,K,H,M,W,w=XQ(J,0);for(let z=0;z<X-1;++z){if(W=w,w=XQ(J,z+1),!W||!w)continue;if(UQ(Z[z],0,XE)){q[z]=q[z+1]=0;continue}if(Y=q[z]/Z[z],K=q[z+1]/Z[z],M=Math.pow(Y,2)+Math.pow(K,2),M<=9)continue;H=3/Math.sqrt(M),q[z]=Y*H*Z[z],q[z+1]=K*H*Z[z]}}function UE(J,Z,q="x"){let X=Qz(q),Y=J.length,K,H,M,W=XQ(J,0);for(let w=0;w<Y;++w){if(H=M,M=W,W=XQ(J,w+1),!M)continue;let z=M[q],T=M[X];if(H)K=(z-H[q])/3,M[`cp1${q}`]=z-K,M[`cp1${X}`]=T-K*Z[w];if(W)K=(W[q]-z)/3,M[`cp2${q}`]=z+K,M[`cp2${X}`]=T+K*Z[w]}}function KE(J,Z="x"){let q=Qz(Z),X=J.length,Y=Array(X).fill(0),K=Array(X),H,M,W,w=XQ(J,0);for(H=0;H<X;++H){if(M=W,W=w,w=XQ(J,H+1),!W)continue;if(w){let z=w[Z]-W[Z];Y[H]=z!==0?(w[q]-W[q])/z:0}K[H]=!M?Y[H]:!w?Y[H-1]:X4(Y[H-1])!==X4(Y[H])?0:(Y[H-1]+Y[H])/2}YE(J,Y,K),UE(J,K,Z)}function Eq(J,Z,q){return Math.max(Math.min(J,q),Z)}function BE(J,Z){let q,X,Y,K,H,M=x4(J[0],Z);for(q=0,X=J.length;q<X;++q){if(H=K,K=M,M=q<X-1&&x4(J[q+1],Z),!K)continue;if(Y=J[q],H)Y.cp1x=Eq(Y.cp1x,Z.left,Z.right),Y.cp1y=Eq(Y.cp1y,Z.top,Z.bottom);if(M)Y.cp2x=Eq(Y.cp2x,Z.left,Z.right),Y.cp2y=Eq(Y.cp2y,Z.top,Z.bottom)}}function Jz(J,Z,q,X,Y){let K,H,M,W;if(Z.spanGaps)J=J.filter((w)=>!w.skip);if(Z.cubicInterpolationMode==="monotone")KE(J,Y);else{let w=X?J[J.length-1]:J[0];for(K=0,H=J.length;K<H;++K)M=J[K],W=NE(w,M,J[Math.min(K+1,H-(X?0:1))%H],Z.tension),M.cp1x=W.previous.x,M.cp1y=W.previous.y,M.cp2x=W.next.x,M.cp2y=W.next.y,w=M}if(Z.capBezierPoints)BE(J,q)}function uq(){return typeof window<"u"&&typeof document<"u"}function MJ(J){let Z=J.parentNode;if(Z&&Z.toString()==="[object ShadowRoot]")Z=Z.host;return Z}function kq(J,Z,q){let X;if(typeof J==="string"){if(X=parseInt(J,10),J.indexOf("%")!==-1)X=X/100*Z.parentNode[q]}else X=J;return X}var WJ=(J)=>J.ownerDocument.defaultView.getComputedStyle(J,null);function HE(J,Z){return WJ(J).getPropertyValue(Z)}var ME=["top","right","bottom","left"];function _$(J,Z,q){let X={};q=q?"-"+q:"";for(let Y=0;Y<4;Y++){let K=ME[Y];X[K]=parseFloat(J[Z+"-"+K+q])||0}return X.width=X.left+X.right,X.height=X.top+X.bottom,X}var WE=(J,Z,q)=>(J>0||Z>0)&&(!q||!q.shadowRoot);function FE(J,Z){let q=J.touches,X=q&&q.length?q[0]:J,{offsetX:Y,offsetY:K}=X,H=!1,M,W;if(WE(Y,K,J.target))M=Y,W=K;else{let w=Z.getBoundingClientRect();M=X.clientX-w.left,W=X.clientY-w.top,H=!0}return{x:M,y:W,box:H}}function k8(J,Z){if("native"in J)return J;let{canvas:q,currentDevicePixelRatio:X}=Z,Y=WJ(q),K=Y.boxSizing==="border-box",H=_$(Y,"padding"),M=_$(Y,"border","width"),{x:W,y:w,box:z}=FE(J,q),T=H.left+(z&&M.left),P=H.top+(z&&M.top),{width:I,height:E}=Z;if(K)I-=H.width+M.width,E-=H.height+M.height;return{x:Math.round((W-T)/I*q.width/X),y:Math.round((w-P)/E*q.height/X)}}function wE(J,Z,q){let X,Y;if(Z===void 0||q===void 0){let K=J&&MJ(J);if(!K)Z=J.clientWidth,q=J.clientHeight;else{let H=K.getBoundingClientRect(),M=WJ(K),W=_$(M,"border","width"),w=_$(M,"padding");Z=H.width-w.width-W.width,q=H.height-w.height-W.height,X=kq(M.maxWidth,K,"clientWidth"),Y=kq(M.maxHeight,K,"clientHeight")}}return{width:Z,height:q,maxWidth:X||Dq,maxHeight:Y||Dq}}var h4=(J)=>Math.round(J*10)/10;function RE(J,Z){let q=MJ(J),X=J.style;if(!q||!X)return;let Y=X.height;X.height=`${Z}px`;let K=WJ(q),H=parseFloat(K.height);if(K.boxSizing==="border-box")H-=_$(K,"padding").height+_$(K,"border","width").height;return X.height=Y,isNaN(H)?void 0:H}function Zz(J,Z,q,X){let Y=WJ(J),K=_$(Y,"margin"),H=kq(Y.maxWidth,J,"clientWidth")||Dq,M=kq(Y.maxHeight,J,"clientHeight")||Dq,W=wE(J,Z,q),{width:w,height:z}=W;if(Y.boxSizing==="content-box"){let P=_$(Y,"border","width"),I=_$(Y,"padding");w-=I.width+P.width,z-=I.height+P.height}if(w=Math.max(0,w-K.width),z=Math.max(0,X?w/X:z-K.height),w=h4(Math.min(w,H,W.maxWidth)),z=h4(Math.min(z,M,W.maxHeight)),w&&!z)z=h4(w/2);if((Z!==void 0||q!==void 0)&&X&&W.height&&z>W.height){let P=RE(J,z);if(P===void 0)z=W.height,w=h4(Math.floor(z*X));else if(P<z-0.5)z=h4(P),w=h4(Math.floor(z*X))}return{width:w,height:z}}function EU(J,Z,q){let X=Z||1,Y=h4(J.height*X),K=h4(J.width*X);J.height=h4(J.height),J.width=h4(J.width);let H=J.canvas;if(H.style&&(q||!H.style.height&&!H.style.width))H.style.height=`${J.height}px`,H.style.width=`${J.width}px`;let M=Math.floor(Y),W=Math.floor(K);if(J.currentDevicePixelRatio!==X||H.height!==M||H.width!==W)return J.currentDevicePixelRatio=X,H.height=M,H.width=W,J.ctx.setTransform(X,0,0,X,0,0),!0;return!1}var Gz=function(){let J=!1;try{let Z={get passive(){return J=!0,!1}};if(uq())window.addEventListener("test",null,Z),window.removeEventListener("test",null,Z)}catch(Z){}return J}();function AU(J,Z){let q=HE(J,Z),X=q&&q.match(/^(\d+)(\.\d+)?px$/);return X?+X[1]:void 0}var Aq=(J)=>J===0||J===1,SR=(J,Z,q)=>-(Math.pow(2,10*(J-=1))*Math.sin((J-Z)*i6/q)),DR=(J,Z,q)=>Math.pow(2,-10*J)*Math.sin((J-Z)*i6/q)+1,GQ={linear:(J)=>J,easeInQuad:(J)=>J*J,easeOutQuad:(J)=>-J*(J-2),easeInOutQuad:(J)=>(J/=0.5)<1?0.5*J*J:-0.5*(--J*(J-2)-1),easeInCubic:(J)=>J*J*J,easeOutCubic:(J)=>(J-=1)*J*J+1,easeInOutCubic:(J)=>(J/=0.5)<1?0.5*J*J*J:0.5*((J-=2)*J*J+2),easeInQuart:(J)=>J*J*J*J,easeOutQuart:(J)=>-((J-=1)*J*J*J-1),easeInOutQuart:(J)=>(J/=0.5)<1?0.5*J*J*J*J:-0.5*((J-=2)*J*J*J-2),easeInQuint:(J)=>J*J*J*J*J,easeOutQuint:(J)=>(J-=1)*J*J*J*J+1,easeInOutQuint:(J)=>(J/=0.5)<1?0.5*J*J*J*J*J:0.5*((J-=2)*J*J*J*J+2),easeInSine:(J)=>-Math.cos(J*o6)+1,easeOutSine:(J)=>Math.sin(J*o6),easeInOutSine:(J)=>-0.5*(Math.cos(m1*J)-1),easeInExpo:(J)=>J===0?0:Math.pow(2,10*(J-1)),easeOutExpo:(J)=>J===1?1:-Math.pow(2,-10*J)+1,easeInOutExpo:(J)=>Aq(J)?J:J<0.5?0.5*Math.pow(2,10*(J*2-1)):0.5*(-Math.pow(2,-10*(J*2-1))+2),easeInCirc:(J)=>J>=1?J:-(Math.sqrt(1-J*J)-1),easeOutCirc:(J)=>Math.sqrt(1-(J-=1)*J),easeInOutCirc:(J)=>(J/=0.5)<1?-0.5*(Math.sqrt(1-J*J)-1):0.5*(Math.sqrt(1-(J-=2)*J)+1),easeInElastic:(J)=>Aq(J)?J:SR(J,0.075,0.3),easeOutElastic:(J)=>Aq(J)?J:DR(J,0.075,0.3),easeInOutElastic(J){return Aq(J)?J:J<0.5?0.5*SR(J*2,0.1125,0.45):0.5+0.5*DR(J*2-1,0.1125,0.45)},easeInBack(J){return J*J*(2.70158*J-1.70158)},easeOutBack(J){return(J-=1)*J*(2.70158*J+1.70158)+1},easeInOutBack(J){let Z=1.70158;if((J/=0.5)<1)return 0.5*(J*J*(((Z*=1.525)+1)*J-Z));return 0.5*((J-=2)*J*(((Z*=1.525)+1)*J+Z)+2)},easeInBounce:(J)=>1-GQ.easeOutBounce(1-J),easeOutBounce(J){if(J<0.36363636363636365)return 7.5625*J*J;if(J<0.7272727272727273)return 7.5625*(J-=0.5454545454545454)*J+0.75;if(J<0.9090909090909091)return 7.5625*(J-=0.8181818181818182)*J+0.9375;return 7.5625*(J-=0.9545454545454546)*J+0.984375},easeInOutBounce:(J)=>J<0.5?GQ.easeInBounce(J*2)*0.5:GQ.easeOutBounce(J*2-1)*0.5+0.5};var jU=function(){if(typeof window>"u")return function(J){return J()};return window.requestAnimationFrame}();function SU(J,Z){let q=[],X=!1;return function(...Y){if(q=Y,!X)X=!0,jU.call(window,()=>{X=!1,J.apply(Z,q)})}}function qz(J,Z){let q;return function(...X){if(Z)clearTimeout(q),q=setTimeout(J,Z,...X);else J.apply(this,X);return Z}}var mq=(J)=>J==="start"?"left":J==="end"?"right":"center",R6=(J,Z,q)=>J==="start"?Z:J==="end"?q:(Z+q)/2,Xz=(J,Z,q,X)=>{return J===(X?"left":"right")?q:J==="center"?(Z+q)/2:Z};function Nz(J,Z,q){let X=Z.length,Y=0,K=X;if(J._sorted){let{iScale:H,vScale:M,_parsed:W}=J,w=J.dataset?J.dataset.options?J.dataset.options.spanGaps:null:null,z=H.axis,{min:T,max:P,minDefined:I,maxDefined:E}=H.getUserBounds();if(I){if(Y=Math.min(S8(W,z,T).lo,q?X:S8(Z,z,H.getPixelForValue(T)).lo),w){let O=W.slice(0,Y+1).reverse().findIndex((V)=>!e0(V[M.axis]));Y-=Math.max(0,O)}Y=a6(Y,0,X-1)}if(E){let O=Math.max(S8(W,H.axis,P,!0).hi+1,q?0:S8(Z,z,H.getPixelForValue(P),!0).hi+1);if(w){let V=W.slice(O-1).findIndex((D)=>!e0(D[M.axis]));O+=Math.max(0,V)}K=a6(O,Y,X)-Y}else K=X-Y}return{start:Y,count:K}}function Yz(J){let{xScale:Z,yScale:q,_scaleRanges:X}=J,Y={xmin:Z.min,xmax:Z.max,ymin:q.min,ymax:q.max};if(!X)return J._scaleRanges=Y,!0;let K=X.xmin!==Z.min||X.xmax!==Z.max||X.ymin!==q.min||X.ymax!==q.max;return Object.assign(X,Y),K}function j8(J,Z,q,X){return{x:J.x+q*(Z.x-J.x),y:J.y+q*(Z.y-J.y)}}function Uz(J,Z,q,X){return{x:J.x+q*(Z.x-J.x),y:X==="middle"?q<0.5?J.y:Z.y:X==="after"?q<1?J.y:Z.y:q>0?Z.y:J.y}}function Kz(J,Z,q,X){let Y={x:J.cp2x,y:J.cp2y},K={x:Z.cp1x,y:Z.cp1y},H=j8(J,Y,q),M=j8(Y,K,q),W=j8(K,Z,q),w=j8(H,M,q),z=j8(M,W,q);return j8(w,z,q)}var vR=new Map;function zE(J,Z){Z=Z||{};let q=J+JSON.stringify(Z),X=vR.get(q);if(!X)X=new Intl.NumberFormat(J,Z),vR.set(q,X);return X}function UJ(J,Z,q){return zE(Z,q).format(J)}var TE=["x","y","borderWidth","radius","tension"],LE=["color","borderColor","backgroundColor"];function PE(J){J.set("animation",{delay:void 0,duration:1000,easing:"easeOutQuart",fn:void 0,from:void 0,loop:void 0,to:void 0,type:void 0}),J.describe("animation",{_fallback:!1,_indexable:!1,_scriptable:(Z)=>Z!=="onProgress"&&Z!=="onComplete"&&Z!=="fn"}),J.set("animations",{colors:{type:"color",properties:LE},numbers:{type:"number",properties:TE}}),J.describe("animations",{_fallback:"animation"}),J.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:(Z)=>Z|0}}}})}function CE(J){J.set("layout",{autoPadding:!0,padding:{top:0,right:0,bottom:0,left:0}})}function kR(J,Z){if(Object.assign(J,Z),J.minimumFractionDigits>J.maximumFractionDigits){if(Z.minimumFractionDigits===void 0)J.minimumFractionDigits=J.maximumFractionDigits;else if(Z.maximumFractionDigits===void 0)J.maximumFractionDigits=J.minimumFractionDigits}return J}var Bz={values(J){return _1(J)?J:""+J},numeric(J,Z,q){let X=this.chart.options.locale;if(J===0)return UJ(0,X,kR({minimumFractionDigits:0,maximumFractionDigits:0},this.options.ticks.format));let Y,K=J;if(q.length>1){let w=Math.max(Math.abs(q[0].value),Math.abs(q[q.length-1].value));if(w<0.0001||w>1000000000000000)Y="scientific";K=_E(J,q)}let H=V$(Math.abs(K)),M=isNaN(H)?1:Math.max(Math.min(-1*Math.floor(H),20),0);return UJ(J,X,kR({notation:Y,minimumFractionDigits:M,maximumFractionDigits:M},this.options.ticks.format))},logarithmic(J,Z,q){if(J===0)return"0";let X=q[Z].significand||J/Math.pow(10,Math.floor(V$(J)));if([1,2,3,5,10,15].includes(X)||Z>0.8*q.length)return Bz.numeric.call(this,J,Z,q);return""}};function _E(J,Z){let q=Z.length>3?Z[2].value-Z[1].value:Z[1].value-Z[0].value;if(Math.abs(q)>=1&&J!==Math.floor(J))q=J-Math.floor(J);return q}var FJ={formatters:Bz};function IE(J){J.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:(Z,q)=>q.lineWidth,tickColor:(Z,q)=>q.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:FJ.formatters.values,minor:{},major:{},align:"center",crossAlign:"near",showLabelBackdrop:!1,backdropColor:"rgba(255, 255, 255, 0.75)",backdropPadding:2}}),J.route("scale.ticks","color","","color"),J.route("scale.grid","color","","borderColor"),J.route("scale.border","color","","borderColor"),J.route("scale.title","color","","color"),J.describe("scale",{_fallback:!1,_scriptable:(Z)=>!Z.startsWith("before")&&!Z.startsWith("after")&&Z!=="callback"&&Z!=="parser",_indexable:(Z)=>Z!=="borderDash"&&Z!=="tickBorderDash"&&Z!=="dash"}),J.describe("scales",{_fallback:"scale"}),J.describe("scale.ticks",{_scriptable:(Z)=>Z!=="backdropPadding"&&Z!=="callback",_indexable:(Z)=>Z!=="backdropPadding"})}var b8=Object.create(null),dq=Object.create(null);function XJ(J,Z){if(!Z)return J;let q=Z.split(".");for(let X=0,Y=q.length;X<Y;++X){let K=q[X];J=J[K]||(J[K]=Object.create(null))}return J}function MU(J,Z,q){if(typeof Z==="string")return qQ(XJ(J,Z),q);return qQ(XJ(J,""),Z)}class Hz{constructor(J,Z){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=(q)=>q.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=(q,X)=>HU(X.backgroundColor),this.hoverBorderColor=(q,X)=>HU(X.borderColor),this.hoverColor=(q,X)=>HU(X.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(J),this.apply(Z)}set(J,Z){return MU(this,J,Z)}get(J){return XJ(this,J)}describe(J,Z){return MU(dq,J,Z)}override(J,Z){return MU(b8,J,Z)}route(J,Z,q,X){let Y=XJ(this,J),K=XJ(this,q),H="_"+Z;Object.defineProperties(Y,{[H]:{value:Y[Z],writable:!0},[Z]:{enumerable:!0,get(){let M=this[H],W=K[X];if(o0(M))return Object.assign({},W,M);return d0(M,W)},set(M){this[H]=M}}})}apply(J){J.forEach((Z)=>Z(this))}}var y1=new Hz({_scriptable:(J)=>!J.startsWith("on"),_indexable:(J)=>J!=="events",hover:{_fallback:"interaction"},interaction:{_scriptable:!1,_indexable:!1}},[PE,CE,IE]),VE=/^(normal|(\d+(?:\.\d+)?)(px|em|%)?)$/,OE=/^(normal|italic|initial|inherit|unset|(oblique( -?[0-9]?[0-9]deg)?))$/;function EE(J,Z){let q=(""+J).match(VE);if(!q||q[1]==="normal")return Z*1.2;switch(J=+q[2],q[3]){case"px":return J;case"%":J/=100;break}return Z*J}var AE=(J)=>+J||0;function DU(J,Z){let q={},X=o0(Z),Y=X?Object.keys(Z):Z,K=o0(J)?X?(H)=>d0(J[H],J[Z[H]]):(H)=>J[H]:()=>J;for(let H of Y)q[H]=AE(K(H));return q}function vU(J){return DU(J,{top:"y",right:"x",bottom:"y",left:"x"})}function y8(J){return DU(J,["topLeft","topRight","bottomLeft","bottomRight"])}function z6(J){let Z=vU(J);return Z.width=Z.left+Z.right,Z.height=Z.top+Z.bottom,Z}function a1(J,Z){J=J||{},Z=Z||y1.font;let q=d0(J.size,Z.size);if(typeof q==="string")q=parseInt(q,10);let X=d0(J.style,Z.style);if(X&&!(""+X).match(OE))console.warn('Invalid font style specified: "'+X+'"'),X=void 0;let Y={family:d0(J.family,Z.family),lineHeight:EE(d0(J.lineHeight,Z.lineHeight),q),size:q,style:X,weight:d0(J.weight,Z.weight),string:""};return Y.string=sO(Y),Y}function wJ(J,Z,q,X){let Y=!0,K,H,M;for(K=0,H=J.length;K<H;++K){if(M=J[K],M===void 0)continue;if(Z!==void 0&&typeof M==="function")M=M(Z),Y=!1;if(q!==void 0&&_1(M))M=M[q%M.length],Y=!1;if(M!==void 0){if(X&&!Y)X.cacheable=!1;return M}}}function Mz(J,Z,q){let{min:X,max:Y}=J,K=hR(Z,(Y-X)/2),H=(M,W)=>q&&M===0?0:M+W;return{min:H(X,-Math.abs(K)),max:H(Y,K)}}function A$(J,Z){return Object.assign(Object.create(J),Z)}var jE=function(J,Z){return{x(q){return J+J+Z-q},setWidth(q){Z=q},textAlign(q){if(q==="center")return q;return q==="right"?"left":"right"},xPlus(q,X){return q-X},leftForLtr(q,X){return q-X}}},SE=function(){return{x(J){return J},setWidth(J){},textAlign(J){return J},xPlus(J,Z){return J+Z},leftForLtr(J,Z){return J}}};function f7(J,Z,q){return J?jE(Z,q):SE()}function kU(J,Z){let q,X;if(Z==="ltr"||Z==="rtl")q=J.canvas.style,X=[q.getPropertyValue("direction"),q.getPropertyPriority("direction")],q.setProperty("direction",Z,"important"),J.prevTextDirection=X}function bU(J,Z){if(Z!==void 0)delete J.prevTextDirection,J.canvas.style.setProperty("direction",Z[0],Z[1])}function Wz(J){if(J==="angle")return{between:TU,compare:rO,normalize:n6};return{between:E$,compare:(Z,q)=>Z-q,normalize:(Z)=>Z}}function bR({start:J,end:Z,count:q,loop:X,style:Y}){return{start:J%q,end:Z%q,loop:X&&(Z-J+1)%q===0,style:Y}}function DE(J,Z,q){let{property:X,start:Y,end:K}=q,{between:H,normalize:M}=Wz(X),W=Z.length,{start:w,end:z,loop:T}=J,P,I;if(T){w+=W,z+=W;for(P=0,I=W;P<I;++P){if(!H(M(Z[w%W][X]),Y,K))break;w--,z--}w%=W,z%=W}if(z<w)z+=W;return{start:w,end:z,loop:T,style:J.style}}function yU(J,Z,q){if(!q)return[J];let{property:X,start:Y,end:K}=q,H=Z.length,{compare:M,between:W,normalize:w}=Wz(X),{start:z,end:T,loop:P,style:I}=DE(J,Z,q),E=[],O=!1,V=null,D,h,p,s=()=>W(Y,p,D)&&M(Y,p)!==0,n=()=>M(K,D)===0||W(K,p,D),Z0=()=>O||s(),a=()=>!O||n();for(let i=z,X0=z;i<=T;++i){if(h=Z[i%H],h.skip)continue;if(D=w(h[X]),D===p)continue;if(O=W(D,Y,K),V===null&&Z0())V=M(D,Y)===0?i:X0;if(V!==null&&a())E.push(bR({start:V,end:i,loop:P,count:H,style:I})),V=null;X0=i,p=D}if(V!==null)E.push(bR({start:V,end:T,loop:P,count:H,style:I}));return E}function fU(J,Z){let q=[],X=J.segments;for(let Y=0;Y<X.length;Y++){let K=yU(X[Y],J.points,Z);if(K.length)q.push(...K)}return q}function vE(J,Z,q,X){let Y=0,K=Z-1;if(q&&!X)while(Y<Z&&!J[Y].skip)Y++;while(Y<Z&&J[Y].skip)Y++;if(Y%=Z,q)K+=Y;while(K>Y&&J[K%Z].skip)K--;return K%=Z,{start:Y,end:K}}function kE(J,Z,q,X){let Y=J.length,K=[],H=Z,M=J[Z],W;for(W=Z+1;W<=q;++W){let w=J[W%Y];if(w.skip||w.stop){if(!M.skip)X=!1,K.push({start:Z%Y,end:(W-1)%Y,loop:X}),Z=H=w.stop?W:null}else if(H=W,M.skip)Z=W;M=w}if(H!==null)K.push({start:Z%Y,end:H%Y,loop:X});return K}function Fz(J,Z){let q=J.points,X=J.options.spanGaps,Y=q.length;if(!Y)return[];let K=!!J._loop,{start:H,end:M}=vE(q,Y,K,X);if(X===!0)return yR(J,[{start:H,end:M,loop:K}],q,Z);let W=M<H?M+Y:M,w=!!J._fullLoop&&H===0&&M===Y-1;return yR(J,kE(q,H,W,w),q,Z)}function yR(J,Z,q,X){if(!X||!X.setContext||!q)return Z;return bE(J,Z,q,X)}function bE(J,Z,q,X){let Y=J._chart.getContext(),K=fR(J.options),{_datasetIndex:H,options:{spanGaps:M}}=J,W=q.length,w=[],z=K,T=Z[0].start,P=T;function I(E,O,V,D){let h=M?-1:1;if(E===O)return;E+=W;while(q[E%W].skip)E-=h;while(q[O%W].skip)O+=h;if(E%W!==O%W)w.push({start:E%W,end:O%W,loop:V,style:D}),z=D,T=O%W}for(let E of Z){T=M?T:E.start;let O=q[T%W],V;for(P=T+1;P<=E.end;P++){let D=q[P%W];if(V=fR(X.setContext(A$(Y,{type:"segment",p0:O,p1:D,p0DataIndex:(P-1)%W,p1DataIndex:P%W,datasetIndex:H}))),yE(V,z))I(T,P-1,E.loop,z);O=D,z=V}if(T<P-1)I(T,P-1,E.loop,z)}return w}function fR(J){return{backgroundColor:J.backgroundColor,borderCapStyle:J.borderCapStyle,borderDash:J.borderDash,borderDashOffset:J.borderDashOffset,borderJoinStyle:J.borderJoinStyle,borderWidth:J.borderWidth,borderColor:J.borderColor}}function yE(J,Z){if(!Z)return!1;let q=[],X=function(Y,K){if(!WU(K))return K;if(!q.includes(K))q.push(K);return q.indexOf(K)};return JSON.stringify(J,X)!==JSON.stringify(Z,X)}function jq(J,Z,q){return J.options.clip?J[q]:Z[q]}function fE(J,Z){let{xScale:q,yScale:X}=J;if(q&&X)return{left:jq(q,Z,"left"),right:jq(q,Z,"right"),top:jq(X,Z,"top"),bottom:jq(X,Z,"bottom")};return Z}function gU(J,Z){let q=Z._clip;if(q.disabled)return!1;let X=fE(Z,J.chartArea);return{left:q.left===!1?0:X.left-(q.left===!0?0:q.left),right:q.right===!1?J.width:X.right+(q.right===!0?0:q.right),top:q.top===!1?0:X.top-(q.top===!0?0:q.top),bottom:q.bottom===!1?J.height:X.bottom+(q.bottom===!0?0:q.bottom)}}/*!
|
|
251
|
+
* Chart.js v4.6.2
|
|
252
252
|
* https://www.chartjs.org
|
|
253
253
|
* (c) 2026 Chart.js Contributors
|
|
254
254
|
* Released under the MIT License
|
|
255
|
-
*/class BT{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=RU.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,M;for(;K>=0;--K)if(M=N[K],M._active){if(M._total>X.duration)X.duration=M._total;M.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 I8=new BT,Wz="transparent",IE={boolean(Q,J,X){return X>0.5?J:Q},color(Q,J,X){let q=PU(Q||Wz),N=q.valid&&PU(J||Wz);return N&&N.valid?N.mix(q,X).hexString():J},number(Q,J,X){return Q+(J-Q)*X}};class HT{constructor(Q,J,X,q){let N=J[X];q=HQ([Q.to,q,N,Q.from]);let K=HQ([Q.from,N,q]);this._active=!0,this._fn=Q.fn||IE[Q.type||typeof K],this._easing=J$[Q.easing]||J$.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=HQ([Q.to,J,q,Q.from]),this._from=HQ([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,M;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}M=J/X%2,M=K&&M>1?2-M:M,M=this._easing(Math.min(1,Math.max(0,M))),this._target[q]=this._fn(N,H,M)}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 $K{constructor(Q,J){this._chart=Q,this._properties=new Map,this.configure(J)}configure(Q){if(!i0(Q))return;let J=Object.keys(k1.animation),X=this._properties;Object.getOwnPropertyNames(Q).forEach((q)=>{let N=Q[q];if(!i0(N))return;let K={};for(let H of J)K[H]=N[H];(_1(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=OE(Q,X);if(!q)return[];let N=this._createAnimations(q,X);if(X.$shared)VE(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(),M;for(M=K.length-1;M>=0;--M){let F=K[M];if(F.charAt(0)==="$")continue;if(F==="options"){q.push(...this._animateOptions(Q,J));continue}let w=J[F],z=N[F],T=X.get(F);if(z)if(T&&z.active()){z.update(T,w,H);continue}else z.cancel();if(!T||!T.duration){Q[F]=w;continue}N[F]=z=new HT(T,Q,F,w),q.push(z)}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 I8.add(this._chart,X),!0}}function VE(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 OE(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 wz(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 EE(Q,J,X){if(X===!1)return!1;let q=wz(Q,X),N=wz(J,X);return{top:N.end,right:q.end,bottom:N.start,left:q.start}}function AE(Q){let J,X,q,N;if(i0(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 MT(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 Rz(Q,J,X,q={}){let N=Q.keys,K=q.mode==="single",H,M,F,w;if(J===null)return;let z=!1;for(H=0,M=N.length;H<M;++H){if(F=+N[H],F===X){if(z=!0,q.all)continue;break}if(w=Q.values[F],b1(w)&&(K||J===0||G4(J)===G4(w)))J+=w}if(!z&&!q.all)return 0;return J}function jE(Q,J){let{iScale:X,vScale:q}=J,N=X.axis==="x"?"x":"y",K=q.axis==="x"?"x":"y",H=Object.keys(Q),M=Array(H.length),F,w,z;for(F=0,w=H.length;F<w;++F)z=H[F],M[F]={[N]:z,[K]:Q[z]};return M}function fU(Q,J){let X=Q&&Q.options.stacked;return X||X===void 0&&J.stack!==void 0}function SE(Q,J,X){return`${Q.id}.${J.id}.${X.stack||X.type}`}function DE(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 vE(Q,J,X){let q=Q[J]||(Q[J]={});return q[X]||(q[X]={})}function zz(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 Tz(Q,J){let{chart:X,_cachedMeta:q}=Q,N=X._stacks||(X._stacks={}),{iScale:K,vScale:H,index:M}=q,F=K.axis,w=H.axis,z=SE(K,H,q),T=J.length,L;for(let I=0;I<T;++I){let E=J[I],{[F]:O,[w]:V}=E,D=E._stacks||(E._stacks={});L=D[w]=vE(N,z,O),L[M]=V,L._top=zz(L,H,!0,q.type),L._bottom=zz(L,H,!1,q.type);let h=L._visualValues||(L._visualValues={});h[M]=V}}function yU(Q,J){let X=Q.scales;return Object.keys(X).filter((q)=>X[q].axis===J).shift()}function bE(Q,J){return _8(Q,{active:!1,dataset:void 0,datasetIndex:J,index:J,mode:"default",type:"dataset"})}function kE(Q,J,X){return _8(Q,{active:!1,dataIndex:J,parsed:void 0,raw:void 0,element:X,index:J,mode:"default",type:"data"})}function MQ(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)continue;if(delete K[q][X],K[q]._visualValues!==void 0&&K[q]._visualValues[X]!==void 0)delete K[q]._visualValues[X]}}var gU=(Q)=>Q==="reset"||Q==="none",Pz=(Q,J)=>J?Q:Object.assign({},Q),fE=(Q,J,X)=>Q&&!J.hidden&&J._stacked&&{keys:MT(X,!0),values:null};class s3{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=fU(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)MQ(this._cachedMeta);this.index=Q}linkScales(){let Q=this.chart,J=this._cachedMeta,X=this.getDataset(),q=(z,T,L,I)=>z==="x"?T:z==="r"?I:L,N=J.xAxisID=c0(X.xAxisID,yU(Q,"x")),K=J.yAxisID=c0(X.yAxisID,yU(Q,"y")),H=J.rAxisID=c0(X.rAxisID,yU(Q,"r")),M=J.indexAxis,F=J.iAxisID=q(M,N,K,H),w=J.vAxisID=q(M,K,N,H);J.xScale=this.getScaleForId(N),J.yScale=this.getScaleForId(K),J.rScale=this.getScaleForId(H),J.iScale=this.getScaleForId(F),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)WU(this._data,this);if(Q._stacked)MQ(Q)}_dataCheck(){let Q=this.getDataset(),J=Q.data||(Q.data=[]),X=this._data;if(i0(J)){let q=this._cachedMeta;this._data=jE(J,q)}else if(X!==J){if(X){WU(X,this);let q=this._cachedMeta;MQ(q),q._parsed=[]}if(J&&Object.isExtensible(J))sR(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=fU(J.vScale,J),J.stack!==X.stack)q=!0,MQ(J),J.stack=X.stack;if(this._resyncElements(Q),q||N!==J._stacked)Tz(this,J._parsed),J._stacked=fU(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,M=Q===0&&J===q.length?!0:X._sorted,F=Q>0&&X._parsed[Q-1],w,z,T;if(this._parsing===!1)X._parsed=q,X._sorted=!0,T=q;else{if(_1(q[Q]))T=this.parseArrayData(X,q,Q,J);else if(i0(q[Q]))T=this.parseObjectData(X,q,Q,J);else T=this.parsePrimitiveData(X,q,Q,J);let L=()=>z[H]===null||F&&z[H]<F[H];for(w=0;w<J;++w)if(X._parsed[w+Q]=z=T[w],M){if(L())M=!1;F=z}X._sorted=M}if(K)Tz(this,T)}parsePrimitiveData(Q,J,X,q){let{iScale:N,vScale:K}=Q,H=N.axis,M=K.axis,F=N.getLabels(),w=N===K,z=Array(q),T,L,I;for(T=0,L=q;T<L;++T)I=T+X,z[T]={[H]:w||N.parse(F[I],I),[M]:K.parse(J[I],I)};return z}parseArrayData(Q,J,X,q){let{xScale:N,yScale:K}=Q,H=Array(q),M,F,w,z;for(M=0,F=q;M<F;++M)w=M+X,z=J[w],H[M]={x:N.parse(z[0],w),y:K.parse(z[1],w)};return H}parseObjectData(Q,J,X,q){let{xScale:N,yScale:K}=Q,{xAxisKey:H="x",yAxisKey:M="y"}=this._parsing,F=Array(q),w,z,T,L;for(w=0,z=q;w<z;++w)T=w+X,L=J[T],F[w]={x:N.parse(k9(L,H),T),y:K.parse(k9(L,M),T)};return F}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:MT(q,!0),values:J._stacks[Q.axis]._visualValues};return Rz(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=Rz(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),M=fE(J,X,this.chart),F={min:Number.POSITIVE_INFINITY,max:Number.NEGATIVE_INFINITY},{min:w,max:z}=DE(H),T,L;function I(){L=q[T];let E=L[H.axis];return!b1(L[Q.axis])||w>E||z<E}for(T=0;T<K;++T){if(I())continue;if(this.updateRangeFromParsed(F,Q,L,M),N)break}if(N)for(T=K-1;T>=0;--T){if(I())continue;this.updateRangeFromParsed(F,Q,L,M);break}return F}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],b1(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=AE(c0(this.options.clip,EE(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,M=this._drawCount||q.length-H,F=this.options.drawActiveElementsOnTop,w;if(X.dataset)X.dataset.draw(Q,N,H,M);for(w=H;w<H+M;++w){let z=q[w];if(z.hidden)continue;if(z.active&&F)K.push(z);else z.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=kE(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=bE(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],M=this.enableOptionSharing&&Y$(X);if(H)return Pz(H,M);let F=this.chart.config,w=F.datasetElementScopeKeys(this._type,Q),z=q?[`${Q}Hover`,"hover",Q,""]:[Q,""],T=F.getOptionScopes(this.getDataset(),w),L=Object.keys(k1.elements[Q]),I=()=>this.getContext(X,q,J),E=F.resolveNamedOptions(T,L,I,z);if(E.$shared)E.$shared=M,N[K]=Object.freeze(Pz(E,M));return E}_resolveAnimations(Q,J,X){let q=this.chart,N=this._cachedDataOpts,K=`animation-${J}`,H=N[K];if(H)return H;let M;if(q.options.animation!==!1){let w=this.chart.config,z=w.datasetAnimationScopeKeys(this._type,J),T=w.getOptionScopes(this.getDataset(),z);M=w.createResolver(T,this.getContext(Q,X,J))}let F=new $K(q,M&&M.animations);if(M&&M._cacheable)N[K]=Object.freeze(F);return F}getSharedOptions(Q){if(!Q.$shared)return;return this._sharedOptions||(this._sharedOptions=Object.assign({},Q))}includeOptions(Q,J){return!J||gU(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(gU(q))Object.assign(Q,X);else this._resolveAnimations(J,q).update(Q,X)}updateSharedOptions(Q,J,X){if(Q&&!gU(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,M,F]of this._syncList)this[H](M,F);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,M=(F)=>{F.length+=J;for(H=F.length-1;H>=K;H--)F[H]=F[H-J]};M(N);for(H=Q;H<K;++H)N[H]=new this.dataElementType;if(this._parsing)M(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)MQ(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 yE(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=wU(q.sort((N,K)=>N-K))}return Q._cache.$bar}function gE(Q){let J=Q.iScale,X=yE(J,Q.type),q=J._length,N,K,H,M,F=()=>{if(H===32767||H===-32768)return;if(Y$(M))q=Math.min(q,Math.abs(H-M)||q);M=H};for(N=0,K=X.length;N<K;++N)H=J.getPixelForValue(X[N]),F();M=void 0;for(N=0,K=J.ticks.length;N<K;++N)H=J.getPixelForTick(N),F();return q}function hE(Q,J,X,q){let N=X.barThickness,K,H;if($1(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 uE(Q,J,X,q){let N=J.pixels,K=N[Q],H=Q>0?N[Q-1]:null,M=Q<N.length-1?N[Q+1]:null,F=X.categoryPercentage;if(H===null)H=K-(M===null?J.end-J.start:M-K);if(M===null)M=K+K-H;let w=K-(K-Math.min(H,M))/2*F;return{chunk:Math.abs(M-H)/2*F/q,ratio:X.barPercentage,start:w}}function xE(Q,J,X,q){let N=X.parse(Q[0],q),K=X.parse(Q[1],q),H=Math.min(N,K),M=Math.max(N,K),F=H,w=M;if(Math.abs(H)>Math.abs(M))F=M,w=H;J[X.axis]=w,J._custom={barStart:F,barEnd:w,start:N,end:K,min:H,max:M}}function FT(Q,J,X,q){if(_1(Q))xE(Q,J,X,q);else J[X.axis]=X.parse(Q,q);return J}function Lz(Q,J,X,q){let{iScale:N,vScale:K}=Q,H=N.getLabels(),M=N===K,F=[],w,z,T,L;for(w=X,z=X+q;w<z;++w)L=J[w],T={},T[N.axis]=M||N.parse(H[w],w),F.push(FT(L,T,K,w));return F}function hU(Q){return Q&&Q.barStart!==void 0&&Q.barEnd!==void 0}function mE(Q,J,X){if(Q!==0)return G4(Q);return(J.isHorizontal()?1:-1)*(J.min>=X?1:-1)}function dE(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 pE(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:M,reverse:F,top:w,bottom:z}=dE(Q);if(N==="middle"&&X)if(Q.enableBorderRadius=!0,(X._top||0)===q)N=w;else if((X._bottom||0)===q)N=z;else K[Cz(z,H,M,F)]=!0,N=w;K[Cz(N,H,M,F)]=!0,Q.borderSkipped=K}function Cz(Q,J,X,q){if(q)Q=cE(Q,J,X),Q=_z(Q,X,J);else Q=_z(Q,J,X);return Q}function cE(Q,J,X){return Q===J?X:Q===X?J:Q}function _z(Q,J,X){return Q==="start"?J:Q==="end"?X:Q}function lE(Q,{inflateAmount:J},X){Q.inflateAmount=J==="auto"?X===1?0.33:0:J}class ZK extends s3{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 Lz(Q,J,X,q)}parseArrayData(Q,J,X,q){return Lz(Q,J,X,q)}parseObjectData(Q,J,X,q){let{iScale:N,vScale:K}=Q,{xAxisKey:H="x",yAxisKey:M="y"}=this._parsing,F=N.axis==="x"?H:M,w=K.axis==="x"?H:M,z=[],T,L,I,E;for(T=X,L=X+q;T<L;++T)E=J[T],I={},I[N.axis]=N.parse(k9(E,F),T),z.push(FT(k9(E,w),I,K,T));return z}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=hU(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,M=H.getBasePixel(),F=H.isHorizontal(),w=this._getRuler(),{sharedOptions:z,includeOptions:T}=this._getSharedOptions(J,q);for(let L=J;L<J+X;L++){let I=this.getParsed(L),E=N||$1(I[H.axis])?{base:M,head:M}:this._calculateBarValuePixels(L),O=this._calculateBarIndexPixels(L,w),V=(I._stacks||{})[H.axis],D={horizontal:F,base:E.base,enableBorderRadius:!V||hU(I._custom)||K===V._top||K===V._bottom,x:F?E.head:O.center,y:F?O.center:E.head,height:F?O.size:Math.abs(E.size),width:F?Math.abs(E.size):O.size};if(T)D.options=z||this.resolveDataElementOptions(L,Q[L].active?"active":q);let h=D.options||Q[L].options;pE(D,h,V,K),lE(D,h,w.ratio),this.updateElement(Q[L],L,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),M=H&&H[X.axis],F=(w)=>{let z=w._parsed.find((L)=>L[X.axis]===M),T=z&&z[w.vScale.axis];if($1(T)||isNaN(T))return!0};for(let w of q){if(J!==void 0&&F(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[c0(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||gE(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,M=this.getParsed(Q),F=M._custom,w=hU(F),z=M[J.axis],T=0,L=X?this.applyStack(J,M,X):z,I,E;if(L!==z)T=L-z,L=z;if(w){if(z=F.barStart,L=F.barEnd-F.barStart,z!==0&&G4(z)!==G4(F.barEnd))T=0;T+=z}let O=!$1(N)&&!w?N:T,V=J.getPixelForValue(O);if(this.chart.getDataVisibility(Q))I=J.getPixelForValue(T+L);else I=V;if(E=I-V,Math.abs(E)<K){if(E=mE(E,J,H)*K,z===H)V-=E/2;let D=J.getPixelForDecimal(0),h=J.getPixelForDecimal(1),p=Math.min(D,h),s=Math.max(D,h);if(V=Math.max(Math.min(V,s),p),I=V+E,X&&!w)M._stacks[J.axis]._visualValues[q]=J.getValueForPixel(I)-J.getValueForPixel(V)}if(V===J.getPixelForValue(H)){let D=G4(E)*J.getLineWidthForValue(H)/2;V+=D,E-=D}return{size:E,base:V,head:I,center:I+E/2}}_calculateBarIndexPixels(Q,J){let X=J.scale,q=this.options,N=q.skipNull,K=c0(q.maxBarThickness,1/0),H,M,F=this._getAxisCount();if(J.grouped){let w=N?this._getStackCount(Q):J.stackCount,z=q.barThickness==="flex"?uE(Q,J,q,w*F):hE(Q,J,q,w*F),T=this.chart.options.indexAxis==="x"?this.getDataset().xAxisID:this.getDataset().yAxisID,L=this._getAxis().indexOf(c0(T,this.getFirstScaleIdForIndexAxis())),I=this._getStackIndex(this.index,this._cachedMeta.stack,N?Q:void 0)+L;H=z.start+z.chunk*I+z.chunk/2,M=Math.min(K,z.chunk*z.ratio)}else H=X.getPixelForValue(this.getParsed(Q)[X.axis],Q),M=Math.min(K,J.min*J.ratio);return{base:H-M/2,head:H+M/2,center:H,size:M}}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 QK extends s3{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:M}=iR(J,q,K);if(this._drawStart=H,this._drawCount=M,aR(J))H=0,M=q.length;X._chart=this.chart,X._datasetIndex=this.index,X._decimated=!!N._decimated,X.points=q;let F=this.resolveDatasetElementOptions(Q);if(!this.options.showLine)F.borderWidth=0;F.segment=this.options.segment,this.updateElement(X,void 0,{animated:!K,options:F},Q),this.updateElements(q,H,M,Q)}updateElements(Q,J,X,q){let N=q==="reset",{iScale:K,vScale:H,_stacked:M,_dataset:F}=this._cachedMeta,{sharedOptions:w,includeOptions:z}=this._getSharedOptions(J,q),T=K.axis,L=H.axis,{spanGaps:I,segment:E}=this.options,O=U$(I)?I:Number.POSITIVE_INFINITY,V=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 n=Q[s],$0=V?n:{};if(s<J||s>=D){$0.skip=!0;continue}let a=this.getParsed(s),o=$1(a[L]),q0=$0[T]=K.getPixelForValue(a[T],s),d=$0[L]=N||o?H.getBasePixel():H.getPixelForValue(M?this.applyStack(H,a,M):a[L],s);if($0.skip=isNaN(q0)||isNaN(d)||o,$0.stop=s>0&&Math.abs(a[T]-p[T])>O,E)$0.parsed=a,$0.raw=F.data[s];if(z)$0.options=w||this.resolveDataElementOptions(s,n.active?"active":q);if(!V)this.updateElement(n,s,$0,q);p=a}}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 y9(){throw Error("This method is not implemented: Check that a complete date adapter is provided.")}class JK{static override(Q){Object.assign(JK.prototype,Q)}options;constructor(Q){this.options=Q||{}}init(){}formats(){return y9()}parse(){return y9()}format(){return y9()}add(){return y9()}diff(){return y9()}startOf(){return y9()}endOf(){return y9()}}var rE={_date:JK};function sE(Q,J,X,q){let{controller:N,data:K,_sorted:H}=Q,M=N._cachedMeta.iScale,F=Q.dataset?Q.dataset.options?Q.dataset.options.spanGaps:null:null;if(M&&J===M.axis&&J!=="r"&&H&&K.length){let w=M._reversePixels?cR:O2;if(!q){let z=w(K,J,X);if(F){let{vScale:T}=N._cachedMeta,{_parsed:L}=Q,I=L.slice(0,z.lo+1).reverse().findIndex((O)=>!$1(O[T.axis]));z.lo-=Math.max(0,I);let E=L.slice(z.hi).findIndex((O)=>!$1(O[T.axis]));z.hi+=Math.max(0,E)}return z}else if(N._sharedOptions){let z=K[0],T=typeof z.getRange==="function"&&z.getRange(J);if(T){let L=w(K,J,X-T),I=w(K,J,X+T);return{lo:L.lo,hi:I.hi}}}}return{lo:0,hi:K.length-1}}function IQ(Q,J,X,q,N){let K=Q.getSortedVisibleDatasetMetas(),H=X[J];for(let M=0,F=K.length;M<F;++M){let{index:w,data:z}=K[M],{lo:T,hi:L}=sE(K[M],J,H,N);for(let I=T;I<=L;++I){let E=z[I];if(!E.skip)q(E,w,I)}}}function nE(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 uU(Q,J,X,q,N){let K=[];if(!N&&!Q.isPointInArea(J))return K;return IQ(Q,X,J,function(M,F,w){if(!N&&!y4(M,Q.chartArea,0))return;if(M.inRange(J.x,J.y,q))K.push({element:M,datasetIndex:F,index:w})},!0),K}function oE(Q,J,X,q){let N=[];function K(H,M,F){let{startAngle:w,endAngle:z}=H.getProps(["startAngle","endAngle"],q),{angle:T}=dR(H,{x:J.x,y:J.y});if(FU(T,w,z))N.push({element:H,datasetIndex:M,index:F})}return IQ(Q,X,J,K),N}function iE(Q,J,X,q,N,K){let H=[],M=nE(X),F=Number.POSITIVE_INFINITY;function w(z,T,L){let I=z.inRange(J.x,J.y,N);if(q&&!I)return;let E=z.getCenterPoint(N);if(!(!!K||Q.isPointInArea(E))&&!I)return;let V=M(J,E);if(V<F)H=[{element:z,datasetIndex:T,index:L}],F=V;else if(V===F)H.push({element:z,datasetIndex:T,index:L})}return IQ(Q,X,J,w),H}function xU(Q,J,X,q,N,K){if(!K&&!Q.isPointInArea(J))return[];return X==="r"&&!q?oE(Q,J,X,N):iE(Q,J,X,q,N,K)}function Iz(Q,J,X,q,N){let K=[],H=X==="x"?"inXRange":"inYRange",M=!1;if(IQ(Q,X,J,(F,w,z)=>{if(F[H]&&F[H](J[X],N))K.push({element:F,datasetIndex:w,index:z}),M=M||F.inRange(J.x,J.y,N)}),q&&!M)return[];return K}var aE={evaluateInteractionItems:IQ,modes:{index(Q,J,X,q){let N=v2(J,Q),K=X.axis||"x",H=X.includeInvisible||!1,M=X.intersect?uU(Q,N,K,q,H):xU(Q,N,K,!1,q,H),F=[];if(!M.length)return[];return Q.getSortedVisibleDatasetMetas().forEach((w)=>{let z=M[0].index,T=w.data[z];if(T&&!T.skip)F.push({element:T,datasetIndex:w.index,index:z})}),F},dataset(Q,J,X,q){let N=v2(J,Q),K=X.axis||"xy",H=X.includeInvisible||!1,M=X.intersect?uU(Q,N,K,q,H):xU(Q,N,K,!1,q,H);if(M.length>0){let F=M[0].datasetIndex,w=Q.getDatasetMeta(F).data;M=[];for(let z=0;z<w.length;++z)M.push({element:w[z],datasetIndex:F,index:z})}return M},point(Q,J,X,q){let N=v2(J,Q),K=X.axis||"xy",H=X.includeInvisible||!1;return uU(Q,N,K,q,H)},nearest(Q,J,X,q){let N=v2(J,Q),K=X.axis||"xy",H=X.includeInvisible||!1;return xU(Q,N,K,X.intersect,q,H)},x(Q,J,X,q){let N=v2(J,Q);return Iz(Q,N,"x",X.intersect,q)},y(Q,J,X,q){let N=v2(J,Q);return Iz(Q,N,"y",X.intersect,q)}}},WT=["left","top","right","bottom"];function FQ(Q,J){return Q.filter((X)=>X.pos===J)}function Vz(Q,J){return Q.filter((X)=>WT.indexOf(X.pos)===-1&&X.box.axis===J)}function WQ(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 tE(Q){let J=[],X,q,N,K,H,M;for(X=0,q=(Q||[]).length;X<q;++X)N=Q[X],{position:K,options:{stack:H,stackWeight:M=1}}=N,J.push({index:X,box:N,pos:K,horizontal:N.isHorizontal(),weight:N.weight,stack:H&&K+H,stackWeight:M});return J}function eE(Q){let J={};for(let X of Q){let{stack:q,pos:N,stackWeight:K}=X;if(!q||!WT.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 $A(Q,J){let X=eE(Q),{vBoxMaxWidth:q,hBoxMaxHeight:N}=J,K,H,M;for(K=0,H=Q.length;K<H;++K){M=Q[K];let{fullSize:F}=M.box,w=X[M.stack],z=w&&M.stackWeight/w.weight;if(M.horizontal)M.width=z?z*q:F&&J.availableWidth,M.height=N;else M.width=q,M.height=z?z*N:F&&J.availableHeight}return X}function ZA(Q){let J=tE(Q),X=WQ(J.filter((w)=>w.box.fullSize),!0),q=WQ(FQ(J,"left"),!0),N=WQ(FQ(J,"right")),K=WQ(FQ(J,"top"),!0),H=WQ(FQ(J,"bottom")),M=Vz(J,"x"),F=Vz(J,"y");return{fullSize:X,leftAndTop:q.concat(K),rightAndBottom:N.concat(F).concat(H).concat(M),chartArea:FQ(J,"chartArea"),vertical:q.concat(N).concat(F),horizontal:K.concat(H).concat(M)}}function Oz(Q,J,X,q){return Math.max(Q[X],J[X])+Math.max(Q[q],J[q])}function wT(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 QA(Q,J,X,q){let{pos:N,box:K}=X,H=Q.maxPadding;if(!i0(N)){if(X.size)Q[N]-=X.size;let T=q[X.stack]||{size:0,count:1};T.size=Math.max(T.size,X.horizontal?K.height:K.width),X.size=T.size/T.count,Q[N]+=X.size}if(K.getPadding)wT(H,K.getPadding());let M=Math.max(0,J.outerWidth-Oz(H,Q,"left","right")),F=Math.max(0,J.outerHeight-Oz(H,Q,"top","bottom")),w=M!==Q.w,z=F!==Q.h;return Q.w=M,Q.h=F,X.horizontal?{same:w,other:z}:{same:z,other:w}}function JA(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 GA(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 zQ(Q,J,X,q){let N=[],K,H,M,F,w,z;for(K=0,H=Q.length,w=0;K<H;++K){M=Q[K],F=M.box,F.update(M.width||J.w,M.height||J.h,GA(M.horizontal,J));let{same:T,other:L}=QA(J,X,M,q);if(w|=T&&N.length,z=z||L,!F.fullSize)N.push(M)}return w&&zQ(N,J,X,q)||z}function u3(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 Ez(Q,J,X,q){let N=X.padding,{x:K,y:H}=J;for(let M of Q){let F=M.box,w=q[M.stack]||{count:1,placed:0,weight:1},z=M.stackWeight/w.weight||1;if(M.horizontal){let T=J.w*z,L=w.size||F.height;if(Y$(w.start))H=w.start;if(F.fullSize)u3(F,N.left,H,X.outerWidth-N.right-N.left,L);else u3(F,J.left+w.placed,H,T,L);w.start=H,w.placed+=T,H=F.bottom}else{let T=J.h*z,L=w.size||F.width;if(Y$(w.start))K=w.start;if(F.fullSize)u3(F,K,N.top,L,X.outerHeight-N.bottom-N.top);else u3(F,K,J.top+w.placed,L,T);w.start=K,w.placed+=T,K=F.right}}J.x=K,J.y=H}var x6={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=R5(Q.options.layout.padding),K=Math.max(J-N.width,0),H=Math.max(X-N.height,0),M=ZA(Q.boxes),F=M.vertical,w=M.horizontal;K1(Q.boxes,(O)=>{if(typeof O.beforeLayout==="function")O.beforeLayout()});let z=F.reduce((O,V)=>V.box.options&&V.box.options.display===!1?O:O+1,0)||1,T=Object.freeze({outerWidth:J,outerHeight:X,padding:N,availableWidth:K,availableHeight:H,vBoxMaxWidth:K/2/z,hBoxMaxHeight:H/2}),L=Object.assign({},N);wT(L,R5(q));let I=Object.assign({maxPadding:L,w:K,h:H,x:N.left,y:N.top},N),E=$A(F.concat(w),T);if(zQ(M.fullSize,I,T,E),zQ(F,I,T,E),zQ(w,I,T,E))zQ(F,I,T,E);JA(I),Ez(M.leftAndTop,I,T,E),I.x+=I.w,I.y+=I.h,Ez(M.rightAndBottom,I,T,E),Q.chartArea={left:I.left,top:I.top,right:I.left+I.w,bottom:I.top+I.h,height:I.h,width:I.w},K1(M.chartArea,(O)=>{let V=O.box;Object.assign(V,Q.chartArea),V.update(I.w,I.h,{left:0,top:0,right:0,bottom:0})})}};class GK{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 RT extends GK{acquireContext(Q){return Q&&Q.getContext&&Q.getContext("2d")||null}updateConfig(Q){Q.options.animation=!1}}var c3="$chartjs",XA={touchstart:"mousedown",touchmove:"mousemove",touchend:"mouseup",pointerenter:"mouseenter",pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointerleave:"mouseout",pointerout:"mouseout"},Az=(Q)=>Q===null||Q==="";function qA(Q,J){let X=Q.style,q=Q.getAttribute("height"),N=Q.getAttribute("width");if(Q[c3]={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",Az(N)){let K=jU(Q,"width");if(K!==void 0)Q.width=K}if(Az(q))if(Q.style.height==="")Q.height=Q.width/(J||2);else{let K=jU(Q,"height");if(K!==void 0)Q.height=K}return Q}var zT=Kz?{passive:!0}:!1;function YA(Q,J,X){if(Q)Q.addEventListener(J,X,zT)}function NA(Q,J,X){if(Q&&Q.canvas)Q.canvas.removeEventListener(J,X,zT)}function UA(Q,J){let X=XA[Q.type]||Q.type,{x:q,y:N}=v2(Q,J);return{type:X,chart:J,native:Q,x:q!==void 0?q:null,y:N!==void 0?N:null}}function r3(Q,J){for(let X of Q)if(X===J||X.contains(J))return!0}function KA(Q,J,X){let q=Q.canvas,N=new MutationObserver((K)=>{let H=!1;for(let M of K)H=H||r3(M.addedNodes,q),H=H&&!r3(M.removedNodes,q);if(H)X()});return N.observe(document,{childList:!0,subtree:!0}),N}function BA(Q,J,X){let q=Q.canvas,N=new MutationObserver((K)=>{let H=!1;for(let M of K)H=H||r3(M.removedNodes,q),H=H&&!r3(M.addedNodes,q);if(H)X()});return N.observe(document,{childList:!0,subtree:!0}),N}var LQ=new Map,jz=0;function TT(){let Q=window.devicePixelRatio;if(Q===jz)return;jz=Q,LQ.forEach((J,X)=>{if(X.currentDevicePixelRatio!==Q)J()})}function HA(Q,J){if(!LQ.size)window.addEventListener("resize",TT);LQ.set(Q,J)}function MA(Q){if(LQ.delete(Q),!LQ.size)window.removeEventListener("resize",TT)}function FA(Q,J,X){let q=Q.canvas,N=q&&g3(q);if(!N)return;let K=zU((M,F)=>{let w=N.clientWidth;if(X(M,F),w<N.clientWidth)X()},window),H=new ResizeObserver((M)=>{let F=M[0],w=F.contentRect.width,z=F.contentRect.height;if(w===0&&z===0)return;K(w,z)});return H.observe(N),HA(Q,K),H}function mU(Q,J,X){if(X)X.disconnect();if(J==="resize")MA(Q)}function WA(Q,J,X){let q=Q.canvas,N=zU((K)=>{if(Q.ctx!==null)X(UA(K,Q))},Q);return YA(q,J,N),N}class PT extends GK{acquireContext(Q,J){let X=Q&&Q.getContext&&Q.getContext("2d");if(X&&X.canvas===Q)return qA(Q,J),X;return null}releaseContext(Q){let J=Q.canvas;if(!J[c3])return!1;let X=J[c3].initial;["height","width"].forEach((N)=>{let K=X[N];if($1(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[c3],!0}addEventListener(Q,J,X){this.removeEventListener(Q,J);let q=Q.$proxies||(Q.$proxies={}),K={attach:KA,detach:BA,resize:FA}[J]||WA;q[J]=K(Q,J,X)}removeEventListener(Q,J){let X=Q.$proxies||(Q.$proxies={}),q=X[J];if(!q)return;({attach:mU,detach:mU,resize:mU}[J]||NA)(Q,J,q),X[J]=void 0}getDevicePixelRatio(){return window.devicePixelRatio}getMaximumSize(Q,J,X,q){return Uz(Q,J,X,q)}isAttached(Q){let J=Q&&g3(Q);return!!(J&&J.isConnected)}}function wA(Q){if(!y3()||typeof OffscreenCanvas<"u"&&Q instanceof OffscreenCanvas)return RT;return PT}class O8{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 U$(this.x)&&U$(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 RA(Q,J){let X=Q.options.ticks,q=zA(Q),N=Math.min(X.maxTicksLimit||q,q),K=X.major.enabled?PA(J):[],H=K.length,M=K[0],F=K[H-1],w=[];if(H>N)return LA(J,w,K,H/N),w;let z=TA(K,J,N);if(H>0){let T,L,I=H>1?Math.round((F-M)/(H-1)):null;x3(J,w,z,$1(I)?0:M-I,M);for(T=0,L=H-1;T<L;T++)x3(J,w,z,K[T],K[T+1]);return x3(J,w,z,F,$1(I)?J.length:F+I),w}return x3(J,w,z),w}function zA(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 TA(Q,J,X){let q=CA(Q),N=J.length/X;if(!q)return Math.max(N,1);let K=xR(q);for(let H=0,M=K.length-1;H<M;H++){let F=K[H];if(F>N)return F}return Math.max(N,1)}function PA(Q){let J=[],X,q;for(X=0,q=Q.length;X<q;X++)if(Q[X].major)J.push(X);return J}function LA(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 x3(Q,J,X,q,N){let K=c0(q,0),H=Math.min(c0(N,Q.length),Q.length),M=0,F,w,z;if(X=Math.ceil(X),N)F=N-q,X=F/Math.floor(F/X);z=K;while(z<0)M++,z=Math.round(K+M*X);for(w=Math.max(K,0);w<H;w++)if(w===z)J.push(Q[w]),M++,z=Math.round(K+M*X)}function CA(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 _A=(Q)=>Q==="left"?"right":Q==="right"?"left":Q,Sz=(Q,J,X)=>J==="top"||J==="left"?Q[J]+X:Q[J]-X,Dz=(Q,J)=>Math.min(J||Q,Q);function vz(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 IA(Q,J,X){let q=Q.ticks.length,N=Math.min(J,q-1),K=Q._startPixel,H=Q._endPixel,M=0.000001,F=Q.getPixelForTick(N),w;if(X){if(q===1)w=Math.max(F-K,H-F);else if(J===0)w=(Q.getPixelForTick(1)-F)/2;else w=(F-Q.getPixelForTick(N-1))/2;if(F+=N<J?w:-w,F<K-0.000001||F>H+0.000001)return}return F}function VA(Q,J){K1(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 wQ(Q){return Q.drawTicks?Q.tickLength:0}function bz(Q,J){if(!Q.display)return 0;let X=a1(Q.font,J),q=R5(Q.padding);return(_1(Q.text)?Q.text.length:1)*X.lineHeight+q.height}function OA(Q,J){return _8(Q,{scale:J,type:"scale"})}function EA(Q,J,X){return _8(Q,{tick:X,index:J,type:"tick"})}function AA(Q,J,X){let q=D3(Q);if(X&&J!=="right"||!X&&J==="right")q=_A(q);return q}function jA(Q,J,X,q){let{top:N,left:K,bottom:H,right:M,chart:F}=Q,{chartArea:w,scales:z}=F,T=0,L,I,E,O=H-N,V=M-K;if(Q.isHorizontal()){if(I=w5(q,K,M),i0(X)){let D=Object.keys(X)[0],h=X[D];E=z[D].getPixelForValue(h)+O-J}else if(X==="center")E=(w.bottom+w.top)/2+O-J;else E=Sz(Q,X,J);L=M-K}else{if(i0(X)){let D=Object.keys(X)[0],h=X[D];I=z[D].getPixelForValue(h)-V+J}else if(X==="center")I=(w.left+w.right)/2-V+J;else I=Sz(Q,X,J);E=w5(q,H,N),T=X==="left"?-s5:s5}return{titleX:I,titleY:E,maxWidth:L,rotation:T}}class h9 extends O8{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=i5(Q,Number.POSITIVE_INFINITY),J=i5(J,Number.NEGATIVE_INFINITY),X=i5(X,Number.POSITIVE_INFINITY),q=i5(q,Number.NEGATIVE_INFINITY),{min:i5(Q,X),max:i5(J,q),minDefined:b1(Q),maxDefined:b1(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 M=0,F=H.length;M<F;++M){if(K=H[M].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:i5(J,i5(X,J)),max:i5(X,i5(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(){T1(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=Jz(this,N,q),this._dataLimitsCached=!0;this.beforeBuildTicks(),this.ticks=this.buildTicks()||[],this.afterBuildTicks();let M=H<this.ticks.length;if(this._convertTicksToLabels(M?vz(this.ticks,H):this.ticks),this.configure(),this.beforeCalculateLabelRotation(),this.calculateLabelRotation(),this.afterCalculateLabelRotation(),K.display&&(K.autoSkip||K.source==="auto"))this.ticks=RA(this,this.ticks),this._labelSizes=null,this.afterAutoSkip();if(M)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(){T1(this.options.afterUpdate,[this])}beforeSetDimensions(){T1(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(){T1(this.options.afterSetDimensions,[this])}_callHooks(Q){this.chart.notifyPlugins(Q,this.getContext()),T1(this.options[Q],[this])}beforeDataLimits(){this._callHooks("beforeDataLimits")}determineDataLimits(){}afterDataLimits(){this._callHooks("afterDataLimits")}beforeBuildTicks(){this._callHooks("beforeBuildTicks")}buildTicks(){return[]}afterBuildTicks(){this._callHooks("afterBuildTicks")}beforeTickToLabelConversion(){T1(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=T1(J.callback,[N.value,X,Q],this)}afterTickToLabelConversion(){T1(this.options.afterTickToLabelConversion,[this])}beforeCalculateLabelRotation(){T1(this.options.beforeCalculateLabelRotation,[this])}calculateLabelRotation(){let Q=this.options,J=Q.ticks,X=Dz(this.ticks.length,Q.ticks.maxTicksLimit),q=J.minRotation||0,N=J.maxRotation,K=q,H,M,F;if(!this._isVisible()||!J.display||q>=N||X<=1||!this.isHorizontal()){this.labelRotation=q;return}let w=this._getLabelSizes(),z=w.widest.width,T=w.highest.height,L=o5(this.chart.width-z,0,this.maxWidth);if(H=Q.offset?this.maxWidth/X:L/(X-1),z+6>H)H=L/(X-(Q.offset?0.5:1)),M=this.maxHeight-wQ(Q.grid)-J.padding-bz(Q.title,this.chart.options.font),F=Math.sqrt(z*z+T*T),K=j3(Math.min(Math.asin(o5((w.highest.height+6)/H,-1,1)),Math.asin(o5(M/F,-1,1))-Math.asin(o5(T/F,-1,1)))),K=Math.max(q,Math.min(N,K));this.labelRotation=K}afterCalculateLabelRotation(){T1(this.options.afterCalculateLabelRotation,[this])}afterAutoSkip(){}beforeFit(){T1(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 M=bz(q,J.options.font);if(H)Q.width=this.maxWidth,Q.height=wQ(N)+M;else Q.height=this.maxHeight,Q.width=wQ(N)+M;if(X.display&&this.ticks.length){let{first:F,last:w,widest:z,highest:T}=this._getLabelSizes(),L=X.padding*2,I=L8(this.labelRotation),E=Math.cos(I),O=Math.sin(I);if(H){let V=X.mirror?0:O*z.width+E*T.height;Q.height=Math.min(this.maxHeight,Q.height+V+L)}else{let V=X.mirror?0:E*z.width+O*T.height;Q.width=Math.min(this.maxWidth,Q.width+V+L)}this._calculatePadding(F,w,O,E)}}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,M=this.labelRotation!==0,F=H!=="top"&&this.axis==="x";if(this.isHorizontal()){let w=this.getPixelForTick(0)-this.left,z=this.right-this.getPixelForTick(this.ticks.length-1),T=0,L=0;if(M)if(F)T=q*Q.width,L=X*J.height;else T=X*Q.height,L=q*J.width;else if(N==="start")L=J.width;else if(N==="end")T=Q.width;else if(N!=="inner")T=Q.width/2,L=J.width/2;this.paddingLeft=Math.max((T-w+K)*this.width/(this.width-w),0),this.paddingRight=Math.max((L-z+K)*this.width/(this.width-z),0)}else{let w=J.height/2,z=Q.height/2;if(N==="start")w=0,z=Q.height;else if(N==="end")w=J.height,z=0;this.paddingTop=w+K,this.paddingBottom=z+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(){T1(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($1(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=vz(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=[],M=Math.floor(J/Dz(J,X)),F=0,w=0,z,T,L,I,E,O,V,D,h,p,s;for(z=0;z<J;z+=M){if(I=Q[z].label,E=this._resolveTickFontOptions(z),q.font=O=E.string,V=N[O]=N[O]||{data:{},gc:[]},D=E.lineHeight,h=p=0,!$1(I)&&!_1(I))h=YQ(q,V.data,V.gc,h,I),p=D;else if(_1(I)){for(T=0,L=I.length;T<L;++T)if(s=I[T],!$1(s)&&!_1(s))h=YQ(q,V.data,V.gc,h,s),p+=D}K.push(h),H.push(p),F=Math.max(h,F),w=Math.max(p,w)}VA(N,J);let n=K.indexOf(F),$0=H.indexOf(w),a=(o)=>({width:K[o]||0,height:H[o]||0});return{first:a(0),last:a(J-1),widest:a(n),highest:a($0),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 pR(this._alignToPixels?j2(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=EA(this.getContext(),Q,X))}return this.$context||(this.$context=OA(this.chart.getContext(),this))}_tickSize(){let Q=this.options.ticks,J=L8(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,M=N?N.highest.height+K:0;return this.isHorizontal()?M*X>H*q?H/X:M/q:M*q<H*X?M/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,M=N.offset,F=this.isHorizontal(),z=this.ticks.length+(M?1:0),T=wQ(N),L=[],I=H.setContext(this.getContext()),E=I.display?I.width:0,O=E/2,V=function(l){return j2(X,l,E)},D,h,p,s,n,$0,a,o,q0,d,K0,P0;if(K==="top")D=V(this.bottom),$0=this.bottom-T,o=D-O,d=V(Q.top)+O,P0=Q.bottom;else if(K==="bottom")D=V(this.top),d=Q.top,P0=V(Q.bottom)-O,$0=D+O,o=this.top+T;else if(K==="left")D=V(this.right),n=this.right-T,a=D-O,q0=V(Q.left)+O,K0=Q.right;else if(K==="right")D=V(this.left),q0=Q.left,K0=V(Q.right)-O,n=D+O,a=this.left+T;else if(J==="x"){if(K==="center")D=V((Q.top+Q.bottom)/2+0.5);else if(i0(K)){let l=Object.keys(K)[0],X0=K[l];D=V(this.chart.scales[l].getPixelForValue(X0))}d=Q.top,P0=Q.bottom,$0=D+O,o=$0+T}else if(J==="y"){if(K==="center")D=V((Q.left+Q.right)/2);else if(i0(K)){let l=Object.keys(K)[0],X0=K[l];D=V(this.chart.scales[l].getPixelForValue(X0))}n=D-O,a=n-T,q0=Q.left,K0=Q.right}let C0=c0(q.ticks.maxTicksLimit,z),D0=Math.max(1,Math.ceil(z/C0));for(h=0;h<z;h+=D0){let l=this.getContext(h),X0=N.setContext(l),B0=H.setContext(l),r0=X0.lineWidth,u0=X0.color,v=B0.dash||[],i=B0.dashOffset,H0=X0.tickWidth,F0=X0.tickColor,x0=X0.tickBorderDash||[],y1=X0.tickBorderDashOffset;if(p=IA(this,h,M),p===void 0)continue;if(s=j2(X,p,r0),F)n=a=q0=K0=s;else $0=o=d=P0=s;L.push({tx1:n,ty1:$0,tx2:a,ty2:o,x1:q0,y1:d,x2:K0,y2:P0,width:r0,color:u0,borderDash:v,borderDashOffset:i,tickWidth:H0,tickColor:F0,tickBorderDash:x0,tickBorderDashOffset:y1})}return this._ticksLength=z,this._borderValue=D,L}_computeLabelItems(Q){let J=this.axis,X=this.options,{position:q,ticks:N}=X,K=this.isHorizontal(),H=this.ticks,{align:M,crossAlign:F,padding:w,mirror:z}=N,T=wQ(X.grid),L=T+w,I=z?-w:L,E=-L8(this.labelRotation),O=[],V,D,h,p,s,n,$0,a,o,q0,d,K0,P0="middle";if(q==="top")n=this.bottom-I,$0=this._getXAxisLabelAlignment();else if(q==="bottom")n=this.top+I,$0=this._getXAxisLabelAlignment();else if(q==="left"){let D0=this._getYAxisLabelAlignment(T);$0=D0.textAlign,s=D0.x}else if(q==="right"){let D0=this._getYAxisLabelAlignment(T);$0=D0.textAlign,s=D0.x}else if(J==="x"){if(q==="center")n=(Q.top+Q.bottom)/2+L;else if(i0(q)){let D0=Object.keys(q)[0],l=q[D0];n=this.chart.scales[D0].getPixelForValue(l)+L}$0=this._getXAxisLabelAlignment()}else if(J==="y"){if(q==="center")s=(Q.left+Q.right)/2-L;else if(i0(q)){let D0=Object.keys(q)[0],l=q[D0];s=this.chart.scales[D0].getPixelForValue(l)}$0=this._getYAxisLabelAlignment(T).textAlign}if(J==="y"){if(M==="start")P0="top";else if(M==="end")P0="bottom"}let C0=this._getLabelSizes();for(V=0,D=H.length;V<D;++V){h=H[V],p=h.label;let D0=N.setContext(this.getContext(V));a=this.getPixelForTick(V)+N.labelOffset,o=this._resolveTickFontOptions(V),q0=o.lineHeight,d=_1(p)?p.length:1;let l=d/2,X0=D0.color,B0=D0.textStrokeColor,r0=D0.textStrokeWidth,u0=$0;if(K){if(s=a,$0==="inner")if(V===D-1)u0=!this.options.reverse?"right":"left";else if(V===0)u0=!this.options.reverse?"left":"right";else u0="center";if(q==="top")if(F==="near"||E!==0)K0=-d*q0+q0/2;else if(F==="center")K0=-C0.highest.height/2-l*q0+q0;else K0=-C0.highest.height+q0/2;else if(F==="near"||E!==0)K0=q0/2;else if(F==="center")K0=C0.highest.height/2-l*q0;else K0=C0.highest.height-d*q0;if(z)K0*=-1;if(E!==0&&!D0.showLabelBackdrop)s+=q0/2*Math.sin(E)}else n=a,K0=(1-d)*q0/2;let v;if(D0.showLabelBackdrop){let i=R5(D0.backdropPadding),H0=C0.heights[V],F0=C0.widths[V],x0=K0-i.top,y1=0-i.left;switch(P0){case"middle":x0-=H0/2;break;case"bottom":x0-=H0;break}switch($0){case"center":y1-=F0/2;break;case"right":y1-=F0;break;case"inner":if(V===D-1)y1-=F0;else if(V>0)y1-=F0/2;break}v={left:y1,top:x0,width:F0+i.width,height:H0+i.height,color:D0.backdropColor}}O.push({label:p,font:o,textOffset:K0,options:{rotation:E,color:X0,strokeColor:B0,strokeWidth:r0,textAlign:u0,textBaseline:P0,translation:[s,n],backdrop:v}})}return O}_getXAxisLabelAlignment(){let{position:Q,ticks:J}=this.options;if(-L8(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,M=K.widest.width,F,w;if(J==="left")if(q)if(w=this.right+N,X==="near")F="left";else if(X==="center")F="center",w+=M/2;else F="right",w+=M;else if(w=this.right-H,X==="near")F="right";else if(X==="center")F="center",w-=M/2;else F="left",w=this.left;else if(J==="right")if(q)if(w=this.left+N,X==="near")F="right";else if(X==="center")F="center",w-=M/2;else F="left",w-=M;else if(w=this.left+H,X==="near")F="left";else if(X==="center")F="center",w+=M/2;else F="right",w=this.right;else F="right";return{textAlign:F,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=(M,F,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(M.x,M.y),X.lineTo(F.x,F.y),X.stroke(),X.restore()};if(J.display)for(N=0,K=q.length;N<K;++N){let M=q[N];if(J.drawOnChartArea)H({x:M.x1,y:M.y1},{x:M.x2,y:M.y2},M);if(J.drawTicks)H({x:M.tx1,y:M.ty1},{x:M.tx2,y:M.ty2},{color:M.tickColor,width:M.tickWidth,borderDash:M.tickBorderDash,borderDashOffset:M.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,M=this._borderValue,F,w,z,T;if(this.isHorizontal())F=j2(Q,this.left,K)-K/2,w=j2(Q,this.right,H)+H/2,z=T=M;else z=j2(Q,this.top,K)-K/2,T=j2(Q,this.bottom,H)+H/2,F=w=M;J.save(),J.lineWidth=N.width,J.strokeStyle=N.color,J.beginPath(),J.moveTo(F,z),J.lineTo(w,T),J.stroke(),J.restore()}drawLabels(Q){if(!this.options.ticks.display)return;let X=this.ctx,q=this._computeLabelArea();if(q)KQ(X,q);let N=this.getLabelItems(Q);for(let K of N){let{options:H,font:M,label:F,textOffset:w}=K;S2(X,F,0,w,M,H)}if(q)BQ(X)}drawTitle(){let{ctx:Q,options:{position:J,title:X,reverse:q}}=this;if(!X.display)return;let N=a1(X.font),K=R5(X.padding),H=X.align,M=N.lineHeight/2;if(J==="bottom"||J==="center"||i0(J)){if(M+=K.bottom,_1(X.text))M+=N.lineHeight*(X.text.length-1)}else M+=K.top;let{titleX:F,titleY:w,maxWidth:z,rotation:T}=jA(this,M,J,H);S2(Q,X.text,0,0,N,{color:X.color,maxWidth:z,rotation:T,textAlign:AA(H,J,q),textBaseline:"middle",translation:[F,w],strokeColor:X.strokeColor,strokeWidth:X.strokeWidth})}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=c0(Q.grid&&Q.grid.z,-1),q=c0(Q.border&&Q.border.z,0);if(!this._isVisible()||this.draw!==h9.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 a1(J.font)}_maxDigits(){let Q=this._resolveTickFontOptions(0).lineHeight;return(this.isHorizontal()?this.width:this.height)/Q}}class TQ{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(vA(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,SA(Q,K,X),this.override)k1.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 k1[q]){if(delete k1[q][X],this.override)delete A2[X]}}}function SA(Q,J,X){let q=G$(Object.create(null),[X?k1.get(X):{},k1.get(J),Q.defaults]);if(k1.set(J,q),Q.defaultRoutes)DA(J,Q.defaultRoutes);if(Q.descriptors)k1.describe(J,Q.descriptors)}function DA(Q,J){Object.keys(J).forEach((X)=>{let q=X.split("."),N=q.pop(),K=[Q].concat(q).join("."),H=J[X].split("."),M=H.pop(),F=H.join(".");k1.route(K,N,F,M)})}function vA(Q){return"id"in Q&&"defaults"in Q}class LT{constructor(){this.controllers=new TQ(s3,"datasets",!0),this.elements=new TQ(O8,"elements"),this.plugins=new TQ(Object,"plugins"),this.scales=new TQ(h9,"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 K1(q,(K)=>{let H=X||this._getRegistryForType(K);this._exec(Q,H,K)})})}_exec(Q,J,X){let q=A3(Q);T1(X["before"+q],[],X),J[Q](X),T1(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 u4=new LT;class CT{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],M=[J,q,N.options];if(T1(H,M,K)===!1&&q.cancelable)return!1}return!0}invalidate(){if(!$1(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=c0(X.options&&X.options.plugins,{}),N=bA(X);return q===!1&&!J?[]:fA(Q,N,q,J)}_notifyStateChanges(Q){let J=this._oldCache||[],X=this._cache,q=(N,K)=>N.filter((H)=>!K.some((M)=>H.plugin.id===M.plugin.id));this._notify(q(J,X),Q,"stop"),this._notify(q(X,J),Q,"start")}}function bA(Q){let J={},X=[],q=Object.keys(u4.plugins.items);for(let K=0;K<q.length;K++)X.push(u4.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 kA(Q,J){if(!J&&Q===!1)return null;if(Q===!0)return{};return Q}function fA(Q,{plugins:J,localIds:X},q,N){let K=[],H=Q.getContext();for(let M of J){let F=M.id,w=kA(q[F],N);if(w===null)continue;K.push({plugin:M,options:yA(Q.config,{plugin:M,local:X[F]},w,H)})}return K}function yA(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 rU(Q,J){let X=k1.datasets[Q]||{};return((J.datasets||{})[Q]||{}).indexAxis||J.indexAxis||X.indexAxis||"x"}function gA(Q,J){let X=Q;if(Q==="_index_")X=J;else if(Q==="_value_")X=J==="x"?"y":"x";return X}function hA(Q,J){return Q===J?"_index_":"_value_"}function kz(Q){if(Q==="x"||Q==="y"||Q==="r")return Q}function uA(Q){if(Q==="top"||Q==="bottom")return"x";if(Q==="left"||Q==="right")return"y"}function sU(Q,...J){if(kz(Q))return Q;for(let X of J){let q=X.axis||uA(X.position)||Q.length>1&&kz(Q[0].toLowerCase());if(q)return q}throw Error(`Cannot determine type of '${Q}' axis. Please provide 'axis' or 'position' option.`)}function fz(Q,J,X){if(X[J+"AxisID"]===Q)return{axis:J}}function xA(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 fz(Q,"x",X[0])||fz(Q,"y",X[0])}return{}}function mA(Q,J){let X=A2[Q.type]||{scales:{}},q=J.scales||{},N=rU(Q.type,J),K=Object.create(null);return Object.keys(q).forEach((H)=>{let M=q[H];if(!i0(M))return console.error(`Invalid scale configuration for scale: ${H}`);if(M._proxy)return console.warn(`Ignoring resolver passed as options for scale: ${H}`);let F=sU(H,M,xA(H,Q),k1.scales[M.type]),w=hA(F,N),z=X.scales||{};K[H]=q$(Object.create(null),[{axis:F},M,z[F],z[w]])}),Q.data.datasets.forEach((H)=>{let M=H.type||Q.type,F=H.indexAxis||rU(M,J),z=(A2[M]||{}).scales||{};Object.keys(z).forEach((T)=>{let L=gA(T,F),I=H[L+"AxisID"]||L;K[I]=K[I]||Object.create(null),q$(K[I],[{axis:L},q[I],z[T]])})}),Object.keys(K).forEach((H)=>{let M=K[H];q$(M,[k1.scales[M.type],k1.scale])}),K}function _T(Q){let J=Q.options||(Q.options={});J.plugins=c0(J.plugins,{}),J.scales=mA(Q,J)}function IT(Q){return Q=Q||{},Q.datasets=Q.datasets||[],Q.labels=Q.labels||[],Q}function dA(Q){return Q=Q||{},Q.data=IT(Q.data),_T(Q),Q}var yz=new Map,VT=new Set;function m3(Q,J){let X=yz.get(Q);if(!X)X=J(),yz.set(Q,X),VT.add(X);return X}var RQ=(Q,J,X)=>{let q=k9(J,X);if(q!==void 0)Q.add(q)};class OT{constructor(Q){this._config=dA(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=IT(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(),_T(Q)}clearCache(){this._scopeCache.clear(),this._resolverCache.clear()}datasetScopeKeys(Q){return m3(Q,()=>[[`datasets.${Q}`,""]])}datasetAnimationScopeKeys(Q,J){return m3(`${Q}.transition.${J}`,()=>[[`datasets.${Q}.transitions.${J}`,`transitions.${J}`],[`datasets.${Q}`,""]])}datasetElementScopeKeys(Q,J){return m3(`${Q}-${J}`,()=>[[`datasets.${Q}.elements.${J}`,`datasets.${Q}`,`elements.${J}`,""]])}pluginScopeKeys(Q){let J=Q.id,X=this.type;return m3(`${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 M=new Set;J.forEach((w)=>{if(Q)M.add(Q),w.forEach((z)=>RQ(M,Q,z));w.forEach((z)=>RQ(M,q,z)),w.forEach((z)=>RQ(M,A2[N]||{},z)),w.forEach((z)=>RQ(M,k1,z)),w.forEach((z)=>RQ(M,b3,z))});let F=Array.from(M);if(F.length===0)F.push(Object.create(null));if(VT.has(J))K.set(J,F);return F}chartOptionScopes(){let{options:Q,type:J}=this;return[Q,A2[J]||{},k1.datasets[J]||{},{type:J},k1,b3]}resolveNamedOptions(Q,J,X,q=[""]){let N={$shared:!0},{resolver:K,subPrefixes:H}=gz(this._resolverCache,Q,q),M=K;if(cA(K,J)){N.$shared=!1,X=T8(X)?X():X;let F=this.createResolver(Q,X,H);M=b9(K,X,F)}for(let F of J)N[F]=M[F];return N}createResolver(Q,J,X=[""],q){let{resolver:N}=gz(this._resolverCache,Q,X);return i0(J)?b9(N,J,void 0,q):N}}function gz(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:f3(J,X),subPrefixes:X.filter((M)=>!M.toLowerCase().includes("hover"))},q.set(N,K);return K}var pA=(Q)=>i0(Q)&&Object.getOwnPropertyNames(Q).some((J)=>T8(Q[J]));function cA(Q,J){let{isScriptable:X,isIndexable:q}=VU(Q);for(let N of J){let K=X(N),H=q(N),M=(H||K)&&Q[N];if(K&&(T8(M)||pA(M))||H&&_1(M))return!0}return!1}var lA="4.6.1",rA=["top","bottom","left","right","chartArea"];function hz(Q,J){return Q==="top"||Q==="bottom"||rA.indexOf(Q)===-1&&J==="x"}function uz(Q,J){return function(X,q){return X[Q]===q[Q]?X[J]-q[J]:X[Q]-q[Q]}}function xz(Q){let J=Q.chart,X=J.options.animation;J.notifyPlugins("afterRender"),T1(X&&X.onComplete,[Q],J)}function sA(Q){let J=Q.chart,X=J.options.animation;T1(X&&X.onProgress,[Q],J)}function ET(Q){if(y3()&&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 l3={},mz=(Q)=>{let J=ET(Q);return Object.values(l3).filter((X)=>X.canvas===J).pop()};function nA(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 oA(Q,J,X,q){if(!X||Q.type==="mouseout")return null;if(q)return J;return Q}class u9{static defaults=k1;static instances=l3;static overrides=A2;static registry=u4;static version=lA;static getChart=mz;static register(...Q){u4.add(...Q),dz()}static unregister(...Q){u4.remove(...Q),dz()}constructor(Q,J){let X=this.config=new OT(J),q=ET(Q),N=mz(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||wA(q)),this.platform.updateConfig(X);let H=this.platform.acquireContext(q,K.aspectRatio),M=H&&H.canvas,F=M&&M.height,w=M&&M.width;if(this.id=yR(),this.ctx=H,this.canvas=M,this.width=w,this.height=F,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 CT,this.$proxies={},this._hiddenIndices={},this.attached=!1,this._animationsDisabled=void 0,this.$context=void 0,this._doResize=nR((z)=>this.update(z),K.resizeDelay||0),this._dataChanges=[],l3[this.id]=this,!H||!M){console.error("Failed to create chart: can't acquire context from the given item");return}if(I8.listen(this,"complete",xz),I8.listen(this,"progress",sA),this._initialize(),this.attached)this.update()}get aspectRatio(){let{options:{aspectRatio:Q,maintainAspectRatio:J},width:X,height:q,_aspectRatio:N}=this;if(!$1(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 u4}_initialize(){if(this.notifyPlugins("beforeInit"),this.options.responsive)this.resize();else AU(this,this.options.devicePixelRatio);return this.bindEvents(),this.notifyPlugins("afterInit"),this}clear(){return LU(this.canvas,this.ctx),this}stop(){return I8.stop(this),this}resize(Q,J){if(!I8.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(),M=this.width?"resize":"attach";if(this.width=K.width,this.height=K.height,this._aspectRatio=this.aspectRatio,!AU(this,H,!0))return;if(this.notifyPlugins("resize",{size:K}),T1(X.onResize,[this,K],this),this.attached){if(this._doResize(M))this.render()}}ensureScalesHaveIDs(){let J=this.options.scales||{};K1(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],M=sU(K,H),F=M==="r",w=M==="x";return{options:H,dposition:F?"chartArea":w?"bottom":"left",dtype:F?"radialLinear":w?"category":"linear"}}));K1(N,(K)=>{let H=K.options,M=H.id,F=sU(M,H),w=c0(H.type,K.dtype);if(H.position===void 0||hz(H.position,F)!==hz(K.dposition))H.position=K.dposition;q[M]=!0;let z=null;if(M in X&&X[M].type===w)z=X[M];else z=new(u4.getScale(w))({id:M,type:w,ctx:this.ctx,chart:this}),X[z.id]=z;z.init(H,Q)}),K1(q,(K,H)=>{if(!K)delete X[H]}),K1(X,(K)=>{x6.configure(this,K,K.options),x6.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(uz("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||rU(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 M=u4.getController(H),{datasetElementType:F,dataElementType:w}=k1.datasets[H];Object.assign(M,{dataElementType:u4.getElement(w),datasetElementType:F&&u4.getElement(F)}),K.controller=new M(this,X),Q.push(K.controller)}}return this._updateMetasets(),Q}_resetElements(){K1(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 F=0,w=this.data.datasets.length;F<w;F++){let{controller:z}=this.getDatasetMeta(F),T=!q&&N.indexOf(z)===-1;z.buildOrUpdateElements(T),K=Math.max(+z.getMaxOverflow(),K)}if(K=this._minPadding=X.layout.autoPadding?K:0,this._updateLayout(K),!q)K1(N,(F)=>{F.reset()});this._updateDatasets(Q),this.notifyPlugins("afterUpdate",{mode:Q}),this._layers.sort(uz("z","_idx"));let{_active:H,_lastEvent:M}=this;if(M)this._eventHandler(M,!0);else if(H.length)this._updateHoverStyles(H,H,!0);this.render()}_updateScales(){K1(this.scales,(Q)=>{x6.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(!KU(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;nA(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(!KU(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;x6.update(this,this.width,this.height,Q);let J=this.chartArea,X=J.width<=0||J.height<=0;this._layers=[],K1(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,T8(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(I8.has(this)){if(this.attached&&!I8.running(this))I8.start(this)}else this.draw(),xz({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=kU(this,Q);if(this.notifyPlugins("beforeDatasetDraw",X)===!1)return;if(q)KQ(J,q);if(Q.controller.draw(),q)BQ(J);X.cancelable=!1,this.notifyPlugins("afterDatasetDraw",X)}isPointInArea(Q){return y4(Q,this.chartArea,this._minPadding)}getElementsAtEventForMode(Q,J,X,q){let N=aE.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=_8(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(Y$(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(),I8.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(),LU(Q,J),this.platform.releaseContext(J),this.canvas=null,this.ctx=null;delete l3[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)};K1(this.options.events,(N)=>X(N,q))}bindResponsiveEvents(){if(!this._responsiveListeners)this._responsiveListeners={};let Q=this._responsiveListeners,J=this.platform,X=(M,F)=>{J.addEventListener(this,M,F),Q[M]=F},q=(M,F)=>{if(Q[M])J.removeEventListener(this,M,F),delete Q[M]},N=(M,F)=>{if(this.canvas)this.resize(M,F)},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(){K1(this._listeners,(Q,J)=>{this.platform.removeEventListener(this,J,Q)}),this._listeners={},K1(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,M;if(J==="dataset")N=this.getDatasetMeta(Q[0].datasetIndex),N.controller["_"+q+"DatasetHoverStyle"]();for(H=0,M=Q.length;H<M;++H){K=Q[H];let F=K&&this.getDatasetMeta(K.datasetIndex).controller;if(F)F[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(!NQ(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=(M,F)=>M.filter((w)=>!F.some((z)=>w.datasetIndex===z.datasetIndex&&w.index===z.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),M=uR(Q),F=oA(Q,this._lastEvent,X,M);if(X){if(this._lastEvent=null,T1(N.onHover,[Q,H,this],this),M)T1(N.onClick,[Q,H,this],this)}let w=!NQ(H,q);if(w||J)this._active=H,this._updateHoverStyles(H,q,J);return this._lastEvent=F,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 dz(){return K1(u9.instances,(Q)=>Q._plugins.invalidate())}function AT(Q,J,X=J){Q.lineCap=c0(X.borderCapStyle,J.borderCapStyle),Q.setLineDash(c0(X.borderDash,J.borderDash)),Q.lineDashOffset=c0(X.borderDashOffset,J.borderDashOffset),Q.lineJoin=c0(X.borderJoinStyle,J.borderJoinStyle),Q.lineWidth=c0(X.borderWidth,J.borderWidth),Q.strokeStyle=c0(X.borderColor,J.borderColor)}function iA(Q,J,X){Q.lineTo(X.x,X.y)}function aA(Q){if(Q.stepped)return Zz;if(Q.tension||Q.cubicInterpolationMode==="monotone")return Qz;return iA}function jT(Q,J,X={}){let q=Q.length,{start:N=0,end:K=q-1}=X,{start:H,end:M}=J,F=Math.max(N,H),w=Math.min(K,M),z=N<H&&K<H||N>M&&K>M;return{count:q,start:F,loop:J.loop,ilen:w<F&&!z?q+w-F:w-F}}function tA(Q,J,X,q){let{points:N,options:K}=J,{count:H,start:M,loop:F,ilen:w}=jT(N,X,q),z=aA(K),{move:T=!0,reverse:L}=q||{},I,E,O;for(I=0;I<=w;++I){if(E=N[(M+(L?w-I:I))%H],E.skip)continue;else if(T)Q.moveTo(E.x,E.y),T=!1;else z(Q,O,E,L,K.stepped);O=E}if(F)E=N[(M+(L?w:0))%H],z(Q,O,E,L,K.stepped);return!!F}function eA(Q,J,X,q){let N=J.points,{count:K,start:H,ilen:M}=jT(N,X,q),{move:F=!0,reverse:w}=q||{},z=0,T=0,L,I,E,O,V,D,h=(s)=>(H+(w?M-s:s))%K,p=()=>{if(O!==V)Q.lineTo(z,V),Q.lineTo(z,O),Q.lineTo(z,D)};if(F)I=N[h(0)],Q.moveTo(I.x,I.y);for(L=0;L<=M;++L){if(I=N[h(L)],I.skip)continue;let{x:s,y:n}=I,$0=s|0;if($0===E){if(n<O)O=n;else if(n>V)V=n;z=(T*z+s)/++T}else p(),Q.lineTo(s,n),E=$0,T=0,O=V=n;D=n}p()}function nU(Q){let J=Q.options,X=J.borderDash&&J.borderDash.length;return!Q._decimated&&!Q._loop&&!J.tension&&J.cubicInterpolationMode!=="monotone"&&!J.stepped&&!X?eA:tA}function $j(Q){if(Q.stepped)return Bz;if(Q.tension||Q.cubicInterpolationMode==="monotone")return Hz;return V2}function Zj(Q,J,X,q){let N=J._path;if(!N){if(N=J._path=new Path2D,J.path(N,X,q))N.closePath()}AT(Q,J.options),Q.stroke(N)}function Qj(Q,J,X,q){let{segments:N,options:K}=J,H=nU(J);for(let M of N){if(AT(Q,K,M.style),Q.beginPath(),H(Q,J,M,{start:X,end:X+q-1}))Q.closePath();Q.stroke()}}var Jj=typeof Path2D==="function";function Gj(Q,J,X,q){if(Jj&&!J.options.segment)Zj(Q,J,X,q);else Qj(Q,J,X,q)}class B$ extends O8{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;Nz(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=Fz(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=bU(this,{property:J,start:q,end:q});if(!K.length)return;let H=[],M=$j(X),F,w;for(F=0,w=K.length;F<w;++F){let{start:z,end:T}=K[F],L=N[z],I=N[T];if(L===I){H.push(L);continue}let E=Math.abs((q-L[J])/(I[J]-L[J])),O=M(L,I,E,X.stepped);O[J]=Q[J],H.push(O)}return H.length===1?H[0]:H}pathSegment(Q,J,X){return nU(this)(Q,this,J,X)}path(Q,J,X){let q=this.segments,N=nU(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(),Gj(Q,this,X,q),Q.restore();if(this.animated)this._pointsUpdated=!1,this._path=void 0}}function pz(Q,J,X,q){let N=Q.options,{[X]:K}=Q.getProps([X],q);return Math.abs(J-K)<N.radius+N.hitRadius}class XK extends O8{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 pz(this,Q,"x",J)}inYRange(Q,J){return pz(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||!y4(this,J,this.size(X)/2))return;Q.strokeStyle=X.borderColor,Q.lineWidth=X.borderWidth,Q.fillStyle=X.backgroundColor,k3(Q,X,this.x,this.y)}getRange(){let Q=this.options||{};return Q.radius+Q.hitRadius}}function ST(Q,J){let{x:X,y:q,base:N,width:K,height:H}=Q.getProps(["x","y","base","width","height"],J),M,F,w,z,T;if(Q.horizontal)T=H/2,M=Math.min(X,N),F=Math.max(X,N),w=q-T,z=q+T;else T=K/2,M=X-T,F=X+T,w=Math.min(q,N),z=Math.max(q,N);return{left:M,top:w,right:F,bottom:z}}function b2(Q,J,X,q){return Q?0:o5(J,X,q)}function Xj(Q,J,X){let q=Q.options.borderWidth,N=Q.borderSkipped,K=IU(q);return{t:b2(N.top,K.top,0,X),r:b2(N.right,K.right,0,J),b:b2(N.bottom,K.bottom,0,X),l:b2(N.left,K.left,0,J)}}function qj(Q,J,X){let{enableBorderRadius:q}=Q.getProps(["enableBorderRadius"]),N=Q.options.borderRadius,K=D2(N),H=Math.min(J,X),M=Q.borderSkipped,F=q||i0(N);return{topLeft:b2(!F||M.top||M.left,K.topLeft,0,H),topRight:b2(!F||M.top||M.right,K.topRight,0,H),bottomLeft:b2(!F||M.bottom||M.left,K.bottomLeft,0,H),bottomRight:b2(!F||M.bottom||M.right,K.bottomRight,0,H)}}function Yj(Q){let J=ST(Q),X=J.right-J.left,q=J.bottom-J.top,N=Xj(Q,X/2,q/2),K=qj(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 dU(Q,J,X,q){let N=J===null,K=X===null,M=Q&&!(N&&K)&&ST(Q,q);return M&&(N||C8(J,M.left,M.right))&&(K||C8(X,M.top,M.bottom))}function Nj(Q){return Q.topLeft||Q.topRight||Q.bottomLeft||Q.bottomRight}function Uj(Q,J){Q.rect(J.x,J.y,J.w,J.h)}function pU(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 qK extends O8{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}=Yj(this),H=Nj(K.radius)?K$:Uj;if(Q.save(),K.w!==N.w||K.h!==N.h)Q.beginPath(),H(Q,pU(K,J,N)),Q.clip(),H(Q,pU(N,-J,K)),Q.fillStyle=X,Q.fill("evenodd");Q.beginPath(),H(Q,pU(N,J)),Q.fillStyle=q,Q.fill(),Q.restore()}inRange(Q,J,X){return dU(this,Q,J,X)}inXRange(Q,J){return dU(this,Q,null,J)}inYRange(Q,J){return dU(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 Kj(Q,J,X){let{segments:q,points:N}=Q,K=J.points,H=[];for(let M of q){let{start:F,end:w}=M;w=n3(F,w,N);let z=oU(X,N[F],N[w],M.loop);if(!J.segments){H.push({source:M,target:z,start:N[F],end:N[w]});continue}let T=bU(J,z);for(let L of T){let I=oU(X,K[L.start],K[L.end],L.loop),E=vU(M,N,I);for(let O of E)H.push({source:O,target:L,start:{[X]:cz(z,I,"start",Math.max)},end:{[X]:cz(z,I,"end",Math.min)}})}}return H}function oU(Q,J,X,q){if(q)return;let N=J[Q],K=X[Q];if(Q==="angle")N=r5(N),K=r5(K);return{property:Q,start:N,end:K}}function Bj(Q,J){let{x:X=null,y:q=null}=Q||{},N=J.points,K=[];return J.segments.forEach(({start:H,end:M})=>{M=n3(H,M,N);let F=N[H],w=N[M];if(q!==null)K.push({x:F.x,y:q}),K.push({x:w.x,y:q});else if(X!==null)K.push({x:X,y:F.y}),K.push({x:X,y:w.y})}),K}function n3(Q,J,X){for(;J>Q;J--){let q=X[J];if(!isNaN(q.x)&&!isNaN(q.y))break}return J}function cz(Q,J,X,q){if(Q&&J)return q(Q[X],J[X]);return Q?Q[X]:J?J[X]:0}function DT(Q,J){let X=[],q=!1;if(_1(Q))q=!0,X=Q;else X=Bj(Q,J);return X.length?new B$({points:X,options:{tension:0},_loop:q,_fullLoop:q}):null}function lz(Q){return Q&&Q.fill!==!1}function Hj(Q,J,X){let N=Q[J].fill,K=[J],H;if(!X)return N;while(N!==!1&&K.indexOf(N)===-1){if(!b1(N))return N;if(H=Q[N],!H)return!1;if(H.visible)return N;K.push(N),N=H.fill}return!1}function Mj(Q,J,X){let q=Rj(Q);if(i0(q))return isNaN(q.value)?!1:q;let N=parseFloat(q);if(b1(N)&&Math.floor(N)===N)return Fj(q[0],J,N,X);return["origin","start","end","stack","shape"].indexOf(q)>=0&&q}function Fj(Q,J,X,q){if(Q==="-"||Q==="+")X=J+X;if(X===J||X<0||X>=q)return!1;return X}function Wj(Q,J){let X=null;if(Q==="start")X=J.bottom;else if(Q==="end")X=J.top;else if(i0(Q))X=J.getPixelForValue(Q.value);else if(J.getBasePixel)X=J.getBasePixel();return X}function wj(Q,J,X){let q;if(Q==="start")q=X;else if(Q==="end")q=J.options.reverse?J.min:J.max;else if(i0(Q))q=Q.value;else q=J.getBaseValue();return q}function Rj(Q){let J=Q.options,X=J.fill,q=c0(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 zj(Q){let{scale:J,index:X,line:q}=Q,N=[],K=q.segments,H=q.points,M=Tj(J,X);M.push(DT({x:null,y:J.bottom},q));for(let F=0;F<K.length;F++){let w=K[F];for(let z=w.start;z<=w.end;z++)Pj(N,H[z],M)}return new B$({points:N,options:{}})}function Tj(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 Pj(Q,J,X){let q=[];for(let N=0;N<X.length;N++){let K=X[N],{first:H,last:M,point:F}=Lj(K,J,"x");if(!F||H&&M)continue;if(H)q.unshift(F);else if(Q.push(F),!M)break}Q.push(...q)}function Lj(Q,J,X){let q=Q.interpolate(J,X);if(!q)return{};let N=q[X],K=Q.segments,H=Q.points,M=!1,F=!1;for(let w=0;w<K.length;w++){let z=K[w],T=H[z.start][X],L=H[z.end][X];if(C8(N,T,L)){M=N===T,F=N===L;break}}return{first:M,last:F,point:q}}class YK{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:n5},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 Cj(Q){let{chart:J,fill:X,line:q}=Q;if(b1(X))return _j(J,X);if(X==="stack")return zj(Q);if(X==="shape")return!0;let N=Ij(Q);if(N instanceof YK)return N;return DT(N,q)}function _j(Q,J){let X=Q.getDatasetMeta(J);return X&&Q.isDatasetVisible(J)?X.dataset:null}function Ij(Q){if((Q.scale||{}).getPointPositionForValue)return Oj(Q);return Vj(Q)}function Vj(Q){let{scale:J={},fill:X}=Q,q=Wj(X,J);if(b1(q)){let N=J.isHorizontal();return{x:N?q:null,y:N?null:q}}return null}function Oj(Q){let{scale:J,fill:X}=Q,q=J.options,N=J.getLabels().length,K=q.reverse?J.max:J.min,H=wj(X,J,K),M=[];if(q.grid.circular){let F=J.getPointPositionForValue(0,K);return new YK({x:F.x,y:F.y,radius:J.getDistanceFromCenterForValue(H)})}for(let F=0;F<N;++F)M.push(J.getPointPositionForValue(F,H));return M}function cU(Q,J,X){let q=Cj(J),{chart:N,index:K,line:H,scale:M,axis:F}=J,w=H.options,z=w.fill,T=w.backgroundColor,{above:L=T,below:I=T}=z||{},E=N.getDatasetMeta(K),O=kU(N,E);if(q&&H.points.length)KQ(Q,Ej(X,E.iScale)),Aj(Q,{line:H,target:q,above:L,below:I,area:X,scale:M,axis:F,clip:O}),BQ(Q)}function Ej(Q,J){if(!J||J.getPointPositionForValue)return Q;let X=J.getPixelForValue(J.min),q=J.getPixelForValue(J.max),N=Math.min(X,q),K=Math.max(X,q);return J.isHorizontal()?{...Q,left:Math.max(Q.left,N),right:Math.min(Q.right,K)}:{...Q,top:Math.max(Q.top,N),bottom:Math.min(Q.bottom,K)}}function Aj(Q,J){let{line:X,target:q,above:N,below:K,area:H,scale:M,clip:F}=J,w=X._loop?"angle":J.axis;Q.save();let z=K;if(K!==N){if(w==="x")rz(Q,q,H.top),lU(Q,{line:X,target:q,color:N,scale:M,property:w,clip:F}),Q.restore(),Q.save(),rz(Q,q,H.bottom);else if(w==="y")sz(Q,q,H.left),lU(Q,{line:X,target:q,color:K,scale:M,property:w,clip:F}),Q.restore(),Q.save(),sz(Q,q,H.right),z=N}lU(Q,{line:X,target:q,color:z,scale:M,property:w,clip:F}),Q.restore()}function rz(Q,J,X){let{segments:q,points:N}=J,K=!0,H=!1;Q.beginPath();for(let M of q){let{start:F,end:w}=M,z=N[F],T=N[n3(F,w,N)];if(K)Q.moveTo(z.x,z.y),K=!1;else Q.lineTo(z.x,X),Q.lineTo(z.x,z.y);if(H=!!J.pathSegment(Q,M,{move:H}),H)Q.closePath();else Q.lineTo(T.x,X)}Q.lineTo(J.first().x,X),Q.closePath(),Q.clip()}function sz(Q,J,X){let{segments:q,points:N}=J,K=!0,H=!1;Q.beginPath();for(let M of q){let{start:F,end:w}=M,z=N[F],T=N[n3(F,w,N)];if(K)Q.moveTo(z.x,z.y),K=!1;else Q.lineTo(X,z.y),Q.lineTo(z.x,z.y);if(H=!!J.pathSegment(Q,M,{move:H}),H)Q.closePath();else Q.lineTo(X,T.y)}Q.lineTo(X,J.first().y),Q.closePath(),Q.clip()}function lU(Q,J){let{line:X,target:q,property:N,color:K,scale:H,clip:M}=J,F=Kj(X,q,N);for(let{source:w,target:z,start:T,end:L}of F){let{style:{backgroundColor:I=K}={}}=w,E=q!==!0;Q.save(),Q.fillStyle=I,jj(Q,H,M,E&&oU(N,T,L)),Q.beginPath();let O=!!X.pathSegment(Q,w),V;if(E){if(O)Q.closePath();else nz(Q,q,L,N);let D=!!q.pathSegment(Q,z,{move:O,reverse:!0});if(V=O&&D,!V)nz(Q,q,T,N)}Q.closePath(),Q.fill(V?"evenodd":"nonzero"),Q.restore()}}function jj(Q,J,X,q){let N=J.chart.chartArea,{property:K,start:H,end:M}=q||{};if(K==="x"||K==="y"){let F,w,z,T;if(K==="x")F=H,w=N.top,z=M,T=N.bottom;else F=N.left,w=H,z=N.right,T=M;if(Q.beginPath(),X)F=Math.max(F,X.left),z=Math.min(z,X.right),w=Math.max(w,X.top),T=Math.min(T,X.bottom);Q.rect(F,w,z-F,T-w),Q.clip()}}function nz(Q,J,X,q){let N=J.interpolate(X,q);if(N)Q.lineTo(N.x,N.y)}var vT={id:"filler",afterDatasetsUpdate(Q,J,X){let q=(Q.data.datasets||[]).length,N=[],K,H,M,F;for(H=0;H<q;++H){if(K=Q.getDatasetMeta(H),M=K.dataset,F=null,M&&M.options&&M instanceof B$)F={visible:Q.isDatasetVisible(H),index:H,fill:Mj(M,H,q),chart:Q,axis:K.controller.options.indexAxis,scale:K.vScale,line:M};K.$filler=F,N.push(F)}for(H=0;H<q;++H){if(F=N[H],!F||F.fill===!1)continue;F.fill=Hj(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 M=N[H].$filler;if(!M)continue;if(M.line.updateControlPoints(K,M.axis),q&&M.fill)cU(Q.ctx,M,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(lz(K))cU(Q.ctx,K,Q.chartArea)}},beforeDatasetDraw(Q,J,X){let q=J.meta.$filler;if(!lz(q)||X.drawTime!=="beforeDatasetDraw")return;cU(Q.ctx,q,Q.chartArea)},defaults:{propagate:!0,drawTime:"beforeDatasetDraw"}},oz=(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)}},Sj=(Q,J)=>Q!==null&&J!==null&&Q.datasetIndex===J.datasetIndex&&Q.index===J.index;class iU extends O8{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=T1(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=a1(X.font),N=q.size,K=this._computeTitleHeight(),{boxWidth:H,itemHeight:M}=oz(X,N),F,w;if(J.font=q.string,this.isHorizontal())F=this.maxWidth,w=this._fitRows(K,N,H,M)+10;else w=this.maxHeight,F=this._fitCols(K,q,H,M)+10;this.width=Math.min(F,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,M=this.legendHitBoxes=[],F=this.lineWidths=[0],w=q+H,z=Q;N.textAlign="left",N.textBaseline="middle";let T=-1,L=-w;return this.legendItems.forEach((I,E)=>{let O=X+J/2+N.measureText(I.text).width;if(E===0||F[F.length-1]+O+2*H>K)z+=w,F[F.length-(E>0?0:1)]=0,L+=w,T++;M[E]={left:0,top:L,row:T,width:O,height:q},F[F.length-1]+=O+H}),z}_fitCols(Q,J,X,q){let{ctx:N,maxHeight:K,options:{labels:{padding:H}}}=this,M=this.legendHitBoxes=[],F=this.columnSizes=[],w=K-Q,z=H,T=0,L=0,I=0,E=0;return this.legendItems.forEach((O,V)=>{let{itemWidth:D,itemHeight:h}=Dj(X,J,N,O,q);if(V>0&&L+h+2*H>w)z+=T+H,F.push({width:T,height:L}),I+=T+H,E++,T=L=0;M[V]={left:I,top:L,col:E,width:D,height:h},T=Math.max(T,D),L+=h+H}),z+=T,F.push({width:T,height:L}),z}adjustHitBoxes(){if(!this.options.display)return;let Q=this._computeTitleHeight(),{legendHitBoxes:J,options:{align:X,labels:{padding:q},rtl:N}}=this,K=f9(N,this.left,this.width);if(this.isHorizontal()){let H=0,M=w5(X,this.left+q,this.right-this.lineWidths[H]);for(let F of J){if(H!==F.row)H=F.row,M=w5(X,this.left+q,this.right-this.lineWidths[H]);F.top+=this.top+Q+q,F.left=K.leftForLtr(K.x(M),F.width),M+=F.width+q}}else{let H=0,M=w5(X,this.top+Q+q,this.bottom-this.columnSizes[H].height);for(let F of J){if(F.col!==H)H=F.col,M=w5(X,this.top+Q+q,this.bottom-this.columnSizes[H].height);F.top=M,F.left+=this.left+q,F.left=K.leftForLtr(K.x(F.left),F.width),M+=F.height+q}}}isHorizontal(){return this.options.position==="top"||this.options.position==="bottom"}draw(){if(this.options.display){let Q=this.ctx;KQ(Q,this),this._draw(),BQ(Q)}}_draw(){let{options:Q,columnSizes:J,lineWidths:X,ctx:q}=this,{align:N,labels:K}=Q,H=k1.color,M=f9(Q.rtl,this.left,this.width),F=a1(K.font),{padding:w}=K,z=F.size,T=z/2,L;this.drawTitle(),q.textAlign=M.textAlign("left"),q.textBaseline="middle",q.lineWidth=0.5,q.font=F.string;let{boxWidth:I,boxHeight:E,itemHeight:O}=oz(K,z),V=function(n,$0,a){if(isNaN(I)||I<=0||isNaN(E)||E<0)return;q.save();let o=c0(a.lineWidth,1);if(q.fillStyle=c0(a.fillStyle,H),q.lineCap=c0(a.lineCap,"butt"),q.lineDashOffset=c0(a.lineDashOffset,0),q.lineJoin=c0(a.lineJoin,"miter"),q.lineWidth=o,q.strokeStyle=c0(a.strokeStyle,H),q.setLineDash(c0(a.lineDash,[])),K.usePointStyle){let q0={radius:E*Math.SQRT2/2,pointStyle:a.pointStyle,rotation:a.rotation,borderWidth:o},d=M.xPlus(n,I/2),K0=$0+T;CU(q,q0,d,K0,K.pointStyleWidth&&I)}else{let q0=$0+Math.max((z-E)/2,0),d=M.leftForLtr(n,I),K0=D2(a.borderRadius);if(q.beginPath(),Object.values(K0).some((P0)=>P0!==0))K$(q,{x:d,y:q0,w:I,h:E,radius:K0});else q.rect(d,q0,I,E);if(q.fill(),o!==0)q.stroke()}q.restore()},D=function(n,$0,a){S2(q,a.text,n,$0+O/2,F,{strikethrough:a.hidden,textAlign:M.textAlign(a.textAlign)})},h=this.isHorizontal(),p=this._computeTitleHeight();if(h)L={x:w5(N,this.left+w,this.right-X[0]),y:this.top+w+p,line:0};else L={x:this.left+w,y:w5(N,this.top+p+w,this.bottom-J[0].height),line:0};SU(this.ctx,Q.textDirection);let s=O+w;this.legendItems.forEach((n,$0)=>{q.strokeStyle=n.fontColor,q.fillStyle=n.fontColor;let a=q.measureText(n.text).width,o=M.textAlign(n.textAlign||(n.textAlign=K.textAlign)),q0=I+T+a,d=L.x,K0=L.y;if(M.setWidth(this.width),h){if($0>0&&d+q0+w>this.right)K0=L.y+=s,L.line++,d=L.x=w5(N,this.left+w,this.right-X[L.line])}else if($0>0&&K0+s>this.bottom)d=L.x=d+J[L.line].width+w,L.line++,K0=L.y=w5(N,this.top+p+w,this.bottom-J[L.line].height);let P0=M.x(d);if(V(P0,K0,n),d=oR(o,d+I+T,h?d+q0:this.right,Q.rtl),D(M.x(d),K0,n),h)L.x+=q0+w;else if(typeof n.text!=="string"){let C0=F.lineHeight;L.y+=bT(n,C0)+w}else L.y+=s}),DU(this.ctx,Q.textDirection)}drawTitle(){let Q=this.options,J=Q.title,X=a1(J.font),q=R5(J.padding);if(!J.display)return;let N=f9(Q.rtl,this.left,this.width),K=this.ctx,H=J.position,M=X.size/2,F=q.top+M,w,z=this.left,T=this.width;if(this.isHorizontal())T=Math.max(...this.lineWidths),w=this.top+F,z=w5(Q.align,z,this.right-T);else{let I=this.columnSizes.reduce((E,O)=>Math.max(E,O.height),0);w=F+w5(Q.align,this.top,this.bottom-I-Q.labels.padding-this._computeTitleHeight())}let L=w5(H,z,z+T);K.textAlign=N.textAlign(D3(H)),K.textBaseline="middle",K.strokeStyle=J.color,K.fillStyle=J.color,K.font=X.string,S2(K,J.text,L,w,X)}_computeTitleHeight(){let Q=this.options.title,J=a1(Q.font),X=R5(Q.padding);return Q.display?J.lineHeight+X.height:0}_getLegendItemAt(Q,J){let X,q,N;if(C8(Q,this.left,this.right)&&C8(J,this.top,this.bottom)){N=this.legendHitBoxes;for(X=0;X<N.length;++X)if(q=N[X],C8(Q,q.left,q.left+q.width)&&C8(J,q.top,q.top+q.height))return this.legendItems[X]}return null}handleEvent(Q){let J=this.options;if(!kj(Q.type,J))return;let X=this._getLegendItemAt(Q.x,Q.y);if(Q.type==="mousemove"||Q.type==="mouseout"){let q=this._hoveredItem,N=Sj(q,X);if(q&&!N)T1(J.onLeave,[Q,q,this],this);if(this._hoveredItem=X,X&&!N)T1(J.onHover,[Q,X,this],this)}else if(X)T1(J.onClick,[Q,X,this],this)}}function Dj(Q,J,X,q,N){let K=vj(q,Q,J,X),H=bj(N,q,J.lineHeight);return{itemWidth:K,itemHeight:H}}function vj(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 bj(Q,J,X){let q=Q;if(typeof J.text!=="string")q=bT(J,X);return q}function bT(Q,J){let X=Q.text?Q.text.length:0;return J*X}function kj(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 kT={id:"legend",_element:iU,start(Q,J,X){let q=Q.legend=new iU({ctx:Q.ctx,options:X,chart:Q});x6.configure(Q,q,X),x6.addBox(Q,q)},stop(Q){x6.removeBox(Q,Q.legend),delete Q.legend},beforeUpdate(Q,J,X){let q=Q.legend;x6.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:M}}=Q.legend.options;return Q._getSortedDatasetMetas().map((F)=>{let w=F.controller.getStyle(X?0:void 0),z=R5(w.borderWidth);return{text:J[F.index].label,fillStyle:w.backgroundColor,fontColor:K,hidden:!F.visible,lineCap:w.borderCapStyle,lineDash:w.borderDash,lineDashOffset:w.borderDashOffset,lineJoin:w.borderJoinStyle,lineWidth:(z.width+z.height)/4,strokeStyle:w.borderColor,pointStyle:q||w.pointStyle,rotation:w.rotation,textAlign:N||w.textAlign,borderRadius:H&&(M||w.borderRadius),datasetIndex:F.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 NK extends O8{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=_1(X.text)?X.text.length:1;this._padding=R5(X.padding);let N=q*a1(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,M=0,F,w,z;if(this.isHorizontal())w=w5(H,X,N),z=J+Q,F=N-X;else{if(K.position==="left")w=X+Q,z=w5(H,q,J),M=m1*-0.5;else w=N-Q,z=w5(H,J,q),M=m1*0.5;F=q-J}return{titleX:w,titleY:z,maxWidth:F,rotation:M}}draw(){let Q=this.ctx,J=this.options;if(!J.display)return;let X=a1(J.font),N=X.lineHeight/2+this._padding.top,{titleX:K,titleY:H,maxWidth:M,rotation:F}=this._drawArgs(N);S2(Q,J.text,0,0,X,{color:J.color,maxWidth:M,rotation:F,textAlign:D3(J.align),textBaseline:"middle",translation:[K,H]})}}function fj(Q,J){let X=new NK({ctx:Q.ctx,options:J,chart:Q});x6.configure(Q,X,J),x6.addBox(Q,X),Q.titleBlock=X}var fT={id:"title",_element:NK,start(Q,J,X){fj(Q,X)},stop(Q){let J=Q.titleBlock;x6.removeBox(Q,J),delete Q.titleBlock},beforeUpdate(Q,J,X){let q=Q.titleBlock;x6.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 PQ={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 M=Q[J].element;if(M&&M.hasValue()){let F=M.tooltipPosition();q.add(F.x),N+=F.y,++K}}if(K===0||q.size===0)return!1;return{x:[...q].reduce((M,F)=>M+F)/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,M;for(K=0,H=Q.length;K<H;++K){let F=Q[K].element;if(F&&F.hasValue()){let w=F.getCenterPoint(),z=O3(J,w);if(z<N)N=z,M=F}}if(M){let F=M.tooltipPosition();X=F.x,q=F.y}return{x:X,y:q}}};function h4(Q,J){if(J)if(_1(J))Array.prototype.push.apply(Q,J);else Q.push(J);return Q}function V8(Q){if((typeof Q==="string"||Q instanceof String)&&Q.indexOf(`
|
|
256
|
-
`)>-1)return
|
|
257
|
-
`);return Q}function yj(Q,J){let{element:X,datasetIndex:q,index:N}=J,K=Q.getDatasetMeta(q).controller,{label:H,value:M}=K.getLabelAndValue(N);return{chart:Q,label:H,parsed:K.getParsed(N),raw:Q.data.datasets[q].data[N],formattedValue:M,dataset:K.getDataset(),dataIndex:N,datasetIndex:q,element:X}}function iz(Q,J){let X=Q.chart.ctx,{body:q,footer:N,title:K}=Q,{boxWidth:H,boxHeight:M}=J,F=a1(J.bodyFont),w=a1(J.titleFont),z=a1(J.footerFont),T=K.length,L=N.length,I=q.length,E=R5(J.padding),O=E.height,V=0,D=q.reduce((s,n)=>s+n.before.length+n.lines.length+n.after.length,0);if(D+=Q.beforeBody.length+Q.afterBody.length,T)O+=T*w.lineHeight+(T-1)*J.titleSpacing+J.titleMarginBottom;if(D){let s=J.displayColors?Math.max(M,F.lineHeight):F.lineHeight;O+=I*s+(D-I)*F.lineHeight+(D-1)*J.bodySpacing}if(L)O+=J.footerMarginTop+L*z.lineHeight+(L-1)*J.footerSpacing;let h=0,p=function(s){V=Math.max(V,X.measureText(s).width+h)};return X.save(),X.font=w.string,K1(Q.title,p),X.font=F.string,K1(Q.beforeBody.concat(Q.afterBody),p),h=J.displayColors?H+2+J.boxPadding:0,K1(q,(s)=>{K1(s.before,p),K1(s.lines,p),K1(s.after,p)}),h=0,X.font=z.string,K1(Q.footer,p),X.restore(),V+=E.width,{width:V,height:O}}function gj(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 hj(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 uj(Q,J,X,q){let{x:N,width:K}=X,{width:H,chartArea:{left:M,right:F}}=Q,w="center";if(q==="center")w=N<=(M+F)/2?"left":"right";else if(N<=K/2)w="left";else if(N>=H-K/2)w="right";if(hj(w,Q,J,X))w="center";return w}function az(Q,J,X){let q=X.yAlign||J.yAlign||gj(Q,X);return{xAlign:X.xAlign||J.xAlign||uj(Q,J,X,q),yAlign:q}}function xj(Q,J){let{x:X,width:q}=Q;if(J==="right")X-=q;else if(J==="center")X-=q/2;return X}function mj(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 tz(Q,J,X,q){let{caretSize:N,caretPadding:K,cornerRadius:H}=Q,{xAlign:M,yAlign:F}=X,w=N+K,{topLeft:z,topRight:T,bottomLeft:L,bottomRight:I}=D2(H),E=xj(J,M),O=mj(J,F,w);if(F==="center"){if(M==="left")E+=w;else if(M==="right")E-=w}else if(M==="left")E-=Math.max(z,L)+N;else if(M==="right")E+=Math.max(T,I)+N;return{x:o5(E,0,q.width-J.width),y:o5(O,0,q.height-J.height)}}function d3(Q,J,X){let q=R5(X.padding);return J==="center"?Q.x+Q.width/2:J==="right"?Q.x+Q.width-q.right:Q.x+q.left}function ez(Q){return h4([],V8(Q))}function dj(Q,J,X){return _8(Q,{tooltip:J,tooltipItems:X,type:"tooltip"})}function $T(Q,J){let X=J&&J.dataset&&J.dataset.tooltip&&J.dataset.tooltip.callbacks;return X?Q.override(X):Q}var yT={beforeTitle:g4,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:g4,beforeBody:g4,beforeLabel:g4,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(!$1(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:g4,afterBody:g4,beforeFooter:g4,footer:g4,afterFooter:g4};function a5(Q,J,X,q){let N=Q[J].call(X,q);if(typeof N>"u")return yT[J].call(X,q);return N}class aU extends O8{static positioners=PQ;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 $K(this.chart,q);if(q._cacheable)this._cachedAnimations=Object.freeze(N);return N}getContext(){return this.$context||(this.$context=dj(this.chart.getContext(),this,this._tooltipItems))}getTitle(Q,J){let{callbacks:X}=J,q=a5(X,"beforeTitle",this,Q),N=a5(X,"title",this,Q),K=a5(X,"afterTitle",this,Q),H=[];return H=h4(H,V8(q)),H=h4(H,V8(N)),H=h4(H,V8(K)),H}getBeforeBody(Q,J){return ez(a5(J.callbacks,"beforeBody",this,Q))}getBody(Q,J){let{callbacks:X}=J,q=[];return K1(Q,(N)=>{let K={before:[],lines:[],after:[]},H=$T(X,N);h4(K.before,V8(a5(H,"beforeLabel",this,N))),h4(K.lines,a5(H,"label",this,N)),h4(K.after,V8(a5(H,"afterLabel",this,N))),q.push(K)}),q}getAfterBody(Q,J){return ez(a5(J.callbacks,"afterBody",this,Q))}getFooter(Q,J){let{callbacks:X}=J,q=a5(X,"beforeFooter",this,Q),N=a5(X,"footer",this,Q),K=a5(X,"afterFooter",this,Q),H=[];return H=h4(H,V8(q)),H=h4(H,V8(N)),H=h4(H,V8(K)),H}_createItems(Q){let J=this._active,X=this.chart.data,q=[],N=[],K=[],H=[],M,F;for(M=0,F=J.length;M<F;++M)H.push(yj(this.chart,J[M]));if(Q.filter)H=H.filter((w,z,T)=>Q.filter(w,z,T,X));if(Q.itemSort)H=H.sort((w,z)=>Q.itemSort(w,z,X));return K1(H,(w)=>{let z=$T(Q.callbacks,w);q.push(a5(z,"labelColor",this,w)),N.push(a5(z,"labelPointStyle",this,w)),K.push(a5(z,"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=PQ[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 M=this._size=iz(this,X),F=Object.assign({},H,M),w=az(this.chart,X,F),z=tz(X,F,w,this.chart);this.xAlign=w.xAlign,this.yAlign=w.yAlign,N={opacity:1,x:z.x,y:z.y,width:M.width,height:M.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:M,topRight:F,bottomLeft:w,bottomRight:z}=D2(H),{x:T,y:L}=Q,{width:I,height:E}=J,O,V,D,h,p,s;if(N==="center"){if(p=L+E/2,q==="left")O=T,V=O-K,h=p+K,s=p-K;else O=T+I,V=O+K,h=p-K,s=p+K;D=O}else{if(q==="left")V=T+Math.max(M,w)+K;else if(q==="right")V=T+I-Math.max(F,z)-K;else V=this.caretX;if(N==="top")h=L,p=h-K,O=V-K,D=V+K;else h=L+E,p=h+K,O=V+K,D=V-K;s=h}return{x1:O,x2:V,x3:D,y1:h,y2:p,y3:s}}drawTitle(Q,J,X){let q=this.title,N=q.length,K,H,M;if(N){let F=f9(X.rtl,this.x,this.width);Q.x=d3(this,X.titleAlign,X),J.textAlign=F.textAlign(X.titleAlign),J.textBaseline="middle",K=a1(X.titleFont),H=X.titleSpacing,J.fillStyle=X.titleColor,J.font=K.string;for(M=0;M<N;++M)if(J.fillText(q[M],F.x(Q.x),Q.y+K.lineHeight/2),Q.y+=K.lineHeight+H,M+1===N)Q.y+=X.titleMarginBottom-H}}_drawColorBox(Q,J,X,q,N){let K=this.labelColors[X],H=this.labelPointStyles[X],{boxHeight:M,boxWidth:F}=N,w=a1(N.bodyFont),z=d3(this,"left",N),T=q.x(z),L=M<w.lineHeight?(w.lineHeight-M)/2:0,I=J.y+L;if(N.usePointStyle){let E={radius:Math.min(F,M)/2,pointStyle:H.pointStyle,rotation:H.rotation,borderWidth:1},O=q.leftForLtr(T,F)+F/2,V=I+M/2;Q.strokeStyle=N.multiKeyBackground,Q.fillStyle=N.multiKeyBackground,k3(Q,E,O,V),Q.strokeStyle=K.borderColor,Q.fillStyle=K.backgroundColor,k3(Q,E,O,V)}else{Q.lineWidth=i0(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 E=q.leftForLtr(T,F),O=q.leftForLtr(q.xPlus(T,1),F-2),V=D2(K.borderRadius);if(Object.values(V).some((D)=>D!==0))Q.beginPath(),Q.fillStyle=N.multiKeyBackground,K$(Q,{x:E,y:I,w:F,h:M,radius:V}),Q.fill(),Q.stroke(),Q.fillStyle=K.backgroundColor,Q.beginPath(),K$(Q,{x:O,y:I+1,w:F-2,h:M-2,radius:V}),Q.fill();else Q.fillStyle=N.multiKeyBackground,Q.fillRect(E,I,F,M),Q.strokeRect(E,I,F,M),Q.fillStyle=K.backgroundColor,Q.fillRect(O,I+1,F-2,M-2)}Q.fillStyle=this.labelTextColors[X]}drawBody(Q,J,X){let{body:q}=this,{bodySpacing:N,bodyAlign:K,displayColors:H,boxHeight:M,boxWidth:F,boxPadding:w}=X,z=a1(X.bodyFont),T=z.lineHeight,L=0,I=f9(X.rtl,this.x,this.width),E=function(a){J.fillText(a,I.x(Q.x+L),Q.y+T/2),Q.y+=T+N},O=I.textAlign(K),V,D,h,p,s,n,$0;J.textAlign=K,J.textBaseline="middle",J.font=z.string,Q.x=d3(this,O,X),J.fillStyle=X.bodyColor,K1(this.beforeBody,E),L=H&&O!=="right"?K==="center"?F/2+w:F+2+w:0;for(p=0,n=q.length;p<n;++p){if(V=q[p],D=this.labelTextColors[p],J.fillStyle=D,K1(V.before,E),h=V.lines,H&&h.length)this._drawColorBox(J,Q,p,I,X),T=Math.max(z.lineHeight,M);for(s=0,$0=h.length;s<$0;++s)E(h[s]),T=z.lineHeight;K1(V.after,E)}L=0,T=z.lineHeight,K1(this.afterBody,E),Q.y-=N}drawFooter(Q,J,X){let q=this.footer,N=q.length,K,H;if(N){let M=f9(X.rtl,this.x,this.width);Q.x=d3(this,X.footerAlign,X),Q.y+=X.footerMarginTop,J.textAlign=M.textAlign(X.footerAlign),J.textBaseline="middle",K=a1(X.footerFont),J.fillStyle=X.footerColor,J.font=K.string;for(H=0;H<N;++H)J.fillText(q[H],M.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:M}=Q,{width:F,height:w}=X,{topLeft:z,topRight:T,bottomLeft:L,bottomRight:I}=D2(q.cornerRadius);if(J.fillStyle=q.backgroundColor,J.strokeStyle=q.borderColor,J.lineWidth=q.borderWidth,J.beginPath(),J.moveTo(H+z,M),K==="top")this.drawCaret(Q,J,X,q);if(J.lineTo(H+F-T,M),J.quadraticCurveTo(H+F,M,H+F,M+T),K==="center"&&N==="right")this.drawCaret(Q,J,X,q);if(J.lineTo(H+F,M+w-I),J.quadraticCurveTo(H+F,M+w,H+F-I,M+w),K==="bottom")this.drawCaret(Q,J,X,q);if(J.lineTo(H+L,M+w),J.quadraticCurveTo(H,M+w,H,M+w-L),K==="center"&&N==="left")this.drawCaret(Q,J,X,q);if(J.lineTo(H,M+z),J.quadraticCurveTo(H,M,H+z,M),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=PQ[Q.position].call(this,this._active,this._eventPosition);if(!K)return;let H=this._size=iz(this,Q),M=Object.assign({},K,this._size),F=az(J,Q,M),w=tz(Q,M,F,J);if(q._to!==w.x||N._to!==w.y)this.xAlign=F.xAlign,this.yAlign=F.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=R5(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),SU(Q,J.textDirection),N.y+=K.top,this.drawTitle(N,Q,J),this.drawBody(N,Q,J),this.drawFooter(N,Q,J),DU(Q,J.textDirection),Q.restore()}getActiveElements(){return this._active||[]}setActiveElements(Q,J){let X=this._active,q=Q.map(({datasetIndex:H,index:M})=>{let F=this.chart.getDatasetMeta(H);if(!F)throw Error("Cannot find a dataset at index "+H);return{datasetIndex:H,element:F.data[M],index:M}}),N=!NQ(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),M=J||!NQ(K,N)||H;if(M){if(this._active=K,q.enabled||q.external)this._eventPosition={x:Q.x,y:Q.y},this.update(!0,J)}return M}_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=PQ[N.position].call(this,Q,J);return K!==!1&&(X!==K.x||q!==K.y)}}var gT={id:"tooltip",_element:aU,positioners:PQ,afterInit(Q,J,X){if(X)Q.tooltip=new aU({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:yT},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 pj=(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 cj(Q,J,X,q){let N=Q.indexOf(J);if(N===-1)return pj(Q,J,X,q);let K=Q.lastIndexOf(J);return N!==K?X:N}var lj=(Q,J)=>Q===null?null:o5(Math.round(Q),0,J);function ZT(Q){let J=this.getLabels();if(Q>=0&&Q<J.length)return J[Q];return Q}class UK extends h9{static id="category";static defaults={ticks:{callback:ZT}};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($1(Q))return null;let X=this.getLabels();return J=isFinite(J)&&X[J]===Q?J:cj(X,Q,c0(J,Q),this._addedLabels),lj(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 ZT.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 rj(Q,J){let X=[],q=0.00000000000001,{bounds:N,step:K,min:H,max:M,precision:F,count:w,maxTicks:z,maxDigits:T,includeBounds:L}=Q,I=K||1,E=z-1,{min:O,max:V}=J,D=!$1(H),h=!$1(M),p=!$1(w),s=(V-O)/(T+1),n=BU((V-O)/E/I)*I,$0,a,o,q0;if(n<0.00000000000001&&!D&&!h)return[{value:O},{value:V}];if(q0=Math.ceil(V/n)-Math.floor(O/n),q0>E)n=BU(q0*n/E/I)*I;if(!$1(F))$0=Math.pow(10,F),n=Math.ceil(n*$0)/$0;if(N==="ticks")a=Math.floor(O/n)*n,o=Math.ceil(V/n)*n;else a=O,o=V;if(D&&h&&K&&mR((M-H)/K,n/1000))q0=Math.round(Math.min((M-H)/n,z)),n=(M-H)/q0,a=H,o=M;else if(p)a=D?H:a,o=h?M:o,q0=w-1,n=(o-a)/q0;else if(q0=(o-a)/n,N$(q0,Math.round(q0),n/1000))q0=Math.round(q0);else q0=Math.ceil(q0);let d=Math.max(MU(n),MU(a));$0=Math.pow(10,$1(F)?d:F),a=Math.round(a*$0)/$0,o=Math.round(o*$0)/$0;let K0=0;if(D){if(L&&a!==H){if(X.push({value:H}),a<H)K0++;if(N$(Math.round((a+K0*n)*$0)/$0,H,QT(H,s,Q)))K0++}else if(a<H)K0++}for(;K0<q0;++K0){let P0=Math.round((a+K0*n)*$0)/$0;if(h&&P0>M)break;X.push({value:P0})}if(h&&L&&o!==M)if(X.length&&N$(X[X.length-1].value,M,QT(M,s,Q)))X[X.length-1].value=M;else X.push({value:M});else if(!h||o===M)X.push({value:o});return X}function QT(Q,J,{horizontal:X,minRotation:q}){let N=L8(q),K=(X?Math.sin(N):Math.cos(N))||0.001,H=0.75*J*(""+Q).length;return Math.min(J/K,H)}class CQ extends h9{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($1(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=(M)=>q=J?q:M,H=(M)=>N=X?N:M;if(Q){let M=G4(q),F=G4(N);if(M<0&&F<0)H(0);else if(M>0&&F>0)K(0)}if(q===N){let M=N===0?1:Math.abs(N*0.05);if(H(N+M),!Q)K(q-M)}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=rj(q,N);if(Q.bounds==="ticks")HU(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 v3(Q,this.chart.options.locale,this.options.ticks.format)}}class KK extends CQ{static id="linear";static defaults={ticks:{callback:UQ.formatters.numeric}};determineDataLimits(){let{min:Q,max:J}=this.getMinMax(!0);this.min=b1(Q)?Q:0,this.max=b1(J)?J:1,this.handleTickRangeOptions()}computeTickLimit(){let Q=this.isHorizontal(),J=Q?this.width:this.height,X=L8(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 _Q=(Q)=>Math.floor(P8(Q)),g9=(Q,J)=>Math.pow(10,_Q(Q)+J);function JT(Q){return Q/Math.pow(10,_Q(Q))===1}function GT(Q,J,X){let q=Math.pow(10,X),N=Math.floor(Q/q);return Math.ceil(J/q)-N}function sj(Q,J){let X=J-Q,q=_Q(X);while(GT(Q,J,q)>10)q++;while(GT(Q,J,q)<10)q--;return Math.min(q,_Q(Q))}function nj(Q,{min:J,max:X}){J=i5(Q.min,J);let q=[],N=_Q(J),K=sj(J,X),H=K<0?Math.pow(10,Math.abs(K)):1,M=Math.pow(10,K),F=N>K?Math.pow(10,N):0,w=Math.round((J-F)*H)/H,z=Math.floor((J-F)/M/10)*M*10,T=Math.floor((w-z)/Math.pow(10,K)),L=i5(Q.min,Math.round((F+z+T*Math.pow(10,K))*H)/H);while(L<X){if(q.push({value:L,major:JT(L),significand:T}),T>=10)T=T<15?15:20;else T++;if(T>=20)K++,T=2,H=K>=0?1:H;L=Math.round((F+z+T*Math.pow(10,K))*H)/H}let I=i5(Q.max,L);return q.push({value:I,major:JT(I),significand:T}),q}class oj extends h9{static id="logarithmic";static defaults={ticks:{callback:UQ.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=CQ.prototype.parse.apply(this,[Q,J]);if(X===0){this._zero=!0;return}return b1(X)&&X>0?X:null}determineDataLimits(){let{min:Q,max:J}=this.getMinMax(!0);if(this.min=b1(Q)?Math.max(0,Q):null,this.max=b1(J)?Math.max(0,J):null,this.options.beginAtZero)this._zero=!0;if(this._zero&&this.min!==this._suggestedMin&&!b1(this._userMin))this.min=Q===g9(this.min,0)?g9(this.min,-1):g9(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(g9(X,-1)),K(g9(q,1));if(X<=0)N(g9(q,-1));if(q<=0)K(g9(X,1));this.min=X,this.max=q}buildTicks(){let Q=this.options,J={min:this._userMin,max:this._userMax},X=nj(J,this);if(Q.bounds==="ticks")HU(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":v3(Q,this.chart.options.locale,this.options.ticks.format)}configure(){let Q=this.min;super.configure(),this._startValue=P8(Q),this._valueRange=P8(this.max)-P8(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:(P8(Q)-this._startValue)/this._valueRange)}getValueForPixel(Q){let J=this.getDecimalForPixel(Q);return Math.pow(10,this._startValue+J*this._valueRange)}}function tU(Q){let J=Q.ticks;if(J.display&&Q.display){let X=R5(J.backdropPadding);return c0(J.font&&J.font.size,k1.font.size)+X.height}return 0}function ij(Q,J,X){return X=_1(X)?X:[X],{w:$z(Q,J.string,X),h:X.length*J.lineHeight}}function XT(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 aj(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,M=H.centerPointLabels?m1/K:0;for(let F=0;F<K;F++){let w=H.setContext(Q.getPointLabelContext(F));N[F]=w.padding;let z=Q.getPointPosition(F,Q.drawingArea+N[F],M),T=a1(w.font),L=ij(Q.ctx,T,Q._pointLabels[F]);q[F]=L;let I=r5(Q.getIndexAngle(F)+M),E=Math.round(j3(I)),O=XT(E,z.x,L.w,0,180),V=XT(E,z.y,L.h,90,270);tj(X,J,I,O,V)}Q.setCenterPoint(J.l-X.l,X.r-J.r,J.t-X.t,X.b-J.b),Q._pointLabelItems=ZS(Q,q,N)}function tj(Q,J,X,q,N){let K=Math.abs(Math.sin(X)),H=Math.abs(Math.cos(X)),M=0,F=0;if(q.start<J.l)M=(J.l-q.start)/K,Q.l=Math.min(Q.l,J.l-M);else if(q.end>J.r)M=(q.end-J.r)/K,Q.r=Math.max(Q.r,J.r+M);if(N.start<J.t)F=(J.t-N.start)/H,Q.t=Math.min(Q.t,J.t-F);else if(N.end>J.b)F=(N.end-J.b)/H,Q.b=Math.max(Q.b,J.b+F)}function ej(Q,J,X){let q=Q.drawingArea,{extra:N,additionalAngle:K,padding:H,size:M}=X,F=Q.getPointPosition(J,q+N+H,K),w=Math.round(j3(r5(F.angle+s5))),z=GS(F.y,M.h,w),T=QS(w),L=JS(F.x,M.w,T);return{visible:!0,x:F.x,y:z,textAlign:T,left:L,top:z,right:L+M.w,bottom:z+M.h}}function $S(Q,J){if(!J)return!0;let{left:X,top:q,right:N,bottom:K}=Q;return!(y4({x:X,y:q},J)||y4({x:X,y:K},J)||y4({x:N,y:q},J)||y4({x:N,y:K},J))}function ZS(Q,J,X){let q=[],N=Q._pointLabels.length,K=Q.options,{centerPointLabels:H,display:M}=K.pointLabels,F={extra:tU(K)/2,additionalAngle:H?m1/N:0},w;for(let z=0;z<N;z++){F.padding=X[z],F.size=J[z];let T=ej(Q,z,F);if(q.push(T),M==="auto"){if(T.visible=$S(T,w),T.visible)w=T}}return q}function QS(Q){if(Q===0||Q===180)return"center";else if(Q<180)return"left";return"right"}function JS(Q,J,X){if(X==="right")Q-=J;else if(X==="center")Q-=J/2;return Q}function GS(Q,J,X){if(X===90||X===270)Q-=J/2;else if(X>270||X<90)Q-=J;return Q}function XS(Q,J,X){let{left:q,top:N,right:K,bottom:H}=X,{backdropColor:M}=J;if(!$1(M)){let F=D2(J.borderRadius),w=R5(J.backdropPadding);Q.fillStyle=M;let z=q-w.left,T=N-w.top,L=K-q+w.width,I=H-N+w.height;if(Object.values(F).some((E)=>E!==0))Q.beginPath(),K$(Q,{x:z,y:T,w:L,h:I,radius:F}),Q.fill();else Q.fillRect(z,T,L,I)}}function qS(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));XS(X,H,K);let M=a1(H.font),{x:F,y:w,textAlign:z}=K;S2(X,Q._pointLabels[N],F,w+M.lineHeight/2,M,{color:H.color,textAlign:z,textBaseline:"middle"})}}function hT(Q,J,X,q){let{ctx:N}=Q;if(X)N.arc(Q.xCenter,Q.yCenter,J,0,n5);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 YS(Q,J,X,q,N){let K=Q.ctx,H=J.circular,{color:M,lineWidth:F}=J;if(!H&&!q||!M||!F||X<0)return;K.save(),K.strokeStyle=M,K.lineWidth=F,K.setLineDash(N.dash||[]),K.lineDashOffset=N.dashOffset,K.beginPath(),hT(Q,X,H,q),K.closePath(),K.stroke(),K.restore()}function NS(Q,J,X){return _8(Q,{label:X,index:J,type:"pointLabel"})}class US extends CQ{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:UQ.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=R5(tU(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=b1(Q)&&!isNaN(Q)?Q:0,this.max=b1(J)&&!isNaN(J)?J:0,this.handleTickRangeOptions()}computeTickLimit(){return Math.ceil(this.drawingArea/tU(this.options))}generateTickLabels(Q){CQ.prototype.generateTickLabels.call(this,Q),this._pointLabels=this.getLabels().map((J,X)=>{let q=T1(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)aj(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=n5/(this._pointLabels.length||1),X=this.options.startAngle||0;return r5(Q*J+L8(X))}getDistanceFromCenterForValue(Q){if($1(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($1(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 NS(this.getContext(),Q,X)}}getPointPosition(Q,J,X=0){let q=this.getIndexAngle(Q)-s5+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(),hT(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,M,F;if(J.pointLabels.display)qS(this,K);if(q.display)this.ticks.forEach((w,z)=>{if(z!==0||z===0&&this.min<0){M=this.getDistanceFromCenterForValue(w.value);let T=this.getContext(z),L=q.setContext(T),I=N.setContext(T);YS(this,L,M,K,I)}});if(X.display){Q.save();for(H=K-1;H>=0;H--){let w=X.setContext(this.getPointLabelContext(H)),{color:z,lineWidth:T}=w;if(!T||!z)continue;Q.lineWidth=T,Q.strokeStyle=z,Q.setLineDash(w.borderDash),Q.lineDashOffset=w.borderDashOffset,M=this.getDistanceFromCenterForValue(J.reverse?this.min:this.max),F=this.getPointPosition(H,M),Q.beginPath(),Q.moveTo(this.xCenter,this.yCenter),Q.lineTo(F.x,F.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,M)=>{if(M===0&&this.min>=0&&!J.reverse)return;let F=X.setContext(this.getContext(M)),w=a1(F.font);if(N=this.getDistanceFromCenterForValue(this.ticks[M].value),F.showLabelBackdrop){Q.font=w.string,K=Q.measureText(H.label).width,Q.fillStyle=F.backdropColor;let z=R5(F.backdropPadding);Q.fillRect(-K/2-z.left,-N-w.size/2-z.top,K+z.width,w.size+z.height)}S2(Q,H.label,0,-N,w,{color:F.color,strokeColor:F.textStrokeColor,strokeWidth:F.textStrokeWidth})}),Q.restore()}drawTitle(){}}var o3={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}},t5=Object.keys(o3);function qT(Q,J){return Q-J}function YT(Q,J){if($1(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(!b1(H))H=typeof q==="string"?X.parse(H,q):X.parse(H);if(H===null)return null;if(N)H=N==="week"&&(U$(K)||K===!0)?X.startOf(H,"isoWeek",K):X.startOf(H,N);return+H}function NT(Q,J,X,q){let N=t5.length;for(let K=t5.indexOf(Q);K<N-1;++K){let H=o3[t5[K]],M=H.steps?H.steps:Number.MAX_SAFE_INTEGER;if(H.common&&Math.ceil((X-J)/(M*H.size))<=q)return t5[K]}return t5[N-1]}function KS(Q,J,X,q,N){for(let K=t5.length-1;K>=t5.indexOf(X);K--){let H=t5[K];if(o3[H].common&&Q._adapter.diff(N,q,H)>=J-1)return H}return t5[X?t5.indexOf(X):0]}function BS(Q){for(let J=t5.indexOf(Q)+1,X=t5.length;J<X;++J)if(o3[t5[J]].common)return t5[J]}function UT(Q,J,X){if(!X)Q[J]=!0;else if(X.length){let{lo:q,hi:N}=S3(X,J),K=X[q]>=J?X[q]:X[N];Q[K]=!0}}function HS(Q,J,X,q){let N=Q._adapter,K=+N.startOf(J[0].value,q),H=J[J.length-1].value,M,F;for(M=K;M<=H;M=+N.add(M,1,q))if(F=X[M],F>=0)J[F].major=!0;return J}function KT(Q,J,X){let q=[],N={},K=J.length,H,M;for(H=0;H<K;++H)M=J[H],N[M]=H,q.push({value:M,major:!1});return K===0||!X?q:HS(Q,q,N,X)}class eU extends h9{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 rE._date(Q.adapters.date);q.init(J),q$(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 YT(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 M(F){if(!K&&!isNaN(F.min))q=Math.min(q,F.min);if(!H&&!isNaN(F.max))N=Math.max(N,F.max)}if(!K||!H){if(M(this._getLabelBounds()),Q.bounds!=="ticks"||Q.ticks.source!=="labels")M(this.getMinMax(!1))}q=b1(q)&&!isNaN(q)?q:+J.startOf(Date.now(),X),N=b1(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=lR(q,N,K);if(this._unit=J.unit||(X.autoSkip?NT(J.minUnit,this.min,this.max,this._getLabelCapacity(N)):KS(this,H.length,J.minUnit,this.min,this.max)),this._majorUnit=!X.major.enabled||this._unit==="year"?void 0:BS(this._unit),this.initOffsets(q),Q.reverse)H.reverse();return KT(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=o5(J,0,K),X=o5(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||NT(N.minUnit,J,X,this._getLabelCapacity(J)),H=c0(q.ticks.stepSize,1),M=K==="week"?N.isoWeekday:!1,F=U$(M)||M===!0,w={},z=J,T,L;if(F)z=+Q.startOf(z,"isoWeek",M);if(z=+Q.startOf(z,F?"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(T=z,L=0;T<X;T=+Q.add(T,H,K),L++)UT(w,T,I);if(T===X||q.bounds==="ticks"||L===1)UT(w,T,I);return Object.keys(w).sort(qT).map((E)=>+E)}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 T1(K,[Q,J,X],this);let H=N.time.displayFormats,M=this._unit,F=this._majorUnit,w=M&&H[M],z=F&&H[F],T=X[J],L=F&&z&&T&&T.major;return this._adapter.format(Q,q||(L?z: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=L8(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,KT(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(YT(this,q[J]));return this._cache.labels=this._normalized?Q:this.normalize(Q)}normalize(Q){return wU(Q.sort(qT))}}function p3(Q,J,X){let q=0,N=Q.length-1,K,H,M,F;if(X){if(J>=Q[q].pos&&J<=Q[N].pos)({lo:q,hi:N}=O2(Q,"pos",J));({pos:K,time:M}=Q[q]),{pos:H,time:F}=Q[N]}else{if(J>=Q[q].time&&J<=Q[N].time)({lo:q,hi:N}=O2(Q,"time",J));({time:K,pos:M}=Q[q]),{time:H,pos:F}=Q[N]}let w=H-K;return w?M+(F-M)*(J-K)/w:M}class MS extends eU{static id="timeseries";static defaults=eU.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=p3(J,this.min),this._tableRange=p3(J,this.max)-this._minPos,super.initOffsets(Q)}buildLookupTable(Q){let{min:J,max:X}=this,q=[],N=[],K,H,M,F,w;for(K=0,H=Q.length;K<H;++K)if(F=Q[K],F>=J&&F<=X)q.push(F);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],M=q[K-1],F=q[K],Math.round((w+M)/2)!==F)N.push({time:F,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(p3(this._table,Q)-this._minPos)/this._tableRange}getValueForPixel(Q){let J=this._offsets,X=this.getDecimalForPixel(Q)/J.factor-J.end;return p3(this._table,X*this._tableRange+this._minPos,!0)}}u9.register(UK,KK,qK,B$,XK,fT,gT,kT,vT);var wC=t(lT(),1);var D8=t(I1(),1);var a3=t(I1(),1);var rT=(Q)=>(Q.match(/\d+[xX]\d+|[A-Z]?[a-z]+|[A-Z]|\d+/g)??[]).join("-").toLowerCase();function sT(Q,J,X=[]){if(J==null)throw Error("[lucide]: iconNode is required when icon name is used");return{name:rT(Q),size:24,node:J,...X.length>0?{aliases:X}:{}}}var nT=(Q)=>{let J="",X=!1;for(let q of Q){if(q==="-"||q==="_"||q<=" "){X=J.length>0;continue}if(J.length===0)J+=q.toLowerCase();else J+=X?q.toUpperCase():q;X=!1}return J};var oT=(Q)=>{let J=nT(Q);return J.charAt(0).toUpperCase()+J.slice(1)};var OQ=t(I1(),1);var VQ=(...Q)=>{let J=new Set;for(let X of Q){if(typeof X!=="string")continue;for(let q of X.split(/\s+/))if(q)J.add(q)}return[...J].join(" ")};var k2={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":2,"stroke-linecap":"round","stroke-linejoin":"round"};function MK(Q){return Q!==null&&Q!==void 0}function iT(Q,J={}){let X=J.attributeNames??{},q=(L)=>X[L]??L,N=Q.size??Q.width??k2.width,K=Q.size??Q.height??k2.height,H=Q.aliases?.filter((L)=>typeof L==="string"&&L.trim()!=="").map((L)=>`lucide-${L}`)??[],M=[...Q.name?[`lucide-${Q.name}`]:[],...H],F=J.className?.split(" ").filter(Boolean)??[],w=J.includeDefaultClasses===!1?VQ(...F):VQ("lucide",...M,...F),z=J.absoluteStrokeWidth?Number(J.strokeWidth??k2["stroke-width"])*Number(Q.size??Q.width??k2.width)/Number(J.size??J.width??k2.width):J.strokeWidth??k2["stroke-width"];return["svg",{...Object.entries(k2).reduce((L,[I,E])=>{return L[q(I)]=E,L},{}),..."color"in J&&J.color&&{[q("stroke")]:J.color},..."size"in J&&MK(J.size)&&{[q("width")]:J.size,[q("height")]:J.size},..."width"in J&&MK(J.width)&&{[q("width")]:J.width},..."height"in J&&MK(J.height)&&{[q("height")]:J.height},[q("stroke-width")]:z,...w&&{[q("class")]:w},[q("viewBox")]:`0 0 ${N} ${K}`,...J.hasA11yProp===!1?{[q("aria-hidden")]:"true"}:{},..."attributes"in J&&J.attributes},Q.node.map((L)=>{let[I,E,O]=L,V=J.nonScalingStroke?{[q("vector-effect")]:"non-scaling-stroke",...E}:E;return O?[I,V,O]:[I,V]})]}function aT(Q,J={}){return iT(Q,{...J,attributeNames:{...J.attributeNames,class:"className","stroke-width":"strokeWidth","stroke-linecap":"strokeLinecap","stroke-linejoin":"strokeLinejoin","vector-effect":"vectorEffect"}})}var tT=(Q)=>{if(Q==null||typeof Q!=="object")return!1;for(let J in Q)if(Object.prototype.hasOwnProperty.call(Q,J)&&(J.startsWith("aria-")||J==="role"||J==="title")&&Q[J]!=null)return!0;return!1};var M$=t(I1(),1),PS=M$.createContext({});var eT=()=>M$.useContext(PS);var $P=OQ.forwardRef(({color:Q,size:J,width:X,height:q,strokeWidth:N,absoluteStrokeWidth:K,nonScalingStroke:H,className:M="",children:F,iconNode:w=[],icon:z={node:w,aliases:[],size:24},...T},L)=>{let{size:I=24,strokeWidth:E=2,absoluteStrokeWidth:O=!1,nonScalingStroke:V=!1,color:D="currentColor",className:h=""}=eT()??{},p=Boolean(F)||tT(T),[s,n,$0=[]]=aT(z,{color:Q??D,width:X??J??I,height:q??J??I,strokeWidth:N??E,absoluteStrokeWidth:K??O,nonScalingStroke:H??V,className:VQ(h,M),hasA11yProp:p,attributes:T});return OQ.createElement(s,{ref:L,...n},[...$0.map(([a,o])=>OQ.createElement(a,o)),...Array.isArray(F)?F:[F]])});function E0(Q,J=[],X=[]){let q=typeof Q==="string"?sT(Q,J,X):Q,N=a3.forwardRef(({className:K,...H},M)=>a3.createElement($P,{ref:M,icon:q,className:K,...H}));if(q.name)N.displayName=oT(q.name);return N}var ZP={name:"circle-exclamation-point",size:24,node:[["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"}]],aliases:["alert-circle","circle-alert"]};ZP.node;var X4=E0(ZP);var QP={name:"face-slightly-smiling",size:24,node:[["path",{d:"M15 10V9",key:"4dkmfx"}],["path",{d:"M16.472 15a6 6 0 01-8.943 0",key:"7qomzy"}],["path",{d:"M9 10V9",key:"1lazqi"}],["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]],aliases:["smile"]};QP.node;var f2=E0(QP);var JP={name:"activity",size:24,node:[["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"}]]};JP.node;var EQ=E0(JP);var GP={name:"check",size:24,node:[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]};GP.node;var AQ=E0(GP);var XP={name:"chevron-down",size:24,node:[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]};XP.node;var jQ=E0(XP);var qP={name:"chevron-up",size:24,node:[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]]};qP.node;var SQ=E0(qP);var YP={name:"clock",size:24,node:[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 6v6l4 2",key:"mmk7yg"}]]};YP.node;var DQ=E0(YP);var NP={name:"coins",size:24,node:[["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"}]]};NP.node;var m9=E0(NP);var UP={name:"copy",size:24,node:[["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"}]]};UP.node;var vQ=E0(UP);var KP={name:"cpu",size:24,node:[["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"}]]};KP.node;var bQ=E0(KP);var BP={name:"folder",size:24,node:[["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"}]]};BP.node;var kQ=E0(BP);var HP={name:"gauge",size:24,node:[["path",{d:"m12 14 4-4",key:"9kzdfg"}],["path",{d:"M3.34 19a10 10 0 1 1 17.32 0",key:"19p75a"}]]};HP.node;var fQ=E0(HP);var MP={name:"hash",size:24,node:[["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"}]]};MP.node;var yQ=E0(MP);var FP={name:"inbox",size:24,node:[["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"}]]};FP.node;var gQ=E0(FP);var WP={name:"layout-dashboard",size:24,node:[["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"}]]};WP.node;var hQ=E0(WP);var wP={name:"menu",size:24,node:[["path",{d:"M4 5h16",key:"1tepv9"}],["path",{d:"M4 12h16",key:"1lakjw"}],["path",{d:"M4 19h16",key:"1djgab"}]]};wP.node;var uQ=E0(wP);var RP={name:"monitor",size:24,node:[["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"}]]};RP.node;var xQ=E0(RP);var zP={name:"moon",size:24,node:[["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"}]]};zP.node;var mQ=E0(zP);var TP={name:"refresh-cw",size:24,node:[["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"}]]};TP.node;var dQ=E0(TP);var PP={name:"star",size:24,node:[["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"}]]};PP.node;var pQ=E0(PP);var LP={name:"sun",size:24,node:[["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"}]]};LP.node;var cQ=E0(LP);var CP={name:"trending-up",size:24,node:[["path",{d:"M16 7h6v6",key:"box55l"}],["path",{d:"m22 7-8.5 8.5-5-5L2 17",key:"1t1m79"}]]};CP.node;var lQ=E0(CP);var _P={name:"x",size:24,node:[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]};_P.node;var d9=E0(_P);var IP={name:"zap",size:24,node:[["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"}]]};IP.node;var rQ=E0(IP);var lP=t(I1(),1);var sQ=[{id:"overview",label:"Overview",icon:hQ},{id:"requests",label:"Requests",icon:EQ},{id:"errors",label:"Errors",icon:X4},{id:"models",label:"Models",icon:bQ},{id:"costs",label:"Costs",icon:m9},{id:"behavior",label:"Behavior",shortLabel:"Behavior",icon:f2},{id:"projects",label:"Projects",icon:kQ},{id:"gain",label:"Gain",icon:lQ}];var m6=t(M0(),1);function FK({activeSection:Q,onSectionChange:J,className:X=""}){return m6.jsxDEV("aside",{className:`stats-nav-rail ${X}`,children:[m6.jsxDEV("div",{className:"stats-nav-rail-header",children:m6.jsxDEV("div",{className:"stats-logo-container",children:[m6.jsxDEV("span",{className:"stats-logo-text",children:"JEOPI"},void 0,!1,void 0,this),m6.jsxDEV("span",{className:"stats-logo-subtext",children:"Encode intention. Decode software."},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this),m6.jsxDEV("nav",{className:"stats-nav-rail-menu",children:sQ.map((q)=>{let N=q.id===Q,K=q.icon;return m6.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:[m6.jsxDEV(K,{size:16,className:"stats-nav-rail-item-icon"},void 0,!1,void 0,this),m6.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),m6.jsxDEV("div",{className:"stats-nav-rail-footer",children:m6.jsxDEV("span",{className:"stats-version-tag",children:"jeopi stats v1.0.0"},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}var WK=t(M0(),1),CS=[{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 VP({value:Q,onChange:J,className:X=""}){return WK.jsxDEV("div",{className:`stats-range-control ${X}`,role:"radiogroup","aria-label":"Select time range",children:CS.map((q)=>{let N=q.value===Q;return WK.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 wK=t(I1(),1);class OP extends Error{status;endpoint;constructor(Q,J,X){super(X);this.name="ApiError",this.status=Q,this.endpoint=J}}async function x4(Q,J){let X=await fetch(Q,J);if(!X.ok)throw new OP(X.status,Q,`HTTP error ${X.status} on ${Q}`);return X.json()}async function EP(Q="24h",J){return x4(`/api/stats/overview?range=${encodeURIComponent(Q)}`,{signal:J})}async function AP(Q="24h",J){return x4(`/api/stats/model-dashboard?range=${encodeURIComponent(Q)}`,{signal:J})}async function jP(Q="24h",J){return x4(`/api/stats/costs?range=${encodeURIComponent(Q)}`,{signal:J})}async function t3(Q=50,J){return x4(`/api/stats/recent?limit=${Q}`,{signal:J})}async function SP(Q=50,J){return x4(`/api/stats/errors?limit=${Q}`,{signal:J})}async function DP(Q,J){return x4(`/api/request/${Q}`,{signal:J})}async function vP(Q){return x4("/api/sync",{signal:Q})}async function bP(Q="24h",J){return x4(`/api/stats/behavior?range=${encodeURIComponent(Q)}`,{signal:J})}async function kP(Q="24h",J){return x4(`/api/stats/folders?range=${encodeURIComponent(Q)}`,{signal:J})}async function fP(Q="24h",J,X){let q=new URLSearchParams({range:Q});if(J)q.set("project",J);return x4(`/api/stats/gain?${q}`,{signal:X})}var nQ=t(M0(),1);function yP({onSyncStart:Q,onSyncComplete:J,className:X=""}){let[q,N]=wK.useState(!1),[K,H]=wK.useState(null),M=async()=>{if(q)return;if(N(!0),H(null),Q)Q();try{let F=await vP(),w={processed:typeof F?.processed==="number"?F.processed:0,files:typeof F?.files==="number"?F.files:0,totalMessages:typeof F?.totalMessages==="number"?F.totalMessages:0};if(H({type:"success",message:`Synced: ${w.processed} new request${w.processed===1?"":"s"} found.`}),J)J({success:!0,data:w})}catch(F){let w=F instanceof Error?F.message:String(F);if(H({type:"error",message:`Sync failed: ${w}`}),J)J({success:!1,error:w})}finally{N(!1)}};return nQ.jsxDEV("div",{className:`stats-sync-container ${X}`,children:[K&&nQ.jsxDEV("span",{className:"stats-sync-status-msg","data-type":K.type,children:K.message},void 0,!1,void 0,this),nQ.jsxDEV("button",{type:"button",onClick:M,disabled:q,className:"stats-button stats-button-primary stats-sync-btn","aria-busy":q,children:[nQ.jsxDEV(dQ,{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 e3=t(I1(),1),gP="jeopi-stats-theme",hP="(prefers-color-scheme: dark)";function _S(){if(typeof localStorage>"u")return"system";let Q=localStorage.getItem(gP);return Q==="light"||Q==="dark"||Q==="system"?Q:"system"}function uP(){if(typeof window>"u")return"dark";return window.matchMedia(hP).matches?"dark":"light"}var c9=_S(),oQ=c9==="system"?uP():c9,RK=new Set;function xP(){for(let Q of RK)Q()}function zK(){if(oQ=c9==="system"?uP():c9,typeof document<"u")document.documentElement.dataset.theme=oQ,document.documentElement.style.colorScheme=oQ}if(typeof window<"u")zK(),window.matchMedia(hP).addEventListener("change",()=>{if(c9==="system")zK(),xP()});function IS(Q){if(c9=Q,typeof localStorage<"u")localStorage.setItem(gP,Q);zK(),xP()}function TK(Q){return RK.add(Q),()=>RK.delete(Q)}function d6(){return e3.useSyncExternalStore(TK,()=>oQ,()=>"dark")}function mP(){let Q=e3.useSyncExternalStore(TK,()=>c9,()=>"system"),J=e3.useSyncExternalStore(TK,()=>oQ,()=>"dark");return{preference:Q,resolved:J,setPreference:IS}}var PK=t(M0(),1),VS={system:"light",light:"dark",dark:"system"},OS={system:xQ,light:cQ,dark:mQ},dP={system:"System theme",light:"Light theme",dark:"Dark theme"};function pP(){let{preference:Q,setPreference:J}=mP(),X=OS[Q];return PK.jsxDEV("button",{type:"button",className:"stats-theme-toggle",onClick:()=>J(VS[Q]),"aria-label":`${dP[Q]} (click to switch)`,title:`${dP[Q]} — click to switch`,children:PK.jsxDEV(X,{size:16},void 0,!1,void 0,this)},void 0,!1,void 0,this)}var p6=t(M0(),1);function cP({activeSection:Q,range:J,onRangeChange:X,updatedAt:q,onSyncStart:N,onSyncComplete:K,onMenuToggle:H,className:M=""}){let w=sQ.find((T)=>T.id===Q)?.label||"Observability",z=(T)=>{if(!T)return"Not updated";return`Updated ${new Date(T).toLocaleTimeString([],{hour:"2-digit",minute:"2-digit",second:"2-digit"})}`};return p6.jsxDEV("header",{className:`stats-top-bar ${M}`,children:[p6.jsxDEV("div",{className:"stats-top-bar-left",children:[H&&p6.jsxDEV("button",{type:"button",onClick:H,className:"stats-mobile-menu-btn","aria-label":"Open navigation menu",children:p6.jsxDEV(uQ,{size:20},void 0,!1,void 0,this)},void 0,!1,void 0,this),p6.jsxDEV("h1",{className:"stats-page-title",children:w},void 0,!1,void 0,this)]},void 0,!0,void 0,this),p6.jsxDEV("div",{className:"stats-top-bar-right",children:[p6.jsxDEV("div",{className:"stats-top-bar-meta",children:p6.jsxDEV("span",{className:"stats-last-updated",title:q?new Date(q).toLocaleString():void 0,children:z(q)},void 0,!1,void 0,this)},void 0,!1,void 0,this),p6.jsxDEV(VP,{value:J,onChange:X},void 0,!1,void 0,this),p6.jsxDEV(pP,{},void 0,!1,void 0,this),p6.jsxDEV(yP,{onSyncStart:N,onSyncComplete:K},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)}var V5=t(M0(),1);function rP({activeSection:Q,onSectionChange:J,range:X,onRangeChange:q,updatedAt:N,onSyncStart:K,onSyncComplete:H,children:M}){let[F,w]=lP.useState(!1),z=(T)=>{J(T),w(!1)};return V5.jsxDEV("div",{className:"stats-app-container",children:[V5.jsxDEV(FK,{activeSection:Q,onSectionChange:z,className:"stats-desktop-nav"},void 0,!1,void 0,this),F&&V5.jsxDEV("div",{className:"stats-mobile-drawer-overlay",onClick:()=>w(!1),role:"presentation",children:V5.jsxDEV("div",{className:"stats-mobile-drawer",onClick:(T)=>T.stopPropagation(),role:"dialog","aria-modal":"true","aria-label":"Navigation menu",children:[V5.jsxDEV("div",{className:"stats-mobile-drawer-header",children:[V5.jsxDEV("div",{className:"stats-logo-container",children:[V5.jsxDEV("span",{className:"stats-logo-text",children:"JEOPI"},void 0,!1,void 0,this),V5.jsxDEV("span",{className:"stats-logo-subtext",children:"Encode intention. Decode software."},void 0,!1,void 0,this)]},void 0,!0,void 0,this),V5.jsxDEV("button",{type:"button",onClick:()=>w(!1),className:"stats-drawer-close-btn","aria-label":"Close navigation menu",children:V5.jsxDEV(d9,{size:18},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),V5.jsxDEV(FK,{activeSection:Q,onSectionChange:z,className:"stats-mobile-nav"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this),V5.jsxDEV("div",{className:"stats-main-pane",children:[V5.jsxDEV(cP,{activeSection:Q,range:X,onRangeChange:q,updatedAt:N,onSyncStart:K,onSyncComplete:H,onMenuToggle:()=>w(!0)},void 0,!1,void 0,this),V5.jsxDEV("main",{className:"stats-content-area",children:V5.jsxDEV("div",{className:"stats-content-inner",children:M},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 E8=t(I1(),1),ES=["overview","requests","errors","models","costs","behavior","projects","gain"],sP=["1h","24h","7d","30d","90d","all"];function LK(Q){let J=Q.replace(/^#\/?/,""),[X,q]=J.split("?"),N=ES.includes(X)?X:"overview",K="24h";if(q){let M=new URLSearchParams(q).get("range");if(sP.includes(M))K=M}return{section:N,range:K}}function nP(){let[Q,J]=E8.useState(()=>LK(window.location.hash));E8.useEffect(()=>{let K=()=>{J(LK(window.location.hash))};return window.addEventListener("hashchange",K),()=>{window.removeEventListener("hashchange",K)}},[]);let X=E8.useCallback((K,H)=>{window.location.hash=`/${K}?range=${H}`},[]),q=E8.useCallback((K)=>{X(K,Q.range)},[Q.range,X]),N=E8.useCallback((K)=>{let H=sP.includes(K)?K:"24h";X(Q.section,H)},[Q.section,X]);return E8.useEffect(()=>{let K=window.location.hash,H=LK(K),M=`#/${H.section}?range=${H.range}`;if(K!==M)window.location.hash=`/${H.section}?range=${H.range}`},[]),{section:Q.section,setSection:q,range:Q.range,setRange:N}}var AS=Math.pow(10,8)*24*60*60*1000,fF5=-AS,$X=604800000,oP=86400000;var iQ=43200,CK=1440;var _K=Symbol.for("constructDateFrom");function O5(Q,J){if(typeof Q==="function")return Q(J);if(Q&&typeof Q==="object"&&_K in Q)return Q[_K](J);if(Q instanceof Date)return new Q.constructor(J);return new Date(J)}function Q1(Q,J){return O5(J||Q,Q)}var jS={};function m4(){return jS}function A8(Q,J){let X=m4(),q=J?.weekStartsOn??J?.locale?.options?.weekStartsOn??X.weekStartsOn??X.locale?.options?.weekStartsOn??0,N=Q1(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 l9(Q,J){return A8(Q,{...J,weekStartsOn:1})}function ZX(Q,J){let X=Q1(Q,J?.in),q=X.getFullYear(),N=O5(X,0);N.setFullYear(q+1,0,4),N.setHours(0,0,0,0);let K=l9(N),H=O5(X,0);H.setFullYear(q,0,4),H.setHours(0,0,0,0);let M=l9(H);if(X.getTime()>=K.getTime())return q+1;else if(X.getTime()>=M.getTime())return q;else return q-1}function F$(Q){let J=Q1(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 y2(Q,...J){let X=O5.bind(null,Q||J.find((q)=>typeof q==="object"));return J.map(X)}function IK(Q,J){let X=Q1(Q,J?.in);return X.setHours(0,0,0,0),X}function iP(Q,J,X){let[q,N]=y2(X?.in,Q,J),K=IK(q),H=IK(N),M=+K-F$(K),F=+H-F$(H);return Math.round((M-F)/oP)}function aP(Q,J){let X=ZX(Q,J),q=O5(J?.in||Q,0);return q.setFullYear(X,0,4),q.setHours(0,0,0,0),l9(q)}function W$(Q,J){let X=+Q1(Q)-+Q1(J);if(X<0)return-1;else if(X>0)return 1;return X}function tP(Q){return O5(Q,Date.now())}function eP(Q){return Q instanceof Date||typeof Q==="object"&&Object.prototype.toString.call(Q)==="[object Date]"}function $L(Q){return!(!eP(Q)&&typeof Q!=="number"||isNaN(+Q1(Q)))}function ZL(Q,J,X){let[q,N]=y2(X?.in,Q,J),K=q.getFullYear()-N.getFullYear(),H=q.getMonth()-N.getMonth();return K*12+H}function QL(Q){return(J)=>{let q=(Q?Math[Q]:Math.trunc)(J);return q===0?0:q}}function JL(Q,J){return+Q1(Q)-+Q1(J)}function GL(Q,J){let X=Q1(Q,J?.in);return X.setHours(23,59,59,999),X}function XL(Q,J){let X=Q1(Q,J?.in),q=X.getMonth();return X.setFullYear(X.getFullYear(),q+1,0),X.setHours(23,59,59,999),X}function qL(Q,J){let X=Q1(Q,J?.in);return+GL(X,J)===+XL(X,J)}function YL(Q,J,X){let[q,N,K]=y2(X?.in,Q,Q,J),H=W$(N,K),M=Math.abs(ZL(N,K));if(M<1)return 0;if(N.getMonth()===1&&N.getDate()>27)N.setDate(30);N.setMonth(N.getMonth()-H*M);let F=W$(N,K)===-H;if(qL(q)&&M===1&&W$(q,K)===1)F=!1;let w=H*(M-+F);return w===0?0:w}function NL(Q,J,X){let q=JL(Q,J)/1000;return QL(X?.roundingMethod)(q)}function UL(Q,J){let X=Q1(Q,J?.in);return X.setFullYear(X.getFullYear(),0,1),X.setHours(0,0,0,0),X}var SS={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"}},KL=(Q,J,X)=>{let q,N=SS[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 QX(Q){return(J={})=>{let X=J.width?String(J.width):Q.defaultWidth;return Q.formats[X]||Q.formats[Q.defaultWidth]}}var DS={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},vS={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},bS={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},BL={date:QX({formats:DS,defaultWidth:"full"}),time:QX({formats:vS,defaultWidth:"full"}),dateTime:QX({formats:bS,defaultWidth:"full"})};var kS={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},HL=(Q,J,X,q)=>kS[Q];function w$(Q){return(J,X)=>{let q=X?.context?String(X.context):"standalone",N;if(q==="formatting"&&Q.formattingValues){let H=Q.defaultFormattingWidth||Q.defaultWidth,M=X?.width?String(X.width):H;N=Q.formattingValues[M]||Q.formattingValues[H]}else{let H=Q.defaultWidth,M=X?.width?String(X.width):Q.defaultWidth;N=Q.values[M]||Q.values[H]}let K=Q.argumentCallback?Q.argumentCallback(J):J;return N[K]}}var fS={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},yS={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},gS={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"]},hS={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"]},uS={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"}},xS={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"}},mS=(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"},ML={ordinalNumber:mS,era:w$({values:fS,defaultWidth:"wide"}),quarter:w$({values:yS,defaultWidth:"wide",argumentCallback:(Q)=>Q-1}),month:w$({values:gS,defaultWidth:"wide"}),day:w$({values:hS,defaultWidth:"wide"}),dayPeriod:w$({values:uS,defaultWidth:"wide",formattingValues:xS,defaultFormattingWidth:"wide"})};function R$(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],M=q&&Q.parsePatterns[q]||Q.parsePatterns[Q.defaultParseWidth],F=Array.isArray(M)?pS(M,(T)=>T.test(H)):dS(M,(T)=>T.test(H)),w;w=Q.valueCallback?Q.valueCallback(F):F,w=X.valueCallback?X.valueCallback(w):w;let z=J.slice(H.length);return{value:w,rest:z}}}function dS(Q,J){for(let X in Q)if(Object.prototype.hasOwnProperty.call(Q,X)&&J(Q[X]))return X;return}function pS(Q,J){for(let X=0;X<Q.length;X++)if(J(Q[X]))return X;return}function FL(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 M=J.slice(N.length);return{value:H,rest:M}}}var cS=/^(\d+)(th|st|nd|rd)?/i,lS=/\d+/i,rS={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},sS={any:[/^b/i,/^(a|c)/i]},nS={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},oS={any:[/1/i,/2/i,/3/i,/4/i]},iS={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},aS={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]},tS={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},eS={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]},$D={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},ZD={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}},WL={ordinalNumber:FL({matchPattern:cS,parsePattern:lS,valueCallback:(Q)=>parseInt(Q,10)}),era:R$({matchPatterns:rS,defaultMatchWidth:"wide",parsePatterns:sS,defaultParseWidth:"any"}),quarter:R$({matchPatterns:nS,defaultMatchWidth:"wide",parsePatterns:oS,defaultParseWidth:"any",valueCallback:(Q)=>Q+1}),month:R$({matchPatterns:iS,defaultMatchWidth:"wide",parsePatterns:aS,defaultParseWidth:"any"}),day:R$({matchPatterns:tS,defaultMatchWidth:"wide",parsePatterns:eS,defaultParseWidth:"any"}),dayPeriod:R$({matchPatterns:$D,defaultMatchWidth:"any",parsePatterns:ZD,defaultParseWidth:"any"})};var aQ={code:"en-US",formatDistance:KL,formatLong:BL,formatRelative:HL,localize:ML,match:WL,options:{weekStartsOn:0,firstWeekContainsDate:1}};function wL(Q,J){let X=Q1(Q,J?.in);return iP(X,UL(X))+1}function RL(Q,J){let X=Q1(Q,J?.in),q=+l9(X)-+aP(X);return Math.round(q/$X)+1}function JX(Q,J){let X=Q1(Q,J?.in),q=X.getFullYear(),N=m4(),K=J?.firstWeekContainsDate??J?.locale?.options?.firstWeekContainsDate??N.firstWeekContainsDate??N.locale?.options?.firstWeekContainsDate??1,H=O5(J?.in||Q,0);H.setFullYear(q+1,0,K),H.setHours(0,0,0,0);let M=A8(H,J),F=O5(J?.in||Q,0);F.setFullYear(q,0,K),F.setHours(0,0,0,0);let w=A8(F,J);if(+X>=+M)return q+1;else if(+X>=+w)return q;else return q-1}function zL(Q,J){let X=m4(),q=J?.firstWeekContainsDate??J?.locale?.options?.firstWeekContainsDate??X.firstWeekContainsDate??X.locale?.options?.firstWeekContainsDate??1,N=JX(Q,J),K=O5(J?.in||Q,0);return K.setFullYear(N,0,q),K.setHours(0,0,0,0),A8(K,J)}function TL(Q,J){let X=Q1(Q,J?.in),q=+A8(X,J)-+zL(X,J);return Math.round(q/$X)+1}function Y1(Q,J){let X=Q<0?"-":"",q=Math.abs(Q).toString().padStart(J,"0");return X+q}var j8={y(Q,J){let X=Q.getFullYear(),q=X>0?X:1-X;return Y1(J==="yy"?q%100:q,J.length)},M(Q,J){let X=Q.getMonth();return J==="M"?String(X+1):Y1(X+1,2)},d(Q,J){return Y1(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 Y1(Q.getHours()%12||12,J.length)},H(Q,J){return Y1(Q.getHours(),J.length)},m(Q,J){return Y1(Q.getMinutes(),J.length)},s(Q,J){return Y1(Q.getSeconds(),J.length)},S(Q,J){let X=J.length,q=Q.getMilliseconds(),N=Math.trunc(q*Math.pow(10,X-3));return Y1(N,J.length)}};var z$={am:"am",pm:"pm",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},VK={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 j8.y(Q,J)},Y:function(Q,J,X,q){let N=JX(Q,q),K=N>0?N:1-N;if(J==="YY"){let H=K%100;return Y1(H,2)}if(J==="Yo")return X.ordinalNumber(K,{unit:"year"});return Y1(K,J.length)},R:function(Q,J){let X=ZX(Q);return Y1(X,J.length)},u:function(Q,J){let X=Q.getFullYear();return Y1(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 Y1(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 Y1(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 j8.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 Y1(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=TL(Q,q);if(J==="wo")return X.ordinalNumber(N,{unit:"week"});return Y1(N,J.length)},I:function(Q,J,X){let q=RL(Q);if(J==="Io")return X.ordinalNumber(q,{unit:"week"});return Y1(q,J.length)},d:function(Q,J,X){if(J==="do")return X.ordinalNumber(Q.getDate(),{unit:"date"});return j8.d(Q,J)},D:function(Q,J,X){let q=wL(Q);if(J==="Do")return X.ordinalNumber(q,{unit:"dayOfYear"});return Y1(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 Y1(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 Y1(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 Y1(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=z$.noon;else if(q===0)N=z$.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=z$.evening;else if(q>=12)N=z$.afternoon;else if(q>=4)N=z$.morning;else N=z$.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 j8.h(Q,J)},H:function(Q,J,X){if(J==="Ho")return X.ordinalNumber(Q.getHours(),{unit:"hour"});return j8.H(Q,J)},K:function(Q,J,X){let q=Q.getHours()%12;if(J==="Ko")return X.ordinalNumber(q,{unit:"hour"});return Y1(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 Y1(q,J.length)},m:function(Q,J,X){if(J==="mo")return X.ordinalNumber(Q.getMinutes(),{unit:"minute"});return j8.m(Q,J)},s:function(Q,J,X){if(J==="so")return X.ordinalNumber(Q.getSeconds(),{unit:"second"});return j8.s(Q,J)},S:function(Q,J){return j8.S(Q,J)},X:function(Q,J,X){let q=Q.getTimezoneOffset();if(q===0)return"Z";switch(J){case"X":return LL(q);case"XXXX":case"XX":return r9(q);case"XXXXX":case"XXX":default:return r9(q,":")}},x:function(Q,J,X){let q=Q.getTimezoneOffset();switch(J){case"x":return LL(q);case"xxxx":case"xx":return r9(q);case"xxxxx":case"xxx":default:return r9(q,":")}},O:function(Q,J,X){let q=Q.getTimezoneOffset();switch(J){case"O":case"OO":case"OOO":return"GMT"+PL(q,":");case"OOOO":default:return"GMT"+r9(q,":")}},z:function(Q,J,X){let q=Q.getTimezoneOffset();switch(J){case"z":case"zz":case"zzz":return"GMT"+PL(q,":");case"zzzz":default:return"GMT"+r9(q,":")}},t:function(Q,J,X){let q=Math.trunc(+Q/1000);return Y1(q,J.length)},T:function(Q,J,X){return Y1(+Q,J.length)}};function PL(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+Y1(K,2)}function LL(Q,J){if(Q%60===0)return(Q>0?"-":"+")+Y1(Math.abs(Q)/60,2);return r9(Q,J)}function r9(Q,J=""){let X=Q>0?"-":"+",q=Math.abs(Q),N=Y1(Math.trunc(q/60),2),K=Y1(q%60,2);return X+N+J+K}var CL=(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"})}},_L=(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"})}},QD=(Q,J)=>{let X=Q.match(/(P+)(p+)?/)||[],q=X[1],N=X[2];if(!N)return CL(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}}",CL(q,J)).replace("{{time}}",_L(N,J))},IL={p:_L,P:QD};var JD=/^D+$/,GD=/^Y+$/,XD=["D","DD","YY","YYYY"];function VL(Q){return JD.test(Q)}function OL(Q){return GD.test(Q)}function EL(Q,J,X){let q=qD(Q,J,X);if(console.warn(q),XD.includes(Q))throw RangeError(q)}function qD(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 YD=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,ND=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,UD=/^'([^]*?)'?$/,KD=/''/g,BD=/[a-zA-Z]/;function q4(Q,J,X){let q=m4(),N=X?.locale??q.locale??aQ,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,M=Q1(Q,X?.in);if(!$L(M))throw RangeError("Invalid time value");let F=J.match(ND).map((z)=>{let T=z[0];if(T==="p"||T==="P"){let L=IL[T];return L(z,N.formatLong)}return z}).join("").match(YD).map((z)=>{if(z==="''")return{isToken:!1,value:"'"};let T=z[0];if(T==="'")return{isToken:!1,value:HD(z)};if(VK[T])return{isToken:!0,value:z};if(T.match(BD))throw RangeError("Format string contains an unescaped latin alphabet character `"+T+"`");return{isToken:!1,value:z}});if(N.localize.preprocessor)F=N.localize.preprocessor(M,F);let w={firstWeekContainsDate:K,weekStartsOn:H,locale:N};return F.map((z)=>{if(!z.isToken)return z.value;let T=z.value;if(!X?.useAdditionalWeekYearTokens&&OL(T)||!X?.useAdditionalDayOfYearTokens&&VL(T))EL(T,J,String(Q));let L=VK[T[0]];return L(M,T,N.localize,w)}).join("")}function HD(Q){let J=Q.match(UD);if(!J)return Q;return J[1].replace(KD,"'")}function AL(Q,J,X){let q=m4(),N=X?.locale??q.locale??aQ,K=2520,H=W$(Q,J);if(isNaN(H))throw RangeError("Invalid time value");let M=Object.assign({},X,{addSuffix:X?.addSuffix,comparison:H}),[F,w]=y2(X?.in,...H>0?[J,Q]:[Q,J]),z=NL(w,F),T=(F$(w)-F$(F))/1000,L=Math.round((z-T)/60),I;if(L<2)if(X?.includeSeconds)if(z<5)return N.formatDistance("lessThanXSeconds",5,M);else if(z<10)return N.formatDistance("lessThanXSeconds",10,M);else if(z<20)return N.formatDistance("lessThanXSeconds",20,M);else if(z<40)return N.formatDistance("halfAMinute",0,M);else if(z<60)return N.formatDistance("lessThanXMinutes",1,M);else return N.formatDistance("xMinutes",1,M);else if(L===0)return N.formatDistance("lessThanXMinutes",1,M);else return N.formatDistance("xMinutes",L,M);else if(L<45)return N.formatDistance("xMinutes",L,M);else if(L<90)return N.formatDistance("aboutXHours",1,M);else if(L<CK){let E=Math.round(L/60);return N.formatDistance("aboutXHours",E,M)}else if(L<2520)return N.formatDistance("xDays",1,M);else if(L<iQ){let E=Math.round(L/CK);return N.formatDistance("xDays",E,M)}else if(L<iQ*2)return I=Math.round(L/iQ),N.formatDistance("aboutXMonths",I,M);if(I=YL(w,F),I<12){let E=Math.round(L/iQ);return N.formatDistance("xMonths",E,M)}else{let E=I%12,O=Math.trunc(I/12);if(E<3)return N.formatDistance("aboutXYears",O,M);else if(E<9)return N.formatDistance("overXYears",O,M);else return N.formatDistance("almostXYears",O+1,M)}}function jL(Q,J){return AL(Q,tP(Q),J)}var J5=t(I1(),1);var OK=t(SL(),1),L6=t(I1(),1);var vL="label";function DL(Q,J){if(typeof Q==="function")Q(J);else if(Q)Q.current=J}function FD(Q,J){let X=Q.options;if(X&&J)Object.assign(X,J)}function bL(Q,J){Q.labels=J}function kL(Q,J,X=vL){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 WD(Q,J=vL){let X={labels:[],datasets:[]};return bL(X,Q.labels),kL(X,Q.datasets,J),X}function wD(Q,J){let{height:X=150,width:q=300,redraw:N=!1,datasetIdKey:K,type:H,data:M,options:F,plugins:w=[],fallbackContent:z,updateMode:T,...L}=Q,I=L6.useRef(null),E=L6.useRef(null),O=()=>{if(!I.current)return;E.current=new u9(I.current,{type:H,data:WD(M,K),options:F&&{...F},plugins:w}),DL(J,E.current)},V=()=>{if(DL(J,null),E.current)E.current.destroy(),E.current=null};return L6.useEffect(()=>{if(!N&&E.current&&F)FD(E.current,F)},[N,F]),L6.useEffect(()=>{if(!N&&E.current)bL(E.current.config.data,M.labels)},[N,M.labels]),L6.useEffect(()=>{if(!N&&E.current&&M.datasets)kL(E.current.config.data,M.datasets,K)},[N,M.datasets]),L6.useEffect(()=>{if(!E.current)return;if(N)V(),setTimeout(O);else E.current.update(T)},[N,F,M.labels,M.datasets,T]),L6.useEffect(()=>{if(!E.current)return;V(),setTimeout(O)},[H]),L6.useEffect(()=>{return O(),()=>V()},[]),OK.jsx("canvas",{ref:I,role:"img",height:X,width:q,...L,children:z})}var RD=L6.forwardRef(wD);function fL(Q,J){return u9.register(J),L6.forwardRef((X,q)=>OK.jsx(RD,{...X,ref:q,type:Q}))}var e5=fL("line",QK),GX=fL("bar",ZK);var t1=["#ed4abf","#9b4dff","#5ad8e6","#62d394","#c77dff","#ff8fd1","#f5c14b","#ff6b7d"],g5={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 T$(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 M=H.dataset.label??q,F=H.parsed.y??0;return`${M}: ${N(F)}`},...K?{footer:K}:{}}}}}function P$(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 L$(Q){return{borderColor:Q,backgroundColor:`${Q}20`,fill:!0,tension:0,pointRadius:3,pointHoverRadius:4,borderWidth:2}}function XX(Q){return{backgroundColor:Q,borderColor:Q,borderWidth:0,borderRadius:4,maxBarThickness:56}}function C$(Q,J){return Q.datasets.map((X,q)=>({label:X.label,data:X.data,...J(q)}))}function qX(Q,J,X){if(Q.length===0)return{labels:[],datasets:[]};let{initBucket:q,accumulate:N,bucketToValue:K}=X,H=new Map;for(let F of Q){let w=H.get(F.timestamp)??q();N(w,F),H.set(F.timestamp,w)}let M=[...H.entries()].sort((F,w)=>F[0]-w[0]);return{labels:M.map(([F])=>q4(new Date(F),"MMM d")),datasets:[{label:J,data:M.map(([,F])=>K(F))}]}}function YX(Q,J){if(Q.length===0)return{labels:[],datasets:[]};let{topN:X=5,rankWeight:q,initBucket:N,accumulate:K,bucketToValue:H}=J,M=new Map;for(let D of Q){let h=`${D.model}::${D.provider}`,p=M.get(h);if(p)p.weight+=q(D);else M.set(h,{model:D.model,provider:D.provider,weight:q(D)})}let w=[...M.entries()].sort((D,h)=>h[1].weight-D[1].weight).slice(0,X),z=new Set(w.map(([D])=>D)),T=new Map;for(let[,{model:D}]of w)T.set(D,(T.get(D)??0)+1);let L=new Map;for(let[D,{model:h,provider:p}]of w)L.set(D,(T.get(h)??0)>1?`${h} (${p})`:h);let I=[...new Set(Q.map((D)=>D.timestamp))].sort((D,h)=>D-h),E=w.map(([D])=>L.get(D)??D);if(Q.some((D)=>!z.has(`${D.model}::${D.provider}`)))E.push("Other");let V=new Map;for(let D of I)V.set(D,{});for(let D of Q){let h=`${D.model}::${D.provider}`,p=z.has(h)?L.get(h)??D.model:"Other",s=V.get(D.timestamp);if(!s)continue;let n=s[p]??N();K(n,D),s[p]=n}return{labels:I.map((D)=>q4(new Date(D),"MMM d")),datasets:E.map((D)=>({label:D,data:I.map((h)=>{let p=V.get(h)?.[D];return p?H(p):0})}))}}var S1=t(M0(),1);function S8(Q){return{borderColor:Q,backgroundColor:"transparent",tension:0.4,pointRadius:0,borderWidth:2}}function NX({timestamps:Q,values:J,color:X}){let q={labels:Q.map((K)=>q4(new Date(K),"MMM d")),datasets:[{data:J,...S8(X)}]};return S1.jsxDEV(e5,{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 UX(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 yL(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 gL(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 KX({title:Q,subtitle:J,children:X}){return S1.jsxDEV("div",{className:"stats-panel overflow-hidden",children:[S1.jsxDEV("div",{className:"px-5 py-4 border-b border-[var(--border-subtle)]",children:[S1.jsxDEV("h3",{className:"text-sm font-semibold text-[var(--text-primary)]",children:Q},void 0,!1,void 0,this),J?S1.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),S1.jsxDEV("div",{className:"overflow-x-auto",children:X},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function zD(Q){if(Q==="right")return"text-right";if(Q==="center")return"text-center";return""}function BX({columns:Q,gridTemplate:J}){return S1.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)=>S1.jsxDEV("div",{className:zD(X.align),children:X.label},X.label,!1,void 0,this)),S1.jsxDEV("div",{},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function HX({children:Q}){return S1.jsxDEV("div",{className:"max-h-[calc(100vh-300px)] overflow-y-auto",children:Q},void 0,!1,void 0,this)}function MX({model:Q,provider:J}){return S1.jsxDEV("div",{children:[S1.jsxDEV("div",{className:"font-medium text-[var(--text-primary)]",children:Q},void 0,!1,void 0,this),S1.jsxDEV("div",{className:"text-xs text-[var(--text-muted)]",children:J},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function FX({gridTemplate:Q,cells:J,trendCell:X,isExpanded:q,onToggle:N,expandedContent:K}){return S1.jsxDEV("div",{className:"border-t border-[var(--border-subtle)]",children:[S1.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:S1.jsxDEV("div",{className:"grid gap-3 items-center",style:{gridTemplateColumns:Q},children:[J,S1.jsxDEV("div",{className:"h-10",children:X},void 0,!1,void 0,this),S1.jsxDEV("div",{className:"flex justify-center text-[var(--text-muted)]",children:q?S1.jsxDEV(SQ,{size:16},void 0,!1,void 0,this):S1.jsxDEV(jQ,{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?S1.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 WX(){return S1.jsxDEV("div",{className:"text-[var(--text-muted)] text-center text-sm",children:"-"},void 0,!1,void 0,this)}function wX({message:Q="No data available"}){return S1.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 t0(Q){return Q.toLocaleString()}function d4(Q){return Q.toLocaleString(void 0,{notation:"compact"})}function d1(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 $6(Q,J=1){return`${(Q*100).toFixed(J)}%`}function E5(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 hL(Q){if(Q===null)return"-";return Q.toFixed(1)}function p4(Q){return jL(new Date(Q),{addSuffix:!0})}function EK(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 z5=t(I1(),1),g2=new Map,TD=64;function T5(Q,J,X){let q=JSON.stringify(Q),[N,K]=z5.useState(()=>g2.get(q)?.data??null),[H,M]=z5.useState(null),[F,w]=z5.useState(()=>!g2.has(q)),[z,T]=z5.useState(!1),[L,I]=z5.useState(()=>g2.get(q)?.updatedAt??null),E=z5.useRef(J);E.current=J;let O=z5.useRef(q);O.current=q;let V=X?.enabled??!0,D=X?.pollMs,h=z5.useRef(null),p=z5.useRef(!1);p.current=N!==null;let s=z5.useCallback(async($0)=>{if(h.current)h.current.abort();let a=new AbortController;if(h.current=a,$0)T(!0);else w(!0),K(null);M(null);try{let o=await E.current(a.signal);if(a.signal.aborted)return;if(g2.set(O.current,{data:o,updatedAt:Date.now()}),g2.size>TD){let q0=g2.keys().next().value;if(q0!==void 0)g2.delete(q0)}K(o),I(Date.now()),M(null)}catch(o){if(a.signal.aborted)return;M(o instanceof Error?o:Error(String(o)))}finally{if(!a.signal.aborted){if(w(!1),T(!1),h.current===a)h.current=null}}},[]);z5.useEffect(()=>{if(!V){w(!1),T(!1);return}let $0=g2.get(q);if($0)K($0.data),I($0.updatedAt),w(!1),s(!0);else s(p.current);return()=>{if(h.current)h.current.abort(),h.current=null}},[q,V,s]),z5.useEffect(()=>{if(!V||!D)return;let $0=setInterval(()=>{if(document.hidden)return;s(!0)},D);return()=>{clearInterval($0)}},[V,D,s]);let n=z5.useCallback(async()=>{await s(!0)},[s]);return{data:N,error:H,loading:F,refreshing:z,refetch:n,updatedAt:L}}var uL=3600000,RX=24*uL,PD=300000,xL={"1h":{windowLabel:"the last hour",trendLabel:"1h Trend",bucketMs:PD,bucketCount:12,tickFormat:"HH:mm"},"24h":{windowLabel:"the last 24 hours",trendLabel:"24h Trend",bucketMs:uL,bucketCount:24,tickFormat:"HH:mm"},"7d":{windowLabel:"the last 7 days",trendLabel:"7d Trend",bucketMs:RX,bucketCount:7,tickFormat:"MMM d"},"30d":{windowLabel:"the last 30 days",trendLabel:"30d Trend",bucketMs:RX,bucketCount:30,tickFormat:"MMM d"},"90d":{windowLabel:"the last 90 days",trendLabel:"90d Trend",bucketMs:RX,bucketCount:90,tickFormat:"MMM d"},all:{windowLabel:"all time",trendLabel:"Trend",bucketMs:RX,bucketCount:0,tickFormat:"MMM d"}};function tQ(Q){return xL[Q]}function AK(Q,J){return q4(new Date(Q),xL[J].tickFormat)}var LD=["main","subagent","advisor"];function mL(Q){let J=new Map;for(let M of Q)J.set(M.agentType,M);let X=(M)=>M.totalInputTokens+M.totalOutputTokens+M.totalCacheReadTokens+M.totalCacheWriteTokens,q=LD.map((M)=>J.get(M)).filter((M)=>M!==void 0),N=q.reduce((M,F)=>M+X(F),0),K=q.reduce((M,F)=>M+F.totalCost,0),H=q.map((M)=>{let F=X(M);return{agentType:M.agentType,tokens:F,requests:M.totalRequests,cost:M.totalCost,share:N>0?F/N:0}});return{totalTokens:N,totalCost:K,segments:H}}function dL(Q){let J=Q.reduce((M,F)=>M+F.cost,0),X=new Set(Q.map((M)=>M.timestamp)).size,q=X>0?J/X:0,N=new Map;for(let M of Q)N.set(M.model,(N.get(M.model)??0)+M.cost);let K="",H=0;for(let[M,F]of N)if(F>H)K=M,H=F;return{totalCost:J,avgDailyCost:q,topModelName:K,topModelCost:H}}function pL(Q,J){if(Q.length===0)return new Map;let X=tQ(J),q=X.bucketMs,N=X.bucketCount,K=N>0?(()=>{let F=Q.reduce((T,L)=>Math.max(T,L.timestamp),0),z=(F>0?F:Math.floor(Date.now()/q)*q)-(N-1)*q;return Array.from({length:N},(T,L)=>z+L*q)})():Array.from(new Set(Q.map((F)=>F.timestamp))).sort((F,w)=>F-w),H=new Map(K.map((F,w)=>[F,w])),M=new Map;for(let F of Q){let w=`${F.model}::${F.provider}`,z=M.get(w);if(!z)z={label:`${F.model} (${F.provider})`,data:K.map((L)=>({timestamp:L,avgTtftSeconds:null,avgTokensPerSecond:null,requests:0}))},M.set(w,z);let T=H.get(F.timestamp);if(T===void 0)continue;z.data[T]={timestamp:F.timestamp,avgTtftSeconds:F.avgTtft!==null?F.avgTtft/1000:null,avgTokensPerSecond:F.avgTokensPerSecond,requests:F.requests}}return M}function cL(Q,J){let X=Q.totalNegation+Q.totalRepetition+Q.totalBlame,q=new Map;for(let K of J){let H=`${K.model}::${K.provider}`,M=q.get(H),F=K.yelling+K.profanity+K.anguish+K.negation+K.repetition+K.blame;if(M)M.score+=F;else q.set(H,{model:K.model,provider:K.provider,score:F})}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 lL(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}))}var zX=t(M0(),1);function rL({message:Q="No data available",icon:J=gQ,className:X=""}){return zX.jsxDEV("div",{className:`stats-empty-state ${X}`,children:[zX.jsxDEV(J,{size:24,className:"stats-empty-state-icon","aria-hidden":"true"},void 0,!1,void 0,this),zX.jsxDEV("p",{className:"stats-empty-state-message",children:Q},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}var _$=t(M0(),1);function sL({error:Q,onRetry:J,className:X=""}){return _$.jsxDEV("div",{className:`stats-error-state ${X}`,children:_$.jsxDEV("div",{className:"stats-error-state-content",children:[_$.jsxDEV("h4",{className:"stats-error-state-title",children:"Failed to load data"},void 0,!1,void 0,this),Q&&_$.jsxDEV("p",{className:"stats-error-state-message",children:Q.message},void 0,!1,void 0,this),J&&_$.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 nL=t(M0(),1);function Z6({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 nL.jsxDEV("div",{className:`stats-skeleton ${q}`,"data-variant":Q,style:N},void 0,!1,void 0,this)}var C6=t(M0(),1);function e1({loading:Q,error:J,data:X,empty:q=!1,emptyText:N="No data available",fallback:K,onRetry:H,children:M}){if(J&&X===null)return C6.jsxDEV(sL,{error:J,onRetry:H},void 0,!1,void 0,this);if(Q&&X===null){if(K)return C6.jsxDEV(C6.Fragment,{children:K},void 0,!1,void 0,this);return C6.jsxDEV("div",{className:"stats-boundary-skeleton",children:[C6.jsxDEV(Z6,{variant:"text",width:"60%",height:24,className:"mb-4"},void 0,!1,void 0,this),C6.jsxDEV(Z6,{variant:"rect",width:"100%",height:160,className:"mb-4"},void 0,!1,void 0,this),C6.jsxDEV(Z6,{variant:"text",width:"80%",height:20,className:"mb-2"},void 0,!1,void 0,this),C6.jsxDEV(Z6,{variant:"text",width:"40%",height:20},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}if(!Q&&(q||X===null))return C6.jsxDEV(rL,{message:N},void 0,!1,void 0,this);return C6.jsxDEV(C6.Fragment,{children:M},void 0,!1,void 0,this)}var Q6=t(M0(),1);function h2({columns:Q,data:J,keyExtractor:X,onRowClick:q,renderMobileCard:N,emptyText:K="No data available"}){let H=(M,F)=>{if(q&&(M.key==="Enter"||M.key===" "))M.preventDefault(),q(F)};if(J.length===0)return Q6.jsxDEV("div",{className:"stats-table-empty",children:K},void 0,!1,void 0,this);return Q6.jsxDEV("div",{className:"stats-table-wrapper",children:[N&&Q6.jsxDEV("div",{className:"stats-table-mobile-only",children:Q6.jsxDEV("div",{className:"stats-table-mobile-list",children:J.map((M)=>{let F=String(X(M));return Q6.jsxDEV("div",{className:"stats-table-mobile-card-wrapper",children:N(M,q?()=>q(M):void 0)},F,!1,void 0,this)})},void 0,!1,void 0,this)},void 0,!1,void 0,this),Q6.jsxDEV("div",{className:N?"stats-table-desktop-only":"stats-table-container",children:Q6.jsxDEV("table",{className:"stats-table",children:[Q6.jsxDEV("thead",{children:Q6.jsxDEV("tr",{children:Q.map((M)=>{let F=["stats-table-th",M.numeric?"stats-text-right":"stats-text-left",M.className||""].filter(Boolean).join(" ");return Q6.jsxDEV("th",{className:F,children:M.header},M.key,!1,void 0,this)})},void 0,!1,void 0,this)},void 0,!1,void 0,this),Q6.jsxDEV("tbody",{children:J.map((M)=>{let F=String(X(M)),w=typeof q==="function",z=["stats-table-tr",w?"stats-table-tr-clickable":""].filter(Boolean).join(" ");return Q6.jsxDEV("tr",{className:z,onClick:w?()=>q(M):void 0,onKeyDown:w?(T)=>H(T,M):void 0,tabIndex:w?0:void 0,role:w?"button":void 0,children:Q.map((T)=>{let L=["stats-table-td",T.numeric?"stats-text-right":"stats-text-left",T.className||""].filter(Boolean).join(" ");return Q6.jsxDEV("td",{className:L,children:T.render?T.render(M):M[T.key]},T.key,!1,void 0,this)})},F,!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 n9=t(I1(),1),c6=t(M0(),1);function jK({data:Q,title:J,initialCollapsed:X=!1}){let[q,N]=n9.useState(X),[K,H]=n9.useState(!1),M=n9.useRef(0),F=JSON.stringify(Q,null,2);return n9.useEffect(()=>()=>window.clearTimeout(M.current),[]),c6.jsxDEV("div",{className:"stats-json-block",children:[c6.jsxDEV("div",{className:"stats-json-block-header",onClick:()=>N(!q),onKeyDown:(T)=>{if(T.key==="Enter"||T.key===" ")T.preventDefault(),N(!q)},tabIndex:0,role:"button","aria-expanded":!q,children:[c6.jsxDEV("span",{className:"stats-json-block-title",children:J||"JSON"},void 0,!1,void 0,this),c6.jsxDEV("div",{className:"stats-json-actions",children:[c6.jsxDEV("button",{type:"button",className:"stats-json-copy-btn",onClick:async(T)=>{T.stopPropagation();try{await navigator.clipboard.writeText(F),H(!0),window.clearTimeout(M.current),M.current=window.setTimeout(()=>H(!1),1500)}catch{}},"aria-label":K?"Copied to clipboard":"Copy JSON to clipboard",children:[K?c6.jsxDEV(AQ,{size:13},void 0,!1,void 0,this):c6.jsxDEV(vQ,{size:13},void 0,!1,void 0,this),K?"Copied":"Copy"]},void 0,!0,void 0,this),c6.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&&c6.jsxDEV("div",{className:"stats-json-block-content-wrapper",children:c6.jsxDEV("pre",{className:"stats-json-block-content",children:c6.jsxDEV("code",{children:F},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 J1=t(M0(),1);function oL({stats:Q}){return J1.jsxDEV("div",{className:"stats-metric-cluster",children:[J1.jsxDEV("div",{className:"stats-metric-primary-grid",children:[J1.jsxDEV("div",{className:"stats-metric-card primary",children:[J1.jsxDEV("div",{className:"stats-metric-label",children:"Total Cost"},void 0,!1,void 0,this),J1.jsxDEV("div",{className:"stats-metric-value",children:d1(Q.totalCost,Q.totalCost>0&&Q.totalCost<0.01?4:2)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),J1.jsxDEV("div",{className:"stats-metric-card primary",children:[J1.jsxDEV("div",{className:"stats-metric-label",children:"Requests"},void 0,!1,void 0,this),J1.jsxDEV("div",{className:"stats-metric-value",children:t0(Q.totalRequests)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),J1.jsxDEV("div",{className:"stats-metric-card primary",children:[J1.jsxDEV("div",{className:"stats-metric-label",children:"Cache Rate"},void 0,!1,void 0,this),J1.jsxDEV("div",{className:"stats-metric-value",children:$6(Q.cacheRate)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),J1.jsxDEV("div",{className:"stats-metric-card primary",children:[J1.jsxDEV("div",{className:"stats-metric-label",children:"Error Rate"},void 0,!1,void 0,this),J1.jsxDEV("div",{className:"stats-metric-value",children:$6(Q.errorRate)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),J1.jsxDEV("div",{className:"stats-metric-secondary-grid",children:[J1.jsxDEV("div",{className:"stats-metric-card secondary",children:[J1.jsxDEV("div",{className:"stats-metric-label",children:"Input Tokens"},void 0,!1,void 0,this),J1.jsxDEV("div",{className:"stats-metric-value",children:d4(Q.totalInputTokens)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),J1.jsxDEV("div",{className:"stats-metric-card secondary",children:[J1.jsxDEV("div",{className:"stats-metric-label",children:"Output Tokens"},void 0,!1,void 0,this),J1.jsxDEV("div",{className:"stats-metric-value",children:d4(Q.totalOutputTokens)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),J1.jsxDEV("div",{className:"stats-metric-card secondary",children:[J1.jsxDEV("div",{className:"stats-metric-label",children:"Premium Requests"},void 0,!1,void 0,this),J1.jsxDEV("div",{className:"stats-metric-value",children:t0(Q.totalPremiumRequests)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),J1.jsxDEV("div",{className:"stats-metric-card secondary",children:[J1.jsxDEV("div",{className:"stats-metric-label",children:"Tokens/s"},void 0,!1,void 0,this),J1.jsxDEV("div",{className:"stats-metric-value",children:hL(Q.avgTokensPerSecond)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),J1.jsxDEV("div",{className:"stats-metric-card secondary",children:[J1.jsxDEV("div",{className:"stats-metric-label",children:"Avg Latency"},void 0,!1,void 0,this),J1.jsxDEV("div",{className:"stats-metric-value",children:E5(Q.avgDuration)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),J1.jsxDEV("div",{className:"stats-metric-card secondary",children:[J1.jsxDEV("div",{className:"stats-metric-label",children:"Avg TTFT"},void 0,!1,void 0,this),J1.jsxDEV("div",{className:"stats-metric-value",children:E5(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 u2=t(M0(),1);function f1({title:Q,subtitle:J,actions:X,children:q,className:N="",...K}){return u2.jsxDEV("div",{className:`stats-panel ${N}`,...K,children:[(Q||J||X)&&u2.jsxDEV("div",{className:"stats-panel-header",children:[u2.jsxDEV("div",{className:"stats-panel-header-titles",children:[Q&&u2.jsxDEV("h3",{className:"stats-panel-title",children:Q},void 0,!1,void 0,this),J&&u2.jsxDEV("p",{className:"stats-panel-subtitle",children:J},void 0,!1,void 0,this)]},void 0,!0,void 0,this),X&&u2.jsxDEV("div",{className:"stats-panel-actions",children:X},void 0,!1,void 0,this)]},void 0,!0,void 0,this),u2.jsxDEV("div",{className:"stats-panel-body",children:q},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}var c4=t(I1(),1);var iL=t(M0(),1);function _6({variant:Q,children:J,className:X=""}){return iL.jsxDEV("span",{className:`stats-status-pill ${X}`,"data-variant":Q,children:J},void 0,!1,void 0,this)}var W0=t(M0(),1);function aL({id:Q,onClose:J}){let[X,q]=c4.useState(null),[N,K]=c4.useState(!1),[H,M]=c4.useState(null),F=c4.useRef(null),w=c4.useRef(null);if(c4.useEffect(()=>{if(Q===null){q(null);return}F.current=document.activeElement,K(!0),M(null),q(null);let T=new AbortController;return DP(Q,T.signal).then((L)=>{if(T.signal.aborted)return;q(L),setTimeout(()=>w.current?.focus(),50)}).catch((L)=>{if(T.signal.aborted)return;M(L instanceof Error?L:Error(String(L)))}).finally(()=>{if(!T.signal.aborted)K(!1)}),()=>T.abort()},[Q]),c4.useEffect(()=>{if(Q===null)return;let T=(L)=>{if(L.key==="Escape")J()};return window.addEventListener("keydown",T),()=>{if(window.removeEventListener("keydown",T),F.current)F.current.focus()}},[Q,J]),Q===null)return null;return W0.jsxDEV("div",{className:"stats-drawer-overlay",onClick:(T)=>{if(T.target===T.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(d9,{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(Z6,{variant:"text",width:"60%",height:24,className:"mb-4"},void 0,!1,void 0,this),W0.jsxDEV(Z6,{variant:"rect",width:"100%",height:80,className:"mb-4"},void 0,!1,void 0,this),W0.jsxDEV(Z6,{variant:"rect",width:"100%",height:120,className:"mb-4"},void 0,!1,void 0,this),W0.jsxDEV(Z6,{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(_6,{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(m9,{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:d1(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(pQ,{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:t0(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(yQ,{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:t0(X.usage.totalTokens)},void 0,!1,void 0,this),W0.jsxDEV("div",{className:"stats-drawer-metric-sub",children:[t0(X.usage.input)," in · ",t0(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(DQ,{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:E5(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(rQ,{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:E5(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(fQ,{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(jK,{data:X.output,title:"Output Payload",initialCollapsed:!1},void 0,!1,void 0,this),W0.jsxDEV(jK,{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 SK=t(M0(),1);function eQ({options:Q,value:J,onChange:X,className:q=""}){return SK.jsxDEV("div",{className:`stats-segmented-control ${q}`,role:"radiogroup",children:Q.map((N)=>{let K=N.value===J;return SK.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 w0=t(M0(),1);function JC({active:Q,range:J,refreshTrigger:X}){let{data:q,error:N,loading:K}=T5(["behavior",J,X],(H)=>bP(J,H),{pollMs:30000,enabled:Q});return w0.jsxDEV("div",{className:"stats-route-container space-y-6",children:w0.jsxDEV(e1,{loading:K,error:N,data:q,children:q&&w0.jsxDEV(w0.Fragment,{children:[w0.jsxDEV(CD,{overall:q.overall,behaviorSeries:q.behaviorSeries},void 0,!1,void 0,this),w0.jsxDEV(_D,{behaviorSeries:q.behaviorSeries},void 0,!1,void 0,this),w0.jsxDEV(ID,{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 TX(Q,J){if(J<=0)return;return`${(Q/J).toFixed(2)} / msg`}function CD({overall:Q,behaviorSeries:J}){let X=J5.useMemo(()=>cL(Q,J),[Q,J]),q=Q.totalMessages,N=[{label:"User Messages",value:t0(Q.totalMessages),sub:q>0?"in range":void 0},{label:"Yelling (CAPS)",value:t0(Q.totalYelling),sub:TX(Q.totalYelling,q)},{label:"Profanity Hits",value:t0(Q.totalProfanity),sub:TX(Q.totalProfanity,q)},{label:"Anguish Signals",value:t0(Q.totalAnguish),sub:TX(Q.totalAnguish,q)},{label:"Friction Signals",value:t0(X.totalFrustration),sub:TX(X.totalFrustration,q)},{label:"Highest Friction Model",value:X.highestFrictionModel?.model??"—",sub:X.highestFrictionModel?`${t0(X.highestFrictionModel.score)} hits`:void 0}];return w0.jsxDEV("div",{className:"grid grid-cols-2 md:grid-cols-6 gap-4",children:N.map((K)=>w0.jsxDEV(f1,{className:"stats-behavior-summary-card py-3 px-4",children:[w0.jsxDEV("p",{className:"text-xs stats-text-muted mb-1 font-medium truncate",children:K.label},void 0,!1,void 0,this),w0.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&&w0.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 DK=[{value:"yelling",label:"CAPS",title:"Yelling (CAPS)"},{value:"profanity",label:"Profanity",title:"Profanity"},{value:"anguish",label:"Anguish",title:"Anguish (!!!, nooo, dude, ..)"},{value:"negation",label:"Negation",title:"Negation (no/nope/wrong)"},{value:"repetition",label:"Repetition",title:"Repetition (i meant, still doesnt)"},{value:"blame",label:"Blame",title:"Blame (you didnt, stop X-ing)"},{value:"frustration",label:"Frustration",title:"Frustration (neg + rep + blame)"},{value:"total",label:"All",title:"All signals combined"}];function tL(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 eL(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 $C(Q,J){if(J<=0)return 0;return Q/J*100}function _D({behaviorSeries:Q}){let[J,X]=J5.useState(!1),[q,N]=J5.useState("total"),K=d6(),H=g5[K],M=J5.useMemo(()=>{if(J)return YX(Q,{rankWeight:(h)=>h.messages,initBucket:()=>({hits:0,messages:0}),accumulate:(h,p)=>{h.hits+=eL(p,q),h.messages+=p.messages},bucketToValue:(h)=>$C(h.hits,h.messages)});let D=DK.find((h)=>h.value===q)?.title??"Hits";return qX(Q,D,{initBucket:()=>({hits:0,messages:0}),accumulate:(h,p)=>{h.hits+=eL(p,q),h.messages+=p.messages},bucketToValue:(h)=>$C(h.hits,h.messages)})},[Q,J,q]),F=J5.useMemo(()=>{return T$({chartTheme:H,showLegend:J,defaultLabel:"Hits",formatValue:tL})},[H,J]),{sharedScaleBase:w,yScale:z}=J5.useMemo(()=>{return P$({chartTheme:H,formatY:tL})},[H]),T=J5.useMemo(()=>{return DK.find((D)=>D.value===q)?.title??""},[q]),L=J5.useMemo(()=>{if(!J)return null;return{labels:M.labels,datasets:C$(M,(D)=>L$(t1[D%t1.length]))}},[M,J]),I=J5.useMemo(()=>{return{responsive:!0,maintainAspectRatio:!1,interaction:{mode:"index",intersect:!1},plugins:F,scales:{x:w,y:z}}},[F,w,z]),E=J5.useMemo(()=>{if(J)return null;return{labels:M.labels,datasets:C$(M,(D)=>XX(t1[D%t1.length]))}},[M,J]),O=J5.useMemo(()=>{return{responsive:!0,maintainAspectRatio:!1,interaction:{mode:"index",intersect:!1},plugins:F,scales:{x:{...w,stacked:!0},y:{...z,stacked:!0}},layout:{padding:{top:8}}}},[F,w,z]),V=[{value:!1,label:"All Models"},{value:!0,label:"By Model"}];return w0.jsxDEV(f1,{title:"User Friction Signals",subtitle:`${T} as % of user messages per day`,actions:w0.jsxDEV("div",{className:"flex items-center gap-3 flex-wrap",children:[w0.jsxDEV(eQ,{options:DK.map((D)=>({value:D.value,label:D.label,title:D.title})),value:q,onChange:N},void 0,!1,void 0,this),w0.jsxDEV(eQ,{options:V,value:J,onChange:X},void 0,!1,void 0,this)]},void 0,!0,void 0,this),children:w0.jsxDEV("div",{className:"h-[300px]",children:M.labels.length===0?w0.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&&L?w0.jsxDEV(e5,{data:L,options:I},void 0,!1,void 0,this):E?w0.jsxDEV(GX,{data:E,options:O},void 0,!1,void 0,this):null},void 0,!1,void 0,this)},void 0,!1,void 0,this)}var ZC="2fr 0.9fr 0.8fr 0.8fr 0.8fr 0.9fr 0.8fr 140px 40px";function QC(Q){if(Q.totalMessages===0)return 0;return(Q.totalYelling+Q.totalProfanity+Q.totalAnguish+Q.totalNegation+Q.totalRepetition+Q.totalBlame)/Q.totalMessages}function I$(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 ID({models:Q,behaviorSeries:J}){let[X,q]=J5.useState(null),N=d6(),K=g5[N],H=J5.useMemo(()=>OD(J),[J]),M=J5.useMemo(()=>{return[...Q].sort((F,w)=>{if(w.totalMessages!==F.totalMessages)return w.totalMessages-F.totalMessages;return QC(w)-QC(F)})},[Q]);return w0.jsxDEV(KX,{title:"Behavior Signals by Model",subtitle:"Rates are per user message",children:[w0.jsxDEV(BX,{gridTemplate:ZC,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),w0.jsxDEV(HX,{children:[M.map((F,w)=>{let z=`${F.model}::${F.provider}`,T=H.get(z)?.data??[],L=t1[w%t1.length],I=X===z,E=F.totalNegation+F.totalRepetition+F.totalBlame,O=F.totalYelling+F.totalProfanity+F.totalAnguish+E;return w0.jsxDEV(FX,{gridTemplate:ZC,isExpanded:I,onToggle:()=>q(I?null:z),cells:[w0.jsxDEV(MX,{model:F.model,provider:F.provider},"name",!1,void 0,this),w0.jsxDEV("div",{className:"text-right text-[var(--text-secondary)] font-mono text-sm",children:t0(F.totalMessages)},"messages",!1,void 0,this),w0.jsxDEV("div",{className:"text-right text-[var(--text-secondary)] font-mono text-sm",children:I$(F.totalYelling,F.totalMessages)},"caps",!1,void 0,this),w0.jsxDEV("div",{className:"text-right text-[var(--text-secondary)] font-mono text-sm",children:I$(F.totalProfanity,F.totalMessages)},"profanity",!1,void 0,this),w0.jsxDEV("div",{className:"text-right text-[var(--text-secondary)] font-mono text-sm",children:I$(F.totalAnguish,F.totalMessages)},"anguish",!1,void 0,this),w0.jsxDEV("div",{className:"text-right text-[var(--text-secondary)] font-mono text-sm",children:I$(E,F.totalMessages)},"frustration",!1,void 0,this),w0.jsxDEV("div",{className:"text-right text-[var(--text-secondary)] font-mono text-sm",children:I$(O,F.totalMessages)},"hits",!1,void 0,this)],trendCell:T.length===0?w0.jsxDEV(WX,{},void 0,!1,void 0,this):w0.jsxDEV(NX,{timestamps:T.map((V)=>V.timestamp),values:T.map((V)=>V.total),color:L},void 0,!1,void 0,this),expandedContent:w0.jsxDEV("div",{className:"grid gap-4",style:{gridTemplateColumns:"220px 1fr"},children:[w0.jsxDEV("div",{className:"space-y-4 text-sm",children:[w0.jsxDEV(o9,{label:"Yelling (CAPS)",total:F.totalYelling,messages:F.totalMessages,valueClass:"text-[#ed4abf]"},void 0,!1,void 0,this),w0.jsxDEV(o9,{label:"Profanity",total:F.totalProfanity,messages:F.totalMessages,valueClass:"text-[#ff6b7d]"},void 0,!1,void 0,this),w0.jsxDEV(o9,{label:"Anguish (!!!, nooo, dude, ..)",total:F.totalAnguish,messages:F.totalMessages,valueClass:"text-[#9b4dff]"},void 0,!1,void 0,this),w0.jsxDEV(o9,{label:"Negation (no/nope/wrong)",total:F.totalNegation,messages:F.totalMessages,valueClass:"text-[#5ad8e6]"},void 0,!1,void 0,this),w0.jsxDEV(o9,{label:"Repetition (i meant, still doesnt)",total:F.totalRepetition,messages:F.totalMessages,valueClass:"text-[#5ad8e6]"},void 0,!1,void 0,this),w0.jsxDEV(o9,{label:"Blame (you didnt, stop X-ing)",total:F.totalBlame,messages:F.totalMessages,valueClass:"text-[#5ad8e6]"},void 0,!1,void 0,this),w0.jsxDEV(o9,{label:"Avg chars / msg",total:F.totalChars,messages:F.totalMessages,valueClass:"stats-text-secondary",mode:"average"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),w0.jsxDEV("div",{className:"h-[200px]",children:T.length===0?w0.jsxDEV(wX,{},void 0,!1,void 0,this):w0.jsxDEV(VD,{data:T,chartTheme:K},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},z,!1,void 0,this)}),M.length===0?w0.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 o9({label:Q,total:J,messages:X,valueClass:q,mode:N="rate"}){let K=N==="rate"?"% of msgs":"Per msg",H=J5.useMemo(()=>{if(X===0)return"-";return N==="rate"?I$(J,X):(J/X).toFixed(0)},[J,X,N]);return w0.jsxDEV("div",{children:[w0.jsxDEV("div",{className:"text-[var(--text-primary)] font-medium mb-1",children:Q},void 0,!1,void 0,this),w0.jsxDEV("div",{className:"space-y-0.5 text-[var(--text-secondary)]",children:[w0.jsxDEV("div",{className:"flex items-center justify-between",children:[w0.jsxDEV("span",{className:"stats-text-muted text-xs",children:"Total"},void 0,!1,void 0,this),w0.jsxDEV("span",{className:`font-mono text-xs ${q}`,children:t0(J)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),w0.jsxDEV("div",{className:"flex items-center justify-between",children:[w0.jsxDEV("span",{className:"stats-text-muted text-xs",children:K},void 0,!1,void 0,this),w0.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 PX={yelling:"#ed4abf",profanity:"#ff6b7d",anguish:"#9b4dff",frustration:"#5ad8e6"};function VD({data:Q,chartTheme:J}){let X=J5.useMemo(()=>{return{labels:Q.map((N)=>q4(new Date(N.timestamp),"MMM d")),datasets:[{label:"CAPS",data:Q.map((N)=>N.yelling),...S8(PX.yelling)},{label:"Profanity",data:Q.map((N)=>N.profanity),...S8(PX.profanity)},{label:"Anguish",data:Q.map((N)=>N.anguish),...S8(PX.anguish)},{label:"Frustration",data:Q.map((N)=>N.frustration),...S8(PX.frustration)}]}},[Q]),q=J5.useMemo(()=>{return{responsive:!0,maintainAspectRatio:!1,plugins:UX(J),scales:yL(J)}},[J]);return w0.jsxDEV(e5,{data:X,options:q},void 0,!1,void 0,this)}function OD(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 M=H.get(N.timestamp)??{timestamp:N.timestamp,yelling:0,profanity:0,anguish:0,frustration:0,total:0};M.yelling+=N.yelling,M.profanity+=N.profanity,M.anguish+=N.anguish,M.frustration+=N.negation+N.repetition+N.blame,M.total=M.yelling+M.profanity+M.anguish+M.frustration,H.set(N.timestamp,M)}let q=new Map;for(let[N,K]of X){let H=J.map((M)=>K.get(M)??{timestamp:M,yelling:0,profanity:0,anguish:0,frustration:0,total:0});q.set(N,{data:H})}return q}var l6=t(I1(),1);var G5=t(M0(),1);function GC({active:Q,range:J,refreshTrigger:X}){let{data:q,error:N,loading:K}=T5(["costs",J,X],(H)=>jP(J,H),{pollMs:30000,enabled:Q});return G5.jsxDEV("div",{className:"stats-route-container space-y-6",children:G5.jsxDEV(e1,{loading:K,error:N,data:q,children:q&&G5.jsxDEV(G5.Fragment,{children:[G5.jsxDEV(ED,{costSeries:q.costSeries},void 0,!1,void 0,this),G5.jsxDEV(SD,{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 ED({costSeries:Q}){let J=l6.useMemo(()=>dL(Q),[Q]),X=[{label:"Total Cost",value:d1(J.totalCost)},{label:"Average / Day",value:d1(J.avgDailyCost)},{label:"Top Model",value:J.topModelName||"—",sub:J.topModelName?d1(J.topModelCost):void 0}];return G5.jsxDEV("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-4",children:X.map((q)=>G5.jsxDEV(f1,{className:"stats-cost-overview-card py-4 px-5",children:[G5.jsxDEV("p",{className:"text-xs stats-text-muted mb-1 font-medium uppercase tracking-wider",children:q.label},void 0,!1,void 0,this),G5.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&&G5.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 AD={dark:"rgba(248, 250, 252, 0.7)",light:"rgba(15, 23, 42, 0.6)"};function jD(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 M=`$${Math.round(H)}`,{x:F,y:w}=K.getProps(["x","y"],!0);X.fillText(M,F,w-3)}X.restore()}}}function SD({costSeries:Q}){let[J,X]=l6.useState(!1),q=d6(),N=g5[q],K=l6.useMemo(()=>{if(J)return YX(Q,{rankWeight:(O)=>O.cost,initBucket:()=>({total:0}),accumulate:(O,V)=>{O.total+=V.cost},bucketToValue:(O)=>O.total});return qX(Q,"Cost",{initBucket:()=>({total:0}),accumulate:(O,V)=>{O.total+=V.cost},bucketToValue:(O)=>O.total})},[Q,J]),H=l6.useMemo(()=>{return T$({chartTheme:N,showLegend:J,defaultLabel:"Cost",formatValue:(O)=>`$${O.toFixed(2)}`,footer:(O)=>{if(!J||O.length<2)return;return`Total: $${O.reduce((D,h)=>D+(h.parsed.y??0),0).toFixed(2)}`}})},[N,J]),{sharedScaleBase:M,yScale:F}=l6.useMemo(()=>{return P$({chartTheme:N,formatY:(O)=>`$${Math.round(O)}`})},[N]),w=l6.useMemo(()=>{return jD(AD[q])},[q]),z=l6.useMemo(()=>{if(!J)return null;return{labels:K.labels,datasets:C$(K,(O)=>L$(t1[O%t1.length]))}},[K,J]),T=l6.useMemo(()=>{return{responsive:!0,maintainAspectRatio:!1,interaction:{mode:"index",intersect:!1},plugins:H,scales:{x:M,y:F}}},[H,M,F]),L=l6.useMemo(()=>{if(J)return null;return{labels:K.labels,datasets:C$(K,(O)=>XX(t1[O%t1.length]))}},[K,J]),I=l6.useMemo(()=>{return{responsive:!0,maintainAspectRatio:!1,interaction:{mode:"index",intersect:!1},plugins:{...H,costBarLabels:{}},scales:{x:{...M,stacked:!0},y:{...F,stacked:!0}},layout:{padding:{top:24}}}},[H,M,F]);return G5.jsxDEV(f1,{title:"Daily Cost",subtitle:"API spending over time",actions:G5.jsxDEV(eQ,{options:[{value:!1,label:"All Models"},{value:!0,label:"By Model"}],value:J,onChange:X},void 0,!1,void 0,this),children:G5.jsxDEV("div",{className:"h-[300px]",children:K.labels.length===0?G5.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&&z?G5.jsxDEV(e5,{data:z,options:T},void 0,!1,void 0,this):L?G5.jsxDEV(GX,{data:L,options:I,plugins:[w]},void 0,!1,void 0,this):null},void 0,!1,void 0,this)},void 0,!1,void 0,this)}var XC=t(I1(),1);var V1=t(M0(),1);function qC({active:Q,refreshTrigger:J,onRequestClick:X}){let{data:q,error:N,loading:K}=T5(["recent-errors-dense",J],(F)=>SP(50,F),{pollMs:30000,enabled:Q}),H=XC.useMemo(()=>[{key:"model",header:"Model",render:(F)=>V1.jsxDEV("div",{children:[V1.jsxDEV("div",{className:"stats-font-medium stats-text-primary",children:F.model},void 0,!1,void 0,this),V1.jsxDEV("div",{className:"stats-text-xs stats-text-muted",children:F.provider},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},{key:"timestamp",header:"Time",render:(F)=>p4(F.timestamp)},{key:"errorMessage",header:"Error Message",render:(F)=>V1.jsxDEV("div",{className:"stats-text-xs stats-text-danger stats-truncate stats-max-w-md stats-font-mono",title:F.errorMessage||"",children:F.errorMessage||"Unknown error"},void 0,!1,void 0,this)},{key:"tokens",header:"Tokens",numeric:!0,render:(F)=>t0(F.usage.totalTokens)},{key:"cost",header:"Cost",numeric:!0,render:(F)=>d1(F.usage.cost.total,4)}],[]);return V1.jsxDEV("div",{className:"stats-route-container",children:V1.jsxDEV(f1,{title:"Recent Errors",subtitle:"Up to 50 most recent failed requests in the stats database",children:V1.jsxDEV(e1,{loading:K,error:N,data:q,emptyText:"No recent failures in the local stats database",children:V1.jsxDEV(h2,{columns:H,data:q||[],keyExtractor:(F)=>F.id||`${F.sessionFile}-${F.entryId}`,onRowClick:(F)=>F.id&&X(F.id),renderMobileCard:(F,w)=>V1.jsxDEV("div",{className:"stats-mobile-card stats-border-danger",onClick:w,children:[V1.jsxDEV("div",{className:"stats-mobile-card-header",children:[V1.jsxDEV("div",{children:[V1.jsxDEV("div",{className:"stats-font-semibold stats-text-primary",children:F.model},void 0,!1,void 0,this),V1.jsxDEV("div",{className:"stats-text-xs stats-text-muted",children:F.provider},void 0,!1,void 0,this)]},void 0,!0,void 0,this),V1.jsxDEV(_6,{variant:"danger",children:"Failed"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),V1.jsxDEV("div",{className:"stats-mobile-card-grid",children:[V1.jsxDEV("div",{children:[V1.jsxDEV("div",{className:"stats-mobile-card-label",children:"Time"},void 0,!1,void 0,this),V1.jsxDEV("div",{className:"stats-mobile-card-value",children:p4(F.timestamp)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),V1.jsxDEV("div",{children:[V1.jsxDEV("div",{className:"stats-mobile-card-label",children:"Cost"},void 0,!1,void 0,this),V1.jsxDEV("div",{className:"stats-mobile-card-value",children:d1(F.usage.cost.total,4)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),V1.jsxDEV("div",{children:[V1.jsxDEV("div",{className:"stats-mobile-card-label",children:"Tokens"},void 0,!1,void 0,this),V1.jsxDEV("div",{className:"stats-mobile-card-value",children:t0(F.usage.totalTokens)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),F.errorMessage&&V1.jsxDEV("div",{className:"stats-mobile-card-error mt-2 stats-font-mono",children:F.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 LX=t(I1(),1);var _0=t(M0(),1);function YC({active:Q,range:J,refreshTrigger:X}){let[q,N]=LX.useState(null),{data:K,error:H,loading:M}=T5(["gain",J,X,q],(F)=>fP(J,q,F),{pollMs:30000,enabled:Q});return _0.jsxDEV("div",{className:"stats-route-container space-y-6",children:_0.jsxDEV(e1,{loading:M,error:H,data:K,children:K&&_0.jsxDEV(_0.Fragment,{children:[_0.jsxDEV(DD,{projects:K.projects,selected:q,onChange:N},void 0,!1,void 0,this),_0.jsxDEV(vD,{overall:K.overall},void 0,!1,void 0,this),_0.jsxDEV(kD,{bySource:K.bySource},void 0,!1,void 0,this),_0.jsxDEV(yD,{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 DD({projects:Q,selected:J,onChange:X}){if(Q.length===0)return null;return _0.jsxDEV("div",{style:{display:"flex",alignItems:"center",gap:"0.5rem"},children:[_0.jsxDEV("span",{className:"stats-text-secondary",style:{fontSize:"0.875rem",whiteSpace:"nowrap"},children:"Project"},void 0,!1,void 0,this),_0.jsxDEV("select",{className:"stats-select",value:J??"",onChange:(q)=>X(q.target.value||null),style:{maxWidth:"480px",flex:1},children:[_0.jsxDEV("option",{value:"",children:"All projects"},void 0,!1,void 0,this),Q.map((q)=>_0.jsxDEV("option",{value:q,children:q},q,!1,void 0,this))]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)}function vD({overall:Q}){return _0.jsxDEV(f1,{title:"Overall Gain",subtitle:"Aggregate snapcompact savings",children:_0.jsxDEV("div",{className:"stats-metric-primary-grid",children:[_0.jsxDEV("div",{className:"stats-metric-card primary",children:[_0.jsxDEV("div",{className:"stats-metric-label",children:"Saved Tokens"},void 0,!1,void 0,this),_0.jsxDEV("div",{className:"stats-metric-value",children:d4(Q.savedTokens)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),_0.jsxDEV("div",{className:"stats-metric-card primary",children:[_0.jsxDEV("div",{className:"stats-metric-label",children:"Saved Bytes"},void 0,!1,void 0,this),_0.jsxDEV("div",{className:"stats-metric-value",children:EK(Q.savedBytes)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),_0.jsxDEV("div",{className:"stats-metric-card primary",children:[_0.jsxDEV("div",{className:"stats-metric-label",children:"Reduction"},void 0,!1,void 0,this),_0.jsxDEV("div",{className:"stats-metric-value",children:Q.reductionPercent!==null?$6(Q.reductionPercent):"—"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),_0.jsxDEV("div",{className:"stats-metric-card primary",children:[_0.jsxDEV("div",{className:"stats-metric-label",children:"Total Hits"},void 0,!1,void 0,this),_0.jsxDEV("div",{className:"stats-metric-value",children:t0(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 bD({title:Q,totals:J}){return _0.jsxDEV("div",{className:"stats-metric-card secondary",style:{flex:1},children:[_0.jsxDEV("div",{className:"stats-metric-label",style:{fontWeight:600,marginBottom:8},children:Q},void 0,!1,void 0,this),_0.jsxDEV("div",{style:{display:"grid",gridTemplateColumns:"1fr 1fr",gap:8},children:[_0.jsxDEV("div",{children:[_0.jsxDEV("div",{className:"stats-metric-label",children:"Saved Tokens"},void 0,!1,void 0,this),_0.jsxDEV("div",{className:"stats-metric-value",style:{fontSize:"1rem"},children:d4(J.savedTokens)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),_0.jsxDEV("div",{children:[_0.jsxDEV("div",{className:"stats-metric-label",children:"Saved Bytes"},void 0,!1,void 0,this),_0.jsxDEV("div",{className:"stats-metric-value",style:{fontSize:"1rem"},children:EK(J.savedBytes)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),_0.jsxDEV("div",{children:[_0.jsxDEV("div",{className:"stats-metric-label",children:"Hits"},void 0,!1,void 0,this),_0.jsxDEV("div",{className:"stats-metric-value",style:{fontSize:"1rem"},children:t0(J.hits)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),_0.jsxDEV("div",{children:[_0.jsxDEV("div",{className:"stats-metric-label",children:"Reduction"},void 0,!1,void 0,this),_0.jsxDEV("div",{className:"stats-metric-value",style:{fontSize:"1rem"},children:J.reductionPercent!==null?$6(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 kD({bySource:Q}){return _0.jsxDEV(f1,{title:"By Source",subtitle:"Savings breakdown per subsystem",children:_0.jsxDEV("div",{style:{display:"flex",gap:16,flexWrap:"wrap"},children:_0.jsxDEV(bD,{title:"Snapcompact",totals:Q.snapcompact},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this)}var fD={snapcompact:"rgb(34, 197, 94)"};function yD({timeSeries:Q}){let J=d6(),X=g5[J],{data:q,options:N}=LX.useMemo(()=>{let K=new Intl.DateTimeFormat(void 0,{month:"short",day:"numeric",timeZone:"UTC"}),M={labels:Q.map((T)=>K.format(new Date(`${T.date}T00:00:00.000Z`))),datasets:[{label:"Snapcompact",data:Q.map((T)=>T.snapcompact),...L$(fD.snapcompact)}]},{sharedScaleBase:F,yScale:w}=P$({chartTheme:X,formatY:(T)=>d4(T)}),z={responsive:!0,maintainAspectRatio:!1,plugins:T$({chartTheme:X,showLegend:!0,defaultLabel:"Tokens Saved",formatValue:d4}),scales:{x:{...F,stacked:!0},y:{...w,stacked:!0}}};return{data:M,options:z}},[Q,X]);return _0.jsxDEV(f1,{title:"Savings Over Time",subtitle:"Daily token savings",children:_0.jsxDEV("div",{style:{height:240},children:Q.length===0?_0.jsxDEV("div",{className:"stats-table-empty",children:"No time series data yet"},void 0,!1,void 0,this):_0.jsxDEV(e5,{data:q,options:N},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this)}var l4=t(I1(),1);var A0=t(M0(),1);function UC({active:Q,range:J,refreshTrigger:X}){let{data:q,error:N,loading:K}=T5(["models",J,X],(H)=>AP(J,H),{pollMs:30000,enabled:Q});return A0.jsxDEV("div",{className:"stats-route-container space-y-6",children:A0.jsxDEV(e1,{loading:K,error:N,data:q,children:q&&A0.jsxDEV(A0.Fragment,{children:[A0.jsxDEV(gD,{modelSeries:q.modelSeries,timeRange:J},void 0,!1,void 0,this),A0.jsxDEV(uD,{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 gD({modelSeries:Q,timeRange:J}){let X=d6(),q=g5[X],N=tQ(J),K=l4.useMemo(()=>hD(Q),[Q]),H=l4.useMemo(()=>{return{labels:K.data.map((F)=>AK(F.timestamp,J)),datasets:K.series.map((F,w)=>({label:F,data:K.data.map((z)=>z[F]??0),borderColor:t1[w%t1.length],backgroundColor:`${t1[w%t1.length]}20`,fill:!0,tension:0.4,pointRadius:0,pointHoverRadius:4,borderWidth:2}))}},[K,J]),M=l4.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:(F)=>{let w=F.dataset.label??"",z=F.parsed.y;return`${w}: ${(z??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:(F)=>`${F}%`},min:0,max:100}}}},[q]);return A0.jsxDEV(f1,{title:"Model Preference",subtitle:`Share of requests over ${N.windowLabel}`,children:A0.jsxDEV("div",{className:"h-[280px]",children:K.data.length===0?A0.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):A0.jsxDEV(e5,{data:H,options:M},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this)}function hD(Q,J=5){if(Q.length===0)return{data:[],series:[]};let X=new Map;for(let T of Q){let L=`${T.model}::${T.provider}`,I=X.get(L);if(I)I.total+=T.requests;else X.set(L,{model:T.model,provider:T.provider,total:T.requests})}let N=[...X.entries()].map(([T,L])=>({key:T,...L})).sort((T,L)=>L.total-T.total).slice(0,J),K=new Set(N.map((T)=>T.key)),H=new Map;for(let T of N)H.set(T.model,(H.get(T.model)??0)+1);let M=new Map;for(let T of N){let L=(H.get(T.model)??0)>1;M.set(T.key,L?`${T.model} (${T.provider})`:T.model)}let F=new Map;for(let T of Q){let L=`${T.model}::${T.provider}`,I=F.get(T.timestamp)??{timestamp:T.timestamp,total:0};I.total+=T.requests;let E=K.has(L)?M.get(L)??T.model:"Other";I[E]=(I[E]??0)+T.requests,F.set(T.timestamp,I)}let w=N.map((T)=>M.get(T.key)??T.model);if([...F.values()].some((T)=>(T.Other??0)>0))w.push("Other");return{data:[...F.values()].sort((T,L)=>(T.timestamp??0)-(L.timestamp??0)).map((T)=>{let L=T.total??0;for(let I of w)T[I]=L>0?(T[I]??0)/L*100:0;return T}),series:w}}var NC="2fr 0.9fr 0.9fr 1fr 0.8fr 0.8fr 140px 40px";function uD({models:Q,performanceSeries:J,timeRange:X}){let[q,N]=l4.useState(null),K=tQ(X),H=l4.useMemo(()=>pL(J,X),[J,X]),M=d6(),F=g5[M],w=l4.useMemo(()=>{return[...Q].sort((z,T)=>T.totalInputTokens+T.totalOutputTokens-(z.totalInputTokens+z.totalOutputTokens))},[Q]);return A0.jsxDEV(KX,{title:"Model Statistics",children:[A0.jsxDEV(BX,{gridTemplate:NC,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),A0.jsxDEV(HX,{children:w.map((z,T)=>{let L=`${z.model}::${z.provider}`,E=H.get(L)?.data??[],O=t1[T%t1.length],V=q===L,D=z.errorRate*100;return A0.jsxDEV(FX,{gridTemplate:NC,isExpanded:V,onToggle:()=>N(V?null:L),cells:[A0.jsxDEV(MX,{model:z.model,provider:z.provider},"name",!1,void 0,this),A0.jsxDEV("div",{className:"text-right text-[var(--text-secondary)] font-mono text-sm",children:z.totalRequests.toLocaleString()},"requests",!1,void 0,this),A0.jsxDEV("div",{className:"text-right text-[var(--text-secondary)] font-mono text-sm",children:["$",z.totalCost.toFixed(2)]},"cost",!0,void 0,this),A0.jsxDEV("div",{className:"text-right text-[var(--text-secondary)] font-mono text-sm",children:(z.totalInputTokens+z.totalOutputTokens).toLocaleString()},"tokens",!1,void 0,this),A0.jsxDEV("div",{className:"text-right text-[var(--text-secondary)] font-mono text-sm",children:z.avgTokensPerSecond?.toFixed(1)??"-"},"tps",!1,void 0,this),A0.jsxDEV("div",{className:"text-right text-[var(--text-secondary)] font-mono text-sm",children:z.avgTtft?`${(z.avgTtft/1000).toFixed(2)}s`:"-"},"ttft",!1,void 0,this)],trendCell:E.length===0?A0.jsxDEV(WX,{},void 0,!1,void 0,this):A0.jsxDEV(NX,{timestamps:E.map((h)=>h.timestamp),values:E.map((h)=>h.avgTokensPerSecond??0),color:O},void 0,!1,void 0,this),expandedContent:A0.jsxDEV("div",{className:"grid gap-4",style:{gridTemplateColumns:"200px 1fr"},children:[A0.jsxDEV("div",{className:"space-y-4 text-sm",children:[A0.jsxDEV("div",{children:[A0.jsxDEV("div",{className:"text-[var(--text-primary)] font-medium mb-2",children:"Quality"},void 0,!1,void 0,this),A0.jsxDEV("div",{className:"space-y-1 text-[var(--text-secondary)]",children:[A0.jsxDEV("div",{className:"flex items-center justify-between",children:[A0.jsxDEV("span",{children:"Error rate"},void 0,!1,void 0,this),A0.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),A0.jsxDEV("div",{className:"flex items-center justify-between",children:[A0.jsxDEV("span",{children:"Cache rate"},void 0,!1,void 0,this),A0.jsxDEV("span",{className:"text-[var(--accent-cyan)]",children:[(z.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),A0.jsxDEV("div",{children:[A0.jsxDEV("div",{className:"text-[var(--text-primary)] font-medium mb-2",children:"Latency"},void 0,!1,void 0,this),A0.jsxDEV("div",{className:"space-y-1 text-[var(--text-secondary)]",children:[A0.jsxDEV("div",{className:"flex items-center justify-between",children:[A0.jsxDEV("span",{children:"Avg duration"},void 0,!1,void 0,this),A0.jsxDEV("span",{className:"font-mono",children:z.avgDuration?`${(z.avgDuration/1000).toFixed(2)}s`:"-"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),A0.jsxDEV("div",{className:"flex items-center justify-between",children:[A0.jsxDEV("span",{children:"Avg TTFT"},void 0,!1,void 0,this),A0.jsxDEV("span",{className:"font-mono",children:z.avgTtft?`${(z.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),A0.jsxDEV("div",{className:"h-[200px]",children:E.length===0?A0.jsxDEV(wX,{},void 0,!1,void 0,this):A0.jsxDEV(xD,{data:E,color:O,chartTheme:F,timeRange:X},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},L,!1,void 0,this)})},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function xD({data:Q,color:J,chartTheme:X,timeRange:q}){let N=l4.useMemo(()=>{return{labels:Q.map((H)=>AK(H.timestamp,q)),datasets:[{label:"TTFT",data:Q.map((H)=>H.avgTtftSeconds??null),...S8("#5ad8e6"),yAxisID:"y"},{label:"Tokens/s",data:Q.map((H)=>H.avgTokensPerSecond??null),...S8(J),yAxisID:"y1"}]}},[Q,J,q]),K=l4.useMemo(()=>{return{responsive:!0,maintainAspectRatio:!1,plugins:UX(X),scales:gL(X)}},[X]);return A0.jsxDEV(e5,{data:N,options:K},void 0,!1,void 0,this)}var $J=t(I1(),1);var KC=t(I1(),1);var J6=t(M0(),1),CX={main:{label:"Main agent",color:"#ed4abf"},subagent:{label:"Subagents",color:"#9b4dff"},advisor:{label:"Advisor",color:"#5ad8e6"}};function BC({stats:Q}){let J=KC.useMemo(()=>mL(Q),[Q]);if(J.totalTokens===0)return J6.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 J6.jsxDEV("div",{className:"space-y-4",children:[J6.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&&J6.jsxDEV("div",{className:"h-full",style:{width:`${X.share*100}%`,background:CX[X.agentType].color},title:`${CX[X.agentType].label}: ${$6(X.share)}`},X.agentType,!1,void 0,this))},void 0,!1,void 0,this),J6.jsxDEV("div",{className:"space-y-2",children:J.segments.map((X)=>J6.jsxDEV("div",{className:"flex items-center justify-between gap-3 text-sm",children:[J6.jsxDEV("div",{className:"flex items-center gap-2 min-w-0",children:[J6.jsxDEV("span",{className:"w-2.5 h-2.5 rounded-full flex-shrink-0",style:{background:CX[X.agentType].color}},void 0,!1,void 0,this),J6.jsxDEV("span",{className:"stats-text-primary truncate",children:CX[X.agentType].label},void 0,!1,void 0,this),J6.jsxDEV("span",{className:"stats-text-muted stats-text-xs whitespace-nowrap",children:[t0(X.requests)," req"]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),J6.jsxDEV("div",{className:"flex items-center gap-3 whitespace-nowrap",children:[J6.jsxDEV("span",{className:"stats-text-secondary",children:[d4(X.tokens)," tok"]},void 0,!0,void 0,this),J6.jsxDEV("span",{className:"stats-font-semibold stats-text-primary tabular-nums",children:$6(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 N0=t(M0(),1);function HC({active:Q,range:J,refreshTrigger:X,onRequestClick:q}){let{data:N,error:K,loading:H}=T5(["overview",J,X],(D)=>EP(J,D),{pollMs:30000,enabled:Q}),{data:M,error:F,loading:w}=T5(["recent-requests",X],(D)=>t3(50,D),{pollMs:30000,enabled:Q}),z=d6(),T=g5[z],L=$J.useMemo(()=>{if(!N?.timeSeries)return{labels:[],datasets:[]};let D=N.timeSeries.map((p)=>q4(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=$J.useMemo(()=>{return{responsive:!0,maintainAspectRatio:!1,interaction:{mode:"index",intersect:!1},plugins:{legend:{display:!0,position:"top",align:"end",labels:{color:T.legendLabel,boxWidth:8,usePointStyle:!0,font:{size:11}}},tooltip:{backgroundColor:T.tooltipBackground,titleColor:T.tooltipTitle,bodyColor:T.tooltipBody,borderColor:T.tooltipBorder,borderWidth:1,cornerRadius:8,padding:10}},scales:{x:{grid:{color:T.grid,drawBorder:!1},ticks:{color:T.tick,font:{size:10}}},y:{grid:{color:T.grid,drawBorder:!1},ticks:{color:T.tick,font:{size:10}},min:0}}}},[T]),E=$J.useMemo(()=>[{key:"model",header:"Model",render:(D)=>N0.jsxDEV("div",{children:[N0.jsxDEV("div",{className:"stats-font-medium stats-text-primary",children:D.model},void 0,!1,void 0,this),N0.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)=>p4(D.timestamp)},{key:"tokens",header:"Tokens",numeric:!0,render:(D)=>t0(D.usage.totalTokens)},{key:"cost",header:"Cost",numeric:!0,render:(D)=>d1(D.usage.cost.total,4)},{key:"duration",header:"Duration",numeric:!0,render:(D)=>E5(D.duration)},{key:"status",header:"Status",className:"stats-text-center",render:(D)=>N0.jsxDEV(_6,{variant:D.errorMessage?"danger":"success",children:D.errorMessage?"Failed":"Success"},void 0,!1,void 0,this)}],[]),O=(D,h)=>N0.jsxDEV("div",{className:"stats-mobile-card",onClick:h,children:[N0.jsxDEV("div",{className:"stats-mobile-card-header",children:[N0.jsxDEV("div",{children:[N0.jsxDEV("div",{className:"stats-font-semibold stats-text-primary",children:D.model},void 0,!1,void 0,this),N0.jsxDEV("div",{className:"stats-text-xs stats-text-muted",children:D.provider},void 0,!1,void 0,this)]},void 0,!0,void 0,this),N0.jsxDEV(_6,{variant:D.errorMessage?"danger":"success",children:D.errorMessage?"Failed":"Success"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),N0.jsxDEV("div",{className:"stats-mobile-card-grid",children:[N0.jsxDEV("div",{children:[N0.jsxDEV("div",{className:"stats-mobile-card-label",children:"Time"},void 0,!1,void 0,this),N0.jsxDEV("div",{className:"stats-mobile-card-value",children:p4(D.timestamp)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),N0.jsxDEV("div",{children:[N0.jsxDEV("div",{className:"stats-mobile-card-label",children:"Cost"},void 0,!1,void 0,this),N0.jsxDEV("div",{className:"stats-mobile-card-value",children:d1(D.usage.cost.total,4)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),N0.jsxDEV("div",{children:[N0.jsxDEV("div",{className:"stats-mobile-card-label",children:"Tokens"},void 0,!1,void 0,this),N0.jsxDEV("div",{className:"stats-mobile-card-value",children:t0(D.usage.totalTokens)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),N0.jsxDEV("div",{children:[N0.jsxDEV("div",{className:"stats-mobile-card-label",children:"Duration"},void 0,!1,void 0,this),N0.jsxDEV("div",{className:"stats-mobile-card-value",children:E5(D.duration)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),D.errorMessage&&N0.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),V=$J.useMemo(()=>{if(!M)return[];return M.slice(0,10)},[M]);return N0.jsxDEV("div",{className:"stats-route-container space-y-6",children:[N0.jsxDEV(e1,{loading:H,error:K,data:N,children:N&&N0.jsxDEV(oL,{stats:N.overall},void 0,!1,void 0,this)},void 0,!1,void 0,this),N0.jsxDEV(f1,{title:"Token Usage by Agent",subtitle:"Share of tokens across the main agent, task subagents, and the advisor",children:N0.jsxDEV(e1,{loading:H,error:K,data:N,children:N&&N0.jsxDEV(BC,{stats:N.byAgentType},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this),N0.jsxDEV("div",{className:"grid grid-cols-1 lg:grid-cols-3 gap-6",children:[N0.jsxDEV("div",{className:"lg:col-span-2",children:N0.jsxDEV(f1,{title:"System Throughput",subtitle:"Request volume and errors over time",children:N0.jsxDEV(e1,{loading:H,error:K,data:N,children:N0.jsxDEV("div",{className:"h-[280px]",children:N?.timeSeries&&N.timeSeries.length>0?N0.jsxDEV(e5,{data:L,options:I},void 0,!1,void 0,this):N0.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),N0.jsxDEV("div",{children:N0.jsxDEV(f1,{title:"Operational Feed",subtitle:"Real-time request log",children:N0.jsxDEV(e1,{loading:w,error:F,data:M,fallback:N0.jsxDEV("div",{className:"space-y-4",children:Array.from({length:5}).map((D,h)=>N0.jsxDEV("div",{className:"flex items-center gap-3",children:[N0.jsxDEV(Z6,{variant:"circle",width:10,height:10},void 0,!1,void 0,this),N0.jsxDEV("div",{className:"flex-1",children:[N0.jsxDEV(Z6,{variant:"text",width:"60%",height:16},void 0,!1,void 0,this),N0.jsxDEV(Z6,{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:N0.jsxDEV("div",{className:"stats-feed-ledger overflow-y-auto max-h-[280px] pr-2",children:[V.map((D)=>{let h=!!D.errorMessage;return N0.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:[N0.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),N0.jsxDEV("div",{className:"flex-1 min-w-0",children:[N0.jsxDEV("div",{className:"flex justify-between items-baseline gap-2",children:[N0.jsxDEV("div",{className:"stats-font-medium stats-text-primary text-sm truncate",children:D.model},void 0,!1,void 0,this),N0.jsxDEV("div",{className:"stats-text-xs stats-text-muted whitespace-nowrap",children:p4(D.timestamp)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),N0.jsxDEV("div",{className:"flex justify-between items-center text-xs stats-text-muted mt-0.5",children:[N0.jsxDEV("div",{children:D.provider},void 0,!1,void 0,this),N0.jsxDEV("div",{children:[D.duration?E5(D.duration):""," ",D.usage?.cost?.total?`· ${d1(D.usage.cost.total,4)}`:""]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),h&&N0.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)}),V.length===0&&N0.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),N0.jsxDEV(f1,{title:"Recent Requests Preview",subtitle:"Latest transactions processed by the proxy",actions:N0.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:N0.jsxDEV(e1,{loading:w,error:F,data:M,children:N0.jsxDEV(h2,{columns:E,data:V,keyExtractor:(D)=>D.id||`${D.sessionFile}-${D.entryId}`,onRowClick:(D)=>D.id&&q(D.id),renderMobileCard:O,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 vK=t(I1(),1);var G1=t(M0(),1);function MC({active:Q,range:J,refreshTrigger:X}){let{data:q,error:N,loading:K}=T5(["projects",J,X],(w)=>kP(J,w),{pollMs:30000,enabled:Q}),H=vK.useMemo(()=>{if(!q)return[];return lL(q)},[q]),M=vK.useMemo(()=>[{key:"folder",header:"Project/Folder",render:(w)=>G1.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)=>G1.jsxDEV("div",{className:"stats-text-right",children:[G1.jsxDEV("div",{className:"font-mono",children:t0(w.totalRequests)},void 0,!1,void 0,this),G1.jsxDEV("div",{className:"stats-progress-bar-track mt-1 ml-auto w-24 h-1",children:G1.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)=>G1.jsxDEV("div",{className:"stats-text-right",children:[G1.jsxDEV("div",{className:"font-mono",children:d1(w.totalCost)},void 0,!1,void 0,this),G1.jsxDEV("div",{className:"stats-progress-bar-track mt-1 ml-auto w-24 h-1",children:G1.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)=>G1.jsxDEV("div",{className:"font-mono",children:t0(w.totalInputTokens+w.totalOutputTokens)},void 0,!1,void 0,this)},{key:"cacheRate",header:"Cache Rate",numeric:!0,render:(w)=>G1.jsxDEV("span",{className:"stats-text-success font-medium",children:$6(w.cacheRate)},void 0,!1,void 0,this)},{key:"errorRate",header:"Error Rate",numeric:!0,render:(w)=>G1.jsxDEV(_6,{variant:w.errorRate>0.1?"danger":w.errorRate>0?"warning":"success",children:$6(w.errorRate)},void 0,!1,void 0,this)},{key:"avgDuration",header:"Avg Duration",numeric:!0,render:(w)=>E5(w.avgDuration)}],[]);return G1.jsxDEV("div",{className:"stats-route-container",children:G1.jsxDEV(f1,{title:"Projects & Folders",subtitle:"Aggregate proxy metrics grouped by folder path",children:G1.jsxDEV(e1,{loading:K,error:N,data:q,emptyText:"No project folders recorded for this range.",children:G1.jsxDEV(h2,{columns:M,data:H,keyExtractor:(w)=>w.folder,renderMobileCard:(w)=>G1.jsxDEV("div",{className:"stats-mobile-card",children:[G1.jsxDEV("div",{className:"stats-mobile-card-header mb-2",children:[G1.jsxDEV("div",{className:"stats-font-semibold stats-text-primary",children:w.folder||"(root)"},void 0,!1,void 0,this),G1.jsxDEV(_6,{variant:w.errorRate>0.1?"danger":w.errorRate>0?"warning":"success",children:[$6(w.errorRate)," Err"]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),G1.jsxDEV("div",{className:"stats-mobile-card-grid",children:[G1.jsxDEV("div",{children:[G1.jsxDEV("div",{className:"stats-mobile-card-label",children:"Requests"},void 0,!1,void 0,this),G1.jsxDEV("div",{className:"stats-mobile-card-value font-mono",children:t0(w.totalRequests)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),G1.jsxDEV("div",{children:[G1.jsxDEV("div",{className:"stats-mobile-card-label",children:"Cost"},void 0,!1,void 0,this),G1.jsxDEV("div",{className:"stats-mobile-card-value font-mono",children:d1(w.totalCost)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),G1.jsxDEV("div",{children:[G1.jsxDEV("div",{className:"stats-mobile-card-label",children:"Cache"},void 0,!1,void 0,this),G1.jsxDEV("div",{className:"stats-mobile-card-value",children:$6(w.cacheRate)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),G1.jsxDEV("div",{children:[G1.jsxDEV("div",{className:"stats-mobile-card-label",children:"Duration"},void 0,!1,void 0,this),G1.jsxDEV("div",{className:"stats-mobile-card-value",children:E5(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 FC=t(I1(),1);var H1=t(M0(),1);function WC({active:Q,refreshTrigger:J,onRequestClick:X}){let{data:q,error:N,loading:K}=T5(["recent-requests-dense",J],(F)=>t3(50,F),{pollMs:30000,enabled:Q}),H=FC.useMemo(()=>[{key:"model",header:"Model",render:(F)=>H1.jsxDEV("div",{children:[H1.jsxDEV("div",{className:"stats-font-medium stats-text-primary",children:F.model},void 0,!1,void 0,this),H1.jsxDEV("div",{className:"stats-text-xs stats-text-muted",children:F.provider},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},{key:"timestamp",header:"Time",render:(F)=>p4(F.timestamp)},{key:"tokens",header:"Tokens",numeric:!0,render:(F)=>t0(F.usage.totalTokens)},{key:"cost",header:"Cost",numeric:!0,render:(F)=>d1(F.usage.cost.total,4)},{key:"duration",header:"Duration",numeric:!0,render:(F)=>E5(F.duration)},{key:"status",header:"Status",className:"stats-text-center",render:(F)=>H1.jsxDEV(_6,{variant:F.errorMessage?"danger":"success",children:F.errorMessage?"Failed":"Success"},void 0,!1,void 0,this)}],[]);return H1.jsxDEV("div",{className:"stats-route-container",children:H1.jsxDEV(f1,{title:"All Recent Requests",subtitle:"Up to 50 most recent requests processed by OMP",children:H1.jsxDEV(e1,{loading:K,error:N,data:q,children:H1.jsxDEV(h2,{columns:H,data:q||[],keyExtractor:(F)=>F.id||`${F.sessionFile}-${F.entryId}`,onRowClick:(F)=>F.id&&X(F.id),renderMobileCard:(F,w)=>H1.jsxDEV("div",{className:"stats-mobile-card",onClick:w,children:[H1.jsxDEV("div",{className:"stats-mobile-card-header",children:[H1.jsxDEV("div",{children:[H1.jsxDEV("div",{className:"stats-font-semibold stats-text-primary",children:F.model},void 0,!1,void 0,this),H1.jsxDEV("div",{className:"stats-text-xs stats-text-muted",children:F.provider},void 0,!1,void 0,this)]},void 0,!0,void 0,this),H1.jsxDEV(_6,{variant:F.errorMessage?"danger":"success",children:F.errorMessage?"Failed":"Success"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),H1.jsxDEV("div",{className:"stats-mobile-card-grid",children:[H1.jsxDEV("div",{children:[H1.jsxDEV("div",{className:"stats-mobile-card-label",children:"Time"},void 0,!1,void 0,this),H1.jsxDEV("div",{className:"stats-mobile-card-value",children:p4(F.timestamp)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),H1.jsxDEV("div",{children:[H1.jsxDEV("div",{className:"stats-mobile-card-label",children:"Cost"},void 0,!1,void 0,this),H1.jsxDEV("div",{className:"stats-mobile-card-value",children:d1(F.usage.cost.total,4)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),H1.jsxDEV("div",{children:[H1.jsxDEV("div",{className:"stats-mobile-card-label",children:"Tokens"},void 0,!1,void 0,this),H1.jsxDEV("div",{className:"stats-mobile-card-value",children:t0(F.usage.totalTokens)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),H1.jsxDEV("div",{children:[H1.jsxDEV("div",{className:"stats-mobile-card-label",children:"Duration"},void 0,!1,void 0,this),H1.jsxDEV("div",{className:"stats-mobile-card-value",children:E5(F.duration)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),F.errorMessage&&H1.jsxDEV("div",{className:"stats-mobile-card-error truncate mt-2",children:F.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 h5=t(M0(),1);function bK(){let{section:Q,setSection:J,range:X,setRange:q}=nP(),[N,K]=D8.useState(0),[H,M]=D8.useState(null),[F,w]=D8.useState(()=>Date.now()),z=D8.useCallback((O)=>{if(O.success)K((V)=>V+1),w(Date.now())},[]),T=D8.useCallback(()=>M(null),[]),L=Q,I=D8.useRef(new Set);I.current.add(L);let E=(O)=>{let V=O===L;switch(O){case"overview":return h5.jsxDEV(HC,{active:V,range:X,refreshTrigger:N,onRequestClick:M},void 0,!1,void 0,this);case"requests":return h5.jsxDEV(WC,{active:V,range:X,refreshTrigger:N,onRequestClick:M},void 0,!1,void 0,this);case"errors":return h5.jsxDEV(qC,{active:V,range:X,refreshTrigger:N,onRequestClick:M},void 0,!1,void 0,this);case"models":return h5.jsxDEV(UC,{active:V,range:X,refreshTrigger:N},void 0,!1,void 0,this);case"costs":return h5.jsxDEV(GC,{active:V,range:X,refreshTrigger:N},void 0,!1,void 0,this);case"behavior":return h5.jsxDEV(JC,{active:V,range:X,refreshTrigger:N},void 0,!1,void 0,this);case"projects":return h5.jsxDEV(MC,{active:V,range:X,refreshTrigger:N},void 0,!1,void 0,this);case"gain":return h5.jsxDEV(YC,{active:V,range:X,refreshTrigger:N},void 0,!1,void 0,this)}};return h5.jsxDEV(h5.Fragment,{children:[h5.jsxDEV(rP,{activeSection:L,onSectionChange:J,range:X,onRangeChange:q,updatedAt:F,onSyncComplete:z,children:[...I.current].map((O)=>h5.jsxDEV("div",{hidden:O!==L,children:E(O)},O,!1,void 0,this))},void 0,!1,void 0,this),h5.jsxDEV(aL,{id:H,onClose:T},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}var RC=t(M0(),1),mD=wC.createRoot(document.getElementById("root"));mD.render(RC.jsxDEV(bK,{},void 0,!1,void 0,this));
|
|
255
|
+
*/class HT{constructor(){this._request=null,this._charts=new Map,this._running=!1,this._lastDate=void 0}_notify(J,Z,q,X){let Y=Z.listeners[X],K=Z.duration;Y.forEach((H)=>H({chart:J,initial:Z.initial,numSteps:K,currentStep:Math.min(q-Z.start,K)}))}_refresh(){if(this._request)return;this._running=!0,this._request=jU.call(window,()=>{if(this._update(),this._request=null,this._running)this._refresh()})}_update(J=Date.now()){let Z=0;if(this._charts.forEach((q,X)=>{if(!q.running||!q.items.length)return;let Y=q.items,K=Y.length-1,H=!1,M;for(;K>=0;--K)if(M=Y[K],M._active){if(M._total>q.duration)q.duration=M._total;M.tick(J),H=!0}else Y[K]=Y[Y.length-1],Y.pop();if(H)X.draw(),this._notify(X,q,J,"progress");if(!Y.length)q.running=!1,this._notify(X,q,J,"complete"),q.initial=!1;Z+=Y.length}),this._lastDate=J,Z===0)this._running=!1}_getAnims(J){let Z=this._charts,q=Z.get(J);if(!q)q={running:!1,initial:!0,items:[],listeners:{complete:[],progress:[]}},Z.set(J,q);return q}listen(J,Z,q){this._getAnims(J).listeners[Z].push(q)}add(J,Z){if(!Z||!Z.length)return;this._getAnims(J).items.push(...Z)}has(J){return this._getAnims(J).items.length>0}start(J){let Z=this._charts.get(J);if(!Z)return;Z.running=!0,Z.start=Date.now(),Z.duration=Z.items.reduce((q,X)=>Math.max(q,X._duration),0),this._refresh()}running(J){if(!this._running)return!1;let Z=this._charts.get(J);if(!Z||!Z.running||!Z.items.length)return!1;return!0}stop(J){let Z=this._charts.get(J);if(!Z||!Z.items.length)return;let q=Z.items,X=q.length-1;for(;X>=0;--X)q[X].cancel();Z.items=[],this._notify(J,Z,Date.now(),"complete")}remove(J){return this._charts.delete(J)}}var j$=new HT,wz="transparent",gE={boolean(J,Z,q){return q>0.5?Z:J},color(J,Z,q){let X=FU(J||wz),Y=X.valid&&FU(Z||wz);return Y&&Y.valid?Y.mix(X,q).hexString():Z},number(J,Z,q){return J+(Z-J)*q}};class MT{constructor(J,Z,q,X){let Y=Z[q];X=wJ([J.to,X,Y,J.from]);let K=wJ([J.from,Y,X]);this._active=!0,this._fn=J.fn||gE[J.type||typeof K],this._easing=GQ[J.easing]||GQ.linear,this._start=Math.floor(Date.now()+(J.delay||0)),this._duration=this._total=Math.floor(J.duration),this._loop=!!J.loop,this._target=Z,this._prop=q,this._from=K,this._to=X,this._promises=void 0}active(){return this._active}update(J,Z,q){if(this._active){this._notify(!1);let X=this._target[this._prop],Y=q-this._start,K=this._duration-Y;this._start=q,this._duration=Math.floor(Math.max(K,J.duration)),this._total+=Y,this._loop=!!J.loop,this._to=wJ([J.to,Z,X,J.from]),this._from=wJ([J.from,X,Z])}}cancel(){if(this._active)this.tick(Date.now()),this._active=!1,this._notify(!1)}tick(J){let Z=J-this._start,q=this._duration,X=this._prop,Y=this._from,K=this._loop,H=this._to,M;if(this._active=Y!==H&&(K||Z<q),!this._active){this._target[X]=H,this._notify(!0);return}if(Z<0){this._target[X]=Y;return}M=Z/q%2,M=K&&M>1?2-M:M,M=this._easing(Math.min(1,Math.max(0,M))),this._target[X]=this._fn(Y,H,M)}wait(){let J=this._promises||(this._promises=[]);return new Promise((Z,q)=>{J.push({res:Z,rej:q})})}_notify(J){let Z=J?"res":"rej",q=this._promises||[];for(let X=0;X<q.length;X++)q[X][Z]()}}class ZK{constructor(J,Z){this._chart=J,this._properties=new Map,this.configure(Z)}configure(J){if(!o0(J))return;let Z=Object.keys(y1.animation),q=this._properties;Object.getOwnPropertyNames(J).forEach((X)=>{let Y=J[X];if(!o0(Y))return;let K={};for(let H of Z)K[H]=Y[H];(_1(Y.properties)&&Y.properties||[X]).forEach((H)=>{if(H===X||!q.has(H))q.set(H,K)})})}_animateOptions(J,Z){let q=Z.options,X=xE(J,q);if(!X)return[];let Y=this._createAnimations(X,q);if(q.$shared)hE(J.options.$animations,q).then(()=>{J.options=q},()=>{});return Y}_createAnimations(J,Z){let q=this._properties,X=[],Y=J.$animations||(J.$animations={}),K=Object.keys(Z),H=Date.now(),M;for(M=K.length-1;M>=0;--M){let W=K[M];if(W.charAt(0)==="$")continue;if(W==="options"){X.push(...this._animateOptions(J,Z));continue}let w=Z[W],z=Y[W],T=q.get(W);if(z)if(T&&z.active()){z.update(T,w,H);continue}else z.cancel();if(!T||!T.duration){J[W]=w;continue}Y[W]=z=new MT(T,J,W,w),X.push(z)}return X}update(J,Z){if(this._properties.size===0){Object.assign(J,Z);return}let q=this._createAnimations(J,Z);if(q.length)return j$.add(this._chart,q),!0}}function hE(J,Z){let q=[],X=Object.keys(Z);for(let Y=0;Y<X.length;Y++){let K=J[X[Y]];if(K&&K.active())q.push(K.wait())}return Promise.all(q)}function xE(J,Z){if(!Z)return;let q=J.options;if(!q){J.options=Z;return}if(q.$shared)J.options=q=Object.assign({},q,{$shared:!1,$animations:{}});return q}function Rz(J,Z){let q=J&&J.options||{},X=q.reverse,Y=q.min===void 0?Z:0,K=q.max===void 0?Z:0;return{start:X?K:Y,end:X?Y:K}}function uE(J,Z,q){if(q===!1)return!1;let X=Rz(J,q),Y=Rz(Z,q);return{top:Y.end,right:X.end,bottom:Y.start,left:X.start}}function mE(J){let Z,q,X,Y;if(o0(J))Z=J.top,q=J.right,X=J.bottom,Y=J.left;else Z=q=X=Y=J;return{top:Z,right:q,bottom:X,left:Y,disabled:J===!1}}function WT(J,Z){let q=[],X=J._getSortedDatasetMetas(Z),Y,K;for(Y=0,K=X.length;Y<K;++Y)q.push(X[Y].index);return q}function zz(J,Z,q,X={}){let Y=J.keys,K=X.mode==="single",H,M,W,w;if(Z===null)return;let z=!1;for(H=0,M=Y.length;H<M;++H){if(W=+Y[H],W===q){if(z=!0,X.all)continue;break}if(w=J.values[W],b1(w)&&(K||Z===0||X4(Z)===X4(w)))Z+=w}if(!z&&!X.all)return 0;return Z}function dE(J,Z){let{iScale:q,vScale:X}=Z,Y=q.axis==="x"?"x":"y",K=X.axis==="x"?"x":"y",H=Object.keys(J),M=Array(H.length),W,w,z;for(W=0,w=H.length;W<w;++W)z=H[W],M[W]={[Y]:z,[K]:J[z]};return M}function hU(J,Z){let q=J&&J.options.stacked;return q||q===void 0&&Z.stack!==void 0}function pE(J,Z,q){return`${J.id}.${Z.id}.${q.stack||q.type}`}function cE(J){let{min:Z,max:q,minDefined:X,maxDefined:Y}=J.getUserBounds();return{min:X?Z:Number.NEGATIVE_INFINITY,max:Y?q:Number.POSITIVE_INFINITY}}function lE(J,Z,q){let X=J[Z]||(J[Z]={});return X[q]||(X[q]={})}function Tz(J,Z,q,X){for(let Y of Z.getMatchingVisibleMetas(X).reverse()){let K=J[Y.index];if(q&&K>0||!q&&K<0)return Y.index}return null}function Lz(J,Z){let{chart:q,_cachedMeta:X}=J,Y=q._stacks||(q._stacks={}),{iScale:K,vScale:H,index:M}=X,W=K.axis,w=H.axis,z=pE(K,H,X),T=Z.length,P;for(let I=0;I<T;++I){let E=Z[I],{[W]:O,[w]:V}=E,D=E._stacks||(E._stacks={});P=D[w]=lE(Y,z,O),P[M]=V,P._top=Tz(P,H,!0,X.type),P._bottom=Tz(P,H,!1,X.type);let h=P._visualValues||(P._visualValues={});h[M]=V}}function xU(J,Z){let q=J.scales;return Object.keys(q).filter((X)=>q[X].axis===Z).shift()}function rE(J,Z){return A$(J,{active:!1,dataset:void 0,datasetIndex:Z,index:Z,mode:"default",type:"dataset"})}function sE(J,Z,q){return A$(J,{active:!1,dataIndex:Z,parsed:void 0,raw:void 0,element:q,index:Z,mode:"default",type:"data"})}function RJ(J,Z){let q=J.controller.index,X=J.vScale&&J.vScale.axis;if(!X)return;Z=Z||J._parsed;for(let Y of Z){let K=Y._stacks;if(!K||K[X]===void 0||K[X][q]===void 0)continue;if(delete K[X][q],K[X]._visualValues!==void 0&&K[X]._visualValues[q]!==void 0)delete K[X]._visualValues[q]}}var uU=(J)=>J==="reset"||J==="none",Pz=(J,Z)=>Z?J:Object.assign({},J),nE=(J,Z,q)=>J&&!Z.hidden&&Z._stacked&&{keys:WT(q,!0),values:null};class aq{static defaults={};static datasetElementType=null;static dataElementType=null;constructor(J,Z){this.chart=J,this._ctx=J.ctx,this.index=Z,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 J=this._cachedMeta;if(this.configure(),this.linkScales(),J._stacked=hU(J.vScale,J),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(J){if(this.index!==J)RJ(this._cachedMeta);this.index=J}linkScales(){let J=this.chart,Z=this._cachedMeta,q=this.getDataset(),X=(z,T,P,I)=>z==="x"?T:z==="r"?I:P,Y=Z.xAxisID=d0(q.xAxisID,xU(J,"x")),K=Z.yAxisID=d0(q.yAxisID,xU(J,"y")),H=Z.rAxisID=d0(q.rAxisID,xU(J,"r")),M=Z.indexAxis,W=Z.iAxisID=X(M,Y,K,H),w=Z.vAxisID=X(M,K,Y,H);Z.xScale=this.getScaleForId(Y),Z.yScale=this.getScaleForId(K),Z.rScale=this.getScaleForId(H),Z.iScale=this.getScaleForId(W),Z.vScale=this.getScaleForId(w)}getDataset(){return this.chart.data.datasets[this.index]}getMeta(){return this.chart.getDatasetMeta(this.index)}getScaleForId(J){return this.chart.scales[J]}_getOtherScale(J){let Z=this._cachedMeta;return J===Z.iScale?Z.vScale:Z.iScale}reset(){this._update("reset")}_destroy(){let J=this._cachedMeta;if(this._data)CU(this._data,this);if(J._stacked)RJ(J)}_dataCheck(){let J=this.getDataset(),Z=J.data||(J.data=[]),q=this._data;if(o0(Z)){let X=this._cachedMeta;this._data=dE(Z,X)}else if(q!==Z){if(q){CU(q,this);let X=this._cachedMeta;RJ(X),X._parsed=[]}if(Z&&Object.isExtensible(Z))aR(Z,this);this._syncList=[],this._data=Z}}addElements(){let J=this._cachedMeta;if(this._dataCheck(),this.datasetElementType)J.dataset=new this.datasetElementType}buildOrUpdateElements(J){let Z=this._cachedMeta,q=this.getDataset(),X=!1;this._dataCheck();let Y=Z._stacked;if(Z._stacked=hU(Z.vScale,Z),Z.stack!==q.stack)X=!0,RJ(Z),Z.stack=q.stack;if(this._resyncElements(J),X||Y!==Z._stacked)Lz(this,Z._parsed),Z._stacked=hU(Z.vScale,Z)}configure(){let J=this.chart.config,Z=J.datasetScopeKeys(this._type),q=J.getOptionScopes(this.getDataset(),Z,!0);this.options=J.createResolver(q,this.getContext()),this._parsing=this.options.parsing,this._cachedDataOpts={}}parse(J,Z){let{_cachedMeta:q,_data:X}=this,{iScale:Y,_stacked:K}=q,H=Y.axis,M=J===0&&Z===X.length?!0:q._sorted,W=J>0&&q._parsed[J-1],w,z,T;if(this._parsing===!1)q._parsed=X,q._sorted=!0,T=X;else{if(_1(X[J]))T=this.parseArrayData(q,X,J,Z);else if(o0(X[J]))T=this.parseObjectData(q,X,J,Z);else T=this.parsePrimitiveData(q,X,J,Z);let P=()=>z[H]===null||W&&z[H]<W[H];for(w=0;w<Z;++w)if(q._parsed[w+J]=z=T[w],M){if(P())M=!1;W=z}q._sorted=M}if(K)Lz(this,T)}parsePrimitiveData(J,Z,q,X){let{iScale:Y,vScale:K}=J,H=Y.axis,M=K.axis,W=Y.getLabels(),w=Y===K,z=Array(X),T,P,I;for(T=0,P=X;T<P;++T)I=T+q,z[T]={[H]:w||Y.parse(W[I],I),[M]:K.parse(Z[I],I)};return z}parseArrayData(J,Z,q,X){let{xScale:Y,yScale:K}=J,H=Array(X),M,W,w,z;for(M=0,W=X;M<W;++M)w=M+q,z=Z[w],H[M]={x:Y.parse(z[0],w),y:K.parse(z[1],w)};return H}parseObjectData(J,Z,q,X){let{xScale:Y,yScale:K}=J,{xAxisKey:H="x",yAxisKey:M="y"}=this._parsing,W=Array(X),w,z,T,P;for(w=0,z=X;w<z;++w)T=w+q,P=Z[T],W[w]={x:Y.parse(y7(P,H),T),y:K.parse(y7(P,M),T)};return W}getParsed(J){return this._cachedMeta._parsed[J]}getDataElement(J){return this._cachedMeta.data[J]}applyStack(J,Z,q){let X=this.chart,Y=this._cachedMeta,K=Z[J.axis],H={keys:WT(X,!0),values:Z._stacks[J.axis]._visualValues};return zz(H,K,Y.index,{mode:q})}updateRangeFromParsed(J,Z,q,X){let Y=q[Z.axis],K=Y===null?NaN:Y,H=X&&q._stacks[Z.axis];if(X&&H)X.values=H,K=zz(X,Y,this._cachedMeta.index);J.min=Math.min(J.min,K),J.max=Math.max(J.max,K)}getMinMax(J,Z){let q=this._cachedMeta,X=q._parsed,Y=q._sorted&&J===q.iScale,K=X.length,H=this._getOtherScale(J),M=nE(Z,q,this.chart),W={min:Number.POSITIVE_INFINITY,max:Number.NEGATIVE_INFINITY},{min:w,max:z}=cE(H),T,P;function I(){P=X[T];let E=P[H.axis];return!b1(P[J.axis])||w>E||z<E}for(T=0;T<K;++T){if(I())continue;if(this.updateRangeFromParsed(W,J,P,M),Y)break}if(Y)for(T=K-1;T>=0;--T){if(I())continue;this.updateRangeFromParsed(W,J,P,M);break}return W}getAllParsedValues(J){let Z=this._cachedMeta._parsed,q=[],X,Y,K;for(X=0,Y=Z.length;X<Y;++X)if(K=Z[X][J.axis],b1(K))q.push(K);return q}getMaxOverflow(){return!1}getLabelAndValue(J){let Z=this._cachedMeta,q=Z.iScale,X=Z.vScale,Y=this.getParsed(J);return{label:q?""+q.getLabelForValue(Y[q.axis]):"",value:X?""+X.getLabelForValue(Y[X.axis]):""}}_update(J){let Z=this._cachedMeta;this.update(J||"default"),Z._clip=mE(d0(this.options.clip,uE(Z.xScale,Z.yScale,this.getMaxOverflow())))}update(J){}draw(){let J=this._ctx,Z=this.chart,q=this._cachedMeta,X=q.data||[],Y=Z.chartArea,K=[],H=this._drawStart||0,M=this._drawCount||X.length-H,W=this.options.drawActiveElementsOnTop,w;if(q.dataset)q.dataset.draw(J,Y,H,M);for(w=H;w<H+M;++w){let z=X[w];if(z.hidden)continue;if(z.active&&W)K.push(z);else z.draw(J,Y)}for(w=0;w<K.length;++w)K[w].draw(J,Y)}getStyle(J,Z){let q=Z?"active":"default";return J===void 0&&this._cachedMeta.dataset?this.resolveDatasetElementOptions(q):this.resolveDataElementOptions(J||0,q)}getContext(J,Z,q){let X=this.getDataset(),Y;if(J>=0&&J<this._cachedMeta.data.length){let K=this._cachedMeta.data[J];Y=K.$context||(K.$context=sE(this.getContext(),J,K)),Y.parsed=this.getParsed(J),Y.raw=X.data[J],Y.index=Y.dataIndex=J}else Y=this.$context||(this.$context=rE(this.chart.getContext(),this.index)),Y.dataset=X,Y.index=Y.datasetIndex=this.index;return Y.active=!!Z,Y.mode=q,Y}resolveDatasetElementOptions(J){return this._resolveElementOptions(this.datasetElementType.id,J)}resolveDataElementOptions(J,Z){return this._resolveElementOptions(this.dataElementType.id,Z,J)}_resolveElementOptions(J,Z="default",q){let X=Z==="active",Y=this._cachedDataOpts,K=J+"-"+Z,H=Y[K],M=this.enableOptionSharing&&YQ(q);if(H)return Pz(H,M);let W=this.chart.config,w=W.datasetElementScopeKeys(this._type,J),z=X?[`${J}Hover`,"hover",J,""]:[J,""],T=W.getOptionScopes(this.getDataset(),w),P=Object.keys(y1.elements[J]),I=()=>this.getContext(q,X,Z),E=W.resolveNamedOptions(T,P,I,z);if(E.$shared)E.$shared=M,Y[K]=Object.freeze(Pz(E,M));return E}_resolveAnimations(J,Z,q){let X=this.chart,Y=this._cachedDataOpts,K=`animation-${Z}`,H=Y[K];if(H)return H;let M;if(X.options.animation!==!1){let w=this.chart.config,z=w.datasetAnimationScopeKeys(this._type,Z),T=w.getOptionScopes(this.getDataset(),z);M=w.createResolver(T,this.getContext(J,q,Z))}let W=new ZK(X,M&&M.animations);if(M&&M._cacheable)Y[K]=Object.freeze(W);return W}getSharedOptions(J){if(!J.$shared)return;return this._sharedOptions||(this._sharedOptions=Object.assign({},J))}includeOptions(J,Z){return!Z||uU(J)||this.chart._animationsDisabled}_getSharedOptions(J,Z){let q=this.resolveDataElementOptions(J,Z),X=this._sharedOptions,Y=this.getSharedOptions(q),K=this.includeOptions(Z,Y)||Y!==X;return this.updateSharedOptions(Y,Z,q),{sharedOptions:Y,includeOptions:K}}updateElement(J,Z,q,X){if(uU(X))Object.assign(J,q);else this._resolveAnimations(Z,X).update(J,q)}updateSharedOptions(J,Z,q){if(J&&!uU(Z))this._resolveAnimations(void 0,Z).update(J,q)}_setStyle(J,Z,q,X){J.active=X;let Y=this.getStyle(Z,X);this._resolveAnimations(Z,q,X).update(J,{options:!X&&this.getSharedOptions(Y)||Y})}removeHoverStyle(J,Z,q){this._setStyle(J,q,"active",!1)}setHoverStyle(J,Z,q){this._setStyle(J,q,"active",!0)}_removeDatasetHoverStyle(){let J=this._cachedMeta.dataset;if(J)this._setStyle(J,void 0,"active",!1)}_setDatasetHoverStyle(){let J=this._cachedMeta.dataset;if(J)this._setStyle(J,void 0,"active",!0)}_resyncElements(J){let Z=this._data,q=this._cachedMeta.data;for(let[H,M,W]of this._syncList)this[H](M,W);this._syncList=[];let X=q.length,Y=Z.length,K=Math.min(Y,X);if(K)this.parse(0,K);if(Y>X)this._insertElements(X,Y-X,J);else if(Y<X)this._removeElements(Y,X-Y)}_insertElements(J,Z,q=!0){let X=this._cachedMeta,Y=X.data,K=J+Z,H,M=(W)=>{W.length+=Z;for(H=W.length-1;H>=K;H--)W[H]=W[H-Z]};M(Y);for(H=J;H<K;++H)Y[H]=new this.dataElementType;if(this._parsing)M(X._parsed);if(this.parse(J,Z),q)this.updateElements(Y,J,Z,"reset")}updateElements(J,Z,q,X){}_removeElements(J,Z){let q=this._cachedMeta;if(this._parsing){let X=q._parsed.splice(J,Z);if(q._stacked)RJ(q,X)}q.data.splice(J,Z)}_sync(J){if(this._parsing)this._syncList.push(J);else{let[Z,q,X]=J;this[Z](q,X)}this.chart._dataChanges.push([this.index,...J])}_onDataPush(){let J=arguments.length;this._sync(["_insertElements",this.getDataset().data.length-J,J])}_onDataPop(){this._sync(["_removeElements",this._cachedMeta.data.length-1,1])}_onDataShift(){this._sync(["_removeElements",0,1])}_onDataSplice(J,Z){if(Z)this._sync(["_removeElements",J,Z]);let q=arguments.length-2;if(q>0)this._sync(["_insertElements",J,q])}_onDataUnshift(){this._sync(["_insertElements",0,arguments.length])}}function oE(J,Z){if(!J._cache.$bar){let q=J.getMatchingVisibleMetas(Z),X=[];for(let Y=0,K=q.length;Y<K;Y++)X=X.concat(q[Y].controller.getAllParsedValues(J));J._cache.$bar=_U(X.sort((Y,K)=>Y-K))}return J._cache.$bar}function iE(J){let Z=J.iScale,q=oE(Z,J.type),X=Z._length,Y,K,H,M,W=()=>{if(H===32767||H===-32768)return;if(YQ(M))X=Math.min(X,Math.abs(H-M)||X);M=H};for(Y=0,K=q.length;Y<K;++Y)H=Z.getPixelForValue(q[Y]),W();M=void 0;for(Y=0,K=Z.ticks.length;Y<K;++Y)H=Z.getPixelForTick(Y),W();return X}function aE(J,Z,q,X){let Y=q.barThickness,K,H;if(e0(Y))K=Z.min*q.categoryPercentage,H=q.barPercentage;else K=Y*X,H=1;return{chunk:K/X,ratio:H,start:Z.pixels[J]-K/2}}function tE(J,Z,q,X){let Y=Z.pixels,K=Y[J],H=J>0?Y[J-1]:null,M=J<Y.length-1?Y[J+1]:null,W=q.categoryPercentage;if(H===null)H=K-(M===null?Z.end-Z.start:M-K);if(M===null)M=K+K-H;let w=K-(K-Math.min(H,M))/2*W;return{chunk:Math.abs(M-H)/2*W/X,ratio:q.barPercentage,start:w}}function eE(J,Z,q,X){let Y=q.parse(J[0],X),K=q.parse(J[1],X),H=Math.min(Y,K),M=Math.max(Y,K),W=H,w=M;if(Math.abs(H)>Math.abs(M))W=M,w=H;Z[q.axis]=w,Z._custom={barStart:W,barEnd:w,start:Y,end:K,min:H,max:M}}function FT(J,Z,q,X){if(_1(J))eE(J,Z,q,X);else Z[q.axis]=q.parse(J,X);return Z}function Cz(J,Z,q,X){let{iScale:Y,vScale:K}=J,H=Y.getLabels(),M=Y===K,W=[],w,z,T,P;for(w=q,z=q+X;w<z;++w)P=Z[w],T={},T[Y.axis]=M||Y.parse(H[w],w),W.push(FT(P,T,K,w));return W}function mU(J){return J&&J.barStart!==void 0&&J.barEnd!==void 0}function $A(J,Z,q){if(J!==0)return X4(J);return(Z.isHorizontal()?1:-1)*(Z.min>=q?1:-1)}function QA(J){let Z,q,X,Y,K;if(J.horizontal)Z=J.base>J.x,q="left",X="right";else Z=J.base<J.y,q="bottom",X="top";if(Z)Y="end",K="start";else Y="start",K="end";return{start:q,end:X,reverse:Z,top:Y,bottom:K}}function JA(J,Z,q,X){let Y=Z.borderSkipped,K={};if(!Y){J.borderSkipped=K;return}if(Y===!0){J.borderSkipped={top:!0,right:!0,bottom:!0,left:!0};return}let{start:H,end:M,reverse:W,top:w,bottom:z}=QA(J);if(Y==="middle"&&q)if(J.enableBorderRadius=!0,(q._top||0)===X)Y=w;else if((q._bottom||0)===X)Y=z;else K[_z(z,H,M,W)]=!0,Y=w;K[_z(Y,H,M,W)]=!0,J.borderSkipped=K}function _z(J,Z,q,X){if(X)J=ZA(J,Z,q),J=Iz(J,q,Z);else J=Iz(J,Z,q);return J}function ZA(J,Z,q){return J===Z?q:J===q?Z:J}function Iz(J,Z,q){return J==="start"?Z:J==="end"?q:J}function GA(J,{inflateAmount:Z},q){J.inflateAmount=Z==="auto"?q===1?0.33:0:Z}class GK extends aq{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(J,Z,q,X){return Cz(J,Z,q,X)}parseArrayData(J,Z,q,X){return Cz(J,Z,q,X)}parseObjectData(J,Z,q,X){let{iScale:Y,vScale:K}=J,{xAxisKey:H="x",yAxisKey:M="y"}=this._parsing,W=Y.axis==="x"?H:M,w=K.axis==="x"?H:M,z=[],T,P,I,E;for(T=q,P=q+X;T<P;++T)E=Z[T],I={},I[Y.axis]=Y.parse(y7(E,W),T),z.push(FT(y7(E,w),I,K,T));return z}updateRangeFromParsed(J,Z,q,X){super.updateRangeFromParsed(J,Z,q,X);let Y=q._custom;if(Y&&Z===this._cachedMeta.vScale)J.min=Math.min(J.min,Y.min),J.max=Math.max(J.max,Y.max)}getMaxOverflow(){return 0}getLabelAndValue(J){let Z=this._cachedMeta,{iScale:q,vScale:X}=Z,Y=this.getParsed(J),K=Y._custom,H=mU(K)?"["+K.start+", "+K.end+"]":""+X.getLabelForValue(Y[X.axis]);return{label:""+q.getLabelForValue(Y[q.axis]),value:H}}initialize(){this.enableOptionSharing=!0,super.initialize();let J=this._cachedMeta;J.stack=this.getDataset().stack}update(J){let Z=this._cachedMeta;this.updateElements(Z.data,0,Z.data.length,J)}updateElements(J,Z,q,X){let Y=X==="reset",{index:K,_cachedMeta:{vScale:H}}=this,M=H.getBasePixel(),W=H.isHorizontal(),w=this._getRuler(),{sharedOptions:z,includeOptions:T}=this._getSharedOptions(Z,X);for(let P=Z;P<Z+q;P++){let I=this.getParsed(P),E=Y||e0(I[H.axis])?{base:M,head:M}:this._calculateBarValuePixels(P),O=this._calculateBarIndexPixels(P,w),V=(I._stacks||{})[H.axis],D={horizontal:W,base:E.base,enableBorderRadius:!V||mU(I._custom)||K===V._top||K===V._bottom,x:W?E.head:O.center,y:W?O.center:E.head,height:W?O.size:Math.abs(E.size),width:W?Math.abs(E.size):O.size};if(T)D.options=z||this.resolveDataElementOptions(P,J[P].active?"active":X);let h=D.options||J[P].options;JA(D,h,V,K),GA(D,h,w.ratio),this.updateElement(J[P],P,D,X)}}_getStacks(J,Z){let{iScale:q}=this._cachedMeta,X=q.getMatchingVisibleMetas(this._type).filter((w)=>w.controller.options.grouped),Y=q.options.stacked,K=[],H=this._cachedMeta.controller.getParsed(Z),M=H&&H[q.axis],W=(w)=>{let z=w._parsed.find((P)=>P[q.axis]===M),T=z&&z[w.vScale.axis];if(e0(T)||isNaN(T))return!0};for(let w of X){if(Z!==void 0&&W(w))continue;if(Y===!1||K.indexOf(w.stack)===-1||Y===void 0&&w.stack===void 0)K.push(w.stack);if(w.index===J)break}if(!K.length)K.push(void 0);return K}_getStackCount(J){return this._getStacks(void 0,J).length}_getAxisCount(){return this._getAxis().length}getFirstScaleIdForIndexAxis(){let J=this.chart.scales,Z=this.chart.options.indexAxis;return Object.keys(J).filter((q)=>J[q].axis===Z).shift()}_getAxis(){let J={},Z=this.getFirstScaleIdForIndexAxis();for(let q of this.chart.data.datasets)J[d0(this.chart.options.indexAxis==="x"?q.xAxisID:q.yAxisID,Z)]=!0;return Object.keys(J)}_getStackIndex(J,Z,q){let X=this._getStacks(J,q),Y=Z!==void 0?X.indexOf(Z):-1;return Y===-1?X.length-1:Y}_getRuler(){let J=this.options,Z=this._cachedMeta,q=Z.iScale,X=[],Y,K;for(Y=0,K=Z.data.length;Y<K;++Y)X.push(q.getPixelForValue(this.getParsed(Y)[q.axis],Y));let H=J.barThickness;return{min:H||iE(Z),pixels:X,start:q._startPixel,end:q._endPixel,stackCount:this._getStackCount(),scale:q,grouped:J.grouped,ratio:H?1:J.categoryPercentage*J.barPercentage}}_calculateBarValuePixels(J){let{_cachedMeta:{vScale:Z,_stacked:q,index:X},options:{base:Y,minBarLength:K}}=this,H=Y||0,M=this.getParsed(J),W=M._custom,w=mU(W),z=M[Z.axis],T=0,P=q?this.applyStack(Z,M,q):z,I,E;if(P!==z)T=P-z,P=z;if(w){if(z=W.barStart,P=W.barEnd-W.barStart,z!==0&&X4(z)!==X4(W.barEnd))T=0;T+=z}let O=!e0(Y)&&!w?Y:T,V=Z.getPixelForValue(O);if(this.chart.getDataVisibility(J))I=Z.getPixelForValue(T+P);else I=V;if(E=I-V,Math.abs(E)<K){if(E=$A(E,Z,H)*K,z===H)V-=E/2;let D=Z.getPixelForDecimal(0),h=Z.getPixelForDecimal(1),p=Math.min(D,h),s=Math.max(D,h);if(V=Math.max(Math.min(V,s),p),I=V+E,q&&!w)M._stacks[Z.axis]._visualValues[X]=Z.getValueForPixel(I)-Z.getValueForPixel(V)}if(V===Z.getPixelForValue(H)){let D=X4(E)*Z.getLineWidthForValue(H)/2;V+=D,E-=D}return{size:E,base:V,head:I,center:I+E/2}}_calculateBarIndexPixels(J,Z){let q=Z.scale,X=this.options,Y=X.skipNull,K=d0(X.maxBarThickness,1/0),H,M,W=this._getAxisCount();if(Z.grouped){let w=Y?this._getStackCount(J):Z.stackCount,z=X.barThickness==="flex"?tE(J,Z,X,w*W):aE(J,Z,X,w*W),T=this.chart.options.indexAxis==="x"?this.getDataset().xAxisID:this.getDataset().yAxisID,P=this._getAxis().indexOf(d0(T,this.getFirstScaleIdForIndexAxis())),I=this._getStackIndex(this.index,this._cachedMeta.stack,Y?J:void 0)+P;H=z.start+z.chunk*I+z.chunk/2,M=Math.min(K,z.chunk*z.ratio)}else H=q.getPixelForValue(this.getParsed(J)[q.axis],J),M=Math.min(K,Z.min*Z.ratio);return{base:H-M/2,head:H+M/2,center:H,size:M}}draw(){let J=this._cachedMeta,Z=J.vScale,q=J.data,X=q.length,Y=0;for(;Y<X;++Y)if(this.getParsed(Y)[Z.axis]!==null&&!q[Y].hidden)q[Y].draw(this._ctx)}}class qK extends aq{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(J){let Z=this._cachedMeta,{dataset:q,data:X=[],_dataset:Y}=Z,K=this.chart._animationsDisabled,{start:H,count:M}=Nz(Z,X,K);if(this._drawStart=H,this._drawCount=M,Yz(Z))H=0,M=X.length;q._chart=this.chart,q._datasetIndex=this.index,q._decimated=!!Y._decimated,q.points=X;let W=this.resolveDatasetElementOptions(J);if(!this.options.showLine)W.borderWidth=0;W.segment=this.options.segment,this.updateElement(q,void 0,{animated:!K,options:W},J),this.updateElements(X,H,M,J)}updateElements(J,Z,q,X){let Y=X==="reset",{iScale:K,vScale:H,_stacked:M,_dataset:W}=this._cachedMeta,{sharedOptions:w,includeOptions:z}=this._getSharedOptions(Z,X),T=K.axis,P=H.axis,{spanGaps:I,segment:E}=this.options,O=KQ(I)?I:Number.POSITIVE_INFINITY,V=this.chart._animationsDisabled||Y||X==="none",D=Z+q,h=J.length,p=Z>0&&this.getParsed(Z-1);for(let s=0;s<h;++s){let n=J[s],Z0=V?n:{};if(s<Z||s>=D){Z0.skip=!0;continue}let a=this.getParsed(s),i=e0(a[P]),X0=Z0[T]=K.getPixelForValue(a[T],s),d=Z0[P]=Y||i?H.getBasePixel():H.getPixelForValue(M?this.applyStack(H,a,M):a[P],s);if(Z0.skip=isNaN(X0)||isNaN(d)||i,Z0.stop=s>0&&Math.abs(a[T]-p[T])>O,E)Z0.parsed=a,Z0.raw=W.data[s];if(z)Z0.options=w||this.resolveDataElementOptions(s,n.active?"active":X);if(!V)this.updateElement(n,s,Z0,X);p=a}}getMaxOverflow(){let J=this._cachedMeta,Z=J.dataset,q=Z.options&&Z.options.borderWidth||0,X=J.data||[];if(!X.length)return q;let Y=X[0].size(this.resolveDataElementOptions(0)),K=X[X.length-1].size(this.resolveDataElementOptions(X.length-1));return Math.max(q,Y,K)/2}draw(){let J=this._cachedMeta;J.dataset.updateControlPoints(this.chart.chartArea,J.iScale.axis),super.draw()}}function g7(){throw Error("This method is not implemented: Check that a complete date adapter is provided.")}class XK{static override(J){Object.assign(XK.prototype,J)}options;constructor(J){this.options=J||{}}init(){}formats(){return g7()}parse(){return g7()}format(){return g7()}add(){return g7()}diff(){return g7()}startOf(){return g7()}endOf(){return g7()}}var qA={_date:XK};function XA(J,Z,q,X){let{controller:Y,data:K,_sorted:H}=J,M=Y._cachedMeta.iScale,W=J.dataset?J.dataset.options?J.dataset.options.spanGaps:null:null;if(M&&Z===M.axis&&Z!=="r"&&H&&K.length){let w=M._reversePixels?nR:S8;if(!X){let z=w(K,Z,q);if(W){let{vScale:T}=Y._cachedMeta,{_parsed:P}=J,I=P.slice(0,z.lo+1).reverse().findIndex((O)=>!e0(O[T.axis]));z.lo-=Math.max(0,I);let E=P.slice(z.hi).findIndex((O)=>!e0(O[T.axis]));z.hi+=Math.max(0,E)}return z}else if(Y._sharedOptions){let z=K[0],T=typeof z.getRange==="function"&&z.getRange(Z);if(T){let P=w(K,Z,q-T),I=w(K,Z,q+T);return{lo:P.lo,hi:I.hi}}}}return{lo:0,hi:K.length-1}}function AJ(J,Z,q,X,Y){let K=J.getSortedVisibleDatasetMetas(),H=q[Z];for(let M=0,W=K.length;M<W;++M){let{index:w,data:z}=K[M],{lo:T,hi:P}=XA(K[M],Z,H,Y);for(let I=T;I<=P;++I){let E=z[I];if(!E.skip)X(E,w,I)}}}function NA(J){let Z=J.indexOf("x")!==-1,q=J.indexOf("y")!==-1;return function(X,Y){let K=Z?Math.abs(X.x-Y.x):0,H=q?Math.abs(X.y-Y.y):0;return Math.sqrt(Math.pow(K,2)+Math.pow(H,2))}}function dU(J,Z,q,X,Y){let K=[];if(!Y&&!J.isPointInArea(Z))return K;return AJ(J,q,Z,function(M,W,w){if(!Y&&!x4(M,J.chartArea,0))return;if(M.inRange(Z.x,Z.y,X))K.push({element:M,datasetIndex:W,index:w})},!0),K}function YA(J,Z,q,X){let Y=[];function K(H,M,W){let{startAngle:w,endAngle:z}=H.getProps(["startAngle","endAngle"],X),{angle:T}=pR(H,{x:Z.x,y:Z.y});if(TU(T,w,z))Y.push({element:H,datasetIndex:M,index:W})}return AJ(J,q,Z,K),Y}function UA(J,Z,q,X,Y,K){let H=[],M=NA(q),W=Number.POSITIVE_INFINITY;function w(z,T,P){let I=z.inRange(Z.x,Z.y,Y);if(X&&!I)return;let E=z.getCenterPoint(Y);if(!(!!K||J.isPointInArea(E))&&!I)return;let V=M(Z,E);if(V<W)H=[{element:z,datasetIndex:T,index:P}],W=V;else if(V===W)H.push({element:z,datasetIndex:T,index:P})}return AJ(J,q,Z,w),H}function pU(J,Z,q,X,Y,K){if(!K&&!J.isPointInArea(Z))return[];return q==="r"&&!X?YA(J,Z,q,Y):UA(J,Z,q,X,Y,K)}function Vz(J,Z,q,X,Y){let K=[],H=q==="x"?"inXRange":"inYRange",M=!1;if(AJ(J,q,Z,(W,w,z)=>{if(W[H]&&W[H](Z[q],Y))K.push({element:W,datasetIndex:w,index:z}),M=M||W.inRange(Z.x,Z.y,Y)}),X&&!M)return[];return K}var KA={evaluateInteractionItems:AJ,modes:{index(J,Z,q,X){let Y=k8(Z,J),K=q.axis||"x",H=q.includeInvisible||!1,M=q.intersect?dU(J,Y,K,X,H):pU(J,Y,K,!1,X,H),W=[];if(!M.length)return[];return J.getSortedVisibleDatasetMetas().forEach((w)=>{let z=M[0].index,T=w.data[z];if(T&&!T.skip)W.push({element:T,datasetIndex:w.index,index:z})}),W},dataset(J,Z,q,X){let Y=k8(Z,J),K=q.axis||"xy",H=q.includeInvisible||!1,M=q.intersect?dU(J,Y,K,X,H):pU(J,Y,K,!1,X,H);if(M.length>0){let W=M[0].datasetIndex,w=J.getDatasetMeta(W).data;M=[];for(let z=0;z<w.length;++z)M.push({element:w[z],datasetIndex:W,index:z})}return M},point(J,Z,q,X){let Y=k8(Z,J),K=q.axis||"xy",H=q.includeInvisible||!1;return dU(J,Y,K,X,H)},nearest(J,Z,q,X){let Y=k8(Z,J),K=q.axis||"xy",H=q.includeInvisible||!1;return pU(J,Y,K,q.intersect,X,H)},x(J,Z,q,X){let Y=k8(Z,J);return Vz(J,Y,"x",q.intersect,X)},y(J,Z,q,X){let Y=k8(Z,J);return Vz(J,Y,"y",q.intersect,X)}}},wT=["left","top","right","bottom"];function zJ(J,Z){return J.filter((q)=>q.pos===Z)}function Oz(J,Z){return J.filter((q)=>wT.indexOf(q.pos)===-1&&q.box.axis===Z)}function TJ(J,Z){return J.sort((q,X)=>{let Y=Z?X:q,K=Z?q:X;return Y.weight===K.weight?Y.index-K.index:Y.weight-K.weight})}function BA(J){let Z=[],q,X,Y,K,H,M;for(q=0,X=(J||[]).length;q<X;++q)Y=J[q],{position:K,options:{stack:H,stackWeight:M=1}}=Y,Z.push({index:q,box:Y,pos:K,horizontal:Y.isHorizontal(),weight:Y.weight,stack:H&&K+H,stackWeight:M});return Z}function HA(J){let Z={};for(let q of J){let{stack:X,pos:Y,stackWeight:K}=q;if(!X||!wT.includes(Y))continue;let H=Z[X]||(Z[X]={count:0,placed:0,weight:0,size:0});H.count++,H.weight+=K}return Z}function MA(J,Z){let q=HA(J),{vBoxMaxWidth:X,hBoxMaxHeight:Y}=Z,K,H,M;for(K=0,H=J.length;K<H;++K){M=J[K];let{fullSize:W}=M.box,w=q[M.stack],z=w&&M.stackWeight/w.weight;if(M.horizontal)M.width=z?z*X:W&&Z.availableWidth,M.height=Y;else M.width=X,M.height=z?z*Y:W&&Z.availableHeight}return q}function WA(J){let Z=BA(J),q=TJ(Z.filter((w)=>w.box.fullSize),!0),X=TJ(zJ(Z,"left"),!0),Y=TJ(zJ(Z,"right")),K=TJ(zJ(Z,"top"),!0),H=TJ(zJ(Z,"bottom")),M=Oz(Z,"x"),W=Oz(Z,"y");return{fullSize:q,leftAndTop:X.concat(K),rightAndBottom:Y.concat(W).concat(H).concat(M),chartArea:zJ(Z,"chartArea"),vertical:X.concat(Y).concat(W),horizontal:K.concat(H).concat(M)}}function Ez(J,Z,q,X){return Math.max(J[q],Z[q])+Math.max(J[X],Z[X])}function RT(J,Z){J.top=Math.max(J.top,Z.top),J.left=Math.max(J.left,Z.left),J.bottom=Math.max(J.bottom,Z.bottom),J.right=Math.max(J.right,Z.right)}function FA(J,Z,q,X){let{pos:Y,box:K}=q,H=J.maxPadding;if(!o0(Y)){if(q.size)J[Y]-=q.size;let T=X[q.stack]||{size:0,count:1};T.size=Math.max(T.size,q.horizontal?K.height:K.width),q.size=T.size/T.count,J[Y]+=q.size}if(K.getPadding)RT(H,K.getPadding());let M=Math.max(0,Z.outerWidth-Ez(H,J,"left","right")),W=Math.max(0,Z.outerHeight-Ez(H,J,"top","bottom")),w=M!==J.w,z=W!==J.h;return J.w=M,J.h=W,q.horizontal?{same:w,other:z}:{same:z,other:w}}function wA(J){let Z=J.maxPadding;function q(X){let Y=Math.max(Z[X]-J[X],0);return J[X]+=Y,Y}J.y+=q("top"),J.x+=q("left"),q("right"),q("bottom")}function RA(J,Z){let q=Z.maxPadding;function X(Y){let K={left:0,top:0,right:0,bottom:0};return Y.forEach((H)=>{K[H]=Math.max(Z[H],q[H])}),K}return J?X(["left","right"]):X(["top","bottom"])}function CJ(J,Z,q,X){let Y=[],K,H,M,W,w,z;for(K=0,H=J.length,w=0;K<H;++K){M=J[K],W=M.box,W.update(M.width||Z.w,M.height||Z.h,RA(M.horizontal,Z));let{same:T,other:P}=FA(Z,q,M,X);if(w|=T&&Y.length,z=z||P,!W.fullSize)Y.push(M)}return w&&CJ(Y,Z,q,X)||z}function pq(J,Z,q,X,Y){J.top=q,J.left=Z,J.right=Z+X,J.bottom=q+Y,J.width=X,J.height=Y}function Az(J,Z,q,X){let Y=q.padding,{x:K,y:H}=Z;for(let M of J){let W=M.box,w=X[M.stack]||{placed:0,weight:1},z=M.stackWeight/w.weight||1;if(M.horizontal){let T=Z.w*z,P=w.size||W.height;if(YQ(w.start))H=w.start;if(W.fullSize)pq(W,Y.left,H,q.outerWidth-Y.right-Y.left,P);else pq(W,Z.left+w.placed,H,T,P);w.start=H,w.placed+=T,H=W.bottom}else{let T=Z.h*z,P=w.size||W.width;if(YQ(w.start))K=w.start;if(W.fullSize)pq(W,K,Y.top,P,q.outerHeight-Y.bottom-Y.top);else pq(W,K,Z.top+w.placed,P,T);w.start=K,w.placed+=T,K=W.right}}Z.x=K,Z.y=H}var d5={addBox(J,Z){if(!J.boxes)J.boxes=[];Z.fullSize=Z.fullSize||!1,Z.position=Z.position||"top",Z.weight=Z.weight||0,Z._layers=Z._layers||function(){return[{z:0,draw(q){Z.draw(q)}}]},J.boxes.push(Z)},removeBox(J,Z){let q=J.boxes?J.boxes.indexOf(Z):-1;if(q!==-1)J.boxes.splice(q,1)},configure(J,Z,q){Z.fullSize=q.fullSize,Z.position=q.position,Z.weight=q.weight},update(J,Z,q,X){if(!J)return;let Y=z6(J.options.layout.padding),K=Math.max(Z-Y.width,0),H=Math.max(q-Y.height,0),M=WA(J.boxes),W=M.vertical,w=M.horizontal;U1(J.boxes,(O)=>{if(typeof O.beforeLayout==="function")O.beforeLayout()});let z=W.reduce((O,V)=>V.box.options&&V.box.options.display===!1?O:O+1,0)||1,T=Object.freeze({outerWidth:Z,outerHeight:q,padding:Y,availableWidth:K,availableHeight:H,vBoxMaxWidth:K/2/z,hBoxMaxHeight:H/2}),P=Object.assign({},Y);RT(P,z6(X));let I=Object.assign({maxPadding:P,w:K,h:H,x:Y.left,y:Y.top},Y),E=MA(W.concat(w),T);if(CJ(M.fullSize,I,T,E),CJ(W,I,T,E),CJ(w,I,T,E))CJ(W,I,T,E);wA(I),Az(M.leftAndTop,I,T,E),I.x+=I.w,I.y+=I.h,Az(M.rightAndBottom,I,T,E),J.chartArea={left:I.left,top:I.top,right:I.left+I.w,bottom:I.top+I.h,height:I.h,width:I.w},U1(M.chartArea,(O)=>{let V=O.box;Object.assign(V,J.chartArea),V.update(I.w,I.h,{left:0,top:0,right:0,bottom:0})})}};class NK{acquireContext(J,Z){}releaseContext(J){return!1}addEventListener(J,Z,q){}removeEventListener(J,Z,q){}getDevicePixelRatio(){return 1}getMaximumSize(J,Z,q,X){return Z=Math.max(0,Z||J.width),q=q||J.height,{width:Z,height:Math.max(0,X?Math.floor(Z/X):q)}}isAttached(J){return!0}updateConfig(J){}}class zT extends NK{acquireContext(J){return J&&J.getContext&&J.getContext("2d")||null}updateConfig(J){J.options.animation=!1}}var nq="$chartjs",zA={touchstart:"mousedown",touchmove:"mousemove",touchend:"mouseup",pointerenter:"mouseenter",pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointerleave:"mouseout",pointerout:"mouseout"},jz=(J)=>J===null||J==="";function TA(J,Z){let q=J.style,X=J.getAttribute("height"),Y=J.getAttribute("width");if(J[nq]={initial:{height:X,width:Y,style:{display:q.display,height:q.height,width:q.width}}},q.display=q.display||"block",q.boxSizing=q.boxSizing||"border-box",jz(Y)){let K=AU(J,"width");if(K!==void 0)J.width=K}if(jz(X))if(J.style.height==="")J.height=J.width/(Z||2);else{let K=AU(J,"height");if(K!==void 0)J.height=K}return J}var TT=Gz?{passive:!0}:!1;function LA(J,Z,q){if(J)J.addEventListener(Z,q,TT)}function PA(J,Z,q){if(J&&J.canvas)J.canvas.removeEventListener(Z,q,TT)}function CA(J,Z){let q=zA[J.type]||J.type,{x:X,y:Y}=k8(J,Z);return{type:q,chart:Z,native:J,x:X!==void 0?X:null,y:Y!==void 0?Y:null}}function iq(J,Z){for(let q of J)if(q===Z||q.contains(Z))return!0}function _A(J,Z,q){let X=J.canvas,Y=new MutationObserver((K)=>{let H=!1;for(let M of K)H=H||iq(M.addedNodes,X),H=H&&!iq(M.removedNodes,X);if(H)q()});return Y.observe(document,{childList:!0,subtree:!0}),Y}function IA(J,Z,q){let X=J.canvas,Y=new MutationObserver((K)=>{let H=!1;for(let M of K)H=H||iq(M.removedNodes,X),H=H&&!iq(M.addedNodes,X);if(H)q()});return Y.observe(document,{childList:!0,subtree:!0}),Y}var VJ=new Map,Sz=0;function LT(){let J=window.devicePixelRatio;if(J===Sz)return;Sz=J,VJ.forEach((Z,q)=>{if(q.currentDevicePixelRatio!==J)Z()})}function VA(J,Z){if(!VJ.size)window.addEventListener("resize",LT);VJ.set(J,Z)}function OA(J){if(VJ.delete(J),!VJ.size)window.removeEventListener("resize",LT)}function EA(J,Z,q){let X=J.canvas,Y=X&&MJ(X);if(!Y)return;let K=SU((M,W)=>{let w=Y.clientWidth;if(q(M,W),w<Y.clientWidth)q()},window),H=new ResizeObserver((M)=>{let W=M[0],w=W.contentRect.width,z=W.contentRect.height;if(w===0&&z===0)return;K(w,z)});return H.observe(Y),VA(J,K),H}function cU(J,Z,q){if(q)q.disconnect();if(Z==="resize")OA(J)}function AA(J,Z,q){let X=J.canvas,Y=SU((K)=>{if(J.ctx!==null)q(CA(K,J))},J);return LA(X,Z,Y),Y}class PT extends NK{acquireContext(J,Z){let q=J&&J.getContext&&J.getContext("2d");if(q&&q.canvas===J)return TA(J,Z),q;return null}releaseContext(J){let Z=J.canvas;if(!Z[nq])return!1;let q=Z[nq].initial;["height","width"].forEach((Y)=>{let K=q[Y];if(e0(K))Z.removeAttribute(Y);else Z.setAttribute(Y,K)});let X=q.style||{};return Object.keys(X).forEach((Y)=>{Z.style[Y]=X[Y]}),Z.width=Z.width,delete Z[nq],!0}addEventListener(J,Z,q){this.removeEventListener(J,Z);let X=J.$proxies||(J.$proxies={}),K={attach:_A,detach:IA,resize:EA}[Z]||AA;X[Z]=K(J,Z,q)}removeEventListener(J,Z){let q=J.$proxies||(J.$proxies={}),X=q[Z];if(!X)return;({attach:cU,detach:cU,resize:cU}[Z]||PA)(J,Z,X),q[Z]=void 0}getDevicePixelRatio(){return window.devicePixelRatio}getMaximumSize(J,Z,q,X){return Zz(J,Z,q,X)}isAttached(J){let Z=J&&MJ(J);return!!(Z&&Z.isConnected)}}function jA(J){if(!uq()||typeof OffscreenCanvas<"u"&&J instanceof OffscreenCanvas)return zT;return PT}class D${static defaults={};static defaultRoutes=void 0;x;y;active=!1;options;$animations;tooltipPosition(J){let{x:Z,y:q}=this.getProps(["x","y"],J);return{x:Z,y:q}}hasValue(){return KQ(this.x)&&KQ(this.y)}getProps(J,Z){let q=this.$animations;if(!Z||!q)return this;let X={};return J.forEach((Y)=>{X[Y]=q[Y]&&q[Y].active()?q[Y]._to:this[Y]}),X}}function SA(J,Z){let q=J.options.ticks,X=DA(J),Y=Math.min(q.maxTicksLimit||X,X),K=q.major.enabled?kA(Z):[],H=K.length,M=K[0],W=K[H-1],w=[];if(H>Y)return bA(Z,w,K,H/Y),w;let z=vA(K,Z,Y);if(H>0){let T,P,I=H>1?Math.round((W-M)/(H-1)):null;cq(Z,w,z,e0(I)?0:M-I,M);for(T=0,P=H-1;T<P;T++)cq(Z,w,z,K[T],K[T+1]);return cq(Z,w,z,W,e0(I)?Z.length:W+I),w}return cq(Z,w,z),w}function DA(J){let Z=J.options.offset,q=J._tickSize(),X=J._length/q+(Z?0:1),Y=J._maxLength/q;return Math.floor(Math.min(X,Y))}function vA(J,Z,q){let X=yA(J),Y=Z.length/q;if(!X)return Math.max(Y,1);let K=mR(X);for(let H=0,M=K.length-1;H<M;H++){let W=K[H];if(W>Y)return W}return Math.max(Y,1)}function kA(J){let Z=[],q,X;for(q=0,X=J.length;q<X;q++)if(J[q].major)Z.push(q);return Z}function bA(J,Z,q,X){let Y=0,K=q[0],H;X=Math.ceil(X);for(H=0;H<J.length;H++)if(H===K)Z.push(J[H]),Y++,K=q[Y*X]}function cq(J,Z,q,X,Y){let K=d0(X,0),H=Math.min(d0(Y,J.length),J.length),M=0,W,w,z;if(q=Math.ceil(q),Y)W=Y-X,q=W/Math.floor(W/q);z=K;while(z<0)M++,z=Math.round(K+M*q);for(w=Math.max(K,0);w<H;w++)if(w===z)Z.push(J[w]),M++,z=Math.round(K+M*q)}function yA(J){let Z=J.length,q,X;if(Z<2)return!1;for(X=J[0],q=1;q<Z;++q)if(J[q]-J[q-1]!==X)return!1;return X}var fA=(J)=>J==="left"?"right":J==="right"?"left":J,Dz=(J,Z,q)=>Z==="top"||Z==="left"?J[Z]+q:J[Z]-q,vz=(J,Z)=>Math.min(Z||J,J);function kz(J,Z){let q=[],X=J.length/Z,Y=J.length,K=0;for(;K<Y;K+=X)q.push(J[Math.floor(K)]);return q}function gA(J,Z,q){let X=J.ticks.length,Y=Math.min(Z,X-1),K=J._startPixel,H=J._endPixel,M=0.000001,W=J.getPixelForTick(Y),w;if(q){if(X===1)w=Math.max(W-K,H-W);else if(Z===0)w=(J.getPixelForTick(1)-W)/2;else w=(W-J.getPixelForTick(Y-1))/2;if(W+=Y<Z?w:-w,W<K-0.000001||W>H+0.000001)return}return W}function hA(J,Z){U1(J,(q)=>{let X=q.gc,Y=X.length/2,K;if(Y>Z){for(K=0;K<Y;++K)delete q.data[X[K]];X.splice(0,Y)}})}function LJ(J){return J.drawTicks?J.tickLength:0}function bz(J,Z){if(!J.display)return 0;let q=a1(J.font,Z),X=z6(J.padding);return(_1(J.text)?J.text.length:1)*q.lineHeight+X.height}function xA(J,Z){return A$(J,{scale:Z,type:"scale"})}function uA(J,Z,q){return A$(J,{tick:q,index:Z,type:"tick"})}function mA(J,Z,q){let X=mq(J);if(q&&Z!=="right"||!q&&Z==="right")X=fA(X);return X}function dA(J,Z,q,X){let{top:Y,left:K,bottom:H,right:M,chart:W}=J,{chartArea:w,scales:z}=W,T=0,P,I,E,O=H-Y,V=M-K;if(J.isHorizontal()){if(I=R6(X,K,M),o0(q)){let D=Object.keys(q)[0],h=q[D];E=z[D].getPixelForValue(h)+O-Z}else if(q==="center")E=(w.bottom+w.top)/2+O-Z;else E=Dz(J,q,Z);P=M-K}else{if(o0(q)){let D=Object.keys(q)[0],h=q[D];I=z[D].getPixelForValue(h)-V+Z}else if(q==="center")I=(w.left+w.right)/2-V+Z;else I=Dz(J,q,Z);E=R6(X,H,Y),T=q==="left"?-o6:o6}return{titleX:I,titleY:E,maxWidth:P,rotation:T}}class x7 extends D${constructor(J){super();this.id=J.id,this.type=J.type,this.options=void 0,this.ctx=J.ctx,this.chart=J.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(J){this.options=J.setContext(this.getContext()),this.axis=J.axis,this._userMin=this.parse(J.min),this._userMax=this.parse(J.max),this._suggestedMin=this.parse(J.suggestedMin),this._suggestedMax=this.parse(J.suggestedMax)}parse(J,Z){return J}getUserBounds(){let{_userMin:J,_userMax:Z,_suggestedMin:q,_suggestedMax:X}=this;return J=t6(J,Number.POSITIVE_INFINITY),Z=t6(Z,Number.NEGATIVE_INFINITY),q=t6(q,Number.POSITIVE_INFINITY),X=t6(X,Number.NEGATIVE_INFINITY),{min:t6(J,q),max:t6(Z,X),minDefined:b1(J),maxDefined:b1(Z)}}getMinMax(J){let{min:Z,max:q,minDefined:X,maxDefined:Y}=this.getUserBounds(),K;if(X&&Y)return{min:Z,max:q};let H=this.getMatchingVisibleMetas();for(let M=0,W=H.length;M<W;++M){if(K=H[M].controller.getMinMax(this,J),!X)Z=Math.min(Z,K.min);if(!Y)q=Math.max(q,K.max)}return Z=Y&&Z>q?q:Z,q=X&&Z>q?Z:q,{min:t6(Z,t6(q,Z)),max:t6(q,t6(Z,q))}}getPadding(){return{left:this.paddingLeft||0,top:this.paddingTop||0,right:this.paddingRight||0,bottom:this.paddingBottom||0}}getTicks(){return this.ticks}getLabels(){let J=this.chart.data;return this.options.labels||(this.isHorizontal()?J.xLabels:J.yLabels)||J.labels||[]}getLabelItems(J=this.chart.chartArea){return this._labelItems||(this._labelItems=this._computeLabelItems(J))}beforeLayout(){this._cache={},this._dataLimitsCached=!1}beforeUpdate(){z1(this.options.beforeUpdate,[this])}update(J,Z,q){let{beginAtZero:X,grace:Y,ticks:K}=this.options,H=K.sampleSize;if(this.beforeUpdate(),this.maxWidth=J,this.maxHeight=Z,this._margins=q=Object.assign({left:0,right:0,top:0,bottom:0},q),this.ticks=null,this._labelSizes=null,this._gridLineItems=null,this._labelItems=null,this.beforeSetDimensions(),this.setDimensions(),this.afterSetDimensions(),this._maxLength=this.isHorizontal()?this.width+q.left+q.right:this.height+q.top+q.bottom,!this._dataLimitsCached){this.beforeDataLimits(),this.determineDataLimits(),this.afterDataLimits();let W=Mz(this,Y,X),{minDefined:w,maxDefined:z}=this.getUserBounds();this._range={min:w?this.min:W.min,max:z?this.max:W.max},this._dataLimitsCached=!0}this.beforeBuildTicks(),this.ticks=this.buildTicks()||[],this.afterBuildTicks();let M=H<this.ticks.length;if(this._convertTicksToLabels(M?kz(this.ticks,H):this.ticks),this.configure(),this.beforeCalculateLabelRotation(),this.calculateLabelRotation(),this.afterCalculateLabelRotation(),K.display&&(K.autoSkip||K.source==="auto"))this.ticks=SA(this,this.ticks),this._labelSizes=null,this.afterAutoSkip();if(M)this._convertTicksToLabels(this.ticks);this.beforeFit(),this.fit(),this.afterFit(),this.afterUpdate()}configure(){let J=this.options.reverse,Z,q;if(this.isHorizontal())Z=this.left,q=this.right;else Z=this.top,q=this.bottom,J=!J;this._startPixel=Z,this._endPixel=q,this._reversePixels=J,this._length=q-Z,this._alignToPixels=this.options.alignToPixels}afterUpdate(){z1(this.options.afterUpdate,[this])}beforeSetDimensions(){z1(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(){z1(this.options.afterSetDimensions,[this])}_callHooks(J){this.chart.notifyPlugins(J,this.getContext()),z1(this.options[J],[this])}beforeDataLimits(){this._callHooks("beforeDataLimits")}determineDataLimits(){}afterDataLimits(){this._callHooks("afterDataLimits")}beforeBuildTicks(){this._callHooks("beforeBuildTicks")}buildTicks(){return[]}afterBuildTicks(){this._callHooks("afterBuildTicks")}beforeTickToLabelConversion(){z1(this.options.beforeTickToLabelConversion,[this])}generateTickLabels(J){let Z=this.options.ticks,q,X,Y;for(q=0,X=J.length;q<X;q++)Y=J[q],Y.label=z1(Z.callback,[Y.value,q,J],this)}afterTickToLabelConversion(){z1(this.options.afterTickToLabelConversion,[this])}beforeCalculateLabelRotation(){z1(this.options.beforeCalculateLabelRotation,[this])}calculateLabelRotation(){let J=this.options,Z=J.ticks,q=vz(this.ticks.length,J.ticks.maxTicksLimit),X=Z.minRotation||0,Y=Z.maxRotation,K=X,H,M,W;if(!this._isVisible()||!Z.display||X>=Y||q<=1||!this.isHorizontal()){this.labelRotation=X;return}let w=this._getLabelSizes(),z=w.widest.width,T=w.highest.height,P=a6(this.chart.width-z,0,this.maxWidth);if(H=J.offset?this.maxWidth/q:P/(q-1),z+6>H)H=P/(q-(J.offset?0.5:1)),M=this.maxHeight-LJ(J.grid)-Z.padding-bz(J.title,this.chart.options.font),W=Math.sqrt(z*z+T*T),K=yq(Math.min(Math.asin(a6((w.highest.height+6)/H,-1,1)),Math.asin(a6(M/W,-1,1))-Math.asin(a6(T/W,-1,1)))),K=Math.max(X,Math.min(Y,K));this.labelRotation=K}afterCalculateLabelRotation(){z1(this.options.afterCalculateLabelRotation,[this])}afterAutoSkip(){}beforeFit(){z1(this.options.beforeFit,[this])}fit(){let J={width:0,height:0},{chart:Z,options:{ticks:q,title:X,grid:Y}}=this,K=this._isVisible(),H=this.isHorizontal();if(K){let M=bz(X,Z.options.font);if(H)J.width=this.maxWidth,J.height=LJ(Y)+M;else J.height=this.maxHeight,J.width=LJ(Y)+M;if(q.display&&this.ticks.length){let{first:W,last:w,widest:z,highest:T}=this._getLabelSizes(),P=q.padding*2,I=O$(this.labelRotation),E=Math.cos(I),O=Math.sin(I);if(H){let V=q.mirror?0:O*z.width+E*T.height;J.height=Math.min(this.maxHeight,J.height+V+P)}else{let V=q.mirror?0:E*z.width+O*T.height;J.width=Math.min(this.maxWidth,J.width+V+P)}this._calculatePadding(W,w,O,E)}}if(this._handleMargins(),H)this.width=this._length=Z.width-this._margins.left-this._margins.right,this.height=J.height;else this.width=J.width,this.height=this._length=Z.height-this._margins.top-this._margins.bottom}_calculatePadding(J,Z,q,X){let{ticks:{align:Y,padding:K},position:H}=this.options,M=this.labelRotation!==0,W=H!=="top"&&this.axis==="x";if(this.isHorizontal()){let w=this.getPixelForTick(0)-this.left,z=this.right-this.getPixelForTick(this.ticks.length-1),T=0,P=0;if(M)if(W)T=X*J.width,P=q*Z.height;else T=q*J.height,P=X*Z.width;else if(Y==="start")P=Z.width;else if(Y==="end")T=J.width;else if(Y!=="inner")T=J.width/2,P=Z.width/2;this.paddingLeft=Math.max((T-w+K)*this.width/(this.width-w),0),this.paddingRight=Math.max((P-z+K)*this.width/(this.width-z),0)}else{let w=Z.height/2,z=J.height/2;if(Y==="start")w=0,z=J.height;else if(Y==="end")w=Z.height,z=0;this.paddingTop=w+K,this.paddingBottom=z+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(){z1(this.options.afterFit,[this])}isHorizontal(){let{axis:J,position:Z}=this.options;return Z==="top"||Z==="bottom"||J==="x"}isFullSize(){return this.options.fullSize}_convertTicksToLabels(J){this.beforeTickToLabelConversion(),this.generateTickLabels(J);let Z,q;for(Z=0,q=J.length;Z<q;Z++)if(e0(J[Z].label))J.splice(Z,1),q--,Z--;this.afterTickToLabelConversion()}_getLabelSizes(){let J=this._labelSizes;if(!J){let Z=this.options.ticks.sampleSize,q=this.ticks;if(Z<q.length)q=kz(q,Z);this._labelSizes=J=this._computeLabelSizes(q,q.length,this.options.ticks.maxTicksLimit)}return J}_computeLabelSizes(J,Z,q){let{ctx:X,_longestTextCache:Y}=this,K=[],H=[],M=Math.floor(Z/vz(Z,q)),W=0,w=0,z,T,P,I,E,O,V,D,h,p,s;for(z=0;z<Z;z+=M){if(I=J[z].label,E=this._resolveTickFontOptions(z),X.font=O=E.string,V=Y[O]=Y[O]||{data:{},gc:[]},D=E.lineHeight,h=p=0,!e0(I)&&!_1(I))h=YJ(X,V.data,V.gc,h,I),p=D;else if(_1(I)){for(T=0,P=I.length;T<P;++T)if(s=I[T],!e0(s)&&!_1(s))h=YJ(X,V.data,V.gc,h,s),p+=D}K.push(h),H.push(p),W=Math.max(h,W),w=Math.max(p,w)}hA(Y,Z);let n=K.indexOf(W),Z0=H.indexOf(w),a=(i)=>({width:K[i]||0,height:H[i]||0});return{first:a(0),last:a(Z-1),widest:a(n),highest:a(Z0),widths:K,heights:H}}getLabelForValue(J){return J}getPixelForValue(J,Z){return NaN}getValueForPixel(J){}getPixelForTick(J){let Z=this.ticks;if(J<0||J>Z.length-1)return null;return this.getPixelForValue(Z[J].value)}getPixelForDecimal(J){if(this._reversePixels)J=1-J;let Z=this._startPixel+J*this._length;return cR(this._alignToPixels?D8(this.chart,Z,0):Z)}getDecimalForPixel(J){let Z=(J-this._startPixel)/this._length;return this._reversePixels?1-Z:Z}getBasePixel(){return this.getPixelForValue(this.getBaseValue())}getBaseValue(){let{min:J,max:Z}=this;return J<0&&Z<0?Z:J>0&&Z>0?J:0}getContext(J){let Z=this.ticks||[];if(J>=0&&J<Z.length){let q=Z[J];return q.$context||(q.$context=uA(this.getContext(),J,q))}return this.$context||(this.$context=xA(this.chart.getContext(),this))}_tickSize(){let J=this.options.ticks,Z=O$(this.labelRotation),q=Math.abs(Math.cos(Z)),X=Math.abs(Math.sin(Z)),Y=this._getLabelSizes(),K=J.autoSkipPadding||0,H=Y?Y.widest.width+K:0,M=Y?Y.highest.height+K:0;return this.isHorizontal()?M*q>H*X?H/q:M/X:M*X<H*q?M/q:H/X}_isVisible(){let J=this.options.display;if(J!=="auto")return!!J;return this.getMatchingVisibleMetas().length>0}_computeGridLineItems(J){let Z=this.axis,q=this.chart,X=this.options,{grid:Y,position:K,border:H}=X,M=Y.offset,W=this.isHorizontal(),z=this.ticks.length+(M?1:0),T=LJ(Y),P=[],I=H.setContext(this.getContext()),E=I.display?I.width:0,O=E/2,V=function(l){return D8(q,l,E)},D,h,p,s,n,Z0,a,i,X0,d,B0,H0;if(K==="top")D=V(this.bottom),Z0=this.bottom-T,i=D-O,d=V(J.top)+O,H0=J.bottom;else if(K==="bottom")D=V(this.top),d=J.top,H0=V(J.bottom)-O,Z0=D+O,i=this.top+T;else if(K==="left")D=V(this.right),n=this.right-T,a=D-O,X0=V(J.left)+O,B0=J.right;else if(K==="right")D=V(this.left),X0=J.left,B0=V(J.right)-O,n=D+O,a=this.left+T;else if(Z==="x"){if(K==="center")D=V((J.top+J.bottom)/2+0.5);else if(o0(K)){let l=Object.keys(K)[0],e=K[l];D=V(this.chart.scales[l].getPixelForValue(e))}d=J.top,H0=J.bottom,Z0=D+O,i=Z0+T}else if(Z==="y"){if(K==="center")D=V((J.left+J.right)/2);else if(o0(K)){let l=Object.keys(K)[0],e=K[l];D=V(this.chart.scales[l].getPixelForValue(e))}n=D-O,a=n-T,X0=J.left,B0=J.right}let C0=d0(X.ticks.maxTicksLimit,z),T1=Math.max(1,Math.ceil(z/C0));for(h=0;h<z;h+=T1){let l=this.getContext(h),e=Y.setContext(l),N0=H.setContext(l),c0=e.lineWidth,r0=e.color,v=N0.dash||[],o=N0.dashOffset,W0=e.tickWidth,R0=e.tickColor,h0=e.tickBorderDash||[],p1=e.tickBorderDashOffset;if(p=gA(this,h,M),p===void 0)continue;if(s=D8(q,p,c0),W)n=a=X0=B0=s;else Z0=i=d=H0=s;P.push({tx1:n,ty1:Z0,tx2:a,ty2:i,x1:X0,y1:d,x2:B0,y2:H0,width:c0,color:r0,borderDash:v,borderDashOffset:o,tickWidth:W0,tickColor:R0,tickBorderDash:h0,tickBorderDashOffset:p1})}return this._ticksLength=z,this._borderValue=D,P}_computeLabelItems(J){let Z=this.axis,q=this.options,{position:X,ticks:Y}=q,K=this.isHorizontal(),H=this.ticks,{align:M,crossAlign:W,padding:w,mirror:z}=Y,T=LJ(q.grid),P=T+w,I=z?-w:P,E=-O$(this.labelRotation),O=[],V,D,h,p,s,n,Z0,a,i,X0,d,B0,H0="middle";if(X==="top")n=this.bottom-I,Z0=this._getXAxisLabelAlignment();else if(X==="bottom")n=this.top+I,Z0=this._getXAxisLabelAlignment();else if(X==="left"){let e=this._getYAxisLabelAlignment(T);Z0=e.textAlign,s=e.x}else if(X==="right"){let e=this._getYAxisLabelAlignment(T);Z0=e.textAlign,s=e.x}else if(Z==="x"){if(X==="center")n=(J.top+J.bottom)/2+P;else if(o0(X)){let e=Object.keys(X)[0],N0=X[e];n=this.chart.scales[e].getPixelForValue(N0)+P}Z0=this._getXAxisLabelAlignment()}else if(Z==="y"){if(X==="center")s=(J.left+J.right)/2-P;else if(o0(X)){let e=Object.keys(X)[0],N0=X[e];s=this.chart.scales[e].getPixelForValue(N0)}Z0=this._getYAxisLabelAlignment(T).textAlign}if(Z==="y"){if(M==="start")H0="top";else if(M==="end")H0="bottom"}let C0=this._getLabelSizes(),T1=H.length-1,l=T1>0&&this.getPixelForTick(0)>this.getPixelForTick(T1);for(V=0,D=H.length;V<D;++V){h=H[V],p=h.label;let e=Y.setContext(this.getContext(V));a=this.getPixelForTick(V)+Y.labelOffset,i=this._resolveTickFontOptions(V),X0=i.lineHeight,d=_1(p)?p.length:1;let N0=d/2,c0=e.color,r0=e.textStrokeColor,v=e.textStrokeWidth,o=Z0;if(K){if(s=a,Z0==="inner")if(V===D-1)o=!l?"right":"left";else if(V===0)o=!l?"left":"right";else o="center";if(X==="top")if(W==="near"||E!==0)B0=-d*X0+X0/2;else if(W==="center")B0=-C0.highest.height/2-N0*X0+X0;else B0=-C0.highest.height+X0/2;else if(W==="near"||E!==0)B0=X0/2;else if(W==="center")B0=C0.highest.height/2-N0*X0;else B0=C0.highest.height-d*X0;if(z)B0*=-1;if(E!==0&&!e.showLabelBackdrop)s+=X0/2*Math.sin(E)}else n=a,B0=(1-d)*X0/2;let W0;if(e.showLabelBackdrop){let R0=z6(e.backdropPadding),h0=C0.heights[V],p1=C0.widths[V],j0=B0-R0.top,A1=0-R0.left;switch(H0){case"middle":j0-=h0/2;break;case"bottom":j0-=h0;break}switch(o){case"center":A1-=p1/2;break;case"right":A1-=p1;break}W0={left:A1,top:j0,width:p1+R0.width,height:h0+R0.height,color:e.backdropColor}}O.push({label:p,font:i,textOffset:B0,options:{rotation:E,color:c0,strokeColor:r0,strokeWidth:v,textAlign:o,textBaseline:H0,translation:[s,n],backdrop:W0}})}return O}_getXAxisLabelAlignment(){let{position:J,ticks:Z}=this.options;if(-O$(this.labelRotation))return J==="top"?"left":"right";let X="center";if(Z.align==="start")X="left";else if(Z.align==="end")X="right";else if(Z.align==="inner")X="inner";return X}_getYAxisLabelAlignment(J){let{position:Z,ticks:{crossAlign:q,mirror:X,padding:Y}}=this.options,K=this._getLabelSizes(),H=J+Y,M=K.widest.width,W,w;if(Z==="left")if(X)if(w=this.right+Y,q==="near")W="left";else if(q==="center")W="center",w+=M/2;else W="right",w+=M;else if(w=this.right-H,q==="near")W="right";else if(q==="center")W="center",w-=M/2;else W="left",w=this.left;else if(Z==="right")if(X)if(w=this.left+Y,q==="near")W="right";else if(q==="center")W="center",w-=M/2;else W="left",w-=M;else if(w=this.left+H,q==="near")W="left";else if(q==="center")W="center",w+=M/2;else W="right",w=this.right;else W="right";return{textAlign:W,x:w}}_computeLabelArea(){if(this.options.ticks.mirror)return;let J=this.chart,Z=this.options.position;if(Z==="left"||Z==="right")return{top:0,left:this.left,bottom:J.height,right:this.right};if(Z==="top"||Z==="bottom")return{top:this.top,left:0,bottom:this.bottom,right:J.width}}drawBackground(){let{ctx:J,options:{backgroundColor:Z},left:q,top:X,width:Y,height:K}=this;if(Z)J.save(),J.fillStyle=Z,J.fillRect(q,X,Y,K),J.restore()}getLineWidthForValue(J){let Z=this.options.grid;if(!this._isVisible()||!Z.display)return 0;let X=this.ticks.findIndex((Y)=>Y.value===J);if(X>=0)return Z.setContext(this.getContext(X)).lineWidth;return 0}drawGrid(J){let Z=this.options.grid,q=this.ctx,X=this._gridLineItems||(this._gridLineItems=this._computeGridLineItems(J)),Y,K,H=(M,W,w)=>{if(!w.width||!w.color)return;q.save(),q.lineWidth=w.width,q.strokeStyle=w.color,q.setLineDash(w.borderDash||[]),q.lineDashOffset=w.borderDashOffset,q.beginPath(),q.moveTo(M.x,M.y),q.lineTo(W.x,W.y),q.stroke(),q.restore()};if(Z.display)for(Y=0,K=X.length;Y<K;++Y){let M=X[Y];if(Z.drawOnChartArea)H({x:M.x1,y:M.y1},{x:M.x2,y:M.y2},M);if(Z.drawTicks)H({x:M.tx1,y:M.ty1},{x:M.tx2,y:M.ty2},{color:M.tickColor,width:M.tickWidth,borderDash:M.tickBorderDash,borderDashOffset:M.tickBorderDashOffset})}}drawBorder(){let{chart:J,ctx:Z,options:{border:q,grid:X}}=this,Y=q.setContext(this.getContext()),K=q.display?Y.width:0;if(!K)return;let H=X.setContext(this.getContext(0)).lineWidth,M=this._borderValue,W,w,z,T;if(this.isHorizontal())W=D8(J,this.left,K)-K/2,w=D8(J,this.right,H)+H/2,z=T=M;else z=D8(J,this.top,K)-K/2,T=D8(J,this.bottom,H)+H/2,W=w=M;Z.save(),Z.lineWidth=Y.width,Z.strokeStyle=Y.color,Z.beginPath(),Z.moveTo(W,z),Z.lineTo(w,T),Z.stroke(),Z.restore()}drawLabels(J){if(!this.options.ticks.display)return;let q=this.ctx,X=this._computeLabelArea();if(X)BJ(q,X);let Y=this.getLabelItems(J);for(let K of Y){let{options:H,font:M,label:W,textOffset:w}=K;v8(q,W,0,w,M,H)}if(X)HJ(q)}drawTitle(){let{ctx:J,options:{position:Z,title:q,reverse:X}}=this;if(!q.display)return;let Y=a1(q.font),K=z6(q.padding),H=q.align,M=Y.lineHeight/2;if(Z==="bottom"||Z==="center"||o0(Z)){if(M+=K.bottom,_1(q.text))M+=Y.lineHeight*(q.text.length-1)}else M+=K.top;let{titleX:W,titleY:w,maxWidth:z,rotation:T}=dA(this,M,Z,H);v8(J,q.text,0,0,Y,{color:q.color,maxWidth:z,rotation:T,textAlign:mA(H,Z,X),textBaseline:"middle",translation:[W,w],strokeColor:q.strokeColor,strokeWidth:q.strokeWidth})}draw(J){if(!this._isVisible())return;this.drawBackground(),this.drawGrid(J),this.drawBorder(),this.drawTitle(),this.drawLabels(J)}_layers(){let J=this.options,Z=J.ticks&&J.ticks.z||0,q=d0(J.grid&&J.grid.z,-1),X=d0(J.border&&J.border.z,0);if(!this._isVisible()||this.draw!==x7.prototype.draw)return[{z:Z,draw:(Y)=>{this.draw(Y)}}];return[{z:q,draw:(Y)=>{this.drawBackground(),this.drawGrid(Y),this.drawTitle()}},{z:X,draw:()=>{this.drawBorder()}},{z:Z,draw:(Y)=>{this.drawLabels(Y)}}]}getMatchingVisibleMetas(J){let Z=this.chart.getSortedVisibleDatasetMetas(),q=this.axis+"AxisID",X=[],Y,K;for(Y=0,K=Z.length;Y<K;++Y){let H=Z[Y];if(H[q]===this.id&&(!J||H.type===J))X.push(H)}return X}_resolveTickFontOptions(J){let Z=this.options.ticks.setContext(this.getContext(J));return a1(Z.font)}_maxDigits(){let J=this._resolveTickFontOptions(0).lineHeight;return(this.isHorizontal()?this.width:this.height)/J}}class _J{constructor(J,Z,q){this.type=J,this.scope=Z,this.override=q,this.items=Object.create(null)}isForType(J){return Object.prototype.isPrototypeOf.call(this.type.prototype,J.prototype)}register(J){let Z=Object.getPrototypeOf(J),q;if(lA(Z))q=this.register(Z);let X=this.items,Y=J.id,K=this.scope+"."+Y;if(!Y)throw Error("class does not have id: "+J);if(Y in X)return K;if(X[Y]=J,pA(J,K,q),this.override)y1.override(J.id,J.overrides);return K}get(J){return this.items[J]}unregister(J){let Z=this.items,q=J.id,X=this.scope;if(q in Z)delete Z[q];if(X&&q in y1[X]){if(delete y1[X][q],this.override)delete b8[q]}}}function pA(J,Z,q){let X=qQ(Object.create(null),[q?y1.get(q):{},y1.get(Z),J.defaults]);if(y1.set(Z,X),J.defaultRoutes)cA(Z,J.defaultRoutes);if(J.descriptors)y1.describe(Z,J.descriptors)}function cA(J,Z){Object.keys(Z).forEach((q)=>{let X=q.split("."),Y=X.pop(),K=[J].concat(X).join("."),H=Z[q].split("."),M=H.pop(),W=H.join(".");y1.route(K,Y,W,M)})}function lA(J){return"id"in J&&"defaults"in J}class CT{constructor(){this.controllers=new _J(aq,"datasets",!0),this.elements=new _J(D$,"elements"),this.plugins=new _J(Object,"plugins"),this.scales=new _J(x7,"scales"),this._typedRegistries=[this.controllers,this.scales,this.elements]}add(...J){this._each("register",J)}remove(...J){this._each("unregister",J)}addControllers(...J){this._each("register",J,this.controllers)}addElements(...J){this._each("register",J,this.elements)}addPlugins(...J){this._each("register",J,this.plugins)}addScales(...J){this._each("register",J,this.scales)}getController(J){return this._get(J,this.controllers,"controller")}getElement(J){return this._get(J,this.elements,"element")}getPlugin(J){return this._get(J,this.plugins,"plugin")}getScale(J){return this._get(J,this.scales,"scale")}removeControllers(...J){this._each("unregister",J,this.controllers)}removeElements(...J){this._each("unregister",J,this.elements)}removePlugins(...J){this._each("unregister",J,this.plugins)}removeScales(...J){this._each("unregister",J,this.scales)}_each(J,Z,q){[...Z].forEach((X)=>{let Y=q||this._getRegistryForType(X);if(q||Y.isForType(X)||Y===this.plugins&&X.id)this._exec(J,Y,X);else U1(X,(K)=>{let H=q||this._getRegistryForType(K);this._exec(J,H,K)})})}_exec(J,Z,q){let X=bq(J);z1(q["before"+X],[],q),Z[J](q),z1(q["after"+X],[],q)}_getRegistryForType(J){for(let Z=0;Z<this._typedRegistries.length;Z++){let q=this._typedRegistries[Z];if(q.isForType(J))return q}return this.plugins}_get(J,Z,q){let X=Z.get(J);if(X===void 0)throw Error('"'+J+'" is not a registered '+q+".");return X}}var d4=new CT;class _T{constructor(){this._init=void 0}notify(J,Z,q,X){if(Z==="beforeInit")this._init=this._createDescriptors(J,!0),this._notify(this._init,J,"install");if(this._init===void 0)return;let Y=X?this._descriptors(J).filter(X):this._descriptors(J),K=this._notify(Y,J,Z,q);if(Z==="afterDestroy")this._notify(Y,J,"stop"),this._notify(this._init,J,"uninstall"),this._init=void 0;return K}_notify(J,Z,q,X){X=X||{};for(let Y of J){let K=Y.plugin,H=K[q],M=[Z,X,Y.options];if(z1(H,M,K)===!1&&X.cancelable)return!1}return!0}invalidate(){if(!e0(this._cache))this._oldCache=this._cache,this._cache=void 0}_descriptors(J){if(this._cache)return this._cache;let Z=this._cache=this._createDescriptors(J);return this._notifyStateChanges(J),Z}_createDescriptors(J,Z){let q=J&&J.config,X=d0(q.options&&q.options.plugins,{}),Y=rA(q);return X===!1&&!Z?[]:nA(J,Y,X,Z)}_notifyStateChanges(J){let Z=this._oldCache||[],q=this._cache,X=(Y,K)=>Y.filter((H)=>!K.some((M)=>H.plugin.id===M.plugin.id));this._notify(X(Z,q),J,"stop"),this._notify(X(q,Z),J,"start")}}function rA(J){let Z={},q=[],X=Object.keys(d4.plugins.items);for(let K=0;K<X.length;K++)q.push(d4.getPlugin(X[K]));let Y=J.plugins||[];for(let K=0;K<Y.length;K++){let H=Y[K];if(q.indexOf(H)===-1)q.push(H),Z[H.id]=!0}return{plugins:q,localIds:Z}}function sA(J,Z){if(!Z&&J===!1)return null;if(J===!0)return{};return J}function nA(J,{plugins:Z,localIds:q},X,Y){let K=[],H=J.getContext();for(let M of Z){let W=M.id,w=sA(X[W],Y);if(w===null)continue;K.push({plugin:M,options:oA(J.config,{plugin:M,local:q[W]},w,H)})}return K}function oA(J,{plugin:Z,local:q},X,Y){let K=J.pluginScopeKeys(Z),H=J.getOptionScopes(X,K);if(q&&Z.defaults)H.push(Z.defaults);return J.createResolver(H,Y,[""],{scriptable:!1,indexable:!1,allKeys:!0})}function oU(J,Z){let q=y1.datasets[J]||{};return((Z.datasets||{})[J]||{}).indexAxis||Z.indexAxis||q.indexAxis||"x"}function iA(J,Z){let q=J;if(J==="_index_")q=Z;else if(J==="_value_")q=Z==="x"?"y":"x";return q}function aA(J,Z){return J===Z?"_index_":"_value_"}function yz(J){if(J==="x"||J==="y"||J==="r")return J}function tA(J){if(J==="top"||J==="bottom")return"x";if(J==="left"||J==="right")return"y"}function iU(J,...Z){if(yz(J))return J;for(let q of Z){let X=q.axis||tA(q.position)||J.length>1&&yz(J[0].toLowerCase());if(X)return X}throw Error(`Cannot determine type of '${J}' axis. Please provide 'axis' or 'position' option.`)}function fz(J,Z,q){if(q[Z+"AxisID"]===J)return{axis:Z}}function eA(J,Z){if(Z.data&&Z.data.datasets){let q=Z.data.datasets.filter((X)=>X.xAxisID===J||X.yAxisID===J);if(q.length)return fz(J,"x",q[0])||fz(J,"y",q[0])}return{}}function $j(J,Z){let q=b8[J.type]||{scales:{}},X=Z.scales||{},Y=oU(J.type,Z),K=Object.create(null);return Object.keys(X).forEach((H)=>{let M=X[H];if(!o0(M))return console.error(`Invalid scale configuration for scale: ${H}`);if(M._proxy)return console.warn(`Ignoring resolver passed as options for scale: ${H}`);let W=iU(H,M,eA(H,J),y1.scales[M.type]),w=aA(W,Y),z=q.scales||{};K[H]=NQ(Object.create(null),[{axis:W},M,z[W],z[w]])}),J.data.datasets.forEach((H)=>{let M=H.type||J.type,W=H.indexAxis||oU(M,Z),z=(b8[M]||{}).scales||{};Object.keys(z).forEach((T)=>{let P=iA(T,W),I=H[P+"AxisID"]||P;K[I]=K[I]||Object.create(null),NQ(K[I],[{axis:P},X[I],z[T]])})}),Object.keys(K).forEach((H)=>{let M=K[H];NQ(M,[y1.scales[M.type],y1.scale])}),K}function IT(J){let Z=J.options||(J.options={});Z.plugins=d0(Z.plugins,{}),Z.scales=$j(J,Z)}function VT(J){return J=J||{},J.datasets=J.datasets||[],J.labels=J.labels||[],J}function Qj(J){return J=J||{},J.data=VT(J.data),IT(J),J}var gz=new Map,OT=new Set;function lq(J,Z){let q=gz.get(J);if(!q)q=Z(),gz.set(J,q),OT.add(q);return q}var PJ=(J,Z,q)=>{let X=y7(Z,q);if(X!==void 0)J.add(X)};class ET{constructor(J){this._config=Qj(J),this._scopeCache=new Map,this._resolverCache=new Map}get platform(){return this._config.platform}get type(){return this._config.type}set type(J){this._config.type=J}get data(){return this._config.data}set data(J){this._config.data=VT(J)}get options(){return this._config.options}set options(J){this._config.options=J}get plugins(){return this._config.plugins}update(){let J=this._config;this.clearCache(),IT(J)}clearCache(){this._scopeCache.clear(),this._resolverCache.clear()}datasetScopeKeys(J){return lq(J,()=>[[`datasets.${J}`,""]])}datasetAnimationScopeKeys(J,Z){return lq(`${J}.transition.${Z}`,()=>[[`datasets.${J}.transitions.${Z}`,`transitions.${Z}`],[`datasets.${J}`,""]])}datasetElementScopeKeys(J,Z){return lq(`${J}-${Z}`,()=>[[`datasets.${J}.elements.${Z}`,`datasets.${J}`,`elements.${Z}`,""]])}pluginScopeKeys(J){let Z=J.id,q=this.type;return lq(`${q}-plugin-${Z}`,()=>[[`plugins.${Z}`,...J.additionalOptionScopes||[]]])}_cachedScopes(J,Z){let q=this._scopeCache,X=q.get(J);if(!X||Z)X=new Map,q.set(J,X);return X}getOptionScopes(J,Z,q){let{options:X,type:Y}=this,K=this._cachedScopes(J,q),H=K.get(Z);if(H)return H;let M=new Set;Z.forEach((w)=>{if(J)M.add(J),w.forEach((z)=>PJ(M,J,z));w.forEach((z)=>PJ(M,X,z)),w.forEach((z)=>PJ(M,b8[Y]||{},z)),w.forEach((z)=>PJ(M,y1,z)),w.forEach((z)=>PJ(M,dq,z))});let W=Array.from(M);if(W.length===0)W.push(Object.create(null));if(OT.has(Z))K.set(Z,W);return W}chartOptionScopes(){let{options:J,type:Z}=this;return[J,b8[Z]||{},y1.datasets[Z]||{},{type:Z},y1,dq]}resolveNamedOptions(J,Z,q,X=[""]){let Y={$shared:!0},{resolver:K,subPrefixes:H}=hz(this._resolverCache,J,X),M=K;if(Zj(K,Z)){Y.$shared=!1,q=I$(q)?q():q;let W=this.createResolver(J,q,H);M=b7(K,q,W)}for(let W of Z)Y[W]=M[W];return Y}createResolver(J,Z,q=[""],X){let{resolver:Y}=hz(this._resolverCache,J,q);return o0(Z)?b7(Y,Z,void 0,X):Y}}function hz(J,Z,q){let X=J.get(Z);if(!X)X=new Map,J.set(Z,X);let Y=q.join(),K=X.get(Y);if(!K)K={resolver:xq(Z,q),subPrefixes:q.filter((M)=>!M.toLowerCase().includes("hover"))},X.set(Y,K);return K}var Jj=(J)=>o0(J)&&Object.getOwnPropertyNames(J).some((Z)=>I$(J[Z]));function Zj(J,Z){let{isScriptable:q,isIndexable:X}=IU(J);for(let Y of Z){let K=q(Y),H=X(Y),M=(H||K)&&J[Y];if(K&&(I$(M)||Jj(M))||H&&_1(M))return!0}return!1}var Gj="4.6.2",qj=["top","bottom","left","right","chartArea"];function xz(J,Z){return J==="top"||J==="bottom"||qj.indexOf(J)===-1&&Z==="x"}function uz(J,Z){return function(q,X){return q[J]===X[J]?q[Z]-X[Z]:q[J]-X[J]}}function mz(J){let Z=J.chart,q=Z.options.animation;Z.notifyPlugins("afterRender"),z1(q&&q.onComplete,[J],Z)}function Xj(J){let Z=J.chart,q=Z.options.animation;z1(q&&q.onProgress,[J],Z)}function AT(J){if(uq()&&typeof J==="string")J=document.getElementById(J);else if(J&&J.length)J=J[0];if(J&&J.canvas)J=J.canvas;return J}var oq={},dz=(J)=>{let Z=AT(J);return Object.values(oq).filter((q)=>q.canvas===Z).pop()};function Nj(J,Z,q){let X=Object.keys(J);for(let Y of X){let K=+Y;if(K>=Z){let H=J[Y];if(delete J[Y],q>0||K>Z)J[K+q]=H}}}function Yj(J,Z,q,X){if(!q||J.type==="mouseout")return null;if(X)return Z;return J}class u7{static defaults=y1;static instances=oq;static overrides=b8;static registry=d4;static version=Gj;static getChart=dz;static register(...J){d4.add(...J),pz()}static unregister(...J){d4.remove(...J),pz()}constructor(J,Z){let q=this.config=new ET(Z),X=AT(J),Y=dz(X);if(Y)throw Error("Canvas is already in use. Chart with ID '"+Y.id+"' must be destroyed before the canvas with ID '"+Y.canvas.id+"' can be reused.");let K=q.createResolver(q.chartOptionScopes(),this.getContext());this.platform=new(q.platform||jA(X)),this.platform.updateConfig(q);let H=this.platform.acquireContext(X,K.aspectRatio),M=H&&H.canvas,W=M&&M.height,w=M&&M.width;if(this.id=gR(),this.ctx=H,this.canvas=M,this.width=w,this.height=W,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 _T,this.$proxies={},this._hiddenIndices={},this.attached=!1,this._animationsDisabled=void 0,this.$context=void 0,this._doResize=qz((z)=>this.update(z),K.resizeDelay||0),this._dataChanges=[],oq[this.id]=this,!H||!M){console.error("Failed to create chart: can't acquire context from the given item");return}if(j$.listen(this,"complete",mz),j$.listen(this,"progress",Xj),this._initialize(),this.attached)this.update()}get aspectRatio(){let{options:{aspectRatio:J,maintainAspectRatio:Z},width:q,height:X,_aspectRatio:Y}=this;if(!e0(J))return J;if(Z&&Y)return Y;return X?q/X:null}get data(){return this.config.data}set data(J){this.config.data=J}get options(){return this._options}set options(J){this.config.options=J}get registry(){return d4}_initialize(){if(this.notifyPlugins("beforeInit"),this.options.responsive)this.resize();else EU(this,this.options.devicePixelRatio);return this.bindEvents(),this.notifyPlugins("afterInit"),this}clear(){return LU(this.canvas,this.ctx),this}stop(){return j$.stop(this),this}resize(J,Z){if(!j$.running(this))this._resize(J,Z);else this._resizeBeforeDraw={width:J,height:Z}}_resize(J,Z){let q=this.options,X=this.canvas,Y=q.maintainAspectRatio&&this.aspectRatio,K=this.platform.getMaximumSize(X,J,Z,Y),H=q.devicePixelRatio||this.platform.getDevicePixelRatio(),M=this.width?"resize":"attach";if(this.width=K.width,this.height=K.height,this._aspectRatio=this.aspectRatio,!EU(this,H,!0))return;if(this.notifyPlugins("resize",{size:K}),z1(q.onResize,[this,K],this),this.attached){if(M==="attach"||!this.chartArea)this.update(M);else if(this._doResize(M))this.render()}}ensureScalesHaveIDs(){let Z=this.options.scales||{};U1(Z,(q,X)=>{q.id=X})}buildOrUpdateScales(){let J=this.options,Z=J.scales,q=this.scales,X=Object.keys(q).reduce((K,H)=>{return K[H]=!1,K},{}),Y=[];if(Z)Y=Y.concat(Object.keys(Z).map((K)=>{let H=Z[K],M=iU(K,H),W=M==="r",w=M==="x";return{options:H,dposition:W?"chartArea":w?"bottom":"left",dtype:W?"radialLinear":w?"category":"linear"}}));U1(Y,(K)=>{let H=K.options,M=H.id,W=iU(M,H),w=d0(H.type,K.dtype);if(H.position===void 0||xz(H.position,W)!==xz(K.dposition))H.position=K.dposition;X[M]=!0;let z=null;if(M in q&&q[M].type===w)z=q[M];else z=new(d4.getScale(w))({id:M,type:w,ctx:this.ctx,chart:this}),q[z.id]=z;z.init(H,J)}),U1(X,(K,H)=>{if(!K)delete q[H]}),U1(q,(K)=>{d5.configure(this,K,K.options),d5.addBox(this,K)})}_updateMetasets(){let J=this._metasets,Z=this.data.datasets.length,q=J.length;if(J.sort((X,Y)=>X.index-Y.index),q>Z){for(let X=Z;X<q;++X)this._destroyDatasetMeta(X);J.splice(Z,q-Z)}this._sortedMetasets=J.slice(0).sort(uz("order","index"))}_removeUnreferencedMetasets(){let{_metasets:J,data:{datasets:Z}}=this;if(J.length>Z.length)delete this._stacks;J.forEach((q,X)=>{if(Z.filter((Y)=>Y===q._dataset).length===0)this._destroyDatasetMeta(X)})}buildOrUpdateControllers(){let J=[],Z=this.data.datasets,q,X;this._removeUnreferencedMetasets();for(q=0,X=Z.length;q<X;q++){let Y=Z[q],K=this.getDatasetMeta(q),H=Y.type||this.config.type;if(K.type&&K.type!==H)this._destroyDatasetMeta(q),K=this.getDatasetMeta(q);if(K.type=H,K.indexAxis=Y.indexAxis||oU(H,this.options),K.order=Y.order||0,K.index=q,K.label=""+Y.label,K.visible=this.isDatasetVisible(q),K.controller)K.controller.updateIndex(q),K.controller.linkScales();else{let M=d4.getController(H),{datasetElementType:W,dataElementType:w}=y1.datasets[H];Object.assign(M,{dataElementType:d4.getElement(w),datasetElementType:W&&d4.getElement(W)}),K.controller=new M(this,q),J.push(K.controller)}}return this._updateMetasets(),J}_resetElements(){U1(this.data.datasets,(J,Z)=>{this.getDatasetMeta(Z).controller.reset()},this)}reset(){this._resetElements(),this.notifyPlugins("reset")}update(J){let Z=this.config;Z.update();let q=this._options=Z.createResolver(Z.chartOptionScopes(),this.getContext()),X=this._animationsDisabled=!q.animation;if(this._updateScales(),this._checkEventBindings(),this._updateHiddenIndices(),this._plugins.invalidate(),this.notifyPlugins("beforeUpdate",{mode:J,cancelable:!0})===!1)return;let Y=this.buildOrUpdateControllers();this.notifyPlugins("beforeElementsUpdate");let K=0;for(let W=0,w=this.data.datasets.length;W<w;W++){let{controller:z}=this.getDatasetMeta(W),T=!X&&Y.indexOf(z)===-1;z.buildOrUpdateElements(T),K=Math.max(+z.getMaxOverflow(),K)}if(K=this._minPadding=q.layout.autoPadding?K:0,this._updateLayout(K),!X)U1(Y,(W)=>{W.reset()});this._updateDatasets(J),this.notifyPlugins("afterUpdate",{mode:J}),this._layers.sort(uz("z","_idx"));let{_active:H,_lastEvent:M}=this;if(M)this._eventHandler(M,!0);else if(H.length)this._updateHoverStyles(H,H,!0);this.render()}_updateScales(){U1(this.scales,(J)=>{d5.removeBox(this,J)}),this.ensureScalesHaveIDs(),this.buildOrUpdateScales()}_checkEventBindings(){let J=this.options,Z=new Set(Object.keys(this._listeners)),q=new Set(J.events);if(!wU(Z,q)||!!this._responsiveListeners!==J.responsive)this.unbindEvents(),this.bindEvents()}_updateHiddenIndices(){let{_hiddenIndices:J}=this,Z=this._getUniformDataChanges()||[];for(let{method:q,start:X,count:Y}of Z){let K=q==="_removeElements"?-Y:Y;Nj(J,X,K)}}_getUniformDataChanges(){let J=this._dataChanges;if(!J||!J.length)return;this._dataChanges=[];let Z=this.data.datasets.length,q=(Y)=>new Set(J.filter((K)=>K[0]===Y).map((K,H)=>H+","+K.splice(1).join(","))),X=q(0);for(let Y=1;Y<Z;Y++)if(!wU(X,q(Y)))return;return Array.from(X).map((Y)=>Y.split(",")).map((Y)=>({method:Y[1],start:+Y[2],count:+Y[3]}))}_updateLayout(J){if(this.notifyPlugins("beforeLayout",{cancelable:!0})===!1)return;d5.update(this,this.width,this.height,J);let Z=this.chartArea,q=Z.width<=0||Z.height<=0;this._layers=[],U1(this.boxes,(X)=>{if(q&&X.position==="chartArea")return;if(X.configure)X.configure();this._layers.push(...X._layers())},this),this._layers.forEach((X,Y)=>{X._idx=Y}),this.notifyPlugins("afterLayout")}_updateDatasets(J){if(this.notifyPlugins("beforeDatasetsUpdate",{mode:J,cancelable:!0})===!1)return;for(let Z=0,q=this.data.datasets.length;Z<q;++Z)this.getDatasetMeta(Z).controller.configure();for(let Z=0,q=this.data.datasets.length;Z<q;++Z)this._updateDataset(Z,I$(J)?J({datasetIndex:Z}):J);this.notifyPlugins("afterDatasetsUpdate",{mode:J})}_updateDataset(J,Z){let q=this.getDatasetMeta(J),X={meta:q,index:J,mode:Z,cancelable:!0};if(this.notifyPlugins("beforeDatasetUpdate",X)===!1)return;q.controller._update(Z),X.cancelable=!1,this.notifyPlugins("afterDatasetUpdate",X)}render(){if(this.notifyPlugins("beforeRender",{cancelable:!0})===!1)return;if(j$.has(this)){if(this.attached&&!j$.running(this))j$.start(this)}else this.draw(),mz({chart:this})}draw(){let J;if(this._resizeBeforeDraw){let{width:q,height:X}=this._resizeBeforeDraw;this._resizeBeforeDraw=null,this._resize(q,X)}if(this.clear(),this.width<=0||this.height<=0)return;if(this.notifyPlugins("beforeDraw",{cancelable:!0})===!1)return;let Z=this._layers;for(J=0;J<Z.length&&Z[J].z<=0;++J)Z[J].draw(this.chartArea);this._drawDatasets();for(;J<Z.length;++J)Z[J].draw(this.chartArea);this.notifyPlugins("afterDraw")}_getSortedDatasetMetas(J){let Z=this._sortedMetasets,q=[],X,Y;for(X=0,Y=Z.length;X<Y;++X){let K=Z[X];if(!J||K.visible)q.push(K)}return q}getSortedVisibleDatasetMetas(){return this._getSortedDatasetMetas(!0)}_drawDatasets(){if(this.notifyPlugins("beforeDatasetsDraw",{cancelable:!0})===!1)return;let J=this.getSortedVisibleDatasetMetas();for(let Z=J.length-1;Z>=0;--Z)this._drawDataset(J[Z]);this.notifyPlugins("afterDatasetsDraw")}_drawDataset(J){let Z=this.ctx,q={meta:J,index:J.index,cancelable:!0},X=gU(this,J);if(this.notifyPlugins("beforeDatasetDraw",q)===!1)return;if(X)BJ(Z,X);if(J.controller.draw(),X)HJ(Z);q.cancelable=!1,this.notifyPlugins("afterDatasetDraw",q)}isPointInArea(J){return x4(J,this.chartArea,this._minPadding)}getElementsAtEventForMode(J,Z,q,X){let Y=KA.modes[Z];if(typeof Y==="function")return Y(this,J,q,X);return[]}getDatasetMeta(J){let Z=this.data.datasets[J],q=this._metasets,X=q.filter((Y)=>Y&&Y._dataset===Z).pop();if(!X)X={type:null,data:[],dataset:null,controller:null,hidden:null,xAxisID:null,yAxisID:null,order:Z&&Z.order||0,index:J,_dataset:Z,_parsed:[],_sorted:!1},q.push(X);return X}getContext(){return this.$context||(this.$context=A$(null,{chart:this,type:"chart"}))}getVisibleDatasetCount(){return this.getSortedVisibleDatasetMetas().length}isDatasetVisible(J){let Z=this.data.datasets[J];if(!Z)return!1;let q=this.getDatasetMeta(J);return typeof q.hidden==="boolean"?!q.hidden:!Z.hidden}setDatasetVisibility(J,Z){let q=this.getDatasetMeta(J);q.hidden=!Z}toggleDataVisibility(J){this._hiddenIndices[J]=!this._hiddenIndices[J]}getDataVisibility(J){return!this._hiddenIndices[J]}_updateVisibility(J,Z,q){let X=q?"show":"hide",Y=this.getDatasetMeta(J),K=Y.controller._resolveAnimations(void 0,X);if(YQ(Z))Y.data[Z].hidden=!q,this.update();else this.setDatasetVisibility(J,q),K.update(Y,{visible:q}),this.update((H)=>H.datasetIndex===J?X:void 0)}hide(J,Z){this._updateVisibility(J,Z,!1)}show(J,Z){this._updateVisibility(J,Z,!0)}_destroyDatasetMeta(J){let Z=this._metasets[J];if(Z&&Z.controller)Z.controller._destroy();delete this._metasets[J]}_stop(){let J,Z;this.stop(),j$.remove(this);for(J=0,Z=this.data.datasets.length;J<Z;++J)this._destroyDatasetMeta(J)}destroy(){this.notifyPlugins("beforeDestroy");let{canvas:J,ctx:Z}=this;if(this._stop(),this.config.clearCache(),J)this.unbindEvents(),LU(J,Z),this.platform.releaseContext(Z),this.canvas=null,this.ctx=null;delete oq[this.id],this.notifyPlugins("afterDestroy")}toBase64Image(...J){return this.canvas.toDataURL(...J)}bindEvents(){if(this.bindUserEvents(),this.options.responsive)this.bindResponsiveEvents();else this.attached=!0}bindUserEvents(){let J=this._listeners,Z=this.platform,q=(Y,K)=>{Z.addEventListener(this,Y,K),J[Y]=K},X=(Y,K,H)=>{Y.offsetX=K,Y.offsetY=H,this._eventHandler(Y)};U1(this.options.events,(Y)=>q(Y,X))}bindResponsiveEvents(){if(!this._responsiveListeners)this._responsiveListeners={};let J=this._responsiveListeners,Z=this.platform,q=(M,W)=>{Z.addEventListener(this,M,W),J[M]=W},X=(M,W)=>{if(J[M])Z.removeEventListener(this,M,W),delete J[M]},Y=(M,W)=>{if(this.canvas)this.resize(M,W)},K,H=()=>{X("attach",H),this.attached=!0,this.resize(),q("resize",Y),q("detach",K)};if(K=()=>{this.attached=!1,X("resize",Y),this._stop(),this._resize(0,0),q("attach",H)},Z.isAttached(this.canvas))H();else K()}unbindEvents(){U1(this._listeners,(J,Z)=>{this.platform.removeEventListener(this,Z,J)}),this._listeners={},U1(this._responsiveListeners,(J,Z)=>{this.platform.removeEventListener(this,Z,J)}),this._responsiveListeners=void 0}updateHoverStyle(J,Z,q){let X=q?"set":"remove",Y,K,H,M;if(Z==="dataset")Y=this.getDatasetMeta(J[0].datasetIndex),Y.controller["_"+X+"DatasetHoverStyle"]();for(H=0,M=J.length;H<M;++H){K=J[H];let W=K&&this.getDatasetMeta(K.datasetIndex).controller;if(W)W[X+"HoverStyle"](K.element,K.datasetIndex,K.index)}}getActiveElements(){return this._active||[]}setActiveElements(J){let Z=this._active||[],q=J.map(({datasetIndex:Y,index:K})=>{let H=this.getDatasetMeta(Y);if(!H)throw Error("No dataset found at index "+Y);return{datasetIndex:Y,element:H.data[K],index:K}}).filter(({element:Y})=>Y);if(!KJ(q,Z))this._active=q,this._lastEvent=null,this._updateHoverStyles(q,Z)}notifyPlugins(J,Z,q){return this._plugins.notify(this,J,Z,q)}isPluginEnabled(J){return this._plugins._cache.filter((Z)=>Z.plugin.id===J).length===1}_updateHoverStyles(J,Z,q){let X=this.options.hover,Y=(M,W)=>M.filter((w)=>!W.some((z)=>w.datasetIndex===z.datasetIndex&&w.index===z.index)),K=Y(Z,J),H=q?J:Y(J,Z);if(K.length)this.updateHoverStyle(K,X.mode,!1);if(H.length&&X.mode)this.updateHoverStyle(H,X.mode,!0)}_eventHandler(J,Z){let q={event:J,replay:Z,cancelable:!0,inChartArea:this.isPointInArea(J)},X=(K)=>(K.options.events||this.options.events).includes(J.native.type);if(this.notifyPlugins("beforeEvent",q,X)===!1)return;let Y=this._handleEvent(J,Z,q.inChartArea);if(q.cancelable=!1,this.notifyPlugins("afterEvent",q,X),Y||q.changed)this.render();return this}_handleEvent(J,Z,q){let{_active:X=[],options:Y}=this,K=Z,H=this._getActiveElements(J,X,q,K),M=uR(J),W=Yj(J,this._lastEvent,q,M);if(q){if(this._lastEvent=null,z1(Y.onHover,[J,H,this],this),M)z1(Y.onClick,[J,H,this],this)}let w=!KJ(H,X);if(w||Z)this._active=H,this._updateHoverStyles(H,X,Z);return this._lastEvent=W,w}_getActiveElements(J,Z,q,X){if(J.type==="mouseout")return[];if(!q)return Z;let Y=this.options.hover;return this.getElementsAtEventForMode(J,Y.mode,Y,X)}}function pz(){return U1(u7.instances,(J)=>J._plugins.invalidate())}function jT(J,Z,q=Z){J.lineCap=d0(q.borderCapStyle,Z.borderCapStyle),J.setLineDash(d0(q.borderDash,Z.borderDash)),J.lineDashOffset=d0(q.borderDashOffset,Z.borderDashOffset),J.lineJoin=d0(q.borderJoinStyle,Z.borderJoinStyle),J.lineWidth=d0(q.borderWidth,Z.borderWidth),J.strokeStyle=d0(q.borderColor,Z.borderColor)}function Uj(J,Z,q){J.lineTo(q.x,q.y)}function Kj(J){if(J.stepped)return rR;if(J.tension||J.cubicInterpolationMode==="monotone")return sR;return Uj}function ST(J,Z,q={}){let X=J.length,{start:Y=0,end:K=X-1}=q,{start:H,end:M}=Z,W=Math.max(Y,H),w=Math.min(K,M),z=Y<H&&K<H||Y>M&&K>M;return{count:X,start:W,loop:Z.loop,ilen:w<W&&!z?X+w-W:w-W}}function Bj(J,Z,q,X){let{points:Y,options:K}=Z,{count:H,start:M,loop:W,ilen:w}=ST(Y,q,X),z=Kj(K),{move:T=!0,reverse:P}=X||{},I,E,O;for(I=0;I<=w;++I){if(E=Y[(M+(P?w-I:I))%H],E.skip)continue;else if(T)J.moveTo(E.x,E.y),T=!1;else z(J,O,E,P,K.stepped);O=E}if(W)E=Y[(M+(P?w:0))%H],z(J,O,E,P,K.stepped);return!!W}function Hj(J,Z,q,X){let Y=Z.points,{count:K,start:H,ilen:M}=ST(Y,q,X),{move:W=!0,reverse:w}=X||{},z=0,T=0,P,I,E,O,V,D,h=(s)=>(H+(w?M-s:s))%K,p=()=>{if(O!==V)J.lineTo(z,V),J.lineTo(z,O),J.lineTo(z,D)};if(W)I=Y[h(0)],J.moveTo(I.x,I.y);for(P=0;P<=M;++P){if(I=Y[h(P)],I.skip)continue;let{x:s,y:n}=I,Z0=s|0;if(Z0===E){if(n<O)O=n;else if(n>V)V=n;z=(T*z+s)/++T}else p(),J.lineTo(s,n),E=Z0,T=0,O=V=n;D=n}p()}function aU(J){let Z=J.options,q=Z.borderDash&&Z.borderDash.length;return!J._decimated&&!J._loop&&!Z.tension&&Z.cubicInterpolationMode!=="monotone"&&!Z.stepped&&!q?Hj:Bj}function Mj(J){if(J.stepped)return Uz;if(J.tension||J.cubicInterpolationMode==="monotone")return Kz;return j8}function Wj(J,Z,q,X){let Y=Z._path;if(!Y){if(Y=Z._path=new Path2D,Z.path(Y,q,X))Y.closePath()}jT(J,Z.options),J.stroke(Y)}function Fj(J,Z,q,X){let{segments:Y,options:K}=Z,H=aU(Z);for(let M of Y){if(jT(J,K,M.style),J.beginPath(),H(J,Z,M,{start:q,end:q+X-1}))J.closePath();J.stroke()}}var wj=typeof Path2D==="function";function Rj(J,Z,q,X){if(wj&&!Z.options.segment)Wj(J,Z,q,X);else Fj(J,Z,q,X)}class HQ extends D${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:(J)=>J!=="borderDash"&&J!=="fill"};constructor(J){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,J)Object.assign(this,J)}updateControlPoints(J,Z){let q=this.options;if((q.tension||q.cubicInterpolationMode==="monotone")&&!q.stepped&&!this._pointsUpdated){let X=q.spanGaps?this._loop:this._fullLoop;Jz(this._points,q,J,X,Z),this._pointsUpdated=!0}}set points(J){this._points=J,delete this._segments,delete this._path,this._pointsUpdated=!1}get points(){return this._points}get segments(){return this._segments||(this._segments=Fz(this,this.options.segment))}first(){let J=this.segments,Z=this.points;return J.length&&Z[J[0].start]}last(){let J=this.segments,Z=this.points,q=J.length;return q&&Z[J[q-1].end]}interpolate(J,Z){let q=this.options,X=J[Z],Y=this.points,K=fU(this,{property:Z,start:X,end:X});if(!K.length)return;let H=[],M=Mj(q),W,w;for(W=0,w=K.length;W<w;++W){let{start:z,end:T}=K[W],P=Y[z],I=Y[T];if(P===I){H.push(P);continue}let E=Math.abs((X-P[Z])/(I[Z]-P[Z])),O=M(P,I,E,q.stepped);O[Z]=J[Z],H.push(O)}return H.length===1?H[0]:H}pathSegment(J,Z,q){return aU(this)(J,this,Z,q)}path(J,Z,q){let X=this.segments,Y=aU(this),K=this._loop;Z=Z||0,q=q||this.points.length-Z;for(let H of X)K&=Y(J,this,H,{start:Z,end:Z+q-1});return!!K}draw(J,Z,q,X){let Y=this.options||{};if((this.points||[]).length&&Y.borderWidth)J.save(),Rj(J,this,q,X),J.restore();if(this.animated)this._pointsUpdated=!1,this._path=void 0}}function cz(J,Z,q,X){let Y=J.options,{[q]:K}=J.getProps([q],X);return Math.abs(Z-K)<Y.radius+Y.hitRadius}class YK extends D${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(J){super();if(this.options=void 0,this.parsed=void 0,this.skip=void 0,this.stop=void 0,J)Object.assign(this,J)}inRange(J,Z,q){let X=this.options,{x:Y,y:K}=this.getProps(["x","y"],q);return Math.pow(J-Y,2)+Math.pow(Z-K,2)<Math.pow(X.hitRadius+X.radius,2)}inXRange(J,Z){return cz(this,J,"x",Z)}inYRange(J,Z){return cz(this,J,"y",Z)}getCenterPoint(J){let{x:Z,y:q}=this.getProps(["x","y"],J);return{x:Z,y:q}}size(J){J=J||this.options||{};let Z=J.radius||0;Z=Math.max(Z,Z&&J.hoverRadius||0);let q=Z&&J.borderWidth||0;return(Z+q)*2}draw(J,Z){let q=this.options;if(this.skip||q.radius<0.1||!x4(this,Z,this.size(q)/2))return;J.strokeStyle=q.borderColor,J.lineWidth=q.borderWidth,J.fillStyle=q.backgroundColor,gq(J,q,this.x,this.y)}getRange(){let J=this.options||{};return J.radius+J.hitRadius}}function DT(J,Z){let{x:q,y:X,base:Y,width:K,height:H}=J.getProps(["x","y","base","width","height"],Z),M,W,w,z,T;if(J.horizontal)T=H/2,M=Math.min(q,Y),W=Math.max(q,Y),w=X-T,z=X+T;else T=K/2,M=q-T,W=q+T,w=Math.min(X,Y),z=Math.max(X,Y);return{left:M,top:w,right:W,bottom:z}}function f8(J,Z,q,X){return J?0:a6(Z,q,X)}function zj(J,Z,q){let X=J.options.borderWidth,Y=J.borderSkipped,K=vU(X);return{t:f8(Y.top,K.top,0,q),r:f8(Y.right,K.right,0,Z),b:f8(Y.bottom,K.bottom,0,q),l:f8(Y.left,K.left,0,Z)}}function Tj(J,Z,q){let{enableBorderRadius:X}=J.getProps(["enableBorderRadius"]),Y=J.options.borderRadius,K=y8(Y),H=Math.min(Z,q),M=J.borderSkipped,W=X||o0(Y);return{topLeft:f8(!W||M.top||M.left,K.topLeft,0,H),topRight:f8(!W||M.top||M.right,K.topRight,0,H),bottomLeft:f8(!W||M.bottom||M.left,K.bottomLeft,0,H),bottomRight:f8(!W||M.bottom||M.right,K.bottomRight,0,H)}}function Lj(J){let Z=DT(J),q=Z.right-Z.left,X=Z.bottom-Z.top,Y=zj(J,q/2,X/2),K=Tj(J,q/2,X/2);return{outer:{x:Z.left,y:Z.top,w:q,h:X,radius:K},inner:{x:Z.left+Y.l,y:Z.top+Y.t,w:q-Y.l-Y.r,h:X-Y.t-Y.b,radius:{topLeft:Math.max(0,K.topLeft-Math.max(Y.t,Y.l)),topRight:Math.max(0,K.topRight-Math.max(Y.t,Y.r)),bottomLeft:Math.max(0,K.bottomLeft-Math.max(Y.b,Y.l)),bottomRight:Math.max(0,K.bottomRight-Math.max(Y.b,Y.r))}}}}function lU(J,Z,q,X){let Y=Z===null,K=q===null,M=J&&!(Y&&K)&&DT(J,X);return M&&(Y||E$(Z,M.left,M.right))&&(K||E$(q,M.top,M.bottom))}function Pj(J){return J.topLeft||J.topRight||J.bottomLeft||J.bottomRight}function Cj(J,Z){J.rect(Z.x,Z.y,Z.w,Z.h)}function rU(J,Z,q={}){let X=J.x!==q.x?-Z:0,Y=J.y!==q.y?-Z:0,K=(J.x+J.w!==q.x+q.w?Z:0)-X,H=(J.y+J.h!==q.y+q.h?Z:0)-Y;return{x:J.x+X,y:J.y+Y,w:J.w+K,h:J.h+H,radius:J.radius}}class UK extends D${static id="bar";static defaults={borderSkipped:"start",borderWidth:0,borderRadius:0,inflateAmount:"auto",pointStyle:void 0};static defaultRoutes={backgroundColor:"backgroundColor",borderColor:"borderColor"};constructor(J){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,J)Object.assign(this,J)}draw(J){let{inflateAmount:Z,options:{borderColor:q,backgroundColor:X}}=this,{inner:Y,outer:K}=Lj(this),H=Pj(K.radius)?BQ:Cj;if(J.save(),K.w!==Y.w||K.h!==Y.h)J.beginPath(),H(J,rU(K,Z,Y)),J.clip(),H(J,rU(Y,-Z,K)),J.fillStyle=q,J.fill("evenodd");J.beginPath(),H(J,rU(Y,Z)),J.fillStyle=X,J.fill(),J.restore()}inRange(J,Z,q){return lU(this,J,Z,q)}inXRange(J,Z){return lU(this,J,null,Z)}inYRange(J,Z){return lU(this,null,J,Z)}getCenterPoint(J){let{x:Z,y:q,base:X,horizontal:Y}=this.getProps(["x","y","base","horizontal"],J);return{x:Y?(Z+X)/2:Z,y:Y?q:(q+X)/2}}getRange(J){return J==="x"?this.width/2:this.height/2}}function _j(J,Z,q){let{segments:X,points:Y}=J,K=Z.points,H=[];for(let M of X){let{start:W,end:w}=M;w=tq(W,w,Y);let z=tU(q,Y[W],Y[w],M.loop);if(!Z.segments){H.push({source:M,target:z,start:Y[W],end:Y[w]});continue}let T=fU(Z,z);for(let P of T){let I=tU(q,K[P.start],K[P.end],P.loop),E=yU(M,Y,I);for(let O of E)H.push({source:O,target:P,start:{[q]:lz(z,I,"start",Math.max)},end:{[q]:lz(z,I,"end",Math.min)}})}}return H}function tU(J,Z,q,X){if(X)return;let Y=Z[J],K=q[J];if(J==="angle")Y=n6(Y),K=n6(K);return{property:J,start:Y,end:K}}function Ij(J,Z){let{x:q=null,y:X=null}=J||{},Y=Z.points,K=[];return Z.segments.forEach(({start:H,end:M})=>{M=tq(H,M,Y);let W=Y[H],w=Y[M];if(X!==null)K.push({x:W.x,y:X}),K.push({x:w.x,y:X});else if(q!==null)K.push({x:q,y:W.y}),K.push({x:q,y:w.y})}),K}function tq(J,Z,q){for(;Z>J;Z--){let X=q[Z];if(!isNaN(X.x)&&!isNaN(X.y))break}return Z}function lz(J,Z,q,X){if(J&&Z)return X(J[q],Z[q]);return J?J[q]:Z?Z[q]:0}function vT(J,Z){let q=[],X=!1;if(_1(J))X=!0,q=J;else q=Ij(J,Z);return q.length?new HQ({points:q,options:{tension:0},_loop:X,_fullLoop:X}):null}function rz(J){return J&&J.fill!==!1}function Vj(J,Z,q){let Y=J[Z].fill,K=[Z],H;if(!q)return Y;while(Y!==!1&&K.indexOf(Y)===-1){if(!b1(Y))return Y;if(H=J[Y],!H)return!1;if(H.visible)return Y;K.push(Y),Y=H.fill}return!1}function Oj(J,Z,q){let X=Sj(J);if(o0(X))return isNaN(X.value)?!1:X;let Y=parseFloat(X);if(b1(Y)&&Math.floor(Y)===Y)return Ej(X[0],Z,Y,q);return["origin","start","end","stack","shape"].indexOf(X)>=0&&X}function Ej(J,Z,q,X){if(J==="-"||J==="+")q=Z+q;if(q===Z||q<0||q>=X)return!1;return q}function Aj(J,Z){let q=null;if(J==="start")q=Z.bottom;else if(J==="end")q=Z.top;else if(o0(J))q=Z.getPixelForValue(J.value);else if(Z.getBasePixel)q=Z.getBasePixel();return q}function jj(J,Z,q){let X;if(J==="start")X=q;else if(J==="end")X=Z.options.reverse?Z.min:Z.max;else if(o0(J))X=J.value;else X=Z.getBaseValue();return X}function Sj(J){let Z=J.options,q=Z.fill,X=d0(q&&q.target,q);if(X===void 0)X=!!Z.backgroundColor;if(X===!1||X===null)return!1;if(X===!0)return"origin";return X}function Dj(J){let{scale:Z,index:q,line:X}=J,Y=[],K=X.segments,H=X.points,M=vj(Z,q);M.push(vT({x:null,y:Z.bottom},X));for(let W=0;W<K.length;W++){let w=K[W];for(let z=w.start;z<=w.end;z++)kj(Y,H[z],M)}return new HQ({points:Y,options:{}})}function vj(J,Z){let q=[],X=J.getMatchingVisibleMetas("line");for(let Y=0;Y<X.length;Y++){let K=X[Y];if(K.index===Z)break;if(!K.hidden)q.unshift(K.dataset)}return q}function kj(J,Z,q){let X=[];for(let Y=0;Y<q.length;Y++){let K=q[Y],{first:H,last:M,point:W}=bj(K,Z,"x");if(!W||H&&M)continue;if(H)X.unshift(W);else if(J.push(W),!M)break}J.push(...X)}function bj(J,Z,q){let X=J.interpolate(Z,q);if(!X)return{};let Y=X[q],K=J.segments,H=J.points,M=!1,W=!1;for(let w=0;w<K.length;w++){let z=K[w],T=H[z.start][q],P=H[z.end][q];if(E$(Y,T,P)){M=Y===T,W=Y===P;break}}return{first:M,last:W,point:X}}class KK{constructor(J){this.x=J.x,this.y=J.y,this.radius=J.radius}pathSegment(J,Z,q){let{x:X,y:Y,radius:K}=this;return Z=Z||{start:0,end:i6},J.arc(X,Y,K,Z.end,Z.start,!0),!q.bounds}interpolate(J){let{x:Z,y:q,radius:X}=this,Y=J.angle;return{x:Z+Math.cos(Y)*X,y:q+Math.sin(Y)*X,angle:Y}}}function yj(J){let{chart:Z,fill:q,line:X}=J;if(b1(q))return fj(Z,q);if(q==="stack")return Dj(J);if(q==="shape")return!0;let Y=gj(J);if(Y instanceof KK)return Y;return vT(Y,X)}function fj(J,Z){let q=J.getDatasetMeta(Z);return q&&J.isDatasetVisible(Z)?q.dataset:null}function gj(J){if((J.scale||{}).getPointPositionForValue)return xj(J);return hj(J)}function hj(J){let{scale:Z={},fill:q}=J,X=Aj(q,Z);if(b1(X)){let Y=Z.isHorizontal();return{x:Y?X:null,y:Y?null:X}}return null}function xj(J){let{scale:Z,fill:q}=J,X=Z.options,Y=Z.getLabels().length,K=X.reverse?Z.max:Z.min,H=jj(q,Z,K),M=[];if(X.grid.circular){let W=Z.getPointPositionForValue(0,K);return new KK({x:W.x,y:W.y,radius:Z.getDistanceFromCenterForValue(H)})}for(let W=0;W<Y;++W)M.push(Z.getPointPositionForValue(W,H));return M}function sU(J,Z,q){let X=yj(Z),{chart:Y,index:K,line:H,scale:M,axis:W}=Z,w=H.options,z=w.fill,T=w.backgroundColor,{above:P=T,below:I=T}=z||{},E=Y.getDatasetMeta(K),O=gU(Y,E);if(X&&H.points.length)BJ(J,uj(q,E.iScale)),mj(J,{line:H,target:X,above:P,below:I,area:q,scale:M,axis:W,clip:O}),HJ(J)}function uj(J,Z){if(!Z||Z.getPointPositionForValue)return J;let q=Z.getPixelForValue(Z.min),X=Z.getPixelForValue(Z.max),Y=Math.min(q,X),K=Math.max(q,X);return Z.isHorizontal()?{...J,left:Math.max(J.left,Y),right:Math.min(J.right,K)}:{...J,top:Math.max(J.top,Y),bottom:Math.min(J.bottom,K)}}function mj(J,Z){let{line:q,target:X,above:Y,below:K,area:H,scale:M,clip:W}=Z,w=q._loop?"angle":Z.axis;J.save();let z=K;if(K!==Y){if(w==="x")sz(J,X,H.top),nU(J,{line:q,target:X,color:Y,scale:M,property:w,clip:W}),J.restore(),J.save(),sz(J,X,H.bottom);else if(w==="y")nz(J,X,H.left),nU(J,{line:q,target:X,color:K,scale:M,property:w,clip:W}),J.restore(),J.save(),nz(J,X,H.right),z=Y}nU(J,{line:q,target:X,color:z,scale:M,property:w,clip:W}),J.restore()}function sz(J,Z,q){let{segments:X,points:Y}=Z,K=!0,H=!1;J.beginPath();for(let M of X){let{start:W,end:w}=M,z=Y[W],T=Y[tq(W,w,Y)];if(K)J.moveTo(z.x,z.y),K=!1;else J.lineTo(z.x,q),J.lineTo(z.x,z.y);if(H=!!Z.pathSegment(J,M,{move:H}),H)J.closePath();else J.lineTo(T.x,q)}J.lineTo(Z.first().x,q),J.closePath(),J.clip()}function nz(J,Z,q){let{segments:X,points:Y}=Z,K=!0,H=!1;J.beginPath();for(let M of X){let{start:W,end:w}=M,z=Y[W],T=Y[tq(W,w,Y)];if(K)J.moveTo(z.x,z.y),K=!1;else J.lineTo(q,z.y),J.lineTo(z.x,z.y);if(H=!!Z.pathSegment(J,M,{move:H}),H)J.closePath();else J.lineTo(q,T.y)}J.lineTo(q,Z.first().y),J.closePath(),J.clip()}function nU(J,Z){let{line:q,target:X,property:Y,color:K,scale:H,clip:M}=Z,W=_j(q,X,Y);for(let{source:w,target:z,start:T,end:P}of W){let{style:{backgroundColor:I=K}={}}=w,E=X!==!0;J.save(),J.fillStyle=I,dj(J,H,M,E&&tU(Y,T,P)),J.beginPath();let O=!!q.pathSegment(J,w),V;if(E){if(O)J.closePath();else oz(J,X,P,Y);let D=!!X.pathSegment(J,z,{move:O,reverse:!0});if(V=O&&D,!V)oz(J,X,T,Y)}J.closePath(),J.fill(V?"evenodd":"nonzero"),J.restore()}}function dj(J,Z,q,X){let Y=Z.chart.chartArea,{property:K,start:H,end:M}=X||{};if(K==="x"||K==="y"){let W,w,z,T;if(K==="x")W=H,w=Y.top,z=M,T=Y.bottom;else W=Y.left,w=H,z=Y.right,T=M;if(J.beginPath(),q)W=Math.max(W,q.left),z=Math.min(z,q.right),w=Math.max(w,q.top),T=Math.min(T,q.bottom);J.rect(W,w,z-W,T-w),J.clip()}}function oz(J,Z,q,X){let Y=Z.interpolate(q,X);if(Y)J.lineTo(Y.x,Y.y)}var kT={id:"filler",afterDatasetsUpdate(J,Z,q){let X=(J.data.datasets||[]).length,Y=[],K,H,M,W;for(H=0;H<X;++H){if(K=J.getDatasetMeta(H),M=K.dataset,W=null,M&&M.options&&M instanceof HQ)W={visible:J.isDatasetVisible(H),index:H,fill:Oj(M,H,X),chart:J,axis:K.controller.options.indexAxis,scale:K.vScale,line:M};K.$filler=W,Y.push(W)}for(H=0;H<X;++H){if(W=Y[H],!W||W.fill===!1)continue;W.fill=Vj(Y,H,q.propagate)}},beforeDraw(J,Z,q){let X=q.drawTime==="beforeDraw",Y=J.getSortedVisibleDatasetMetas(),K=J.chartArea;for(let H=Y.length-1;H>=0;--H){let M=Y[H].$filler;if(!M)continue;if(M.line.updateControlPoints(K,M.axis),X&&M.fill)sU(J.ctx,M,K)}},beforeDatasetsDraw(J,Z,q){if(q.drawTime!=="beforeDatasetsDraw")return;let X=J.getSortedVisibleDatasetMetas();for(let Y=X.length-1;Y>=0;--Y){let K=X[Y].$filler;if(rz(K))sU(J.ctx,K,J.chartArea)}},beforeDatasetDraw(J,Z,q){let X=Z.meta.$filler;if(!rz(X)||q.drawTime!=="beforeDatasetDraw")return;sU(J.ctx,X,J.chartArea)},defaults:{propagate:!0,drawTime:"beforeDatasetDraw"}},iz=(J,Z)=>{let{boxHeight:q=Z,boxWidth:X=Z}=J;if(J.usePointStyle)q=Math.min(q,Z),X=J.pointStyleWidth||Math.min(X,Z);return{boxWidth:X,boxHeight:q,itemHeight:Math.max(Z,q)}},pj=(J,Z)=>J!==null&&Z!==null&&J.datasetIndex===Z.datasetIndex&&J.index===Z.index;class eU extends D${constructor(J){super();this._added=!1,this.legendHitBoxes=[],this._hoveredItem=null,this.doughnutMode=!1,this.chart=J.chart,this.options=J.options,this.ctx=J.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(J,Z,q){this.maxWidth=J,this.maxHeight=Z,this._margins=q,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 J=this.options.labels||{},Z=z1(J.generateLabels,[this.chart],this)||[];if(J.filter)Z=Z.filter((q)=>J.filter(q,this.chart.data));if(J.sort)Z=Z.sort((q,X)=>J.sort(q,X,this.chart.data));if(this.options.reverse)Z.reverse();this.legendItems=Z}fit(){let{options:J,ctx:Z}=this;if(!J.display){this.width=this.height=0;return}let q=J.labels,X=a1(q.font),Y=X.size,K=this._computeTitleHeight(),{boxWidth:H,itemHeight:M}=iz(q,Y),W,w;if(Z.font=X.string,this.isHorizontal())W=this.maxWidth,w=this._fitRows(K,Y,H,M)+10;else w=this.maxHeight,W=this._fitCols(K,X,H,M)+10;this.width=Math.min(W,J.maxWidth||this.maxWidth),this.height=Math.min(w,J.maxHeight||this.maxHeight)}_fitRows(J,Z,q,X){let{ctx:Y,maxWidth:K,options:{labels:{padding:H}}}=this,M=this.legendHitBoxes=[],W=this.lineWidths=[0],w=X+H,z=J;Y.textAlign="left",Y.textBaseline="middle";let T=-1,P=-w;return this.legendItems.forEach((I,E)=>{let O=q+Z/2+Y.measureText(I.text).width;if(E===0||W[W.length-1]+O+2*H>K)z+=w,W[W.length-(E>0?0:1)]=0,P+=w,T++;M[E]={left:0,top:P,row:T,width:O,height:X},W[W.length-1]+=O+H}),z}_fitCols(J,Z,q,X){let{ctx:Y,maxHeight:K,options:{labels:{padding:H}}}=this,M=this.legendHitBoxes=[],W=this.columnSizes=[],w=K-J,z=H,T=0,P=0,I=0,E=0;return this.legendItems.forEach((O,V)=>{let{itemWidth:D,itemHeight:h}=cj(q,Z,Y,O,X);if(V>0&&P+h+2*H>w)z+=T+H,W.push({width:T,height:P}),I+=T+H,E++,T=P=0;M[V]={left:I,top:P,col:E,width:D,height:h},T=Math.max(T,D),P+=h+H}),z+=T,W.push({width:T,height:P}),z}adjustHitBoxes(){if(!this.options.display)return;let J=this._computeTitleHeight(),{legendHitBoxes:Z,options:{align:q,labels:{padding:X},rtl:Y}}=this,K=f7(Y,this.left,this.width);if(this.isHorizontal()){let H=0,M=R6(q,this.left+X,this.right-this.lineWidths[H]);for(let W of Z){if(H!==W.row)H=W.row,M=R6(q,this.left+X,this.right-this.lineWidths[H]);W.top+=this.top+J+X,W.left=K.leftForLtr(K.x(M),W.width),M+=W.width+X}}else{let H=0,M=R6(q,this.top+J+X,this.bottom-this.columnSizes[H].height);for(let W of Z){if(W.col!==H)H=W.col,M=R6(q,this.top+J+X,this.bottom-this.columnSizes[H].height);W.top=M,W.left+=this.left+X,W.left=K.leftForLtr(K.x(W.left),W.width),M+=W.height+X}}}isHorizontal(){return this.options.position==="top"||this.options.position==="bottom"}draw(){if(this.options.display){let J=this.ctx;BJ(J,this),this._draw(),HJ(J)}}_draw(){let{options:J,columnSizes:Z,lineWidths:q,ctx:X}=this,{align:Y,labels:K}=J,H=y1.color,M=f7(J.rtl,this.left,this.width),W=a1(K.font),{padding:w}=K,z=W.size,T=z/2,P;this.drawTitle(),X.textAlign=M.textAlign("left"),X.textBaseline="middle",X.lineWidth=0.5,X.font=W.string;let{boxWidth:I,boxHeight:E,itemHeight:O}=iz(K,z),V=function(n,Z0,a){if(isNaN(I)||I<=0||isNaN(E)||E<0)return;X.save();let i=d0(a.lineWidth,1);if(X.fillStyle=d0(a.fillStyle,H),X.lineCap=d0(a.lineCap,"butt"),X.lineDashOffset=d0(a.lineDashOffset,0),X.lineJoin=d0(a.lineJoin,"miter"),X.lineWidth=i,X.strokeStyle=d0(a.strokeStyle,H),X.setLineDash(d0(a.lineDash,[])),K.usePointStyle){let X0={radius:E*Math.SQRT2/2,pointStyle:a.pointStyle,rotation:a.rotation,borderWidth:i},d=M.xPlus(n,I/2),B0=Z0+T;PU(X,X0,d,B0,K.pointStyleWidth&&I)}else{let X0=Z0+Math.max((z-E)/2,0),d=M.leftForLtr(n,I),B0=y8(a.borderRadius);if(X.beginPath(),Object.values(B0).some((H0)=>H0!==0))BQ(X,{x:d,y:X0,w:I,h:E,radius:B0});else X.rect(d,X0,I,E);if(X.fill(),i!==0)X.stroke()}X.restore()},D=function(n,Z0,a){v8(X,a.text,n,Z0+O/2,W,{strikethrough:a.hidden,textAlign:M.textAlign(a.textAlign)})},h=this.isHorizontal(),p=this._computeTitleHeight();if(h)P={x:R6(Y,this.left+w,this.right-q[0]),y:this.top+w+p,line:0};else P={x:this.left+w,y:R6(Y,this.top+p+w,this.bottom-Z[0].height),line:0};kU(this.ctx,J.textDirection);let s=O+w;this.legendItems.forEach((n,Z0)=>{X.strokeStyle=n.fontColor,X.fillStyle=n.fontColor;let a=X.measureText(n.text).width,i=M.textAlign(n.textAlign||(n.textAlign=K.textAlign)),X0=I+T+a,d=P.x,B0=P.y;if(M.setWidth(this.width),h){if(Z0>0&&d+X0+w>this.right)B0=P.y+=s,P.line++,d=P.x=R6(Y,this.left+w,this.right-q[P.line])}else if(Z0>0&&B0+s>this.bottom)d=P.x=d+Z[P.line].width+w,P.line++,B0=P.y=R6(Y,this.top+p+w,this.bottom-Z[P.line].height);let H0=M.x(d);if(V(H0,B0,n),d=Xz(i,d+I+T,h?d+X0:this.right,J.rtl),D(M.x(d),B0,n),h)P.x+=X0+w;else if(typeof n.text!=="string"){let C0=W.lineHeight;P.y+=bT(n,C0)+w}else P.y+=s}),bU(this.ctx,J.textDirection)}drawTitle(){let J=this.options,Z=J.title,q=a1(Z.font),X=z6(Z.padding);if(!Z.display)return;let Y=f7(J.rtl,this.left,this.width),K=this.ctx,H=Z.position,M=q.size/2,W=X.top+M,w,z=this.left,T=this.width;if(this.isHorizontal())T=Math.max(...this.lineWidths),w=this.top+W,z=R6(J.align,z,this.right-T);else{let I=this.columnSizes.reduce((E,O)=>Math.max(E,O.height),0);w=W+R6(J.align,this.top,this.bottom-I-J.labels.padding-this._computeTitleHeight())}let P=R6(H,z,z+T);K.textAlign=Y.textAlign(mq(H)),K.textBaseline="middle",K.strokeStyle=Z.color,K.fillStyle=Z.color,K.font=q.string,v8(K,Z.text,P,w,q)}_computeTitleHeight(){let J=this.options.title,Z=a1(J.font),q=z6(J.padding);return J.display?Z.lineHeight+q.height:0}_getLegendItemAt(J,Z){let q,X,Y;if(E$(J,this.left,this.right)&&E$(Z,this.top,this.bottom)){Y=this.legendHitBoxes;for(q=0;q<Y.length;++q)if(X=Y[q],E$(J,X.left,X.left+X.width)&&E$(Z,X.top,X.top+X.height))return this.legendItems[q]}return null}handleEvent(J){let Z=this.options;if(!sj(J.type,Z))return;let q=J.type==="mouseout"?null:this._getLegendItemAt(J.x,J.y);if(J.type==="mousemove"||J.type==="mouseout"){let X=this._hoveredItem,Y=pj(X,q);if(X&&!Y)z1(Z.onLeave,[J,X,this],this);if(this._hoveredItem=q,q&&!Y)z1(Z.onHover,[J,q,this],this)}else if(q)z1(Z.onClick,[J,q,this],this)}}function cj(J,Z,q,X,Y){let K=lj(X,J,Z,q),H=rj(Y,X,Z.lineHeight);return{itemWidth:K,itemHeight:H}}function lj(J,Z,q,X){let Y=J.text,K=Y&&typeof Y!=="string"?Y.reduce((H,M)=>Math.max(H,X.measureText(M).width),0):X.measureText(Y).width;return Z+q.size/2+K}function rj(J,Z,q){let X=J;if(typeof Z.text!=="string")X=bT(Z,q);return X}function bT(J,Z){let q=J.text?J.text.length:0;return Z*q}function sj(J,Z){if((J==="mousemove"||J==="mouseout")&&(Z.onHover||Z.onLeave))return!0;if(Z.onClick&&(J==="click"||J==="mouseup"))return!0;return!1}var yT={id:"legend",_element:eU,start(J,Z,q){let X=J.legend=new eU({ctx:J.ctx,options:q,chart:J});d5.configure(J,X,q),d5.addBox(J,X)},stop(J){d5.removeBox(J,J.legend),delete J.legend},beforeUpdate(J,Z,q){let X=J.legend;d5.configure(J,X,q),X.options=q},afterUpdate(J){let Z=J.legend;Z.buildLabels(),Z.adjustHitBoxes()},afterEvent(J,Z){if(!Z.replay)J.legend.handleEvent(Z.event)},defaults:{display:!0,position:"top",align:"center",fullSize:!0,reverse:!1,weight:1000,onClick(J,Z,q){let X=Z.datasetIndex,Y=q.chart;if(Y.isDatasetVisible(X))Y.hide(X),Z.hidden=!0;else Y.show(X),Z.hidden=!1},onHover:null,onLeave:null,labels:{color:(J)=>J.chart.options.color,boxWidth:40,padding:10,generateLabels(J){let Z=J.data.datasets,{labels:{usePointStyle:q,pointStyle:X,textAlign:Y,color:K,useBorderRadius:H,borderRadius:M}}=J.legend.options;return J._getSortedDatasetMetas().map((W)=>{let w=W.controller.getStyle(q?0:void 0),z=z6(w.borderWidth),T=X||w.pointStyle,P=q&&T==="line"?W.controller.getStyle(void 0):w;return{text:Z[W.index].label,fillStyle:w.backgroundColor,fontColor:K,hidden:!W.visible,lineCap:w.borderCapStyle,lineDash:P.borderDash,lineDashOffset:P.borderDashOffset,lineJoin:w.borderJoinStyle,lineWidth:(z.width+z.height)/4,strokeStyle:w.borderColor,pointStyle:T,rotation:w.rotation,textAlign:Y||w.textAlign,borderRadius:H&&(M||w.borderRadius),datasetIndex:W.index}},this)}},title:{color:(J)=>J.chart.options.color,display:!1,position:"center",text:""}},descriptors:{_scriptable:(J)=>!J.startsWith("on"),labels:{_scriptable:(J)=>!["generateLabels","filter","sort"].includes(J)}}};class BK extends D${constructor(J){super();this.chart=J.chart,this.options=J.options,this.ctx=J.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(J,Z){let q=this.options;if(this.left=0,this.top=0,!q.display){this.width=this.height=this.right=this.bottom=0;return}this.width=this.right=J,this.height=this.bottom=Z;let X=_1(q.text)?q.text.length:1;this._padding=z6(q.padding);let Y=X*a1(q.font).lineHeight+this._padding.height;if(this.isHorizontal())this.height=Y;else this.width=Y}isHorizontal(){let J=this.options.position;return J==="top"||J==="bottom"}_drawArgs(J){let{top:Z,left:q,bottom:X,right:Y,options:K}=this,H=K.align,M=0,W,w,z;if(this.isHorizontal())w=R6(H,q,Y),z=Z+J,W=Y-q;else{if(K.position==="left")w=q+J,z=R6(H,X,Z),M=m1*-0.5;else w=Y-J,z=R6(H,Z,X),M=m1*0.5;W=X-Z}return{titleX:w,titleY:z,maxWidth:W,rotation:M}}draw(){let J=this.ctx,Z=this.options;if(!Z.display)return;let q=a1(Z.font),Y=q.lineHeight/2+this._padding.top,{titleX:K,titleY:H,maxWidth:M,rotation:W}=this._drawArgs(Y);v8(J,Z.text,0,0,q,{color:Z.color,maxWidth:M,rotation:W,textAlign:mq(Z.align),textBaseline:"middle",translation:[K,H]})}}function nj(J,Z){let q=new BK({ctx:J.ctx,options:Z,chart:J});d5.configure(J,q,Z),d5.addBox(J,q),J.titleBlock=q}var fT={id:"title",_element:BK,start(J,Z,q){nj(J,q)},stop(J){let Z=J.titleBlock;d5.removeBox(J,Z),delete J.titleBlock},beforeUpdate(J,Z,q){let X=J.titleBlock;d5.configure(J,X,q),X.options=q},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 IJ={average(J){if(!J.length)return!1;let Z,q,X=new Set,Y=0,K=0;for(Z=0,q=J.length;Z<q;++Z){let M=J[Z].element;if(M&&M.hasValue()){let W=M.tooltipPosition();X.add(W.x),Y+=W.y,++K}}if(K===0||X.size===0)return!1;return{x:[...X].reduce((M,W)=>M+W)/X.size,y:Y/K}},nearest(J,Z){if(!J.length)return!1;let{x:q,y:X}=Z,Y=Number.POSITIVE_INFINITY,K,H,M;for(K=0,H=J.length;K<H;++K){let W=J[K].element;if(W&&W.hasValue()){let w=W.getCenterPoint(),z=vq(Z,w);if(z<Y)Y=z,M=W}}if(M){let W=M.tooltipPosition();q=W.x,X=W.y}return{x:q,y:X}}};function m4(J,Z){if(Z)if(_1(Z))Array.prototype.push.apply(J,Z);else J.push(Z);return J}function S$(J){if((typeof J==="string"||J instanceof String)&&J.indexOf(`
|
|
256
|
+
`)>-1)return J.split(`
|
|
257
|
+
`);return J}function oj(J,Z){let{element:q,datasetIndex:X,index:Y}=Z,K=J.getDatasetMeta(X).controller,{label:H,value:M}=K.getLabelAndValue(Y);return{chart:J,label:H,parsed:K.getParsed(Y),raw:J.data.datasets[X].data[Y],formattedValue:M,dataset:K.getDataset(),dataIndex:Y,datasetIndex:X,element:q}}function az(J,Z){let q=J.chart.ctx,{body:X,footer:Y,title:K}=J,{boxWidth:H,boxHeight:M}=Z,W=a1(Z.bodyFont),w=a1(Z.titleFont),z=a1(Z.footerFont),T=K.length,P=Y.length,I=X.length,E=z6(Z.padding),O=E.height,V=0,D=X.reduce((s,n)=>s+n.before.length+n.lines.length+n.after.length,0);if(D+=J.beforeBody.length+J.afterBody.length,T)O+=T*w.lineHeight+(T-1)*Z.titleSpacing+Z.titleMarginBottom;if(D){let s=Z.displayColors?Math.max(M,W.lineHeight):W.lineHeight;O+=I*s+(D-I)*W.lineHeight+(D-1)*Z.bodySpacing}if(P)O+=Z.footerMarginTop+P*z.lineHeight+(P-1)*Z.footerSpacing;let h=0,p=function(s){V=Math.max(V,q.measureText(s).width+h)};return q.save(),q.font=w.string,U1(J.title,p),q.font=W.string,U1(J.beforeBody.concat(J.afterBody),p),h=Z.displayColors?H+2+Z.boxPadding:0,U1(X,(s)=>{U1(s.before,p),U1(s.lines,p),U1(s.after,p)}),h=0,q.font=z.string,U1(J.footer,p),q.restore(),V+=E.width,{width:V,height:O}}function ij(J,Z){let{y:q,height:X}=Z;if(q<X/2)return"top";else if(q>J.height-X/2)return"bottom";return"center"}function aj(J,Z,q,X){let{x:Y,width:K}=X,H=q.caretSize+q.caretPadding;if(J==="left"&&Y+K+H>Z.width)return!0;if(J==="right"&&Y-K-H<0)return!0}function tj(J,Z,q,X){let{x:Y,width:K}=q,{width:H,chartArea:{left:M,right:W}}=J,w="center";if(X==="center")w=Y<=(M+W)/2?"left":"right";else if(Y<=K/2)w="left";else if(Y>=H-K/2)w="right";if(aj(w,J,Z,q))w="center";return w}function tz(J,Z,q){let X=q.yAlign||Z.yAlign||ij(J,q);return{xAlign:q.xAlign||Z.xAlign||tj(J,Z,q,X),yAlign:X}}function ej(J,Z){let{x:q,width:X}=J;if(Z==="right")q-=X;else if(Z==="center")q-=X/2;return q}function $S(J,Z,q){let{y:X,height:Y}=J;if(Z==="top")X+=q;else if(Z==="bottom")X-=Y+q;else X-=Y/2;return X}function ez(J,Z,q,X){let{caretSize:Y,caretPadding:K,cornerRadius:H}=J,{xAlign:M,yAlign:W}=q,w=Y+K,{topLeft:z,topRight:T,bottomLeft:P,bottomRight:I}=y8(H),E=ej(Z,M),O=$S(Z,W,w);if(W==="center"){if(M==="left")E+=w;else if(M==="right")E-=w}else if(M==="left")E-=Math.max(z,P)+Y;else if(M==="right")E+=Math.max(T,I)+Y;return{x:a6(E,0,X.width-Z.width),y:a6(O,0,X.height-Z.height)}}function rq(J,Z,q){let X=z6(q.padding);return Z==="center"?J.x+J.width/2:Z==="right"?J.x+J.width-X.right:J.x+X.left}function $T(J){return m4([],S$(J))}function QS(J,Z,q){return A$(J,{tooltip:Z,tooltipItems:q,type:"tooltip"})}function QT(J,Z){let q=Z&&Z.dataset&&Z.dataset.tooltip&&Z.dataset.tooltip.callbacks;return q?J.override(q):J}var gT={beforeTitle:u4,title(J){if(J.length>0){let Z=J[0],q=Z.chart.data.labels,X=q?q.length:0;if(this&&this.options&&this.options.mode==="dataset")return Z.dataset.label||"";else if(Z.label)return Z.label;else if(X>0&&Z.dataIndex<X)return q[Z.dataIndex]}return""},afterTitle:u4,beforeBody:u4,beforeLabel:u4,label(J){if(this&&this.options&&this.options.mode==="dataset")return J.label+": "+J.formattedValue||J.formattedValue;let Z=J.dataset.label||"";if(Z)Z+=": ";let q=J.formattedValue;if(!e0(q))Z+=q;return Z},labelColor(J){let q=J.chart.getDatasetMeta(J.datasetIndex).controller.getStyle(J.dataIndex);return{borderColor:q.borderColor,backgroundColor:q.backgroundColor,borderWidth:q.borderWidth,borderDash:q.borderDash,borderDashOffset:q.borderDashOffset,borderRadius:0}},labelTextColor(){return this.options.bodyColor},labelPointStyle(J){let q=J.chart.getDatasetMeta(J.datasetIndex).controller.getStyle(J.dataIndex);return{pointStyle:q.pointStyle,rotation:q.rotation}},afterLabel:u4,afterBody:u4,beforeFooter:u4,footer:u4,afterFooter:u4};function e6(J,Z,q,X){let Y=J[Z].call(q,X);if(typeof Y>"u")return gT[Z].call(q,X);return Y}class $K extends D${static positioners=IJ;constructor(J){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=J.chart,this.options=J.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(J){this.options=J,this._cachedAnimations=void 0,this.$context=void 0}_resolveAnimations(){let J=this._cachedAnimations;if(J)return J;let Z=this.chart,q=this.options.setContext(this.getContext()),X=q.enabled&&Z.options.animation&&q.animations,Y=new ZK(this.chart,X);if(X._cacheable)this._cachedAnimations=Object.freeze(Y);return Y}getContext(){return this.$context||(this.$context=QS(this.chart.getContext(),this,this._tooltipItems))}getTitle(J,Z){let{callbacks:q}=Z,X=e6(q,"beforeTitle",this,J),Y=e6(q,"title",this,J),K=e6(q,"afterTitle",this,J),H=[];return H=m4(H,S$(X)),H=m4(H,S$(Y)),H=m4(H,S$(K)),H}getBeforeBody(J,Z){return $T(e6(Z.callbacks,"beforeBody",this,J))}getBody(J,Z){let{callbacks:q}=Z,X=[];return U1(J,(Y)=>{let K={before:[],lines:[],after:[]},H=QT(q,Y);m4(K.before,S$(e6(H,"beforeLabel",this,Y))),m4(K.lines,e6(H,"label",this,Y)),m4(K.after,S$(e6(H,"afterLabel",this,Y))),X.push(K)}),X}getAfterBody(J,Z){return $T(e6(Z.callbacks,"afterBody",this,J))}getFooter(J,Z){let{callbacks:q}=Z,X=e6(q,"beforeFooter",this,J),Y=e6(q,"footer",this,J),K=e6(q,"afterFooter",this,J),H=[];return H=m4(H,S$(X)),H=m4(H,S$(Y)),H=m4(H,S$(K)),H}_createItems(J){let Z=this._active,q=this.chart.data,X=[],Y=[],K=[],H=[],M,W;for(M=0,W=Z.length;M<W;++M)H.push(oj(this.chart,Z[M]));if(J.filter)H=H.filter((w,z,T)=>J.filter(w,z,T,q));if(J.itemSort)H=H.sort((w,z)=>J.itemSort(w,z,q));return U1(H,(w)=>{let z=QT(J.callbacks,w);X.push(e6(z,"labelColor",this,w)),Y.push(e6(z,"labelPointStyle",this,w)),K.push(e6(z,"labelTextColor",this,w))}),this.labelColors=X,this.labelPointStyles=Y,this.labelTextColors=K,this.dataPoints=H,H}update(J,Z){let q=this.options.setContext(this.getContext()),X=this._active,Y,K=[];if(!X.length){if(this.opacity!==0)Y={opacity:0}}else{let H=IJ[q.position].call(this,X,this._eventPosition);K=this._createItems(q),this.title=this.getTitle(K,q),this.beforeBody=this.getBeforeBody(K,q),this.body=this.getBody(K,q),this.afterBody=this.getAfterBody(K,q),this.footer=this.getFooter(K,q);let M=this._size=az(this,q),W=Object.assign({},H,M),w=tz(this.chart,q,W),z=ez(q,W,w,this.chart);this.xAlign=w.xAlign,this.yAlign=w.yAlign,Y={opacity:1,x:z.x,y:z.y,width:M.width,height:M.height,caretX:H.x,caretY:H.y}}if(this._tooltipItems=K,this.$context=void 0,Y)this._resolveAnimations().update(this,Y);if(J&&q.external)q.external.call(this,{chart:this.chart,tooltip:this,replay:Z})}drawCaret(J,Z,q,X){let Y=this.getCaretPosition(J,q,X);Z.lineTo(Y.x1,Y.y1),Z.lineTo(Y.x2,Y.y2),Z.lineTo(Y.x3,Y.y3)}getCaretPosition(J,Z,q){let{xAlign:X,yAlign:Y}=this,{caretSize:K,cornerRadius:H}=q,{topLeft:M,topRight:W,bottomLeft:w,bottomRight:z}=y8(H),{x:T,y:P}=J,{width:I,height:E}=Z,O,V,D,h,p,s;if(Y==="center"){if(p=P+E/2,X==="left")O=T,V=O-K,h=p+K,s=p-K;else O=T+I,V=O+K,h=p-K,s=p+K;D=O}else{if(X==="left")V=T+Math.max(M,w)+K;else if(X==="right")V=T+I-Math.max(W,z)-K;else V=this.caretX;if(Y==="top")h=P,p=h-K,O=V-K,D=V+K;else h=P+E,p=h+K,O=V+K,D=V-K;s=h}return{x1:O,x2:V,x3:D,y1:h,y2:p,y3:s}}drawTitle(J,Z,q){let X=this.title,Y=X.length,K,H,M;if(Y){let W=f7(q.rtl,this.x,this.width);J.x=rq(this,q.titleAlign,q),Z.textAlign=W.textAlign(q.titleAlign),Z.textBaseline="middle",K=a1(q.titleFont),H=q.titleSpacing,Z.fillStyle=q.titleColor,Z.font=K.string;for(M=0;M<Y;++M)if(Z.fillText(X[M],W.x(J.x),J.y+K.lineHeight/2),J.y+=K.lineHeight+H,M+1===Y)J.y+=q.titleMarginBottom-H}}_drawColorBox(J,Z,q,X,Y){let K=this.labelColors[q],H=this.labelPointStyles[q],{boxHeight:M,boxWidth:W}=Y,w=a1(Y.bodyFont),z=rq(this,"left",Y),T=X.x(z),P=M<w.lineHeight?(w.lineHeight-M)/2:0,I=Z.y+P;if(Y.usePointStyle){let E={radius:Math.min(W,M)/2,pointStyle:H.pointStyle,rotation:H.rotation,borderWidth:1},O=X.leftForLtr(T,W)+W/2,V=I+M/2;J.strokeStyle=Y.multiKeyBackground,J.fillStyle=Y.multiKeyBackground,gq(J,E,O,V),J.strokeStyle=K.borderColor,J.fillStyle=K.backgroundColor,gq(J,E,O,V)}else{J.lineWidth=o0(K.borderWidth)?Math.max(...Object.values(K.borderWidth)):K.borderWidth||1,J.strokeStyle=K.borderColor,J.setLineDash(K.borderDash||[]),J.lineDashOffset=K.borderDashOffset||0;let E=X.leftForLtr(T,W),O=X.leftForLtr(X.xPlus(T,1),W-2),V=y8(K.borderRadius);if(Object.values(V).some((D)=>D!==0))J.beginPath(),J.fillStyle=Y.multiKeyBackground,BQ(J,{x:E,y:I,w:W,h:M,radius:V}),J.fill(),J.stroke(),J.fillStyle=K.backgroundColor,J.beginPath(),BQ(J,{x:O,y:I+1,w:W-2,h:M-2,radius:V}),J.fill();else J.fillStyle=Y.multiKeyBackground,J.fillRect(E,I,W,M),J.strokeRect(E,I,W,M),J.fillStyle=K.backgroundColor,J.fillRect(O,I+1,W-2,M-2)}J.fillStyle=this.labelTextColors[q]}drawBody(J,Z,q){let{body:X}=this,{bodySpacing:Y,bodyAlign:K,displayColors:H,boxHeight:M,boxWidth:W,boxPadding:w}=q,z=a1(q.bodyFont),T=z.lineHeight,P=0,I=f7(q.rtl,this.x,this.width),E=function(a){Z.fillText(a,I.x(J.x+P),J.y+T/2),J.y+=T+Y},O=I.textAlign(K),V,D,h,p,s,n,Z0;Z.textAlign=K,Z.textBaseline="middle",Z.font=z.string,J.x=rq(this,O,q),Z.fillStyle=q.bodyColor,U1(this.beforeBody,E),P=H&&O!=="right"?K==="center"?W/2+w:W+2+w:0;for(p=0,n=X.length;p<n;++p){if(V=X[p],D=this.labelTextColors[p],Z.fillStyle=D,U1(V.before,E),h=V.lines,H&&h.length)this._drawColorBox(Z,J,p,I,q),T=Math.max(z.lineHeight,M);for(s=0,Z0=h.length;s<Z0;++s)E(h[s]),T=z.lineHeight;U1(V.after,E)}P=0,T=z.lineHeight,U1(this.afterBody,E),J.y-=Y}drawFooter(J,Z,q){let X=this.footer,Y=X.length,K,H;if(Y){let M=f7(q.rtl,this.x,this.width);J.x=rq(this,q.footerAlign,q),J.y+=q.footerMarginTop,Z.textAlign=M.textAlign(q.footerAlign),Z.textBaseline="middle",K=a1(q.footerFont),Z.fillStyle=q.footerColor,Z.font=K.string;for(H=0;H<Y;++H)Z.fillText(X[H],M.x(J.x),J.y+K.lineHeight/2),J.y+=K.lineHeight+q.footerSpacing}}drawBackground(J,Z,q,X){let{xAlign:Y,yAlign:K}=this,{x:H,y:M}=J,{width:W,height:w}=q,{topLeft:z,topRight:T,bottomLeft:P,bottomRight:I}=y8(X.cornerRadius);if(Z.fillStyle=X.backgroundColor,Z.strokeStyle=X.borderColor,Z.lineWidth=X.borderWidth,Z.beginPath(),Z.moveTo(H+z,M),K==="top")this.drawCaret(J,Z,q,X);if(Z.lineTo(H+W-T,M),Z.quadraticCurveTo(H+W,M,H+W,M+T),K==="center"&&Y==="right")this.drawCaret(J,Z,q,X);if(Z.lineTo(H+W,M+w-I),Z.quadraticCurveTo(H+W,M+w,H+W-I,M+w),K==="bottom")this.drawCaret(J,Z,q,X);if(Z.lineTo(H+P,M+w),Z.quadraticCurveTo(H,M+w,H,M+w-P),K==="center"&&Y==="left")this.drawCaret(J,Z,q,X);if(Z.lineTo(H,M+z),Z.quadraticCurveTo(H,M,H+z,M),Z.closePath(),Z.fill(),X.borderWidth>0)Z.stroke()}_updateAnimationTarget(J){let Z=this.chart,q=this.$animations,X=q&&q.x,Y=q&&q.y;if(X||Y){let K=IJ[J.position].call(this,this._active,this._eventPosition);if(!K)return;let H=this._size=az(this,J),M=Object.assign({},K,this._size),W=tz(Z,J,M),w=ez(J,M,W,Z);if(X._to!==w.x||Y._to!==w.y)this.xAlign=W.xAlign,this.yAlign=W.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(J){let Z=this.options.setContext(this.getContext()),q=this.opacity;if(!q)return;this._updateAnimationTarget(Z);let X={width:this.width,height:this.height},Y={x:this.x,y:this.y};q=Math.abs(q)<0.001?0:q;let K=z6(Z.padding),H=this.title.length||this.beforeBody.length||this.body.length||this.afterBody.length||this.footer.length;if(Z.enabled&&H)J.save(),J.globalAlpha=q,this.drawBackground(Y,J,X,Z),kU(J,Z.textDirection),Y.y+=K.top,this.drawTitle(Y,J,Z),this.drawBody(Y,J,Z),this.drawFooter(Y,J,Z),bU(J,Z.textDirection),J.restore()}getActiveElements(){return this._active||[]}setActiveElements(J,Z){let q=this._active,X=J.map(({datasetIndex:H,index:M})=>{let W=this.chart.getDatasetMeta(H);if(!W)throw Error("Cannot find a dataset at index "+H);return{datasetIndex:H,element:W.data[M],index:M}}).filter(({element:H})=>H),Y=!KJ(q,X),K=this._positionChanged(X,Z);if(Y||K)this._active=X,this._eventPosition=Z,this._ignoreReplayEvents=!0,this.update(!0)}handleEvent(J,Z,q=!0){if(Z&&this._ignoreReplayEvents)return!1;this._ignoreReplayEvents=!1;let X=this.options,Y=this._active||[],K=this._getActiveElements(J,Y,Z,q),H=this._positionChanged(K,J),M=Z||!KJ(K,Y)||H;if(M){if(this._active=K,X.enabled||X.external)this._eventPosition={x:J.x,y:J.y},this.update(!0,Z)}return M}_getActiveElements(J,Z,q,X){let Y=this.options;if(J.type==="mouseout")return[];if(!X)return Z.filter((H)=>{let M=this.chart.data.datasets[H.datasetIndex]&&this.chart.getDatasetMeta(H.datasetIndex).controller;return M&&M.getParsed(H.index)!==void 0});let K=this.chart.getElementsAtEventForMode(J,Y.mode,Y,q);if(Y.reverse)K.reverse();return K}_positionChanged(J,Z){let{caretX:q,caretY:X,options:Y}=this,K=IJ[Y.position].call(this,J,Z);return K!==!1&&(q!==K.x||X!==K.y)}}var hT={id:"tooltip",_element:$K,positioners:IJ,afterInit(J,Z,q){if(q)J.tooltip=new $K({chart:J,options:q})},beforeUpdate(J,Z,q){if(J.tooltip)J.tooltip.initialize(q)},reset(J,Z,q){if(J.tooltip)J.tooltip.initialize(q)},afterDraw(J){let Z=J.tooltip;if(Z&&Z._willRender()){let q={tooltip:Z};if(J.notifyPlugins("beforeTooltipDraw",{...q,cancelable:!0})===!1)return;Z.draw(J.ctx),J.notifyPlugins("afterTooltipDraw",q)}},afterEvent(J,Z){if(J.tooltip){let q=Z.replay;if(J.tooltip.handleEvent(Z.event,q,Z.inChartArea))Z.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:(J,Z)=>Z.bodyFont.size,boxWidth:(J,Z)=>Z.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:gT},defaultRoutes:{bodyFont:"font",footerFont:"font",titleFont:"font"},descriptors:{_scriptable:(J)=>J!=="filter"&&J!=="itemSort"&&J!=="external",_indexable:!1,callbacks:{_scriptable:!1,_indexable:!1},animation:{_fallback:!1},animations:{_fallback:"animation"}},additionalOptionScopes:["interaction"]};var JS=(J,Z,q,X)=>{if(typeof Z==="string")q=J.push(Z)-1,X.unshift({index:q,label:Z});else if(isNaN(Z))q=null;return q};function ZS(J,Z,q,X){let Y=J.indexOf(Z);if(Y===-1)return JS(J,Z,q,X);let K=J.lastIndexOf(Z);return Y!==K?q:Y}var GS=(J,Z)=>J===null?null:a6(Math.round(J),0,Z);function JT(J){let Z=this.getLabels();if(J>=0&&J<Z.length)return Z[J];return J}class HK extends x7{static id="category";static defaults={ticks:{callback:JT}};constructor(J){super(J);this._startValue=void 0,this._valueRange=0,this._addedLabels=[]}init(J){let Z=this._addedLabels;if(Z.length){let q=this.getLabels();for(let{index:X,label:Y}of Z)if(q[X]===Y)q.splice(X,1);this._addedLabels=[]}super.init(J)}beforeLayout(){super.beforeLayout(),this._userMin=this.parse(this.options.min),this._userMax=this.parse(this.options.max)}parse(J,Z){if(e0(J))return null;let q=this.getLabels();return Z=isFinite(Z)&&q[Z]===J?Z:ZS(q,J,d0(Z,J),this._addedLabels),GS(Z,q.length-1)}determineDataLimits(){let{minDefined:J,maxDefined:Z}=this.getUserBounds(),{min:q,max:X}=this.getMinMax(!0);if(this.options.bounds==="ticks"){if(!J)q=0;if(!Z)X=this.getLabels().length-1}this.min=q,this.max=X}buildTicks(){let J=this.min,Z=this.max,q=this.options.offset,X=[],Y=this.getLabels();Y=J===0&&Z===Y.length-1?Y:Y.slice(J,Z+1),this._valueRange=Math.max(Y.length-(q?0:1),1),this._startValue=this.min-(q?0.5:0);for(let K=J;K<=Z;K++)X.push({value:K});return X}getLabelForValue(J){return JT.call(this,J)}configure(){if(super.configure(),!this.isHorizontal())this._reversePixels=!this._reversePixels}getPixelForValue(J){if(typeof J!=="number")J=this.parse(J);return J===null?NaN:this.getPixelForDecimal((J-this._startValue)/this._valueRange)}getPixelForTick(J){let Z=this.ticks;if(J<0||J>Z.length-1)return null;return this.getPixelForValue(Z[J].value)}getValueForPixel(J){return Math.round(this._startValue+this.getDecimalForPixel(J)*this._valueRange)}getBasePixel(){return this.bottom}}function qS(J,Z){let q=[],X=0.00000000000001,{bounds:Y,step:K,min:H,max:M,precision:W,count:w,maxTicks:z,maxDigits:T,includeBounds:P}=J,I=K||1,E=z-1,{min:O,max:V}=Z,D=!e0(H),h=!e0(M),p=!e0(w),s=(V-O)/(T+1),n=RU((V-O)/E/I)*I,Z0,a,i,X0;if(n<0.00000000000001&&!D&&!h)return[{value:O},{value:V}];if(X0=Math.ceil(V/n)-Math.floor(O/n),X0>E)n=RU(X0*n/E/I)*I;if(!e0(W))Z0=Math.pow(10,W),n=Math.ceil(n*Z0)/Z0;if(Y==="ticks"){let H0=Math.pow(10,fq(n));a=Math.round(Math.floor(O/n)*n*H0)/H0,i=Math.round(Math.ceil(V/n)*n*H0)/H0}else a=O,i=V;if(D&&h&&K&&dR((M-H)/K,n/1000))X0=Math.round(Math.min((M-H)/n,z)),n=(M-H)/X0,a=H,i=M;else if(p)a=D?H:a,i=h?M:i,X0=w-1,n=(i-a)/X0;else if(X0=(i-a)/n,UQ(X0,Math.round(X0),n/1000))X0=Math.round(X0);else X0=Math.ceil(X0);let d=Math.max(fq(n),fq(a));Z0=Math.pow(10,e0(W)?d:W),a=Math.round(a*Z0)/Z0,i=Math.round(i*Z0)/Z0;let B0=0;if(D){if(P&&a!==H){if(q.push({value:H}),a<H)B0++;if(UQ(Math.round((a+B0*n)*Z0)/Z0,H,ZT(H,s,J)))B0++}else if(a<H)B0++}for(;B0<X0;++B0){let H0=Math.round((a+B0*n)*Z0)/Z0;if(h&&H0>M)break;q.push({value:H0})}if(h&&P&&i!==M)if(q.length&&UQ(q[q.length-1].value,M,ZT(M,s,J)))q[q.length-1].value=M;else q.push({value:M});else if(!h||i===M)q.push({value:i});return q}function ZT(J,Z,{horizontal:q,minRotation:X}){let Y=O$(X),K=(q?Math.sin(Y):Math.cos(Y))||0.001,H=0.75*Z*(""+J).length;return Math.min(Z/K,H)}class OJ extends x7{constructor(J){super(J);this.start=void 0,this.end=void 0,this._startValue=void 0,this._endValue=void 0,this._valueRange=0}parse(J,Z){if(e0(J))return null;if((typeof J==="number"||J instanceof Number)&&!isFinite(+J))return null;return+J}handleTickRangeOptions(){let{beginAtZero:J}=this.options,{minDefined:Z,maxDefined:q}=this.getUserBounds(),{min:X,max:Y}=this,K=(M)=>X=Z?X:M,H=(M)=>Y=q?Y:M;if(J){let M=X4(X),W=X4(Y);if(M<0&&W<0)H(0);else if(M>0&&W>0)K(0)}if(X===Y){let M=Y===0?1:Math.abs(Y*0.05);if(H(Y+M),!J)K(X-M)}this.min=X,this.max=Y}getTickLimit(){let J=this.options.ticks,{maxTicksLimit:Z,stepSize:q}=J,X;if(q){if(X=Math.ceil(this.max/q)-Math.floor(this.min/q)+1,X>1000)console.warn(`scales.${this.id}.ticks.stepSize: ${q} would result generating up to ${X} ticks. Limiting to 1000.`),X=1000}else X=this.computeTickLimit(),Z=Z||11;if(Z)X=Math.min(Z,X);return X}computeTickLimit(){return Number.POSITIVE_INFINITY}buildTicks(){let J=this.options,Z=J.ticks,q=this.getTickLimit();q=Math.max(2,q);let X={maxTicks:q,bounds:J.bounds,min:J.min,max:J.max,precision:Z.precision,step:Z.stepSize,count:Z.count,maxDigits:this._maxDigits(),horizontal:this.isHorizontal(),minRotation:Z.minRotation||0,includeBounds:Z.includeBounds!==!1},Y=this._range||this,K=qS(X,Y);if(J.bounds==="ticks")zU(K,this,"value");if(J.reverse)K.reverse(),this.start=this.max,this.end=this.min;else this.start=this.min,this.end=this.max;return K}configure(){let J=this.ticks,Z=this.min,q=this.max;if(super.configure(),this.options.offset&&J.length){let X=(q-Z)/Math.max(J.length-1,1)/2;Z-=X,q+=X}this._startValue=Z,this._endValue=q,this._valueRange=q-Z}getLabelForValue(J){return UJ(J,this.chart.options.locale,this.options.ticks.format)}}class MK extends OJ{static id="linear";static defaults={ticks:{callback:FJ.formatters.numeric}};determineDataLimits(){let{min:J,max:Z}=this.getMinMax(!0);this.min=b1(J)?J:0,this.max=b1(Z)?Z:1,this.handleTickRangeOptions()}computeTickLimit(){let J=this.isHorizontal(),Z=J?this.width:this.height,q=O$(this.options.ticks.minRotation),X=(J?Math.sin(q):Math.cos(q))||0.001,Y=this._resolveTickFontOptions(0);return Math.ceil(Z/Math.min(40,Y.lineHeight/X))}getPixelForValue(J){return J===null?NaN:this.getPixelForDecimal((J-this._startValue)/this._valueRange)}getValueForPixel(J){return this._startValue+this.getDecimalForPixel(J)*this._valueRange}}var EJ=(J)=>Math.floor(V$(J)),h7=(J,Z)=>Math.pow(10,EJ(J)+Z);function GT(J){return J/Math.pow(10,EJ(J))===1}function qT(J,Z,q){let X=Math.pow(10,q),Y=Math.floor(J/X);return Math.ceil(Z/X)-Y}function XS(J,Z){let q=Z-J,X=EJ(q);while(qT(J,Z,X)>10)X++;while(qT(J,Z,X)<10)X--;return Math.min(X,EJ(J))}function NS(J,{min:Z,max:q}){Z=t6(J.min,Z);let X=[],Y=EJ(Z),K=XS(Z,q),H=K<0?Math.pow(10,Math.abs(K)):1,M=Math.pow(10,K),W=Y>K?Math.pow(10,Y):0,w=Math.round((Z-W)*H)/H,z=Math.floor((Z-W)/M/10)*M*10,T=Math.floor((w-z)/Math.pow(10,K)),P=t6(J.min,Math.round((W+z+T*Math.pow(10,K))*H)/H);while(P<q){if(X.push({value:P,major:GT(P),significand:T}),T>=10)T=T<15?15:20;else T++;if(T>=20)K++,T=2,H=K>=0?1:H;P=Math.round((W+z+T*Math.pow(10,K))*H)/H}let I=t6(J.max,P);return X.push({value:I,major:GT(I),significand:T}),X}class YS extends x7{static id="logarithmic";static defaults={ticks:{callback:FJ.formatters.logarithmic,major:{enabled:!0}}};constructor(J){super(J);this.start=void 0,this.end=void 0,this._startValue=void 0,this._valueRange=0}parse(J,Z){let q=OJ.prototype.parse.apply(this,[J,Z]);if(q===0){this._zero=!0;return}return b1(q)&&q>0?q:null}determineDataLimits(){let{min:J,max:Z}=this.getMinMax(!0);if(this.min=b1(J)?Math.max(0,J):null,this.max=b1(Z)?Math.max(0,Z):null,this.options.beginAtZero)this._zero=!0;if(this._zero&&this.min!==this._suggestedMin&&!b1(this._userMin))this.min=J===h7(this.min,0)?h7(this.min,-1):h7(this.min,0);this.handleTickRangeOptions()}handleTickRangeOptions(){let{minDefined:J,maxDefined:Z}=this.getUserBounds(),q=this.min,X=this.max,Y=(H)=>q=J?q:H,K=(H)=>X=Z?X:H;if(q===X)if(q<=0)Y(1),K(10);else Y(h7(q,-1)),K(h7(X,1));if(q<=0)Y(h7(X,-1));if(X<=0)K(h7(q,1));this.min=q,this.max=X}buildTicks(){let J=this.options,Z={min:this._userMin,max:this._userMax},q=NS(Z,this);if(J.bounds==="ticks")zU(q,this,"value");if(J.reverse)q.reverse(),this.start=this.max,this.end=this.min;else this.start=this.min,this.end=this.max;return q}getLabelForValue(J){return J===void 0?"0":UJ(J,this.chart.options.locale,this.options.ticks.format)}configure(){let J=this.min;super.configure(),this._startValue=V$(J),this._valueRange=V$(this.max)-V$(J)}getPixelForValue(J){if(J===void 0||J===0)J=this.min;if(J===null||isNaN(J))return NaN;return this.getPixelForDecimal(J===this.min?0:(V$(J)-this._startValue)/this._valueRange)}getValueForPixel(J){let Z=this.getDecimalForPixel(J);return Math.pow(10,this._startValue+Z*this._valueRange)}}function QK(J){let Z=J.ticks;if(Z.display&&J.display){let q=z6(Z.backdropPadding);return d0(Z.font&&Z.font.size,y1.font.size)+q.height}return 0}function US(J,Z,q){return q=_1(q)?q:[q],{w:lR(J,Z.string,q),h:q.length*Z.lineHeight}}function XT(J,Z,q,X,Y){if(J===X||J===Y)return{start:Z-q/2,end:Z+q/2};else if(J<X||J>Y)return{start:Z-q,end:Z};return{start:Z,end:Z+q}}function KS(J){let Z={l:J.left+J._padding.left,r:J.right-J._padding.right,t:J.top+J._padding.top,b:J.bottom-J._padding.bottom},q=Object.assign({},Z),X=[],Y=[],K=J._pointLabels.length,H=J.options.pointLabels,M=H.centerPointLabels?m1/K:0;for(let W=0;W<K;W++){let w=H.setContext(J.getPointLabelContext(W));Y[W]=w.padding;let z=J.getPointPosition(W,J.drawingArea+Y[W],M),T=a1(w.font),P=US(J.ctx,T,J._pointLabels[W]);X[W]=P;let I=n6(J.getIndexAngle(W)+M),E=Math.round(yq(I)),O=XT(E,z.x,P.w,0,180),V=XT(E,z.y,P.h,90,270);BS(q,Z,I,O,V)}J.setCenterPoint(Z.l-q.l,q.r-Z.r,Z.t-q.t,q.b-Z.b),J._pointLabelItems=WS(J,X,Y)}function BS(J,Z,q,X,Y){let K=Math.abs(Math.sin(q)),H=Math.abs(Math.cos(q)),M=0,W=0;if(X.start<Z.l)M=(Z.l-X.start)/K,J.l=Math.min(J.l,Z.l-M);else if(X.end>Z.r)M=(X.end-Z.r)/K,J.r=Math.max(J.r,Z.r+M);if(Y.start<Z.t)W=(Z.t-Y.start)/H,J.t=Math.min(J.t,Z.t-W);else if(Y.end>Z.b)W=(Y.end-Z.b)/H,J.b=Math.max(J.b,Z.b+W)}function HS(J,Z,q){let X=J.drawingArea,{extra:Y,additionalAngle:K,padding:H,size:M}=q,W=J.getPointPosition(Z,X+Y+H,K),w=Math.round(yq(n6(W.angle+o6))),z=RS(W.y,M.h,w),T=FS(w),P=wS(W.x,M.w,T);return{visible:!0,x:W.x,y:z,textAlign:T,left:P,top:z,right:P+M.w,bottom:z+M.h}}function MS(J,Z){if(!Z)return!0;let{left:q,top:X,right:Y,bottom:K}=J;return!(x4({x:q,y:X},Z)||x4({x:q,y:K},Z)||x4({x:Y,y:X},Z)||x4({x:Y,y:K},Z))}function WS(J,Z,q){let X=[],Y=J._pointLabels.length,K=J.options,{centerPointLabels:H,display:M}=K.pointLabels,W={extra:QK(K)/2,additionalAngle:H?m1/Y:0},w;for(let z=0;z<Y;z++){W.padding=q[z],W.size=Z[z];let T=HS(J,z,W);if(X.push(T),M==="auto"){if(T.visible=MS(T,w),T.visible)w=T}}return X}function FS(J){if(J===0||J===180)return"center";else if(J<180)return"left";return"right"}function wS(J,Z,q){if(q==="right")J-=Z;else if(q==="center")J-=Z/2;return J}function RS(J,Z,q){if(q===90||q===270)J-=Z/2;else if(q>270||q<90)J-=Z;return J}function zS(J,Z,q){let{left:X,top:Y,right:K,bottom:H}=q,{backdropColor:M}=Z;if(!e0(M)){let W=y8(Z.borderRadius),w=z6(Z.backdropPadding);J.fillStyle=M;let z=X-w.left,T=Y-w.top,P=K-X+w.width,I=H-Y+w.height;if(Object.values(W).some((E)=>E!==0))J.beginPath(),BQ(J,{x:z,y:T,w:P,h:I,radius:W}),J.fill();else J.fillRect(z,T,P,I)}}function TS(J,Z){let{ctx:q,options:{pointLabels:X}}=J;for(let Y=Z-1;Y>=0;Y--){let K=J._pointLabelItems[Y];if(!K.visible)continue;let H=X.setContext(J.getPointLabelContext(Y));zS(q,H,K);let M=a1(H.font),{x:W,y:w,textAlign:z}=K;v8(q,J._pointLabels[Y],W,w+M.lineHeight/2,M,{color:H.color,textAlign:z,textBaseline:"middle"})}}function xT(J,Z,q,X){let{ctx:Y}=J;if(q)Y.arc(J.xCenter,J.yCenter,Z,0,i6);else{let K=J.getPointPosition(0,Z);Y.moveTo(K.x,K.y);for(let H=1;H<X;H++)K=J.getPointPosition(H,Z),Y.lineTo(K.x,K.y)}}function LS(J,Z,q,X,Y){let K=J.ctx,H=Z.circular,{color:M,lineWidth:W}=Z;if(!H&&!X||!M||!W||q<0)return;K.save(),K.strokeStyle=M,K.lineWidth=W,K.setLineDash(Y.dash||[]),K.lineDashOffset=Y.dashOffset,K.beginPath(),xT(J,q,H,X),K.closePath(),K.stroke(),K.restore()}function PS(J,Z,q){return A$(J,{label:q,index:Z,type:"pointLabel"})}class CS extends OJ{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:FJ.formatters.numeric},pointLabels:{backdropColor:void 0,backdropPadding:2,display:!0,font:{size:10},callback(J){return J},padding:5,centerPointLabels:!1}};static defaultRoutes={"angleLines.color":"borderColor","pointLabels.color":"color","ticks.color":"color"};static descriptors={angleLines:{_fallback:"grid"}};constructor(J){super(J);this.xCenter=void 0,this.yCenter=void 0,this.drawingArea=void 0,this._pointLabels=[],this._pointLabelItems=[]}setDimensions(){let J=this._padding=z6(QK(this.options)/2),Z=this.width=this.maxWidth-J.width,q=this.height=this.maxHeight-J.height;this.xCenter=Math.floor(this.left+Z/2+J.left),this.yCenter=Math.floor(this.top+q/2+J.top),this.drawingArea=Math.floor(Math.min(Z,q)/2)}determineDataLimits(){let{min:J,max:Z}=this.getMinMax(!1);this.min=b1(J)&&!isNaN(J)?J:0,this.max=b1(Z)&&!isNaN(Z)?Z:0,this.handleTickRangeOptions()}computeTickLimit(){return Math.ceil(this.drawingArea/QK(this.options))}generateTickLabels(J){OJ.prototype.generateTickLabels.call(this,J),this._pointLabels=this.getLabels().map((Z,q)=>{let X=z1(this.options.pointLabels.callback,[Z,q],this);return X||X===0?X:""}).filter((Z,q)=>this.chart.getDataVisibility(q))}fit(){let J=this.options;if(J.display&&J.pointLabels.display)KS(this);else this.setCenterPoint(0,0,0,0)}setCenterPoint(J,Z,q,X){this.xCenter+=Math.floor((J-Z)/2),this.yCenter+=Math.floor((q-X)/2),this.drawingArea-=Math.min(this.drawingArea/2,Math.max(J,Z,q,X))}getIndexAngle(J){let Z=i6/(this._pointLabels.length||1),q=this.options.startAngle||0;return n6(J*Z+O$(q))}getDistanceFromCenterForValue(J){if(e0(J))return NaN;let Z=this.drawingArea/(this.max-this.min);if(this.options.reverse)return(this.max-J)*Z;return(J-this.min)*Z}getValueForDistanceFromCenter(J){if(e0(J))return NaN;let Z=J/(this.drawingArea/(this.max-this.min));return this.options.reverse?this.max-Z:this.min+Z}getPointLabelContext(J){let Z=this._pointLabels||[];if(J>=0&&J<Z.length){let q=Z[J];return PS(this.getContext(),J,q)}}getPointPosition(J,Z,q=0){let X=this.getIndexAngle(J)-o6+q;return{x:Math.cos(X)*Z+this.xCenter,y:Math.sin(X)*Z+this.yCenter,angle:X}}getPointPositionForValue(J,Z){return this.getPointPosition(J,this.getDistanceFromCenterForValue(Z))}getBasePosition(J){return this.getPointPositionForValue(J||0,this.getBaseValue())}getPointLabelPosition(J){let{left:Z,top:q,right:X,bottom:Y}=this._pointLabelItems[J];return{left:Z,top:q,right:X,bottom:Y}}drawBackground(){let{backgroundColor:J,grid:{circular:Z}}=this.options;if(J){let q=this.ctx;q.save(),q.beginPath(),xT(this,this.getDistanceFromCenterForValue(this._endValue),Z,this._pointLabels.length),q.closePath(),q.fillStyle=J,q.fill(),q.restore()}}drawGrid(){let J=this.ctx,Z=this.options,{angleLines:q,grid:X,border:Y}=Z,K=this._pointLabels.length,H,M,W;if(Z.pointLabels.display)TS(this,K);if(X.display)this.ticks.forEach((w,z)=>{if(z!==0||z===0&&this.min<0){M=this.getDistanceFromCenterForValue(w.value);let T=this.getContext(z),P=X.setContext(T),I=Y.setContext(T);LS(this,P,M,K,I)}});if(q.display){J.save();for(H=K-1;H>=0;H--){let w=q.setContext(this.getPointLabelContext(H)),{color:z,lineWidth:T}=w;if(!T||!z)continue;J.lineWidth=T,J.strokeStyle=z,J.setLineDash(w.borderDash),J.lineDashOffset=w.borderDashOffset,M=this.getDistanceFromCenterForValue(Z.reverse?this.min:this.max),W=this.getPointPosition(H,M),J.beginPath(),J.moveTo(this.xCenter,this.yCenter),J.lineTo(W.x,W.y),J.stroke()}J.restore()}}drawBorder(){}drawLabels(){let J=this.ctx,Z=this.options,q=Z.ticks;if(!q.display)return;let X=this.getIndexAngle(0),Y,K;J.save(),J.translate(this.xCenter,this.yCenter),J.rotate(X),J.textAlign="center",J.textBaseline="middle",this.ticks.forEach((H,M)=>{if(M===0&&this.min>=0&&!Z.reverse)return;let W=q.setContext(this.getContext(M)),w=a1(W.font);if(Y=this.getDistanceFromCenterForValue(this.ticks[M].value),W.showLabelBackdrop){J.font=w.string,K=J.measureText(H.label).width,J.fillStyle=W.backdropColor;let z=z6(W.backdropPadding);J.fillRect(-K/2-z.left,-Y-w.size/2-z.top,K+z.width,w.size+z.height)}v8(J,H.label,0,-Y,w,{color:W.color,strokeColor:W.textStrokeColor,strokeWidth:W.textStrokeWidth})}),J.restore()}drawTitle(){}}var eq={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}},$5=Object.keys(eq);function NT(J,Z){return J-Z}function YT(J,Z){if(e0(Z))return null;let q=J._adapter,{parser:X,round:Y,isoWeekday:K}=J._parseOpts,H=Z;if(typeof X==="function")H=X(H);if(!b1(H))H=typeof X==="string"?q.parse(H,X):q.parse(H);if(H===null)return null;if(Y)H=Y==="week"&&(KQ(K)||K===!0)?q.startOf(H,"isoWeek",K):q.startOf(H,Y);return+H}function UT(J,Z,q,X){let Y=$5.length;for(let K=$5.indexOf(J);K<Y-1;++K){let H=eq[$5[K]],M=H.steps?H.steps:Number.MAX_SAFE_INTEGER;if(H.common&&Math.ceil((q-Z)/(M*H.size))<=X)return $5[K]}return $5[Y-1]}function _S(J,Z,q,X,Y){for(let K=$5.length-1;K>=$5.indexOf(q);K--){let H=$5[K];if(eq[H].common&&J._adapter.diff(Y,X,H)>=Z-1)return H}return $5[q?$5.indexOf(q):0]}function IS(J){for(let Z=$5.indexOf(J)+1,q=$5.length;Z<q;++Z)if(eq[$5[Z]].common)return $5[Z]}function KT(J,Z,q){if(!q)J[Z]=!0;else if(q.length){let{lo:X,hi:Y}=hq(q,Z),K=q[X]>=Z?q[X]:q[Y];J[K]=!0}}function VS(J,Z,q,X){let Y=J._adapter,K=+Y.startOf(Z[0].value,X),H=Z[Z.length-1].value,M,W;for(M=K;M<=H;M=+Y.add(M,1,X))if(W=q[M],W>=0)Z[W].major=!0;return Z}function BT(J,Z,q){let X=[],Y={},K=Z.length,H,M;for(H=0;H<K;++H)M=Z[H],Y[M]=H,X.push({value:M,major:!1});return K===0||!q?X:VS(J,X,Y,q)}class JK extends x7{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(J){super(J);this._cache={data:[],labels:[],all:[]},this._unit="day",this._majorUnit=void 0,this._offsets={},this._normalized=!1,this._parseOpts=void 0}init(J,Z={}){let q=J.time||(J.time={}),X=this._adapter=new qA._date(J.adapters.date);X.init(Z),NQ(q.displayFormats,X.formats()),this._parseOpts={parser:q.parser,round:q.round,isoWeekday:q.isoWeekday},super.init(J),this._normalized=Z.normalized}parse(J,Z){if(J===void 0)return null;return YT(this,J)}beforeLayout(){super.beforeLayout(),this._cache={data:[],labels:[],all:[]}}determineDataLimits(){let J=this.options,Z=this._adapter,q=J.time.unit||"day",{min:X,max:Y,minDefined:K,maxDefined:H}=this.getUserBounds();function M(W){if(!K&&!isNaN(W.min))X=Math.min(X,W.min);if(!H&&!isNaN(W.max))Y=Math.max(Y,W.max)}if(!K||!H){if(M(this._getLabelBounds()),J.bounds!=="ticks"||J.ticks.source!=="labels")M(this.getMinMax(!1))}X=b1(X)&&!isNaN(X)?X:+Z.startOf(Date.now(),q),Y=b1(Y)&&!isNaN(Y)?Y:+Z.endOf(Date.now(),q)+1,this.min=Math.min(X,Y-1),this.max=Math.max(X+1,Y)}_getLabelBounds(){let J=this.getLabelTimestamps(),Z=Number.POSITIVE_INFINITY,q=Number.NEGATIVE_INFINITY;if(J.length)Z=J[0],q=J[J.length-1];return{min:Z,max:q}}buildTicks(){let J=this.options,Z=J.time,q=J.ticks,X=q.source==="labels"?this.getLabelTimestamps():this._generate();if(J.bounds==="ticks"&&X.length)this.min=this._userMin||X[0],this.max=this._userMax||X[X.length-1];let Y=this.min,K=this.max,H=oR(X,Y,K);if(this._unit=Z.unit||(q.autoSkip?UT(Z.minUnit,this.min,this.max,this._getLabelCapacity(Y)):_S(this,H.length,Z.minUnit,this.min,this.max)),this._majorUnit=!q.major.enabled||this._unit==="year"?void 0:IS(this._unit),this.initOffsets(X),J.reverse)H.reverse();return BT(this,H,this._majorUnit)}afterAutoSkip(){if(this.options.offsetAfterAutoskip)this.initOffsets(this.ticks.map((J)=>+J.value))}initOffsets(J=[]){let Z=0,q=0,X,Y;if(this.options.offset&&J.length){if(X=this.getDecimalForValue(J[0]),J.length===1)Z=1-X;else Z=(this.getDecimalForValue(J[1])-X)/2;if(Y=this.getDecimalForValue(J[J.length-1]),J.length===1)q=Y;else q=(Y-this.getDecimalForValue(J[J.length-2]))/2}let K=J.length<3?0.5:0.25;Z=a6(Z,0,K),q=a6(q,0,K),this._offsets={start:Z,end:q,factor:1/(Z+1+q)}}_generate(){let J=this._adapter,Z=this.min,q=this.max,X=this.options,Y=X.time,K=Y.unit||UT(Y.minUnit,Z,q,this._getLabelCapacity(Z)),H=d0(X.ticks.stepSize,1),M=K==="week"?Y.isoWeekday:!1,W=KQ(M)||M===!0,w={},z=Z,T,P;if(W)z=+J.startOf(z,"isoWeek",M);if(z=+J.startOf(z,W?"day":K),J.diff(q,Z,K)>1e5*H)throw Error(Z+" and "+q+" are too far apart with stepSize of "+H+" "+K);let I=X.ticks.source==="data"&&this.getDataTimestamps();for(T=z,P=0;T<q;T=+J.add(T,H,K),P++)KT(w,T,I);if(T===q||X.bounds==="ticks"||P===1)KT(w,T,I);return Object.keys(w).sort(NT).map((E)=>+E)}getLabelForValue(J){let Z=this._adapter,q=this.options.time;if(q.tooltipFormat)return Z.format(J,q.tooltipFormat);return Z.format(J,q.displayFormats.datetime)}format(J,Z){let X=this.options.time.displayFormats,Y=this._unit,K=Z||X[Y];return this._adapter.format(J,K)}_tickFormatFunction(J,Z,q,X){let Y=this.options,K=Y.ticks.callback;if(K)return z1(K,[J,Z,q],this);let H=Y.time.displayFormats,M=this._unit,W=this._majorUnit,w=M&&H[M],z=W&&H[W],T=q[Z],P=W&&z&&T&&T.major;return this._adapter.format(J,X||(P?z:w))}generateTickLabels(J){let Z,q,X;for(Z=0,q=J.length;Z<q;++Z)X=J[Z],X.label=this._tickFormatFunction(X.value,Z,J)}getDecimalForValue(J){return J===null?NaN:(J-this.min)/(this.max-this.min)}getPixelForValue(J){let Z=this._offsets,q=this.getDecimalForValue(J);return this.getPixelForDecimal((Z.start+q)*Z.factor)}getValueForPixel(J){let Z=this._offsets,q=this.getDecimalForPixel(J)/Z.factor-Z.start;return this.min+q*(this.max-this.min)}_getLabelSize(J){let Z=this.options.ticks,q=this.ctx.measureText(J).width,X=O$(this.isHorizontal()?Z.maxRotation:Z.minRotation),Y=Math.cos(X),K=Math.sin(X),H=this._resolveTickFontOptions(0).size;return{w:q*Y+H*K,h:q*K+H*Y}}_getLabelCapacity(J){let Z=this.options.time,q=Z.displayFormats,X=q[Z.unit]||q.millisecond,Y=this._tickFormatFunction(J,0,BT(this,[J],this._majorUnit),X),K=this._getLabelSize(Y),H=Math.floor(this.isHorizontal()?this.width/K.w:this.height/K.h)-1;return H>0?H:1}getDataTimestamps(){let J=this._cache.data||[],Z,q;if(J.length)return J;let X=this.getMatchingVisibleMetas();if(this._normalized&&X.length)return this._cache.data=X[0].controller.getAllParsedValues(this);for(Z=0,q=X.length;Z<q;++Z)J=J.concat(X[Z].controller.getAllParsedValues(this));return this._cache.data=this.normalize(J)}getLabelTimestamps(){let J=this._cache.labels||[],Z,q;if(J.length)return J;let X=this.getLabels();for(Z=0,q=X.length;Z<q;++Z)J.push(YT(this,X[Z]));return this._cache.labels=this._normalized?J:this.normalize(J)}normalize(J){return _U(J.sort(NT))}}function sq(J,Z,q){let X=0,Y=J.length-1,K,H,M,W;if(q){if(Z>=J[X].pos&&Z<=J[Y].pos)({lo:X,hi:Y}=S8(J,"pos",Z));({pos:K,time:M}=J[X]),{pos:H,time:W}=J[Y]}else{if(Z>=J[X].time&&Z<=J[Y].time)({lo:X,hi:Y}=S8(J,"time",Z));({time:K,pos:M}=J[X]),{time:H,pos:W}=J[Y]}let w=H-K;return w?M+(W-M)*(Z-K)/w:M}class OS extends JK{static id="timeseries";static defaults=JK.defaults;constructor(J){super(J);this._table=[],this._minPos=void 0,this._tableRange=void 0}initOffsets(){let J=this._getTimestampsForTable(),Z=this._table=this.buildLookupTable(J);this._minPos=sq(Z,this.min),this._tableRange=sq(Z,this.max)-this._minPos,super.initOffsets(J)}buildLookupTable(J){let{min:Z,max:q}=this,X=[],Y=[],K,H,M,W,w;for(K=0,H=J.length;K<H;++K)if(W=J[K],W>=Z&&W<=q)X.push(W);if(X.length<2)return[{time:Z,pos:0},{time:q,pos:1}];for(K=0,H=X.length;K<H;++K)if(w=X[K+1],M=X[K-1],W=X[K],Math.round((w+M)/2)!==W)Y.push({time:W,pos:K/(H-1)});return Y}_generate(){let J=this.min,Z=this.max,q=super.getDataTimestamps();if(!q.includes(J)||!q.length)q.splice(0,0,J);if(!q.includes(Z)||q.length===1)q.push(Z);return q.sort((X,Y)=>X-Y)}_getTimestampsForTable(){let J=this._cache.all||[];if(J.length)return J;let Z=this.getDataTimestamps(),q=this.getLabelTimestamps();if(Z.length&&q.length)J=this.normalize(Z.concat(q));else J=Z.length?Z:q;return J=this._cache.all=J,J}getDecimalForValue(J){return(sq(this._table,J)-this._minPos)/this._tableRange}getValueForPixel(J){let Z=this._offsets,q=this.getDecimalForPixel(J)/Z.factor-Z.start;return sq(this._table,q*this._tableRange+this._minPos,!0)}}u7.register(HK,MK,UK,HQ,YK,fT,hT,yT,kT);var RC=t(rT(),1);var f$=t(I1(),1);var QX=t(I1(),1);var sT=(J)=>(J.match(/\d+[xX]\d+|[A-Z]?[a-z]+|[A-Z]|\d+/g)??[]).join("-").toLowerCase();function nT(J,Z,q=[]){if(Z==null)throw Error("[lucide]: iconNode is required when icon name is used");return{name:sT(J),size:24,node:Z,...q.length>0?{aliases:q}:{}}}var oT=(J)=>{let Z="",q=!1;for(let X of J){if(X==="-"||X==="_"||X<=" "){q=Z.length>0;continue}if(Z.length===0)Z+=X.toLowerCase();else Z+=q?X.toUpperCase():X;q=!1}return Z};var iT=(J)=>{let Z=oT(J);return Z.charAt(0).toUpperCase()+Z.slice(1)};var SJ=t(I1(),1);var jJ=(...J)=>{let Z=new Set;for(let q of J){if(typeof q!=="string")continue;for(let X of q.split(/\s+/))if(X)Z.add(X)}return[...Z].join(" ")};var d7={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":2,"stroke-linecap":"round","stroke-linejoin":"round"};function wK(J){return J!==null&&J!==void 0}function aT(J,Z={}){let q=Z.attributeNames??{},X=(P)=>q[P]??P,Y=J.size??J.width??d7.width,K=J.size??J.height??d7.height,H=J.aliases?.filter((P)=>typeof P==="string"&&P.trim()!=="").map((P)=>`lucide-${P}`)??[],M=[...J.name?[`lucide-${J.name}`]:[],...H],W=Z.className?.split(" ").filter(Boolean)??[],w=Z.includeDefaultClasses===!1?jJ(...W):jJ("lucide",...M,...W),z=Z.strokeWidth??d7["stroke-width"];if(Z.absoluteStrokeWidth){let P=Number(z)*Number(J.size??J.width??d7.width)/Number(Z.size??Z.width??d7.width);if(Number.isFinite(P))z=P}return["svg",{...Object.entries(d7).reduce((P,[I,E])=>{return P[X(I)]=E,P},{}),..."color"in Z&&Z.color&&{[X("stroke")]:Z.color},..."size"in Z&&wK(Z.size)&&{[X("width")]:Z.size,[X("height")]:Z.size},..."width"in Z&&wK(Z.width)&&{[X("width")]:Z.width},..."height"in Z&&wK(Z.height)&&{[X("height")]:Z.height},[X("stroke-width")]:z,...w&&{[X("class")]:w},[X("viewBox")]:`0 0 ${Y} ${K}`,...Z.hasA11yProp===!1?{[X("aria-hidden")]:"true"}:{},..."attributes"in Z&&Z.attributes},J.node.map((P)=>{let[I,E,O]=P,V=Z.nonScalingStroke?{[X("vector-effect")]:"non-scaling-stroke",...E}:E;return O?[I,V,O]:[I,V]})]}function tT(J,Z={}){return aT(J,{...Z,attributeNames:{...Z.attributeNames,class:"className","stroke-width":"strokeWidth","stroke-linecap":"strokeLinecap","stroke-linejoin":"strokeLinejoin","vector-effect":"vectorEffect"}})}var eT=(J)=>{if(J==null||typeof J!=="object")return!1;for(let Z in J)if(Object.prototype.hasOwnProperty.call(J,Z)&&(Z.startsWith("aria-")||Z==="role"||Z==="title")&&J[Z]!=null)return!0;return!1};var WQ=t(I1(),1),kS=WQ.createContext({});var $L=()=>WQ.useContext(kS);var QL=SJ.forwardRef(({color:J,size:Z,width:q,height:X,strokeWidth:Y,absoluteStrokeWidth:K,nonScalingStroke:H,className:M="",children:W,iconNode:w=[],icon:z={node:w,aliases:[],size:24},...T},P)=>{let{size:I=24,strokeWidth:E=2,absoluteStrokeWidth:O=!1,nonScalingStroke:V=!1,color:D="currentColor",className:h=""}=$L()??{},p=Boolean(W)||eT(T),[s,n,Z0=[]]=tT(z,{color:J??D,width:q??Z??I,height:X??Z??I,strokeWidth:Y??E,absoluteStrokeWidth:K??O,nonScalingStroke:H??V,className:jJ(h,M),hasA11yProp:p,attributes:T});return SJ.createElement(s,{ref:P,...n},[...Z0.map(([a,i])=>SJ.createElement(a,i)),...Array.isArray(W)?W:[W]])});function E0(J,Z=[],q=[]){let X=typeof J==="string"?nT(J,Z,q):J,Y=QX.forwardRef(({className:K,...H},M)=>QX.createElement(QL,{ref:M,icon:X,className:K,...H}));if(X.name)Y.displayName=iT(X.name);return Y}var JL={name:"circle-exclamation-point",size:24,node:[["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"}]],aliases:["alert-circle","circle-alert"]};JL.node;var N4=E0(JL);var ZL={name:"face-slightly-smiling",size:24,node:[["path",{d:"M15 10V9",key:"4dkmfx"}],["path",{d:"M16.472 15a6 6 0 01-8.943 0",key:"7qomzy"}],["path",{d:"M9 10V9",key:"1lazqi"}],["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]],aliases:["smile"]};ZL.node;var g8=E0(ZL);var GL={name:"activity",size:24,node:[["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"}]]};GL.node;var DJ=E0(GL);var qL={name:"check",size:24,node:[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]};qL.node;var vJ=E0(qL);var XL={name:"chevron-down",size:24,node:[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]};XL.node;var kJ=E0(XL);var NL={name:"chevron-up",size:24,node:[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]]};NL.node;var bJ=E0(NL);var YL={name:"clock",size:24,node:[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 6v6l4 2",key:"mmk7yg"}]]};YL.node;var yJ=E0(YL);var UL={name:"coins",size:24,node:[["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"}]]};UL.node;var p7=E0(UL);var KL={name:"copy",size:24,node:[["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"}]]};KL.node;var fJ=E0(KL);var BL={name:"cpu",size:24,node:[["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"}]]};BL.node;var gJ=E0(BL);var HL={name:"folder",size:24,node:[["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"}]]};HL.node;var hJ=E0(HL);var ML={name:"gauge",size:24,node:[["path",{d:"m12 14 4-4",key:"9kzdfg"}],["path",{d:"M3.34 19a10 10 0 1 1 17.32 0",key:"19p75a"}]]};ML.node;var xJ=E0(ML);var WL={name:"hash",size:24,node:[["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"}]]};WL.node;var uJ=E0(WL);var FL={name:"inbox",size:24,node:[["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"}]]};FL.node;var mJ=E0(FL);var wL={name:"layout-dashboard",size:24,node:[["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"}]]};wL.node;var dJ=E0(wL);var RL={name:"menu",size:24,node:[["path",{d:"M4 5h16",key:"1tepv9"}],["path",{d:"M4 12h16",key:"1lakjw"}],["path",{d:"M4 19h16",key:"1djgab"}]]};RL.node;var pJ=E0(RL);var zL={name:"monitor",size:24,node:[["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"}]]};zL.node;var cJ=E0(zL);var TL={name:"moon",size:24,node:[["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"}]]};TL.node;var lJ=E0(TL);var LL={name:"refresh-cw",size:24,node:[["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"}]]};LL.node;var rJ=E0(LL);var PL={name:"star",size:24,node:[["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"}]]};PL.node;var sJ=E0(PL);var CL={name:"sun",size:24,node:[["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"}]]};CL.node;var nJ=E0(CL);var _L={name:"trending-up",size:24,node:[["path",{d:"M16 7h6v6",key:"box55l"}],["path",{d:"m22 7-8.5 8.5-5-5L2 17",key:"1t1m79"}]]};_L.node;var oJ=E0(_L);var IL={name:"x",size:24,node:[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]};IL.node;var c7=E0(IL);var VL={name:"zap",size:24,node:[["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"}]]};VL.node;var iJ=E0(VL);var rL=t(I1(),1);var aJ=[{id:"overview",label:"Overview",icon:dJ},{id:"requests",label:"Requests",icon:DJ},{id:"errors",label:"Errors",icon:N4},{id:"models",label:"Models",icon:gJ},{id:"costs",label:"Costs",icon:p7},{id:"behavior",label:"Behavior",shortLabel:"Behavior",icon:g8},{id:"projects",label:"Projects",icon:hJ},{id:"gain",label:"Gain",icon:oJ}];var p5=t(M0(),1);function RK({activeSection:J,onSectionChange:Z,className:q=""}){return p5.jsxDEV("aside",{className:`stats-nav-rail ${q}`,children:[p5.jsxDEV("div",{className:"stats-nav-rail-header",children:p5.jsxDEV("div",{className:"stats-logo-container",children:[p5.jsxDEV("span",{className:"stats-logo-text",children:"JEOPI"},void 0,!1,void 0,this),p5.jsxDEV("span",{className:"stats-logo-subtext",children:"Encode intention. Decode software."},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this),p5.jsxDEV("nav",{className:"stats-nav-rail-menu",children:aJ.map((X)=>{let Y=X.id===J,K=X.icon;return p5.jsxDEV("button",{type:"button",onClick:()=>Z(X.id),className:"stats-nav-rail-item","data-active":Y?"true":"false","aria-current":Y?"page":void 0,children:[p5.jsxDEV(K,{size:16,className:"stats-nav-rail-item-icon"},void 0,!1,void 0,this),p5.jsxDEV("span",{className:"stats-nav-rail-item-label",children:X.label},void 0,!1,void 0,this)]},X.id,!0,void 0,this)})},void 0,!1,void 0,this),p5.jsxDEV("div",{className:"stats-nav-rail-footer",children:p5.jsxDEV("span",{className:"stats-version-tag",children:"jeopi stats v1.0.0"},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}var zK=t(M0(),1),yS=[{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 OL({value:J,onChange:Z,className:q=""}){return zK.jsxDEV("div",{className:`stats-range-control ${q}`,role:"radiogroup","aria-label":"Select time range",children:yS.map((X)=>{let Y=X.value===J;return zK.jsxDEV("button",{type:"button",role:"radio","aria-checked":Y,"data-active":Y?"true":"false",className:"stats-range-control-btn",onClick:()=>Z(X.value),children:X.label},X.value,!1,void 0,this)})},void 0,!1,void 0,this)}var TK=t(I1(),1);class EL extends Error{status;endpoint;constructor(J,Z,q){super(q);this.name="ApiError",this.status=J,this.endpoint=Z}}async function p4(J,Z){let q=await fetch(J,Z);if(!q.ok)throw new EL(q.status,J,`HTTP error ${q.status} on ${J}`);return q.json()}async function AL(J="24h",Z){return p4(`/api/stats/overview?range=${encodeURIComponent(J)}`,{signal:Z})}async function jL(J="24h",Z){return p4(`/api/stats/model-dashboard?range=${encodeURIComponent(J)}`,{signal:Z})}async function SL(J="24h",Z){return p4(`/api/stats/costs?range=${encodeURIComponent(J)}`,{signal:Z})}async function JX(J=50,Z){return p4(`/api/stats/recent?limit=${J}`,{signal:Z})}async function DL(J=50,Z){return p4(`/api/stats/errors?limit=${J}`,{signal:Z})}async function vL(J,Z){return p4(`/api/request/${J}`,{signal:Z})}async function kL(J){return p4("/api/sync",{signal:J})}async function bL(J="24h",Z){return p4(`/api/stats/behavior?range=${encodeURIComponent(J)}`,{signal:Z})}async function yL(J="24h",Z){return p4(`/api/stats/folders?range=${encodeURIComponent(J)}`,{signal:Z})}async function fL(J="24h",Z,q){let X=new URLSearchParams({range:J});if(Z)X.set("project",Z);return p4(`/api/stats/gain?${X}`,{signal:q})}var tJ=t(M0(),1);function gL({onSyncStart:J,onSyncComplete:Z,className:q=""}){let[X,Y]=TK.useState(!1),[K,H]=TK.useState(null),M=async()=>{if(X)return;if(Y(!0),H(null),J)J();try{let W=await kL(),w={processed:typeof W?.processed==="number"?W.processed:0,files:typeof W?.files==="number"?W.files:0,totalMessages:typeof W?.totalMessages==="number"?W.totalMessages:0};if(H({type:"success",message:`Synced: ${w.processed} new request${w.processed===1?"":"s"} found.`}),Z)Z({success:!0,data:w})}catch(W){let w=W instanceof Error?W.message:String(W);if(H({type:"error",message:`Sync failed: ${w}`}),Z)Z({success:!1,error:w})}finally{Y(!1)}};return tJ.jsxDEV("div",{className:`stats-sync-container ${q}`,children:[K&&tJ.jsxDEV("span",{className:"stats-sync-status-msg","data-type":K.type,children:K.message},void 0,!1,void 0,this),tJ.jsxDEV("button",{type:"button",onClick:M,disabled:X,className:"stats-button stats-button-primary stats-sync-btn","aria-busy":X,children:[tJ.jsxDEV(rJ,{size:14,className:`stats-sync-icon ${X?"stats-spin":""}`},void 0,!1,void 0,this),X?"Syncing...":"Sync DB"]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)}var ZX=t(I1(),1),hL="jeopi-stats-theme",xL="(prefers-color-scheme: dark)";function fS(){if(typeof localStorage>"u")return"system";let J=localStorage.getItem(hL);return J==="light"||J==="dark"||J==="system"?J:"system"}function uL(){if(typeof window>"u")return"dark";return window.matchMedia(xL).matches?"dark":"light"}var r7=fS(),eJ=r7==="system"?uL():r7,LK=new Set;function mL(){for(let J of LK)J()}function PK(){if(eJ=r7==="system"?uL():r7,typeof document<"u")document.documentElement.dataset.theme=eJ,document.documentElement.style.colorScheme=eJ}if(typeof window<"u")PK(),window.matchMedia(xL).addEventListener("change",()=>{if(r7==="system")PK(),mL()});function gS(J){if(r7=J,typeof localStorage<"u")localStorage.setItem(hL,J);PK(),mL()}function CK(J){return LK.add(J),()=>LK.delete(J)}function c5(){return ZX.useSyncExternalStore(CK,()=>eJ,()=>"dark")}function dL(){let J=ZX.useSyncExternalStore(CK,()=>r7,()=>"system"),Z=ZX.useSyncExternalStore(CK,()=>eJ,()=>"dark");return{preference:J,resolved:Z,setPreference:gS}}var _K=t(M0(),1),hS={system:"light",light:"dark",dark:"system"},xS={system:cJ,light:nJ,dark:lJ},pL={system:"System theme",light:"Light theme",dark:"Dark theme"};function cL(){let{preference:J,setPreference:Z}=dL(),q=xS[J];return _K.jsxDEV("button",{type:"button",className:"stats-theme-toggle",onClick:()=>Z(hS[J]),"aria-label":`${pL[J]} (click to switch)`,title:`${pL[J]} — click to switch`,children:_K.jsxDEV(q,{size:16},void 0,!1,void 0,this)},void 0,!1,void 0,this)}var l5=t(M0(),1);function lL({activeSection:J,range:Z,onRangeChange:q,updatedAt:X,onSyncStart:Y,onSyncComplete:K,onMenuToggle:H,className:M=""}){let w=aJ.find((T)=>T.id===J)?.label||"Observability",z=(T)=>{if(!T)return"Not updated";return`Updated ${new Date(T).toLocaleTimeString([],{hour:"2-digit",minute:"2-digit",second:"2-digit"})}`};return l5.jsxDEV("header",{className:`stats-top-bar ${M}`,children:[l5.jsxDEV("div",{className:"stats-top-bar-left",children:[H&&l5.jsxDEV("button",{type:"button",onClick:H,className:"stats-mobile-menu-btn","aria-label":"Open navigation menu",children:l5.jsxDEV(pJ,{size:20},void 0,!1,void 0,this)},void 0,!1,void 0,this),l5.jsxDEV("h1",{className:"stats-page-title",children:w},void 0,!1,void 0,this)]},void 0,!0,void 0,this),l5.jsxDEV("div",{className:"stats-top-bar-right",children:[l5.jsxDEV("div",{className:"stats-top-bar-meta",children:l5.jsxDEV("span",{className:"stats-last-updated",title:X?new Date(X).toLocaleString():void 0,children:z(X)},void 0,!1,void 0,this)},void 0,!1,void 0,this),l5.jsxDEV(OL,{value:Z,onChange:q},void 0,!1,void 0,this),l5.jsxDEV(cL,{},void 0,!1,void 0,this),l5.jsxDEV(gL,{onSyncStart:Y,onSyncComplete:K},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)}var E6=t(M0(),1);function sL({activeSection:J,onSectionChange:Z,range:q,onRangeChange:X,updatedAt:Y,onSyncStart:K,onSyncComplete:H,children:M}){let[W,w]=rL.useState(!1),z=(T)=>{Z(T),w(!1)};return E6.jsxDEV("div",{className:"stats-app-container",children:[E6.jsxDEV(RK,{activeSection:J,onSectionChange:z,className:"stats-desktop-nav"},void 0,!1,void 0,this),W&&E6.jsxDEV("div",{className:"stats-mobile-drawer-overlay",onClick:()=>w(!1),role:"presentation",children:E6.jsxDEV("div",{className:"stats-mobile-drawer",onClick:(T)=>T.stopPropagation(),role:"dialog","aria-modal":"true","aria-label":"Navigation menu",children:[E6.jsxDEV("div",{className:"stats-mobile-drawer-header",children:[E6.jsxDEV("div",{className:"stats-logo-container",children:[E6.jsxDEV("span",{className:"stats-logo-text",children:"JEOPI"},void 0,!1,void 0,this),E6.jsxDEV("span",{className:"stats-logo-subtext",children:"Encode intention. Decode software."},void 0,!1,void 0,this)]},void 0,!0,void 0,this),E6.jsxDEV("button",{type:"button",onClick:()=>w(!1),className:"stats-drawer-close-btn","aria-label":"Close navigation menu",children:E6.jsxDEV(c7,{size:18},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),E6.jsxDEV(RK,{activeSection:J,onSectionChange:z,className:"stats-mobile-nav"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this),E6.jsxDEV("div",{className:"stats-main-pane",children:[E6.jsxDEV(lL,{activeSection:J,range:q,onRangeChange:X,updatedAt:Y,onSyncStart:K,onSyncComplete:H,onMenuToggle:()=>w(!0)},void 0,!1,void 0,this),E6.jsxDEV("main",{className:"stats-content-area",children:E6.jsxDEV("div",{className:"stats-content-inner",children:M},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 v$=t(I1(),1),uS=["overview","requests","errors","models","costs","behavior","projects","gain"],nL=["1h","24h","7d","30d","90d","all"];function IK(J){let Z=J.replace(/^#\/?/,""),[q,X]=Z.split("?"),Y=uS.includes(q)?q:"overview",K="24h";if(X){let M=new URLSearchParams(X).get("range");if(nL.includes(M))K=M}return{section:Y,range:K}}function oL(){let[J,Z]=v$.useState(()=>IK(window.location.hash));v$.useEffect(()=>{let K=()=>{Z(IK(window.location.hash))};return window.addEventListener("hashchange",K),()=>{window.removeEventListener("hashchange",K)}},[]);let q=v$.useCallback((K,H)=>{window.location.hash=`/${K}?range=${H}`},[]),X=v$.useCallback((K)=>{q(K,J.range)},[J.range,q]),Y=v$.useCallback((K)=>{let H=nL.includes(K)?K:"24h";q(J.section,H)},[J.section,q]);return v$.useEffect(()=>{let K=window.location.hash,H=IK(K),M=`#/${H.section}?range=${H.range}`;if(K!==M)window.location.hash=`/${H.section}?range=${H.range}`},[]),{section:J.section,setSection:X,range:J.range,setRange:Y}}var mS=Math.pow(10,8)*24*60*60*1000,zF6=-mS,GX=604800000,iL=86400000;var $Z=43200,VK=1440;var OK=Symbol.for("constructDateFrom");function A6(J,Z){if(typeof J==="function")return J(Z);if(J&&typeof J==="object"&&OK in J)return J[OK](Z);if(J instanceof Date)return new J.constructor(Z);return new Date(Z)}function Q1(J,Z){return A6(Z||J,J)}var dS={};function c4(){return dS}function k$(J,Z){let q=c4(),X=Z?.weekStartsOn??Z?.locale?.options?.weekStartsOn??q.weekStartsOn??q.locale?.options?.weekStartsOn??0,Y=Q1(J,Z?.in),K=Y.getDay(),H=(K<X?7:0)+K-X;return Y.setDate(Y.getDate()-H),Y.setHours(0,0,0,0),Y}function s7(J,Z){return k$(J,{...Z,weekStartsOn:1})}function qX(J,Z){let q=Q1(J,Z?.in),X=q.getFullYear(),Y=A6(q,0);Y.setFullYear(X+1,0,4),Y.setHours(0,0,0,0);let K=s7(Y),H=A6(q,0);H.setFullYear(X,0,4),H.setHours(0,0,0,0);let M=s7(H);if(q.getTime()>=K.getTime())return X+1;else if(q.getTime()>=M.getTime())return X;else return X-1}function FQ(J){let Z=Q1(J),q=new Date(Date.UTC(Z.getFullYear(),Z.getMonth(),Z.getDate(),Z.getHours(),Z.getMinutes(),Z.getSeconds(),Z.getMilliseconds()));return q.setUTCFullYear(Z.getFullYear()),+J-+q}function h8(J,...Z){let q=A6.bind(null,J||Z.find((X)=>typeof X==="object"));return Z.map(q)}function EK(J,Z){let q=Q1(J,Z?.in);return q.setHours(0,0,0,0),q}function aL(J,Z,q){let[X,Y]=h8(q?.in,J,Z),K=EK(X),H=EK(Y),M=+K-FQ(K),W=+H-FQ(H);return Math.round((M-W)/iL)}function tL(J,Z){let q=qX(J,Z),X=A6(Z?.in||J,0);return X.setFullYear(q,0,4),X.setHours(0,0,0,0),s7(X)}function wQ(J,Z){let q=+Q1(J)-+Q1(Z);if(q<0)return-1;else if(q>0)return 1;return q}function eL(J){return A6(J,Date.now())}function $P(J){return J instanceof Date||typeof J==="object"&&Object.prototype.toString.call(J)==="[object Date]"}function QP(J){return!(!$P(J)&&typeof J!=="number"||isNaN(+Q1(J)))}function JP(J,Z,q){let[X,Y]=h8(q?.in,J,Z),K=X.getFullYear()-Y.getFullYear(),H=X.getMonth()-Y.getMonth();return K*12+H}function ZP(J){return(Z)=>{let X=(J?Math[J]:Math.trunc)(Z);return X===0?0:X}}function GP(J,Z){return+Q1(J)-+Q1(Z)}function qP(J,Z){let q=Q1(J,Z?.in);return q.setHours(23,59,59,999),q}function XP(J,Z){let q=Q1(J,Z?.in),X=q.getMonth();return q.setFullYear(q.getFullYear(),X+1,0),q.setHours(23,59,59,999),q}function NP(J,Z){let q=Q1(J,Z?.in);return+qP(q,Z)===+XP(q,Z)}function YP(J,Z,q){let[X,Y,K]=h8(q?.in,J,J,Z),H=wQ(Y,K),M=Math.abs(JP(Y,K));if(M<1)return 0;if(Y.getMonth()===1&&Y.getDate()>27)Y.setDate(30);Y.setMonth(Y.getMonth()-H*M);let W=wQ(Y,K)===-H;if(NP(X)&&M===1&&wQ(X,K)===1)W=!1;let w=H*(M-+W);return w===0?0:w}function UP(J,Z,q){let X=GP(J,Z)/1000;return ZP(q?.roundingMethod)(X)}function KP(J,Z){let q=Q1(J,Z?.in);return q.setFullYear(q.getFullYear(),0,1),q.setHours(0,0,0,0),q}var pS={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"}},BP=(J,Z,q)=>{let X,Y=pS[J];if(typeof Y==="string")X=Y;else if(Z===1)X=Y.one;else X=Y.other.replace("{{count}}",Z.toString());if(q?.addSuffix)if(q.comparison&&q.comparison>0)return"in "+X;else return X+" ago";return X};function XX(J){return(Z={})=>{let q=Z.width?String(Z.width):J.defaultWidth;return J.formats[q]||J.formats[J.defaultWidth]}}var cS={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},lS={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},rS={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},HP={date:XX({formats:cS,defaultWidth:"full"}),time:XX({formats:lS,defaultWidth:"full"}),dateTime:XX({formats:rS,defaultWidth:"full"})};var sS={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},MP=(J,Z,q,X)=>sS[J];function RQ(J){return(Z,q)=>{let X=q?.context?String(q.context):"standalone",Y;if(X==="formatting"&&J.formattingValues){let H=J.defaultFormattingWidth||J.defaultWidth,M=q?.width?String(q.width):H;Y=J.formattingValues[M]||J.formattingValues[H]}else{let H=J.defaultWidth,M=q?.width?String(q.width):J.defaultWidth;Y=J.values[M]||J.values[H]}let K=J.argumentCallback?J.argumentCallback(Z):Z;return Y[K]}}var nS={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},oS={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},iS={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"]},aS={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"]},tS={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"}},eS={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"}},$D=(J,Z)=>{let q=Number(J),X=q%100;if(X>20||X<10)switch(X%10){case 1:return q+"st";case 2:return q+"nd";case 3:return q+"rd"}return q+"th"},WP={ordinalNumber:$D,era:RQ({values:nS,defaultWidth:"wide"}),quarter:RQ({values:oS,defaultWidth:"wide",argumentCallback:(J)=>J-1}),month:RQ({values:iS,defaultWidth:"wide"}),day:RQ({values:aS,defaultWidth:"wide"}),dayPeriod:RQ({values:tS,defaultWidth:"wide",formattingValues:eS,defaultFormattingWidth:"wide"})};function zQ(J){return(Z,q={})=>{let X=q.width,Y=X&&J.matchPatterns[X]||J.matchPatterns[J.defaultMatchWidth],K=Z.match(Y);if(!K)return null;let H=K[0],M=X&&J.parsePatterns[X]||J.parsePatterns[J.defaultParseWidth],W=Array.isArray(M)?JD(M,(T)=>T.test(H)):QD(M,(T)=>T.test(H)),w;w=J.valueCallback?J.valueCallback(W):W,w=q.valueCallback?q.valueCallback(w):w;let z=Z.slice(H.length);return{value:w,rest:z}}}function QD(J,Z){for(let q in J)if(Object.prototype.hasOwnProperty.call(J,q)&&Z(J[q]))return q;return}function JD(J,Z){for(let q=0;q<J.length;q++)if(Z(J[q]))return q;return}function FP(J){return(Z,q={})=>{let X=Z.match(J.matchPattern);if(!X)return null;let Y=X[0],K=Z.match(J.parsePattern);if(!K)return null;let H=J.valueCallback?J.valueCallback(K[0]):K[0];H=q.valueCallback?q.valueCallback(H):H;let M=Z.slice(Y.length);return{value:H,rest:M}}}var ZD=/^(\d+)(th|st|nd|rd)?/i,GD=/\d+/i,qD={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]},ND={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]},UD={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},KD={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]},BD={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},HD={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]},MD={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},WD={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}},wP={ordinalNumber:FP({matchPattern:ZD,parsePattern:GD,valueCallback:(J)=>parseInt(J,10)}),era:zQ({matchPatterns:qD,defaultMatchWidth:"wide",parsePatterns:XD,defaultParseWidth:"any"}),quarter:zQ({matchPatterns:ND,defaultMatchWidth:"wide",parsePatterns:YD,defaultParseWidth:"any",valueCallback:(J)=>J+1}),month:zQ({matchPatterns:UD,defaultMatchWidth:"wide",parsePatterns:KD,defaultParseWidth:"any"}),day:zQ({matchPatterns:BD,defaultMatchWidth:"wide",parsePatterns:HD,defaultParseWidth:"any"}),dayPeriod:zQ({matchPatterns:MD,defaultMatchWidth:"any",parsePatterns:WD,defaultParseWidth:"any"})};var QZ={code:"en-US",formatDistance:BP,formatLong:HP,formatRelative:MP,localize:WP,match:wP,options:{weekStartsOn:0,firstWeekContainsDate:1}};function RP(J,Z){let q=Q1(J,Z?.in);return aL(q,KP(q))+1}function zP(J,Z){let q=Q1(J,Z?.in),X=+s7(q)-+tL(q);return Math.round(X/GX)+1}function NX(J,Z){let q=Q1(J,Z?.in),X=q.getFullYear(),Y=c4(),K=Z?.firstWeekContainsDate??Z?.locale?.options?.firstWeekContainsDate??Y.firstWeekContainsDate??Y.locale?.options?.firstWeekContainsDate??1,H=A6(Z?.in||J,0);H.setFullYear(X+1,0,K),H.setHours(0,0,0,0);let M=k$(H,Z),W=A6(Z?.in||J,0);W.setFullYear(X,0,K),W.setHours(0,0,0,0);let w=k$(W,Z);if(+q>=+M)return X+1;else if(+q>=+w)return X;else return X-1}function TP(J,Z){let q=c4(),X=Z?.firstWeekContainsDate??Z?.locale?.options?.firstWeekContainsDate??q.firstWeekContainsDate??q.locale?.options?.firstWeekContainsDate??1,Y=NX(J,Z),K=A6(Z?.in||J,0);return K.setFullYear(Y,0,X),K.setHours(0,0,0,0),k$(K,Z)}function LP(J,Z){let q=Q1(J,Z?.in),X=+k$(q,Z)-+TP(q,Z);return Math.round(X/GX)+1}function X1(J,Z){let q=J<0?"-":"",X=Math.abs(J).toString().padStart(Z,"0");return q+X}var b$={y(J,Z){let q=J.getFullYear(),X=q>0?q:1-q;return X1(Z==="yy"?X%100:X,Z.length)},M(J,Z){let q=J.getMonth();return Z==="M"?String(q+1):X1(q+1,2)},d(J,Z){return X1(J.getDate(),Z.length)},a(J,Z){let q=J.getHours()/12>=1?"pm":"am";switch(Z){case"a":case"aa":return q.toUpperCase();case"aaa":return q;case"aaaaa":return q[0];case"aaaa":default:return q==="am"?"a.m.":"p.m."}},h(J,Z){return X1(J.getHours()%12||12,Z.length)},H(J,Z){return X1(J.getHours(),Z.length)},m(J,Z){return X1(J.getMinutes(),Z.length)},s(J,Z){return X1(J.getSeconds(),Z.length)},S(J,Z){let q=Z.length,X=J.getMilliseconds(),Y=Math.trunc(X*Math.pow(10,q-3));return X1(Y,Z.length)}};var TQ={am:"am",pm:"pm",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},AK={G:function(J,Z,q){let X=J.getFullYear()>0?1:0;switch(Z){case"G":case"GG":case"GGG":return q.era(X,{width:"abbreviated"});case"GGGGG":return q.era(X,{width:"narrow"});case"GGGG":default:return q.era(X,{width:"wide"})}},y:function(J,Z,q){if(Z==="yo"){let X=J.getFullYear(),Y=X>0?X:1-X;return q.ordinalNumber(Y,{unit:"year"})}return b$.y(J,Z)},Y:function(J,Z,q,X){let Y=NX(J,X),K=Y>0?Y:1-Y;if(Z==="YY"){let H=K%100;return X1(H,2)}if(Z==="Yo")return q.ordinalNumber(K,{unit:"year"});return X1(K,Z.length)},R:function(J,Z){let q=qX(J);return X1(q,Z.length)},u:function(J,Z){let q=J.getFullYear();return X1(q,Z.length)},Q:function(J,Z,q){let X=Math.ceil((J.getMonth()+1)/3);switch(Z){case"Q":return String(X);case"QQ":return X1(X,2);case"Qo":return q.ordinalNumber(X,{unit:"quarter"});case"QQQ":return q.quarter(X,{width:"abbreviated",context:"formatting"});case"QQQQQ":return q.quarter(X,{width:"narrow",context:"formatting"});case"QQQQ":default:return q.quarter(X,{width:"wide",context:"formatting"})}},q:function(J,Z,q){let X=Math.ceil((J.getMonth()+1)/3);switch(Z){case"q":return String(X);case"qq":return X1(X,2);case"qo":return q.ordinalNumber(X,{unit:"quarter"});case"qqq":return q.quarter(X,{width:"abbreviated",context:"standalone"});case"qqqqq":return q.quarter(X,{width:"narrow",context:"standalone"});case"qqqq":default:return q.quarter(X,{width:"wide",context:"standalone"})}},M:function(J,Z,q){let X=J.getMonth();switch(Z){case"M":case"MM":return b$.M(J,Z);case"Mo":return q.ordinalNumber(X+1,{unit:"month"});case"MMM":return q.month(X,{width:"abbreviated",context:"formatting"});case"MMMMM":return q.month(X,{width:"narrow",context:"formatting"});case"MMMM":default:return q.month(X,{width:"wide",context:"formatting"})}},L:function(J,Z,q){let X=J.getMonth();switch(Z){case"L":return String(X+1);case"LL":return X1(X+1,2);case"Lo":return q.ordinalNumber(X+1,{unit:"month"});case"LLL":return q.month(X,{width:"abbreviated",context:"standalone"});case"LLLLL":return q.month(X,{width:"narrow",context:"standalone"});case"LLLL":default:return q.month(X,{width:"wide",context:"standalone"})}},w:function(J,Z,q,X){let Y=LP(J,X);if(Z==="wo")return q.ordinalNumber(Y,{unit:"week"});return X1(Y,Z.length)},I:function(J,Z,q){let X=zP(J);if(Z==="Io")return q.ordinalNumber(X,{unit:"week"});return X1(X,Z.length)},d:function(J,Z,q){if(Z==="do")return q.ordinalNumber(J.getDate(),{unit:"date"});return b$.d(J,Z)},D:function(J,Z,q){let X=RP(J);if(Z==="Do")return q.ordinalNumber(X,{unit:"dayOfYear"});return X1(X,Z.length)},E:function(J,Z,q){let X=J.getDay();switch(Z){case"E":case"EE":case"EEE":return q.day(X,{width:"abbreviated",context:"formatting"});case"EEEEE":return q.day(X,{width:"narrow",context:"formatting"});case"EEEEEE":return q.day(X,{width:"short",context:"formatting"});case"EEEE":default:return q.day(X,{width:"wide",context:"formatting"})}},e:function(J,Z,q,X){let Y=J.getDay(),K=(Y-X.weekStartsOn+8)%7||7;switch(Z){case"e":return String(K);case"ee":return X1(K,2);case"eo":return q.ordinalNumber(K,{unit:"day"});case"eee":return q.day(Y,{width:"abbreviated",context:"formatting"});case"eeeee":return q.day(Y,{width:"narrow",context:"formatting"});case"eeeeee":return q.day(Y,{width:"short",context:"formatting"});case"eeee":default:return q.day(Y,{width:"wide",context:"formatting"})}},c:function(J,Z,q,X){let Y=J.getDay(),K=(Y-X.weekStartsOn+8)%7||7;switch(Z){case"c":return String(K);case"cc":return X1(K,Z.length);case"co":return q.ordinalNumber(K,{unit:"day"});case"ccc":return q.day(Y,{width:"abbreviated",context:"standalone"});case"ccccc":return q.day(Y,{width:"narrow",context:"standalone"});case"cccccc":return q.day(Y,{width:"short",context:"standalone"});case"cccc":default:return q.day(Y,{width:"wide",context:"standalone"})}},i:function(J,Z,q){let X=J.getDay(),Y=X===0?7:X;switch(Z){case"i":return String(Y);case"ii":return X1(Y,Z.length);case"io":return q.ordinalNumber(Y,{unit:"day"});case"iii":return q.day(X,{width:"abbreviated",context:"formatting"});case"iiiii":return q.day(X,{width:"narrow",context:"formatting"});case"iiiiii":return q.day(X,{width:"short",context:"formatting"});case"iiii":default:return q.day(X,{width:"wide",context:"formatting"})}},a:function(J,Z,q){let Y=J.getHours()/12>=1?"pm":"am";switch(Z){case"a":case"aa":return q.dayPeriod(Y,{width:"abbreviated",context:"formatting"});case"aaa":return q.dayPeriod(Y,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return q.dayPeriod(Y,{width:"narrow",context:"formatting"});case"aaaa":default:return q.dayPeriod(Y,{width:"wide",context:"formatting"})}},b:function(J,Z,q){let X=J.getHours(),Y;if(X===12)Y=TQ.noon;else if(X===0)Y=TQ.midnight;else Y=X/12>=1?"pm":"am";switch(Z){case"b":case"bb":return q.dayPeriod(Y,{width:"abbreviated",context:"formatting"});case"bbb":return q.dayPeriod(Y,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return q.dayPeriod(Y,{width:"narrow",context:"formatting"});case"bbbb":default:return q.dayPeriod(Y,{width:"wide",context:"formatting"})}},B:function(J,Z,q){let X=J.getHours(),Y;if(X>=17)Y=TQ.evening;else if(X>=12)Y=TQ.afternoon;else if(X>=4)Y=TQ.morning;else Y=TQ.night;switch(Z){case"B":case"BB":case"BBB":return q.dayPeriod(Y,{width:"abbreviated",context:"formatting"});case"BBBBB":return q.dayPeriod(Y,{width:"narrow",context:"formatting"});case"BBBB":default:return q.dayPeriod(Y,{width:"wide",context:"formatting"})}},h:function(J,Z,q){if(Z==="ho"){let X=J.getHours()%12;if(X===0)X=12;return q.ordinalNumber(X,{unit:"hour"})}return b$.h(J,Z)},H:function(J,Z,q){if(Z==="Ho")return q.ordinalNumber(J.getHours(),{unit:"hour"});return b$.H(J,Z)},K:function(J,Z,q){let X=J.getHours()%12;if(Z==="Ko")return q.ordinalNumber(X,{unit:"hour"});return X1(X,Z.length)},k:function(J,Z,q){let X=J.getHours();if(X===0)X=24;if(Z==="ko")return q.ordinalNumber(X,{unit:"hour"});return X1(X,Z.length)},m:function(J,Z,q){if(Z==="mo")return q.ordinalNumber(J.getMinutes(),{unit:"minute"});return b$.m(J,Z)},s:function(J,Z,q){if(Z==="so")return q.ordinalNumber(J.getSeconds(),{unit:"second"});return b$.s(J,Z)},S:function(J,Z){return b$.S(J,Z)},X:function(J,Z,q){let X=J.getTimezoneOffset();if(X===0)return"Z";switch(Z){case"X":return CP(X);case"XXXX":case"XX":return n7(X);case"XXXXX":case"XXX":default:return n7(X,":")}},x:function(J,Z,q){let X=J.getTimezoneOffset();switch(Z){case"x":return CP(X);case"xxxx":case"xx":return n7(X);case"xxxxx":case"xxx":default:return n7(X,":")}},O:function(J,Z,q){let X=J.getTimezoneOffset();switch(Z){case"O":case"OO":case"OOO":return"GMT"+PP(X,":");case"OOOO":default:return"GMT"+n7(X,":")}},z:function(J,Z,q){let X=J.getTimezoneOffset();switch(Z){case"z":case"zz":case"zzz":return"GMT"+PP(X,":");case"zzzz":default:return"GMT"+n7(X,":")}},t:function(J,Z,q){let X=Math.trunc(+J/1000);return X1(X,Z.length)},T:function(J,Z,q){return X1(+J,Z.length)}};function PP(J,Z=""){let q=J>0?"-":"+",X=Math.abs(J),Y=Math.trunc(X/60),K=X%60;if(K===0)return q+String(Y);return q+String(Y)+Z+X1(K,2)}function CP(J,Z){if(J%60===0)return(J>0?"-":"+")+X1(Math.abs(J)/60,2);return n7(J,Z)}function n7(J,Z=""){let q=J>0?"-":"+",X=Math.abs(J),Y=X1(Math.trunc(X/60),2),K=X1(X%60,2);return q+Y+Z+K}var _P=(J,Z)=>{switch(J){case"P":return Z.date({width:"short"});case"PP":return Z.date({width:"medium"});case"PPP":return Z.date({width:"long"});case"PPPP":default:return Z.date({width:"full"})}},IP=(J,Z)=>{switch(J){case"p":return Z.time({width:"short"});case"pp":return Z.time({width:"medium"});case"ppp":return Z.time({width:"long"});case"pppp":default:return Z.time({width:"full"})}},FD=(J,Z)=>{let q=J.match(/(P+)(p+)?/)||[],X=q[1],Y=q[2];if(!Y)return _P(J,Z);let K;switch(X){case"P":K=Z.dateTime({width:"short"});break;case"PP":K=Z.dateTime({width:"medium"});break;case"PPP":K=Z.dateTime({width:"long"});break;case"PPPP":default:K=Z.dateTime({width:"full"});break}return K.replace("{{date}}",_P(X,Z)).replace("{{time}}",IP(Y,Z))},VP={p:IP,P:FD};var wD=/^D+$/,RD=/^Y+$/,zD=["D","DD","YY","YYYY"];function OP(J){return wD.test(J)}function EP(J){return RD.test(J)}function AP(J,Z,q){let X=TD(J,Z,q);if(console.warn(X),zD.includes(J))throw RangeError(X)}function TD(J,Z,q){let X=J[0]==="Y"?"years":"days of the month";return`Use \`${J.toLowerCase()}\` instead of \`${J}\` (in \`${Z}\`) for formatting ${X} to the input \`${q}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`}var LD=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,PD=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,CD=/^'([^]*?)'?$/,_D=/''/g,ID=/[a-zA-Z]/;function Y4(J,Z,q){let X=c4(),Y=q?.locale??X.locale??QZ,K=q?.firstWeekContainsDate??q?.locale?.options?.firstWeekContainsDate??X.firstWeekContainsDate??X.locale?.options?.firstWeekContainsDate??1,H=q?.weekStartsOn??q?.locale?.options?.weekStartsOn??X.weekStartsOn??X.locale?.options?.weekStartsOn??0,M=Q1(J,q?.in);if(!QP(M))throw RangeError("Invalid time value");let W=Z.match(PD).map((z)=>{let T=z[0];if(T==="p"||T==="P"){let P=VP[T];return P(z,Y.formatLong)}return z}).join("").match(LD).map((z)=>{if(z==="''")return{isToken:!1,value:"'"};let T=z[0];if(T==="'")return{isToken:!1,value:VD(z)};if(AK[T])return{isToken:!0,value:z};if(T.match(ID))throw RangeError("Format string contains an unescaped latin alphabet character `"+T+"`");return{isToken:!1,value:z}});if(Y.localize.preprocessor)W=Y.localize.preprocessor(M,W);let w={firstWeekContainsDate:K,weekStartsOn:H,locale:Y};return W.map((z)=>{if(!z.isToken)return z.value;let T=z.value;if(!q?.useAdditionalWeekYearTokens&&EP(T)||!q?.useAdditionalDayOfYearTokens&&OP(T))AP(T,Z,String(J));let P=AK[T[0]];return P(M,T,Y.localize,w)}).join("")}function VD(J){let Z=J.match(CD);if(!Z)return J;return Z[1].replace(_D,"'")}function jP(J,Z,q){let X=c4(),Y=q?.locale??X.locale??QZ,K=2520,H=wQ(J,Z);if(isNaN(H))throw RangeError("Invalid time value");let M=Object.assign({},q,{addSuffix:q?.addSuffix,comparison:H}),[W,w]=h8(q?.in,...H>0?[Z,J]:[J,Z]),z=UP(w,W),T=(FQ(w)-FQ(W))/1000,P=Math.round((z-T)/60),I;if(P<2)if(q?.includeSeconds)if(z<5)return Y.formatDistance("lessThanXSeconds",5,M);else if(z<10)return Y.formatDistance("lessThanXSeconds",10,M);else if(z<20)return Y.formatDistance("lessThanXSeconds",20,M);else if(z<40)return Y.formatDistance("halfAMinute",0,M);else if(z<60)return Y.formatDistance("lessThanXMinutes",1,M);else return Y.formatDistance("xMinutes",1,M);else if(P===0)return Y.formatDistance("lessThanXMinutes",1,M);else return Y.formatDistance("xMinutes",P,M);else if(P<45)return Y.formatDistance("xMinutes",P,M);else if(P<90)return Y.formatDistance("aboutXHours",1,M);else if(P<VK){let E=Math.round(P/60);return Y.formatDistance("aboutXHours",E,M)}else if(P<2520)return Y.formatDistance("xDays",1,M);else if(P<$Z){let E=Math.round(P/VK);return Y.formatDistance("xDays",E,M)}else if(P<$Z*2)return I=Math.round(P/$Z),Y.formatDistance("aboutXMonths",I,M);if(I=YP(w,W),I<12){let E=Math.round(P/$Z);return Y.formatDistance("xMonths",E,M)}else{let E=I%12,O=Math.trunc(I/12);if(E<3)return Y.formatDistance("aboutXYears",O,M);else if(E<9)return Y.formatDistance("overXYears",O,M);else return Y.formatDistance("almostXYears",O+1,M)}}function SP(J,Z){return jP(J,eL(J),Z)}var Z6=t(I1(),1);var jK=t(DP(),1),_5=t(I1(),1);var kP="label";function vP(J,Z){if(typeof J==="function")J(Z);else if(J)J.current=Z}function ED(J,Z){let q=J.options;if(q&&Z)Object.assign(q,Z)}function bP(J,Z){J.labels=Z}function yP(J,Z,q=kP){let X=[];J.datasets=Z.map((Y)=>{let K=J.datasets.find((H)=>H[q]===Y[q]);if(!K||!Y.data||X.includes(K))return{...Y};return X.push(K),Object.assign(K,Y),K})}function AD(J,Z=kP){let q={labels:[],datasets:[]};return bP(q,J.labels),yP(q,J.datasets,Z),q}function jD(J,Z){let{height:q=150,width:X=300,redraw:Y=!1,datasetIdKey:K,type:H,data:M,options:W,plugins:w=[],fallbackContent:z,updateMode:T,...P}=J,I=_5.useRef(null),E=_5.useRef(null),O=()=>{if(!I.current)return;E.current=new u7(I.current,{type:H,data:AD(M,K),options:W&&{...W},plugins:w}),vP(Z,E.current)},V=()=>{if(vP(Z,null),E.current)E.current.destroy(),E.current=null};return _5.useEffect(()=>{if(!Y&&E.current&&W)ED(E.current,W)},[Y,W]),_5.useEffect(()=>{if(!Y&&E.current)bP(E.current.config.data,M.labels)},[Y,M.labels]),_5.useEffect(()=>{if(!Y&&E.current&&M.datasets)yP(E.current.config.data,M.datasets,K)},[Y,M.datasets]),_5.useEffect(()=>{if(!E.current)return;if(Y)V(),setTimeout(O);else E.current.update(T)},[Y,W,M.labels,M.datasets,T]),_5.useEffect(()=>{if(!E.current)return;V(),setTimeout(O)},[H]),_5.useEffect(()=>{return O(),()=>V()},[]),jK.jsx("canvas",{ref:I,role:"img",height:q,width:X,...P,children:z})}var SD=_5.forwardRef(jD);function fP(J,Z){return u7.register(Z),_5.forwardRef((q,X)=>jK.jsx(SD,{...q,ref:X,type:J}))}var Q5=fP("line",qK),YX=fP("bar",GK);var t1=["#ed4abf","#9b4dff","#5ad8e6","#62d394","#c77dff","#ff8fd1","#f5c14b","#ff6b7d"],x6={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 LQ(J){let{chartTheme:Z,showLegend:q,defaultLabel:X,formatValue:Y,footer:K}=J;return{legend:{display:q,position:"top",align:"start",labels:{color:Z.legendLabel,usePointStyle:!0,padding:16,font:{size:12},boxWidth:8}},tooltip:{backgroundColor:Z.tooltipBackground,titleColor:Z.tooltipTitle,bodyColor:Z.tooltipBody,borderColor:Z.tooltipBorder,borderWidth:1,padding:12,cornerRadius:8,callbacks:{label:(H)=>{let M=H.dataset.label??X,W=H.parsed.y??0;return`${M}: ${Y(W)}`},...K?{footer:K}:{}}}}}function PQ(J){let{chartTheme:Z,formatY:q}=J,X={grid:{color:Z.grid,drawBorder:!1},ticks:{color:Z.tick,font:{size:11}}},Y={...X,ticks:{...X.ticks,callback:(K)=>q(Number(K))},min:0};return{sharedScaleBase:X,yScale:Y}}function CQ(J){return{borderColor:J,backgroundColor:`${J}20`,fill:!0,tension:0,pointRadius:3,pointHoverRadius:4,borderWidth:2}}function UX(J){return{backgroundColor:J,borderColor:J,borderWidth:0,borderRadius:4,maxBarThickness:56}}function _Q(J,Z){return J.datasets.map((q,X)=>({label:q.label,data:q.data,...Z(X)}))}function KX(J,Z,q){if(J.length===0)return{labels:[],datasets:[]};let{initBucket:X,accumulate:Y,bucketToValue:K}=q,H=new Map;for(let W of J){let w=H.get(W.timestamp)??X();Y(w,W),H.set(W.timestamp,w)}let M=[...H.entries()].sort((W,w)=>W[0]-w[0]);return{labels:M.map(([W])=>Y4(new Date(W),"MMM d")),datasets:[{label:Z,data:M.map(([,W])=>K(W))}]}}function BX(J,Z){if(J.length===0)return{labels:[],datasets:[]};let{topN:q=5,rankWeight:X,initBucket:Y,accumulate:K,bucketToValue:H}=Z,M=new Map;for(let D of J){let h=`${D.model}::${D.provider}`,p=M.get(h);if(p)p.weight+=X(D);else M.set(h,{model:D.model,provider:D.provider,weight:X(D)})}let w=[...M.entries()].sort((D,h)=>h[1].weight-D[1].weight).slice(0,q),z=new Set(w.map(([D])=>D)),T=new Map;for(let[,{model:D}]of w)T.set(D,(T.get(D)??0)+1);let P=new Map;for(let[D,{model:h,provider:p}]of w)P.set(D,(T.get(h)??0)>1?`${h} (${p})`:h);let I=[...new Set(J.map((D)=>D.timestamp))].sort((D,h)=>D-h),E=w.map(([D])=>P.get(D)??D);if(J.some((D)=>!z.has(`${D.model}::${D.provider}`)))E.push("Other");let V=new Map;for(let D of I)V.set(D,{});for(let D of J){let h=`${D.model}::${D.provider}`,p=z.has(h)?P.get(h)??D.model:"Other",s=V.get(D.timestamp);if(!s)continue;let n=s[p]??Y();K(n,D),s[p]=n}return{labels:I.map((D)=>Y4(new Date(D),"MMM d")),datasets:E.map((D)=>({label:D,data:I.map((h)=>{let p=V.get(h)?.[D];return p?H(p):0})}))}}var D1=t(M0(),1);function y$(J){return{borderColor:J,backgroundColor:"transparent",tension:0.4,pointRadius:0,borderWidth:2}}function HX({timestamps:J,values:Z,color:q}){let X={labels:J.map((K)=>Y4(new Date(K),"MMM d")),datasets:[{data:Z,...y$(q)}]};return D1.jsxDEV(Q5,{data:X,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 MX(J){return{legend:{display:!0,position:"top",labels:{color:J.legendLabel,usePointStyle:!0,padding:16,font:{size:12}}},tooltip:{backgroundColor:J.tooltipBackground,titleColor:J.tooltipTitle,bodyColor:J.tooltipBody,borderColor:J.tooltipBorder,borderWidth:1,cornerRadius:8}}}function gP(J){return{x:{grid:{color:J.grid},ticks:{color:J.tick,font:{size:11}}},y:{grid:{color:J.grid},ticks:{color:J.tick,font:{size:11}},min:0}}}function hP(J){return{x:{grid:{color:J.grid},ticks:{color:J.tick,font:{size:11}}},y:{type:"linear",display:!0,position:"left",grid:{color:J.grid},ticks:{color:J.tick,font:{size:11}}},y1:{type:"linear",display:!0,position:"right",grid:{drawOnChartArea:!1},ticks:{color:J.tick,font:{size:11}}}}}function WX({title:J,subtitle:Z,children:q}){return D1.jsxDEV("div",{className:"stats-panel overflow-hidden",children:[D1.jsxDEV("div",{className:"px-5 py-4 border-b border-[var(--border-subtle)]",children:[D1.jsxDEV("h3",{className:"text-sm font-semibold text-[var(--text-primary)]",children:J},void 0,!1,void 0,this),Z?D1.jsxDEV("p",{className:"text-xs text-[var(--text-muted)] mt-1",children:Z},void 0,!1,void 0,this):null]},void 0,!0,void 0,this),D1.jsxDEV("div",{className:"overflow-x-auto",children:q},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function DD(J){if(J==="right")return"text-right";if(J==="center")return"text-center";return""}function FX({columns:J,gridTemplate:Z}){return D1.jsxDEV("div",{className:"grid gap-3 px-5 py-3 text-[var(--text-muted)] text-xs uppercase tracking-wider font-semibold",style:{gridTemplateColumns:Z},children:[J.map((q)=>D1.jsxDEV("div",{className:DD(q.align),children:q.label},q.label,!1,void 0,this)),D1.jsxDEV("div",{},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function wX({children:J}){return D1.jsxDEV("div",{className:"max-h-[calc(100vh-300px)] overflow-y-auto",children:J},void 0,!1,void 0,this)}function RX({model:J,provider:Z}){return D1.jsxDEV("div",{children:[D1.jsxDEV("div",{className:"font-medium text-[var(--text-primary)]",children:J},void 0,!1,void 0,this),D1.jsxDEV("div",{className:"text-xs text-[var(--text-muted)]",children:Z},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function zX({gridTemplate:J,cells:Z,trendCell:q,isExpanded:X,onToggle:Y,expandedContent:K}){return D1.jsxDEV("div",{className:"border-t border-[var(--border-subtle)]",children:[D1.jsxDEV("button",{type:"button",onClick:Y,className:"w-full bg-transparent border-none text-left px-5 py-3 cursor-pointer hover:bg-[var(--bg-hover)] transition-colors",children:D1.jsxDEV("div",{className:"grid gap-3 items-center",style:{gridTemplateColumns:J},children:[Z,D1.jsxDEV("div",{className:"h-10",children:q},void 0,!1,void 0,this),D1.jsxDEV("div",{className:"flex justify-center text-[var(--text-muted)]",children:X?D1.jsxDEV(bJ,{size:16},void 0,!1,void 0,this):D1.jsxDEV(kJ,{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),X?D1.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 TX(){return D1.jsxDEV("div",{className:"text-[var(--text-muted)] text-center text-sm",children:"-"},void 0,!1,void 0,this)}function LX({message:J="No data available"}){return D1.jsxDEV("div",{className:"h-full flex items-center justify-center text-[var(--text-muted)] text-sm",children:J},void 0,!1,void 0,this)}function a0(J){return J.toLocaleString()}function l4(J){return J.toLocaleString(void 0,{notation:"compact"})}function d1(J,Z){if(J===0)return"$0";let q=Z!==void 0?Z:J>0&&J<0.01?4:2;return`$${J.toLocaleString(void 0,{minimumFractionDigits:q,maximumFractionDigits:q})}`}function J5(J,Z=1){return`${(J*100).toFixed(Z)}%`}function j6(J,Z){if(J===null)return"-";let q=J/1000,X=Z!==void 0?Z:q<1?2:1;return`${q.toFixed(X)}s`}function xP(J){if(J===null)return"-";return J.toFixed(1)}function r4(J){return SP(new Date(J),{addSuffix:!0})}function SK(J){if(J>=1e9)return`${(J/1e9).toFixed(1)} GB`;if(J>=1e6)return`${(J/1e6).toFixed(1)} MB`;if(J>=1000)return`${(J/1000).toFixed(1)} KB`;return`${J} B`}var T6=t(I1(),1),x8=new Map,vD=64;function L6(J,Z,q){let X=JSON.stringify(J),[Y,K]=T6.useState(()=>x8.get(X)?.data??null),[H,M]=T6.useState(null),[W,w]=T6.useState(()=>!x8.has(X)),[z,T]=T6.useState(!1),[P,I]=T6.useState(()=>x8.get(X)?.updatedAt??null),E=T6.useRef(Z);E.current=Z;let O=T6.useRef(X);O.current=X;let V=q?.enabled??!0,D=q?.pollMs,h=T6.useRef(null),p=T6.useRef(!1);p.current=Y!==null;let s=T6.useCallback(async(Z0)=>{if(h.current)h.current.abort();let a=new AbortController;if(h.current=a,Z0)T(!0);else w(!0),K(null);M(null);try{let i=await E.current(a.signal);if(a.signal.aborted)return;if(x8.set(O.current,{data:i,updatedAt:Date.now()}),x8.size>vD){let X0=x8.keys().next().value;if(X0!==void 0)x8.delete(X0)}K(i),I(Date.now()),M(null)}catch(i){if(a.signal.aborted)return;M(i instanceof Error?i:Error(String(i)))}finally{if(!a.signal.aborted){if(w(!1),T(!1),h.current===a)h.current=null}}},[]);T6.useEffect(()=>{if(!V){w(!1),T(!1);return}let Z0=x8.get(X);if(Z0)K(Z0.data),I(Z0.updatedAt),w(!1),s(!0);else s(p.current);return()=>{if(h.current)h.current.abort(),h.current=null}},[X,V,s]),T6.useEffect(()=>{if(!V||!D)return;let Z0=setInterval(()=>{if(document.hidden)return;s(!0)},D);return()=>{clearInterval(Z0)}},[V,D,s]);let n=T6.useCallback(async()=>{await s(!0)},[s]);return{data:Y,error:H,loading:W,refreshing:z,refetch:n,updatedAt:P}}var uP=3600000,PX=24*uP,kD=300000,mP={"1h":{windowLabel:"the last hour",trendLabel:"1h Trend",bucketMs:kD,bucketCount:12,tickFormat:"HH:mm"},"24h":{windowLabel:"the last 24 hours",trendLabel:"24h Trend",bucketMs:uP,bucketCount:24,tickFormat:"HH:mm"},"7d":{windowLabel:"the last 7 days",trendLabel:"7d Trend",bucketMs:PX,bucketCount:7,tickFormat:"MMM d"},"30d":{windowLabel:"the last 30 days",trendLabel:"30d Trend",bucketMs:PX,bucketCount:30,tickFormat:"MMM d"},"90d":{windowLabel:"the last 90 days",trendLabel:"90d Trend",bucketMs:PX,bucketCount:90,tickFormat:"MMM d"},all:{windowLabel:"all time",trendLabel:"Trend",bucketMs:PX,bucketCount:0,tickFormat:"MMM d"}};function JZ(J){return mP[J]}function DK(J,Z){return Y4(new Date(J),mP[Z].tickFormat)}var bD=["main","subagent","advisor"];function dP(J){let Z=new Map;for(let M of J)Z.set(M.agentType,M);let q=(M)=>M.totalInputTokens+M.totalOutputTokens+M.totalCacheReadTokens+M.totalCacheWriteTokens,X=bD.map((M)=>Z.get(M)).filter((M)=>M!==void 0),Y=X.reduce((M,W)=>M+q(W),0),K=X.reduce((M,W)=>M+W.totalCost,0),H=X.map((M)=>{let W=q(M);return{agentType:M.agentType,tokens:W,requests:M.totalRequests,cost:M.totalCost,share:Y>0?W/Y:0}});return{totalTokens:Y,totalCost:K,segments:H}}function pP(J){let Z=J.reduce((M,W)=>M+W.cost,0),q=new Set(J.map((M)=>M.timestamp)).size,X=q>0?Z/q:0,Y=new Map;for(let M of J)Y.set(M.model,(Y.get(M.model)??0)+M.cost);let K="",H=0;for(let[M,W]of Y)if(W>H)K=M,H=W;return{totalCost:Z,avgDailyCost:X,topModelName:K,topModelCost:H}}function cP(J,Z){if(J.length===0)return new Map;let q=JZ(Z),X=q.bucketMs,Y=q.bucketCount,K=Y>0?(()=>{let W=J.reduce((T,P)=>Math.max(T,P.timestamp),0),z=(W>0?W:Math.floor(Date.now()/X)*X)-(Y-1)*X;return Array.from({length:Y},(T,P)=>z+P*X)})():Array.from(new Set(J.map((W)=>W.timestamp))).sort((W,w)=>W-w),H=new Map(K.map((W,w)=>[W,w])),M=new Map;for(let W of J){let w=`${W.model}::${W.provider}`,z=M.get(w);if(!z)z={label:`${W.model} (${W.provider})`,data:K.map((P)=>({timestamp:P,avgTtftSeconds:null,avgTokensPerSecond:null,requests:0}))},M.set(w,z);let T=H.get(W.timestamp);if(T===void 0)continue;z.data[T]={timestamp:W.timestamp,avgTtftSeconds:W.avgTtft!==null?W.avgTtft/1000:null,avgTokensPerSecond:W.avgTokensPerSecond,requests:W.requests}}return M}function lP(J,Z){let q=J.totalNegation+J.totalRepetition+J.totalBlame,X=new Map;for(let K of Z){let H=`${K.model}::${K.provider}`,M=X.get(H),W=K.yelling+K.profanity+K.anguish+K.negation+K.repetition+K.blame;if(M)M.score+=W;else X.set(H,{model:K.model,provider:K.provider,score:W})}let Y=null;for(let K of X.values())if(!Y||K.score>Y.score)Y=K;return{totalMessages:J.totalMessages,totalYelling:J.totalYelling,totalProfanity:J.totalProfanity,totalAnguish:J.totalAnguish,totalFrustration:q,highestFrictionModel:Y}}function rP(J){let Z=[...J].sort((Y,K)=>{if(K.totalCost!==Y.totalCost)return K.totalCost-Y.totalCost;return K.totalRequests-Y.totalRequests}),q=Z.reduce((Y,K)=>Math.max(Y,K.totalCost),0),X=Z.reduce((Y,K)=>Math.max(Y,K.totalRequests),0);return Z.map((Y)=>({...Y,costPercentage:q>0?Y.totalCost/q*100:0,requestsPercentage:X>0?Y.totalRequests/X*100:0}))}var CX=t(M0(),1);function sP({message:J="No data available",icon:Z=mJ,className:q=""}){return CX.jsxDEV("div",{className:`stats-empty-state ${q}`,children:[CX.jsxDEV(Z,{size:24,className:"stats-empty-state-icon","aria-hidden":"true"},void 0,!1,void 0,this),CX.jsxDEV("p",{className:"stats-empty-state-message",children:J},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}var IQ=t(M0(),1);function nP({error:J,onRetry:Z,className:q=""}){return IQ.jsxDEV("div",{className:`stats-error-state ${q}`,children:IQ.jsxDEV("div",{className:"stats-error-state-content",children:[IQ.jsxDEV("h4",{className:"stats-error-state-title",children:"Failed to load data"},void 0,!1,void 0,this),J&&IQ.jsxDEV("p",{className:"stats-error-state-message",children:J.message},void 0,!1,void 0,this),Z&&IQ.jsxDEV("button",{type:"button",onClick:Z,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 oP=t(M0(),1);function Z5({variant:J="text",width:Z,height:q,className:X=""}){let Y={width:Z!==void 0?typeof Z==="number"?`${Z}px`:Z:void 0,height:q!==void 0?typeof q==="number"?`${q}px`:q:void 0};return oP.jsxDEV("div",{className:`stats-skeleton ${X}`,"data-variant":J,style:Y},void 0,!1,void 0,this)}var I5=t(M0(),1);function e1({loading:J,error:Z,data:q,empty:X=!1,emptyText:Y="No data available",fallback:K,onRetry:H,children:M}){if(Z&&q===null)return I5.jsxDEV(nP,{error:Z,onRetry:H},void 0,!1,void 0,this);if(J&&q===null){if(K)return I5.jsxDEV(I5.Fragment,{children:K},void 0,!1,void 0,this);return I5.jsxDEV("div",{className:"stats-boundary-skeleton",children:[I5.jsxDEV(Z5,{variant:"text",width:"60%",height:24,className:"mb-4"},void 0,!1,void 0,this),I5.jsxDEV(Z5,{variant:"rect",width:"100%",height:160,className:"mb-4"},void 0,!1,void 0,this),I5.jsxDEV(Z5,{variant:"text",width:"80%",height:20,className:"mb-2"},void 0,!1,void 0,this),I5.jsxDEV(Z5,{variant:"text",width:"40%",height:20},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}if(!J&&(X||q===null))return I5.jsxDEV(sP,{message:Y},void 0,!1,void 0,this);return I5.jsxDEV(I5.Fragment,{children:M},void 0,!1,void 0,this)}var G5=t(M0(),1);function u8({columns:J,data:Z,keyExtractor:q,onRowClick:X,renderMobileCard:Y,emptyText:K="No data available"}){let H=(M,W)=>{if(X&&(M.key==="Enter"||M.key===" "))M.preventDefault(),X(W)};if(Z.length===0)return G5.jsxDEV("div",{className:"stats-table-empty",children:K},void 0,!1,void 0,this);return G5.jsxDEV("div",{className:"stats-table-wrapper",children:[Y&&G5.jsxDEV("div",{className:"stats-table-mobile-only",children:G5.jsxDEV("div",{className:"stats-table-mobile-list",children:Z.map((M)=>{let W=String(q(M));return G5.jsxDEV("div",{className:"stats-table-mobile-card-wrapper",children:Y(M,X?()=>X(M):void 0)},W,!1,void 0,this)})},void 0,!1,void 0,this)},void 0,!1,void 0,this),G5.jsxDEV("div",{className:Y?"stats-table-desktop-only":"stats-table-container",children:G5.jsxDEV("table",{className:"stats-table",children:[G5.jsxDEV("thead",{children:G5.jsxDEV("tr",{children:J.map((M)=>{let W=["stats-table-th",M.numeric?"stats-text-right":"stats-text-left",M.className||""].filter(Boolean).join(" ");return G5.jsxDEV("th",{className:W,children:M.header},M.key,!1,void 0,this)})},void 0,!1,void 0,this)},void 0,!1,void 0,this),G5.jsxDEV("tbody",{children:Z.map((M)=>{let W=String(q(M)),w=typeof X==="function",z=["stats-table-tr",w?"stats-table-tr-clickable":""].filter(Boolean).join(" ");return G5.jsxDEV("tr",{className:z,onClick:w?()=>X(M):void 0,onKeyDown:w?(T)=>H(T,M):void 0,tabIndex:w?0:void 0,role:w?"button":void 0,children:J.map((T)=>{let P=["stats-table-td",T.numeric?"stats-text-right":"stats-text-left",T.className||""].filter(Boolean).join(" ");return G5.jsxDEV("td",{className:P,children:T.render?T.render(M):M[T.key]},T.key,!1,void 0,this)})},W,!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 i7=t(I1(),1),r5=t(M0(),1);function vK({data:J,title:Z,initialCollapsed:q=!1}){let[X,Y]=i7.useState(q),[K,H]=i7.useState(!1),M=i7.useRef(0),W=JSON.stringify(J,null,2);return i7.useEffect(()=>()=>window.clearTimeout(M.current),[]),r5.jsxDEV("div",{className:"stats-json-block",children:[r5.jsxDEV("div",{className:"stats-json-block-header",onClick:()=>Y(!X),onKeyDown:(T)=>{if(T.key==="Enter"||T.key===" ")T.preventDefault(),Y(!X)},tabIndex:0,role:"button","aria-expanded":!X,children:[r5.jsxDEV("span",{className:"stats-json-block-title",children:Z||"JSON"},void 0,!1,void 0,this),r5.jsxDEV("div",{className:"stats-json-actions",children:[r5.jsxDEV("button",{type:"button",className:"stats-json-copy-btn",onClick:async(T)=>{T.stopPropagation();try{await navigator.clipboard.writeText(W),H(!0),window.clearTimeout(M.current),M.current=window.setTimeout(()=>H(!1),1500)}catch{}},"aria-label":K?"Copied to clipboard":"Copy JSON to clipboard",children:[K?r5.jsxDEV(vJ,{size:13},void 0,!1,void 0,this):r5.jsxDEV(fJ,{size:13},void 0,!1,void 0,this),K?"Copied":"Copy"]},void 0,!0,void 0,this),r5.jsxDEV("span",{className:"stats-json-block-toggle-indicator","data-collapsed":X,children:X?"▶ Show":"▼ Hide"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),!X&&r5.jsxDEV("div",{className:"stats-json-block-content-wrapper",children:r5.jsxDEV("pre",{className:"stats-json-block-content",children:r5.jsxDEV("code",{children:W},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 J1=t(M0(),1);function iP({stats:J}){return J1.jsxDEV("div",{className:"stats-metric-cluster",children:[J1.jsxDEV("div",{className:"stats-metric-primary-grid",children:[J1.jsxDEV("div",{className:"stats-metric-card primary",children:[J1.jsxDEV("div",{className:"stats-metric-label",children:"Total Cost"},void 0,!1,void 0,this),J1.jsxDEV("div",{className:"stats-metric-value",children:d1(J.totalCost,J.totalCost>0&&J.totalCost<0.01?4:2)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),J1.jsxDEV("div",{className:"stats-metric-card primary",children:[J1.jsxDEV("div",{className:"stats-metric-label",children:"Requests"},void 0,!1,void 0,this),J1.jsxDEV("div",{className:"stats-metric-value",children:a0(J.totalRequests)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),J1.jsxDEV("div",{className:"stats-metric-card primary",children:[J1.jsxDEV("div",{className:"stats-metric-label",children:"Cache Rate"},void 0,!1,void 0,this),J1.jsxDEV("div",{className:"stats-metric-value",children:J5(J.cacheRate)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),J1.jsxDEV("div",{className:"stats-metric-card primary",children:[J1.jsxDEV("div",{className:"stats-metric-label",children:"Error Rate"},void 0,!1,void 0,this),J1.jsxDEV("div",{className:"stats-metric-value",children:J5(J.errorRate)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),J1.jsxDEV("div",{className:"stats-metric-secondary-grid",children:[J1.jsxDEV("div",{className:"stats-metric-card secondary",children:[J1.jsxDEV("div",{className:"stats-metric-label",children:"Input Tokens"},void 0,!1,void 0,this),J1.jsxDEV("div",{className:"stats-metric-value",children:l4(J.totalInputTokens)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),J1.jsxDEV("div",{className:"stats-metric-card secondary",children:[J1.jsxDEV("div",{className:"stats-metric-label",children:"Output Tokens"},void 0,!1,void 0,this),J1.jsxDEV("div",{className:"stats-metric-value",children:l4(J.totalOutputTokens)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),J1.jsxDEV("div",{className:"stats-metric-card secondary",children:[J1.jsxDEV("div",{className:"stats-metric-label",children:"Premium Requests"},void 0,!1,void 0,this),J1.jsxDEV("div",{className:"stats-metric-value",children:a0(J.totalPremiumRequests)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),J1.jsxDEV("div",{className:"stats-metric-card secondary",children:[J1.jsxDEV("div",{className:"stats-metric-label",children:"Tokens/s"},void 0,!1,void 0,this),J1.jsxDEV("div",{className:"stats-metric-value",children:xP(J.avgTokensPerSecond)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),J1.jsxDEV("div",{className:"stats-metric-card secondary",children:[J1.jsxDEV("div",{className:"stats-metric-label",children:"Avg Latency"},void 0,!1,void 0,this),J1.jsxDEV("div",{className:"stats-metric-value",children:j6(J.avgDuration)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),J1.jsxDEV("div",{className:"stats-metric-card secondary",children:[J1.jsxDEV("div",{className:"stats-metric-label",children:"Avg TTFT"},void 0,!1,void 0,this),J1.jsxDEV("div",{className:"stats-metric-value",children:j6(J.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 m8=t(M0(),1);function f1({title:J,subtitle:Z,actions:q,children:X,className:Y="",...K}){return m8.jsxDEV("div",{className:`stats-panel ${Y}`,...K,children:[(J||Z||q)&&m8.jsxDEV("div",{className:"stats-panel-header",children:[m8.jsxDEV("div",{className:"stats-panel-header-titles",children:[J&&m8.jsxDEV("h3",{className:"stats-panel-title",children:J},void 0,!1,void 0,this),Z&&m8.jsxDEV("p",{className:"stats-panel-subtitle",children:Z},void 0,!1,void 0,this)]},void 0,!0,void 0,this),q&&m8.jsxDEV("div",{className:"stats-panel-actions",children:q},void 0,!1,void 0,this)]},void 0,!0,void 0,this),m8.jsxDEV("div",{className:"stats-panel-body",children:X},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}var s4=t(I1(),1);var aP=t(M0(),1);function V5({variant:J,children:Z,className:q=""}){return aP.jsxDEV("span",{className:`stats-status-pill ${q}`,"data-variant":J,children:Z},void 0,!1,void 0,this)}var F0=t(M0(),1);function tP({id:J,onClose:Z}){let[q,X]=s4.useState(null),[Y,K]=s4.useState(!1),[H,M]=s4.useState(null),W=s4.useRef(null),w=s4.useRef(null);if(s4.useEffect(()=>{if(J===null){X(null);return}W.current=document.activeElement,K(!0),M(null),X(null);let T=new AbortController;return vL(J,T.signal).then((P)=>{if(T.signal.aborted)return;X(P),setTimeout(()=>w.current?.focus(),50)}).catch((P)=>{if(T.signal.aborted)return;M(P instanceof Error?P:Error(String(P)))}).finally(()=>{if(!T.signal.aborted)K(!1)}),()=>T.abort()},[J]),s4.useEffect(()=>{if(J===null)return;let T=(P)=>{if(P.key==="Escape")Z()};return window.addEventListener("keydown",T),()=>{if(window.removeEventListener("keydown",T),W.current)W.current.focus()}},[J,Z]),J===null)return null;return F0.jsxDEV("div",{className:"stats-drawer-overlay",onClick:(T)=>{if(T.target===T.currentTarget)Z()},role:"presentation",children:F0.jsxDEV("div",{className:"stats-drawer",role:"dialog","aria-modal":"true","aria-label":"Request details",children:[F0.jsxDEV("div",{className:"stats-drawer-header",children:[F0.jsxDEV("div",{className:"stats-drawer-header-left",children:[F0.jsxDEV("h2",{className:"stats-drawer-title",children:"Request Details"},void 0,!1,void 0,this),q&&F0.jsxDEV("span",{className:"stats-drawer-id",children:["ID: ",J]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),F0.jsxDEV("button",{ref:w,type:"button",onClick:Z,className:"stats-drawer-close-btn","aria-label":"Close request details",children:F0.jsxDEV(c7,{size:18},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),F0.jsxDEV("div",{className:"stats-drawer-body",children:[Y&&F0.jsxDEV("div",{className:"stats-drawer-loading",children:[F0.jsxDEV(Z5,{variant:"text",width:"60%",height:24,className:"mb-4"},void 0,!1,void 0,this),F0.jsxDEV(Z5,{variant:"rect",width:"100%",height:80,className:"mb-4"},void 0,!1,void 0,this),F0.jsxDEV(Z5,{variant:"rect",width:"100%",height:120,className:"mb-4"},void 0,!1,void 0,this),F0.jsxDEV(Z5,{variant:"rect",width:"100%",height:200},void 0,!1,void 0,this)]},void 0,!0,void 0,this),H&&F0.jsxDEV("div",{className:"stats-drawer-error",children:[F0.jsxDEV("p",{className:"stats-drawer-error-title",children:"Failed to load request details"},void 0,!1,void 0,this),F0.jsxDEV("p",{className:"stats-drawer-error-message",children:H.message},void 0,!1,void 0,this)]},void 0,!0,void 0,this),q&&F0.jsxDEV("div",{className:"stats-drawer-content",children:[F0.jsxDEV("div",{className:"stats-drawer-status-card",children:[F0.jsxDEV("div",{className:"stats-drawer-status-row",children:[F0.jsxDEV("div",{children:[F0.jsxDEV("div",{className:"stats-drawer-model",children:q.model},void 0,!1,void 0,this),F0.jsxDEV("div",{className:"stats-drawer-provider",children:q.provider},void 0,!1,void 0,this)]},void 0,!0,void 0,this),F0.jsxDEV(V5,{variant:q.errorMessage?"danger":"success",children:q.errorMessage?"Error":"Success"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),q.errorMessage&&F0.jsxDEV("div",{className:"stats-drawer-error-block",children:[F0.jsxDEV("div",{className:"stats-drawer-error-label",children:"Error Message"},void 0,!1,void 0,this),F0.jsxDEV("div",{className:"stats-drawer-error-text",children:q.errorMessage},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),F0.jsxDEV("div",{className:"stats-drawer-metrics-grid",children:[F0.jsxDEV("div",{className:"stats-drawer-metric-card",children:[F0.jsxDEV("div",{className:"stats-drawer-metric-label",children:[F0.jsxDEV(p7,{size:14,className:"stats-drawer-metric-icon"},void 0,!1,void 0,this),"Cost"]},void 0,!0,void 0,this),F0.jsxDEV("div",{className:"stats-drawer-metric-value",children:d1(q.usage.cost.total,4)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),F0.jsxDEV("div",{className:"stats-drawer-metric-card",children:[F0.jsxDEV("div",{className:"stats-drawer-metric-label",children:[F0.jsxDEV(sJ,{size:14,className:"stats-drawer-metric-icon"},void 0,!1,void 0,this),"Premium"]},void 0,!0,void 0,this),F0.jsxDEV("div",{className:"stats-drawer-metric-value",children:a0(q.usage.premiumRequests??0)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),F0.jsxDEV("div",{className:"stats-drawer-metric-card",children:[F0.jsxDEV("div",{className:"stats-drawer-metric-label",children:[F0.jsxDEV(uJ,{size:14,className:"stats-drawer-metric-icon"},void 0,!1,void 0,this),"Total Tokens"]},void 0,!0,void 0,this),F0.jsxDEV("div",{className:"stats-drawer-metric-value",children:a0(q.usage.totalTokens)},void 0,!1,void 0,this),F0.jsxDEV("div",{className:"stats-drawer-metric-sub",children:[a0(q.usage.input)," in · ",a0(q.usage.output)," out"]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),F0.jsxDEV("div",{className:"stats-drawer-metric-card",children:[F0.jsxDEV("div",{className:"stats-drawer-metric-label",children:[F0.jsxDEV(yJ,{size:14,className:"stats-drawer-metric-icon"},void 0,!1,void 0,this),"Duration"]},void 0,!0,void 0,this),F0.jsxDEV("div",{className:"stats-drawer-metric-value",children:j6(q.duration)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),F0.jsxDEV("div",{className:"stats-drawer-metric-card",children:[F0.jsxDEV("div",{className:"stats-drawer-metric-label",children:[F0.jsxDEV(iJ,{size:14,className:"stats-drawer-metric-icon"},void 0,!1,void 0,this),"TTFT"]},void 0,!0,void 0,this),F0.jsxDEV("div",{className:"stats-drawer-metric-value",children:j6(q.ttft)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),q.duration&&q.usage.output>0&&F0.jsxDEV("div",{className:"stats-drawer-metric-card",children:[F0.jsxDEV("div",{className:"stats-drawer-metric-label",children:[F0.jsxDEV(xJ,{size:14,className:"stats-drawer-metric-icon"},void 0,!1,void 0,this),"Throughput"]},void 0,!0,void 0,this),F0.jsxDEV("div",{className:"stats-drawer-metric-value",children:(q.usage.output*1000/q.duration).toFixed(1)},void 0,!1,void 0,this),F0.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),F0.jsxDEV("div",{className:"stats-drawer-json-blocks",children:[F0.jsxDEV(vK,{data:q.output,title:"Output Payload",initialCollapsed:!1},void 0,!1,void 0,this),F0.jsxDEV(vK,{data:q,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 kK=t(M0(),1);function ZZ({options:J,value:Z,onChange:q,className:X=""}){return kK.jsxDEV("div",{className:`stats-segmented-control ${X}`,role:"radiogroup",children:J.map((Y)=>{let K=Y.value===Z;return kK.jsxDEV("button",{type:"button",role:"radio","aria-checked":K,"data-active":K?"true":"false",className:"stats-segmented-control-btn",title:Y.title,onClick:()=>q(Y.value),children:Y.label},String(Y.value),!1,void 0,this)})},void 0,!1,void 0,this)}var w0=t(M0(),1);function GC({active:J,range:Z,refreshTrigger:q}){let{data:X,error:Y,loading:K}=L6(["behavior",Z,q],(H)=>bL(Z,H),{pollMs:30000,enabled:J});return w0.jsxDEV("div",{className:"stats-route-container space-y-6",children:w0.jsxDEV(e1,{loading:K,error:Y,data:X,children:X&&w0.jsxDEV(w0.Fragment,{children:[w0.jsxDEV(yD,{overall:X.overall,behaviorSeries:X.behaviorSeries},void 0,!1,void 0,this),w0.jsxDEV(fD,{behaviorSeries:X.behaviorSeries},void 0,!1,void 0,this),w0.jsxDEV(gD,{models:X.byModel,behaviorSeries:X.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 _X(J,Z){if(Z<=0)return;return`${(J/Z).toFixed(2)} / msg`}function yD({overall:J,behaviorSeries:Z}){let q=Z6.useMemo(()=>lP(J,Z),[J,Z]),X=J.totalMessages,Y=[{label:"User Messages",value:a0(J.totalMessages),sub:X>0?"in range":void 0},{label:"Yelling (CAPS)",value:a0(J.totalYelling),sub:_X(J.totalYelling,X)},{label:"Profanity Hits",value:a0(J.totalProfanity),sub:_X(J.totalProfanity,X)},{label:"Anguish Signals",value:a0(J.totalAnguish),sub:_X(J.totalAnguish,X)},{label:"Friction Signals",value:a0(q.totalFrustration),sub:_X(q.totalFrustration,X)},{label:"Highest Friction Model",value:q.highestFrictionModel?.model??"—",sub:q.highestFrictionModel?`${a0(q.highestFrictionModel.score)} hits`:void 0}];return w0.jsxDEV("div",{className:"grid grid-cols-2 md:grid-cols-6 gap-4",children:Y.map((K)=>w0.jsxDEV(f1,{className:"stats-behavior-summary-card py-3 px-4",children:[w0.jsxDEV("p",{className:"text-xs stats-text-muted mb-1 font-medium truncate",children:K.label},void 0,!1,void 0,this),w0.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&&w0.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 bK=[{value:"yelling",label:"CAPS",title:"Yelling (CAPS)"},{value:"profanity",label:"Profanity",title:"Profanity"},{value:"anguish",label:"Anguish",title:"Anguish (!!!, nooo, dude, ..)"},{value:"negation",label:"Negation",title:"Negation (no/nope/wrong)"},{value:"repetition",label:"Repetition",title:"Repetition (i meant, still doesnt)"},{value:"blame",label:"Blame",title:"Blame (you didnt, stop X-ing)"},{value:"frustration",label:"Frustration",title:"Frustration (neg + rep + blame)"},{value:"total",label:"All",title:"All signals combined"}];function eP(J){if(!Number.isFinite(J))return"-";if(J===0)return"0%";if(Math.abs(J)<1)return`${J.toFixed(1)}%`;return`${J.toFixed(0)}%`}function $C(J,Z){if(Z==="frustration")return J.negation+J.repetition+J.blame;if(Z==="total")return J.yelling+J.profanity+J.anguish+J.negation+J.repetition+J.blame;return J[Z]}function QC(J,Z){if(Z<=0)return 0;return J/Z*100}function fD({behaviorSeries:J}){let[Z,q]=Z6.useState(!1),[X,Y]=Z6.useState("total"),K=c5(),H=x6[K],M=Z6.useMemo(()=>{if(Z)return BX(J,{rankWeight:(h)=>h.messages,initBucket:()=>({hits:0,messages:0}),accumulate:(h,p)=>{h.hits+=$C(p,X),h.messages+=p.messages},bucketToValue:(h)=>QC(h.hits,h.messages)});let D=bK.find((h)=>h.value===X)?.title??"Hits";return KX(J,D,{initBucket:()=>({hits:0,messages:0}),accumulate:(h,p)=>{h.hits+=$C(p,X),h.messages+=p.messages},bucketToValue:(h)=>QC(h.hits,h.messages)})},[J,Z,X]),W=Z6.useMemo(()=>{return LQ({chartTheme:H,showLegend:Z,defaultLabel:"Hits",formatValue:eP})},[H,Z]),{sharedScaleBase:w,yScale:z}=Z6.useMemo(()=>{return PQ({chartTheme:H,formatY:eP})},[H]),T=Z6.useMemo(()=>{return bK.find((D)=>D.value===X)?.title??""},[X]),P=Z6.useMemo(()=>{if(!Z)return null;return{labels:M.labels,datasets:_Q(M,(D)=>CQ(t1[D%t1.length]))}},[M,Z]),I=Z6.useMemo(()=>{return{responsive:!0,maintainAspectRatio:!1,interaction:{mode:"index",intersect:!1},plugins:W,scales:{x:w,y:z}}},[W,w,z]),E=Z6.useMemo(()=>{if(Z)return null;return{labels:M.labels,datasets:_Q(M,(D)=>UX(t1[D%t1.length]))}},[M,Z]),O=Z6.useMemo(()=>{return{responsive:!0,maintainAspectRatio:!1,interaction:{mode:"index",intersect:!1},plugins:W,scales:{x:{...w,stacked:!0},y:{...z,stacked:!0}},layout:{padding:{top:8}}}},[W,w,z]),V=[{value:!1,label:"All Models"},{value:!0,label:"By Model"}];return w0.jsxDEV(f1,{title:"User Friction Signals",subtitle:`${T} as % of user messages per day`,actions:w0.jsxDEV("div",{className:"flex items-center gap-3 flex-wrap",children:[w0.jsxDEV(ZZ,{options:bK.map((D)=>({value:D.value,label:D.label,title:D.title})),value:X,onChange:Y},void 0,!1,void 0,this),w0.jsxDEV(ZZ,{options:V,value:Z,onChange:q},void 0,!1,void 0,this)]},void 0,!0,void 0,this),children:w0.jsxDEV("div",{className:"h-[300px]",children:M.labels.length===0?w0.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):Z&&P?w0.jsxDEV(Q5,{data:P,options:I},void 0,!1,void 0,this):E?w0.jsxDEV(YX,{data:E,options:O},void 0,!1,void 0,this):null},void 0,!1,void 0,this)},void 0,!1,void 0,this)}var JC="2fr 0.9fr 0.8fr 0.8fr 0.8fr 0.9fr 0.8fr 140px 40px";function ZC(J){if(J.totalMessages===0)return 0;return(J.totalYelling+J.totalProfanity+J.totalAnguish+J.totalNegation+J.totalRepetition+J.totalBlame)/J.totalMessages}function VQ(J,Z){if(Z===0)return"-";let q=J/Z*100;if(q===0)return"0%";if(q<1)return`${q.toFixed(1)}%`;return`${q.toFixed(0)}%`}function gD({models:J,behaviorSeries:Z}){let[q,X]=Z6.useState(null),Y=c5(),K=x6[Y],H=Z6.useMemo(()=>xD(Z),[Z]),M=Z6.useMemo(()=>{return[...J].sort((W,w)=>{if(w.totalMessages!==W.totalMessages)return w.totalMessages-W.totalMessages;return ZC(w)-ZC(W)})},[J]);return w0.jsxDEV(WX,{title:"Behavior Signals by Model",subtitle:"Rates are per user message",children:[w0.jsxDEV(FX,{gridTemplate:JC,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),w0.jsxDEV(wX,{children:[M.map((W,w)=>{let z=`${W.model}::${W.provider}`,T=H.get(z)?.data??[],P=t1[w%t1.length],I=q===z,E=W.totalNegation+W.totalRepetition+W.totalBlame,O=W.totalYelling+W.totalProfanity+W.totalAnguish+E;return w0.jsxDEV(zX,{gridTemplate:JC,isExpanded:I,onToggle:()=>X(I?null:z),cells:[w0.jsxDEV(RX,{model:W.model,provider:W.provider},"name",!1,void 0,this),w0.jsxDEV("div",{className:"text-right text-[var(--text-secondary)] font-mono text-sm",children:a0(W.totalMessages)},"messages",!1,void 0,this),w0.jsxDEV("div",{className:"text-right text-[var(--text-secondary)] font-mono text-sm",children:VQ(W.totalYelling,W.totalMessages)},"caps",!1,void 0,this),w0.jsxDEV("div",{className:"text-right text-[var(--text-secondary)] font-mono text-sm",children:VQ(W.totalProfanity,W.totalMessages)},"profanity",!1,void 0,this),w0.jsxDEV("div",{className:"text-right text-[var(--text-secondary)] font-mono text-sm",children:VQ(W.totalAnguish,W.totalMessages)},"anguish",!1,void 0,this),w0.jsxDEV("div",{className:"text-right text-[var(--text-secondary)] font-mono text-sm",children:VQ(E,W.totalMessages)},"frustration",!1,void 0,this),w0.jsxDEV("div",{className:"text-right text-[var(--text-secondary)] font-mono text-sm",children:VQ(O,W.totalMessages)},"hits",!1,void 0,this)],trendCell:T.length===0?w0.jsxDEV(TX,{},void 0,!1,void 0,this):w0.jsxDEV(HX,{timestamps:T.map((V)=>V.timestamp),values:T.map((V)=>V.total),color:P},void 0,!1,void 0,this),expandedContent:w0.jsxDEV("div",{className:"grid gap-4",style:{gridTemplateColumns:"220px 1fr"},children:[w0.jsxDEV("div",{className:"space-y-4 text-sm",children:[w0.jsxDEV(a7,{label:"Yelling (CAPS)",total:W.totalYelling,messages:W.totalMessages,valueClass:"text-[#ed4abf]"},void 0,!1,void 0,this),w0.jsxDEV(a7,{label:"Profanity",total:W.totalProfanity,messages:W.totalMessages,valueClass:"text-[#ff6b7d]"},void 0,!1,void 0,this),w0.jsxDEV(a7,{label:"Anguish (!!!, nooo, dude, ..)",total:W.totalAnguish,messages:W.totalMessages,valueClass:"text-[#9b4dff]"},void 0,!1,void 0,this),w0.jsxDEV(a7,{label:"Negation (no/nope/wrong)",total:W.totalNegation,messages:W.totalMessages,valueClass:"text-[#5ad8e6]"},void 0,!1,void 0,this),w0.jsxDEV(a7,{label:"Repetition (i meant, still doesnt)",total:W.totalRepetition,messages:W.totalMessages,valueClass:"text-[#5ad8e6]"},void 0,!1,void 0,this),w0.jsxDEV(a7,{label:"Blame (you didnt, stop X-ing)",total:W.totalBlame,messages:W.totalMessages,valueClass:"text-[#5ad8e6]"},void 0,!1,void 0,this),w0.jsxDEV(a7,{label:"Avg chars / msg",total:W.totalChars,messages:W.totalMessages,valueClass:"stats-text-secondary",mode:"average"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),w0.jsxDEV("div",{className:"h-[200px]",children:T.length===0?w0.jsxDEV(LX,{},void 0,!1,void 0,this):w0.jsxDEV(hD,{data:T,chartTheme:K},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},z,!1,void 0,this)}),M.length===0?w0.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 a7({label:J,total:Z,messages:q,valueClass:X,mode:Y="rate"}){let K=Y==="rate"?"% of msgs":"Per msg",H=Z6.useMemo(()=>{if(q===0)return"-";return Y==="rate"?VQ(Z,q):(Z/q).toFixed(0)},[Z,q,Y]);return w0.jsxDEV("div",{children:[w0.jsxDEV("div",{className:"text-[var(--text-primary)] font-medium mb-1",children:J},void 0,!1,void 0,this),w0.jsxDEV("div",{className:"space-y-0.5 text-[var(--text-secondary)]",children:[w0.jsxDEV("div",{className:"flex items-center justify-between",children:[w0.jsxDEV("span",{className:"stats-text-muted text-xs",children:"Total"},void 0,!1,void 0,this),w0.jsxDEV("span",{className:`font-mono text-xs ${X}`,children:a0(Z)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),w0.jsxDEV("div",{className:"flex items-center justify-between",children:[w0.jsxDEV("span",{className:"stats-text-muted text-xs",children:K},void 0,!1,void 0,this),w0.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 IX={yelling:"#ed4abf",profanity:"#ff6b7d",anguish:"#9b4dff",frustration:"#5ad8e6"};function hD({data:J,chartTheme:Z}){let q=Z6.useMemo(()=>{return{labels:J.map((Y)=>Y4(new Date(Y.timestamp),"MMM d")),datasets:[{label:"CAPS",data:J.map((Y)=>Y.yelling),...y$(IX.yelling)},{label:"Profanity",data:J.map((Y)=>Y.profanity),...y$(IX.profanity)},{label:"Anguish",data:J.map((Y)=>Y.anguish),...y$(IX.anguish)},{label:"Frustration",data:J.map((Y)=>Y.frustration),...y$(IX.frustration)}]}},[J]),X=Z6.useMemo(()=>{return{responsive:!0,maintainAspectRatio:!1,plugins:MX(Z),scales:gP(Z)}},[Z]);return w0.jsxDEV(Q5,{data:q,options:X},void 0,!1,void 0,this)}function xD(J){if(J.length===0)return new Map;let Z=[...new Set(J.map((Y)=>Y.timestamp))].sort((Y,K)=>Y-K),q=new Map;for(let Y of J){let K=`${Y.model}::${Y.provider}`,H=q.get(K);if(!H)H=new Map,q.set(K,H);let M=H.get(Y.timestamp)??{timestamp:Y.timestamp,yelling:0,profanity:0,anguish:0,frustration:0,total:0};M.yelling+=Y.yelling,M.profanity+=Y.profanity,M.anguish+=Y.anguish,M.frustration+=Y.negation+Y.repetition+Y.blame,M.total=M.yelling+M.profanity+M.anguish+M.frustration,H.set(Y.timestamp,M)}let X=new Map;for(let[Y,K]of q){let H=Z.map((M)=>K.get(M)??{timestamp:M,yelling:0,profanity:0,anguish:0,frustration:0,total:0});X.set(Y,{data:H})}return X}var s5=t(I1(),1);var G6=t(M0(),1);function qC({active:J,range:Z,refreshTrigger:q}){let{data:X,error:Y,loading:K}=L6(["costs",Z,q],(H)=>SL(Z,H),{pollMs:30000,enabled:J});return G6.jsxDEV("div",{className:"stats-route-container space-y-6",children:G6.jsxDEV(e1,{loading:K,error:Y,data:X,children:X&&G6.jsxDEV(G6.Fragment,{children:[G6.jsxDEV(uD,{costSeries:X.costSeries},void 0,!1,void 0,this),G6.jsxDEV(pD,{costSeries:X.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:J}){let Z=s5.useMemo(()=>pP(J),[J]),q=[{label:"Total Cost",value:d1(Z.totalCost)},{label:"Average / Day",value:d1(Z.avgDailyCost)},{label:"Top Model",value:Z.topModelName||"—",sub:Z.topModelName?d1(Z.topModelCost):void 0}];return G6.jsxDEV("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-4",children:q.map((X)=>G6.jsxDEV(f1,{className:"stats-cost-overview-card py-4 px-5",children:[G6.jsxDEV("p",{className:"text-xs stats-text-muted mb-1 font-medium uppercase tracking-wider",children:X.label},void 0,!1,void 0,this),G6.jsxDEV("p",{className:"text-2xl font-bold stats-text-primary truncate",title:X.value,children:X.value},void 0,!1,void 0,this),X.sub&&G6.jsxDEV("p",{className:"text-xs stats-text-muted mt-1 font-medium",children:["Total spent: ",X.sub]},void 0,!0,void 0,this)]},X.label,!0,void 0,this))},void 0,!1,void 0,this)}var mD={dark:"rgba(248, 250, 252, 0.7)",light:"rgba(15, 23, 42, 0.6)"};function dD(J){return{id:"costBarLabels",afterDatasetsDraw(Z){let{ctx:q}=Z;if(!Z.data.datasets[0])return;let Y=Z.getDatasetMeta(0);q.save(),q.font="11px system-ui, sans-serif",q.fillStyle=J,q.textAlign="center",q.textBaseline="bottom";for(let K of Y.data){let H=K.$context.parsed.y;if(!H)continue;let M=`$${Math.round(H)}`,{x:W,y:w}=K.getProps(["x","y"],!0);q.fillText(M,W,w-3)}q.restore()}}}function pD({costSeries:J}){let[Z,q]=s5.useState(!1),X=c5(),Y=x6[X],K=s5.useMemo(()=>{if(Z)return BX(J,{rankWeight:(O)=>O.cost,initBucket:()=>({total:0}),accumulate:(O,V)=>{O.total+=V.cost},bucketToValue:(O)=>O.total});return KX(J,"Cost",{initBucket:()=>({total:0}),accumulate:(O,V)=>{O.total+=V.cost},bucketToValue:(O)=>O.total})},[J,Z]),H=s5.useMemo(()=>{return LQ({chartTheme:Y,showLegend:Z,defaultLabel:"Cost",formatValue:(O)=>`$${O.toFixed(2)}`,footer:(O)=>{if(!Z||O.length<2)return;return`Total: $${O.reduce((D,h)=>D+(h.parsed.y??0),0).toFixed(2)}`}})},[Y,Z]),{sharedScaleBase:M,yScale:W}=s5.useMemo(()=>{return PQ({chartTheme:Y,formatY:(O)=>`$${Math.round(O)}`})},[Y]),w=s5.useMemo(()=>{return dD(mD[X])},[X]),z=s5.useMemo(()=>{if(!Z)return null;return{labels:K.labels,datasets:_Q(K,(O)=>CQ(t1[O%t1.length]))}},[K,Z]),T=s5.useMemo(()=>{return{responsive:!0,maintainAspectRatio:!1,interaction:{mode:"index",intersect:!1},plugins:H,scales:{x:M,y:W}}},[H,M,W]),P=s5.useMemo(()=>{if(Z)return null;return{labels:K.labels,datasets:_Q(K,(O)=>UX(t1[O%t1.length]))}},[K,Z]),I=s5.useMemo(()=>{return{responsive:!0,maintainAspectRatio:!1,interaction:{mode:"index",intersect:!1},plugins:{...H,costBarLabels:{}},scales:{x:{...M,stacked:!0},y:{...W,stacked:!0}},layout:{padding:{top:24}}}},[H,M,W]);return G6.jsxDEV(f1,{title:"Daily Cost",subtitle:"API spending over time",actions:G6.jsxDEV(ZZ,{options:[{value:!1,label:"All Models"},{value:!0,label:"By Model"}],value:Z,onChange:q},void 0,!1,void 0,this),children:G6.jsxDEV("div",{className:"h-[300px]",children:K.labels.length===0?G6.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):Z&&z?G6.jsxDEV(Q5,{data:z,options:T},void 0,!1,void 0,this):P?G6.jsxDEV(YX,{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 XC=t(I1(),1);var V1=t(M0(),1);function NC({active:J,refreshTrigger:Z,onRequestClick:q}){let{data:X,error:Y,loading:K}=L6(["recent-errors-dense",Z],(W)=>DL(50,W),{pollMs:30000,enabled:J}),H=XC.useMemo(()=>[{key:"model",header:"Model",render:(W)=>V1.jsxDEV("div",{children:[V1.jsxDEV("div",{className:"stats-font-medium stats-text-primary",children:W.model},void 0,!1,void 0,this),V1.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)=>r4(W.timestamp)},{key:"errorMessage",header:"Error Message",render:(W)=>V1.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)=>a0(W.usage.totalTokens)},{key:"cost",header:"Cost",numeric:!0,render:(W)=>d1(W.usage.cost.total,4)}],[]);return V1.jsxDEV("div",{className:"stats-route-container",children:V1.jsxDEV(f1,{title:"Recent Errors",subtitle:"Up to 50 most recent failed requests in the stats database",children:V1.jsxDEV(e1,{loading:K,error:Y,data:X,emptyText:"No recent failures in the local stats database",children:V1.jsxDEV(u8,{columns:H,data:X||[],keyExtractor:(W)=>W.id||`${W.sessionFile}-${W.entryId}`,onRowClick:(W)=>W.id&&q(W.id),renderMobileCard:(W,w)=>V1.jsxDEV("div",{className:"stats-mobile-card stats-border-danger",onClick:w,children:[V1.jsxDEV("div",{className:"stats-mobile-card-header",children:[V1.jsxDEV("div",{children:[V1.jsxDEV("div",{className:"stats-font-semibold stats-text-primary",children:W.model},void 0,!1,void 0,this),V1.jsxDEV("div",{className:"stats-text-xs stats-text-muted",children:W.provider},void 0,!1,void 0,this)]},void 0,!0,void 0,this),V1.jsxDEV(V5,{variant:"danger",children:"Failed"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),V1.jsxDEV("div",{className:"stats-mobile-card-grid",children:[V1.jsxDEV("div",{children:[V1.jsxDEV("div",{className:"stats-mobile-card-label",children:"Time"},void 0,!1,void 0,this),V1.jsxDEV("div",{className:"stats-mobile-card-value",children:r4(W.timestamp)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),V1.jsxDEV("div",{children:[V1.jsxDEV("div",{className:"stats-mobile-card-label",children:"Cost"},void 0,!1,void 0,this),V1.jsxDEV("div",{className:"stats-mobile-card-value",children:d1(W.usage.cost.total,4)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),V1.jsxDEV("div",{children:[V1.jsxDEV("div",{className:"stats-mobile-card-label",children:"Tokens"},void 0,!1,void 0,this),V1.jsxDEV("div",{className:"stats-mobile-card-value",children:a0(W.usage.totalTokens)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),W.errorMessage&&V1.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 VX=t(I1(),1);var _0=t(M0(),1);function YC({active:J,range:Z,refreshTrigger:q}){let[X,Y]=VX.useState(null),{data:K,error:H,loading:M}=L6(["gain",Z,q,X],(W)=>fL(Z,X,W),{pollMs:30000,enabled:J});return _0.jsxDEV("div",{className:"stats-route-container space-y-6",children:_0.jsxDEV(e1,{loading:M,error:H,data:K,children:K&&_0.jsxDEV(_0.Fragment,{children:[_0.jsxDEV(cD,{projects:K.projects,selected:X,onChange:Y},void 0,!1,void 0,this),_0.jsxDEV(lD,{overall:K.overall},void 0,!1,void 0,this),_0.jsxDEV(sD,{bySource:K.bySource},void 0,!1,void 0,this),_0.jsxDEV(oD,{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 cD({projects:J,selected:Z,onChange:q}){if(J.length===0)return null;return _0.jsxDEV("div",{style:{display:"flex",alignItems:"center",gap:"0.5rem"},children:[_0.jsxDEV("span",{className:"stats-text-secondary",style:{fontSize:"0.875rem",whiteSpace:"nowrap"},children:"Project"},void 0,!1,void 0,this),_0.jsxDEV("select",{className:"stats-select",value:Z??"",onChange:(X)=>q(X.target.value||null),style:{maxWidth:"480px",flex:1},children:[_0.jsxDEV("option",{value:"",children:"All projects"},void 0,!1,void 0,this),J.map((X)=>_0.jsxDEV("option",{value:X,children:X},X,!1,void 0,this))]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)}function lD({overall:J}){return _0.jsxDEV(f1,{title:"Overall Gain",subtitle:"Aggregate snapcompact savings",children:_0.jsxDEV("div",{className:"stats-metric-primary-grid",children:[_0.jsxDEV("div",{className:"stats-metric-card primary",children:[_0.jsxDEV("div",{className:"stats-metric-label",children:"Saved Tokens"},void 0,!1,void 0,this),_0.jsxDEV("div",{className:"stats-metric-value",children:l4(J.savedTokens)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),_0.jsxDEV("div",{className:"stats-metric-card primary",children:[_0.jsxDEV("div",{className:"stats-metric-label",children:"Saved Bytes"},void 0,!1,void 0,this),_0.jsxDEV("div",{className:"stats-metric-value",children:SK(J.savedBytes)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),_0.jsxDEV("div",{className:"stats-metric-card primary",children:[_0.jsxDEV("div",{className:"stats-metric-label",children:"Reduction"},void 0,!1,void 0,this),_0.jsxDEV("div",{className:"stats-metric-value",children:J.reductionPercent!==null?J5(J.reductionPercent):"—"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),_0.jsxDEV("div",{className:"stats-metric-card primary",children:[_0.jsxDEV("div",{className:"stats-metric-label",children:"Total Hits"},void 0,!1,void 0,this),_0.jsxDEV("div",{className:"stats-metric-value",children:a0(J.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 rD({title:J,totals:Z}){return _0.jsxDEV("div",{className:"stats-metric-card secondary",style:{flex:1},children:[_0.jsxDEV("div",{className:"stats-metric-label",style:{fontWeight:600,marginBottom:8},children:J},void 0,!1,void 0,this),_0.jsxDEV("div",{style:{display:"grid",gridTemplateColumns:"1fr 1fr",gap:8},children:[_0.jsxDEV("div",{children:[_0.jsxDEV("div",{className:"stats-metric-label",children:"Saved Tokens"},void 0,!1,void 0,this),_0.jsxDEV("div",{className:"stats-metric-value",style:{fontSize:"1rem"},children:l4(Z.savedTokens)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),_0.jsxDEV("div",{children:[_0.jsxDEV("div",{className:"stats-metric-label",children:"Saved Bytes"},void 0,!1,void 0,this),_0.jsxDEV("div",{className:"stats-metric-value",style:{fontSize:"1rem"},children:SK(Z.savedBytes)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),_0.jsxDEV("div",{children:[_0.jsxDEV("div",{className:"stats-metric-label",children:"Hits"},void 0,!1,void 0,this),_0.jsxDEV("div",{className:"stats-metric-value",style:{fontSize:"1rem"},children:a0(Z.hits)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),_0.jsxDEV("div",{children:[_0.jsxDEV("div",{className:"stats-metric-label",children:"Reduction"},void 0,!1,void 0,this),_0.jsxDEV("div",{className:"stats-metric-value",style:{fontSize:"1rem"},children:Z.reductionPercent!==null?J5(Z.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 sD({bySource:J}){return _0.jsxDEV(f1,{title:"By Source",subtitle:"Savings breakdown per subsystem",children:_0.jsxDEV("div",{style:{display:"flex",gap:16,flexWrap:"wrap"},children:_0.jsxDEV(rD,{title:"Snapcompact",totals:J.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 oD({timeSeries:J}){let Z=c5(),q=x6[Z],{data:X,options:Y}=VX.useMemo(()=>{let K=new Intl.DateTimeFormat(void 0,{month:"short",day:"numeric",timeZone:"UTC"}),M={labels:J.map((T)=>K.format(new Date(`${T.date}T00:00:00.000Z`))),datasets:[{label:"Snapcompact",data:J.map((T)=>T.snapcompact),...CQ(nD.snapcompact)}]},{sharedScaleBase:W,yScale:w}=PQ({chartTheme:q,formatY:(T)=>l4(T)}),z={responsive:!0,maintainAspectRatio:!1,plugins:LQ({chartTheme:q,showLegend:!0,defaultLabel:"Tokens Saved",formatValue:l4}),scales:{x:{...W,stacked:!0},y:{...w,stacked:!0}}};return{data:M,options:z}},[J,q]);return _0.jsxDEV(f1,{title:"Savings Over Time",subtitle:"Daily token savings",children:_0.jsxDEV("div",{style:{height:240},children:J.length===0?_0.jsxDEV("div",{className:"stats-table-empty",children:"No time series data yet"},void 0,!1,void 0,this):_0.jsxDEV(Q5,{data:X,options:Y},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this)}var n4=t(I1(),1);var A0=t(M0(),1);function KC({active:J,range:Z,refreshTrigger:q}){let{data:X,error:Y,loading:K}=L6(["models",Z,q],(H)=>jL(Z,H),{pollMs:30000,enabled:J});return A0.jsxDEV("div",{className:"stats-route-container space-y-6",children:A0.jsxDEV(e1,{loading:K,error:Y,data:X,children:X&&A0.jsxDEV(A0.Fragment,{children:[A0.jsxDEV(iD,{modelSeries:X.modelSeries,timeRange:Z},void 0,!1,void 0,this),A0.jsxDEV(tD,{models:X.byModel,performanceSeries:X.modelPerformanceSeries,timeRange:Z},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 iD({modelSeries:J,timeRange:Z}){let q=c5(),X=x6[q],Y=JZ(Z),K=n4.useMemo(()=>aD(J),[J]),H=n4.useMemo(()=>{return{labels:K.data.map((W)=>DK(W.timestamp,Z)),datasets:K.series.map((W,w)=>({label:W,data:K.data.map((z)=>z[W]??0),borderColor:t1[w%t1.length],backgroundColor:`${t1[w%t1.length]}20`,fill:!0,tension:0.4,pointRadius:0,pointHoverRadius:4,borderWidth:2}))}},[K,Z]),M=n4.useMemo(()=>{return{responsive:!0,maintainAspectRatio:!1,interaction:{mode:"index",intersect:!1},plugins:{legend:{position:"top",align:"start",labels:{color:X.legendLabel,usePointStyle:!0,padding:16,font:{size:12},boxWidth:8}},tooltip:{backgroundColor:X.tooltipBackground,titleColor:X.tooltipTitle,bodyColor:X.tooltipBody,borderColor:X.tooltipBorder,borderWidth:1,padding:12,cornerRadius:8,callbacks:{label:(W)=>{let w=W.dataset.label??"",z=W.parsed.y;return`${w}: ${(z??0).toFixed(1)}%`}}}},scales:{x:{grid:{color:X.grid,drawBorder:!1},ticks:{color:X.tick,font:{size:11}}},y:{grid:{color:X.grid,drawBorder:!1},ticks:{color:X.tick,font:{size:11},callback:(W)=>`${W}%`},min:0,max:100}}}},[X]);return A0.jsxDEV(f1,{title:"Model Preference",subtitle:`Share of requests over ${Y.windowLabel}`,children:A0.jsxDEV("div",{className:"h-[280px]",children:K.data.length===0?A0.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):A0.jsxDEV(Q5,{data:H,options:M},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this)}function aD(J,Z=5){if(J.length===0)return{data:[],series:[]};let q=new Map;for(let T of J){let P=`${T.model}::${T.provider}`,I=q.get(P);if(I)I.total+=T.requests;else q.set(P,{model:T.model,provider:T.provider,total:T.requests})}let Y=[...q.entries()].map(([T,P])=>({key:T,...P})).sort((T,P)=>P.total-T.total).slice(0,Z),K=new Set(Y.map((T)=>T.key)),H=new Map;for(let T of Y)H.set(T.model,(H.get(T.model)??0)+1);let M=new Map;for(let T of Y){let P=(H.get(T.model)??0)>1;M.set(T.key,P?`${T.model} (${T.provider})`:T.model)}let W=new Map;for(let T of J){let P=`${T.model}::${T.provider}`,I=W.get(T.timestamp)??{timestamp:T.timestamp,total:0};I.total+=T.requests;let E=K.has(P)?M.get(P)??T.model:"Other";I[E]=(I[E]??0)+T.requests,W.set(T.timestamp,I)}let w=Y.map((T)=>M.get(T.key)??T.model);if([...W.values()].some((T)=>(T.Other??0)>0))w.push("Other");return{data:[...W.values()].sort((T,P)=>(T.timestamp??0)-(P.timestamp??0)).map((T)=>{let P=T.total??0;for(let I of w)T[I]=P>0?(T[I]??0)/P*100:0;return T}),series:w}}var UC="2fr 0.9fr 0.9fr 1fr 0.8fr 0.8fr 140px 40px";function tD({models:J,performanceSeries:Z,timeRange:q}){let[X,Y]=n4.useState(null),K=JZ(q),H=n4.useMemo(()=>cP(Z,q),[Z,q]),M=c5(),W=x6[M],w=n4.useMemo(()=>{return[...J].sort((z,T)=>T.totalInputTokens+T.totalOutputTokens-(z.totalInputTokens+z.totalOutputTokens))},[J]);return A0.jsxDEV(WX,{title:"Model Statistics",children:[A0.jsxDEV(FX,{gridTemplate:UC,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),A0.jsxDEV(wX,{children:w.map((z,T)=>{let P=`${z.model}::${z.provider}`,E=H.get(P)?.data??[],O=t1[T%t1.length],V=X===P,D=z.errorRate*100;return A0.jsxDEV(zX,{gridTemplate:UC,isExpanded:V,onToggle:()=>Y(V?null:P),cells:[A0.jsxDEV(RX,{model:z.model,provider:z.provider},"name",!1,void 0,this),A0.jsxDEV("div",{className:"text-right text-[var(--text-secondary)] font-mono text-sm",children:z.totalRequests.toLocaleString()},"requests",!1,void 0,this),A0.jsxDEV("div",{className:"text-right text-[var(--text-secondary)] font-mono text-sm",children:["$",z.totalCost.toFixed(2)]},"cost",!0,void 0,this),A0.jsxDEV("div",{className:"text-right text-[var(--text-secondary)] font-mono text-sm",children:(z.totalInputTokens+z.totalOutputTokens).toLocaleString()},"tokens",!1,void 0,this),A0.jsxDEV("div",{className:"text-right text-[var(--text-secondary)] font-mono text-sm",children:z.avgTokensPerSecond?.toFixed(1)??"-"},"tps",!1,void 0,this),A0.jsxDEV("div",{className:"text-right text-[var(--text-secondary)] font-mono text-sm",children:z.avgTtft?`${(z.avgTtft/1000).toFixed(2)}s`:"-"},"ttft",!1,void 0,this)],trendCell:E.length===0?A0.jsxDEV(TX,{},void 0,!1,void 0,this):A0.jsxDEV(HX,{timestamps:E.map((h)=>h.timestamp),values:E.map((h)=>h.avgTokensPerSecond??0),color:O},void 0,!1,void 0,this),expandedContent:A0.jsxDEV("div",{className:"grid gap-4",style:{gridTemplateColumns:"200px 1fr"},children:[A0.jsxDEV("div",{className:"space-y-4 text-sm",children:[A0.jsxDEV("div",{children:[A0.jsxDEV("div",{className:"text-[var(--text-primary)] font-medium mb-2",children:"Quality"},void 0,!1,void 0,this),A0.jsxDEV("div",{className:"space-y-1 text-[var(--text-secondary)]",children:[A0.jsxDEV("div",{className:"flex items-center justify-between",children:[A0.jsxDEV("span",{children:"Error rate"},void 0,!1,void 0,this),A0.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),A0.jsxDEV("div",{className:"flex items-center justify-between",children:[A0.jsxDEV("span",{children:"Cache rate"},void 0,!1,void 0,this),A0.jsxDEV("span",{className:"text-[var(--accent-cyan)]",children:[(z.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),A0.jsxDEV("div",{children:[A0.jsxDEV("div",{className:"text-[var(--text-primary)] font-medium mb-2",children:"Latency"},void 0,!1,void 0,this),A0.jsxDEV("div",{className:"space-y-1 text-[var(--text-secondary)]",children:[A0.jsxDEV("div",{className:"flex items-center justify-between",children:[A0.jsxDEV("span",{children:"Avg duration"},void 0,!1,void 0,this),A0.jsxDEV("span",{className:"font-mono",children:z.avgDuration?`${(z.avgDuration/1000).toFixed(2)}s`:"-"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),A0.jsxDEV("div",{className:"flex items-center justify-between",children:[A0.jsxDEV("span",{children:"Avg TTFT"},void 0,!1,void 0,this),A0.jsxDEV("span",{className:"font-mono",children:z.avgTtft?`${(z.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),A0.jsxDEV("div",{className:"h-[200px]",children:E.length===0?A0.jsxDEV(LX,{},void 0,!1,void 0,this):A0.jsxDEV(eD,{data:E,color:O,chartTheme:W,timeRange:q},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 eD({data:J,color:Z,chartTheme:q,timeRange:X}){let Y=n4.useMemo(()=>{return{labels:J.map((H)=>DK(H.timestamp,X)),datasets:[{label:"TTFT",data:J.map((H)=>H.avgTtftSeconds??null),...y$("#5ad8e6"),yAxisID:"y"},{label:"Tokens/s",data:J.map((H)=>H.avgTokensPerSecond??null),...y$(Z),yAxisID:"y1"}]}},[J,Z,X]),K=n4.useMemo(()=>{return{responsive:!0,maintainAspectRatio:!1,plugins:MX(q),scales:hP(q)}},[q]);return A0.jsxDEV(Q5,{data:Y,options:K},void 0,!1,void 0,this)}var GZ=t(I1(),1);var BC=t(I1(),1);var q5=t(M0(),1),OX={main:{label:"Main agent",color:"#ed4abf"},subagent:{label:"Subagents",color:"#9b4dff"},advisor:{label:"Advisor",color:"#5ad8e6"}};function HC({stats:J}){let Z=BC.useMemo(()=>dP(J),[J]);if(Z.totalTokens===0)return q5.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 q5.jsxDEV("div",{className:"space-y-4",children:[q5.jsxDEV("div",{className:"flex h-3 w-full overflow-hidden rounded-full",style:{background:"var(--surface-2)"},children:Z.segments.map((q)=>q.share>0&&q5.jsxDEV("div",{className:"h-full",style:{width:`${q.share*100}%`,background:OX[q.agentType].color},title:`${OX[q.agentType].label}: ${J5(q.share)}`},q.agentType,!1,void 0,this))},void 0,!1,void 0,this),q5.jsxDEV("div",{className:"space-y-2",children:Z.segments.map((q)=>q5.jsxDEV("div",{className:"flex items-center justify-between gap-3 text-sm",children:[q5.jsxDEV("div",{className:"flex items-center gap-2 min-w-0",children:[q5.jsxDEV("span",{className:"w-2.5 h-2.5 rounded-full flex-shrink-0",style:{background:OX[q.agentType].color}},void 0,!1,void 0,this),q5.jsxDEV("span",{className:"stats-text-primary truncate",children:OX[q.agentType].label},void 0,!1,void 0,this),q5.jsxDEV("span",{className:"stats-text-muted stats-text-xs whitespace-nowrap",children:[a0(q.requests)," req"]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),q5.jsxDEV("div",{className:"flex items-center gap-3 whitespace-nowrap",children:[q5.jsxDEV("span",{className:"stats-text-secondary",children:[l4(q.tokens)," tok"]},void 0,!0,void 0,this),q5.jsxDEV("span",{className:"stats-font-semibold stats-text-primary tabular-nums",children:J5(q.share)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},q.agentType,!0,void 0,this))},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}var U0=t(M0(),1);function MC({active:J,range:Z,refreshTrigger:q,onRequestClick:X}){let{data:Y,error:K,loading:H}=L6(["overview",Z,q],(D)=>AL(Z,D),{pollMs:30000,enabled:J}),{data:M,error:W,loading:w}=L6(["recent-requests",q],(D)=>JX(50,D),{pollMs:30000,enabled:J}),z=c5(),T=x6[z],P=GZ.useMemo(()=>{if(!Y?.timeSeries)return{labels:[],datasets:[]};let D=Y.timeSeries.map((p)=>Y4(new Date(p.timestamp),Z==="1h"||Z==="24h"?"HH:mm":"MMM d")),h=Y.timeSeries.length<=2?3:0;return{labels:D,datasets:[{label:"Requests",data:Y.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:Y.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}]}},[Y?.timeSeries,Z]),I=GZ.useMemo(()=>{return{responsive:!0,maintainAspectRatio:!1,interaction:{mode:"index",intersect:!1},plugins:{legend:{display:!0,position:"top",align:"end",labels:{color:T.legendLabel,boxWidth:8,usePointStyle:!0,font:{size:11}}},tooltip:{backgroundColor:T.tooltipBackground,titleColor:T.tooltipTitle,bodyColor:T.tooltipBody,borderColor:T.tooltipBorder,borderWidth:1,cornerRadius:8,padding:10}},scales:{x:{grid:{color:T.grid,drawBorder:!1},ticks:{color:T.tick,font:{size:10}}},y:{grid:{color:T.grid,drawBorder:!1},ticks:{color:T.tick,font:{size:10}},min:0}}}},[T]),E=GZ.useMemo(()=>[{key:"model",header:"Model",render:(D)=>U0.jsxDEV("div",{children:[U0.jsxDEV("div",{className:"stats-font-medium stats-text-primary",children:D.model},void 0,!1,void 0,this),U0.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)=>r4(D.timestamp)},{key:"tokens",header:"Tokens",numeric:!0,render:(D)=>a0(D.usage.totalTokens)},{key:"cost",header:"Cost",numeric:!0,render:(D)=>d1(D.usage.cost.total,4)},{key:"duration",header:"Duration",numeric:!0,render:(D)=>j6(D.duration)},{key:"status",header:"Status",className:"stats-text-center",render:(D)=>U0.jsxDEV(V5,{variant:D.errorMessage?"danger":"success",children:D.errorMessage?"Failed":"Success"},void 0,!1,void 0,this)}],[]),O=(D,h)=>U0.jsxDEV("div",{className:"stats-mobile-card",onClick:h,children:[U0.jsxDEV("div",{className:"stats-mobile-card-header",children:[U0.jsxDEV("div",{children:[U0.jsxDEV("div",{className:"stats-font-semibold stats-text-primary",children:D.model},void 0,!1,void 0,this),U0.jsxDEV("div",{className:"stats-text-xs stats-text-muted",children:D.provider},void 0,!1,void 0,this)]},void 0,!0,void 0,this),U0.jsxDEV(V5,{variant:D.errorMessage?"danger":"success",children:D.errorMessage?"Failed":"Success"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),U0.jsxDEV("div",{className:"stats-mobile-card-grid",children:[U0.jsxDEV("div",{children:[U0.jsxDEV("div",{className:"stats-mobile-card-label",children:"Time"},void 0,!1,void 0,this),U0.jsxDEV("div",{className:"stats-mobile-card-value",children:r4(D.timestamp)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),U0.jsxDEV("div",{children:[U0.jsxDEV("div",{className:"stats-mobile-card-label",children:"Cost"},void 0,!1,void 0,this),U0.jsxDEV("div",{className:"stats-mobile-card-value",children:d1(D.usage.cost.total,4)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),U0.jsxDEV("div",{children:[U0.jsxDEV("div",{className:"stats-mobile-card-label",children:"Tokens"},void 0,!1,void 0,this),U0.jsxDEV("div",{className:"stats-mobile-card-value",children:a0(D.usage.totalTokens)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),U0.jsxDEV("div",{children:[U0.jsxDEV("div",{className:"stats-mobile-card-label",children:"Duration"},void 0,!1,void 0,this),U0.jsxDEV("div",{className:"stats-mobile-card-value",children:j6(D.duration)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),D.errorMessage&&U0.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),V=GZ.useMemo(()=>{if(!M)return[];return M.slice(0,10)},[M]);return U0.jsxDEV("div",{className:"stats-route-container space-y-6",children:[U0.jsxDEV(e1,{loading:H,error:K,data:Y,children:Y&&U0.jsxDEV(iP,{stats:Y.overall},void 0,!1,void 0,this)},void 0,!1,void 0,this),U0.jsxDEV(f1,{title:"Token Usage by Agent",subtitle:"Share of tokens across the main agent, task subagents, and the advisor",children:U0.jsxDEV(e1,{loading:H,error:K,data:Y,children:Y&&U0.jsxDEV(HC,{stats:Y.byAgentType},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this),U0.jsxDEV("div",{className:"grid grid-cols-1 lg:grid-cols-3 gap-6",children:[U0.jsxDEV("div",{className:"lg:col-span-2",children:U0.jsxDEV(f1,{title:"System Throughput",subtitle:"Request volume and errors over time",children:U0.jsxDEV(e1,{loading:H,error:K,data:Y,children:U0.jsxDEV("div",{className:"h-[280px]",children:Y?.timeSeries&&Y.timeSeries.length>0?U0.jsxDEV(Q5,{data:P,options:I},void 0,!1,void 0,this):U0.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),U0.jsxDEV("div",{children:U0.jsxDEV(f1,{title:"Operational Feed",subtitle:"Real-time request log",children:U0.jsxDEV(e1,{loading:w,error:W,data:M,fallback:U0.jsxDEV("div",{className:"space-y-4",children:Array.from({length:5}).map((D,h)=>U0.jsxDEV("div",{className:"flex items-center gap-3",children:[U0.jsxDEV(Z5,{variant:"circle",width:10,height:10},void 0,!1,void 0,this),U0.jsxDEV("div",{className:"flex-1",children:[U0.jsxDEV(Z5,{variant:"text",width:"60%",height:16},void 0,!1,void 0,this),U0.jsxDEV(Z5,{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:U0.jsxDEV("div",{className:"stats-feed-ledger overflow-y-auto max-h-[280px] pr-2",children:[V.map((D)=>{let h=!!D.errorMessage;return U0.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&&X(D.id),children:[U0.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),U0.jsxDEV("div",{className:"flex-1 min-w-0",children:[U0.jsxDEV("div",{className:"flex justify-between items-baseline gap-2",children:[U0.jsxDEV("div",{className:"stats-font-medium stats-text-primary text-sm truncate",children:D.model},void 0,!1,void 0,this),U0.jsxDEV("div",{className:"stats-text-xs stats-text-muted whitespace-nowrap",children:r4(D.timestamp)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),U0.jsxDEV("div",{className:"flex justify-between items-center text-xs stats-text-muted mt-0.5",children:[U0.jsxDEV("div",{children:D.provider},void 0,!1,void 0,this),U0.jsxDEV("div",{children:[D.duration?j6(D.duration):""," ",D.usage?.cost?.total?`· ${d1(D.usage.cost.total,4)}`:""]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),h&&U0.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)}),V.length===0&&U0.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),U0.jsxDEV(f1,{title:"Recent Requests Preview",subtitle:"Latest transactions processed by the proxy",actions:U0.jsxDEV("a",{href:`#/requests?range=${Z}`,className:"stats-button stats-button-secondary text-xs",children:"View All Requests"},void 0,!1,void 0,this),children:U0.jsxDEV(e1,{loading:w,error:W,data:M,children:U0.jsxDEV(u8,{columns:E,data:V,keyExtractor:(D)=>D.id||`${D.sessionFile}-${D.entryId}`,onRowClick:(D)=>D.id&&X(D.id),renderMobileCard:O,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 yK=t(I1(),1);var Z1=t(M0(),1);function WC({active:J,range:Z,refreshTrigger:q}){let{data:X,error:Y,loading:K}=L6(["projects",Z,q],(w)=>yL(Z,w),{pollMs:30000,enabled:J}),H=yK.useMemo(()=>{if(!X)return[];return rP(X)},[X]),M=yK.useMemo(()=>[{key:"folder",header:"Project/Folder",render:(w)=>Z1.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)=>Z1.jsxDEV("div",{className:"stats-text-right",children:[Z1.jsxDEV("div",{className:"font-mono",children:a0(w.totalRequests)},void 0,!1,void 0,this),Z1.jsxDEV("div",{className:"stats-progress-bar-track mt-1 ml-auto w-24 h-1",children:Z1.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)=>Z1.jsxDEV("div",{className:"stats-text-right",children:[Z1.jsxDEV("div",{className:"font-mono",children:d1(w.totalCost)},void 0,!1,void 0,this),Z1.jsxDEV("div",{className:"stats-progress-bar-track mt-1 ml-auto w-24 h-1",children:Z1.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)=>Z1.jsxDEV("div",{className:"font-mono",children:a0(w.totalInputTokens+w.totalOutputTokens)},void 0,!1,void 0,this)},{key:"cacheRate",header:"Cache Rate",numeric:!0,render:(w)=>Z1.jsxDEV("span",{className:"stats-text-success font-medium",children:J5(w.cacheRate)},void 0,!1,void 0,this)},{key:"errorRate",header:"Error Rate",numeric:!0,render:(w)=>Z1.jsxDEV(V5,{variant:w.errorRate>0.1?"danger":w.errorRate>0?"warning":"success",children:J5(w.errorRate)},void 0,!1,void 0,this)},{key:"avgDuration",header:"Avg Duration",numeric:!0,render:(w)=>j6(w.avgDuration)}],[]);return Z1.jsxDEV("div",{className:"stats-route-container",children:Z1.jsxDEV(f1,{title:"Projects & Folders",subtitle:"Aggregate proxy metrics grouped by folder path",children:Z1.jsxDEV(e1,{loading:K,error:Y,data:X,emptyText:"No project folders recorded for this range.",children:Z1.jsxDEV(u8,{columns:M,data:H,keyExtractor:(w)=>w.folder,renderMobileCard:(w)=>Z1.jsxDEV("div",{className:"stats-mobile-card",children:[Z1.jsxDEV("div",{className:"stats-mobile-card-header mb-2",children:[Z1.jsxDEV("div",{className:"stats-font-semibold stats-text-primary",children:w.folder||"(root)"},void 0,!1,void 0,this),Z1.jsxDEV(V5,{variant:w.errorRate>0.1?"danger":w.errorRate>0?"warning":"success",children:[J5(w.errorRate)," Err"]},void 0,!0,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:"Requests"},void 0,!1,void 0,this),Z1.jsxDEV("div",{className:"stats-mobile-card-value font-mono",children:a0(w.totalRequests)},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 font-mono",children:d1(w.totalCost)},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:"Cache"},void 0,!1,void 0,this),Z1.jsxDEV("div",{className:"stats-mobile-card-value",children:J5(w.cacheRate)},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:j6(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 FC=t(I1(),1);var B1=t(M0(),1);function wC({active:J,refreshTrigger:Z,onRequestClick:q}){let{data:X,error:Y,loading:K}=L6(["recent-requests-dense",Z],(W)=>JX(50,W),{pollMs:30000,enabled:J}),H=FC.useMemo(()=>[{key:"model",header:"Model",render:(W)=>B1.jsxDEV("div",{children:[B1.jsxDEV("div",{className:"stats-font-medium stats-text-primary",children:W.model},void 0,!1,void 0,this),B1.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)=>r4(W.timestamp)},{key:"tokens",header:"Tokens",numeric:!0,render:(W)=>a0(W.usage.totalTokens)},{key:"cost",header:"Cost",numeric:!0,render:(W)=>d1(W.usage.cost.total,4)},{key:"duration",header:"Duration",numeric:!0,render:(W)=>j6(W.duration)},{key:"status",header:"Status",className:"stats-text-center",render:(W)=>B1.jsxDEV(V5,{variant:W.errorMessage?"danger":"success",children:W.errorMessage?"Failed":"Success"},void 0,!1,void 0,this)}],[]);return B1.jsxDEV("div",{className:"stats-route-container",children:B1.jsxDEV(f1,{title:"All Recent Requests",subtitle:"Up to 50 most recent requests processed by OMP",children:B1.jsxDEV(e1,{loading:K,error:Y,data:X,children:B1.jsxDEV(u8,{columns:H,data:X||[],keyExtractor:(W)=>W.id||`${W.sessionFile}-${W.entryId}`,onRowClick:(W)=>W.id&&q(W.id),renderMobileCard:(W,w)=>B1.jsxDEV("div",{className:"stats-mobile-card",onClick:w,children:[B1.jsxDEV("div",{className:"stats-mobile-card-header",children:[B1.jsxDEV("div",{children:[B1.jsxDEV("div",{className:"stats-font-semibold stats-text-primary",children:W.model},void 0,!1,void 0,this),B1.jsxDEV("div",{className:"stats-text-xs stats-text-muted",children:W.provider},void 0,!1,void 0,this)]},void 0,!0,void 0,this),B1.jsxDEV(V5,{variant:W.errorMessage?"danger":"success",children:W.errorMessage?"Failed":"Success"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),B1.jsxDEV("div",{className:"stats-mobile-card-grid",children:[B1.jsxDEV("div",{children:[B1.jsxDEV("div",{className:"stats-mobile-card-label",children:"Time"},void 0,!1,void 0,this),B1.jsxDEV("div",{className:"stats-mobile-card-value",children:r4(W.timestamp)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),B1.jsxDEV("div",{children:[B1.jsxDEV("div",{className:"stats-mobile-card-label",children:"Cost"},void 0,!1,void 0,this),B1.jsxDEV("div",{className:"stats-mobile-card-value",children:d1(W.usage.cost.total,4)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),B1.jsxDEV("div",{children:[B1.jsxDEV("div",{className:"stats-mobile-card-label",children:"Tokens"},void 0,!1,void 0,this),B1.jsxDEV("div",{className:"stats-mobile-card-value",children:a0(W.usage.totalTokens)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),B1.jsxDEV("div",{children:[B1.jsxDEV("div",{className:"stats-mobile-card-label",children:"Duration"},void 0,!1,void 0,this),B1.jsxDEV("div",{className:"stats-mobile-card-value",children:j6(W.duration)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),W.errorMessage&&B1.jsxDEV("div",{className:"stats-mobile-card-error truncate mt-2",children:W.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 u6=t(M0(),1);function fK(){let{section:J,setSection:Z,range:q,setRange:X}=oL(),[Y,K]=f$.useState(0),[H,M]=f$.useState(null),[W,w]=f$.useState(()=>Date.now()),z=f$.useCallback((O)=>{if(O.success)K((V)=>V+1),w(Date.now())},[]),T=f$.useCallback(()=>M(null),[]),P=J,I=f$.useRef(new Set);I.current.add(P);let E=(O)=>{let V=O===P;switch(O){case"overview":return u6.jsxDEV(MC,{active:V,range:q,refreshTrigger:Y,onRequestClick:M},void 0,!1,void 0,this);case"requests":return u6.jsxDEV(wC,{active:V,range:q,refreshTrigger:Y,onRequestClick:M},void 0,!1,void 0,this);case"errors":return u6.jsxDEV(NC,{active:V,range:q,refreshTrigger:Y,onRequestClick:M},void 0,!1,void 0,this);case"models":return u6.jsxDEV(KC,{active:V,range:q,refreshTrigger:Y},void 0,!1,void 0,this);case"costs":return u6.jsxDEV(qC,{active:V,range:q,refreshTrigger:Y},void 0,!1,void 0,this);case"behavior":return u6.jsxDEV(GC,{active:V,range:q,refreshTrigger:Y},void 0,!1,void 0,this);case"projects":return u6.jsxDEV(WC,{active:V,range:q,refreshTrigger:Y},void 0,!1,void 0,this);case"gain":return u6.jsxDEV(YC,{active:V,range:q,refreshTrigger:Y},void 0,!1,void 0,this)}};return u6.jsxDEV(u6.Fragment,{children:[u6.jsxDEV(sL,{activeSection:P,onSectionChange:Z,range:q,onRangeChange:X,updatedAt:W,onSyncComplete:z,children:[...I.current].map((O)=>u6.jsxDEV("div",{hidden:O!==P,children:E(O)},O,!1,void 0,this))},void 0,!1,void 0,this),u6.jsxDEV(tP,{id:H,onClose:T},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}var zC=t(M0(),1),$v=RC.createRoot(document.getElementById("root"));$v.render(zC.jsxDEV(fK,{},void 0,!1,void 0,this));
|