@oh-my-pi/omp-stats 17.2.12 → 17.2.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 +54 -54
- package/package.json +4 -4
package/dist/client/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
var mO=Object.create;var{getPrototypeOf:dO,defineProperty:Nw,getOwnPropertyNames:pO}=Object;var cO=Object.prototype.hasOwnProperty;function lO(J){return this[J]}var rO,sO,s=(J,G,q)=>{var X=J!=null&&typeof J==="object";if(X){var N=G?rO??=new WeakMap:sO??=new WeakMap,K=N.get(J);if(K)return K}q=J!=null?mO(dO(J)):{};let H=G||!J||!J.__esModule?Nw(q,"default",{value:J,enumerable:!0}):q;for(let F of pO(J))if(!cO.call(H,F))Nw(H,F,{get:lO.bind(J,F),enumerable:!0});if(X)N.set(J,H);return H};var T2=(J,G)=>()=>(G||J((G={exports:{}}).exports,G),G.exports);var S_=T2((JS)=>{(function(){function J(){if(n=!1,i){var l=JS.unstable_now();H0=l;var Y0=!0;try{$:{h=!1,p&&(p=!1,Q0(X0),X0=-1),j=!0;var F0=I;try{Z:{K(l);for(V=q(P);V!==null&&!(V.expirationTime>l&&F());){var a0=V.callback;if(typeof a0==="function"){V.callback=null,I=V.priorityLevel;var d0=a0(V.expirationTime<=l);if(l=JS.unstable_now(),typeof d0==="function"){V.callback=d0,K(l),Y0=!0;break Z}V===q(P)&&X(P),K(l)}else X(P);V=q(P)}if(V!==null)Y0=!0;else{var k=q(O);k!==null&&W(H,k.startTime-l),Y0=!1}}break $}finally{V=null,I=F0,j=!1}Y0=void 0}}finally{Y0?P0():i=!1}}}function G(l,Y0){var F0=l.length;l.push(Y0);$:for(;0<F0;){var a0=F0-1>>>1,d0=l[a0];if(0<N(d0,Y0))l[a0]=Y0,l[F0]=d0,F0=a0;else break $}}function q(l){return l.length===0?null:l[0]}function X(l){if(l.length===0)return null;var Y0=l[0],F0=l.pop();if(F0!==Y0){l[0]=F0;$:for(var a0=0,d0=l.length,k=d0>>>1;a0<k;){var o=2*(a0+1)-1,W0=l[o],z0=o+1,p0=l[z0];if(0>N(W0,F0))z0<d0&&0>N(p0,W0)?(l[a0]=p0,l[z0]=F0,a0=z0):(l[a0]=W0,l[o]=F0,a0=o);else if(z0<d0&&0>N(p0,F0))l[a0]=p0,l[z0]=F0,a0=z0;else break $}}return Y0}function N(l,Y0){var F0=l.sortIndex-Y0.sortIndex;return F0!==0?F0:l.id-Y0.id}function K(l){for(var Y0=q(O);Y0!==null;){if(Y0.callback===null)X(O);else if(Y0.startTime<=l)X(O),Y0.sortIndex=Y0.expirationTime,G(P,Y0);else break;Y0=q(O)}}function H(l){if(p=!1,K(l),!h)if(q(P)!==null)h=!0,i||(i=!0,P0());else{var Y0=q(O);Y0!==null&&W(H,Y0.startTime-l)}}function F(){return n?!0:JS.unstable_now()-H0<d?!1:!0}function W(l,Y0){X0=a(function(){l(JS.unstable_now())},Y0)}if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart==="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error()),JS.unstable_now=void 0,typeof performance==="object"&&typeof performance.now==="function"){var M=performance;JS.unstable_now=function(){return M.now()}}else{var R=Date,_=R.now();JS.unstable_now=function(){return R.now()-_}}var P=[],O=[],E=1,V=null,I=3,j=!1,h=!1,p=!1,n=!1,a=typeof setTimeout==="function"?setTimeout:null,Q0=typeof clearTimeout==="function"?clearTimeout:null,t=typeof setImmediate<"u"?setImmediate:null,i=!1,X0=-1,d=5,H0=-1;if(typeof t==="function")var P0=function(){t(J)};else if(typeof MessageChannel<"u"){var O0=new MessageChannel,v0=O0.port2;O0.port1.onmessage=J,P0=function(){v0.postMessage(null)}}else P0=function(){a(J,0)};JS.unstable_IdlePriority=5,JS.unstable_ImmediatePriority=1,JS.unstable_LowPriority=4,JS.unstable_NormalPriority=3,JS.unstable_Profiling=null,JS.unstable_UserBlockingPriority=2,JS.unstable_cancelCallback=function(l){l.callback=null},JS.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},JS.unstable_getCurrentPriorityLevel=function(){return I},JS.unstable_next=function(l){switch(I){case 1:case 2:case 3:var Y0=3;break;default:Y0=I}var F0=I;I=Y0;try{return l()}finally{I=F0}},JS.unstable_requestPaint=function(){n=!0},JS.unstable_runWithPriority=function(l,Y0){switch(l){case 1:case 2:case 3:case 4:case 5:break;default:l=3}var F0=I;I=l;try{return Y0()}finally{I=F0}},JS.unstable_scheduleCallback=function(l,Y0,F0){var a0=JS.unstable_now();switch(typeof F0==="object"&&F0!==null?(F0=F0.delay,F0=typeof F0==="number"&&0<F0?a0+F0:a0):F0=a0,l){case 1:var d0=-1;break;case 2:d0=250;break;case 5:d0=1073741823;break;case 4:d0=1e4;break;default:d0=5000}return d0=F0+d0,l={id:E++,callback:Y0,priorityLevel:l,startTime:F0,expirationTime:d0,sortIndex:-1},F0>a0?(l.sortIndex=F0,G(O,l),q(P)===null&&l===q(O)&&(p?(Q0(X0),X0=-1):p=!0,W(H,F0-a0))):(l.sortIndex=d0,G(P,l),h||j||(h=!0,i||(i=!0,P0()))),l},JS.unstable_shouldYield=F,JS.unstable_wrapCallback=function(l){var Y0=I;return function(){var F0=I;I=Y0;try{return l.apply(this,arguments)}finally{I=F0}}},typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop==="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()});var L1=T2((QS,l3)=>{(function(){function J(C,y){Object.defineProperty(X.prototype,C,{get:function(){console.warn("%s(...) is deprecated in plain JavaScript React classes. %s",y[0],y[1])}})}function G(C){if(C===null||typeof C!=="object")return null;return C=aJ&&C[aJ]||C["@@iterator"],typeof C==="function"?C:null}function q(C,y){C=(C=C.constructor)&&(C.displayName||C.name)||"ReactClass";var r=C+"."+y;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.",y,C),q0[r]=!0)}function X(C,y,r){this.props=C,this.context=y,this.refs=k8,this.updater=r||t7}function N(){}function K(C,y,r){this.props=C,this.context=y,this.refs=k8,this.updater=r||t7}function H(){}function F(C){return""+C}function W(C){try{F(C);var y=!1}catch(N0){y=!0}if(y){y=console;var r=y.error,Z0=typeof Symbol==="function"&&Symbol.toStringTag&&C[Symbol.toStringTag]||C.constructor.name||"Object";return r.call(y,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",Z0),F(C)}}function M(C){if(C==null)return null;if(typeof C==="function")return C.$$typeof===P$?null:C.displayName||C.name||null;if(typeof C==="string")return C;switch(C){case d0:return"Fragment";case o:return"Profiler";case k:return"StrictMode";case m1:return"Suspense";case b0:return"SuspenseList";case i6:return"Activity"}if(typeof C==="object")switch(typeof C.tag==="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),C.$$typeof){case a0:return"Portal";case z0:return C.displayName||"Context";case W0:return(C._context.displayName||"Context")+".Consumer";case p0:var y=C.render;return C=C.displayName,C||(C=y.displayName||y.name||"",C=C!==""?"ForwardRef("+C+")":"ForwardRef"),C;case o1:return y=C.displayName||null,y!==null?y:M(C.type)||"Memo";case V5:y=C._payload,C=C._init;try{return M(C(y))}catch(r){}}return null}function R(C){if(C===d0)return"<>";if(typeof C==="object"&&C!==null&&C.$$typeof===V5)return"<...>";try{var y=M(C);return y?"<"+y+">":"<...>"}catch(r){return"<...>"}}function _(){var C=y0.A;return C===null?null:C.getOwner()}function P(){return Error("react-stack-top-frame")}function O(C){if(e7.call(C,"key")){var y=Object.getOwnPropertyDescriptor(C,"key").get;if(y&&y.isReactWarning)return!1}return C.key!==void 0}function E(C,y){function r(){iJ||(iJ=!0,console.error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",y))}r.isReactWarning=!0,Object.defineProperty(C,"key",{get:r,configurable:!0})}function V(){var C=M(this.type);return d2[C]||(d2[C]=!0,console.error("Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.")),C=this.props.ref,C!==void 0?C:null}function I(C,y,r,Z0,N0,j0){var k0=r.ref;return C={$$typeof:F0,type:C,key:y,props:r,_owner:Z0},(k0!==void 0?k0:null)!==null?Object.defineProperty(C,"ref",{enumerable:!1,get:V}):Object.defineProperty(C,"ref",{enumerable:!1,value:null}),C._store={},Object.defineProperty(C._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(C,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(C,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:N0}),Object.defineProperty(C,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:j0}),Object.freeze&&(Object.freeze(C.props),Object.freeze(C)),C}function j(C,y){return y=I(C.type,y,C.props,C._owner,C._debugStack,C._debugTask),C._store&&(y._store.validated=C._store.validated),y}function h(C){p(C)?C._store&&(C._store.validated=1):typeof C==="object"&&C!==null&&C.$$typeof===V5&&(C._payload.status==="fulfilled"?p(C._payload.value)&&C._payload.value._store&&(C._payload.value._store.validated=1):C._store&&(C._store.validated=1))}function p(C){return typeof C==="object"&&C!==null&&C.$$typeof===F0}function n(C){var y={"=":"=0",":":"=2"};return"$"+C.replace(/[=:]/g,function(r){return y[r]})}function a(C,y){return typeof C==="object"&&C!==null&&C.key!=null?(W(C.key),n(""+C.key)):y.toString(36)}function Q0(C){switch(C.status){case"fulfilled":return C.value;case"rejected":throw C.reason;default:switch(typeof C.status==="string"?C.then(H,H):(C.status="pending",C.then(function(y){C.status==="pending"&&(C.status="fulfilled",C.value=y)},function(y){C.status==="pending"&&(C.status="rejected",C.reason=y)})),C.status){case"fulfilled":return C.value;case"rejected":throw C.reason}}throw C}function t(C,y,r,Z0,N0){var j0=typeof C;if(j0==="undefined"||j0==="boolean")C=null;var k0=!1;if(C===null)k0=!0;else switch(j0){case"bigint":case"string":case"number":k0=!0;break;case"object":switch(C.$$typeof){case F0:case a0:k0=!0;break;case V5:return k0=C._init,t(k0(C._payload),y,r,Z0,N0)}}if(k0){k0=C,N0=N0(k0);var J1=Z0===""?"."+a(k0,0):Z0;return W1(N0)?(r="",J1!=null&&(r=J1.replace(Z9,"$&/")+"/"),t(N0,y,r,"",function(A5){return A5})):N0!=null&&(p(N0)&&(N0.key!=null&&(k0&&k0.key===N0.key||W(N0.key)),r=j(N0,r+(N0.key==null||k0&&k0.key===N0.key?"":(""+N0.key).replace(Z9,"$&/")+"/")+J1),Z0!==""&&k0!=null&&p(k0)&&k0.key==null&&k0._store&&!k0._store.validated&&(r._store.validated=2),N0=r),y.push(N0)),1}if(k0=0,J1=Z0===""?".":Z0+":",W1(C))for(var _0=0;_0<C.length;_0++)Z0=C[_0],j0=J1+a(Z0,_0),k0+=t(Z0,y,r,j0,N0);else if(_0=G(C),typeof _0==="function")for(_0===C.entries&&($9||console.warn("Using Maps as children is not supported. Use an array of keyed ReactElements instead."),$9=!0),C=_0.call(C),_0=0;!(Z0=C.next()).done;)Z0=Z0.value,j0=J1+a(Z0,_0++),k0+=t(Z0,y,r,j0,N0);else if(j0==="object"){if(typeof C.then==="function")return t(Q0(C),y,r,Z0,N0);throw y=String(C),Error("Objects are not valid as a React child (found: "+(y==="[object Object]"?"object with keys {"+Object.keys(C).join(", ")+"}":y)+"). If you meant to render a collection of children, use an array instead.")}return k0}function i(C,y,r){if(C==null)return C;var Z0=[],N0=0;return t(C,Z0,"","",function(j0){return y.call(r,j0,N0++)}),Z0}function X0(C){if(C._status===-1){var y=C._ioInfo;y!=null&&(y.start=y.end=performance.now()),y=C._result;var r=y();if(r.then(function(N0){if(C._status===0||C._status===-1){C._status=1,C._result=N0;var j0=C._ioInfo;j0!=null&&(j0.end=performance.now()),r.status===void 0&&(r.status="fulfilled",r.value=N0)}},function(N0){if(C._status===0||C._status===-1){C._status=2,C._result=N0;var j0=C._ioInfo;j0!=null&&(j0.end=performance.now()),r.status===void 0&&(r.status="rejected",r.reason=N0)}}),y=C._ioInfo,y!=null){y.value=r;var Z0=r.displayName;typeof Z0==="string"&&(y.name=Z0)}C._status===-1&&(C._status=0,C._result=r)}if(C._status===1)return y=C._result,y===void 0&&console.error(`lazy: Expected the result of a dynamic import() call. Instead received: %s
|
|
1
|
+
var mO=Object.create;var{getPrototypeOf:dO,defineProperty:Nw,getOwnPropertyNames:pO}=Object;var cO=Object.prototype.hasOwnProperty;function lO(J){return this[J]}var rO,sO,s=(J,G,q)=>{var X=J!=null&&typeof J==="object";if(X){var N=G?rO??=new WeakMap:sO??=new WeakMap,K=N.get(J);if(K)return K}q=J!=null?mO(dO(J)):{};let H=G||!J||!J.__esModule?Nw(q,"default",{value:J,enumerable:!0}):q;for(let F of pO(J))if(!cO.call(H,F))Nw(H,F,{get:lO.bind(J,F),enumerable:!0});if(X)N.set(J,H);return H};var T2=(J,G)=>()=>(G||J((G={exports:{}}).exports,G),G.exports);var S_=T2((JS)=>{(function(){function J(){if(n=!1,i){var l=JS.unstable_now();H0=l;var Y0=!0;try{$:{h=!1,p&&(p=!1,Q0(X0),X0=-1),j=!0;var F0=I;try{Z:{K(l);for(V=q(P);V!==null&&!(V.expirationTime>l&&F());){var a0=V.callback;if(typeof a0==="function"){V.callback=null,I=V.priorityLevel;var d0=a0(V.expirationTime<=l);if(l=JS.unstable_now(),typeof d0==="function"){V.callback=d0,K(l),Y0=!0;break Z}V===q(P)&&X(P),K(l)}else X(P);V=q(P)}if(V!==null)Y0=!0;else{var k=q(O);k!==null&&W(H,k.startTime-l),Y0=!1}}break $}finally{V=null,I=F0,j=!1}Y0=void 0}}finally{Y0?P0():i=!1}}}function G(l,Y0){var F0=l.length;l.push(Y0);$:for(;0<F0;){var a0=F0-1>>>1,d0=l[a0];if(0<N(d0,Y0))l[a0]=Y0,l[F0]=d0,F0=a0;else break $}}function q(l){return l.length===0?null:l[0]}function X(l){if(l.length===0)return null;var Y0=l[0],F0=l.pop();if(F0!==Y0){l[0]=F0;$:for(var a0=0,d0=l.length,k=d0>>>1;a0<k;){var o=2*(a0+1)-1,W0=l[o],z0=o+1,p0=l[z0];if(0>N(W0,F0))z0<d0&&0>N(p0,W0)?(l[a0]=p0,l[z0]=F0,a0=z0):(l[a0]=W0,l[o]=F0,a0=o);else if(z0<d0&&0>N(p0,F0))l[a0]=p0,l[z0]=F0,a0=z0;else break $}}return Y0}function N(l,Y0){var F0=l.sortIndex-Y0.sortIndex;return F0!==0?F0:l.id-Y0.id}function K(l){for(var Y0=q(O);Y0!==null;){if(Y0.callback===null)X(O);else if(Y0.startTime<=l)X(O),Y0.sortIndex=Y0.expirationTime,G(P,Y0);else break;Y0=q(O)}}function H(l){if(p=!1,K(l),!h)if(q(P)!==null)h=!0,i||(i=!0,P0());else{var Y0=q(O);Y0!==null&&W(H,Y0.startTime-l)}}function F(){return n?!0:JS.unstable_now()-H0<d?!1:!0}function W(l,Y0){X0=a(function(){l(JS.unstable_now())},Y0)}if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart==="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error()),JS.unstable_now=void 0,typeof performance==="object"&&typeof performance.now==="function"){var M=performance;JS.unstable_now=function(){return M.now()}}else{var R=Date,_=R.now();JS.unstable_now=function(){return R.now()-_}}var P=[],O=[],E=1,V=null,I=3,j=!1,h=!1,p=!1,n=!1,a=typeof setTimeout==="function"?setTimeout:null,Q0=typeof clearTimeout==="function"?clearTimeout:null,t=typeof setImmediate<"u"?setImmediate:null,i=!1,X0=-1,d=5,H0=-1;if(typeof t==="function")var P0=function(){t(J)};else if(typeof MessageChannel<"u"){var O0=new MessageChannel,v0=O0.port2;O0.port1.onmessage=J,P0=function(){v0.postMessage(null)}}else P0=function(){a(J,0)};JS.unstable_IdlePriority=5,JS.unstable_ImmediatePriority=1,JS.unstable_LowPriority=4,JS.unstable_NormalPriority=3,JS.unstable_Profiling=null,JS.unstable_UserBlockingPriority=2,JS.unstable_cancelCallback=function(l){l.callback=null},JS.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},JS.unstable_getCurrentPriorityLevel=function(){return I},JS.unstable_next=function(l){switch(I){case 1:case 2:case 3:var Y0=3;break;default:Y0=I}var F0=I;I=Y0;try{return l()}finally{I=F0}},JS.unstable_requestPaint=function(){n=!0},JS.unstable_runWithPriority=function(l,Y0){switch(l){case 1:case 2:case 3:case 4:case 5:break;default:l=3}var F0=I;I=l;try{return Y0()}finally{I=F0}},JS.unstable_scheduleCallback=function(l,Y0,F0){var a0=JS.unstable_now();switch(typeof F0==="object"&&F0!==null?(F0=F0.delay,F0=typeof F0==="number"&&0<F0?a0+F0:a0):F0=a0,l){case 1:var d0=-1;break;case 2:d0=250;break;case 5:d0=1073741823;break;case 4:d0=1e4;break;default:d0=5000}return d0=F0+d0,l={id:E++,callback:Y0,priorityLevel:l,startTime:F0,expirationTime:d0,sortIndex:-1},F0>a0?(l.sortIndex=F0,G(O,l),q(P)===null&&l===q(O)&&(p?(Q0(X0),X0=-1):p=!0,W(H,F0-a0))):(l.sortIndex=d0,G(P,l),h||j||(h=!0,i||(i=!0,P0()))),l},JS.unstable_shouldYield=F,JS.unstable_wrapCallback=function(l){var Y0=I;return function(){var F0=I;I=Y0;try{return l.apply(this,arguments)}finally{I=F0}}},typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop==="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()});var L1=T2((QS,l3)=>{(function(){function J(C,y){Object.defineProperty(X.prototype,C,{get:function(){console.warn("%s(...) is deprecated in plain JavaScript React classes. %s",y[0],y[1])}})}function G(C){if(C===null||typeof C!=="object")return null;return C=aJ&&C[aJ]||C["@@iterator"],typeof C==="function"?C:null}function q(C,y){C=(C=C.constructor)&&(C.displayName||C.name)||"ReactClass";var r=C+"."+y;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.",y,C),q0[r]=!0)}function X(C,y,r){this.props=C,this.context=y,this.refs=k8,this.updater=r||e7}function N(){}function K(C,y,r){this.props=C,this.context=y,this.refs=k8,this.updater=r||e7}function H(){}function F(C){return""+C}function W(C){try{F(C);var y=!1}catch(N0){y=!0}if(y){y=console;var r=y.error,Z0=typeof Symbol==="function"&&Symbol.toStringTag&&C[Symbol.toStringTag]||C.constructor.name||"Object";return r.call(y,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",Z0),F(C)}}function M(C){if(C==null)return null;if(typeof C==="function")return C.$$typeof===T$?null:C.displayName||C.name||null;if(typeof C==="string")return C;switch(C){case d0:return"Fragment";case o:return"Profiler";case k:return"StrictMode";case m1:return"Suspense";case b0:return"SuspenseList";case i6:return"Activity"}if(typeof C==="object")switch(typeof C.tag==="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),C.$$typeof){case a0:return"Portal";case z0:return C.displayName||"Context";case W0:return(C._context.displayName||"Context")+".Consumer";case p0:var y=C.render;return C=C.displayName,C||(C=y.displayName||y.name||"",C=C!==""?"ForwardRef("+C+")":"ForwardRef"),C;case o1:return y=C.displayName||null,y!==null?y:M(C.type)||"Memo";case V5:y=C._payload,C=C._init;try{return M(C(y))}catch(r){}}return null}function R(C){if(C===d0)return"<>";if(typeof C==="object"&&C!==null&&C.$$typeof===V5)return"<...>";try{var y=M(C);return y?"<"+y+">":"<...>"}catch(r){return"<...>"}}function _(){var C=y0.A;return C===null?null:C.getOwner()}function P(){return Error("react-stack-top-frame")}function O(C){if($9.call(C,"key")){var y=Object.getOwnPropertyDescriptor(C,"key").get;if(y&&y.isReactWarning)return!1}return C.key!==void 0}function E(C,y){function r(){iJ||(iJ=!0,console.error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",y))}r.isReactWarning=!0,Object.defineProperty(C,"key",{get:r,configurable:!0})}function V(){var C=M(this.type);return p2[C]||(p2[C]=!0,console.error("Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.")),C=this.props.ref,C!==void 0?C:null}function I(C,y,r,Z0,N0,j0){var k0=r.ref;return C={$$typeof:F0,type:C,key:y,props:r,_owner:Z0},(k0!==void 0?k0:null)!==null?Object.defineProperty(C,"ref",{enumerable:!1,get:V}):Object.defineProperty(C,"ref",{enumerable:!1,value:null}),C._store={},Object.defineProperty(C._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(C,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(C,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:N0}),Object.defineProperty(C,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:j0}),Object.freeze&&(Object.freeze(C.props),Object.freeze(C)),C}function j(C,y){return y=I(C.type,y,C.props,C._owner,C._debugStack,C._debugTask),C._store&&(y._store.validated=C._store.validated),y}function h(C){p(C)?C._store&&(C._store.validated=1):typeof C==="object"&&C!==null&&C.$$typeof===V5&&(C._payload.status==="fulfilled"?p(C._payload.value)&&C._payload.value._store&&(C._payload.value._store.validated=1):C._store&&(C._store.validated=1))}function p(C){return typeof C==="object"&&C!==null&&C.$$typeof===F0}function n(C){var y={"=":"=0",":":"=2"};return"$"+C.replace(/[=:]/g,function(r){return y[r]})}function a(C,y){return typeof C==="object"&&C!==null&&C.key!=null?(W(C.key),n(""+C.key)):y.toString(36)}function Q0(C){switch(C.status){case"fulfilled":return C.value;case"rejected":throw C.reason;default:switch(typeof C.status==="string"?C.then(H,H):(C.status="pending",C.then(function(y){C.status==="pending"&&(C.status="fulfilled",C.value=y)},function(y){C.status==="pending"&&(C.status="rejected",C.reason=y)})),C.status){case"fulfilled":return C.value;case"rejected":throw C.reason}}throw C}function t(C,y,r,Z0,N0){var j0=typeof C;if(j0==="undefined"||j0==="boolean")C=null;var k0=!1;if(C===null)k0=!0;else switch(j0){case"bigint":case"string":case"number":k0=!0;break;case"object":switch(C.$$typeof){case F0:case a0:k0=!0;break;case V5:return k0=C._init,t(k0(C._payload),y,r,Z0,N0)}}if(k0){k0=C,N0=N0(k0);var J1=Z0===""?"."+a(k0,0):Z0;return W1(N0)?(r="",J1!=null&&(r=J1.replace(J9,"$&/")+"/"),t(N0,y,r,"",function(A5){return A5})):N0!=null&&(p(N0)&&(N0.key!=null&&(k0&&k0.key===N0.key||W(N0.key)),r=j(N0,r+(N0.key==null||k0&&k0.key===N0.key?"":(""+N0.key).replace(J9,"$&/")+"/")+J1),Z0!==""&&k0!=null&&p(k0)&&k0.key==null&&k0._store&&!k0._store.validated&&(r._store.validated=2),N0=r),y.push(N0)),1}if(k0=0,J1=Z0===""?".":Z0+":",W1(C))for(var _0=0;_0<C.length;_0++)Z0=C[_0],j0=J1+a(Z0,_0),k0+=t(Z0,y,r,j0,N0);else if(_0=G(C),typeof _0==="function")for(_0===C.entries&&(Z9||console.warn("Using Maps as children is not supported. Use an array of keyed ReactElements instead."),Z9=!0),C=_0.call(C),_0=0;!(Z0=C.next()).done;)Z0=Z0.value,j0=J1+a(Z0,_0++),k0+=t(Z0,y,r,j0,N0);else if(j0==="object"){if(typeof C.then==="function")return t(Q0(C),y,r,Z0,N0);throw y=String(C),Error("Objects are not valid as a React child (found: "+(y==="[object Object]"?"object with keys {"+Object.keys(C).join(", ")+"}":y)+"). If you meant to render a collection of children, use an array instead.")}return k0}function i(C,y,r){if(C==null)return C;var Z0=[],N0=0;return t(C,Z0,"","",function(j0){return y.call(r,j0,N0++)}),Z0}function X0(C){if(C._status===-1){var y=C._ioInfo;y!=null&&(y.start=y.end=performance.now()),y=C._result;var r=y();if(r.then(function(N0){if(C._status===0||C._status===-1){C._status=1,C._result=N0;var j0=C._ioInfo;j0!=null&&(j0.end=performance.now()),r.status===void 0&&(r.status="fulfilled",r.value=N0)}},function(N0){if(C._status===0||C._status===-1){C._status=2,C._result=N0;var j0=C._ioInfo;j0!=null&&(j0.end=performance.now()),r.status===void 0&&(r.status="rejected",r.reason=N0)}}),y=C._ioInfo,y!=null){y.value=r;var Z0=r.displayName;typeof Z0==="string"&&(y.name=Z0)}C._status===-1&&(C._status=0,C._result=r)}if(C._status===1)return y=C._result,y===void 0&&console.error(`lazy: Expected the result of a dynamic import() call. Instead received: %s
|
|
2
2
|
|
|
3
3
|
Your code should look like:
|
|
4
4
|
const MyComponent = lazy(() => import('./MyComponent'))
|
|
@@ -10,11 +10,11 @@ Your code should look like:
|
|
|
10
10
|
1. You might have mismatching versions of React and the renderer (such as React DOM)
|
|
11
11
|
2. You might be breaking the Rules of Hooks
|
|
12
12
|
3. You might have more than one copy of React in the same app
|
|
13
|
-
See https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem.`),C}function H0(){y0.asyncTransitions--}function P0(C){if(c2===null)try{var y=("require"+Math.random()).slice(0,7);c2=(l3&&l3[y]).call(l3,"timers").setImmediate}catch(r){c2=function(Z0){tJ===!1&&(tJ=!0,typeof MessageChannel>"u"&&console.error("This browser does not have a MessageChannel implementation, so enqueuing tasks via await act(async () => ...) will fail. Please file an issue at https://github.com/facebook/react/issues if you encounter this warning."));var N0=new MessageChannel;N0.port1.onmessage=Z0,N0.port2.postMessage(void 0)}}return c2(C)}function O0(C){return 1<C.length&&typeof AggregateError==="function"?AggregateError(C):C[0]}function v0(C,y){y!==l2-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. "),l2=y}function l(C,y,r){var Z0=y0.actQueue;if(Z0!==null)if(Z0.length!==0)try{Y0(Z0),P0(function(){return l(C,y,r)});return}catch(N0){y0.thrownErrors.push(N0)}else y0.actQueue=null;0<y0.thrownErrors.length?(Z0=O0(y0.thrownErrors),y0.thrownErrors.length=0,r(Z0)):y(C)}function Y0(C){if(!s2){s2=!0;var y=0;try{for(;y<C.length;y++){var r=C[y];do{y0.didUsePromise=!1;var Z0=r(!1);if(Z0!==null){if(y0.didUsePromise){C[y]=r,C.splice(0,y);return}r=Z0}else break}while(1)}C.length=0}catch(N0){C.splice(0,y+1),y0.thrownErrors.push(N0)}finally{s2=!1}}}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart==="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var F0=Symbol.for("react.transitional.element"),a0=Symbol.for("react.portal"),d0=Symbol.for("react.fragment"),k=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),W0=Symbol.for("react.consumer"),z0=Symbol.for("react.context"),p0=Symbol.for("react.forward_ref"),m1=Symbol.for("react.suspense"),b0=Symbol.for("react.suspense_list"),o1=Symbol.for("react.memo"),V5=Symbol.for("react.lazy"),i6=Symbol.for("react.activity"),aJ=Symbol.iterator,q0={},t7={isMounted:function(){return!1},enqueueForceUpdate:function(C){q(C,"forceUpdate")},enqueueReplaceState:function(C){q(C,"replaceState")},enqueueSetState:function(C){q(C,"setState")}},m2=Object.assign,k8={};Object.freeze(k8),X.prototype.isReactComponent={},X.prototype.setState=function(C,y){if(typeof C!=="object"&&typeof C!=="function"&&C!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,C,y,"setState")},X.prototype.forceUpdate=function(C){this.updater.enqueueForceUpdate(this,C,"forceUpdate")};var U5={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(b8 in U5)U5.hasOwnProperty(b8)&&J(b8,U5[b8]);N.prototype=X.prototype,U5=K.prototype=new N,U5.constructor=K,m2(U5,X.prototype),U5.isPureReactComponent=!0;var W1=Array.isArray,P$=Symbol.for("react.client.reference"),y0={H:null,A:null,T:null,S:null,actQueue:null,asyncTransitions:0,isBatchingLegacy:!1,didScheduleLegacyUpdate:!1,didUsePromise:!1,thrownErrors:[],getCurrentStack:null,recentlyCreatedOwnerStacks:0},e7=Object.prototype.hasOwnProperty,P1=console.createTask?console.createTask:function(){return null};U5={react_stack_bottom_frame:function(C){return C()}};var iJ,B4,d2={},p2=U5.react_stack_bottom_frame.bind(U5,P)(),zq=P1(R(P)),$9=!1,Z9=/\/+/g,v8=typeof reportError==="function"?reportError:function(C){if(typeof window==="object"&&typeof window.ErrorEvent==="function"){var y=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof C==="object"&&C!==null&&typeof C.message==="string"?String(C.message):String(C),error:C});if(!window.dispatchEvent(y))return}else if(typeof process==="object"&&typeof process.emit==="function"){process.emit("uncaughtException",C);return}console.error(C)},tJ=!1,c2=null,l2=0,r2=!1,s2=!1,T$=typeof queueMicrotask==="function"?function(C){queueMicrotask(function(){return queueMicrotask(C)})}:P0;U5=Object.freeze({__proto__:null,c:function(C){return d().useMemoCache(C)}});var b8={map:i,forEach:function(C,y,r){i(C,function(){y.apply(this,arguments)},r)},count:function(C){var y=0;return i(C,function(){y++}),y},toArray:function(C){return i(C,function(y){return y})||[]},only:function(C){if(!p(C))throw Error("React.Children.only expected to receive a single React element child.");return C}};QS.Activity=i6,QS.Children=b8,QS.Component=X,QS.Fragment=d0,QS.Profiler=o,QS.PureComponent=K,QS.StrictMode=k,QS.Suspense=m1,QS.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=y0,QS.__COMPILER_RUNTIME=U5,QS.act=function(C){var y=y0.actQueue,r=l2;l2++;var Z0=y0.actQueue=y!==null?y:[],N0=!1;try{var j0=C()}catch(_0){y0.thrownErrors.push(_0)}if(0<y0.thrownErrors.length)throw v0(y,r),C=O0(y0.thrownErrors),y0.thrownErrors.length=0,C;if(j0!==null&&typeof j0==="object"&&typeof j0.then==="function"){var k0=j0;return T$(function(){N0||r2||(r2=!0,console.error("You called act(async () => ...) without await. This could lead to unexpected testing behaviour, interleaving multiple act calls and mixing their scopes. You should - await act(async () => ...);"))}),{then:function(_0,A5){N0=!0,k0.then(function(U6){if(v0(y,r),r===0){try{Y0(Z0),P0(function(){return l(U6,_0,A5)})}catch(C$){y0.thrownErrors.push(C$)}if(0<y0.thrownErrors.length){var f8=O0(y0.thrownErrors);y0.thrownErrors.length=0,A5(f8)}}else _0(U6)},function(U6){v0(y,r),0<y0.thrownErrors.length?(U6=O0(y0.thrownErrors),y0.thrownErrors.length=0,A5(U6)):A5(U6)})}}}var J1=j0;if(v0(y,r),r===0&&(Y0(Z0),Z0.length!==0&&T$(function(){N0||r2||(r2=!0,console.error("A component suspended inside an `act` scope, but the `act` call was not awaited. When testing React components that depend on asynchronous data, you must await the result:\n\nawait act(() => ...)"))}),y0.actQueue=null),0<y0.thrownErrors.length)throw C=O0(y0.thrownErrors),y0.thrownErrors.length=0,C;return{then:function(_0,A5){N0=!0,r===0?(y0.actQueue=Z0,P0(function(){return l(J1,_0,A5)})):_0(J1)}}},QS.cache=function(C){return function(){return C.apply(null,arguments)}},QS.cacheSignal=function(){return null},QS.captureOwnerStack=function(){var C=y0.getCurrentStack;return C===null?null:C()},QS.cloneElement=function(C,y,r){if(C===null||C===void 0)throw Error("The argument must be a React element, but you passed "+C+".");var Z0=m2({},C.props),N0=C.key,j0=C._owner;if(y!=null){var k0;$:{if(e7.call(y,"ref")&&(k0=Object.getOwnPropertyDescriptor(y,"ref").get)&&k0.isReactWarning){k0=!1;break $}k0=y.ref!==void 0}k0&&(j0=_()),O(y)&&(W(y.key),N0=""+y.key);for(J1 in y)!e7.call(y,J1)||J1==="key"||J1==="__self"||J1==="__source"||J1==="ref"&&y.ref===void 0||(Z0[J1]=y[J1])}var J1=arguments.length-2;if(J1===1)Z0.children=r;else if(1<J1){k0=Array(J1);for(var _0=0;_0<J1;_0++)k0[_0]=arguments[_0+2];Z0.children=k0}Z0=I(C.type,N0,Z0,j0,C._debugStack,C._debugTask);for(N0=2;N0<arguments.length;N0++)h(arguments[N0]);return Z0},QS.createContext=function(C){return C={$$typeof:z0,_currentValue:C,_currentValue2:C,_threadCount:0,Provider:null,Consumer:null},C.Provider=C,C.Consumer={$$typeof:W0,_context:C},C._currentRenderer=null,C._currentRenderer2=null,C},QS.createElement=function(C,y,r){for(var Z0=2;Z0<arguments.length;Z0++)h(arguments[Z0]);Z0={};var N0=null;if(y!=null)for(_0 in B4||!("__self"in y)||"key"in y||(B4=!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")),O(y)&&(W(y.key),N0=""+y.key),y)e7.call(y,_0)&&_0!=="key"&&_0!=="__self"&&_0!=="__source"&&(Z0[_0]=y[_0]);var j0=arguments.length-2;if(j0===1)Z0.children=r;else if(1<j0){for(var k0=Array(j0),J1=0;J1<j0;J1++)k0[J1]=arguments[J1+2];Object.freeze&&Object.freeze(k0),Z0.children=k0}if(C&&C.defaultProps)for(_0 in j0=C.defaultProps,j0)Z0[_0]===void 0&&(Z0[_0]=j0[_0]);N0&&E(Z0,typeof C==="function"?C.displayName||C.name||"Unknown":C);var _0=1e4>y0.recentlyCreatedOwnerStacks++;return I(C,N0,Z0,_(),_0?Error("react-stack-top-frame"):p2,_0?P1(R(C)):zq)},QS.createRef=function(){var C={current:null};return Object.seal(C),C},QS.forwardRef=function(C){C!=null&&C.$$typeof===o1?console.error("forwardRef requires a render function but received a `memo` component. Instead of forwardRef(memo(...)), use memo(forwardRef(...))."):typeof C!=="function"?console.error("forwardRef requires a render function but was given %s.",C===null?"null":typeof C):C.length!==0&&C.length!==2&&console.error("forwardRef render functions accept exactly two parameters: props and ref. %s",C.length===1?"Did you forget to use the ref parameter?":"Any additional parameter will be undefined."),C!=null&&C.defaultProps!=null&&console.error("forwardRef render functions do not support defaultProps. Did you accidentally pass a React component?");var y={$$typeof:p0,render:C},r;return Object.defineProperty(y,"displayName",{enumerable:!1,configurable:!0,get:function(){return r},set:function(Z0){r=Z0,C.name||C.displayName||(Object.defineProperty(C,"name",{value:Z0}),C.displayName=Z0)}}),y},QS.isValidElement=p,QS.lazy=function(C){C={_status:-1,_result:C};var y={$$typeof:V5,_payload:C,_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 C._ioInfo=r,y._debugInfo=[{awaited:r}],y},QS.memo=function(C,y){C==null&&console.error("memo: The first argument must be a component. Instead received: %s",C===null?"null":typeof C),y={$$typeof:o1,type:C,compare:y===void 0?null:y};var r;return Object.defineProperty(y,"displayName",{enumerable:!1,configurable:!0,get:function(){return r},set:function(Z0){r=Z0,C.name||C.displayName||(Object.defineProperty(C,"name",{value:Z0}),C.displayName=Z0)}}),y},QS.startTransition=function(C){var y=y0.T,r={};r._updatedFibers=new Set,y0.T=r;try{var Z0=C(),N0=y0.S;N0!==null&&N0(r,Z0),typeof Z0==="object"&&Z0!==null&&typeof Z0.then==="function"&&(y0.asyncTransitions++,Z0.then(H0,H0),Z0.then(H,v8))}catch(j0){v8(j0)}finally{y===null&&r._updatedFibers&&(C=r._updatedFibers.size,r._updatedFibers.clear(),10<C&&console.warn("Detected a large number of updates inside startTransition. If this is due to a subscription please re-write it to use React provided hooks. Otherwise concurrent mode guarantees are off the table.")),y!==null&&r.types!==null&&(y.types!==null&&y.types!==r.types&&console.error("We expected inner Transitions to have transferred the outer types set and that you cannot add to the outer Transition while inside the inner.This is a bug in React."),y.types=r.types),y0.T=y}},QS.unstable_useCacheRefresh=function(){return d().useCacheRefresh()},QS.use=function(C){return d().use(C)},QS.useActionState=function(C,y,r){return d().useActionState(C,y,r)},QS.useCallback=function(C,y){return d().useCallback(C,y)},QS.useContext=function(C){var y=d();return C.$$typeof===W0&&console.error("Calling useContext(Context.Consumer) is not supported and will cause bugs. Did you mean to call useContext(Context) instead?"),y.useContext(C)},QS.useDebugValue=function(C,y){return d().useDebugValue(C,y)},QS.useDeferredValue=function(C,y){return d().useDeferredValue(C,y)},QS.useEffect=function(C,y){return C==null&&console.warn("React Hook useEffect requires an effect callback. Did you forget to pass a callback to the hook?"),d().useEffect(C,y)},QS.useEffectEvent=function(C){return d().useEffectEvent(C)},QS.useId=function(){return d().useId()},QS.useImperativeHandle=function(C,y,r){return d().useImperativeHandle(C,y,r)},QS.useInsertionEffect=function(C,y){return C==null&&console.warn("React Hook useInsertionEffect requires an effect callback. Did you forget to pass a callback to the hook?"),d().useInsertionEffect(C,y)},QS.useLayoutEffect=function(C,y){return C==null&&console.warn("React Hook useLayoutEffect requires an effect callback. Did you forget to pass a callback to the hook?"),d().useLayoutEffect(C,y)},QS.useMemo=function(C,y){return d().useMemo(C,y)},QS.useOptimistic=function(C,y){return d().useOptimistic(C,y)},QS.useReducer=function(C,y,r){return d().useReducer(C,y,r)},QS.useRef=function(C){return d().useRef(C)},QS.useState=function(C){return d().useState(C)},QS.useSyncExternalStore=function(C,y,r){return d().useSyncExternalStore(C,y,r)},QS.useTransition=function(){return d().useTransition()},QS.version="19.2.7",typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop==="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()});var D_=T2((GS)=>{var QK=s(L1());(function(){function J(){}function G(R){return""+R}function q(R,_,P){var O=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;try{G(O);var E=!1}catch(V){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&&O[Symbol.toStringTag]||O.constructor.name||"Object"),G(O)),{$$typeof:W,key:O==null?null:""+O,children:R,containerInfo:_,implementation:P}}function X(R,_){if(R==="font")return"";if(typeof _==="string")return _==="use-credentials"?_:""}function N(R){return R===null?"`null`":R===void 0?"`undefined`":R===""?"an empty string":'something with type "'+typeof R+'"'}function K(R){return R===null?"`null`":R===void 0?"`undefined`":R===""?"an empty string":typeof R==="string"?JSON.stringify(R):typeof R==="number"?"`"+R+"`":'something with type "'+typeof R+'"'}function H(){var R=M.H;return R===null&&console.error(`Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:
|
|
13
|
+
See https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem.`),C}function H0(){y0.asyncTransitions--}function P0(C){if(l2===null)try{var y=("require"+Math.random()).slice(0,7);l2=(l3&&l3[y]).call(l3,"timers").setImmediate}catch(r){l2=function(Z0){tJ===!1&&(tJ=!0,typeof MessageChannel>"u"&&console.error("This browser does not have a MessageChannel implementation, so enqueuing tasks via await act(async () => ...) will fail. Please file an issue at https://github.com/facebook/react/issues if you encounter this warning."));var N0=new MessageChannel;N0.port1.onmessage=Z0,N0.port2.postMessage(void 0)}}return l2(C)}function O0(C){return 1<C.length&&typeof AggregateError==="function"?AggregateError(C):C[0]}function v0(C,y){y!==r2-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. "),r2=y}function l(C,y,r){var Z0=y0.actQueue;if(Z0!==null)if(Z0.length!==0)try{Y0(Z0),P0(function(){return l(C,y,r)});return}catch(N0){y0.thrownErrors.push(N0)}else y0.actQueue=null;0<y0.thrownErrors.length?(Z0=O0(y0.thrownErrors),y0.thrownErrors.length=0,r(Z0)):y(C)}function Y0(C){if(!n2){n2=!0;var y=0;try{for(;y<C.length;y++){var r=C[y];do{y0.didUsePromise=!1;var Z0=r(!1);if(Z0!==null){if(y0.didUsePromise){C[y]=r,C.splice(0,y);return}r=Z0}else break}while(1)}C.length=0}catch(N0){C.splice(0,y+1),y0.thrownErrors.push(N0)}finally{n2=!1}}}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart==="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var F0=Symbol.for("react.transitional.element"),a0=Symbol.for("react.portal"),d0=Symbol.for("react.fragment"),k=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),W0=Symbol.for("react.consumer"),z0=Symbol.for("react.context"),p0=Symbol.for("react.forward_ref"),m1=Symbol.for("react.suspense"),b0=Symbol.for("react.suspense_list"),o1=Symbol.for("react.memo"),V5=Symbol.for("react.lazy"),i6=Symbol.for("react.activity"),aJ=Symbol.iterator,q0={},e7={isMounted:function(){return!1},enqueueForceUpdate:function(C){q(C,"forceUpdate")},enqueueReplaceState:function(C){q(C,"replaceState")},enqueueSetState:function(C){q(C,"setState")}},d2=Object.assign,k8={};Object.freeze(k8),X.prototype.isReactComponent={},X.prototype.setState=function(C,y){if(typeof C!=="object"&&typeof C!=="function"&&C!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,C,y,"setState")},X.prototype.forceUpdate=function(C){this.updater.enqueueForceUpdate(this,C,"forceUpdate")};var U5={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(b8 in U5)U5.hasOwnProperty(b8)&&J(b8,U5[b8]);N.prototype=X.prototype,U5=K.prototype=new N,U5.constructor=K,d2(U5,X.prototype),U5.isPureReactComponent=!0;var W1=Array.isArray,T$=Symbol.for("react.client.reference"),y0={H:null,A:null,T:null,S:null,actQueue:null,asyncTransitions:0,isBatchingLegacy:!1,didScheduleLegacyUpdate:!1,didUsePromise:!1,thrownErrors:[],getCurrentStack:null,recentlyCreatedOwnerStacks:0},$9=Object.prototype.hasOwnProperty,P1=console.createTask?console.createTask:function(){return null};U5={react_stack_bottom_frame:function(C){return C()}};var iJ,B4,p2={},c2=U5.react_stack_bottom_frame.bind(U5,P)(),zq=P1(R(P)),Z9=!1,J9=/\/+/g,v8=typeof reportError==="function"?reportError:function(C){if(typeof window==="object"&&typeof window.ErrorEvent==="function"){var y=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof C==="object"&&C!==null&&typeof C.message==="string"?String(C.message):String(C),error:C});if(!window.dispatchEvent(y))return}else if(typeof process==="object"&&typeof process.emit==="function"){process.emit("uncaughtException",C);return}console.error(C)},tJ=!1,l2=null,r2=0,s2=!1,n2=!1,C$=typeof queueMicrotask==="function"?function(C){queueMicrotask(function(){return queueMicrotask(C)})}:P0;U5=Object.freeze({__proto__:null,c:function(C){return d().useMemoCache(C)}});var b8={map:i,forEach:function(C,y,r){i(C,function(){y.apply(this,arguments)},r)},count:function(C){var y=0;return i(C,function(){y++}),y},toArray:function(C){return i(C,function(y){return y})||[]},only:function(C){if(!p(C))throw Error("React.Children.only expected to receive a single React element child.");return C}};QS.Activity=i6,QS.Children=b8,QS.Component=X,QS.Fragment=d0,QS.Profiler=o,QS.PureComponent=K,QS.StrictMode=k,QS.Suspense=m1,QS.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=y0,QS.__COMPILER_RUNTIME=U5,QS.act=function(C){var y=y0.actQueue,r=r2;r2++;var Z0=y0.actQueue=y!==null?y:[],N0=!1;try{var j0=C()}catch(_0){y0.thrownErrors.push(_0)}if(0<y0.thrownErrors.length)throw v0(y,r),C=O0(y0.thrownErrors),y0.thrownErrors.length=0,C;if(j0!==null&&typeof j0==="object"&&typeof j0.then==="function"){var k0=j0;return C$(function(){N0||s2||(s2=!0,console.error("You called act(async () => ...) without await. This could lead to unexpected testing behaviour, interleaving multiple act calls and mixing their scopes. You should - await act(async () => ...);"))}),{then:function(_0,A5){N0=!0,k0.then(function(U6){if(v0(y,r),r===0){try{Y0(Z0),P0(function(){return l(U6,_0,A5)})}catch(O$){y0.thrownErrors.push(O$)}if(0<y0.thrownErrors.length){var f8=O0(y0.thrownErrors);y0.thrownErrors.length=0,A5(f8)}}else _0(U6)},function(U6){v0(y,r),0<y0.thrownErrors.length?(U6=O0(y0.thrownErrors),y0.thrownErrors.length=0,A5(U6)):A5(U6)})}}}var J1=j0;if(v0(y,r),r===0&&(Y0(Z0),Z0.length!==0&&C$(function(){N0||s2||(s2=!0,console.error("A component suspended inside an `act` scope, but the `act` call was not awaited. When testing React components that depend on asynchronous data, you must await the result:\n\nawait act(() => ...)"))}),y0.actQueue=null),0<y0.thrownErrors.length)throw C=O0(y0.thrownErrors),y0.thrownErrors.length=0,C;return{then:function(_0,A5){N0=!0,r===0?(y0.actQueue=Z0,P0(function(){return l(J1,_0,A5)})):_0(J1)}}},QS.cache=function(C){return function(){return C.apply(null,arguments)}},QS.cacheSignal=function(){return null},QS.captureOwnerStack=function(){var C=y0.getCurrentStack;return C===null?null:C()},QS.cloneElement=function(C,y,r){if(C===null||C===void 0)throw Error("The argument must be a React element, but you passed "+C+".");var Z0=d2({},C.props),N0=C.key,j0=C._owner;if(y!=null){var k0;$:{if($9.call(y,"ref")&&(k0=Object.getOwnPropertyDescriptor(y,"ref").get)&&k0.isReactWarning){k0=!1;break $}k0=y.ref!==void 0}k0&&(j0=_()),O(y)&&(W(y.key),N0=""+y.key);for(J1 in y)!$9.call(y,J1)||J1==="key"||J1==="__self"||J1==="__source"||J1==="ref"&&y.ref===void 0||(Z0[J1]=y[J1])}var J1=arguments.length-2;if(J1===1)Z0.children=r;else if(1<J1){k0=Array(J1);for(var _0=0;_0<J1;_0++)k0[_0]=arguments[_0+2];Z0.children=k0}Z0=I(C.type,N0,Z0,j0,C._debugStack,C._debugTask);for(N0=2;N0<arguments.length;N0++)h(arguments[N0]);return Z0},QS.createContext=function(C){return C={$$typeof:z0,_currentValue:C,_currentValue2:C,_threadCount:0,Provider:null,Consumer:null},C.Provider=C,C.Consumer={$$typeof:W0,_context:C},C._currentRenderer=null,C._currentRenderer2=null,C},QS.createElement=function(C,y,r){for(var Z0=2;Z0<arguments.length;Z0++)h(arguments[Z0]);Z0={};var N0=null;if(y!=null)for(_0 in B4||!("__self"in y)||"key"in y||(B4=!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")),O(y)&&(W(y.key),N0=""+y.key),y)$9.call(y,_0)&&_0!=="key"&&_0!=="__self"&&_0!=="__source"&&(Z0[_0]=y[_0]);var j0=arguments.length-2;if(j0===1)Z0.children=r;else if(1<j0){for(var k0=Array(j0),J1=0;J1<j0;J1++)k0[J1]=arguments[J1+2];Object.freeze&&Object.freeze(k0),Z0.children=k0}if(C&&C.defaultProps)for(_0 in j0=C.defaultProps,j0)Z0[_0]===void 0&&(Z0[_0]=j0[_0]);N0&&E(Z0,typeof C==="function"?C.displayName||C.name||"Unknown":C);var _0=1e4>y0.recentlyCreatedOwnerStacks++;return I(C,N0,Z0,_(),_0?Error("react-stack-top-frame"):c2,_0?P1(R(C)):zq)},QS.createRef=function(){var C={current:null};return Object.seal(C),C},QS.forwardRef=function(C){C!=null&&C.$$typeof===o1?console.error("forwardRef requires a render function but received a `memo` component. Instead of forwardRef(memo(...)), use memo(forwardRef(...))."):typeof C!=="function"?console.error("forwardRef requires a render function but was given %s.",C===null?"null":typeof C):C.length!==0&&C.length!==2&&console.error("forwardRef render functions accept exactly two parameters: props and ref. %s",C.length===1?"Did you forget to use the ref parameter?":"Any additional parameter will be undefined."),C!=null&&C.defaultProps!=null&&console.error("forwardRef render functions do not support defaultProps. Did you accidentally pass a React component?");var y={$$typeof:p0,render:C},r;return Object.defineProperty(y,"displayName",{enumerable:!1,configurable:!0,get:function(){return r},set:function(Z0){r=Z0,C.name||C.displayName||(Object.defineProperty(C,"name",{value:Z0}),C.displayName=Z0)}}),y},QS.isValidElement=p,QS.lazy=function(C){C={_status:-1,_result:C};var y={$$typeof:V5,_payload:C,_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 C._ioInfo=r,y._debugInfo=[{awaited:r}],y},QS.memo=function(C,y){C==null&&console.error("memo: The first argument must be a component. Instead received: %s",C===null?"null":typeof C),y={$$typeof:o1,type:C,compare:y===void 0?null:y};var r;return Object.defineProperty(y,"displayName",{enumerable:!1,configurable:!0,get:function(){return r},set:function(Z0){r=Z0,C.name||C.displayName||(Object.defineProperty(C,"name",{value:Z0}),C.displayName=Z0)}}),y},QS.startTransition=function(C){var y=y0.T,r={};r._updatedFibers=new Set,y0.T=r;try{var Z0=C(),N0=y0.S;N0!==null&&N0(r,Z0),typeof Z0==="object"&&Z0!==null&&typeof Z0.then==="function"&&(y0.asyncTransitions++,Z0.then(H0,H0),Z0.then(H,v8))}catch(j0){v8(j0)}finally{y===null&&r._updatedFibers&&(C=r._updatedFibers.size,r._updatedFibers.clear(),10<C&&console.warn("Detected a large number of updates inside startTransition. If this is due to a subscription please re-write it to use React provided hooks. Otherwise concurrent mode guarantees are off the table.")),y!==null&&r.types!==null&&(y.types!==null&&y.types!==r.types&&console.error("We expected inner Transitions to have transferred the outer types set and that you cannot add to the outer Transition while inside the inner.This is a bug in React."),y.types=r.types),y0.T=y}},QS.unstable_useCacheRefresh=function(){return d().useCacheRefresh()},QS.use=function(C){return d().use(C)},QS.useActionState=function(C,y,r){return d().useActionState(C,y,r)},QS.useCallback=function(C,y){return d().useCallback(C,y)},QS.useContext=function(C){var y=d();return C.$$typeof===W0&&console.error("Calling useContext(Context.Consumer) is not supported and will cause bugs. Did you mean to call useContext(Context) instead?"),y.useContext(C)},QS.useDebugValue=function(C,y){return d().useDebugValue(C,y)},QS.useDeferredValue=function(C,y){return d().useDeferredValue(C,y)},QS.useEffect=function(C,y){return C==null&&console.warn("React Hook useEffect requires an effect callback. Did you forget to pass a callback to the hook?"),d().useEffect(C,y)},QS.useEffectEvent=function(C){return d().useEffectEvent(C)},QS.useId=function(){return d().useId()},QS.useImperativeHandle=function(C,y,r){return d().useImperativeHandle(C,y,r)},QS.useInsertionEffect=function(C,y){return C==null&&console.warn("React Hook useInsertionEffect requires an effect callback. Did you forget to pass a callback to the hook?"),d().useInsertionEffect(C,y)},QS.useLayoutEffect=function(C,y){return C==null&&console.warn("React Hook useLayoutEffect requires an effect callback. Did you forget to pass a callback to the hook?"),d().useLayoutEffect(C,y)},QS.useMemo=function(C,y){return d().useMemo(C,y)},QS.useOptimistic=function(C,y){return d().useOptimistic(C,y)},QS.useReducer=function(C,y,r){return d().useReducer(C,y,r)},QS.useRef=function(C){return d().useRef(C)},QS.useState=function(C){return d().useState(C)},QS.useSyncExternalStore=function(C,y,r){return d().useSyncExternalStore(C,y,r)},QS.useTransition=function(){return d().useTransition()},QS.version="19.2.7",typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop==="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()});var D_=T2((GS)=>{var QK=s(L1());(function(){function J(){}function G(R){return""+R}function q(R,_,P){var O=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;try{G(O);var E=!1}catch(V){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&&O[Symbol.toStringTag]||O.constructor.name||"Object"),G(O)),{$$typeof:W,key:O==null?null:""+O,children:R,containerInfo:_,implementation:P}}function X(R,_){if(R==="font")return"";if(typeof _==="string")return _==="use-credentials"?_:""}function N(R){return R===null?"`null`":R===void 0?"`undefined`":R===""?"an empty string":'something with type "'+typeof R+'"'}function K(R){return R===null?"`null`":R===void 0?"`undefined`":R===""?"an empty string":typeof R==="string"?JSON.stringify(R):typeof R==="number"?"`"+R+"`":'something with type "'+typeof R+'"'}function H(){var R=M.H;return R===null&&console.error(`Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:
|
|
14
14
|
1. You might have mismatching versions of React and the renderer (such as React DOM)
|
|
15
15
|
2. You might be breaking the Rules of Hooks
|
|
16
16
|
3. You might have more than one copy of React in the same app
|
|
17
|
-
See https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem.`),R}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart==="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var F={d:{f: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"),M=QK.__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"),GS.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=F,GS.createPortal=function(R,_){var P=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!_||_.nodeType!==1&&_.nodeType!==9&&_.nodeType!==11)throw Error("Target container is not a DOM element.");return q(R,_,null,P)},GS.flushSync=function(R){var _=M.T,P=F.p;try{if(M.T=null,F.p=2,R)return R()}finally{M.T=_,F.p=P,F.d.f()&&console.error("flushSync was called from inside a lifecycle method. React cannot flush when React is already rendering. Consider moving this call to a scheduler task or micro task.")}},GS.preconnect=function(R,_){typeof R==="string"&&R?_!=null&&typeof _!=="object"?console.error("ReactDOM.preconnect(): Expected the `options` argument (second) to be an object but encountered %s instead. The only supported option at this time is `crossOrigin` which accepts a string.",K(_)):_!=null&&typeof _.crossOrigin!=="string"&&console.error("ReactDOM.preconnect(): Expected the `crossOrigin` option (second argument) to be a string but encountered %s instead. Try removing this option or passing a string value instead.",N(_.crossOrigin)):console.error("ReactDOM.preconnect(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.",N(R)),typeof R==="string"&&(_?(_=_.crossOrigin,_=typeof _==="string"?_==="use-credentials"?_:"":void 0):_=null,F.d.C(R,_))},GS.prefetchDNS=function(R){if(typeof R!=="string"||!R)console.error("ReactDOM.prefetchDNS(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.",N(R));else if(1<arguments.length){var _=arguments[1];typeof _==="object"&&_.hasOwnProperty("crossOrigin")?console.error("ReactDOM.prefetchDNS(): Expected only one argument, `href`, but encountered %s as a second argument instead. This argument is reserved for future options and is currently disallowed. It looks like the you are attempting to set a crossOrigin property for this DNS lookup hint. Browsers do not perform DNS queries using CORS and setting this attribute on the resource hint has no effect. Try calling ReactDOM.prefetchDNS() with just a single string argument, `href`.",K(_)):console.error("ReactDOM.prefetchDNS(): Expected only one argument, `href`, but encountered %s as a second argument instead. This argument is reserved for future options and is currently disallowed. Try calling ReactDOM.prefetchDNS() with just a single string argument, `href`.",K(_))}typeof R==="string"&&F.d.D(R)},GS.preinit=function(R,_){if(typeof R==="string"&&R?_==null||typeof _!=="object"?console.error("ReactDOM.preinit(): Expected the `options` argument (second) to be an object with an `as` property describing the type of resource to be preinitialized but encountered %s instead.",K(_)):_.as!=="style"&&_.as!=="script"&&console.error('ReactDOM.preinit(): Expected the `as` property in the `options` argument (second) to contain a valid value describing the type of resource to be preinitialized but encountered %s instead. Valid values for `as` are "style" and "script".',K(_.as)):console.error("ReactDOM.preinit(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.",N(R)),typeof R==="string"&&_&&typeof _.as==="string"){var P=_.as,O=X(P,_.crossOrigin),E=typeof _.integrity==="string"?_.integrity:void 0,V=typeof _.fetchPriority==="string"?_.fetchPriority:void 0;P==="style"?F.d.S(R,typeof _.precedence==="string"?_.precedence:void 0,{crossOrigin:O,integrity:E,fetchPriority:V}):P==="script"&&F.d.X(R,{crossOrigin:O,integrity:E,fetchPriority:V,nonce:typeof _.nonce==="string"?_.nonce:void 0})}},GS.preinitModule=function(R,_){var P="";if(typeof R==="string"&&R||(P+=" The `href` argument encountered was "+N(R)+"."),_!==void 0&&typeof _!=="object"?P+=" The `options` argument encountered was "+N(_)+".":_&&("as"in _)&&_.as!=="script"&&(P+=" The `as` option encountered was "+K(_.as)+"."),P)console.error("ReactDOM.preinitModule(): Expected up to two arguments, a non-empty `href` string and, optionally, an `options` object with a valid `as` property.%s",P);else switch(P=_&&typeof _.as==="string"?_.as:"script",P){case"script":break;default:P=K(P),console.error('ReactDOM.preinitModule(): Currently the only supported "as" type for this function is "script" but received "%s" instead. This warning was generated for `href` "%s". In the future other module types will be supported, aligning with the import-attributes proposal. Learn more here: (https://github.com/tc39/proposal-import-attributes)',P,R)}if(typeof R==="string")if(typeof _==="object"&&_!==null){if(_.as==null||_.as==="script")P=X(_.as,_.crossOrigin),F.d.M(R,{crossOrigin:P,integrity:typeof _.integrity==="string"?_.integrity:void 0,nonce:typeof _.nonce==="string"?_.nonce:void 0})}else _==null&&F.d.M(R)},GS.preload=function(R,_){var P="";if(typeof R==="string"&&R||(P+=" The `href` argument encountered was "+N(R)+"."),_==null||typeof _!=="object"?P+=" The `options` argument encountered was "+N(_)+".":typeof _.as==="string"&&_.as||(P+=" The `as` option encountered was "+N(_.as)+"."),P&&console.error('ReactDOM.preload(): Expected two arguments, a non-empty `href` string and an `options` object with an `as` property valid for a `<link rel="preload" as="..." />` tag.%s',P),typeof R==="string"&&typeof _==="object"&&_!==null&&typeof _.as==="string"){P=_.as;var O=X(P,_.crossOrigin);F.d.L(R,P,{crossOrigin:O,integrity:typeof _.integrity==="string"?_.integrity:void 0,nonce:typeof _.nonce==="string"?_.nonce:void 0,type:typeof _.type==="string"?_.type:void 0,fetchPriority:typeof _.fetchPriority==="string"?_.fetchPriority:void 0,referrerPolicy:typeof _.referrerPolicy==="string"?_.referrerPolicy:void 0,imageSrcSet:typeof _.imageSrcSet==="string"?_.imageSrcSet:void 0,imageSizes:typeof _.imageSizes==="string"?_.imageSizes:void 0,media:typeof _.media==="string"?_.media:void 0})}},GS.preloadModule=function(R,_){var P="";typeof R==="string"&&R||(P+=" The `href` argument encountered was "+N(R)+"."),_!==void 0&&typeof _!=="object"?P+=" The `options` argument encountered was "+N(_)+".":_&&("as"in _)&&typeof _.as!=="string"&&(P+=" The `as` option encountered was "+N(_.as)+"."),P&&console.error('ReactDOM.preloadModule(): Expected two arguments, a non-empty `href` string and, optionally, an `options` object with an `as` property valid for a `<link rel="modulepreload" as="..." />` tag.%s',P),typeof R==="string"&&(_?(P=X(_.as,_.crossOrigin),F.d.m(R,{as:typeof _.as==="string"&&_.as!=="script"?_.as:void 0,crossOrigin:P,integrity:typeof _.integrity==="string"?_.integrity:void 0})):F.d.m(R))},GS.requestFormReset=function(R){F.d.r(R)},GS.unstable_batchedUpdates=function(R,_){return R(_)},GS.useFormState=function(R,_,P){return H().useFormState(R,_,P)},GS.useFormStatus=function(){return H().useHostTransitionStatus()},GS.version="19.2.7",typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop==="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()});var k_=T2((Kk,j_)=>{var qS=s(D_());j_.exports=qS});var v_=T2((YS)=>{var G1=s(S_()),W$=s(L1()),GK=s(k_());(function(){function J($,Z){for($=$.memoizedState;$!==null&&0<Z;)$=$.next,Z--;return $}function G($,Z,Q,Y){if(Q>=Z.length)return Y;var U=Z[Q],B=G5($)?$.slice():l0({},$);return B[U]=G($[U],Z,Q+1,Y),B}function q($,Z,Q){if(Z.length!==Q.length)console.warn("copyWithRename() expects paths of the same length");else{for(var Y=0;Y<Q.length-1;Y++)if(Z[Y]!==Q[Y]){console.warn("copyWithRename() expects paths to be the same except for the deepest key");return}return X($,Z,Q,0)}}function X($,Z,Q,Y){var U=Z[Y],B=G5($)?$.slice():l0({},$);return Y+1===Z.length?(B[Q[Y]]=B[U],G5(B)?B.splice(U,1):delete B[U]):B[U]=X($[U],Z,Q,Y+1),B}function N($,Z,Q){var Y=Z[Q],U=G5($)?$.slice():l0({},$);if(Q+1===Z.length)return G5(U)?U.splice(Y,1):delete U[Y],U;return U[Y]=N($[Y],Z,Q+1),U}function K(){return!1}function H(){return null}function F(){console.error("Do not call Hooks inside useEffect(...), useMemo(...), or other built-in Hooks. You can only call Hooks at the top level of your React function. For more information, see https://react.dev/link/rules-of-hooks")}function 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 M(){}function R(){}function _($){var Z=[];return $.forEach(function(Q){Z.push(Q)}),Z.sort().join(", ")}function P($,Z,Q,Y){return new DP($,Z,Q,Y)}function O($,Z){$.context===Z2&&(zX($.current,2,Z,$,null,null),W9())}function E($,Z){if(v6!==null){var Q=Z.staleFamilies;Z=Z.updatedFamilies,o$(),WB($.current,Z,Q),W9()}}function V($){v6=$}function I($){return!(!$||$.nodeType!==1&&$.nodeType!==9&&$.nodeType!==11)}function j($){var Z=$,Q=$;if($.alternate)for(;Z.return;)Z=Z.return;else{$=Z;do Z=$,(Z.flags&4098)!==0&&(Q=Z.return),$=Z.return;while($)}return Z.tag===3?Q: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 n($){if(j($)!==$)throw Error("Unable to find node on an unmounted component.")}function a($){var Z=$.alternate;if(!Z){if(Z=j($),Z===null)throw Error("Unable to find node on an unmounted component.");return Z!==$?null:$}for(var Q=$,Y=Z;;){var U=Q.return;if(U===null)break;var B=U.alternate;if(B===null){if(Y=U.return,Y!==null){Q=Y;continue}break}if(U.child===B.child){for(B=U.child;B;){if(B===Q)return n(U),$;if(B===Y)return n(U),Z;B=B.sibling}throw Error("Unable to find node on an unmounted component.")}if(Q.return!==Y.return)Q=U,Y=B;else{for(var z=!1,w=U.child;w;){if(w===Q){z=!0,Q=U,Y=B;break}if(w===Y){z=!0,Y=U,Q=B;break}w=w.sibling}if(!z){for(w=B.child;w;){if(w===Q){z=!0,Q=B,Y=U;break}if(w===Y){z=!0,Y=B,Q=U;break}w=w.sibling}if(!z)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(Q.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(Q.tag!==3)throw Error("Unable to find node on an unmounted component.");return Q.stateNode.current===Q?$:Z}function Q0($){var Z=$.tag;if(Z===5||Z===26||Z===27||Z===6)return $;for($=$.child;$!==null;){if(Z=Q0($),Z!==null)return Z;$=$.sibling}return null}function t($){if($===null||typeof $!=="object")return null;return $=PW&&$[PW]||$["@@iterator"],typeof $==="function"?$:null}function i($){if($==null)return null;if(typeof $==="function")return $.$$typeof===iT?null:$.displayName||$.name||null;if(typeof $==="string")return $;switch($){case P9:return"Fragment";case PX:return"Profiler";case XG:return"StrictMode";case CX:return"Suspense";case OX:return"SuspenseList";case IX: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 S4:return $.displayName||"Context";case TX:return($._context.displayName||"Context")+".Consumer";case qZ:var Z=$.render;return $=$.displayName,$||($=Z.displayName||Z.name||"",$=$!==""?"ForwardRef("+$+")":"ForwardRef"),$;case NG:return Z=$.displayName||null,Z!==null?Z:i($.type)||"Memo";case R6:Z=$._payload,$=$._init;try{return i($(Z))}catch(Q){}}return null}function X0($){return typeof $.tag==="number"?d($):typeof $.name==="string"?$.name:null}function d($){var Z=$.type;switch($.tag){case 31:return"Activity";case 24:return"Cache";case 9:return(Z._context.displayName||"Context")+".Consumer";case 10:return Z.displayName||"Context";case 18:return"DehydratedFragment";case 11:return $=Z.render,$=$.displayName||$.name||"",Z.displayName||($!==""?"ForwardRef("+$+")":"ForwardRef");case 7:return"Fragment";case 26:case 27:case 5:return Z;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return i(Z);case 8:return Z===XG?"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 Q=Z.length-1;0<=Q;Q--)if(typeof Z[Q].name==="string")return Z[Q].name}if($.return!==null)return d($.return)}return null}function H0($){return{current:$}}function P0($,Z){0>Q8?console.error("Unexpected pop."):(Z!==AX[Q8]&&console.error("Unexpected Fiber popped."),$.current=VX[Q8],VX[Q8]=null,AX[Q8]=null,Q8--)}function O0($,Z,Q){Q8++,VX[Q8]=$.current,AX[Q8]=Q,$.current=Z}function v0($){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){O0(o8,Z,$),O0(YZ,$,$),O0(n8,null,$);var Q=Z.nodeType;switch(Q){case 9:case 11:Q=Q===9?"#document":"#fragment",Z=(Z=Z.documentElement)?(Z=Z.namespaceURI)?lF(Z):w8:w8;break;default:if(Q=Z.tagName,Z=Z.namespaceURI)Z=lF(Z),Z=rF(Z,Q);else switch(Q){case"svg":Z=Z$;break;case"math":Z=Y3;break;default:Z=w8}}Q=Q.toLowerCase(),Q=uK(null,Q),Q={context:Z,ancestorInfo:Q},P0(n8,$),O0(n8,Q,$)}function Y0($){P0(n8,$),P0(YZ,$),P0(o8,$)}function F0(){return v0(n8.current)}function a0($){$.memoizedState!==null&&O0(UG,$,$);var Z=v0(n8.current),Q=$.type,Y=rF(Z.context,Q);Q=uK(Z.ancestorInfo,Q),Y={context:Y,ancestorInfo:Q},Z!==Y&&(O0(YZ,$,$),O0(n8,Y,$))}function d0($){YZ.current===$&&(P0(n8,$),P0(YZ,$)),UG.current===$&&(P0(UG,$),iZ._currentValue=j7)}function k(){}function o(){if(XZ===0){TW=console.log,CW=console.info,OW=console.warn,IW=console.error,VW=console.group,AW=console.groupCollapsed,EW=console.groupEnd;var $={configurable:!0,enumerable:!0,value:k,writable:!0};Object.defineProperties(console,{info:$,log:$,warn:$,error:$,group:$,groupCollapsed:$,groupEnd:$})}XZ++}function W0(){if(XZ--,XZ===0){var $={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:l0({},$,{value:TW}),info:l0({},$,{value:CW}),warn:l0({},$,{value:OW}),error:l0({},$,{value:IW}),group:l0({},$,{value:VW}),groupCollapsed:l0({},$,{value:AW}),groupEnd:l0({},$,{value:EW})})}0>XZ&&console.error("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}function z0($){var Z=Error.prepareStackTrace;if(Error.prepareStackTrace=void 0,$=$.stack,Error.prepareStackTrace=Z,$.startsWith(`Error: react-stack-top-frame
|
|
17
|
+
See https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem.`),R}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart==="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var F={d:{f: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"),M=QK.__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"),GS.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=F,GS.createPortal=function(R,_){var P=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!_||_.nodeType!==1&&_.nodeType!==9&&_.nodeType!==11)throw Error("Target container is not a DOM element.");return q(R,_,null,P)},GS.flushSync=function(R){var _=M.T,P=F.p;try{if(M.T=null,F.p=2,R)return R()}finally{M.T=_,F.p=P,F.d.f()&&console.error("flushSync was called from inside a lifecycle method. React cannot flush when React is already rendering. Consider moving this call to a scheduler task or micro task.")}},GS.preconnect=function(R,_){typeof R==="string"&&R?_!=null&&typeof _!=="object"?console.error("ReactDOM.preconnect(): Expected the `options` argument (second) to be an object but encountered %s instead. The only supported option at this time is `crossOrigin` which accepts a string.",K(_)):_!=null&&typeof _.crossOrigin!=="string"&&console.error("ReactDOM.preconnect(): Expected the `crossOrigin` option (second argument) to be a string but encountered %s instead. Try removing this option or passing a string value instead.",N(_.crossOrigin)):console.error("ReactDOM.preconnect(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.",N(R)),typeof R==="string"&&(_?(_=_.crossOrigin,_=typeof _==="string"?_==="use-credentials"?_:"":void 0):_=null,F.d.C(R,_))},GS.prefetchDNS=function(R){if(typeof R!=="string"||!R)console.error("ReactDOM.prefetchDNS(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.",N(R));else if(1<arguments.length){var _=arguments[1];typeof _==="object"&&_.hasOwnProperty("crossOrigin")?console.error("ReactDOM.prefetchDNS(): Expected only one argument, `href`, but encountered %s as a second argument instead. This argument is reserved for future options and is currently disallowed. It looks like the you are attempting to set a crossOrigin property for this DNS lookup hint. Browsers do not perform DNS queries using CORS and setting this attribute on the resource hint has no effect. Try calling ReactDOM.prefetchDNS() with just a single string argument, `href`.",K(_)):console.error("ReactDOM.prefetchDNS(): Expected only one argument, `href`, but encountered %s as a second argument instead. This argument is reserved for future options and is currently disallowed. Try calling ReactDOM.prefetchDNS() with just a single string argument, `href`.",K(_))}typeof R==="string"&&F.d.D(R)},GS.preinit=function(R,_){if(typeof R==="string"&&R?_==null||typeof _!=="object"?console.error("ReactDOM.preinit(): Expected the `options` argument (second) to be an object with an `as` property describing the type of resource to be preinitialized but encountered %s instead.",K(_)):_.as!=="style"&&_.as!=="script"&&console.error('ReactDOM.preinit(): Expected the `as` property in the `options` argument (second) to contain a valid value describing the type of resource to be preinitialized but encountered %s instead. Valid values for `as` are "style" and "script".',K(_.as)):console.error("ReactDOM.preinit(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.",N(R)),typeof R==="string"&&_&&typeof _.as==="string"){var P=_.as,O=X(P,_.crossOrigin),E=typeof _.integrity==="string"?_.integrity:void 0,V=typeof _.fetchPriority==="string"?_.fetchPriority:void 0;P==="style"?F.d.S(R,typeof _.precedence==="string"?_.precedence:void 0,{crossOrigin:O,integrity:E,fetchPriority:V}):P==="script"&&F.d.X(R,{crossOrigin:O,integrity:E,fetchPriority:V,nonce:typeof _.nonce==="string"?_.nonce:void 0})}},GS.preinitModule=function(R,_){var P="";if(typeof R==="string"&&R||(P+=" The `href` argument encountered was "+N(R)+"."),_!==void 0&&typeof _!=="object"?P+=" The `options` argument encountered was "+N(_)+".":_&&("as"in _)&&_.as!=="script"&&(P+=" The `as` option encountered was "+K(_.as)+"."),P)console.error("ReactDOM.preinitModule(): Expected up to two arguments, a non-empty `href` string and, optionally, an `options` object with a valid `as` property.%s",P);else switch(P=_&&typeof _.as==="string"?_.as:"script",P){case"script":break;default:P=K(P),console.error('ReactDOM.preinitModule(): Currently the only supported "as" type for this function is "script" but received "%s" instead. This warning was generated for `href` "%s". In the future other module types will be supported, aligning with the import-attributes proposal. Learn more here: (https://github.com/tc39/proposal-import-attributes)',P,R)}if(typeof R==="string")if(typeof _==="object"&&_!==null){if(_.as==null||_.as==="script")P=X(_.as,_.crossOrigin),F.d.M(R,{crossOrigin:P,integrity:typeof _.integrity==="string"?_.integrity:void 0,nonce:typeof _.nonce==="string"?_.nonce:void 0})}else _==null&&F.d.M(R)},GS.preload=function(R,_){var P="";if(typeof R==="string"&&R||(P+=" The `href` argument encountered was "+N(R)+"."),_==null||typeof _!=="object"?P+=" The `options` argument encountered was "+N(_)+".":typeof _.as==="string"&&_.as||(P+=" The `as` option encountered was "+N(_.as)+"."),P&&console.error('ReactDOM.preload(): Expected two arguments, a non-empty `href` string and an `options` object with an `as` property valid for a `<link rel="preload" as="..." />` tag.%s',P),typeof R==="string"&&typeof _==="object"&&_!==null&&typeof _.as==="string"){P=_.as;var O=X(P,_.crossOrigin);F.d.L(R,P,{crossOrigin:O,integrity:typeof _.integrity==="string"?_.integrity:void 0,nonce:typeof _.nonce==="string"?_.nonce:void 0,type:typeof _.type==="string"?_.type:void 0,fetchPriority:typeof _.fetchPriority==="string"?_.fetchPriority:void 0,referrerPolicy:typeof _.referrerPolicy==="string"?_.referrerPolicy:void 0,imageSrcSet:typeof _.imageSrcSet==="string"?_.imageSrcSet:void 0,imageSizes:typeof _.imageSizes==="string"?_.imageSizes:void 0,media:typeof _.media==="string"?_.media:void 0})}},GS.preloadModule=function(R,_){var P="";typeof R==="string"&&R||(P+=" The `href` argument encountered was "+N(R)+"."),_!==void 0&&typeof _!=="object"?P+=" The `options` argument encountered was "+N(_)+".":_&&("as"in _)&&typeof _.as!=="string"&&(P+=" The `as` option encountered was "+N(_.as)+"."),P&&console.error('ReactDOM.preloadModule(): Expected two arguments, a non-empty `href` string and, optionally, an `options` object with an `as` property valid for a `<link rel="modulepreload" as="..." />` tag.%s',P),typeof R==="string"&&(_?(P=X(_.as,_.crossOrigin),F.d.m(R,{as:typeof _.as==="string"&&_.as!=="script"?_.as:void 0,crossOrigin:P,integrity:typeof _.integrity==="string"?_.integrity:void 0})):F.d.m(R))},GS.requestFormReset=function(R){F.d.r(R)},GS.unstable_batchedUpdates=function(R,_){return R(_)},GS.useFormState=function(R,_,P){return H().useFormState(R,_,P)},GS.useFormStatus=function(){return H().useHostTransitionStatus()},GS.version="19.2.7",typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop==="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()});var k_=T2((Kk,j_)=>{var qS=s(D_());j_.exports=qS});var v_=T2((YS)=>{var G1=s(S_()),z$=s(L1()),GK=s(k_());(function(){function J($,Z){for($=$.memoizedState;$!==null&&0<Z;)$=$.next,Z--;return $}function G($,Z,Q,Y){if(Q>=Z.length)return Y;var U=Z[Q],B=G5($)?$.slice():l0({},$);return B[U]=G($[U],Z,Q+1,Y),B}function q($,Z,Q){if(Z.length!==Q.length)console.warn("copyWithRename() expects paths of the same length");else{for(var Y=0;Y<Q.length-1;Y++)if(Z[Y]!==Q[Y]){console.warn("copyWithRename() expects paths to be the same except for the deepest key");return}return X($,Z,Q,0)}}function X($,Z,Q,Y){var U=Z[Y],B=G5($)?$.slice():l0({},$);return Y+1===Z.length?(B[Q[Y]]=B[U],G5(B)?B.splice(U,1):delete B[U]):B[U]=X($[U],Z,Q,Y+1),B}function N($,Z,Q){var Y=Z[Q],U=G5($)?$.slice():l0({},$);if(Q+1===Z.length)return G5(U)?U.splice(Y,1):delete U[Y],U;return U[Y]=N($[Y],Z,Q+1),U}function K(){return!1}function H(){return null}function F(){console.error("Do not call Hooks inside useEffect(...), useMemo(...), or other built-in Hooks. You can only call Hooks at the top level of your React function. For more information, see https://react.dev/link/rules-of-hooks")}function 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 M(){}function R(){}function _($){var Z=[];return $.forEach(function(Q){Z.push(Q)}),Z.sort().join(", ")}function P($,Z,Q,Y){return new DP($,Z,Q,Y)}function O($,Z){$.context===Z2&&(zX($.current,2,Z,$,null,null),z9())}function E($,Z){if(v6!==null){var Q=Z.staleFamilies;Z=Z.updatedFamilies,a$(),WB($.current,Z,Q),z9()}}function V($){v6=$}function I($){return!(!$||$.nodeType!==1&&$.nodeType!==9&&$.nodeType!==11)}function j($){var Z=$,Q=$;if($.alternate)for(;Z.return;)Z=Z.return;else{$=Z;do Z=$,(Z.flags&4098)!==0&&(Q=Z.return),$=Z.return;while($)}return Z.tag===3?Q: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 n($){if(j($)!==$)throw Error("Unable to find node on an unmounted component.")}function a($){var Z=$.alternate;if(!Z){if(Z=j($),Z===null)throw Error("Unable to find node on an unmounted component.");return Z!==$?null:$}for(var Q=$,Y=Z;;){var U=Q.return;if(U===null)break;var B=U.alternate;if(B===null){if(Y=U.return,Y!==null){Q=Y;continue}break}if(U.child===B.child){for(B=U.child;B;){if(B===Q)return n(U),$;if(B===Y)return n(U),Z;B=B.sibling}throw Error("Unable to find node on an unmounted component.")}if(Q.return!==Y.return)Q=U,Y=B;else{for(var z=!1,w=U.child;w;){if(w===Q){z=!0,Q=U,Y=B;break}if(w===Y){z=!0,Y=U,Q=B;break}w=w.sibling}if(!z){for(w=B.child;w;){if(w===Q){z=!0,Q=B,Y=U;break}if(w===Y){z=!0,Y=B,Q=U;break}w=w.sibling}if(!z)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(Q.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(Q.tag!==3)throw Error("Unable to find node on an unmounted component.");return Q.stateNode.current===Q?$:Z}function Q0($){var Z=$.tag;if(Z===5||Z===26||Z===27||Z===6)return $;for($=$.child;$!==null;){if(Z=Q0($),Z!==null)return Z;$=$.sibling}return null}function t($){if($===null||typeof $!=="object")return null;return $=PW&&$[PW]||$["@@iterator"],typeof $==="function"?$:null}function i($){if($==null)return null;if(typeof $==="function")return $.$$typeof===iT?null:$.displayName||$.name||null;if(typeof $==="string")return $;switch($){case T9:return"Fragment";case PX:return"Profiler";case XG:return"StrictMode";case CX:return"Suspense";case OX:return"SuspenseList";case IX: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 P9:return"Portal";case S4:return $.displayName||"Context";case TX:return($._context.displayName||"Context")+".Consumer";case YZ:var Z=$.render;return $=$.displayName,$||($=Z.displayName||Z.name||"",$=$!==""?"ForwardRef("+$+")":"ForwardRef"),$;case NG:return Z=$.displayName||null,Z!==null?Z:i($.type)||"Memo";case R6:Z=$._payload,$=$._init;try{return i($(Z))}catch(Q){}}return null}function X0($){return typeof $.tag==="number"?d($):typeof $.name==="string"?$.name:null}function d($){var Z=$.type;switch($.tag){case 31:return"Activity";case 24:return"Cache";case 9:return(Z._context.displayName||"Context")+".Consumer";case 10:return Z.displayName||"Context";case 18:return"DehydratedFragment";case 11:return $=Z.render,$=$.displayName||$.name||"",Z.displayName||($!==""?"ForwardRef("+$+")":"ForwardRef");case 7:return"Fragment";case 26:case 27:case 5:return Z;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return i(Z);case 8:return Z===XG?"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 Q=Z.length-1;0<=Q;Q--)if(typeof Z[Q].name==="string")return Z[Q].name}if($.return!==null)return d($.return)}return null}function H0($){return{current:$}}function P0($,Z){0>Q8?console.error("Unexpected pop."):(Z!==AX[Q8]&&console.error("Unexpected Fiber popped."),$.current=VX[Q8],VX[Q8]=null,AX[Q8]=null,Q8--)}function O0($,Z,Q){Q8++,VX[Q8]=$.current,AX[Q8]=Q,$.current=Z}function v0($){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){O0(o8,Z,$),O0(XZ,$,$),O0(n8,null,$);var Q=Z.nodeType;switch(Q){case 9:case 11:Q=Q===9?"#document":"#fragment",Z=(Z=Z.documentElement)?(Z=Z.namespaceURI)?lF(Z):w8:w8;break;default:if(Q=Z.tagName,Z=Z.namespaceURI)Z=lF(Z),Z=rF(Z,Q);else switch(Q){case"svg":Z=J$;break;case"math":Z=Y3;break;default:Z=w8}}Q=Q.toLowerCase(),Q=uK(null,Q),Q={context:Z,ancestorInfo:Q},P0(n8,$),O0(n8,Q,$)}function Y0($){P0(n8,$),P0(XZ,$),P0(o8,$)}function F0(){return v0(n8.current)}function a0($){$.memoizedState!==null&&O0(UG,$,$);var Z=v0(n8.current),Q=$.type,Y=rF(Z.context,Q);Q=uK(Z.ancestorInfo,Q),Y={context:Y,ancestorInfo:Q},Z!==Y&&(O0(XZ,$,$),O0(n8,Y,$))}function d0($){XZ.current===$&&(P0(n8,$),P0(XZ,$)),UG.current===$&&(P0(UG,$),tZ._currentValue=k7)}function k(){}function o(){if(NZ===0){TW=console.log,CW=console.info,OW=console.warn,IW=console.error,VW=console.group,AW=console.groupCollapsed,EW=console.groupEnd;var $={configurable:!0,enumerable:!0,value:k,writable:!0};Object.defineProperties(console,{info:$,log:$,warn:$,error:$,group:$,groupCollapsed:$,groupEnd:$})}NZ++}function W0(){if(NZ--,NZ===0){var $={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:l0({},$,{value:TW}),info:l0({},$,{value:CW}),warn:l0({},$,{value:OW}),error:l0({},$,{value:IW}),group:l0({},$,{value:VW}),groupCollapsed:l0({},$,{value:AW}),groupEnd:l0({},$,{value:EW})})}0>NZ&&console.error("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}function z0($){var Z=Error.prepareStackTrace;if(Error.prepareStackTrace=void 0,$=$.stack,Error.prepareStackTrace=Z,$.startsWith(`Error: react-stack-top-frame
|
|
18
18
|
`)&&($=$.slice(29)),Z=$.indexOf(`
|
|
19
19
|
`),Z!==-1&&($=$.slice(Z+1)),Z=$.indexOf("react_stack_bottom_frame"),Z!==-1&&(Z=$.lastIndexOf(`
|
|
20
20
|
`,Z)),Z!==-1)$=$.slice(0,Z);else return"";return $}function p0($){if(EX===void 0)try{throw Error()}catch(Q){var Z=Q.stack.trim().match(/\n( *(at )?)/);EX=Z&&Z[1]||"",SW=-1<Q.stack.indexOf(`
|
|
@@ -30,47 +30,47 @@ Error generating stack: `+$0.message+`
|
|
|
30
30
|
`+U)}}else if($.debugStack!=null){var B=$.debugStack;($=$.owner)&&B&&(Z+=`
|
|
31
31
|
`+z0(B))}else break;var z=Z}catch(w){z=`
|
|
32
32
|
Error generating stack: `+w.message+`
|
|
33
|
-
`+w.stack}return z}function q0($,Z,Q,Y,U,B,z){var w=_6;t7($);try{return $!==null&&$._debugTask?$._debugTask.run(Z.bind(null,Q,Y,U,B,z)):Z(Q,Y,U,B,z)}finally{t7(w)}throw Error("runWithFiberInDEV should never be called in production. This is a bug in React.")}function t7($){x.getCurrentStack=$===null?null:aJ,D4=!1,_6=$}function m2($){return typeof Symbol==="function"&&Symbol.toStringTag&&$[Symbol.toStringTag]||$.constructor.name||"Object"}function k8($){try{return U5($),!1}catch(Z){return!0}}function U5($){return""+$}function W1($,Z){if(k8($))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,m2($)),U5($)}function P$($,Z){if(k8($))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,m2($)),U5($)}function y0($){if(k8($))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.",m2($)),U5($)}function e7($){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{C9=Z.inject($),S5=Z}catch(Q){console.error("React instrumentation encountered an error: %o.",Q)}return Z.checkDCE?!0:!1}function P1($){if(typeof GC==="function"&&qC($),S5&&typeof S5.setStrictMode==="function")try{S5.setStrictMode(C9,$)}catch(Z){j4||(j4=!0,console.error("React instrumentation encountered an error: %o",Z))}}function iJ($){return $>>>=0,$===0?32:31-(YC($)/XC|0)|0}function B4($){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 d2($,Z,Q){var Y=$.pendingLanes;if(Y===0)return 0;var U=0,B=$.suspendedLanes,z=$.pingedLanes;$=$.warmLanes;var w=Y&134217727;return w!==0?(Y=w&~B,Y!==0?U=B4(Y):(z&=w,z!==0?U=B4(z):Q||(Q=w&~$,Q!==0&&(U=B4(Q))))):(w=Y&~B,w!==0?U=B4(w):z!==0?U=B4(z):Q||(Q=Y&~$,Q!==0&&(U=B4(Q)))),U===0?0:Z!==0&&Z!==U&&(Z&B)===0&&(B=U&-U,Q=Z&-Z,B>=Q||B===32&&(Q&4194048)!==0)?Z:U}function p2($,Z){return($.pendingLanes&~($.suspendedLanes&~$.pingedLanes)&Z)===0}function zq($,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 $9(){var $=HG;return HG<<=1,(HG&62914560)===0&&(HG=4194304),$}function Z9($){for(var Z=[],Q=0;31>Q;Q++)Z.push($);return Z}function v8($,Z){$.pendingLanes|=Z,Z!==268435456&&($.suspendedLanes=0,$.pingedLanes=0,$.warmLanes=0)}function tJ($,Z,Q,Y,U,B){var z=$.pendingLanes;$.pendingLanes=Q,$.suspendedLanes=0,$.pingedLanes=0,$.warmLanes=0,$.expiredLanes&=Q,$.entangledLanes&=Q,$.errorRecoveryDisabledLanes&=Q,$.shellSuspendCounter=0;var{entanglements:w,expirationTimes:L,hiddenUpdates:T}=$;for(Q=z&~Q;0<Q;){var b=31-y5(Q),f=1<<b;w[b]=0,L[b]=-1;var S=T[b];if(S!==null)for(T[b]=null,b=0;b<S.length;b++){var g=S[b];g!==null&&(g.lane&=-536870913)}Q&=~f}Y!==0&&c2($,Y,0),B!==0&&U===0&&$.tag!==0&&($.suspendedLanes|=B&~(z&~Z))}function c2($,Z,Q){$.pendingLanes|=Z,$.suspendedLanes&=~Z;var Y=31-y5(Z);$.entangledLanes|=Z,$.entanglements[Y]=$.entanglements[Y]|1073741824|Q&261930}function l2($,Z){var Q=$.entangledLanes|=Z;for($=$.entanglements;Q;){var Y=31-y5(Q),U=1<<Y;U&Z|$[Y]&Z&&($[Y]|=Z),Q&=~U}}function r2($,Z){var Q=Z&-Z;return Q=(Q&42)!==0?1:s2(Q),(Q&($.suspendedLanes|Z))!==0?0:Q}function s2($){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 T$($,Z,Q){if(k4)for($=$.pendingUpdatersLaneMap;0<Q;){var Y=31-y5(Q),U=1<<Y;$[Y].add(Z),Q&=~U}}function b8($,Z){if(k4)for(var{pendingUpdatersLaneMap:Q,memoizedUpdaters:Y}=$;0<Z;){var U=31-y5(Z);$=1<<U,U=Q[U],0<U.size&&(U.forEach(function(B){var z=B.alternate;z!==null&&Y.has(z)||Y.add(B)}),U.clear()),Z&=~$}}function C($){return $&=-$,L6!==0&&L6<$?J4!==0&&J4<$?($&134217727)!==0?v4:FG:J4:L6}function y(){var $=U1.p;if($!==0)return $;return $=window.event,$===void 0?v4:WW($.type)}function r($,Z){var Q=U1.p;try{return U1.p=$,Z()}finally{U1.p=Q}}function Z0($){delete $[_5],delete $[g5],delete $[fX],delete $[NC],delete $[UC]}function N0($){var Z=$[_5];if(Z)return Z;for(var Q=$.parentNode;Q;){if(Z=Q[i8]||Q[_5]){if(Q=Z.alternate,Z.child!==null||Q!==null&&Q.child!==null)for($=$W($);$!==null;){if(Q=$[_5])return Q;$=$W($)}return Z}$=Q,Q=$.parentNode}return null}function j0($){if($=$[_5]||$[i8]){var Z=$.tag;if(Z===5||Z===6||Z===13||Z===31||Z===26||Z===27||Z===3)return $}return null}function k0($){var Z=$.tag;if(Z===5||Z===26||Z===27||Z===6)return $.stateNode;throw Error("getNodeFromInstance: Invalid argument.")}function J1($){var Z=$[DW];return Z||(Z=$[DW]={hoistableStyles:new Map,hoistableScripts:new Map}),Z}function _0($){$[NZ]=!0}function A5($,Z){U6($,Z),U6($+"Capture",Z)}function U6($,Z){U7[$]&&console.error("EventRegistry: More than one plugin attempted to publish the same registration name, `%s`.",$),U7[$]=Z;var Q=$.toLowerCase();yX[Q]=$,$==="onDoubleClick"&&(yX.ondblclick=$);for($=0;$<Z.length;$++)jW.add(Z[$])}function f8($,Z){KC[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 C$($){if(Z4.call(vW,$))return!0;if(Z4.call(kW,$))return!1;if(BC.test($))return vW[$]=!0;return kW[$]=!0,console.error("Invalid attribute name: `%s`",$),!1}function OK($,Z,Q){if(C$(Z)){if(!$.hasAttribute(Z)){switch(typeof Q){case"symbol":case"object":return Q;case"function":return Q;case"boolean":if(Q===!1)return Q}return Q===void 0?void 0:null}if($=$.getAttribute(Z),$===""&&Q===!0)return!0;return W1(Q,Z),$===""+Q?Q:$}}function eJ($,Z,Q){if(C$(Z))if(Q===null)$.removeAttribute(Z);else{switch(typeof Q){case"undefined":case"function":case"symbol":$.removeAttribute(Z);return;case"boolean":var Y=Z.toLowerCase().slice(0,5);if(Y!=="data-"&&Y!=="aria-"){$.removeAttribute(Z);return}}W1(Q,Z),$.setAttribute(Z,""+Q)}}function $Q($,Z,Q){if(Q===null)$.removeAttribute(Z);else{switch(typeof Q){case"undefined":case"function":case"symbol":case"boolean":$.removeAttribute(Z);return}W1(Q,Z),$.setAttribute(Z,""+Q)}}function n4($,Z,Q,Y){if(Y===null)$.removeAttribute(Q);else{switch(typeof Y){case"undefined":case"function":case"symbol":case"boolean":$.removeAttribute(Q);return}W1(Y,Q),$.setAttributeNS(Z,Q,""+Y)}}function E6($){switch(typeof $){case"bigint":case"boolean":case"number":case"string":case"undefined":return $;case"object":return y0($),$;default:return""}}function IK($){var Z=$.type;return($=$.nodeName)&&$.toLowerCase()==="input"&&(Z==="checkbox"||Z==="radio")}function XP($,Z,Q){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(z){y0(z),Q=""+z,B.call(this,z)}}),Object.defineProperty($,Z,{enumerable:Y.enumerable}),{getValue:function(){return Q},setValue:function(z){y0(z),Q=""+z},stopTracking:function(){$._valueTracker=null,delete $[Z]}}}}function Mq($){if(!$._valueTracker){var Z=IK($)?"checked":"value";$._valueTracker=XP($,Z,""+$[Z])}}function VK($){if(!$)return!1;var Z=$._valueTracker;if(!Z)return!0;var Q=Z.getValue(),Y="";return $&&(Y=IK($)?$.checked?"true":"false":$.value),$=Y,$!==Q?(Z.setValue($),!0):!1}function ZQ($){if($=$||(typeof document<"u"?document:void 0),typeof $>"u")return null;try{return $.activeElement||$.body}catch(Z){return $.body}}function S6($){return $.replace(HC,function(Z){return"\\"+Z.charCodeAt(0).toString(16)+" "})}function AK($,Z){Z.checked===void 0||Z.defaultChecked===void 0||fW||(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",i6()||"A component",Z.type),fW=!0),Z.value===void 0||Z.defaultValue===void 0||bW||(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",i6()||"A component",Z.type),bW=!0)}function wq($,Z,Q,Y,U,B,z,w){if($.name="",z!=null&&typeof z!=="function"&&typeof z!=="symbol"&&typeof z!=="boolean"?(W1(z,"type"),$.type=z):$.removeAttribute("type"),Z!=null)if(z==="number"){if(Z===0&&$.value===""||$.value!=Z)$.value=""+E6(Z)}else $.value!==""+E6(Z)&&($.value=""+E6(Z));else z!=="submit"&&z!=="reset"||$.removeAttribute("value");Z!=null?Rq($,z,E6(Z)):Q!=null?Rq($,z,E6(Q)):Y!=null&&$.removeAttribute("value"),U==null&&B!=null&&($.defaultChecked=!!B),U!=null&&($.checked=U&&typeof U!=="function"&&typeof U!=="symbol"),w!=null&&typeof w!=="function"&&typeof w!=="symbol"&&typeof w!=="boolean"?(W1(w,"name"),$.name=""+E6(w)):$.removeAttribute("name")}function EK($,Z,Q,Y,U,B,z,w){if(B!=null&&typeof B!=="function"&&typeof B!=="symbol"&&typeof B!=="boolean"&&(W1(B,"type"),$.type=B),Z!=null||Q!=null){if(!(B!=="submit"&&B!=="reset"||Z!==void 0&&Z!==null)){Mq($);return}Q=Q!=null?""+E6(Q):"",Z=Z!=null?""+E6(Z):Q,w||Z===$.value||($.value=Z),$.defaultValue=Z}Y=Y!=null?Y:U,Y=typeof Y!=="function"&&typeof Y!=="symbol"&&!!Y,$.checked=w?$.checked:!!Y,$.defaultChecked=!!Y,z!=null&&typeof z!=="function"&&typeof z!=="symbol"&&typeof z!=="boolean"&&(W1(z,"name"),$.name=z),Mq($)}function Rq($,Z,Q){Z==="number"&&ZQ($.ownerDocument)===$||$.defaultValue===""+Q||($.defaultValue=""+Q)}function SK($,Z){Z.value==null&&(typeof Z.children==="object"&&Z.children!==null?W$.Children.forEach(Z.children,function(Q){Q==null||typeof Q==="string"||typeof Q==="number"||typeof Q==="bigint"||gW||(gW=!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||hW||(hW=!0,console.error("Pass a `value` prop if you set dangerouslyInnerHTML so React knows which value should be selected."))),Z.selected==null||yW||(console.error("Use the `defaultValue` or `value` props on <select> instead of setting `selected` on <option>."),yW=!0)}function DK(){var $=i6();return $?`
|
|
33
|
+
`+w.stack}return z}function q0($,Z,Q,Y,U,B,z){var w=_6;e7($);try{return $!==null&&$._debugTask?$._debugTask.run(Z.bind(null,Q,Y,U,B,z)):Z(Q,Y,U,B,z)}finally{e7(w)}throw Error("runWithFiberInDEV should never be called in production. This is a bug in React.")}function e7($){x.getCurrentStack=$===null?null:aJ,D4=!1,_6=$}function d2($){return typeof Symbol==="function"&&Symbol.toStringTag&&$[Symbol.toStringTag]||$.constructor.name||"Object"}function k8($){try{return U5($),!1}catch(Z){return!0}}function U5($){return""+$}function W1($,Z){if(k8($))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,d2($)),U5($)}function T$($,Z){if(k8($))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,d2($)),U5($)}function y0($){if(k8($))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.",d2($)),U5($)}function $9($){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{O9=Z.inject($),S5=Z}catch(Q){console.error("React instrumentation encountered an error: %o.",Q)}return Z.checkDCE?!0:!1}function P1($){if(typeof GC==="function"&&qC($),S5&&typeof S5.setStrictMode==="function")try{S5.setStrictMode(O9,$)}catch(Z){j4||(j4=!0,console.error("React instrumentation encountered an error: %o",Z))}}function iJ($){return $>>>=0,$===0?32:31-(YC($)/XC|0)|0}function B4($){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 p2($,Z,Q){var Y=$.pendingLanes;if(Y===0)return 0;var U=0,B=$.suspendedLanes,z=$.pingedLanes;$=$.warmLanes;var w=Y&134217727;return w!==0?(Y=w&~B,Y!==0?U=B4(Y):(z&=w,z!==0?U=B4(z):Q||(Q=w&~$,Q!==0&&(U=B4(Q))))):(w=Y&~B,w!==0?U=B4(w):z!==0?U=B4(z):Q||(Q=Y&~$,Q!==0&&(U=B4(Q)))),U===0?0:Z!==0&&Z!==U&&(Z&B)===0&&(B=U&-U,Q=Z&-Z,B>=Q||B===32&&(Q&4194048)!==0)?Z:U}function c2($,Z){return($.pendingLanes&~($.suspendedLanes&~$.pingedLanes)&Z)===0}function zq($,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 Z9(){var $=HG;return HG<<=1,(HG&62914560)===0&&(HG=4194304),$}function J9($){for(var Z=[],Q=0;31>Q;Q++)Z.push($);return Z}function v8($,Z){$.pendingLanes|=Z,Z!==268435456&&($.suspendedLanes=0,$.pingedLanes=0,$.warmLanes=0)}function tJ($,Z,Q,Y,U,B){var z=$.pendingLanes;$.pendingLanes=Q,$.suspendedLanes=0,$.pingedLanes=0,$.warmLanes=0,$.expiredLanes&=Q,$.entangledLanes&=Q,$.errorRecoveryDisabledLanes&=Q,$.shellSuspendCounter=0;var{entanglements:w,expirationTimes:L,hiddenUpdates:T}=$;for(Q=z&~Q;0<Q;){var b=31-y5(Q),f=1<<b;w[b]=0,L[b]=-1;var S=T[b];if(S!==null)for(T[b]=null,b=0;b<S.length;b++){var g=S[b];g!==null&&(g.lane&=-536870913)}Q&=~f}Y!==0&&l2($,Y,0),B!==0&&U===0&&$.tag!==0&&($.suspendedLanes|=B&~(z&~Z))}function l2($,Z,Q){$.pendingLanes|=Z,$.suspendedLanes&=~Z;var Y=31-y5(Z);$.entangledLanes|=Z,$.entanglements[Y]=$.entanglements[Y]|1073741824|Q&261930}function r2($,Z){var Q=$.entangledLanes|=Z;for($=$.entanglements;Q;){var Y=31-y5(Q),U=1<<Y;U&Z|$[Y]&Z&&($[Y]|=Z),Q&=~U}}function s2($,Z){var Q=Z&-Z;return Q=(Q&42)!==0?1:n2(Q),(Q&($.suspendedLanes|Z))!==0?0:Q}function n2($){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 C$($,Z,Q){if(k4)for($=$.pendingUpdatersLaneMap;0<Q;){var Y=31-y5(Q),U=1<<Y;$[Y].add(Z),Q&=~U}}function b8($,Z){if(k4)for(var{pendingUpdatersLaneMap:Q,memoizedUpdaters:Y}=$;0<Z;){var U=31-y5(Z);$=1<<U,U=Q[U],0<U.size&&(U.forEach(function(B){var z=B.alternate;z!==null&&Y.has(z)||Y.add(B)}),U.clear()),Z&=~$}}function C($){return $&=-$,L6!==0&&L6<$?J4!==0&&J4<$?($&134217727)!==0?v4:FG:J4:L6}function y(){var $=U1.p;if($!==0)return $;return $=window.event,$===void 0?v4:WW($.type)}function r($,Z){var Q=U1.p;try{return U1.p=$,Z()}finally{U1.p=Q}}function Z0($){delete $[_5],delete $[g5],delete $[fX],delete $[NC],delete $[UC]}function N0($){var Z=$[_5];if(Z)return Z;for(var Q=$.parentNode;Q;){if(Z=Q[i8]||Q[_5]){if(Q=Z.alternate,Z.child!==null||Q!==null&&Q.child!==null)for($=$W($);$!==null;){if(Q=$[_5])return Q;$=$W($)}return Z}$=Q,Q=$.parentNode}return null}function j0($){if($=$[_5]||$[i8]){var Z=$.tag;if(Z===5||Z===6||Z===13||Z===31||Z===26||Z===27||Z===3)return $}return null}function k0($){var Z=$.tag;if(Z===5||Z===26||Z===27||Z===6)return $.stateNode;throw Error("getNodeFromInstance: Invalid argument.")}function J1($){var Z=$[DW];return Z||(Z=$[DW]={hoistableStyles:new Map,hoistableScripts:new Map}),Z}function _0($){$[UZ]=!0}function A5($,Z){U6($,Z),U6($+"Capture",Z)}function U6($,Z){K7[$]&&console.error("EventRegistry: More than one plugin attempted to publish the same registration name, `%s`.",$),K7[$]=Z;var Q=$.toLowerCase();yX[Q]=$,$==="onDoubleClick"&&(yX.ondblclick=$);for($=0;$<Z.length;$++)jW.add(Z[$])}function f8($,Z){KC[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 O$($){if(Z4.call(vW,$))return!0;if(Z4.call(kW,$))return!1;if(BC.test($))return vW[$]=!0;return kW[$]=!0,console.error("Invalid attribute name: `%s`",$),!1}function OK($,Z,Q){if(O$(Z)){if(!$.hasAttribute(Z)){switch(typeof Q){case"symbol":case"object":return Q;case"function":return Q;case"boolean":if(Q===!1)return Q}return Q===void 0?void 0:null}if($=$.getAttribute(Z),$===""&&Q===!0)return!0;return W1(Q,Z),$===""+Q?Q:$}}function eJ($,Z,Q){if(O$(Z))if(Q===null)$.removeAttribute(Z);else{switch(typeof Q){case"undefined":case"function":case"symbol":$.removeAttribute(Z);return;case"boolean":var Y=Z.toLowerCase().slice(0,5);if(Y!=="data-"&&Y!=="aria-"){$.removeAttribute(Z);return}}W1(Q,Z),$.setAttribute(Z,""+Q)}}function $Q($,Z,Q){if(Q===null)$.removeAttribute(Z);else{switch(typeof Q){case"undefined":case"function":case"symbol":case"boolean":$.removeAttribute(Z);return}W1(Q,Z),$.setAttribute(Z,""+Q)}}function n4($,Z,Q,Y){if(Y===null)$.removeAttribute(Q);else{switch(typeof Y){case"undefined":case"function":case"symbol":case"boolean":$.removeAttribute(Q);return}W1(Y,Q),$.setAttributeNS(Z,Q,""+Y)}}function E6($){switch(typeof $){case"bigint":case"boolean":case"number":case"string":case"undefined":return $;case"object":return y0($),$;default:return""}}function IK($){var Z=$.type;return($=$.nodeName)&&$.toLowerCase()==="input"&&(Z==="checkbox"||Z==="radio")}function XP($,Z,Q){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(z){y0(z),Q=""+z,B.call(this,z)}}),Object.defineProperty($,Z,{enumerable:Y.enumerable}),{getValue:function(){return Q},setValue:function(z){y0(z),Q=""+z},stopTracking:function(){$._valueTracker=null,delete $[Z]}}}}function Mq($){if(!$._valueTracker){var Z=IK($)?"checked":"value";$._valueTracker=XP($,Z,""+$[Z])}}function VK($){if(!$)return!1;var Z=$._valueTracker;if(!Z)return!0;var Q=Z.getValue(),Y="";return $&&(Y=IK($)?$.checked?"true":"false":$.value),$=Y,$!==Q?(Z.setValue($),!0):!1}function ZQ($){if($=$||(typeof document<"u"?document:void 0),typeof $>"u")return null;try{return $.activeElement||$.body}catch(Z){return $.body}}function S6($){return $.replace(HC,function(Z){return"\\"+Z.charCodeAt(0).toString(16)+" "})}function AK($,Z){Z.checked===void 0||Z.defaultChecked===void 0||fW||(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",i6()||"A component",Z.type),fW=!0),Z.value===void 0||Z.defaultValue===void 0||bW||(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",i6()||"A component",Z.type),bW=!0)}function wq($,Z,Q,Y,U,B,z,w){if($.name="",z!=null&&typeof z!=="function"&&typeof z!=="symbol"&&typeof z!=="boolean"?(W1(z,"type"),$.type=z):$.removeAttribute("type"),Z!=null)if(z==="number"){if(Z===0&&$.value===""||$.value!=Z)$.value=""+E6(Z)}else $.value!==""+E6(Z)&&($.value=""+E6(Z));else z!=="submit"&&z!=="reset"||$.removeAttribute("value");Z!=null?Rq($,z,E6(Z)):Q!=null?Rq($,z,E6(Q)):Y!=null&&$.removeAttribute("value"),U==null&&B!=null&&($.defaultChecked=!!B),U!=null&&($.checked=U&&typeof U!=="function"&&typeof U!=="symbol"),w!=null&&typeof w!=="function"&&typeof w!=="symbol"&&typeof w!=="boolean"?(W1(w,"name"),$.name=""+E6(w)):$.removeAttribute("name")}function EK($,Z,Q,Y,U,B,z,w){if(B!=null&&typeof B!=="function"&&typeof B!=="symbol"&&typeof B!=="boolean"&&(W1(B,"type"),$.type=B),Z!=null||Q!=null){if(!(B!=="submit"&&B!=="reset"||Z!==void 0&&Z!==null)){Mq($);return}Q=Q!=null?""+E6(Q):"",Z=Z!=null?""+E6(Z):Q,w||Z===$.value||($.value=Z),$.defaultValue=Z}Y=Y!=null?Y:U,Y=typeof Y!=="function"&&typeof Y!=="symbol"&&!!Y,$.checked=w?$.checked:!!Y,$.defaultChecked=!!Y,z!=null&&typeof z!=="function"&&typeof z!=="symbol"&&typeof z!=="boolean"&&(W1(z,"name"),$.name=z),Mq($)}function Rq($,Z,Q){Z==="number"&&ZQ($.ownerDocument)===$||$.defaultValue===""+Q||($.defaultValue=""+Q)}function SK($,Z){Z.value==null&&(typeof Z.children==="object"&&Z.children!==null?z$.Children.forEach(Z.children,function(Q){Q==null||typeof Q==="string"||typeof Q==="number"||typeof Q==="bigint"||gW||(gW=!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||hW||(hW=!0,console.error("Pass a `value` prop if you set dangerouslyInnerHTML so React knows which value should be selected."))),Z.selected==null||yW||(console.error("Use the `defaultValue` or `value` props on <select> instead of setting `selected` on <option>."),yW=!0)}function DK(){var $=i6();return $?`
|
|
34
34
|
|
|
35
|
-
Check the render method of \``+$+"`.":""}function
|
|
36
|
-
`;if(typeof Z==="string"){for(var U=0;U<Z.length&&U<$.length&&Z.charCodeAt(U)===$.charCodeAt(U);U++);return U>Y-8&&10<U&&($="..."+$.slice(U-8),Z="..."+Z.slice(U-8)),
|
|
37
|
-
`+
|
|
38
|
-
`}return K6(Q)+
|
|
39
|
-
`}function _q($){return Object.prototype.toString.call($).replace(/^\[object (.*)\]$/,function(Z,Q){return Q})}function
|
|
35
|
+
Check the render method of \``+$+"`.":""}function Q9($,Z,Q,Y){if($=$.options,Z){Z={};for(var U=0;U<Q.length;U++)Z["$"+Q[U]]=!0;for(Q=0;Q<$.length;Q++)U=Z.hasOwnProperty("$"+$[Q].value),$[Q].selected!==U&&($[Q].selected=U),U&&Y&&($[Q].defaultSelected=!0)}else{Q=""+E6(Q),Z=null;for(U=0;U<$.length;U++){if($[U].value===Q){$[U].selected=!0,Y&&($[U].defaultSelected=!0);return}Z!==null||$[U].disabled||(Z=$[U])}Z!==null&&(Z.selected=!0)}}function jK($,Z){for($=0;$<xW.length;$++){var Q=xW[$];if(Z[Q]!=null){var Y=G5(Z[Q]);Z.multiple&&!Y?console.error("The `%s` prop supplied to <select> must be an array if `multiple` is true.%s",Q,DK()):!Z.multiple&&Y&&console.error("The `%s` prop supplied to <select> must be a scalar value if `multiple` is false.%s",Q,DK())}}Z.value===void 0||Z.defaultValue===void 0||uW||(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"),uW=!0)}function kK($,Z){Z.value===void 0||Z.defaultValue===void 0||mW||(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",i6()||"A component"),mW=!0),Z.children!=null&&Z.value==null&&console.error("Use the `defaultValue` or `value` props instead of setting children on <textarea>.")}function vK($,Z,Q){if(Z!=null&&(Z=""+E6(Z),Z!==$.value&&($.value=Z),Q==null)){$.defaultValue!==Z&&($.defaultValue=Z);return}$.defaultValue=Q!=null?""+E6(Q):""}function bK($,Z,Q,Y){if(Z==null){if(Y!=null){if(Q!=null)throw Error("If you supply `defaultValue` on a <textarea>, do not pass children.");if(G5(Y)){if(1<Y.length)throw Error("<textarea> can only have at most one child.");Y=Y[0]}Q=Y}Q==null&&(Q=""),Z=Q}Q=E6(Z),$.defaultValue=Q,Y=$.textContent,Y===Q&&Y!==""&&Y!==null&&($.value=Y),Mq($)}function fK($,Z){return $.serverProps===void 0&&$.serverTail.length===0&&$.children.length===1&&3<$.distanceFromLeaf&&$.distanceFromLeaf>15-Z?fK($.children[0],Z):$}function K6($){return" "+" ".repeat($)}function G9($){return"+ "+" ".repeat($)}function o2($){return"- "+" ".repeat($)}function yK($){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 I$($,Z){return dW.test($)?($=JSON.stringify($),$.length>Z-2?8>Z?'{"..."}':"{"+$.slice(0,Z-7)+'..."}':"{"+$+"}"):$.length>Z?5>Z?'{"..."}':$.slice(0,Z-3)+"...":$}function JQ($,Z,Q){var Y=120-2*Q;if(Z===null)return G9(Q)+I$($,Y)+`
|
|
36
|
+
`;if(typeof Z==="string"){for(var U=0;U<Z.length&&U<$.length&&Z.charCodeAt(U)===$.charCodeAt(U);U++);return U>Y-8&&10<U&&($="..."+$.slice(U-8),Z="..."+Z.slice(U-8)),G9(Q)+I$($,Y)+`
|
|
37
|
+
`+o2(Q)+I$(Z,Y)+`
|
|
38
|
+
`}return K6(Q)+I$($,Y)+`
|
|
39
|
+
`}function _q($){return Object.prototype.toString.call($).replace(/^\[object (.*)\]$/,function(Z,Q){return Q})}function V$($,Z){switch(typeof $){case"string":return $=JSON.stringify($),$.length>Z?5>Z?'"..."':$.slice(0,Z-4)+'..."':$;case"object":if($===null)return"null";if(G5($))return"[...]";if($.$$typeof===E4)return(Z=i($.type))?"<"+Z+">":"<...>";var Q=_q($);if(Q==="Object"){Q="",Z-=2;for(var Y in $)if($.hasOwnProperty(Y)){var U=JSON.stringify(Y);if(U!=='"'+Y+'"'&&(Y=U),Z-=Y.length-2,U=V$($[Y],15>Z?Z:15),Z-=U.length,0>Z){Q+=Q===""?"...":", ...";break}Q+=(Q===""?"":",")+Y+":"+U}return"{"+Q+"}"}return Q;case"function":return(Z=$.displayName||$.name)?"function "+Z:"function";default:return String($)}}function q9($,Z){return typeof $!=="string"||dW.test($)?"{"+V$($,Z-2)+"}":$.length>Z-2?5>Z?'"..."':'"'+$.slice(0,Z-5)+'..."':'"'+$+'"'}function Lq($,Z,Q){var Y=120-Q.length-$.length,U=[],B;for(B in Z)if(Z.hasOwnProperty(B)&&B!=="children"){var z=q9(Z[B],120-Q.length-B.length-1);Y-=B.length+z.length+2,U.push(B+"="+z)}return U.length===0?Q+"<"+$+`>
|
|
40
40
|
`:0<Y?Q+"<"+$+" "+U.join(" ")+`>
|
|
41
41
|
`:Q+"<"+$+`
|
|
42
42
|
`+Q+" "+U.join(`
|
|
43
43
|
`+Q+" ")+`
|
|
44
44
|
`+Q+`>
|
|
45
|
-
`}function NP($,Z,Q){var Y="",U=l0({},Z),B;for(B in $)if($.hasOwnProperty(B)){delete U[B];var z=120-2*Q-B.length-2,w=
|
|
46
|
-
`,Y+=
|
|
47
|
-
`):Y+=
|
|
48
|
-
`}for(var L in U)U.hasOwnProperty(L)&&($=
|
|
49
|
-
`);return Y}function UP($,Z,Q,Y){var U="",B=new Map;for(T in Q)Q.hasOwnProperty(T)&&B.set(T.toLowerCase(),T);if(B.size===1&&B.has("children"))U+=Lq($,Z,K6(Y));else{for(var z in Z)if(Z.hasOwnProperty(z)&&z!=="children"){var w=120-2*(Y+1)-z.length-1,L=B.get(z.toLowerCase());if(L!==void 0){B.delete(z.toLowerCase());var T=Z[z];L=Q[L];var b=
|
|
45
|
+
`}function NP($,Z,Q){var Y="",U=l0({},Z),B;for(B in $)if($.hasOwnProperty(B)){delete U[B];var z=120-2*Q-B.length-2,w=V$($[B],z);Z.hasOwnProperty(B)?(z=V$(Z[B],z),Y+=G9(Q)+B+": "+w+`
|
|
46
|
+
`,Y+=o2(Q)+B+": "+z+`
|
|
47
|
+
`):Y+=G9(Q)+B+": "+w+`
|
|
48
|
+
`}for(var L in U)U.hasOwnProperty(L)&&($=V$(U[L],120-2*Q-L.length-2),Y+=o2(Q)+L+": "+$+`
|
|
49
|
+
`);return Y}function UP($,Z,Q,Y){var U="",B=new Map;for(T in Q)Q.hasOwnProperty(T)&&B.set(T.toLowerCase(),T);if(B.size===1&&B.has("children"))U+=Lq($,Z,K6(Y));else{for(var z in Z)if(Z.hasOwnProperty(z)&&z!=="children"){var w=120-2*(Y+1)-z.length-1,L=B.get(z.toLowerCase());if(L!==void 0){B.delete(z.toLowerCase());var T=Z[z];L=Q[L];var b=q9(T,w);w=q9(L,w),typeof T==="object"&&T!==null&&typeof L==="object"&&L!==null&&_q(T)==="Object"&&_q(L)==="Object"&&(2<Object.keys(T).length||2<Object.keys(L).length||-1<b.indexOf("...")||-1<w.indexOf("..."))?U+=K6(Y+1)+z+`={{
|
|
50
50
|
`+NP(T,L,Y+2)+K6(Y+1)+`}}
|
|
51
|
-
`:(U+=
|
|
52
|
-
`,U+=
|
|
53
|
-
`)}else U+=K6(Y+1)+z+"="+
|
|
54
|
-
`}B.forEach(function(f){if(f!=="children"){var S=120-2*(Y+1)-f.length-1;U+=
|
|
51
|
+
`:(U+=G9(Y+1)+z+"="+b+`
|
|
52
|
+
`,U+=o2(Y+1)+z+"="+w+`
|
|
53
|
+
`)}else U+=K6(Y+1)+z+"="+q9(Z[z],w)+`
|
|
54
|
+
`}B.forEach(function(f){if(f!=="children"){var S=120-2*(Y+1)-f.length-1;U+=o2(Y+1)+f+"="+q9(Q[f],S)+`
|
|
55
55
|
`}}),U=U===""?K6(Y)+"<"+$+`>
|
|
56
56
|
`:K6(Y)+"<"+$+`
|
|
57
57
|
`+U+K6(Y)+`>
|
|
58
58
|
`}if($=Q.children,Z=Z.children,typeof $==="string"||typeof $==="number"||typeof $==="bigint"){if(B="",typeof Z==="string"||typeof Z==="number"||typeof Z==="bigint")B=""+Z;U+=JQ(B,""+$,Y+1)}else if(typeof Z==="string"||typeof Z==="number"||typeof Z==="bigint")U=$==null?U+JQ(""+Z,null,Y+1):U+JQ(""+Z,void 0,Y+1);return U}function gK($,Z){var Q=yK($);if(Q===null){Q="";for($=$.child;$;)Q+=gK($,Z),$=$.sibling;return Q}return K6(Z)+"<"+Q+`>
|
|
59
59
|
`}function Pq($,Z){var Q=fK($,Z);if(Q!==$&&($.children.length!==1||$.children[0]!==Q))return K6(Z)+`...
|
|
60
60
|
`+Pq(Q,Z+1);Q="";var Y=$.fiber._debugInfo;if(Y)for(var U=0;U<Y.length;U++){var B=Y[U].name;typeof B==="string"&&(Q+=K6(Z)+"<"+B+`>
|
|
61
|
-
`,Z++)}if(Y="",U=$.fiber.pendingProps,$.fiber.tag===6)Y=JQ(U,$.serverProps,Z),Z++;else if(B=yK($.fiber),B!==null)if($.serverProps===void 0){Y=Z;var z=120-2*Y-B.length-2,w="";for(T in U)if(U.hasOwnProperty(T)&&T!=="children"){var L=
|
|
62
|
-
`,Z++}else $.serverProps===null?(Y=Lq(B,U,
|
|
63
|
-
`),U=$.serverTail,$.serverProps===null&&Z--;for($=0;$<U.length;$++)B=U[$],T=typeof B==="string"?T+(
|
|
64
|
-
`):T+Lq(B.type,B.props,
|
|
61
|
+
`,Z++)}if(Y="",U=$.fiber.pendingProps,$.fiber.tag===6)Y=JQ(U,$.serverProps,Z),Z++;else if(B=yK($.fiber),B!==null)if($.serverProps===void 0){Y=Z;var z=120-2*Y-B.length-2,w="";for(T in U)if(U.hasOwnProperty(T)&&T!=="children"){var L=q9(U[T],15);if(z-=T.length+L.length+2,0>z){w+=" ...";break}w+=" "+T+"="+L}Y=K6(Y)+"<"+B+w+`>
|
|
62
|
+
`,Z++}else $.serverProps===null?(Y=Lq(B,U,G9(Z)),Z++):typeof $.serverProps==="string"?console.error("Should not have matched a non HostText fiber to a Text node. This is a bug in React."):(Y=UP(B,U,$.serverProps,Z),Z++);var T="";U=$.fiber.child;for(B=0;U&&B<$.children.length;)z=$.children[B],z.fiber===U?(T+=Pq(z,Z),B++):T+=gK(U,Z),U=U.sibling;U&&0<$.children.length&&(T+=K6(Z)+`...
|
|
63
|
+
`),U=$.serverTail,$.serverProps===null&&Z--;for($=0;$<U.length;$++)B=U[$],T=typeof B==="string"?T+(o2(Z)+I$(B,120-2*Z)+`
|
|
64
|
+
`):T+Lq(B.type,B.props,o2(Z));return Q+Y+T}function Tq($){try{return`
|
|
65
65
|
|
|
66
66
|
`+Pq($,0)}catch(Z){return""}}function hK($,Z,Q){for(var Y=Z,U=null,B=0;Y;)Y===$&&(B=0),U={fiber:Y,children:U!==null?[U]:[],serverProps:Y===Z?Q:Y===$?null:void 0,serverTail:[],distanceFromLeaf:B},B++,Y=Y.return;return U!==null?Tq(U).replaceAll(/^[+-]/gm,">"):""}function uK($,Z){var Q=l0({},$||cW),Y={tag:Z};if(pW.indexOf(Z)!==-1&&(Q.aTagInScope=null,Q.buttonTagInScope=null,Q.nobrTagInScope=null),WC.indexOf(Z)!==-1&&(Q.pTagInButtonScope=null),FC.indexOf(Z)!==-1&&Z!=="address"&&Z!=="div"&&Z!=="p"&&(Q.listItemTagAutoclosing=null,Q.dlItemTagAutoclosing=null),Q.current=Y,Z==="form"&&(Q.formTag=Y),Z==="a"&&(Q.aTagInScope=Y),Z==="button"&&(Q.buttonTagInScope=Y),Z==="nobr"&&(Q.nobrTagInScope=Y),Z==="p"&&(Q.pTagInButtonScope=Y),Z==="li"&&(Q.listItemTagAutoclosing=Y),Z==="dd"||Z==="dt")Q.dlItemTagAutoclosing=Y;return Z==="#document"||Z==="html"?Q.containerTagInScope=null:Q.containerTagInScope||(Q.containerTagInScope=Y),$!==null||Z!=="#document"&&Z!=="html"&&Z!=="body"?Q.implicitRootScope===!0&&(Q.implicitRootScope=!1):Q.implicitRootScope=!0,Q}function xK($,Z,Q){switch(Z){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(Q)break;return $==="head"||$==="body"||$==="frameset";case"frameset":return $==="frame";case"#document":if(!Q)return $==="html"}switch($){case"h1":case"h2":case"h3":case"h4":case"h5":case"h6":return Z!=="h1"&&Z!=="h2"&&Z!=="h3"&&Z!=="h4"&&Z!=="h5"&&Z!=="h6";case"rp":case"rt":return zC.indexOf(Z)===-1;case"caption":case"col":case"colgroup":case"frameset":case"frame":case"tbody":case"td":case"tfoot":case"th":case"thead":case"tr":return Z==null;case"head":return Q||Z===null;case"html":return Q&&Z==="#document"||Z===null;case"body":return Q&&(Z==="#document"||Z==="html")||Z===null}return!0}function KP($,Z){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 Z.pTagInButtonScope;case"form":return Z.formTag||Z.pTagInButtonScope;case"li":return Z.listItemTagAutoclosing;case"dd":case"dt":return Z.dlItemTagAutoclosing;case"button":return Z.buttonTagInScope;case"a":return Z.aTagInScope;case"nobr":return Z.nobrTagInScope}return null}function mK($,Z){for(;$;){switch($.tag){case 5:case 26:case 27:if($.type===Z)return $}$=$.return}return null}function Cq($,Z){Z=Z||cW;var Q=Z.current;if(Z=(Q=xK($,Q&&Q.tag,Z.implicitRootScope)?null:Q)?null:KP($,Z),Z=Q||Z,!Z)return!0;var Y=Z.tag;if(Z=String(!!Q)+"|"+$+"|"+Y,WG[Z])return!1;WG[Z]=!0;var U=(Z=_6)?mK(Z.return,Y):null,B=Z!==null&&U!==null?hK(U,Z,null):"",z="<"+$+">";return Q?(Q="",Y==="table"&&$==="tr"&&(Q+=" 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
67
|
This will cause a hydration error.%s`,z,Y,Q,B)):console.error(`In HTML, %s cannot be a descendant of <%s>.
|
|
68
68
|
This will cause a hydration error.%s`,z,Y,B),Z&&($=Z.return,U===null||$===null||U===$&&$._debugOwner===Z._debugOwner||q0(U,function(){console.error(`<%s> cannot contain a nested %s.
|
|
69
69
|
See this log for the ancestor stack trace.`,Y,z)})),!1}function QQ($,Z,Q){if(Q||xK("#text",Z,!1))return!0;if(Q="#text|"+Z,WG[Q])return!1;WG[Q]=!0;var Y=(Q=_6)?mK(Q,Z):null;return Q=Q!==null&&Y!==null?hK(Y,Q,Q.tag!==6?{children:null}:null):"",/\S/.test($)?console.error(`In HTML, text nodes cannot be a child of <%s>.
|
|
70
70
|
This will cause a hydration error.%s`,Z,Q):console.error(`In HTML, whitespace text nodes cannot be a child of <%s>. Make sure you don't have any extra whitespace between tags on each line of your source code.
|
|
71
|
-
This will cause a hydration error.%s`,Z,Q),!1}function V$($,Z){if(Z){var Q=$.firstChild;if(Q&&Q===$.lastChild&&Q.nodeType===3){Q.nodeValue=Z;return}}$.textContent=Z}function BP($){return $.replace(RC,function(Z,Q){return Q.toUpperCase()})}function dK($,Z,Q){var Y=Z.indexOf("--")===0;Y||(-1<Z.indexOf("-")?O9.hasOwnProperty(Z)&&O9[Z]||(O9[Z]=!0,console.error("Unsupported style property %s. Did you mean %s?",Z,BP(Z.replace(wC,"ms-")))):MC.test(Z)?O9.hasOwnProperty(Z)&&O9[Z]||(O9[Z]=!0,console.error("Unsupported vendor-prefixed style property %s. Did you mean %s?",Z,Z.charAt(0).toUpperCase()+Z.slice(1))):!sW.test(Q)||hX.hasOwnProperty(Q)&&hX[Q]||(hX[Q]=!0,console.error(`Style property values shouldn't contain a semicolon. Try "%s: %s" instead.`,Z,Q.replace(sW,""))),typeof Q==="number"&&(isNaN(Q)?nW||(nW=!0,console.error("`NaN` is an invalid value for the `%s` css style property.",Z)):isFinite(Q)||oW||(oW=!0,console.error("`Infinity` is an invalid value for the `%s` css style property.",Z)))),Q==null||typeof Q==="boolean"||Q===""?Y?$.setProperty(Z,""):Z==="float"?$.cssFloat="":$[Z]="":Y?$.setProperty(Z,Q):typeof Q!=="number"||Q===0||aW.has(Z)?Z==="float"?$.cssFloat=Q:(P$(Q,Z),$[Z]=(""+Q).trim()):$[Z]=Q+"px"}function pK($,Z,Q){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,Q!=null){if(Z){var Y={};if(Q){for(var U in Q)if(Q.hasOwnProperty(U)&&!Z.hasOwnProperty(U))for(var B=gX[U]||[U],z=0;z<B.length;z++)Y[B[z]]=U}for(var w in Z)if(Z.hasOwnProperty(w)&&(!Q||Q[w]!==Z[w]))for(U=gX[w]||[w],B=0;B<U.length;B++)Y[U[B]]=w;w={};for(var L in Z)for(U=gX[L]||[L],B=0;B<U.length;B++)w[U[B]]=L;L={};for(var T in Y)if(U=Y[T],(B=w[T])&&U!==B&&(z=U+","+B,!L[z])){L[z]=!0,z=console;var b=Z[U];z.error.call(z,"%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 f in Q)!Q.hasOwnProperty(f)||Z!=null&&Z.hasOwnProperty(f)||(f.indexOf("--")===0?$.setProperty(f,""):f==="float"?$.cssFloat="":$[f]="");for(var S in Z)T=Z[S],Z.hasOwnProperty(S)&&Q[S]!==T&&dK($,S,T)}else for(Y in Z)Z.hasOwnProperty(Y)&&dK($,Y,Z[Y])}function A$($){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 cK($){return _C.get($)||$}function HP($,Z){if(Z4.call(V9,Z)&&V9[Z])return!0;if(PC.test(Z)){if($="aria-"+Z.slice(4).toLowerCase(),$=iW.hasOwnProperty($)?$:null,$==null)return console.error("Invalid ARIA attribute `%s`. ARIA attributes follow the pattern aria-* and must be lowercase.",Z),V9[Z]=!0;if(Z!==$)return console.error("Invalid ARIA attribute `%s`. Did you mean `%s`?",Z,$),V9[Z]=!0}if(LC.test(Z)){if($=Z.toLowerCase(),$=iW.hasOwnProperty($)?$:null,$==null)return V9[Z]=!0,!1;Z!==$&&(console.error("Unknown ARIA attribute `%s`. Did you mean `%s`?",Z,$),V9[Z]=!0)}return!0}function FP($,Z){var Q=[],Y;for(Y in Z)HP($,Y)||Q.push(Y);Z=Q.map(function(U){return"`"+U+"`"}).join(", "),Q.length===1?console.error("Invalid aria prop %s on <%s> tag. For details, see https://react.dev/link/invalid-aria-props",Z,$):1<Q.length&&console.error("Invalid aria props %s on <%s> tag. For details, see https://react.dev/link/invalid-aria-props",Z,$)}function WP($,Z,Q,Y){if(Z4.call(h5,Z)&&h5[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."),h5[Z]=!0;if(typeof Q==="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),h5[Z]=!0;if(eW.test(Z))return console.error("Unknown event handler property `%s`. It will be ignored.",Z),h5[Z]=!0}else if(eW.test(Z))return TC.test(Z)&&console.error("Invalid event handler property `%s`. React events use the camelCase naming convention, for example `onClick`.",Z),h5[Z]=!0;if(CC.test(Z)||OC.test(Z))return!0;if(U==="innerhtml")return console.error("Directly setting property `innerHTML` is not permitted. For more information, lookup documentation on `dangerouslySetInnerHTML`."),h5[Z]=!0;if(U==="aria")return console.error("The `aria` attribute is reserved for future use in React. Pass individual `aria-` attributes instead."),h5[Z]=!0;if(U==="is"&&Q!==null&&Q!==void 0&&typeof Q!=="string")return console.error("Received a `%s` for a string attribute `is`. If this is expected, cast the value to a string.",typeof Q),h5[Z]=!0;if(typeof Q==="number"&&isNaN(Q))return console.error("Received NaN for the `%s` attribute. If this is expected, cast the value to a string.",Z),h5[Z]=!0;if(MG.hasOwnProperty(U)){if(U=MG[U],U!==Z)return console.error("Invalid DOM property `%s`. Did you mean `%s`?",Z,U),h5[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),h5[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 Q){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 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()}.',Q,Z,Z,Q,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.',Q,Z,Z,Q,Z,Z,Z),h5[Z]=!0}case"function":case"symbol":return h5[Z]=!0,!1;case"string":if(Q==="false"||Q==="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}?",Q,Z,Q==="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,Q),h5[Z]=!0}}return!0}function zP($,Z,Q){var Y=[],U;for(U in Z)WP($,U,Z[U],Q)||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 E$($){return IC.test(""+$)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":$}function o4(){}function Oq($){return $=$.target||$.srcElement||window,$.correspondingUseElement&&($=$.correspondingUseElement),$.nodeType===3?$.parentNode:$}function lK($){var Z=j0($);if(Z&&($=Z.stateNode)){var Q=$[g5]||null;$:switch($=Z.stateNode,Z.type){case"input":if(wq($,Q.value,Q.defaultValue,Q.defaultValue,Q.checked,Q.defaultChecked,Q.type,Q.name),Z=Q.name,Q.type==="radio"&&Z!=null){for(Q=$;Q.parentNode;)Q=Q.parentNode;W1(Z,"name"),Q=Q.querySelectorAll('input[name="'+S6(""+Z)+'"][type="radio"]');for(Z=0;Z<Q.length;Z++){var Y=Q[Z];if(Y!==$&&Y.form===$.form){var U=Y[g5]||null;if(!U)throw Error("ReactDOMInput: Mixing React and non-React radio inputs with the same `name` is not supported.");wq(Y,U.value,U.defaultValue,U.defaultValue,U.checked,U.defaultChecked,U.type,U.name)}}for(Z=0;Z<Q.length;Z++)Y=Q[Z],Y.form===$.form&&VK(Y)}break $;case"textarea":vK($,Q.value,Q.defaultValue);break $;case"select":Z=Q.value,Z!=null&&J9($,!!Q.multiple,Z,!1)}}}function rK($,Z,Q){if(uX)return $(Z,Q);uX=!0;try{var Y=$(Z);return Y}finally{if(uX=!1,A9!==null||E9!==null){if(W9(),A9&&(Z=A9,$=E9,E9=A9=null,lK(Z),$))for(Z=0;Z<$.length;Z++)lK($[Z])}}}function S$($,Z){var Q=$.stateNode;if(Q===null)return null;var Y=Q[g5]||null;if(Y===null)return null;Q=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(Q&&typeof Q!=="function")throw Error("Expected `"+Z+"` listener to be a function, instead got a value of `"+typeof Q+"` type.");return Q}function sK(){if(wG)return wG;var $,Z=mX,Q=Z.length,Y,U="value"in t8?t8.value:t8.textContent,B=U.length;for($=0;$<Q&&Z[$]===U[$];$++);var z=Q-$;for(Y=1;Y<=z&&Z[Q-Y]===U[B-Y];Y++);return wG=U.slice($,1<Y?1-Y:void 0)}function GQ($){var Z=$.keyCode;return"charCode"in $?($=$.charCode,$===0&&Z===13&&($=13)):$=Z,$===10&&($=13),32<=$||$===13?$:0}function qQ(){return!0}function nK(){return!1}function c5($){function Z(Q,Y,U,B,z){this._reactName=Q,this._targetInst=U,this.type=Y,this.nativeEvent=B,this.target=z,this.currentTarget=null;for(var w in $)$.hasOwnProperty(w)&&(Q=$[w],this[w]=Q?Q(B):B[w]);return this.isDefaultPrevented=(B.defaultPrevented!=null?B.defaultPrevented:B.returnValue===!1)?qQ:nK,this.isPropagationStopped=nK,this}return l0(Z.prototype,{preventDefault:function(){this.defaultPrevented=!0;var Q=this.nativeEvent;Q&&(Q.preventDefault?Q.preventDefault():typeof Q.returnValue!=="unknown"&&(Q.returnValue=!1),this.isDefaultPrevented=qQ)},stopPropagation:function(){var Q=this.nativeEvent;Q&&(Q.stopPropagation?Q.stopPropagation():typeof Q.cancelBubble!=="unknown"&&(Q.cancelBubble=!0),this.isPropagationStopped=qQ)},persist:function(){},isPersistent:qQ}),Z}function MP($){var Z=this.nativeEvent;return Z.getModifierState?Z.getModifierState($):($=hC[$])?!!Z[$]:!1}function Iq(){return MP}function oK($,Z){switch($){case"keyup":return aC.indexOf(Z.keyCode)!==-1;case"keydown":return Z.keyCode!==Qz;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function aK($){return $=$.detail,typeof $==="object"&&"data"in $?$.data:null}function wP($,Z){switch($){case"compositionend":return aK(Z);case"keypress":if(Z.which!==qz)return null;return Xz=!0,Yz;case"textInput":return $=Z.data,$===Yz&&Xz?null:$;default:return null}}function RP($,Z){if(S9)return $==="compositionend"||!lX&&oK($,Z)?($=sK(),wG=mX=t8=null,S9=!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 Gz&&Z.locale!=="ko"?null:Z.data;default:return null}}function iK($){var Z=$&&$.nodeName&&$.nodeName.toLowerCase();return Z==="input"?!!tC[$.type]:Z==="textarea"?!0:!1}function _P($){if(!b4)return!1;$="on"+$;var Z=$ in document;return Z||(Z=document.createElement("div"),Z.setAttribute($,"return;"),Z=typeof Z[$]==="function"),Z}function tK($,Z,Q,Y){A9?E9?E9.push(Y):E9=[Y]:A9=Y,Z=iQ(Z,"onChange"),0<Z.length&&(Q=new RG("onChange","change",null,Q,Y),$.push({event:Q,listeners:Z}))}function LP($){bF($,0)}function YQ($){var Z=k0($);if(VK(Z))return $}function eK($,Z){if($==="change")return Z}function $B(){WZ&&(WZ.detachEvent("onpropertychange",ZB),zZ=WZ=null)}function ZB($){if($.propertyName==="value"&&YQ(zZ)){var Z=[];tK(Z,zZ,$,Oq($)),rK(LP,Z)}}function PP($,Z,Q){$==="focusin"?($B(),WZ=Z,zZ=Q,WZ.attachEvent("onpropertychange",ZB)):$==="focusout"&&$B()}function TP($){if($==="selectionchange"||$==="keyup"||$==="keydown")return YQ(zZ)}function CP($,Z){if($==="click")return YQ(Z)}function OP($,Z){if($==="input"||$==="change")return YQ(Z)}function IP($,Z){return $===Z&&($!==0||1/$===1/Z)||$!==$&&Z!==Z}function D$($,Z){if(u5($,Z))return!0;if(typeof $!=="object"||$===null||typeof Z!=="object"||Z===null)return!1;var Q=Object.keys($),Y=Object.keys(Z);if(Q.length!==Y.length)return!1;for(Y=0;Y<Q.length;Y++){var U=Q[Y];if(!Z4.call(Z,U)||!u5($[U],Z[U]))return!1}return!0}function JB($){for(;$&&$.firstChild;)$=$.firstChild;return $}function QB($,Z){var Q=JB($);$=0;for(var Y;Q;){if(Q.nodeType===3){if(Y=$+Q.textContent.length,$<=Z&&Y>=Z)return{node:Q,offset:Z-$};$=Y}$:{for(;Q;){if(Q.nextSibling){Q=Q.nextSibling;break $}Q=Q.parentNode}Q=void 0}Q=JB(Q)}}function GB($,Z){return $&&Z?$===Z?!0:$&&$.nodeType===3?!1:Z&&Z.nodeType===3?GB($,Z.parentNode):("contains"in $)?$.contains(Z):$.compareDocumentPosition?!!($.compareDocumentPosition(Z)&16):!1:!1}function qB($){$=$!=null&&$.ownerDocument!=null&&$.ownerDocument.defaultView!=null?$.ownerDocument.defaultView:window;for(var Z=ZQ($.document);Z instanceof $.HTMLIFrameElement;){try{var Q=typeof Z.contentWindow.location.href==="string"}catch(Y){Q=!1}if(Q)$=Z.contentWindow;else break;Z=ZQ($.document)}return Z}function Vq($){var Z=$&&$.nodeName&&$.nodeName.toLowerCase();return Z&&(Z==="input"&&($.type==="text"||$.type==="search"||$.type==="tel"||$.type==="url"||$.type==="password")||Z==="textarea"||$.contentEditable==="true")}function YB($,Z,Q){var Y=Q.window===Q?Q.document:Q.nodeType===9?Q:Q.ownerDocument;sX||D9==null||D9!==ZQ(Y)||(Y=D9,("selectionStart"in Y)&&Vq(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}),MZ&&D$(MZ,Y)||(MZ=Y,Y=iQ(rX,"onSelect"),0<Y.length&&(Z=new RG("onSelect","select",null,Z,Q),$.push({event:Z,listeners:Y}),Z.target=D9)))}function o2($,Z){var Q={};return Q[$.toLowerCase()]=Z.toLowerCase(),Q["Webkit"+$]="webkit"+Z,Q["Moz"+$]="moz"+Z,Q}function a2($){if(nX[$])return nX[$];if(!j9[$])return $;var Z=j9[$],Q;for(Q in Z)if(Z.hasOwnProperty(Q)&&Q in Uz)return nX[$]=Z[Q];return $}function t6($,Z){Wz.set($,Z),A5(Z,[$])}function VP($){for(var Z=LG,Q=0;Q<$.length;Q++){var Y=$[Q];if(typeof Y==="object"&&Y!==null)if(G5(Y)&&Y.length===2&&typeof Y[0]==="string"){if(Z!==LG&&Z!==eX)return iX;Z=eX}else return iX;else{if(typeof Y==="function"||typeof Y==="string"&&50<Y.length||Z!==LG&&Z!==tX)return iX;Z=tX}}return Z}function Aq($,Z,Q,Y){for(var U in $)Z4.call($,U)&&U[0]!=="_"&&H4(U,$[U],Z,Q,Y)}function H4($,Z,Q,Y,U){switch(typeof Z){case"object":if(Z===null){Z="null";break}else{if(Z.$$typeof===E4){var B=i(Z.type)||"…",z=Z.key;Z=Z.props;var w=Object.keys(Z),L=w.length;if(z==null&&L===0){Z="<"+B+" />";break}if(3>Y||L===1&&w[0]==="children"&&z==null){Z="<"+B+" … />";break}Q.push([U+" ".repeat(Y)+$,"<"+B]),z!==null&&H4("key",z,Q,Y+1,U),$=!1;for(var T in Z)T==="children"?Z.children!=null&&(!G5(Z.children)||0<Z.children.length)&&($=!0):Z4.call(Z,T)&&T[0]!=="_"&&H4(T,Z[T],Q,Y+1,U);Q.push(["",$?">…</"+B+">":"/>"]);return}if(B=Object.prototype.toString.call(Z),B=B.slice(8,B.length-1),B==="Array"){if(T=VP(Z),T===tX||T===LG){Z=JSON.stringify(Z);break}else if(T===eX){Q.push([U+" ".repeat(Y)+$,""]);for($=0;$<Z.length;$++)B=Z[$],H4(B[0],B[1],Q,Y+1,U);return}}if(B==="Promise"){if(Z.status==="fulfilled"){if(B=Q.length,H4($,Z.value,Q,Y,U),Q.length>B){Q=Q[B],Q[1]="Promise<"+(Q[1]||"Object")+">";return}}else if(Z.status==="rejected"&&(B=Q.length,H4($,Z.reason,Q,Y,U),Q.length>B)){Q=Q[B],Q[1]="Rejected Promise<"+Q[1]+">";return}Q.push([" ".repeat(Y)+$,"Promise"]);return}B==="Object"&&(T=Object.getPrototypeOf(Z))&&typeof T.constructor==="function"&&(B=T.constructor.name),Q.push([U+" ".repeat(Y)+$,B==="Object"?3>Y?"":"…":B]),3>Y&&Aq(Z,Q,Y+1,U);return}case"function":Z=Z.name===""?"() => {}":Z.name+"() {}";break;case"string":Z=Z===qO?"…":JSON.stringify(Z);break;case"undefined":Z="undefined";break;case"boolean":Z=Z?"true":"false";break;default:Z=String(Z)}Q.push([U+" ".repeat(Y)+$,Z])}function XB($,Z,Q,Y){var U=!0;for(z in $)z in Z||(Q.push([PG+" ".repeat(Y)+z,"…"]),U=!1);for(var B in Z)if(B in $){var z=$[B],w=Z[B];if(z!==w){if(Y===0&&B==="children")U=" ".repeat(Y)+B,Q.push([PG+U,"…"],[TG+U,"…"]);else{if(!(3<=Y)){if(typeof z==="object"&&typeof w==="object"&&z!==null&&w!==null&&z.$$typeof===w.$$typeof)if(w.$$typeof===E4){if(z.type===w.type&&z.key===w.key){z=i(w.type)||"…",U=" ".repeat(Y)+B,z="<"+z+" … />",Q.push([PG+U,z],[TG+U,z]),U=!1;continue}}else{var L=Object.prototype.toString.call(z),T=Object.prototype.toString.call(w);if(L===T&&(T==="[object Object]"||T==="[object Array]")){L=[wz+" ".repeat(Y)+B,T==="[object Array]"?"Array":""],Q.push(L),T=Q.length,XB(z,w,Q,Y+1)?T===Q.length&&(L[1]="Referentially unequal but deeply equal objects. Consider memoization."):U=!1;continue}}else if(typeof z==="function"&&typeof w==="function"&&z.name===w.name&&z.length===w.length&&(L=Function.prototype.toString.call(z),T=Function.prototype.toString.call(w),L===T)){z=w.name===""?"() => {}":w.name+"() {}",Q.push([wz+" ".repeat(Y)+B,z+" Referentially unequal function closure. Consider memoization."]);continue}}H4(B,z,Q,Y,PG),H4(B,w,Q,Y,TG)}U=!1}}else Q.push([TG+" ".repeat(Y)+B,"…"]),U=!1;return U}function B6($){o0=$&63?"Blocking":$&64?"Gesture":$&4194176?"Transition":$&62914560?"Suspense":$&2080374784?"Idle":"Other"}function F4($,Z,Q,Y){I1&&($2.start=Z,$2.end=Q,G8.color="warning",G8.tooltipText=Y,G8.properties=null,($=$._debugTask)?$.run(performance.measure.bind(performance,Y,$2)):performance.measure(Y,$2))}function XQ($,Z,Q){F4($,Z,Q,"Reconnect")}function NQ($,Z,Q,Y,U){var B=d($);if(B!==null&&I1){var{alternate:z,actualDuration:w}=$;if(z===null||z.child!==$.child)for(var L=$.child;L!==null;L=L.sibling)w-=L.actualDuration;Y=0.5>w?Y?"tertiary-light":"primary-light":10>w?Y?"tertiary":"primary":100>w?Y?"tertiary-dark":"primary-dark":"error";var T=$.memoizedProps;w=$._debugTask,T!==null&&z!==null&&z.memoizedProps!==T?(L=[YO],T=XB(z.memoizedProps,T,L,0),1<L.length&&(T&&!e8&&(z.lanes&U)===0&&100<$.actualDuration?(e8=!0,L[0]=XO,G8.color="warning",G8.tooltipText=Rz):(G8.color=Y,G8.tooltipText=B),G8.properties=L,$2.start=Z,$2.end=Q,w!=null?w.run(performance.measure.bind(performance,""+B,$2)):performance.measure(""+B,$2))):w!=null?w.run(console.timeStamp.bind(console,B,Z,Q,j6,void 0,Y)):console.timeStamp(B,Z,Q,j6,void 0,Y)}}function Eq($,Z,Q,Y){if(I1){var U=d($);if(U!==null){for(var B=null,z=[],w=0;w<Y.length;w++){var L=Y[w];B==null&&L.source!==null&&(B=L.source._debugTask),L=L.value,z.push(["Error",typeof L==="object"&&L!==null&&typeof L.message==="string"?String(L.message):String(L)])}$.key!==null&&H4("key",$.key,z,0,""),$.memoizedProps!==null&&Aq($.memoizedProps,z,0,""),B==null&&(B=$._debugTask),$={start:Z,end:Q,detail:{devtools:{color:"error",track:j6,tooltipText:$.tag===13?"Hydration failed":"Error boundary caught an error",properties:z}}},B?B.run(performance.measure.bind(performance,""+U,$)):performance.measure(""+U,$)}}}function W4($,Z,Q,Y,U){if(U!==null){if(I1){var B=d($);if(B!==null){Y=[];for(var z=0;z<U.length;z++){var w=U[z].value;Y.push(["Error",typeof w==="object"&&w!==null&&typeof w.message==="string"?String(w.message):String(w)])}$.key!==null&&H4("key",$.key,Y,0,""),$.memoizedProps!==null&&Aq($.memoizedProps,Y,0,""),Z={start:Z,end:Q,detail:{devtools:{color:"error",track:j6,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&&I1&&(U=1>Y?"secondary-light":100>Y?"secondary":500>Y?"secondary-dark":"error",($=$._debugTask)?$.run(console.timeStamp.bind(console,B,Z,Q,j6,void 0,U)):console.timeStamp(B,Z,Q,j6,void 0,U))}function AP($,Z,Q,Y){if(I1&&!(Z<=$)){var U=(Q&738197653)===Q?"tertiary-dark":"primary-dark";Q=(Q&536870912)===Q?"Prepared":(Q&201326741)===Q?"Hydrated":"Render",Y?Y.run(console.timeStamp.bind(console,Q,$,Z,o0,r0,U)):console.timeStamp(Q,$,Z,o0,r0,U)}}function NB($,Z,Q,Y){!I1||Z<=$||(Q=(Q&738197653)===Q?"tertiary-dark":"primary-dark",Y?Y.run(console.timeStamp.bind(console,"Prewarm",$,Z,o0,r0,Q)):console.timeStamp("Prewarm",$,Z,o0,r0,Q))}function UB($,Z,Q,Y){!I1||Z<=$||(Q=(Q&738197653)===Q?"tertiary-dark":"primary-dark",Y?Y.run(console.timeStamp.bind(console,"Suspended",$,Z,o0,r0,Q)):console.timeStamp("Suspended",$,Z,o0,r0,Q))}function EP($,Z,Q,Y,U,B){if(I1&&!(Z<=$)){Q=[];for(var z=0;z<Y.length;z++){var w=Y[z].value;Q.push(["Recoverable Error",typeof w==="object"&&w!==null&&typeof w.message==="string"?String(w.message):String(w)])}$={start:$,end:Z,detail:{devtools:{color:"primary-dark",track:o0,trackGroup:r0,tooltipText:U?"Hydration Failed":"Recovered after Error",properties:Q}}},B?B.run(performance.measure.bind(performance,"Recovered",$)):performance.measure("Recovered",$)}}function Sq($,Z,Q,Y){!I1||Z<=$||(Y?Y.run(console.timeStamp.bind(console,"Errored",$,Z,o0,r0,"error")):console.timeStamp("Errored",$,Z,o0,r0,"error"))}function SP($,Z,Q,Y){!I1||Z<=$||(Y?Y.run(console.timeStamp.bind(console,Q,$,Z,o0,r0,"secondary-light")):console.timeStamp(Q,$,Z,o0,r0,"secondary-light"))}function KB($,Z,Q,Y,U){if(I1&&!(Z<=$)){for(var B=[],z=0;z<Q.length;z++){var w=Q[z].value;B.push(["Error",typeof w==="object"&&w!==null&&typeof w.message==="string"?String(w.message):String(w)])}$={start:$,end:Z,detail:{devtools:{color:"error",track:o0,trackGroup:r0,tooltipText:Y?"Remaining Effects Errored":"Commit Errored",properties:B}}},U?U.run(performance.measure.bind(performance,"Errored",$)):performance.measure("Errored",$)}}function j$($,Z,Q){!I1||Z<=$||(Q?Q.run(console.timeStamp.bind(console,"Animating",$,Z,o0,r0,"secondary-dark")):console.timeStamp("Animating",$,Z,o0,r0,"secondary-dark"))}function UQ(){for(var $=k9,Z=$N=k9=0;Z<$;){var Q=k6[Z];k6[Z++]=null;var Y=k6[Z];k6[Z++]=null;var U=k6[Z];k6[Z++]=null;var B=k6[Z];if(k6[Z++]=null,Y!==null&&U!==null){var z=Y.pending;z===null?U.next=U:(U.next=z.next,z.next=U),Y.pending=U}B!==0&&BB(Q,U,B)}}function KQ($,Z,Q,Y){k6[k9++]=$,k6[k9++]=Z,k6[k9++]=Q,k6[k9++]=Y,$N|=Y,$.lanes|=Y,$=$.alternate,$!==null&&($.lanes|=Y)}function Dq($,Z,Q,Y){return KQ($,Z,Q,Y),BQ($)}function E5($,Z){return KQ($,null,null,Z),BQ($)}function BB($,Z,Q){$.lanes|=Q;var Y=$.alternate;Y!==null&&(Y.lanes|=Q);for(var U=!1,B=$.return;B!==null;)B.childLanes|=Q,Y=B.alternate,Y!==null&&(Y.childLanes|=Q),B.tag===22&&($=B.stateNode,$===null||$._visibility&wZ||(U=!0)),$=B,B=B.return;return $.tag===3?(B=$.stateNode,U&&Z!==null&&(U=31-y5(Q),$=B.hiddenUpdates,Y=$[U],Y===null?$[U]=[Z]:Y.push(Z),Z.lane=Q|536870912),B):null}function BQ($){if(cZ>TO)throw I7=cZ=0,lZ=vN=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.");I7>CO&&(I7=0,lZ=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&&AF($);for(var Z=$,Q=Z.return;Q!==null;)Z.alternate===null&&(Z.flags&4098)!==0&&AF($),Z=Q,Q=Z.return;return Z.tag===3?Z.stateNode:null}function i2($){if(v6===null)return $;var Z=v6($);return Z===void 0?$:Z.current}function jq($){if(v6===null)return $;var Z=v6($);return Z===void 0?$!==null&&$!==void 0&&typeof $.render==="function"&&(Z=i2($.render),$.render!==Z)?(Z={$$typeof:qZ,render:Z},$.displayName!==void 0&&(Z.displayName=$.displayName),Z):$:Z.current}function HB($,Z){if(v6===null)return!1;var Q=$.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===R6&&(Y=!0);break;case 11:U===qZ?Y=!0:U===R6&&(Y=!0);break;case 14:case 15:U===NG?Y=!0:U===R6&&(Y=!0);break;default:return!1}return Y&&($=v6(Q),$!==void 0&&$===v6(Z))?!0:!1}function FB($){v6!==null&&typeof WeakSet==="function"&&(v9===null&&(v9=new WeakSet),v9.add($))}function WB($,Z,Q){do{var Y=$,U=Y.alternate,B=Y.child,z=Y.sibling,w=Y.tag;Y=Y.type;var L=null;switch(w){case 0:case 15:case 1:L=Y;break;case 11:L=Y.render}if(v6===null)throw Error("Expected resolveFamily to be set during hot reload.");var T=!1;if(Y=!1,L!==null&&(L=v6(L),L!==void 0&&(Q.has(L)?Y=!0:Z.has(L)&&(w===1?Y=!0:T=!0))),v9!==null&&(v9.has($)||U!==null&&v9.has(U))&&(Y=!0),Y&&($._debugNeedsRemount=!0),Y||T)U=E5($,2),U!==null&&y1(U,$,2);if(B===null||Y||WB(B,Z,Q),z===null)break;$=z}while(1)}function DP($,Z,Q,Y){this.tag=$,this.key=Q,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,_z||typeof Object.preventExtensions!=="function"||Object.preventExtensions(this)}function kq($){return $=$.prototype,!(!$||!$.isReactComponent)}function a4($,Z){var Q=$.alternate;switch(Q===null?(Q=P($.tag,Z,$.key,$.mode),Q.elementType=$.elementType,Q.type=$.type,Q.stateNode=$.stateNode,Q._debugOwner=$._debugOwner,Q._debugStack=$._debugStack,Q._debugTask=$._debugTask,Q._debugHookTypes=$._debugHookTypes,Q.alternate=$,$.alternate=Q):(Q.pendingProps=Z,Q.type=$.type,Q.flags=0,Q.subtreeFlags=0,Q.deletions=null,Q.actualDuration=-0,Q.actualStartTime=-1.1),Q.flags=$.flags&65011712,Q.childLanes=$.childLanes,Q.lanes=$.lanes,Q.child=$.child,Q.memoizedProps=$.memoizedProps,Q.memoizedState=$.memoizedState,Q.updateQueue=$.updateQueue,Z=$.dependencies,Q.dependencies=Z===null?null:{lanes:Z.lanes,firstContext:Z.firstContext,_debugThenableState:Z._debugThenableState},Q.sibling=$.sibling,Q.index=$.index,Q.ref=$.ref,Q.refCleanup=$.refCleanup,Q.selfBaseDuration=$.selfBaseDuration,Q.treeBaseDuration=$.treeBaseDuration,Q._debugInfo=$._debugInfo,Q._debugNeedsRemount=$._debugNeedsRemount,Q.tag){case 0:case 15:Q.type=i2($.type);break;case 1:Q.type=i2($.type);break;case 11:Q.type=jq($.type)}return Q}function zB($,Z){$.flags&=65011714;var Q=$.alternate;return Q===null?($.childLanes=0,$.lanes=Z,$.child=null,$.subtreeFlags=0,$.memoizedProps=null,$.memoizedState=null,$.updateQueue=null,$.dependencies=null,$.stateNode=null,$.selfBaseDuration=0,$.treeBaseDuration=0):($.childLanes=Q.childLanes,$.lanes=Q.lanes,$.child=Q.child,$.subtreeFlags=0,$.deletions=null,$.memoizedProps=Q.memoizedProps,$.memoizedState=Q.memoizedState,$.updateQueue=Q.updateQueue,$.type=Q.type,Z=Q.dependencies,$.dependencies=Z===null?null:{lanes:Z.lanes,firstContext:Z.firstContext,_debugThenableState:Z._debugThenableState},$.selfBaseDuration=Q.selfBaseDuration,$.treeBaseDuration=Q.treeBaseDuration),$}function vq($,Z,Q,Y,U,B){var z=0,w=$;if(typeof $==="function")kq($)&&(z=1),w=i2(w);else if(typeof $==="string")z=F0(),z=uT($,Q,z)?26:$==="html"||$==="head"||$==="body"?27:5;else $:switch($){case IX:return Z=P(31,Q,Z,U),Z.elementType=IX,Z.lanes=B,Z;case P9:return t2(Q.children,U,B,Z);case XG:z=8,U|=D5,U|=Q4;break;case PX:return $=Q,Y=U,typeof $.id!=="string"&&console.error('Profiler must specify an "id" of type `string` as a prop. Received the type `%s` instead.',typeof $.id),Z=P(12,$,Z,Y|g0),Z.elementType=PX,Z.lanes=B,Z.stateNode={effectDuration:0,passiveEffectDuration:0},Z;case CX:return Z=P(13,Q,Z,U),Z.elementType=CX,Z.lanes=B,Z;case OX:return Z=P(19,Q,Z,U),Z.elementType=OX,Z.lanes=B,Z;default:if(typeof $==="object"&&$!==null)switch($.$$typeof){case S4:z=10;break $;case TX:z=9;break $;case qZ:z=11,w=jq(w);break $;case NG:z=14;break $;case R6:z=16,w=null;break $}if(w="",$===void 0||typeof $==="object"&&$!==null&&Object.keys($).length===0)w+=" 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?Q="null":G5($)?Q="array":$!==void 0&&$.$$typeof===E4?(Q="<"+(i($.type)||"Unknown")+" />",w=" Did you accidentally export a JSX literal instead of a component?"):Q=typeof $,(z=Y?X0(Y):null)&&(w+=`
|
|
71
|
+
This will cause a hydration error.%s`,Z,Q),!1}function A$($,Z){if(Z){var Q=$.firstChild;if(Q&&Q===$.lastChild&&Q.nodeType===3){Q.nodeValue=Z;return}}$.textContent=Z}function BP($){return $.replace(RC,function(Z,Q){return Q.toUpperCase()})}function dK($,Z,Q){var Y=Z.indexOf("--")===0;Y||(-1<Z.indexOf("-")?I9.hasOwnProperty(Z)&&I9[Z]||(I9[Z]=!0,console.error("Unsupported style property %s. Did you mean %s?",Z,BP(Z.replace(wC,"ms-")))):MC.test(Z)?I9.hasOwnProperty(Z)&&I9[Z]||(I9[Z]=!0,console.error("Unsupported vendor-prefixed style property %s. Did you mean %s?",Z,Z.charAt(0).toUpperCase()+Z.slice(1))):!sW.test(Q)||hX.hasOwnProperty(Q)&&hX[Q]||(hX[Q]=!0,console.error(`Style property values shouldn't contain a semicolon. Try "%s: %s" instead.`,Z,Q.replace(sW,""))),typeof Q==="number"&&(isNaN(Q)?nW||(nW=!0,console.error("`NaN` is an invalid value for the `%s` css style property.",Z)):isFinite(Q)||oW||(oW=!0,console.error("`Infinity` is an invalid value for the `%s` css style property.",Z)))),Q==null||typeof Q==="boolean"||Q===""?Y?$.setProperty(Z,""):Z==="float"?$.cssFloat="":$[Z]="":Y?$.setProperty(Z,Q):typeof Q!=="number"||Q===0||aW.has(Z)?Z==="float"?$.cssFloat=Q:(T$(Q,Z),$[Z]=(""+Q).trim()):$[Z]=Q+"px"}function pK($,Z,Q){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,Q!=null){if(Z){var Y={};if(Q){for(var U in Q)if(Q.hasOwnProperty(U)&&!Z.hasOwnProperty(U))for(var B=gX[U]||[U],z=0;z<B.length;z++)Y[B[z]]=U}for(var w in Z)if(Z.hasOwnProperty(w)&&(!Q||Q[w]!==Z[w]))for(U=gX[w]||[w],B=0;B<U.length;B++)Y[U[B]]=w;w={};for(var L in Z)for(U=gX[L]||[L],B=0;B<U.length;B++)w[U[B]]=L;L={};for(var T in Y)if(U=Y[T],(B=w[T])&&U!==B&&(z=U+","+B,!L[z])){L[z]=!0,z=console;var b=Z[U];z.error.call(z,"%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 f in Q)!Q.hasOwnProperty(f)||Z!=null&&Z.hasOwnProperty(f)||(f.indexOf("--")===0?$.setProperty(f,""):f==="float"?$.cssFloat="":$[f]="");for(var S in Z)T=Z[S],Z.hasOwnProperty(S)&&Q[S]!==T&&dK($,S,T)}else for(Y in Z)Z.hasOwnProperty(Y)&&dK($,Y,Z[Y])}function E$($){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 cK($){return _C.get($)||$}function HP($,Z){if(Z4.call(A9,Z)&&A9[Z])return!0;if(PC.test(Z)){if($="aria-"+Z.slice(4).toLowerCase(),$=iW.hasOwnProperty($)?$:null,$==null)return console.error("Invalid ARIA attribute `%s`. ARIA attributes follow the pattern aria-* and must be lowercase.",Z),A9[Z]=!0;if(Z!==$)return console.error("Invalid ARIA attribute `%s`. Did you mean `%s`?",Z,$),A9[Z]=!0}if(LC.test(Z)){if($=Z.toLowerCase(),$=iW.hasOwnProperty($)?$:null,$==null)return A9[Z]=!0,!1;Z!==$&&(console.error("Unknown ARIA attribute `%s`. Did you mean `%s`?",Z,$),A9[Z]=!0)}return!0}function FP($,Z){var Q=[],Y;for(Y in Z)HP($,Y)||Q.push(Y);Z=Q.map(function(U){return"`"+U+"`"}).join(", "),Q.length===1?console.error("Invalid aria prop %s on <%s> tag. For details, see https://react.dev/link/invalid-aria-props",Z,$):1<Q.length&&console.error("Invalid aria props %s on <%s> tag. For details, see https://react.dev/link/invalid-aria-props",Z,$)}function WP($,Z,Q,Y){if(Z4.call(h5,Z)&&h5[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."),h5[Z]=!0;if(typeof Q==="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),h5[Z]=!0;if(eW.test(Z))return console.error("Unknown event handler property `%s`. It will be ignored.",Z),h5[Z]=!0}else if(eW.test(Z))return TC.test(Z)&&console.error("Invalid event handler property `%s`. React events use the camelCase naming convention, for example `onClick`.",Z),h5[Z]=!0;if(CC.test(Z)||OC.test(Z))return!0;if(U==="innerhtml")return console.error("Directly setting property `innerHTML` is not permitted. For more information, lookup documentation on `dangerouslySetInnerHTML`."),h5[Z]=!0;if(U==="aria")return console.error("The `aria` attribute is reserved for future use in React. Pass individual `aria-` attributes instead."),h5[Z]=!0;if(U==="is"&&Q!==null&&Q!==void 0&&typeof Q!=="string")return console.error("Received a `%s` for a string attribute `is`. If this is expected, cast the value to a string.",typeof Q),h5[Z]=!0;if(typeof Q==="number"&&isNaN(Q))return console.error("Received NaN for the `%s` attribute. If this is expected, cast the value to a string.",Z),h5[Z]=!0;if(MG.hasOwnProperty(U)){if(U=MG[U],U!==Z)return console.error("Invalid DOM property `%s`. Did you mean `%s`?",Z,U),h5[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),h5[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 Q){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 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()}.',Q,Z,Z,Q,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.',Q,Z,Z,Q,Z,Z,Z),h5[Z]=!0}case"function":case"symbol":return h5[Z]=!0,!1;case"string":if(Q==="false"||Q==="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}?",Q,Z,Q==="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,Q),h5[Z]=!0}}return!0}function zP($,Z,Q){var Y=[],U;for(U in Z)WP($,U,Z[U],Q)||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 S$($){return IC.test(""+$)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":$}function o4(){}function Oq($){return $=$.target||$.srcElement||window,$.correspondingUseElement&&($=$.correspondingUseElement),$.nodeType===3?$.parentNode:$}function lK($){var Z=j0($);if(Z&&($=Z.stateNode)){var Q=$[g5]||null;$:switch($=Z.stateNode,Z.type){case"input":if(wq($,Q.value,Q.defaultValue,Q.defaultValue,Q.checked,Q.defaultChecked,Q.type,Q.name),Z=Q.name,Q.type==="radio"&&Z!=null){for(Q=$;Q.parentNode;)Q=Q.parentNode;W1(Z,"name"),Q=Q.querySelectorAll('input[name="'+S6(""+Z)+'"][type="radio"]');for(Z=0;Z<Q.length;Z++){var Y=Q[Z];if(Y!==$&&Y.form===$.form){var U=Y[g5]||null;if(!U)throw Error("ReactDOMInput: Mixing React and non-React radio inputs with the same `name` is not supported.");wq(Y,U.value,U.defaultValue,U.defaultValue,U.checked,U.defaultChecked,U.type,U.name)}}for(Z=0;Z<Q.length;Z++)Y=Q[Z],Y.form===$.form&&VK(Y)}break $;case"textarea":vK($,Q.value,Q.defaultValue);break $;case"select":Z=Q.value,Z!=null&&Q9($,!!Q.multiple,Z,!1)}}}function rK($,Z,Q){if(uX)return $(Z,Q);uX=!0;try{var Y=$(Z);return Y}finally{if(uX=!1,E9!==null||S9!==null){if(z9(),E9&&(Z=E9,$=S9,S9=E9=null,lK(Z),$))for(Z=0;Z<$.length;Z++)lK($[Z])}}}function D$($,Z){var Q=$.stateNode;if(Q===null)return null;var Y=Q[g5]||null;if(Y===null)return null;Q=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(Q&&typeof Q!=="function")throw Error("Expected `"+Z+"` listener to be a function, instead got a value of `"+typeof Q+"` type.");return Q}function sK(){if(wG)return wG;var $,Z=mX,Q=Z.length,Y,U="value"in t8?t8.value:t8.textContent,B=U.length;for($=0;$<Q&&Z[$]===U[$];$++);var z=Q-$;for(Y=1;Y<=z&&Z[Q-Y]===U[B-Y];Y++);return wG=U.slice($,1<Y?1-Y:void 0)}function GQ($){var Z=$.keyCode;return"charCode"in $?($=$.charCode,$===0&&Z===13&&($=13)):$=Z,$===10&&($=13),32<=$||$===13?$:0}function qQ(){return!0}function nK(){return!1}function c5($){function Z(Q,Y,U,B,z){this._reactName=Q,this._targetInst=U,this.type=Y,this.nativeEvent=B,this.target=z,this.currentTarget=null;for(var w in $)$.hasOwnProperty(w)&&(Q=$[w],this[w]=Q?Q(B):B[w]);return this.isDefaultPrevented=(B.defaultPrevented!=null?B.defaultPrevented:B.returnValue===!1)?qQ:nK,this.isPropagationStopped=nK,this}return l0(Z.prototype,{preventDefault:function(){this.defaultPrevented=!0;var Q=this.nativeEvent;Q&&(Q.preventDefault?Q.preventDefault():typeof Q.returnValue!=="unknown"&&(Q.returnValue=!1),this.isDefaultPrevented=qQ)},stopPropagation:function(){var Q=this.nativeEvent;Q&&(Q.stopPropagation?Q.stopPropagation():typeof Q.cancelBubble!=="unknown"&&(Q.cancelBubble=!0),this.isPropagationStopped=qQ)},persist:function(){},isPersistent:qQ}),Z}function MP($){var Z=this.nativeEvent;return Z.getModifierState?Z.getModifierState($):($=hC[$])?!!Z[$]:!1}function Iq(){return MP}function oK($,Z){switch($){case"keyup":return aC.indexOf(Z.keyCode)!==-1;case"keydown":return Z.keyCode!==Qz;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function aK($){return $=$.detail,typeof $==="object"&&"data"in $?$.data:null}function wP($,Z){switch($){case"compositionend":return aK(Z);case"keypress":if(Z.which!==qz)return null;return Xz=!0,Yz;case"textInput":return $=Z.data,$===Yz&&Xz?null:$;default:return null}}function RP($,Z){if(D9)return $==="compositionend"||!lX&&oK($,Z)?($=sK(),wG=mX=t8=null,D9=!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 Gz&&Z.locale!=="ko"?null:Z.data;default:return null}}function iK($){var Z=$&&$.nodeName&&$.nodeName.toLowerCase();return Z==="input"?!!tC[$.type]:Z==="textarea"?!0:!1}function _P($){if(!b4)return!1;$="on"+$;var Z=$ in document;return Z||(Z=document.createElement("div"),Z.setAttribute($,"return;"),Z=typeof Z[$]==="function"),Z}function tK($,Z,Q,Y){E9?S9?S9.push(Y):S9=[Y]:E9=Y,Z=iQ(Z,"onChange"),0<Z.length&&(Q=new RG("onChange","change",null,Q,Y),$.push({event:Q,listeners:Z}))}function LP($){bF($,0)}function YQ($){var Z=k0($);if(VK(Z))return $}function eK($,Z){if($==="change")return Z}function $B(){zZ&&(zZ.detachEvent("onpropertychange",ZB),MZ=zZ=null)}function ZB($){if($.propertyName==="value"&&YQ(MZ)){var Z=[];tK(Z,MZ,$,Oq($)),rK(LP,Z)}}function PP($,Z,Q){$==="focusin"?($B(),zZ=Z,MZ=Q,zZ.attachEvent("onpropertychange",ZB)):$==="focusout"&&$B()}function TP($){if($==="selectionchange"||$==="keyup"||$==="keydown")return YQ(MZ)}function CP($,Z){if($==="click")return YQ(Z)}function OP($,Z){if($==="input"||$==="change")return YQ(Z)}function IP($,Z){return $===Z&&($!==0||1/$===1/Z)||$!==$&&Z!==Z}function j$($,Z){if(u5($,Z))return!0;if(typeof $!=="object"||$===null||typeof Z!=="object"||Z===null)return!1;var Q=Object.keys($),Y=Object.keys(Z);if(Q.length!==Y.length)return!1;for(Y=0;Y<Q.length;Y++){var U=Q[Y];if(!Z4.call(Z,U)||!u5($[U],Z[U]))return!1}return!0}function JB($){for(;$&&$.firstChild;)$=$.firstChild;return $}function QB($,Z){var Q=JB($);$=0;for(var Y;Q;){if(Q.nodeType===3){if(Y=$+Q.textContent.length,$<=Z&&Y>=Z)return{node:Q,offset:Z-$};$=Y}$:{for(;Q;){if(Q.nextSibling){Q=Q.nextSibling;break $}Q=Q.parentNode}Q=void 0}Q=JB(Q)}}function GB($,Z){return $&&Z?$===Z?!0:$&&$.nodeType===3?!1:Z&&Z.nodeType===3?GB($,Z.parentNode):("contains"in $)?$.contains(Z):$.compareDocumentPosition?!!($.compareDocumentPosition(Z)&16):!1:!1}function qB($){$=$!=null&&$.ownerDocument!=null&&$.ownerDocument.defaultView!=null?$.ownerDocument.defaultView:window;for(var Z=ZQ($.document);Z instanceof $.HTMLIFrameElement;){try{var Q=typeof Z.contentWindow.location.href==="string"}catch(Y){Q=!1}if(Q)$=Z.contentWindow;else break;Z=ZQ($.document)}return Z}function Vq($){var Z=$&&$.nodeName&&$.nodeName.toLowerCase();return Z&&(Z==="input"&&($.type==="text"||$.type==="search"||$.type==="tel"||$.type==="url"||$.type==="password")||Z==="textarea"||$.contentEditable==="true")}function YB($,Z,Q){var Y=Q.window===Q?Q.document:Q.nodeType===9?Q:Q.ownerDocument;sX||j9==null||j9!==ZQ(Y)||(Y=j9,("selectionStart"in Y)&&Vq(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}),wZ&&j$(wZ,Y)||(wZ=Y,Y=iQ(rX,"onSelect"),0<Y.length&&(Z=new RG("onSelect","select",null,Z,Q),$.push({event:Z,listeners:Y}),Z.target=j9)))}function a2($,Z){var Q={};return Q[$.toLowerCase()]=Z.toLowerCase(),Q["Webkit"+$]="webkit"+Z,Q["Moz"+$]="moz"+Z,Q}function i2($){if(nX[$])return nX[$];if(!k9[$])return $;var Z=k9[$],Q;for(Q in Z)if(Z.hasOwnProperty(Q)&&Q in Uz)return nX[$]=Z[Q];return $}function t6($,Z){Wz.set($,Z),A5(Z,[$])}function VP($){for(var Z=LG,Q=0;Q<$.length;Q++){var Y=$[Q];if(typeof Y==="object"&&Y!==null)if(G5(Y)&&Y.length===2&&typeof Y[0]==="string"){if(Z!==LG&&Z!==eX)return iX;Z=eX}else return iX;else{if(typeof Y==="function"||typeof Y==="string"&&50<Y.length||Z!==LG&&Z!==tX)return iX;Z=tX}}return Z}function Aq($,Z,Q,Y){for(var U in $)Z4.call($,U)&&U[0]!=="_"&&H4(U,$[U],Z,Q,Y)}function H4($,Z,Q,Y,U){switch(typeof Z){case"object":if(Z===null){Z="null";break}else{if(Z.$$typeof===E4){var B=i(Z.type)||"…",z=Z.key;Z=Z.props;var w=Object.keys(Z),L=w.length;if(z==null&&L===0){Z="<"+B+" />";break}if(3>Y||L===1&&w[0]==="children"&&z==null){Z="<"+B+" … />";break}Q.push([U+" ".repeat(Y)+$,"<"+B]),z!==null&&H4("key",z,Q,Y+1,U),$=!1;for(var T in Z)T==="children"?Z.children!=null&&(!G5(Z.children)||0<Z.children.length)&&($=!0):Z4.call(Z,T)&&T[0]!=="_"&&H4(T,Z[T],Q,Y+1,U);Q.push(["",$?">…</"+B+">":"/>"]);return}if(B=Object.prototype.toString.call(Z),B=B.slice(8,B.length-1),B==="Array"){if(T=VP(Z),T===tX||T===LG){Z=JSON.stringify(Z);break}else if(T===eX){Q.push([U+" ".repeat(Y)+$,""]);for($=0;$<Z.length;$++)B=Z[$],H4(B[0],B[1],Q,Y+1,U);return}}if(B==="Promise"){if(Z.status==="fulfilled"){if(B=Q.length,H4($,Z.value,Q,Y,U),Q.length>B){Q=Q[B],Q[1]="Promise<"+(Q[1]||"Object")+">";return}}else if(Z.status==="rejected"&&(B=Q.length,H4($,Z.reason,Q,Y,U),Q.length>B)){Q=Q[B],Q[1]="Rejected Promise<"+Q[1]+">";return}Q.push([" ".repeat(Y)+$,"Promise"]);return}B==="Object"&&(T=Object.getPrototypeOf(Z))&&typeof T.constructor==="function"&&(B=T.constructor.name),Q.push([U+" ".repeat(Y)+$,B==="Object"?3>Y?"":"…":B]),3>Y&&Aq(Z,Q,Y+1,U);return}case"function":Z=Z.name===""?"() => {}":Z.name+"() {}";break;case"string":Z=Z===qO?"…":JSON.stringify(Z);break;case"undefined":Z="undefined";break;case"boolean":Z=Z?"true":"false";break;default:Z=String(Z)}Q.push([U+" ".repeat(Y)+$,Z])}function XB($,Z,Q,Y){var U=!0;for(z in $)z in Z||(Q.push([PG+" ".repeat(Y)+z,"…"]),U=!1);for(var B in Z)if(B in $){var z=$[B],w=Z[B];if(z!==w){if(Y===0&&B==="children")U=" ".repeat(Y)+B,Q.push([PG+U,"…"],[TG+U,"…"]);else{if(!(3<=Y)){if(typeof z==="object"&&typeof w==="object"&&z!==null&&w!==null&&z.$$typeof===w.$$typeof)if(w.$$typeof===E4){if(z.type===w.type&&z.key===w.key){z=i(w.type)||"…",U=" ".repeat(Y)+B,z="<"+z+" … />",Q.push([PG+U,z],[TG+U,z]),U=!1;continue}}else{var L=Object.prototype.toString.call(z),T=Object.prototype.toString.call(w);if(L===T&&(T==="[object Object]"||T==="[object Array]")){L=[wz+" ".repeat(Y)+B,T==="[object Array]"?"Array":""],Q.push(L),T=Q.length,XB(z,w,Q,Y+1)?T===Q.length&&(L[1]="Referentially unequal but deeply equal objects. Consider memoization."):U=!1;continue}}else if(typeof z==="function"&&typeof w==="function"&&z.name===w.name&&z.length===w.length&&(L=Function.prototype.toString.call(z),T=Function.prototype.toString.call(w),L===T)){z=w.name===""?"() => {}":w.name+"() {}",Q.push([wz+" ".repeat(Y)+B,z+" Referentially unequal function closure. Consider memoization."]);continue}}H4(B,z,Q,Y,PG),H4(B,w,Q,Y,TG)}U=!1}}else Q.push([TG+" ".repeat(Y)+B,"…"]),U=!1;return U}function B6($){o0=$&63?"Blocking":$&64?"Gesture":$&4194176?"Transition":$&62914560?"Suspense":$&2080374784?"Idle":"Other"}function F4($,Z,Q,Y){I1&&($2.start=Z,$2.end=Q,G8.color="warning",G8.tooltipText=Y,G8.properties=null,($=$._debugTask)?$.run(performance.measure.bind(performance,Y,$2)):performance.measure(Y,$2))}function XQ($,Z,Q){F4($,Z,Q,"Reconnect")}function NQ($,Z,Q,Y,U){var B=d($);if(B!==null&&I1){var{alternate:z,actualDuration:w}=$;if(z===null||z.child!==$.child)for(var L=$.child;L!==null;L=L.sibling)w-=L.actualDuration;Y=0.5>w?Y?"tertiary-light":"primary-light":10>w?Y?"tertiary":"primary":100>w?Y?"tertiary-dark":"primary-dark":"error";var T=$.memoizedProps;w=$._debugTask,T!==null&&z!==null&&z.memoizedProps!==T?(L=[YO],T=XB(z.memoizedProps,T,L,0),1<L.length&&(T&&!e8&&(z.lanes&U)===0&&100<$.actualDuration?(e8=!0,L[0]=XO,G8.color="warning",G8.tooltipText=Rz):(G8.color=Y,G8.tooltipText=B),G8.properties=L,$2.start=Z,$2.end=Q,w!=null?w.run(performance.measure.bind(performance,""+B,$2)):performance.measure(""+B,$2))):w!=null?w.run(console.timeStamp.bind(console,B,Z,Q,j6,void 0,Y)):console.timeStamp(B,Z,Q,j6,void 0,Y)}}function Eq($,Z,Q,Y){if(I1){var U=d($);if(U!==null){for(var B=null,z=[],w=0;w<Y.length;w++){var L=Y[w];B==null&&L.source!==null&&(B=L.source._debugTask),L=L.value,z.push(["Error",typeof L==="object"&&L!==null&&typeof L.message==="string"?String(L.message):String(L)])}$.key!==null&&H4("key",$.key,z,0,""),$.memoizedProps!==null&&Aq($.memoizedProps,z,0,""),B==null&&(B=$._debugTask),$={start:Z,end:Q,detail:{devtools:{color:"error",track:j6,tooltipText:$.tag===13?"Hydration failed":"Error boundary caught an error",properties:z}}},B?B.run(performance.measure.bind(performance,""+U,$)):performance.measure(""+U,$)}}}function W4($,Z,Q,Y,U){if(U!==null){if(I1){var B=d($);if(B!==null){Y=[];for(var z=0;z<U.length;z++){var w=U[z].value;Y.push(["Error",typeof w==="object"&&w!==null&&typeof w.message==="string"?String(w.message):String(w)])}$.key!==null&&H4("key",$.key,Y,0,""),$.memoizedProps!==null&&Aq($.memoizedProps,Y,0,""),Z={start:Z,end:Q,detail:{devtools:{color:"error",track:j6,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&&I1&&(U=1>Y?"secondary-light":100>Y?"secondary":500>Y?"secondary-dark":"error",($=$._debugTask)?$.run(console.timeStamp.bind(console,B,Z,Q,j6,void 0,U)):console.timeStamp(B,Z,Q,j6,void 0,U))}function AP($,Z,Q,Y){if(I1&&!(Z<=$)){var U=(Q&738197653)===Q?"tertiary-dark":"primary-dark";Q=(Q&536870912)===Q?"Prepared":(Q&201326741)===Q?"Hydrated":"Render",Y?Y.run(console.timeStamp.bind(console,Q,$,Z,o0,r0,U)):console.timeStamp(Q,$,Z,o0,r0,U)}}function NB($,Z,Q,Y){!I1||Z<=$||(Q=(Q&738197653)===Q?"tertiary-dark":"primary-dark",Y?Y.run(console.timeStamp.bind(console,"Prewarm",$,Z,o0,r0,Q)):console.timeStamp("Prewarm",$,Z,o0,r0,Q))}function UB($,Z,Q,Y){!I1||Z<=$||(Q=(Q&738197653)===Q?"tertiary-dark":"primary-dark",Y?Y.run(console.timeStamp.bind(console,"Suspended",$,Z,o0,r0,Q)):console.timeStamp("Suspended",$,Z,o0,r0,Q))}function EP($,Z,Q,Y,U,B){if(I1&&!(Z<=$)){Q=[];for(var z=0;z<Y.length;z++){var w=Y[z].value;Q.push(["Recoverable Error",typeof w==="object"&&w!==null&&typeof w.message==="string"?String(w.message):String(w)])}$={start:$,end:Z,detail:{devtools:{color:"primary-dark",track:o0,trackGroup:r0,tooltipText:U?"Hydration Failed":"Recovered after Error",properties:Q}}},B?B.run(performance.measure.bind(performance,"Recovered",$)):performance.measure("Recovered",$)}}function Sq($,Z,Q,Y){!I1||Z<=$||(Y?Y.run(console.timeStamp.bind(console,"Errored",$,Z,o0,r0,"error")):console.timeStamp("Errored",$,Z,o0,r0,"error"))}function SP($,Z,Q,Y){!I1||Z<=$||(Y?Y.run(console.timeStamp.bind(console,Q,$,Z,o0,r0,"secondary-light")):console.timeStamp(Q,$,Z,o0,r0,"secondary-light"))}function KB($,Z,Q,Y,U){if(I1&&!(Z<=$)){for(var B=[],z=0;z<Q.length;z++){var w=Q[z].value;B.push(["Error",typeof w==="object"&&w!==null&&typeof w.message==="string"?String(w.message):String(w)])}$={start:$,end:Z,detail:{devtools:{color:"error",track:o0,trackGroup:r0,tooltipText:Y?"Remaining Effects Errored":"Commit Errored",properties:B}}},U?U.run(performance.measure.bind(performance,"Errored",$)):performance.measure("Errored",$)}}function k$($,Z,Q){!I1||Z<=$||(Q?Q.run(console.timeStamp.bind(console,"Animating",$,Z,o0,r0,"secondary-dark")):console.timeStamp("Animating",$,Z,o0,r0,"secondary-dark"))}function UQ(){for(var $=v9,Z=$N=v9=0;Z<$;){var Q=k6[Z];k6[Z++]=null;var Y=k6[Z];k6[Z++]=null;var U=k6[Z];k6[Z++]=null;var B=k6[Z];if(k6[Z++]=null,Y!==null&&U!==null){var z=Y.pending;z===null?U.next=U:(U.next=z.next,z.next=U),Y.pending=U}B!==0&&BB(Q,U,B)}}function KQ($,Z,Q,Y){k6[v9++]=$,k6[v9++]=Z,k6[v9++]=Q,k6[v9++]=Y,$N|=Y,$.lanes|=Y,$=$.alternate,$!==null&&($.lanes|=Y)}function Dq($,Z,Q,Y){return KQ($,Z,Q,Y),BQ($)}function E5($,Z){return KQ($,null,null,Z),BQ($)}function BB($,Z,Q){$.lanes|=Q;var Y=$.alternate;Y!==null&&(Y.lanes|=Q);for(var U=!1,B=$.return;B!==null;)B.childLanes|=Q,Y=B.alternate,Y!==null&&(Y.childLanes|=Q),B.tag===22&&($=B.stateNode,$===null||$._visibility&RZ||(U=!0)),$=B,B=B.return;return $.tag===3?(B=$.stateNode,U&&Z!==null&&(U=31-y5(Q),$=B.hiddenUpdates,Y=$[U],Y===null?$[U]=[Z]:Y.push(Z),Z.lane=Q|536870912),B):null}function BQ($){if(lZ>TO)throw V7=lZ=0,rZ=vN=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.");V7>CO&&(V7=0,rZ=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&&AF($);for(var Z=$,Q=Z.return;Q!==null;)Z.alternate===null&&(Z.flags&4098)!==0&&AF($),Z=Q,Q=Z.return;return Z.tag===3?Z.stateNode:null}function t2($){if(v6===null)return $;var Z=v6($);return Z===void 0?$:Z.current}function jq($){if(v6===null)return $;var Z=v6($);return Z===void 0?$!==null&&$!==void 0&&typeof $.render==="function"&&(Z=t2($.render),$.render!==Z)?(Z={$$typeof:YZ,render:Z},$.displayName!==void 0&&(Z.displayName=$.displayName),Z):$:Z.current}function HB($,Z){if(v6===null)return!1;var Q=$.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===R6&&(Y=!0);break;case 11:U===YZ?Y=!0:U===R6&&(Y=!0);break;case 14:case 15:U===NG?Y=!0:U===R6&&(Y=!0);break;default:return!1}return Y&&($=v6(Q),$!==void 0&&$===v6(Z))?!0:!1}function FB($){v6!==null&&typeof WeakSet==="function"&&(b9===null&&(b9=new WeakSet),b9.add($))}function WB($,Z,Q){do{var Y=$,U=Y.alternate,B=Y.child,z=Y.sibling,w=Y.tag;Y=Y.type;var L=null;switch(w){case 0:case 15:case 1:L=Y;break;case 11:L=Y.render}if(v6===null)throw Error("Expected resolveFamily to be set during hot reload.");var T=!1;if(Y=!1,L!==null&&(L=v6(L),L!==void 0&&(Q.has(L)?Y=!0:Z.has(L)&&(w===1?Y=!0:T=!0))),b9!==null&&(b9.has($)||U!==null&&b9.has(U))&&(Y=!0),Y&&($._debugNeedsRemount=!0),Y||T)U=E5($,2),U!==null&&y1(U,$,2);if(B===null||Y||WB(B,Z,Q),z===null)break;$=z}while(1)}function DP($,Z,Q,Y){this.tag=$,this.key=Q,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,_z||typeof Object.preventExtensions!=="function"||Object.preventExtensions(this)}function kq($){return $=$.prototype,!(!$||!$.isReactComponent)}function a4($,Z){var Q=$.alternate;switch(Q===null?(Q=P($.tag,Z,$.key,$.mode),Q.elementType=$.elementType,Q.type=$.type,Q.stateNode=$.stateNode,Q._debugOwner=$._debugOwner,Q._debugStack=$._debugStack,Q._debugTask=$._debugTask,Q._debugHookTypes=$._debugHookTypes,Q.alternate=$,$.alternate=Q):(Q.pendingProps=Z,Q.type=$.type,Q.flags=0,Q.subtreeFlags=0,Q.deletions=null,Q.actualDuration=-0,Q.actualStartTime=-1.1),Q.flags=$.flags&65011712,Q.childLanes=$.childLanes,Q.lanes=$.lanes,Q.child=$.child,Q.memoizedProps=$.memoizedProps,Q.memoizedState=$.memoizedState,Q.updateQueue=$.updateQueue,Z=$.dependencies,Q.dependencies=Z===null?null:{lanes:Z.lanes,firstContext:Z.firstContext,_debugThenableState:Z._debugThenableState},Q.sibling=$.sibling,Q.index=$.index,Q.ref=$.ref,Q.refCleanup=$.refCleanup,Q.selfBaseDuration=$.selfBaseDuration,Q.treeBaseDuration=$.treeBaseDuration,Q._debugInfo=$._debugInfo,Q._debugNeedsRemount=$._debugNeedsRemount,Q.tag){case 0:case 15:Q.type=t2($.type);break;case 1:Q.type=t2($.type);break;case 11:Q.type=jq($.type)}return Q}function zB($,Z){$.flags&=65011714;var Q=$.alternate;return Q===null?($.childLanes=0,$.lanes=Z,$.child=null,$.subtreeFlags=0,$.memoizedProps=null,$.memoizedState=null,$.updateQueue=null,$.dependencies=null,$.stateNode=null,$.selfBaseDuration=0,$.treeBaseDuration=0):($.childLanes=Q.childLanes,$.lanes=Q.lanes,$.child=Q.child,$.subtreeFlags=0,$.deletions=null,$.memoizedProps=Q.memoizedProps,$.memoizedState=Q.memoizedState,$.updateQueue=Q.updateQueue,$.type=Q.type,Z=Q.dependencies,$.dependencies=Z===null?null:{lanes:Z.lanes,firstContext:Z.firstContext,_debugThenableState:Z._debugThenableState},$.selfBaseDuration=Q.selfBaseDuration,$.treeBaseDuration=Q.treeBaseDuration),$}function vq($,Z,Q,Y,U,B){var z=0,w=$;if(typeof $==="function")kq($)&&(z=1),w=t2(w);else if(typeof $==="string")z=F0(),z=uT($,Q,z)?26:$==="html"||$==="head"||$==="body"?27:5;else $:switch($){case IX:return Z=P(31,Q,Z,U),Z.elementType=IX,Z.lanes=B,Z;case T9:return e2(Q.children,U,B,Z);case XG:z=8,U|=D5,U|=Q4;break;case PX:return $=Q,Y=U,typeof $.id!=="string"&&console.error('Profiler must specify an "id" of type `string` as a prop. Received the type `%s` instead.',typeof $.id),Z=P(12,$,Z,Y|g0),Z.elementType=PX,Z.lanes=B,Z.stateNode={effectDuration:0,passiveEffectDuration:0},Z;case CX:return Z=P(13,Q,Z,U),Z.elementType=CX,Z.lanes=B,Z;case OX:return Z=P(19,Q,Z,U),Z.elementType=OX,Z.lanes=B,Z;default:if(typeof $==="object"&&$!==null)switch($.$$typeof){case S4:z=10;break $;case TX:z=9;break $;case YZ:z=11,w=jq(w);break $;case NG:z=14;break $;case R6:z=16,w=null;break $}if(w="",$===void 0||typeof $==="object"&&$!==null&&Object.keys($).length===0)w+=" 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?Q="null":G5($)?Q="array":$!==void 0&&$.$$typeof===E4?(Q="<"+(i($.type)||"Unknown")+" />",w=" Did you accidentally export a JSX literal instead of a component?"):Q=typeof $,(z=Y?X0(Y):null)&&(w+=`
|
|
72
72
|
|
|
73
|
-
Check the render method of \``+z+"`."),z=29,Q=Error("Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) but got: "+(Q+"."+w)),w=null}return Z=P(z,Q,Z,U),Z.elementType=$,Z.type=w,Z.lanes=B,Z._debugOwner=Y,Z}function HQ($,Z,Q){return Z=vq($.type,$.key,$.props,$._owner,Z,Q),Z._debugOwner=$._owner,Z._debugStack=$._debugStack,Z._debugTask=$._debugTask,Z}function
|
|
73
|
+
Check the render method of \``+z+"`."),z=29,Q=Error("Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) but got: "+(Q+"."+w)),w=null}return Z=P(z,Q,Z,U),Z.elementType=$,Z.type=w,Z.lanes=B,Z._debugOwner=Y,Z}function HQ($,Z,Q){return Z=vq($.type,$.key,$.props,$._owner,Z,Q),Z._debugOwner=$._owner,Z._debugStack=$._debugStack,Z._debugTask=$._debugTask,Z}function e2($,Z,Q,Y){return $=P(7,$,Y,Z),$.lanes=Q,$}function bq($,Z,Q){return $=P(6,$,null,Z),$.lanes=Q,$}function MB($){var Z=P(18,null,null,V0);return Z.stateNode=$,Z}function fq($,Z,Q){return Z=P(4,$.children!==null?$.children:[],$.key,Z),Z.lanes=Q,Z.stateNode={containerInfo:$.containerInfo,pendingChildren:null,implementation:$.implementation},Z}function H6($,Z){if(typeof $==="object"&&$!==null){var Q=ZN.get($);if(Q!==void 0)return Q;return Z={value:$,source:Z,stack:o1(Z)},ZN.set($,Z),Z}return{value:$,source:Z,stack:o1(Z)}}function i4($,Z){y8(),f9[y9++]=_Z,f9[y9++]=CG,CG=$,_Z=Z}function wB($,Z,Q){y8(),b6[f6++]=Y8,b6[f6++]=X8,b6[f6++]=H7,H7=$;var Y=Y8;$=X8;var U=32-y5(Y)-1;Y&=~(1<<U),Q+=1;var B=32-y5(Z)+U;if(30<B){var z=U-U%5;B=(Y&(1<<z)-1).toString(32),Y>>=z,U-=z,Y8=1<<32-y5(Z)+U|Q<<U|Y,X8=B+$}else Y8=1<<B|Q<<U|Y,X8=$}function yq($){y8(),$.return!==null&&(i4($,1),wB($,1,0))}function gq($){for(;$===CG;)CG=f9[--y9],f9[y9]=null,_Z=f9[--y9],f9[y9]=null;for(;$===H7;)H7=b6[--f6],b6[f6]=null,X8=b6[--f6],b6[f6]=null,Y8=b6[--f6],b6[f6]=null}function RB(){return y8(),H7!==null?{id:Y8,overflow:X8}:null}function _B($,Z){y8(),b6[f6++]=Y8,b6[f6++]=X8,b6[f6++]=H7,Y8=Z.id,X8=Z.overflow,H7=$}function y8(){i0||console.error("Expected to be hydrating. This is a bug in React. Please file an issue.")}function $7($,Z){if($.return===null){if(P6===null)P6={fiber:$,children:[],serverProps:void 0,serverTail:[],distanceFromLeaf:Z};else{if(P6.fiber!==$)throw Error("Saw multiple hydration diff roots in a pass. This is a bug in React.");P6.distanceFromLeaf>Z&&(P6.distanceFromLeaf=Z)}return P6}var Q=$7($.return,Z+1).children;if(0<Q.length&&Q[Q.length-1].fiber===$)return Q=Q[Q.length-1],Q.distanceFromLeaf>Z&&(Q.distanceFromLeaf=Z),Q;return Z={fiber:$,children:[],serverProps:void 0,serverTail:[],distanceFromLeaf:Z},Q.push(Z),Z}function LB(){i0&&console.error("We should not be hydrating here. This is a bug in React. Please file a bug.")}function FQ($,Z){f4||($=$7($,0),$.serverProps=null,Z!==null&&(Z=tF(Z),$.serverTail.push(Z)))}function g8($){var Z=1<arguments.length&&arguments[1]!==void 0?arguments[1]:!1,Q="",Y=P6;throw Y!==null&&(P6=null,Q=Tq(Y)),v$(H6(Error("Hydration failed because the server rendered "+(Z?"text":"HTML")+` didn't match the client. As a result this tree will be regenerated on the client. This can happen if a SSR-ed Client Component used:
|
|
74
74
|
|
|
75
75
|
- A server/client branch \`if (typeof window !== 'undefined')\`.
|
|
76
76
|
- Variable input such as \`Date.now()\` or \`Math.random()\` which changes each time it's called.
|
|
@@ -80,7 +80,7 @@ Check the render method of \``+z+"`."),z=29,Q=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`+Q),$)),JN}function PB($){var{stateNode:Z,type:Q,memoizedProps:Y}=$;switch(Z[_5]=$,Z[g5]=Y,QX(Q,Y),Q){case"dialog":t0("cancel",Z),t0("close",Z);break;case"iframe":case"object":case"embed":t0("load",Z);break;case"video":case"audio":for(Q=0;Q<
|
|
83
|
+
https://react.dev/link/hydration-mismatch`+Q),$)),JN}function PB($){var{stateNode:Z,type:Q,memoizedProps:Y}=$;switch(Z[_5]=$,Z[g5]=Y,QX(Q,Y),Q){case"dialog":t0("cancel",Z),t0("close",Z);break;case"iframe":case"object":case"embed":t0("load",Z);break;case"video":case"audio":for(Q=0;Q<sZ.length;Q++)t0(sZ[Q],Z);break;case"source":t0("error",Z);break;case"img":case"image":case"link":t0("error",Z),t0("load",Z);break;case"details":t0("toggle",Z);break;case"input":f8("input",Y),t0("invalid",Z),AK(Z,Y),EK(Z,Y.value,Y.defaultValue,Y.checked,Y.defaultChecked,Y.type,Y.name,!0);break;case"option":SK(Z,Y);break;case"select":f8("select",Y),t0("invalid",Z),jK(Z,Y);break;case"textarea":f8("textarea",Y),t0("invalid",Z),kK(Z,Y),bK(Z,Y.value,Y.defaultValue,Y.children)}Q=Y.children,typeof Q!=="string"&&typeof Q!=="number"&&typeof Q!=="bigint"||Z.textContent===""+Q||Y.suppressHydrationWarning===!0||hF(Z.textContent,Q)?(Y.popover!=null&&(t0("beforetoggle",Z),t0("toggle",Z)),Y.onScroll!=null&&t0("scroll",Z),Y.onScrollEnd!=null&&t0("scrollend",Z),Y.onClick!=null&&(Z.onclick=o4),Z=!0):Z=!1,Z||g8($,!0)}function TB($){for(L5=$.return;L5;)switch(L5.tag){case 5:case 31:case 13:y6=!1;return;case 27:case 3:y6=!0;return;default:L5=L5.return}}function Y9($){if($!==L5)return!1;if(!i0)return TB($),i0=!0,!1;var Z=$.tag,Q;if(Q=Z!==3&&Z!==27){if(Q=Z===5)Q=$.type,Q=!(Q!=="form"&&Q!=="button")||NX($.type,$.memoizedProps);Q=!Q}if(Q&&V1){for(Q=V1;Q;){var Y=$7($,0),U=tF(Q);Y.serverTail.push(U),Q=U.type==="Suspense"?HX(Q):w6(Q.nextSibling)}g8($)}if(TB($),Z===13){if($=$.memoizedState,$=$!==null?$.dehydrated:null,!$)throw Error("Expected to have a hydrated suspense instance. This error is likely caused by a bug in React. Please file an issue.");V1=HX($)}else if(Z===31){if($=$.memoizedState,$=$!==null?$.dehydrated:null,!$)throw Error("Expected to have a hydrated suspense instance. This error is likely caused by a bug in React. Please file an issue.");V1=HX($)}else Z===27?(Z=V1,s8($.type)?($=lN,lN=null,V1=$):V1=Z):V1=L5?w6($.stateNode.nextSibling):null;return!0}function Z7(){V1=L5=null,f4=i0=!1}function hq(){var $=J2;return $!==null&&(p5===null?p5=$:p5.push.apply(p5,$),J2=null),$}function v$($){J2===null?J2=[$]:J2.push($)}function uq(){var $=P6;if($!==null){P6=null;for(var Z=Tq($);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,33 +90,33 @@ https://react.dev/link/hydration-mismatch`+Q),$)),JN}function PB($){var{stateNod
|
|
|
90
90
|
|
|
91
91
|
It can also happen if the client has a browser extension installed which messes with the HTML before React loaded.
|
|
92
92
|
|
|
93
|
-
%s%s`,"https://react.dev/link/hydration-mismatch",Z)})}}function WQ(){
|
|
93
|
+
%s%s`,"https://react.dev/link/hydration-mismatch",Z)})}}function WQ(){g9=OG=null,h9=!1}function h8($,Z,Q){O0(QN,Z._currentValue,$),Z._currentValue=Q,O0(GN,Z._currentRenderer,$),Z._currentRenderer!==void 0&&Z._currentRenderer!==null&&Z._currentRenderer!==Pz&&console.error("Detected multiple renderers concurrently rendering the same context provider. This is currently unsupported."),Z._currentRenderer=Pz}function t4($,Z){$._currentValue=QN.current;var Q=GN.current;P0(GN,Z),$._currentRenderer=Q,P0(QN,Z)}function xq($,Z,Q){for(;$!==null;){var Y=$.alternate;if(($.childLanes&Z)!==Z?($.childLanes|=Z,Y!==null&&(Y.childLanes|=Z)):Y!==null&&(Y.childLanes&Z)!==Z&&(Y.childLanes|=Z),$===Q)break;$=$.return}$!==Q&&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 mq($,Z,Q,Y){var U=$.child;U!==null&&(U.return=$);for(;U!==null;){var B=U.dependencies;if(B!==null){var z=U.child;B=B.firstContext;$:for(;B!==null;){var w=B;B=U;for(var L=0;L<Z.length;L++)if(w.context===Z[L]){B.lanes|=Q,w=B.alternate,w!==null&&(w.lanes|=Q),xq(B.return,Q,$),Y||(z=null);break $}B=w.next}}else if(U.tag===18){if(z=U.return,z===null)throw Error("We just came from a parent so we must have had a parent. This is a bug in React.");z.lanes|=Q,B=z.alternate,B!==null&&(B.lanes|=Q),xq(z,Q,$),z=null}else z=U.child;if(z!==null)z.return=U;else for(z=U;z!==null;){if(z===$){z=null;break}if(U=z.sibling,U!==null){U.return=z.return,z=U;break}z=z.return}U=z}}function X9($,Z,Q,Y){$=null;for(var U=Z,B=!1;U!==null;){if(!B){if((U.flags&524288)!==0)B=!0;else if((U.flags&262144)!==0)break}if(U.tag===10){var z=U.alternate;if(z===null)throw Error("Should have a current fiber. This is a bug in React.");if(z=z.memoizedProps,z!==null){var w=U.type;u5(U.pendingProps.value,z.value)||($!==null?$.push(w):$=[w])}}else if(U===UG.current){if(z=U.alternate,z===null)throw Error("Should have a current fiber. This is a bug in React.");z.memoizedState.memoizedState!==U.memoizedState.memoizedState&&($!==null?$.push(tZ):$=[tZ])}U=U.return}$!==null&&mq(Z,$,Q,Y),Z.flags|=262144}function zQ($){for($=$.firstContext;$!==null;){if(!u5($.context._currentValue,$.memoizedValue))return!0;$=$.next}return!1}function J7($){OG=$,g9=null,$=$.dependencies,$!==null&&($.firstContext=null)}function D1($){return h9&&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()."),CB(OG,$)}function MQ($,Z){return OG===null&&J7($),CB($,Z)}function CB($,Z){var Q=Z._currentValue;if(Z={context:Z,memoizedValue:Q,next:null},g9===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().");g9=Z,$.dependencies={lanes:0,firstContext:Z,_debugThenableState:null},$.flags|=524288}else g9=g9.next=Z;return Q}function dq(){return{controller:new KO,data:new Map,refCount:0}}function Q7($){$.controller.signal.aborted&&console.warn("A cache instance was retained after it was already freed. This likely indicates a bug in React."),$.refCount++}function b$($){$.refCount--,0>$.refCount&&console.warn("A cache instance was released after it was already freed. This likely indicates a bug in React."),$.refCount===0&&BO(HO,function(){$.controller.abort()})}function z4($,Z,Q){if(($&127)!==0)0>y4&&(y4=i1(),PZ=IG(Z),qN=Z,Q!=null&&(YN=d(Q)),(Z1&(Y5|O6))!==W5&&(g1=!0,q2=LZ),$=ZZ(),Z=$Z(),$!==u9||Z!==TZ?u9=-1.1:Z!==null&&(q2=LZ),W7=$,TZ=Z);else if(($&4194048)!==0&&0>g6&&(g6=i1(),CZ=IG(Z),Tz=Z,Q!=null&&(Cz=d(Q)),0>K8)){if($=ZZ(),Z=$Z(),$!==X2||Z!==z7)X2=-1.1;Y2=$,z7=Z}}function jP($){if(0>y4){y4=i1(),PZ=$._debugTask!=null?$._debugTask:null,(Z1&(Y5|O6))!==W5&&(q2=LZ);var Z=ZZ(),Q=$Z();Z!==u9||Q!==TZ?u9=-1.1:Q!==null&&(q2=LZ),W7=Z,TZ=Q}if(0>g6&&(g6=i1(),CZ=$._debugTask!=null?$._debugTask:null,0>K8)){if($=ZZ(),Z=$Z(),$!==X2||Z!==z7)X2=-1.1;Y2=$,z7=Z}}function e4(){var $=F7;return F7=0,$}function wQ($){var Z=F7;return F7=$,Z}function f$($){var Z=F7;return F7+=$,Z}function RQ(){T0=L0=-1.1}function F6(){var $=L0;return L0=-1.1,$}function W6($){0<=$&&(L0=$)}function M4(){var $=k1;return k1=-0,$}function w4($){0<=$&&(k1=$)}function R4(){var $=j1;return j1=null,$}function _4(){var $=g1;return g1=!1,$}function pq($){x5=i1(),0>$.actualStartTime&&($.actualStartTime=x5)}function cq($){if(0<=x5){var Z=i1()-x5;$.actualDuration+=Z,$.selfBaseDuration=Z,x5=-1}}function OB($){if(0<=x5){var Z=i1()-x5;$.actualDuration+=Z,x5=-1}}function L4(){if(0<=x5){var $=i1(),Z=$-x5;x5=-1,F7+=Z,k1+=Z,T0=$}}function IB($){j1===null&&(j1=[]),j1.push($),U8===null&&(U8=[]),U8.push($)}function P4(){x5=i1(),0>L0&&(L0=x5)}function y$($){for(var Z=$.child;Z;)$.actualDuration+=Z.actualDuration,Z=Z.sibling}function kP($,Z){if(IZ===null){var Q=IZ=[];NN=0,M7=eY(),x9={status:"pending",value:void 0,then:function(Y){Q.push(Y)}}}return NN++,Z.then(VB,VB),Z}function VB(){if(--NN===0&&(-1<g6||(K8=-1.1),IZ!==null)){x9!==null&&(x9.status="fulfilled");var $=IZ;IZ=null,M7=0,x9=null;for(var Z=0;Z<$.length;Z++)(0,$[Z])()}}function vP($,Z){var Q=[],Y={status:"pending",value:null,reason:null,then:function(U){Q.push(U)}};return $.then(function(){Y.status="fulfilled",Y.value=Z;for(var U=0;U<Q.length;U++)(0,Q[U])(Z)},function(U){Y.status="rejected",Y.reason=U;for(U=0;U<Q.length;U++)(0,Q[U])(void 0)}),Y}function lq(){var $=w7.current;return $!==null?$:_1.pooledCache}function _Q($,Z){Z===null?O0(w7,w7.current,$):O0(w7,Z.pool,$)}function AB(){var $=lq();return $===null?null:{parent:a1._currentValue,pool:$}}function EB(){return{didWarnAboutUncachedPromise:!1,thenables:[]}}function SB($){return $=$.status,$==="fulfilled"||$==="rejected"}function DB($,Z,Q){x.actQueue!==null&&(x.didUsePromise=!0);var Y=$.thenables;if(Q=Y[Q],Q===void 0?Y.push(Z):Q!==Z&&($.didWarnAboutUncachedPromise||($.didWarnAboutUncachedPromise=!0,console.error("A component was suspended by an uncached promise. Creating promises inside a Client Component or hook is not yet supported, except via a Suspense-compatible library or framework.")),Z.then(o4,o4),Z=Q),Z._debugInfo===void 0){$=performance.now(),Y=Z.displayName;var U={name:typeof Y==="string"?Y:"Promise",start:$,end:$,value:Z};Z._debugInfo=[{awaited:U}],Z.status!=="fulfilled"&&Z.status!=="rejected"&&($=function(){U.end=performance.now()},Z.then($,$))}switch(Z.status){case"fulfilled":return Z.value;case"rejected":throw $=Z.reason,kB($),$;default:if(typeof Z.status==="string")Z.then(o4,o4);else{if($=_1,$!==null&&100<$.shellSuspendCounter)throw Error("An unknown Component is an async Client Component. Only Server Components can be async at the moment. This error is often caused by accidentally adding `'use client'` to a module that was originally written for the server.");$=Z,$.status="pending",$.then(function(B){if(Z.status==="pending"){var z=Z;z.status="fulfilled",z.value=B}},function(B){if(Z.status==="pending"){var z=Z;z.status="rejected",z.reason=B}})}switch(Z.status){case"fulfilled":return Z.value;case"rejected":throw $=Z.reason,kB($),$}throw _7=Z,kZ=!0,m9}}function u8($){try{return MO($)}catch(Z){if(Z!==null&&typeof Z==="object"&&typeof Z.then==="function")throw _7=Z,kZ=!0,m9;throw Z}}function jB(){if(_7===null)throw Error("Expected a suspended thenable. This is a bug in React. Please file an issue.");var $=_7;return _7=null,kZ=!1,$}function kB($){if($===m9||$===vG)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 M5($){var Z=h0;return $!=null&&(h0=Z===null?$:Z.concat($)),Z}function rq(){var $=h0;if($!=null){for(var Z=$.length-1;0<=Z;Z--)if($[Z].name!=null){var Q=$[Z].debugTask;if(Q!=null)return Q}}return null}function LQ($,Z,Q){for(var Y=Object.keys($.props),U=0;U<Y.length;U++){var B=Y[U];if(B!=="children"&&B!=="key"){Z===null&&(Z=HQ($,Q.mode,0),Z._debugInfo=h0,Z.return=Q),q0(Z,function(z){console.error("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",z)},B);break}}}function PQ($){var Z=vZ;return vZ+=1,d9===null&&(d9=EB()),DB(d9,$,Z)}function g$($,Z){Z=Z.props.ref,$.ref=Z!==void 0?Z:null}function vB($,Z){if(Z.$$typeof===oT)throw Error(`A React Element from an older version of React was rendered. This is not supported. It can happen if:
|
|
94
94
|
- Multiple copies of the "react" package is used.
|
|
95
95
|
- A library pre-bundled an old copy of "react" or "react/jsx-runtime".
|
|
96
96
|
- A compiler tries to "inline" JSX instead of using the runtime.`);throw $=Object.prototype.toString.call(Z),Error("Objects are not valid as a React child (found: "+($==="[object Object]"?"object with keys {"+Object.keys(Z).join(", ")+"}":$)+"). If you meant to render a collection of children, use an array instead.")}function TQ($,Z){var Q=rq();Q!==null?Q.run(vB.bind(null,$,Z)):vB($,Z)}function bB($,Z){var Q=d($)||"Component";pz[Q]||(pz[Q]=!0,Z=Z.displayName||Z.name||"Component",$.tag===3?console.error(`Functions are not valid as a React child. This may happen if you return %s instead of <%s /> from render. Or maybe you meant to call this function rather than return it.
|
|
97
97
|
root.render(%s)`,Z,Z,Z):console.error(`Functions are not valid as a React child. This may happen if you return %s instead of <%s /> from render. Or maybe you meant to call this function rather than return it.
|
|
98
98
|
<%s>{%s}</%s>`,Z,Z,Q,Z,Q))}function CQ($,Z){var Q=rq();Q!==null?Q.run(bB.bind(null,$,Z)):bB($,Z)}function fB($,Z){var Q=d($)||"Component";cz[Q]||(cz[Q]=!0,Z=String(Z),$.tag===3?console.error(`Symbols are not valid as a React child.
|
|
99
99
|
root.render(%s)`,Z):console.error(`Symbols are not valid as a React child.
|
|
100
|
-
<%s>%s</%s>`,Q,Z,Q))}function OQ($,Z){var Q=rq();Q!==null?Q.run(fB.bind(null,$,Z)):fB($,Z)}function yB($){function Z(A,D){if($){var v=A.deletions;v===null?(A.deletions=[D],A.flags|=16):v.push(D)}}function Q(A,D){if(!$)return null;for(;D!==null;)Z(A,D),D=D.sibling;return null}function Y(A){for(var D=new Map;A!==null;)A.key!==null?D.set(A.key,A):D.set(A.index,A),A=A.sibling;return D}function U(A,D){return A=a4(A,D),A.index=0,A.sibling=null,A}function B(A,D,v){if(A.index=v,!$)return A.flags|=1048576,D;if(v=A.alternate,v!==null)return v=v.index,v<D?(A.flags|=67108866,D):v;return A.flags|=67108866,D}function z(A){return $&&A.alternate===null&&(A.flags|=67108866),A}function w(A,D,v,m){if(D===null||D.tag!==6)return D=bq(v,A.mode,m),D.return=A,D._debugOwner=A,D._debugTask=A._debugTask,D._debugInfo=h0,D;return D=U(D,v),D.return=A,D._debugInfo=h0,D}function L(A,D,v,m){var J0=v.type;if(J0===P9)return D=b(A,D,v.props.children,m,v.key),LQ(v,D,A),D;if(D!==null&&(D.elementType===J0||HB(D,v)||typeof J0==="object"&&J0!==null&&J0.$$typeof===R6&&u8(J0)===D.type))return D=U(D,v.props),y$(D,v),D.return=A,D._debugOwner=v._owner,D._debugInfo=h0,D;return D=HQ(v,A.mode,m),y$(D,v),D.return=A,D._debugInfo=h0,D}function T(A,D,v,m){if(D===null||D.tag!==4||D.stateNode.containerInfo!==v.containerInfo||D.stateNode.implementation!==v.implementation)return D=fq(v,A.mode,m),D.return=A,D._debugInfo=h0,D;return D=U(D,v.children||[]),D.return=A,D._debugInfo=h0,D}function b(A,D,v,m,J0){if(D===null||D.tag!==7)return D=t2(v,A.mode,m,J0),D.return=A,D._debugOwner=A,D._debugTask=A._debugTask,D._debugInfo=h0,D;return D=U(D,v),D.return=A,D._debugInfo=h0,D}function f(A,D,v){if(typeof D==="string"&&D!==""||typeof D==="number"||typeof D==="bigint")return D=bq(""+D,A.mode,v),D.return=A,D._debugOwner=A,D._debugTask=A._debugTask,D._debugInfo=h0,D;if(typeof D==="object"&&D!==null){switch(D.$$typeof){case E4:return v=HQ(D,A.mode,v),y$(v,D),v.return=A,A=M5(D._debugInfo),v._debugInfo=h0,h0=A,v;case L9:return D=fq(D,A.mode,v),D.return=A,D._debugInfo=h0,D;case R6:var m=M5(D._debugInfo);return D=u8(D),A=f(A,D,v),h0=m,A}if(G5(D)||t(D))return v=t2(D,A.mode,v,null),v.return=A,v._debugOwner=A,v._debugTask=A._debugTask,A=M5(D._debugInfo),v._debugInfo=h0,h0=A,v;if(typeof D.then==="function")return m=M5(D._debugInfo),A=f(A,PQ(D),v),h0=m,A;if(D.$$typeof===S4)return f(A,MQ(A,D),v);TQ(A,D)}return typeof D==="function"&&CQ(A,D),typeof D==="symbol"&&OQ(A,D),null}function S(A,D,v,m){var J0=D!==null?D.key:null;if(typeof v==="string"&&v!==""||typeof v==="number"||typeof v==="bigint")return J0!==null?null:w(A,D,""+v,m);if(typeof v==="object"&&v!==null){switch(v.$$typeof){case E4:return v.key===J0?(J0=M5(v._debugInfo),A=L(A,D,v,m),h0=J0,A):null;case L9:return v.key===J0?T(A,D,v,m):null;case R6:return J0=M5(v._debugInfo),v=u8(v),A=S(A,D,v,m),h0=J0,A}if(G5(v)||t(v)){if(J0!==null)return null;return J0=M5(v._debugInfo),A=b(A,D,v,m,null),h0=J0,A}if(typeof v.then==="function")return J0=M5(v._debugInfo),A=S(A,D,PQ(v),m),h0=J0,A;if(v.$$typeof===S4)return S(A,D,MQ(A,v),m);TQ(A,v)}return typeof v==="function"&&CQ(A,v),typeof v==="symbol"&&OQ(A,v),null}function g(A,D,v,m,J0){if(typeof m==="string"&&m!==""||typeof m==="number"||typeof m==="bigint")return A=A.get(v)||null,w(D,A,""+m,J0);if(typeof m==="object"&&m!==null){switch(m.$$typeof){case E4:return v=A.get(m.key===null?v:m.key)||null,A=M5(m._debugInfo),D=L(D,v,m,J0),h0=A,D;case L9:return A=A.get(m.key===null?v:m.key)||null,T(D,A,m,J0);case R6:var E0=M5(m._debugInfo);return m=u8(m),D=g(A,D,v,m,J0),h0=E0,D}if(G5(m)||t(m))return v=A.get(v)||null,A=M5(m._debugInfo),D=b(D,v,m,J0,null),h0=A,D;if(typeof m.then==="function")return E0=M5(m._debugInfo),D=g(A,D,v,PQ(m),J0),h0=E0,D;if(m.$$typeof===S4)return g(A,D,v,MQ(D,m),J0);TQ(D,m)}return typeof m==="function"&&CQ(D,m),typeof m==="symbol"&&OQ(D,m),null}function $0(A,D,v,m){if(typeof v!=="object"||v===null)return m;switch(v.$$typeof){case E4:case L9:R(A,D,v);var J0=v.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(D,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 R6:v=u8(v),$0(A,D,v,m)}return m}function G0(A,D,v,m){for(var J0=null,E0=null,R0=null,B0=D,f0=D=0,A1=null;B0!==null&&f0<v.length;f0++){B0.index>f0?(A1=B0,B0=null):A1=B0.sibling;var l1=S(A,B0,v[f0],m);if(l1===null){B0===null&&(B0=A1);break}J0=$0(A,l1,v[f0],J0),$&&B0&&l1.alternate===null&&Z(A,B0),D=B(l1,D,f0),R0===null?E0=l1:R0.sibling=l1,R0=l1,B0=A1}if(f0===v.length)return Q(A,B0),i0&&i4(A,f0),E0;if(B0===null){for(;f0<v.length;f0++)B0=f(A,v[f0],m),B0!==null&&(J0=$0(A,B0,v[f0],J0),D=B(B0,D,f0),R0===null?E0=B0:R0.sibling=B0,R0=B0);return i0&&i4(A,f0),E0}for(B0=Y(B0);f0<v.length;f0++)A1=g(B0,A,f0,v[f0],m),A1!==null&&(J0=$0(A,A1,v[f0],J0),$&&A1.alternate!==null&&B0.delete(A1.key===null?f0:A1.key),D=B(A1,D,f0),R0===null?E0=A1:R0.sibling=A1,R0=A1);return $&&B0.forEach(function(_8){return Z(A,_8)}),i0&&i4(A,f0),E0}function C1(A,D,v,m){if(v==null)throw Error("An iterable object provided no iterator.");for(var J0=null,E0=null,R0=D,B0=D=0,f0=null,A1=null,l1=v.next();R0!==null&&!l1.done;B0++,l1=v.next()){R0.index>B0?(f0=R0,R0=null):f0=R0.sibling;var _8=S(A,R0,l1.value,m);if(_8===null){R0===null&&(R0=f0);break}A1=$0(A,_8,l1.value,A1),$&&R0&&_8.alternate===null&&Z(A,R0),D=B(_8,D,B0),E0===null?J0=_8:E0.sibling=_8,E0=_8,R0=f0}if(l1.done)return Q(A,R0),i0&&i4(A,B0),J0;if(R0===null){for(;!l1.done;B0++,l1=v.next())R0=f(A,l1.value,m),R0!==null&&(A1=$0(A,R0,l1.value,A1),D=B(R0,D,B0),E0===null?J0=R0:E0.sibling=R0,E0=R0);return i0&&i4(A,B0),J0}for(R0=Y(R0);!l1.done;B0++,l1=v.next())f0=g(R0,A,B0,l1.value,m),f0!==null&&(A1=$0(A,f0,l1.value,A1),$&&f0.alternate!==null&&R0.delete(f0.key===null?B0:f0.key),D=B(f0,D,B0),E0===null?J0=f0:E0.sibling=f0,E0=f0);return $&&R0.forEach(function(xO){return Z(A,xO)}),i0&&i4(A,B0),J0}function e0(A,D,v,m){if(typeof v==="object"&&v!==null&&v.type===P9&&v.key===null&&(LQ(v,null,A),v=v.props.children),typeof v==="object"&&v!==null){switch(v.$$typeof){case E4:var J0=M5(v._debugInfo);$:{for(var E0=v.key;D!==null;){if(D.key===E0){if(E0=v.type,E0===P9){if(D.tag===7){Q(A,D.sibling),m=U(D,v.props.children),m.return=A,m._debugOwner=v._owner,m._debugInfo=h0,LQ(v,m,A),A=m;break $}}else if(D.elementType===E0||HB(D,v)||typeof E0==="object"&&E0!==null&&E0.$$typeof===R6&&u8(E0)===D.type){Q(A,D.sibling),m=U(D,v.props),y$(m,v),m.return=A,m._debugOwner=v._owner,m._debugInfo=h0,A=m;break $}Q(A,D);break}else Z(A,D);D=D.sibling}v.type===P9?(m=t2(v.props.children,A.mode,m,v.key),m.return=A,m._debugOwner=A,m._debugTask=A._debugTask,m._debugInfo=h0,LQ(v,m,A),A=m):(m=HQ(v,A.mode,m),y$(m,v),m.return=A,m._debugInfo=h0,A=m)}return A=z(A),h0=J0,A;case L9:$:{J0=v;for(v=J0.key;D!==null;){if(D.key===v)if(D.tag===4&&D.stateNode.containerInfo===J0.containerInfo&&D.stateNode.implementation===J0.implementation){Q(A,D.sibling),m=U(D,J0.children||[]),m.return=A,A=m;break $}else{Q(A,D);break}else Z(A,D);D=D.sibling}m=fq(J0,A.mode,m),m.return=A,A=m}return z(A);case R6:return J0=M5(v._debugInfo),v=u8(v),A=e0(A,D,v,m),h0=J0,A}if(G5(v))return J0=M5(v._debugInfo),A=G0(A,D,v,m),h0=J0,A;if(t(v)){if(J0=M5(v._debugInfo),E0=t(v),typeof E0!=="function")throw Error("An object is not an iterable. This error is likely caused by a bug in React. Please file an issue.");var R0=E0.call(v);if(R0===v){if(A.tag!==0||Object.prototype.toString.call(A.type)!=="[object GeneratorFunction]"||Object.prototype.toString.call(R0)!=="[object Generator]")mz||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."),mz=!0}else v.entries!==E0||HN||(console.error("Using Maps as children is not supported. Use an array of keyed ReactElements instead."),HN=!0);return A=C1(A,D,R0,m),h0=J0,A}if(typeof v.then==="function")return J0=M5(v._debugInfo),A=e0(A,D,PQ(v),m),h0=J0,A;if(v.$$typeof===S4)return e0(A,D,MQ(A,v),m);TQ(A,v)}if(typeof v==="string"&&v!==""||typeof v==="number"||typeof v==="bigint")return J0=""+v,D!==null&&D.tag===6?(Q(A,D.sibling),m=U(D,J0),m.return=A,A=m):(Q(A,D),m=bq(J0,A.mode,m),m.return=A,m._debugOwner=A,m._debugTask=A._debugTask,m._debugInfo=h0,A=m),z(A);return typeof v==="function"&&CQ(A,v),typeof v==="symbol"&&OQ(A,v),Q(A,D)}return function(A,D,v,m){var J0=h0;h0=null;try{kZ=0;var E0=e0(A,D,v,m);return m9=null,E0}catch(A1){if(A1===x9||A1===vG)throw A1;var R0=P(29,A1,null,A.mode);R0.lanes=m,R0.return=A;var B0=R0._debugInfo=h0;if(R0._debugOwner=A._debugOwner,R0._debugTask=A._debugTask,B0!=null){for(var f0=B0.length-1;0<=f0;f0--)if(typeof B0[f0].stack==="string"){R0._debugOwner=B0[f0],R0._debugTask=B0[f0].debugTask;break}}return R0}finally{h0=J0}}}function gB($,Z){var Q=G5($);return $=!Q&&typeof t($)==="function",Q||$?(Q=Q?"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>",Q,Z,Q),!1):!0}function sq($){$.updateQueue={baseState:$.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function nq($,Z){$=$.updateQueue,Z.updateQueue===$&&(Z.updateQueue={baseState:$.baseState,firstBaseUpdate:$.firstBaseUpdate,lastBaseUpdate:$.lastBaseUpdate,shared:$.shared,callbacks:null})}function x8($){return{lane:$,tag:rz,payload:null,callback:null,next:null}}function m8($,Z,Q){var Y=$.updateQueue;if(Y===null)return null;if(Y=Y.shared,WN===Y&&!oz){var U=d($);console.error(`An update (setState, replaceState, or forceUpdate) was scheduled from inside an update function. Update functions should be pure, with zero side-effects. Consider using componentDidUpdate or a callback.
|
|
100
|
+
<%s>%s</%s>`,Q,Z,Q))}function OQ($,Z){var Q=rq();Q!==null?Q.run(fB.bind(null,$,Z)):fB($,Z)}function yB($){function Z(A,D){if($){var v=A.deletions;v===null?(A.deletions=[D],A.flags|=16):v.push(D)}}function Q(A,D){if(!$)return null;for(;D!==null;)Z(A,D),D=D.sibling;return null}function Y(A){for(var D=new Map;A!==null;)A.key!==null?D.set(A.key,A):D.set(A.index,A),A=A.sibling;return D}function U(A,D){return A=a4(A,D),A.index=0,A.sibling=null,A}function B(A,D,v){if(A.index=v,!$)return A.flags|=1048576,D;if(v=A.alternate,v!==null)return v=v.index,v<D?(A.flags|=67108866,D):v;return A.flags|=67108866,D}function z(A){return $&&A.alternate===null&&(A.flags|=67108866),A}function w(A,D,v,m){if(D===null||D.tag!==6)return D=bq(v,A.mode,m),D.return=A,D._debugOwner=A,D._debugTask=A._debugTask,D._debugInfo=h0,D;return D=U(D,v),D.return=A,D._debugInfo=h0,D}function L(A,D,v,m){var J0=v.type;if(J0===T9)return D=b(A,D,v.props.children,m,v.key),LQ(v,D,A),D;if(D!==null&&(D.elementType===J0||HB(D,v)||typeof J0==="object"&&J0!==null&&J0.$$typeof===R6&&u8(J0)===D.type))return D=U(D,v.props),g$(D,v),D.return=A,D._debugOwner=v._owner,D._debugInfo=h0,D;return D=HQ(v,A.mode,m),g$(D,v),D.return=A,D._debugInfo=h0,D}function T(A,D,v,m){if(D===null||D.tag!==4||D.stateNode.containerInfo!==v.containerInfo||D.stateNode.implementation!==v.implementation)return D=fq(v,A.mode,m),D.return=A,D._debugInfo=h0,D;return D=U(D,v.children||[]),D.return=A,D._debugInfo=h0,D}function b(A,D,v,m,J0){if(D===null||D.tag!==7)return D=e2(v,A.mode,m,J0),D.return=A,D._debugOwner=A,D._debugTask=A._debugTask,D._debugInfo=h0,D;return D=U(D,v),D.return=A,D._debugInfo=h0,D}function f(A,D,v){if(typeof D==="string"&&D!==""||typeof D==="number"||typeof D==="bigint")return D=bq(""+D,A.mode,v),D.return=A,D._debugOwner=A,D._debugTask=A._debugTask,D._debugInfo=h0,D;if(typeof D==="object"&&D!==null){switch(D.$$typeof){case E4:return v=HQ(D,A.mode,v),g$(v,D),v.return=A,A=M5(D._debugInfo),v._debugInfo=h0,h0=A,v;case P9:return D=fq(D,A.mode,v),D.return=A,D._debugInfo=h0,D;case R6:var m=M5(D._debugInfo);return D=u8(D),A=f(A,D,v),h0=m,A}if(G5(D)||t(D))return v=e2(D,A.mode,v,null),v.return=A,v._debugOwner=A,v._debugTask=A._debugTask,A=M5(D._debugInfo),v._debugInfo=h0,h0=A,v;if(typeof D.then==="function")return m=M5(D._debugInfo),A=f(A,PQ(D),v),h0=m,A;if(D.$$typeof===S4)return f(A,MQ(A,D),v);TQ(A,D)}return typeof D==="function"&&CQ(A,D),typeof D==="symbol"&&OQ(A,D),null}function S(A,D,v,m){var J0=D!==null?D.key:null;if(typeof v==="string"&&v!==""||typeof v==="number"||typeof v==="bigint")return J0!==null?null:w(A,D,""+v,m);if(typeof v==="object"&&v!==null){switch(v.$$typeof){case E4:return v.key===J0?(J0=M5(v._debugInfo),A=L(A,D,v,m),h0=J0,A):null;case P9:return v.key===J0?T(A,D,v,m):null;case R6:return J0=M5(v._debugInfo),v=u8(v),A=S(A,D,v,m),h0=J0,A}if(G5(v)||t(v)){if(J0!==null)return null;return J0=M5(v._debugInfo),A=b(A,D,v,m,null),h0=J0,A}if(typeof v.then==="function")return J0=M5(v._debugInfo),A=S(A,D,PQ(v),m),h0=J0,A;if(v.$$typeof===S4)return S(A,D,MQ(A,v),m);TQ(A,v)}return typeof v==="function"&&CQ(A,v),typeof v==="symbol"&&OQ(A,v),null}function g(A,D,v,m,J0){if(typeof m==="string"&&m!==""||typeof m==="number"||typeof m==="bigint")return A=A.get(v)||null,w(D,A,""+m,J0);if(typeof m==="object"&&m!==null){switch(m.$$typeof){case E4:return v=A.get(m.key===null?v:m.key)||null,A=M5(m._debugInfo),D=L(D,v,m,J0),h0=A,D;case P9:return A=A.get(m.key===null?v:m.key)||null,T(D,A,m,J0);case R6:var E0=M5(m._debugInfo);return m=u8(m),D=g(A,D,v,m,J0),h0=E0,D}if(G5(m)||t(m))return v=A.get(v)||null,A=M5(m._debugInfo),D=b(D,v,m,J0,null),h0=A,D;if(typeof m.then==="function")return E0=M5(m._debugInfo),D=g(A,D,v,PQ(m),J0),h0=E0,D;if(m.$$typeof===S4)return g(A,D,v,MQ(D,m),J0);TQ(D,m)}return typeof m==="function"&&CQ(D,m),typeof m==="symbol"&&OQ(D,m),null}function $0(A,D,v,m){if(typeof v!=="object"||v===null)return m;switch(v.$$typeof){case E4:case P9:R(A,D,v);var J0=v.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(D,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 R6:v=u8(v),$0(A,D,v,m)}return m}function G0(A,D,v,m){for(var J0=null,E0=null,R0=null,B0=D,f0=D=0,A1=null;B0!==null&&f0<v.length;f0++){B0.index>f0?(A1=B0,B0=null):A1=B0.sibling;var l1=S(A,B0,v[f0],m);if(l1===null){B0===null&&(B0=A1);break}J0=$0(A,l1,v[f0],J0),$&&B0&&l1.alternate===null&&Z(A,B0),D=B(l1,D,f0),R0===null?E0=l1:R0.sibling=l1,R0=l1,B0=A1}if(f0===v.length)return Q(A,B0),i0&&i4(A,f0),E0;if(B0===null){for(;f0<v.length;f0++)B0=f(A,v[f0],m),B0!==null&&(J0=$0(A,B0,v[f0],J0),D=B(B0,D,f0),R0===null?E0=B0:R0.sibling=B0,R0=B0);return i0&&i4(A,f0),E0}for(B0=Y(B0);f0<v.length;f0++)A1=g(B0,A,f0,v[f0],m),A1!==null&&(J0=$0(A,A1,v[f0],J0),$&&A1.alternate!==null&&B0.delete(A1.key===null?f0:A1.key),D=B(A1,D,f0),R0===null?E0=A1:R0.sibling=A1,R0=A1);return $&&B0.forEach(function(_8){return Z(A,_8)}),i0&&i4(A,f0),E0}function C1(A,D,v,m){if(v==null)throw Error("An iterable object provided no iterator.");for(var J0=null,E0=null,R0=D,B0=D=0,f0=null,A1=null,l1=v.next();R0!==null&&!l1.done;B0++,l1=v.next()){R0.index>B0?(f0=R0,R0=null):f0=R0.sibling;var _8=S(A,R0,l1.value,m);if(_8===null){R0===null&&(R0=f0);break}A1=$0(A,_8,l1.value,A1),$&&R0&&_8.alternate===null&&Z(A,R0),D=B(_8,D,B0),E0===null?J0=_8:E0.sibling=_8,E0=_8,R0=f0}if(l1.done)return Q(A,R0),i0&&i4(A,B0),J0;if(R0===null){for(;!l1.done;B0++,l1=v.next())R0=f(A,l1.value,m),R0!==null&&(A1=$0(A,R0,l1.value,A1),D=B(R0,D,B0),E0===null?J0=R0:E0.sibling=R0,E0=R0);return i0&&i4(A,B0),J0}for(R0=Y(R0);!l1.done;B0++,l1=v.next())f0=g(R0,A,B0,l1.value,m),f0!==null&&(A1=$0(A,f0,l1.value,A1),$&&f0.alternate!==null&&R0.delete(f0.key===null?B0:f0.key),D=B(f0,D,B0),E0===null?J0=f0:E0.sibling=f0,E0=f0);return $&&R0.forEach(function(xO){return Z(A,xO)}),i0&&i4(A,B0),J0}function e0(A,D,v,m){if(typeof v==="object"&&v!==null&&v.type===T9&&v.key===null&&(LQ(v,null,A),v=v.props.children),typeof v==="object"&&v!==null){switch(v.$$typeof){case E4:var J0=M5(v._debugInfo);$:{for(var E0=v.key;D!==null;){if(D.key===E0){if(E0=v.type,E0===T9){if(D.tag===7){Q(A,D.sibling),m=U(D,v.props.children),m.return=A,m._debugOwner=v._owner,m._debugInfo=h0,LQ(v,m,A),A=m;break $}}else if(D.elementType===E0||HB(D,v)||typeof E0==="object"&&E0!==null&&E0.$$typeof===R6&&u8(E0)===D.type){Q(A,D.sibling),m=U(D,v.props),g$(m,v),m.return=A,m._debugOwner=v._owner,m._debugInfo=h0,A=m;break $}Q(A,D);break}else Z(A,D);D=D.sibling}v.type===T9?(m=e2(v.props.children,A.mode,m,v.key),m.return=A,m._debugOwner=A,m._debugTask=A._debugTask,m._debugInfo=h0,LQ(v,m,A),A=m):(m=HQ(v,A.mode,m),g$(m,v),m.return=A,m._debugInfo=h0,A=m)}return A=z(A),h0=J0,A;case P9:$:{J0=v;for(v=J0.key;D!==null;){if(D.key===v)if(D.tag===4&&D.stateNode.containerInfo===J0.containerInfo&&D.stateNode.implementation===J0.implementation){Q(A,D.sibling),m=U(D,J0.children||[]),m.return=A,A=m;break $}else{Q(A,D);break}else Z(A,D);D=D.sibling}m=fq(J0,A.mode,m),m.return=A,A=m}return z(A);case R6:return J0=M5(v._debugInfo),v=u8(v),A=e0(A,D,v,m),h0=J0,A}if(G5(v))return J0=M5(v._debugInfo),A=G0(A,D,v,m),h0=J0,A;if(t(v)){if(J0=M5(v._debugInfo),E0=t(v),typeof E0!=="function")throw Error("An object is not an iterable. This error is likely caused by a bug in React. Please file an issue.");var R0=E0.call(v);if(R0===v){if(A.tag!==0||Object.prototype.toString.call(A.type)!=="[object GeneratorFunction]"||Object.prototype.toString.call(R0)!=="[object Generator]")mz||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."),mz=!0}else v.entries!==E0||HN||(console.error("Using Maps as children is not supported. Use an array of keyed ReactElements instead."),HN=!0);return A=C1(A,D,R0,m),h0=J0,A}if(typeof v.then==="function")return J0=M5(v._debugInfo),A=e0(A,D,PQ(v),m),h0=J0,A;if(v.$$typeof===S4)return e0(A,D,MQ(A,v),m);TQ(A,v)}if(typeof v==="string"&&v!==""||typeof v==="number"||typeof v==="bigint")return J0=""+v,D!==null&&D.tag===6?(Q(A,D.sibling),m=U(D,J0),m.return=A,A=m):(Q(A,D),m=bq(J0,A.mode,m),m.return=A,m._debugOwner=A,m._debugTask=A._debugTask,m._debugInfo=h0,A=m),z(A);return typeof v==="function"&&CQ(A,v),typeof v==="symbol"&&OQ(A,v),Q(A,D)}return function(A,D,v,m){var J0=h0;h0=null;try{vZ=0;var E0=e0(A,D,v,m);return d9=null,E0}catch(A1){if(A1===m9||A1===vG)throw A1;var R0=P(29,A1,null,A.mode);R0.lanes=m,R0.return=A;var B0=R0._debugInfo=h0;if(R0._debugOwner=A._debugOwner,R0._debugTask=A._debugTask,B0!=null){for(var f0=B0.length-1;0<=f0;f0--)if(typeof B0[f0].stack==="string"){R0._debugOwner=B0[f0],R0._debugTask=B0[f0].debugTask;break}}return R0}finally{h0=J0}}}function gB($,Z){var Q=G5($);return $=!Q&&typeof t($)==="function",Q||$?(Q=Q?"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>",Q,Z,Q),!1):!0}function sq($){$.updateQueue={baseState:$.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function nq($,Z){$=$.updateQueue,Z.updateQueue===$&&(Z.updateQueue={baseState:$.baseState,firstBaseUpdate:$.firstBaseUpdate,lastBaseUpdate:$.lastBaseUpdate,shared:$.shared,callbacks:null})}function x8($){return{lane:$,tag:rz,payload:null,callback:null,next:null}}function m8($,Z,Q){var Y=$.updateQueue;if(Y===null)return null;if(Y=Y.shared,WN===Y&&!oz){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),oz=!0}if((Z1&Y5)!==W5)return U=Y.pending,U===null?Z.next=Z:(Z.next=U.next,U.next=Z),Y.pending=Z,Z=BQ($),BB($,null,Q),Z;return KQ($,Y,Z,Q),BQ($)}function
|
|
102
|
+
Please update the following component: %s`,U),oz=!0}if((Z1&Y5)!==W5)return U=Y.pending,U===null?Z.next=Z:(Z.next=U.next,U.next=Z),Y.pending=Z,Z=BQ($),BB($,null,Q),Z;return KQ($,Y,Z,Q),BQ($)}function h$($,Z,Q){if(Z=Z.updateQueue,Z!==null&&(Z=Z.shared,(Q&4194048)!==0)){var Y=Z.lanes;Y&=$.pendingLanes,Q|=Y,Z.lanes=Q,r2($,Q)}}function IQ($,Z){var{updateQueue:Q,alternate:Y}=$;if(Y!==null&&(Y=Y.updateQueue,Q===Y)){var U=null,B=null;if(Q=Q.firstBaseUpdate,Q!==null){do{var z={lane:Q.lane,tag:Q.tag,payload:Q.payload,callback:null,next:null};B===null?U=B=z:B=B.next=z,Q=Q.next}while(Q!==null);B===null?U=B=Z:B=B.next=Z}else U=B=Z;Q={baseState:Y.baseState,firstBaseUpdate:U,lastBaseUpdate:B,shared:Y.shared,callbacks:Y.callbacks},$.updateQueue=Q;return}$=Q.lastBaseUpdate,$===null?Q.firstBaseUpdate=Z:$.next=Z,Q.lastBaseUpdate=Z}function u$(){if(zN){var $=x9;if($!==null)throw $}}function x$($,Z,Q,Y){zN=!1;var U=$.updateQueue;N2=!1,WN=U.shared;var{firstBaseUpdate:B,lastBaseUpdate:z}=U,w=U.shared.pending;if(w!==null){U.shared.pending=null;var L=w,T=L.next;L.next=null,z===null?B=T:z.next=T,z=L;var b=$.alternate;b!==null&&(b=b.updateQueue,w=b.lastBaseUpdate,w!==z&&(w===null?b.firstBaseUpdate=T:w.next=T,b.lastBaseUpdate=L))}if(B!==null){var f=U.baseState;z=0,b=T=L=null,w=B;do{var S=w.lane&-536870913,g=S!==w.lane;if(g?(u0&S)===S:(Y&S)===S){S!==0&&S===M7&&(zN=!0),b!==null&&(b=b.next={lane:0,tag:w.tag,payload:w.payload,callback:null,next:null});$:{S=$;var $0=w,G0=Z,C1=Q;switch($0.tag){case sz:if($0=$0.payload,typeof $0==="function"){h9=!0;var e0=$0.call(C1,f,G0);if(S.mode&D5){P1(!0);try{$0.call(C1,f,G0)}finally{P1(!1)}}h9=!1,f=e0;break $}f=$0;break $;case FN:S.flags=S.flags&-65537|128;case rz:if(e0=$0.payload,typeof e0==="function"){if(h9=!0,$0=e0.call(C1,f,G0),S.mode&D5){P1(!0);try{e0.call(C1,f,G0)}finally{P1(!1)}}h9=!1}else $0=e0;if($0===null||$0===void 0)break $;f=l0({},f,$0);break $;case nz:N2=!0}}S=w.callback,S!==null&&($.flags|=64,g&&($.flags|=8192),g=U.callbacks,g===null?U.callbacks=[S]:g.push(S))}else g={lane:S,tag:w.tag,payload:w.payload,callback:w.callback,next:null},b===null?(T=b=g,L=f):b=b.next=g,z|=S;if(w=w.next,w===null)if(w=U.shared.pending,w===null)break;else g=w,w=g.next,g.next=null,U.lastBaseUpdate=g,U.shared.pending=null}while(1);b===null&&(L=f),U.baseState=L,U.firstBaseUpdate=T,U.lastBaseUpdate=b,B===null&&(U.shared.lanes=0),B2|=z,$.lanes=z,$.memoizedState=f}WN=null}function hB($,Z){if(typeof $!=="function")throw Error("Invalid argument passed as callback. Expected a function. Instead received: "+$);$.call(Z)}function bP($,Z){var Q=$.shared.hiddenCallbacks;if(Q!==null)for($.shared.hiddenCallbacks=null,$=0;$<Q.length;$++)hB(Q[$],Z)}function uB($,Z){var Q=$.callbacks;if(Q!==null)for($.callbacks=null,$=0;$<Q.length;$++)hB(Q[$],Z)}function xB($,Z){var Q=u4;O0(fG,Q,$),O0(p9,Z,$),u4=Q|Z.baseLanes}function oq($){O0(fG,u4,$),O0(p9,p9.current,$)}function aq($){u4=fG.current,P0(p9,$),P0(fG,$)}function d8($){var Z=$.alternate;O0(c1,c1.current&c9,$),O0(T6,$,$),h6===null&&(Z===null||p9.current!==null?h6=$:Z.memoizedState!==null&&(h6=$))}function iq($){O0(c1,c1.current,$),O0(T6,$,$),h6===null&&(h6=$)}function mB($){$.tag===22?(O0(c1,c1.current,$),O0(T6,$,$),h6===null&&(h6=$)):p8($)}function p8($){O0(c1,c1.current,$),O0(T6,T6.current,$)}function z6($){P0(T6,$),h6===$&&(h6=null),P0(c1,$)}function VQ($){for(var Z=$;Z!==null;){if(Z.tag===13){var Q=Z.memoizedState;if(Q!==null&&(Q=Q.dehydrated,Q===null||KX(Q)||BX(Q)))return Z}else if(Z.tag===19&&(Z.memoizedProps.revealOrder==="forwards"||Z.memoizedProps.revealOrder==="backwards"||Z.memoizedProps.revealOrder==="unstable_legacy-backwards"||Z.memoizedProps.revealOrder==="together")){if((Z.flags&128)!==0)return Z}else if(Z.child!==null){Z.child.return=Z,Z=Z.child;continue}if(Z===$)break;for(;Z.sibling===null;){if(Z.return===null||Z.return===$)return null;Z=Z.return}Z.sibling.return=Z.return,Z=Z.sibling}return null}function c0(){var $=u;x6===null?x6=[$]:x6.push($)}function c(){var $=u;if(x6!==null&&(W8++,x6[W8]!==$)){var Z=d(A0);if(!az.has(Z)&&(az.add(Z),x6!==null)){for(var Q="",Y=0;Y<=W8;Y++){var U=x6[Y],B=Y===W8?$:U;for(U=Y+1+". "+U;30>U.length;)U+=" ";U+=B+`
|
|
103
103
|
`,Q+=U}console.error(`React has detected a change in the order of Hooks called by %s. This will lead to bugs and errors if not fixed. For more information, read the Rules of Hooks: https://react.dev/link/rules-of-hooks
|
|
104
104
|
|
|
105
105
|
Previous render Next render
|
|
106
106
|
------------------------------------------------------
|
|
107
107
|
%s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
108
|
-
`,Z,Q)}}}function
|
|
108
|
+
`,Z,Q)}}}function N9($){$===void 0||$===null||G5($)||console.error("%s received a final argument that is not an array (instead, received `%s`). When specified, the final argument must be an array.",u,typeof $)}function AQ(){var $=d(A0);tz.has($)||(tz.add($),console.error("ReactDOM.useFormState has been renamed to React.useActionState. Please update %s to use React.useActionState.",$))}function d1(){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 tq($,Z){if(
|
|
112
|
+
See https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem.`)}function tq($,Z){if(yZ)return!1;if(Z===null)return console.error("%s received a final argument during this render, but not during the previous render. Even though the final argument is optional, its type cannot change between renders.",u),!1;$.length!==Z.length&&console.error(`The final argument passed to %s changed size between renders. The order and size of this array must remain constant.
|
|
113
113
|
|
|
114
114
|
Previous: %s
|
|
115
|
-
Incoming: %s`,u,"["+Z.join(", ")+"]","["+$.join(", ")+"]");for(var Q=0;Q<Z.length&&Q<$.length;Q++)if(!u5($[Q],Z[Q]))return!1;return!0}function eq($,Z,Q,Y,U,B){if(H8=B,A0=Z,x6=$!==null?$._debugHookTypes:null,W8=-1,fZ=$!==null&&$.type!==Z.type,Object.prototype.toString.call(Q)==="[object AsyncFunction]"||Object.prototype.toString.call(Q)==="[object AsyncGeneratorFunction]")B=d(A0),MN.has(B)||(MN.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?RN:x6!==null?ez:wN,L7=B=(Z.mode&D5)!==V0;var z=UN(Q,Y,U);if(L7=!1,l9&&(z=$Y(Z,Q,Y,U)),B){P1(!0);try{z=$Y(Z,Q,Y,U)}finally{P1(!1)}}return dB($,Z),z}function dB($,Z){Z._debugHookTypes=x6,Z.dependencies===null?F8!==null&&(Z.dependencies={lanes:0,firstContext:null,_debugThenableState:F8}):Z.dependencies._debugThenableState=F8,x.H=yZ;var Q=R1!==null&&R1.next!==null;if(H8=0,x6=u=t1=R1=A0=null,W8=-1,$!==null&&($.flags&65011712)!==(Z.flags&65011712)&&console.error("Internal React error: Expected static flag was missing. Please notify the React team."),gG=!1,bZ=0,F8=null,Q)throw Error("Rendered fewer hooks than expected. This may be caused by an accidental early return statement.");$===null||e1||($=$.dependencies,$!==null&&zQ($)&&(e1=!0)),jZ?(jZ=!1,$=!0):$=!1,$&&(Z=d(Z)||"Unknown",iz.has(Z)||MN.has(Z)||(iz.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 $Y($,Z,Q,Y){A0=$;var U=0;do{if(l9&&(F8=null),bZ=0,l9=!1,U>=RO)throw Error("Too many re-renders. React limits the number of renders to prevent an infinite loop.");if(U+=1,fZ=!1,t1=R1=null,$.updateQueue!=null){var B=$.updateQueue;B.lastEffect=null,B.events=null,B.stores=null,B.memoCache!=null&&(B.memoCache.index=0)}W8=-1,x.H=$M,B=UN(Z,Q,Y)}while(l9);return B}function fP(){var $=x.H,Z=$.useState()[0];return Z=typeof Z.then==="function"?x$(Z):Z,$=$.useState()[0],(R1!==null?R1.memoizedState:null)!==$&&(A0.flags|=1024),Z}function ZY(){var $=hG!==0;return hG=0,$}function JY($,Z,Q){Z.updateQueue=$.updateQueue,Z.flags=(Z.mode&Q4)!==V0?Z.flags&-402655237:Z.flags&-2053,$.lanes&=~Q}function QY($){if(gG){for($=$.memoizedState;$!==null;){var Z=$.queue;Z!==null&&(Z.pending=null),$=$.next}gG=!1}H8=0,x6=t1=R1=A0=null,W8=-1,u=null,l9=!1,bZ=hG=0,F8=null}function f5(){var $={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return t1===null?A0.memoizedState=t1=$:t1=t1.next=$,t1}function B1(){if(R1===null){var $=A0.alternate;$=$!==null?$.memoizedState:null}else $=R1.next;var Z=t1===null?A0.memoizedState:t1.next;if(Z!==null)t1=Z,R1=$;else{if($===null){if(A0.alternate===null)throw Error("Update hook called on initial render. This is likely a bug in React. Please file an issue.");throw Error("Rendered more hooks than during the previous render.")}R1=$,$={memoizedState:R1.memoizedState,baseState:R1.baseState,baseQueue:R1.baseQueue,queue:R1.queue,next:null},t1===null?A0.memoizedState=t1=$:t1=t1.next=$}return t1}function EQ(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function x$($){var Z=bZ;return bZ+=1,F8===null&&(F8=EB()),$=DB(F8,$,Z),Z=A0,(t1===null?Z.memoizedState:t1.next)===null&&(Z=Z.alternate,x.H=Z!==null&&Z.memoizedState!==null?RN:wN),$}function c8($){if($!==null&&typeof $==="object"){if(typeof $.then==="function")return x$($);if($.$$typeof===S4)return D1($)}throw Error("An unsupported type was passed to use(): "+String($))}function Q7($){var Z=null,Q=A0.updateQueue;if(Q!==null&&(Z=Q.memoCache),Z==null){var Y=A0.alternate;Y!==null&&(Y=Y.updateQueue,Y!==null&&(Y=Y.memoCache,Y!=null&&(Z={data:Y.data.map(function(U){return U.slice()}),index:0})))}if(Z==null&&(Z={data:[],index:0}),Q===null&&(Q=EQ(),A0.updateQueue=Q),Q.memoCache=Z,Q=Z.data[Z.index],Q===void 0||fZ)for(Q=Z.data[Z.index]=Array($),Y=0;Y<$;Y++)Q[Y]=aT;else Q.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.",Q.length,$);return Z.index++,Q}function e6($,Z){return typeof Z==="function"?Z($):Z}function GY($,Z,Q){var Y=f5();if(Q!==void 0){var U=Q(Z);if(L7){P1(!0);try{Q(Z)}finally{P1(!1)}}}else U=Z;return Y.memoizedState=Y.baseState=U,$={pending:null,lanes:0,dispatch:null,lastRenderedReducer:$,lastRenderedState:U},Y.queue=$,$=$.dispatch=xP.bind(null,A0,$),[Y.memoizedState,$]}function N9($){var Z=B1();return qY(Z,R1,$)}function qY($,Z,Q){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=Q;var U=$.baseQueue,B=Y.pending;if(B!==null){if(U!==null){var z=U.next;U.next=B.next,B.next=z}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 w=z=null,L=null,T=Z,b=!1;do{var f=T.lane&-536870913;if(f!==T.lane?(u0&f)===f:(H8&f)===f){var S=T.revertLane;if(S===0)L!==null&&(L=L.next={lane:0,revertLane:0,gesture:null,action:T.action,hasEagerState:T.hasEagerState,eagerState:T.eagerState,next:null}),f===z7&&(b=!0);else if((H8&S)===S){T=T.next,S===z7&&(b=!0);continue}else f={lane:0,revertLane:T.revertLane,gesture:null,action:T.action,hasEagerState:T.hasEagerState,eagerState:T.eagerState,next:null},L===null?(w=L=f,z=B):L=L.next=f,A0.lanes|=S,B2|=S;f=T.action,L7&&Q(B,f),B=T.hasEagerState?T.eagerState:Q(B,f)}else S={lane:f,revertLane:T.revertLane,gesture:T.gesture,action:T.action,hasEagerState:T.hasEagerState,eagerState:T.eagerState,next:null},L===null?(w=L=S,z=B):L=L.next=S,A0.lanes|=f,B2|=f;T=T.next}while(T!==null&&T!==Z);if(L===null?z=B:L.next=w,!u5(B,$.memoizedState)&&(e1=!0,b&&(Q=u9,Q!==null)))throw Q;$.memoizedState=B,$.baseState=z,$.baseQueue=L,Y.lastRenderedState=B}return U===null&&(Y.lanes=0),[$.memoizedState,Y.dispatch]}function m$($){var Z=B1(),Q=Z.queue;if(Q===null)throw Error("Should have a queue. You are likely calling Hooks conditionally, which is not allowed. (https://react.dev/link/invalid-hook-call)");Q.lastRenderedReducer=$;var{dispatch:Y,pending:U}=Q,B=Z.memoizedState;if(U!==null){Q.pending=null;var z=U=U.next;do B=$(B,z.action),z=z.next;while(z!==U);u5(B,Z.memoizedState)||(e1=!0),Z.memoizedState=B,Z.baseQueue===null&&(Z.baseState=B),Q.lastRenderedState=B}return[B,Y]}function YY($,Z,Q){var Y=A0,U=f5();if(i0){if(Q===void 0)throw Error("Missing getServerSnapshot, which is required for server-rendered content. Will revert to client rendering.");var B=Q();c9||B===Q()||(console.error("The result of getServerSnapshot should be cached to avoid an infinite loop"),c9=!0)}else{if(B=Z(),c9||(Q=Z(),u5(B,Q)||(console.error("The result of getSnapshot should be cached to avoid an infinite loop"),c9=!0)),_1===null)throw Error("Expected a work-in-progress root. This is a bug in React. Please file an issue.");(u0&127)!==0||pB(Y,Z,B)}return U.memoizedState=B,Q={value:B,getSnapshot:Z},U.queue=Q,kQ(lB.bind(null,Y,Q,$),[$]),Y.flags|=2048,K9(u6|d5,{destroy:void 0},cB.bind(null,Y,Q,B,Z),null),B}function SQ($,Z,Q){var Y=A0,U=B1(),B=i0;if(B){if(Q===void 0)throw Error("Missing getServerSnapshot, which is required for server-rendered content. Will revert to client rendering.");Q=Q()}else if(Q=Z(),!c9){var z=Z();u5(Q,z)||(console.error("The result of getSnapshot should be cached to avoid an infinite loop"),c9=!0)}if(z=!u5((R1||U).memoizedState,Q))U.memoizedState=Q,e1=!0;U=U.queue;var w=lB.bind(null,Y,U,$);if(l5(2048,d5,w,[$]),U.getSnapshot!==Z||z||t1!==null&&t1.memoizedState.tag&u6){if(Y.flags|=2048,K9(u6|d5,{destroy:void 0},cB.bind(null,Y,U,Q,Z),null),_1===null)throw Error("Expected a work-in-progress root. This is a bug in React. Please file an issue.");B||(H8&127)!==0||pB(Y,Z,Q)}return Q}function pB($,Z,Q){$.flags|=16384,$={getSnapshot:Z,value:Q},Z=A0.updateQueue,Z===null?(Z=EQ(),A0.updateQueue=Z,Z.stores=[$]):(Q=Z.stores,Q===null?Z.stores=[$]:Q.push($))}function cB($,Z,Q,Y){Z.value=Q,Z.getSnapshot=Y,rB(Z)&&sB($)}function lB($,Z,Q){return Q(function(){rB(Z)&&(z4(2,"updateSyncExternalStore()",$),sB($))})}function rB($){var Z=$.getSnapshot;$=$.value;try{var Q=Z();return!u5($,Q)}catch(Y){return!0}}function sB($){var Z=E5($,2);Z!==null&&y1(Z,$,2)}function XY($){var Z=f5();if(typeof $==="function"){var Q=$;if($=Q(),L7){P1(!0);try{Q()}finally{P1(!1)}}}return Z.memoizedState=Z.baseState=$,Z.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e6,lastRenderedState:$},Z}function NY($){$=XY($);var Z=$.queue,Q=HH.bind(null,A0,Z);return Z.dispatch=Q,[$.memoizedState,Q]}function UY($){var Z=f5();Z.memoizedState=Z.baseState=$;var Q={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return Z.queue=Q,Z=CY.bind(null,A0,!0,Q),Q.dispatch=Z,[$,Z]}function nB($,Z){var Q=B1();return oB(Q,R1,$,Z)}function oB($,Z,Q,Y){return $.baseState=Q,qY($,R1,typeof Y==="function"?Y:e6)}function aB($,Z){var Q=B1();if(R1!==null)return oB(Q,R1,$,Z);return Q.baseState=$,[$,Q.queue.dispatch]}function yP($,Z,Q,Y,U){if(hQ($))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(z){B.listeners.push(z)}};x.T!==null?Q(!0):B.isTransition=!1,Y(B),Q=Z.pending,Q===null?(B.next=Z.pending=B,iB(Z,B)):(B.next=Q.next,Z.pending=Q.next=B)}}function iB($,Z){var{action:Q,payload:Y}=Z,U=$.state;if(Z.isTransition){var B=x.T,z={};z._updatedFibers=new Set,x.T=z;try{var w=Q(U,Y),L=x.S;L!==null&&L(z,w),tB($,Z,w)}catch(T){KY($,Z,T)}finally{B!==null&&z.types!==null&&(B.types!==null&&B.types!==z.types&&console.error("We expected inner Transitions to have transferred the outer types set and that you cannot add to the outer Transition while inside the inner.This is a bug in React."),B.types=z.types),x.T=B,B===null&&z._updatedFibers&&($=z._updatedFibers.size,z._updatedFibers.clear(),10<$&&console.warn("Detected a large number of updates inside startTransition. If this is due to a subscription please re-write it to use React provided hooks. Otherwise concurrent mode guarantees are off the table."))}}else try{z=Q(U,Y),tB($,Z,z)}catch(T){KY($,Z,T)}}function tB($,Z,Q){Q!==null&&typeof Q==="object"&&typeof Q.then==="function"?(x.asyncTransitions++,Q.then(gQ,gQ),Q.then(function(Y){eB($,Z,Y)},function(Y){return KY($,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.")):eB($,Z,Q)}function eB($,Z,Q){Z.status="fulfilled",Z.value=Q,$H(Z),$.state=Q,Z=$.pending,Z!==null&&(Q=Z.next,Q===Z?$.pending=null:(Q=Q.next,Z.next=Q,iB($,Q)))}function KY($,Z,Q){var Y=$.pending;if($.pending=null,Y!==null){Y=Y.next;do Z.status="rejected",Z.reason=Q,$H(Z),Z=Z.next;while(Z!==Y)}$.action=null}function $H($){$=$.listeners;for(var Z=0;Z<$.length;Z++)(0,$[Z])()}function ZH($,Z){return Z}function U9($,Z){if(i0){var Q=_1.formState;if(Q!==null){$:{var Y=A0;if(i0){if(V1){Z:{var U=V1;for(var B=y6;U.nodeType!==8;){if(!B){U=null;break Z}if(U=w6(U.nextSibling),U===null){U=null;break Z}}B=U.data,U=B===mN||B===uM?U:null}if(U){V1=w6(U.nextSibling),Y=U.data===mN;break $}}g8(Y)}Y=!1}Y&&(Z=Q[0])}}return Q=f5(),Q.memoizedState=Q.baseState=Z,Y={pending:null,lanes:0,dispatch:null,lastRenderedReducer:ZH,lastRenderedState:Z},Q.queue=Y,Q=HH.bind(null,A0,Y),Y.dispatch=Q,Y=XY(!1),B=CY.bind(null,A0,!1,Y.queue),Y=f5(),U={state:Z,dispatch:null,action:$,pending:null},Y.queue=U,Q=yP.bind(null,A0,U,B,Q),U.dispatch=Q,Y.memoizedState=$,[Z,Q,!1]}function DQ($){var Z=B1();return JH(Z,R1,$)}function JH($,Z,Q){if(Z=qY($,Z,ZH)[0],$=N9(e6)[0],typeof Z==="object"&&Z!==null&&typeof Z.then==="function")try{var Y=x$(Z)}catch(z){if(z===x9)throw vG;throw z}else Y=Z;Z=B1();var U=Z.queue,B=U.dispatch;return Q!==Z.memoizedState&&(A0.flags|=2048,K9(u6|d5,{destroy:void 0},gP.bind(null,U,Q),null)),[Y,B,$]}function gP($,Z){$.action=Z}function jQ($){var Z=B1(),Q=R1;if(Q!==null)return JH(Z,Q,$);B1(),Z=Z.memoizedState,Q=B1();var Y=Q.queue.dispatch;return Q.memoizedState=$,[Z,Y,!1]}function K9($,Z,Q,Y){return $={tag:$,create:Q,deps:Y,inst:Z,next:null},Z=A0.updateQueue,Z===null&&(Z=EQ(),A0.updateQueue=Z),Q=Z.lastEffect,Q===null?Z.lastEffect=$.next=$:(Y=Q.next,Q.next=$,$.next=Y,Z.lastEffect=$),$}function BY($){var Z=f5();return $={current:$},Z.memoizedState=$}function G7($,Z,Q,Y){var U=f5();A0.flags|=$,U.memoizedState=K9(u6|Z,{destroy:void 0},Q,Y===void 0?null:Y)}function l5($,Z,Q,Y){var U=B1();Y=Y===void 0?null:Y;var B=U.memoizedState.inst;R1!==null&&Y!==null&&tq(Y,R1.memoizedState.deps)?U.memoizedState=K9(Z,B,Q,Y):(A0.flags|=$,U.memoizedState=K9(u6|Z,B,Q,Y))}function kQ($,Z){(A0.mode&Q4)!==V0?G7(276826112,d5,$,Z):G7(8390656,d5,$,Z)}function hP($){A0.flags|=4;var Z=A0.updateQueue;if(Z===null)Z=EQ(),A0.updateQueue=Z,Z.events=[$];else{var Q=Z.events;Q===null?Z.events=[$]:Q.push($)}}function HY($){var Z=f5(),Q={impl:$};return Z.memoizedState=Q,function(){if((Z1&Y5)!==W5)throw Error("A function wrapped in useEffectEvent can't be called during rendering.");return Q.impl.apply(void 0,arguments)}}function vQ($){var Z=B1().memoizedState;return hP({ref:Z,nextImpl:$}),function(){if((Z1&Y5)!==W5)throw Error("A function wrapped in useEffectEvent can't be called during rendering.");return Z.impl.apply(void 0,arguments)}}function FY($,Z){var Q=4194308;return(A0.mode&Q4)!==V0&&(Q|=134217728),G7(Q,C6,$,Z)}function QH($,Z){if(typeof Z==="function"){$=$();var Q=Z($);return function(){typeof Q==="function"?Q():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 WY($,Z,Q){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"),Q=Q!==null&&Q!==void 0?Q.concat([$]):null;var Y=4194308;(A0.mode&Q4)!==V0&&(Y|=134217728),G7(Y,C6,QH.bind(null,Z,$),Q)}function bQ($,Z,Q){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"),Q=Q!==null&&Q!==void 0?Q.concat([$]):null,l5(4,C6,QH.bind(null,Z,$),Q)}function zY($,Z){return f5().memoizedState=[$,Z===void 0?null:Z],$}function fQ($,Z){var Q=B1();Z=Z===void 0?null:Z;var Y=Q.memoizedState;if(Z!==null&&tq(Z,Y[1]))return Y[0];return Q.memoizedState=[$,Z],$}function MY($,Z){var Q=f5();Z=Z===void 0?null:Z;var Y=$();if(L7){P1(!0);try{$()}finally{P1(!1)}}return Q.memoizedState=[Y,Z],Y}function yQ($,Z){var Q=B1();Z=Z===void 0?null:Z;var Y=Q.memoizedState;if(Z!==null&&tq(Z,Y[1]))return Y[0];if(Y=$(),L7){P1(!0);try{$()}finally{P1(!1)}}return Q.memoizedState=[Y,Z],Y}function wY($,Z){var Q=f5();return RY(Q,$,Z)}function GH($,Z){var Q=B1();return YH(Q,R1.memoizedState,$,Z)}function qH($,Z){var Q=B1();return R1===null?RY(Q,$,Z):YH(Q,R1.memoizedState,$,Z)}function RY($,Z,Q){if(Q===void 0||(H8&1073741824)!==0&&(u0&261930)===0)return $.memoizedState=Z;return $.memoizedState=Q,$=XF(),A0.lanes|=$,B2|=$,Q}function YH($,Z,Q,Y){if(u5(Q,Z))return Q;if(d9.current!==null)return $=RY($,Q,Y),u5($,Z)||(e1=!0),$;if((H8&42)===0||(H8&1073741824)!==0&&(u0&261930)===0)return e1=!0,$.memoizedState=Q;return $=XF(),A0.lanes|=$,B2|=$,Z}function gQ(){x.asyncTransitions--}function XH($,Z,Q,Y,U){var B=U1.p;U1.p=B!==0&&B<J4?B:J4;var z=x.T,w={};w._updatedFibers=new Set,x.T=w,CY($,!1,Z,Q);try{var L=U(),T=x.S;if(T!==null&&T(w,L),L!==null&&typeof L==="object"&&typeof L.then==="function"){x.asyncTransitions++,L.then(gQ,gQ);var b=vP(L,Y);d$($,Z,b,M6($))}else d$($,Z,Y,M6($))}catch(f){d$($,Z,{then:function(){},status:"rejected",reason:f},M6($))}finally{U1.p=B,z!==null&&w.types!==null&&(z.types!==null&&z.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."),z.types=w.types),x.T=z,z===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."))}}function _Y($,Z,Q,Y){if($.tag!==5)throw Error("Expected the form instance to be a HostComponent. This is a bug in React.");var U=NH($).queue;jP($),XH($,U,Z,j7,Q===null?M:function(){return UH($),Q(Y)})}function NH($){var Z=$.memoizedState;if(Z!==null)return Z;Z={memoizedState:j7,baseState:j7,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:e6,lastRenderedState:j7},next:null};var Q={};return Z.next={memoizedState:Q,baseState:Q,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:e6,lastRenderedState:Q},next:null},$.memoizedState=Z,$=$.alternate,$!==null&&($.memoizedState=Z),Z}function UH($){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=NH($);Z.next===null&&(Z=$.alternate.memoizedState),d$($,Z.next.queue,{},M6($))}function LY(){var $=XY(!1);return $=XH.bind(null,A0,$.queue,!0,!1),f5().memoizedState=$,[!1,$]}function KH(){var $=N9(e6)[0],Z=B1().memoizedState;return[typeof $==="boolean"?$:x$($),Z]}function BH(){var $=m$(e6)[0],Z=B1().memoizedState;return[typeof $==="boolean"?$:x$($),Z]}function q7(){return D1(iZ)}function PY(){var $=f5(),Z=_1.identifierPrefix;if(i0){var Q=X8,Y=Y8;Q=(Y&~(1<<32-y5(Y)-1)).toString(32)+Q,Z="_"+Z+"R_"+Q,Q=hG++,0<Q&&(Z+="H"+Q.toString(32)),Z+="_"}else Q=wO++,Z="_"+Z+"r_"+Q.toString(32)+"_";return $.memoizedState=Z}function TY(){return f5().memoizedState=uP.bind(null,A0)}function uP($,Z){for(var Q=$.return;Q!==null;){switch(Q.tag){case 24:case 3:var Y=M6(Q),U=x8(Y),B=m8(Q,U,Y);B!==null&&(z4(Y,"refresh()",$),y1(B,Q,Y),g$(B,Q,Y)),$=dq(),Z!==null&&Z!==void 0&&B!==null&&console.error("The seed argument is not enabled outside experimental channels."),U.payload={cache:$};return}Q=Q.return}}function xP($,Z,Q){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=M6($);var U={lane:Y,revertLane:0,gesture:null,action:Q,hasEagerState:!1,eagerState:null,next:null};hQ($)?FH(Z,U):(U=Dq($,Z,U,Y),U!==null&&(z4(Y,"dispatch()",$),y1(U,$,Y),WH(U,Z,Y)))}function HH($,Z,Q){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=M6($),d$($,Z,Q,Y)&&z4(Y,"setState()",$)}function d$($,Z,Q,Y){var U={lane:Y,revertLane:0,gesture:null,action:Q,hasEagerState:!1,eagerState:null,next:null};if(hQ($))FH(Z,U);else{var B=$.alternate;if($.lanes===0&&(B===null||B.lanes===0)&&(B=Z.lastRenderedReducer,B!==null)){var z=x.H;x.H=q4;try{var w=Z.lastRenderedState,L=B(w,Q);if(U.hasEagerState=!0,U.eagerState=L,u5(L,w))return KQ($,Z,U,0),_1===null&&UQ(),!1}catch(T){}finally{x.H=z}}if(Q=Dq($,Z,U,Y),Q!==null)return y1(Q,$,Y),WH(Q,Z,Y),!0}return!1}function CY($,Z,Q,Y){if(x.T===null&&z7===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:eY(),gesture:null,action:Y,hasEagerState:!1,eagerState:null,next:null},hQ($)){if(Z)throw Error("Cannot update optimistic state while rendering.");console.error("Cannot call startTransition while rendering.")}else Z=Dq($,Q,Y,2),Z!==null&&(z4(2,"setOptimistic()",$),y1(Z,$,2))}function hQ($){var Z=$.alternate;return $===A0||Z!==null&&Z===A0}function FH($,Z){l9=gG=!0;var Q=$.pending;Q===null?Z.next=Z:(Z.next=Q.next,Q.next=Z),$.pending=Z}function WH($,Z,Q){if((Q&4194048)!==0){var Y=Z.lanes;Y&=$.pendingLanes,Q|=Y,Z.lanes=Q,l2($,Q)}}function OY($){if($!==null&&typeof $!=="function"){var Z=String($);BM.has(Z)||(BM.add(Z),console.error("Expected the last optional `callback` argument to be a function. Instead received: %s.",$))}}function IY($,Z,Q,Y){var U=$.memoizedState,B=Q(Y,U);if($.mode&D5){P1(!0);try{B=Q(Y,U)}finally{P1(!1)}}B===void 0&&(Z=i(Z)||"Component",XM.has(Z)||(XM.add(Z),console.error("%s.getDerivedStateFromProps(): A valid state object (or null) must be returned. You have returned undefined.",Z))),U=B===null||B===void 0?U:l0({},U,B),$.memoizedState=U,$.lanes===0&&($.updateQueue.baseState=U)}function zH($,Z,Q,Y,U,B,z){var w=$.stateNode;if(typeof w.shouldComponentUpdate==="function"){if(Q=w.shouldComponentUpdate(Y,B,z),$.mode&D5){P1(!0);try{Q=w.shouldComponentUpdate(Y,B,z)}finally{P1(!1)}}return Q===void 0&&console.error("%s.shouldComponentUpdate(): Returned undefined instead of a boolean value. Make sure to return true or false.",i(Z)||"Component"),Q}return Z.prototype&&Z.prototype.isPureReactComponent?!D$(Q,Y)||!D$(U,B):!0}function MH($,Z,Q,Y){var U=Z.state;typeof Z.componentWillReceiveProps==="function"&&Z.componentWillReceiveProps(Q,Y),typeof Z.UNSAFE_componentWillReceiveProps==="function"&&Z.UNSAFE_componentWillReceiveProps(Q,Y),Z.state!==U&&($=d($)||"Component",JM.has($)||(JM.add($),console.error("%s.componentWillReceiveProps(): Assigning directly to this.state is deprecated (except inside a component's constructor). Use setState instead.",$)),_N.enqueueReplaceState(Z,Z.state,null))}function Y7($,Z){var Q=Z;if("ref"in Z){Q={};for(var Y in Z)Y!=="ref"&&(Q[Y]=Z[Y])}if($=$.defaultProps){Q===Z&&(Q=l0({},Q));for(var U in $)Q[U]===void 0&&(Q[U]=$[U])}return Q}function wH($){aX($),console.warn(`%s
|
|
115
|
+
Incoming: %s`,u,"["+Z.join(", ")+"]","["+$.join(", ")+"]");for(var Q=0;Q<Z.length&&Q<$.length;Q++)if(!u5($[Q],Z[Q]))return!1;return!0}function eq($,Z,Q,Y,U,B){if(H8=B,A0=Z,x6=$!==null?$._debugHookTypes:null,W8=-1,yZ=$!==null&&$.type!==Z.type,Object.prototype.toString.call(Q)==="[object AsyncFunction]"||Object.prototype.toString.call(Q)==="[object AsyncGeneratorFunction]")B=d(A0),MN.has(B)||(MN.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?RN:x6!==null?ez:wN,P7=B=(Z.mode&D5)!==V0;var z=UN(Q,Y,U);if(P7=!1,r9&&(z=$Y(Z,Q,Y,U)),B){P1(!0);try{z=$Y(Z,Q,Y,U)}finally{P1(!1)}}return dB($,Z),z}function dB($,Z){Z._debugHookTypes=x6,Z.dependencies===null?F8!==null&&(Z.dependencies={lanes:0,firstContext:null,_debugThenableState:F8}):Z.dependencies._debugThenableState=F8,x.H=gZ;var Q=R1!==null&&R1.next!==null;if(H8=0,x6=u=t1=R1=A0=null,W8=-1,$!==null&&($.flags&65011712)!==(Z.flags&65011712)&&console.error("Internal React error: Expected static flag was missing. Please notify the React team."),gG=!1,fZ=0,F8=null,Q)throw Error("Rendered fewer hooks than expected. This may be caused by an accidental early return statement.");$===null||e1||($=$.dependencies,$!==null&&zQ($)&&(e1=!0)),kZ?(kZ=!1,$=!0):$=!1,$&&(Z=d(Z)||"Unknown",iz.has(Z)||MN.has(Z)||(iz.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 $Y($,Z,Q,Y){A0=$;var U=0;do{if(r9&&(F8=null),fZ=0,r9=!1,U>=RO)throw Error("Too many re-renders. React limits the number of renders to prevent an infinite loop.");if(U+=1,yZ=!1,t1=R1=null,$.updateQueue!=null){var B=$.updateQueue;B.lastEffect=null,B.events=null,B.stores=null,B.memoCache!=null&&(B.memoCache.index=0)}W8=-1,x.H=$M,B=UN(Z,Q,Y)}while(r9);return B}function fP(){var $=x.H,Z=$.useState()[0];return Z=typeof Z.then==="function"?m$(Z):Z,$=$.useState()[0],(R1!==null?R1.memoizedState:null)!==$&&(A0.flags|=1024),Z}function ZY(){var $=hG!==0;return hG=0,$}function JY($,Z,Q){Z.updateQueue=$.updateQueue,Z.flags=(Z.mode&Q4)!==V0?Z.flags&-402655237:Z.flags&-2053,$.lanes&=~Q}function QY($){if(gG){for($=$.memoizedState;$!==null;){var Z=$.queue;Z!==null&&(Z.pending=null),$=$.next}gG=!1}H8=0,x6=t1=R1=A0=null,W8=-1,u=null,r9=!1,fZ=hG=0,F8=null}function f5(){var $={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return t1===null?A0.memoizedState=t1=$:t1=t1.next=$,t1}function B1(){if(R1===null){var $=A0.alternate;$=$!==null?$.memoizedState:null}else $=R1.next;var Z=t1===null?A0.memoizedState:t1.next;if(Z!==null)t1=Z,R1=$;else{if($===null){if(A0.alternate===null)throw Error("Update hook called on initial render. This is likely a bug in React. Please file an issue.");throw Error("Rendered more hooks than during the previous render.")}R1=$,$={memoizedState:R1.memoizedState,baseState:R1.baseState,baseQueue:R1.baseQueue,queue:R1.queue,next:null},t1===null?A0.memoizedState=t1=$:t1=t1.next=$}return t1}function EQ(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function m$($){var Z=fZ;return fZ+=1,F8===null&&(F8=EB()),$=DB(F8,$,Z),Z=A0,(t1===null?Z.memoizedState:t1.next)===null&&(Z=Z.alternate,x.H=Z!==null&&Z.memoizedState!==null?RN:wN),$}function c8($){if($!==null&&typeof $==="object"){if(typeof $.then==="function")return m$($);if($.$$typeof===S4)return D1($)}throw Error("An unsupported type was passed to use(): "+String($))}function G7($){var Z=null,Q=A0.updateQueue;if(Q!==null&&(Z=Q.memoCache),Z==null){var Y=A0.alternate;Y!==null&&(Y=Y.updateQueue,Y!==null&&(Y=Y.memoCache,Y!=null&&(Z={data:Y.data.map(function(U){return U.slice()}),index:0})))}if(Z==null&&(Z={data:[],index:0}),Q===null&&(Q=EQ(),A0.updateQueue=Q),Q.memoCache=Z,Q=Z.data[Z.index],Q===void 0||yZ)for(Q=Z.data[Z.index]=Array($),Y=0;Y<$;Y++)Q[Y]=aT;else Q.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.",Q.length,$);return Z.index++,Q}function e6($,Z){return typeof Z==="function"?Z($):Z}function GY($,Z,Q){var Y=f5();if(Q!==void 0){var U=Q(Z);if(P7){P1(!0);try{Q(Z)}finally{P1(!1)}}}else U=Z;return Y.memoizedState=Y.baseState=U,$={pending:null,lanes:0,dispatch:null,lastRenderedReducer:$,lastRenderedState:U},Y.queue=$,$=$.dispatch=xP.bind(null,A0,$),[Y.memoizedState,$]}function U9($){var Z=B1();return qY(Z,R1,$)}function qY($,Z,Q){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=Q;var U=$.baseQueue,B=Y.pending;if(B!==null){if(U!==null){var z=U.next;U.next=B.next,B.next=z}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 w=z=null,L=null,T=Z,b=!1;do{var f=T.lane&-536870913;if(f!==T.lane?(u0&f)===f:(H8&f)===f){var S=T.revertLane;if(S===0)L!==null&&(L=L.next={lane:0,revertLane:0,gesture:null,action:T.action,hasEagerState:T.hasEagerState,eagerState:T.eagerState,next:null}),f===M7&&(b=!0);else if((H8&S)===S){T=T.next,S===M7&&(b=!0);continue}else f={lane:0,revertLane:T.revertLane,gesture:null,action:T.action,hasEagerState:T.hasEagerState,eagerState:T.eagerState,next:null},L===null?(w=L=f,z=B):L=L.next=f,A0.lanes|=S,B2|=S;f=T.action,P7&&Q(B,f),B=T.hasEagerState?T.eagerState:Q(B,f)}else S={lane:f,revertLane:T.revertLane,gesture:T.gesture,action:T.action,hasEagerState:T.hasEagerState,eagerState:T.eagerState,next:null},L===null?(w=L=S,z=B):L=L.next=S,A0.lanes|=f,B2|=f;T=T.next}while(T!==null&&T!==Z);if(L===null?z=B:L.next=w,!u5(B,$.memoizedState)&&(e1=!0,b&&(Q=x9,Q!==null)))throw Q;$.memoizedState=B,$.baseState=z,$.baseQueue=L,Y.lastRenderedState=B}return U===null&&(Y.lanes=0),[$.memoizedState,Y.dispatch]}function d$($){var Z=B1(),Q=Z.queue;if(Q===null)throw Error("Should have a queue. You are likely calling Hooks conditionally, which is not allowed. (https://react.dev/link/invalid-hook-call)");Q.lastRenderedReducer=$;var{dispatch:Y,pending:U}=Q,B=Z.memoizedState;if(U!==null){Q.pending=null;var z=U=U.next;do B=$(B,z.action),z=z.next;while(z!==U);u5(B,Z.memoizedState)||(e1=!0),Z.memoizedState=B,Z.baseQueue===null&&(Z.baseState=B),Q.lastRenderedState=B}return[B,Y]}function YY($,Z,Q){var Y=A0,U=f5();if(i0){if(Q===void 0)throw Error("Missing getServerSnapshot, which is required for server-rendered content. Will revert to client rendering.");var B=Q();l9||B===Q()||(console.error("The result of getServerSnapshot should be cached to avoid an infinite loop"),l9=!0)}else{if(B=Z(),l9||(Q=Z(),u5(B,Q)||(console.error("The result of getSnapshot should be cached to avoid an infinite loop"),l9=!0)),_1===null)throw Error("Expected a work-in-progress root. This is a bug in React. Please file an issue.");(u0&127)!==0||pB(Y,Z,B)}return U.memoizedState=B,Q={value:B,getSnapshot:Z},U.queue=Q,kQ(lB.bind(null,Y,Q,$),[$]),Y.flags|=2048,B9(u6|d5,{destroy:void 0},cB.bind(null,Y,Q,B,Z),null),B}function SQ($,Z,Q){var Y=A0,U=B1(),B=i0;if(B){if(Q===void 0)throw Error("Missing getServerSnapshot, which is required for server-rendered content. Will revert to client rendering.");Q=Q()}else if(Q=Z(),!l9){var z=Z();u5(Q,z)||(console.error("The result of getSnapshot should be cached to avoid an infinite loop"),l9=!0)}if(z=!u5((R1||U).memoizedState,Q))U.memoizedState=Q,e1=!0;U=U.queue;var w=lB.bind(null,Y,U,$);if(l5(2048,d5,w,[$]),U.getSnapshot!==Z||z||t1!==null&&t1.memoizedState.tag&u6){if(Y.flags|=2048,B9(u6|d5,{destroy:void 0},cB.bind(null,Y,U,Q,Z),null),_1===null)throw Error("Expected a work-in-progress root. This is a bug in React. Please file an issue.");B||(H8&127)!==0||pB(Y,Z,Q)}return Q}function pB($,Z,Q){$.flags|=16384,$={getSnapshot:Z,value:Q},Z=A0.updateQueue,Z===null?(Z=EQ(),A0.updateQueue=Z,Z.stores=[$]):(Q=Z.stores,Q===null?Z.stores=[$]:Q.push($))}function cB($,Z,Q,Y){Z.value=Q,Z.getSnapshot=Y,rB(Z)&&sB($)}function lB($,Z,Q){return Q(function(){rB(Z)&&(z4(2,"updateSyncExternalStore()",$),sB($))})}function rB($){var Z=$.getSnapshot;$=$.value;try{var Q=Z();return!u5($,Q)}catch(Y){return!0}}function sB($){var Z=E5($,2);Z!==null&&y1(Z,$,2)}function XY($){var Z=f5();if(typeof $==="function"){var Q=$;if($=Q(),P7){P1(!0);try{Q()}finally{P1(!1)}}}return Z.memoizedState=Z.baseState=$,Z.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e6,lastRenderedState:$},Z}function NY($){$=XY($);var Z=$.queue,Q=HH.bind(null,A0,Z);return Z.dispatch=Q,[$.memoizedState,Q]}function UY($){var Z=f5();Z.memoizedState=Z.baseState=$;var Q={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return Z.queue=Q,Z=CY.bind(null,A0,!0,Q),Q.dispatch=Z,[$,Z]}function nB($,Z){var Q=B1();return oB(Q,R1,$,Z)}function oB($,Z,Q,Y){return $.baseState=Q,qY($,R1,typeof Y==="function"?Y:e6)}function aB($,Z){var Q=B1();if(R1!==null)return oB(Q,R1,$,Z);return Q.baseState=$,[$,Q.queue.dispatch]}function yP($,Z,Q,Y,U){if(hQ($))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(z){B.listeners.push(z)}};x.T!==null?Q(!0):B.isTransition=!1,Y(B),Q=Z.pending,Q===null?(B.next=Z.pending=B,iB(Z,B)):(B.next=Q.next,Z.pending=Q.next=B)}}function iB($,Z){var{action:Q,payload:Y}=Z,U=$.state;if(Z.isTransition){var B=x.T,z={};z._updatedFibers=new Set,x.T=z;try{var w=Q(U,Y),L=x.S;L!==null&&L(z,w),tB($,Z,w)}catch(T){KY($,Z,T)}finally{B!==null&&z.types!==null&&(B.types!==null&&B.types!==z.types&&console.error("We expected inner Transitions to have transferred the outer types set and that you cannot add to the outer Transition while inside the inner.This is a bug in React."),B.types=z.types),x.T=B,B===null&&z._updatedFibers&&($=z._updatedFibers.size,z._updatedFibers.clear(),10<$&&console.warn("Detected a large number of updates inside startTransition. If this is due to a subscription please re-write it to use React provided hooks. Otherwise concurrent mode guarantees are off the table."))}}else try{z=Q(U,Y),tB($,Z,z)}catch(T){KY($,Z,T)}}function tB($,Z,Q){Q!==null&&typeof Q==="object"&&typeof Q.then==="function"?(x.asyncTransitions++,Q.then(gQ,gQ),Q.then(function(Y){eB($,Z,Y)},function(Y){return KY($,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.")):eB($,Z,Q)}function eB($,Z,Q){Z.status="fulfilled",Z.value=Q,$H(Z),$.state=Q,Z=$.pending,Z!==null&&(Q=Z.next,Q===Z?$.pending=null:(Q=Q.next,Z.next=Q,iB($,Q)))}function KY($,Z,Q){var Y=$.pending;if($.pending=null,Y!==null){Y=Y.next;do Z.status="rejected",Z.reason=Q,$H(Z),Z=Z.next;while(Z!==Y)}$.action=null}function $H($){$=$.listeners;for(var Z=0;Z<$.length;Z++)(0,$[Z])()}function ZH($,Z){return Z}function K9($,Z){if(i0){var Q=_1.formState;if(Q!==null){$:{var Y=A0;if(i0){if(V1){Z:{var U=V1;for(var B=y6;U.nodeType!==8;){if(!B){U=null;break Z}if(U=w6(U.nextSibling),U===null){U=null;break Z}}B=U.data,U=B===mN||B===uM?U:null}if(U){V1=w6(U.nextSibling),Y=U.data===mN;break $}}g8(Y)}Y=!1}Y&&(Z=Q[0])}}return Q=f5(),Q.memoizedState=Q.baseState=Z,Y={pending:null,lanes:0,dispatch:null,lastRenderedReducer:ZH,lastRenderedState:Z},Q.queue=Y,Q=HH.bind(null,A0,Y),Y.dispatch=Q,Y=XY(!1),B=CY.bind(null,A0,!1,Y.queue),Y=f5(),U={state:Z,dispatch:null,action:$,pending:null},Y.queue=U,Q=yP.bind(null,A0,U,B,Q),U.dispatch=Q,Y.memoizedState=$,[Z,Q,!1]}function DQ($){var Z=B1();return JH(Z,R1,$)}function JH($,Z,Q){if(Z=qY($,Z,ZH)[0],$=U9(e6)[0],typeof Z==="object"&&Z!==null&&typeof Z.then==="function")try{var Y=m$(Z)}catch(z){if(z===m9)throw vG;throw z}else Y=Z;Z=B1();var U=Z.queue,B=U.dispatch;return Q!==Z.memoizedState&&(A0.flags|=2048,B9(u6|d5,{destroy:void 0},gP.bind(null,U,Q),null)),[Y,B,$]}function gP($,Z){$.action=Z}function jQ($){var Z=B1(),Q=R1;if(Q!==null)return JH(Z,Q,$);B1(),Z=Z.memoizedState,Q=B1();var Y=Q.queue.dispatch;return Q.memoizedState=$,[Z,Y,!1]}function B9($,Z,Q,Y){return $={tag:$,create:Q,deps:Y,inst:Z,next:null},Z=A0.updateQueue,Z===null&&(Z=EQ(),A0.updateQueue=Z),Q=Z.lastEffect,Q===null?Z.lastEffect=$.next=$:(Y=Q.next,Q.next=$,$.next=Y,Z.lastEffect=$),$}function BY($){var Z=f5();return $={current:$},Z.memoizedState=$}function q7($,Z,Q,Y){var U=f5();A0.flags|=$,U.memoizedState=B9(u6|Z,{destroy:void 0},Q,Y===void 0?null:Y)}function l5($,Z,Q,Y){var U=B1();Y=Y===void 0?null:Y;var B=U.memoizedState.inst;R1!==null&&Y!==null&&tq(Y,R1.memoizedState.deps)?U.memoizedState=B9(Z,B,Q,Y):(A0.flags|=$,U.memoizedState=B9(u6|Z,B,Q,Y))}function kQ($,Z){(A0.mode&Q4)!==V0?q7(276826112,d5,$,Z):q7(8390656,d5,$,Z)}function hP($){A0.flags|=4;var Z=A0.updateQueue;if(Z===null)Z=EQ(),A0.updateQueue=Z,Z.events=[$];else{var Q=Z.events;Q===null?Z.events=[$]:Q.push($)}}function HY($){var Z=f5(),Q={impl:$};return Z.memoizedState=Q,function(){if((Z1&Y5)!==W5)throw Error("A function wrapped in useEffectEvent can't be called during rendering.");return Q.impl.apply(void 0,arguments)}}function vQ($){var Z=B1().memoizedState;return hP({ref:Z,nextImpl:$}),function(){if((Z1&Y5)!==W5)throw Error("A function wrapped in useEffectEvent can't be called during rendering.");return Z.impl.apply(void 0,arguments)}}function FY($,Z){var Q=4194308;return(A0.mode&Q4)!==V0&&(Q|=134217728),q7(Q,C6,$,Z)}function QH($,Z){if(typeof Z==="function"){$=$();var Q=Z($);return function(){typeof Q==="function"?Q():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 WY($,Z,Q){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"),Q=Q!==null&&Q!==void 0?Q.concat([$]):null;var Y=4194308;(A0.mode&Q4)!==V0&&(Y|=134217728),q7(Y,C6,QH.bind(null,Z,$),Q)}function bQ($,Z,Q){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"),Q=Q!==null&&Q!==void 0?Q.concat([$]):null,l5(4,C6,QH.bind(null,Z,$),Q)}function zY($,Z){return f5().memoizedState=[$,Z===void 0?null:Z],$}function fQ($,Z){var Q=B1();Z=Z===void 0?null:Z;var Y=Q.memoizedState;if(Z!==null&&tq(Z,Y[1]))return Y[0];return Q.memoizedState=[$,Z],$}function MY($,Z){var Q=f5();Z=Z===void 0?null:Z;var Y=$();if(P7){P1(!0);try{$()}finally{P1(!1)}}return Q.memoizedState=[Y,Z],Y}function yQ($,Z){var Q=B1();Z=Z===void 0?null:Z;var Y=Q.memoizedState;if(Z!==null&&tq(Z,Y[1]))return Y[0];if(Y=$(),P7){P1(!0);try{$()}finally{P1(!1)}}return Q.memoizedState=[Y,Z],Y}function wY($,Z){var Q=f5();return RY(Q,$,Z)}function GH($,Z){var Q=B1();return YH(Q,R1.memoizedState,$,Z)}function qH($,Z){var Q=B1();return R1===null?RY(Q,$,Z):YH(Q,R1.memoizedState,$,Z)}function RY($,Z,Q){if(Q===void 0||(H8&1073741824)!==0&&(u0&261930)===0)return $.memoizedState=Z;return $.memoizedState=Q,$=XF(),A0.lanes|=$,B2|=$,Q}function YH($,Z,Q,Y){if(u5(Q,Z))return Q;if(p9.current!==null)return $=RY($,Q,Y),u5($,Z)||(e1=!0),$;if((H8&42)===0||(H8&1073741824)!==0&&(u0&261930)===0)return e1=!0,$.memoizedState=Q;return $=XF(),A0.lanes|=$,B2|=$,Z}function gQ(){x.asyncTransitions--}function XH($,Z,Q,Y,U){var B=U1.p;U1.p=B!==0&&B<J4?B:J4;var z=x.T,w={};w._updatedFibers=new Set,x.T=w,CY($,!1,Z,Q);try{var L=U(),T=x.S;if(T!==null&&T(w,L),L!==null&&typeof L==="object"&&typeof L.then==="function"){x.asyncTransitions++,L.then(gQ,gQ);var b=vP(L,Y);p$($,Z,b,M6($))}else p$($,Z,Y,M6($))}catch(f){p$($,Z,{then:function(){},status:"rejected",reason:f},M6($))}finally{U1.p=B,z!==null&&w.types!==null&&(z.types!==null&&z.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."),z.types=w.types),x.T=z,z===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."))}}function _Y($,Z,Q,Y){if($.tag!==5)throw Error("Expected the form instance to be a HostComponent. This is a bug in React.");var U=NH($).queue;jP($),XH($,U,Z,k7,Q===null?M:function(){return UH($),Q(Y)})}function NH($){var Z=$.memoizedState;if(Z!==null)return Z;Z={memoizedState:k7,baseState:k7,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:e6,lastRenderedState:k7},next:null};var Q={};return Z.next={memoizedState:Q,baseState:Q,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:e6,lastRenderedState:Q},next:null},$.memoizedState=Z,$=$.alternate,$!==null&&($.memoizedState=Z),Z}function UH($){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=NH($);Z.next===null&&(Z=$.alternate.memoizedState),p$($,Z.next.queue,{},M6($))}function LY(){var $=XY(!1);return $=XH.bind(null,A0,$.queue,!0,!1),f5().memoizedState=$,[!1,$]}function KH(){var $=U9(e6)[0],Z=B1().memoizedState;return[typeof $==="boolean"?$:m$($),Z]}function BH(){var $=d$(e6)[0],Z=B1().memoizedState;return[typeof $==="boolean"?$:m$($),Z]}function Y7(){return D1(tZ)}function PY(){var $=f5(),Z=_1.identifierPrefix;if(i0){var Q=X8,Y=Y8;Q=(Y&~(1<<32-y5(Y)-1)).toString(32)+Q,Z="_"+Z+"R_"+Q,Q=hG++,0<Q&&(Z+="H"+Q.toString(32)),Z+="_"}else Q=wO++,Z="_"+Z+"r_"+Q.toString(32)+"_";return $.memoizedState=Z}function TY(){return f5().memoizedState=uP.bind(null,A0)}function uP($,Z){for(var Q=$.return;Q!==null;){switch(Q.tag){case 24:case 3:var Y=M6(Q),U=x8(Y),B=m8(Q,U,Y);B!==null&&(z4(Y,"refresh()",$),y1(B,Q,Y),h$(B,Q,Y)),$=dq(),Z!==null&&Z!==void 0&&B!==null&&console.error("The seed argument is not enabled outside experimental channels."),U.payload={cache:$};return}Q=Q.return}}function xP($,Z,Q){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=M6($);var U={lane:Y,revertLane:0,gesture:null,action:Q,hasEagerState:!1,eagerState:null,next:null};hQ($)?FH(Z,U):(U=Dq($,Z,U,Y),U!==null&&(z4(Y,"dispatch()",$),y1(U,$,Y),WH(U,Z,Y)))}function HH($,Z,Q){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=M6($),p$($,Z,Q,Y)&&z4(Y,"setState()",$)}function p$($,Z,Q,Y){var U={lane:Y,revertLane:0,gesture:null,action:Q,hasEagerState:!1,eagerState:null,next:null};if(hQ($))FH(Z,U);else{var B=$.alternate;if($.lanes===0&&(B===null||B.lanes===0)&&(B=Z.lastRenderedReducer,B!==null)){var z=x.H;x.H=q4;try{var w=Z.lastRenderedState,L=B(w,Q);if(U.hasEagerState=!0,U.eagerState=L,u5(L,w))return KQ($,Z,U,0),_1===null&&UQ(),!1}catch(T){}finally{x.H=z}}if(Q=Dq($,Z,U,Y),Q!==null)return y1(Q,$,Y),WH(Q,Z,Y),!0}return!1}function CY($,Z,Q,Y){if(x.T===null&&M7===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:eY(),gesture:null,action:Y,hasEagerState:!1,eagerState:null,next:null},hQ($)){if(Z)throw Error("Cannot update optimistic state while rendering.");console.error("Cannot call startTransition while rendering.")}else Z=Dq($,Q,Y,2),Z!==null&&(z4(2,"setOptimistic()",$),y1(Z,$,2))}function hQ($){var Z=$.alternate;return $===A0||Z!==null&&Z===A0}function FH($,Z){r9=gG=!0;var Q=$.pending;Q===null?Z.next=Z:(Z.next=Q.next,Q.next=Z),$.pending=Z}function WH($,Z,Q){if((Q&4194048)!==0){var Y=Z.lanes;Y&=$.pendingLanes,Q|=Y,Z.lanes=Q,r2($,Q)}}function OY($){if($!==null&&typeof $!=="function"){var Z=String($);BM.has(Z)||(BM.add(Z),console.error("Expected the last optional `callback` argument to be a function. Instead received: %s.",$))}}function IY($,Z,Q,Y){var U=$.memoizedState,B=Q(Y,U);if($.mode&D5){P1(!0);try{B=Q(Y,U)}finally{P1(!1)}}B===void 0&&(Z=i(Z)||"Component",XM.has(Z)||(XM.add(Z),console.error("%s.getDerivedStateFromProps(): A valid state object (or null) must be returned. You have returned undefined.",Z))),U=B===null||B===void 0?U:l0({},U,B),$.memoizedState=U,$.lanes===0&&($.updateQueue.baseState=U)}function zH($,Z,Q,Y,U,B,z){var w=$.stateNode;if(typeof w.shouldComponentUpdate==="function"){if(Q=w.shouldComponentUpdate(Y,B,z),$.mode&D5){P1(!0);try{Q=w.shouldComponentUpdate(Y,B,z)}finally{P1(!1)}}return Q===void 0&&console.error("%s.shouldComponentUpdate(): Returned undefined instead of a boolean value. Make sure to return true or false.",i(Z)||"Component"),Q}return Z.prototype&&Z.prototype.isPureReactComponent?!j$(Q,Y)||!j$(U,B):!0}function MH($,Z,Q,Y){var U=Z.state;typeof Z.componentWillReceiveProps==="function"&&Z.componentWillReceiveProps(Q,Y),typeof Z.UNSAFE_componentWillReceiveProps==="function"&&Z.UNSAFE_componentWillReceiveProps(Q,Y),Z.state!==U&&($=d($)||"Component",JM.has($)||(JM.add($),console.error("%s.componentWillReceiveProps(): Assigning directly to this.state is deprecated (except inside a component's constructor). Use setState instead.",$)),_N.enqueueReplaceState(Z,Z.state,null))}function X7($,Z){var Q=Z;if("ref"in Z){Q={};for(var Y in Z)Y!=="ref"&&(Q[Y]=Z[Y])}if($=$.defaultProps){Q===Z&&(Q=l0({},Q));for(var U in $)Q[U]===void 0&&(Q[U]=$[U])}return Q}function wH($){aX($),console.warn(`%s
|
|
116
116
|
|
|
117
117
|
%s
|
|
118
|
-
`,
|
|
119
|
-
Visit https://react.dev/link/error-boundaries to learn more about error boundaries.`)}function RH($){var Z=
|
|
118
|
+
`,s9?"An error occurred in the <"+s9+"> 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 RH($){var Z=s9?"The above error occurred in the <"+s9+"> component.":"The above error occurred in one of your React components.",Q="React will try to recreate this component tree from scratch using the error boundary you provided, "+((LN||"Anonymous")+".");if(typeof $==="object"&&$!==null&&typeof $.environmentName==="string"){var Y=$.environmentName;$=[`%o
|
|
120
120
|
|
|
121
121
|
%s
|
|
122
122
|
|
|
@@ -126,9 +126,9 @@ Visit https://react.dev/link/error-boundaries to learn more about error boundari
|
|
|
126
126
|
%s
|
|
127
127
|
|
|
128
128
|
%s
|
|
129
|
-
`,$,Z,Q)}function _H($){aX($)}function uQ($,Z){try{
|
|
129
|
+
`,$,Z,Q)}function _H($){aX($)}function uQ($,Z){try{s9=Z.source?d(Z.source):null,LN=null;var Q=Z.value;if(x.actQueue!==null)x.thrownErrors.push(Q);else{var Y=$.onUncaughtError;Y(Q,{componentStack:Z.stack})}}catch(U){setTimeout(function(){throw U})}}function LH($,Z,Q){try{s9=Q.source?d(Q.source):null,LN=d(Z);var Y=$.onCaughtError;Y(Q.value,{componentStack:Q.stack,errorBoundary:Z.tag===1?Z.stateNode:null})}catch(U){setTimeout(function(){throw U})}}function VY($,Z,Q){return Q=x8(Q),Q.tag=FN,Q.payload={element:null},Q.callback=function(){q0(Z.source,uQ,$,Z)},Q}function AY($){return $=x8($),$.tag=FN,$}function EY($,Z,Q,Y){var U=Q.type.getDerivedStateFromError;if(typeof U==="function"){var B=Y.value;$.payload=function(){return U(B)},$.callback=function(){FB(Q),q0(Y.source,LH,Z,Q,Y)}}var z=Q.stateNode;z!==null&&typeof z.componentDidCatch==="function"&&($.callback=function(){FB(Q),q0(Y.source,LH,Z,Q,Y),typeof U!=="function"&&(F2===null?F2=new Set([this]):F2.add(this)),FO(this,Y),typeof U==="function"||(Q.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(Q)||"Unknown")})}function mP($,Z,Q,Y,U){if(Q.flags|=32768,k4&&i$($,U),Y!==null&&typeof Y==="object"&&typeof Y.then==="function"){if(Z=Q.alternate,Z!==null&&X9(Z,Q,U,!0),i0&&(f4=!0),Q=T6.current,Q!==null){switch(Q.tag){case 31:case 13:return h6===null?nQ():Q.alternate===null&&v1===M8&&(v1=mG),Q.flags&=-257,Q.flags|=65536,Q.lanes=U,Y===bG?Q.flags|=16384:(Z=Q.updateQueue,Z===null?Q.updateQueue=new Set([Y]):Z.add(Y),oY($,Y,U)),!1;case 22:return Q.flags|=65536,Y===bG?Q.flags|=16384:(Z=Q.updateQueue,Z===null?(Z={transitions:null,markerInstances:null,retryQueue:new Set([Y])},Q.updateQueue=Z):(Q=Z.retryQueue,Q===null?Z.retryQueue=new Set([Y]):Q.add(Y)),oY($,Y,U)),!1}throw Error("Unexpected Suspense handler tag ("+Q.tag+"). This is a bug in React.")}return oY($,Y,U),nQ(),!1}if(i0)return f4=!0,Z=T6.current,Z!==null?((Z.flags&65536)===0&&(Z.flags|=256),Z.flags|=65536,Z.lanes=U,Y!==JN&&v$(H6(Error("There was an error while hydrating but React was able to recover by instead client rendering from the nearest Suspense boundary.",{cause:Y}),Q))):(Y!==JN&&v$(H6(Error("There was an error while hydrating but React was able to recover by instead client rendering the entire root.",{cause:Y}),Q)),$=$.current.alternate,$.flags|=65536,U&=-U,$.lanes|=U,Y=H6(Y,Q),U=VY($.stateNode,Y,U),IQ($,U),v1!==U2&&(v1=T7)),!1;var B=H6(Error("There was an error during concurrent rendering but React was able to recover by instead synchronously rendering the entire root.",{cause:Y}),Q);if(pZ===null?pZ=[B]:pZ.push(B),v1!==U2&&(v1=T7),Z===null)return!0;Y=H6(Y,Q),Q=Z;do{switch(Q.tag){case 3:return Q.flags|=65536,$=U&-U,Q.lanes|=$,$=VY(Q.stateNode,Y,$),IQ(Q,$),!1;case 1:if(Z=Q.type,B=Q.stateNode,(Q.flags&128)===0&&(typeof Z.getDerivedStateFromError==="function"||B!==null&&typeof B.componentDidCatch==="function"&&(F2===null||!F2.has(B))))return Q.flags|=65536,U&=-U,Q.lanes|=U,U=AY(U),EY(U,$,Q,Y),IQ(Q,U),!1}Q=Q.return}while(Q!==null);return!1}function w5($,Z,Q,Y){Z.child=$===null?lz(Z,null,Q,Y):L7(Z,$.child,Q,Y)}function PH($,Z,Q,Y,U){Q=Q.render;var B=Z.ref;if("ref"in Y){var z={};for(var w in Y)w!=="ref"&&(z[w]=Y[w])}else z=Y;if(J7(Z),Y=eq($,Z,Q,z,B,U),w=ZY(),$!==null&&!e1)return JY($,Z,U),$8($,Z,U);return i0&&w&&yq(Z),Z.flags|=1,w5($,Z,Y,U),Z.child}function TH($,Z,Q,Y,U){if($===null){var B=Q.type;if(typeof B==="function"&&!kq(B)&&B.defaultProps===void 0&&Q.compare===null)return Q=t2(B),Z.tag=15,Z.type=Q,DY(Z,B),CH($,Z,Q,Y,U);return $=vq(Q.type,null,Y,Z,Z.mode,U),$.ref=Z.ref,$.return=Z,Z.child=$}if(B=$.child,!yY($,U)){var z=B.memoizedProps;if(Q=Q.compare,Q=Q!==null?Q:j$,Q(z,Y)&&$.ref===Z.ref)return $8($,Z,U)}return Z.flags|=1,$=a4(B,Y),$.ref=Z.ref,$.return=Z,Z.child=$}function CH($,Z,Q,Y,U){if($!==null){var B=$.memoizedProps;if(j$(B,Y)&&$.ref===Z.ref&&Z.type===$.type)if(e1=!1,Z.pendingProps=Y=B,yY($,U))($.flags&131072)!==0&&(e1=!0);else return Z.lanes=$.lanes,$8($,Z,U)}return SY($,Z,Q,Y,U)}function OH($,Z,Q,Y){var U=Y.children,B=$!==null?$.memoizedState:null;if($===null&&Z.stateNode===null&&(Z.stateNode={_visibility:RZ,_pendingMarkers:null,_retryCache:null,_transitions:null}),Y.mode==="hidden"){if((Z.flags&128)!==0){if(B=B!==null?B.baseLanes|Q:Q,$!==null){Y=Z.child=$.child;for(U=0;Y!==null;)U=U|Y.lanes|Y.childLanes,Y=Y.sibling;Y=U&~B}else Y=0,Z.child=null;return IH($,Z,B,Q,Y)}if((Q&536870912)!==0)Z.memoizedState={baseLanes:0,cachePool:null},$!==null&&_Q(Z,B!==null?B.cachePool:null),B!==null?xB(Z,B):oq(Z),mB(Z);else return Y=Z.lanes=536870912,IH($,Z,B!==null?B.baseLanes|Q:Q,Q,Y)}else B!==null?(_Q(Z,B.cachePool),xB(Z,B),p8(Z),Z.memoizedState=null):($!==null&&_Q(Z,null),oq(Z),p8(Z));return w5($,Z,U,Q),Z.child}function c$($,Z){return $!==null&&$.tag===22||Z.stateNode!==null||(Z.stateNode={_visibility:RZ,_pendingMarkers:null,_retryCache:null,_transitions:null}),Z.sibling}function IH($,Z,Q,Y,U){var B=lq();return B=B===null?null:{parent:a1._currentValue,pool:B},Z.memoizedState={baseLanes:Q,cachePool:B},$!==null&&_Q(Z,null),oq(Z),mB(Z),$!==null&&X9($,Z,Y,!0),Z.childLanes=U,null}function xQ($,Z){var Q=Z.hidden;return Q!==void 0&&console.error(`<Activity> doesn't accept a hidden prop. Use mode="hidden" instead.
|
|
130
130
|
- <Activity %s>
|
|
131
|
-
+ <Activity %s>`,Q===!0?"hidden":Q===!1?"hidden={false}":"hidden={...}",Q?'mode="hidden"':'mode="visible"'),Z=dQ({mode:Z.mode,children:Z.children},$.mode),Z.ref=$.ref,$.child=Z,Z.return=$,Z}function VH($,Z,Q){return
|
|
131
|
+
+ <Activity %s>`,Q===!0?"hidden":Q===!1?"hidden={false}":"hidden={...}",Q?'mode="hidden"':'mode="visible"'),Z=dQ({mode:Z.mode,children:Z.children},$.mode),Z.ref=$.ref,$.child=Z,Z.return=$,Z}function VH($,Z,Q){return L7(Z,$.child,null,Q),$=xQ(Z,Z.pendingProps),$.flags|=2,z6(Z),Z.memoizedState=null,$}function dP($,Z,Q){var Y=Z.pendingProps,U=(Z.flags&128)!==0;if(Z.flags&=-129,$===null){if(i0){if(Y.mode==="hidden")return $=xQ(Z,Y),Z.lanes=536870912,c$(null,$);if(iq(Z),($=V1)?(Q=iF($,y6),Q=Q!==null&&Q.data===E7?Q:null,Q!==null&&(Y={dehydrated:Q,treeContext:RB(),retryLane:536870912,hydrationErrors:null},Z.memoizedState=Y,Y=MB(Q),Y.return=Z,Z.child=Y,L5=Z,V1=null)):Q=null,Q===null)throw FQ(Z,$),g8(Z);return Z.lanes=536870912,null}return xQ(Z,Y)}var B=$.memoizedState;if(B!==null){var z=B.dehydrated;if(iq(Z),U)if(Z.flags&256)Z.flags&=-257,Z=VH($,Z,Q);else if(Z.memoizedState!==null)Z.child=$.child,Z.flags|=128,Z=null;else throw Error("Client rendering an Activity suspended it again. This is a bug in React.");else if(LB(),(Q&536870912)!==0&&sQ(Z),e1||X9($,Z,Q,!1),U=(Q&$.childLanes)!==0,e1||U){if(Y=_1,Y!==null&&(z=s2(Y,Q),z!==0&&z!==B.retryLane))throw B.retryLane=z,E5($,z),y1(Y,$,z),PN;nQ(),Z=VH($,Z,Q)}else $=B.treeContext,V1=w6(z.nextSibling),L5=Z,i0=!0,J2=null,f4=!1,P6=null,y6=!1,$!==null&&_B(Z,$),Z=xQ(Z,Y),Z.flags|=4096;return Z}return B=$.child,Y={mode:Y.mode,children:Y.children},(Q&536870912)!==0&&(Q&$.lanes)!==0&&sQ(Z),$=a4(B,Y),$.ref=Z.ref,Z.child=$,$.return=Z,$}function mQ($,Z){var Q=Z.ref;if(Q===null)$!==null&&$.ref!==null&&(Z.flags|=4194816);else{if(typeof Q!=="function"&&typeof Q!=="object")throw Error("Expected ref to be a function, an object returned by React.createRef(), or undefined/null.");if($===null||$.ref!==Q)Z.flags|=4194816}}function SY($,Z,Q,Y,U){if(Q.prototype&&typeof Q.prototype.render==="function"){var B=i(Q)||"Unknown";HM[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),HM[B]=!0)}if(Z.mode&D5&&G4.recordLegacyContextWarning(Z,null),$===null&&(DY(Z,Z.type),Q.contextTypes&&(B=i(Q)||"Unknown",WM[B]||(WM[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(Z),Q=eq($,Z,Q,Y,void 0,U),Y=ZY(),$!==null&&!e1)return JY($,Z,U),$8($,Z,U);return i0&&Y&&yq(Z),Z.flags|=1,w5($,Z,Q,U),Z.child}function AH($,Z,Q,Y,U,B){if(J7(Z),W8=-1,yZ=$!==null&&$.type!==Z.type,Z.updateQueue=null,Q=$Y(Z,Y,Q,U),dB($,Z),Y=ZY(),$!==null&&!e1)return JY($,Z,B),$8($,Z,B);return i0&&Y&&yq(Z),Z.flags|=1,w5($,Z,Q,B),Z.child}function EH($,Z,Q,Y,U){switch(H(Z)){case!1:var B=Z.stateNode,z=new Z.type(Z.memoizedProps,B.context).state;B.updater.enqueueSetState(B,z,null);break;case!0:Z.flags|=128,Z.flags|=65536,B=Error("Simulated error coming from DevTools");var w=U&-U;if(Z.lanes|=w,z=_1,z===null)throw Error("Expected a work-in-progress root. This is a bug in React. Please file an issue.");w=AY(w),EY(w,z,Z,H6(B,Z)),IQ(Z,w)}if(J7(Z),Z.stateNode===null){if(z=Z2,B=Q.contextType,"contextType"in Q&&B!==null&&(B===void 0||B.$$typeof!==S4)&&!KM.has(Q)&&(KM.add(Q),w=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===TX?" 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(Q)||"Component",w)),typeof B==="object"&&B!==null&&(z=D1(B)),B=new Q(Y,z),Z.mode&D5){P1(!0);try{B=new Q(Y,z)}finally{P1(!1)}}if(z=Z.memoizedState=B.state!==null&&B.state!==void 0?B.state:null,B.updater=_N,Z.stateNode=B,B._reactInternals=Z,B._reactInternalInstance=ZM,typeof Q.getDerivedStateFromProps==="function"&&z===null&&(z=i(Q)||"Component",QM.has(z)||(QM.add(z),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.",z,B.state===null?"null":"undefined",z))),typeof Q.getDerivedStateFromProps==="function"||typeof B.getSnapshotBeforeUpdate==="function"){var L=w=z=null;if(typeof B.componentWillMount==="function"&&B.componentWillMount.__suppressDeprecationWarning!==!0?z="componentWillMount":typeof B.UNSAFE_componentWillMount==="function"&&(z="UNSAFE_componentWillMount"),typeof B.componentWillReceiveProps==="function"&&B.componentWillReceiveProps.__suppressDeprecationWarning!==!0?w="componentWillReceiveProps":typeof B.UNSAFE_componentWillReceiveProps==="function"&&(w="UNSAFE_componentWillReceiveProps"),typeof B.componentWillUpdate==="function"&&B.componentWillUpdate.__suppressDeprecationWarning!==!0?L="componentWillUpdate":typeof B.UNSAFE_componentWillUpdate==="function"&&(L="UNSAFE_componentWillUpdate"),z!==null||w!==null||L!==null){B=i(Q)||"Component";var T=typeof Q.getDerivedStateFromProps==="function"?"getDerivedStateFromProps()":"getSnapshotBeforeUpdate()";qM.has(B)||(qM.add(B),console.error(`Unsafe legacy lifecycles will not be called for components using new component APIs.
|
|
132
132
|
|
|
133
133
|
%s uses %s but also contains the following legacy lifecycles:%s%s%s
|
|
134
134
|
|
|
@@ -136,8 +136,8 @@ The above lifecycles should be removed. Learn more about this warning here:
|
|
|
136
136
|
https://react.dev/link/unsafe-component-lifecycles`,B,T,z!==null?`
|
|
137
137
|
`+z:"",w!==null?`
|
|
138
138
|
`+w:"",L!==null?`
|
|
139
|
-
`+L:""))}}B=Z.stateNode,z=i(Q)||"Component",B.render||(Q.prototype&&typeof Q.prototype.render==="function"?console.error("No `render` method found on the %s instance: did you accidentally return an object from the constructor?",z):console.error("No `render` method found on the %s instance: you may have forgotten to define `render`.",z)),!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?",z),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.",z),B.contextType&&console.error("contextType was defined as an instance property on %s. Use a static property to define contextType instead.",z),Q.childContextTypes&&!UM.has(Q)&&(UM.add(Q),console.error("%s uses the legacy childContextTypes API which was removed in React 19. Use React.createContext() instead. (https://react.dev/link/legacy-context)",z)),Q.contextTypes&&!NM.has(Q)&&(NM.add(Q),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)",z)),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.",z),Q.prototype&&Q.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(Q)||"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()?",z),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().",z),typeof B.componentWillRecieveProps==="function"&&console.error("%s has a method called componentWillRecieveProps(). Did you mean componentWillReceiveProps()?",z),typeof B.UNSAFE_componentWillRecieveProps==="function"&&console.error("%s has a method called UNSAFE_componentWillRecieveProps(). Did you mean UNSAFE_componentWillReceiveProps()?",z),w=B.props!==Y,B.props!==void 0&&w&&console.error("When calling super() in `%s`, make sure to pass up the same props that your component's constructor was passed.",z),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.",z,z),typeof B.getSnapshotBeforeUpdate!=="function"||typeof B.componentDidUpdate==="function"||GM.has(Q)||(GM.add(Q),console.error("%s: getSnapshotBeforeUpdate() should be used with componentDidUpdate(). This component defines getSnapshotBeforeUpdate() only.",i(Q))),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.",z),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.",z),typeof Q.getSnapshotBeforeUpdate==="function"&&console.error("%s: getSnapshotBeforeUpdate() is defined as a static method and will be ignored. Instead, declare it as an instance method.",z),(w=B.state)&&(typeof w!=="object"||G5(w))&&console.error("%s.state: must be set to an object or null",z),typeof B.getChildContext==="function"&&typeof Q.childContextTypes!=="object"&&console.error("%s.getChildContext(): childContextTypes must be defined in order to use getChildContext().",z),B=Z.stateNode,B.props=Y,B.state=Z.memoizedState,B.refs={},sq(Z),z=Q.contextType,B.context=typeof z==="object"&&z!==null?D1(z):Z2,B.state===Y&&(z=i(Q)||"Component",YM.has(z)||(YM.add(z),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.",z))),Z.mode&D5&&G4.recordLegacyContextWarning(Z,B),G4.recordUnsafeLifecycleWarnings(Z,B),B.state=Z.memoizedState,z=Q.getDerivedStateFromProps,typeof z==="function"&&(IY(Z,Q,z,Y),B.state=Z.memoizedState),typeof Q.getDerivedStateFromProps==="function"||typeof B.getSnapshotBeforeUpdate==="function"||typeof B.UNSAFE_componentWillMount!=="function"&&typeof B.componentWillMount!=="function"||(z=B.state,typeof B.componentWillMount==="function"&&B.componentWillMount(),typeof B.UNSAFE_componentWillMount==="function"&&B.UNSAFE_componentWillMount(),z!==B.state&&(console.error("%s.componentWillMount(): Assigning directly to this.state is deprecated (except inside a component's constructor). Use setState instead.",d(Z)||"Component"),_N.enqueueReplaceState(B,B.state,null)),
|
|
140
|
-
%s.childContextTypes = ...`,Z.displayName||Z.name||"Component"),typeof Z.getDerivedStateFromProps==="function"&&($=i(Z)||"Unknown",zM[$]||(console.error("%s: Function components do not support getDerivedStateFromProps.",$),zM[$]=!0)),typeof Z.contextType==="object"&&Z.contextType!==null&&(Z=i(Z)||"Unknown",FM[Z]||(console.error("%s: Function components do not support contextType.",Z),FM[Z]=!0))}function jY($){return{baseLanes:$,cachePool:AB()}}function kY($,Z,Q){return $=$!==null?$.childLanes&~Q:0,Z&&($|=a5),$}function DH($,Z,Q){var Y,U=Z.pendingProps;K(Z)&&(Z.flags|=128);var B=!1,z=(Z.flags&128)!==0;if((Y=z)||(Y=$!==null&&$.memoizedState===null?!1:(c1.current&vZ)!==0),Y&&(B=!0,Z.flags&=-129),Y=(Z.flags&32)!==0,Z.flags&=-33,$===null){if(i0){if(B?d8(Z):p8(Z),($=V1)?(Q=iF($,y6),Q=Q!==null&&Q.data!==A7?Q:null,Q!==null&&(Y={dehydrated:Q,treeContext:RB(),retryLane:536870912,hydrationErrors:null},Z.memoizedState=Y,Y=MB(Q),Y.return=Z,Z.child=Y,L5=Z,V1=null)):Q=null,Q===null)throw FQ(Z,$),g8(Z);return BX(Q)?Z.lanes=32:Z.lanes=536870912,null}var w=U.children;if(U=U.fallback,B){p8(Z);var L=Z.mode;return w=dQ({mode:"hidden",children:w},L),U=t2(U,L,Q,null),w.return=Z,U.return=Z,w.sibling=U,Z.child=w,U=Z.child,U.memoizedState=jY(Q),U.childLanes=kY($,Y,Q),Z.memoizedState=TN,p$(null,U)}return d8(Z),vY(Z,w)}var T=$.memoizedState;if(T!==null){var b=T.dehydrated;if(b!==null){if(z)Z.flags&256?(d8(Z),Z.flags&=-257,Z=bY($,Z,Q)):Z.memoizedState!==null?(p8(Z),Z.child=$.child,Z.flags|=128,Z=null):(p8(Z),w=U.fallback,L=Z.mode,U=dQ({mode:"visible",children:U.children},L),w=t2(w,L,Q,null),w.flags|=2,U.return=Z,w.return=Z,U.sibling=w,Z.child=U,_7(Z,$.child,null,Q),U=Z.child,U.memoizedState=jY(Q),U.childLanes=kY($,Y,Q),Z.memoizedState=TN,Z=p$(null,U));else if(d8(Z),LB(),(Q&536870912)!==0&&sQ(Z),BX(b)){if(Y=b.nextSibling&&b.nextSibling.dataset,Y){w=Y.dgst;var f=Y.msg;L=Y.stck;var S=Y.cstck}B=f,Y=w,U=L,b=S,w=B,L=b,w=w?Error(w):Error("The server could not finish this Suspense boundary, likely due to an error during server rendering. Switched to client rendering."),w.stack=U||"",w.digest=Y,Y=L===void 0?null:L,U={value:w,source:null,stack:Y},typeof Y==="string"&&ZN.set(w,U),k$(U),Z=bY($,Z,Q)}else if(e1||Y9($,Z,Q,!1),Y=(Q&$.childLanes)!==0,e1||Y){if(Y=_1,Y!==null&&(U=r2(Y,Q),U!==0&&U!==T.retryLane))throw T.retryLane=U,E5($,U),y1(Y,$,U),PN;KX(b)||nQ(),Z=bY($,Z,Q)}else KX(b)?(Z.flags|=192,Z.child=$.child,Z=null):($=T.treeContext,V1=w6(b.nextSibling),L5=Z,i0=!0,J2=null,f4=!1,P6=null,y6=!1,$!==null&&_B(Z,$),Z=vY(Z,U.children),Z.flags|=4096);return Z}}if(B)return p8(Z),w=U.fallback,L=Z.mode,S=$.child,b=S.sibling,U=a4(S,{mode:"hidden",children:U.children}),U.subtreeFlags=S.subtreeFlags&65011712,b!==null?w=a4(b,w):(w=t2(w,L,Q,null),w.flags|=2),w.return=Z,U.return=Z,U.sibling=w,Z.child=U,p$(null,U),U=Z.child,w=$.child.memoizedState,w===null?w=jY(Q):(L=w.cachePool,L!==null?(S=a1._currentValue,L=L.parent!==S?{parent:S,pool:S}:L):L=AB(),w={baseLanes:w.baseLanes|Q,cachePool:L}),U.memoizedState=w,U.childLanes=kY($,Y,Q),Z.memoizedState=TN,p$($.child,U);return T!==null&&(Q&62914560)===Q&&(Q&$.lanes)!==0&&sQ(Z),d8(Z),Q=$.child,$=Q.sibling,Q=a4(Q,{mode:"visible",children:U.children}),Q.return=Z,Q.sibling=null,$!==null&&(Y=Z.deletions,Y===null?(Z.deletions=[$],Z.flags|=16):Y.push($)),Z.child=Q,Z.memoizedState=null,Q}function vY($,Z){return Z=dQ({mode:"visible",children:Z},$.mode),Z.return=$,$.child=Z}function dQ($,Z){return $=P(22,$,null,Z),$.lanes=0,$}function bY($,Z,Q){return _7(Z,$.child,null,Q),$=vY(Z,Z.pendingProps.children),$.flags|=2,Z.memoizedState=null,$}function jH($,Z,Q){$.lanes|=Z;var Y=$.alternate;Y!==null&&(Y.lanes|=Z),xq($.return,Z,Q)}function fY($,Z,Q,Y,U,B){var z=$.memoizedState;z===null?$.memoizedState={isBackwards:Z,rendering:null,renderingStartTime:0,last:Y,tail:Q,tailMode:U,treeForkCount:B}:(z.isBackwards=Z,z.rendering=null,z.renderingStartTime=0,z.last=Y,z.tail=Q,z.tailMode=U,z.treeForkCount=B)}function kH($,Z,Q){var Y=Z.pendingProps,U=Y.revealOrder,B=Y.tail,z=Y.children,w=c1.current;if((Y=(w&vZ)!==0)?(w=w&p9|vZ,Z.flags|=128):w&=p9,O0(c1,w,Z),w=U==null?"null":U,U!=="forwards"&&U!=="unstable_legacy-backwards"&&U!=="together"&&U!=="independent"&&!MM[w])if(MM[w]=!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(w=B==null?"null":B,!xG[w])if(B==null){if(U==="forwards"||U==="backwards"||U==="unstable_legacy-backwards")xG[w]=!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"?(xG[w]=!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"&&(xG[w]=!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")&&z!==void 0&&z!==null&&z!==!1)if(G5(z)){for(w=0;w<z.length;w++)if(!gB(z[w],w))break $}else if(w=t(z),typeof w==="function"){if(w=w.call(z))for(var L=w.next(),T=0;!L.done;L=w.next()){if(!gB(L.value,T))break $;T++}}else console.error('A single row was passed to a <SuspenseList revealOrder="%s" />. This is not useful since it needs multiple rows. Did you mean to pass multiple children or an array?',U);if(w5($,Z,z,Q),i0?(y8(),z=RZ):z=0,!Y&&$!==null&&($.flags&128)!==0)$:for($=Z.child;$!==null;){if($.tag===13)$.memoizedState!==null&&jH($,Q,Z);else if($.tag===19)jH($,Q,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":Q=Z.child;for(U=null;Q!==null;)$=Q.alternate,$!==null&&VQ($)===null&&(U=Q),Q=Q.sibling;Q=U,Q===null?(U=Z.child,Z.child=null):(U=Q.sibling,Q.sibling=null),fY(Z,!1,U,Q,B,z);break;case"backwards":case"unstable_legacy-backwards":Q=null,U=Z.child;for(Z.child=null;U!==null;){if($=U.alternate,$!==null&&VQ($)===null){Z.child=U;break}$=U.sibling,U.sibling=Q,Q=U,U=$}fY(Z,!0,Q,null,B,z);break;case"together":fY(Z,!1,null,null,void 0,z);break;default:Z.memoizedState=null}return Z.child}function $8($,Z,Q){if($!==null&&(Z.dependencies=$.dependencies),x5=-1,B2|=Z.lanes,(Q&Z.childLanes)===0)if($!==null){if(Y9($,Z,Q,!1),(Q&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,Q=a4($,$.pendingProps),Z.child=Q;for(Q.return=Z;$.sibling!==null;)$=$.sibling,Q=Q.sibling=a4($,$.pendingProps),Q.return=Z;Q.sibling=null}return Z.child}function yY($,Z){if(($.lanes&Z)!==0)return!0;return $=$.dependencies,$!==null&&zQ($)?!0:!1}function pP($,Z,Q){switch(Z.tag){case 3:l(Z,Z.stateNode.containerInfo),h8(Z,a1,$.memoizedState.cache),$7();break;case 27:case 5:a0(Z);break;case 4:l(Z,Z.stateNode.containerInfo);break;case 10:h8(Z,Z.type,Z.memoizedProps.value);break;case 12:(Q&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,iq(Z),null;break;case 13:if(Y=Z.memoizedState,Y!==null){if(Y.dehydrated!==null)return d8(Z),Z.flags|=128,null;if((Q&Z.child.childLanes)!==0)return DH($,Z,Q);return d8(Z),$=$8($,Z,Q),$!==null?$.sibling:null}d8(Z);break;case 19:var U=($.flags&128)!==0;if(Y=(Q&Z.childLanes)!==0,Y||(Y9($,Z,Q,!1),Y=(Q&Z.childLanes)!==0),U){if(Y)return kH($,Z,Q);Z.flags|=128}if(U=Z.memoizedState,U!==null&&(U.rendering=null,U.tail=null,U.lastEffect=null),O0(c1,c1.current,Z),Y)break;else return null;case 22:return Z.lanes=0,OH($,Z,Q,Z.pendingProps);case 24:h8(Z,a1,$.memoizedState.cache)}return $8($,Z,Q)}function gY($,Z,Q){if(Z._debugNeedsRemount&&$!==null){Q=vq(Z.type,Z.key,Z.pendingProps,Z._debugOwner||null,Z.mode,Z.lanes),Q._debugStack=Z._debugStack,Q._debugTask=Z._debugTask;var Y=Z.return;if(Y===null)throw Error("Cannot swap the root fiber.");if($.alternate=null,Z.alternate=null,Q.index=Z.index,Q.sibling=Z.sibling,Q.return=Z.return,Q.ref=Z.ref,Q._debugInfo=Z._debugInfo,Z===Y.child)Y.child=Q;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=Q}return Z=Y.deletions,Z===null?(Y.deletions=[$],Y.flags|=16):Z.push($),Q.flags|=2,Q}if($!==null)if($.memoizedProps!==Z.pendingProps||Z.type!==$.type)e1=!0;else{if(!yY($,Q)&&(Z.flags&128)===0)return e1=!1,pP($,Z,Q);e1=($.flags&131072)!==0?!0:!1}else{if(e1=!1,Y=i0)y8(),Y=(Z.flags&1048576)!==0;Y&&(Y=Z.index,y8(),wB(Z,RZ,Y))}switch(Z.lanes=0,Z.tag){case 16:$:if(Y=Z.pendingProps,$=u8(Z.elementType),Z.type=$,typeof $==="function")kq($)?(Y=Y7($,Y),Z.tag=1,Z.type=$=i2($),Z=EH(null,Z,$,Y,Q)):(Z.tag=0,DY(Z,$),Z.type=$=i2($),Z=SY(null,Z,$,Y,Q));else{if($!==void 0&&$!==null){if(U=$.$$typeof,U===qZ){Z.tag=11,Z.type=$=jq($),Z=PH(null,Z,$,Y,Q);break $}else if(U===NG){Z.tag=14,Z=TH(null,Z,$,Y,Q);break $}}throw Z="",$!==null&&typeof $==="object"&&$.$$typeof===R6&&(Z=" Did you wrap a component in React.lazy() more than once?"),Q=i($)||$,Error("Element type is invalid. Received a promise that resolves to: "+Q+". Lazy element type must resolve to a class or function."+Z)}return Z;case 0:return SY($,Z,Z.type,Z.pendingProps,Q);case 1:return Y=Z.type,U=Y7(Y,Z.pendingProps),EH($,Z,Y,U,Q);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,nq($,Z),u$(Z,Y,null,Q);var z=Z.memoizedState;if(Y=z.cache,h8(Z,a1,Y),Y!==B.cache&&mq(Z,[a1],Q,!0),h$(),Y=z.element,B.isDehydrated)if(B={element:Y,isDehydrated:!1,cache:z.cache},Z.updateQueue.baseState=B,Z.memoizedState=B,Z.flags&256){Z=SH($,Z,Y,Q);break $}else if(Y!==U){U=H6(Error("This root received an early update, before anything was able hydrate. Switched the entire root to client rendering."),Z),k$(U),Z=SH($,Z,Y,Q);break $}else{switch($=Z.stateNode.containerInfo,$.nodeType){case 9:$=$.body;break;default:$=$.nodeName==="HTML"?$.ownerDocument.body:$}V1=w6($.firstChild),L5=Z,i0=!0,J2=null,f4=!1,P6=null,y6=!0,Q=lz(Z,null,Y,Q);for(Z.child=Q;Q;)Q.flags=Q.flags&-3|4096,Q=Q.sibling}else{if($7(),Y===U){Z=$8($,Z,Q);break $}w5($,Z,Y,Q)}Z=Z.child}return Z;case 26:return mQ($,Z),$===null?(Q=QW(Z.type,null,Z.pendingProps,null))?Z.memoizedState=Q:i0||(Q=Z.type,$=Z.pendingProps,Y=v0(o8.current),Y=tQ(Y).createElement(Q),Y[_5]=Z,Y[g5]=$,R5(Y,Q,$),_0(Y),Z.stateNode=Y):Z.memoizedState=QW(Z.type,$.memoizedProps,Z.pendingProps,$.memoizedState),null;case 27:return a0(Z),$===null&&i0&&(Y=v0(o8.current),U=F0(),Y=Z.stateNode=ZW(Z.type,Z.pendingProps,Y,U,!1),f4||(U=pF(Y,Z.type,Z.pendingProps,U),U!==null&&(e2(Z,0).serverProps=U)),L5=Z,y6=!0,U=V1,s8(Z.type)?(lN=U,V1=w6(Y.firstChild)):V1=U),w5($,Z,Z.pendingProps.children,Q),mQ($,Z),$===null&&(Z.flags|=4194304),Z.child;case 5:return $===null&&i0&&(B=F0(),Y=Cq(Z.type,B.ancestorInfo),U=V1,(z=!U)||(z=jT(U,Z.type,Z.pendingProps,y6),z!==null?(Z.stateNode=z,f4||(B=pF(z,Z.type,Z.pendingProps,B),B!==null&&(e2(Z,0).serverProps=B)),L5=Z,V1=w6(z.firstChild),y6=!1,B=!0):B=!1,z=!B),z&&(Y&&FQ(Z,U),g8(Z))),a0(Z),U=Z.type,B=Z.pendingProps,z=$!==null?$.memoizedProps:null,Y=B.children,NX(U,B)?Y=null:z!==null&&NX(U,z)&&(Z.flags|=32),Z.memoizedState!==null&&(U=eq($,Z,fP,null,null,Q),iZ._currentValue=U),mQ($,Z),w5($,Z,Y,Q),Z.child;case 6:return $===null&&i0&&(Q=Z.pendingProps,$=F0(),Y=$.ancestorInfo.current,Q=Y!=null?QQ(Q,Y.tag,$.ancestorInfo.implicitRootScope):!0,$=V1,(Y=!$)||(Y=kT($,Z.pendingProps,y6),Y!==null?(Z.stateNode=Y,L5=Z,V1=null,Y=!0):Y=!1,Y=!Y),Y&&(Q&&FQ(Z,$),g8(Z))),null;case 13:return DH($,Z,Q);case 4:return l(Z,Z.stateNode.containerInfo),Y=Z.pendingProps,$===null?Z.child=_7(Z,null,Y,Q):w5($,Z,Y,Q),Z.child;case 11:return PH($,Z,Z.type,Z.pendingProps,Q);case 7:return w5($,Z,Z.pendingProps,Q),Z.child;case 8:return w5($,Z,Z.pendingProps.children,Q),Z.child;case 12:return Z.flags|=4,Z.flags|=2048,Y=Z.stateNode,Y.effectDuration=-0,Y.passiveEffectDuration=-0,w5($,Z,Z.pendingProps.children,Q),Z.child;case 10:return Y=Z.type,U=Z.pendingProps,B=U.value,"value"in U||wM||(wM=!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),w5($,Z,U.children,Q),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."),Z7(Z),U=D1(U),Y=UN(Y,U,void 0),Z.flags|=1,w5($,Z,Y,Q),Z.child;case 14:return TH($,Z,Z.type,Z.pendingProps,Q);case 15:return CH($,Z,Z.type,Z.pendingProps,Q);case 19:return kH($,Z,Q);case 31:return dP($,Z,Q);case 22:return OH($,Z,Q,Z.pendingProps);case 24:return Z7(Z),Y=D1(a1),$===null?(U=lq(),U===null&&(U=_1,B=dq(),U.pooledCache=B,J7(B),B!==null&&(U.pooledCacheLanes|=Q),U=B),Z.memoizedState={parent:Y,cache:U},sq(Z),h8(Z,a1,U)):(($.lanes&Q)!==0&&(nq($,Z),u$(Z,null,null,Q),h$()),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,a1,Y)):(Y=B.cache,h8(Z,a1,Y),Y!==U.cache&&mq(Z,[a1],Q,!0))),w5($,Z,Z.pendingProps.children,Q),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 Z8($){$.flags|=4}function hY($,Z,Q,Y,U){if(Z=($.mode&UO)!==V0)Z=!1;if(Z){if($.flags|=16777216,(U&335544128)===U)if($.stateNode.complete)$.flags|=8192;else if(BF())$.flags|=8192;else throw R7=bG,BN}else $.flags&=-16777217}function vH($,Z){if(Z.type!=="stylesheet"||(Z.state.loading&m6)!==D7)$.flags&=-16777217;else if($.flags|=16777216,!NW(Z))if(BF())$.flags|=8192;else throw R7=bG,BN}function pQ($,Z){Z!==null&&($.flags|=4),$.flags&16384&&(Z=$.tag!==22?$9():536870912,$.lanes|=Z,O7|=Z)}function c$($,Z){if(!i0)switch($.tailMode){case"hidden":Z=$.tail;for(var Q=null;Z!==null;)Z.alternate!==null&&(Q=Z),Z=Z.sibling;Q===null?$.tail=null:Q.sibling=null;break;case"collapsed":Q=$.tail;for(var Y=null;Q!==null;)Q.alternate!==null&&(Y=Q),Q=Q.sibling;Y===null?Z||$.tail===null?$.tail=null:$.tail.sibling=null:Y.sibling=null}}function T1($){var Z=$.alternate!==null&&$.alternate.child===$.child,Q=0,Y=0;if(Z)if(($.mode&g0)!==V0){for(var{selfBaseDuration:U,child:B}=$;B!==null;)Q|=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;)Q|=U.lanes|U.childLanes,Y|=U.subtreeFlags&65011712,Y|=U.flags&65011712,U.return=$,U=U.sibling;else if(($.mode&g0)!==V0){U=$.actualDuration,B=$.selfBaseDuration;for(var z=$.child;z!==null;)Q|=z.lanes|z.childLanes,Y|=z.subtreeFlags,Y|=z.flags,U+=z.actualDuration,B+=z.treeBaseDuration,z=z.sibling;$.actualDuration=U,$.treeBaseDuration=B}else for(U=$.child;U!==null;)Q|=U.lanes|U.childLanes,Y|=U.subtreeFlags,Y|=U.flags,U.return=$,U=U.sibling;return $.subtreeFlags|=Y,$.childLanes=Q,Z}function cP($,Z,Q){var Y=Z.pendingProps;switch(gq(Z),Z.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return T1(Z),null;case 1:return T1(Z),null;case 3:if(Q=Z.stateNode,Y=null,$!==null&&(Y=$.memoizedState.cache),Z.memoizedState.cache!==Y&&(Z.flags|=2048),t4(a1,Z),Y0(Z),Q.pendingContext&&(Q.context=Q.pendingContext,Q.pendingContext=null),$===null||$.child===null)q9(Z)?(uq(),Z8(Z)):$===null||$.memoizedState.isDehydrated&&(Z.flags&256)===0||(Z.flags|=1024,hq());return T1(Z),null;case 26:var{type:U,memoizedState:B}=Z;return $===null?(Z8(Z),B!==null?(T1(Z),vH(Z,B)):(T1(Z),hY(Z,U,null,Y,Q))):B?B!==$.memoizedState?(Z8(Z),T1(Z),vH(Z,B)):(T1(Z),Z.flags&=-16777217):($=$.memoizedProps,$!==Y&&Z8(Z),T1(Z),hY(Z,U,$,Y,Q)),null;case 27:if(d0(Z),Q=v0(o8.current),U=Z.type,$!==null&&Z.stateNode!=null)$.memoizedProps!==Y&&Z8(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 T1(Z),null}$=F0(),q9(Z)?PB(Z,$):($=ZW(U,Y,Q,$,!0),Z.stateNode=$,Z8(Z))}return T1(Z),null;case 5:if(d0(Z),U=Z.type,$!==null&&Z.stateNode!=null)$.memoizedProps!==Y&&Z8(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 T1(Z),null}var z=F0();if(q9(Z))PB(Z,z);else{switch(B=v0(o8.current),Cq(U,z.ancestorInfo),z=z.context,B=tQ(B),z){case Z$:B=B.createElementNS(I9,U);break;case Y3:B=B.createElementNS(zG,U);break;default:switch(U){case"svg":B=B.createElementNS(I9,U);break;case"math":B=B.createElementNS(zG,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]"||Z4.call(mM,U)||(mM[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[_5]=Z,B[g5]=Y;$:for(z=Z.child;z!==null;){if(z.tag===5||z.tag===6)B.appendChild(z.stateNode);else if(z.tag!==4&&z.tag!==27&&z.child!==null){z.child.return=z,z=z.child;continue}if(z===Z)break $;for(;z.sibling===null;){if(z.return===null||z.return===Z)break $;z=z.return}z.sibling.return=z.return,z=z.sibling}Z.stateNode=B;$:switch(R5(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&&Z8(Z)}}return T1(Z),hY(Z,Z.type,$===null?null:$.memoizedProps,Z.pendingProps,Q),null;case 6:if($&&Z.stateNode!=null)$.memoizedProps!==Y&&Z8(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($=v0(o8.current),Q=F0(),q9(Z)){if($=Z.stateNode,Q=Z.memoizedProps,U=!f4,Y=null,B=L5,B!==null)switch(B.tag){case 3:U&&(U=eF($,Q,Y),U!==null&&(e2(Z,0).serverProps=U));break;case 27:case 5:Y=B.memoizedProps,U&&(U=eF($,Q,Y),U!==null&&(e2(Z,0).serverProps=U))}$[_5]=Z,$=$.nodeValue===Q||Y!==null&&Y.suppressHydrationWarning===!0||hF($.nodeValue,Q)?!0:!1,$||g8(Z,!0)}else U=Q.ancestorInfo.current,U!=null&&QQ(Y,U.tag,Q.ancestorInfo.implicitRootScope),$=tQ($).createTextNode(Y),$[_5]=Z,Z.stateNode=$}return T1(Z),null;case 31:if(Q=Z.memoizedState,$===null||$.memoizedState!==null){if(Y=q9(Z),Q!==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.");$[_5]=Z,T1(Z),(Z.mode&g0)!==V0&&Q!==null&&($=Z.child,$!==null&&(Z.treeBaseDuration-=$.treeBaseDuration))}else uq(),$7(),(Z.flags&128)===0&&(Q=Z.memoizedState=null),Z.flags|=4,T1(Z),(Z.mode&g0)!==V0&&Q!==null&&($=Z.child,$!==null&&(Z.treeBaseDuration-=$.treeBaseDuration));$=!1}else Q=hq(),$!==null&&$.memoizedState!==null&&($.memoizedState.hydrationErrors=Q),$=!0;if(!$){if(Z.flags&256)return z6(Z),Z;return z6(Z),null}if((Z.flags&128)!==0)throw Error("Client rendering an Activity suspended it again. This is a bug in React.")}return T1(Z),null;case 13:if(Y=Z.memoizedState,$===null||$.memoizedState!==null&&$.memoizedState.dehydrated!==null){if(U=Y,B=q9(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[_5]=Z,T1(Z),(Z.mode&g0)!==V0&&U!==null&&(U=Z.child,U!==null&&(Z.treeBaseDuration-=U.treeBaseDuration))}else uq(),$7(),(Z.flags&128)===0&&(U=Z.memoizedState=null),Z.flags|=4,T1(Z),(Z.mode&g0)!==V0&&U!==null&&(U=Z.child,U!==null&&(Z.treeBaseDuration-=U.treeBaseDuration));U=!1}else U=hq(),$!==null&&$.memoizedState!==null&&($.memoizedState.hydrationErrors=U),U=!0;if(!U){if(Z.flags&256)return z6(Z),Z;return z6(Z),null}}if(z6(Z),(Z.flags&128)!==0)return Z.lanes=Q,(Z.mode&g0)!==V0&&f$(Z),Z;return Q=Y!==null,$=$!==null&&$.memoizedState!==null,Q&&(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)),Q!==$&&Q&&(Z.child.flags|=8192),pQ(Z,Z.updateQueue),T1(Z),(Z.mode&g0)!==V0&&Q&&($=Z.child,$!==null&&(Z.treeBaseDuration-=$.treeBaseDuration)),null;case 4:return Y0(Z),$===null&&ZX(Z.stateNode.containerInfo),T1(Z),null;case 10:return t4(Z.type,Z),T1(Z),null;case 19:if(P0(c1,Z),Y=Z.memoizedState,Y===null)return T1(Z),null;if(U=(Z.flags&128)!==0,B=Y.rendering,B===null)if(U)c$(Y,!1);else{if(v1!==M8||$!==null&&($.flags&128)!==0)for($=Z.child;$!==null;){if(B=VQ($),B!==null){Z.flags|=128,c$(Y,!1),$=B.updateQueue,Z.updateQueue=$,pQ(Z,$),Z.subtreeFlags=0,$=Q;for(Q=Z.child;Q!==null;)zB(Q,$),Q=Q.sibling;return O0(c1,c1.current&p9|vZ,Z),i0&&i4(Z,Y.treeForkCount),Z.child}$=$.sibling}Y.tail!==null&&B5()>sG&&(Z.flags|=128,U=!0,c$(Y,!1),Z.lanes=4194304)}else{if(!U)if($=VQ(B),$!==null){if(Z.flags|=128,U=!0,$=$.updateQueue,Z.updateQueue=$,pQ(Z,$),c$(Y,!0),Y.tail===null&&Y.tailMode==="hidden"&&!B.alternate&&!i0)return T1(Z),null}else 2*B5()-Y.renderingStartTime>sG&&Q!==536870912&&(Z.flags|=128,U=!0,c$(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=B5(),$.sibling=null,Q=c1.current,Q=U?Q&p9|vZ:Q&p9,O0(c1,Q,Z),i0&&i4(Z,Y.treeForkCount),$;return T1(Z),null;case 22:case 23:return z6(Z),aq(Z),Y=Z.memoizedState!==null,$!==null?$.memoizedState!==null!==Y&&(Z.flags|=8192):Y&&(Z.flags|=8192),Y?(Q&536870912)!==0&&(Z.flags&128)===0&&(T1(Z),Z.subtreeFlags&6&&(Z.flags|=8192)):T1(Z),Q=Z.updateQueue,Q!==null&&pQ(Z,Q.retryQueue),Q=null,$!==null&&$.memoizedState!==null&&$.memoizedState.cachePool!==null&&(Q=$.memoizedState.cachePool.pool),Y=null,Z.memoizedState!==null&&Z.memoizedState.cachePool!==null&&(Y=Z.memoizedState.cachePool.pool),Y!==Q&&(Z.flags|=2048),$!==null&&P0(M7,Z),null;case 24:return Q=null,$!==null&&(Q=$.memoizedState.cache),Z.memoizedState.cache!==Q&&(Z.flags|=2048),t4(a1,Z),T1(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 lP($,Z){switch(gq(Z),Z.tag){case 1:return $=Z.flags,$&65536?(Z.flags=$&-65537|128,(Z.mode&g0)!==V0&&f$(Z),Z):null;case 3:return t4(a1,Z),Y0(Z),$=Z.flags,($&65536)!==0&&($&128)===0?(Z.flags=$&-65537|128,Z):null;case 26:case 27:case 5:return d0(Z),null;case 31:if(Z.memoizedState!==null){if(z6(Z),Z.alternate===null)throw Error("Threw in newly mounted dehydrated component. This is likely a bug in React. Please file an issue.");$7()}return $=Z.flags,$&65536?(Z.flags=$&-65537|128,(Z.mode&g0)!==V0&&f$(Z),Z):null;case 13:if(z6(Z),$=Z.memoizedState,$!==null&&$.dehydrated!==null){if(Z.alternate===null)throw Error("Threw in newly mounted dehydrated component. This is likely a bug in React. Please file an issue.");$7()}return $=Z.flags,$&65536?(Z.flags=$&-65537|128,(Z.mode&g0)!==V0&&f$(Z),Z):null;case 19:return P0(c1,Z),null;case 4:return Y0(Z),null;case 10:return t4(Z.type,Z),null;case 22:case 23:return z6(Z),aq(Z),$!==null&&P0(M7,Z),$=Z.flags,$&65536?(Z.flags=$&-65537|128,(Z.mode&g0)!==V0&&f$(Z),Z):null;case 24:return t4(a1,Z),null;case 25:return null;default:return null}}function bH($,Z){switch(gq(Z),Z.tag){case 3:t4(a1,Z),Y0(Z);break;case 26:case 27:case 5:d0(Z);break;case 4:Y0(Z);break;case 31:Z.memoizedState!==null&&z6(Z);break;case 13:z6(Z);break;case 19:P0(c1,Z);break;case 10:t4(Z.type,Z);break;case 22:case 23:z6(Z),aq(Z),$!==null&&P0(M7,Z);break;case 24:t4(a1,Z)}}function T4($){return($.mode&g0)!==V0}function fH($,Z){T4($)?(P4(),l$(Z,$),L4()):l$(Z,$)}function uY($,Z,Q){T4($)?(P4(),B9(Q,$,Z),L4()):B9(Q,$,Z)}function l$($,Z){try{var Q=Z.updateQueue,Y=Q!==null?Q.lastEffect:null;if(Y!==null){var U=Y.next;Q=U;do{if((Q.tag&$)===$&&(Y=void 0,($&m5)!==yG&&(t9=!0),Y=q0(Z,WO,Q),($&m5)!==yG&&(t9=!1),Y!==void 0&&typeof Y!=="function")){var B=void 0;B=(Q.tag&C6)!==0?"useLayoutEffect":(Q.tag&m5)!==0?"useInsertionEffect":"useEffect";var z=void 0;z=Y===null?" You returned null. If your effect does not require clean up, return undefined (or nothing).":typeof Y.then==="function"?`
|
|
139
|
+
`+L:""))}}B=Z.stateNode,z=i(Q)||"Component",B.render||(Q.prototype&&typeof Q.prototype.render==="function"?console.error("No `render` method found on the %s instance: did you accidentally return an object from the constructor?",z):console.error("No `render` method found on the %s instance: you may have forgotten to define `render`.",z)),!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?",z),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.",z),B.contextType&&console.error("contextType was defined as an instance property on %s. Use a static property to define contextType instead.",z),Q.childContextTypes&&!UM.has(Q)&&(UM.add(Q),console.error("%s uses the legacy childContextTypes API which was removed in React 19. Use React.createContext() instead. (https://react.dev/link/legacy-context)",z)),Q.contextTypes&&!NM.has(Q)&&(NM.add(Q),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)",z)),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.",z),Q.prototype&&Q.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(Q)||"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()?",z),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().",z),typeof B.componentWillRecieveProps==="function"&&console.error("%s has a method called componentWillRecieveProps(). Did you mean componentWillReceiveProps()?",z),typeof B.UNSAFE_componentWillRecieveProps==="function"&&console.error("%s has a method called UNSAFE_componentWillRecieveProps(). Did you mean UNSAFE_componentWillReceiveProps()?",z),w=B.props!==Y,B.props!==void 0&&w&&console.error("When calling super() in `%s`, make sure to pass up the same props that your component's constructor was passed.",z),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.",z,z),typeof B.getSnapshotBeforeUpdate!=="function"||typeof B.componentDidUpdate==="function"||GM.has(Q)||(GM.add(Q),console.error("%s: getSnapshotBeforeUpdate() should be used with componentDidUpdate(). This component defines getSnapshotBeforeUpdate() only.",i(Q))),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.",z),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.",z),typeof Q.getSnapshotBeforeUpdate==="function"&&console.error("%s: getSnapshotBeforeUpdate() is defined as a static method and will be ignored. Instead, declare it as an instance method.",z),(w=B.state)&&(typeof w!=="object"||G5(w))&&console.error("%s.state: must be set to an object or null",z),typeof B.getChildContext==="function"&&typeof Q.childContextTypes!=="object"&&console.error("%s.getChildContext(): childContextTypes must be defined in order to use getChildContext().",z),B=Z.stateNode,B.props=Y,B.state=Z.memoizedState,B.refs={},sq(Z),z=Q.contextType,B.context=typeof z==="object"&&z!==null?D1(z):Z2,B.state===Y&&(z=i(Q)||"Component",YM.has(z)||(YM.add(z),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.",z))),Z.mode&D5&&G4.recordLegacyContextWarning(Z,B),G4.recordUnsafeLifecycleWarnings(Z,B),B.state=Z.memoizedState,z=Q.getDerivedStateFromProps,typeof z==="function"&&(IY(Z,Q,z,Y),B.state=Z.memoizedState),typeof Q.getDerivedStateFromProps==="function"||typeof B.getSnapshotBeforeUpdate==="function"||typeof B.UNSAFE_componentWillMount!=="function"&&typeof B.componentWillMount!=="function"||(z=B.state,typeof B.componentWillMount==="function"&&B.componentWillMount(),typeof B.UNSAFE_componentWillMount==="function"&&B.UNSAFE_componentWillMount(),z!==B.state&&(console.error("%s.componentWillMount(): Assigning directly to this.state is deprecated (except inside a component's constructor). Use setState instead.",d(Z)||"Component"),_N.enqueueReplaceState(B,B.state,null)),x$(Z,Y,B,U),u$(),B.state=Z.memoizedState),typeof B.componentDidMount==="function"&&(Z.flags|=4194308),(Z.mode&Q4)!==V0&&(Z.flags|=134217728),B=!0}else if($===null){B=Z.stateNode;var b=Z.memoizedProps;w=X7(Q,b),B.props=w;var f=B.context;L=Q.contextType,z=Z2,typeof L==="object"&&L!==null&&(z=D1(L)),T=Q.getDerivedStateFromProps,L=typeof T==="function"||typeof B.getSnapshotBeforeUpdate==="function",b=Z.pendingProps!==b,L||typeof B.UNSAFE_componentWillReceiveProps!=="function"&&typeof B.componentWillReceiveProps!=="function"||(b||f!==z)&&MH(Z,B,Y,z),N2=!1;var S=Z.memoizedState;B.state=S,x$(Z,Y,B,U),u$(),f=Z.memoizedState,b||S!==f||N2?(typeof T==="function"&&(IY(Z,Q,T,Y),f=Z.memoizedState),(w=N2||zH(Z,Q,w,Y,S,f,z))?(L||typeof B.UNSAFE_componentWillMount!=="function"&&typeof B.componentWillMount!=="function"||(typeof B.componentWillMount==="function"&&B.componentWillMount(),typeof B.UNSAFE_componentWillMount==="function"&&B.UNSAFE_componentWillMount()),typeof B.componentDidMount==="function"&&(Z.flags|=4194308),(Z.mode&Q4)!==V0&&(Z.flags|=134217728)):(typeof B.componentDidMount==="function"&&(Z.flags|=4194308),(Z.mode&Q4)!==V0&&(Z.flags|=134217728),Z.memoizedProps=Y,Z.memoizedState=f),B.props=Y,B.state=f,B.context=z,B=w):(typeof B.componentDidMount==="function"&&(Z.flags|=4194308),(Z.mode&Q4)!==V0&&(Z.flags|=134217728),B=!1)}else{B=Z.stateNode,nq($,Z),z=Z.memoizedProps,L=X7(Q,z),B.props=L,T=Z.pendingProps,S=B.context,f=Q.contextType,w=Z2,typeof f==="object"&&f!==null&&(w=D1(f)),b=Q.getDerivedStateFromProps,(f=typeof b==="function"||typeof B.getSnapshotBeforeUpdate==="function")||typeof B.UNSAFE_componentWillReceiveProps!=="function"&&typeof B.componentWillReceiveProps!=="function"||(z!==T||S!==w)&&MH(Z,B,Y,w),N2=!1,S=Z.memoizedState,B.state=S,x$(Z,Y,B,U),u$();var g=Z.memoizedState;z!==T||S!==g||N2||$!==null&&$.dependencies!==null&&zQ($.dependencies)?(typeof b==="function"&&(IY(Z,Q,b,Y),g=Z.memoizedState),(L=N2||zH(Z,Q,L,Y,S,g,w)||$!==null&&$.dependencies!==null&&zQ($.dependencies))?(f||typeof B.UNSAFE_componentWillUpdate!=="function"&&typeof B.componentWillUpdate!=="function"||(typeof B.componentWillUpdate==="function"&&B.componentWillUpdate(Y,g,w),typeof B.UNSAFE_componentWillUpdate==="function"&&B.UNSAFE_componentWillUpdate(Y,g,w)),typeof B.componentDidUpdate==="function"&&(Z.flags|=4),typeof B.getSnapshotBeforeUpdate==="function"&&(Z.flags|=1024)):(typeof B.componentDidUpdate!=="function"||z===$.memoizedProps&&S===$.memoizedState||(Z.flags|=4),typeof B.getSnapshotBeforeUpdate!=="function"||z===$.memoizedProps&&S===$.memoizedState||(Z.flags|=1024),Z.memoizedProps=Y,Z.memoizedState=g),B.props=Y,B.state=g,B.context=w,B=L):(typeof B.componentDidUpdate!=="function"||z===$.memoizedProps&&S===$.memoizedState||(Z.flags|=4),typeof B.getSnapshotBeforeUpdate!=="function"||z===$.memoizedProps&&S===$.memoizedState||(Z.flags|=1024),B=!1)}if(w=B,mQ($,Z),z=(Z.flags&128)!==0,w||z){if(w=Z.stateNode,e7(Z),z&&typeof Q.getDerivedStateFromError!=="function")Q=null,x5=-1;else if(Q=jz(w),Z.mode&D5){P1(!0);try{jz(w)}finally{P1(!1)}}Z.flags|=1,$!==null&&z?(Z.child=L7(Z,$.child,null,U),Z.child=L7(Z,null,Q,U)):w5($,Z,Q,U),Z.memoizedState=w.state,$=Z.child}else $=$8($,Z,U);return U=Z.stateNode,B&&U.props!==Y&&(n9||console.error("It looks like %s is reassigning its own `this.props` while rendering. This is not supported and can lead to confusing bugs.",d(Z)||"a component"),n9=!0),$}function SH($,Z,Q,Y){return Z7(),Z.flags|=256,w5($,Z,Q,Y),Z.child}function DY($,Z){Z&&Z.childContextTypes&&console.error(`childContextTypes cannot be defined on a function component.
|
|
140
|
+
%s.childContextTypes = ...`,Z.displayName||Z.name||"Component"),typeof Z.getDerivedStateFromProps==="function"&&($=i(Z)||"Unknown",zM[$]||(console.error("%s: Function components do not support getDerivedStateFromProps.",$),zM[$]=!0)),typeof Z.contextType==="object"&&Z.contextType!==null&&(Z=i(Z)||"Unknown",FM[Z]||(console.error("%s: Function components do not support contextType.",Z),FM[Z]=!0))}function jY($){return{baseLanes:$,cachePool:AB()}}function kY($,Z,Q){return $=$!==null?$.childLanes&~Q:0,Z&&($|=a5),$}function DH($,Z,Q){var Y,U=Z.pendingProps;K(Z)&&(Z.flags|=128);var B=!1,z=(Z.flags&128)!==0;if((Y=z)||(Y=$!==null&&$.memoizedState===null?!1:(c1.current&bZ)!==0),Y&&(B=!0,Z.flags&=-129),Y=(Z.flags&32)!==0,Z.flags&=-33,$===null){if(i0){if(B?d8(Z):p8(Z),($=V1)?(Q=iF($,y6),Q=Q!==null&&Q.data!==E7?Q:null,Q!==null&&(Y={dehydrated:Q,treeContext:RB(),retryLane:536870912,hydrationErrors:null},Z.memoizedState=Y,Y=MB(Q),Y.return=Z,Z.child=Y,L5=Z,V1=null)):Q=null,Q===null)throw FQ(Z,$),g8(Z);return BX(Q)?Z.lanes=32:Z.lanes=536870912,null}var w=U.children;if(U=U.fallback,B){p8(Z);var L=Z.mode;return w=dQ({mode:"hidden",children:w},L),U=e2(U,L,Q,null),w.return=Z,U.return=Z,w.sibling=U,Z.child=w,U=Z.child,U.memoizedState=jY(Q),U.childLanes=kY($,Y,Q),Z.memoizedState=TN,c$(null,U)}return d8(Z),vY(Z,w)}var T=$.memoizedState;if(T!==null){var b=T.dehydrated;if(b!==null){if(z)Z.flags&256?(d8(Z),Z.flags&=-257,Z=bY($,Z,Q)):Z.memoizedState!==null?(p8(Z),Z.child=$.child,Z.flags|=128,Z=null):(p8(Z),w=U.fallback,L=Z.mode,U=dQ({mode:"visible",children:U.children},L),w=e2(w,L,Q,null),w.flags|=2,U.return=Z,w.return=Z,U.sibling=w,Z.child=U,L7(Z,$.child,null,Q),U=Z.child,U.memoizedState=jY(Q),U.childLanes=kY($,Y,Q),Z.memoizedState=TN,Z=c$(null,U));else if(d8(Z),LB(),(Q&536870912)!==0&&sQ(Z),BX(b)){if(Y=b.nextSibling&&b.nextSibling.dataset,Y){w=Y.dgst;var f=Y.msg;L=Y.stck;var S=Y.cstck}B=f,Y=w,U=L,b=S,w=B,L=b,w=w?Error(w):Error("The server could not finish this Suspense boundary, likely due to an error during server rendering. Switched to client rendering."),w.stack=U||"",w.digest=Y,Y=L===void 0?null:L,U={value:w,source:null,stack:Y},typeof Y==="string"&&ZN.set(w,U),v$(U),Z=bY($,Z,Q)}else if(e1||X9($,Z,Q,!1),Y=(Q&$.childLanes)!==0,e1||Y){if(Y=_1,Y!==null&&(U=s2(Y,Q),U!==0&&U!==T.retryLane))throw T.retryLane=U,E5($,U),y1(Y,$,U),PN;KX(b)||nQ(),Z=bY($,Z,Q)}else KX(b)?(Z.flags|=192,Z.child=$.child,Z=null):($=T.treeContext,V1=w6(b.nextSibling),L5=Z,i0=!0,J2=null,f4=!1,P6=null,y6=!1,$!==null&&_B(Z,$),Z=vY(Z,U.children),Z.flags|=4096);return Z}}if(B)return p8(Z),w=U.fallback,L=Z.mode,S=$.child,b=S.sibling,U=a4(S,{mode:"hidden",children:U.children}),U.subtreeFlags=S.subtreeFlags&65011712,b!==null?w=a4(b,w):(w=e2(w,L,Q,null),w.flags|=2),w.return=Z,U.return=Z,U.sibling=w,Z.child=U,c$(null,U),U=Z.child,w=$.child.memoizedState,w===null?w=jY(Q):(L=w.cachePool,L!==null?(S=a1._currentValue,L=L.parent!==S?{parent:S,pool:S}:L):L=AB(),w={baseLanes:w.baseLanes|Q,cachePool:L}),U.memoizedState=w,U.childLanes=kY($,Y,Q),Z.memoizedState=TN,c$($.child,U);return T!==null&&(Q&62914560)===Q&&(Q&$.lanes)!==0&&sQ(Z),d8(Z),Q=$.child,$=Q.sibling,Q=a4(Q,{mode:"visible",children:U.children}),Q.return=Z,Q.sibling=null,$!==null&&(Y=Z.deletions,Y===null?(Z.deletions=[$],Z.flags|=16):Y.push($)),Z.child=Q,Z.memoizedState=null,Q}function vY($,Z){return Z=dQ({mode:"visible",children:Z},$.mode),Z.return=$,$.child=Z}function dQ($,Z){return $=P(22,$,null,Z),$.lanes=0,$}function bY($,Z,Q){return L7(Z,$.child,null,Q),$=vY(Z,Z.pendingProps.children),$.flags|=2,Z.memoizedState=null,$}function jH($,Z,Q){$.lanes|=Z;var Y=$.alternate;Y!==null&&(Y.lanes|=Z),xq($.return,Z,Q)}function fY($,Z,Q,Y,U,B){var z=$.memoizedState;z===null?$.memoizedState={isBackwards:Z,rendering:null,renderingStartTime:0,last:Y,tail:Q,tailMode:U,treeForkCount:B}:(z.isBackwards=Z,z.rendering=null,z.renderingStartTime=0,z.last=Y,z.tail=Q,z.tailMode=U,z.treeForkCount=B)}function kH($,Z,Q){var Y=Z.pendingProps,U=Y.revealOrder,B=Y.tail,z=Y.children,w=c1.current;if((Y=(w&bZ)!==0)?(w=w&c9|bZ,Z.flags|=128):w&=c9,O0(c1,w,Z),w=U==null?"null":U,U!=="forwards"&&U!=="unstable_legacy-backwards"&&U!=="together"&&U!=="independent"&&!MM[w])if(MM[w]=!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(w=B==null?"null":B,!xG[w])if(B==null){if(U==="forwards"||U==="backwards"||U==="unstable_legacy-backwards")xG[w]=!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"?(xG[w]=!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"&&(xG[w]=!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")&&z!==void 0&&z!==null&&z!==!1)if(G5(z)){for(w=0;w<z.length;w++)if(!gB(z[w],w))break $}else if(w=t(z),typeof w==="function"){if(w=w.call(z))for(var L=w.next(),T=0;!L.done;L=w.next()){if(!gB(L.value,T))break $;T++}}else console.error('A single row was passed to a <SuspenseList revealOrder="%s" />. This is not useful since it needs multiple rows. Did you mean to pass multiple children or an array?',U);if(w5($,Z,z,Q),i0?(y8(),z=_Z):z=0,!Y&&$!==null&&($.flags&128)!==0)$:for($=Z.child;$!==null;){if($.tag===13)$.memoizedState!==null&&jH($,Q,Z);else if($.tag===19)jH($,Q,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":Q=Z.child;for(U=null;Q!==null;)$=Q.alternate,$!==null&&VQ($)===null&&(U=Q),Q=Q.sibling;Q=U,Q===null?(U=Z.child,Z.child=null):(U=Q.sibling,Q.sibling=null),fY(Z,!1,U,Q,B,z);break;case"backwards":case"unstable_legacy-backwards":Q=null,U=Z.child;for(Z.child=null;U!==null;){if($=U.alternate,$!==null&&VQ($)===null){Z.child=U;break}$=U.sibling,U.sibling=Q,Q=U,U=$}fY(Z,!0,Q,null,B,z);break;case"together":fY(Z,!1,null,null,void 0,z);break;default:Z.memoizedState=null}return Z.child}function $8($,Z,Q){if($!==null&&(Z.dependencies=$.dependencies),x5=-1,B2|=Z.lanes,(Q&Z.childLanes)===0)if($!==null){if(X9($,Z,Q,!1),(Q&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,Q=a4($,$.pendingProps),Z.child=Q;for(Q.return=Z;$.sibling!==null;)$=$.sibling,Q=Q.sibling=a4($,$.pendingProps),Q.return=Z;Q.sibling=null}return Z.child}function yY($,Z){if(($.lanes&Z)!==0)return!0;return $=$.dependencies,$!==null&&zQ($)?!0:!1}function pP($,Z,Q){switch(Z.tag){case 3:l(Z,Z.stateNode.containerInfo),h8(Z,a1,$.memoizedState.cache),Z7();break;case 27:case 5:a0(Z);break;case 4:l(Z,Z.stateNode.containerInfo);break;case 10:h8(Z,Z.type,Z.memoizedProps.value);break;case 12:(Q&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,iq(Z),null;break;case 13:if(Y=Z.memoizedState,Y!==null){if(Y.dehydrated!==null)return d8(Z),Z.flags|=128,null;if((Q&Z.child.childLanes)!==0)return DH($,Z,Q);return d8(Z),$=$8($,Z,Q),$!==null?$.sibling:null}d8(Z);break;case 19:var U=($.flags&128)!==0;if(Y=(Q&Z.childLanes)!==0,Y||(X9($,Z,Q,!1),Y=(Q&Z.childLanes)!==0),U){if(Y)return kH($,Z,Q);Z.flags|=128}if(U=Z.memoizedState,U!==null&&(U.rendering=null,U.tail=null,U.lastEffect=null),O0(c1,c1.current,Z),Y)break;else return null;case 22:return Z.lanes=0,OH($,Z,Q,Z.pendingProps);case 24:h8(Z,a1,$.memoizedState.cache)}return $8($,Z,Q)}function gY($,Z,Q){if(Z._debugNeedsRemount&&$!==null){Q=vq(Z.type,Z.key,Z.pendingProps,Z._debugOwner||null,Z.mode,Z.lanes),Q._debugStack=Z._debugStack,Q._debugTask=Z._debugTask;var Y=Z.return;if(Y===null)throw Error("Cannot swap the root fiber.");if($.alternate=null,Z.alternate=null,Q.index=Z.index,Q.sibling=Z.sibling,Q.return=Z.return,Q.ref=Z.ref,Q._debugInfo=Z._debugInfo,Z===Y.child)Y.child=Q;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=Q}return Z=Y.deletions,Z===null?(Y.deletions=[$],Y.flags|=16):Z.push($),Q.flags|=2,Q}if($!==null)if($.memoizedProps!==Z.pendingProps||Z.type!==$.type)e1=!0;else{if(!yY($,Q)&&(Z.flags&128)===0)return e1=!1,pP($,Z,Q);e1=($.flags&131072)!==0?!0:!1}else{if(e1=!1,Y=i0)y8(),Y=(Z.flags&1048576)!==0;Y&&(Y=Z.index,y8(),wB(Z,_Z,Y))}switch(Z.lanes=0,Z.tag){case 16:$:if(Y=Z.pendingProps,$=u8(Z.elementType),Z.type=$,typeof $==="function")kq($)?(Y=X7($,Y),Z.tag=1,Z.type=$=t2($),Z=EH(null,Z,$,Y,Q)):(Z.tag=0,DY(Z,$),Z.type=$=t2($),Z=SY(null,Z,$,Y,Q));else{if($!==void 0&&$!==null){if(U=$.$$typeof,U===YZ){Z.tag=11,Z.type=$=jq($),Z=PH(null,Z,$,Y,Q);break $}else if(U===NG){Z.tag=14,Z=TH(null,Z,$,Y,Q);break $}}throw Z="",$!==null&&typeof $==="object"&&$.$$typeof===R6&&(Z=" Did you wrap a component in React.lazy() more than once?"),Q=i($)||$,Error("Element type is invalid. Received a promise that resolves to: "+Q+". Lazy element type must resolve to a class or function."+Z)}return Z;case 0:return SY($,Z,Z.type,Z.pendingProps,Q);case 1:return Y=Z.type,U=X7(Y,Z.pendingProps),EH($,Z,Y,U,Q);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,nq($,Z),x$(Z,Y,null,Q);var z=Z.memoizedState;if(Y=z.cache,h8(Z,a1,Y),Y!==B.cache&&mq(Z,[a1],Q,!0),u$(),Y=z.element,B.isDehydrated)if(B={element:Y,isDehydrated:!1,cache:z.cache},Z.updateQueue.baseState=B,Z.memoizedState=B,Z.flags&256){Z=SH($,Z,Y,Q);break $}else if(Y!==U){U=H6(Error("This root received an early update, before anything was able hydrate. Switched the entire root to client rendering."),Z),v$(U),Z=SH($,Z,Y,Q);break $}else{switch($=Z.stateNode.containerInfo,$.nodeType){case 9:$=$.body;break;default:$=$.nodeName==="HTML"?$.ownerDocument.body:$}V1=w6($.firstChild),L5=Z,i0=!0,J2=null,f4=!1,P6=null,y6=!0,Q=lz(Z,null,Y,Q);for(Z.child=Q;Q;)Q.flags=Q.flags&-3|4096,Q=Q.sibling}else{if(Z7(),Y===U){Z=$8($,Z,Q);break $}w5($,Z,Y,Q)}Z=Z.child}return Z;case 26:return mQ($,Z),$===null?(Q=QW(Z.type,null,Z.pendingProps,null))?Z.memoizedState=Q:i0||(Q=Z.type,$=Z.pendingProps,Y=v0(o8.current),Y=tQ(Y).createElement(Q),Y[_5]=Z,Y[g5]=$,R5(Y,Q,$),_0(Y),Z.stateNode=Y):Z.memoizedState=QW(Z.type,$.memoizedProps,Z.pendingProps,$.memoizedState),null;case 27:return a0(Z),$===null&&i0&&(Y=v0(o8.current),U=F0(),Y=Z.stateNode=ZW(Z.type,Z.pendingProps,Y,U,!1),f4||(U=pF(Y,Z.type,Z.pendingProps,U),U!==null&&($7(Z,0).serverProps=U)),L5=Z,y6=!0,U=V1,s8(Z.type)?(lN=U,V1=w6(Y.firstChild)):V1=U),w5($,Z,Z.pendingProps.children,Q),mQ($,Z),$===null&&(Z.flags|=4194304),Z.child;case 5:return $===null&&i0&&(B=F0(),Y=Cq(Z.type,B.ancestorInfo),U=V1,(z=!U)||(z=jT(U,Z.type,Z.pendingProps,y6),z!==null?(Z.stateNode=z,f4||(B=pF(z,Z.type,Z.pendingProps,B),B!==null&&($7(Z,0).serverProps=B)),L5=Z,V1=w6(z.firstChild),y6=!1,B=!0):B=!1,z=!B),z&&(Y&&FQ(Z,U),g8(Z))),a0(Z),U=Z.type,B=Z.pendingProps,z=$!==null?$.memoizedProps:null,Y=B.children,NX(U,B)?Y=null:z!==null&&NX(U,z)&&(Z.flags|=32),Z.memoizedState!==null&&(U=eq($,Z,fP,null,null,Q),tZ._currentValue=U),mQ($,Z),w5($,Z,Y,Q),Z.child;case 6:return $===null&&i0&&(Q=Z.pendingProps,$=F0(),Y=$.ancestorInfo.current,Q=Y!=null?QQ(Q,Y.tag,$.ancestorInfo.implicitRootScope):!0,$=V1,(Y=!$)||(Y=kT($,Z.pendingProps,y6),Y!==null?(Z.stateNode=Y,L5=Z,V1=null,Y=!0):Y=!1,Y=!Y),Y&&(Q&&FQ(Z,$),g8(Z))),null;case 13:return DH($,Z,Q);case 4:return l(Z,Z.stateNode.containerInfo),Y=Z.pendingProps,$===null?Z.child=L7(Z,null,Y,Q):w5($,Z,Y,Q),Z.child;case 11:return PH($,Z,Z.type,Z.pendingProps,Q);case 7:return w5($,Z,Z.pendingProps,Q),Z.child;case 8:return w5($,Z,Z.pendingProps.children,Q),Z.child;case 12:return Z.flags|=4,Z.flags|=2048,Y=Z.stateNode,Y.effectDuration=-0,Y.passiveEffectDuration=-0,w5($,Z,Z.pendingProps.children,Q),Z.child;case 10:return Y=Z.type,U=Z.pendingProps,B=U.value,"value"in U||wM||(wM=!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),w5($,Z,U.children,Q),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."),J7(Z),U=D1(U),Y=UN(Y,U,void 0),Z.flags|=1,w5($,Z,Y,Q),Z.child;case 14:return TH($,Z,Z.type,Z.pendingProps,Q);case 15:return CH($,Z,Z.type,Z.pendingProps,Q);case 19:return kH($,Z,Q);case 31:return dP($,Z,Q);case 22:return OH($,Z,Q,Z.pendingProps);case 24:return J7(Z),Y=D1(a1),$===null?(U=lq(),U===null&&(U=_1,B=dq(),U.pooledCache=B,Q7(B),B!==null&&(U.pooledCacheLanes|=Q),U=B),Z.memoizedState={parent:Y,cache:U},sq(Z),h8(Z,a1,U)):(($.lanes&Q)!==0&&(nq($,Z),x$(Z,null,null,Q),u$()),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,a1,Y)):(Y=B.cache,h8(Z,a1,Y),Y!==U.cache&&mq(Z,[a1],Q,!0))),w5($,Z,Z.pendingProps.children,Q),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 Z8($){$.flags|=4}function hY($,Z,Q,Y,U){if(Z=($.mode&UO)!==V0)Z=!1;if(Z){if($.flags|=16777216,(U&335544128)===U)if($.stateNode.complete)$.flags|=8192;else if(BF())$.flags|=8192;else throw _7=bG,BN}else $.flags&=-16777217}function vH($,Z){if(Z.type!=="stylesheet"||(Z.state.loading&m6)!==j7)$.flags&=-16777217;else if($.flags|=16777216,!NW(Z))if(BF())$.flags|=8192;else throw _7=bG,BN}function pQ($,Z){Z!==null&&($.flags|=4),$.flags&16384&&(Z=$.tag!==22?Z9():536870912,$.lanes|=Z,I7|=Z)}function l$($,Z){if(!i0)switch($.tailMode){case"hidden":Z=$.tail;for(var Q=null;Z!==null;)Z.alternate!==null&&(Q=Z),Z=Z.sibling;Q===null?$.tail=null:Q.sibling=null;break;case"collapsed":Q=$.tail;for(var Y=null;Q!==null;)Q.alternate!==null&&(Y=Q),Q=Q.sibling;Y===null?Z||$.tail===null?$.tail=null:$.tail.sibling=null:Y.sibling=null}}function T1($){var Z=$.alternate!==null&&$.alternate.child===$.child,Q=0,Y=0;if(Z)if(($.mode&g0)!==V0){for(var{selfBaseDuration:U,child:B}=$;B!==null;)Q|=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;)Q|=U.lanes|U.childLanes,Y|=U.subtreeFlags&65011712,Y|=U.flags&65011712,U.return=$,U=U.sibling;else if(($.mode&g0)!==V0){U=$.actualDuration,B=$.selfBaseDuration;for(var z=$.child;z!==null;)Q|=z.lanes|z.childLanes,Y|=z.subtreeFlags,Y|=z.flags,U+=z.actualDuration,B+=z.treeBaseDuration,z=z.sibling;$.actualDuration=U,$.treeBaseDuration=B}else for(U=$.child;U!==null;)Q|=U.lanes|U.childLanes,Y|=U.subtreeFlags,Y|=U.flags,U.return=$,U=U.sibling;return $.subtreeFlags|=Y,$.childLanes=Q,Z}function cP($,Z,Q){var Y=Z.pendingProps;switch(gq(Z),Z.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return T1(Z),null;case 1:return T1(Z),null;case 3:if(Q=Z.stateNode,Y=null,$!==null&&(Y=$.memoizedState.cache),Z.memoizedState.cache!==Y&&(Z.flags|=2048),t4(a1,Z),Y0(Z),Q.pendingContext&&(Q.context=Q.pendingContext,Q.pendingContext=null),$===null||$.child===null)Y9(Z)?(uq(),Z8(Z)):$===null||$.memoizedState.isDehydrated&&(Z.flags&256)===0||(Z.flags|=1024,hq());return T1(Z),null;case 26:var{type:U,memoizedState:B}=Z;return $===null?(Z8(Z),B!==null?(T1(Z),vH(Z,B)):(T1(Z),hY(Z,U,null,Y,Q))):B?B!==$.memoizedState?(Z8(Z),T1(Z),vH(Z,B)):(T1(Z),Z.flags&=-16777217):($=$.memoizedProps,$!==Y&&Z8(Z),T1(Z),hY(Z,U,$,Y,Q)),null;case 27:if(d0(Z),Q=v0(o8.current),U=Z.type,$!==null&&Z.stateNode!=null)$.memoizedProps!==Y&&Z8(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 T1(Z),null}$=F0(),Y9(Z)?PB(Z,$):($=ZW(U,Y,Q,$,!0),Z.stateNode=$,Z8(Z))}return T1(Z),null;case 5:if(d0(Z),U=Z.type,$!==null&&Z.stateNode!=null)$.memoizedProps!==Y&&Z8(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 T1(Z),null}var z=F0();if(Y9(Z))PB(Z,z);else{switch(B=v0(o8.current),Cq(U,z.ancestorInfo),z=z.context,B=tQ(B),z){case J$:B=B.createElementNS(V9,U);break;case Y3:B=B.createElementNS(zG,U);break;default:switch(U){case"svg":B=B.createElementNS(V9,U);break;case"math":B=B.createElementNS(zG,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]"||Z4.call(mM,U)||(mM[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[_5]=Z,B[g5]=Y;$:for(z=Z.child;z!==null;){if(z.tag===5||z.tag===6)B.appendChild(z.stateNode);else if(z.tag!==4&&z.tag!==27&&z.child!==null){z.child.return=z,z=z.child;continue}if(z===Z)break $;for(;z.sibling===null;){if(z.return===null||z.return===Z)break $;z=z.return}z.sibling.return=z.return,z=z.sibling}Z.stateNode=B;$:switch(R5(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&&Z8(Z)}}return T1(Z),hY(Z,Z.type,$===null?null:$.memoizedProps,Z.pendingProps,Q),null;case 6:if($&&Z.stateNode!=null)$.memoizedProps!==Y&&Z8(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($=v0(o8.current),Q=F0(),Y9(Z)){if($=Z.stateNode,Q=Z.memoizedProps,U=!f4,Y=null,B=L5,B!==null)switch(B.tag){case 3:U&&(U=eF($,Q,Y),U!==null&&($7(Z,0).serverProps=U));break;case 27:case 5:Y=B.memoizedProps,U&&(U=eF($,Q,Y),U!==null&&($7(Z,0).serverProps=U))}$[_5]=Z,$=$.nodeValue===Q||Y!==null&&Y.suppressHydrationWarning===!0||hF($.nodeValue,Q)?!0:!1,$||g8(Z,!0)}else U=Q.ancestorInfo.current,U!=null&&QQ(Y,U.tag,Q.ancestorInfo.implicitRootScope),$=tQ($).createTextNode(Y),$[_5]=Z,Z.stateNode=$}return T1(Z),null;case 31:if(Q=Z.memoizedState,$===null||$.memoizedState!==null){if(Y=Y9(Z),Q!==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.");$[_5]=Z,T1(Z),(Z.mode&g0)!==V0&&Q!==null&&($=Z.child,$!==null&&(Z.treeBaseDuration-=$.treeBaseDuration))}else uq(),Z7(),(Z.flags&128)===0&&(Q=Z.memoizedState=null),Z.flags|=4,T1(Z),(Z.mode&g0)!==V0&&Q!==null&&($=Z.child,$!==null&&(Z.treeBaseDuration-=$.treeBaseDuration));$=!1}else Q=hq(),$!==null&&$.memoizedState!==null&&($.memoizedState.hydrationErrors=Q),$=!0;if(!$){if(Z.flags&256)return z6(Z),Z;return z6(Z),null}if((Z.flags&128)!==0)throw Error("Client rendering an Activity suspended it again. This is a bug in React.")}return T1(Z),null;case 13:if(Y=Z.memoizedState,$===null||$.memoizedState!==null&&$.memoizedState.dehydrated!==null){if(U=Y,B=Y9(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[_5]=Z,T1(Z),(Z.mode&g0)!==V0&&U!==null&&(U=Z.child,U!==null&&(Z.treeBaseDuration-=U.treeBaseDuration))}else uq(),Z7(),(Z.flags&128)===0&&(U=Z.memoizedState=null),Z.flags|=4,T1(Z),(Z.mode&g0)!==V0&&U!==null&&(U=Z.child,U!==null&&(Z.treeBaseDuration-=U.treeBaseDuration));U=!1}else U=hq(),$!==null&&$.memoizedState!==null&&($.memoizedState.hydrationErrors=U),U=!0;if(!U){if(Z.flags&256)return z6(Z),Z;return z6(Z),null}}if(z6(Z),(Z.flags&128)!==0)return Z.lanes=Q,(Z.mode&g0)!==V0&&y$(Z),Z;return Q=Y!==null,$=$!==null&&$.memoizedState!==null,Q&&(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)),Q!==$&&Q&&(Z.child.flags|=8192),pQ(Z,Z.updateQueue),T1(Z),(Z.mode&g0)!==V0&&Q&&($=Z.child,$!==null&&(Z.treeBaseDuration-=$.treeBaseDuration)),null;case 4:return Y0(Z),$===null&&ZX(Z.stateNode.containerInfo),T1(Z),null;case 10:return t4(Z.type,Z),T1(Z),null;case 19:if(P0(c1,Z),Y=Z.memoizedState,Y===null)return T1(Z),null;if(U=(Z.flags&128)!==0,B=Y.rendering,B===null)if(U)l$(Y,!1);else{if(v1!==M8||$!==null&&($.flags&128)!==0)for($=Z.child;$!==null;){if(B=VQ($),B!==null){Z.flags|=128,l$(Y,!1),$=B.updateQueue,Z.updateQueue=$,pQ(Z,$),Z.subtreeFlags=0,$=Q;for(Q=Z.child;Q!==null;)zB(Q,$),Q=Q.sibling;return O0(c1,c1.current&c9|bZ,Z),i0&&i4(Z,Y.treeForkCount),Z.child}$=$.sibling}Y.tail!==null&&B5()>sG&&(Z.flags|=128,U=!0,l$(Y,!1),Z.lanes=4194304)}else{if(!U)if($=VQ(B),$!==null){if(Z.flags|=128,U=!0,$=$.updateQueue,Z.updateQueue=$,pQ(Z,$),l$(Y,!0),Y.tail===null&&Y.tailMode==="hidden"&&!B.alternate&&!i0)return T1(Z),null}else 2*B5()-Y.renderingStartTime>sG&&Q!==536870912&&(Z.flags|=128,U=!0,l$(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=B5(),$.sibling=null,Q=c1.current,Q=U?Q&c9|bZ:Q&c9,O0(c1,Q,Z),i0&&i4(Z,Y.treeForkCount),$;return T1(Z),null;case 22:case 23:return z6(Z),aq(Z),Y=Z.memoizedState!==null,$!==null?$.memoizedState!==null!==Y&&(Z.flags|=8192):Y&&(Z.flags|=8192),Y?(Q&536870912)!==0&&(Z.flags&128)===0&&(T1(Z),Z.subtreeFlags&6&&(Z.flags|=8192)):T1(Z),Q=Z.updateQueue,Q!==null&&pQ(Z,Q.retryQueue),Q=null,$!==null&&$.memoizedState!==null&&$.memoizedState.cachePool!==null&&(Q=$.memoizedState.cachePool.pool),Y=null,Z.memoizedState!==null&&Z.memoizedState.cachePool!==null&&(Y=Z.memoizedState.cachePool.pool),Y!==Q&&(Z.flags|=2048),$!==null&&P0(w7,Z),null;case 24:return Q=null,$!==null&&(Q=$.memoizedState.cache),Z.memoizedState.cache!==Q&&(Z.flags|=2048),t4(a1,Z),T1(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 lP($,Z){switch(gq(Z),Z.tag){case 1:return $=Z.flags,$&65536?(Z.flags=$&-65537|128,(Z.mode&g0)!==V0&&y$(Z),Z):null;case 3:return t4(a1,Z),Y0(Z),$=Z.flags,($&65536)!==0&&($&128)===0?(Z.flags=$&-65537|128,Z):null;case 26:case 27:case 5:return d0(Z),null;case 31:if(Z.memoizedState!==null){if(z6(Z),Z.alternate===null)throw Error("Threw in newly mounted dehydrated component. This is likely a bug in React. Please file an issue.");Z7()}return $=Z.flags,$&65536?(Z.flags=$&-65537|128,(Z.mode&g0)!==V0&&y$(Z),Z):null;case 13:if(z6(Z),$=Z.memoizedState,$!==null&&$.dehydrated!==null){if(Z.alternate===null)throw Error("Threw in newly mounted dehydrated component. This is likely a bug in React. Please file an issue.");Z7()}return $=Z.flags,$&65536?(Z.flags=$&-65537|128,(Z.mode&g0)!==V0&&y$(Z),Z):null;case 19:return P0(c1,Z),null;case 4:return Y0(Z),null;case 10:return t4(Z.type,Z),null;case 22:case 23:return z6(Z),aq(Z),$!==null&&P0(w7,Z),$=Z.flags,$&65536?(Z.flags=$&-65537|128,(Z.mode&g0)!==V0&&y$(Z),Z):null;case 24:return t4(a1,Z),null;case 25:return null;default:return null}}function bH($,Z){switch(gq(Z),Z.tag){case 3:t4(a1,Z),Y0(Z);break;case 26:case 27:case 5:d0(Z);break;case 4:Y0(Z);break;case 31:Z.memoizedState!==null&&z6(Z);break;case 13:z6(Z);break;case 19:P0(c1,Z);break;case 10:t4(Z.type,Z);break;case 22:case 23:z6(Z),aq(Z),$!==null&&P0(w7,Z);break;case 24:t4(a1,Z)}}function T4($){return($.mode&g0)!==V0}function fH($,Z){T4($)?(P4(),r$(Z,$),L4()):r$(Z,$)}function uY($,Z,Q){T4($)?(P4(),H9(Q,$,Z),L4()):H9(Q,$,Z)}function r$($,Z){try{var Q=Z.updateQueue,Y=Q!==null?Q.lastEffect:null;if(Y!==null){var U=Y.next;Q=U;do{if((Q.tag&$)===$&&(Y=void 0,($&m5)!==yG&&(e9=!0),Y=q0(Z,WO,Q),($&m5)!==yG&&(e9=!1),Y!==void 0&&typeof Y!=="function")){var B=void 0;B=(Q.tag&C6)!==0?"useLayoutEffect":(Q.tag&m5)!==0?"useInsertionEffect":"useEffect";var z=void 0;z=Y===null?" You returned null. If your effect does not require clean up, return undefined (or nothing).":typeof Y.then==="function"?`
|
|
141
141
|
|
|
142
142
|
It looks like you wrote `+B+`(async () => ...) or returned a Promise. Instead, write the async function inside your effect and call it immediately:
|
|
143
143
|
|
|
@@ -150,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,q0(Z,function(w,L){console.error("%s must not return anything besides a function, which is used for clean-up.%s",w,L)},B,z)}Q=Q.next}while(Q!==U)}}catch(w){N1(Z,Z.return,w)}}function B9($,Z,Q){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 z=Y.inst,w=z.destroy;w!==void 0&&(z.destroy=void 0,($&m5)!==yG&&(t9=!0),U=Z,q0(U,zO,U,Q,w),($&m5)!==yG&&(t9=!1))}Y=Y.next}while(Y!==B)}}catch(L){N1(Z,Z.return,L)}}function yH($,Z){T4($)?(P4(),l$(Z,$),L4()):l$(Z,$)}function xY($,Z,Q){T4($)?(P4(),B9(Q,$,Z),L4()):B9(Q,$,Z)}function gH($){var Z=$.updateQueue;if(Z!==null){var Q=$.stateNode;$.type.defaultProps||"ref"in $.memoizedProps||s9||(Q.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"),Q.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($,uB,Z,Q)}catch(Y){N1($,$.return,Y)}}}function rP($,Z,Q){return $.getSnapshotBeforeUpdate(Z,Q)}function sP($,Z){var{memoizedProps:Q,memoizedState:Y}=Z;Z=$.stateNode,$.type.defaultProps||"ref"in $.memoizedProps||s9||(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=Y7($.type,Q),B=q0($,rP,Z,U,Y);Q=RM,B!==void 0||Q.has($.type)||(Q.add($.type),q0($,function(){console.error("%s.getSnapshotBeforeUpdate(): A snapshot value (or null) must be returned. You have returned undefined.",d($))})),Z.__reactInternalSnapshotBeforeUpdate=B}catch(z){N1($,$.return,z)}}function hH($,Z,Q){Q.props=Y7($.type,$.memoizedProps),Q.state=$.memoizedState,T4($)?(P4(),q0($,gz,$,Z,Q),L4()):q0($,gz,$,Z,Q)}function nP($){var Z=$.ref;if(Z!==null){switch($.tag){case 26:case 27:case 5:var Q=$.stateNode;break;case 30:Q=$.stateNode;break;default:Q=$.stateNode}if(typeof Z==="function")if(T4($))try{P4(),$.refCleanup=Z(Q)}finally{L4()}else $.refCleanup=Z(Q);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=Q}}function r$($,Z){try{q0($,nP,$)}catch(Q){N1($,Z,Q)}}function C4($,Z){var{ref:Q,refCleanup:Y}=$;if(Q!==null)if(typeof Y==="function")try{if(T4($))try{P4(),q0($,Y)}finally{L4($)}else q0($,Y)}catch(U){N1($,Z,U)}finally{$.refCleanup=null,$=$.alternate,$!=null&&($.refCleanup=null)}else if(typeof Q==="function")try{if(T4($))try{P4(),q0($,Q,null)}finally{L4($)}else q0($,Q,null)}catch(U){N1($,Z,U)}else Q.current=null}function uH($,Z,Q,Y){var U=$.memoizedProps,B=U.id,z=U.onCommit;U=U.onRender,Z=Z===null?"mount":"update",DG&&(Z="nested-update"),typeof U==="function"&&U(B,Z,$.actualDuration,$.treeBaseDuration,$.actualStartTime,Q),typeof z==="function"&&z(B,Z,Y,Q)}function oP($,Z,Q,Y){var U=$.memoizedProps;$=U.id,U=U.onPostCommit,Z=Z===null?"mount":"update",DG&&(Z="nested-update"),typeof U==="function"&&U($,Z,Y,Q)}function xH($){var{type:Z,memoizedProps:Q,stateNode:Y}=$;try{q0($,_T,Y,Z,Q,$)}catch(U){N1($,$.return,U)}}function mY($,Z,Q){try{q0($,PT,$.stateNode,$.type,Q,Z,$)}catch(Y){N1($,$.return,Y)}}function mH($){return $.tag===5||$.tag===3||$.tag===26||$.tag===27&&s8($.type)||$.tag===4}function dY($){$:for(;;){for(;$.sibling===null;){if($.return===null||mH($.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 pY($,Z,Q){var Y=$.tag;if(Y===5||Y===6)$=$.stateNode,Z?(nF(Q),(Q.nodeType===9?Q.body:Q.nodeName==="HTML"?Q.ownerDocument.body:Q).insertBefore($,Z)):(nF(Q),Z=Q.nodeType===9?Q.body:Q.nodeName==="HTML"?Q.ownerDocument.body:Q,Z.appendChild($),Q=Q._reactRootContainer,Q!==null&&Q!==void 0||Z.onclick!==null||(Z.onclick=o4));else if(Y!==4&&(Y===27&&s8($.type)&&(Q=$.stateNode,Z=null),$=$.child,$!==null))for(pY($,Z,Q),$=$.sibling;$!==null;)pY($,Z,Q),$=$.sibling}function cQ($,Z,Q){var Y=$.tag;if(Y===5||Y===6)$=$.stateNode,Z?Q.insertBefore($,Z):Q.appendChild($);else if(Y!==4&&(Y===27&&s8($.type)&&(Q=$.stateNode),$=$.child,$!==null))for(cQ($,Z,Q),$=$.sibling;$!==null;)cQ($,Z,Q),$=$.sibling}function aP($){for(var Z,Q=$.return;Q!==null;){if(mH(Q)){Z=Q;break}Q=Q.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,Q=dY($),cQ($,Q,Z);break;case 5:Q=Z.stateNode,Z.flags&32&&(sF(Q),Z.flags&=-33),Z=dY($),cQ($,Z,Q);break;case 3:case 4:Z=Z.stateNode.containerInfo,Q=dY($),pY($,Q,Z);break;default:throw Error("Invalid host parent fiber. This error is likely caused by a bug in React. Please file an issue.")}}function dH($){var{stateNode:Z,memoizedProps:Q}=$;try{q0($,gT,$.type,Q,Z,$)}catch(Y){N1($,$.return,Y)}}function pH($,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 iP($,Z){if($=$.containerInfo,dN=K3,$=qB($),Vq($)){if("selectionStart"in $)var Q={start:$.selectionStart,end:$.selectionEnd};else $:{Q=(Q=$.ownerDocument)&&Q.defaultView||window;var Y=Q.getSelection&&Q.getSelection();if(Y&&Y.rangeCount!==0){Q=Y.anchorNode;var{anchorOffset:U,focusNode:B}=Y;Y=Y.focusOffset;try{Q.nodeType,B.nodeType}catch($0){Q=null;break $}var z=0,w=-1,L=-1,T=0,b=0,f=$,S=null;Z:for(;;){for(var g;;){if(f!==Q||U!==0&&f.nodeType!==3||(w=z+U),f!==B||Y!==0&&f.nodeType!==3||(L=z+Y),f.nodeType===3&&(z+=f.nodeValue.length),(g=f.firstChild)===null)break;S=f,f=g}for(;;){if(f===$)break Z;if(S===Q&&++T===U&&(w=z),S===B&&++b===Y&&(L=z),(g=f.nextSibling)!==null)break;f=S,S=f.parentNode}f=g}Q=w===-1||L===-1?null:{start:w,end:L}}else Q=null}Q=Q||{start:0,end:0}}else Q=null;pN={focusedElem:$,selectionRange:Q},K3=!1;for(F5=Z;F5!==null;)if(Z=F5,$=Z.child,(Z.subtreeFlags&1028)!==0&&$!==null)$.return=Z,F5=$;else for(;F5!==null;){switch($=Z=F5,Q=$.alternate,U=$.flags,$.tag){case 0:if((U&4)!==0&&($=$.updateQueue,$=$!==null?$.events:null,$!==null))for(Q=0;Q<$.length;Q++)U=$[Q],U.ref.impl=U.nextImpl;break;case 11:case 15:break;case 1:(U&1024)!==0&&Q!==null&&sP($,Q);break;case 3:if((U&1024)!==0){if($=$.stateNode.containerInfo,Q=$.nodeType,Q===9)UX($);else if(Q===1)switch($.nodeName){case"HEAD":case"HTML":case"BODY":UX($);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,F5=$;break}F5=Z.return}}function cH($,Z,Q){var Y=F6(),U=M4(),B=R4(),z=_4(),w=Q.flags;switch(Q.tag){case 0:case 11:case 15:O4($,Q),w&4&&fH(Q,C6|u6);break;case 1:if(O4($,Q),w&4)if($=Q.stateNode,Z===null)Q.type.defaultProps||"ref"in Q.memoizedProps||s9||($.props!==Q.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(Q)||"instance"),$.state!==Q.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(Q)||"instance")),T4(Q)?(P4(),q0(Q,KN,Q,$),L4()):q0(Q,KN,Q,$);else{var L=Y7(Q.type,Z.memoizedProps);Z=Z.memoizedState,Q.type.defaultProps||"ref"in Q.memoizedProps||s9||($.props!==Q.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(Q)||"instance"),$.state!==Q.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(Q)||"instance")),T4(Q)?(P4(),q0(Q,bz,Q,$,L,Z,$.__reactInternalSnapshotBeforeUpdate),L4()):q0(Q,bz,Q,$,L,Z,$.__reactInternalSnapshotBeforeUpdate)}w&64&&gH(Q),w&512&&r$(Q,Q.return);break;case 3:if(Z=e4(),O4($,Q),w&64&&(w=Q.updateQueue,w!==null)){if(L=null,Q.child!==null)switch(Q.child.tag){case 27:case 5:L=Q.child.stateNode;break;case 1:L=Q.child.stateNode}try{q0(Q,uB,w,L)}catch(b){N1(Q,Q.return,b)}}$.effectDuration+=wQ(Z);break;case 27:Z===null&&w&4&&dH(Q);case 26:case 5:if(O4($,Q),Z===null){if(w&4)xH(Q);else if(w&64){$=Q.type,Z=Q.memoizedProps,L=Q.stateNode;try{q0(Q,LT,L,$,Z,Q)}catch(b){N1(Q,Q.return,b)}}}w&512&&r$(Q,Q.return);break;case 12:if(w&4){w=e4(),O4($,Q),$=Q.stateNode,$.effectDuration+=b$(w);try{q0(Q,uH,Q,Z,Q2,$.effectDuration)}catch(b){N1(Q,Q.return,b)}}else O4($,Q);break;case 31:O4($,Q),w&4&&sH($,Q);break;case 13:O4($,Q),w&4&&nH($,Q),w&64&&($=Q.memoizedState,$!==null&&($=$.dehydrated,$!==null&&(w=YT.bind(null,Q),vT($,w))));break;case 22:if(w=Q.memoizedState!==null||z8,!w){Z=Z!==null&&Z.memoizedState!==null||$5,L=z8;var T=$5;z8=w,($5=Z)&&!T?(I4($,Q,(Q.subtreeFlags&8772)!==0),(Q.mode&g0)!==V0&&0<=L0&&0<=T0&&0.05<T0-L0&&XQ(Q,L0,T0)):O4($,Q),z8=L,$5=T}break;case 30:break;default:O4($,Q)}(Q.mode&g0)!==V0&&0<=L0&&0<=T0&&((g1||0.05<k1)&&W4(Q,L0,T0,k1,j1),Q.alternate===null&&Q.return!==null&&Q.return.alternate!==null&&0.05<T0-L0&&(pH(Q.return.alternate,Q.return)||F4(Q,L0,T0,"Mount"))),W6(Y),w4(U),j1=B,g1=z}function lH($){var Z=$.alternate;Z!==null&&($.alternate=null,lH(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 J8($,Z,Q){for(Q=Q.child;Q!==null;)rH($,Z,Q),Q=Q.sibling}function rH($,Z,Q){if(S5&&typeof S5.onCommitFiberUnmount==="function")try{S5.onCommitFiberUnmount(C9,Q)}catch(T){j4||(j4=!0,console.error("React instrumentation encountered an error: %o",T))}var Y=F6(),U=M4(),B=R4(),z=_4();switch(Q.tag){case 26:$5||C4(Q,Z),J8($,Z,Q),Q.memoizedState?Q.memoizedState.count--:Q.stateNode&&($=Q.stateNode,$.parentNode.removeChild($));break;case 27:$5||C4(Q,Z);var w=Z5,L=n5;s8(Q.type)&&(Z5=Q.stateNode,n5=!1),J8($,Z,Q),q0(Q,ZZ,Q.stateNode),Z5=w,n5=L;break;case 5:$5||C4(Q,Z);case 6:if(w=Z5,L=n5,Z5=null,J8($,Z,Q),Z5=w,n5=L,Z5!==null)if(n5)try{q0(Q,OT,Z5,Q.stateNode)}catch(T){N1(Q,Z,T)}else try{q0(Q,CT,Z5,Q.stateNode)}catch(T){N1(Q,Z,T)}break;case 18:Z5!==null&&(n5?($=Z5,oF($.nodeType===9?$.body:$.nodeName==="HTML"?$.ownerDocument.body:$,Q.stateNode),_9($)):oF(Z5,Q.stateNode));break;case 4:w=Z5,L=n5,Z5=Q.stateNode.containerInfo,n5=!0,J8($,Z,Q),Z5=w,n5=L;break;case 0:case 11:case 14:case 15:B9(m5,Q,Z),$5||uY(Q,Z,C6),J8($,Z,Q);break;case 1:$5||(C4(Q,Z),w=Q.stateNode,typeof w.componentWillUnmount==="function"&&hH(Q,Z,w)),J8($,Z,Q);break;case 21:J8($,Z,Q);break;case 22:$5=(w=$5)||Q.memoizedState!==null,J8($,Z,Q),$5=w;break;default:J8($,Z,Q)}(Q.mode&g0)!==V0&&0<=L0&&0<=T0&&(g1||0.05<k1)&&W4(Q,L0,T0,k1,j1),W6(Y),w4(U),j1=B,g1=z}function sH($,Z){if(Z.memoizedState===null&&($=Z.alternate,$!==null&&($=$.memoizedState,$!==null))){$=$.dehydrated;try{q0(Z,fT,$)}catch(Q){N1(Z,Z.return,Q)}}}function nH($,Z){if(Z.memoizedState===null&&($=Z.alternate,$!==null&&($=$.memoizedState,$!==null&&($=$.dehydrated,$!==null))))try{q0(Z,yT,$)}catch(Q){N1(Z,Z.return,Q)}}function tP($){switch($.tag){case 31:case 13:case 19:var Z=$.stateNode;return Z===null&&(Z=$.stateNode=new _M),Z;case 22:return $=$.stateNode,Z=$._retryCache,Z===null&&(Z=$._retryCache=new _M),Z;default:throw Error("Unexpected Suspense handler tag ("+$.tag+"). This is a bug in React.")}}function lQ($,Z){var Q=tP($);Z.forEach(function(Y){if(!Q.has(Y)){if(Q.add(Y),k4)if(n9!==null&&o9!==null)a$(o9,n9);else throw Error("Expected finished root and lanes to be set. This is a bug in React.");var U=XT.bind(null,$,Y);Y.then(U,U)}})}function r5($,Z){var Q=Z.deletions;if(Q!==null)for(var Y=0;Y<Q.length;Y++){var U=$,B=Z,z=Q[Y],w=F6(),L=B;$:for(;L!==null;){switch(L.tag){case 27:if(s8(L.type)){Z5=L.stateNode,n5=!1;break $}break;case 5:Z5=L.stateNode,n5=!1;break $;case 3:case 4:Z5=L.stateNode.containerInfo,n5=!0;break $}L=L.return}if(Z5===null)throw Error("Expected to find a host parent. This error is likely caused by a bug in React. Please file an issue.");rH(U,B,z),Z5=null,n5=!1,(z.mode&g0)!==V0&&0<=L0&&0<=T0&&0.05<T0-L0&&F4(z,L0,T0,"Unmount"),W6(w),U=z,B=U.alternate,B!==null&&(B.return=null),U.return=null}if(Z.subtreeFlags&13886)for(Z=Z.child;Z!==null;)oH(Z,$),Z=Z.sibling}function oH($,Z){var Q=F6(),Y=M4(),U=R4(),B=_4(),z=$.alternate,w=$.flags;switch($.tag){case 0:case 11:case 14:case 15:r5(Z,$),s5($),w&4&&(B9(m5|u6,$,$.return),l$(m5|u6,$),uY($,$.return,C6|u6));break;case 1:if(r5(Z,$),s5($),w&512&&($5||z===null||C4(z,z.return)),w&64&&z8&&(w=$.updateQueue,w!==null&&(z=w.callbacks,z!==null))){var L=w.shared.hiddenCallbacks;w.shared.hiddenCallbacks=L===null?z:L.concat(z)}break;case 26:if(L=Y4,r5(Z,$),s5($),w&512&&($5||z===null||C4(z,z.return)),w&4){var T=z!==null?z.memoizedState:null;if(w=$.memoizedState,z===null)if(w===null)if($.stateNode===null){$:{w=$.type,z=$.memoizedProps,L=L.ownerDocument||L;Z:switch(w){case"title":if(T=L.getElementsByTagName("title")[0],!T||T[NZ]||T[_5]||T.namespaceURI===I9||T.hasAttribute("itemprop"))T=L.createElement(w),L.head.insertBefore(T,L.querySelector("head > title"));R5(T,w,z),T[_5]=$,_0(T),w=T;break $;case"link":var b=YW("link","href",L).get(w+(z.href||""));if(b){for(var f=0;f<b.length;f++)if(T=b[f],T.getAttribute("href")===(z.href==null||z.href===""?null:z.href)&&T.getAttribute("rel")===(z.rel==null?null:z.rel)&&T.getAttribute("title")===(z.title==null?null:z.title)&&T.getAttribute("crossorigin")===(z.crossOrigin==null?null:z.crossOrigin)){b.splice(f,1);break Z}}T=L.createElement(w),R5(T,w,z),L.head.appendChild(T);break;case"meta":if(b=YW("meta","content",L).get(w+(z.content||""))){for(f=0;f<b.length;f++)if(T=b[f],W1(z.content,"content"),T.getAttribute("content")===(z.content==null?null:""+z.content)&&T.getAttribute("name")===(z.name==null?null:z.name)&&T.getAttribute("property")===(z.property==null?null:z.property)&&T.getAttribute("http-equiv")===(z.httpEquiv==null?null:z.httpEquiv)&&T.getAttribute("charset")===(z.charSet==null?null:z.charSet)){b.splice(f,1);break Z}}T=L.createElement(w),R5(T,w,z),L.head.appendChild(T);break;default:throw Error('getNodesForType encountered a type it did not expect: "'+w+'". This is a bug in React.')}T[_5]=$,_0(T),w=T}$.stateNode=w}else XW(L,$.type,$.stateNode);else $.stateNode=qW(L,w,$.memoizedProps);else T!==w?(T===null?z.stateNode!==null&&(z=z.stateNode,z.parentNode.removeChild(z)):T.count--,w===null?XW(L,$.type,$.stateNode):qW(L,w,$.memoizedProps)):w===null&&$.stateNode!==null&&mY($,$.memoizedProps,z.memoizedProps)}break;case 27:r5(Z,$),s5($),w&512&&($5||z===null||C4(z,z.return)),z!==null&&w&4&&mY($,$.memoizedProps,z.memoizedProps);break;case 5:if(r5(Z,$),s5($),w&512&&($5||z===null||C4(z,z.return)),$.flags&32){L=$.stateNode;try{q0($,sF,L)}catch(G0){N1($,$.return,G0)}}w&4&&$.stateNode!=null&&(L=$.memoizedProps,mY($,L,z!==null?z.memoizedProps:L)),w&1024&&(CN=!0,$.type!=="form"&&console.error("Unexpected host component type. Expected a form. This is a bug in React."));break;case 6:if(r5(Z,$),s5($),w&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.");w=$.memoizedProps,z=z!==null?z.memoizedProps:w,L=$.stateNode;try{q0($,TT,L,z,w)}catch(G0){N1($,$.return,G0)}}break;case 3:if(L=e4(),X3=null,T=Y4,Y4=eQ(Z.containerInfo),r5(Z,$),Y4=T,s5($),w&4&&z!==null&&z.memoizedState.isDehydrated)try{q0($,bT,Z.containerInfo)}catch(G0){N1($,$.return,G0)}CN&&(CN=!1,aH($)),Z.effectDuration+=wQ(L);break;case 4:w=Y4,Y4=eQ($.stateNode.containerInfo),r5(Z,$),s5($),Y4=w;break;case 12:w=e4(),r5(Z,$),s5($),$.stateNode.effectDuration+=b$(w);break;case 31:r5(Z,$),s5($),w&4&&(w=$.updateQueue,w!==null&&($.updateQueue=null,lQ($,w)));break;case 13:r5(Z,$),s5($),$.child.flags&8192&&$.memoizedState!==null!==(z!==null&&z.memoizedState!==null)&&(rG=B5()),w&4&&(w=$.updateQueue,w!==null&&($.updateQueue=null,lQ($,w)));break;case 22:L=$.memoizedState!==null;var S=z!==null&&z.memoizedState!==null,g=z8,$0=$5;if(z8=g||L,$5=$0||S,r5(Z,$),$5=$0,z8=g,S&&!L&&!g&&!$0&&($.mode&g0)!==V0&&0<=L0&&0<=T0&&0.05<T0-L0&&XQ($,L0,T0),s5($),w&8192)$:for(Z=$.stateNode,Z._visibility=L?Z._visibility&~wZ:Z._visibility|wZ,!L||z===null||S||z8||$5||(X7($),($.mode&g0)!==V0&&0<=L0&&0<=T0&&0.05<T0-L0&&F4($,L0,T0,"Disconnect")),z=null,Z=$;;){if(Z.tag===5||Z.tag===26){if(z===null){S=z=Z;try{T=S.stateNode,L?q0(S,VT,T):q0(S,ST,S.stateNode,S.memoizedProps)}catch(G0){N1(S,S.return,G0)}}}else if(Z.tag===6){if(z===null){S=Z;try{b=S.stateNode,L?q0(S,AT,b):q0(S,DT,b,S.memoizedProps)}catch(G0){N1(S,S.return,G0)}}}else if(Z.tag===18){if(z===null){S=Z;try{f=S.stateNode,L?q0(S,IT,f):q0(S,ET,S.stateNode)}catch(G0){N1(S,S.return,G0)}}}else if((Z.tag!==22&&Z.tag!==23||Z.memoizedState===null||Z===$)&&Z.child!==null){Z.child.return=Z,Z=Z.child;continue}if(Z===$)break $;for(;Z.sibling===null;){if(Z.return===null||Z.return===$)break $;z===Z&&(z=null),Z=Z.return}z===Z&&(z=null),Z.sibling.return=Z.return,Z=Z.sibling}w&4&&(w=$.updateQueue,w!==null&&(z=w.retryQueue,z!==null&&(w.retryQueue=null,lQ($,z))));break;case 19:r5(Z,$),s5($),w&4&&(w=$.updateQueue,w!==null&&($.updateQueue=null,lQ($,w)));break;case 30:break;case 21:break;default:r5(Z,$),s5($)}($.mode&g0)!==V0&&0<=L0&&0<=T0&&((g1||0.05<k1)&&W4($,L0,T0,k1,j1),$.alternate===null&&$.return!==null&&$.return.alternate!==null&&0.05<T0-L0&&(pH($.return.alternate,$.return)||F4($,L0,T0,"Mount"))),W6(Q),w4(Y),j1=U,g1=B}function s5($){var Z=$.flags;if(Z&2){try{q0($,aP,$)}catch(Q){N1($,$.return,Q)}$.flags&=-3}Z&4096&&($.flags&=-4097)}function aH($){if($.subtreeFlags&1024)for($=$.child;$!==null;){var Z=$;aH(Z),Z.tag===5&&Z.flags&1024&&Z.stateNode.reset(),$=$.sibling}}function O4($,Z){if(Z.subtreeFlags&8772)for(Z=Z.child;Z!==null;)cH($,Z.alternate,Z),Z=Z.sibling}function iH($){var Z=F6(),Q=M4(),Y=R4(),U=_4();switch($.tag){case 0:case 11:case 14:case 15:uY($,$.return,C6),X7($);break;case 1:C4($,$.return);var B=$.stateNode;typeof B.componentWillUnmount==="function"&&hH($,$.return,B),X7($);break;case 27:q0($,ZZ,$.stateNode);case 26:case 5:C4($,$.return),X7($);break;case 22:$.memoizedState===null&&X7($);break;case 30:X7($);break;default:X7($)}($.mode&g0)!==V0&&0<=L0&&0<=T0&&(g1||0.05<k1)&&W4($,L0,T0,k1,j1),W6(Z),w4(Q),j1=Y,g1=U}function X7($){for($=$.child;$!==null;)iH($),$=$.sibling}function tH($,Z,Q,Y){var U=F6(),B=M4(),z=R4(),w=_4(),L=Q.flags;switch(Q.tag){case 0:case 11:case 15:I4($,Q,Y),fH(Q,C6);break;case 1:if(I4($,Q,Y),Z=Q.stateNode,typeof Z.componentDidMount==="function"&&q0(Q,KN,Q,Z),Z=Q.updateQueue,Z!==null){$=Q.stateNode;try{q0(Q,bP,Z,$)}catch(T){N1(Q,Q.return,T)}}Y&&L&64&&gH(Q),r$(Q,Q.return);break;case 27:dH(Q);case 26:case 5:I4($,Q,Y),Y&&Z===null&&L&4&&xH(Q),r$(Q,Q.return);break;case 12:if(Y&&L&4){L=e4(),I4($,Q,Y),Y=Q.stateNode,Y.effectDuration+=b$(L);try{q0(Q,uH,Q,Z,Q2,Y.effectDuration)}catch(T){N1(Q,Q.return,T)}}else I4($,Q,Y);break;case 31:I4($,Q,Y),Y&&L&4&&sH($,Q);break;case 13:I4($,Q,Y),Y&&L&4&&nH($,Q);break;case 22:Q.memoizedState===null&&I4($,Q,Y),r$(Q,Q.return);break;case 30:break;default:I4($,Q,Y)}(Q.mode&g0)!==V0&&0<=L0&&0<=T0&&(g1||0.05<k1)&&W4(Q,L0,T0,k1,j1),W6(U),w4(B),j1=z,g1=w}function I4($,Z,Q){Q=Q&&(Z.subtreeFlags&8772)!==0;for(Z=Z.child;Z!==null;)tH($,Z.alternate,Z,Q),Z=Z.sibling}function cY($,Z){var Q=null;$!==null&&$.memoizedState!==null&&$.memoizedState.cachePool!==null&&(Q=$.memoizedState.cachePool.pool),$=null,Z.memoizedState!==null&&Z.memoizedState.cachePool!==null&&($=Z.memoizedState.cachePool.pool),$!==Q&&($!=null&&J7($),Q!=null&&v$(Q))}function lY($,Z){$=null,Z.alternate!==null&&($=Z.alternate.memoizedState.cache),Z=Z.memoizedState.cache,Z!==$&&(J7(Z),$!=null&&v$($))}function $4($,Z,Q,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;eH($,Z,Q,Y,B!==null?B.actualStartTime:U),Z=B}}function eH($,Z,Q,Y,U){var B=F6(),z=M4(),w=R4(),L=_4(),T=e8,b=Z.flags;switch(Z.tag){case 0:case 11:case 15:(Z.mode&g0)!==V0&&0<Z.actualStartTime&&(Z.flags&1)!==0&&NQ(Z,Z.actualStartTime,U,q5,Q),$4($,Z,Q,Y,U),b&2048&&yH(Z,d5|u6);break;case 1:(Z.mode&g0)!==V0&&0<Z.actualStartTime&&((Z.flags&128)!==0?Eq(Z,Z.actualStartTime,U,[]):(Z.flags&1)!==0&&NQ(Z,Z.actualStartTime,U,q5,Q)),$4($,Z,Q,Y,U);break;case 3:var f=e4(),S=q5;q5=Z.alternate!==null&&Z.alternate.memoizedState.isDehydrated&&(Z.flags&256)===0,$4($,Z,Q,Y,U),q5=S,b&2048&&(Q=null,Z.alternate!==null&&(Q=Z.alternate.memoizedState.cache),Y=Z.memoizedState.cache,Y!==Q&&(J7(Y),Q!=null&&v$(Q))),$.passiveEffectDuration+=wQ(f);break;case 12:if(b&2048){b=e4(),$4($,Z,Q,Y,U),$=Z.stateNode,$.passiveEffectDuration+=b$(b);try{q0(Z,oP,Z,Z.alternate,Q2,$.passiveEffectDuration)}catch(g){N1(Z,Z.return,g)}}else $4($,Z,Q,Y,U);break;case 31:b=q5,f=Z.alternate!==null?Z.alternate.memoizedState:null,S=Z.memoizedState,f!==null&&S===null?(S=Z.deletions,S!==null&&0<S.length&&S[0].tag===18?(q5=!1,f=f.hydrationErrors,f!==null&&Eq(Z,Z.actualStartTime,U,f)):q5=!0):q5=!1,$4($,Z,Q,Y,U),q5=b;break;case 13:b=q5,f=Z.alternate!==null?Z.alternate.memoizedState:null,S=Z.memoizedState,f===null||f.dehydrated===null||S!==null&&S.dehydrated!==null?q5=!1:(S=Z.deletions,S!==null&&0<S.length&&S[0].tag===18?(q5=!1,f=f.hydrationErrors,f!==null&&Eq(Z,Z.actualStartTime,U,f)):q5=!0),$4($,Z,Q,Y,U),q5=b;break;case 23:break;case 22:S=Z.stateNode,f=Z.alternate,Z.memoizedState!==null?S._visibility&q8?$4($,Z,Q,Y,U):s$($,Z,Q,Y,U):S._visibility&q8?$4($,Z,Q,Y,U):(S._visibility|=q8,H9($,Z,Q,Y,(Z.subtreeFlags&10256)!==0||Z.actualDuration!==0&&(Z.alternate===null||Z.alternate.child!==Z.child),U),(Z.mode&g0)===V0||q5||($=Z.actualStartTime,0<=$&&0.05<U-$&&XQ(Z,$,U),0<=L0&&0<=T0&&0.05<T0-L0&&XQ(Z,L0,T0))),b&2048&&cY(f,Z);break;case 24:$4($,Z,Q,Y,U),b&2048&&lY(Z.alternate,Z);break;default:$4($,Z,Q,Y,U)}if((Z.mode&g0)!==V0){if($=!q5&&Z.alternate===null&&Z.return!==null&&Z.return.alternate!==null)Q=Z.actualStartTime,0<=Q&&0.05<U-Q&&F4(Z,Q,U,"Mount");0<=L0&&0<=T0&&((g1||0.05<k1)&&W4(Z,L0,T0,k1,j1),$&&0.05<T0-L0&&F4(Z,L0,T0,"Mount"))}W6(B),w4(z),j1=w,g1=L,e8=T}function H9($,Z,Q,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 z=Z.sibling;$F($,Z,Q,Y,U,z!==null?z.actualStartTime:B),Z=z}}function $F($,Z,Q,Y,U,B){var z=F6(),w=M4(),L=R4(),T=_4(),b=e8;U&&(Z.mode&g0)!==V0&&0<Z.actualStartTime&&(Z.flags&1)!==0&&NQ(Z,Z.actualStartTime,B,q5,Q);var f=Z.flags;switch(Z.tag){case 0:case 11:case 15:H9($,Z,Q,Y,U,B),yH(Z,d5);break;case 23:break;case 22:var S=Z.stateNode;Z.memoizedState!==null?S._visibility&q8?H9($,Z,Q,Y,U,B):s$($,Z,Q,Y,B):(S._visibility|=q8,H9($,Z,Q,Y,U,B)),U&&f&2048&&cY(Z.alternate,Z);break;case 24:H9($,Z,Q,Y,U,B),U&&f&2048&&lY(Z.alternate,Z);break;default:H9($,Z,Q,Y,U,B)}(Z.mode&g0)!==V0&&0<=L0&&0<=T0&&(g1||0.05<k1)&&W4(Z,L0,T0,k1,j1),W6(z),w4(w),j1=L,g1=T,e8=b}function s$($,Z,Q,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 z=$,w=Q,L=Y,T=Z!==null?Z.actualStartTime:U,b=e8;(B.mode&g0)!==V0&&0<B.actualStartTime&&(B.flags&1)!==0&&NQ(B,B.actualStartTime,T,q5,w);var f=B.flags;switch(B.tag){case 22:s$(z,B,w,L,T),f&2048&&cY(B.alternate,B);break;case 24:s$(z,B,w,L,T),f&2048&&lY(B.alternate,B);break;default:s$(z,B,w,L,T)}e8=b,B=Z}}function F9($,Z,Q){if($.subtreeFlags&gZ)for($=$.child;$!==null;)ZF($,Z,Q),$=$.sibling}function ZF($,Z,Q){switch($.tag){case 26:F9($,Z,Q),$.flags&gZ&&$.memoizedState!==null&&xT(Q,Y4,$.memoizedState,$.memoizedProps);break;case 5:F9($,Z,Q);break;case 3:case 4:var Y=Y4;Y4=eQ($.stateNode.containerInfo),F9($,Z,Q),Y4=Y;break;case 22:$.memoizedState===null&&(Y=$.alternate,Y!==null&&Y.memoizedState!==null?(Y=gZ,gZ=16777216,F9($,Z,Q),gZ=Y):F9($,Z,Q));break;default:F9($,Z,Q)}}function JF($){var Z=$.alternate;if(Z!==null&&($=Z.child,$!==null)){Z.child=null;do Z=$.sibling,$.sibling=null,$=Z;while($!==null)}}function n$($){var Z=$.deletions;if(($.flags&16)!==0){if(Z!==null)for(var Q=0;Q<Z.length;Q++){var Y=Z[Q],U=F6();F5=Y,qF(Y,$),(Y.mode&g0)!==V0&&0<=L0&&0<=T0&&0.05<T0-L0&&F4(Y,L0,T0,"Unmount"),W6(U)}JF($)}if($.subtreeFlags&10256)for($=$.child;$!==null;)QF($),$=$.sibling}function QF($){var Z=F6(),Q=M4(),Y=R4(),U=_4();switch($.tag){case 0:case 11:case 15:n$($),$.flags&2048&&xY($,$.return,d5|u6);break;case 3:var B=e4();n$($),$.stateNode.passiveEffectDuration+=wQ(B);break;case 12:B=e4(),n$($),$.stateNode.passiveEffectDuration+=b$(B);break;case 22:B=$.stateNode,$.memoizedState!==null&&B._visibility&q8&&($.return===null||$.return.tag!==13)?(B._visibility&=~q8,rQ($),($.mode&g0)!==V0&&0<=L0&&0<=T0&&0.05<T0-L0&&F4($,L0,T0,"Disconnect")):n$($);break;default:n$($)}($.mode&g0)!==V0&&0<=L0&&0<=T0&&(g1||0.05<k1)&&W4($,L0,T0,k1,j1),W6(Z),w4(Q),g1=U,j1=Y}function rQ($){var Z=$.deletions;if(($.flags&16)!==0){if(Z!==null)for(var Q=0;Q<Z.length;Q++){var Y=Z[Q],U=F6();F5=Y,qF(Y,$),(Y.mode&g0)!==V0&&0<=L0&&0<=T0&&0.05<T0-L0&&F4(Y,L0,T0,"Unmount"),W6(U)}JF($)}for($=$.child;$!==null;)GF($),$=$.sibling}function GF($){var Z=F6(),Q=M4(),Y=R4(),U=_4();switch($.tag){case 0:case 11:case 15:xY($,$.return,d5),rQ($);break;case 22:var B=$.stateNode;B._visibility&q8&&(B._visibility&=~q8,rQ($));break;default:rQ($)}($.mode&g0)!==V0&&0<=L0&&0<=T0&&(g1||0.05<k1)&&W4($,L0,T0,k1,j1),W6(Z),w4(Q),g1=U,j1=Y}function qF($,Z){for(;F5!==null;){var Q=F5,Y=Q,U=Z,B=F6(),z=M4(),w=R4(),L=_4();switch(Y.tag){case 0:case 11:case 15:xY(Y,U,d5);break;case 23:case 22:Y.memoizedState!==null&&Y.memoizedState.cachePool!==null&&(U=Y.memoizedState.cachePool.pool,U!=null&&J7(U));break;case 24:v$(Y.memoizedState.cache)}if((Y.mode&g0)!==V0&&0<=L0&&0<=T0&&(g1||0.05<k1)&&W4(Y,L0,T0,k1,j1),W6(B),w4(z),g1=L,j1=w,Y=Q.child,Y!==null)Y.return=Q,F5=Y;else $:for(Q=$;F5!==null;){if(Y=F5,B=Y.sibling,z=Y.return,lH(Y),Y===Q){F5=null;break $}if(B!==null){B.return=z,F5=B;break $}F5=z}}}function eP(){LO.forEach(function($){return $()})}function YF(){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 M6($){if((Z1&Y5)!==W5&&u0!==0)return u0&-u0;var Z=x.T;return Z!==null?(Z._updatedFibers||(Z._updatedFibers=new Set),Z._updatedFibers.add($),eY()):y()}function XF(){if(a5===0)if((u0&536870912)===0||i0){var $=BG;BG<<=1,(BG&3932160)===0&&(BG=262144),a5=$}else a5=536870912;return $=T6.current,$!==null&&($.flags|=32),a5}function y1($,Z,Q){if(t9&&console.error("useInsertionEffect must not schedule updates."),bN&&(aG=!0),$===_1&&(H1===T7||H1===C7)||$.cancelPendingCommit!==null)z9($,0),l8($,u0,a5,!1);if(v8($,Q),(Z1&Y5)!==W5&&$===_1){if(D4)switch(Z.tag){case 0:case 11:case 15:$=x0&&d(x0)||"Unknown",bM.has($)||(bM.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:vM||(console.error("Cannot update during an existing state transition (such as within `render`). Render methods should be a pure function of props and state."),vM=!0)}}else k4&&T$($,Z,Q),UT(Z),$===_1&&((Z1&Y5)===W5&&(H2|=Q),v1===U2&&l8($,u0,a5,!1)),V4($)}function NF($,Z,Q){if((Z1&(Y5|O6))!==W5)throw Error("Should not already be working.");if(u0!==0&&x0!==null){var Y=x0,U=B5();switch(Vz){case xZ:case T7:var B=CZ;I1&&((Y=Y._debugTask)?Y.run(console.timeStamp.bind(console,"Suspended",B,U,j6,void 0,"primary-light")):console.timeStamp("Suspended",B,U,j6,void 0,"primary-light"));break;case C7:B=CZ,I1&&((Y=Y._debugTask)?Y.run(console.timeStamp.bind(console,"Action",B,U,j6,void 0,"primary-light")):console.timeStamp("Action",B,U,j6,void 0,"primary-light"));break;default:I1&&(Y=U-CZ,3>Y||console.timeStamp("Blocked",CZ,U,j6,void 0,5>Y?"primary-light":10>Y?"primary":100>Y?"primary-dark":"error"))}}B=(Q=!Q&&(Z&127)===0&&(Z&$.expiredLanes)===0||p2($,Z))?ZT($,Z):sY($,Z,!0);var z=Q;do{if(B===M8){a9&&!Q&&l8($,Z,0,!1),Z=H1,CZ=i1(),Vz=Z;break}else{if(Y=B5(),U=$.current.alternate,z&&!$T(U)){B6(Z),U=H5,B=Y,!I1||B<=U||(p1?p1.run(console.timeStamp.bind(console,"Teared Render",U,B,o0,r0,"error")):console.timeStamp("Teared Render",U,B,o0,r0,"error")),N7(Z,Y),B=sY($,Z,!1),z=!1;continue}if(B===P7){if(z=Z,$.errorRecoveryDisabledLanes&z)var w=0;else w=$.pendingLanes&-536870913,w=w!==0?w:w&536870912?536870912:0;if(w!==0){B6(Z),Sq(H5,Y,Z,p1),N7(Z,Y),Z=w;$:{Y=$,B=z,z=dZ;var L=Y.current.memoizedState.isDehydrated;if(L&&(z9(Y,w).flags|=256),w=sY(Y,w,!1),w!==P7){if(VN&&!L){Y.errorRecoveryDisabledLanes|=B,H2|=B,B=U2;break $}Y=p5,p5=z,Y!==null&&(p5===null?p5=Y:p5.push.apply(p5,Y))}B=w}if(z=!1,B!==P7)continue;else Y=B5()}}if(B===uZ){B6(Z),Sq(H5,Y,Z,p1),N7(Z,Y),z9($,0),l8($,Z,0,!0);break}$:{switch(Q=$,B){case M8:case uZ:throw Error("Root did not complete. This is a bug in React.");case U2:if((Z&4194048)!==Z)break;case dG:B6(Z),NB(H5,Y,Z,p1),N7(Z,Y),U=Z,(U&127)!==0?AG=Y:(U&4194048)!==0&&(EG=Y),l8(Q,Z,a5,!K2);break $;case P7:p5=null;break;case mG:case LM:break;default:throw Error("Unknown root exit status.")}if(x.actQueue!==null)nY(Q,U,Z,p5,pZ,lG,a5,H2,O7,B,null,null,H5,Y);else{if((Z&62914560)===Z&&(z=rG+CM-B5(),10<z)){if(l8(Q,Z,a5,!K2),d2(Q,0,!0)!==0)break $;X4=Z,Q.timeoutHandle=dM(UF.bind(null,Q,U,p5,pZ,lG,Z,a5,H2,O7,K2,B,"Throttled",H5,Y),z);break $}UF(Q,U,p5,pZ,lG,Z,a5,H2,O7,K2,B,null,H5,Y)}}}break}while(1);V4($)}function UF($,Z,Q,Y,U,B,z,w,L,T,b,f,S,g){$.timeoutHandle=S7;var $0=Z.subtreeFlags,G0=null;if($0&8192||($0&16785408)===16785408){if(G0={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:o4},ZF(Z,B,G0),$0=(B&62914560)===B?rG-B5():(B&4194048)===B?TM-B5():0,$0=mT(G0,$0),$0!==null){X4=B,$.cancelPendingCommit=$0(nY.bind(null,$,Z,B,Q,Y,U,z,w,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,S,g)),l8($,B,z,!T);return}}nY($,Z,B,Q,Y,U,z,w,L,b,G0,f,S,g)}function $T($){for(var Z=$;;){var Q=Z.tag;if((Q===0||Q===11||Q===15)&&Z.flags&16384&&(Q=Z.updateQueue,Q!==null&&(Q=Q.stores,Q!==null)))for(var Y=0;Y<Q.length;Y++){var U=Q[Y],B=U.getSnapshot;U=U.value;try{if(!u5(B(),U))return!1}catch(z){return!1}}if(Q=Z.child,Z.subtreeFlags&16384&&Q!==null)Q.return=Z,Z=Q;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,Q,Y){Z&=~AN,Z&=~H2,$.suspendedLanes|=Z,$.pingedLanes&=~Z,Y&&($.warmLanes|=Z),Y=$.expirationTimes;for(var U=Z;0<U;){var B=31-y5(U),z=1<<B;Y[B]=-1,U&=~z}Q!==0&&c2($,Q,Z)}function W9(){return(Z1&(Y5|O6))===W5?(i$(0,!1),!1):!0}function rY(){if(x0!==null){if(H1===o5)var $=x0.return;else $=x0,WQ(),QY($),m9=null,kZ=0,$=x0;for(;$!==null;)bH($.alternate,$),$=$.return;x0=null}}function N7($,Z){($&127)!==0&&(G2=Z),($&4194048)!==0&&(g4=Z),($&62914560)!==0&&(Oz=Z),($&2080374784)!==0&&(Iz=Z)}function z9($,Z){I1&&(console.timeStamp("Blocking Track",0.003,0.003,"Blocking",r0,"primary-light"),console.timeStamp("Transition Track",0.003,0.003,"Transition",r0,"primary-light"),console.timeStamp("Suspense Track",0.003,0.003,"Suspense",r0,"primary-light"),console.timeStamp("Idle Track",0.003,0.003,"Idle",r0,"primary-light"));var Q=H5;if(H5=i1(),u0!==0&&0<Q){if(B6(u0),v1===mG||v1===U2)NB(Q,H5,Z,p1);else{var Y=H5,U=p1;if(I1&&!(Y<=Q)){var B=(Z&738197653)===Z?"tertiary-dark":"primary-dark",z=(Z&536870912)===Z?"Prewarm":(Z&201326741)===Z?"Interrupted Hydration":"Interrupted Render";U?U.run(console.timeStamp.bind(console,z,Q,Y,o0,r0,B)):console.timeStamp(z,Q,Y,o0,r0,B)}}N7(u0,H5)}if(Q=p1,p1=null,(Z&127)!==0){p1=LZ,U=0<=y4&&y4<G2?G2:y4,Y=0<=F7&&F7<G2?G2:F7,B=0<=Y?Y:0<=U?U:H5,0<=AG?(B6(2),UB(AG,B,Z,Q)):(SG&127)!==0&&(B6(2),j$(G2,B,B8)),Q=U;var w=Y,L=PZ,T=0<h9,b=q2===_Z,f=q2===VG;if(U=H5,Y=LZ,B=qN,z=YN,I1){if(o0="Blocking",0<Q?Q>U&&(Q=U):Q=U,0<w?w>Q&&(w=Q):w=Q,L!==null&&Q>w){var S=T?"secondary-light":"warning";Y?Y.run(console.timeStamp.bind(console,T?"Consecutive":"Event: "+L,w,Q,o0,r0,S)):console.timeStamp(T?"Consecutive":"Event: "+L,w,Q,o0,r0,S)}U>Q&&(w=b?"error":(Z&738197653)===Z?"tertiary-light":"primary-light",b=f?"Promise Resolved":b?"Cascading Update":5<U-Q?"Update Blocked":"Update",f=[],z!=null&&f.push(["Component name",z]),B!=null&&f.push(["Method name",B]),Q={start:Q,end:U,detail:{devtools:{properties:f,track:o0,trackGroup:r0,color:w}}},Y?Y.run(performance.measure.bind(performance,b,Q)):performance.measure(b,Q))}y4=-1.1,q2=0,YN=qN=null,AG=-1.1,h9=F7,F7=-1.1,G2=i1()}if((Z&4194048)!==0&&(p1=TZ,U=0<=K8&&K8<g4?g4:K8,Q=0<=g6&&g6<g4?g4:g6,Y=0<=Y2&&Y2<g4?g4:Y2,B=0<=Y?Y:0<=Q?Q:H5,0<=EG?(B6(256),UB(EG,B,Z,p1)):(SG&4194048)!==0&&(B6(256),j$(g4,B,B8)),f=Y,w=W7,L=0<X2,T=XN===VG,B=H5,Y=TZ,z=Tz,b=Cz,I1&&(o0="Transition",0<Q?Q>B&&(Q=B):Q=B,0<U?U>Q&&(U=Q):U=Q,0<f?f>U&&(f=U):f=U,U>f&&w!==null&&(S=L?"secondary-light":"warning",Y?Y.run(console.timeStamp.bind(console,L?"Consecutive":"Event: "+w,f,U,o0,r0,S)):console.timeStamp(L?"Consecutive":"Event: "+w,f,U,o0,r0,S)),Q>U&&(Y?Y.run(console.timeStamp.bind(console,"Action",U,Q,o0,r0,"primary-dark")):console.timeStamp("Action",U,Q,o0,r0,"primary-dark")),B>Q&&(U=T?"Promise Resolved":5<B-Q?"Update Blocked":"Update",f=[],b!=null&&f.push(["Component name",b]),z!=null&&f.push(["Method name",z]),Q={start:Q,end:B,detail:{devtools:{properties:f,track:o0,trackGroup:r0,color:"primary-light"}}},Y?Y.run(performance.measure.bind(performance,U,Q)):performance.measure(U,Q))),g6=K8=-1.1,XN=0,EG=-1.1,X2=Y2,Y2=-1.1,g4=i1()),(Z&62914560)!==0&&(SG&62914560)!==0&&(B6(4194304),j$(Oz,H5,B8)),(Z&2080374784)!==0&&(SG&2080374784)!==0&&(B6(268435456),j$(Iz,H5,B8)),Q=$.timeoutHandle,Q!==S7&&($.timeoutHandle=S7,vO(Q)),Q=$.cancelPendingCommit,Q!==null&&($.cancelPendingCommit=null,Q()),X4=0,rY(),_1=$,x0=Q=a4($.current,null),u0=Z,H1=o5,I6=null,K2=!1,a9=p2($,Z),VN=!1,v1=M8,O7=a5=AN=H2=B2=0,p5=dZ=null,lG=!1,(Z&8)!==0&&(Z|=Z&32),Y=$.entangledLanes,Y!==0)for($=$.entanglements,Y&=Z;0<Y;)U=31-y5(Y),B=1<<U,Z|=$[U],Y&=~B;return u4=Z,UQ(),$=Mz(),1000<$-zz&&(x.recentlyCreatedOwnerStacks=0,zz=$),G4.discardPendingWarnings(),Q}function KF($,Z){A0=null,x.H=yZ,x.getCurrentStack=null,D4=!1,_6=null,Z===x9||Z===vG?(Z=jB(),H1=xZ):Z===BN?(Z=jB(),H1=PM):H1=Z===PN?IN:Z!==null&&typeof Z==="object"&&typeof Z.then==="function"?mZ:pG,I6=Z;var Q=x0;Q===null?(v1=uZ,uQ($,H6(Z,$.current))):Q.mode&g0&&cq(Q)}function BF(){var $=T6.current;return $===null?!0:(u0&4194048)===u0?h6===null?!0:!1:(u0&62914560)===u0||(u0&536870912)!==0?$===h6:!1}function HF(){var $=x.H;return x.H=yZ,$===null?yZ:$}function FF(){var $=x.A;return x.A=_O,$}function sQ($){p1===null&&(p1=$._debugTask==null?null:$._debugTask)}function nQ(){v1=U2,K2||(u0&4194048)!==u0&&T6.current!==null||(a9=!0),(B2&134217727)===0&&(H2&134217727)===0||_1===null||l8(_1,u0,a5,!1)}function sY($,Z,Q){var Y=Z1;Z1|=Y5;var U=HF(),B=FF();if(_1!==$||u0!==Z){if(k4){var z=$.memoizedUpdaters;0<z.size&&(a$($,u0),z.clear()),b8($,Z)}pZ=null,z9($,Z)}Z=!1,z=v1;$:do try{if(H1!==o5&&x0!==null){var w=x0,L=I6;switch(H1){case IN:rY(),z=dG;break $;case xZ:case T7:case C7:case mZ:T6.current===null&&(Z=!0);var T=H1;if(H1=o5,I6=null,M9($,w,L,T),Q&&a9){z=M8;break $}break;default:T=H1,H1=o5,I6=null,M9($,w,L,T)}}WF(),z=v1;break}catch(b){KF($,b)}while(1);return Z&&$.shellSuspendCounter++,WQ(),Z1=Y,x.H=U,x.A=B,x0===null&&(_1=null,u0=0,UQ()),z}function WF(){for(;x0!==null;)zF(x0)}function ZT($,Z){var Q=Z1;Z1|=Y5;var Y=HF(),U=FF();if(_1!==$||u0!==Z){if(k4){var B=$.memoizedUpdaters;0<B.size&&(a$($,u0),B.clear()),b8($,Z)}pZ=null,sG=B5()+OM,z9($,Z)}else a9=p2($,Z);$:do try{if(H1!==o5&&x0!==null)Z:switch(Z=x0,B=I6,H1){case pG:H1=o5,I6=null,M9($,Z,B,pG);break;case T7:case C7:if(SB(B)){H1=o5,I6=null,MF(Z);break}Z=function(){H1!==T7&&H1!==C7||_1!==$||(H1=cG),V4($)},B.then(Z,Z);break $;case xZ:H1=cG;break $;case PM:H1=ON;break $;case cG:SB(B)?(H1=o5,I6=null,MF(Z)):(H1=o5,I6=null,M9($,Z,B,cG));break;case ON:var z=null;switch(x0.tag){case 26:z=x0.memoizedState;case 5:case 27:var w=x0;if(z?NW(z):w.stateNode.complete){H1=o5,I6=null;var L=w.sibling;if(L!==null)x0=L;else{var T=w.return;T!==null?(x0=T,oQ(T)):x0=null}break Z}break;default:console.error("Unexpected type of fiber triggered a suspensey commit. This is a bug in React.")}H1=o5,I6=null,M9($,Z,B,ON);break;case mZ:H1=o5,I6=null,M9($,Z,B,mZ);break;case IN:rY(),v1=dG;break $;default:throw Error("Unexpected SuspendedReason. This is a bug in React.")}x.actQueue!==null?WF():JT();break}catch(b){KF($,b)}while(1);if(WQ(),x.H=Y,x.A=U,Z1=Q,x0!==null)return M8;return _1=null,u0=0,UQ(),v1}function JT(){for(;x0!==null&&!$C();)zF(x0)}function zF($){var Z=$.alternate;($.mode&g0)!==V0?(pq($),Z=q0($,gY,Z,$,u4),cq($)):Z=q0($,gY,Z,$,u4),$.memoizedProps=$.pendingProps,Z===null?oQ($):x0=Z}function MF($){var Z=q0($,QT,$);$.memoizedProps=$.pendingProps,Z===null?oQ($):x0=Z}function QT($){var Z=$.alternate,Q=($.mode&g0)!==V0;switch(Q&&pq($),$.tag){case 15:case 0:Z=AH(Z,$,$.pendingProps,$.type,void 0,u0);break;case 11:Z=AH(Z,$,$.pendingProps,$.type.render,$.ref,u0);break;case 5:QY($);default:bH(Z,$),$=x0=zB($,u4),Z=gY(Z,$,u4)}return Q&&cq($),Z}function M9($,Z,Q,Y){WQ(),QY(Z),m9=null,kZ=0;var U=Z.return;try{if(mP($,U,Z,Q,u0)){v1=uZ,uQ($,H6(Q,$.current)),x0=null;return}}catch(B){if(U!==null)throw x0=U,B;v1=uZ,uQ($,H6(Q,$.current)),x0=null;return}if(Z.flags&32768){if(i0||Y===pG)$=!0;else if(a9||(u0&536870912)!==0)$=!1;else if(K2=$=!0,Y===T7||Y===C7||Y===xZ||Y===mZ)Y=T6.current,Y!==null&&Y.tag===13&&(Y.flags|=16384);wF(Z,$)}else oQ(Z)}function oQ($){var Z=$;do{if((Z.flags&32768)!==0){wF(Z,K2);return}var Q=Z.alternate;if($=Z.return,pq(Z),Q=q0(Z,cP,Q,Z,u4),(Z.mode&g0)!==V0&&OB(Z),Q!==null){x0=Q;return}if(Z=Z.sibling,Z!==null){x0=Z;return}x0=Z=$}while(Z!==null);v1===M8&&(v1=LM)}function wF($,Z){do{var Q=lP($.alternate,$);if(Q!==null){Q.flags&=32767,x0=Q;return}if(($.mode&g0)!==V0){OB($),Q=$.actualDuration;for(var Y=$.child;Y!==null;)Q+=Y.actualDuration,Y=Y.sibling;$.actualDuration=Q}if(Q=$.return,Q!==null&&(Q.flags|=32768,Q.subtreeFlags=0,Q.deletions=null),!Z&&($=$.sibling,$!==null)){x0=$;return}x0=$=Q}while($!==null);v1=dG,x0=null}function nY($,Z,Q,Y,U,B,z,w,L,T,b,f,S,g){$.cancelPendingCommit=null;do o$();while(J5!==W2);if(G4.flushLegacyContextWarning(),G4.flushPendingUnsafeLifecycleWarnings(),(Z1&(Y5|O6))!==W5)throw Error("Should not already be working.");if(B6(Q),T===P7?Sq(S,g,Q,p1):Y!==null?EP(S,g,Q,Y,Z!==null&&Z.alternate!==null&&Z.alternate.memoizedState.isDehydrated&&(Z.flags&256)!==0,p1):AP(S,g,Q,p1),Z!==null){if(Q===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|=$N,tJ($,Q,B,z,w,L),$===_1&&(x0=_1=null,u0=0),i9=Z,z2=$,X4=Q,DN=B,kN=U,DM=Y,jN=g,jM=f,N4=nG,kM=null,Z.actualDuration!==0||(Z.subtreeFlags&10256)!==0||(Z.flags&10256)!==0?($.callbackNode=null,$.callbackPriority=0,NT(T9,function(){return oZ=window.event,N4===nG&&(N4=SN),TF(),null})):($.callbackNode=null,$.callbackPriority=0),U8=null,Q2=i1(),f!==null&&SP(g,Q2,f,p1),Y=(Z.flags&13878)!==0,(Z.subtreeFlags&13878)!==0||Y){Y=x.T,x.T=null,U=U1.p,U1.p=L6,z=Z1,Z1|=O6;try{iP($,Z,Q)}finally{Z1=z,U1.p=U,x.T=Y}}J5=VM,RF(),_F(),LF()}}function RF(){if(J5===VM){J5=W2;var $=z2,Z=i9,Q=X4,Y=(Z.flags&13878)!==0;if((Z.subtreeFlags&13878)!==0||Y){Y=x.T,x.T=null;var U=U1.p;U1.p=L6;var B=Z1;Z1|=O6;try{n9=Q,o9=$,RQ(),oH(Z,$),o9=n9=null,Q=pN;var z=qB($.containerInfo),w=Q.focusedElem,L=Q.selectionRange;if(z!==w&&w&&w.ownerDocument&&GB(w.ownerDocument.documentElement,w)){if(L!==null&&Vq(w)){var{start:T,end:b}=L;if(b===void 0&&(b=T),"selectionStart"in w)w.selectionStart=T,w.selectionEnd=Math.min(b,w.value.length);else{var f=w.ownerDocument||document,S=f&&f.defaultView||window;if(S.getSelection){var g=S.getSelection(),$0=w.textContent.length,G0=Math.min(L.start,$0),C1=L.end===void 0?G0:Math.min(L.end,$0);!g.extend&&G0>C1&&(z=C1,C1=G0,G0=z);var e0=QB(w,G0),A=QB(w,C1);if(e0&&A&&(g.rangeCount!==1||g.anchorNode!==e0.node||g.anchorOffset!==e0.offset||g.focusNode!==A.node||g.focusOffset!==A.offset)){var D=f.createRange();D.setStart(e0.node,e0.offset),g.removeAllRanges(),G0>C1?(g.addRange(D),g.extend(A.node,A.offset)):(D.setEnd(A.node,A.offset),g.addRange(D))}}}}f=[];for(g=w;g=g.parentNode;)g.nodeType===1&&f.push({element:g,left:g.scrollLeft,top:g.scrollTop});typeof w.focus==="function"&&w.focus();for(w=0;w<f.length;w++){var v=f[w];v.element.scrollLeft=v.left,v.element.scrollTop=v.top}}K3=!!dN,pN=dN=null}finally{Z1=B,U1.p=U,x.T=Y}}$.current=Z,J5=AM}}function _F(){if(J5===AM){J5=W2;var $=kM;if($!==null){Q2=i1();var Z=N8,Q=Q2;!I1||Q<=Z||(B8?B8.run(console.timeStamp.bind(console,$,Z,Q,o0,r0,"secondary-light")):console.timeStamp($,Z,Q,o0,r0,"secondary-light"))}$=z2,Z=i9,Q=X4;var Y=(Z.flags&8772)!==0;if((Z.subtreeFlags&8772)!==0||Y){Y=x.T,x.T=null;var U=U1.p;U1.p=L6;var B=Z1;Z1|=O6;try{n9=Q,o9=$,RQ(),cH($,Z.alternate,Z),o9=n9=null}finally{Z1=B,U1.p=U,x.T=Y}}$=jN,Z=jM,N8=i1(),$=Z===null?$:Q2,Z=N8,Q=N4===EN,Y=p1,U8!==null?KB($,Z,U8,!1,Y):!I1||Z<=$||(Y?Y.run(console.timeStamp.bind(console,Q?"Commit Interrupted View Transition":"Commit",$,Z,o0,r0,Q?"error":"secondary-dark")):console.timeStamp(Q?"Commit Interrupted View Transition":"Commit",$,Z,o0,r0,Q?"error":"secondary-dark")),J5=EM}}function LF(){if(J5===SM||J5===EM){if(J5===SM){var $=N8;N8=i1();var Z=N8,Q=N4===EN;!I1||Z<=$||(B8?B8.run(console.timeStamp.bind(console,Q?"Interrupted View Transition":"Starting Animation",$,Z,o0,r0,Q?"error":"secondary-light")):console.timeStamp(Q?"Interrupted View Transition":"Starting Animation",$,Z,o0,r0,Q?" error":"secondary-light")),N4!==EN&&(N4=IM)}J5=W2,ZC(),$=z2;var Y=i9;Z=X4,Q=DM;var U=Y.actualDuration!==0||(Y.subtreeFlags&10256)!==0||(Y.flags&10256)!==0;U?J5=oG:(J5=W2,i9=z2=null,PF($,$.pendingLanes),I7=0,lZ=null);var B=$.pendingLanes;if(B===0&&(F2=null),U||VF($),B=C(Z),Y=Y.stateNode,S5&&typeof S5.onCommitFiberRoot==="function")try{var z=(Y.current.flags&128)===128;switch(B){case L6:var w=kX;break;case J4:w=vX;break;case v4:w=T9;break;case FG:w=bX;break;default:w=T9}S5.onCommitFiberRoot(C9,Y,w,z)}catch(f){j4||(j4=!0,console.error("React instrumentation encountered an error: %o",f))}if(k4&&$.memoizedUpdaters.clear(),eP(),Q!==null){z=x.T,w=U1.p,U1.p=L6,x.T=null;try{var L=$.onRecoverableError;for(Y=0;Y<Q.length;Y++){var T=Q[Y],b=GT(T.stack);q0(T.source,L,T.value,b)}}finally{x.T=z,U1.p=w}}(X4&3)!==0&&o$(),V4($),B=$.pendingLanes,(Z&261930)!==0&&(B&42)!==0?(jG=!0,$===vN?cZ++:(cZ=0,vN=$)):cZ=0,U||N7(Z,N8),i$(0,!1)}}function GT($){return $={componentStack:$},Object.defineProperty($,"digest",{get:function(){console.error('You are accessing "digest" from the errorInfo object passed to onRecoverableError. This property is no longer provided as part of errorInfo but can be accessed as a property of the Error instance itself.')}}),$}function PF($,Z){($.pooledCacheLanes&=Z)===0&&(Z=$.pooledCache,Z!=null&&($.pooledCache=null,v$(Z)))}function o$(){return RF(),_F(),LF(),TF()}function TF(){if(J5!==oG)return!1;var $=z2,Z=DN;DN=0;var Q=C(X4),Y=v4===0||v4>Q?v4:Q;Q=x.T;var U=U1.p;try{U1.p=Y,x.T=null;var B=kN;kN=null,Y=z2;var z=X4;if(J5=W2,i9=z2=null,X4=0,(Z1&(Y5|O6))!==W5)throw Error("Cannot flush passive effects while already rendering.");B6(z),bN=!0,aG=!1;var w=0;if(U8=null,w=B5(),N4===IM)j$(N8,w,B8);else{var L=N8,T=w,b=N4===SN;!I1||T<=L||(p1?p1.run(console.timeStamp.bind(console,b?"Waiting for Paint":"Waiting",L,T,o0,r0,"secondary-light")):console.timeStamp(b?"Waiting for Paint":"Waiting",L,T,o0,r0,"secondary-light"))}L=Z1,Z1|=O6;var f=Y.current;RQ(),QF(f);var S=Y.current;f=jN,RQ(),eH(Y,S,z,B,f),VF(Y),Z1=L;var g=B5();if(S=w,f=p1,U8!==null?KB(S,g,U8,!0,f):!I1||g<=S||(f?f.run(console.timeStamp.bind(console,"Remaining Effects",S,g,o0,r0,"secondary-dark")):console.timeStamp("Remaining Effects",S,g,o0,r0,"secondary-dark")),N7(z,g),i$(0,!1),aG?Y===lZ?I7++:(I7=0,lZ=Y):I7=0,aG=bN=!1,S5&&typeof S5.onPostCommitFiberRoot==="function")try{S5.onPostCommitFiberRoot(C9,Y)}catch(G0){j4||(j4=!0,console.error("React instrumentation encountered an error: %o",G0))}var $0=Y.current.stateNode;return $0.effectDuration=0,$0.passiveEffectDuration=0,!0}finally{U1.p=U,x.T=Q,PF($,Z)}}function CF($,Z,Q){Z=H6(Q,Z),IB(Z),Z=VY($.stateNode,Z,2),$=m8($,Z,2),$!==null&&(v8($,2),V4($))}function N1($,Z,Q){if(t9=!1,$.tag===3)CF($,$,Q);else{for(;Z!==null;){if(Z.tag===3){CF(Z,$,Q);return}if(Z.tag===1){var Y=Z.stateNode;if(typeof Z.type.getDerivedStateFromError==="function"||typeof Y.componentDidCatch==="function"&&(F2===null||!F2.has(Y))){$=H6(Q,$),IB($),Q=AY(2),Y=m8(Z,Q,2),Y!==null&&(EY(Q,Y,Z,$),v8(Y,2),V4(Y));return}}Z=Z.return}console.error(`Internal React error: Attempted to capture a commit phase error inside a detached tree. This indicates a bug in React. Potential causes include deleting the same fiber more than once, committing an already-finished tree, or an inconsistent return pointer.
|
|
153
|
+
Learn more about data fetching with Hooks: https://react.dev/link/hooks-data-fetching`:" You returned: "+Y,q0(Z,function(w,L){console.error("%s must not return anything besides a function, which is used for clean-up.%s",w,L)},B,z)}Q=Q.next}while(Q!==U)}}catch(w){N1(Z,Z.return,w)}}function H9($,Z,Q){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 z=Y.inst,w=z.destroy;w!==void 0&&(z.destroy=void 0,($&m5)!==yG&&(e9=!0),U=Z,q0(U,zO,U,Q,w),($&m5)!==yG&&(e9=!1))}Y=Y.next}while(Y!==B)}}catch(L){N1(Z,Z.return,L)}}function yH($,Z){T4($)?(P4(),r$(Z,$),L4()):r$(Z,$)}function xY($,Z,Q){T4($)?(P4(),H9(Q,$,Z),L4()):H9(Q,$,Z)}function gH($){var Z=$.updateQueue;if(Z!==null){var Q=$.stateNode;$.type.defaultProps||"ref"in $.memoizedProps||n9||(Q.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"),Q.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($,uB,Z,Q)}catch(Y){N1($,$.return,Y)}}}function rP($,Z,Q){return $.getSnapshotBeforeUpdate(Z,Q)}function sP($,Z){var{memoizedProps:Q,memoizedState:Y}=Z;Z=$.stateNode,$.type.defaultProps||"ref"in $.memoizedProps||n9||(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=X7($.type,Q),B=q0($,rP,Z,U,Y);Q=RM,B!==void 0||Q.has($.type)||(Q.add($.type),q0($,function(){console.error("%s.getSnapshotBeforeUpdate(): A snapshot value (or null) must be returned. You have returned undefined.",d($))})),Z.__reactInternalSnapshotBeforeUpdate=B}catch(z){N1($,$.return,z)}}function hH($,Z,Q){Q.props=X7($.type,$.memoizedProps),Q.state=$.memoizedState,T4($)?(P4(),q0($,gz,$,Z,Q),L4()):q0($,gz,$,Z,Q)}function nP($){var Z=$.ref;if(Z!==null){switch($.tag){case 26:case 27:case 5:var Q=$.stateNode;break;case 30:Q=$.stateNode;break;default:Q=$.stateNode}if(typeof Z==="function")if(T4($))try{P4(),$.refCleanup=Z(Q)}finally{L4()}else $.refCleanup=Z(Q);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=Q}}function s$($,Z){try{q0($,nP,$)}catch(Q){N1($,Z,Q)}}function C4($,Z){var{ref:Q,refCleanup:Y}=$;if(Q!==null)if(typeof Y==="function")try{if(T4($))try{P4(),q0($,Y)}finally{L4($)}else q0($,Y)}catch(U){N1($,Z,U)}finally{$.refCleanup=null,$=$.alternate,$!=null&&($.refCleanup=null)}else if(typeof Q==="function")try{if(T4($))try{P4(),q0($,Q,null)}finally{L4($)}else q0($,Q,null)}catch(U){N1($,Z,U)}else Q.current=null}function uH($,Z,Q,Y){var U=$.memoizedProps,B=U.id,z=U.onCommit;U=U.onRender,Z=Z===null?"mount":"update",DG&&(Z="nested-update"),typeof U==="function"&&U(B,Z,$.actualDuration,$.treeBaseDuration,$.actualStartTime,Q),typeof z==="function"&&z(B,Z,Y,Q)}function oP($,Z,Q,Y){var U=$.memoizedProps;$=U.id,U=U.onPostCommit,Z=Z===null?"mount":"update",DG&&(Z="nested-update"),typeof U==="function"&&U($,Z,Y,Q)}function xH($){var{type:Z,memoizedProps:Q,stateNode:Y}=$;try{q0($,_T,Y,Z,Q,$)}catch(U){N1($,$.return,U)}}function mY($,Z,Q){try{q0($,PT,$.stateNode,$.type,Q,Z,$)}catch(Y){N1($,$.return,Y)}}function mH($){return $.tag===5||$.tag===3||$.tag===26||$.tag===27&&s8($.type)||$.tag===4}function dY($){$:for(;;){for(;$.sibling===null;){if($.return===null||mH($.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 pY($,Z,Q){var Y=$.tag;if(Y===5||Y===6)$=$.stateNode,Z?(nF(Q),(Q.nodeType===9?Q.body:Q.nodeName==="HTML"?Q.ownerDocument.body:Q).insertBefore($,Z)):(nF(Q),Z=Q.nodeType===9?Q.body:Q.nodeName==="HTML"?Q.ownerDocument.body:Q,Z.appendChild($),Q=Q._reactRootContainer,Q!==null&&Q!==void 0||Z.onclick!==null||(Z.onclick=o4));else if(Y!==4&&(Y===27&&s8($.type)&&(Q=$.stateNode,Z=null),$=$.child,$!==null))for(pY($,Z,Q),$=$.sibling;$!==null;)pY($,Z,Q),$=$.sibling}function cQ($,Z,Q){var Y=$.tag;if(Y===5||Y===6)$=$.stateNode,Z?Q.insertBefore($,Z):Q.appendChild($);else if(Y!==4&&(Y===27&&s8($.type)&&(Q=$.stateNode),$=$.child,$!==null))for(cQ($,Z,Q),$=$.sibling;$!==null;)cQ($,Z,Q),$=$.sibling}function aP($){for(var Z,Q=$.return;Q!==null;){if(mH(Q)){Z=Q;break}Q=Q.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,Q=dY($),cQ($,Q,Z);break;case 5:Q=Z.stateNode,Z.flags&32&&(sF(Q),Z.flags&=-33),Z=dY($),cQ($,Z,Q);break;case 3:case 4:Z=Z.stateNode.containerInfo,Q=dY($),pY($,Q,Z);break;default:throw Error("Invalid host parent fiber. This error is likely caused by a bug in React. Please file an issue.")}}function dH($){var{stateNode:Z,memoizedProps:Q}=$;try{q0($,gT,$.type,Q,Z,$)}catch(Y){N1($,$.return,Y)}}function pH($,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 iP($,Z){if($=$.containerInfo,dN=K3,$=qB($),Vq($)){if("selectionStart"in $)var Q={start:$.selectionStart,end:$.selectionEnd};else $:{Q=(Q=$.ownerDocument)&&Q.defaultView||window;var Y=Q.getSelection&&Q.getSelection();if(Y&&Y.rangeCount!==0){Q=Y.anchorNode;var{anchorOffset:U,focusNode:B}=Y;Y=Y.focusOffset;try{Q.nodeType,B.nodeType}catch($0){Q=null;break $}var z=0,w=-1,L=-1,T=0,b=0,f=$,S=null;Z:for(;;){for(var g;;){if(f!==Q||U!==0&&f.nodeType!==3||(w=z+U),f!==B||Y!==0&&f.nodeType!==3||(L=z+Y),f.nodeType===3&&(z+=f.nodeValue.length),(g=f.firstChild)===null)break;S=f,f=g}for(;;){if(f===$)break Z;if(S===Q&&++T===U&&(w=z),S===B&&++b===Y&&(L=z),(g=f.nextSibling)!==null)break;f=S,S=f.parentNode}f=g}Q=w===-1||L===-1?null:{start:w,end:L}}else Q=null}Q=Q||{start:0,end:0}}else Q=null;pN={focusedElem:$,selectionRange:Q},K3=!1;for(F5=Z;F5!==null;)if(Z=F5,$=Z.child,(Z.subtreeFlags&1028)!==0&&$!==null)$.return=Z,F5=$;else for(;F5!==null;){switch($=Z=F5,Q=$.alternate,U=$.flags,$.tag){case 0:if((U&4)!==0&&($=$.updateQueue,$=$!==null?$.events:null,$!==null))for(Q=0;Q<$.length;Q++)U=$[Q],U.ref.impl=U.nextImpl;break;case 11:case 15:break;case 1:(U&1024)!==0&&Q!==null&&sP($,Q);break;case 3:if((U&1024)!==0){if($=$.stateNode.containerInfo,Q=$.nodeType,Q===9)UX($);else if(Q===1)switch($.nodeName){case"HEAD":case"HTML":case"BODY":UX($);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,F5=$;break}F5=Z.return}}function cH($,Z,Q){var Y=F6(),U=M4(),B=R4(),z=_4(),w=Q.flags;switch(Q.tag){case 0:case 11:case 15:O4($,Q),w&4&&fH(Q,C6|u6);break;case 1:if(O4($,Q),w&4)if($=Q.stateNode,Z===null)Q.type.defaultProps||"ref"in Q.memoizedProps||n9||($.props!==Q.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(Q)||"instance"),$.state!==Q.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(Q)||"instance")),T4(Q)?(P4(),q0(Q,KN,Q,$),L4()):q0(Q,KN,Q,$);else{var L=X7(Q.type,Z.memoizedProps);Z=Z.memoizedState,Q.type.defaultProps||"ref"in Q.memoizedProps||n9||($.props!==Q.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(Q)||"instance"),$.state!==Q.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(Q)||"instance")),T4(Q)?(P4(),q0(Q,bz,Q,$,L,Z,$.__reactInternalSnapshotBeforeUpdate),L4()):q0(Q,bz,Q,$,L,Z,$.__reactInternalSnapshotBeforeUpdate)}w&64&&gH(Q),w&512&&s$(Q,Q.return);break;case 3:if(Z=e4(),O4($,Q),w&64&&(w=Q.updateQueue,w!==null)){if(L=null,Q.child!==null)switch(Q.child.tag){case 27:case 5:L=Q.child.stateNode;break;case 1:L=Q.child.stateNode}try{q0(Q,uB,w,L)}catch(b){N1(Q,Q.return,b)}}$.effectDuration+=wQ(Z);break;case 27:Z===null&&w&4&&dH(Q);case 26:case 5:if(O4($,Q),Z===null){if(w&4)xH(Q);else if(w&64){$=Q.type,Z=Q.memoizedProps,L=Q.stateNode;try{q0(Q,LT,L,$,Z,Q)}catch(b){N1(Q,Q.return,b)}}}w&512&&s$(Q,Q.return);break;case 12:if(w&4){w=e4(),O4($,Q),$=Q.stateNode,$.effectDuration+=f$(w);try{q0(Q,uH,Q,Z,Q2,$.effectDuration)}catch(b){N1(Q,Q.return,b)}}else O4($,Q);break;case 31:O4($,Q),w&4&&sH($,Q);break;case 13:O4($,Q),w&4&&nH($,Q),w&64&&($=Q.memoizedState,$!==null&&($=$.dehydrated,$!==null&&(w=YT.bind(null,Q),vT($,w))));break;case 22:if(w=Q.memoizedState!==null||z8,!w){Z=Z!==null&&Z.memoizedState!==null||$5,L=z8;var T=$5;z8=w,($5=Z)&&!T?(I4($,Q,(Q.subtreeFlags&8772)!==0),(Q.mode&g0)!==V0&&0<=L0&&0<=T0&&0.05<T0-L0&&XQ(Q,L0,T0)):O4($,Q),z8=L,$5=T}break;case 30:break;default:O4($,Q)}(Q.mode&g0)!==V0&&0<=L0&&0<=T0&&((g1||0.05<k1)&&W4(Q,L0,T0,k1,j1),Q.alternate===null&&Q.return!==null&&Q.return.alternate!==null&&0.05<T0-L0&&(pH(Q.return.alternate,Q.return)||F4(Q,L0,T0,"Mount"))),W6(Y),w4(U),j1=B,g1=z}function lH($){var Z=$.alternate;Z!==null&&($.alternate=null,lH(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 J8($,Z,Q){for(Q=Q.child;Q!==null;)rH($,Z,Q),Q=Q.sibling}function rH($,Z,Q){if(S5&&typeof S5.onCommitFiberUnmount==="function")try{S5.onCommitFiberUnmount(O9,Q)}catch(T){j4||(j4=!0,console.error("React instrumentation encountered an error: %o",T))}var Y=F6(),U=M4(),B=R4(),z=_4();switch(Q.tag){case 26:$5||C4(Q,Z),J8($,Z,Q),Q.memoizedState?Q.memoizedState.count--:Q.stateNode&&($=Q.stateNode,$.parentNode.removeChild($));break;case 27:$5||C4(Q,Z);var w=Z5,L=n5;s8(Q.type)&&(Z5=Q.stateNode,n5=!1),J8($,Z,Q),q0(Q,JZ,Q.stateNode),Z5=w,n5=L;break;case 5:$5||C4(Q,Z);case 6:if(w=Z5,L=n5,Z5=null,J8($,Z,Q),Z5=w,n5=L,Z5!==null)if(n5)try{q0(Q,OT,Z5,Q.stateNode)}catch(T){N1(Q,Z,T)}else try{q0(Q,CT,Z5,Q.stateNode)}catch(T){N1(Q,Z,T)}break;case 18:Z5!==null&&(n5?($=Z5,oF($.nodeType===9?$.body:$.nodeName==="HTML"?$.ownerDocument.body:$,Q.stateNode),L9($)):oF(Z5,Q.stateNode));break;case 4:w=Z5,L=n5,Z5=Q.stateNode.containerInfo,n5=!0,J8($,Z,Q),Z5=w,n5=L;break;case 0:case 11:case 14:case 15:H9(m5,Q,Z),$5||uY(Q,Z,C6),J8($,Z,Q);break;case 1:$5||(C4(Q,Z),w=Q.stateNode,typeof w.componentWillUnmount==="function"&&hH(Q,Z,w)),J8($,Z,Q);break;case 21:J8($,Z,Q);break;case 22:$5=(w=$5)||Q.memoizedState!==null,J8($,Z,Q),$5=w;break;default:J8($,Z,Q)}(Q.mode&g0)!==V0&&0<=L0&&0<=T0&&(g1||0.05<k1)&&W4(Q,L0,T0,k1,j1),W6(Y),w4(U),j1=B,g1=z}function sH($,Z){if(Z.memoizedState===null&&($=Z.alternate,$!==null&&($=$.memoizedState,$!==null))){$=$.dehydrated;try{q0(Z,fT,$)}catch(Q){N1(Z,Z.return,Q)}}}function nH($,Z){if(Z.memoizedState===null&&($=Z.alternate,$!==null&&($=$.memoizedState,$!==null&&($=$.dehydrated,$!==null))))try{q0(Z,yT,$)}catch(Q){N1(Z,Z.return,Q)}}function tP($){switch($.tag){case 31:case 13:case 19:var Z=$.stateNode;return Z===null&&(Z=$.stateNode=new _M),Z;case 22:return $=$.stateNode,Z=$._retryCache,Z===null&&(Z=$._retryCache=new _M),Z;default:throw Error("Unexpected Suspense handler tag ("+$.tag+"). This is a bug in React.")}}function lQ($,Z){var Q=tP($);Z.forEach(function(Y){if(!Q.has(Y)){if(Q.add(Y),k4)if(o9!==null&&a9!==null)i$(a9,o9);else throw Error("Expected finished root and lanes to be set. This is a bug in React.");var U=XT.bind(null,$,Y);Y.then(U,U)}})}function r5($,Z){var Q=Z.deletions;if(Q!==null)for(var Y=0;Y<Q.length;Y++){var U=$,B=Z,z=Q[Y],w=F6(),L=B;$:for(;L!==null;){switch(L.tag){case 27:if(s8(L.type)){Z5=L.stateNode,n5=!1;break $}break;case 5:Z5=L.stateNode,n5=!1;break $;case 3:case 4:Z5=L.stateNode.containerInfo,n5=!0;break $}L=L.return}if(Z5===null)throw Error("Expected to find a host parent. This error is likely caused by a bug in React. Please file an issue.");rH(U,B,z),Z5=null,n5=!1,(z.mode&g0)!==V0&&0<=L0&&0<=T0&&0.05<T0-L0&&F4(z,L0,T0,"Unmount"),W6(w),U=z,B=U.alternate,B!==null&&(B.return=null),U.return=null}if(Z.subtreeFlags&13886)for(Z=Z.child;Z!==null;)oH(Z,$),Z=Z.sibling}function oH($,Z){var Q=F6(),Y=M4(),U=R4(),B=_4(),z=$.alternate,w=$.flags;switch($.tag){case 0:case 11:case 14:case 15:r5(Z,$),s5($),w&4&&(H9(m5|u6,$,$.return),r$(m5|u6,$),uY($,$.return,C6|u6));break;case 1:if(r5(Z,$),s5($),w&512&&($5||z===null||C4(z,z.return)),w&64&&z8&&(w=$.updateQueue,w!==null&&(z=w.callbacks,z!==null))){var L=w.shared.hiddenCallbacks;w.shared.hiddenCallbacks=L===null?z:L.concat(z)}break;case 26:if(L=Y4,r5(Z,$),s5($),w&512&&($5||z===null||C4(z,z.return)),w&4){var T=z!==null?z.memoizedState:null;if(w=$.memoizedState,z===null)if(w===null)if($.stateNode===null){$:{w=$.type,z=$.memoizedProps,L=L.ownerDocument||L;Z:switch(w){case"title":if(T=L.getElementsByTagName("title")[0],!T||T[UZ]||T[_5]||T.namespaceURI===V9||T.hasAttribute("itemprop"))T=L.createElement(w),L.head.insertBefore(T,L.querySelector("head > title"));R5(T,w,z),T[_5]=$,_0(T),w=T;break $;case"link":var b=YW("link","href",L).get(w+(z.href||""));if(b){for(var f=0;f<b.length;f++)if(T=b[f],T.getAttribute("href")===(z.href==null||z.href===""?null:z.href)&&T.getAttribute("rel")===(z.rel==null?null:z.rel)&&T.getAttribute("title")===(z.title==null?null:z.title)&&T.getAttribute("crossorigin")===(z.crossOrigin==null?null:z.crossOrigin)){b.splice(f,1);break Z}}T=L.createElement(w),R5(T,w,z),L.head.appendChild(T);break;case"meta":if(b=YW("meta","content",L).get(w+(z.content||""))){for(f=0;f<b.length;f++)if(T=b[f],W1(z.content,"content"),T.getAttribute("content")===(z.content==null?null:""+z.content)&&T.getAttribute("name")===(z.name==null?null:z.name)&&T.getAttribute("property")===(z.property==null?null:z.property)&&T.getAttribute("http-equiv")===(z.httpEquiv==null?null:z.httpEquiv)&&T.getAttribute("charset")===(z.charSet==null?null:z.charSet)){b.splice(f,1);break Z}}T=L.createElement(w),R5(T,w,z),L.head.appendChild(T);break;default:throw Error('getNodesForType encountered a type it did not expect: "'+w+'". This is a bug in React.')}T[_5]=$,_0(T),w=T}$.stateNode=w}else XW(L,$.type,$.stateNode);else $.stateNode=qW(L,w,$.memoizedProps);else T!==w?(T===null?z.stateNode!==null&&(z=z.stateNode,z.parentNode.removeChild(z)):T.count--,w===null?XW(L,$.type,$.stateNode):qW(L,w,$.memoizedProps)):w===null&&$.stateNode!==null&&mY($,$.memoizedProps,z.memoizedProps)}break;case 27:r5(Z,$),s5($),w&512&&($5||z===null||C4(z,z.return)),z!==null&&w&4&&mY($,$.memoizedProps,z.memoizedProps);break;case 5:if(r5(Z,$),s5($),w&512&&($5||z===null||C4(z,z.return)),$.flags&32){L=$.stateNode;try{q0($,sF,L)}catch(G0){N1($,$.return,G0)}}w&4&&$.stateNode!=null&&(L=$.memoizedProps,mY($,L,z!==null?z.memoizedProps:L)),w&1024&&(CN=!0,$.type!=="form"&&console.error("Unexpected host component type. Expected a form. This is a bug in React."));break;case 6:if(r5(Z,$),s5($),w&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.");w=$.memoizedProps,z=z!==null?z.memoizedProps:w,L=$.stateNode;try{q0($,TT,L,z,w)}catch(G0){N1($,$.return,G0)}}break;case 3:if(L=e4(),X3=null,T=Y4,Y4=eQ(Z.containerInfo),r5(Z,$),Y4=T,s5($),w&4&&z!==null&&z.memoizedState.isDehydrated)try{q0($,bT,Z.containerInfo)}catch(G0){N1($,$.return,G0)}CN&&(CN=!1,aH($)),Z.effectDuration+=wQ(L);break;case 4:w=Y4,Y4=eQ($.stateNode.containerInfo),r5(Z,$),s5($),Y4=w;break;case 12:w=e4(),r5(Z,$),s5($),$.stateNode.effectDuration+=f$(w);break;case 31:r5(Z,$),s5($),w&4&&(w=$.updateQueue,w!==null&&($.updateQueue=null,lQ($,w)));break;case 13:r5(Z,$),s5($),$.child.flags&8192&&$.memoizedState!==null!==(z!==null&&z.memoizedState!==null)&&(rG=B5()),w&4&&(w=$.updateQueue,w!==null&&($.updateQueue=null,lQ($,w)));break;case 22:L=$.memoizedState!==null;var S=z!==null&&z.memoizedState!==null,g=z8,$0=$5;if(z8=g||L,$5=$0||S,r5(Z,$),$5=$0,z8=g,S&&!L&&!g&&!$0&&($.mode&g0)!==V0&&0<=L0&&0<=T0&&0.05<T0-L0&&XQ($,L0,T0),s5($),w&8192)$:for(Z=$.stateNode,Z._visibility=L?Z._visibility&~RZ:Z._visibility|RZ,!L||z===null||S||z8||$5||(N7($),($.mode&g0)!==V0&&0<=L0&&0<=T0&&0.05<T0-L0&&F4($,L0,T0,"Disconnect")),z=null,Z=$;;){if(Z.tag===5||Z.tag===26){if(z===null){S=z=Z;try{T=S.stateNode,L?q0(S,VT,T):q0(S,ST,S.stateNode,S.memoizedProps)}catch(G0){N1(S,S.return,G0)}}}else if(Z.tag===6){if(z===null){S=Z;try{b=S.stateNode,L?q0(S,AT,b):q0(S,DT,b,S.memoizedProps)}catch(G0){N1(S,S.return,G0)}}}else if(Z.tag===18){if(z===null){S=Z;try{f=S.stateNode,L?q0(S,IT,f):q0(S,ET,S.stateNode)}catch(G0){N1(S,S.return,G0)}}}else if((Z.tag!==22&&Z.tag!==23||Z.memoizedState===null||Z===$)&&Z.child!==null){Z.child.return=Z,Z=Z.child;continue}if(Z===$)break $;for(;Z.sibling===null;){if(Z.return===null||Z.return===$)break $;z===Z&&(z=null),Z=Z.return}z===Z&&(z=null),Z.sibling.return=Z.return,Z=Z.sibling}w&4&&(w=$.updateQueue,w!==null&&(z=w.retryQueue,z!==null&&(w.retryQueue=null,lQ($,z))));break;case 19:r5(Z,$),s5($),w&4&&(w=$.updateQueue,w!==null&&($.updateQueue=null,lQ($,w)));break;case 30:break;case 21:break;default:r5(Z,$),s5($)}($.mode&g0)!==V0&&0<=L0&&0<=T0&&((g1||0.05<k1)&&W4($,L0,T0,k1,j1),$.alternate===null&&$.return!==null&&$.return.alternate!==null&&0.05<T0-L0&&(pH($.return.alternate,$.return)||F4($,L0,T0,"Mount"))),W6(Q),w4(Y),j1=U,g1=B}function s5($){var Z=$.flags;if(Z&2){try{q0($,aP,$)}catch(Q){N1($,$.return,Q)}$.flags&=-3}Z&4096&&($.flags&=-4097)}function aH($){if($.subtreeFlags&1024)for($=$.child;$!==null;){var Z=$;aH(Z),Z.tag===5&&Z.flags&1024&&Z.stateNode.reset(),$=$.sibling}}function O4($,Z){if(Z.subtreeFlags&8772)for(Z=Z.child;Z!==null;)cH($,Z.alternate,Z),Z=Z.sibling}function iH($){var Z=F6(),Q=M4(),Y=R4(),U=_4();switch($.tag){case 0:case 11:case 14:case 15:uY($,$.return,C6),N7($);break;case 1:C4($,$.return);var B=$.stateNode;typeof B.componentWillUnmount==="function"&&hH($,$.return,B),N7($);break;case 27:q0($,JZ,$.stateNode);case 26:case 5:C4($,$.return),N7($);break;case 22:$.memoizedState===null&&N7($);break;case 30:N7($);break;default:N7($)}($.mode&g0)!==V0&&0<=L0&&0<=T0&&(g1||0.05<k1)&&W4($,L0,T0,k1,j1),W6(Z),w4(Q),j1=Y,g1=U}function N7($){for($=$.child;$!==null;)iH($),$=$.sibling}function tH($,Z,Q,Y){var U=F6(),B=M4(),z=R4(),w=_4(),L=Q.flags;switch(Q.tag){case 0:case 11:case 15:I4($,Q,Y),fH(Q,C6);break;case 1:if(I4($,Q,Y),Z=Q.stateNode,typeof Z.componentDidMount==="function"&&q0(Q,KN,Q,Z),Z=Q.updateQueue,Z!==null){$=Q.stateNode;try{q0(Q,bP,Z,$)}catch(T){N1(Q,Q.return,T)}}Y&&L&64&&gH(Q),s$(Q,Q.return);break;case 27:dH(Q);case 26:case 5:I4($,Q,Y),Y&&Z===null&&L&4&&xH(Q),s$(Q,Q.return);break;case 12:if(Y&&L&4){L=e4(),I4($,Q,Y),Y=Q.stateNode,Y.effectDuration+=f$(L);try{q0(Q,uH,Q,Z,Q2,Y.effectDuration)}catch(T){N1(Q,Q.return,T)}}else I4($,Q,Y);break;case 31:I4($,Q,Y),Y&&L&4&&sH($,Q);break;case 13:I4($,Q,Y),Y&&L&4&&nH($,Q);break;case 22:Q.memoizedState===null&&I4($,Q,Y),s$(Q,Q.return);break;case 30:break;default:I4($,Q,Y)}(Q.mode&g0)!==V0&&0<=L0&&0<=T0&&(g1||0.05<k1)&&W4(Q,L0,T0,k1,j1),W6(U),w4(B),j1=z,g1=w}function I4($,Z,Q){Q=Q&&(Z.subtreeFlags&8772)!==0;for(Z=Z.child;Z!==null;)tH($,Z.alternate,Z,Q),Z=Z.sibling}function cY($,Z){var Q=null;$!==null&&$.memoizedState!==null&&$.memoizedState.cachePool!==null&&(Q=$.memoizedState.cachePool.pool),$=null,Z.memoizedState!==null&&Z.memoizedState.cachePool!==null&&($=Z.memoizedState.cachePool.pool),$!==Q&&($!=null&&Q7($),Q!=null&&b$(Q))}function lY($,Z){$=null,Z.alternate!==null&&($=Z.alternate.memoizedState.cache),Z=Z.memoizedState.cache,Z!==$&&(Q7(Z),$!=null&&b$($))}function $4($,Z,Q,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;eH($,Z,Q,Y,B!==null?B.actualStartTime:U),Z=B}}function eH($,Z,Q,Y,U){var B=F6(),z=M4(),w=R4(),L=_4(),T=e8,b=Z.flags;switch(Z.tag){case 0:case 11:case 15:(Z.mode&g0)!==V0&&0<Z.actualStartTime&&(Z.flags&1)!==0&&NQ(Z,Z.actualStartTime,U,q5,Q),$4($,Z,Q,Y,U),b&2048&&yH(Z,d5|u6);break;case 1:(Z.mode&g0)!==V0&&0<Z.actualStartTime&&((Z.flags&128)!==0?Eq(Z,Z.actualStartTime,U,[]):(Z.flags&1)!==0&&NQ(Z,Z.actualStartTime,U,q5,Q)),$4($,Z,Q,Y,U);break;case 3:var f=e4(),S=q5;q5=Z.alternate!==null&&Z.alternate.memoizedState.isDehydrated&&(Z.flags&256)===0,$4($,Z,Q,Y,U),q5=S,b&2048&&(Q=null,Z.alternate!==null&&(Q=Z.alternate.memoizedState.cache),Y=Z.memoizedState.cache,Y!==Q&&(Q7(Y),Q!=null&&b$(Q))),$.passiveEffectDuration+=wQ(f);break;case 12:if(b&2048){b=e4(),$4($,Z,Q,Y,U),$=Z.stateNode,$.passiveEffectDuration+=f$(b);try{q0(Z,oP,Z,Z.alternate,Q2,$.passiveEffectDuration)}catch(g){N1(Z,Z.return,g)}}else $4($,Z,Q,Y,U);break;case 31:b=q5,f=Z.alternate!==null?Z.alternate.memoizedState:null,S=Z.memoizedState,f!==null&&S===null?(S=Z.deletions,S!==null&&0<S.length&&S[0].tag===18?(q5=!1,f=f.hydrationErrors,f!==null&&Eq(Z,Z.actualStartTime,U,f)):q5=!0):q5=!1,$4($,Z,Q,Y,U),q5=b;break;case 13:b=q5,f=Z.alternate!==null?Z.alternate.memoizedState:null,S=Z.memoizedState,f===null||f.dehydrated===null||S!==null&&S.dehydrated!==null?q5=!1:(S=Z.deletions,S!==null&&0<S.length&&S[0].tag===18?(q5=!1,f=f.hydrationErrors,f!==null&&Eq(Z,Z.actualStartTime,U,f)):q5=!0),$4($,Z,Q,Y,U),q5=b;break;case 23:break;case 22:S=Z.stateNode,f=Z.alternate,Z.memoizedState!==null?S._visibility&q8?$4($,Z,Q,Y,U):n$($,Z,Q,Y,U):S._visibility&q8?$4($,Z,Q,Y,U):(S._visibility|=q8,F9($,Z,Q,Y,(Z.subtreeFlags&10256)!==0||Z.actualDuration!==0&&(Z.alternate===null||Z.alternate.child!==Z.child),U),(Z.mode&g0)===V0||q5||($=Z.actualStartTime,0<=$&&0.05<U-$&&XQ(Z,$,U),0<=L0&&0<=T0&&0.05<T0-L0&&XQ(Z,L0,T0))),b&2048&&cY(f,Z);break;case 24:$4($,Z,Q,Y,U),b&2048&&lY(Z.alternate,Z);break;default:$4($,Z,Q,Y,U)}if((Z.mode&g0)!==V0){if($=!q5&&Z.alternate===null&&Z.return!==null&&Z.return.alternate!==null)Q=Z.actualStartTime,0<=Q&&0.05<U-Q&&F4(Z,Q,U,"Mount");0<=L0&&0<=T0&&((g1||0.05<k1)&&W4(Z,L0,T0,k1,j1),$&&0.05<T0-L0&&F4(Z,L0,T0,"Mount"))}W6(B),w4(z),j1=w,g1=L,e8=T}function F9($,Z,Q,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 z=Z.sibling;$F($,Z,Q,Y,U,z!==null?z.actualStartTime:B),Z=z}}function $F($,Z,Q,Y,U,B){var z=F6(),w=M4(),L=R4(),T=_4(),b=e8;U&&(Z.mode&g0)!==V0&&0<Z.actualStartTime&&(Z.flags&1)!==0&&NQ(Z,Z.actualStartTime,B,q5,Q);var f=Z.flags;switch(Z.tag){case 0:case 11:case 15:F9($,Z,Q,Y,U,B),yH(Z,d5);break;case 23:break;case 22:var S=Z.stateNode;Z.memoizedState!==null?S._visibility&q8?F9($,Z,Q,Y,U,B):n$($,Z,Q,Y,B):(S._visibility|=q8,F9($,Z,Q,Y,U,B)),U&&f&2048&&cY(Z.alternate,Z);break;case 24:F9($,Z,Q,Y,U,B),U&&f&2048&&lY(Z.alternate,Z);break;default:F9($,Z,Q,Y,U,B)}(Z.mode&g0)!==V0&&0<=L0&&0<=T0&&(g1||0.05<k1)&&W4(Z,L0,T0,k1,j1),W6(z),w4(w),j1=L,g1=T,e8=b}function n$($,Z,Q,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 z=$,w=Q,L=Y,T=Z!==null?Z.actualStartTime:U,b=e8;(B.mode&g0)!==V0&&0<B.actualStartTime&&(B.flags&1)!==0&&NQ(B,B.actualStartTime,T,q5,w);var f=B.flags;switch(B.tag){case 22:n$(z,B,w,L,T),f&2048&&cY(B.alternate,B);break;case 24:n$(z,B,w,L,T),f&2048&&lY(B.alternate,B);break;default:n$(z,B,w,L,T)}e8=b,B=Z}}function W9($,Z,Q){if($.subtreeFlags&hZ)for($=$.child;$!==null;)ZF($,Z,Q),$=$.sibling}function ZF($,Z,Q){switch($.tag){case 26:W9($,Z,Q),$.flags&hZ&&$.memoizedState!==null&&xT(Q,Y4,$.memoizedState,$.memoizedProps);break;case 5:W9($,Z,Q);break;case 3:case 4:var Y=Y4;Y4=eQ($.stateNode.containerInfo),W9($,Z,Q),Y4=Y;break;case 22:$.memoizedState===null&&(Y=$.alternate,Y!==null&&Y.memoizedState!==null?(Y=hZ,hZ=16777216,W9($,Z,Q),hZ=Y):W9($,Z,Q));break;default:W9($,Z,Q)}}function JF($){var Z=$.alternate;if(Z!==null&&($=Z.child,$!==null)){Z.child=null;do Z=$.sibling,$.sibling=null,$=Z;while($!==null)}}function o$($){var Z=$.deletions;if(($.flags&16)!==0){if(Z!==null)for(var Q=0;Q<Z.length;Q++){var Y=Z[Q],U=F6();F5=Y,qF(Y,$),(Y.mode&g0)!==V0&&0<=L0&&0<=T0&&0.05<T0-L0&&F4(Y,L0,T0,"Unmount"),W6(U)}JF($)}if($.subtreeFlags&10256)for($=$.child;$!==null;)QF($),$=$.sibling}function QF($){var Z=F6(),Q=M4(),Y=R4(),U=_4();switch($.tag){case 0:case 11:case 15:o$($),$.flags&2048&&xY($,$.return,d5|u6);break;case 3:var B=e4();o$($),$.stateNode.passiveEffectDuration+=wQ(B);break;case 12:B=e4(),o$($),$.stateNode.passiveEffectDuration+=f$(B);break;case 22:B=$.stateNode,$.memoizedState!==null&&B._visibility&q8&&($.return===null||$.return.tag!==13)?(B._visibility&=~q8,rQ($),($.mode&g0)!==V0&&0<=L0&&0<=T0&&0.05<T0-L0&&F4($,L0,T0,"Disconnect")):o$($);break;default:o$($)}($.mode&g0)!==V0&&0<=L0&&0<=T0&&(g1||0.05<k1)&&W4($,L0,T0,k1,j1),W6(Z),w4(Q),g1=U,j1=Y}function rQ($){var Z=$.deletions;if(($.flags&16)!==0){if(Z!==null)for(var Q=0;Q<Z.length;Q++){var Y=Z[Q],U=F6();F5=Y,qF(Y,$),(Y.mode&g0)!==V0&&0<=L0&&0<=T0&&0.05<T0-L0&&F4(Y,L0,T0,"Unmount"),W6(U)}JF($)}for($=$.child;$!==null;)GF($),$=$.sibling}function GF($){var Z=F6(),Q=M4(),Y=R4(),U=_4();switch($.tag){case 0:case 11:case 15:xY($,$.return,d5),rQ($);break;case 22:var B=$.stateNode;B._visibility&q8&&(B._visibility&=~q8,rQ($));break;default:rQ($)}($.mode&g0)!==V0&&0<=L0&&0<=T0&&(g1||0.05<k1)&&W4($,L0,T0,k1,j1),W6(Z),w4(Q),g1=U,j1=Y}function qF($,Z){for(;F5!==null;){var Q=F5,Y=Q,U=Z,B=F6(),z=M4(),w=R4(),L=_4();switch(Y.tag){case 0:case 11:case 15:xY(Y,U,d5);break;case 23:case 22:Y.memoizedState!==null&&Y.memoizedState.cachePool!==null&&(U=Y.memoizedState.cachePool.pool,U!=null&&Q7(U));break;case 24:b$(Y.memoizedState.cache)}if((Y.mode&g0)!==V0&&0<=L0&&0<=T0&&(g1||0.05<k1)&&W4(Y,L0,T0,k1,j1),W6(B),w4(z),g1=L,j1=w,Y=Q.child,Y!==null)Y.return=Q,F5=Y;else $:for(Q=$;F5!==null;){if(Y=F5,B=Y.sibling,z=Y.return,lH(Y),Y===Q){F5=null;break $}if(B!==null){B.return=z,F5=B;break $}F5=z}}}function eP(){LO.forEach(function($){return $()})}function YF(){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 M6($){if((Z1&Y5)!==W5&&u0!==0)return u0&-u0;var Z=x.T;return Z!==null?(Z._updatedFibers||(Z._updatedFibers=new Set),Z._updatedFibers.add($),eY()):y()}function XF(){if(a5===0)if((u0&536870912)===0||i0){var $=BG;BG<<=1,(BG&3932160)===0&&(BG=262144),a5=$}else a5=536870912;return $=T6.current,$!==null&&($.flags|=32),a5}function y1($,Z,Q){if(e9&&console.error("useInsertionEffect must not schedule updates."),bN&&(aG=!0),$===_1&&(H1===C7||H1===O7)||$.cancelPendingCommit!==null)M9($,0),l8($,u0,a5,!1);if(v8($,Q),(Z1&Y5)!==W5&&$===_1){if(D4)switch(Z.tag){case 0:case 11:case 15:$=x0&&d(x0)||"Unknown",bM.has($)||(bM.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:vM||(console.error("Cannot update during an existing state transition (such as within `render`). Render methods should be a pure function of props and state."),vM=!0)}}else k4&&C$($,Z,Q),UT(Z),$===_1&&((Z1&Y5)===W5&&(H2|=Q),v1===U2&&l8($,u0,a5,!1)),V4($)}function NF($,Z,Q){if((Z1&(Y5|O6))!==W5)throw Error("Should not already be working.");if(u0!==0&&x0!==null){var Y=x0,U=B5();switch(Vz){case mZ:case C7:var B=OZ;I1&&((Y=Y._debugTask)?Y.run(console.timeStamp.bind(console,"Suspended",B,U,j6,void 0,"primary-light")):console.timeStamp("Suspended",B,U,j6,void 0,"primary-light"));break;case O7:B=OZ,I1&&((Y=Y._debugTask)?Y.run(console.timeStamp.bind(console,"Action",B,U,j6,void 0,"primary-light")):console.timeStamp("Action",B,U,j6,void 0,"primary-light"));break;default:I1&&(Y=U-OZ,3>Y||console.timeStamp("Blocked",OZ,U,j6,void 0,5>Y?"primary-light":10>Y?"primary":100>Y?"primary-dark":"error"))}}B=(Q=!Q&&(Z&127)===0&&(Z&$.expiredLanes)===0||c2($,Z))?ZT($,Z):sY($,Z,!0);var z=Q;do{if(B===M8){i9&&!Q&&l8($,Z,0,!1),Z=H1,OZ=i1(),Vz=Z;break}else{if(Y=B5(),U=$.current.alternate,z&&!$T(U)){B6(Z),U=H5,B=Y,!I1||B<=U||(p1?p1.run(console.timeStamp.bind(console,"Teared Render",U,B,o0,r0,"error")):console.timeStamp("Teared Render",U,B,o0,r0,"error")),U7(Z,Y),B=sY($,Z,!1),z=!1;continue}if(B===T7){if(z=Z,$.errorRecoveryDisabledLanes&z)var w=0;else w=$.pendingLanes&-536870913,w=w!==0?w:w&536870912?536870912:0;if(w!==0){B6(Z),Sq(H5,Y,Z,p1),U7(Z,Y),Z=w;$:{Y=$,B=z,z=pZ;var L=Y.current.memoizedState.isDehydrated;if(L&&(M9(Y,w).flags|=256),w=sY(Y,w,!1),w!==T7){if(VN&&!L){Y.errorRecoveryDisabledLanes|=B,H2|=B,B=U2;break $}Y=p5,p5=z,Y!==null&&(p5===null?p5=Y:p5.push.apply(p5,Y))}B=w}if(z=!1,B!==T7)continue;else Y=B5()}}if(B===xZ){B6(Z),Sq(H5,Y,Z,p1),U7(Z,Y),M9($,0),l8($,Z,0,!0);break}$:{switch(Q=$,B){case M8:case xZ:throw Error("Root did not complete. This is a bug in React.");case U2:if((Z&4194048)!==Z)break;case dG:B6(Z),NB(H5,Y,Z,p1),U7(Z,Y),U=Z,(U&127)!==0?AG=Y:(U&4194048)!==0&&(EG=Y),l8(Q,Z,a5,!K2);break $;case T7:p5=null;break;case mG:case LM:break;default:throw Error("Unknown root exit status.")}if(x.actQueue!==null)nY(Q,U,Z,p5,cZ,lG,a5,H2,I7,B,null,null,H5,Y);else{if((Z&62914560)===Z&&(z=rG+CM-B5(),10<z)){if(l8(Q,Z,a5,!K2),p2(Q,0,!0)!==0)break $;X4=Z,Q.timeoutHandle=dM(UF.bind(null,Q,U,p5,cZ,lG,Z,a5,H2,I7,K2,B,"Throttled",H5,Y),z);break $}UF(Q,U,p5,cZ,lG,Z,a5,H2,I7,K2,B,null,H5,Y)}}}break}while(1);V4($)}function UF($,Z,Q,Y,U,B,z,w,L,T,b,f,S,g){$.timeoutHandle=D7;var $0=Z.subtreeFlags,G0=null;if($0&8192||($0&16785408)===16785408){if(G0={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:o4},ZF(Z,B,G0),$0=(B&62914560)===B?rG-B5():(B&4194048)===B?TM-B5():0,$0=mT(G0,$0),$0!==null){X4=B,$.cancelPendingCommit=$0(nY.bind(null,$,Z,B,Q,Y,U,z,w,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,S,g)),l8($,B,z,!T);return}}nY($,Z,B,Q,Y,U,z,w,L,b,G0,f,S,g)}function $T($){for(var Z=$;;){var Q=Z.tag;if((Q===0||Q===11||Q===15)&&Z.flags&16384&&(Q=Z.updateQueue,Q!==null&&(Q=Q.stores,Q!==null)))for(var Y=0;Y<Q.length;Y++){var U=Q[Y],B=U.getSnapshot;U=U.value;try{if(!u5(B(),U))return!1}catch(z){return!1}}if(Q=Z.child,Z.subtreeFlags&16384&&Q!==null)Q.return=Z,Z=Q;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,Q,Y){Z&=~AN,Z&=~H2,$.suspendedLanes|=Z,$.pingedLanes&=~Z,Y&&($.warmLanes|=Z),Y=$.expirationTimes;for(var U=Z;0<U;){var B=31-y5(U),z=1<<B;Y[B]=-1,U&=~z}Q!==0&&l2($,Q,Z)}function z9(){return(Z1&(Y5|O6))===W5?(t$(0,!1),!1):!0}function rY(){if(x0!==null){if(H1===o5)var $=x0.return;else $=x0,WQ(),QY($),d9=null,vZ=0,$=x0;for(;$!==null;)bH($.alternate,$),$=$.return;x0=null}}function U7($,Z){($&127)!==0&&(G2=Z),($&4194048)!==0&&(g4=Z),($&62914560)!==0&&(Oz=Z),($&2080374784)!==0&&(Iz=Z)}function M9($,Z){I1&&(console.timeStamp("Blocking Track",0.003,0.003,"Blocking",r0,"primary-light"),console.timeStamp("Transition Track",0.003,0.003,"Transition",r0,"primary-light"),console.timeStamp("Suspense Track",0.003,0.003,"Suspense",r0,"primary-light"),console.timeStamp("Idle Track",0.003,0.003,"Idle",r0,"primary-light"));var Q=H5;if(H5=i1(),u0!==0&&0<Q){if(B6(u0),v1===mG||v1===U2)NB(Q,H5,Z,p1);else{var Y=H5,U=p1;if(I1&&!(Y<=Q)){var B=(Z&738197653)===Z?"tertiary-dark":"primary-dark",z=(Z&536870912)===Z?"Prewarm":(Z&201326741)===Z?"Interrupted Hydration":"Interrupted Render";U?U.run(console.timeStamp.bind(console,z,Q,Y,o0,r0,B)):console.timeStamp(z,Q,Y,o0,r0,B)}}U7(u0,H5)}if(Q=p1,p1=null,(Z&127)!==0){p1=PZ,U=0<=y4&&y4<G2?G2:y4,Y=0<=W7&&W7<G2?G2:W7,B=0<=Y?Y:0<=U?U:H5,0<=AG?(B6(2),UB(AG,B,Z,Q)):(SG&127)!==0&&(B6(2),k$(G2,B,B8)),Q=U;var w=Y,L=TZ,T=0<u9,b=q2===LZ,f=q2===VG;if(U=H5,Y=PZ,B=qN,z=YN,I1){if(o0="Blocking",0<Q?Q>U&&(Q=U):Q=U,0<w?w>Q&&(w=Q):w=Q,L!==null&&Q>w){var S=T?"secondary-light":"warning";Y?Y.run(console.timeStamp.bind(console,T?"Consecutive":"Event: "+L,w,Q,o0,r0,S)):console.timeStamp(T?"Consecutive":"Event: "+L,w,Q,o0,r0,S)}U>Q&&(w=b?"error":(Z&738197653)===Z?"tertiary-light":"primary-light",b=f?"Promise Resolved":b?"Cascading Update":5<U-Q?"Update Blocked":"Update",f=[],z!=null&&f.push(["Component name",z]),B!=null&&f.push(["Method name",B]),Q={start:Q,end:U,detail:{devtools:{properties:f,track:o0,trackGroup:r0,color:w}}},Y?Y.run(performance.measure.bind(performance,b,Q)):performance.measure(b,Q))}y4=-1.1,q2=0,YN=qN=null,AG=-1.1,u9=W7,W7=-1.1,G2=i1()}if((Z&4194048)!==0&&(p1=CZ,U=0<=K8&&K8<g4?g4:K8,Q=0<=g6&&g6<g4?g4:g6,Y=0<=Y2&&Y2<g4?g4:Y2,B=0<=Y?Y:0<=Q?Q:H5,0<=EG?(B6(256),UB(EG,B,Z,p1)):(SG&4194048)!==0&&(B6(256),k$(g4,B,B8)),f=Y,w=z7,L=0<X2,T=XN===VG,B=H5,Y=CZ,z=Tz,b=Cz,I1&&(o0="Transition",0<Q?Q>B&&(Q=B):Q=B,0<U?U>Q&&(U=Q):U=Q,0<f?f>U&&(f=U):f=U,U>f&&w!==null&&(S=L?"secondary-light":"warning",Y?Y.run(console.timeStamp.bind(console,L?"Consecutive":"Event: "+w,f,U,o0,r0,S)):console.timeStamp(L?"Consecutive":"Event: "+w,f,U,o0,r0,S)),Q>U&&(Y?Y.run(console.timeStamp.bind(console,"Action",U,Q,o0,r0,"primary-dark")):console.timeStamp("Action",U,Q,o0,r0,"primary-dark")),B>Q&&(U=T?"Promise Resolved":5<B-Q?"Update Blocked":"Update",f=[],b!=null&&f.push(["Component name",b]),z!=null&&f.push(["Method name",z]),Q={start:Q,end:B,detail:{devtools:{properties:f,track:o0,trackGroup:r0,color:"primary-light"}}},Y?Y.run(performance.measure.bind(performance,U,Q)):performance.measure(U,Q))),g6=K8=-1.1,XN=0,EG=-1.1,X2=Y2,Y2=-1.1,g4=i1()),(Z&62914560)!==0&&(SG&62914560)!==0&&(B6(4194304),k$(Oz,H5,B8)),(Z&2080374784)!==0&&(SG&2080374784)!==0&&(B6(268435456),k$(Iz,H5,B8)),Q=$.timeoutHandle,Q!==D7&&($.timeoutHandle=D7,vO(Q)),Q=$.cancelPendingCommit,Q!==null&&($.cancelPendingCommit=null,Q()),X4=0,rY(),_1=$,x0=Q=a4($.current,null),u0=Z,H1=o5,I6=null,K2=!1,i9=c2($,Z),VN=!1,v1=M8,I7=a5=AN=H2=B2=0,p5=pZ=null,lG=!1,(Z&8)!==0&&(Z|=Z&32),Y=$.entangledLanes,Y!==0)for($=$.entanglements,Y&=Z;0<Y;)U=31-y5(Y),B=1<<U,Z|=$[U],Y&=~B;return u4=Z,UQ(),$=Mz(),1000<$-zz&&(x.recentlyCreatedOwnerStacks=0,zz=$),G4.discardPendingWarnings(),Q}function KF($,Z){A0=null,x.H=gZ,x.getCurrentStack=null,D4=!1,_6=null,Z===m9||Z===vG?(Z=jB(),H1=mZ):Z===BN?(Z=jB(),H1=PM):H1=Z===PN?IN:Z!==null&&typeof Z==="object"&&typeof Z.then==="function"?dZ:pG,I6=Z;var Q=x0;Q===null?(v1=xZ,uQ($,H6(Z,$.current))):Q.mode&g0&&cq(Q)}function BF(){var $=T6.current;return $===null?!0:(u0&4194048)===u0?h6===null?!0:!1:(u0&62914560)===u0||(u0&536870912)!==0?$===h6:!1}function HF(){var $=x.H;return x.H=gZ,$===null?gZ:$}function FF(){var $=x.A;return x.A=_O,$}function sQ($){p1===null&&(p1=$._debugTask==null?null:$._debugTask)}function nQ(){v1=U2,K2||(u0&4194048)!==u0&&T6.current!==null||(i9=!0),(B2&134217727)===0&&(H2&134217727)===0||_1===null||l8(_1,u0,a5,!1)}function sY($,Z,Q){var Y=Z1;Z1|=Y5;var U=HF(),B=FF();if(_1!==$||u0!==Z){if(k4){var z=$.memoizedUpdaters;0<z.size&&(i$($,u0),z.clear()),b8($,Z)}cZ=null,M9($,Z)}Z=!1,z=v1;$:do try{if(H1!==o5&&x0!==null){var w=x0,L=I6;switch(H1){case IN:rY(),z=dG;break $;case mZ:case C7:case O7:case dZ:T6.current===null&&(Z=!0);var T=H1;if(H1=o5,I6=null,w9($,w,L,T),Q&&i9){z=M8;break $}break;default:T=H1,H1=o5,I6=null,w9($,w,L,T)}}WF(),z=v1;break}catch(b){KF($,b)}while(1);return Z&&$.shellSuspendCounter++,WQ(),Z1=Y,x.H=U,x.A=B,x0===null&&(_1=null,u0=0,UQ()),z}function WF(){for(;x0!==null;)zF(x0)}function ZT($,Z){var Q=Z1;Z1|=Y5;var Y=HF(),U=FF();if(_1!==$||u0!==Z){if(k4){var B=$.memoizedUpdaters;0<B.size&&(i$($,u0),B.clear()),b8($,Z)}cZ=null,sG=B5()+OM,M9($,Z)}else i9=c2($,Z);$:do try{if(H1!==o5&&x0!==null)Z:switch(Z=x0,B=I6,H1){case pG:H1=o5,I6=null,w9($,Z,B,pG);break;case C7:case O7:if(SB(B)){H1=o5,I6=null,MF(Z);break}Z=function(){H1!==C7&&H1!==O7||_1!==$||(H1=cG),V4($)},B.then(Z,Z);break $;case mZ:H1=cG;break $;case PM:H1=ON;break $;case cG:SB(B)?(H1=o5,I6=null,MF(Z)):(H1=o5,I6=null,w9($,Z,B,cG));break;case ON:var z=null;switch(x0.tag){case 26:z=x0.memoizedState;case 5:case 27:var w=x0;if(z?NW(z):w.stateNode.complete){H1=o5,I6=null;var L=w.sibling;if(L!==null)x0=L;else{var T=w.return;T!==null?(x0=T,oQ(T)):x0=null}break Z}break;default:console.error("Unexpected type of fiber triggered a suspensey commit. This is a bug in React.")}H1=o5,I6=null,w9($,Z,B,ON);break;case dZ:H1=o5,I6=null,w9($,Z,B,dZ);break;case IN:rY(),v1=dG;break $;default:throw Error("Unexpected SuspendedReason. This is a bug in React.")}x.actQueue!==null?WF():JT();break}catch(b){KF($,b)}while(1);if(WQ(),x.H=Y,x.A=U,Z1=Q,x0!==null)return M8;return _1=null,u0=0,UQ(),v1}function JT(){for(;x0!==null&&!$C();)zF(x0)}function zF($){var Z=$.alternate;($.mode&g0)!==V0?(pq($),Z=q0($,gY,Z,$,u4),cq($)):Z=q0($,gY,Z,$,u4),$.memoizedProps=$.pendingProps,Z===null?oQ($):x0=Z}function MF($){var Z=q0($,QT,$);$.memoizedProps=$.pendingProps,Z===null?oQ($):x0=Z}function QT($){var Z=$.alternate,Q=($.mode&g0)!==V0;switch(Q&&pq($),$.tag){case 15:case 0:Z=AH(Z,$,$.pendingProps,$.type,void 0,u0);break;case 11:Z=AH(Z,$,$.pendingProps,$.type.render,$.ref,u0);break;case 5:QY($);default:bH(Z,$),$=x0=zB($,u4),Z=gY(Z,$,u4)}return Q&&cq($),Z}function w9($,Z,Q,Y){WQ(),QY(Z),d9=null,vZ=0;var U=Z.return;try{if(mP($,U,Z,Q,u0)){v1=xZ,uQ($,H6(Q,$.current)),x0=null;return}}catch(B){if(U!==null)throw x0=U,B;v1=xZ,uQ($,H6(Q,$.current)),x0=null;return}if(Z.flags&32768){if(i0||Y===pG)$=!0;else if(i9||(u0&536870912)!==0)$=!1;else if(K2=$=!0,Y===C7||Y===O7||Y===mZ||Y===dZ)Y=T6.current,Y!==null&&Y.tag===13&&(Y.flags|=16384);wF(Z,$)}else oQ(Z)}function oQ($){var Z=$;do{if((Z.flags&32768)!==0){wF(Z,K2);return}var Q=Z.alternate;if($=Z.return,pq(Z),Q=q0(Z,cP,Q,Z,u4),(Z.mode&g0)!==V0&&OB(Z),Q!==null){x0=Q;return}if(Z=Z.sibling,Z!==null){x0=Z;return}x0=Z=$}while(Z!==null);v1===M8&&(v1=LM)}function wF($,Z){do{var Q=lP($.alternate,$);if(Q!==null){Q.flags&=32767,x0=Q;return}if(($.mode&g0)!==V0){OB($),Q=$.actualDuration;for(var Y=$.child;Y!==null;)Q+=Y.actualDuration,Y=Y.sibling;$.actualDuration=Q}if(Q=$.return,Q!==null&&(Q.flags|=32768,Q.subtreeFlags=0,Q.deletions=null),!Z&&($=$.sibling,$!==null)){x0=$;return}x0=$=Q}while($!==null);v1=dG,x0=null}function nY($,Z,Q,Y,U,B,z,w,L,T,b,f,S,g){$.cancelPendingCommit=null;do a$();while(J5!==W2);if(G4.flushLegacyContextWarning(),G4.flushPendingUnsafeLifecycleWarnings(),(Z1&(Y5|O6))!==W5)throw Error("Should not already be working.");if(B6(Q),T===T7?Sq(S,g,Q,p1):Y!==null?EP(S,g,Q,Y,Z!==null&&Z.alternate!==null&&Z.alternate.memoizedState.isDehydrated&&(Z.flags&256)!==0,p1):AP(S,g,Q,p1),Z!==null){if(Q===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|=$N,tJ($,Q,B,z,w,L),$===_1&&(x0=_1=null,u0=0),t9=Z,z2=$,X4=Q,DN=B,kN=U,DM=Y,jN=g,jM=f,N4=nG,kM=null,Z.actualDuration!==0||(Z.subtreeFlags&10256)!==0||(Z.flags&10256)!==0?($.callbackNode=null,$.callbackPriority=0,NT(C9,function(){return aZ=window.event,N4===nG&&(N4=SN),TF(),null})):($.callbackNode=null,$.callbackPriority=0),U8=null,Q2=i1(),f!==null&&SP(g,Q2,f,p1),Y=(Z.flags&13878)!==0,(Z.subtreeFlags&13878)!==0||Y){Y=x.T,x.T=null,U=U1.p,U1.p=L6,z=Z1,Z1|=O6;try{iP($,Z,Q)}finally{Z1=z,U1.p=U,x.T=Y}}J5=VM,RF(),_F(),LF()}}function RF(){if(J5===VM){J5=W2;var $=z2,Z=t9,Q=X4,Y=(Z.flags&13878)!==0;if((Z.subtreeFlags&13878)!==0||Y){Y=x.T,x.T=null;var U=U1.p;U1.p=L6;var B=Z1;Z1|=O6;try{o9=Q,a9=$,RQ(),oH(Z,$),a9=o9=null,Q=pN;var z=qB($.containerInfo),w=Q.focusedElem,L=Q.selectionRange;if(z!==w&&w&&w.ownerDocument&&GB(w.ownerDocument.documentElement,w)){if(L!==null&&Vq(w)){var{start:T,end:b}=L;if(b===void 0&&(b=T),"selectionStart"in w)w.selectionStart=T,w.selectionEnd=Math.min(b,w.value.length);else{var f=w.ownerDocument||document,S=f&&f.defaultView||window;if(S.getSelection){var g=S.getSelection(),$0=w.textContent.length,G0=Math.min(L.start,$0),C1=L.end===void 0?G0:Math.min(L.end,$0);!g.extend&&G0>C1&&(z=C1,C1=G0,G0=z);var e0=QB(w,G0),A=QB(w,C1);if(e0&&A&&(g.rangeCount!==1||g.anchorNode!==e0.node||g.anchorOffset!==e0.offset||g.focusNode!==A.node||g.focusOffset!==A.offset)){var D=f.createRange();D.setStart(e0.node,e0.offset),g.removeAllRanges(),G0>C1?(g.addRange(D),g.extend(A.node,A.offset)):(D.setEnd(A.node,A.offset),g.addRange(D))}}}}f=[];for(g=w;g=g.parentNode;)g.nodeType===1&&f.push({element:g,left:g.scrollLeft,top:g.scrollTop});typeof w.focus==="function"&&w.focus();for(w=0;w<f.length;w++){var v=f[w];v.element.scrollLeft=v.left,v.element.scrollTop=v.top}}K3=!!dN,pN=dN=null}finally{Z1=B,U1.p=U,x.T=Y}}$.current=Z,J5=AM}}function _F(){if(J5===AM){J5=W2;var $=kM;if($!==null){Q2=i1();var Z=N8,Q=Q2;!I1||Q<=Z||(B8?B8.run(console.timeStamp.bind(console,$,Z,Q,o0,r0,"secondary-light")):console.timeStamp($,Z,Q,o0,r0,"secondary-light"))}$=z2,Z=t9,Q=X4;var Y=(Z.flags&8772)!==0;if((Z.subtreeFlags&8772)!==0||Y){Y=x.T,x.T=null;var U=U1.p;U1.p=L6;var B=Z1;Z1|=O6;try{o9=Q,a9=$,RQ(),cH($,Z.alternate,Z),a9=o9=null}finally{Z1=B,U1.p=U,x.T=Y}}$=jN,Z=jM,N8=i1(),$=Z===null?$:Q2,Z=N8,Q=N4===EN,Y=p1,U8!==null?KB($,Z,U8,!1,Y):!I1||Z<=$||(Y?Y.run(console.timeStamp.bind(console,Q?"Commit Interrupted View Transition":"Commit",$,Z,o0,r0,Q?"error":"secondary-dark")):console.timeStamp(Q?"Commit Interrupted View Transition":"Commit",$,Z,o0,r0,Q?"error":"secondary-dark")),J5=EM}}function LF(){if(J5===SM||J5===EM){if(J5===SM){var $=N8;N8=i1();var Z=N8,Q=N4===EN;!I1||Z<=$||(B8?B8.run(console.timeStamp.bind(console,Q?"Interrupted View Transition":"Starting Animation",$,Z,o0,r0,Q?"error":"secondary-light")):console.timeStamp(Q?"Interrupted View Transition":"Starting Animation",$,Z,o0,r0,Q?" error":"secondary-light")),N4!==EN&&(N4=IM)}J5=W2,ZC(),$=z2;var Y=t9;Z=X4,Q=DM;var U=Y.actualDuration!==0||(Y.subtreeFlags&10256)!==0||(Y.flags&10256)!==0;U?J5=oG:(J5=W2,t9=z2=null,PF($,$.pendingLanes),V7=0,rZ=null);var B=$.pendingLanes;if(B===0&&(F2=null),U||VF($),B=C(Z),Y=Y.stateNode,S5&&typeof S5.onCommitFiberRoot==="function")try{var z=(Y.current.flags&128)===128;switch(B){case L6:var w=kX;break;case J4:w=vX;break;case v4:w=C9;break;case FG:w=bX;break;default:w=C9}S5.onCommitFiberRoot(O9,Y,w,z)}catch(f){j4||(j4=!0,console.error("React instrumentation encountered an error: %o",f))}if(k4&&$.memoizedUpdaters.clear(),eP(),Q!==null){z=x.T,w=U1.p,U1.p=L6,x.T=null;try{var L=$.onRecoverableError;for(Y=0;Y<Q.length;Y++){var T=Q[Y],b=GT(T.stack);q0(T.source,L,T.value,b)}}finally{x.T=z,U1.p=w}}(X4&3)!==0&&a$(),V4($),B=$.pendingLanes,(Z&261930)!==0&&(B&42)!==0?(jG=!0,$===vN?lZ++:(lZ=0,vN=$)):lZ=0,U||U7(Z,N8),t$(0,!1)}}function GT($){return $={componentStack:$},Object.defineProperty($,"digest",{get:function(){console.error('You are accessing "digest" from the errorInfo object passed to onRecoverableError. This property is no longer provided as part of errorInfo but can be accessed as a property of the Error instance itself.')}}),$}function PF($,Z){($.pooledCacheLanes&=Z)===0&&(Z=$.pooledCache,Z!=null&&($.pooledCache=null,b$(Z)))}function a$(){return RF(),_F(),LF(),TF()}function TF(){if(J5!==oG)return!1;var $=z2,Z=DN;DN=0;var Q=C(X4),Y=v4===0||v4>Q?v4:Q;Q=x.T;var U=U1.p;try{U1.p=Y,x.T=null;var B=kN;kN=null,Y=z2;var z=X4;if(J5=W2,t9=z2=null,X4=0,(Z1&(Y5|O6))!==W5)throw Error("Cannot flush passive effects while already rendering.");B6(z),bN=!0,aG=!1;var w=0;if(U8=null,w=B5(),N4===IM)k$(N8,w,B8);else{var L=N8,T=w,b=N4===SN;!I1||T<=L||(p1?p1.run(console.timeStamp.bind(console,b?"Waiting for Paint":"Waiting",L,T,o0,r0,"secondary-light")):console.timeStamp(b?"Waiting for Paint":"Waiting",L,T,o0,r0,"secondary-light"))}L=Z1,Z1|=O6;var f=Y.current;RQ(),QF(f);var S=Y.current;f=jN,RQ(),eH(Y,S,z,B,f),VF(Y),Z1=L;var g=B5();if(S=w,f=p1,U8!==null?KB(S,g,U8,!0,f):!I1||g<=S||(f?f.run(console.timeStamp.bind(console,"Remaining Effects",S,g,o0,r0,"secondary-dark")):console.timeStamp("Remaining Effects",S,g,o0,r0,"secondary-dark")),U7(z,g),t$(0,!1),aG?Y===rZ?V7++:(V7=0,rZ=Y):V7=0,aG=bN=!1,S5&&typeof S5.onPostCommitFiberRoot==="function")try{S5.onPostCommitFiberRoot(O9,Y)}catch(G0){j4||(j4=!0,console.error("React instrumentation encountered an error: %o",G0))}var $0=Y.current.stateNode;return $0.effectDuration=0,$0.passiveEffectDuration=0,!0}finally{U1.p=U,x.T=Q,PF($,Z)}}function CF($,Z,Q){Z=H6(Q,Z),IB(Z),Z=VY($.stateNode,Z,2),$=m8($,Z,2),$!==null&&(v8($,2),V4($))}function N1($,Z,Q){if(e9=!1,$.tag===3)CF($,$,Q);else{for(;Z!==null;){if(Z.tag===3){CF(Z,$,Q);return}if(Z.tag===1){var Y=Z.stateNode;if(typeof Z.type.getDerivedStateFromError==="function"||typeof Y.componentDidCatch==="function"&&(F2===null||!F2.has(Y))){$=H6(Q,$),IB($),Q=AY(2),Y=m8(Z,Q,2),Y!==null&&(EY(Q,Y,Z,$),v8(Y,2),V4(Y));return}}Z=Z.return}console.error(`Internal React error: Attempted to capture a commit phase error inside a detached tree. This indicates a bug in React. Potential causes include deleting the same fiber more than once, committing an already-finished tree, or an inconsistent return pointer.
|
|
154
154
|
|
|
155
155
|
Error message:
|
|
156
156
|
|
|
157
|
-
%s`,Q)}}function oY($,Z,Q){var Y=$.pingCache;if(Y===null){Y=$.pingCache=new PO;var U=new Set;Y.set(Z,U)}else U=Y.get(Z),U===void 0&&(U=new Set,Y.set(Z,U));U.has(Q)||(VN=!0,U.add(Q),Y=qT.bind(null,$,Z,Q),k4&&
|
|
157
|
+
%s`,Q)}}function oY($,Z,Q){var Y=$.pingCache;if(Y===null){Y=$.pingCache=new PO;var U=new Set;Y.set(Z,U)}else U=Y.get(Z),U===void 0&&(U=new Set,Y.set(Z,U));U.has(Q)||(VN=!0,U.add(Q),Y=qT.bind(null,$,Z,Q),k4&&i$($,Q),Z.then(Y,Y))}function qT($,Z,Q){var Y=$.pingCache;Y!==null&&Y.delete(Z),$.pingedLanes|=$.suspendedLanes&Q,$.warmLanes&=~Q,(Q&127)!==0?0>y4&&(G2=y4=i1(),PZ=IG("Promise Resolved"),q2=VG):(Q&4194048)!==0&&0>g6&&(g4=g6=i1(),CZ=IG("Promise Resolved"),XN=VG),YF()&&x.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`),_1===$&&(u0&Q)===Q&&(v1===U2||v1===mG&&(u0&62914560)===u0&&B5()-rG<CM?(Z1&Y5)===W5&&
|
|
166
|
+
This ensures that you're testing the behavior the user would see in the browser. Learn more at https://react.dev/link/wrap-tests-with-act`),_1===$&&(u0&Q)===Q&&(v1===U2||v1===mG&&(u0&62914560)===u0&&B5()-rG<CM?(Z1&Y5)===W5&&M9($,0):AN|=Q,I7===u0&&(I7=0)),V4($)}function OF($,Z){Z===0&&(Z=Z9()),$=E5($,Z),$!==null&&(v8($,Z),V4($))}function YT($){var Z=$.memoizedState,Q=0;Z!==null&&(Q=Z.retryLane),OF($,Q)}function XT($,Z){var Q=0;switch($.tag){case 31:case 13:var{stateNode:Y,memoizedState:U}=$;U!==null&&(Q=U.retryLane);break;case 19:Y=$.stateNode;break;case 22:Y=$.stateNode._retryCache;break;default:throw Error("Pinged unknown suspense boundary type. This is probably a bug in React.")}Y!==null&&Y.delete(Z),OF($,Q)}function aY($,Z,Q){if((Z.subtreeFlags&67117056)!==0)for(Z=Z.child;Z!==null;){var Y=$,U=Z,B=U.type===XG;B=Q||B,U.tag!==22?U.flags&67108864?B&&q0(U,IF,Y,U):aY(Y,U,B):U.memoizedState===null&&(B&&U.flags&8192?q0(U,IF,Y,U):U.subtreeFlags&67108864&&q0(U,aY,Y,U,B)),Z=Z.sibling}}function IF($,Z){P1(!0);try{iH(Z),GF(Z),tH($,Z.alternate,Z,!1),$F($,Z,0,null,!1,0)}finally{P1(!1)}}function VF($){var Z=!0;$.current.mode&(D5|Q4)||(Z=!1),aY($,$.current,Z)}function AF($){if((Z1&Y5)===W5){var Z=$.tag;if(Z===3||Z===1||Z===0||Z===11||Z===14||Z===15){if(Z=d($)||"ReactComponent",iG!==null){if(iG.has(Z))return;iG.add(Z)}else iG=new Set([Z]);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 i$($,Z){k4&&$.memoizedUpdaters.forEach(function(Q){C$($,Q,Z)})}function NT($,Z){var Q=x.actQueue;return Q!==null?(Q.push(Z),OO):jX($,Z)}function UT($){YF()&&x.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,16 +172,16 @@ act(() => {
|
|
|
172
172
|
});
|
|
173
173
|
/* assert on the output */
|
|
174
174
|
|
|
175
|
-
This ensures that you're testing the behavior the user would see in the browser. Learn more at https://react.dev/link/wrap-tests-with-act`,d($))})}function V4($){$!==e9&&$.next===null&&(e9===null?tG=e9=$:e9=e9.next=$),eG=!0,x.actQueue!==null?yN||(yN=!0,jF()):fN||(fN=!0,jF())}function i$($,Z){if(!gN&&eG){gN=!0;do{var Q=!1;for(var Y=tG;Y!==null;){if(!Z)if($!==0){var U=Y.pendingLanes;if(U===0)var B=0;else{var{suspendedLanes:z,pingedLanes:w}=Y;B=(1<<31-y5(42|$)+1)-1,B&=U&~(z&~w),B=B&201326741?B&201326741|1:B?B|2:0}B!==0&&(Q=!0,DF(Y,B))}else B=u0,B=d2(Y,Y===_1?B:0,Y.cancelPendingCommit!==null||Y.timeoutHandle!==S7),(B&3)===0||p2(Y,B)||(Q=!0,DF(Y,B));Y=Y.next}}while(Q);gN=!1}}function KT(){oZ=window.event,iY()}function iY(){eG=yN=fN=!1;var $=0;M2!==0&&wT()&&($=M2);for(var Z=B5(),Q=null,Y=tG;Y!==null;){var U=Y.next,B=EF(Y,Z);if(B===0)Y.next=null,Q===null?tG=U:Q.next=U,U===null&&(e9=Q);else if(Q=Y,$!==0||(B&3)!==0)eG=!0;Y=U}J5!==W2&&J5!==oG||i$($,!1),M2!==0&&(M2=0)}function EF($,Z){for(var{suspendedLanes:Q,pingedLanes:Y,expirationTimes:U}=$,B=$.pendingLanes&-62914561;0<B;){var z=31-y5(B),w=1<<z,L=U[z];if(L===-1){if((w&Q)===0||(w&Y)!==0)U[z]=zq(w,Z)}else L<=Z&&($.expiredLanes|=w);B&=~w}if(Z=_1,Q=u0,Q=d2($,$===Z?Q:0,$.cancelPendingCommit!==null||$.timeoutHandle!==S7),Y=$.callbackNode,Q===0||$===Z&&(H1===T7||H1===C7)||$.cancelPendingCommit!==null)return Y!==null&&tY(Y),$.callbackNode=null,$.callbackPriority=0;if((Q&3)===0||p2($,Q)){if(Z=Q&-Q,Z!==$.callbackPriority||x.actQueue!==null&&Y!==hN)tY(Y);else return Z;switch(C(Q)){case L6:case J4:Q=vX;break;case v4:Q=T9;break;case FG:Q=bX;break;default:Q=T9}return Y=SF.bind(null,$),x.actQueue!==null?(x.actQueue.push(Y),Q=hN):Q=jX(Q,Y),$.callbackPriority=Z,$.callbackNode=Q,Z}return Y!==null&&tY(Y),$.callbackPriority=2,$.callbackNode=null,2}function SF($,Z){if(jG=DG=!1,oZ=window.event,J5!==W2&&J5!==oG)return $.callbackNode=null,$.callbackPriority=0,null;var Q=$.callbackNode;if(N4===nG&&(N4=SN),o$()&&$.callbackNode!==Q)return null;var Y=u0;if(Y=d2($,$===_1?Y:0,$.cancelPendingCommit!==null||$.timeoutHandle!==S7),Y===0)return null;return NF($,Y,Z),EF($,B5()),$.callbackNode!=null&&$.callbackNode===Q?SF.bind(null,$):null}function DF($,Z){if(o$())return null;DG=jG,jG=!1,NF($,Z,!0)}function tY($){$!==hN&&$!==null&&eT($)}function jF(){x.actQueue!==null&&x.actQueue.push(function(){return iY(),null}),bO(function(){(Z1&(Y5|O6))!==W5?jX(kX,KT):iY()})}function eY(){if(M2===0){var $=z7;$===0&&($=KG,KG<<=1,(KG&261888)===0&&(KG=256)),M2=$}return M2}function kF($){if($==null||typeof $==="symbol"||typeof $==="boolean")return null;if(typeof $==="function")return $;return W1($,"action"),E$(""+$)}function vF($,Z){var Q=Z.ownerDocument.createElement("input");return Q.name=Z.name,Q.value=Z.value,$.id&&Q.setAttribute("form",$.id),Z.parentNode.insertBefore(Q,Z),$=new FormData($),Q.parentNode.removeChild(Q),$}function BT($,Z,Q,Y,U){if(Z==="submit"&&Q&&Q.stateNode===U){var B=kF((U[g5]||null).action),z=Y.submitter;z&&(Z=(Z=z[g5]||null)?kF(Z.formAction):z.getAttribute("formAction"),Z!==null&&(B=Z,z=null));var w=new RG("action","action",null,Y,U);$.push({event:w,listeners:[{instance:null,listener:function(){if(Y.defaultPrevented){if(M2!==0){var L=z?vF(U,z):new FormData(U),T={pending:!0,data:L,method:U.method,action:B};Object.freeze(T),_Y(Q,T,null,L)}}else typeof B==="function"&&(w.preventDefault(),L=z?vF(U,z):new FormData(U),T={pending:!0,data:L,method:U.method,action:B},Object.freeze(T),_Y(Q,T,B,L))},currentTarget:U}]})}}function aQ($,Z,Q){$.currentTarget=Q;try{Z($)}catch(Y){aX(Y)}$.currentTarget=null}function bF($,Z){Z=(Z&4)!==0;for(var Q=0;Q<$.length;Q++){var Y=$[Q];$:{var U=void 0,B=Y.event;if(Y=Y.listeners,Z)for(var z=Y.length-1;0<=z;z--){var w=Y[z],L=w.instance,T=w.currentTarget;if(w=w.listener,L!==U&&B.isPropagationStopped())break $;L!==null?q0(L,aQ,B,w,T):aQ(B,w,T),U=L}else for(z=0;z<Y.length;z++){if(w=Y[z],L=w.instance,T=w.currentTarget,w=w.listener,L!==U&&B.isPropagationStopped())break $;L!==null?q0(L,aQ,B,w,T):aQ(B,w,T),U=L}}}}function t0($,Z){uN.has($)||console.error('Did not expect a listenToNonDelegatedEvent() call for "%s". This is a bug in React. Please file an issue.',$);var Q=Z[fX];Q===void 0&&(Q=Z[fX]=new Set);var Y=$+"__bubble";Q.has(Y)||(fF(Z,$,2,!1),Q.add(Y))}function $X($,Z,Q){uN.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),fF(Q,$,Y,Z)}function ZX($){if(!$[$3]){$[$3]=!0,jW.forEach(function(Q){Q!=="selectionchange"&&(uN.has(Q)||$X(Q,!1,$),$X(Q,!0,$))});var Z=$.nodeType===9?$:$.ownerDocument;Z===null||Z[$3]||(Z[$3]=!0,$X("selectionchange",!1,Z))}}function fF($,Z,Q,Y){switch(WW(Z)){case L6:var U=lT;break;case J4:U=rT;break;default:U=wX}Q=U.bind(null,Z,Q,$),U=void 0,!xX||Z!=="touchstart"&&Z!=="touchmove"&&Z!=="wheel"||(U=!0),Y?U!==void 0?$.addEventListener(Z,Q,{capture:!0,passive:U}):$.addEventListener(Z,Q,!0):U!==void 0?$.addEventListener(Z,Q,{passive:U}):$.addEventListener(Z,Q,!1)}function JX($,Z,Q,Y,U){var B=Y;if((Z&1)===0&&(Z&2)===0&&Y!==null)$:for(;;){if(Y===null)return;var z=Y.tag;if(z===3||z===4){var w=Y.stateNode.containerInfo;if(w===U)break;if(z===4)for(z=Y.return;z!==null;){var L=z.tag;if((L===3||L===4)&&z.stateNode.containerInfo===U)return;z=z.return}for(;w!==null;){if(z=N0(w),z===null)return;if(L=z.tag,L===5||L===6||L===26||L===27){Y=B=z;continue $}w=w.parentNode}}Y=Y.return}rK(function(){var T=B,b=Oq(Q),f=[];$:{var S=Wz.get($);if(S!==void 0){var g=RG,$0=$;switch($){case"keypress":if(GQ(Q)===0)break $;case"keydown":case"keyup":g=xC;break;case"focusin":$0="focus",g=cX;break;case"focusout":$0="blur",g=cX;break;case"beforeblur":case"afterblur":g=cX;break;case"click":if(Q.button===2)break $;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":g=$z;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":g=EC;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":g=pC;break;case Kz:case Bz:case Hz:g=jC;break;case Fz:g=lC;break;case"scroll":case"scrollend":g=VC;break;case"wheel":g=sC;break;case"copy":case"cut":case"paste":g=vC;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":g=Jz;break;case"toggle":case"beforetoggle":g=oC}var G0=(Z&4)!==0,C1=!G0&&($==="scroll"||$==="scrollend"),e0=G0?S!==null?S+"Capture":null:S;G0=[];for(var A=T,D;A!==null;){var v=A;if(D=v.stateNode,v=v.tag,v!==5&&v!==26&&v!==27||D===null||e0===null||(v=S$(A,e0),v!=null&&G0.push(t$(A,v,D))),C1)break;A=A.return}0<G0.length&&(S=new g(S,$0,null,Q,b),f.push({event:S,listeners:G0}))}}if((Z&7)===0){$:{if(S=$==="mouseover"||$==="pointerover",g=$==="mouseout"||$==="pointerout",S&&Q!==UZ&&($0=Q.relatedTarget||Q.fromElement)&&(N0($0)||$0[i8]))break $;if(g||S){if(S=b.window===b?b:(S=b.ownerDocument)?S.defaultView||S.parentWindow:window,g){if($0=Q.relatedTarget||Q.toElement,g=T,$0=$0?N0($0):null,$0!==null&&(C1=j($0),G0=$0.tag,$0!==C1||G0!==5&&G0!==27&&G0!==6))$0=null}else g=null,$0=T;if(g!==$0){if(G0=$z,v="onMouseLeave",e0="onMouseEnter",A="mouse",$==="pointerout"||$==="pointerover")G0=Jz,v="onPointerLeave",e0="onPointerEnter",A="pointer";if(C1=g==null?S:k0(g),D=$0==null?S:k0($0),S=new G0(v,A+"leave",g,Q,b),S.target=C1,S.relatedTarget=D,v=null,N0(b)===T&&(G0=new G0(e0,A+"enter",$0,Q,b),G0.target=D,G0.relatedTarget=C1,v=G0),C1=v,g&&$0)Z:{G0=HT,e0=g,A=$0,D=0;for(v=e0;v;v=G0(v))D++;v=0;for(var m=A;m;m=G0(m))v++;for(;0<D-v;)e0=G0(e0),D--;for(;0<v-D;)A=G0(A),v--;for(;D--;){if(e0===A||A!==null&&e0===A.alternate){G0=e0;break Z}e0=G0(e0),A=G0(A)}G0=null}else G0=null;g!==null&&yF(f,S,g,G0,!1),$0!==null&&C1!==null&&yF(f,C1,$0,G0,!0)}}}$:{if(S=T?k0(T):window,g=S.nodeName&&S.nodeName.toLowerCase(),g==="select"||g==="input"&&S.type==="file")var J0=eK;else if(iK(S))if(Nz)J0=OP;else{J0=TP;var E0=PP}else g=S.nodeName,!g||g.toLowerCase()!=="input"||S.type!=="checkbox"&&S.type!=="radio"?T&&A$(T.elementType)&&(J0=eK):J0=CP;if(J0&&(J0=J0($,T))){tK(f,J0,Q,b);break $}E0&&E0($,S,T),$==="focusout"&&T&&S.type==="number"&&T.memoizedProps.value!=null&&Rq(S,"number",S.value)}switch(E0=T?k0(T):window,$){case"focusin":if(iK(E0)||E0.contentEditable==="true")D9=E0,rX=T,MZ=null;break;case"focusout":MZ=rX=D9=null;break;case"mousedown":sX=!0;break;case"contextmenu":case"mouseup":case"dragend":sX=!1,YB(f,Q,b);break;case"selectionchange":if(eC)break;case"keydown":case"keyup":YB(f,Q,b)}var R0;if(lX)$:{switch($){case"compositionstart":var B0="onCompositionStart";break $;case"compositionend":B0="onCompositionEnd";break $;case"compositionupdate":B0="onCompositionUpdate";break $}B0=void 0}else S9?oK($,Q)&&(B0="onCompositionEnd"):$==="keydown"&&Q.keyCode===Qz&&(B0="onCompositionStart");if(B0&&(Gz&&Q.locale!=="ko"&&(S9||B0!=="onCompositionStart"?B0==="onCompositionEnd"&&S9&&(R0=sK()):(t8=b,mX=("value"in t8)?t8.value:t8.textContent,S9=!0)),E0=iQ(T,B0),0<E0.length&&(B0=new Zz(B0,$,null,Q,b),f.push({event:B0,listeners:E0}),R0?B0.data=R0:(R0=aK(Q),R0!==null&&(B0.data=R0)))),R0=iC?wP($,Q):RP($,Q))B0=iQ(T,"onBeforeInput"),0<B0.length&&(E0=new fC("onBeforeInput","beforeinput",null,Q,b),f.push({event:E0,listeners:B0}),E0.data=R0);BT(f,$,T,Q,b)}bF(f,Z)})}function t$($,Z,Q){return{instance:$,listener:Z,currentTarget:Q}}function iQ($,Z){for(var Q=Z+"Capture",Y=[];$!==null;){var U=$,B=U.stateNode;if(U=U.tag,U!==5&&U!==26&&U!==27||B===null||(U=S$($,Q),U!=null&&Y.unshift(t$($,U,B)),U=S$($,Z),U!=null&&Y.push(t$($,U,B))),$.tag===3)return Y;$=$.return}return[]}function HT($){if($===null)return null;do $=$.return;while($&&$.tag!==5&&$.tag!==27);return $?$:null}function yF($,Z,Q,Y,U){for(var B=Z._reactName,z=[];Q!==null&&Q!==Y;){var w=Q,L=w.alternate,T=w.stateNode;if(w=w.tag,L!==null&&L===Y)break;w!==5&&w!==26&&w!==27||T===null||(L=T,U?(T=S$(Q,B),T!=null&&z.unshift(t$(Q,T,L))):U||(T=S$(Q,B),T!=null&&z.push(t$(Q,T,L)))),Q=Q.return}z.length!==0&&$.push({event:Z,listeners:z})}function QX($,Z){FP($,Z),$!=="input"&&$!=="textarea"&&$!=="select"||Z==null||Z.value!==null||tW||(tW=!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 Q={registrationNameDependencies:U7,possibleRegistrationNames:yX};A$($)||typeof Z.is==="string"||zP($,Z,Q),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 K5($,Z,Q,Y){Z!==Q&&(Q=r8(Q),r8(Z)!==Q&&(Y[$]=Z))}function FT($,Z,Q){Z.forEach(function(Y){Q[uF(Y)]=Y==="style"?qX($):$.getAttribute(Y)})}function A4($,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 gF($,Z){return $=$.namespaceURI===zG||$.namespaceURI===I9?$.ownerDocument.createElementNS($.namespaceURI,$.tagName):$.ownerDocument.createElement($.tagName),$.innerHTML=Z,$.innerHTML}function r8($){return k8($)&&(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.",m2($)),U5($)),(typeof $==="string"?$:""+$).replace(IO,`
|
|
176
|
-
`).replace(VO,"")}function hF($,Z){return Z=r8(Z),r8($)===Z?!0:!1}function w1($,Z,Q,Y,U,B){switch(Q){case"children":if(typeof Y==="string")QQ(Y,Z,!1),Z==="body"||Z==="textarea"&&Y===""||V$($,Y);else if(typeof Y==="number"||typeof Y==="bigint")QQ(""+Y,Z,!1),Z!=="body"&&V$($,""+Y);break;case"className":$Q($,"class",Y);break;case"tabIndex":$Q($,"tabindex",Y);break;case"dir":case"role":case"viewBox":case"width":case"height":$Q($,Q,Y);break;case"style":pK($,Y,B);break;case"data":if(Z!=="object"){$Q($,"data",Y);break}case"src":case"href":if(Y===""&&(Z!=="a"||Q!=="href")){Q==="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.',Q,Q):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.',Q,Q),$.removeAttribute(Q);break}if(Y==null||typeof Y==="function"||typeof Y==="symbol"||typeof Y==="boolean"){$.removeAttribute(Q);break}W1(Y,Q),Y=E$(""+Y),$.setAttribute(Q,Y);break;case"action":case"formAction":if(Y!=null&&(Z==="form"?Q==="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||Q3||(Q3=!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||J3||(J3=!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"?Q==="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"||Z3?Z!=="button"||U.type==null||U.type==="submit"||Z3?typeof Y==="function"&&(U.name==null||gM||(gM=!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||Q3||(Q3=!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||J3||(J3=!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."))):(Z3=!0,console.error('A button can only specify a formAction along with type="submit" or no type.')):(Z3=!0,console.error('An input can only specify a formAction along with type="submit" or type="image".')):Q==="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(Q,"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"&&(Q==="formAction"?(Z!=="input"&&w1($,Z,"name",U.name,U,null),w1($,Z,"formEncType",U.formEncType,U,null),w1($,Z,"formMethod",U.formMethod,U,null),w1($,Z,"formTarget",U.formTarget,U,null)):(w1($,Z,"encType",U.encType,U,null),w1($,Z,"method",U.method,U,null),w1($,Z,"target",U.target,U,null)));if(Y==null||typeof Y==="symbol"||typeof Y==="boolean"){$.removeAttribute(Q);break}W1(Y,Q),Y=E$(""+Y),$.setAttribute(Q,Y);break;case"onClick":Y!=null&&(typeof Y!=="function"&&A4(Q,Y),$.onclick=o4);break;case"onScroll":Y!=null&&(typeof Y!=="function"&&A4(Q,Y),t0("scroll",$));break;case"onScrollEnd":Y!=null&&(typeof Y!=="function"&&A4(Q,Y),t0("scrollend",$));break;case"dangerouslySetInnerHTML":if(Y!=null){if(typeof Y!=="object"||!("__html"in Y))throw Error("`props.dangerouslySetInnerHTML` must be in the form `{__html: ...}`. Please visit https://react.dev/link/dangerously-set-inner-html for more information.");if(Q=Y.__html,Q!=null){if(U.children!=null)throw Error("Can only set one of `children` or `props.dangerouslySetInnerHTML`.");$.innerHTML=Q}}break;case"multiple":$.multiple=Y&&typeof Y!=="function"&&typeof Y!=="symbol";break;case"muted":$.muted=Y&&typeof Y!=="function"&&typeof Y!=="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(Y==null||typeof Y==="function"||typeof Y==="boolean"||typeof Y==="symbol"){$.removeAttribute("xlink:href");break}W1(Y,Q),Q=E$(""+Y),$.setAttributeNS(V7,"xlink:href",Q);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":Y!=null&&typeof Y!=="function"&&typeof Y!=="symbol"?(W1(Y,Q),$.setAttribute(Q,""+Y)):$.removeAttribute(Q);break;case"inert":Y!==""||G3[Q]||(G3[Q]=!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.",Q));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(Q,""):$.removeAttribute(Q);break;case"capture":case"download":Y===!0?$.setAttribute(Q,""):Y!==!1&&Y!=null&&typeof Y!=="function"&&typeof Y!=="symbol"?(W1(Y,Q),$.setAttribute(Q,Y)):$.removeAttribute(Q);break;case"cols":case"rows":case"size":case"span":Y!=null&&typeof Y!=="function"&&typeof Y!=="symbol"&&!isNaN(Y)&&1<=Y?(W1(Y,Q),$.setAttribute(Q,Y)):$.removeAttribute(Q);break;case"rowSpan":case"start":Y==null||typeof Y==="function"||typeof Y==="symbol"||isNaN(Y)?$.removeAttribute(Q):(W1(Y,Q),$.setAttribute(Q,Y));break;case"popover":t0("beforetoggle",$),t0("toggle",$),eJ($,"popover",Y);break;case"xlinkActuate":n4($,V7,"xlink:actuate",Y);break;case"xlinkArcrole":n4($,V7,"xlink:arcrole",Y);break;case"xlinkRole":n4($,V7,"xlink:role",Y);break;case"xlinkShow":n4($,V7,"xlink:show",Y);break;case"xlinkTitle":n4($,V7,"xlink:title",Y);break;case"xlinkType":n4($,V7,"xlink:type",Y);break;case"xmlBase":n4($,xN,"xml:base",Y);break;case"xmlLang":n4($,xN,"xml:lang",Y);break;case"xmlSpace":n4($,xN,"xml:space",Y);break;case"is":B!=null&&console.error('Cannot update the "is" prop after it has been initialized.'),eJ($,"is",Y);break;case"innerText":case"textContent":break;case"popoverTarget":hM||Y==null||typeof Y!=="object"||(hM=!0,console.error("The `popoverTarget` prop expects the ID of an Element as a string. Received %s instead.",Y));default:!(2<Q.length)||Q[0]!=="o"&&Q[0]!=="O"||Q[1]!=="n"&&Q[1]!=="N"?(Q=cK(Q),eJ($,Q,Y)):U7.hasOwnProperty(Q)&&Y!=null&&typeof Y!=="function"&&A4(Q,Y)}}function GX($,Z,Q,Y,U,B){switch(Q){case"style":pK($,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(Q=Y.__html,Q!=null){if(U.children!=null)throw Error("Can only set one of `children` or `props.dangerouslySetInnerHTML`.");$.innerHTML=Q}}break;case"children":typeof Y==="string"?V$($,Y):(typeof Y==="number"||typeof Y==="bigint")&&V$($,""+Y);break;case"onScroll":Y!=null&&(typeof Y!=="function"&&A4(Q,Y),t0("scroll",$));break;case"onScrollEnd":Y!=null&&(typeof Y!=="function"&&A4(Q,Y),t0("scrollend",$));break;case"onClick":Y!=null&&(typeof Y!=="function"&&A4(Q,Y),$.onclick=o4);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(U7.hasOwnProperty(Q))Y!=null&&typeof Y!=="function"&&A4(Q,Y);else $:{if(Q[0]==="o"&&Q[1]==="n"&&(U=Q.endsWith("Capture"),Z=Q.slice(2,U?Q.length-7:void 0),B=$[g5]||null,B=B!=null?B[Q]:null,typeof B==="function"&&$.removeEventListener(Z,B,U),typeof Y==="function")){typeof B!=="function"&&B!==null&&(Q in $?$[Q]=null:$.hasAttribute(Q)&&$.removeAttribute(Q)),$.addEventListener(Z,Y,U);break $}Q in $?$[Q]=Y:Y===!0?$.setAttribute(Q,""):eJ($,Q,Y)}}}function R5($,Z,Q){switch(QX(Z,Q),Z){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":t0("error",$),t0("load",$);var Y=!1,U=!1,B;for(B in Q)if(Q.hasOwnProperty(B)){var z=Q[B];if(z!=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:w1($,Z,B,z,Q,null)}}U&&w1($,Z,"srcSet",Q.srcSet,Q,null),Y&&w1($,Z,"src",Q.src,Q,null);return;case"input":f8("input",Q),t0("invalid",$);var w=B=z=U=null,L=null,T=null;for(Y in Q)if(Q.hasOwnProperty(Y)){var b=Q[Y];if(b!=null)switch(Y){case"name":U=b;break;case"type":z=b;break;case"checked":L=b;break;case"defaultChecked":T=b;break;case"value":B=b;break;case"defaultValue":w=b;break;case"children":case"dangerouslySetInnerHTML":if(b!=null)throw Error(Z+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");break;default:w1($,Z,Y,b,Q,null)}}AK($,Q),EK($,B,w,L,T,z,U,!1);return;case"select":f8("select",Q),t0("invalid",$),Y=z=B=null;for(U in Q)if(Q.hasOwnProperty(U)&&(w=Q[U],w!=null))switch(U){case"value":B=w;break;case"defaultValue":z=w;break;case"multiple":Y=w;default:w1($,Z,U,w,Q,null)}jK($,Q),Z=B,Q=z,$.multiple=!!Y,Z!=null?J9($,!!Y,Z,!1):Q!=null&&J9($,!!Y,Q,!0);return;case"textarea":f8("textarea",Q),t0("invalid",$),B=U=Y=null;for(z in Q)if(Q.hasOwnProperty(z)&&(w=Q[z],w!=null))switch(z){case"value":Y=w;break;case"defaultValue":U=w;break;case"children":B=w;break;case"dangerouslySetInnerHTML":if(w!=null)throw Error("`dangerouslySetInnerHTML` does not make sense on <textarea>.");break;default:w1($,Z,z,w,Q,null)}kK($,Q),bK($,Y,U,B);return;case"option":SK($,Q);for(L in Q)if(Q.hasOwnProperty(L)&&(Y=Q[L],Y!=null))switch(L){case"selected":$.selected=Y&&typeof Y!=="function"&&typeof Y!=="symbol";break;default:w1($,Z,L,Y,Q,null)}return;case"dialog":t0("beforetoggle",$),t0("toggle",$),t0("cancel",$),t0("close",$);break;case"iframe":case"object":t0("load",$);break;case"video":case"audio":for(Y=0;Y<rZ.length;Y++)t0(rZ[Y],$);break;case"image":t0("error",$),t0("load",$);break;case"details":t0("toggle",$);break;case"embed":case"source":case"link":t0("error",$),t0("load",$);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(T in Q)if(Q.hasOwnProperty(T)&&(Y=Q[T],Y!=null))switch(T){case"children":case"dangerouslySetInnerHTML":throw Error(Z+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");default:w1($,Z,T,Y,Q,null)}return;default:if(A$(Z)){for(b in Q)Q.hasOwnProperty(b)&&(Y=Q[b],Y!==void 0&&GX($,Z,b,Y,Q,void 0));return}}for(w in Q)Q.hasOwnProperty(w)&&(Y=Q[w],Y!=null&&w1($,Z,w,Y,Q,null))}function WT($,Z,Q,Y){switch(QX(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,z=null,w=null,L=null,T=null,b=null;for(g in Q){var f=Q[g];if(Q.hasOwnProperty(g)&&f!=null)switch(g){case"checked":break;case"value":break;case"defaultValue":L=f;default:Y.hasOwnProperty(g)||w1($,Z,g,null,Y,f)}}for(var S in Y){var g=Y[S];if(f=Q[S],Y.hasOwnProperty(S)&&(g!=null||f!=null))switch(S){case"type":B=g;break;case"name":U=g;break;case"checked":T=g;break;case"defaultChecked":b=g;break;case"value":z=g;break;case"defaultValue":w=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&&w1($,Z,S,g,Y,f)}}Z=Q.type==="checkbox"||Q.type==="radio"?Q.checked!=null:Q.value!=null,Y=Y.type==="checkbox"||Y.type==="radio"?Y.checked!=null:Y.value!=null,Z||!Y||yM||(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"),yM=!0),!Z||Y||fM||(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"),fM=!0),wq($,z,w,L,T,b,B,U);return;case"select":g=z=w=S=null;for(B in Q)if(L=Q[B],Q.hasOwnProperty(B)&&L!=null)switch(B){case"value":break;case"multiple":g=L;default:Y.hasOwnProperty(B)||w1($,Z,B,null,Y,L)}for(U in Y)if(B=Y[U],L=Q[U],Y.hasOwnProperty(U)&&(B!=null||L!=null))switch(U){case"value":S=B;break;case"defaultValue":w=B;break;case"multiple":z=B;default:B!==L&&w1($,Z,U,B,Y,L)}Y=w,Z=z,Q=g,S!=null?J9($,!!Z,S,!1):!!Q!==!!Z&&(Y!=null?J9($,!!Z,Y,!0):J9($,!!Z,Z?[]:"",!1));return;case"textarea":g=S=null;for(w in Q)if(U=Q[w],Q.hasOwnProperty(w)&&U!=null&&!Y.hasOwnProperty(w))switch(w){case"value":break;case"children":break;default:w1($,Z,w,null,Y,U)}for(z in Y)if(U=Y[z],B=Q[z],Y.hasOwnProperty(z)&&(U!=null||B!=null))switch(z){case"value":S=U;break;case"defaultValue":g=U;break;case"children":break;case"dangerouslySetInnerHTML":if(U!=null)throw Error("`dangerouslySetInnerHTML` does not make sense on <textarea>.");break;default:U!==B&&w1($,Z,z,U,Y,B)}vK($,S,g);return;case"option":for(var $0 in Q)if(S=Q[$0],Q.hasOwnProperty($0)&&S!=null&&!Y.hasOwnProperty($0))switch($0){case"selected":$.selected=!1;break;default:w1($,Z,$0,null,Y,S)}for(L in Y)if(S=Y[L],g=Q[L],Y.hasOwnProperty(L)&&S!==g&&(S!=null||g!=null))switch(L){case"selected":$.selected=S&&typeof S!=="function"&&typeof S!=="symbol";break;default:w1($,Z,L,S,Y,g)}return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var G0 in Q)S=Q[G0],Q.hasOwnProperty(G0)&&S!=null&&!Y.hasOwnProperty(G0)&&w1($,Z,G0,null,Y,S);for(T in Y)if(S=Y[T],g=Q[T],Y.hasOwnProperty(T)&&S!==g&&(S!=null||g!=null))switch(T){case"children":case"dangerouslySetInnerHTML":if(S!=null)throw Error(Z+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");break;default:w1($,Z,T,S,Y,g)}return;default:if(A$(Z)){for(var C1 in Q)S=Q[C1],Q.hasOwnProperty(C1)&&S!==void 0&&!Y.hasOwnProperty(C1)&&GX($,Z,C1,void 0,Y,S);for(b in Y)S=Y[b],g=Q[b],!Y.hasOwnProperty(b)||S===g||S===void 0&&g===void 0||GX($,Z,b,S,Y,g);return}}for(var e0 in Q)S=Q[e0],Q.hasOwnProperty(e0)&&S!=null&&!Y.hasOwnProperty(e0)&&w1($,Z,e0,null,Y,S);for(f in Y)S=Y[f],g=Q[f],!Y.hasOwnProperty(f)||S===g||S==null&&g==null||w1($,Z,f,S,Y,g)}function uF($){switch($){case"class":return"className";case"for":return"htmlFor";default:return $}}function qX($){var Z={};$=$.style;for(var Q=0;Q<$.length;Q++){var Y=$[Q];Z[Y]=$.getPropertyValue(Y)}return Z}function xF($,Z,Q){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 z=Z[B];z!=null&&typeof z!=="boolean"&&z!==""&&(B.indexOf("--")===0?(P$(z,B),Y+=U+B+":"+(""+z).trim()):typeof z!=="number"||z===0||aW.has(B)?(P$(z,B),Y+=U+B.replace(lW,"-$1").toLowerCase().replace(rW,"-ms-")+":"+(""+z).trim()):Y+=U+B.replace(lW,"-$1").toLowerCase().replace(rW,"-ms-")+":"+z+"px",U=";")}Y=Y||null,Z=$.getAttribute("style"),Z!==Y&&(Y=r8(Y),r8(Z)!==Y&&(Q.style=qX($)))}}function D6($,Z,Q,Y,U,B){if(U.delete(Q),$=$.getAttribute(Q),$===null)switch(typeof Y){case"undefined":case"function":case"symbol":case"boolean":return}else if(Y!=null)switch(typeof Y){case"function":case"symbol":case"boolean":break;default:if(W1(Y,Z),$===""+Y)return}K5(Z,$,Y,B)}function mF($,Z,Q,Y,U,B){if(U.delete(Q),$=$.getAttribute(Q),$===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}K5(Z,$,Y,B)}function YX($,Z,Q,Y,U,B){if(U.delete(Q),$=$.getAttribute(Q),$===null)switch(typeof Y){case"undefined":case"function":case"symbol":return}else if(Y!=null)switch(typeof Y){case"function":case"symbol":break;default:if(W1(Y,Q),$===""+Y)return}K5(Z,$,Y,B)}function dF($,Z,Q,Y,U,B){if(U.delete(Q),$=$.getAttribute(Q),$===null)switch(typeof Y){case"undefined":case"function":case"symbol":case"boolean":return;default:if(isNaN(Y))return}else if(Y!=null)switch(typeof Y){case"function":case"symbol":case"boolean":break;default:if(!isNaN(Y)&&(W1(Y,Z),$===""+Y))return}K5(Z,$,Y,B)}function XX($,Z,Q,Y,U,B){if(U.delete(Q),$=$.getAttribute(Q),$===null)switch(typeof Y){case"undefined":case"function":case"symbol":case"boolean":return}else if(Y!=null)switch(typeof Y){case"function":case"symbol":case"boolean":break;default:if(W1(Y,Z),Q=E$(""+Y),$===Q)return}K5(Z,$,Y,B)}function pF($,Z,Q,Y){for(var U={},B=new Set,z=$.attributes,w=0;w<z.length;w++)switch(z[w].name.toLowerCase()){case"value":break;case"checked":break;case"selected":break;default:B.add(z[w].name)}if(A$(Z)){for(var L in Q)if(Q.hasOwnProperty(L)){var T=Q[L];if(T!=null){if(U7.hasOwnProperty(L))typeof T!=="function"&&A4(L,T);else if(Q.suppressHydrationWarning!==!0)switch(L){case"children":typeof T!=="string"&&typeof T!=="number"||K5("children",$.textContent,T,U);continue;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":continue;case"dangerouslySetInnerHTML":z=$.innerHTML,T=T?T.__html:void 0,T!=null&&(T=gF($,T),K5(L,z,T,U));continue;case"style":B.delete(L),xF($,T,U);continue;case"offsetParent":case"offsetTop":case"offsetLeft":case"offsetWidth":case"offsetHeight":case"isContentEditable":case"outerText":case"outerHTML":B.delete(L.toLowerCase()),console.error("Assignment to read-only property will result in a no-op: `%s`",L);continue;case"className":B.delete("class"),z=OK($,"class",T),K5("className",z,T,U);continue;default:Y.context===w8&&Z!=="svg"&&Z!=="math"?B.delete(L.toLowerCase()):B.delete(L),z=OK($,L,T),K5(L,z,T,U)}}}}else for(T in Q)if(Q.hasOwnProperty(T)&&(L=Q[T],L!=null)){if(U7.hasOwnProperty(T))typeof L!=="function"&&A4(T,L);else if(Q.suppressHydrationWarning!==!0)switch(T){case"children":typeof L!=="string"&&typeof L!=="number"||K5("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":z=$.innerHTML,L=L?L.__html:void 0,L!=null&&(L=gF($,L),z!==L&&(U[T]={__html:z}));continue;case"className":D6($,T,"class",L,B,U);continue;case"tabIndex":D6($,T,"tabindex",L,B,U);continue;case"style":B.delete(T),xF($,L,U);continue;case"multiple":B.delete(T),K5(T,$.multiple,L,U);continue;case"muted":B.delete(T),K5(T,$.muted,L,U);continue;case"autoFocus":B.delete("autofocus"),K5(T,$.autofocus,L,U);continue;case"data":if(Z!=="object"){B.delete(T),z=$.getAttribute("data"),K5(T,z,L,U);continue}case"src":case"href":if(!(L!==""||Z==="a"&&T==="href"||Z==="object"&&T==="data")){T==="src"?console.error('An empty string ("") was passed to the %s attribute. This may cause the browser to download the whole page again over the network. To fix this, either do not render the element at all or pass null to %s instead of an empty string.',T,T):console.error('An empty string ("") was passed to the %s attribute. To fix this, either do not render the element at all or pass null to %s instead of an empty string.',T,T);continue}XX($,T,T,L,B,U);continue;case"action":case"formAction":if(z=$.getAttribute(T),typeof L==="function"){B.delete(T.toLowerCase()),T==="formAction"?(B.delete("name"),B.delete("formenctype"),B.delete("formmethod"),B.delete("formtarget")):(B.delete("enctype"),B.delete("method"),B.delete("target"));continue}else if(z===AO){B.delete(T.toLowerCase()),K5(T,"function",L,U);continue}XX($,T,T.toLowerCase(),L,B,U);continue;case"xlinkHref":XX($,T,"xlink:href",L,B,U);continue;case"contentEditable":YX($,T,"contenteditable",L,B,U);continue;case"spellCheck":YX($,T,"spellcheck",L,B,U);continue;case"draggable":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":YX($,T,T,L,B,U);continue;case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":mF($,T,T.toLowerCase(),L,B,U);continue;case"capture":case"download":$:{w=$;var b=z=T,f=U;if(B.delete(b),w=w.getAttribute(b),w===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&&w==="")break $;break;default:if(W1(L,z),w===""+L)break $}K5(z,w,L,f)}continue;case"cols":case"rows":case"size":case"span":$:{if(w=$,b=z=T,f=U,B.delete(b),w=w.getAttribute(b),w===null)switch(typeof L){case"undefined":case"function":case"symbol":case"boolean":break $;default:if(isNaN(L)||1>L)break $}else if(L!=null)switch(typeof L){case"function":case"symbol":case"boolean":break;default:if(!(isNaN(L)||1>L)&&(W1(L,z),w===""+L))break $}K5(z,w,L,f)}continue;case"rowSpan":dF($,T,"rowspan",L,B,U);continue;case"start":dF($,T,T,L,B,U);continue;case"xHeight":D6($,T,"x-height",L,B,U);continue;case"xlinkActuate":D6($,T,"xlink:actuate",L,B,U);continue;case"xlinkArcrole":D6($,T,"xlink:arcrole",L,B,U);continue;case"xlinkRole":D6($,T,"xlink:role",L,B,U);continue;case"xlinkShow":D6($,T,"xlink:show",L,B,U);continue;case"xlinkTitle":D6($,T,"xlink:title",L,B,U);continue;case"xlinkType":D6($,T,"xlink:type",L,B,U);continue;case"xmlBase":D6($,T,"xml:base",L,B,U);continue;case"xmlLang":D6($,T,"xml:lang",L,B,U);continue;case"xmlSpace":D6($,T,"xml:space",L,B,U);continue;case"inert":L!==""||G3[T]||(G3[T]=!0,console.error("Received an empty string for a boolean attribute `%s`. This will treat the attribute as if it were false. Either pass `false` to silence this warning, or pass `true` if you used an empty string in earlier versions of React to indicate this attribute is true.",T)),mF($,T,T,L,B,U);continue;default:if(!(2<T.length)||T[0]!=="o"&&T[0]!=="O"||T[1]!=="n"&&T[1]!=="N"){w=cK(T),z=!1,Y.context===w8&&Z!=="svg"&&Z!=="math"?B.delete(w.toLowerCase()):(b=T.toLowerCase(),b=MG.hasOwnProperty(b)?MG[b]||null:null,b!==null&&b!==T&&(z=!0,B.delete(b)),B.delete(w));$:if(b=$,f=w,w=L,C$(f))if(b.hasAttribute(f))b=b.getAttribute(f),W1(w,f),w=b===""+w?w:b;else{switch(typeof w){case"function":case"symbol":break $;case"boolean":if(b=f.toLowerCase().slice(0,5),b!=="data-"&&b!=="aria-")break $}w=w===void 0?void 0:null}else w=void 0;z||K5(T,w,L,U)}}}return 0<B.size&&Q.suppressHydrationWarning!==!0&&FT($,B,U),Object.keys(U).length===0?null:U}function zT($,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 cF($){switch($){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function MT(){if(typeof performance.getEntriesByType==="function"){for(var $=0,Z=0,Q=performance.getEntriesByType("resource"),Y=0;Y<Q.length;Y++){var U=Q[Y],B=U.transferSize,z=U.initiatorType,w=U.duration;if(B&&w&&cF(z)){z=0,w=U.responseEnd;for(Y+=1;Y<Q.length;Y++){var L=Q[Y],T=L.startTime;if(T>w)break;var{transferSize:b,initiatorType:f}=L;b&&cF(f)&&(L=L.responseEnd,z+=b*(L<w?1:(w-T)/(L-T)))}if(--Y,Z+=8*(B+z)/(U.duration/1000),$++,10<$)break}}if(0<$)return Z/$/1e6}return navigator.connection&&($=navigator.connection.downlink,typeof $==="number")?$:5}function tQ($){return $.nodeType===9?$:$.ownerDocument}function lF($){switch($){case I9:return Z$;case zG:return Y3;default:return w8}}function rF($,Z){if($===w8)switch(Z){case"svg":return Z$;case"math":return Y3;default:return w8}return $===Z$&&Z==="foreignObject"?w8:$}function NX($,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 wT(){var $=window.event;if($&&$.type==="popstate"){if($===cN)return!1;return cN=$,!0}return cN=null,!1}function e$(){var $=window.event;return $&&$!==oZ?$.type:null}function $Z(){var $=window.event;return $&&$!==oZ?$.timeStamp:-1.1}function RT($){setTimeout(function(){throw $})}function _T($,Z,Q){switch(Z){case"button":case"input":case"select":case"textarea":Q.autoFocus&&$.focus();break;case"img":Q.src?$.src=Q.src:Q.srcSet&&($.srcset=Q.srcSet)}}function LT(){}function PT($,Z,Q,Y){WT($,Z,Q,Y),$[g5]=Y}function sF($){V$($,"")}function TT($,Z,Q){$.nodeValue=Q}function nF($){if(!$.__reactWarnedAboutChildrenConflict){var Z=$[g5]||null;if(Z!==null){var Q=j0($);Q!==null&&(typeof Z.children==="string"||typeof Z.children==="number"?($.__reactWarnedAboutChildrenConflict=!0,q0(Q,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,q0(Q,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 CT($,Z){$.removeChild(Z)}function OT($,Z){($.nodeType===9?$.body:$.nodeName==="HTML"?$.ownerDocument.body:$).removeChild(Z)}function oF($,Z){var Q=Z,Y=0;do{var U=Q.nextSibling;if($.removeChild(Q),U&&U.nodeType===8)if(Q=U.data,Q===nZ||Q===q3){if(Y===0){$.removeChild(U),_9(Z);return}Y--}else if(Q===sZ||Q===w2||Q===E7||Q===$$||Q===A7)Y++;else if(Q===SO)ZZ($.ownerDocument.documentElement);else if(Q===jO){Q=$.ownerDocument.head,ZZ(Q);for(var B=Q.firstChild;B;){var{nextSibling:z,nodeName:w}=B;B[NZ]||w==="SCRIPT"||w==="STYLE"||w==="LINK"&&B.rel.toLowerCase()==="stylesheet"||Q.removeChild(B),B=z}}else Q===DO&&ZZ($.ownerDocument.body);Q=U}while(Q);_9(Z)}function aF($,Z){var Q=$;$=0;do{var Y=Q.nextSibling;if(Q.nodeType===1?Z?(Q._stashedDisplay=Q.style.display,Q.style.display="none"):(Q.style.display=Q._stashedDisplay||"",Q.getAttribute("style")===""&&Q.removeAttribute("style")):Q.nodeType===3&&(Z?(Q._stashedText=Q.nodeValue,Q.nodeValue=""):Q.nodeValue=Q._stashedText||""),Y&&Y.nodeType===8)if(Q=Y.data,Q===nZ)if($===0)break;else $--;else Q!==sZ&&Q!==w2&&Q!==E7&&Q!==$$||$++;Q=Y}while(Q)}function IT($){aF($,!0)}function VT($){$=$.style,typeof $.setProperty==="function"?$.setProperty("display","none","important"):$.display="none"}function AT($){$.nodeValue=""}function ET($){aF($,!1)}function ST($,Z){Z=Z[kO],Z=Z!==void 0&&Z!==null&&Z.hasOwnProperty("display")?Z.display:null,$.style.display=Z==null||typeof Z==="boolean"?"":(""+Z).trim()}function DT($,Z){$.nodeValue=Z}function UX($){var Z=$.firstChild;Z&&Z.nodeType===10&&(Z=Z.nextSibling);for(;Z;){var Q=Z;switch(Z=Z.nextSibling,Q.nodeName){case"HTML":case"HEAD":case"BODY":UX(Q),Z0(Q);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(Q.rel.toLowerCase()==="stylesheet")continue}$.removeChild(Q)}}function jT($,Z,Q,Y){for(;$.nodeType===1;){var U=Q;if($.nodeName.toLowerCase()!==Z.toLowerCase()){if(!Y&&($.nodeName!=="INPUT"||$.type!=="hidden"))break}else if(!Y)if(Z==="input"&&$.type==="hidden"){W1(U.name,"name");var B=U.name==null?null:""+U.name;if(U.type==="hidden"&&$.getAttribute("name")===B)return $}else return $;else if(!$[NZ])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($=w6($.nextSibling),$===null)break}return null}function kT($,Z,Q){if(Z==="")return null;for(;$.nodeType!==3;){if(($.nodeType!==1||$.nodeName!=="INPUT"||$.type!=="hidden")&&!Q)return null;if($=w6($.nextSibling),$===null)return null}return $}function iF($,Z){for(;$.nodeType!==8;){if(($.nodeType!==1||$.nodeName!=="INPUT"||$.type!=="hidden")&&!Z)return null;if($=w6($.nextSibling),$===null)return null}return $}function KX($){return $.data===w2||$.data===E7}function BX($){return $.data===$$||$.data===w2&&$.ownerDocument.readyState!==xM}function vT($,Z){var Q=$.ownerDocument;if($.data===E7)$._reactRetry=Z;else if($.data!==w2||Q.readyState!==xM)Z();else{var Y=function(){Z(),Q.removeEventListener("DOMContentLoaded",Y)};Q.addEventListener("DOMContentLoaded",Y),$._reactRetry=Y}}function w6($){for(;$!=null;$=$.nextSibling){var Z=$.nodeType;if(Z===1||Z===3)break;if(Z===8){if(Z=$.data,Z===sZ||Z===$$||Z===w2||Z===E7||Z===A7||Z===mN||Z===uM)break;if(Z===nZ||Z===q3)return null}}return $}function tF($){if($.nodeType===1){for(var Z=$.nodeName.toLowerCase(),Q={},Y=$.attributes,U=0;U<Y.length;U++){var B=Y[U];Q[uF(B.name)]=B.name.toLowerCase()==="style"?qX($):B.value}return{type:Z,props:Q}}return $.nodeType===8?$.data===A7?{type:"Activity",props:{}}:{type:"Suspense",props:{}}:$.nodeValue}function eF($,Z,Q){return Q===null||Q[EO]!==!0?($.nodeValue===Z?$=null:(Z=r8(Z),$=r8($.nodeValue)===Z?null:$.nodeValue),$):null}function HX($){$=$.nextSibling;for(var Z=0;$;){if($.nodeType===8){var Q=$.data;if(Q===nZ||Q===q3){if(Z===0)return w6($.nextSibling);Z--}else Q!==sZ&&Q!==$$&&Q!==w2&&Q!==E7&&Q!==A7||Z++}$=$.nextSibling}return null}function $W($){$=$.previousSibling;for(var Z=0;$;){if($.nodeType===8){var Q=$.data;if(Q===sZ||Q===$$||Q===w2||Q===E7||Q===A7){if(Z===0)return $;Z--}else Q!==nZ&&Q!==q3||Z++}$=$.previousSibling}return null}function bT($){_9($)}function fT($){_9($)}function yT($){_9($)}function ZW($,Z,Q,Y,U){switch(U&&Cq($,Y.ancestorInfo),Z=tQ(Q),$){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 gT($,Z,Q,Y){if(!Q[i8]&&j0(Q)){var U=Q.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=Q.attributes;U.length;)Q.removeAttributeNode(U[0]);R5(Q,$,Z),Q[_5]=Y,Q[g5]=Z}function ZZ($){for(var Z=$.attributes;Z.length;)$.removeAttributeNode(Z[0]);Z0($)}function eQ($){return typeof $.getRootNode==="function"?$.getRootNode():$.nodeType===9?$:$.ownerDocument}function JW($,Z,Q){var Y=J$;if(Y&&typeof Z==="string"&&Z){var U=S6(Z);U='link[rel="'+$+'"][href="'+U+'"]',typeof Q==="string"&&(U+='[crossorigin="'+Q+'"]'),rM.has(U)||(rM.add(U),$={rel:$,crossOrigin:Q,href:Z},Y.querySelector(U)===null&&(Z=Y.createElement("link"),R5(Z,"link",$),_0(Z),Y.head.appendChild(Z)))}}function QW($,Z,Q,Y){var U=(U=o8.current)?eQ(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 Q.precedence==="string"&&typeof Q.href==="string"?(Q=w9(Q.href),Z=J1(U).hoistableStyles,Y=Z.get(Q),Y||(Y={type:"style",instance:null,count:0,state:null},Z.set(Q,Y)),Y):{type:"void",instance:null,count:0,state:null};case"link":if(Q.rel==="stylesheet"&&typeof Q.href==="string"&&typeof Q.precedence==="string"){$=w9(Q.href);var B=J1(U).hoistableStyles,z=B.get($);if(!z&&(U=U.ownerDocument||U,z={type:"stylesheet",instance:null,count:0,state:{loading:D7,preload:null}},B.set($,z),(B=U.querySelector(JZ($)))&&!B._p&&(z.instance=B,z.state.loading=aZ|m6),!d6.has($))){var w={rel:"preload",as:"style",href:Q.href,crossOrigin:Q.crossOrigin,integrity:Q.integrity,media:Q.media,hrefLang:Q.hrefLang,referrerPolicy:Q.referrerPolicy};d6.set($,w),B||hT(U,$,w,z.state)}if(Z&&Y===null)throw Q=`
|
|
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 V4($){$!==$$&&$.next===null&&($$===null?tG=$$=$:$$=$$.next=$),eG=!0,x.actQueue!==null?yN||(yN=!0,jF()):fN||(fN=!0,jF())}function t$($,Z){if(!gN&&eG){gN=!0;do{var Q=!1;for(var Y=tG;Y!==null;){if(!Z)if($!==0){var U=Y.pendingLanes;if(U===0)var B=0;else{var{suspendedLanes:z,pingedLanes:w}=Y;B=(1<<31-y5(42|$)+1)-1,B&=U&~(z&~w),B=B&201326741?B&201326741|1:B?B|2:0}B!==0&&(Q=!0,DF(Y,B))}else B=u0,B=p2(Y,Y===_1?B:0,Y.cancelPendingCommit!==null||Y.timeoutHandle!==D7),(B&3)===0||c2(Y,B)||(Q=!0,DF(Y,B));Y=Y.next}}while(Q);gN=!1}}function KT(){aZ=window.event,iY()}function iY(){eG=yN=fN=!1;var $=0;M2!==0&&wT()&&($=M2);for(var Z=B5(),Q=null,Y=tG;Y!==null;){var U=Y.next,B=EF(Y,Z);if(B===0)Y.next=null,Q===null?tG=U:Q.next=U,U===null&&($$=Q);else if(Q=Y,$!==0||(B&3)!==0)eG=!0;Y=U}J5!==W2&&J5!==oG||t$($,!1),M2!==0&&(M2=0)}function EF($,Z){for(var{suspendedLanes:Q,pingedLanes:Y,expirationTimes:U}=$,B=$.pendingLanes&-62914561;0<B;){var z=31-y5(B),w=1<<z,L=U[z];if(L===-1){if((w&Q)===0||(w&Y)!==0)U[z]=zq(w,Z)}else L<=Z&&($.expiredLanes|=w);B&=~w}if(Z=_1,Q=u0,Q=p2($,$===Z?Q:0,$.cancelPendingCommit!==null||$.timeoutHandle!==D7),Y=$.callbackNode,Q===0||$===Z&&(H1===C7||H1===O7)||$.cancelPendingCommit!==null)return Y!==null&&tY(Y),$.callbackNode=null,$.callbackPriority=0;if((Q&3)===0||c2($,Q)){if(Z=Q&-Q,Z!==$.callbackPriority||x.actQueue!==null&&Y!==hN)tY(Y);else return Z;switch(C(Q)){case L6:case J4:Q=vX;break;case v4:Q=C9;break;case FG:Q=bX;break;default:Q=C9}return Y=SF.bind(null,$),x.actQueue!==null?(x.actQueue.push(Y),Q=hN):Q=jX(Q,Y),$.callbackPriority=Z,$.callbackNode=Q,Z}return Y!==null&&tY(Y),$.callbackPriority=2,$.callbackNode=null,2}function SF($,Z){if(jG=DG=!1,aZ=window.event,J5!==W2&&J5!==oG)return $.callbackNode=null,$.callbackPriority=0,null;var Q=$.callbackNode;if(N4===nG&&(N4=SN),a$()&&$.callbackNode!==Q)return null;var Y=u0;if(Y=p2($,$===_1?Y:0,$.cancelPendingCommit!==null||$.timeoutHandle!==D7),Y===0)return null;return NF($,Y,Z),EF($,B5()),$.callbackNode!=null&&$.callbackNode===Q?SF.bind(null,$):null}function DF($,Z){if(a$())return null;DG=jG,jG=!1,NF($,Z,!0)}function tY($){$!==hN&&$!==null&&eT($)}function jF(){x.actQueue!==null&&x.actQueue.push(function(){return iY(),null}),bO(function(){(Z1&(Y5|O6))!==W5?jX(kX,KT):iY()})}function eY(){if(M2===0){var $=M7;$===0&&($=KG,KG<<=1,(KG&261888)===0&&(KG=256)),M2=$}return M2}function kF($){if($==null||typeof $==="symbol"||typeof $==="boolean")return null;if(typeof $==="function")return $;return W1($,"action"),S$(""+$)}function vF($,Z){var Q=Z.ownerDocument.createElement("input");return Q.name=Z.name,Q.value=Z.value,$.id&&Q.setAttribute("form",$.id),Z.parentNode.insertBefore(Q,Z),$=new FormData($),Q.parentNode.removeChild(Q),$}function BT($,Z,Q,Y,U){if(Z==="submit"&&Q&&Q.stateNode===U){var B=kF((U[g5]||null).action),z=Y.submitter;z&&(Z=(Z=z[g5]||null)?kF(Z.formAction):z.getAttribute("formAction"),Z!==null&&(B=Z,z=null));var w=new RG("action","action",null,Y,U);$.push({event:w,listeners:[{instance:null,listener:function(){if(Y.defaultPrevented){if(M2!==0){var L=z?vF(U,z):new FormData(U),T={pending:!0,data:L,method:U.method,action:B};Object.freeze(T),_Y(Q,T,null,L)}}else typeof B==="function"&&(w.preventDefault(),L=z?vF(U,z):new FormData(U),T={pending:!0,data:L,method:U.method,action:B},Object.freeze(T),_Y(Q,T,B,L))},currentTarget:U}]})}}function aQ($,Z,Q){$.currentTarget=Q;try{Z($)}catch(Y){aX(Y)}$.currentTarget=null}function bF($,Z){Z=(Z&4)!==0;for(var Q=0;Q<$.length;Q++){var Y=$[Q];$:{var U=void 0,B=Y.event;if(Y=Y.listeners,Z)for(var z=Y.length-1;0<=z;z--){var w=Y[z],L=w.instance,T=w.currentTarget;if(w=w.listener,L!==U&&B.isPropagationStopped())break $;L!==null?q0(L,aQ,B,w,T):aQ(B,w,T),U=L}else for(z=0;z<Y.length;z++){if(w=Y[z],L=w.instance,T=w.currentTarget,w=w.listener,L!==U&&B.isPropagationStopped())break $;L!==null?q0(L,aQ,B,w,T):aQ(B,w,T),U=L}}}}function t0($,Z){uN.has($)||console.error('Did not expect a listenToNonDelegatedEvent() call for "%s". This is a bug in React. Please file an issue.',$);var Q=Z[fX];Q===void 0&&(Q=Z[fX]=new Set);var Y=$+"__bubble";Q.has(Y)||(fF(Z,$,2,!1),Q.add(Y))}function $X($,Z,Q){uN.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),fF(Q,$,Y,Z)}function ZX($){if(!$[$3]){$[$3]=!0,jW.forEach(function(Q){Q!=="selectionchange"&&(uN.has(Q)||$X(Q,!1,$),$X(Q,!0,$))});var Z=$.nodeType===9?$:$.ownerDocument;Z===null||Z[$3]||(Z[$3]=!0,$X("selectionchange",!1,Z))}}function fF($,Z,Q,Y){switch(WW(Z)){case L6:var U=lT;break;case J4:U=rT;break;default:U=wX}Q=U.bind(null,Z,Q,$),U=void 0,!xX||Z!=="touchstart"&&Z!=="touchmove"&&Z!=="wheel"||(U=!0),Y?U!==void 0?$.addEventListener(Z,Q,{capture:!0,passive:U}):$.addEventListener(Z,Q,!0):U!==void 0?$.addEventListener(Z,Q,{passive:U}):$.addEventListener(Z,Q,!1)}function JX($,Z,Q,Y,U){var B=Y;if((Z&1)===0&&(Z&2)===0&&Y!==null)$:for(;;){if(Y===null)return;var z=Y.tag;if(z===3||z===4){var w=Y.stateNode.containerInfo;if(w===U)break;if(z===4)for(z=Y.return;z!==null;){var L=z.tag;if((L===3||L===4)&&z.stateNode.containerInfo===U)return;z=z.return}for(;w!==null;){if(z=N0(w),z===null)return;if(L=z.tag,L===5||L===6||L===26||L===27){Y=B=z;continue $}w=w.parentNode}}Y=Y.return}rK(function(){var T=B,b=Oq(Q),f=[];$:{var S=Wz.get($);if(S!==void 0){var g=RG,$0=$;switch($){case"keypress":if(GQ(Q)===0)break $;case"keydown":case"keyup":g=xC;break;case"focusin":$0="focus",g=cX;break;case"focusout":$0="blur",g=cX;break;case"beforeblur":case"afterblur":g=cX;break;case"click":if(Q.button===2)break $;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":g=$z;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":g=EC;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":g=pC;break;case Kz:case Bz:case Hz:g=jC;break;case Fz:g=lC;break;case"scroll":case"scrollend":g=VC;break;case"wheel":g=sC;break;case"copy":case"cut":case"paste":g=vC;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":g=Jz;break;case"toggle":case"beforetoggle":g=oC}var G0=(Z&4)!==0,C1=!G0&&($==="scroll"||$==="scrollend"),e0=G0?S!==null?S+"Capture":null:S;G0=[];for(var A=T,D;A!==null;){var v=A;if(D=v.stateNode,v=v.tag,v!==5&&v!==26&&v!==27||D===null||e0===null||(v=D$(A,e0),v!=null&&G0.push(e$(A,v,D))),C1)break;A=A.return}0<G0.length&&(S=new g(S,$0,null,Q,b),f.push({event:S,listeners:G0}))}}if((Z&7)===0){$:{if(S=$==="mouseover"||$==="pointerover",g=$==="mouseout"||$==="pointerout",S&&Q!==KZ&&($0=Q.relatedTarget||Q.fromElement)&&(N0($0)||$0[i8]))break $;if(g||S){if(S=b.window===b?b:(S=b.ownerDocument)?S.defaultView||S.parentWindow:window,g){if($0=Q.relatedTarget||Q.toElement,g=T,$0=$0?N0($0):null,$0!==null&&(C1=j($0),G0=$0.tag,$0!==C1||G0!==5&&G0!==27&&G0!==6))$0=null}else g=null,$0=T;if(g!==$0){if(G0=$z,v="onMouseLeave",e0="onMouseEnter",A="mouse",$==="pointerout"||$==="pointerover")G0=Jz,v="onPointerLeave",e0="onPointerEnter",A="pointer";if(C1=g==null?S:k0(g),D=$0==null?S:k0($0),S=new G0(v,A+"leave",g,Q,b),S.target=C1,S.relatedTarget=D,v=null,N0(b)===T&&(G0=new G0(e0,A+"enter",$0,Q,b),G0.target=D,G0.relatedTarget=C1,v=G0),C1=v,g&&$0)Z:{G0=HT,e0=g,A=$0,D=0;for(v=e0;v;v=G0(v))D++;v=0;for(var m=A;m;m=G0(m))v++;for(;0<D-v;)e0=G0(e0),D--;for(;0<v-D;)A=G0(A),v--;for(;D--;){if(e0===A||A!==null&&e0===A.alternate){G0=e0;break Z}e0=G0(e0),A=G0(A)}G0=null}else G0=null;g!==null&&yF(f,S,g,G0,!1),$0!==null&&C1!==null&&yF(f,C1,$0,G0,!0)}}}$:{if(S=T?k0(T):window,g=S.nodeName&&S.nodeName.toLowerCase(),g==="select"||g==="input"&&S.type==="file")var J0=eK;else if(iK(S))if(Nz)J0=OP;else{J0=TP;var E0=PP}else g=S.nodeName,!g||g.toLowerCase()!=="input"||S.type!=="checkbox"&&S.type!=="radio"?T&&E$(T.elementType)&&(J0=eK):J0=CP;if(J0&&(J0=J0($,T))){tK(f,J0,Q,b);break $}E0&&E0($,S,T),$==="focusout"&&T&&S.type==="number"&&T.memoizedProps.value!=null&&Rq(S,"number",S.value)}switch(E0=T?k0(T):window,$){case"focusin":if(iK(E0)||E0.contentEditable==="true")j9=E0,rX=T,wZ=null;break;case"focusout":wZ=rX=j9=null;break;case"mousedown":sX=!0;break;case"contextmenu":case"mouseup":case"dragend":sX=!1,YB(f,Q,b);break;case"selectionchange":if(eC)break;case"keydown":case"keyup":YB(f,Q,b)}var R0;if(lX)$:{switch($){case"compositionstart":var B0="onCompositionStart";break $;case"compositionend":B0="onCompositionEnd";break $;case"compositionupdate":B0="onCompositionUpdate";break $}B0=void 0}else D9?oK($,Q)&&(B0="onCompositionEnd"):$==="keydown"&&Q.keyCode===Qz&&(B0="onCompositionStart");if(B0&&(Gz&&Q.locale!=="ko"&&(D9||B0!=="onCompositionStart"?B0==="onCompositionEnd"&&D9&&(R0=sK()):(t8=b,mX=("value"in t8)?t8.value:t8.textContent,D9=!0)),E0=iQ(T,B0),0<E0.length&&(B0=new Zz(B0,$,null,Q,b),f.push({event:B0,listeners:E0}),R0?B0.data=R0:(R0=aK(Q),R0!==null&&(B0.data=R0)))),R0=iC?wP($,Q):RP($,Q))B0=iQ(T,"onBeforeInput"),0<B0.length&&(E0=new fC("onBeforeInput","beforeinput",null,Q,b),f.push({event:E0,listeners:B0}),E0.data=R0);BT(f,$,T,Q,b)}bF(f,Z)})}function e$($,Z,Q){return{instance:$,listener:Z,currentTarget:Q}}function iQ($,Z){for(var Q=Z+"Capture",Y=[];$!==null;){var U=$,B=U.stateNode;if(U=U.tag,U!==5&&U!==26&&U!==27||B===null||(U=D$($,Q),U!=null&&Y.unshift(e$($,U,B)),U=D$($,Z),U!=null&&Y.push(e$($,U,B))),$.tag===3)return Y;$=$.return}return[]}function HT($){if($===null)return null;do $=$.return;while($&&$.tag!==5&&$.tag!==27);return $?$:null}function yF($,Z,Q,Y,U){for(var B=Z._reactName,z=[];Q!==null&&Q!==Y;){var w=Q,L=w.alternate,T=w.stateNode;if(w=w.tag,L!==null&&L===Y)break;w!==5&&w!==26&&w!==27||T===null||(L=T,U?(T=D$(Q,B),T!=null&&z.unshift(e$(Q,T,L))):U||(T=D$(Q,B),T!=null&&z.push(e$(Q,T,L)))),Q=Q.return}z.length!==0&&$.push({event:Z,listeners:z})}function QX($,Z){FP($,Z),$!=="input"&&$!=="textarea"&&$!=="select"||Z==null||Z.value!==null||tW||(tW=!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 Q={registrationNameDependencies:K7,possibleRegistrationNames:yX};E$($)||typeof Z.is==="string"||zP($,Z,Q),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 K5($,Z,Q,Y){Z!==Q&&(Q=r8(Q),r8(Z)!==Q&&(Y[$]=Z))}function FT($,Z,Q){Z.forEach(function(Y){Q[uF(Y)]=Y==="style"?qX($):$.getAttribute(Y)})}function A4($,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 gF($,Z){return $=$.namespaceURI===zG||$.namespaceURI===V9?$.ownerDocument.createElementNS($.namespaceURI,$.tagName):$.ownerDocument.createElement($.tagName),$.innerHTML=Z,$.innerHTML}function r8($){return k8($)&&(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.",d2($)),U5($)),(typeof $==="string"?$:""+$).replace(IO,`
|
|
176
|
+
`).replace(VO,"")}function hF($,Z){return Z=r8(Z),r8($)===Z?!0:!1}function w1($,Z,Q,Y,U,B){switch(Q){case"children":if(typeof Y==="string")QQ(Y,Z,!1),Z==="body"||Z==="textarea"&&Y===""||A$($,Y);else if(typeof Y==="number"||typeof Y==="bigint")QQ(""+Y,Z,!1),Z!=="body"&&A$($,""+Y);break;case"className":$Q($,"class",Y);break;case"tabIndex":$Q($,"tabindex",Y);break;case"dir":case"role":case"viewBox":case"width":case"height":$Q($,Q,Y);break;case"style":pK($,Y,B);break;case"data":if(Z!=="object"){$Q($,"data",Y);break}case"src":case"href":if(Y===""&&(Z!=="a"||Q!=="href")){Q==="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.',Q,Q):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.',Q,Q),$.removeAttribute(Q);break}if(Y==null||typeof Y==="function"||typeof Y==="symbol"||typeof Y==="boolean"){$.removeAttribute(Q);break}W1(Y,Q),Y=S$(""+Y),$.setAttribute(Q,Y);break;case"action":case"formAction":if(Y!=null&&(Z==="form"?Q==="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||Q3||(Q3=!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||J3||(J3=!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"?Q==="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"||Z3?Z!=="button"||U.type==null||U.type==="submit"||Z3?typeof Y==="function"&&(U.name==null||gM||(gM=!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||Q3||(Q3=!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||J3||(J3=!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."))):(Z3=!0,console.error('A button can only specify a formAction along with type="submit" or no type.')):(Z3=!0,console.error('An input can only specify a formAction along with type="submit" or type="image".')):Q==="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(Q,"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"&&(Q==="formAction"?(Z!=="input"&&w1($,Z,"name",U.name,U,null),w1($,Z,"formEncType",U.formEncType,U,null),w1($,Z,"formMethod",U.formMethod,U,null),w1($,Z,"formTarget",U.formTarget,U,null)):(w1($,Z,"encType",U.encType,U,null),w1($,Z,"method",U.method,U,null),w1($,Z,"target",U.target,U,null)));if(Y==null||typeof Y==="symbol"||typeof Y==="boolean"){$.removeAttribute(Q);break}W1(Y,Q),Y=S$(""+Y),$.setAttribute(Q,Y);break;case"onClick":Y!=null&&(typeof Y!=="function"&&A4(Q,Y),$.onclick=o4);break;case"onScroll":Y!=null&&(typeof Y!=="function"&&A4(Q,Y),t0("scroll",$));break;case"onScrollEnd":Y!=null&&(typeof Y!=="function"&&A4(Q,Y),t0("scrollend",$));break;case"dangerouslySetInnerHTML":if(Y!=null){if(typeof Y!=="object"||!("__html"in Y))throw Error("`props.dangerouslySetInnerHTML` must be in the form `{__html: ...}`. Please visit https://react.dev/link/dangerously-set-inner-html for more information.");if(Q=Y.__html,Q!=null){if(U.children!=null)throw Error("Can only set one of `children` or `props.dangerouslySetInnerHTML`.");$.innerHTML=Q}}break;case"multiple":$.multiple=Y&&typeof Y!=="function"&&typeof Y!=="symbol";break;case"muted":$.muted=Y&&typeof Y!=="function"&&typeof Y!=="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(Y==null||typeof Y==="function"||typeof Y==="boolean"||typeof Y==="symbol"){$.removeAttribute("xlink:href");break}W1(Y,Q),Q=S$(""+Y),$.setAttributeNS(A7,"xlink:href",Q);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":Y!=null&&typeof Y!=="function"&&typeof Y!=="symbol"?(W1(Y,Q),$.setAttribute(Q,""+Y)):$.removeAttribute(Q);break;case"inert":Y!==""||G3[Q]||(G3[Q]=!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.",Q));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(Q,""):$.removeAttribute(Q);break;case"capture":case"download":Y===!0?$.setAttribute(Q,""):Y!==!1&&Y!=null&&typeof Y!=="function"&&typeof Y!=="symbol"?(W1(Y,Q),$.setAttribute(Q,Y)):$.removeAttribute(Q);break;case"cols":case"rows":case"size":case"span":Y!=null&&typeof Y!=="function"&&typeof Y!=="symbol"&&!isNaN(Y)&&1<=Y?(W1(Y,Q),$.setAttribute(Q,Y)):$.removeAttribute(Q);break;case"rowSpan":case"start":Y==null||typeof Y==="function"||typeof Y==="symbol"||isNaN(Y)?$.removeAttribute(Q):(W1(Y,Q),$.setAttribute(Q,Y));break;case"popover":t0("beforetoggle",$),t0("toggle",$),eJ($,"popover",Y);break;case"xlinkActuate":n4($,A7,"xlink:actuate",Y);break;case"xlinkArcrole":n4($,A7,"xlink:arcrole",Y);break;case"xlinkRole":n4($,A7,"xlink:role",Y);break;case"xlinkShow":n4($,A7,"xlink:show",Y);break;case"xlinkTitle":n4($,A7,"xlink:title",Y);break;case"xlinkType":n4($,A7,"xlink:type",Y);break;case"xmlBase":n4($,xN,"xml:base",Y);break;case"xmlLang":n4($,xN,"xml:lang",Y);break;case"xmlSpace":n4($,xN,"xml:space",Y);break;case"is":B!=null&&console.error('Cannot update the "is" prop after it has been initialized.'),eJ($,"is",Y);break;case"innerText":case"textContent":break;case"popoverTarget":hM||Y==null||typeof Y!=="object"||(hM=!0,console.error("The `popoverTarget` prop expects the ID of an Element as a string. Received %s instead.",Y));default:!(2<Q.length)||Q[0]!=="o"&&Q[0]!=="O"||Q[1]!=="n"&&Q[1]!=="N"?(Q=cK(Q),eJ($,Q,Y)):K7.hasOwnProperty(Q)&&Y!=null&&typeof Y!=="function"&&A4(Q,Y)}}function GX($,Z,Q,Y,U,B){switch(Q){case"style":pK($,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(Q=Y.__html,Q!=null){if(U.children!=null)throw Error("Can only set one of `children` or `props.dangerouslySetInnerHTML`.");$.innerHTML=Q}}break;case"children":typeof Y==="string"?A$($,Y):(typeof Y==="number"||typeof Y==="bigint")&&A$($,""+Y);break;case"onScroll":Y!=null&&(typeof Y!=="function"&&A4(Q,Y),t0("scroll",$));break;case"onScrollEnd":Y!=null&&(typeof Y!=="function"&&A4(Q,Y),t0("scrollend",$));break;case"onClick":Y!=null&&(typeof Y!=="function"&&A4(Q,Y),$.onclick=o4);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(K7.hasOwnProperty(Q))Y!=null&&typeof Y!=="function"&&A4(Q,Y);else $:{if(Q[0]==="o"&&Q[1]==="n"&&(U=Q.endsWith("Capture"),Z=Q.slice(2,U?Q.length-7:void 0),B=$[g5]||null,B=B!=null?B[Q]:null,typeof B==="function"&&$.removeEventListener(Z,B,U),typeof Y==="function")){typeof B!=="function"&&B!==null&&(Q in $?$[Q]=null:$.hasAttribute(Q)&&$.removeAttribute(Q)),$.addEventListener(Z,Y,U);break $}Q in $?$[Q]=Y:Y===!0?$.setAttribute(Q,""):eJ($,Q,Y)}}}function R5($,Z,Q){switch(QX(Z,Q),Z){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":t0("error",$),t0("load",$);var Y=!1,U=!1,B;for(B in Q)if(Q.hasOwnProperty(B)){var z=Q[B];if(z!=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:w1($,Z,B,z,Q,null)}}U&&w1($,Z,"srcSet",Q.srcSet,Q,null),Y&&w1($,Z,"src",Q.src,Q,null);return;case"input":f8("input",Q),t0("invalid",$);var w=B=z=U=null,L=null,T=null;for(Y in Q)if(Q.hasOwnProperty(Y)){var b=Q[Y];if(b!=null)switch(Y){case"name":U=b;break;case"type":z=b;break;case"checked":L=b;break;case"defaultChecked":T=b;break;case"value":B=b;break;case"defaultValue":w=b;break;case"children":case"dangerouslySetInnerHTML":if(b!=null)throw Error(Z+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");break;default:w1($,Z,Y,b,Q,null)}}AK($,Q),EK($,B,w,L,T,z,U,!1);return;case"select":f8("select",Q),t0("invalid",$),Y=z=B=null;for(U in Q)if(Q.hasOwnProperty(U)&&(w=Q[U],w!=null))switch(U){case"value":B=w;break;case"defaultValue":z=w;break;case"multiple":Y=w;default:w1($,Z,U,w,Q,null)}jK($,Q),Z=B,Q=z,$.multiple=!!Y,Z!=null?Q9($,!!Y,Z,!1):Q!=null&&Q9($,!!Y,Q,!0);return;case"textarea":f8("textarea",Q),t0("invalid",$),B=U=Y=null;for(z in Q)if(Q.hasOwnProperty(z)&&(w=Q[z],w!=null))switch(z){case"value":Y=w;break;case"defaultValue":U=w;break;case"children":B=w;break;case"dangerouslySetInnerHTML":if(w!=null)throw Error("`dangerouslySetInnerHTML` does not make sense on <textarea>.");break;default:w1($,Z,z,w,Q,null)}kK($,Q),bK($,Y,U,B);return;case"option":SK($,Q);for(L in Q)if(Q.hasOwnProperty(L)&&(Y=Q[L],Y!=null))switch(L){case"selected":$.selected=Y&&typeof Y!=="function"&&typeof Y!=="symbol";break;default:w1($,Z,L,Y,Q,null)}return;case"dialog":t0("beforetoggle",$),t0("toggle",$),t0("cancel",$),t0("close",$);break;case"iframe":case"object":t0("load",$);break;case"video":case"audio":for(Y=0;Y<sZ.length;Y++)t0(sZ[Y],$);break;case"image":t0("error",$),t0("load",$);break;case"details":t0("toggle",$);break;case"embed":case"source":case"link":t0("error",$),t0("load",$);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(T in Q)if(Q.hasOwnProperty(T)&&(Y=Q[T],Y!=null))switch(T){case"children":case"dangerouslySetInnerHTML":throw Error(Z+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");default:w1($,Z,T,Y,Q,null)}return;default:if(E$(Z)){for(b in Q)Q.hasOwnProperty(b)&&(Y=Q[b],Y!==void 0&&GX($,Z,b,Y,Q,void 0));return}}for(w in Q)Q.hasOwnProperty(w)&&(Y=Q[w],Y!=null&&w1($,Z,w,Y,Q,null))}function WT($,Z,Q,Y){switch(QX(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,z=null,w=null,L=null,T=null,b=null;for(g in Q){var f=Q[g];if(Q.hasOwnProperty(g)&&f!=null)switch(g){case"checked":break;case"value":break;case"defaultValue":L=f;default:Y.hasOwnProperty(g)||w1($,Z,g,null,Y,f)}}for(var S in Y){var g=Y[S];if(f=Q[S],Y.hasOwnProperty(S)&&(g!=null||f!=null))switch(S){case"type":B=g;break;case"name":U=g;break;case"checked":T=g;break;case"defaultChecked":b=g;break;case"value":z=g;break;case"defaultValue":w=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&&w1($,Z,S,g,Y,f)}}Z=Q.type==="checkbox"||Q.type==="radio"?Q.checked!=null:Q.value!=null,Y=Y.type==="checkbox"||Y.type==="radio"?Y.checked!=null:Y.value!=null,Z||!Y||yM||(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"),yM=!0),!Z||Y||fM||(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"),fM=!0),wq($,z,w,L,T,b,B,U);return;case"select":g=z=w=S=null;for(B in Q)if(L=Q[B],Q.hasOwnProperty(B)&&L!=null)switch(B){case"value":break;case"multiple":g=L;default:Y.hasOwnProperty(B)||w1($,Z,B,null,Y,L)}for(U in Y)if(B=Y[U],L=Q[U],Y.hasOwnProperty(U)&&(B!=null||L!=null))switch(U){case"value":S=B;break;case"defaultValue":w=B;break;case"multiple":z=B;default:B!==L&&w1($,Z,U,B,Y,L)}Y=w,Z=z,Q=g,S!=null?Q9($,!!Z,S,!1):!!Q!==!!Z&&(Y!=null?Q9($,!!Z,Y,!0):Q9($,!!Z,Z?[]:"",!1));return;case"textarea":g=S=null;for(w in Q)if(U=Q[w],Q.hasOwnProperty(w)&&U!=null&&!Y.hasOwnProperty(w))switch(w){case"value":break;case"children":break;default:w1($,Z,w,null,Y,U)}for(z in Y)if(U=Y[z],B=Q[z],Y.hasOwnProperty(z)&&(U!=null||B!=null))switch(z){case"value":S=U;break;case"defaultValue":g=U;break;case"children":break;case"dangerouslySetInnerHTML":if(U!=null)throw Error("`dangerouslySetInnerHTML` does not make sense on <textarea>.");break;default:U!==B&&w1($,Z,z,U,Y,B)}vK($,S,g);return;case"option":for(var $0 in Q)if(S=Q[$0],Q.hasOwnProperty($0)&&S!=null&&!Y.hasOwnProperty($0))switch($0){case"selected":$.selected=!1;break;default:w1($,Z,$0,null,Y,S)}for(L in Y)if(S=Y[L],g=Q[L],Y.hasOwnProperty(L)&&S!==g&&(S!=null||g!=null))switch(L){case"selected":$.selected=S&&typeof S!=="function"&&typeof S!=="symbol";break;default:w1($,Z,L,S,Y,g)}return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var G0 in Q)S=Q[G0],Q.hasOwnProperty(G0)&&S!=null&&!Y.hasOwnProperty(G0)&&w1($,Z,G0,null,Y,S);for(T in Y)if(S=Y[T],g=Q[T],Y.hasOwnProperty(T)&&S!==g&&(S!=null||g!=null))switch(T){case"children":case"dangerouslySetInnerHTML":if(S!=null)throw Error(Z+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");break;default:w1($,Z,T,S,Y,g)}return;default:if(E$(Z)){for(var C1 in Q)S=Q[C1],Q.hasOwnProperty(C1)&&S!==void 0&&!Y.hasOwnProperty(C1)&&GX($,Z,C1,void 0,Y,S);for(b in Y)S=Y[b],g=Q[b],!Y.hasOwnProperty(b)||S===g||S===void 0&&g===void 0||GX($,Z,b,S,Y,g);return}}for(var e0 in Q)S=Q[e0],Q.hasOwnProperty(e0)&&S!=null&&!Y.hasOwnProperty(e0)&&w1($,Z,e0,null,Y,S);for(f in Y)S=Y[f],g=Q[f],!Y.hasOwnProperty(f)||S===g||S==null&&g==null||w1($,Z,f,S,Y,g)}function uF($){switch($){case"class":return"className";case"for":return"htmlFor";default:return $}}function qX($){var Z={};$=$.style;for(var Q=0;Q<$.length;Q++){var Y=$[Q];Z[Y]=$.getPropertyValue(Y)}return Z}function xF($,Z,Q){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 z=Z[B];z!=null&&typeof z!=="boolean"&&z!==""&&(B.indexOf("--")===0?(T$(z,B),Y+=U+B+":"+(""+z).trim()):typeof z!=="number"||z===0||aW.has(B)?(T$(z,B),Y+=U+B.replace(lW,"-$1").toLowerCase().replace(rW,"-ms-")+":"+(""+z).trim()):Y+=U+B.replace(lW,"-$1").toLowerCase().replace(rW,"-ms-")+":"+z+"px",U=";")}Y=Y||null,Z=$.getAttribute("style"),Z!==Y&&(Y=r8(Y),r8(Z)!==Y&&(Q.style=qX($)))}}function D6($,Z,Q,Y,U,B){if(U.delete(Q),$=$.getAttribute(Q),$===null)switch(typeof Y){case"undefined":case"function":case"symbol":case"boolean":return}else if(Y!=null)switch(typeof Y){case"function":case"symbol":case"boolean":break;default:if(W1(Y,Z),$===""+Y)return}K5(Z,$,Y,B)}function mF($,Z,Q,Y,U,B){if(U.delete(Q),$=$.getAttribute(Q),$===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}K5(Z,$,Y,B)}function YX($,Z,Q,Y,U,B){if(U.delete(Q),$=$.getAttribute(Q),$===null)switch(typeof Y){case"undefined":case"function":case"symbol":return}else if(Y!=null)switch(typeof Y){case"function":case"symbol":break;default:if(W1(Y,Q),$===""+Y)return}K5(Z,$,Y,B)}function dF($,Z,Q,Y,U,B){if(U.delete(Q),$=$.getAttribute(Q),$===null)switch(typeof Y){case"undefined":case"function":case"symbol":case"boolean":return;default:if(isNaN(Y))return}else if(Y!=null)switch(typeof Y){case"function":case"symbol":case"boolean":break;default:if(!isNaN(Y)&&(W1(Y,Z),$===""+Y))return}K5(Z,$,Y,B)}function XX($,Z,Q,Y,U,B){if(U.delete(Q),$=$.getAttribute(Q),$===null)switch(typeof Y){case"undefined":case"function":case"symbol":case"boolean":return}else if(Y!=null)switch(typeof Y){case"function":case"symbol":case"boolean":break;default:if(W1(Y,Z),Q=S$(""+Y),$===Q)return}K5(Z,$,Y,B)}function pF($,Z,Q,Y){for(var U={},B=new Set,z=$.attributes,w=0;w<z.length;w++)switch(z[w].name.toLowerCase()){case"value":break;case"checked":break;case"selected":break;default:B.add(z[w].name)}if(E$(Z)){for(var L in Q)if(Q.hasOwnProperty(L)){var T=Q[L];if(T!=null){if(K7.hasOwnProperty(L))typeof T!=="function"&&A4(L,T);else if(Q.suppressHydrationWarning!==!0)switch(L){case"children":typeof T!=="string"&&typeof T!=="number"||K5("children",$.textContent,T,U);continue;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":continue;case"dangerouslySetInnerHTML":z=$.innerHTML,T=T?T.__html:void 0,T!=null&&(T=gF($,T),K5(L,z,T,U));continue;case"style":B.delete(L),xF($,T,U);continue;case"offsetParent":case"offsetTop":case"offsetLeft":case"offsetWidth":case"offsetHeight":case"isContentEditable":case"outerText":case"outerHTML":B.delete(L.toLowerCase()),console.error("Assignment to read-only property will result in a no-op: `%s`",L);continue;case"className":B.delete("class"),z=OK($,"class",T),K5("className",z,T,U);continue;default:Y.context===w8&&Z!=="svg"&&Z!=="math"?B.delete(L.toLowerCase()):B.delete(L),z=OK($,L,T),K5(L,z,T,U)}}}}else for(T in Q)if(Q.hasOwnProperty(T)&&(L=Q[T],L!=null)){if(K7.hasOwnProperty(T))typeof L!=="function"&&A4(T,L);else if(Q.suppressHydrationWarning!==!0)switch(T){case"children":typeof L!=="string"&&typeof L!=="number"||K5("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":z=$.innerHTML,L=L?L.__html:void 0,L!=null&&(L=gF($,L),z!==L&&(U[T]={__html:z}));continue;case"className":D6($,T,"class",L,B,U);continue;case"tabIndex":D6($,T,"tabindex",L,B,U);continue;case"style":B.delete(T),xF($,L,U);continue;case"multiple":B.delete(T),K5(T,$.multiple,L,U);continue;case"muted":B.delete(T),K5(T,$.muted,L,U);continue;case"autoFocus":B.delete("autofocus"),K5(T,$.autofocus,L,U);continue;case"data":if(Z!=="object"){B.delete(T),z=$.getAttribute("data"),K5(T,z,L,U);continue}case"src":case"href":if(!(L!==""||Z==="a"&&T==="href"||Z==="object"&&T==="data")){T==="src"?console.error('An empty string ("") was passed to the %s attribute. This may cause the browser to download the whole page again over the network. To fix this, either do not render the element at all or pass null to %s instead of an empty string.',T,T):console.error('An empty string ("") was passed to the %s attribute. To fix this, either do not render the element at all or pass null to %s instead of an empty string.',T,T);continue}XX($,T,T,L,B,U);continue;case"action":case"formAction":if(z=$.getAttribute(T),typeof L==="function"){B.delete(T.toLowerCase()),T==="formAction"?(B.delete("name"),B.delete("formenctype"),B.delete("formmethod"),B.delete("formtarget")):(B.delete("enctype"),B.delete("method"),B.delete("target"));continue}else if(z===AO){B.delete(T.toLowerCase()),K5(T,"function",L,U);continue}XX($,T,T.toLowerCase(),L,B,U);continue;case"xlinkHref":XX($,T,"xlink:href",L,B,U);continue;case"contentEditable":YX($,T,"contenteditable",L,B,U);continue;case"spellCheck":YX($,T,"spellcheck",L,B,U);continue;case"draggable":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":YX($,T,T,L,B,U);continue;case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":mF($,T,T.toLowerCase(),L,B,U);continue;case"capture":case"download":$:{w=$;var b=z=T,f=U;if(B.delete(b),w=w.getAttribute(b),w===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&&w==="")break $;break;default:if(W1(L,z),w===""+L)break $}K5(z,w,L,f)}continue;case"cols":case"rows":case"size":case"span":$:{if(w=$,b=z=T,f=U,B.delete(b),w=w.getAttribute(b),w===null)switch(typeof L){case"undefined":case"function":case"symbol":case"boolean":break $;default:if(isNaN(L)||1>L)break $}else if(L!=null)switch(typeof L){case"function":case"symbol":case"boolean":break;default:if(!(isNaN(L)||1>L)&&(W1(L,z),w===""+L))break $}K5(z,w,L,f)}continue;case"rowSpan":dF($,T,"rowspan",L,B,U);continue;case"start":dF($,T,T,L,B,U);continue;case"xHeight":D6($,T,"x-height",L,B,U);continue;case"xlinkActuate":D6($,T,"xlink:actuate",L,B,U);continue;case"xlinkArcrole":D6($,T,"xlink:arcrole",L,B,U);continue;case"xlinkRole":D6($,T,"xlink:role",L,B,U);continue;case"xlinkShow":D6($,T,"xlink:show",L,B,U);continue;case"xlinkTitle":D6($,T,"xlink:title",L,B,U);continue;case"xlinkType":D6($,T,"xlink:type",L,B,U);continue;case"xmlBase":D6($,T,"xml:base",L,B,U);continue;case"xmlLang":D6($,T,"xml:lang",L,B,U);continue;case"xmlSpace":D6($,T,"xml:space",L,B,U);continue;case"inert":L!==""||G3[T]||(G3[T]=!0,console.error("Received an empty string for a boolean attribute `%s`. This will treat the attribute as if it were false. Either pass `false` to silence this warning, or pass `true` if you used an empty string in earlier versions of React to indicate this attribute is true.",T)),mF($,T,T,L,B,U);continue;default:if(!(2<T.length)||T[0]!=="o"&&T[0]!=="O"||T[1]!=="n"&&T[1]!=="N"){w=cK(T),z=!1,Y.context===w8&&Z!=="svg"&&Z!=="math"?B.delete(w.toLowerCase()):(b=T.toLowerCase(),b=MG.hasOwnProperty(b)?MG[b]||null:null,b!==null&&b!==T&&(z=!0,B.delete(b)),B.delete(w));$:if(b=$,f=w,w=L,O$(f))if(b.hasAttribute(f))b=b.getAttribute(f),W1(w,f),w=b===""+w?w:b;else{switch(typeof w){case"function":case"symbol":break $;case"boolean":if(b=f.toLowerCase().slice(0,5),b!=="data-"&&b!=="aria-")break $}w=w===void 0?void 0:null}else w=void 0;z||K5(T,w,L,U)}}}return 0<B.size&&Q.suppressHydrationWarning!==!0&&FT($,B,U),Object.keys(U).length===0?null:U}function zT($,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 cF($){switch($){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function MT(){if(typeof performance.getEntriesByType==="function"){for(var $=0,Z=0,Q=performance.getEntriesByType("resource"),Y=0;Y<Q.length;Y++){var U=Q[Y],B=U.transferSize,z=U.initiatorType,w=U.duration;if(B&&w&&cF(z)){z=0,w=U.responseEnd;for(Y+=1;Y<Q.length;Y++){var L=Q[Y],T=L.startTime;if(T>w)break;var{transferSize:b,initiatorType:f}=L;b&&cF(f)&&(L=L.responseEnd,z+=b*(L<w?1:(w-T)/(L-T)))}if(--Y,Z+=8*(B+z)/(U.duration/1000),$++,10<$)break}}if(0<$)return Z/$/1e6}return navigator.connection&&($=navigator.connection.downlink,typeof $==="number")?$:5}function tQ($){return $.nodeType===9?$:$.ownerDocument}function lF($){switch($){case V9:return J$;case zG:return Y3;default:return w8}}function rF($,Z){if($===w8)switch(Z){case"svg":return J$;case"math":return Y3;default:return w8}return $===J$&&Z==="foreignObject"?w8:$}function NX($,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 wT(){var $=window.event;if($&&$.type==="popstate"){if($===cN)return!1;return cN=$,!0}return cN=null,!1}function $Z(){var $=window.event;return $&&$!==aZ?$.type:null}function ZZ(){var $=window.event;return $&&$!==aZ?$.timeStamp:-1.1}function RT($){setTimeout(function(){throw $})}function _T($,Z,Q){switch(Z){case"button":case"input":case"select":case"textarea":Q.autoFocus&&$.focus();break;case"img":Q.src?$.src=Q.src:Q.srcSet&&($.srcset=Q.srcSet)}}function LT(){}function PT($,Z,Q,Y){WT($,Z,Q,Y),$[g5]=Y}function sF($){A$($,"")}function TT($,Z,Q){$.nodeValue=Q}function nF($){if(!$.__reactWarnedAboutChildrenConflict){var Z=$[g5]||null;if(Z!==null){var Q=j0($);Q!==null&&(typeof Z.children==="string"||typeof Z.children==="number"?($.__reactWarnedAboutChildrenConflict=!0,q0(Q,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,q0(Q,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 CT($,Z){$.removeChild(Z)}function OT($,Z){($.nodeType===9?$.body:$.nodeName==="HTML"?$.ownerDocument.body:$).removeChild(Z)}function oF($,Z){var Q=Z,Y=0;do{var U=Q.nextSibling;if($.removeChild(Q),U&&U.nodeType===8)if(Q=U.data,Q===oZ||Q===q3){if(Y===0){$.removeChild(U),L9(Z);return}Y--}else if(Q===nZ||Q===w2||Q===S7||Q===Z$||Q===E7)Y++;else if(Q===SO)JZ($.ownerDocument.documentElement);else if(Q===jO){Q=$.ownerDocument.head,JZ(Q);for(var B=Q.firstChild;B;){var{nextSibling:z,nodeName:w}=B;B[UZ]||w==="SCRIPT"||w==="STYLE"||w==="LINK"&&B.rel.toLowerCase()==="stylesheet"||Q.removeChild(B),B=z}}else Q===DO&&JZ($.ownerDocument.body);Q=U}while(Q);L9(Z)}function aF($,Z){var Q=$;$=0;do{var Y=Q.nextSibling;if(Q.nodeType===1?Z?(Q._stashedDisplay=Q.style.display,Q.style.display="none"):(Q.style.display=Q._stashedDisplay||"",Q.getAttribute("style")===""&&Q.removeAttribute("style")):Q.nodeType===3&&(Z?(Q._stashedText=Q.nodeValue,Q.nodeValue=""):Q.nodeValue=Q._stashedText||""),Y&&Y.nodeType===8)if(Q=Y.data,Q===oZ)if($===0)break;else $--;else Q!==nZ&&Q!==w2&&Q!==S7&&Q!==Z$||$++;Q=Y}while(Q)}function IT($){aF($,!0)}function VT($){$=$.style,typeof $.setProperty==="function"?$.setProperty("display","none","important"):$.display="none"}function AT($){$.nodeValue=""}function ET($){aF($,!1)}function ST($,Z){Z=Z[kO],Z=Z!==void 0&&Z!==null&&Z.hasOwnProperty("display")?Z.display:null,$.style.display=Z==null||typeof Z==="boolean"?"":(""+Z).trim()}function DT($,Z){$.nodeValue=Z}function UX($){var Z=$.firstChild;Z&&Z.nodeType===10&&(Z=Z.nextSibling);for(;Z;){var Q=Z;switch(Z=Z.nextSibling,Q.nodeName){case"HTML":case"HEAD":case"BODY":UX(Q),Z0(Q);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(Q.rel.toLowerCase()==="stylesheet")continue}$.removeChild(Q)}}function jT($,Z,Q,Y){for(;$.nodeType===1;){var U=Q;if($.nodeName.toLowerCase()!==Z.toLowerCase()){if(!Y&&($.nodeName!=="INPUT"||$.type!=="hidden"))break}else if(!Y)if(Z==="input"&&$.type==="hidden"){W1(U.name,"name");var B=U.name==null?null:""+U.name;if(U.type==="hidden"&&$.getAttribute("name")===B)return $}else return $;else if(!$[UZ])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($=w6($.nextSibling),$===null)break}return null}function kT($,Z,Q){if(Z==="")return null;for(;$.nodeType!==3;){if(($.nodeType!==1||$.nodeName!=="INPUT"||$.type!=="hidden")&&!Q)return null;if($=w6($.nextSibling),$===null)return null}return $}function iF($,Z){for(;$.nodeType!==8;){if(($.nodeType!==1||$.nodeName!=="INPUT"||$.type!=="hidden")&&!Z)return null;if($=w6($.nextSibling),$===null)return null}return $}function KX($){return $.data===w2||$.data===S7}function BX($){return $.data===Z$||$.data===w2&&$.ownerDocument.readyState!==xM}function vT($,Z){var Q=$.ownerDocument;if($.data===S7)$._reactRetry=Z;else if($.data!==w2||Q.readyState!==xM)Z();else{var Y=function(){Z(),Q.removeEventListener("DOMContentLoaded",Y)};Q.addEventListener("DOMContentLoaded",Y),$._reactRetry=Y}}function w6($){for(;$!=null;$=$.nextSibling){var Z=$.nodeType;if(Z===1||Z===3)break;if(Z===8){if(Z=$.data,Z===nZ||Z===Z$||Z===w2||Z===S7||Z===E7||Z===mN||Z===uM)break;if(Z===oZ||Z===q3)return null}}return $}function tF($){if($.nodeType===1){for(var Z=$.nodeName.toLowerCase(),Q={},Y=$.attributes,U=0;U<Y.length;U++){var B=Y[U];Q[uF(B.name)]=B.name.toLowerCase()==="style"?qX($):B.value}return{type:Z,props:Q}}return $.nodeType===8?$.data===E7?{type:"Activity",props:{}}:{type:"Suspense",props:{}}:$.nodeValue}function eF($,Z,Q){return Q===null||Q[EO]!==!0?($.nodeValue===Z?$=null:(Z=r8(Z),$=r8($.nodeValue)===Z?null:$.nodeValue),$):null}function HX($){$=$.nextSibling;for(var Z=0;$;){if($.nodeType===8){var Q=$.data;if(Q===oZ||Q===q3){if(Z===0)return w6($.nextSibling);Z--}else Q!==nZ&&Q!==Z$&&Q!==w2&&Q!==S7&&Q!==E7||Z++}$=$.nextSibling}return null}function $W($){$=$.previousSibling;for(var Z=0;$;){if($.nodeType===8){var Q=$.data;if(Q===nZ||Q===Z$||Q===w2||Q===S7||Q===E7){if(Z===0)return $;Z--}else Q!==oZ&&Q!==q3||Z++}$=$.previousSibling}return null}function bT($){L9($)}function fT($){L9($)}function yT($){L9($)}function ZW($,Z,Q,Y,U){switch(U&&Cq($,Y.ancestorInfo),Z=tQ(Q),$){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 gT($,Z,Q,Y){if(!Q[i8]&&j0(Q)){var U=Q.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=Q.attributes;U.length;)Q.removeAttributeNode(U[0]);R5(Q,$,Z),Q[_5]=Y,Q[g5]=Z}function JZ($){for(var Z=$.attributes;Z.length;)$.removeAttributeNode(Z[0]);Z0($)}function eQ($){return typeof $.getRootNode==="function"?$.getRootNode():$.nodeType===9?$:$.ownerDocument}function JW($,Z,Q){var Y=Q$;if(Y&&typeof Z==="string"&&Z){var U=S6(Z);U='link[rel="'+$+'"][href="'+U+'"]',typeof Q==="string"&&(U+='[crossorigin="'+Q+'"]'),rM.has(U)||(rM.add(U),$={rel:$,crossOrigin:Q,href:Z},Y.querySelector(U)===null&&(Z=Y.createElement("link"),R5(Z,"link",$),_0(Z),Y.head.appendChild(Z)))}}function QW($,Z,Q,Y){var U=(U=o8.current)?eQ(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 Q.precedence==="string"&&typeof Q.href==="string"?(Q=R9(Q.href),Z=J1(U).hoistableStyles,Y=Z.get(Q),Y||(Y={type:"style",instance:null,count:0,state:null},Z.set(Q,Y)),Y):{type:"void",instance:null,count:0,state:null};case"link":if(Q.rel==="stylesheet"&&typeof Q.href==="string"&&typeof Q.precedence==="string"){$=R9(Q.href);var B=J1(U).hoistableStyles,z=B.get($);if(!z&&(U=U.ownerDocument||U,z={type:"stylesheet",instance:null,count:0,state:{loading:j7,preload:null}},B.set($,z),(B=U.querySelector(QZ($)))&&!B._p&&(z.instance=B,z.state.loading=iZ|m6),!d6.has($))){var w={rel:"preload",as:"style",href:Q.href,crossOrigin:Q.crossOrigin,integrity:Q.integrity,media:Q.media,hrefLang:Q.hrefLang,referrerPolicy:Q.referrerPolicy};d6.set($,w),B||hT(U,$,w,z.state)}if(Z&&Y===null)throw Q=`
|
|
177
177
|
|
|
178
178
|
- `+$G(Z)+`
|
|
179
179
|
+ `+$G(Q),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."+Q);return z}if(Z&&Y!==null)throw Q=`
|
|
180
180
|
|
|
181
181
|
- `+$G(Z)+`
|
|
182
|
-
+ `+$G(Q),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."+Q);return null;case"script":return Z=Q.async,Q=Q.src,typeof Q==="string"&&Z&&typeof Z!=="function"&&typeof Z!=="symbol"?(Q=R9(Q),Z=J1(U).hoistableScripts,Y=Z.get(Q),Y||(Y={type:"script",instance:null,count:0,state:null},Z.set(Q,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 $G($){var Z=0,Q="<link";return typeof $.rel==="string"?(Z++,Q+=' rel="'+$.rel+'"'):Z4.call($,"rel")&&(Z++,Q+=' rel="'+($.rel===null?"null":"invalid type "+typeof $.rel)+'"'),typeof $.href==="string"?(Z++,Q+=' href="'+$.href+'"'):Z4.call($,"href")&&(Z++,Q+=' href="'+($.href===null?"null":"invalid type "+typeof $.href)+'"'),typeof $.precedence==="string"?(Z++,Q+=' precedence="'+$.precedence+'"'):Z4.call($,"precedence")&&(Z++,Q+=" precedence={"+($.precedence===null?"null":"invalid type "+typeof $.precedence)+"}"),Object.getOwnPropertyNames($).length>Z&&(Q+=" ..."),Q+" />"}function w9($){return'href="'+S6($)+'"'}function JZ($){return'link[rel="stylesheet"]['+$+"]"}function GW($){return l0({},$,{"data-precedence":$.precedence,precedence:null})}function hT($,Z,Q,Y){$.querySelector('link[rel="preload"][as="style"]['+Z+"]")?Y.loading=aZ:(Z=$.createElement("link"),Y.preload=Z,Z.addEventListener("load",function(){return Y.loading|=aZ}),Z.addEventListener("error",function(){return Y.loading|=cM}),R5(Z,"link",Q),_0(Z),$.head.appendChild(Z))}function R9($){return'[src="'+S6($)+'"]'}function QZ($){return"script[async]"+$}function qW($,Z,Q){if(Z.count++,Z.instance===null)switch(Z.type){case"style":var Y=$.querySelector('style[data-href~="'+S6(Q.href)+'"]');if(Y)return Z.instance=Y,_0(Y),Y;var U=l0({},Q,{"data-href":Q.href,"data-precedence":Q.precedence,href:null,precedence:null});return Y=($.ownerDocument||$).createElement("style"),_0(Y),R5(Y,"style",U),ZG(Y,Q.precedence,$),Z.instance=Y;case"stylesheet":U=w9(Q.href);var B=$.querySelector(JZ(U));if(B)return Z.state.loading|=m6,Z.instance=B,_0(B),B;Y=GW(Q),(U=d6.get(U))&&FX(Y,U),B=($.ownerDocument||$).createElement("link"),_0(B);var z=B;return z._p=new Promise(function(w,L){z.onload=w,z.onerror=L}),R5(B,"link",Y),Z.state.loading|=m6,ZG(B,Q.precedence,$),Z.instance=B;case"script":if(B=R9(Q.src),U=$.querySelector(QZ(B)))return Z.instance=U,_0(U),U;if(Y=Q,U=d6.get(B))Y=l0({},Q),WX(Y,U);return $=$.ownerDocument||$,U=$.createElement("script"),_0(U),R5(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&m6)===D7&&(Y=Z.instance,Z.state.loading|=m6,ZG(Y,Q.precedence,$));return Z.instance}function ZG($,Z,Q){for(var Y=Q.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),U=Y.length?Y[Y.length-1]:null,B=U,z=0;z<Y.length;z++){var w=Y[z];if(w.dataset.precedence===Z)B=w;else if(B!==U)break}B?B.parentNode.insertBefore($,B.nextSibling):(Z=Q.nodeType===9?Q.head:Q,Z.insertBefore($,Z.firstChild))}function FX($,Z){$.crossOrigin==null&&($.crossOrigin=Z.crossOrigin),$.referrerPolicy==null&&($.referrerPolicy=Z.referrerPolicy),$.title==null&&($.title=Z.title)}function WX($,Z){$.crossOrigin==null&&($.crossOrigin=Z.crossOrigin),$.referrerPolicy==null&&($.referrerPolicy=Z.referrerPolicy),$.integrity==null&&($.integrity=Z.integrity)}function YW($,Z,Q){if(X3===null){var Y=new Map,U=X3=new Map;U.set(Q,Y)}else U=X3,Y=U.get(Q),Y||(Y=new Map,U.set(Q,Y));if(Y.has($))return Y;Y.set($,null),Q=Q.getElementsByTagName($);for(U=0;U<Q.length;U++){var B=Q[U];if(!(B[NZ]||B[_5]||$==="link"&&B.getAttribute("rel")==="stylesheet")&&B.namespaceURI!==I9){var z=B.getAttribute(Z)||"";z=$+z;var w=Y.get(z);w?w.push(B):Y.set(z,[B])}}return Y}function XW($,Z,Q){$=$.ownerDocument||$,$.head.insertBefore(Q,Z==="title"?$.querySelector("head > title"):null)}function uT($,Z,Q){var Y=!Q.ancestorInfo.containerTagInScope;if(Q.context===Z$||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;Q=[],Z.onLoad&&Q.push("`onLoad`"),U&&Q.push("`onError`"),B!=null&&Q.push("`disabled`"),U=zT(Q,"and"),U+=Q.length===1?" prop":" props",B=Q.length===1?"an "+U:"the "+U,Q.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 NW($){return $.type==="stylesheet"&&($.state.loading&lM)===D7?!1:!0}function xT($,Z,Q,Y){if(Q.type==="stylesheet"&&(typeof Y.media!=="string"||matchMedia(Y.media).matches!==!1)&&(Q.state.loading&m6)===D7){if(Q.instance===null){var U=w9(Y.href),B=Z.querySelector(JZ(U));if(B){Z=B._p,Z!==null&&typeof Z==="object"&&typeof Z.then==="function"&&($.count++,$=JG.bind($),Z.then($,$)),Q.state.loading|=m6,Q.instance=B,_0(B);return}B=Z.ownerDocument||Z,Y=GW(Y),(U=d6.get(U))&&FX(Y,U),B=B.createElement("link"),_0(B);var z=B;z._p=new Promise(function(w,L){z.onload=w,z.onerror=L}),R5(B,"link",Y),Q.instance=B}$.stylesheets===null&&($.stylesheets=new Map),$.stylesheets.set(Q,Z),(Z=Q.state.preload)&&(Q.state.loading&lM)===D7&&($.count++,Q=JG.bind($),Z.addEventListener("load",Q),Z.addEventListener("error",Q))}}function mT($,Z){return $.stylesheets&&$.count===0&&QG($,$.stylesheets),0<$.count||0<$.imgCount?function(Q){var Y=setTimeout(function(){if($.stylesheets&&QG($,$.stylesheets),$.unsuspend){var B=$.unsuspend;$.unsuspend=null,B()}},fO+Z);0<$.imgBytes&&rN===0&&(rN=125*MT()*gO);var U=setTimeout(function(){if($.waitingForImages=!1,$.count===0&&($.stylesheets&&QG($,$.stylesheets),$.unsuspend)){var B=$.unsuspend;$.unsuspend=null,B()}},($.imgBytes>rN?50:yO)+Z);return $.unsuspend=Q,function(){$.unsuspend=null,clearTimeout(Y),clearTimeout(U)}}:null}function JG(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)QG(this,this.stylesheets);else if(this.unsuspend){var $=this.unsuspend;this.unsuspend=null,$()}}}function QG($,Z){$.stylesheets=null,$.unsuspend!==null&&($.count++,N3=new Map,Z.forEach(dT,$),N3=null,JG.call($))}function dT($,Z){if(!(Z.state.loading&m6)){var Q=N3.get($);if(Q)var Y=Q.get(sN);else{Q=new Map,N3.set($,Q);for(var U=$.querySelectorAll("link[data-precedence],style[data-precedence]"),B=0;B<U.length;B++){var z=U[B];if(z.nodeName==="LINK"||z.getAttribute("media")!=="not all")Q.set(z.dataset.precedence,z),Y=z}Y&&Q.set(sN,Y)}U=Z.instance,z=U.getAttribute("data-precedence"),B=Q.get(z)||Y,B===Y&&Q.set(sN,U),Q.set(z,U),this.count++,Y=JG.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|=m6}}function pT($,Z,Q,Y,U,B,z,w,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=Z9(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Z9(0),this.hiddenUpdates=Z9(null),this.identifierPrefix=Y,this.onUncaughtError=U,this.onCaughtError=B,this.onRecoverableError=z,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=L,this.incompleteTransitions=new Map,this.passiveEffectDuration=this.effectDuration=-0,this.memoizedUpdaters=new Set,$=this.pendingUpdatersLaneMap=[];for(Z=0;31>Z;Z++)$.push(new Set);this._debugRootType=Q?"hydrateRoot()":"createRoot()"}function UW($,Z,Q,Y,U,B,z,w,L,T,b,f){return $=new pT($,Z,Q,z,L,T,b,f,w),Z=NO,B===!0&&(Z|=D5|Q4),Z|=g0,B=P(3,null,null,Z),$.current=B,B.stateNode=$,Z=dq(),J7(Z),$.pooledCache=Z,J7(Z),B.memoizedState={element:Y,isDehydrated:Q,cache:Z},sq(B),$}function KW($){if(!$)return Z2;return $=Z2,$}function zX($,Z,Q,Y,U,B){if(S5&&typeof S5.onScheduleFiberRoot==="function")try{S5.onScheduleFiberRoot(C9,Y,Q)}catch(z){j4||(j4=!0,console.error("React instrumentation encountered an error: %o",z))}U=KW(U),Y.context===null?Y.context=U:Y.pendingContext=U,D4&&_6!==null&&!aM&&(aM=!0,console.error(`Render methods should be a pure function of props and state; triggering nested component updates from render is not allowed. If necessary, trigger nested updates in componentDidUpdate.
|
|
182
|
+
+ `+$G(Q),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."+Q);return null;case"script":return Z=Q.async,Q=Q.src,typeof Q==="string"&&Z&&typeof Z!=="function"&&typeof Z!=="symbol"?(Q=_9(Q),Z=J1(U).hoistableScripts,Y=Z.get(Q),Y||(Y={type:"script",instance:null,count:0,state:null},Z.set(Q,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 $G($){var Z=0,Q="<link";return typeof $.rel==="string"?(Z++,Q+=' rel="'+$.rel+'"'):Z4.call($,"rel")&&(Z++,Q+=' rel="'+($.rel===null?"null":"invalid type "+typeof $.rel)+'"'),typeof $.href==="string"?(Z++,Q+=' href="'+$.href+'"'):Z4.call($,"href")&&(Z++,Q+=' href="'+($.href===null?"null":"invalid type "+typeof $.href)+'"'),typeof $.precedence==="string"?(Z++,Q+=' precedence="'+$.precedence+'"'):Z4.call($,"precedence")&&(Z++,Q+=" precedence={"+($.precedence===null?"null":"invalid type "+typeof $.precedence)+"}"),Object.getOwnPropertyNames($).length>Z&&(Q+=" ..."),Q+" />"}function R9($){return'href="'+S6($)+'"'}function QZ($){return'link[rel="stylesheet"]['+$+"]"}function GW($){return l0({},$,{"data-precedence":$.precedence,precedence:null})}function hT($,Z,Q,Y){$.querySelector('link[rel="preload"][as="style"]['+Z+"]")?Y.loading=iZ:(Z=$.createElement("link"),Y.preload=Z,Z.addEventListener("load",function(){return Y.loading|=iZ}),Z.addEventListener("error",function(){return Y.loading|=cM}),R5(Z,"link",Q),_0(Z),$.head.appendChild(Z))}function _9($){return'[src="'+S6($)+'"]'}function GZ($){return"script[async]"+$}function qW($,Z,Q){if(Z.count++,Z.instance===null)switch(Z.type){case"style":var Y=$.querySelector('style[data-href~="'+S6(Q.href)+'"]');if(Y)return Z.instance=Y,_0(Y),Y;var U=l0({},Q,{"data-href":Q.href,"data-precedence":Q.precedence,href:null,precedence:null});return Y=($.ownerDocument||$).createElement("style"),_0(Y),R5(Y,"style",U),ZG(Y,Q.precedence,$),Z.instance=Y;case"stylesheet":U=R9(Q.href);var B=$.querySelector(QZ(U));if(B)return Z.state.loading|=m6,Z.instance=B,_0(B),B;Y=GW(Q),(U=d6.get(U))&&FX(Y,U),B=($.ownerDocument||$).createElement("link"),_0(B);var z=B;return z._p=new Promise(function(w,L){z.onload=w,z.onerror=L}),R5(B,"link",Y),Z.state.loading|=m6,ZG(B,Q.precedence,$),Z.instance=B;case"script":if(B=_9(Q.src),U=$.querySelector(GZ(B)))return Z.instance=U,_0(U),U;if(Y=Q,U=d6.get(B))Y=l0({},Q),WX(Y,U);return $=$.ownerDocument||$,U=$.createElement("script"),_0(U),R5(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&m6)===j7&&(Y=Z.instance,Z.state.loading|=m6,ZG(Y,Q.precedence,$));return Z.instance}function ZG($,Z,Q){for(var Y=Q.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),U=Y.length?Y[Y.length-1]:null,B=U,z=0;z<Y.length;z++){var w=Y[z];if(w.dataset.precedence===Z)B=w;else if(B!==U)break}B?B.parentNode.insertBefore($,B.nextSibling):(Z=Q.nodeType===9?Q.head:Q,Z.insertBefore($,Z.firstChild))}function FX($,Z){$.crossOrigin==null&&($.crossOrigin=Z.crossOrigin),$.referrerPolicy==null&&($.referrerPolicy=Z.referrerPolicy),$.title==null&&($.title=Z.title)}function WX($,Z){$.crossOrigin==null&&($.crossOrigin=Z.crossOrigin),$.referrerPolicy==null&&($.referrerPolicy=Z.referrerPolicy),$.integrity==null&&($.integrity=Z.integrity)}function YW($,Z,Q){if(X3===null){var Y=new Map,U=X3=new Map;U.set(Q,Y)}else U=X3,Y=U.get(Q),Y||(Y=new Map,U.set(Q,Y));if(Y.has($))return Y;Y.set($,null),Q=Q.getElementsByTagName($);for(U=0;U<Q.length;U++){var B=Q[U];if(!(B[UZ]||B[_5]||$==="link"&&B.getAttribute("rel")==="stylesheet")&&B.namespaceURI!==V9){var z=B.getAttribute(Z)||"";z=$+z;var w=Y.get(z);w?w.push(B):Y.set(z,[B])}}return Y}function XW($,Z,Q){$=$.ownerDocument||$,$.head.insertBefore(Q,Z==="title"?$.querySelector("head > title"):null)}function uT($,Z,Q){var Y=!Q.ancestorInfo.containerTagInScope;if(Q.context===J$||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;Q=[],Z.onLoad&&Q.push("`onLoad`"),U&&Q.push("`onError`"),B!=null&&Q.push("`disabled`"),U=zT(Q,"and"),U+=Q.length===1?" prop":" props",B=Q.length===1?"an "+U:"the "+U,Q.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 NW($){return $.type==="stylesheet"&&($.state.loading&lM)===j7?!1:!0}function xT($,Z,Q,Y){if(Q.type==="stylesheet"&&(typeof Y.media!=="string"||matchMedia(Y.media).matches!==!1)&&(Q.state.loading&m6)===j7){if(Q.instance===null){var U=R9(Y.href),B=Z.querySelector(QZ(U));if(B){Z=B._p,Z!==null&&typeof Z==="object"&&typeof Z.then==="function"&&($.count++,$=JG.bind($),Z.then($,$)),Q.state.loading|=m6,Q.instance=B,_0(B);return}B=Z.ownerDocument||Z,Y=GW(Y),(U=d6.get(U))&&FX(Y,U),B=B.createElement("link"),_0(B);var z=B;z._p=new Promise(function(w,L){z.onload=w,z.onerror=L}),R5(B,"link",Y),Q.instance=B}$.stylesheets===null&&($.stylesheets=new Map),$.stylesheets.set(Q,Z),(Z=Q.state.preload)&&(Q.state.loading&lM)===j7&&($.count++,Q=JG.bind($),Z.addEventListener("load",Q),Z.addEventListener("error",Q))}}function mT($,Z){return $.stylesheets&&$.count===0&&QG($,$.stylesheets),0<$.count||0<$.imgCount?function(Q){var Y=setTimeout(function(){if($.stylesheets&&QG($,$.stylesheets),$.unsuspend){var B=$.unsuspend;$.unsuspend=null,B()}},fO+Z);0<$.imgBytes&&rN===0&&(rN=125*MT()*gO);var U=setTimeout(function(){if($.waitingForImages=!1,$.count===0&&($.stylesheets&&QG($,$.stylesheets),$.unsuspend)){var B=$.unsuspend;$.unsuspend=null,B()}},($.imgBytes>rN?50:yO)+Z);return $.unsuspend=Q,function(){$.unsuspend=null,clearTimeout(Y),clearTimeout(U)}}:null}function JG(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)QG(this,this.stylesheets);else if(this.unsuspend){var $=this.unsuspend;this.unsuspend=null,$()}}}function QG($,Z){$.stylesheets=null,$.unsuspend!==null&&($.count++,N3=new Map,Z.forEach(dT,$),N3=null,JG.call($))}function dT($,Z){if(!(Z.state.loading&m6)){var Q=N3.get($);if(Q)var Y=Q.get(sN);else{Q=new Map,N3.set($,Q);for(var U=$.querySelectorAll("link[data-precedence],style[data-precedence]"),B=0;B<U.length;B++){var z=U[B];if(z.nodeName==="LINK"||z.getAttribute("media")!=="not all")Q.set(z.dataset.precedence,z),Y=z}Y&&Q.set(sN,Y)}U=Z.instance,z=U.getAttribute("data-precedence"),B=Q.get(z)||Y,B===Y&&Q.set(sN,U),Q.set(z,U),this.count++,Y=JG.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|=m6}}function pT($,Z,Q,Y,U,B,z,w,L){this.tag=1,this.containerInfo=$,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=D7,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=J9(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=J9(0),this.hiddenUpdates=J9(null),this.identifierPrefix=Y,this.onUncaughtError=U,this.onCaughtError=B,this.onRecoverableError=z,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=L,this.incompleteTransitions=new Map,this.passiveEffectDuration=this.effectDuration=-0,this.memoizedUpdaters=new Set,$=this.pendingUpdatersLaneMap=[];for(Z=0;31>Z;Z++)$.push(new Set);this._debugRootType=Q?"hydrateRoot()":"createRoot()"}function UW($,Z,Q,Y,U,B,z,w,L,T,b,f){return $=new pT($,Z,Q,z,L,T,b,f,w),Z=NO,B===!0&&(Z|=D5|Q4),Z|=g0,B=P(3,null,null,Z),$.current=B,B.stateNode=$,Z=dq(),Q7(Z),$.pooledCache=Z,Q7(Z),B.memoizedState={element:Y,isDehydrated:Q,cache:Z},sq(B),$}function KW($){if(!$)return Z2;return $=Z2,$}function zX($,Z,Q,Y,U,B){if(S5&&typeof S5.onScheduleFiberRoot==="function")try{S5.onScheduleFiberRoot(O9,Y,Q)}catch(z){j4||(j4=!0,console.error("React instrumentation encountered an error: %o",z))}U=KW(U),Y.context===null?Y.context=U:Y.pendingContext=U,D4&&_6!==null&&!aM&&(aM=!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(_6)||"Unknown")),Y=x8(Z),Y.payload={element:Q},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),Q=m8($,Y,Z),Q!==null&&(z4(Z,"root.render()",null),y1(Q,$,Z),g$(Q,$,Z))}function BW($,Z){if($=$.memoizedState,$!==null&&$.dehydrated!==null){var Q=$.retryLane;$.retryLane=Q!==0&&Q<Z?Q:Z}}function MX($,Z){BW($,Z),($=$.alternate)&&BW($,Z)}function HW($){if($.tag===13||$.tag===31){var Z=E5($,67108864);Z!==null&&y1(Z,$,67108864),MX($,67108864)}}function FW($){if($.tag===13||$.tag===31){var Z=M6($);Z=s2(Z);var Q=E5($,Z);Q!==null&&y1(Q,$,Z),MX($,Z)}}function cT(){return _6}function lT($,Z,Q,Y){var U=x.T;x.T=null;var B=U1.p;try{U1.p=L6,wX($,Z,Q,Y)}finally{U1.p=B,x.T=U}}function rT($,Z,Q,Y){var U=x.T;x.T=null;var B=U1.p;try{U1.p=J4,wX($,Z,Q,Y)}finally{U1.p=B,x.T=U}}function wX($,Z,Q,Y){if(K3){var U=RX(Y);if(U===null)JX($,Z,Y,B3,Q),zW($,Y);else if(sT(U,$,Z,Q,Y))Y.stopPropagation();else if(zW($,Y),Z&4&&-1<uO.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 z=B4(B.pendingLanes);if(z!==0){var w=B;w.pendingLanes|=2;for(w.entangledLanes|=2;z;){var L=1<<31-y5(z);w.entanglements[1]|=L,z&=~L}V4(B),(Z1&(Y5|O6))===W5&&(sG=B5()+OM,i$(0,!1))}}break;case 31:case 13:w=E5(B,2),w!==null&&y1(w,B,2),W9(),MX(B,2)}if(B=RX(Y),B===null&&JX($,Z,Y,B3,Q),B===U)break;U=B}U!==null&&Y.stopPropagation()}else JX($,Z,Y,null,Q)}}function RX($){return $=Oq($),_X($)}function _X($){if(B3=null,$=N0($),$!==null){var Z=j($);if(Z===null)$=null;else{var Q=Z.tag;if(Q===13){if($=h(Z),$!==null)return $;$=null}else if(Q===31){if($=p(Z),$!==null)return $;$=null}else if(Q===3){if(Z.stateNode.current.memoizedState.isDehydrated)return Z.tag===3?Z.stateNode.containerInfo:null;$=null}else Z!==$&&($=null)}}return B3=$,null}function WW($){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 L6;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 J4;case"message":switch(JC()){case kX:return L6;case vX:return J4;case T9:case QC:return v4;case bX:return FG;default:return v4}default:return v4}}function zW($,Z){switch($){case"focusin":case"focusout":R2=null;break;case"dragenter":case"dragleave":_2=null;break;case"mouseover":case"mouseout":L2=null;break;case"pointerover":case"pointerout":tZ.delete(Z.pointerId);break;case"gotpointercapture":case"lostpointercapture":eZ.delete(Z.pointerId)}}function GZ($,Z,Q,Y,U,B){if($===null||$.nativeEvent!==B)return $={blockedOn:Z,domEventName:Q,eventSystemFlags:Y,nativeEvent:B,targetContainers:[U]},Z!==null&&(Z=j0(Z),Z!==null&&HW(Z)),$;return $.eventSystemFlags|=Y,Z=$.targetContainers,U!==null&&Z.indexOf(U)===-1&&Z.push(U),$}function sT($,Z,Q,Y,U){switch(Z){case"focusin":return R2=GZ(R2,$,Z,Q,Y,U),!0;case"dragenter":return _2=GZ(_2,$,Z,Q,Y,U),!0;case"mouseover":return L2=GZ(L2,$,Z,Q,Y,U),!0;case"pointerover":var B=U.pointerId;return tZ.set(B,GZ(tZ.get(B)||null,$,Z,Q,Y,U)),!0;case"gotpointercapture":return B=U.pointerId,eZ.set(B,GZ(eZ.get(B)||null,$,Z,Q,Y,U)),!0}return!1}function MW($){var Z=N0($.target);if(Z!==null){var Q=j(Z);if(Q!==null){if(Z=Q.tag,Z===13){if(Z=h(Q),Z!==null){$.blockedOn=Z,r($.priority,function(){FW(Q)});return}}else if(Z===31){if(Z=p(Q),Z!==null){$.blockedOn=Z,r($.priority,function(){FW(Q)});return}}else if(Z===3&&Q.stateNode.current.memoizedState.isDehydrated){$.blockedOn=Q.tag===3?Q.stateNode.containerInfo:null;return}}}$.blockedOn=null}function GG($){if($.blockedOn!==null)return!1;for(var Z=$.targetContainers;0<Z.length;){var Q=RX($.nativeEvent);if(Q===null){Q=$.nativeEvent;var Y=new Q.constructor(Q.type,Q),U=Y;UZ!==null&&console.error("Expected currently replaying event to be null. This error is likely caused by a bug in React. Please file an issue."),UZ=U,Q.target.dispatchEvent(Y),UZ===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."),UZ=null}else return Z=j0(Q),Z!==null&&HW(Z),$.blockedOn=Q,!1;Z.shift()}return!0}function wW($,Z,Q){GG($)&&Q.delete(Z)}function nT(){nN=!1,R2!==null&&GG(R2)&&(R2=null),_2!==null&&GG(_2)&&(_2=null),L2!==null&&GG(L2)&&(L2=null),tZ.forEach(wW),eZ.forEach(wW)}function qG($,Z){$.blockedOn===Z&&($.blockedOn=null,nN||(nN=!0,G1.unstable_scheduleCallback(G1.unstable_NormalPriority,nT)))}function RW($){H3!==$&&(H3=$,G1.unstable_scheduleCallback(G1.unstable_NormalPriority,function(){H3===$&&(H3=null);for(var Z=0;Z<$.length;Z+=3){var Q=$[Z],Y=$[Z+1],U=$[Z+2];if(typeof Y!=="function")if(_X(Y||Q)===null)continue;else break;var B=j0(Q);B!==null&&($.splice(Z,3),Z-=3,Q={pending:!0,data:U,method:Q.method,action:Y},Object.freeze(Q),_Y(B,Q,Y,U))}}))}function _9($){function Z(L){return qG(L,$)}R2!==null&&qG(R2,$),_2!==null&&qG(_2,$),L2!==null&&qG(L2,$),tZ.forEach(Z),eZ.forEach(Z);for(var Q=0;Q<P2.length;Q++){var Y=P2[Q];Y.blockedOn===$&&(Y.blockedOn=null)}for(;0<P2.length&&(Q=P2[0],Q.blockedOn===null);)MW(Q),Q.blockedOn===null&&P2.shift();if(Q=($.ownerDocument||$).$$reactFormReplay,Q!=null)for(Y=0;Y<Q.length;Y+=3){var U=Q[Y],B=Q[Y+1],z=U[g5]||null;if(typeof B==="function")z||RW(Q);else if(z){var w=null;if(B&&B.hasAttribute("formAction")){if(U=B,z=B[g5]||null)w=z.formAction;else if(_X(U)!==null)continue}else w=z.action;typeof w==="function"?Q[Y+1]=w:(Q.splice(Y,3),Y-=3),RW(Q)}}}function _W(){function $(B){B.canIntercept&&B.info==="react-transition"&&B.intercept({handler:function(){return new Promise(function(z){return U=z})},focusReset:"manual",scroll:"manual"})}function Z(){U!==null&&(U(),U=null),Y||setTimeout(Q,20)}function Q(){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(Q,100),function(){Y=!0,navigation.removeEventListener("navigate",$),navigation.removeEventListener("navigatesuccess",Z),navigation.removeEventListener("navigateerror",Z),U!==null&&(U(),U=null)}}}function LX($){this._internalRoot=$}function YG($){this._internalRoot=$}function LW($){$[i8]&&($._reactRootContainer?console.error("You are calling ReactDOMClient.createRoot() on a container that was previously passed to ReactDOM.render(). This is not supported."):console.error("You are calling ReactDOMClient.createRoot() on a container that has already been passed to createRoot() before. Instead, call root.render() on the existing root instead if you want to update it."))}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart==="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var l0=Object.assign,oT=Symbol.for("react.element"),E4=Symbol.for("react.transitional.element"),L9=Symbol.for("react.portal"),P9=Symbol.for("react.fragment"),XG=Symbol.for("react.strict_mode"),PX=Symbol.for("react.profiler"),TX=Symbol.for("react.consumer"),S4=Symbol.for("react.context"),qZ=Symbol.for("react.forward_ref"),CX=Symbol.for("react.suspense"),OX=Symbol.for("react.suspense_list"),NG=Symbol.for("react.memo"),R6=Symbol.for("react.lazy"),IX=Symbol.for("react.activity"),aT=Symbol.for("react.memo_cache_sentinel"),PW=Symbol.iterator,iT=Symbol.for("react.client.reference"),G5=Array.isArray,x=W$.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,U1=GK.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,tT=Object.freeze({pending:!1,data:null,method:null,action:null}),VX=[],AX=[],Q8=-1,n8=H0(null),YZ=H0(null),o8=H0(null),UG=H0(null),XZ=0,TW,CW,OW,IW,VW,AW,EW;k.__reactDisabledLog=!0;var EX,SW,SX=!1,DX=new(typeof WeakMap==="function"?WeakMap:Map),_6=null,D4=!1,Z4=Object.prototype.hasOwnProperty,jX=G1.unstable_scheduleCallback,eT=G1.unstable_cancelCallback,$C=G1.unstable_shouldYield,ZC=G1.unstable_requestPaint,B5=G1.unstable_now,JC=G1.unstable_getCurrentPriorityLevel,kX=G1.unstable_ImmediatePriority,vX=G1.unstable_UserBlockingPriority,T9=G1.unstable_NormalPriority,QC=G1.unstable_LowPriority,bX=G1.unstable_IdlePriority,GC=G1.log,qC=G1.unstable_setDisableYieldValue,C9=null,S5=null,j4=!1,k4=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u",y5=Math.clz32?Math.clz32:iJ,YC=Math.log,XC=Math.LN2,KG=256,BG=262144,HG=4194304,L6=2,J4=8,v4=32,FG=268435456,a8=Math.random().toString(36).slice(2),_5="__reactFiber$"+a8,g5="__reactProps$"+a8,i8="__reactContainer$"+a8,fX="__reactEvents$"+a8,NC="__reactListeners$"+a8,UC="__reactHandles$"+a8,DW="__reactResources$"+a8,NZ="__reactMarker$"+a8,jW=new Set,U7={},yX={},KC={button:!0,checkbox:!0,image:!0,hidden:!0,radio:!0,reset:!0,submit:!0},BC=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]*$"),kW={},vW={},HC=/[\n"\\]/g,bW=!1,fW=!1,yW=!1,gW=!1,hW=!1,uW=!1,xW=["value","defaultValue"],mW=!1,dW=/["'&<>\n\t]|^\s|\s$/,FC="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(" "),pW="applet caption html table td th marquee object template foreignObject desc title".split(" "),WC=pW.concat(["button"]),zC="dd dt li option optgroup p rp rt".split(" "),cW={current:null,formTag:null,aTagInScope:null,buttonTagInScope:null,nobrTagInScope:null,pTagInButtonScope:null,listItemTagAutoclosing:null,dlItemTagAutoclosing:null,containerTagInScope:null,implicitRootScope:!1},WG={},gX={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"]},lW=/([A-Z])/g,rW=/^ms-/,MC=/^(?:webkit|moz|o)[A-Z]/,wC=/^-ms-/,RC=/-(.)/g,sW=/;\s*$/,O9={},hX={},nW=!1,oW=!1,aW=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(" ")),zG="http://www.w3.org/1998/Math/MathML",I9="http://www.w3.org/2000/svg",_C=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"]]),MG={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"},iW={"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},V9={},LC=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]*$"),PC=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]*$"),tW=!1,h5={},eW=/^on./,TC=/^on[^A-Z]/,CC=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]*$"),OC=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]*$"),IC=/^[\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,UZ=null,A9=null,E9=null,uX=!1,b4=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),xX=!1;if(b4)try{var KZ={};Object.defineProperty(KZ,"passive",{get:function(){xX=!0}}),window.addEventListener("test",KZ,KZ),window.removeEventListener("test",KZ,KZ)}catch($){xX=!1}var t8=null,mX=null,wG=null,K7={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function($){return $.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},RG=c5(K7),BZ=l0({},K7,{view:0,detail:0}),VC=c5(BZ),dX,pX,HZ,_G=l0({},BZ,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Iq,button:0,buttons:0,relatedTarget:function($){return $.relatedTarget===void 0?$.fromElement===$.srcElement?$.toElement:$.fromElement:$.relatedTarget},movementX:function($){if("movementX"in $)return $.movementX;return $!==HZ&&(HZ&&$.type==="mousemove"?(dX=$.screenX-HZ.screenX,pX=$.screenY-HZ.screenY):pX=dX=0,HZ=$),dX},movementY:function($){return"movementY"in $?$.movementY:pX}}),$z=c5(_G),AC=l0({},_G,{dataTransfer:0}),EC=c5(AC),SC=l0({},BZ,{relatedTarget:0}),cX=c5(SC),DC=l0({},K7,{animationName:0,elapsedTime:0,pseudoElement:0}),jC=c5(DC),kC=l0({},K7,{clipboardData:function($){return"clipboardData"in $?$.clipboardData:window.clipboardData}}),vC=c5(kC),bC=l0({},K7,{data:0}),Zz=c5(bC),fC=Zz,yC={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},gC={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"},hC={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"},uC=l0({},BZ,{key:function($){if($.key){var Z=yC[$.key]||$.key;if(Z!=="Unidentified")return Z}return $.type==="keypress"?($=GQ($),$===13?"Enter":String.fromCharCode($)):$.type==="keydown"||$.type==="keyup"?gC[$.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Iq,charCode:function($){return $.type==="keypress"?GQ($):0},keyCode:function($){return $.type==="keydown"||$.type==="keyup"?$.keyCode:0},which:function($){return $.type==="keypress"?GQ($):$.type==="keydown"||$.type==="keyup"?$.keyCode:0}}),xC=c5(uC),mC=l0({},_G,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Jz=c5(mC),dC=l0({},BZ,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Iq}),pC=c5(dC),cC=l0({},K7,{propertyName:0,elapsedTime:0,pseudoElement:0}),lC=c5(cC),rC=l0({},_G,{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}),sC=c5(rC),nC=l0({},K7,{newState:0,oldState:0}),oC=c5(nC),aC=[9,13,27,32],Qz=229,lX=b4&&"CompositionEvent"in window,FZ=null;b4&&"documentMode"in document&&(FZ=document.documentMode);var iC=b4&&"TextEvent"in window&&!FZ,Gz=b4&&(!lX||FZ&&8<FZ&&11>=FZ),qz=32,Yz=String.fromCharCode(qz),Xz=!1,S9=!1,tC={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},WZ=null,zZ=null,Nz=!1;b4&&(Nz=_P("input")&&(!document.documentMode||9<document.documentMode));var u5=typeof Object.is==="function"?Object.is:IP,eC=b4&&"documentMode"in document&&11>=document.documentMode,D9=null,rX=null,MZ=null,sX=!1,j9={animationend:o2("Animation","AnimationEnd"),animationiteration:o2("Animation","AnimationIteration"),animationstart:o2("Animation","AnimationStart"),transitionrun:o2("Transition","TransitionRun"),transitionstart:o2("Transition","TransitionStart"),transitioncancel:o2("Transition","TransitionCancel"),transitionend:o2("Transition","TransitionEnd")},nX={},Uz={};b4&&(Uz=document.createElement("div").style,("AnimationEvent"in window)||(delete j9.animationend.animation,delete j9.animationiteration.animation,delete j9.animationstart.animation),("TransitionEvent"in window)||delete j9.transitionend.transition);var Kz=a2("animationend"),Bz=a2("animationiteration"),Hz=a2("animationstart"),$O=a2("transitionrun"),ZO=a2("transitionstart"),JO=a2("transitioncancel"),Fz=a2("transitionend"),Wz=new Map,oX="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(" ");oX.push("scrollEnd");var zz=0;if(typeof performance==="object"&&typeof performance.now==="function")var QO=performance,Mz=function(){return QO.now()};else{var GO=Date;Mz=function(){return GO.now()}}var aX=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($)},qO="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.",LG=0,iX=1,tX=2,eX=3,PG="– ",TG="+ ",wz=" ",I1=typeof console<"u"&&typeof console.timeStamp==="function"&&typeof performance<"u"&&typeof performance.measure==="function",j6="Components ⚛",r0="Scheduler ⚛",o0="Blocking",e8=!1,G8={color:"primary",properties:null,tooltipText:"",track:j6},$2={start:-0,end:-0,detail:{devtools:G8}},YO=["Changed Props",""],Rz="This component received deeply equal props. It might benefit from useMemo or the React Compiler in its owner.",XO=["Changed Props",Rz],wZ=1,q8=2,k6=[],k9=0,$N=0,Z2={};Object.freeze(Z2);var v6=null,v9=null,V0=0,NO=1,g0=2,D5=8,Q4=16,UO=32,_z=!1;try{var Lz=Object.preventExtensions({})}catch($){_z=!0}var ZN=new WeakMap,b9=[],f9=0,CG=null,RZ=0,b6=[],f6=0,B7=null,Y8=1,X8="",L5=null,V1=null,i0=!1,f4=!1,P6=null,J2=null,y6=!1,JN=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."),QN=H0(null),GN=H0(null),Pz={},OG=null,y9=null,g9=!1,KO=typeof AbortController<"u"?AbortController:function(){var $=[],Z=this.signal={aborted:!1,addEventListener:function(Q,Y){$.push(Y)}};this.abort=function(){Z.aborted=!0,$.forEach(function(Q){return Q()})}},BO=G1.unstable_scheduleCallback,HO=G1.unstable_NormalPriority,a1={$$typeof:S4,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0,_currentRenderer:null,_currentRenderer2:null},i1=G1.unstable_now,IG=console.createTask?console.createTask:function(){return null},_Z=1,VG=2,H5=-0,Q2=-0,N8=-0,U8=null,x5=-1.1,H7=-0,k1=-0,L0=-1.1,T0=-1.1,j1=null,g1=!1,G2=-0,y4=-1.1,LZ=null,q2=0,qN=null,YN=null,F7=-1.1,PZ=null,h9=-1.1,AG=-1.1,g4=-0,K8=-1.1,g6=-1.1,XN=0,TZ=null,Tz=null,Cz=null,Y2=-1.1,W7=null,X2=-1.1,EG=-1.1,Oz=-0,Iz=-0,SG=0,B8=null,Vz=0,CZ=-1.1,DG=!1,jG=!1,OZ=null,NN=0,z7=0,u9=null,Az=x.S;x.S=function($,Z){if(TM=B5(),typeof Z==="object"&&Z!==null&&typeof Z.then==="function"){if(0>K8&&0>g6){K8=i1();var Q=$Z(),Y=e$();if(Q!==X2||Y!==W7)X2=-1.1;Y2=Q,W7=Y}kP($,Z)}Az!==null&&Az($,Z)};var M7=H0(null),G4={recordUnsafeLifecycleWarnings:function(){},flushPendingUnsafeLifecycleWarnings:function(){},recordLegacyContextWarning:function(){},flushLegacyContextWarning:function(){},discardPendingWarnings:function(){}},IZ=[],VZ=[],AZ=[],EZ=[],SZ=[],DZ=[],w7=new Set;G4.recordUnsafeLifecycleWarnings=function($,Z){w7.has($.type)||(typeof Z.componentWillMount==="function"&&Z.componentWillMount.__suppressDeprecationWarning!==!0&&IZ.push($),$.mode&D5&&typeof Z.UNSAFE_componentWillMount==="function"&&VZ.push($),typeof Z.componentWillReceiveProps==="function"&&Z.componentWillReceiveProps.__suppressDeprecationWarning!==!0&&AZ.push($),$.mode&D5&&typeof Z.UNSAFE_componentWillReceiveProps==="function"&&EZ.push($),typeof Z.componentWillUpdate==="function"&&Z.componentWillUpdate.__suppressDeprecationWarning!==!0&&SZ.push($),$.mode&D5&&typeof Z.UNSAFE_componentWillUpdate==="function"&&DZ.push($))},G4.flushPendingUnsafeLifecycleWarnings=function(){var $=new Set;0<IZ.length&&(IZ.forEach(function(w){$.add(d(w)||"Component"),w7.add(w.type)}),IZ=[]);var Z=new Set;0<VZ.length&&(VZ.forEach(function(w){Z.add(d(w)||"Component"),w7.add(w.type)}),VZ=[]);var Q=new Set;0<AZ.length&&(AZ.forEach(function(w){Q.add(d(w)||"Component"),w7.add(w.type)}),AZ=[]);var Y=new Set;0<EZ.length&&(EZ.forEach(function(w){Y.add(d(w)||"Component"),w7.add(w.type)}),EZ=[]);var U=new Set;0<SZ.length&&(SZ.forEach(function(w){U.add(d(w)||"Component"),w7.add(w.type)}),SZ=[]);var B=new Set;if(0<DZ.length&&(DZ.forEach(function(w){B.add(d(w)||"Component"),w7.add(w.type)}),DZ=[]),0<Z.size){var z=_(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(_6)||"Unknown")),Y=x8(Z),Y.payload={element:Q},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),Q=m8($,Y,Z),Q!==null&&(z4(Z,"root.render()",null),y1(Q,$,Z),h$(Q,$,Z))}function BW($,Z){if($=$.memoizedState,$!==null&&$.dehydrated!==null){var Q=$.retryLane;$.retryLane=Q!==0&&Q<Z?Q:Z}}function MX($,Z){BW($,Z),($=$.alternate)&&BW($,Z)}function HW($){if($.tag===13||$.tag===31){var Z=E5($,67108864);Z!==null&&y1(Z,$,67108864),MX($,67108864)}}function FW($){if($.tag===13||$.tag===31){var Z=M6($);Z=n2(Z);var Q=E5($,Z);Q!==null&&y1(Q,$,Z),MX($,Z)}}function cT(){return _6}function lT($,Z,Q,Y){var U=x.T;x.T=null;var B=U1.p;try{U1.p=L6,wX($,Z,Q,Y)}finally{U1.p=B,x.T=U}}function rT($,Z,Q,Y){var U=x.T;x.T=null;var B=U1.p;try{U1.p=J4,wX($,Z,Q,Y)}finally{U1.p=B,x.T=U}}function wX($,Z,Q,Y){if(K3){var U=RX(Y);if(U===null)JX($,Z,Y,B3,Q),zW($,Y);else if(sT(U,$,Z,Q,Y))Y.stopPropagation();else if(zW($,Y),Z&4&&-1<uO.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 z=B4(B.pendingLanes);if(z!==0){var w=B;w.pendingLanes|=2;for(w.entangledLanes|=2;z;){var L=1<<31-y5(z);w.entanglements[1]|=L,z&=~L}V4(B),(Z1&(Y5|O6))===W5&&(sG=B5()+OM,t$(0,!1))}}break;case 31:case 13:w=E5(B,2),w!==null&&y1(w,B,2),z9(),MX(B,2)}if(B=RX(Y),B===null&&JX($,Z,Y,B3,Q),B===U)break;U=B}U!==null&&Y.stopPropagation()}else JX($,Z,Y,null,Q)}}function RX($){return $=Oq($),_X($)}function _X($){if(B3=null,$=N0($),$!==null){var Z=j($);if(Z===null)$=null;else{var Q=Z.tag;if(Q===13){if($=h(Z),$!==null)return $;$=null}else if(Q===31){if($=p(Z),$!==null)return $;$=null}else if(Q===3){if(Z.stateNode.current.memoizedState.isDehydrated)return Z.tag===3?Z.stateNode.containerInfo:null;$=null}else Z!==$&&($=null)}}return B3=$,null}function WW($){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 L6;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 J4;case"message":switch(JC()){case kX:return L6;case vX:return J4;case C9:case QC:return v4;case bX:return FG;default:return v4}default:return v4}}function zW($,Z){switch($){case"focusin":case"focusout":R2=null;break;case"dragenter":case"dragleave":_2=null;break;case"mouseover":case"mouseout":L2=null;break;case"pointerover":case"pointerout":eZ.delete(Z.pointerId);break;case"gotpointercapture":case"lostpointercapture":$J.delete(Z.pointerId)}}function qZ($,Z,Q,Y,U,B){if($===null||$.nativeEvent!==B)return $={blockedOn:Z,domEventName:Q,eventSystemFlags:Y,nativeEvent:B,targetContainers:[U]},Z!==null&&(Z=j0(Z),Z!==null&&HW(Z)),$;return $.eventSystemFlags|=Y,Z=$.targetContainers,U!==null&&Z.indexOf(U)===-1&&Z.push(U),$}function sT($,Z,Q,Y,U){switch(Z){case"focusin":return R2=qZ(R2,$,Z,Q,Y,U),!0;case"dragenter":return _2=qZ(_2,$,Z,Q,Y,U),!0;case"mouseover":return L2=qZ(L2,$,Z,Q,Y,U),!0;case"pointerover":var B=U.pointerId;return eZ.set(B,qZ(eZ.get(B)||null,$,Z,Q,Y,U)),!0;case"gotpointercapture":return B=U.pointerId,$J.set(B,qZ($J.get(B)||null,$,Z,Q,Y,U)),!0}return!1}function MW($){var Z=N0($.target);if(Z!==null){var Q=j(Z);if(Q!==null){if(Z=Q.tag,Z===13){if(Z=h(Q),Z!==null){$.blockedOn=Z,r($.priority,function(){FW(Q)});return}}else if(Z===31){if(Z=p(Q),Z!==null){$.blockedOn=Z,r($.priority,function(){FW(Q)});return}}else if(Z===3&&Q.stateNode.current.memoizedState.isDehydrated){$.blockedOn=Q.tag===3?Q.stateNode.containerInfo:null;return}}}$.blockedOn=null}function GG($){if($.blockedOn!==null)return!1;for(var Z=$.targetContainers;0<Z.length;){var Q=RX($.nativeEvent);if(Q===null){Q=$.nativeEvent;var Y=new Q.constructor(Q.type,Q),U=Y;KZ!==null&&console.error("Expected currently replaying event to be null. This error is likely caused by a bug in React. Please file an issue."),KZ=U,Q.target.dispatchEvent(Y),KZ===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."),KZ=null}else return Z=j0(Q),Z!==null&&HW(Z),$.blockedOn=Q,!1;Z.shift()}return!0}function wW($,Z,Q){GG($)&&Q.delete(Z)}function nT(){nN=!1,R2!==null&&GG(R2)&&(R2=null),_2!==null&&GG(_2)&&(_2=null),L2!==null&&GG(L2)&&(L2=null),eZ.forEach(wW),$J.forEach(wW)}function qG($,Z){$.blockedOn===Z&&($.blockedOn=null,nN||(nN=!0,G1.unstable_scheduleCallback(G1.unstable_NormalPriority,nT)))}function RW($){H3!==$&&(H3=$,G1.unstable_scheduleCallback(G1.unstable_NormalPriority,function(){H3===$&&(H3=null);for(var Z=0;Z<$.length;Z+=3){var Q=$[Z],Y=$[Z+1],U=$[Z+2];if(typeof Y!=="function")if(_X(Y||Q)===null)continue;else break;var B=j0(Q);B!==null&&($.splice(Z,3),Z-=3,Q={pending:!0,data:U,method:Q.method,action:Y},Object.freeze(Q),_Y(B,Q,Y,U))}}))}function L9($){function Z(L){return qG(L,$)}R2!==null&&qG(R2,$),_2!==null&&qG(_2,$),L2!==null&&qG(L2,$),eZ.forEach(Z),$J.forEach(Z);for(var Q=0;Q<P2.length;Q++){var Y=P2[Q];Y.blockedOn===$&&(Y.blockedOn=null)}for(;0<P2.length&&(Q=P2[0],Q.blockedOn===null);)MW(Q),Q.blockedOn===null&&P2.shift();if(Q=($.ownerDocument||$).$$reactFormReplay,Q!=null)for(Y=0;Y<Q.length;Y+=3){var U=Q[Y],B=Q[Y+1],z=U[g5]||null;if(typeof B==="function")z||RW(Q);else if(z){var w=null;if(B&&B.hasAttribute("formAction")){if(U=B,z=B[g5]||null)w=z.formAction;else if(_X(U)!==null)continue}else w=z.action;typeof w==="function"?Q[Y+1]=w:(Q.splice(Y,3),Y-=3),RW(Q)}}}function _W(){function $(B){B.canIntercept&&B.info==="react-transition"&&B.intercept({handler:function(){return new Promise(function(z){return U=z})},focusReset:"manual",scroll:"manual"})}function Z(){U!==null&&(U(),U=null),Y||setTimeout(Q,20)}function Q(){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(Q,100),function(){Y=!0,navigation.removeEventListener("navigate",$),navigation.removeEventListener("navigatesuccess",Z),navigation.removeEventListener("navigateerror",Z),U!==null&&(U(),U=null)}}}function LX($){this._internalRoot=$}function YG($){this._internalRoot=$}function LW($){$[i8]&&($._reactRootContainer?console.error("You are calling ReactDOMClient.createRoot() on a container that was previously passed to ReactDOM.render(). This is not supported."):console.error("You are calling ReactDOMClient.createRoot() on a container that has already been passed to createRoot() before. Instead, call root.render() on the existing root instead if you want to update it."))}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart==="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var l0=Object.assign,oT=Symbol.for("react.element"),E4=Symbol.for("react.transitional.element"),P9=Symbol.for("react.portal"),T9=Symbol.for("react.fragment"),XG=Symbol.for("react.strict_mode"),PX=Symbol.for("react.profiler"),TX=Symbol.for("react.consumer"),S4=Symbol.for("react.context"),YZ=Symbol.for("react.forward_ref"),CX=Symbol.for("react.suspense"),OX=Symbol.for("react.suspense_list"),NG=Symbol.for("react.memo"),R6=Symbol.for("react.lazy"),IX=Symbol.for("react.activity"),aT=Symbol.for("react.memo_cache_sentinel"),PW=Symbol.iterator,iT=Symbol.for("react.client.reference"),G5=Array.isArray,x=z$.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,U1=GK.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,tT=Object.freeze({pending:!1,data:null,method:null,action:null}),VX=[],AX=[],Q8=-1,n8=H0(null),XZ=H0(null),o8=H0(null),UG=H0(null),NZ=0,TW,CW,OW,IW,VW,AW,EW;k.__reactDisabledLog=!0;var EX,SW,SX=!1,DX=new(typeof WeakMap==="function"?WeakMap:Map),_6=null,D4=!1,Z4=Object.prototype.hasOwnProperty,jX=G1.unstable_scheduleCallback,eT=G1.unstable_cancelCallback,$C=G1.unstable_shouldYield,ZC=G1.unstable_requestPaint,B5=G1.unstable_now,JC=G1.unstable_getCurrentPriorityLevel,kX=G1.unstable_ImmediatePriority,vX=G1.unstable_UserBlockingPriority,C9=G1.unstable_NormalPriority,QC=G1.unstable_LowPriority,bX=G1.unstable_IdlePriority,GC=G1.log,qC=G1.unstable_setDisableYieldValue,O9=null,S5=null,j4=!1,k4=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u",y5=Math.clz32?Math.clz32:iJ,YC=Math.log,XC=Math.LN2,KG=256,BG=262144,HG=4194304,L6=2,J4=8,v4=32,FG=268435456,a8=Math.random().toString(36).slice(2),_5="__reactFiber$"+a8,g5="__reactProps$"+a8,i8="__reactContainer$"+a8,fX="__reactEvents$"+a8,NC="__reactListeners$"+a8,UC="__reactHandles$"+a8,DW="__reactResources$"+a8,UZ="__reactMarker$"+a8,jW=new Set,K7={},yX={},KC={button:!0,checkbox:!0,image:!0,hidden:!0,radio:!0,reset:!0,submit:!0},BC=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]*$"),kW={},vW={},HC=/[\n"\\]/g,bW=!1,fW=!1,yW=!1,gW=!1,hW=!1,uW=!1,xW=["value","defaultValue"],mW=!1,dW=/["'&<>\n\t]|^\s|\s$/,FC="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(" "),pW="applet caption html table td th marquee object template foreignObject desc title".split(" "),WC=pW.concat(["button"]),zC="dd dt li option optgroup p rp rt".split(" "),cW={current:null,formTag:null,aTagInScope:null,buttonTagInScope:null,nobrTagInScope:null,pTagInButtonScope:null,listItemTagAutoclosing:null,dlItemTagAutoclosing:null,containerTagInScope:null,implicitRootScope:!1},WG={},gX={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"]},lW=/([A-Z])/g,rW=/^ms-/,MC=/^(?:webkit|moz|o)[A-Z]/,wC=/^-ms-/,RC=/-(.)/g,sW=/;\s*$/,I9={},hX={},nW=!1,oW=!1,aW=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(" ")),zG="http://www.w3.org/1998/Math/MathML",V9="http://www.w3.org/2000/svg",_C=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"]]),MG={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"},iW={"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},A9={},LC=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]*$"),PC=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]*$"),tW=!1,h5={},eW=/^on./,TC=/^on[^A-Z]/,CC=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]*$"),OC=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]*$"),IC=/^[\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,KZ=null,E9=null,S9=null,uX=!1,b4=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),xX=!1;if(b4)try{var BZ={};Object.defineProperty(BZ,"passive",{get:function(){xX=!0}}),window.addEventListener("test",BZ,BZ),window.removeEventListener("test",BZ,BZ)}catch($){xX=!1}var t8=null,mX=null,wG=null,B7={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function($){return $.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},RG=c5(B7),HZ=l0({},B7,{view:0,detail:0}),VC=c5(HZ),dX,pX,FZ,_G=l0({},HZ,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Iq,button:0,buttons:0,relatedTarget:function($){return $.relatedTarget===void 0?$.fromElement===$.srcElement?$.toElement:$.fromElement:$.relatedTarget},movementX:function($){if("movementX"in $)return $.movementX;return $!==FZ&&(FZ&&$.type==="mousemove"?(dX=$.screenX-FZ.screenX,pX=$.screenY-FZ.screenY):pX=dX=0,FZ=$),dX},movementY:function($){return"movementY"in $?$.movementY:pX}}),$z=c5(_G),AC=l0({},_G,{dataTransfer:0}),EC=c5(AC),SC=l0({},HZ,{relatedTarget:0}),cX=c5(SC),DC=l0({},B7,{animationName:0,elapsedTime:0,pseudoElement:0}),jC=c5(DC),kC=l0({},B7,{clipboardData:function($){return"clipboardData"in $?$.clipboardData:window.clipboardData}}),vC=c5(kC),bC=l0({},B7,{data:0}),Zz=c5(bC),fC=Zz,yC={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},gC={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"},hC={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"},uC=l0({},HZ,{key:function($){if($.key){var Z=yC[$.key]||$.key;if(Z!=="Unidentified")return Z}return $.type==="keypress"?($=GQ($),$===13?"Enter":String.fromCharCode($)):$.type==="keydown"||$.type==="keyup"?gC[$.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Iq,charCode:function($){return $.type==="keypress"?GQ($):0},keyCode:function($){return $.type==="keydown"||$.type==="keyup"?$.keyCode:0},which:function($){return $.type==="keypress"?GQ($):$.type==="keydown"||$.type==="keyup"?$.keyCode:0}}),xC=c5(uC),mC=l0({},_G,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Jz=c5(mC),dC=l0({},HZ,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Iq}),pC=c5(dC),cC=l0({},B7,{propertyName:0,elapsedTime:0,pseudoElement:0}),lC=c5(cC),rC=l0({},_G,{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}),sC=c5(rC),nC=l0({},B7,{newState:0,oldState:0}),oC=c5(nC),aC=[9,13,27,32],Qz=229,lX=b4&&"CompositionEvent"in window,WZ=null;b4&&"documentMode"in document&&(WZ=document.documentMode);var iC=b4&&"TextEvent"in window&&!WZ,Gz=b4&&(!lX||WZ&&8<WZ&&11>=WZ),qz=32,Yz=String.fromCharCode(qz),Xz=!1,D9=!1,tC={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,MZ=null,Nz=!1;b4&&(Nz=_P("input")&&(!document.documentMode||9<document.documentMode));var u5=typeof Object.is==="function"?Object.is:IP,eC=b4&&"documentMode"in document&&11>=document.documentMode,j9=null,rX=null,wZ=null,sX=!1,k9={animationend:a2("Animation","AnimationEnd"),animationiteration:a2("Animation","AnimationIteration"),animationstart:a2("Animation","AnimationStart"),transitionrun:a2("Transition","TransitionRun"),transitionstart:a2("Transition","TransitionStart"),transitioncancel:a2("Transition","TransitionCancel"),transitionend:a2("Transition","TransitionEnd")},nX={},Uz={};b4&&(Uz=document.createElement("div").style,("AnimationEvent"in window)||(delete k9.animationend.animation,delete k9.animationiteration.animation,delete k9.animationstart.animation),("TransitionEvent"in window)||delete k9.transitionend.transition);var Kz=i2("animationend"),Bz=i2("animationiteration"),Hz=i2("animationstart"),$O=i2("transitionrun"),ZO=i2("transitionstart"),JO=i2("transitioncancel"),Fz=i2("transitionend"),Wz=new Map,oX="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(" ");oX.push("scrollEnd");var zz=0;if(typeof performance==="object"&&typeof performance.now==="function")var QO=performance,Mz=function(){return QO.now()};else{var GO=Date;Mz=function(){return GO.now()}}var aX=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($)},qO="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.",LG=0,iX=1,tX=2,eX=3,PG="– ",TG="+ ",wz=" ",I1=typeof console<"u"&&typeof console.timeStamp==="function"&&typeof performance<"u"&&typeof performance.measure==="function",j6="Components ⚛",r0="Scheduler ⚛",o0="Blocking",e8=!1,G8={color:"primary",properties:null,tooltipText:"",track:j6},$2={start:-0,end:-0,detail:{devtools:G8}},YO=["Changed Props",""],Rz="This component received deeply equal props. It might benefit from useMemo or the React Compiler in its owner.",XO=["Changed Props",Rz],RZ=1,q8=2,k6=[],v9=0,$N=0,Z2={};Object.freeze(Z2);var v6=null,b9=null,V0=0,NO=1,g0=2,D5=8,Q4=16,UO=32,_z=!1;try{var Lz=Object.preventExtensions({})}catch($){_z=!0}var ZN=new WeakMap,f9=[],y9=0,CG=null,_Z=0,b6=[],f6=0,H7=null,Y8=1,X8="",L5=null,V1=null,i0=!1,f4=!1,P6=null,J2=null,y6=!1,JN=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."),QN=H0(null),GN=H0(null),Pz={},OG=null,g9=null,h9=!1,KO=typeof AbortController<"u"?AbortController:function(){var $=[],Z=this.signal={aborted:!1,addEventListener:function(Q,Y){$.push(Y)}};this.abort=function(){Z.aborted=!0,$.forEach(function(Q){return Q()})}},BO=G1.unstable_scheduleCallback,HO=G1.unstable_NormalPriority,a1={$$typeof:S4,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0,_currentRenderer:null,_currentRenderer2:null},i1=G1.unstable_now,IG=console.createTask?console.createTask:function(){return null},LZ=1,VG=2,H5=-0,Q2=-0,N8=-0,U8=null,x5=-1.1,F7=-0,k1=-0,L0=-1.1,T0=-1.1,j1=null,g1=!1,G2=-0,y4=-1.1,PZ=null,q2=0,qN=null,YN=null,W7=-1.1,TZ=null,u9=-1.1,AG=-1.1,g4=-0,K8=-1.1,g6=-1.1,XN=0,CZ=null,Tz=null,Cz=null,Y2=-1.1,z7=null,X2=-1.1,EG=-1.1,Oz=-0,Iz=-0,SG=0,B8=null,Vz=0,OZ=-1.1,DG=!1,jG=!1,IZ=null,NN=0,M7=0,x9=null,Az=x.S;x.S=function($,Z){if(TM=B5(),typeof Z==="object"&&Z!==null&&typeof Z.then==="function"){if(0>K8&&0>g6){K8=i1();var Q=ZZ(),Y=$Z();if(Q!==X2||Y!==z7)X2=-1.1;Y2=Q,z7=Y}kP($,Z)}Az!==null&&Az($,Z)};var w7=H0(null),G4={recordUnsafeLifecycleWarnings:function(){},flushPendingUnsafeLifecycleWarnings:function(){},recordLegacyContextWarning:function(){},flushLegacyContextWarning:function(){},discardPendingWarnings:function(){}},VZ=[],AZ=[],EZ=[],SZ=[],DZ=[],jZ=[],R7=new Set;G4.recordUnsafeLifecycleWarnings=function($,Z){R7.has($.type)||(typeof Z.componentWillMount==="function"&&Z.componentWillMount.__suppressDeprecationWarning!==!0&&VZ.push($),$.mode&D5&&typeof Z.UNSAFE_componentWillMount==="function"&&AZ.push($),typeof Z.componentWillReceiveProps==="function"&&Z.componentWillReceiveProps.__suppressDeprecationWarning!==!0&&EZ.push($),$.mode&D5&&typeof Z.UNSAFE_componentWillReceiveProps==="function"&&SZ.push($),typeof Z.componentWillUpdate==="function"&&Z.componentWillUpdate.__suppressDeprecationWarning!==!0&&DZ.push($),$.mode&D5&&typeof Z.UNSAFE_componentWillUpdate==="function"&&jZ.push($))},G4.flushPendingUnsafeLifecycleWarnings=function(){var $=new Set;0<VZ.length&&(VZ.forEach(function(w){$.add(d(w)||"Component"),R7.add(w.type)}),VZ=[]);var Z=new Set;0<AZ.length&&(AZ.forEach(function(w){Z.add(d(w)||"Component"),R7.add(w.type)}),AZ=[]);var Q=new Set;0<EZ.length&&(EZ.forEach(function(w){Q.add(d(w)||"Component"),R7.add(w.type)}),EZ=[]);var Y=new Set;0<SZ.length&&(SZ.forEach(function(w){Y.add(d(w)||"Component"),R7.add(w.type)}),SZ=[]);var U=new Set;0<DZ.length&&(DZ.forEach(function(w){U.add(d(w)||"Component"),R7.add(w.type)}),DZ=[]);var B=new Set;if(0<jZ.length&&(jZ.forEach(function(w){B.add(d(w)||"Component"),R7.add(w.type)}),jZ=[]),0<Z.size){var z=_(Z);console.error(`Using UNSAFE_componentWillMount in strict mode is not recommended and may indicate bugs in your code. See https://react.dev/link/unsafe-component-lifecycles for details.
|
|
185
185
|
|
|
186
186
|
* Move code with side effects to componentDidMount, and set initial state in the constructor.
|
|
187
187
|
|
|
@@ -216,42 +216,42 @@ The old API will be supported in all 16.x releases, but applications using it sh
|
|
|
216
216
|
|
|
217
217
|
Please update the following components: %s
|
|
218
218
|
|
|
219
|
-
Learn more about this warning here: https://react.dev/link/legacy-context`,Y)})}})},G4.discardPendingWarnings=function(){
|
|
219
|
+
Learn more about this warning here: https://react.dev/link/legacy-context`,Y)})}})},G4.discardPendingWarnings=function(){VZ=[],AZ=[],EZ=[],SZ=[],DZ=[],jZ=[],kG=new Map};var Sz={react_stack_bottom_frame:function($,Z,Q){var Y=D4;D4=!0;try{return $(Z,Q)}finally{D4=Y}}},UN=Sz.react_stack_bottom_frame.bind(Sz),Dz={react_stack_bottom_frame:function($){var Z=D4;D4=!0;try{return $.render()}finally{D4=Z}}},jz=Dz.react_stack_bottom_frame.bind(Dz),kz={react_stack_bottom_frame:function($,Z){try{Z.componentDidMount()}catch(Q){N1($,$.return,Q)}}},KN=kz.react_stack_bottom_frame.bind(kz),vz={react_stack_bottom_frame:function($,Z,Q,Y,U){try{Z.componentDidUpdate(Q,Y,U)}catch(B){N1($,$.return,B)}}},bz=vz.react_stack_bottom_frame.bind(vz),fz={react_stack_bottom_frame:function($,Z){var Q=Z.stack;$.componentDidCatch(Z.value,{componentStack:Q!==null?Q:""})}},FO=fz.react_stack_bottom_frame.bind(fz),yz={react_stack_bottom_frame:function($,Z,Q){try{Q.componentWillUnmount()}catch(Y){N1($,Z,Y)}}},gz=yz.react_stack_bottom_frame.bind(yz),hz={react_stack_bottom_frame:function($){var Z=$.create;return $=$.inst,Z=Z(),$.destroy=Z}},WO=hz.react_stack_bottom_frame.bind(hz),uz={react_stack_bottom_frame:function($,Z,Q){try{Q()}catch(Y){N1($,Z,Y)}}},zO=uz.react_stack_bottom_frame.bind(uz),xz={react_stack_bottom_frame:function($){var Z=$._init;return Z($._payload)}},MO=xz.react_stack_bottom_frame.bind(xz),m9=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`."),BN=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."),vG=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."),bG={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.')}},_7=null,kZ=!1,d9=null,vZ=0,h0=null,HN,mz=HN=!1,dz={},pz={},cz={};R=function($,Z,Q){if(Q!==null&&typeof Q==="object"&&Q._store&&(!Q._store.validated&&Q.key==null||Q._store.validated===2)){if(typeof Q._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.");Q._store.validated=1;var Y=d($),U=Y||"null";if(!dz[U]){dz[U]=!0,Q=Q._owner,$=$._debugOwner;var B="";$&&typeof $.tag==="number"&&(U=d($))&&(B=`
|
|
220
220
|
|
|
221
221
|
Check the render method of \``+U+"`."),B||Y&&(B=`
|
|
222
222
|
|
|
223
|
-
Check the top-level render call using <`+Y+">.");var z="";Q!=null&&$!==Q&&(Y=null,typeof Q.tag==="number"?Y=d(Q):typeof Q.name==="string"&&(Y=Q.name),Y&&(z=" It was passed a child from "+Y+".")),q0(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,z)})}}};var _7=yB(!0),lz=yB(!1),rz=0,sz=1,nz=2,FN=3,N2=!1,oz=!1,WN=null,zN=!1,d9=H0(null),fG=H0(0),T6=H0(null),h6=null,p9=1,vZ=2,c1=H0(0),yG=0,u6=1,m5=2,C6=4,d5=8,c9,az=new Set,iz=new Set,MN=new Set,tz=new Set,H8=0,A0=null,R1=null,t1=null,gG=!1,l9=!1,L7=!1,hG=0,bZ=0,F8=null,wO=0,RO=25,u=null,x6=null,W8=-1,fZ=!1,yZ={readContext:D1,use:c8,useCallback:d1,useContext:d1,useEffect:d1,useImperativeHandle:d1,useLayoutEffect:d1,useInsertionEffect:d1,useMemo:d1,useReducer:d1,useRef:d1,useState:d1,useDebugValue:d1,useDeferredValue:d1,useTransition:d1,useSyncExternalStore:d1,useId:d1,useHostTransitionStatus:d1,useFormState:d1,useActionState:d1,useOptimistic:d1,useMemoCache:d1,useCacheRefresh:d1};yZ.useEffectEvent=d1;var wN=null,ez=null,RN=null,$M=null,h4=null,q4=null,uG=null;wN={readContext:function($){return D1($)},use:c8,useCallback:function($,Z){return u="useCallback",c0(),X9(Z),zY($,Z)},useContext:function($){return u="useContext",c0(),D1($)},useEffect:function($,Z){return u="useEffect",c0(),X9(Z),kQ($,Z)},useImperativeHandle:function($,Z,Q){return u="useImperativeHandle",c0(),X9(Q),WY($,Z,Q)},useInsertionEffect:function($,Z){u="useInsertionEffect",c0(),X9(Z),G7(4,m5,$,Z)},useLayoutEffect:function($,Z){return u="useLayoutEffect",c0(),X9(Z),FY($,Z)},useMemo:function($,Z){u="useMemo",c0(),X9(Z);var Q=x.H;x.H=h4;try{return MY($,Z)}finally{x.H=Q}},useReducer:function($,Z,Q){u="useReducer",c0();var Y=x.H;x.H=h4;try{return GY($,Z,Q)}finally{x.H=Y}},useRef:function($){return u="useRef",c0(),BY($)},useState:function($){u="useState",c0();var Z=x.H;x.H=h4;try{return NY($)}finally{x.H=Z}},useDebugValue:function(){u="useDebugValue",c0()},useDeferredValue:function($,Z){return u="useDeferredValue",c0(),wY($,Z)},useTransition:function(){return u="useTransition",c0(),LY()},useSyncExternalStore:function($,Z,Q){return u="useSyncExternalStore",c0(),YY($,Z,Q)},useId:function(){return u="useId",c0(),PY()},useFormState:function($,Z){return u="useFormState",c0(),AQ(),U9($,Z)},useActionState:function($,Z){return u="useActionState",c0(),U9($,Z)},useOptimistic:function($){return u="useOptimistic",c0(),UY($)},useHostTransitionStatus:q7,useMemoCache:Q7,useCacheRefresh:function(){return u="useCacheRefresh",c0(),TY()},useEffectEvent:function($){return u="useEffectEvent",c0(),HY($)}},ez={readContext:function($){return D1($)},use:c8,useCallback:function($,Z){return u="useCallback",c(),zY($,Z)},useContext:function($){return u="useContext",c(),D1($)},useEffect:function($,Z){return u="useEffect",c(),kQ($,Z)},useImperativeHandle:function($,Z,Q){return u="useImperativeHandle",c(),WY($,Z,Q)},useInsertionEffect:function($,Z){u="useInsertionEffect",c(),G7(4,m5,$,Z)},useLayoutEffect:function($,Z){return u="useLayoutEffect",c(),FY($,Z)},useMemo:function($,Z){u="useMemo",c();var Q=x.H;x.H=h4;try{return MY($,Z)}finally{x.H=Q}},useReducer:function($,Z,Q){u="useReducer",c();var Y=x.H;x.H=h4;try{return GY($,Z,Q)}finally{x.H=Y}},useRef:function($){return u="useRef",c(),BY($)},useState:function($){u="useState",c();var Z=x.H;x.H=h4;try{return NY($)}finally{x.H=Z}},useDebugValue:function(){u="useDebugValue",c()},useDeferredValue:function($,Z){return u="useDeferredValue",c(),wY($,Z)},useTransition:function(){return u="useTransition",c(),LY()},useSyncExternalStore:function($,Z,Q){return u="useSyncExternalStore",c(),YY($,Z,Q)},useId:function(){return u="useId",c(),PY()},useActionState:function($,Z){return u="useActionState",c(),U9($,Z)},useFormState:function($,Z){return u="useFormState",c(),AQ(),U9($,Z)},useOptimistic:function($){return u="useOptimistic",c(),UY($)},useHostTransitionStatus:q7,useMemoCache:Q7,useCacheRefresh:function(){return u="useCacheRefresh",c(),TY()},useEffectEvent:function($){return u="useEffectEvent",c(),HY($)}},RN={readContext:function($){return D1($)},use:c8,useCallback:function($,Z){return u="useCallback",c(),fQ($,Z)},useContext:function($){return u="useContext",c(),D1($)},useEffect:function($,Z){u="useEffect",c(),l5(2048,d5,$,Z)},useImperativeHandle:function($,Z,Q){return u="useImperativeHandle",c(),bQ($,Z,Q)},useInsertionEffect:function($,Z){return u="useInsertionEffect",c(),l5(4,m5,$,Z)},useLayoutEffect:function($,Z){return u="useLayoutEffect",c(),l5(4,C6,$,Z)},useMemo:function($,Z){u="useMemo",c();var Q=x.H;x.H=q4;try{return yQ($,Z)}finally{x.H=Q}},useReducer:function($,Z,Q){u="useReducer",c();var Y=x.H;x.H=q4;try{return N9($,Z,Q)}finally{x.H=Y}},useRef:function(){return u="useRef",c(),B1().memoizedState},useState:function(){u="useState",c();var $=x.H;x.H=q4;try{return N9(e6)}finally{x.H=$}},useDebugValue:function(){u="useDebugValue",c()},useDeferredValue:function($,Z){return u="useDeferredValue",c(),GH($,Z)},useTransition:function(){return u="useTransition",c(),KH()},useSyncExternalStore:function($,Z,Q){return u="useSyncExternalStore",c(),SQ($,Z,Q)},useId:function(){return u="useId",c(),B1().memoizedState},useFormState:function($){return u="useFormState",c(),AQ(),DQ($)},useActionState:function($){return u="useActionState",c(),DQ($)},useOptimistic:function($,Z){return u="useOptimistic",c(),nB($,Z)},useHostTransitionStatus:q7,useMemoCache:Q7,useCacheRefresh:function(){return u="useCacheRefresh",c(),B1().memoizedState},useEffectEvent:function($){return u="useEffectEvent",c(),vQ($)}},$M={readContext:function($){return D1($)},use:c8,useCallback:function($,Z){return u="useCallback",c(),fQ($,Z)},useContext:function($){return u="useContext",c(),D1($)},useEffect:function($,Z){u="useEffect",c(),l5(2048,d5,$,Z)},useImperativeHandle:function($,Z,Q){return u="useImperativeHandle",c(),bQ($,Z,Q)},useInsertionEffect:function($,Z){return u="useInsertionEffect",c(),l5(4,m5,$,Z)},useLayoutEffect:function($,Z){return u="useLayoutEffect",c(),l5(4,C6,$,Z)},useMemo:function($,Z){u="useMemo",c();var Q=x.H;x.H=uG;try{return yQ($,Z)}finally{x.H=Q}},useReducer:function($,Z,Q){u="useReducer",c();var Y=x.H;x.H=uG;try{return m$($,Z,Q)}finally{x.H=Y}},useRef:function(){return u="useRef",c(),B1().memoizedState},useState:function(){u="useState",c();var $=x.H;x.H=uG;try{return m$(e6)}finally{x.H=$}},useDebugValue:function(){u="useDebugValue",c()},useDeferredValue:function($,Z){return u="useDeferredValue",c(),qH($,Z)},useTransition:function(){return u="useTransition",c(),BH()},useSyncExternalStore:function($,Z,Q){return u="useSyncExternalStore",c(),SQ($,Z,Q)},useId:function(){return u="useId",c(),B1().memoizedState},useFormState:function($){return u="useFormState",c(),AQ(),jQ($)},useActionState:function($){return u="useActionState",c(),jQ($)},useOptimistic:function($,Z){return u="useOptimistic",c(),aB($,Z)},useHostTransitionStatus:q7,useMemoCache:Q7,useCacheRefresh:function(){return u="useCacheRefresh",c(),B1().memoizedState},useEffectEvent:function($){return u="useEffectEvent",c(),vQ($)}},h4={readContext:function($){return W(),D1($)},use:function($){return F(),c8($)},useCallback:function($,Z){return u="useCallback",F(),c0(),zY($,Z)},useContext:function($){return u="useContext",F(),c0(),D1($)},useEffect:function($,Z){return u="useEffect",F(),c0(),kQ($,Z)},useImperativeHandle:function($,Z,Q){return u="useImperativeHandle",F(),c0(),WY($,Z,Q)},useInsertionEffect:function($,Z){u="useInsertionEffect",F(),c0(),G7(4,m5,$,Z)},useLayoutEffect:function($,Z){return u="useLayoutEffect",F(),c0(),FY($,Z)},useMemo:function($,Z){u="useMemo",F(),c0();var Q=x.H;x.H=h4;try{return MY($,Z)}finally{x.H=Q}},useReducer:function($,Z,Q){u="useReducer",F(),c0();var Y=x.H;x.H=h4;try{return GY($,Z,Q)}finally{x.H=Y}},useRef:function($){return u="useRef",F(),c0(),BY($)},useState:function($){u="useState",F(),c0();var Z=x.H;x.H=h4;try{return NY($)}finally{x.H=Z}},useDebugValue:function(){u="useDebugValue",F(),c0()},useDeferredValue:function($,Z){return u="useDeferredValue",F(),c0(),wY($,Z)},useTransition:function(){return u="useTransition",F(),c0(),LY()},useSyncExternalStore:function($,Z,Q){return u="useSyncExternalStore",F(),c0(),YY($,Z,Q)},useId:function(){return u="useId",F(),c0(),PY()},useFormState:function($,Z){return u="useFormState",F(),c0(),U9($,Z)},useActionState:function($,Z){return u="useActionState",F(),c0(),U9($,Z)},useOptimistic:function($){return u="useOptimistic",F(),c0(),UY($)},useMemoCache:function($){return F(),Q7($)},useHostTransitionStatus:q7,useCacheRefresh:function(){return u="useCacheRefresh",c0(),TY()},useEffectEvent:function($){return u="useEffectEvent",F(),c0(),HY($)}},q4={readContext:function($){return W(),D1($)},use:function($){return F(),c8($)},useCallback:function($,Z){return u="useCallback",F(),c(),fQ($,Z)},useContext:function($){return u="useContext",F(),c(),D1($)},useEffect:function($,Z){u="useEffect",F(),c(),l5(2048,d5,$,Z)},useImperativeHandle:function($,Z,Q){return u="useImperativeHandle",F(),c(),bQ($,Z,Q)},useInsertionEffect:function($,Z){return u="useInsertionEffect",F(),c(),l5(4,m5,$,Z)},useLayoutEffect:function($,Z){return u="useLayoutEffect",F(),c(),l5(4,C6,$,Z)},useMemo:function($,Z){u="useMemo",F(),c();var Q=x.H;x.H=q4;try{return yQ($,Z)}finally{x.H=Q}},useReducer:function($,Z,Q){u="useReducer",F(),c();var Y=x.H;x.H=q4;try{return N9($,Z,Q)}finally{x.H=Y}},useRef:function(){return u="useRef",F(),c(),B1().memoizedState},useState:function(){u="useState",F(),c();var $=x.H;x.H=q4;try{return N9(e6)}finally{x.H=$}},useDebugValue:function(){u="useDebugValue",F(),c()},useDeferredValue:function($,Z){return u="useDeferredValue",F(),c(),GH($,Z)},useTransition:function(){return u="useTransition",F(),c(),KH()},useSyncExternalStore:function($,Z,Q){return u="useSyncExternalStore",F(),c(),SQ($,Z,Q)},useId:function(){return u="useId",F(),c(),B1().memoizedState},useFormState:function($){return u="useFormState",F(),c(),DQ($)},useActionState:function($){return u="useActionState",F(),c(),DQ($)},useOptimistic:function($,Z){return u="useOptimistic",F(),c(),nB($,Z)},useMemoCache:function($){return F(),Q7($)},useHostTransitionStatus:q7,useCacheRefresh:function(){return u="useCacheRefresh",c(),B1().memoizedState},useEffectEvent:function($){return u="useEffectEvent",F(),c(),vQ($)}},uG={readContext:function($){return W(),D1($)},use:function($){return F(),c8($)},useCallback:function($,Z){return u="useCallback",F(),c(),fQ($,Z)},useContext:function($){return u="useContext",F(),c(),D1($)},useEffect:function($,Z){u="useEffect",F(),c(),l5(2048,d5,$,Z)},useImperativeHandle:function($,Z,Q){return u="useImperativeHandle",F(),c(),bQ($,Z,Q)},useInsertionEffect:function($,Z){return u="useInsertionEffect",F(),c(),l5(4,m5,$,Z)},useLayoutEffect:function($,Z){return u="useLayoutEffect",F(),c(),l5(4,C6,$,Z)},useMemo:function($,Z){u="useMemo",F(),c();var Q=x.H;x.H=q4;try{return yQ($,Z)}finally{x.H=Q}},useReducer:function($,Z,Q){u="useReducer",F(),c();var Y=x.H;x.H=q4;try{return m$($,Z,Q)}finally{x.H=Y}},useRef:function(){return u="useRef",F(),c(),B1().memoizedState},useState:function(){u="useState",F(),c();var $=x.H;x.H=q4;try{return m$(e6)}finally{x.H=$}},useDebugValue:function(){u="useDebugValue",F(),c()},useDeferredValue:function($,Z){return u="useDeferredValue",F(),c(),qH($,Z)},useTransition:function(){return u="useTransition",F(),c(),BH()},useSyncExternalStore:function($,Z,Q){return u="useSyncExternalStore",F(),c(),SQ($,Z,Q)},useId:function(){return u="useId",F(),c(),B1().memoizedState},useFormState:function($){return u="useFormState",F(),c(),jQ($)},useActionState:function($){return u="useActionState",F(),c(),jQ($)},useOptimistic:function($,Z){return u="useOptimistic",F(),c(),aB($,Z)},useMemoCache:function($){return F(),Q7($)},useHostTransitionStatus:q7,useCacheRefresh:function(){return u="useCacheRefresh",c(),B1().memoizedState},useEffectEvent:function($){return u="useEffectEvent",F(),c(),vQ($)}};var ZM={},JM=new Set,QM=new Set,GM=new Set,qM=new Set,YM=new Set,XM=new Set,NM=new Set,UM=new Set,KM=new Set,BM=new Set;Object.freeze(ZM);var _N={enqueueSetState:function($,Z,Q){$=$._reactInternals;var Y=M6($),U=x8(Y);U.payload=Z,Q!==void 0&&Q!==null&&(OY(Q),U.callback=Q),Z=m8($,U,Y),Z!==null&&(z4(Y,"this.setState()",$),y1(Z,$,Y),g$(Z,$,Y))},enqueueReplaceState:function($,Z,Q){$=$._reactInternals;var Y=M6($),U=x8(Y);U.tag=sz,U.payload=Z,Q!==void 0&&Q!==null&&(OY(Q),U.callback=Q),Z=m8($,U,Y),Z!==null&&(z4(Y,"this.replaceState()",$),y1(Z,$,Y),g$(Z,$,Y))},enqueueForceUpdate:function($,Z){$=$._reactInternals;var Q=M6($),Y=x8(Q);Y.tag=nz,Z!==void 0&&Z!==null&&(OY(Z),Y.callback=Z),Z=m8($,Y,Q),Z!==null&&(z4(Q,"this.forceUpdate()",$),y1(Z,$,Q),g$(Z,$,Q))}},r9=null,LN=null,PN=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."),e1=!1,HM={},FM={},WM={},zM={},s9=!1,MM={},xG={},TN={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null},wM=!1,RM=null;RM=new Set;var z8=!1,$5=!1,CN=!1,_M=typeof WeakSet==="function"?WeakSet:Set,F5=null,n9=null,o9=null,Z5=null,n5=!1,Y4=null,q5=!1,gZ=8192,_O={getCacheForType:function($){var Z=D1(a1),Q=Z.data.get($);return Q===void 0&&(Q=$(),Z.data.set($,Q)),Q},cacheSignal:function(){return D1(a1).controller.signal},getOwner:function(){return _6}};if(typeof Symbol==="function"&&Symbol.for){var hZ=Symbol.for;hZ("selector.component"),hZ("selector.has_pseudo_class"),hZ("selector.role"),hZ("selector.test_id"),hZ("selector.text")}var LO=[],PO=typeof WeakMap==="function"?WeakMap:Map,W5=0,Y5=2,O6=4,M8=0,uZ=1,P7=2,mG=3,U2=4,dG=6,LM=5,Z1=W5,_1=null,x0=null,u0=0,o5=0,pG=1,T7=2,xZ=3,PM=4,ON=5,mZ=6,cG=7,IN=8,C7=9,H1=o5,I6=null,K2=!1,a9=!1,VN=!1,u4=0,v1=M8,B2=0,H2=0,AN=0,a5=0,O7=0,dZ=null,p5=null,lG=!1,rG=0,TM=0,CM=300,sG=1/0,OM=500,pZ=null,p1=null,F2=null,nG=0,EN=1,SN=2,IM=3,W2=0,VM=1,AM=2,EM=3,SM=4,oG=5,J5=0,z2=null,i9=null,X4=0,DN=0,jN=-0,kN=null,DM=null,jM=null,N4=nG,kM=null,TO=50,cZ=0,vN=null,bN=!1,aG=!1,CO=50,I7=0,lZ=null,t9=!1,iG=null,vM=!1,bM=new Set,OO={},tG=null,e9=null,fN=!1,yN=!1,eG=!1,gN=!1,M2=0,hN={};(function(){for(var $=0;$<oX.length;$++){var Z=oX[$],Q=Z.toLowerCase();Z=Z[0].toUpperCase()+Z.slice(1),t6(Q,"on"+Z)}t6(Kz,"onAnimationEnd"),t6(Bz,"onAnimationIteration"),t6(Hz,"onAnimationStart"),t6("dblclick","onDoubleClick"),t6("focusin","onFocus"),t6("focusout","onBlur"),t6($O,"onTransitionRun"),t6(ZO,"onTransitionStart"),t6(JO,"onTransitionCancel"),t6(Fz,"onTransitionEnd")})(),U6("onMouseEnter",["mouseout","mouseover"]),U6("onMouseLeave",["mouseout","mouseover"]),U6("onPointerEnter",["pointerout","pointerover"]),U6("onPointerLeave",["pointerout","pointerover"]),A5("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),A5("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),A5("onBeforeInput",["compositionend","keypress","textInput","paste"]),A5("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),A5("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),A5("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var rZ="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(" "),uN=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(rZ)),$3="_reactListening"+Math.random().toString(36).slice(2),fM=!1,yM=!1,Z3=!1,gM=!1,J3=!1,Q3=!1,hM=!1,G3={},IO=/\r\n?/g,VO=/\u0000|\uFFFD/g,V7="http://www.w3.org/1999/xlink",xN="http://www.w3.org/XML/1998/namespace",AO="javascript:throw new Error('React form unexpectedly submitted.')",EO="suppressHydrationWarning",A7="&",q3="/&",sZ="$",nZ="/$",w2="$?",E7="$~",$$="$!",SO="html",DO="body",jO="head",mN="F!",uM="F",xM="loading",kO="style",w8=0,Z$=1,Y3=2,dN=null,pN=null,mM={dialog:!0,webview:!0},cN=null,oZ=void 0,dM=typeof setTimeout==="function"?setTimeout:void 0,vO=typeof clearTimeout==="function"?clearTimeout:void 0,S7=-1,pM=typeof Promise==="function"?Promise:void 0,bO=typeof queueMicrotask==="function"?queueMicrotask:typeof pM<"u"?function($){return pM.resolve(null).then($).catch(RT)}:dM,lN=null,D7=0,aZ=1,cM=2,lM=3,m6=4,d6=new Map,rM=new Set,R8=U1.d;U1.d={f:function(){var $=R8.f(),Z=W9();return $||Z},r:function($){var Z=j0($);Z!==null&&Z.tag===5&&Z.type==="form"?UH(Z):R8.r($)},D:function($){R8.D($),JW("dns-prefetch",$,null)},C:function($,Z){R8.C($,Z),JW("preconnect",$,Z)},L:function($,Z,Q){R8.L($,Z,Q);var Y=J$;if(Y&&$&&Z){var U='link[rel="preload"][as="'+S6(Z)+'"]';Z==="image"?Q&&Q.imageSrcSet?(U+='[imagesrcset="'+S6(Q.imageSrcSet)+'"]',typeof Q.imageSizes==="string"&&(U+='[imagesizes="'+S6(Q.imageSizes)+'"]')):U+='[href="'+S6($)+'"]':U+='[href="'+S6($)+'"]';var B=U;switch(Z){case"style":B=w9($);break;case"script":B=R9($)}d6.has(B)||($=l0({rel:"preload",href:Z==="image"&&Q&&Q.imageSrcSet?void 0:$,as:Z},Q),d6.set(B,$),Y.querySelector(U)!==null||Z==="style"&&Y.querySelector(JZ(B))||Z==="script"&&Y.querySelector(QZ(B))||(Z=Y.createElement("link"),R5(Z,"link",$),_0(Z),Y.head.appendChild(Z)))}},m:function($,Z){R8.m($,Z);var Q=J$;if(Q&&$){var Y=Z&&typeof Z.as==="string"?Z.as:"script",U='link[rel="modulepreload"][as="'+S6(Y)+'"][href="'+S6($)+'"]',B=U;switch(Y){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":B=R9($)}if(!d6.has(B)&&($=l0({rel:"modulepreload",href:$},Z),d6.set(B,$),Q.querySelector(U)===null)){switch(Y){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(Q.querySelector(QZ(B)))return}Y=Q.createElement("link"),R5(Y,"link",$),_0(Y),Q.head.appendChild(Y)}}},X:function($,Z){R8.X($,Z);var Q=J$;if(Q&&$){var Y=J1(Q).hoistableScripts,U=R9($),B=Y.get(U);B||(B=Q.querySelector(QZ(U)),B||($=l0({src:$,async:!0},Z),(Z=d6.get(U))&&WX($,Z),B=Q.createElement("script"),_0(B),R5(B,"link",$),Q.head.appendChild(B)),B={type:"script",instance:B,count:1,state:null},Y.set(U,B))}},S:function($,Z,Q){R8.S($,Z,Q);var Y=J$;if(Y&&$){var U=J1(Y).hoistableStyles,B=w9($);Z=Z||"default";var z=U.get(B);if(!z){var w={loading:D7,preload:null};if(z=Y.querySelector(JZ(B)))w.loading=aZ|m6;else{$=l0({rel:"stylesheet",href:$,"data-precedence":Z},Q),(Q=d6.get(B))&&FX($,Q);var L=z=Y.createElement("link");_0(L),R5(L,"link",$),L._p=new Promise(function(T,b){L.onload=T,L.onerror=b}),L.addEventListener("load",function(){w.loading|=aZ}),L.addEventListener("error",function(){w.loading|=cM}),w.loading|=m6,ZG(z,Z,Y)}z={type:"stylesheet",instance:z,count:1,state:w},U.set(B,z)}}},M:function($,Z){R8.M($,Z);var Q=J$;if(Q&&$){var Y=J1(Q).hoistableScripts,U=R9($),B=Y.get(U);B||(B=Q.querySelector(QZ(U)),B||($=l0({src:$,async:!0,type:"module"},Z),(Z=d6.get(U))&&WX($,Z),B=Q.createElement("script"),_0(B),R5(B,"link",$),Q.head.appendChild(B)),B={type:"script",instance:B,count:1,state:null},Y.set(U,B))}}};var J$=typeof document>"u"?null:document,X3=null,fO=60000,yO=800,gO=500,rN=0,sN=null,N3=null,j7=tT,iZ={$$typeof:S4,Provider:null,Consumer:null,_currentValue:j7,_currentValue2:j7,_threadCount:0},sM="%c%s%c",nM="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",oM="",U3=" ",hO=Function.prototype.bind,aM=!1,iM=null,tM=null,eM=null,$w=null,Zw=null,Jw=null,Qw=null,Gw=null,qw=null,Yw=null;iM=function($,Z,Q,Y){Z=J($,Z),Z!==null&&(Q=G(Z.memoizedState,Q,0,Y),Z.memoizedState=Q,Z.baseState=Q,$.memoizedProps=l0({},$.memoizedProps),Q=E5($,2),Q!==null&&y1(Q,$,2))},tM=function($,Z,Q){Z=J($,Z),Z!==null&&(Q=N(Z.memoizedState,Q,0),Z.memoizedState=Q,Z.baseState=Q,$.memoizedProps=l0({},$.memoizedProps),Q=E5($,2),Q!==null&&y1(Q,$,2))},eM=function($,Z,Q,Y){Z=J($,Z),Z!==null&&(Q=q(Z.memoizedState,Q,Y),Z.memoizedState=Q,Z.baseState=Q,$.memoizedProps=l0({},$.memoizedProps),Q=E5($,2),Q!==null&&y1(Q,$,2))},$w=function($,Z,Q){$.pendingProps=G($.memoizedProps,Z,0,Q),$.alternate&&($.alternate.pendingProps=$.pendingProps),Z=E5($,2),Z!==null&&y1(Z,$,2)},Zw=function($,Z){$.pendingProps=N($.memoizedProps,Z,0),$.alternate&&($.alternate.pendingProps=$.pendingProps),Z=E5($,2),Z!==null&&y1(Z,$,2)},Jw=function($,Z,Q){$.pendingProps=q($.memoizedProps,Z,Q),$.alternate&&($.alternate.pendingProps=$.pendingProps),Z=E5($,2),Z!==null&&y1(Z,$,2)},Qw=function($){var Z=E5($,2);Z!==null&&y1(Z,$,2)},Gw=function($){var Z=$9(),Q=E5($,Z);Q!==null&&y1(Q,$,Z)},qw=function($){H=$},Yw=function($){K=$};var K3=!0,B3=null,nN=!1,R2=null,_2=null,L2=null,tZ=new Map,eZ=new Map,P2=[],uO="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(" "),H3=null;if(YG.prototype.render=LX.prototype.render=function($){var Z=this._internalRoot;if(Z===null)throw Error("Cannot update an unmounted root.");var Q=arguments;typeof Q[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()."):I(Q[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 Q[1]<"u"&&console.error("You passed a second argument to root.render(...) but it only accepts one argument."),Q=$;var Y=Z.current,U=M6(Y);zX(Y,U,Q,Z,null,null)},YG.prototype.unmount=LX.prototype.unmount=function(){var $=arguments;if(typeof $[0]==="function"&&console.error("does not support a callback argument. To execute a side effect after rendering, declare it in a component body with useEffect()."),$=this._internalRoot,$!==null){this._internalRoot=null;var Z=$.containerInfo;(Z1&(Y5|O6))!==W5&&console.error("Attempted to synchronously unmount a root while React was already rendering. React cannot finish unmounting the root until the current render has completed, which may lead to a race condition."),zX($.current,2,null,$,null,null),W9(),Z[i8]=null}},YG.prototype.unstable_scheduleHydration=function($){if($){var Z=y();$={blockedOn:null,target:$,priority:Z};for(var Q=0;Q<P2.length&&Z!==0&&Z<P2[Q].priority;Q++);P2.splice(Q,0,$),Q===0&&MW($)}},function(){var $=W$.version;if($!=="19.2.7")throw Error(`Incompatible React versions: The "react" and "react-dom" packages must have the exact same version. Instead got:
|
|
223
|
+
Check the top-level render call using <`+Y+">.");var z="";Q!=null&&$!==Q&&(Y=null,typeof Q.tag==="number"?Y=d(Q):typeof Q.name==="string"&&(Y=Q.name),Y&&(z=" It was passed a child from "+Y+".")),q0(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,z)})}}};var L7=yB(!0),lz=yB(!1),rz=0,sz=1,nz=2,FN=3,N2=!1,oz=!1,WN=null,zN=!1,p9=H0(null),fG=H0(0),T6=H0(null),h6=null,c9=1,bZ=2,c1=H0(0),yG=0,u6=1,m5=2,C6=4,d5=8,l9,az=new Set,iz=new Set,MN=new Set,tz=new Set,H8=0,A0=null,R1=null,t1=null,gG=!1,r9=!1,P7=!1,hG=0,fZ=0,F8=null,wO=0,RO=25,u=null,x6=null,W8=-1,yZ=!1,gZ={readContext:D1,use:c8,useCallback:d1,useContext:d1,useEffect:d1,useImperativeHandle:d1,useLayoutEffect:d1,useInsertionEffect:d1,useMemo:d1,useReducer:d1,useRef:d1,useState:d1,useDebugValue:d1,useDeferredValue:d1,useTransition:d1,useSyncExternalStore:d1,useId:d1,useHostTransitionStatus:d1,useFormState:d1,useActionState:d1,useOptimistic:d1,useMemoCache:d1,useCacheRefresh:d1};gZ.useEffectEvent=d1;var wN=null,ez=null,RN=null,$M=null,h4=null,q4=null,uG=null;wN={readContext:function($){return D1($)},use:c8,useCallback:function($,Z){return u="useCallback",c0(),N9(Z),zY($,Z)},useContext:function($){return u="useContext",c0(),D1($)},useEffect:function($,Z){return u="useEffect",c0(),N9(Z),kQ($,Z)},useImperativeHandle:function($,Z,Q){return u="useImperativeHandle",c0(),N9(Q),WY($,Z,Q)},useInsertionEffect:function($,Z){u="useInsertionEffect",c0(),N9(Z),q7(4,m5,$,Z)},useLayoutEffect:function($,Z){return u="useLayoutEffect",c0(),N9(Z),FY($,Z)},useMemo:function($,Z){u="useMemo",c0(),N9(Z);var Q=x.H;x.H=h4;try{return MY($,Z)}finally{x.H=Q}},useReducer:function($,Z,Q){u="useReducer",c0();var Y=x.H;x.H=h4;try{return GY($,Z,Q)}finally{x.H=Y}},useRef:function($){return u="useRef",c0(),BY($)},useState:function($){u="useState",c0();var Z=x.H;x.H=h4;try{return NY($)}finally{x.H=Z}},useDebugValue:function(){u="useDebugValue",c0()},useDeferredValue:function($,Z){return u="useDeferredValue",c0(),wY($,Z)},useTransition:function(){return u="useTransition",c0(),LY()},useSyncExternalStore:function($,Z,Q){return u="useSyncExternalStore",c0(),YY($,Z,Q)},useId:function(){return u="useId",c0(),PY()},useFormState:function($,Z){return u="useFormState",c0(),AQ(),K9($,Z)},useActionState:function($,Z){return u="useActionState",c0(),K9($,Z)},useOptimistic:function($){return u="useOptimistic",c0(),UY($)},useHostTransitionStatus:Y7,useMemoCache:G7,useCacheRefresh:function(){return u="useCacheRefresh",c0(),TY()},useEffectEvent:function($){return u="useEffectEvent",c0(),HY($)}},ez={readContext:function($){return D1($)},use:c8,useCallback:function($,Z){return u="useCallback",c(),zY($,Z)},useContext:function($){return u="useContext",c(),D1($)},useEffect:function($,Z){return u="useEffect",c(),kQ($,Z)},useImperativeHandle:function($,Z,Q){return u="useImperativeHandle",c(),WY($,Z,Q)},useInsertionEffect:function($,Z){u="useInsertionEffect",c(),q7(4,m5,$,Z)},useLayoutEffect:function($,Z){return u="useLayoutEffect",c(),FY($,Z)},useMemo:function($,Z){u="useMemo",c();var Q=x.H;x.H=h4;try{return MY($,Z)}finally{x.H=Q}},useReducer:function($,Z,Q){u="useReducer",c();var Y=x.H;x.H=h4;try{return GY($,Z,Q)}finally{x.H=Y}},useRef:function($){return u="useRef",c(),BY($)},useState:function($){u="useState",c();var Z=x.H;x.H=h4;try{return NY($)}finally{x.H=Z}},useDebugValue:function(){u="useDebugValue",c()},useDeferredValue:function($,Z){return u="useDeferredValue",c(),wY($,Z)},useTransition:function(){return u="useTransition",c(),LY()},useSyncExternalStore:function($,Z,Q){return u="useSyncExternalStore",c(),YY($,Z,Q)},useId:function(){return u="useId",c(),PY()},useActionState:function($,Z){return u="useActionState",c(),K9($,Z)},useFormState:function($,Z){return u="useFormState",c(),AQ(),K9($,Z)},useOptimistic:function($){return u="useOptimistic",c(),UY($)},useHostTransitionStatus:Y7,useMemoCache:G7,useCacheRefresh:function(){return u="useCacheRefresh",c(),TY()},useEffectEvent:function($){return u="useEffectEvent",c(),HY($)}},RN={readContext:function($){return D1($)},use:c8,useCallback:function($,Z){return u="useCallback",c(),fQ($,Z)},useContext:function($){return u="useContext",c(),D1($)},useEffect:function($,Z){u="useEffect",c(),l5(2048,d5,$,Z)},useImperativeHandle:function($,Z,Q){return u="useImperativeHandle",c(),bQ($,Z,Q)},useInsertionEffect:function($,Z){return u="useInsertionEffect",c(),l5(4,m5,$,Z)},useLayoutEffect:function($,Z){return u="useLayoutEffect",c(),l5(4,C6,$,Z)},useMemo:function($,Z){u="useMemo",c();var Q=x.H;x.H=q4;try{return yQ($,Z)}finally{x.H=Q}},useReducer:function($,Z,Q){u="useReducer",c();var Y=x.H;x.H=q4;try{return U9($,Z,Q)}finally{x.H=Y}},useRef:function(){return u="useRef",c(),B1().memoizedState},useState:function(){u="useState",c();var $=x.H;x.H=q4;try{return U9(e6)}finally{x.H=$}},useDebugValue:function(){u="useDebugValue",c()},useDeferredValue:function($,Z){return u="useDeferredValue",c(),GH($,Z)},useTransition:function(){return u="useTransition",c(),KH()},useSyncExternalStore:function($,Z,Q){return u="useSyncExternalStore",c(),SQ($,Z,Q)},useId:function(){return u="useId",c(),B1().memoizedState},useFormState:function($){return u="useFormState",c(),AQ(),DQ($)},useActionState:function($){return u="useActionState",c(),DQ($)},useOptimistic:function($,Z){return u="useOptimistic",c(),nB($,Z)},useHostTransitionStatus:Y7,useMemoCache:G7,useCacheRefresh:function(){return u="useCacheRefresh",c(),B1().memoizedState},useEffectEvent:function($){return u="useEffectEvent",c(),vQ($)}},$M={readContext:function($){return D1($)},use:c8,useCallback:function($,Z){return u="useCallback",c(),fQ($,Z)},useContext:function($){return u="useContext",c(),D1($)},useEffect:function($,Z){u="useEffect",c(),l5(2048,d5,$,Z)},useImperativeHandle:function($,Z,Q){return u="useImperativeHandle",c(),bQ($,Z,Q)},useInsertionEffect:function($,Z){return u="useInsertionEffect",c(),l5(4,m5,$,Z)},useLayoutEffect:function($,Z){return u="useLayoutEffect",c(),l5(4,C6,$,Z)},useMemo:function($,Z){u="useMemo",c();var Q=x.H;x.H=uG;try{return yQ($,Z)}finally{x.H=Q}},useReducer:function($,Z,Q){u="useReducer",c();var Y=x.H;x.H=uG;try{return d$($,Z,Q)}finally{x.H=Y}},useRef:function(){return u="useRef",c(),B1().memoizedState},useState:function(){u="useState",c();var $=x.H;x.H=uG;try{return d$(e6)}finally{x.H=$}},useDebugValue:function(){u="useDebugValue",c()},useDeferredValue:function($,Z){return u="useDeferredValue",c(),qH($,Z)},useTransition:function(){return u="useTransition",c(),BH()},useSyncExternalStore:function($,Z,Q){return u="useSyncExternalStore",c(),SQ($,Z,Q)},useId:function(){return u="useId",c(),B1().memoizedState},useFormState:function($){return u="useFormState",c(),AQ(),jQ($)},useActionState:function($){return u="useActionState",c(),jQ($)},useOptimistic:function($,Z){return u="useOptimistic",c(),aB($,Z)},useHostTransitionStatus:Y7,useMemoCache:G7,useCacheRefresh:function(){return u="useCacheRefresh",c(),B1().memoizedState},useEffectEvent:function($){return u="useEffectEvent",c(),vQ($)}},h4={readContext:function($){return W(),D1($)},use:function($){return F(),c8($)},useCallback:function($,Z){return u="useCallback",F(),c0(),zY($,Z)},useContext:function($){return u="useContext",F(),c0(),D1($)},useEffect:function($,Z){return u="useEffect",F(),c0(),kQ($,Z)},useImperativeHandle:function($,Z,Q){return u="useImperativeHandle",F(),c0(),WY($,Z,Q)},useInsertionEffect:function($,Z){u="useInsertionEffect",F(),c0(),q7(4,m5,$,Z)},useLayoutEffect:function($,Z){return u="useLayoutEffect",F(),c0(),FY($,Z)},useMemo:function($,Z){u="useMemo",F(),c0();var Q=x.H;x.H=h4;try{return MY($,Z)}finally{x.H=Q}},useReducer:function($,Z,Q){u="useReducer",F(),c0();var Y=x.H;x.H=h4;try{return GY($,Z,Q)}finally{x.H=Y}},useRef:function($){return u="useRef",F(),c0(),BY($)},useState:function($){u="useState",F(),c0();var Z=x.H;x.H=h4;try{return NY($)}finally{x.H=Z}},useDebugValue:function(){u="useDebugValue",F(),c0()},useDeferredValue:function($,Z){return u="useDeferredValue",F(),c0(),wY($,Z)},useTransition:function(){return u="useTransition",F(),c0(),LY()},useSyncExternalStore:function($,Z,Q){return u="useSyncExternalStore",F(),c0(),YY($,Z,Q)},useId:function(){return u="useId",F(),c0(),PY()},useFormState:function($,Z){return u="useFormState",F(),c0(),K9($,Z)},useActionState:function($,Z){return u="useActionState",F(),c0(),K9($,Z)},useOptimistic:function($){return u="useOptimistic",F(),c0(),UY($)},useMemoCache:function($){return F(),G7($)},useHostTransitionStatus:Y7,useCacheRefresh:function(){return u="useCacheRefresh",c0(),TY()},useEffectEvent:function($){return u="useEffectEvent",F(),c0(),HY($)}},q4={readContext:function($){return W(),D1($)},use:function($){return F(),c8($)},useCallback:function($,Z){return u="useCallback",F(),c(),fQ($,Z)},useContext:function($){return u="useContext",F(),c(),D1($)},useEffect:function($,Z){u="useEffect",F(),c(),l5(2048,d5,$,Z)},useImperativeHandle:function($,Z,Q){return u="useImperativeHandle",F(),c(),bQ($,Z,Q)},useInsertionEffect:function($,Z){return u="useInsertionEffect",F(),c(),l5(4,m5,$,Z)},useLayoutEffect:function($,Z){return u="useLayoutEffect",F(),c(),l5(4,C6,$,Z)},useMemo:function($,Z){u="useMemo",F(),c();var Q=x.H;x.H=q4;try{return yQ($,Z)}finally{x.H=Q}},useReducer:function($,Z,Q){u="useReducer",F(),c();var Y=x.H;x.H=q4;try{return U9($,Z,Q)}finally{x.H=Y}},useRef:function(){return u="useRef",F(),c(),B1().memoizedState},useState:function(){u="useState",F(),c();var $=x.H;x.H=q4;try{return U9(e6)}finally{x.H=$}},useDebugValue:function(){u="useDebugValue",F(),c()},useDeferredValue:function($,Z){return u="useDeferredValue",F(),c(),GH($,Z)},useTransition:function(){return u="useTransition",F(),c(),KH()},useSyncExternalStore:function($,Z,Q){return u="useSyncExternalStore",F(),c(),SQ($,Z,Q)},useId:function(){return u="useId",F(),c(),B1().memoizedState},useFormState:function($){return u="useFormState",F(),c(),DQ($)},useActionState:function($){return u="useActionState",F(),c(),DQ($)},useOptimistic:function($,Z){return u="useOptimistic",F(),c(),nB($,Z)},useMemoCache:function($){return F(),G7($)},useHostTransitionStatus:Y7,useCacheRefresh:function(){return u="useCacheRefresh",c(),B1().memoizedState},useEffectEvent:function($){return u="useEffectEvent",F(),c(),vQ($)}},uG={readContext:function($){return W(),D1($)},use:function($){return F(),c8($)},useCallback:function($,Z){return u="useCallback",F(),c(),fQ($,Z)},useContext:function($){return u="useContext",F(),c(),D1($)},useEffect:function($,Z){u="useEffect",F(),c(),l5(2048,d5,$,Z)},useImperativeHandle:function($,Z,Q){return u="useImperativeHandle",F(),c(),bQ($,Z,Q)},useInsertionEffect:function($,Z){return u="useInsertionEffect",F(),c(),l5(4,m5,$,Z)},useLayoutEffect:function($,Z){return u="useLayoutEffect",F(),c(),l5(4,C6,$,Z)},useMemo:function($,Z){u="useMemo",F(),c();var Q=x.H;x.H=q4;try{return yQ($,Z)}finally{x.H=Q}},useReducer:function($,Z,Q){u="useReducer",F(),c();var Y=x.H;x.H=q4;try{return d$($,Z,Q)}finally{x.H=Y}},useRef:function(){return u="useRef",F(),c(),B1().memoizedState},useState:function(){u="useState",F(),c();var $=x.H;x.H=q4;try{return d$(e6)}finally{x.H=$}},useDebugValue:function(){u="useDebugValue",F(),c()},useDeferredValue:function($,Z){return u="useDeferredValue",F(),c(),qH($,Z)},useTransition:function(){return u="useTransition",F(),c(),BH()},useSyncExternalStore:function($,Z,Q){return u="useSyncExternalStore",F(),c(),SQ($,Z,Q)},useId:function(){return u="useId",F(),c(),B1().memoizedState},useFormState:function($){return u="useFormState",F(),c(),jQ($)},useActionState:function($){return u="useActionState",F(),c(),jQ($)},useOptimistic:function($,Z){return u="useOptimistic",F(),c(),aB($,Z)},useMemoCache:function($){return F(),G7($)},useHostTransitionStatus:Y7,useCacheRefresh:function(){return u="useCacheRefresh",c(),B1().memoizedState},useEffectEvent:function($){return u="useEffectEvent",F(),c(),vQ($)}};var ZM={},JM=new Set,QM=new Set,GM=new Set,qM=new Set,YM=new Set,XM=new Set,NM=new Set,UM=new Set,KM=new Set,BM=new Set;Object.freeze(ZM);var _N={enqueueSetState:function($,Z,Q){$=$._reactInternals;var Y=M6($),U=x8(Y);U.payload=Z,Q!==void 0&&Q!==null&&(OY(Q),U.callback=Q),Z=m8($,U,Y),Z!==null&&(z4(Y,"this.setState()",$),y1(Z,$,Y),h$(Z,$,Y))},enqueueReplaceState:function($,Z,Q){$=$._reactInternals;var Y=M6($),U=x8(Y);U.tag=sz,U.payload=Z,Q!==void 0&&Q!==null&&(OY(Q),U.callback=Q),Z=m8($,U,Y),Z!==null&&(z4(Y,"this.replaceState()",$),y1(Z,$,Y),h$(Z,$,Y))},enqueueForceUpdate:function($,Z){$=$._reactInternals;var Q=M6($),Y=x8(Q);Y.tag=nz,Z!==void 0&&Z!==null&&(OY(Z),Y.callback=Z),Z=m8($,Y,Q),Z!==null&&(z4(Q,"this.forceUpdate()",$),y1(Z,$,Q),h$(Z,$,Q))}},s9=null,LN=null,PN=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."),e1=!1,HM={},FM={},WM={},zM={},n9=!1,MM={},xG={},TN={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null},wM=!1,RM=null;RM=new Set;var z8=!1,$5=!1,CN=!1,_M=typeof WeakSet==="function"?WeakSet:Set,F5=null,o9=null,a9=null,Z5=null,n5=!1,Y4=null,q5=!1,hZ=8192,_O={getCacheForType:function($){var Z=D1(a1),Q=Z.data.get($);return Q===void 0&&(Q=$(),Z.data.set($,Q)),Q},cacheSignal:function(){return D1(a1).controller.signal},getOwner:function(){return _6}};if(typeof Symbol==="function"&&Symbol.for){var uZ=Symbol.for;uZ("selector.component"),uZ("selector.has_pseudo_class"),uZ("selector.role"),uZ("selector.test_id"),uZ("selector.text")}var LO=[],PO=typeof WeakMap==="function"?WeakMap:Map,W5=0,Y5=2,O6=4,M8=0,xZ=1,T7=2,mG=3,U2=4,dG=6,LM=5,Z1=W5,_1=null,x0=null,u0=0,o5=0,pG=1,C7=2,mZ=3,PM=4,ON=5,dZ=6,cG=7,IN=8,O7=9,H1=o5,I6=null,K2=!1,i9=!1,VN=!1,u4=0,v1=M8,B2=0,H2=0,AN=0,a5=0,I7=0,pZ=null,p5=null,lG=!1,rG=0,TM=0,CM=300,sG=1/0,OM=500,cZ=null,p1=null,F2=null,nG=0,EN=1,SN=2,IM=3,W2=0,VM=1,AM=2,EM=3,SM=4,oG=5,J5=0,z2=null,t9=null,X4=0,DN=0,jN=-0,kN=null,DM=null,jM=null,N4=nG,kM=null,TO=50,lZ=0,vN=null,bN=!1,aG=!1,CO=50,V7=0,rZ=null,e9=!1,iG=null,vM=!1,bM=new Set,OO={},tG=null,$$=null,fN=!1,yN=!1,eG=!1,gN=!1,M2=0,hN={};(function(){for(var $=0;$<oX.length;$++){var Z=oX[$],Q=Z.toLowerCase();Z=Z[0].toUpperCase()+Z.slice(1),t6(Q,"on"+Z)}t6(Kz,"onAnimationEnd"),t6(Bz,"onAnimationIteration"),t6(Hz,"onAnimationStart"),t6("dblclick","onDoubleClick"),t6("focusin","onFocus"),t6("focusout","onBlur"),t6($O,"onTransitionRun"),t6(ZO,"onTransitionStart"),t6(JO,"onTransitionCancel"),t6(Fz,"onTransitionEnd")})(),U6("onMouseEnter",["mouseout","mouseover"]),U6("onMouseLeave",["mouseout","mouseover"]),U6("onPointerEnter",["pointerout","pointerover"]),U6("onPointerLeave",["pointerout","pointerover"]),A5("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),A5("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),A5("onBeforeInput",["compositionend","keypress","textInput","paste"]),A5("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),A5("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),A5("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var sZ="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(" "),uN=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(sZ)),$3="_reactListening"+Math.random().toString(36).slice(2),fM=!1,yM=!1,Z3=!1,gM=!1,J3=!1,Q3=!1,hM=!1,G3={},IO=/\r\n?/g,VO=/\u0000|\uFFFD/g,A7="http://www.w3.org/1999/xlink",xN="http://www.w3.org/XML/1998/namespace",AO="javascript:throw new Error('React form unexpectedly submitted.')",EO="suppressHydrationWarning",E7="&",q3="/&",nZ="$",oZ="/$",w2="$?",S7="$~",Z$="$!",SO="html",DO="body",jO="head",mN="F!",uM="F",xM="loading",kO="style",w8=0,J$=1,Y3=2,dN=null,pN=null,mM={dialog:!0,webview:!0},cN=null,aZ=void 0,dM=typeof setTimeout==="function"?setTimeout:void 0,vO=typeof clearTimeout==="function"?clearTimeout:void 0,D7=-1,pM=typeof Promise==="function"?Promise:void 0,bO=typeof queueMicrotask==="function"?queueMicrotask:typeof pM<"u"?function($){return pM.resolve(null).then($).catch(RT)}:dM,lN=null,j7=0,iZ=1,cM=2,lM=3,m6=4,d6=new Map,rM=new Set,R8=U1.d;U1.d={f:function(){var $=R8.f(),Z=z9();return $||Z},r:function($){var Z=j0($);Z!==null&&Z.tag===5&&Z.type==="form"?UH(Z):R8.r($)},D:function($){R8.D($),JW("dns-prefetch",$,null)},C:function($,Z){R8.C($,Z),JW("preconnect",$,Z)},L:function($,Z,Q){R8.L($,Z,Q);var Y=Q$;if(Y&&$&&Z){var U='link[rel="preload"][as="'+S6(Z)+'"]';Z==="image"?Q&&Q.imageSrcSet?(U+='[imagesrcset="'+S6(Q.imageSrcSet)+'"]',typeof Q.imageSizes==="string"&&(U+='[imagesizes="'+S6(Q.imageSizes)+'"]')):U+='[href="'+S6($)+'"]':U+='[href="'+S6($)+'"]';var B=U;switch(Z){case"style":B=R9($);break;case"script":B=_9($)}d6.has(B)||($=l0({rel:"preload",href:Z==="image"&&Q&&Q.imageSrcSet?void 0:$,as:Z},Q),d6.set(B,$),Y.querySelector(U)!==null||Z==="style"&&Y.querySelector(QZ(B))||Z==="script"&&Y.querySelector(GZ(B))||(Z=Y.createElement("link"),R5(Z,"link",$),_0(Z),Y.head.appendChild(Z)))}},m:function($,Z){R8.m($,Z);var Q=Q$;if(Q&&$){var Y=Z&&typeof Z.as==="string"?Z.as:"script",U='link[rel="modulepreload"][as="'+S6(Y)+'"][href="'+S6($)+'"]',B=U;switch(Y){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":B=_9($)}if(!d6.has(B)&&($=l0({rel:"modulepreload",href:$},Z),d6.set(B,$),Q.querySelector(U)===null)){switch(Y){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(Q.querySelector(GZ(B)))return}Y=Q.createElement("link"),R5(Y,"link",$),_0(Y),Q.head.appendChild(Y)}}},X:function($,Z){R8.X($,Z);var Q=Q$;if(Q&&$){var Y=J1(Q).hoistableScripts,U=_9($),B=Y.get(U);B||(B=Q.querySelector(GZ(U)),B||($=l0({src:$,async:!0},Z),(Z=d6.get(U))&&WX($,Z),B=Q.createElement("script"),_0(B),R5(B,"link",$),Q.head.appendChild(B)),B={type:"script",instance:B,count:1,state:null},Y.set(U,B))}},S:function($,Z,Q){R8.S($,Z,Q);var Y=Q$;if(Y&&$){var U=J1(Y).hoistableStyles,B=R9($);Z=Z||"default";var z=U.get(B);if(!z){var w={loading:j7,preload:null};if(z=Y.querySelector(QZ(B)))w.loading=iZ|m6;else{$=l0({rel:"stylesheet",href:$,"data-precedence":Z},Q),(Q=d6.get(B))&&FX($,Q);var L=z=Y.createElement("link");_0(L),R5(L,"link",$),L._p=new Promise(function(T,b){L.onload=T,L.onerror=b}),L.addEventListener("load",function(){w.loading|=iZ}),L.addEventListener("error",function(){w.loading|=cM}),w.loading|=m6,ZG(z,Z,Y)}z={type:"stylesheet",instance:z,count:1,state:w},U.set(B,z)}}},M:function($,Z){R8.M($,Z);var Q=Q$;if(Q&&$){var Y=J1(Q).hoistableScripts,U=_9($),B=Y.get(U);B||(B=Q.querySelector(GZ(U)),B||($=l0({src:$,async:!0,type:"module"},Z),(Z=d6.get(U))&&WX($,Z),B=Q.createElement("script"),_0(B),R5(B,"link",$),Q.head.appendChild(B)),B={type:"script",instance:B,count:1,state:null},Y.set(U,B))}}};var Q$=typeof document>"u"?null:document,X3=null,fO=60000,yO=800,gO=500,rN=0,sN=null,N3=null,k7=tT,tZ={$$typeof:S4,Provider:null,Consumer:null,_currentValue:k7,_currentValue2:k7,_threadCount:0},sM="%c%s%c",nM="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",oM="",U3=" ",hO=Function.prototype.bind,aM=!1,iM=null,tM=null,eM=null,$w=null,Zw=null,Jw=null,Qw=null,Gw=null,qw=null,Yw=null;iM=function($,Z,Q,Y){Z=J($,Z),Z!==null&&(Q=G(Z.memoizedState,Q,0,Y),Z.memoizedState=Q,Z.baseState=Q,$.memoizedProps=l0({},$.memoizedProps),Q=E5($,2),Q!==null&&y1(Q,$,2))},tM=function($,Z,Q){Z=J($,Z),Z!==null&&(Q=N(Z.memoizedState,Q,0),Z.memoizedState=Q,Z.baseState=Q,$.memoizedProps=l0({},$.memoizedProps),Q=E5($,2),Q!==null&&y1(Q,$,2))},eM=function($,Z,Q,Y){Z=J($,Z),Z!==null&&(Q=q(Z.memoizedState,Q,Y),Z.memoizedState=Q,Z.baseState=Q,$.memoizedProps=l0({},$.memoizedProps),Q=E5($,2),Q!==null&&y1(Q,$,2))},$w=function($,Z,Q){$.pendingProps=G($.memoizedProps,Z,0,Q),$.alternate&&($.alternate.pendingProps=$.pendingProps),Z=E5($,2),Z!==null&&y1(Z,$,2)},Zw=function($,Z){$.pendingProps=N($.memoizedProps,Z,0),$.alternate&&($.alternate.pendingProps=$.pendingProps),Z=E5($,2),Z!==null&&y1(Z,$,2)},Jw=function($,Z,Q){$.pendingProps=q($.memoizedProps,Z,Q),$.alternate&&($.alternate.pendingProps=$.pendingProps),Z=E5($,2),Z!==null&&y1(Z,$,2)},Qw=function($){var Z=E5($,2);Z!==null&&y1(Z,$,2)},Gw=function($){var Z=Z9(),Q=E5($,Z);Q!==null&&y1(Q,$,Z)},qw=function($){H=$},Yw=function($){K=$};var K3=!0,B3=null,nN=!1,R2=null,_2=null,L2=null,eZ=new Map,$J=new Map,P2=[],uO="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(" "),H3=null;if(YG.prototype.render=LX.prototype.render=function($){var Z=this._internalRoot;if(Z===null)throw Error("Cannot update an unmounted root.");var Q=arguments;typeof Q[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()."):I(Q[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 Q[1]<"u"&&console.error("You passed a second argument to root.render(...) but it only accepts one argument."),Q=$;var Y=Z.current,U=M6(Y);zX(Y,U,Q,Z,null,null)},YG.prototype.unmount=LX.prototype.unmount=function(){var $=arguments;if(typeof $[0]==="function"&&console.error("does not support a callback argument. To execute a side effect after rendering, declare it in a component body with useEffect()."),$=this._internalRoot,$!==null){this._internalRoot=null;var Z=$.containerInfo;(Z1&(Y5|O6))!==W5&&console.error("Attempted to synchronously unmount a root while React was already rendering. React cannot finish unmounting the root until the current render has completed, which may lead to a race condition."),zX($.current,2,null,$,null,null),z9(),Z[i8]=null}},YG.prototype.unstable_scheduleHydration=function($){if($){var Z=y();$={blockedOn:null,target:$,priority:Z};for(var Q=0;Q<P2.length&&Z!==0&&Z<P2[Q].priority;Q++);P2.splice(Q,0,$),Q===0&&MW($)}},function(){var $=z$.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"),U1.findDOMNode=function($){var Z=$._reactInternals;if(Z===void 0){if(typeof $.render==="function")throw Error("Unable to find node on an unmounted component.");throw $=Object.keys($).join(","),Error("Argument appears to not be a ReactComponent. Keys: "+$)}return $=a(Z),$=$!==null?Q0($):null,$=$===null?null:$.stateNode,$},!function(){var $={bundleType:1,version:"19.2.7",rendererPackageName:"react-dom",currentDispatcherRef:x,reconcilerVersion:"19.2.7"};return $.overrideHookState=iM,$.overrideHookStateDeletePath=tM,$.overrideHookStateRenamePath=eM,$.overrideProps=$w,$.overridePropsDeletePath=Zw,$.overridePropsRenamePath=Jw,$.scheduleUpdate=Qw,$.scheduleRetry=Gw,$.setErrorHandler=qw,$.setSuspenseHandler=Yw,$.scheduleRefresh=E,$.scheduleRoot=O,$.setRefreshHandler=V,$.getCurrentFiber=cT
|
|
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"),U1.findDOMNode=function($){var Z=$._reactInternals;if(Z===void 0){if(typeof $.render==="function")throw Error("Unable to find node on an unmounted component.");throw $=Object.keys($).join(","),Error("Argument appears to not be a ReactComponent. Keys: "+$)}return $=a(Z),$=$!==null?Q0($):null,$=$===null?null:$.stateNode,$},!function(){var $={bundleType:1,version:"19.2.7",rendererPackageName:"react-dom",currentDispatcherRef:x,reconcilerVersion:"19.2.7"};return $.overrideHookState=iM,$.overrideHookStateDeletePath=tM,$.overrideHookStateRenamePath=eM,$.overrideProps=$w,$.overridePropsDeletePath=Zw,$.overridePropsRenamePath=Jw,$.scheduleUpdate=Qw,$.scheduleRetry=Gw,$.setErrorHandler=qw,$.setSuspenseHandler=Yw,$.scheduleRefresh=E,$.scheduleRoot=O,$.setRefreshHandler=V,$.getCurrentFiber=cT,$9($)}()&&b4&&window.top===window.self&&(-1<navigator.userAgent.indexOf("Chrome")&&navigator.userAgent.indexOf("Edge")===-1||-1<navigator.userAgent.indexOf("Firefox"))){var Xw=window.location.protocol;/^(https?|file):$/.test(Xw)&&console.info("%cDownload the React DevTools for a better development experience: https://react.dev/link/react-devtools"+(Xw==="file:"?`
|
|
227
227
|
You might need to use a local HTTP server (instead of file://): https://react.dev/link/react-devtools-faq`:""),"font-weight:bold")}YS.createRoot=function($,Z){if(!I($))throw Error("Target container is not a DOM element.");LW($);var Q=!1,Y="",U=wH,B=RH,z=_H;return Z!==null&&Z!==void 0&&(Z.hydrate?console.warn("hydrate through createRoot is deprecated. Use ReactDOMClient.hydrateRoot(container, <App />) instead."):typeof Z==="object"&&Z!==null&&Z.$$typeof===E4&&console.error(`You passed a JSX element to createRoot. You probably meant to call root.render instead. Example usage:
|
|
228
228
|
|
|
229
229
|
let root = createRoot(domContainer);
|
|
230
|
-
root.render(<App />);`),Z.unstable_strictMode===!0&&(Q=!0),Z.identifierPrefix!==void 0&&(Y=Z.identifierPrefix),Z.onUncaughtError!==void 0&&(U=Z.onUncaughtError),Z.onCaughtError!==void 0&&(B=Z.onCaughtError),Z.onRecoverableError!==void 0&&(z=Z.onRecoverableError)),Z=UW($,1,!1,null,null,Q,Y,null,U,B,z,_W),$[i8]=Z.current,ZX($),new LX(Z)},YS.hydrateRoot=function($,Z,Q){if(!I($))throw Error("Target container is not a DOM element.");LW($),Z===void 0&&console.error("Must provide initial children as second argument to hydrateRoot. Example usage: hydrateRoot(domContainer, <App />)");var Y=!1,U="",B=wH,z=RH,w=_H,L=null;return Q!==null&&Q!==void 0&&(Q.unstable_strictMode===!0&&(Y=!0),Q.identifierPrefix!==void 0&&(U=Q.identifierPrefix),Q.onUncaughtError!==void 0&&(B=Q.onUncaughtError),Q.onCaughtError!==void 0&&(z=Q.onCaughtError),Q.onRecoverableError!==void 0&&(w=Q.onRecoverableError),Q.formState!==void 0&&(L=Q.formState)),Z=UW($,1,!0,Z,Q!=null?Q:null,Y,U,L,B,z,w,_W),Z.context=KW(null),Q=Z.current,Y=M6(Q),Y=
|
|
230
|
+
root.render(<App />);`),Z.unstable_strictMode===!0&&(Q=!0),Z.identifierPrefix!==void 0&&(Y=Z.identifierPrefix),Z.onUncaughtError!==void 0&&(U=Z.onUncaughtError),Z.onCaughtError!==void 0&&(B=Z.onCaughtError),Z.onRecoverableError!==void 0&&(z=Z.onRecoverableError)),Z=UW($,1,!1,null,null,Q,Y,null,U,B,z,_W),$[i8]=Z.current,ZX($),new LX(Z)},YS.hydrateRoot=function($,Z,Q){if(!I($))throw Error("Target container is not a DOM element.");LW($),Z===void 0&&console.error("Must provide initial children as second argument to hydrateRoot. Example usage: hydrateRoot(domContainer, <App />)");var Y=!1,U="",B=wH,z=RH,w=_H,L=null;return Q!==null&&Q!==void 0&&(Q.unstable_strictMode===!0&&(Y=!0),Q.identifierPrefix!==void 0&&(U=Q.identifierPrefix),Q.onUncaughtError!==void 0&&(B=Q.onUncaughtError),Q.onCaughtError!==void 0&&(z=Q.onCaughtError),Q.onRecoverableError!==void 0&&(w=Q.onRecoverableError),Q.formState!==void 0&&(L=Q.formState)),Z=UW($,1,!0,Z,Q!=null?Q:null,Y,U,L,B,z,w,_W),Z.context=KW(null),Q=Z.current,Y=M6(Q),Y=n2(Y),U=x8(Y),U.callback=null,m8(Q,U,Y),z4(Y,"hydrateRoot()",null),Q=Y,Z.current.lanes=Q,v8(Z,Q),V4(Z),$[i8]=Z.current,ZX($),new YG(Z)},YS.version="19.2.7",typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop==="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()});var f_=T2((Rk,b_)=>{var XS=s(v_());b_.exports=XS});var U0=T2((fS)=>{var l7=s(L1());(function(){function J(k){if(k==null)return null;if(typeof k==="function")return k.$$typeof===d?null:k.displayName||k.name||null;if(typeof k==="string")return k;switch(k){case V:return"Fragment";case j:return"Profiler";case I:return"StrictMode";case a:return"Suspense";case Q0:return"SuspenseList";case X0:return"Activity"}if(typeof k==="object")switch(typeof k.tag==="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),k.$$typeof){case E:return"Portal";case p:return k.displayName||"Context";case h:return(k._context.displayName||"Context")+".Consumer";case n:var o=k.render;return k=k.displayName,k||(k=o.displayName||o.name||"",k=k!==""?"ForwardRef("+k+")":"ForwardRef"),k;case t:return o=k.displayName||null,o!==null?o:J(k.type)||"Memo";case i:o=k._payload,k=k._init;try{return J(k(o))}catch(W0){}}return null}function G(k){return""+k}function q(k){try{G(k);var o=!1}catch(p0){o=!0}if(o){o=console;var W0=o.error,z0=typeof Symbol==="function"&&Symbol.toStringTag&&k[Symbol.toStringTag]||k.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.",z0),G(k)}}function X(k){if(k===V)return"<>";if(typeof k==="object"&&k!==null&&k.$$typeof===i)return"<...>";try{var o=J(k);return o?"<"+o+">":"<...>"}catch(W0){return"<...>"}}function N(){var k=H0.A;return k===null?null:k.getOwner()}function K(){return Error("react-stack-top-frame")}function H(k){if(P0.call(k,"key")){var o=Object.getOwnPropertyDescriptor(k,"key").get;if(o&&o.isReactWarning)return!1}return k.key!==void 0}function F(k,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(k,"key",{get:W0,configurable:!0})}function W(){var k=J(this.type);return Y0[k]||(Y0[k]=!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.")),k=this.props.ref,k!==void 0?k:null}function M(k,o,W0,z0,p0,m1){var b0=W0.ref;return k={$$typeof:O,type:k,key:o,props:W0,_owner:z0},(b0!==void 0?b0:null)!==null?Object.defineProperty(k,"ref",{enumerable:!1,get:W}):Object.defineProperty(k,"ref",{enumerable:!1,value:null}),k._store={},Object.defineProperty(k._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(k,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(k,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:p0}),Object.defineProperty(k,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:m1}),Object.freeze&&(Object.freeze(k.props),Object.freeze(k)),k}function R(k,o,W0,z0,p0,m1){var b0=o.children;if(b0!==void 0)if(z0)if(O0(b0)){for(z0=0;z0<b0.length;z0++)_(b0[z0]);Object.freeze&&Object.freeze(b0)}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 _(b0);if(P0.call(o,"key")){b0=J(k);var o1=Object.keys(o).filter(function(i6){return i6!=="key"});z0=0<o1.length?"{key: someKey, "+o1.join(": ..., ")+": ...}":"{key: someKey}",d0[b0+z0]||(o1=0<o1.length?"{"+o1.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} />`,z0,b0,o1,b0),d0[b0+z0]=!0)}if(b0=null,W0!==void 0&&(q(W0),b0=""+W0),H(o)&&(q(o.key),b0=""+o.key),"key"in o){W0={};for(var V5 in o)V5!=="key"&&(W0[V5]=o[V5])}else W0=o;return b0&&F(W0,typeof k==="function"?k.displayName||k.name||"Unknown":k),M(k,b0,W0,N(),p0,m1)}function _(k){P(k)?k._store&&(k._store.validated=1):typeof k==="object"&&k!==null&&k.$$typeof===i&&(k._payload.status==="fulfilled"?P(k._payload.value)&&k._payload.value._store&&(k._payload.value._store.validated=1):k._store&&(k._store.validated=1))}function P(k){return typeof k==="object"&&k!==null&&k.$$typeof===O}var O=Symbol.for("react.transitional.element"),E=Symbol.for("react.portal"),V=Symbol.for("react.fragment"),I=Symbol.for("react.strict_mode"),j=Symbol.for("react.profiler"),h=Symbol.for("react.consumer"),p=Symbol.for("react.context"),n=Symbol.for("react.forward_ref"),a=Symbol.for("react.suspense"),Q0=Symbol.for("react.suspense_list"),t=Symbol.for("react.memo"),i=Symbol.for("react.lazy"),X0=Symbol.for("react.activity"),d=Symbol.for("react.client.reference"),H0=
|
|
235
|
+
<%s key={someKey} {...props} />`,z0,b0,o1,b0),d0[b0+z0]=!0)}if(b0=null,W0!==void 0&&(q(W0),b0=""+W0),H(o)&&(q(o.key),b0=""+o.key),"key"in o){W0={};for(var V5 in o)V5!=="key"&&(W0[V5]=o[V5])}else W0=o;return b0&&F(W0,typeof k==="function"?k.displayName||k.name||"Unknown":k),M(k,b0,W0,N(),p0,m1)}function _(k){P(k)?k._store&&(k._store.validated=1):typeof k==="object"&&k!==null&&k.$$typeof===i&&(k._payload.status==="fulfilled"?P(k._payload.value)&&k._payload.value._store&&(k._payload.value._store.validated=1):k._store&&(k._store.validated=1))}function P(k){return typeof k==="object"&&k!==null&&k.$$typeof===O}var O=Symbol.for("react.transitional.element"),E=Symbol.for("react.portal"),V=Symbol.for("react.fragment"),I=Symbol.for("react.strict_mode"),j=Symbol.for("react.profiler"),h=Symbol.for("react.consumer"),p=Symbol.for("react.context"),n=Symbol.for("react.forward_ref"),a=Symbol.for("react.suspense"),Q0=Symbol.for("react.suspense_list"),t=Symbol.for("react.memo"),i=Symbol.for("react.lazy"),X0=Symbol.for("react.activity"),d=Symbol.for("react.client.reference"),H0=l7.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,P0=Object.prototype.hasOwnProperty,O0=Array.isArray,v0=console.createTask?console.createTask:function(){return null};l7={react_stack_bottom_frame:function(k){return k()}};var l,Y0={},F0=l7.react_stack_bottom_frame.bind(l7,K)(),a0=v0(X(K)),d0={};fS.Fragment=V,fS.jsxDEV=function(k,o,W0,z0){var p0=1e4>H0.recentlyCreatedOwnerStacks++;return R(k,o,W0,z0,p0?Error("react-stack-top-frame"):F0,p0?v0(X(k)):a0)}})()});var RL=T2((lS)=>{var s7=s(L1());(function(){function J(k){if(k==null)return null;if(typeof k==="function")return k.$$typeof===d?null:k.displayName||k.name||null;if(typeof k==="string")return k;switch(k){case V:return"Fragment";case j:return"Profiler";case I:return"StrictMode";case a:return"Suspense";case Q0:return"SuspenseList";case X0:return"Activity"}if(typeof k==="object")switch(typeof k.tag==="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),k.$$typeof){case E:return"Portal";case p:return k.displayName||"Context";case h:return(k._context.displayName||"Context")+".Consumer";case n:var o=k.render;return k=k.displayName,k||(k=o.displayName||o.name||"",k=k!==""?"ForwardRef("+k+")":"ForwardRef"),k;case t:return o=k.displayName||null,o!==null?o:J(k.type)||"Memo";case i:o=k._payload,k=k._init;try{return J(k(o))}catch(W0){}}return null}function G(k){return""+k}function q(k){try{G(k);var o=!1}catch(p0){o=!0}if(o){o=console;var W0=o.error,z0=typeof Symbol==="function"&&Symbol.toStringTag&&k[Symbol.toStringTag]||k.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.",z0),G(k)}}function X(k){if(k===V)return"<>";if(typeof k==="object"&&k!==null&&k.$$typeof===i)return"<...>";try{var o=J(k);return o?"<"+o+">":"<...>"}catch(W0){return"<...>"}}function N(){var k=H0.A;return k===null?null:k.getOwner()}function K(){return Error("react-stack-top-frame")}function H(k){if(P0.call(k,"key")){var o=Object.getOwnPropertyDescriptor(k,"key").get;if(o&&o.isReactWarning)return!1}return k.key!==void 0}function F(k,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(k,"key",{get:W0,configurable:!0})}function W(){var k=J(this.type);return Y0[k]||(Y0[k]=!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.")),k=this.props.ref,k!==void 0?k:null}function M(k,o,W0,z0,p0,m1){var b0=W0.ref;return k={$$typeof:O,type:k,key:o,props:W0,_owner:z0},(b0!==void 0?b0:null)!==null?Object.defineProperty(k,"ref",{enumerable:!1,get:W}):Object.defineProperty(k,"ref",{enumerable:!1,value:null}),k._store={},Object.defineProperty(k._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(k,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(k,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:p0}),Object.defineProperty(k,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:m1}),Object.freeze&&(Object.freeze(k.props),Object.freeze(k)),k}function R(k,o,W0,z0,p0,m1){var b0=o.children;if(b0!==void 0)if(z0)if(O0(b0)){for(z0=0;z0<b0.length;z0++)_(b0[z0]);Object.freeze&&Object.freeze(b0)}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 _(b0);if(P0.call(o,"key")){b0=J(k);var o1=Object.keys(o).filter(function(i6){return i6!=="key"});z0=0<o1.length?"{key: someKey, "+o1.join(": ..., ")+": ...}":"{key: someKey}",d0[b0+z0]||(o1=0<o1.length?"{"+o1.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} />`,z0,b0,o1,b0),d0[b0+z0]=!0)}if(b0=null,W0!==void 0&&(q(W0),b0=""+W0),H(o)&&(q(o.key),b0=""+o.key),"key"in o){W0={};for(var V5 in o)V5!=="key"&&(W0[V5]=o[V5])}else W0=o;return b0&&F(W0,typeof k==="function"?k.displayName||k.name||"Unknown":k),M(k,b0,W0,N(),p0,m1)}function _(k){P(k)?k._store&&(k._store.validated=1):typeof k==="object"&&k!==null&&k.$$typeof===i&&(k._payload.status==="fulfilled"?P(k._payload.value)&&k._payload.value._store&&(k._payload.value._store.validated=1):k._store&&(k._store.validated=1))}function P(k){return typeof k==="object"&&k!==null&&k.$$typeof===O}var O=Symbol.for("react.transitional.element"),E=Symbol.for("react.portal"),V=Symbol.for("react.fragment"),I=Symbol.for("react.strict_mode"),j=Symbol.for("react.profiler"),h=Symbol.for("react.consumer"),p=Symbol.for("react.context"),n=Symbol.for("react.forward_ref"),a=Symbol.for("react.suspense"),Q0=Symbol.for("react.suspense_list"),t=Symbol.for("react.memo"),i=Symbol.for("react.lazy"),X0=Symbol.for("react.activity"),d=Symbol.for("react.client.reference"),H0=
|
|
240
|
+
<%s key={someKey} {...props} />`,z0,b0,o1,b0),d0[b0+z0]=!0)}if(b0=null,W0!==void 0&&(q(W0),b0=""+W0),H(o)&&(q(o.key),b0=""+o.key),"key"in o){W0={};for(var V5 in o)V5!=="key"&&(W0[V5]=o[V5])}else W0=o;return b0&&F(W0,typeof k==="function"?k.displayName||k.name||"Unknown":k),M(k,b0,W0,N(),p0,m1)}function _(k){P(k)?k._store&&(k._store.validated=1):typeof k==="object"&&k!==null&&k.$$typeof===i&&(k._payload.status==="fulfilled"?P(k._payload.value)&&k._payload.value._store&&(k._payload.value._store.validated=1):k._store&&(k._store.validated=1))}function P(k){return typeof k==="object"&&k!==null&&k.$$typeof===O}var O=Symbol.for("react.transitional.element"),E=Symbol.for("react.portal"),V=Symbol.for("react.fragment"),I=Symbol.for("react.strict_mode"),j=Symbol.for("react.profiler"),h=Symbol.for("react.consumer"),p=Symbol.for("react.context"),n=Symbol.for("react.forward_ref"),a=Symbol.for("react.suspense"),Q0=Symbol.for("react.suspense_list"),t=Symbol.for("react.memo"),i=Symbol.for("react.lazy"),X0=Symbol.for("react.activity"),d=Symbol.for("react.client.reference"),H0=s7.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,P0=Object.prototype.hasOwnProperty,O0=Array.isArray,v0=console.createTask?console.createTask:function(){return null};s7={react_stack_bottom_frame:function(k){return k()}};var l,Y0={},F0=s7.react_stack_bottom_frame.bind(s7,K)(),a0=v0(X(K)),d0={};lS.Fragment=V,lS.jsx=function(k,o,W0){var z0=1e4>H0.recentlyCreatedOwnerStacks++;return R(k,o,W0,!1,z0?Error("react-stack-top-frame"):F0,z0?v0(X(k)):a0)},lS.jsxs=function(k,o,W0){var z0=1e4>H0.recentlyCreatedOwnerStacks++;return R(k,o,W0,!0,z0?Error("react-stack-top-frame"):F0,z0?v0(X(k)):a0)}})()});/*!
|
|
241
241
|
* @kurkle/color v0.3.4
|
|
242
242
|
* https://github.com/kurkle/color#readme
|
|
243
243
|
* (c) 2024 Jukka Kurkela
|
|
244
244
|
* Released under the MIT License
|
|
245
|
-
*/function
|
|
245
|
+
*/function JJ(J){return J+0.5|0}var C2=(J,G,q)=>Math.max(Math.min(J,q),G);function ZJ(J){return C2(JJ(J*2.55),0,255)}function O2(J){return C2(JJ(J*255),0,255)}function L8(J){return C2(JJ(J/2.55)/100,0,1)}function Uw(J){return C2(JJ(J*100),0,100)}var p6={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,A:10,B:11,C:12,D:13,E:14,F:15,a:10,b:11,c:12,d:13,e:14,f:15},aN=[..."0123456789ABCDEF"],nO=(J)=>aN[J&15],oO=(J)=>aN[(J&240)>>4]+aN[J&15],F3=(J)=>(J&240)>>4===(J&15),aO=(J)=>F3(J.r)&&F3(J.g)&&F3(J.b)&&F3(J.a);function iO(J){var G=J.length,q;if(J[0]==="#"){if(G===4||G===5)q={r:255&p6[J[1]]*17,g:255&p6[J[2]]*17,b:255&p6[J[3]]*17,a:G===5?p6[J[4]]*17:255};else if(G===7||G===9)q={r:p6[J[1]]<<4|p6[J[2]],g:p6[J[3]]<<4|p6[J[4]],b:p6[J[5]]<<4|p6[J[6]],a:G===9?p6[J[7]]<<4|p6[J[8]]:255}}return q}var tO=(J,G)=>J<255?G(J):"";function eO(J){var G=aO(J)?nO:oO;return J?"#"+G(J.r)+G(J.g)+G(J.b)+tO(J.a,G):void 0}var $I=/^(hsla?|hwb|hsv)\(\s*([-+.e\d]+)(?:deg)?[\s,]+([-+.e\d]+)%[\s,]+([-+.e\d]+)%(?:[\s,]+([-+.e\d]+)(%)?)?\s*\)$/;function Fw(J,G,q){let X=G*Math.min(q,1-q),N=(K,H=(K+J/30)%12)=>q-X*Math.max(Math.min(H-3,9-H,1),-1);return[N(0),N(8),N(4)]}function ZI(J,G,q){let X=(N,K=(N+J/60)%6)=>q-q*G*Math.max(Math.min(K,4-K,1),0);return[X(5),X(3),X(1)]}function JI(J,G,q){let X=Fw(J,1,0.5),N;if(G+q>1)N=1/(G+q),G*=N,q*=N;for(N=0;N<3;N++)X[N]*=1-G-q,X[N]+=G;return X}function QI(J,G,q,X,N){if(J===N)return(G-q)/X+(G<q?6:0);if(G===N)return(q-J)/X+2;return(J-G)/X+4}function iN(J){let q=J.r/255,X=J.g/255,N=J.b/255,K=Math.max(q,X,N),H=Math.min(q,X,N),F=(K+H)/2,W,M,R;if(K!==H)R=K-H,M=F>0.5?R/(2-K-H):R/(K+H),W=QI(q,X,N,R,K),W=W*60+0.5;return[W|0,M||0,F]}function tN(J,G,q,X){return(Array.isArray(G)?J(G[0],G[1],G[2]):J(G,q,X)).map(O2)}function eN(J,G,q){return tN(Fw,J,G,q)}function GI(J,G,q){return tN(JI,J,G,q)}function qI(J,G,q){return tN(ZI,J,G,q)}function Ww(J){return(J%360+360)%360}function YI(J){let G=$I.exec(J),q=255,X;if(!G)return;if(G[5]!==X)q=G[6]?ZJ(+G[5]):O2(+G[5]);let N=Ww(+G[2]),K=+G[3]/100,H=+G[4]/100;if(G[1]==="hwb")X=GI(N,K,H);else if(G[1]==="hsv")X=qI(N,K,H);else X=eN(N,K,H);return{r:X[0],g:X[1],b:X[2],a:q}}function XI(J,G){var q=iN(J);q[0]=Ww(q[0]+G),q=eN(q),J.r=q[0],J.g=q[1],J.b=q[2]}function NI(J){if(!J)return;let G=iN(J),q=G[0],X=Uw(G[1]),N=Uw(G[2]);return J.a<255?`hsla(${q}, ${X}%, ${N}%, ${L8(J.a)})`:`hsl(${q}, ${X}%, ${N}%)`}var Kw={x:"dark",Z:"light",Y:"re",X:"blu",W:"gr",V:"medium",U:"slate",A:"ee",T:"ol",S:"or",B:"ra",C:"lateg",D:"ights",R:"in",Q:"turquois",E:"hi",P:"ro",O:"al",N:"le",M:"de",L:"yello",F:"en",K:"ch",G:"arks",H:"ea",I:"ightg",J:"wh"},Bw={OiceXe:"f0f8ff",antiquewEte:"faebd7",aqua:"ffff",aquamarRe:"7fffd4",azuY:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"0",blanKedOmond:"ffebcd",Xe:"ff",XeviTet:"8a2be2",bPwn:"a52a2a",burlywood:"deb887",caMtXe:"5f9ea0",KartYuse:"7fff00",KocTate:"d2691e",cSO:"ff7f50",cSnflowerXe:"6495ed",cSnsilk:"fff8dc",crimson:"dc143c",cyan:"ffff",xXe:"8b",xcyan:"8b8b",xgTMnPd:"b8860b",xWay:"a9a9a9",xgYF:"6400",xgYy:"a9a9a9",xkhaki:"bdb76b",xmagFta:"8b008b",xTivegYF:"556b2f",xSange:"ff8c00",xScEd:"9932cc",xYd:"8b0000",xsOmon:"e9967a",xsHgYF:"8fbc8f",xUXe:"483d8b",xUWay:"2f4f4f",xUgYy:"2f4f4f",xQe:"ced1",xviTet:"9400d3",dAppRk:"ff1493",dApskyXe:"bfff",dimWay:"696969",dimgYy:"696969",dodgerXe:"1e90ff",fiYbrick:"b22222",flSOwEte:"fffaf0",foYstWAn:"228b22",fuKsia:"ff00ff",gaRsbSo:"dcdcdc",ghostwEte:"f8f8ff",gTd:"ffd700",gTMnPd:"daa520",Way:"808080",gYF:"8000",gYFLw:"adff2f",gYy:"808080",honeyMw:"f0fff0",hotpRk:"ff69b4",RdianYd:"cd5c5c",Rdigo:"4b0082",ivSy:"fffff0",khaki:"f0e68c",lavFMr:"e6e6fa",lavFMrXsh:"fff0f5",lawngYF:"7cfc00",NmoncEffon:"fffacd",ZXe:"add8e6",ZcSO:"f08080",Zcyan:"e0ffff",ZgTMnPdLw:"fafad2",ZWay:"d3d3d3",ZgYF:"90ee90",ZgYy:"d3d3d3",ZpRk:"ffb6c1",ZsOmon:"ffa07a",ZsHgYF:"20b2aa",ZskyXe:"87cefa",ZUWay:"778899",ZUgYy:"778899",ZstAlXe:"b0c4de",ZLw:"ffffe0",lime:"ff00",limegYF:"32cd32",lRF:"faf0e6",magFta:"ff00ff",maPon:"800000",VaquamarRe:"66cdaa",VXe:"cd",VScEd:"ba55d3",VpurpN:"9370db",VsHgYF:"3cb371",VUXe:"7b68ee",VsprRggYF:"fa9a",VQe:"48d1cc",VviTetYd:"c71585",midnightXe:"191970",mRtcYam:"f5fffa",mistyPse:"ffe4e1",moccasR:"ffe4b5",navajowEte:"ffdead",navy:"80",Tdlace:"fdf5e6",Tive:"808000",TivedBb:"6b8e23",Sange:"ffa500",SangeYd:"ff4500",ScEd:"da70d6",pOegTMnPd:"eee8aa",pOegYF:"98fb98",pOeQe:"afeeee",pOeviTetYd:"db7093",papayawEp:"ffefd5",pHKpuff:"ffdab9",peru:"cd853f",pRk:"ffc0cb",plum:"dda0dd",powMrXe:"b0e0e6",purpN:"800080",YbeccapurpN:"663399",Yd:"ff0000",Psybrown:"bc8f8f",PyOXe:"4169e1",saddNbPwn:"8b4513",sOmon:"fa8072",sandybPwn:"f4a460",sHgYF:"2e8b57",sHshell:"fff5ee",siFna:"a0522d",silver:"c0c0c0",skyXe:"87ceeb",UXe:"6a5acd",UWay:"708090",UgYy:"708090",snow:"fffafa",sprRggYF:"ff7f",stAlXe:"4682b4",tan:"d2b48c",teO:"8080",tEstN:"d8bfd8",tomato:"ff6347",Qe:"40e0d0",viTet:"ee82ee",JHt:"f5deb3",wEte:"ffffff",wEtesmoke:"f5f5f5",Lw:"ffff00",LwgYF:"9acd32"};function UI(){let J={},G=Object.keys(Bw),q=Object.keys(Kw),X,N,K,H,F;for(X=0;X<G.length;X++){H=F=G[X];for(N=0;N<q.length;N++)K=q[N],F=F.replace(K,Kw[K]);K=parseInt(Bw[H],16),J[F]=[K>>16&255,K>>8&255,K&255]}return J}var W3;function KI(J){if(!W3)W3=UI(),W3.transparent=[0,0,0,0];let G=W3[J.toLowerCase()];return G&&{r:G[0],g:G[1],b:G[2],a:G.length===4?G[3]:255}}var BI=/^rgba?\(\s*([-+.\d]+)(%)?[\s,]+([-+.e\d]+)(%)?[\s,]+([-+.e\d]+)(%)?(?:[\s,/]+([-+.e\d]+)(%)?)?\s*\)$/;function HI(J){let G=BI.exec(J),q=255,X,N,K;if(!G)return;if(G[7]!==X){let H=+G[7];q=G[8]?ZJ(H):C2(H*255,0,255)}return X=+G[1],N=+G[3],K=+G[5],X=255&(G[2]?ZJ(X):C2(X,0,255)),N=255&(G[4]?ZJ(N):C2(N,0,255)),K=255&(G[6]?ZJ(K):C2(K,0,255)),{r:X,g:N,b:K,a:q}}function FI(J){return J&&(J.a<255?`rgba(${J.r}, ${J.g}, ${J.b}, ${L8(J.a)})`:`rgb(${J.r}, ${J.g}, ${J.b})`)}var oN=(J)=>J<=0.0031308?J*12.92:Math.pow(J,0.4166666666666667)*1.055-0.055,G$=(J)=>J<=0.04045?J/12.92:Math.pow((J+0.055)/1.055,2.4);function WI(J,G,q){let X=G$(L8(J.r)),N=G$(L8(J.g)),K=G$(L8(J.b));return{r:O2(oN(X+q*(G$(L8(G.r))-X))),g:O2(oN(N+q*(G$(L8(G.g))-N))),b:O2(oN(K+q*(G$(L8(G.b))-K))),a:J.a+q*(G.a-J.a)}}function z3(J,G,q){if(J){let X=iN(J);X[G]=Math.max(0,Math.min(X[G]+X[G]*q,G===0?360:1)),X=eN(X),J.r=X[0],J.g=X[1],J.b=X[2]}}function zw(J,G){return J?Object.assign(G||{},J):J}function Hw(J){var G={r:0,g:0,b:0,a:255};if(Array.isArray(J)){if(J.length>=3){if(G={r:J[0],g:J[1],b:J[2],a:255},J.length>3)G.a=O2(J[3])}}else G=zw(J,{r:0,g:0,b:0,a:1}),G.a=O2(G.a);return G}function zI(J){if(J.charAt(0)==="r")return HI(J);return YI(J)}class q${constructor(J){if(J instanceof q$)return J;let G=typeof J,q;if(G==="object")q=Hw(J);else if(G==="string")q=iO(J)||KI(J)||zI(J);this._rgb=q,this._valid=!!q}get valid(){return this._valid}get rgb(){var J=zw(this._rgb);if(J)J.a=L8(J.a);return J}set rgb(J){this._rgb=Hw(J)}rgbString(){return this._valid?FI(this._rgb):void 0}hexString(){return this._valid?eO(this._rgb):void 0}hslString(){return this._valid?NI(this._rgb):void 0}mix(J,G){if(J){let q=this.rgb,X=J.rgb,N,K=G===N?0.5:G,H=2*K-1,F=q.a-X.a,W=((H*F===-1?H:(H+F)/(1+H*F))+1)/2;N=1-W,q.r=255&W*q.r+N*X.r+0.5,q.g=255&W*q.g+N*X.g+0.5,q.b=255&W*q.b+N*X.b+0.5,q.a=K*q.a+(1-K)*X.a,this.rgb=q}return this}interpolate(J,G){if(J)this._rgb=WI(this._rgb,J._rgb,G);return this}clone(){return new q$(this.rgb)}alpha(J){return this._rgb.a=O2(J),this}clearer(J){let G=this._rgb;return G.a*=1-J,this}greyscale(){let J=this._rgb,G=JJ(J.r*0.3+J.g*0.59+J.b*0.11);return J.r=J.g=J.b=G,this}opaquer(J){let G=this._rgb;return G.a*=1+J,this}negate(){let J=this._rgb;return J.r=255-J.r,J.g=255-J.g,J.b=255-J.b,this}lighten(J){return z3(this._rgb,2,J),this}darken(J){return z3(this._rgb,2,-J),this}saturate(J){return z3(this._rgb,1,J),this}desaturate(J){return z3(this._rgb,1,-J),this}rotate(J){return XI(this._rgb,J),this}}/*!
|
|
246
246
|
* Chart.js v4.5.1
|
|
247
247
|
* https://www.chartjs.org
|
|
248
248
|
* (c) 2025 Chart.js Contributors
|
|
249
249
|
* Released under the MIT License
|
|
250
|
-
*/function m4(){}var Vw=(()=>{let J=0;return()=>J++})();function Q1(J){return J===null||J===void 0}function E1(J){if(Array.isArray&&Array.isArray(J))return!0;let G=Object.prototype.toString.call(J);if(G.slice(0,7)==="[object"&&G.slice(-6)==="Array]")return!0;return!1}function $1(J){return J!==null&&Object.prototype.toString.call(J)==="[object Object]"}function h1(J){return(typeof J==="number"||J instanceof Number)&&isFinite(+J)}function Z6(J,G){return h1(J)?J:G}function s0(J,G){return typeof J>"u"?G:J}var Aw=(J,G)=>typeof J==="string"&&J.endsWith("%")?parseFloat(J)/100*G:+J;function O1(J,G,q){if(J&&typeof J.call==="function")return J.apply(q,G)}function F1(J,G,q,X){let N,K,H;if(E1(J))if(K=J.length,X)for(N=K-1;N>=0;N--)G.call(q,J[N],N);else for(N=0;N<K;N++)G.call(q,J[N],N);else if($1(J)){H=Object.keys(J),K=H.length;for(N=0;N<K;N++)G.call(q,J[H[N]],H[N])}}function GJ(J,G){let q,X,N,K;if(!J||!G||J.length!==G.length)return!1;for(q=0,X=J.length;q<X;++q)if(N=J[q],K=G[q],N.datasetIndex!==K.datasetIndex||N.index!==K.index)return!1;return!0}function _3(J){if(E1(J))return J.map(_3);if($1(J)){let G=Object.create(null),q=Object.keys(J),X=q.length,N=0;for(;N<X;++N)G[q[N]]=_3(J[q[N]]);return G}return J}function Ew(J){return["__proto__","prototype","constructor"].indexOf(J)===-1}function MI(J,G,q,X){if(!Ew(J))return;let N=G[J],K=q[J];if($1(N)&&$1(K))Y$(N,K,X);else G[J]=_3(K)}function Y$(J,G,q){let X=E1(G)?G:[G],N=X.length;if(!$1(J))return J;q=q||{};let K=q.merger||MI,H;for(let F=0;F<N;++F){if(H=X[F],!$1(H))continue;let W=Object.keys(H);for(let M=0,R=W.length;M<R;++M)K(W[M],J,H,q)}return J}function N$(J,G){return Y$(J,G,{merger:wI})}function wI(J,G,q){if(!Ew(J))return;let X=G[J],N=q[J];if($1(X)&&$1(N))N$(X,N);else if(!Object.prototype.hasOwnProperty.call(G,J))G[J]=_3(N)}var Mw={"":(J)=>J,x:(J)=>J.x,y:(J)=>J.y};function RI(J){let G=J.split("."),q=[],X="";for(let N of G)if(X+=N,X.endsWith("\\"))X=X.slice(0,-1)+".";else q.push(X),X="";return q}function _I(J){let G=RI(J);return(q)=>{for(let X of G){if(X==="")break;q=q&&q[X]}return q}}function f7(J,G){return(Mw[G]||(Mw[G]=_I(G)))(J)}function C3(J){return J.charAt(0).toUpperCase()+J.slice(1)}var U$=(J)=>typeof J<"u",P8=(J)=>typeof J==="function",JU=(J,G)=>{if(J.size!==G.size)return!1;for(let q of J)if(!G.has(q))return!1;return!0};function Sw(J){return J.type==="mouseup"||J.type==="click"||J.type==="contextmenu"}var r1=Math.PI,e5=2*r1,LI=e5+r1,L3=Number.POSITIVE_INFINITY,PI=r1/180,t5=r1/2,k7=r1/4,ww=r1*2/3,T8=Math.log10,U4=Math.sign;function K$(J,G,q){return Math.abs(J-G)<q}function QU(J){let G=Math.round(J);J=K$(J,G,J/1000)?G:J;let q=Math.pow(10,Math.floor(T8(J))),X=J/q;return(X<=1?1:X<=2?2:X<=5?5:10)*q}function Dw(J){let G=[],q=Math.sqrt(J),X;for(X=1;X<q;X++)if(J%X===0)G.push(X),G.push(J/X);if(q===(q|0))G.push(q);return G.sort((N,K)=>N-K).pop(),G}function TI(J){return typeof J==="symbol"||typeof J==="object"&&J!==null&&!((Symbol.toPrimitive in J)||("toString"in J)||("valueOf"in J))}function B$(J){return!TI(J)&&!isNaN(parseFloat(J))&&isFinite(J)}function jw(J,G){let q=Math.round(J);return q-G<=J&&q+G>=J}function GU(J,G,q){let X,N,K;for(X=0,N=J.length;X<N;X++)if(K=J[X][q],!isNaN(K))G.min=Math.min(G.min,K),G.max=Math.max(G.max,K)}function C8(J){return J*(r1/180)}function O3(J){return J*(180/r1)}function qU(J){if(!h1(J))return;let G=1,q=0;while(Math.round(J*G)/G!==J)G*=10,q++;return q}function kw(J,G){let q=G.x-J.x,X=G.y-J.y,N=Math.sqrt(q*q+X*X),K=Math.atan2(X,q);if(K<-0.5*r1)K+=e5;return{angle:K,distance:N}}function P3(J,G){return Math.sqrt(Math.pow(G.x-J.x,2)+Math.pow(G.y-J.y,2))}function CI(J,G){return(J-G+LI)%e5-r1}function i5(J){return(J%e5+e5)%e5}function YU(J,G,q,X){let N=i5(J),K=i5(G),H=i5(q),F=i5(K-N),W=i5(H-N),M=i5(N-K),R=i5(N-H);return N===K||N===H||X&&K===H||F>W&&M<R}function $6(J,G,q){return Math.max(G,Math.min(q,J))}function vw(J){return $6(J,-32768,32767)}function O8(J,G,q,X=0.000001){return J>=Math.min(G,q)-X&&J<=Math.max(G,q)+X}function I3(J,G,q){q=q||((H)=>J[H]<G);let X=J.length-1,N=0,K;while(X-N>1)if(K=N+X>>1,q(K))N=K;else X=K;return{lo:N,hi:X}}var V2=(J,G,q,X)=>I3(J,q,X?(N)=>{let K=J[N][G];return K<q||K===q&&J[N+1][G]===q}:(N)=>J[N][G]<q),bw=(J,G,q)=>I3(J,q,(X)=>J[X][G]>=q);function fw(J,G,q){let X=0,N=J.length;while(X<N&&J[X]<G)X++;while(N>X&&J[N-1]>q)N--;return X>0||N<J.length?J.slice(X,N):J}var yw=["push","pop","shift","splice","unshift"];function gw(J,G){if(J._chartjs){J._chartjs.listeners.push(G);return}Object.defineProperty(J,"_chartjs",{configurable:!0,enumerable:!1,value:{listeners:[G]}}),yw.forEach((q)=>{let X="_onData"+C3(q),N=J[q];Object.defineProperty(J,q,{configurable:!0,enumerable:!1,value(...K){let H=N.apply(this,K);return J._chartjs.listeners.forEach((F)=>{if(typeof F[X]==="function")F[X](...K)}),H}})})}function XU(J,G){let q=J._chartjs;if(!q)return;let X=q.listeners,N=X.indexOf(G);if(N!==-1)X.splice(N,1);if(X.length>0)return;yw.forEach((K)=>{delete J[K]}),delete J._chartjs}function NU(J){let G=new Set(J);if(G.size===J.length)return J;return Array.from(G)}var UU=function(){if(typeof window>"u")return function(J){return J()};return window.requestAnimationFrame}();function KU(J,G){let q=[],X=!1;return function(...N){if(q=N,!X)X=!0,UU.call(window,()=>{X=!1,J.apply(G,q)})}}function hw(J,G){let q;return function(...X){if(G)clearTimeout(q),q=setTimeout(J,G,X);else J.apply(this,X);return G}}var V3=(J)=>J==="start"?"left":J==="end"?"right":"center",P5=(J,G,q)=>J==="start"?G:J==="end"?q:(G+q)/2,uw=(J,G,q,X)=>{return J===(X?"left":"right")?q:J==="center"?(G+q)/2:G};function xw(J,G,q){let X=G.length,N=0,K=X;if(J._sorted){let{iScale:H,vScale:F,_parsed:W}=J,M=J.dataset?J.dataset.options?J.dataset.options.spanGaps:null:null,R=H.axis,{min:_,max:P,minDefined:O,maxDefined:E}=H.getUserBounds();if(O){if(N=Math.min(V2(W,R,_).lo,q?X:V2(G,R,H.getPixelForValue(_)).lo),M){let V=W.slice(0,N+1).reverse().findIndex((I)=>!Q1(I[F.axis]));N-=Math.max(0,V)}N=$6(N,0,X-1)}if(E){let V=Math.max(V2(W,H.axis,P,!0).hi+1,q?0:V2(G,R,H.getPixelForValue(P),!0).hi+1);if(M){let I=W.slice(V-1).findIndex((j)=>!Q1(j[F.axis]));V+=Math.max(0,I)}K=$6(V,N,X)-N}else K=X-N}return{start:N,count:K}}function mw(J){let{xScale:G,yScale:q,_scaleRanges:X}=J,N={xmin:G.min,xmax:G.max,ymin:q.min,ymax:q.max};if(!X)return J._scaleRanges=N,!0;let K=X.xmin!==G.min||X.xmax!==G.max||X.ymin!==q.min||X.ymax!==q.max;return Object.assign(X,N),K}var M3=(J)=>J===0||J===1,Rw=(J,G,q)=>-(Math.pow(2,10*(J-=1))*Math.sin((J-G)*e5/q)),_w=(J,G,q)=>Math.pow(2,-10*J)*Math.sin((J-G)*e5/q)+1,q$={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*t5)+1,easeOutSine:(J)=>Math.sin(J*t5),easeInOutSine:(J)=>-0.5*(Math.cos(r1*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)=>M3(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)=>M3(J)?J:Rw(J,0.075,0.3),easeOutElastic:(J)=>M3(J)?J:_w(J,0.075,0.3),easeInOutElastic(J){return M3(J)?J:J<0.5?0.5*Rw(J*2,0.1125,0.45):0.5+0.5*_w(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 G=1.70158;if((J/=0.5)<1)return 0.5*(J*J*(((G*=1.525)+1)*J-G));return 0.5*((J-=2)*J*(((G*=1.525)+1)*J+G)+2)},easeInBounce:(J)=>1-q$.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?q$.easeInBounce(J*2)*0.5:q$.easeOutBounce(J*2-1)*0.5+0.5};function BU(J){if(J&&typeof J==="object"){let G=J.toString();return G==="[object CanvasPattern]"||G==="[object CanvasGradient]"}return!1}function HU(J){return BU(J)?J:new G$(J)}function $U(J){return BU(J)?J:new G$(J).saturate(0.5).darken(0.1).hexString()}var OI=["x","y","borderWidth","radius","tension"],II=["color","borderColor","backgroundColor"];function VI(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:(G)=>G!=="onProgress"&&G!=="onComplete"&&G!=="fn"}),J.set("animations",{colors:{type:"color",properties:II},numbers:{type:"number",properties:OI}}),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:(G)=>G|0}}}})}function AI(J){J.set("layout",{autoPadding:!0,padding:{top:0,right:0,bottom:0,left:0}})}var Lw=new Map;function EI(J,G){G=G||{};let q=J+JSON.stringify(G),X=Lw.get(q);if(!X)X=new Intl.NumberFormat(J,G),Lw.set(q,X);return X}function A3(J,G,q){return EI(G,q).format(J)}var dw={values(J){return E1(J)?J:""+J},numeric(J,G,q){if(J===0)return"0";let X=this.chart.options.locale,N,K=J;if(q.length>1){let M=Math.max(Math.abs(q[0].value),Math.abs(q[q.length-1].value));if(M<0.0001||M>1000000000000000)N="scientific";K=SI(J,q)}let H=T8(Math.abs(K)),F=isNaN(H)?1:Math.max(Math.min(-1*Math.floor(H),20),0),W={notation:N,minimumFractionDigits:F,maximumFractionDigits:F};return Object.assign(W,this.options.ticks.format),A3(J,X,W)},logarithmic(J,G,q){if(J===0)return"0";let X=q[G].significand||J/Math.pow(10,Math.floor(T8(J)));if([1,2,3,5,10,15].includes(X)||G>0.8*q.length)return dw.numeric.call(this,J,G,q);return""}};function SI(J,G){let q=G.length>3?G[2].value-G[1].value:G[1].value-G[0].value;if(Math.abs(q)>=1&&J!==Math.floor(J))q=J-Math.floor(J);return q}var qJ={formatters:dw};function DI(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:(G,q)=>q.lineWidth,tickColor:(G,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:qJ.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:(G)=>!G.startsWith("before")&&!G.startsWith("after")&&G!=="callback"&&G!=="parser",_indexable:(G)=>G!=="borderDash"&&G!=="tickBorderDash"&&G!=="dash"}),J.describe("scales",{_fallback:"scale"}),J.describe("scale.ticks",{_scriptable:(G)=>G!=="backdropPadding"&&G!=="callback",_indexable:(G)=>G!=="backdropPadding"})}var E2=Object.create(null),E3=Object.create(null);function JJ(J,G){if(!G)return J;let q=G.split(".");for(let X=0,N=q.length;X<N;++X){let K=q[X];J=J[K]||(J[K]=Object.create(null))}return J}function ZU(J,G,q){if(typeof G==="string")return Y$(JJ(J,G),q);return Y$(JJ(J,""),G)}class pw{constructor(J,G){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)=>$U(X.backgroundColor),this.hoverBorderColor=(q,X)=>$U(X.borderColor),this.hoverColor=(q,X)=>$U(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(G)}set(J,G){return ZU(this,J,G)}get(J){return JJ(this,J)}describe(J,G){return ZU(E3,J,G)}override(J,G){return ZU(E2,J,G)}route(J,G,q,X){let N=JJ(this,J),K=JJ(this,q),H="_"+G;Object.defineProperties(N,{[H]:{value:N[G],writable:!0},[G]:{enumerable:!0,get(){let F=this[H],W=K[X];if($1(F))return Object.assign({},W,F);return s0(F,W)},set(F){this[H]=F}}})}apply(J){J.forEach((G)=>G(this))}}var u1=new pw({_scriptable:(J)=>!J.startsWith("on"),_indexable:(J)=>J!=="events",hover:{_fallback:"interaction"},interaction:{_scriptable:!1,_indexable:!1}},[VI,AI,DI]);function jI(J){if(!J||Q1(J.size)||Q1(J.family))return null;return(J.style?J.style+" ":"")+(J.weight?J.weight+" ":"")+J.size+"px "+J.family}function QJ(J,G,q,X,N){let K=G[N];if(!K)K=G[N]=J.measureText(N).width,q.push(N);if(K>X)X=K;return X}function cw(J,G,q,X){X=X||{};let N=X.data=X.data||{},K=X.garbageCollect=X.garbageCollect||[];if(X.font!==G)N=X.data={},K=X.garbageCollect=[],X.font=G;J.save(),J.font=G;let H=0,F=q.length,W,M,R,_,P;for(W=0;W<F;W++)if(_=q[W],_!==void 0&&_!==null&&!E1(_))H=QJ(J,N,K,H,_);else if(E1(_)){for(M=0,R=_.length;M<R;M++)if(P=_[M],P!==void 0&&P!==null&&!E1(P))H=QJ(J,N,K,H,P)}J.restore();let O=K.length/2;if(O>q.length){for(W=0;W<O;W++)delete N[K[W]];K.splice(0,O)}return H}function S2(J,G,q){let X=J.currentDevicePixelRatio,N=q!==0?Math.max(q/2,0.5):0;return Math.round((G-N)*X)/X+N}function FU(J,G){if(!G&&!J)return;G=G||J.getContext("2d"),G.save(),G.resetTransform(),G.clearRect(0,0,J.width,J.height),G.restore()}function S3(J,G,q,X){WU(J,G,q,X,null)}function WU(J,G,q,X,N){let K,H,F,W,M,R,_,P,O=G.pointStyle,E=G.rotation,V=G.radius,I=(E||0)*PI;if(O&&typeof O==="object"){if(K=O.toString(),K==="[object HTMLImageElement]"||K==="[object HTMLCanvasElement]"){J.save(),J.translate(q,X),J.rotate(I),J.drawImage(O,-O.width/2,-O.height/2,O.width,O.height),J.restore();return}}if(isNaN(V)||V<=0)return;switch(J.beginPath(),O){default:if(N)J.ellipse(q,X,N/2,V,0,0,e5);else J.arc(q,X,V,0,e5);J.closePath();break;case"triangle":R=N?N/2:V,J.moveTo(q+Math.sin(I)*R,X-Math.cos(I)*V),I+=ww,J.lineTo(q+Math.sin(I)*R,X-Math.cos(I)*V),I+=ww,J.lineTo(q+Math.sin(I)*R,X-Math.cos(I)*V),J.closePath();break;case"rectRounded":M=V*0.516,W=V-M,H=Math.cos(I+k7)*W,_=Math.cos(I+k7)*(N?N/2-M:W),F=Math.sin(I+k7)*W,P=Math.sin(I+k7)*(N?N/2-M:W),J.arc(q-_,X-F,M,I-r1,I-t5),J.arc(q+P,X-H,M,I-t5,I),J.arc(q+_,X+F,M,I,I+t5),J.arc(q-P,X+H,M,I+t5,I+r1),J.closePath();break;case"rect":if(!E){W=Math.SQRT1_2*V,R=N?N/2:W,J.rect(q-R,X-W,2*R,2*W);break}I+=k7;case"rectRot":_=Math.cos(I)*(N?N/2:V),H=Math.cos(I)*V,F=Math.sin(I)*V,P=Math.sin(I)*(N?N/2:V),J.moveTo(q-_,X-F),J.lineTo(q+P,X-H),J.lineTo(q+_,X+F),J.lineTo(q-P,X+H),J.closePath();break;case"crossRot":I+=k7;case"cross":_=Math.cos(I)*(N?N/2:V),H=Math.cos(I)*V,F=Math.sin(I)*V,P=Math.sin(I)*(N?N/2:V),J.moveTo(q-_,X-F),J.lineTo(q+_,X+F),J.moveTo(q+P,X-H),J.lineTo(q-P,X+H);break;case"star":_=Math.cos(I)*(N?N/2:V),H=Math.cos(I)*V,F=Math.sin(I)*V,P=Math.sin(I)*(N?N/2:V),J.moveTo(q-_,X-F),J.lineTo(q+_,X+F),J.moveTo(q+P,X-H),J.lineTo(q-P,X+H),I+=k7,_=Math.cos(I)*(N?N/2:V),H=Math.cos(I)*V,F=Math.sin(I)*V,P=Math.sin(I)*(N?N/2:V),J.moveTo(q-_,X-F),J.lineTo(q+_,X+F),J.moveTo(q+P,X-H),J.lineTo(q-P,X+H);break;case"line":H=N?N/2:Math.cos(I)*V,F=Math.sin(I)*V,J.moveTo(q-H,X-F),J.lineTo(q+H,X+F);break;case"dash":J.moveTo(q,X),J.lineTo(q+Math.cos(I)*(N?N/2:V),X+Math.sin(I)*V);break;case!1:J.closePath();break}if(J.fill(),G.borderWidth>0)J.stroke()}function x4(J,G,q){return q=q||0.5,!G||J&&J.x>G.left-q&&J.x<G.right+q&&J.y>G.top-q&&J.y<G.bottom+q}function YJ(J,G){J.save(),J.beginPath(),J.rect(G.left,G.top,G.right-G.left,G.bottom-G.top),J.clip()}function XJ(J){J.restore()}function lw(J,G,q,X,N){if(!G)return J.lineTo(q.x,q.y);if(N==="middle"){let K=(G.x+q.x)/2;J.lineTo(K,G.y),J.lineTo(K,q.y)}else if(N==="after"!==!!X)J.lineTo(G.x,q.y);else J.lineTo(q.x,G.y);J.lineTo(q.x,q.y)}function rw(J,G,q,X){if(!G)return J.lineTo(q.x,q.y);J.bezierCurveTo(X?G.cp1x:G.cp2x,X?G.cp1y:G.cp2y,X?q.cp2x:q.cp1x,X?q.cp2y:q.cp1y,q.x,q.y)}function kI(J,G){if(G.translation)J.translate(G.translation[0],G.translation[1]);if(!Q1(G.rotation))J.rotate(G.rotation);if(G.color)J.fillStyle=G.color;if(G.textAlign)J.textAlign=G.textAlign;if(G.textBaseline)J.textBaseline=G.textBaseline}function vI(J,G,q,X,N){if(N.strikethrough||N.underline){let K=J.measureText(X),H=G-K.actualBoundingBoxLeft,F=G+K.actualBoundingBoxRight,W=q-K.actualBoundingBoxAscent,M=q+K.actualBoundingBoxDescent,R=N.strikethrough?(W+M)/2:M;J.strokeStyle=J.fillStyle,J.beginPath(),J.lineWidth=N.decorationWidth||2,J.moveTo(H,R),J.lineTo(F,R),J.stroke()}}function bI(J,G){let q=J.fillStyle;J.fillStyle=G.color,J.fillRect(G.left,G.top,G.width,G.height),J.fillStyle=q}function D2(J,G,q,X,N,K={}){let H=E1(G)?G:[G],F=K.strokeWidth>0&&K.strokeColor!=="",W,M;J.save(),J.font=N.string,kI(J,K);for(W=0;W<H.length;++W){if(M=H[W],K.backdrop)bI(J,K.backdrop);if(F){if(K.strokeColor)J.strokeStyle=K.strokeColor;if(!Q1(K.strokeWidth))J.lineWidth=K.strokeWidth;J.strokeText(M,q,X,K.maxWidth)}J.fillText(M,q,X,K.maxWidth),vI(J,q,X,M,K),X+=Number(N.lineHeight)}J.restore()}function H$(J,G){let{x:q,y:X,w:N,h:K,radius:H}=G;J.arc(q+H.topLeft,X+H.topLeft,H.topLeft,1.5*r1,r1,!0),J.lineTo(q,X+K-H.bottomLeft),J.arc(q+H.bottomLeft,X+K-H.bottomLeft,H.bottomLeft,r1,t5,!0),J.lineTo(q+N-H.bottomRight,X+K),J.arc(q+N-H.bottomRight,X+K-H.bottomRight,H.bottomRight,t5,0,!0),J.lineTo(q+N,X+H.topRight),J.arc(q+N-H.topRight,X+H.topRight,H.topRight,0,-t5,!0),J.lineTo(q+H.topLeft,X)}var fI=/^(normal|(\d+(?:\.\d+)?)(px|em|%)?)$/,yI=/^(normal|italic|initial|inherit|unset|(oblique( -?[0-9]?[0-9]deg)?))$/;function gI(J,G){let q=(""+J).match(fI);if(!q||q[1]==="normal")return G*1.2;switch(J=+q[2],q[3]){case"px":return J;case"%":J/=100;break}return G*J}var hI=(J)=>+J||0;function zU(J,G){let q={},X=$1(G),N=X?Object.keys(G):G,K=$1(J)?X?(H)=>s0(J[H],J[G[H]]):(H)=>J[H]:()=>J;for(let H of N)q[H]=hI(K(H));return q}function MU(J){return zU(J,{top:"y",right:"x",bottom:"y",left:"x"})}function j2(J){return zU(J,["topLeft","topRight","bottomLeft","bottomRight"])}function T5(J){let G=MU(J);return G.width=G.left+G.right,G.height=G.top+G.bottom,G}function Q5(J,G){J=J||{},G=G||u1.font;let q=s0(J.size,G.size);if(typeof q==="string")q=parseInt(q,10);let X=s0(J.style,G.style);if(X&&!(""+X).match(yI))console.warn('Invalid font style specified: "'+X+'"'),X=void 0;let N={family:s0(J.family,G.family),lineHeight:gI(s0(J.lineHeight,G.lineHeight),q),size:q,style:X,weight:s0(J.weight,G.weight),string:""};return N.string=jI(N),N}function NJ(J,G,q,X){let N=!0,K,H,F;for(K=0,H=J.length;K<H;++K){if(F=J[K],F===void 0)continue;if(G!==void 0&&typeof F==="function")F=F(G),N=!1;if(q!==void 0&&E1(F))F=F[q%F.length],N=!1;if(F!==void 0){if(X&&!N)X.cacheable=!1;return F}}}function sw(J,G,q){let{min:X,max:N}=J,K=Aw(G,(N-X)/2),H=(F,W)=>q&&F===0?0:F+W;return{min:H(X,-Math.abs(K)),max:H(N,K)}}function I8(J,G){return Object.assign(Object.create(J),G)}function D3(J,G=[""],q,X,N=()=>J[0]){let K=q||J;if(typeof X>"u")X=aw("_fallback",J);let H={[Symbol.toStringTag]:"Object",_cacheable:!0,_scopes:J,_rootScopes:K,_fallback:X,_getTarget:N,override:(F)=>D3([F,...J],G,K,X)};return new Proxy(H,{deleteProperty(F,W){return delete F[W],delete F._keys,delete J[0][W],!0},get(F,W){return nw(F,W,()=>rI(W,G,J,F))},getOwnPropertyDescriptor(F,W){return Reflect.getOwnPropertyDescriptor(F._scopes[0],W)},getPrototypeOf(){return Reflect.getPrototypeOf(J[0])},has(F,W){return Tw(F).includes(W)},ownKeys(F){return Tw(F)},set(F,W,M){let R=F._storage||(F._storage=N());return F[W]=R[W]=M,delete F._keys,!0}})}function b7(J,G,q,X){let N={_cacheable:!1,_proxy:J,_context:G,_subProxy:q,_stack:new Set,_descriptors:wU(J,X),setContext:(K)=>b7(J,K,q,X),override:(K)=>b7(J.override(K),G,q,X)};return new Proxy(N,{deleteProperty(K,H){return delete K[H],delete J[H],!0},get(K,H,F){return nw(K,H,()=>xI(K,H,F))},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,F){return J[H]=F,delete K[H],!0}})}function wU(J,G={scriptable:!0,indexable:!0}){let{_scriptable:q=G.scriptable,_indexable:X=G.indexable,_allKeys:N=G.allKeys}=J;return{allKeys:N,scriptable:q,indexable:X,isScriptable:P8(q)?q:()=>q,isIndexable:P8(X)?X:()=>X}}var uI=(J,G)=>J?J+C3(G):G,RU=(J,G)=>$1(G)&&J!=="adapters"&&(Object.getPrototypeOf(G)===null||G.constructor===Object);function nw(J,G,q){if(Object.prototype.hasOwnProperty.call(J,G)||G==="constructor")return J[G];let X=q();return J[G]=X,X}function xI(J,G,q){let{_proxy:X,_context:N,_subProxy:K,_descriptors:H}=J,F=X[G];if(P8(F)&&H.isScriptable(G))F=mI(G,F,J,q);if(E1(F)&&F.length)F=dI(G,F,J,H.isIndexable);if(RU(G,F))F=b7(F,N,K&&K[G],H);return F}function mI(J,G,q,X){let{_proxy:N,_context:K,_subProxy:H,_stack:F}=q;if(F.has(J))throw Error("Recursion detected: "+Array.from(F).join("->")+"->"+J);F.add(J);let W=G(K,H||X);if(F.delete(J),RU(J,W))W=_U(N._scopes,N,J,W);return W}function dI(J,G,q,X){let{_proxy:N,_context:K,_subProxy:H,_descriptors:F}=q;if(typeof K.index<"u"&&X(J))return G[K.index%G.length];else if($1(G[0])){let W=G,M=N._scopes.filter((R)=>R!==W);G=[];for(let R of W){let _=_U(M,N,J,R);G.push(b7(_,K,H&&H[J],F))}}return G}function ow(J,G,q){return P8(J)?J(G,q):J}var pI=(J,G)=>J===!0?G:typeof J==="string"?f7(G,J):void 0;function cI(J,G,q,X,N){for(let K of G){let H=pI(q,K);if(H){J.add(H);let F=ow(H._fallback,q,N);if(typeof F<"u"&&F!==q&&F!==X)return F}else if(H===!1&&typeof X<"u"&&q!==X)return null}return!1}function _U(J,G,q,X){let N=G._rootScopes,K=ow(G._fallback,q,X),H=[...J,...N],F=new Set;F.add(X);let W=Pw(F,H,q,K||q,X);if(W===null)return!1;if(typeof K<"u"&&K!==q){if(W=Pw(F,H,K,W,X),W===null)return!1}return D3(Array.from(F),[""],N,K,()=>lI(G,q,X))}function Pw(J,G,q,X,N){while(q)q=cI(J,G,q,X,N);return q}function lI(J,G,q){let X=J._getTarget();if(!(G in X))X[G]={};let N=X[G];if(E1(N)&&$1(q))return q;return N||{}}function rI(J,G,q,X){let N;for(let K of G)if(N=aw(uI(K,J),q),typeof N<"u")return RU(J,N)?_U(q,X,J,N):N}function aw(J,G){for(let q of G){if(!q)continue;let X=q[J];if(typeof X<"u")return X}}function Tw(J){let G=J._keys;if(!G)G=J._keys=sI(J._scopes);return G}function sI(J){let G=new Set;for(let q of J)for(let X of Object.keys(q).filter((N)=>!N.startsWith("_")))G.add(X);return Array.from(G)}var nI=Number.EPSILON||0.00000000000001,X$=(J,G)=>G<J.length&&!J[G].skip&&J[G],iw=(J)=>J==="x"?"y":"x";function oI(J,G,q,X){let N=J.skip?G:J,K=G,H=q.skip?G:q,F=P3(K,N),W=P3(H,K),M=F/(F+W),R=W/(F+W);M=isNaN(M)?0:M,R=isNaN(R)?0:R;let _=X*M,P=X*R;return{previous:{x:K.x-_*(H.x-N.x),y:K.y-_*(H.y-N.y)},next:{x:K.x+P*(H.x-N.x),y:K.y+P*(H.y-N.y)}}}function aI(J,G,q){let X=J.length,N,K,H,F,W,M=X$(J,0);for(let R=0;R<X-1;++R){if(W=M,M=X$(J,R+1),!W||!M)continue;if(K$(G[R],0,nI)){q[R]=q[R+1]=0;continue}if(N=q[R]/G[R],K=q[R+1]/G[R],F=Math.pow(N,2)+Math.pow(K,2),F<=9)continue;H=3/Math.sqrt(F),q[R]=N*H*G[R],q[R+1]=K*H*G[R]}}function iI(J,G,q="x"){let X=iw(q),N=J.length,K,H,F,W=X$(J,0);for(let M=0;M<N;++M){if(H=F,F=W,W=X$(J,M+1),!F)continue;let R=F[q],_=F[X];if(H)K=(R-H[q])/3,F[`cp1${q}`]=R-K,F[`cp1${X}`]=_-K*G[M];if(W)K=(W[q]-R)/3,F[`cp2${q}`]=R+K,F[`cp2${X}`]=_+K*G[M]}}function tI(J,G="x"){let q=iw(G),X=J.length,N=Array(X).fill(0),K=Array(X),H,F,W,M=X$(J,0);for(H=0;H<X;++H){if(F=W,W=M,M=X$(J,H+1),!W)continue;if(M){let R=M[G]-W[G];N[H]=R!==0?(M[q]-W[q])/R:0}K[H]=!F?N[H]:!M?N[H-1]:U4(N[H-1])!==U4(N[H])?0:(N[H-1]+N[H])/2}aI(J,N,K),iI(J,K,G)}function w3(J,G,q){return Math.max(Math.min(J,q),G)}function eI(J,G){let q,X,N,K,H,F=x4(J[0],G);for(q=0,X=J.length;q<X;++q){if(H=K,K=F,F=q<X-1&&x4(J[q+1],G),!K)continue;if(N=J[q],H)N.cp1x=w3(N.cp1x,G.left,G.right),N.cp1y=w3(N.cp1y,G.top,G.bottom);if(F)N.cp2x=w3(N.cp2x,G.left,G.right),N.cp2y=w3(N.cp2y,G.top,G.bottom)}}function tw(J,G,q,X,N){let K,H,F,W;if(G.spanGaps)J=J.filter((M)=>!M.skip);if(G.cubicInterpolationMode==="monotone")tI(J,N);else{let M=X?J[J.length-1]:J[0];for(K=0,H=J.length;K<H;++K)F=J[K],W=oI(M,F,J[Math.min(K+1,H-(X?0:1))%H],G.tension),F.cp1x=W.previous.x,F.cp1y=W.previous.y,F.cp2x=W.next.x,F.cp2y=W.next.y,M=F}if(G.capBezierPoints)eI(J,q)}function j3(){return typeof window<"u"&&typeof document<"u"}function k3(J){let G=J.parentNode;if(G&&G.toString()==="[object ShadowRoot]")G=G.host;return G}function T3(J,G,q){let X;if(typeof J==="string"){if(X=parseInt(J,10),J.indexOf("%")!==-1)X=X/100*G.parentNode[q]}else X=J;return X}var v3=(J)=>J.ownerDocument.defaultView.getComputedStyle(J,null);function $V(J,G){return v3(J).getPropertyValue(G)}var ZV=["top","right","bottom","left"];function v7(J,G,q){let X={};q=q?"-"+q:"";for(let N=0;N<4;N++){let K=ZV[N];X[K]=parseFloat(J[G+"-"+K+q])||0}return X.width=X.left+X.right,X.height=X.top+X.bottom,X}var JV=(J,G,q)=>(J>0||G>0)&&(!q||!q.shadowRoot);function QV(J,G){let q=J.touches,X=q&&q.length?q[0]:J,{offsetX:N,offsetY:K}=X,H=!1,F,W;if(JV(N,K,J.target))F=N,W=K;else{let M=G.getBoundingClientRect();F=X.clientX-M.left,W=X.clientY-M.top,H=!0}return{x:F,y:W,box:H}}function k2(J,G){if("native"in J)return J;let{canvas:q,currentDevicePixelRatio:X}=G,N=v3(q),K=N.boxSizing==="border-box",H=v7(N,"padding"),F=v7(N,"border","width"),{x:W,y:M,box:R}=QV(J,q),_=H.left+(R&&F.left),P=H.top+(R&&F.top),{width:O,height:E}=G;if(K)O-=H.width+F.width,E-=H.height+F.height;return{x:Math.round((W-_)/O*q.width/X),y:Math.round((M-P)/E*q.height/X)}}function GV(J,G,q){let X,N;if(G===void 0||q===void 0){let K=J&&k3(J);if(!K)G=J.clientWidth,q=J.clientHeight;else{let H=K.getBoundingClientRect(),F=v3(K),W=v7(F,"border","width"),M=v7(F,"padding");G=H.width-M.width-W.width,q=H.height-M.height-W.height,X=T3(F.maxWidth,K,"clientWidth"),N=T3(F.maxHeight,K,"clientHeight")}}return{width:G,height:q,maxWidth:X||L3,maxHeight:N||L3}}var A2=(J)=>Math.round(J*10)/10;function ew(J,G,q,X){let N=v3(J),K=v7(N,"margin"),H=T3(N.maxWidth,J,"clientWidth")||L3,F=T3(N.maxHeight,J,"clientHeight")||L3,W=GV(J,G,q),{width:M,height:R}=W;if(N.boxSizing==="content-box"){let P=v7(N,"border","width"),O=v7(N,"padding");M-=O.width+P.width,R-=O.height+P.height}if(M=Math.max(0,M-K.width),R=Math.max(0,X?M/X:R-K.height),M=A2(Math.min(M,H,W.maxWidth)),R=A2(Math.min(R,F,W.maxHeight)),M&&!R)R=A2(M/2);if((G!==void 0||q!==void 0)&&X&&W.height&&R>W.height)R=W.height,M=A2(Math.floor(R*X));return{width:M,height:R}}function LU(J,G,q){let X=G||1,N=A2(J.height*X),K=A2(J.width*X);J.height=A2(J.height),J.width=A2(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`;if(J.currentDevicePixelRatio!==X||H.height!==N||H.width!==K)return J.currentDevicePixelRatio=X,H.height=N,H.width=K,J.ctx.setTransform(X,0,0,X,0,0),!0;return!1}var $R=function(){let J=!1;try{let G={get passive(){return J=!0,!1}};if(j3())window.addEventListener("test",null,G),window.removeEventListener("test",null,G)}catch(G){}return J}();function PU(J,G){let q=$V(J,G),X=q&&q.match(/^(\d+)(\.\d+)?px$/);return X?+X[1]:void 0}function I2(J,G,q,X){return{x:J.x+q*(G.x-J.x),y:J.y+q*(G.y-J.y)}}function ZR(J,G,q,X){return{x:J.x+q*(G.x-J.x),y:X==="middle"?q<0.5?J.y:G.y:X==="after"?q<1?J.y:G.y:q>0?G.y:J.y}}function JR(J,G,q,X){let N={x:J.cp2x,y:J.cp2y},K={x:G.cp1x,y:G.cp1y},H=I2(J,N,q),F=I2(N,K,q),W=I2(K,G,q),M=I2(H,F,q),R=I2(F,W,q);return I2(M,R,q)}var qV=function(J,G){return{x(q){return J+J+G-q},setWidth(q){G=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}}},YV=function(){return{x(J){return J},setWidth(J){},textAlign(J){return J},xPlus(J,G){return J+G},leftForLtr(J,G){return J}}};function y7(J,G,q){return J?qV(G,q):YV()}function TU(J,G){let q,X;if(G==="ltr"||G==="rtl")q=J.canvas.style,X=[q.getPropertyValue("direction"),q.getPropertyPriority("direction")],q.setProperty("direction",G,"important"),J.prevTextDirection=X}function CU(J,G){if(G!==void 0)delete J.prevTextDirection,J.canvas.style.setProperty("direction",G[0],G[1])}function QR(J){if(J==="angle")return{between:YU,compare:CI,normalize:i5};return{between:O8,compare:(G,q)=>G-q,normalize:(G)=>G}}function Cw({start:J,end:G,count:q,loop:X,style:N}){return{start:J%q,end:G%q,loop:X&&(G-J+1)%q===0,style:N}}function XV(J,G,q){let{property:X,start:N,end:K}=q,{between:H,normalize:F}=QR(X),W=G.length,{start:M,end:R,loop:_}=J,P,O;if(_){M+=W,R+=W;for(P=0,O=W;P<O;++P){if(!H(F(G[M%W][X]),N,K))break;M--,R--}M%=W,R%=W}if(R<M)R+=W;return{start:M,end:R,loop:_,style:J.style}}function OU(J,G,q){if(!q)return[J];let{property:X,start:N,end:K}=q,H=G.length,{compare:F,between:W,normalize:M}=QR(X),{start:R,end:_,loop:P,style:O}=XV(J,G,q),E=[],V=!1,I=null,j,h,p,n=()=>W(N,p,j)&&F(N,p)!==0,a=()=>F(K,j)===0||W(K,p,j),Q0=()=>V||n(),t=()=>!V||a();for(let i=R,X0=R;i<=_;++i){if(h=G[i%H],h.skip)continue;if(j=M(h[X]),j===p)continue;if(V=W(j,N,K),I===null&&Q0())I=F(j,N)===0?i:X0;if(I!==null&&t())E.push(Cw({start:I,end:i,loop:P,count:H,style:O})),I=null;X0=i,p=j}if(I!==null)E.push(Cw({start:I,end:_,loop:P,count:H,style:O}));return E}function IU(J,G){let q=[],X=J.segments;for(let N=0;N<X.length;N++){let K=OU(X[N],J.points,G);if(K.length)q.push(...K)}return q}function NV(J,G,q,X){let N=0,K=G-1;if(q&&!X)while(N<G&&!J[N].skip)N++;while(N<G&&J[N].skip)N++;if(N%=G,q)K+=N;while(K>N&&J[K%G].skip)K--;return K%=G,{start:N,end:K}}function UV(J,G,q,X){let N=J.length,K=[],H=G,F=J[G],W;for(W=G+1;W<=q;++W){let M=J[W%N];if(M.skip||M.stop){if(!F.skip)X=!1,K.push({start:G%N,end:(W-1)%N,loop:X}),G=H=M.stop?W:null}else if(H=W,F.skip)G=W;F=M}if(H!==null)K.push({start:G%N,end:H%N,loop:X});return K}function GR(J,G){let q=J.points,X=J.options.spanGaps,N=q.length;if(!N)return[];let K=!!J._loop,{start:H,end:F}=NV(q,N,K,X);if(X===!0)return Ow(J,[{start:H,end:F,loop:K}],q,G);let W=F<H?F+N:F,M=!!J._fullLoop&&H===0&&F===N-1;return Ow(J,UV(q,H,W,M),q,G)}function Ow(J,G,q,X){if(!X||!X.setContext||!q)return G;return KV(J,G,q,X)}function KV(J,G,q,X){let N=J._chart.getContext(),K=Iw(J.options),{_datasetIndex:H,options:{spanGaps:F}}=J,W=q.length,M=[],R=K,_=G[0].start,P=_;function O(E,V,I,j){let h=F?-1:1;if(E===V)return;E+=W;while(q[E%W].skip)E-=h;while(q[V%W].skip)V+=h;if(E%W!==V%W)M.push({start:E%W,end:V%W,loop:I,style:j}),R=j,_=V%W}for(let E of G){_=F?_:E.start;let V=q[_%W],I;for(P=_+1;P<=E.end;P++){let j=q[P%W];if(I=Iw(X.setContext(I8(N,{type:"segment",p0:V,p1:j,p0DataIndex:(P-1)%W,p1DataIndex:P%W,datasetIndex:H}))),BV(I,R))O(_,P-1,E.loop,R);V=j,R=I}if(_<P-1)O(_,P-1,E.loop,R)}return M}function Iw(J){return{backgroundColor:J.backgroundColor,borderCapStyle:J.borderCapStyle,borderDash:J.borderDash,borderDashOffset:J.borderDashOffset,borderJoinStyle:J.borderJoinStyle,borderWidth:J.borderWidth,borderColor:J.borderColor}}function BV(J,G){if(!G)return!1;let q=[],X=function(N,K){if(!BU(K))return K;if(!q.includes(K))q.push(K);return q.indexOf(K)};return JSON.stringify(J,X)!==JSON.stringify(G,X)}function R3(J,G,q){return J.options.clip?J[q]:G[q]}function HV(J,G){let{xScale:q,yScale:X}=J;if(q&&X)return{left:R3(q,G,"left"),right:R3(q,G,"right"),top:R3(X,G,"top"),bottom:R3(X,G,"bottom")};return G}function VU(J,G){let q=G._clip;if(q.disabled)return!1;let X=HV(G,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)}}/*!
|
|
250
|
+
*/function m4(){}var Vw=(()=>{let J=0;return()=>J++})();function Q1(J){return J===null||J===void 0}function E1(J){if(Array.isArray&&Array.isArray(J))return!0;let G=Object.prototype.toString.call(J);if(G.slice(0,7)==="[object"&&G.slice(-6)==="Array]")return!0;return!1}function $1(J){return J!==null&&Object.prototype.toString.call(J)==="[object Object]"}function h1(J){return(typeof J==="number"||J instanceof Number)&&isFinite(+J)}function Z6(J,G){return h1(J)?J:G}function s0(J,G){return typeof J>"u"?G:J}var Aw=(J,G)=>typeof J==="string"&&J.endsWith("%")?parseFloat(J)/100*G:+J;function O1(J,G,q){if(J&&typeof J.call==="function")return J.apply(q,G)}function F1(J,G,q,X){let N,K,H;if(E1(J))if(K=J.length,X)for(N=K-1;N>=0;N--)G.call(q,J[N],N);else for(N=0;N<K;N++)G.call(q,J[N],N);else if($1(J)){H=Object.keys(J),K=H.length;for(N=0;N<K;N++)G.call(q,J[H[N]],H[N])}}function qJ(J,G){let q,X,N,K;if(!J||!G||J.length!==G.length)return!1;for(q=0,X=J.length;q<X;++q)if(N=J[q],K=G[q],N.datasetIndex!==K.datasetIndex||N.index!==K.index)return!1;return!0}function _3(J){if(E1(J))return J.map(_3);if($1(J)){let G=Object.create(null),q=Object.keys(J),X=q.length,N=0;for(;N<X;++N)G[q[N]]=_3(J[q[N]]);return G}return J}function Ew(J){return["__proto__","prototype","constructor"].indexOf(J)===-1}function MI(J,G,q,X){if(!Ew(J))return;let N=G[J],K=q[J];if($1(N)&&$1(K))X$(N,K,X);else G[J]=_3(K)}function X$(J,G,q){let X=E1(G)?G:[G],N=X.length;if(!$1(J))return J;q=q||{};let K=q.merger||MI,H;for(let F=0;F<N;++F){if(H=X[F],!$1(H))continue;let W=Object.keys(H);for(let M=0,R=W.length;M<R;++M)K(W[M],J,H,q)}return J}function U$(J,G){return X$(J,G,{merger:wI})}function wI(J,G,q){if(!Ew(J))return;let X=G[J],N=q[J];if($1(X)&&$1(N))U$(X,N);else if(!Object.prototype.hasOwnProperty.call(G,J))G[J]=_3(N)}var Mw={"":(J)=>J,x:(J)=>J.x,y:(J)=>J.y};function RI(J){let G=J.split("."),q=[],X="";for(let N of G)if(X+=N,X.endsWith("\\"))X=X.slice(0,-1)+".";else q.push(X),X="";return q}function _I(J){let G=RI(J);return(q)=>{for(let X of G){if(X==="")break;q=q&&q[X]}return q}}function y7(J,G){return(Mw[G]||(Mw[G]=_I(G)))(J)}function C3(J){return J.charAt(0).toUpperCase()+J.slice(1)}var K$=(J)=>typeof J<"u",P8=(J)=>typeof J==="function",JU=(J,G)=>{if(J.size!==G.size)return!1;for(let q of J)if(!G.has(q))return!1;return!0};function Sw(J){return J.type==="mouseup"||J.type==="click"||J.type==="contextmenu"}var r1=Math.PI,e5=2*r1,LI=e5+r1,L3=Number.POSITIVE_INFINITY,PI=r1/180,t5=r1/2,v7=r1/4,ww=r1*2/3,T8=Math.log10,U4=Math.sign;function B$(J,G,q){return Math.abs(J-G)<q}function QU(J){let G=Math.round(J);J=B$(J,G,J/1000)?G:J;let q=Math.pow(10,Math.floor(T8(J))),X=J/q;return(X<=1?1:X<=2?2:X<=5?5:10)*q}function Dw(J){let G=[],q=Math.sqrt(J),X;for(X=1;X<q;X++)if(J%X===0)G.push(X),G.push(J/X);if(q===(q|0))G.push(q);return G.sort((N,K)=>N-K).pop(),G}function TI(J){return typeof J==="symbol"||typeof J==="object"&&J!==null&&!((Symbol.toPrimitive in J)||("toString"in J)||("valueOf"in J))}function H$(J){return!TI(J)&&!isNaN(parseFloat(J))&&isFinite(J)}function jw(J,G){let q=Math.round(J);return q-G<=J&&q+G>=J}function GU(J,G,q){let X,N,K;for(X=0,N=J.length;X<N;X++)if(K=J[X][q],!isNaN(K))G.min=Math.min(G.min,K),G.max=Math.max(G.max,K)}function C8(J){return J*(r1/180)}function O3(J){return J*(180/r1)}function qU(J){if(!h1(J))return;let G=1,q=0;while(Math.round(J*G)/G!==J)G*=10,q++;return q}function kw(J,G){let q=G.x-J.x,X=G.y-J.y,N=Math.sqrt(q*q+X*X),K=Math.atan2(X,q);if(K<-0.5*r1)K+=e5;return{angle:K,distance:N}}function P3(J,G){return Math.sqrt(Math.pow(G.x-J.x,2)+Math.pow(G.y-J.y,2))}function CI(J,G){return(J-G+LI)%e5-r1}function i5(J){return(J%e5+e5)%e5}function YU(J,G,q,X){let N=i5(J),K=i5(G),H=i5(q),F=i5(K-N),W=i5(H-N),M=i5(N-K),R=i5(N-H);return N===K||N===H||X&&K===H||F>W&&M<R}function $6(J,G,q){return Math.max(G,Math.min(q,J))}function vw(J){return $6(J,-32768,32767)}function O8(J,G,q,X=0.000001){return J>=Math.min(G,q)-X&&J<=Math.max(G,q)+X}function I3(J,G,q){q=q||((H)=>J[H]<G);let X=J.length-1,N=0,K;while(X-N>1)if(K=N+X>>1,q(K))N=K;else X=K;return{lo:N,hi:X}}var V2=(J,G,q,X)=>I3(J,q,X?(N)=>{let K=J[N][G];return K<q||K===q&&J[N+1][G]===q}:(N)=>J[N][G]<q),bw=(J,G,q)=>I3(J,q,(X)=>J[X][G]>=q);function fw(J,G,q){let X=0,N=J.length;while(X<N&&J[X]<G)X++;while(N>X&&J[N-1]>q)N--;return X>0||N<J.length?J.slice(X,N):J}var yw=["push","pop","shift","splice","unshift"];function gw(J,G){if(J._chartjs){J._chartjs.listeners.push(G);return}Object.defineProperty(J,"_chartjs",{configurable:!0,enumerable:!1,value:{listeners:[G]}}),yw.forEach((q)=>{let X="_onData"+C3(q),N=J[q];Object.defineProperty(J,q,{configurable:!0,enumerable:!1,value(...K){let H=N.apply(this,K);return J._chartjs.listeners.forEach((F)=>{if(typeof F[X]==="function")F[X](...K)}),H}})})}function XU(J,G){let q=J._chartjs;if(!q)return;let X=q.listeners,N=X.indexOf(G);if(N!==-1)X.splice(N,1);if(X.length>0)return;yw.forEach((K)=>{delete J[K]}),delete J._chartjs}function NU(J){let G=new Set(J);if(G.size===J.length)return J;return Array.from(G)}var UU=function(){if(typeof window>"u")return function(J){return J()};return window.requestAnimationFrame}();function KU(J,G){let q=[],X=!1;return function(...N){if(q=N,!X)X=!0,UU.call(window,()=>{X=!1,J.apply(G,q)})}}function hw(J,G){let q;return function(...X){if(G)clearTimeout(q),q=setTimeout(J,G,X);else J.apply(this,X);return G}}var V3=(J)=>J==="start"?"left":J==="end"?"right":"center",P5=(J,G,q)=>J==="start"?G:J==="end"?q:(G+q)/2,uw=(J,G,q,X)=>{return J===(X?"left":"right")?q:J==="center"?(G+q)/2:G};function xw(J,G,q){let X=G.length,N=0,K=X;if(J._sorted){let{iScale:H,vScale:F,_parsed:W}=J,M=J.dataset?J.dataset.options?J.dataset.options.spanGaps:null:null,R=H.axis,{min:_,max:P,minDefined:O,maxDefined:E}=H.getUserBounds();if(O){if(N=Math.min(V2(W,R,_).lo,q?X:V2(G,R,H.getPixelForValue(_)).lo),M){let V=W.slice(0,N+1).reverse().findIndex((I)=>!Q1(I[F.axis]));N-=Math.max(0,V)}N=$6(N,0,X-1)}if(E){let V=Math.max(V2(W,H.axis,P,!0).hi+1,q?0:V2(G,R,H.getPixelForValue(P),!0).hi+1);if(M){let I=W.slice(V-1).findIndex((j)=>!Q1(j[F.axis]));V+=Math.max(0,I)}K=$6(V,N,X)-N}else K=X-N}return{start:N,count:K}}function mw(J){let{xScale:G,yScale:q,_scaleRanges:X}=J,N={xmin:G.min,xmax:G.max,ymin:q.min,ymax:q.max};if(!X)return J._scaleRanges=N,!0;let K=X.xmin!==G.min||X.xmax!==G.max||X.ymin!==q.min||X.ymax!==q.max;return Object.assign(X,N),K}var M3=(J)=>J===0||J===1,Rw=(J,G,q)=>-(Math.pow(2,10*(J-=1))*Math.sin((J-G)*e5/q)),_w=(J,G,q)=>Math.pow(2,-10*J)*Math.sin((J-G)*e5/q)+1,Y$={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*t5)+1,easeOutSine:(J)=>Math.sin(J*t5),easeInOutSine:(J)=>-0.5*(Math.cos(r1*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)=>M3(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)=>M3(J)?J:Rw(J,0.075,0.3),easeOutElastic:(J)=>M3(J)?J:_w(J,0.075,0.3),easeInOutElastic(J){return M3(J)?J:J<0.5?0.5*Rw(J*2,0.1125,0.45):0.5+0.5*_w(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 G=1.70158;if((J/=0.5)<1)return 0.5*(J*J*(((G*=1.525)+1)*J-G));return 0.5*((J-=2)*J*(((G*=1.525)+1)*J+G)+2)},easeInBounce:(J)=>1-Y$.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?Y$.easeInBounce(J*2)*0.5:Y$.easeOutBounce(J*2-1)*0.5+0.5};function BU(J){if(J&&typeof J==="object"){let G=J.toString();return G==="[object CanvasPattern]"||G==="[object CanvasGradient]"}return!1}function HU(J){return BU(J)?J:new q$(J)}function $U(J){return BU(J)?J:new q$(J).saturate(0.5).darken(0.1).hexString()}var OI=["x","y","borderWidth","radius","tension"],II=["color","borderColor","backgroundColor"];function VI(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:(G)=>G!=="onProgress"&&G!=="onComplete"&&G!=="fn"}),J.set("animations",{colors:{type:"color",properties:II},numbers:{type:"number",properties:OI}}),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:(G)=>G|0}}}})}function AI(J){J.set("layout",{autoPadding:!0,padding:{top:0,right:0,bottom:0,left:0}})}var Lw=new Map;function EI(J,G){G=G||{};let q=J+JSON.stringify(G),X=Lw.get(q);if(!X)X=new Intl.NumberFormat(J,G),Lw.set(q,X);return X}function A3(J,G,q){return EI(G,q).format(J)}var dw={values(J){return E1(J)?J:""+J},numeric(J,G,q){if(J===0)return"0";let X=this.chart.options.locale,N,K=J;if(q.length>1){let M=Math.max(Math.abs(q[0].value),Math.abs(q[q.length-1].value));if(M<0.0001||M>1000000000000000)N="scientific";K=SI(J,q)}let H=T8(Math.abs(K)),F=isNaN(H)?1:Math.max(Math.min(-1*Math.floor(H),20),0),W={notation:N,minimumFractionDigits:F,maximumFractionDigits:F};return Object.assign(W,this.options.ticks.format),A3(J,X,W)},logarithmic(J,G,q){if(J===0)return"0";let X=q[G].significand||J/Math.pow(10,Math.floor(T8(J)));if([1,2,3,5,10,15].includes(X)||G>0.8*q.length)return dw.numeric.call(this,J,G,q);return""}};function SI(J,G){let q=G.length>3?G[2].value-G[1].value:G[1].value-G[0].value;if(Math.abs(q)>=1&&J!==Math.floor(J))q=J-Math.floor(J);return q}var YJ={formatters:dw};function DI(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:(G,q)=>q.lineWidth,tickColor:(G,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:YJ.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:(G)=>!G.startsWith("before")&&!G.startsWith("after")&&G!=="callback"&&G!=="parser",_indexable:(G)=>G!=="borderDash"&&G!=="tickBorderDash"&&G!=="dash"}),J.describe("scales",{_fallback:"scale"}),J.describe("scale.ticks",{_scriptable:(G)=>G!=="backdropPadding"&&G!=="callback",_indexable:(G)=>G!=="backdropPadding"})}var E2=Object.create(null),E3=Object.create(null);function QJ(J,G){if(!G)return J;let q=G.split(".");for(let X=0,N=q.length;X<N;++X){let K=q[X];J=J[K]||(J[K]=Object.create(null))}return J}function ZU(J,G,q){if(typeof G==="string")return X$(QJ(J,G),q);return X$(QJ(J,""),G)}class pw{constructor(J,G){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)=>$U(X.backgroundColor),this.hoverBorderColor=(q,X)=>$U(X.borderColor),this.hoverColor=(q,X)=>$U(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(G)}set(J,G){return ZU(this,J,G)}get(J){return QJ(this,J)}describe(J,G){return ZU(E3,J,G)}override(J,G){return ZU(E2,J,G)}route(J,G,q,X){let N=QJ(this,J),K=QJ(this,q),H="_"+G;Object.defineProperties(N,{[H]:{value:N[G],writable:!0},[G]:{enumerable:!0,get(){let F=this[H],W=K[X];if($1(F))return Object.assign({},W,F);return s0(F,W)},set(F){this[H]=F}}})}apply(J){J.forEach((G)=>G(this))}}var u1=new pw({_scriptable:(J)=>!J.startsWith("on"),_indexable:(J)=>J!=="events",hover:{_fallback:"interaction"},interaction:{_scriptable:!1,_indexable:!1}},[VI,AI,DI]);function jI(J){if(!J||Q1(J.size)||Q1(J.family))return null;return(J.style?J.style+" ":"")+(J.weight?J.weight+" ":"")+J.size+"px "+J.family}function GJ(J,G,q,X,N){let K=G[N];if(!K)K=G[N]=J.measureText(N).width,q.push(N);if(K>X)X=K;return X}function cw(J,G,q,X){X=X||{};let N=X.data=X.data||{},K=X.garbageCollect=X.garbageCollect||[];if(X.font!==G)N=X.data={},K=X.garbageCollect=[],X.font=G;J.save(),J.font=G;let H=0,F=q.length,W,M,R,_,P;for(W=0;W<F;W++)if(_=q[W],_!==void 0&&_!==null&&!E1(_))H=GJ(J,N,K,H,_);else if(E1(_)){for(M=0,R=_.length;M<R;M++)if(P=_[M],P!==void 0&&P!==null&&!E1(P))H=GJ(J,N,K,H,P)}J.restore();let O=K.length/2;if(O>q.length){for(W=0;W<O;W++)delete N[K[W]];K.splice(0,O)}return H}function S2(J,G,q){let X=J.currentDevicePixelRatio,N=q!==0?Math.max(q/2,0.5):0;return Math.round((G-N)*X)/X+N}function FU(J,G){if(!G&&!J)return;G=G||J.getContext("2d"),G.save(),G.resetTransform(),G.clearRect(0,0,J.width,J.height),G.restore()}function S3(J,G,q,X){WU(J,G,q,X,null)}function WU(J,G,q,X,N){let K,H,F,W,M,R,_,P,O=G.pointStyle,E=G.rotation,V=G.radius,I=(E||0)*PI;if(O&&typeof O==="object"){if(K=O.toString(),K==="[object HTMLImageElement]"||K==="[object HTMLCanvasElement]"){J.save(),J.translate(q,X),J.rotate(I),J.drawImage(O,-O.width/2,-O.height/2,O.width,O.height),J.restore();return}}if(isNaN(V)||V<=0)return;switch(J.beginPath(),O){default:if(N)J.ellipse(q,X,N/2,V,0,0,e5);else J.arc(q,X,V,0,e5);J.closePath();break;case"triangle":R=N?N/2:V,J.moveTo(q+Math.sin(I)*R,X-Math.cos(I)*V),I+=ww,J.lineTo(q+Math.sin(I)*R,X-Math.cos(I)*V),I+=ww,J.lineTo(q+Math.sin(I)*R,X-Math.cos(I)*V),J.closePath();break;case"rectRounded":M=V*0.516,W=V-M,H=Math.cos(I+v7)*W,_=Math.cos(I+v7)*(N?N/2-M:W),F=Math.sin(I+v7)*W,P=Math.sin(I+v7)*(N?N/2-M:W),J.arc(q-_,X-F,M,I-r1,I-t5),J.arc(q+P,X-H,M,I-t5,I),J.arc(q+_,X+F,M,I,I+t5),J.arc(q-P,X+H,M,I+t5,I+r1),J.closePath();break;case"rect":if(!E){W=Math.SQRT1_2*V,R=N?N/2:W,J.rect(q-R,X-W,2*R,2*W);break}I+=v7;case"rectRot":_=Math.cos(I)*(N?N/2:V),H=Math.cos(I)*V,F=Math.sin(I)*V,P=Math.sin(I)*(N?N/2:V),J.moveTo(q-_,X-F),J.lineTo(q+P,X-H),J.lineTo(q+_,X+F),J.lineTo(q-P,X+H),J.closePath();break;case"crossRot":I+=v7;case"cross":_=Math.cos(I)*(N?N/2:V),H=Math.cos(I)*V,F=Math.sin(I)*V,P=Math.sin(I)*(N?N/2:V),J.moveTo(q-_,X-F),J.lineTo(q+_,X+F),J.moveTo(q+P,X-H),J.lineTo(q-P,X+H);break;case"star":_=Math.cos(I)*(N?N/2:V),H=Math.cos(I)*V,F=Math.sin(I)*V,P=Math.sin(I)*(N?N/2:V),J.moveTo(q-_,X-F),J.lineTo(q+_,X+F),J.moveTo(q+P,X-H),J.lineTo(q-P,X+H),I+=v7,_=Math.cos(I)*(N?N/2:V),H=Math.cos(I)*V,F=Math.sin(I)*V,P=Math.sin(I)*(N?N/2:V),J.moveTo(q-_,X-F),J.lineTo(q+_,X+F),J.moveTo(q+P,X-H),J.lineTo(q-P,X+H);break;case"line":H=N?N/2:Math.cos(I)*V,F=Math.sin(I)*V,J.moveTo(q-H,X-F),J.lineTo(q+H,X+F);break;case"dash":J.moveTo(q,X),J.lineTo(q+Math.cos(I)*(N?N/2:V),X+Math.sin(I)*V);break;case!1:J.closePath();break}if(J.fill(),G.borderWidth>0)J.stroke()}function x4(J,G,q){return q=q||0.5,!G||J&&J.x>G.left-q&&J.x<G.right+q&&J.y>G.top-q&&J.y<G.bottom+q}function XJ(J,G){J.save(),J.beginPath(),J.rect(G.left,G.top,G.right-G.left,G.bottom-G.top),J.clip()}function NJ(J){J.restore()}function lw(J,G,q,X,N){if(!G)return J.lineTo(q.x,q.y);if(N==="middle"){let K=(G.x+q.x)/2;J.lineTo(K,G.y),J.lineTo(K,q.y)}else if(N==="after"!==!!X)J.lineTo(G.x,q.y);else J.lineTo(q.x,G.y);J.lineTo(q.x,q.y)}function rw(J,G,q,X){if(!G)return J.lineTo(q.x,q.y);J.bezierCurveTo(X?G.cp1x:G.cp2x,X?G.cp1y:G.cp2y,X?q.cp2x:q.cp1x,X?q.cp2y:q.cp1y,q.x,q.y)}function kI(J,G){if(G.translation)J.translate(G.translation[0],G.translation[1]);if(!Q1(G.rotation))J.rotate(G.rotation);if(G.color)J.fillStyle=G.color;if(G.textAlign)J.textAlign=G.textAlign;if(G.textBaseline)J.textBaseline=G.textBaseline}function vI(J,G,q,X,N){if(N.strikethrough||N.underline){let K=J.measureText(X),H=G-K.actualBoundingBoxLeft,F=G+K.actualBoundingBoxRight,W=q-K.actualBoundingBoxAscent,M=q+K.actualBoundingBoxDescent,R=N.strikethrough?(W+M)/2:M;J.strokeStyle=J.fillStyle,J.beginPath(),J.lineWidth=N.decorationWidth||2,J.moveTo(H,R),J.lineTo(F,R),J.stroke()}}function bI(J,G){let q=J.fillStyle;J.fillStyle=G.color,J.fillRect(G.left,G.top,G.width,G.height),J.fillStyle=q}function D2(J,G,q,X,N,K={}){let H=E1(G)?G:[G],F=K.strokeWidth>0&&K.strokeColor!=="",W,M;J.save(),J.font=N.string,kI(J,K);for(W=0;W<H.length;++W){if(M=H[W],K.backdrop)bI(J,K.backdrop);if(F){if(K.strokeColor)J.strokeStyle=K.strokeColor;if(!Q1(K.strokeWidth))J.lineWidth=K.strokeWidth;J.strokeText(M,q,X,K.maxWidth)}J.fillText(M,q,X,K.maxWidth),vI(J,q,X,M,K),X+=Number(N.lineHeight)}J.restore()}function F$(J,G){let{x:q,y:X,w:N,h:K,radius:H}=G;J.arc(q+H.topLeft,X+H.topLeft,H.topLeft,1.5*r1,r1,!0),J.lineTo(q,X+K-H.bottomLeft),J.arc(q+H.bottomLeft,X+K-H.bottomLeft,H.bottomLeft,r1,t5,!0),J.lineTo(q+N-H.bottomRight,X+K),J.arc(q+N-H.bottomRight,X+K-H.bottomRight,H.bottomRight,t5,0,!0),J.lineTo(q+N,X+H.topRight),J.arc(q+N-H.topRight,X+H.topRight,H.topRight,0,-t5,!0),J.lineTo(q+H.topLeft,X)}var fI=/^(normal|(\d+(?:\.\d+)?)(px|em|%)?)$/,yI=/^(normal|italic|initial|inherit|unset|(oblique( -?[0-9]?[0-9]deg)?))$/;function gI(J,G){let q=(""+J).match(fI);if(!q||q[1]==="normal")return G*1.2;switch(J=+q[2],q[3]){case"px":return J;case"%":J/=100;break}return G*J}var hI=(J)=>+J||0;function zU(J,G){let q={},X=$1(G),N=X?Object.keys(G):G,K=$1(J)?X?(H)=>s0(J[H],J[G[H]]):(H)=>J[H]:()=>J;for(let H of N)q[H]=hI(K(H));return q}function MU(J){return zU(J,{top:"y",right:"x",bottom:"y",left:"x"})}function j2(J){return zU(J,["topLeft","topRight","bottomLeft","bottomRight"])}function T5(J){let G=MU(J);return G.width=G.left+G.right,G.height=G.top+G.bottom,G}function Q5(J,G){J=J||{},G=G||u1.font;let q=s0(J.size,G.size);if(typeof q==="string")q=parseInt(q,10);let X=s0(J.style,G.style);if(X&&!(""+X).match(yI))console.warn('Invalid font style specified: "'+X+'"'),X=void 0;let N={family:s0(J.family,G.family),lineHeight:gI(s0(J.lineHeight,G.lineHeight),q),size:q,style:X,weight:s0(J.weight,G.weight),string:""};return N.string=jI(N),N}function UJ(J,G,q,X){let N=!0,K,H,F;for(K=0,H=J.length;K<H;++K){if(F=J[K],F===void 0)continue;if(G!==void 0&&typeof F==="function")F=F(G),N=!1;if(q!==void 0&&E1(F))F=F[q%F.length],N=!1;if(F!==void 0){if(X&&!N)X.cacheable=!1;return F}}}function sw(J,G,q){let{min:X,max:N}=J,K=Aw(G,(N-X)/2),H=(F,W)=>q&&F===0?0:F+W;return{min:H(X,-Math.abs(K)),max:H(N,K)}}function I8(J,G){return Object.assign(Object.create(J),G)}function D3(J,G=[""],q,X,N=()=>J[0]){let K=q||J;if(typeof X>"u")X=aw("_fallback",J);let H={[Symbol.toStringTag]:"Object",_cacheable:!0,_scopes:J,_rootScopes:K,_fallback:X,_getTarget:N,override:(F)=>D3([F,...J],G,K,X)};return new Proxy(H,{deleteProperty(F,W){return delete F[W],delete F._keys,delete J[0][W],!0},get(F,W){return nw(F,W,()=>rI(W,G,J,F))},getOwnPropertyDescriptor(F,W){return Reflect.getOwnPropertyDescriptor(F._scopes[0],W)},getPrototypeOf(){return Reflect.getPrototypeOf(J[0])},has(F,W){return Tw(F).includes(W)},ownKeys(F){return Tw(F)},set(F,W,M){let R=F._storage||(F._storage=N());return F[W]=R[W]=M,delete F._keys,!0}})}function f7(J,G,q,X){let N={_cacheable:!1,_proxy:J,_context:G,_subProxy:q,_stack:new Set,_descriptors:wU(J,X),setContext:(K)=>f7(J,K,q,X),override:(K)=>f7(J.override(K),G,q,X)};return new Proxy(N,{deleteProperty(K,H){return delete K[H],delete J[H],!0},get(K,H,F){return nw(K,H,()=>xI(K,H,F))},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,F){return J[H]=F,delete K[H],!0}})}function wU(J,G={scriptable:!0,indexable:!0}){let{_scriptable:q=G.scriptable,_indexable:X=G.indexable,_allKeys:N=G.allKeys}=J;return{allKeys:N,scriptable:q,indexable:X,isScriptable:P8(q)?q:()=>q,isIndexable:P8(X)?X:()=>X}}var uI=(J,G)=>J?J+C3(G):G,RU=(J,G)=>$1(G)&&J!=="adapters"&&(Object.getPrototypeOf(G)===null||G.constructor===Object);function nw(J,G,q){if(Object.prototype.hasOwnProperty.call(J,G)||G==="constructor")return J[G];let X=q();return J[G]=X,X}function xI(J,G,q){let{_proxy:X,_context:N,_subProxy:K,_descriptors:H}=J,F=X[G];if(P8(F)&&H.isScriptable(G))F=mI(G,F,J,q);if(E1(F)&&F.length)F=dI(G,F,J,H.isIndexable);if(RU(G,F))F=f7(F,N,K&&K[G],H);return F}function mI(J,G,q,X){let{_proxy:N,_context:K,_subProxy:H,_stack:F}=q;if(F.has(J))throw Error("Recursion detected: "+Array.from(F).join("->")+"->"+J);F.add(J);let W=G(K,H||X);if(F.delete(J),RU(J,W))W=_U(N._scopes,N,J,W);return W}function dI(J,G,q,X){let{_proxy:N,_context:K,_subProxy:H,_descriptors:F}=q;if(typeof K.index<"u"&&X(J))return G[K.index%G.length];else if($1(G[0])){let W=G,M=N._scopes.filter((R)=>R!==W);G=[];for(let R of W){let _=_U(M,N,J,R);G.push(f7(_,K,H&&H[J],F))}}return G}function ow(J,G,q){return P8(J)?J(G,q):J}var pI=(J,G)=>J===!0?G:typeof J==="string"?y7(G,J):void 0;function cI(J,G,q,X,N){for(let K of G){let H=pI(q,K);if(H){J.add(H);let F=ow(H._fallback,q,N);if(typeof F<"u"&&F!==q&&F!==X)return F}else if(H===!1&&typeof X<"u"&&q!==X)return null}return!1}function _U(J,G,q,X){let N=G._rootScopes,K=ow(G._fallback,q,X),H=[...J,...N],F=new Set;F.add(X);let W=Pw(F,H,q,K||q,X);if(W===null)return!1;if(typeof K<"u"&&K!==q){if(W=Pw(F,H,K,W,X),W===null)return!1}return D3(Array.from(F),[""],N,K,()=>lI(G,q,X))}function Pw(J,G,q,X,N){while(q)q=cI(J,G,q,X,N);return q}function lI(J,G,q){let X=J._getTarget();if(!(G in X))X[G]={};let N=X[G];if(E1(N)&&$1(q))return q;return N||{}}function rI(J,G,q,X){let N;for(let K of G)if(N=aw(uI(K,J),q),typeof N<"u")return RU(J,N)?_U(q,X,J,N):N}function aw(J,G){for(let q of G){if(!q)continue;let X=q[J];if(typeof X<"u")return X}}function Tw(J){let G=J._keys;if(!G)G=J._keys=sI(J._scopes);return G}function sI(J){let G=new Set;for(let q of J)for(let X of Object.keys(q).filter((N)=>!N.startsWith("_")))G.add(X);return Array.from(G)}var nI=Number.EPSILON||0.00000000000001,N$=(J,G)=>G<J.length&&!J[G].skip&&J[G],iw=(J)=>J==="x"?"y":"x";function oI(J,G,q,X){let N=J.skip?G:J,K=G,H=q.skip?G:q,F=P3(K,N),W=P3(H,K),M=F/(F+W),R=W/(F+W);M=isNaN(M)?0:M,R=isNaN(R)?0:R;let _=X*M,P=X*R;return{previous:{x:K.x-_*(H.x-N.x),y:K.y-_*(H.y-N.y)},next:{x:K.x+P*(H.x-N.x),y:K.y+P*(H.y-N.y)}}}function aI(J,G,q){let X=J.length,N,K,H,F,W,M=N$(J,0);for(let R=0;R<X-1;++R){if(W=M,M=N$(J,R+1),!W||!M)continue;if(B$(G[R],0,nI)){q[R]=q[R+1]=0;continue}if(N=q[R]/G[R],K=q[R+1]/G[R],F=Math.pow(N,2)+Math.pow(K,2),F<=9)continue;H=3/Math.sqrt(F),q[R]=N*H*G[R],q[R+1]=K*H*G[R]}}function iI(J,G,q="x"){let X=iw(q),N=J.length,K,H,F,W=N$(J,0);for(let M=0;M<N;++M){if(H=F,F=W,W=N$(J,M+1),!F)continue;let R=F[q],_=F[X];if(H)K=(R-H[q])/3,F[`cp1${q}`]=R-K,F[`cp1${X}`]=_-K*G[M];if(W)K=(W[q]-R)/3,F[`cp2${q}`]=R+K,F[`cp2${X}`]=_+K*G[M]}}function tI(J,G="x"){let q=iw(G),X=J.length,N=Array(X).fill(0),K=Array(X),H,F,W,M=N$(J,0);for(H=0;H<X;++H){if(F=W,W=M,M=N$(J,H+1),!W)continue;if(M){let R=M[G]-W[G];N[H]=R!==0?(M[q]-W[q])/R:0}K[H]=!F?N[H]:!M?N[H-1]:U4(N[H-1])!==U4(N[H])?0:(N[H-1]+N[H])/2}aI(J,N,K),iI(J,K,G)}function w3(J,G,q){return Math.max(Math.min(J,q),G)}function eI(J,G){let q,X,N,K,H,F=x4(J[0],G);for(q=0,X=J.length;q<X;++q){if(H=K,K=F,F=q<X-1&&x4(J[q+1],G),!K)continue;if(N=J[q],H)N.cp1x=w3(N.cp1x,G.left,G.right),N.cp1y=w3(N.cp1y,G.top,G.bottom);if(F)N.cp2x=w3(N.cp2x,G.left,G.right),N.cp2y=w3(N.cp2y,G.top,G.bottom)}}function tw(J,G,q,X,N){let K,H,F,W;if(G.spanGaps)J=J.filter((M)=>!M.skip);if(G.cubicInterpolationMode==="monotone")tI(J,N);else{let M=X?J[J.length-1]:J[0];for(K=0,H=J.length;K<H;++K)F=J[K],W=oI(M,F,J[Math.min(K+1,H-(X?0:1))%H],G.tension),F.cp1x=W.previous.x,F.cp1y=W.previous.y,F.cp2x=W.next.x,F.cp2y=W.next.y,M=F}if(G.capBezierPoints)eI(J,q)}function j3(){return typeof window<"u"&&typeof document<"u"}function k3(J){let G=J.parentNode;if(G&&G.toString()==="[object ShadowRoot]")G=G.host;return G}function T3(J,G,q){let X;if(typeof J==="string"){if(X=parseInt(J,10),J.indexOf("%")!==-1)X=X/100*G.parentNode[q]}else X=J;return X}var v3=(J)=>J.ownerDocument.defaultView.getComputedStyle(J,null);function $V(J,G){return v3(J).getPropertyValue(G)}var ZV=["top","right","bottom","left"];function b7(J,G,q){let X={};q=q?"-"+q:"";for(let N=0;N<4;N++){let K=ZV[N];X[K]=parseFloat(J[G+"-"+K+q])||0}return X.width=X.left+X.right,X.height=X.top+X.bottom,X}var JV=(J,G,q)=>(J>0||G>0)&&(!q||!q.shadowRoot);function QV(J,G){let q=J.touches,X=q&&q.length?q[0]:J,{offsetX:N,offsetY:K}=X,H=!1,F,W;if(JV(N,K,J.target))F=N,W=K;else{let M=G.getBoundingClientRect();F=X.clientX-M.left,W=X.clientY-M.top,H=!0}return{x:F,y:W,box:H}}function k2(J,G){if("native"in J)return J;let{canvas:q,currentDevicePixelRatio:X}=G,N=v3(q),K=N.boxSizing==="border-box",H=b7(N,"padding"),F=b7(N,"border","width"),{x:W,y:M,box:R}=QV(J,q),_=H.left+(R&&F.left),P=H.top+(R&&F.top),{width:O,height:E}=G;if(K)O-=H.width+F.width,E-=H.height+F.height;return{x:Math.round((W-_)/O*q.width/X),y:Math.round((M-P)/E*q.height/X)}}function GV(J,G,q){let X,N;if(G===void 0||q===void 0){let K=J&&k3(J);if(!K)G=J.clientWidth,q=J.clientHeight;else{let H=K.getBoundingClientRect(),F=v3(K),W=b7(F,"border","width"),M=b7(F,"padding");G=H.width-M.width-W.width,q=H.height-M.height-W.height,X=T3(F.maxWidth,K,"clientWidth"),N=T3(F.maxHeight,K,"clientHeight")}}return{width:G,height:q,maxWidth:X||L3,maxHeight:N||L3}}var A2=(J)=>Math.round(J*10)/10;function ew(J,G,q,X){let N=v3(J),K=b7(N,"margin"),H=T3(N.maxWidth,J,"clientWidth")||L3,F=T3(N.maxHeight,J,"clientHeight")||L3,W=GV(J,G,q),{width:M,height:R}=W;if(N.boxSizing==="content-box"){let P=b7(N,"border","width"),O=b7(N,"padding");M-=O.width+P.width,R-=O.height+P.height}if(M=Math.max(0,M-K.width),R=Math.max(0,X?M/X:R-K.height),M=A2(Math.min(M,H,W.maxWidth)),R=A2(Math.min(R,F,W.maxHeight)),M&&!R)R=A2(M/2);if((G!==void 0||q!==void 0)&&X&&W.height&&R>W.height)R=W.height,M=A2(Math.floor(R*X));return{width:M,height:R}}function LU(J,G,q){let X=G||1,N=A2(J.height*X),K=A2(J.width*X);J.height=A2(J.height),J.width=A2(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`;if(J.currentDevicePixelRatio!==X||H.height!==N||H.width!==K)return J.currentDevicePixelRatio=X,H.height=N,H.width=K,J.ctx.setTransform(X,0,0,X,0,0),!0;return!1}var $R=function(){let J=!1;try{let G={get passive(){return J=!0,!1}};if(j3())window.addEventListener("test",null,G),window.removeEventListener("test",null,G)}catch(G){}return J}();function PU(J,G){let q=$V(J,G),X=q&&q.match(/^(\d+)(\.\d+)?px$/);return X?+X[1]:void 0}function I2(J,G,q,X){return{x:J.x+q*(G.x-J.x),y:J.y+q*(G.y-J.y)}}function ZR(J,G,q,X){return{x:J.x+q*(G.x-J.x),y:X==="middle"?q<0.5?J.y:G.y:X==="after"?q<1?J.y:G.y:q>0?G.y:J.y}}function JR(J,G,q,X){let N={x:J.cp2x,y:J.cp2y},K={x:G.cp1x,y:G.cp1y},H=I2(J,N,q),F=I2(N,K,q),W=I2(K,G,q),M=I2(H,F,q),R=I2(F,W,q);return I2(M,R,q)}var qV=function(J,G){return{x(q){return J+J+G-q},setWidth(q){G=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}}},YV=function(){return{x(J){return J},setWidth(J){},textAlign(J){return J},xPlus(J,G){return J+G},leftForLtr(J,G){return J}}};function g7(J,G,q){return J?qV(G,q):YV()}function TU(J,G){let q,X;if(G==="ltr"||G==="rtl")q=J.canvas.style,X=[q.getPropertyValue("direction"),q.getPropertyPriority("direction")],q.setProperty("direction",G,"important"),J.prevTextDirection=X}function CU(J,G){if(G!==void 0)delete J.prevTextDirection,J.canvas.style.setProperty("direction",G[0],G[1])}function QR(J){if(J==="angle")return{between:YU,compare:CI,normalize:i5};return{between:O8,compare:(G,q)=>G-q,normalize:(G)=>G}}function Cw({start:J,end:G,count:q,loop:X,style:N}){return{start:J%q,end:G%q,loop:X&&(G-J+1)%q===0,style:N}}function XV(J,G,q){let{property:X,start:N,end:K}=q,{between:H,normalize:F}=QR(X),W=G.length,{start:M,end:R,loop:_}=J,P,O;if(_){M+=W,R+=W;for(P=0,O=W;P<O;++P){if(!H(F(G[M%W][X]),N,K))break;M--,R--}M%=W,R%=W}if(R<M)R+=W;return{start:M,end:R,loop:_,style:J.style}}function OU(J,G,q){if(!q)return[J];let{property:X,start:N,end:K}=q,H=G.length,{compare:F,between:W,normalize:M}=QR(X),{start:R,end:_,loop:P,style:O}=XV(J,G,q),E=[],V=!1,I=null,j,h,p,n=()=>W(N,p,j)&&F(N,p)!==0,a=()=>F(K,j)===0||W(K,p,j),Q0=()=>V||n(),t=()=>!V||a();for(let i=R,X0=R;i<=_;++i){if(h=G[i%H],h.skip)continue;if(j=M(h[X]),j===p)continue;if(V=W(j,N,K),I===null&&Q0())I=F(j,N)===0?i:X0;if(I!==null&&t())E.push(Cw({start:I,end:i,loop:P,count:H,style:O})),I=null;X0=i,p=j}if(I!==null)E.push(Cw({start:I,end:_,loop:P,count:H,style:O}));return E}function IU(J,G){let q=[],X=J.segments;for(let N=0;N<X.length;N++){let K=OU(X[N],J.points,G);if(K.length)q.push(...K)}return q}function NV(J,G,q,X){let N=0,K=G-1;if(q&&!X)while(N<G&&!J[N].skip)N++;while(N<G&&J[N].skip)N++;if(N%=G,q)K+=N;while(K>N&&J[K%G].skip)K--;return K%=G,{start:N,end:K}}function UV(J,G,q,X){let N=J.length,K=[],H=G,F=J[G],W;for(W=G+1;W<=q;++W){let M=J[W%N];if(M.skip||M.stop){if(!F.skip)X=!1,K.push({start:G%N,end:(W-1)%N,loop:X}),G=H=M.stop?W:null}else if(H=W,F.skip)G=W;F=M}if(H!==null)K.push({start:G%N,end:H%N,loop:X});return K}function GR(J,G){let q=J.points,X=J.options.spanGaps,N=q.length;if(!N)return[];let K=!!J._loop,{start:H,end:F}=NV(q,N,K,X);if(X===!0)return Ow(J,[{start:H,end:F,loop:K}],q,G);let W=F<H?F+N:F,M=!!J._fullLoop&&H===0&&F===N-1;return Ow(J,UV(q,H,W,M),q,G)}function Ow(J,G,q,X){if(!X||!X.setContext||!q)return G;return KV(J,G,q,X)}function KV(J,G,q,X){let N=J._chart.getContext(),K=Iw(J.options),{_datasetIndex:H,options:{spanGaps:F}}=J,W=q.length,M=[],R=K,_=G[0].start,P=_;function O(E,V,I,j){let h=F?-1:1;if(E===V)return;E+=W;while(q[E%W].skip)E-=h;while(q[V%W].skip)V+=h;if(E%W!==V%W)M.push({start:E%W,end:V%W,loop:I,style:j}),R=j,_=V%W}for(let E of G){_=F?_:E.start;let V=q[_%W],I;for(P=_+1;P<=E.end;P++){let j=q[P%W];if(I=Iw(X.setContext(I8(N,{type:"segment",p0:V,p1:j,p0DataIndex:(P-1)%W,p1DataIndex:P%W,datasetIndex:H}))),BV(I,R))O(_,P-1,E.loop,R);V=j,R=I}if(_<P-1)O(_,P-1,E.loop,R)}return M}function Iw(J){return{backgroundColor:J.backgroundColor,borderCapStyle:J.borderCapStyle,borderDash:J.borderDash,borderDashOffset:J.borderDashOffset,borderJoinStyle:J.borderJoinStyle,borderWidth:J.borderWidth,borderColor:J.borderColor}}function BV(J,G){if(!G)return!1;let q=[],X=function(N,K){if(!BU(K))return K;if(!q.includes(K))q.push(K);return q.indexOf(K)};return JSON.stringify(J,X)!==JSON.stringify(G,X)}function R3(J,G,q){return J.options.clip?J[q]:G[q]}function HV(J,G){let{xScale:q,yScale:X}=J;if(q&&X)return{left:R3(q,G,"left"),right:R3(q,G,"right"),top:R3(X,G,"top"),bottom:R3(X,G,"bottom")};return G}function VU(J,G){let q=G._clip;if(q.disabled)return!1;let X=HV(G,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
251
|
* Chart.js v4.5.1
|
|
252
252
|
* https://www.chartjs.org
|
|
253
253
|
* (c) 2025 Chart.js Contributors
|
|
254
254
|
* Released under the MIT License
|
|
255
|
-
*/class Z_{constructor(){this._request=null,this._charts=new Map,this._running=!1,this._lastDate=void 0}_notify(J,G,q,X){let N=G.listeners[X],K=G.duration;N.forEach((H)=>H({chart:J,initial:G.initial,numSteps:K,currentStep:Math.min(q-G.start,K)}))}_refresh(){if(this._request)return;this._running=!0,this._request=UU.call(window,()=>{if(this._update(),this._request=null,this._running)this._refresh()})}_update(J=Date.now()){let G=0;if(this._charts.forEach((q,X)=>{if(!q.running||!q.items.length)return;let N=q.items,K=N.length-1,H=!1,F;for(;K>=0;--K)if(F=N[K],F._active){if(F._total>q.duration)q.duration=F._total;F.tick(J),H=!0}else N[K]=N[N.length-1],N.pop();if(H)X.draw(),this._notify(X,q,J,"progress");if(!N.length)q.running=!1,this._notify(X,q,J,"complete"),q.initial=!1;G+=N.length}),this._lastDate=J,G===0)this._running=!1}_getAnims(J){let G=this._charts,q=G.get(J);if(!q)q={running:!1,initial:!0,items:[],listeners:{complete:[],progress:[]}},G.set(J,q);return q}listen(J,G,q){this._getAnims(J).listeners[G].push(q)}add(J,G){if(!G||!G.length)return;this._getAnims(J).items.push(...G)}has(J){return this._getAnims(J).items.length>0}start(J){let G=this._charts.get(J);if(!G)return;G.running=!0,G.start=Date.now(),G.duration=G.items.reduce((q,X)=>Math.max(q,X._duration),0),this._refresh()}running(J){if(!this._running)return!1;let G=this._charts.get(J);if(!G||!G.running||!G.items.length)return!1;return!0}stop(J){let G=this._charts.get(J);if(!G||!G.items.length)return;let q=G.items,X=q.length-1;for(;X>=0;--X)q[X].cancel();G.items=[],this._notify(J,G,Date.now(),"complete")}remove(J){return this._charts.delete(J)}}var V8=new Z_,qR="transparent",FV={boolean(J,G,q){return q>0.5?G:J},color(J,G,q){let X=HU(J||qR),N=X.valid&&HU(G||qR);return N&&N.valid?N.mix(X,q).hexString():G},number(J,G,q){return J+(G-J)*q}};class J_{constructor(J,G,q,X){let N=G[q];X=NJ([J.to,X,N,J.from]);let K=NJ([J.from,N,X]);this._active=!0,this._fn=J.fn||FV[J.type||typeof K],this._easing=q$[J.easing]||q$.linear,this._start=Math.floor(Date.now()+(J.delay||0)),this._duration=this._total=Math.floor(J.duration),this._loop=!!J.loop,this._target=G,this._prop=q,this._from=K,this._to=X,this._promises=void 0}active(){return this._active}update(J,G,q){if(this._active){this._notify(!1);let X=this._target[this._prop],N=q-this._start,K=this._duration-N;this._start=q,this._duration=Math.floor(Math.max(K,J.duration)),this._total+=N,this._loop=!!J.loop,this._to=NJ([J.to,G,X,J.from]),this._from=NJ([J.from,X,G])}}cancel(){if(this._active)this.tick(Date.now()),this._active=!1,this._notify(!1)}tick(J){let G=J-this._start,q=this._duration,X=this._prop,N=this._from,K=this._loop,H=this._to,F;if(this._active=N!==H&&(K||G<q),!this._active){this._target[X]=H,this._notify(!0);return}if(G<0){this._target[X]=N;return}F=G/q%2,F=K&&F>1?2-F:F,F=this._easing(Math.min(1,Math.max(0,F))),this._target[X]=this._fn(N,H,F)}wait(){let J=this._promises||(this._promises=[]);return new Promise((G,q)=>{J.push({res:G,rej:q})})}_notify(J){let G=J?"res":"rej",q=this._promises||[];for(let X=0;X<q.length;X++)q[X][G]()}}class rU{constructor(J,G){this._chart=J,this._properties=new Map,this.configure(G)}configure(J){if(!$1(J))return;let G=Object.keys(u1.animation),q=this._properties;Object.getOwnPropertyNames(J).forEach((X)=>{let N=J[X];if(!$1(N))return;let K={};for(let H of G)K[H]=N[H];(E1(N.properties)&&N.properties||[X]).forEach((H)=>{if(H===X||!q.has(H))q.set(H,K)})})}_animateOptions(J,G){let q=G.options,X=zV(J,q);if(!X)return[];let N=this._createAnimations(X,q);if(q.$shared)WV(J.options.$animations,q).then(()=>{J.options=q},()=>{});return N}_createAnimations(J,G){let q=this._properties,X=[],N=J.$animations||(J.$animations={}),K=Object.keys(G),H=Date.now(),F;for(F=K.length-1;F>=0;--F){let W=K[F];if(W.charAt(0)==="$")continue;if(W==="options"){X.push(...this._animateOptions(J,G));continue}let M=G[W],R=N[W],_=q.get(W);if(R)if(_&&R.active()){R.update(_,M,H);continue}else R.cancel();if(!_||!_.duration){J[W]=M;continue}N[W]=R=new J_(_,J,W,M),X.push(R)}return X}update(J,G){if(this._properties.size===0){Object.assign(J,G);return}let q=this._createAnimations(J,G);if(q.length)return V8.add(this._chart,q),!0}}function WV(J,G){let q=[],X=Object.keys(G);for(let N=0;N<X.length;N++){let K=J[X[N]];if(K&&K.active())q.push(K.wait())}return Promise.all(q)}function zV(J,G){if(!G)return;let q=J.options;if(!q){J.options=G;return}if(q.$shared)J.options=q=Object.assign({},q,{$shared:!1,$animations:{}});return q}function YR(J,G){let q=J&&J.options||{},X=q.reverse,N=q.min===void 0?G:0,K=q.max===void 0?G:0;return{start:X?K:N,end:X?N:K}}function MV(J,G,q){if(q===!1)return!1;let X=YR(J,q),N=YR(G,q);return{top:N.end,right:X.end,bottom:N.start,left:X.start}}function wV(J){let G,q,X,N;if($1(J))G=J.top,q=J.right,X=J.bottom,N=J.left;else G=q=X=N=J;return{top:G,right:q,bottom:X,left:N,disabled:J===!1}}function Q_(J,G){let q=[],X=J._getSortedDatasetMetas(G),N,K;for(N=0,K=X.length;N<K;++N)q.push(X[N].index);return q}function XR(J,G,q,X={}){let N=J.keys,K=X.mode==="single",H,F,W,M;if(G===null)return;let R=!1;for(H=0,F=N.length;H<F;++H){if(W=+N[H],W===q){if(R=!0,X.all)continue;break}if(M=J.values[W],h1(M)&&(K||G===0||U4(G)===U4(M)))G+=M}if(!R&&!X.all)return 0;return G}function RV(J,G){let{iScale:q,vScale:X}=G,N=q.axis==="x"?"x":"y",K=X.axis==="x"?"x":"y",H=Object.keys(J),F=Array(H.length),W,M,R;for(W=0,M=H.length;W<M;++W)R=H[W],F[W]={[N]:R,[K]:J[R]};return F}function AU(J,G){let q=J&&J.options.stacked;return q||q===void 0&&G.stack!==void 0}function _V(J,G,q){return`${J.id}.${G.id}.${q.stack||q.type}`}function LV(J){let{min:G,max:q,minDefined:X,maxDefined:N}=J.getUserBounds();return{min:X?G:Number.NEGATIVE_INFINITY,max:N?q:Number.POSITIVE_INFINITY}}function PV(J,G,q){let X=J[G]||(J[G]={});return X[q]||(X[q]={})}function NR(J,G,q,X){for(let N of G.getMatchingVisibleMetas(X).reverse()){let K=J[N.index];if(q&&K>0||!q&&K<0)return N.index}return null}function UR(J,G){let{chart:q,_cachedMeta:X}=J,N=q._stacks||(q._stacks={}),{iScale:K,vScale:H,index:F}=X,W=K.axis,M=H.axis,R=_V(K,H,X),_=G.length,P;for(let O=0;O<_;++O){let E=G[O],{[W]:V,[M]:I}=E,j=E._stacks||(E._stacks={});P=j[M]=PV(N,R,V),P[F]=I,P._top=NR(P,H,!0,X.type),P._bottom=NR(P,H,!1,X.type);let h=P._visualValues||(P._visualValues={});h[F]=I}}function EU(J,G){let q=J.scales;return Object.keys(q).filter((X)=>q[X].axis===G).shift()}function TV(J,G){return I8(J,{active:!1,dataset:void 0,datasetIndex:G,index:G,mode:"default",type:"dataset"})}function CV(J,G,q){return I8(J,{active:!1,dataIndex:G,parsed:void 0,raw:void 0,element:q,index:G,mode:"default",type:"data"})}function UJ(J,G){let q=J.controller.index,X=J.vScale&&J.vScale.axis;if(!X)return;G=G||J._parsed;for(let N of G){let K=N._stacks;if(!K||K[X]===void 0||K[X][q]===void 0)return;if(delete K[X][q],K[X]._visualValues!==void 0&&K[X]._visualValues[q]!==void 0)delete K[X]._visualValues[q]}}var SU=(J)=>J==="reset"||J==="none",KR=(J,G)=>G?J:Object.assign({},J),OV=(J,G,q)=>J&&!G.hidden&&G._stacked&&{keys:Q_(q,!0),values:null};class d3{static defaults={};static datasetElementType=null;static dataElementType=null;constructor(J,G){this.chart=J,this._ctx=J.ctx,this.index=G,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=AU(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)UJ(this._cachedMeta);this.index=J}linkScales(){let J=this.chart,G=this._cachedMeta,q=this.getDataset(),X=(R,_,P,O)=>R==="x"?_:R==="r"?O:P,N=G.xAxisID=s0(q.xAxisID,EU(J,"x")),K=G.yAxisID=s0(q.yAxisID,EU(J,"y")),H=G.rAxisID=s0(q.rAxisID,EU(J,"r")),F=G.indexAxis,W=G.iAxisID=X(F,N,K,H),M=G.vAxisID=X(F,K,N,H);G.xScale=this.getScaleForId(N),G.yScale=this.getScaleForId(K),G.rScale=this.getScaleForId(H),G.iScale=this.getScaleForId(W),G.vScale=this.getScaleForId(M)}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 G=this._cachedMeta;return J===G.iScale?G.vScale:G.iScale}reset(){this._update("reset")}_destroy(){let J=this._cachedMeta;if(this._data)XU(this._data,this);if(J._stacked)UJ(J)}_dataCheck(){let J=this.getDataset(),G=J.data||(J.data=[]),q=this._data;if($1(G)){let X=this._cachedMeta;this._data=RV(G,X)}else if(q!==G){if(q){XU(q,this);let X=this._cachedMeta;UJ(X),X._parsed=[]}if(G&&Object.isExtensible(G))gw(G,this);this._syncList=[],this._data=G}}addElements(){let J=this._cachedMeta;if(this._dataCheck(),this.datasetElementType)J.dataset=new this.datasetElementType}buildOrUpdateElements(J){let G=this._cachedMeta,q=this.getDataset(),X=!1;this._dataCheck();let N=G._stacked;if(G._stacked=AU(G.vScale,G),G.stack!==q.stack)X=!0,UJ(G),G.stack=q.stack;if(this._resyncElements(J),X||N!==G._stacked)UR(this,G._parsed),G._stacked=AU(G.vScale,G)}configure(){let J=this.chart.config,G=J.datasetScopeKeys(this._type),q=J.getOptionScopes(this.getDataset(),G,!0);this.options=J.createResolver(q,this.getContext()),this._parsing=this.options.parsing,this._cachedDataOpts={}}parse(J,G){let{_cachedMeta:q,_data:X}=this,{iScale:N,_stacked:K}=q,H=N.axis,F=J===0&&G===X.length?!0:q._sorted,W=J>0&&q._parsed[J-1],M,R,_;if(this._parsing===!1)q._parsed=X,q._sorted=!0,_=X;else{if(E1(X[J]))_=this.parseArrayData(q,X,J,G);else if($1(X[J]))_=this.parseObjectData(q,X,J,G);else _=this.parsePrimitiveData(q,X,J,G);let P=()=>R[H]===null||W&&R[H]<W[H];for(M=0;M<G;++M)if(q._parsed[M+J]=R=_[M],F){if(P())F=!1;W=R}q._sorted=F}if(K)UR(this,_)}parsePrimitiveData(J,G,q,X){let{iScale:N,vScale:K}=J,H=N.axis,F=K.axis,W=N.getLabels(),M=N===K,R=Array(X),_,P,O;for(_=0,P=X;_<P;++_)O=_+q,R[_]={[H]:M||N.parse(W[O],O),[F]:K.parse(G[O],O)};return R}parseArrayData(J,G,q,X){let{xScale:N,yScale:K}=J,H=Array(X),F,W,M,R;for(F=0,W=X;F<W;++F)M=F+q,R=G[M],H[F]={x:N.parse(R[0],M),y:K.parse(R[1],M)};return H}parseObjectData(J,G,q,X){let{xScale:N,yScale:K}=J,{xAxisKey:H="x",yAxisKey:F="y"}=this._parsing,W=Array(X),M,R,_,P;for(M=0,R=X;M<R;++M)_=M+q,P=G[_],W[M]={x:N.parse(f7(P,H),_),y:K.parse(f7(P,F),_)};return W}getParsed(J){return this._cachedMeta._parsed[J]}getDataElement(J){return this._cachedMeta.data[J]}applyStack(J,G,q){let X=this.chart,N=this._cachedMeta,K=G[J.axis],H={keys:Q_(X,!0),values:G._stacks[J.axis]._visualValues};return XR(H,K,N.index,{mode:q})}updateRangeFromParsed(J,G,q,X){let N=q[G.axis],K=N===null?NaN:N,H=X&&q._stacks[G.axis];if(X&&H)X.values=H,K=XR(X,N,this._cachedMeta.index);J.min=Math.min(J.min,K),J.max=Math.max(J.max,K)}getMinMax(J,G){let q=this._cachedMeta,X=q._parsed,N=q._sorted&&J===q.iScale,K=X.length,H=this._getOtherScale(J),F=OV(G,q,this.chart),W={min:Number.POSITIVE_INFINITY,max:Number.NEGATIVE_INFINITY},{min:M,max:R}=LV(H),_,P;function O(){P=X[_];let E=P[H.axis];return!h1(P[J.axis])||M>E||R<E}for(_=0;_<K;++_){if(O())continue;if(this.updateRangeFromParsed(W,J,P,F),N)break}if(N)for(_=K-1;_>=0;--_){if(O())continue;this.updateRangeFromParsed(W,J,P,F);break}return W}getAllParsedValues(J){let G=this._cachedMeta._parsed,q=[],X,N,K;for(X=0,N=G.length;X<N;++X)if(K=G[X][J.axis],h1(K))q.push(K);return q}getMaxOverflow(){return!1}getLabelAndValue(J){let G=this._cachedMeta,q=G.iScale,X=G.vScale,N=this.getParsed(J);return{label:q?""+q.getLabelForValue(N[q.axis]):"",value:X?""+X.getLabelForValue(N[X.axis]):""}}_update(J){let G=this._cachedMeta;this.update(J||"default"),G._clip=wV(s0(this.options.clip,MV(G.xScale,G.yScale,this.getMaxOverflow())))}update(J){}draw(){let J=this._ctx,G=this.chart,q=this._cachedMeta,X=q.data||[],N=G.chartArea,K=[],H=this._drawStart||0,F=this._drawCount||X.length-H,W=this.options.drawActiveElementsOnTop,M;if(q.dataset)q.dataset.draw(J,N,H,F);for(M=H;M<H+F;++M){let R=X[M];if(R.hidden)continue;if(R.active&&W)K.push(R);else R.draw(J,N)}for(M=0;M<K.length;++M)K[M].draw(J,N)}getStyle(J,G){let q=G?"active":"default";return J===void 0&&this._cachedMeta.dataset?this.resolveDatasetElementOptions(q):this.resolveDataElementOptions(J||0,q)}getContext(J,G,q){let X=this.getDataset(),N;if(J>=0&&J<this._cachedMeta.data.length){let K=this._cachedMeta.data[J];N=K.$context||(K.$context=CV(this.getContext(),J,K)),N.parsed=this.getParsed(J),N.raw=X.data[J],N.index=N.dataIndex=J}else N=this.$context||(this.$context=TV(this.chart.getContext(),this.index)),N.dataset=X,N.index=N.datasetIndex=this.index;return N.active=!!G,N.mode=q,N}resolveDatasetElementOptions(J){return this._resolveElementOptions(this.datasetElementType.id,J)}resolveDataElementOptions(J,G){return this._resolveElementOptions(this.dataElementType.id,G,J)}_resolveElementOptions(J,G="default",q){let X=G==="active",N=this._cachedDataOpts,K=J+"-"+G,H=N[K],F=this.enableOptionSharing&&U$(q);if(H)return KR(H,F);let W=this.chart.config,M=W.datasetElementScopeKeys(this._type,J),R=X?[`${J}Hover`,"hover",J,""]:[J,""],_=W.getOptionScopes(this.getDataset(),M),P=Object.keys(u1.elements[J]),O=()=>this.getContext(q,X,G),E=W.resolveNamedOptions(_,P,O,R);if(E.$shared)E.$shared=F,N[K]=Object.freeze(KR(E,F));return E}_resolveAnimations(J,G,q){let X=this.chart,N=this._cachedDataOpts,K=`animation-${G}`,H=N[K];if(H)return H;let F;if(X.options.animation!==!1){let M=this.chart.config,R=M.datasetAnimationScopeKeys(this._type,G),_=M.getOptionScopes(this.getDataset(),R);F=M.createResolver(_,this.getContext(J,q,G))}let W=new rU(X,F&&F.animations);if(F&&F._cacheable)N[K]=Object.freeze(W);return W}getSharedOptions(J){if(!J.$shared)return;return this._sharedOptions||(this._sharedOptions=Object.assign({},J))}includeOptions(J,G){return!G||SU(J)||this.chart._animationsDisabled}_getSharedOptions(J,G){let q=this.resolveDataElementOptions(J,G),X=this._sharedOptions,N=this.getSharedOptions(q),K=this.includeOptions(G,N)||N!==X;return this.updateSharedOptions(N,G,q),{sharedOptions:N,includeOptions:K}}updateElement(J,G,q,X){if(SU(X))Object.assign(J,q);else this._resolveAnimations(G,X).update(J,q)}updateSharedOptions(J,G,q){if(J&&!SU(G))this._resolveAnimations(void 0,G).update(J,q)}_setStyle(J,G,q,X){J.active=X;let N=this.getStyle(G,X);this._resolveAnimations(G,q,X).update(J,{options:!X&&this.getSharedOptions(N)||N})}removeHoverStyle(J,G,q){this._setStyle(J,q,"active",!1)}setHoverStyle(J,G,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 G=this._data,q=this._cachedMeta.data;for(let[H,F,W]of this._syncList)this[H](F,W);this._syncList=[];let X=q.length,N=G.length,K=Math.min(N,X);if(K)this.parse(0,K);if(N>X)this._insertElements(X,N-X,J);else if(N<X)this._removeElements(N,X-N)}_insertElements(J,G,q=!0){let X=this._cachedMeta,N=X.data,K=J+G,H,F=(W)=>{W.length+=G;for(H=W.length-1;H>=K;H--)W[H]=W[H-G]};F(N);for(H=J;H<K;++H)N[H]=new this.dataElementType;if(this._parsing)F(X._parsed);if(this.parse(J,G),q)this.updateElements(N,J,G,"reset")}updateElements(J,G,q,X){}_removeElements(J,G){let q=this._cachedMeta;if(this._parsing){let X=q._parsed.splice(J,G);if(q._stacked)UJ(q,X)}q.data.splice(J,G)}_sync(J){if(this._parsing)this._syncList.push(J);else{let[G,q,X]=J;this[G](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,G){if(G)this._sync(["_removeElements",J,G]);let q=arguments.length-2;if(q)this._sync(["_insertElements",J,q])}_onDataUnshift(){this._sync(["_insertElements",0,arguments.length])}}function IV(J,G){if(!J._cache.$bar){let q=J.getMatchingVisibleMetas(G),X=[];for(let N=0,K=q.length;N<K;N++)X=X.concat(q[N].controller.getAllParsedValues(J));J._cache.$bar=NU(X.sort((N,K)=>N-K))}return J._cache.$bar}function VV(J){let G=J.iScale,q=IV(G,J.type),X=G._length,N,K,H,F,W=()=>{if(H===32767||H===-32768)return;if(U$(F))X=Math.min(X,Math.abs(H-F)||X);F=H};for(N=0,K=q.length;N<K;++N)H=G.getPixelForValue(q[N]),W();F=void 0;for(N=0,K=G.ticks.length;N<K;++N)H=G.getPixelForTick(N),W();return X}function AV(J,G,q,X){let N=q.barThickness,K,H;if(Q1(N))K=G.min*q.categoryPercentage,H=q.barPercentage;else K=N*X,H=1;return{chunk:K/X,ratio:H,start:G.pixels[J]-K/2}}function EV(J,G,q,X){let N=G.pixels,K=N[J],H=J>0?N[J-1]:null,F=J<N.length-1?N[J+1]:null,W=q.categoryPercentage;if(H===null)H=K-(F===null?G.end-G.start:F-K);if(F===null)F=K+K-H;let M=K-(K-Math.min(H,F))/2*W;return{chunk:Math.abs(F-H)/2*W/X,ratio:q.barPercentage,start:M}}function SV(J,G,q,X){let N=q.parse(J[0],X),K=q.parse(J[1],X),H=Math.min(N,K),F=Math.max(N,K),W=H,M=F;if(Math.abs(H)>Math.abs(F))W=F,M=H;G[q.axis]=M,G._custom={barStart:W,barEnd:M,start:N,end:K,min:H,max:F}}function G_(J,G,q,X){if(E1(J))SV(J,G,q,X);else G[q.axis]=q.parse(J,X);return G}function BR(J,G,q,X){let{iScale:N,vScale:K}=J,H=N.getLabels(),F=N===K,W=[],M,R,_,P;for(M=q,R=q+X;M<R;++M)P=G[M],_={},_[N.axis]=F||N.parse(H[M],M),W.push(G_(P,_,K,M));return W}function DU(J){return J&&J.barStart!==void 0&&J.barEnd!==void 0}function DV(J,G,q){if(J!==0)return U4(J);return(G.isHorizontal()?1:-1)*(G.min>=q?1:-1)}function jV(J){let G,q,X,N,K;if(J.horizontal)G=J.base>J.x,q="left",X="right";else G=J.base<J.y,q="bottom",X="top";if(G)N="end",K="start";else N="start",K="end";return{start:q,end:X,reverse:G,top:N,bottom:K}}function kV(J,G,q,X){let N=G.borderSkipped,K={};if(!N){J.borderSkipped=K;return}if(N===!0){J.borderSkipped={top:!0,right:!0,bottom:!0,left:!0};return}let{start:H,end:F,reverse:W,top:M,bottom:R}=jV(J);if(N==="middle"&&q)if(J.enableBorderRadius=!0,(q._top||0)===X)N=M;else if((q._bottom||0)===X)N=R;else K[HR(R,H,F,W)]=!0,N=M;K[HR(N,H,F,W)]=!0,J.borderSkipped=K}function HR(J,G,q,X){if(X)J=vV(J,G,q),J=FR(J,q,G);else J=FR(J,G,q);return J}function vV(J,G,q){return J===G?q:J===q?G:J}function FR(J,G,q){return J==="start"?G:J==="end"?q:J}function bV(J,{inflateAmount:G},q){J.inflateAmount=G==="auto"?q===1?0.33:0:G}class sU extends d3{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,G,q,X){return BR(J,G,q,X)}parseArrayData(J,G,q,X){return BR(J,G,q,X)}parseObjectData(J,G,q,X){let{iScale:N,vScale:K}=J,{xAxisKey:H="x",yAxisKey:F="y"}=this._parsing,W=N.axis==="x"?H:F,M=K.axis==="x"?H:F,R=[],_,P,O,E;for(_=q,P=q+X;_<P;++_)E=G[_],O={},O[N.axis]=N.parse(f7(E,W),_),R.push(G_(f7(E,M),O,K,_));return R}updateRangeFromParsed(J,G,q,X){super.updateRangeFromParsed(J,G,q,X);let N=q._custom;if(N&&G===this._cachedMeta.vScale)J.min=Math.min(J.min,N.min),J.max=Math.max(J.max,N.max)}getMaxOverflow(){return 0}getLabelAndValue(J){let G=this._cachedMeta,{iScale:q,vScale:X}=G,N=this.getParsed(J),K=N._custom,H=DU(K)?"["+K.start+", "+K.end+"]":""+X.getLabelForValue(N[X.axis]);return{label:""+q.getLabelForValue(N[q.axis]),value:H}}initialize(){this.enableOptionSharing=!0,super.initialize();let J=this._cachedMeta;J.stack=this.getDataset().stack}update(J){let G=this._cachedMeta;this.updateElements(G.data,0,G.data.length,J)}updateElements(J,G,q,X){let N=X==="reset",{index:K,_cachedMeta:{vScale:H}}=this,F=H.getBasePixel(),W=H.isHorizontal(),M=this._getRuler(),{sharedOptions:R,includeOptions:_}=this._getSharedOptions(G,X);for(let P=G;P<G+q;P++){let O=this.getParsed(P),E=N||Q1(O[H.axis])?{base:F,head:F}:this._calculateBarValuePixels(P),V=this._calculateBarIndexPixels(P,M),I=(O._stacks||{})[H.axis],j={horizontal:W,base:E.base,enableBorderRadius:!I||DU(O._custom)||K===I._top||K===I._bottom,x:W?E.head:V.center,y:W?V.center:E.head,height:W?V.size:Math.abs(E.size),width:W?Math.abs(E.size):V.size};if(_)j.options=R||this.resolveDataElementOptions(P,J[P].active?"active":X);let h=j.options||J[P].options;kV(j,h,I,K),bV(j,h,M.ratio),this.updateElement(J[P],P,j,X)}}_getStacks(J,G){let{iScale:q}=this._cachedMeta,X=q.getMatchingVisibleMetas(this._type).filter((M)=>M.controller.options.grouped),N=q.options.stacked,K=[],H=this._cachedMeta.controller.getParsed(G),F=H&&H[q.axis],W=(M)=>{let R=M._parsed.find((P)=>P[q.axis]===F),_=R&&R[M.vScale.axis];if(Q1(_)||isNaN(_))return!0};for(let M of X){if(G!==void 0&&W(M))continue;if(N===!1||K.indexOf(M.stack)===-1||N===void 0&&M.stack===void 0)K.push(M.stack);if(M.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,G=this.chart.options.indexAxis;return Object.keys(J).filter((q)=>J[q].axis===G).shift()}_getAxis(){let J={},G=this.getFirstScaleIdForIndexAxis();for(let q of this.chart.data.datasets)J[s0(this.chart.options.indexAxis==="x"?q.xAxisID:q.yAxisID,G)]=!0;return Object.keys(J)}_getStackIndex(J,G,q){let X=this._getStacks(J,q),N=G!==void 0?X.indexOf(G):-1;return N===-1?X.length-1:N}_getRuler(){let J=this.options,G=this._cachedMeta,q=G.iScale,X=[],N,K;for(N=0,K=G.data.length;N<K;++N)X.push(q.getPixelForValue(this.getParsed(N)[q.axis],N));let H=J.barThickness;return{min:H||VV(G),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:G,_stacked:q,index:X},options:{base:N,minBarLength:K}}=this,H=N||0,F=this.getParsed(J),W=F._custom,M=DU(W),R=F[G.axis],_=0,P=q?this.applyStack(G,F,q):R,O,E;if(P!==R)_=P-R,P=R;if(M){if(R=W.barStart,P=W.barEnd-W.barStart,R!==0&&U4(R)!==U4(W.barEnd))_=0;_+=R}let V=!Q1(N)&&!M?N:_,I=G.getPixelForValue(V);if(this.chart.getDataVisibility(J))O=G.getPixelForValue(_+P);else O=I;if(E=O-I,Math.abs(E)<K){if(E=DV(E,G,H)*K,R===H)I-=E/2;let j=G.getPixelForDecimal(0),h=G.getPixelForDecimal(1),p=Math.min(j,h),n=Math.max(j,h);if(I=Math.max(Math.min(I,n),p),O=I+E,q&&!M)F._stacks[G.axis]._visualValues[X]=G.getValueForPixel(O)-G.getValueForPixel(I)}if(I===G.getPixelForValue(H)){let j=U4(E)*G.getLineWidthForValue(H)/2;I+=j,E-=j}return{size:E,base:I,head:O,center:O+E/2}}_calculateBarIndexPixels(J,G){let q=G.scale,X=this.options,N=X.skipNull,K=s0(X.maxBarThickness,1/0),H,F,W=this._getAxisCount();if(G.grouped){let M=N?this._getStackCount(J):G.stackCount,R=X.barThickness==="flex"?EV(J,G,X,M*W):AV(J,G,X,M*W),_=this.chart.options.indexAxis==="x"?this.getDataset().xAxisID:this.getDataset().yAxisID,P=this._getAxis().indexOf(s0(_,this.getFirstScaleIdForIndexAxis())),O=this._getStackIndex(this.index,this._cachedMeta.stack,N?J:void 0)+P;H=R.start+R.chunk*O+R.chunk/2,F=Math.min(K,R.chunk*R.ratio)}else H=q.getPixelForValue(this.getParsed(J)[q.axis],J),F=Math.min(K,G.min*G.ratio);return{base:H-F/2,head:H+F/2,center:H,size:F}}draw(){let J=this._cachedMeta,G=J.vScale,q=J.data,X=q.length,N=0;for(;N<X;++N)if(this.getParsed(N)[G.axis]!==null&&!q[N].hidden)q[N].draw(this._ctx)}}class nU extends d3{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 G=this._cachedMeta,{dataset:q,data:X=[],_dataset:N}=G,K=this.chart._animationsDisabled,{start:H,count:F}=xw(G,X,K);if(this._drawStart=H,this._drawCount=F,mw(G))H=0,F=X.length;q._chart=this.chart,q._datasetIndex=this.index,q._decimated=!!N._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,F,J)}updateElements(J,G,q,X){let N=X==="reset",{iScale:K,vScale:H,_stacked:F,_dataset:W}=this._cachedMeta,{sharedOptions:M,includeOptions:R}=this._getSharedOptions(G,X),_=K.axis,P=H.axis,{spanGaps:O,segment:E}=this.options,V=B$(O)?O:Number.POSITIVE_INFINITY,I=this.chart._animationsDisabled||N||X==="none",j=G+q,h=J.length,p=G>0&&this.getParsed(G-1);for(let n=0;n<h;++n){let a=J[n],Q0=I?a:{};if(n<G||n>=j){Q0.skip=!0;continue}let t=this.getParsed(n),i=Q1(t[P]),X0=Q0[_]=K.getPixelForValue(t[_],n),d=Q0[P]=N||i?H.getBasePixel():H.getPixelForValue(F?this.applyStack(H,t,F):t[P],n);if(Q0.skip=isNaN(X0)||isNaN(d)||i,Q0.stop=n>0&&Math.abs(t[_]-p[_])>V,E)Q0.parsed=t,Q0.raw=W.data[n];if(R)Q0.options=M||this.resolveDataElementOptions(n,a.active?"active":X);if(!I)this.updateElement(a,n,Q0,X);p=t}}getMaxOverflow(){let J=this._cachedMeta,G=J.dataset,q=G.options&&G.options.borderWidth||0,X=J.data||[];if(!X.length)return q;let N=X[0].size(this.resolveDataElementOptions(0)),K=X[X.length-1].size(this.resolveDataElementOptions(X.length-1));return Math.max(q,N,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 oU{static override(J){Object.assign(oU.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 fV={_date:oU};function yV(J,G,q,X){let{controller:N,data:K,_sorted:H}=J,F=N._cachedMeta.iScale,W=J.dataset?J.dataset.options?J.dataset.options.spanGaps:null:null;if(F&&G===F.axis&&G!=="r"&&H&&K.length){let M=F._reversePixels?bw:V2;if(!X){let R=M(K,G,q);if(W){let{vScale:_}=N._cachedMeta,{_parsed:P}=J,O=P.slice(0,R.lo+1).reverse().findIndex((V)=>!Q1(V[_.axis]));R.lo-=Math.max(0,O);let E=P.slice(R.hi).findIndex((V)=>!Q1(V[_.axis]));R.hi+=Math.max(0,E)}return R}else if(N._sharedOptions){let R=K[0],_=typeof R.getRange==="function"&&R.getRange(G);if(_){let P=M(K,G,q-_),O=M(K,G,q+_);return{lo:P.lo,hi:O.hi}}}}return{lo:0,hi:K.length-1}}function LJ(J,G,q,X,N){let K=J.getSortedVisibleDatasetMetas(),H=q[G];for(let F=0,W=K.length;F<W;++F){let{index:M,data:R}=K[F],{lo:_,hi:P}=yV(K[F],G,H,N);for(let O=_;O<=P;++O){let E=R[O];if(!E.skip)X(E,M,O)}}}function gV(J){let G=J.indexOf("x")!==-1,q=J.indexOf("y")!==-1;return function(X,N){let K=G?Math.abs(X.x-N.x):0,H=q?Math.abs(X.y-N.y):0;return Math.sqrt(Math.pow(K,2)+Math.pow(H,2))}}function jU(J,G,q,X,N){let K=[];if(!N&&!J.isPointInArea(G))return K;return LJ(J,q,G,function(F,W,M){if(!N&&!x4(F,J.chartArea,0))return;if(F.inRange(G.x,G.y,X))K.push({element:F,datasetIndex:W,index:M})},!0),K}function hV(J,G,q,X){let N=[];function K(H,F,W){let{startAngle:M,endAngle:R}=H.getProps(["startAngle","endAngle"],X),{angle:_}=kw(H,{x:G.x,y:G.y});if(YU(_,M,R))N.push({element:H,datasetIndex:F,index:W})}return LJ(J,q,G,K),N}function uV(J,G,q,X,N,K){let H=[],F=gV(q),W=Number.POSITIVE_INFINITY;function M(R,_,P){let O=R.inRange(G.x,G.y,N);if(X&&!O)return;let E=R.getCenterPoint(N);if(!(!!K||J.isPointInArea(E))&&!O)return;let I=F(G,E);if(I<W)H=[{element:R,datasetIndex:_,index:P}],W=I;else if(I===W)H.push({element:R,datasetIndex:_,index:P})}return LJ(J,q,G,M),H}function kU(J,G,q,X,N,K){if(!K&&!J.isPointInArea(G))return[];return q==="r"&&!X?hV(J,G,q,N):uV(J,G,q,X,N,K)}function WR(J,G,q,X,N){let K=[],H=q==="x"?"inXRange":"inYRange",F=!1;if(LJ(J,q,G,(W,M,R)=>{if(W[H]&&W[H](G[q],N))K.push({element:W,datasetIndex:M,index:R}),F=F||W.inRange(G.x,G.y,N)}),X&&!F)return[];return K}var xV={evaluateInteractionItems:LJ,modes:{index(J,G,q,X){let N=k2(G,J),K=q.axis||"x",H=q.includeInvisible||!1,F=q.intersect?jU(J,N,K,X,H):kU(J,N,K,!1,X,H),W=[];if(!F.length)return[];return J.getSortedVisibleDatasetMetas().forEach((M)=>{let R=F[0].index,_=M.data[R];if(_&&!_.skip)W.push({element:_,datasetIndex:M.index,index:R})}),W},dataset(J,G,q,X){let N=k2(G,J),K=q.axis||"xy",H=q.includeInvisible||!1,F=q.intersect?jU(J,N,K,X,H):kU(J,N,K,!1,X,H);if(F.length>0){let W=F[0].datasetIndex,M=J.getDatasetMeta(W).data;F=[];for(let R=0;R<M.length;++R)F.push({element:M[R],datasetIndex:W,index:R})}return F},point(J,G,q,X){let N=k2(G,J),K=q.axis||"xy",H=q.includeInvisible||!1;return jU(J,N,K,X,H)},nearest(J,G,q,X){let N=k2(G,J),K=q.axis||"xy",H=q.includeInvisible||!1;return kU(J,N,K,q.intersect,X,H)},x(J,G,q,X){let N=k2(G,J);return WR(J,N,"x",q.intersect,X)},y(J,G,q,X){let N=k2(G,J);return WR(J,N,"y",q.intersect,X)}}},q_=["left","top","right","bottom"];function KJ(J,G){return J.filter((q)=>q.pos===G)}function zR(J,G){return J.filter((q)=>q_.indexOf(q.pos)===-1&&q.box.axis===G)}function BJ(J,G){return J.sort((q,X)=>{let N=G?X:q,K=G?q:X;return N.weight===K.weight?N.index-K.index:N.weight-K.weight})}function mV(J){let G=[],q,X,N,K,H,F;for(q=0,X=(J||[]).length;q<X;++q)N=J[q],{position:K,options:{stack:H,stackWeight:F=1}}=N,G.push({index:q,box:N,pos:K,horizontal:N.isHorizontal(),weight:N.weight,stack:H&&K+H,stackWeight:F});return G}function dV(J){let G={};for(let q of J){let{stack:X,pos:N,stackWeight:K}=q;if(!X||!q_.includes(N))continue;let H=G[X]||(G[X]={count:0,placed:0,weight:0,size:0});H.count++,H.weight+=K}return G}function pV(J,G){let q=dV(J),{vBoxMaxWidth:X,hBoxMaxHeight:N}=G,K,H,F;for(K=0,H=J.length;K<H;++K){F=J[K];let{fullSize:W}=F.box,M=q[F.stack],R=M&&F.stackWeight/M.weight;if(F.horizontal)F.width=R?R*X:W&&G.availableWidth,F.height=N;else F.width=X,F.height=R?R*N:W&&G.availableHeight}return q}function cV(J){let G=mV(J),q=BJ(G.filter((M)=>M.box.fullSize),!0),X=BJ(KJ(G,"left"),!0),N=BJ(KJ(G,"right")),K=BJ(KJ(G,"top"),!0),H=BJ(KJ(G,"bottom")),F=zR(G,"x"),W=zR(G,"y");return{fullSize:q,leftAndTop:X.concat(K),rightAndBottom:N.concat(W).concat(H).concat(F),chartArea:KJ(G,"chartArea"),vertical:X.concat(N).concat(W),horizontal:K.concat(H).concat(F)}}function MR(J,G,q,X){return Math.max(J[q],G[q])+Math.max(J[X],G[X])}function Y_(J,G){J.top=Math.max(J.top,G.top),J.left=Math.max(J.left,G.left),J.bottom=Math.max(J.bottom,G.bottom),J.right=Math.max(J.right,G.right)}function lV(J,G,q,X){let{pos:N,box:K}=q,H=J.maxPadding;if(!$1(N)){if(q.size)J[N]-=q.size;let _=X[q.stack]||{size:0,count:1};_.size=Math.max(_.size,q.horizontal?K.height:K.width),q.size=_.size/_.count,J[N]+=q.size}if(K.getPadding)Y_(H,K.getPadding());let F=Math.max(0,G.outerWidth-MR(H,J,"left","right")),W=Math.max(0,G.outerHeight-MR(H,J,"top","bottom")),M=F!==J.w,R=W!==J.h;return J.w=F,J.h=W,q.horizontal?{same:M,other:R}:{same:R,other:M}}function rV(J){let G=J.maxPadding;function q(X){let N=Math.max(G[X]-J[X],0);return J[X]+=N,N}J.y+=q("top"),J.x+=q("left"),q("right"),q("bottom")}function sV(J,G){let q=G.maxPadding;function X(N){let K={left:0,top:0,right:0,bottom:0};return N.forEach((H)=>{K[H]=Math.max(G[H],q[H])}),K}return J?X(["left","right"]):X(["top","bottom"])}function WJ(J,G,q,X){let N=[],K,H,F,W,M,R;for(K=0,H=J.length,M=0;K<H;++K){F=J[K],W=F.box,W.update(F.width||G.w,F.height||G.h,sV(F.horizontal,G));let{same:_,other:P}=lV(G,q,F,X);if(M|=_&&N.length,R=R||P,!W.fullSize)N.push(F)}return M&&WJ(N,G,q,X)||R}function b3(J,G,q,X,N){J.top=q,J.left=G,J.right=G+X,J.bottom=q+N,J.width=X,J.height=N}function wR(J,G,q,X){let N=q.padding,{x:K,y:H}=G;for(let F of J){let W=F.box,M=X[F.stack]||{count:1,placed:0,weight:1},R=F.stackWeight/M.weight||1;if(F.horizontal){let _=G.w*R,P=M.size||W.height;if(U$(M.start))H=M.start;if(W.fullSize)b3(W,N.left,H,q.outerWidth-N.right-N.left,P);else b3(W,G.left+M.placed,H,_,P);M.start=H,M.placed+=_,H=W.bottom}else{let _=G.h*R,P=M.size||W.width;if(U$(M.start))K=M.start;if(W.fullSize)b3(W,K,N.top,P,q.outerHeight-N.bottom-N.top);else b3(W,K,G.top+M.placed,P,_);M.start=K,M.placed+=_,K=W.right}}G.x=K,G.y=H}var c6={addBox(J,G){if(!J.boxes)J.boxes=[];G.fullSize=G.fullSize||!1,G.position=G.position||"top",G.weight=G.weight||0,G._layers=G._layers||function(){return[{z:0,draw(q){G.draw(q)}}]},J.boxes.push(G)},removeBox(J,G){let q=J.boxes?J.boxes.indexOf(G):-1;if(q!==-1)J.boxes.splice(q,1)},configure(J,G,q){G.fullSize=q.fullSize,G.position=q.position,G.weight=q.weight},update(J,G,q,X){if(!J)return;let N=T5(J.options.layout.padding),K=Math.max(G-N.width,0),H=Math.max(q-N.height,0),F=cV(J.boxes),W=F.vertical,M=F.horizontal;F1(J.boxes,(V)=>{if(typeof V.beforeLayout==="function")V.beforeLayout()});let R=W.reduce((V,I)=>I.box.options&&I.box.options.display===!1?V:V+1,0)||1,_=Object.freeze({outerWidth:G,outerHeight:q,padding:N,availableWidth:K,availableHeight:H,vBoxMaxWidth:K/2/R,hBoxMaxHeight:H/2}),P=Object.assign({},N);Y_(P,T5(X));let O=Object.assign({maxPadding:P,w:K,h:H,x:N.left,y:N.top},N),E=pV(W.concat(M),_);if(WJ(F.fullSize,O,_,E),WJ(W,O,_,E),WJ(M,O,_,E))WJ(W,O,_,E);rV(O),wR(F.leftAndTop,O,_,E),O.x+=O.w,O.y+=O.h,wR(F.rightAndBottom,O,_,E),J.chartArea={left:O.left,top:O.top,right:O.left+O.w,bottom:O.top+O.h,height:O.h,width:O.w},F1(F.chartArea,(V)=>{let I=V.box;Object.assign(I,J.chartArea),I.update(O.w,O.h,{left:0,top:0,right:0,bottom:0})})}};class aU{acquireContext(J,G){}releaseContext(J){return!1}addEventListener(J,G,q){}removeEventListener(J,G,q){}getDevicePixelRatio(){return 1}getMaximumSize(J,G,q,X){return G=Math.max(0,G||J.width),q=q||J.height,{width:G,height:Math.max(0,X?Math.floor(G/X):q)}}isAttached(J){return!0}updateConfig(J){}}class X_ extends aU{acquireContext(J){return J&&J.getContext&&J.getContext("2d")||null}updateConfig(J){J.options.animation=!1}}var u3="$chartjs",nV={touchstart:"mousedown",touchmove:"mousemove",touchend:"mouseup",pointerenter:"mouseenter",pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointerleave:"mouseout",pointerout:"mouseout"},RR=(J)=>J===null||J==="";function oV(J,G){let q=J.style,X=J.getAttribute("height"),N=J.getAttribute("width");if(J[u3]={initial:{height:X,width:N,style:{display:q.display,height:q.height,width:q.width}}},q.display=q.display||"block",q.boxSizing=q.boxSizing||"border-box",RR(N)){let K=PU(J,"width");if(K!==void 0)J.width=K}if(RR(X))if(J.style.height==="")J.height=J.width/(G||2);else{let K=PU(J,"height");if(K!==void 0)J.height=K}return J}var N_=$R?{passive:!0}:!1;function aV(J,G,q){if(J)J.addEventListener(G,q,N_)}function iV(J,G,q){if(J&&J.canvas)J.canvas.removeEventListener(G,q,N_)}function tV(J,G){let q=nV[J.type]||J.type,{x:X,y:N}=k2(J,G);return{type:q,chart:G,native:J,x:X!==void 0?X:null,y:N!==void 0?N:null}}function m3(J,G){for(let q of J)if(q===G||q.contains(G))return!0}function eV(J,G,q){let X=J.canvas,N=new MutationObserver((K)=>{let H=!1;for(let F of K)H=H||m3(F.addedNodes,X),H=H&&!m3(F.removedNodes,X);if(H)q()});return N.observe(document,{childList:!0,subtree:!0}),N}function $A(J,G,q){let X=J.canvas,N=new MutationObserver((K)=>{let H=!1;for(let F of K)H=H||m3(F.removedNodes,X),H=H&&!m3(F.addedNodes,X);if(H)q()});return N.observe(document,{childList:!0,subtree:!0}),N}var wJ=new Map,_R=0;function U_(){let J=window.devicePixelRatio;if(J===_R)return;_R=J,wJ.forEach((G,q)=>{if(q.currentDevicePixelRatio!==J)G()})}function ZA(J,G){if(!wJ.size)window.addEventListener("resize",U_);wJ.set(J,G)}function JA(J){if(wJ.delete(J),!wJ.size)window.removeEventListener("resize",U_)}function QA(J,G,q){let X=J.canvas,N=X&&k3(X);if(!N)return;let K=KU((F,W)=>{let M=N.clientWidth;if(q(F,W),M<N.clientWidth)q()},window),H=new ResizeObserver((F)=>{let W=F[0],M=W.contentRect.width,R=W.contentRect.height;if(M===0&&R===0)return;K(M,R)});return H.observe(N),ZA(J,K),H}function vU(J,G,q){if(q)q.disconnect();if(G==="resize")JA(J)}function GA(J,G,q){let X=J.canvas,N=KU((K)=>{if(J.ctx!==null)q(tV(K,J))},J);return aV(X,G,N),N}class K_ extends aU{acquireContext(J,G){let q=J&&J.getContext&&J.getContext("2d");if(q&&q.canvas===J)return oV(J,G),q;return null}releaseContext(J){let G=J.canvas;if(!G[u3])return!1;let q=G[u3].initial;["height","width"].forEach((N)=>{let K=q[N];if(Q1(K))G.removeAttribute(N);else G.setAttribute(N,K)});let X=q.style||{};return Object.keys(X).forEach((N)=>{G.style[N]=X[N]}),G.width=G.width,delete G[u3],!0}addEventListener(J,G,q){this.removeEventListener(J,G);let X=J.$proxies||(J.$proxies={}),K={attach:eV,detach:$A,resize:QA}[G]||GA;X[G]=K(J,G,q)}removeEventListener(J,G){let q=J.$proxies||(J.$proxies={}),X=q[G];if(!X)return;({attach:vU,detach:vU,resize:vU}[G]||iV)(J,G,X),q[G]=void 0}getDevicePixelRatio(){return window.devicePixelRatio}getMaximumSize(J,G,q,X){return ew(J,G,q,X)}isAttached(J){let G=J&&k3(J);return!!(G&&G.isConnected)}}function qA(J){if(!j3()||typeof OffscreenCanvas<"u"&&J instanceof OffscreenCanvas)return X_;return K_}class E8{static defaults={};static defaultRoutes=void 0;x;y;active=!1;options;$animations;tooltipPosition(J){let{x:G,y:q}=this.getProps(["x","y"],J);return{x:G,y:q}}hasValue(){return B$(this.x)&&B$(this.y)}getProps(J,G){let q=this.$animations;if(!G||!q)return this;let X={};return J.forEach((N)=>{X[N]=q[N]&&q[N].active()?q[N]._to:this[N]}),X}}function YA(J,G){let q=J.options.ticks,X=XA(J),N=Math.min(q.maxTicksLimit||X,X),K=q.major.enabled?UA(G):[],H=K.length,F=K[0],W=K[H-1],M=[];if(H>N)return KA(G,M,K,H/N),M;let R=NA(K,G,N);if(H>0){let _,P,O=H>1?Math.round((W-F)/(H-1)):null;f3(G,M,R,Q1(O)?0:F-O,F);for(_=0,P=H-1;_<P;_++)f3(G,M,R,K[_],K[_+1]);return f3(G,M,R,W,Q1(O)?G.length:W+O),M}return f3(G,M,R),M}function XA(J){let G=J.options.offset,q=J._tickSize(),X=J._length/q+(G?0:1),N=J._maxLength/q;return Math.floor(Math.min(X,N))}function NA(J,G,q){let X=BA(J),N=G.length/q;if(!X)return Math.max(N,1);let K=Dw(X);for(let H=0,F=K.length-1;H<F;H++){let W=K[H];if(W>N)return W}return Math.max(N,1)}function UA(J){let G=[],q,X;for(q=0,X=J.length;q<X;q++)if(J[q].major)G.push(q);return G}function KA(J,G,q,X){let N=0,K=q[0],H;X=Math.ceil(X);for(H=0;H<J.length;H++)if(H===K)G.push(J[H]),N++,K=q[N*X]}function f3(J,G,q,X,N){let K=s0(X,0),H=Math.min(s0(N,J.length),J.length),F=0,W,M,R;if(q=Math.ceil(q),N)W=N-X,q=W/Math.floor(W/q);R=K;while(R<0)F++,R=Math.round(K+F*q);for(M=Math.max(K,0);M<H;M++)if(M===R)G.push(J[M]),F++,R=Math.round(K+F*q)}function BA(J){let G=J.length,q,X;if(G<2)return!1;for(X=J[0],q=1;q<G;++q)if(J[q]-J[q-1]!==X)return!1;return X}var HA=(J)=>J==="left"?"right":J==="right"?"left":J,LR=(J,G,q)=>G==="top"||G==="left"?J[G]+q:J[G]-q,PR=(J,G)=>Math.min(G||J,J);function TR(J,G){let q=[],X=J.length/G,N=J.length,K=0;for(;K<N;K+=X)q.push(J[Math.floor(K)]);return q}function FA(J,G,q){let X=J.ticks.length,N=Math.min(G,X-1),K=J._startPixel,H=J._endPixel,F=0.000001,W=J.getPixelForTick(N),M;if(q){if(X===1)M=Math.max(W-K,H-W);else if(G===0)M=(J.getPixelForTick(1)-W)/2;else M=(W-J.getPixelForTick(N-1))/2;if(W+=N<G?M:-M,W<K-0.000001||W>H+0.000001)return}return W}function WA(J,G){F1(J,(q)=>{let X=q.gc,N=X.length/2,K;if(N>G){for(K=0;K<N;++K)delete q.data[X[K]];X.splice(0,N)}})}function HJ(J){return J.drawTicks?J.tickLength:0}function CR(J,G){if(!J.display)return 0;let q=Q5(J.font,G),X=T5(J.padding);return(E1(J.text)?J.text.length:1)*q.lineHeight+X.height}function zA(J,G){return I8(J,{scale:G,type:"scale"})}function MA(J,G,q){return I8(J,{tick:q,index:G,type:"tick"})}function wA(J,G,q){let X=V3(J);if(q&&G!=="right"||!q&&G==="right")X=HA(X);return X}function RA(J,G,q,X){let{top:N,left:K,bottom:H,right:F,chart:W}=J,{chartArea:M,scales:R}=W,_=0,P,O,E,V=H-N,I=F-K;if(J.isHorizontal()){if(O=P5(X,K,F),$1(q)){let j=Object.keys(q)[0],h=q[j];E=R[j].getPixelForValue(h)+V-G}else if(q==="center")E=(M.bottom+M.top)/2+V-G;else E=LR(J,q,G);P=F-K}else{if($1(q)){let j=Object.keys(q)[0],h=q[j];O=R[j].getPixelForValue(h)-I+G}else if(q==="center")O=(M.left+M.right)/2-I+G;else O=LR(J,q,G);E=P5(X,H,N),_=q==="left"?-t5:t5}return{titleX:O,titleY:E,maxWidth:P,rotation:_}}class u7 extends E8{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,G){return J}getUserBounds(){let{_userMin:J,_userMax:G,_suggestedMin:q,_suggestedMax:X}=this;return J=Z6(J,Number.POSITIVE_INFINITY),G=Z6(G,Number.NEGATIVE_INFINITY),q=Z6(q,Number.POSITIVE_INFINITY),X=Z6(X,Number.NEGATIVE_INFINITY),{min:Z6(J,q),max:Z6(G,X),minDefined:h1(J),maxDefined:h1(G)}}getMinMax(J){let{min:G,max:q,minDefined:X,maxDefined:N}=this.getUserBounds(),K;if(X&&N)return{min:G,max:q};let H=this.getMatchingVisibleMetas();for(let F=0,W=H.length;F<W;++F){if(K=H[F].controller.getMinMax(this,J),!X)G=Math.min(G,K.min);if(!N)q=Math.max(q,K.max)}return G=N&&G>q?q:G,q=X&&G>q?G:q,{min:Z6(G,Z6(q,G)),max:Z6(q,Z6(G,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(){O1(this.options.beforeUpdate,[this])}update(J,G,q){let{beginAtZero:X,grace:N,ticks:K}=this.options,H=K.sampleSize;if(this.beforeUpdate(),this.maxWidth=J,this.maxHeight=G,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(),this._range=sw(this,N,X),this._dataLimitsCached=!0;this.beforeBuildTicks(),this.ticks=this.buildTicks()||[],this.afterBuildTicks();let F=H<this.ticks.length;if(this._convertTicksToLabels(F?TR(this.ticks,H):this.ticks),this.configure(),this.beforeCalculateLabelRotation(),this.calculateLabelRotation(),this.afterCalculateLabelRotation(),K.display&&(K.autoSkip||K.source==="auto"))this.ticks=YA(this,this.ticks),this._labelSizes=null,this.afterAutoSkip();if(F)this._convertTicksToLabels(this.ticks);this.beforeFit(),this.fit(),this.afterFit(),this.afterUpdate()}configure(){let J=this.options.reverse,G,q;if(this.isHorizontal())G=this.left,q=this.right;else G=this.top,q=this.bottom,J=!J;this._startPixel=G,this._endPixel=q,this._reversePixels=J,this._length=q-G,this._alignToPixels=this.options.alignToPixels}afterUpdate(){O1(this.options.afterUpdate,[this])}beforeSetDimensions(){O1(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(){O1(this.options.afterSetDimensions,[this])}_callHooks(J){this.chart.notifyPlugins(J,this.getContext()),O1(this.options[J],[this])}beforeDataLimits(){this._callHooks("beforeDataLimits")}determineDataLimits(){}afterDataLimits(){this._callHooks("afterDataLimits")}beforeBuildTicks(){this._callHooks("beforeBuildTicks")}buildTicks(){return[]}afterBuildTicks(){this._callHooks("afterBuildTicks")}beforeTickToLabelConversion(){O1(this.options.beforeTickToLabelConversion,[this])}generateTickLabels(J){let G=this.options.ticks,q,X,N;for(q=0,X=J.length;q<X;q++)N=J[q],N.label=O1(G.callback,[N.value,q,J],this)}afterTickToLabelConversion(){O1(this.options.afterTickToLabelConversion,[this])}beforeCalculateLabelRotation(){O1(this.options.beforeCalculateLabelRotation,[this])}calculateLabelRotation(){let J=this.options,G=J.ticks,q=PR(this.ticks.length,J.ticks.maxTicksLimit),X=G.minRotation||0,N=G.maxRotation,K=X,H,F,W;if(!this._isVisible()||!G.display||X>=N||q<=1||!this.isHorizontal()){this.labelRotation=X;return}let M=this._getLabelSizes(),R=M.widest.width,_=M.highest.height,P=$6(this.chart.width-R,0,this.maxWidth);if(H=J.offset?this.maxWidth/q:P/(q-1),R+6>H)H=P/(q-(J.offset?0.5:1)),F=this.maxHeight-HJ(J.grid)-G.padding-CR(J.title,this.chart.options.font),W=Math.sqrt(R*R+_*_),K=O3(Math.min(Math.asin($6((M.highest.height+6)/H,-1,1)),Math.asin($6(F/W,-1,1))-Math.asin($6(_/W,-1,1)))),K=Math.max(X,Math.min(N,K));this.labelRotation=K}afterCalculateLabelRotation(){O1(this.options.afterCalculateLabelRotation,[this])}afterAutoSkip(){}beforeFit(){O1(this.options.beforeFit,[this])}fit(){let J={width:0,height:0},{chart:G,options:{ticks:q,title:X,grid:N}}=this,K=this._isVisible(),H=this.isHorizontal();if(K){let F=CR(X,G.options.font);if(H)J.width=this.maxWidth,J.height=HJ(N)+F;else J.height=this.maxHeight,J.width=HJ(N)+F;if(q.display&&this.ticks.length){let{first:W,last:M,widest:R,highest:_}=this._getLabelSizes(),P=q.padding*2,O=C8(this.labelRotation),E=Math.cos(O),V=Math.sin(O);if(H){let I=q.mirror?0:V*R.width+E*_.height;J.height=Math.min(this.maxHeight,J.height+I+P)}else{let I=q.mirror?0:E*R.width+V*_.height;J.width=Math.min(this.maxWidth,J.width+I+P)}this._calculatePadding(W,M,V,E)}}if(this._handleMargins(),H)this.width=this._length=G.width-this._margins.left-this._margins.right,this.height=J.height;else this.width=J.width,this.height=this._length=G.height-this._margins.top-this._margins.bottom}_calculatePadding(J,G,q,X){let{ticks:{align:N,padding:K},position:H}=this.options,F=this.labelRotation!==0,W=H!=="top"&&this.axis==="x";if(this.isHorizontal()){let M=this.getPixelForTick(0)-this.left,R=this.right-this.getPixelForTick(this.ticks.length-1),_=0,P=0;if(F)if(W)_=X*J.width,P=q*G.height;else _=q*J.height,P=X*G.width;else if(N==="start")P=G.width;else if(N==="end")_=J.width;else if(N!=="inner")_=J.width/2,P=G.width/2;this.paddingLeft=Math.max((_-M+K)*this.width/(this.width-M),0),this.paddingRight=Math.max((P-R+K)*this.width/(this.width-R),0)}else{let M=G.height/2,R=J.height/2;if(N==="start")M=0,R=J.height;else if(N==="end")M=G.height,R=0;this.paddingTop=M+K,this.paddingBottom=R+K}}_handleMargins(){if(this._margins)this._margins.left=Math.max(this.paddingLeft,this._margins.left),this._margins.top=Math.max(this.paddingTop,this._margins.top),this._margins.right=Math.max(this.paddingRight,this._margins.right),this._margins.bottom=Math.max(this.paddingBottom,this._margins.bottom)}afterFit(){O1(this.options.afterFit,[this])}isHorizontal(){let{axis:J,position:G}=this.options;return G==="top"||G==="bottom"||J==="x"}isFullSize(){return this.options.fullSize}_convertTicksToLabels(J){this.beforeTickToLabelConversion(),this.generateTickLabels(J);let G,q;for(G=0,q=J.length;G<q;G++)if(Q1(J[G].label))J.splice(G,1),q--,G--;this.afterTickToLabelConversion()}_getLabelSizes(){let J=this._labelSizes;if(!J){let G=this.options.ticks.sampleSize,q=this.ticks;if(G<q.length)q=TR(q,G);this._labelSizes=J=this._computeLabelSizes(q,q.length,this.options.ticks.maxTicksLimit)}return J}_computeLabelSizes(J,G,q){let{ctx:X,_longestTextCache:N}=this,K=[],H=[],F=Math.floor(G/PR(G,q)),W=0,M=0,R,_,P,O,E,V,I,j,h,p,n;for(R=0;R<G;R+=F){if(O=J[R].label,E=this._resolveTickFontOptions(R),X.font=V=E.string,I=N[V]=N[V]||{data:{},gc:[]},j=E.lineHeight,h=p=0,!Q1(O)&&!E1(O))h=QJ(X,I.data,I.gc,h,O),p=j;else if(E1(O)){for(_=0,P=O.length;_<P;++_)if(n=O[_],!Q1(n)&&!E1(n))h=QJ(X,I.data,I.gc,h,n),p+=j}K.push(h),H.push(p),W=Math.max(h,W),M=Math.max(p,M)}WA(N,G);let a=K.indexOf(W),Q0=H.indexOf(M),t=(i)=>({width:K[i]||0,height:H[i]||0});return{first:t(0),last:t(G-1),widest:t(a),highest:t(Q0),widths:K,heights:H}}getLabelForValue(J){return J}getPixelForValue(J,G){return NaN}getValueForPixel(J){}getPixelForTick(J){let G=this.ticks;if(J<0||J>G.length-1)return null;return this.getPixelForValue(G[J].value)}getPixelForDecimal(J){if(this._reversePixels)J=1-J;let G=this._startPixel+J*this._length;return vw(this._alignToPixels?S2(this.chart,G,0):G)}getDecimalForPixel(J){let G=(J-this._startPixel)/this._length;return this._reversePixels?1-G:G}getBasePixel(){return this.getPixelForValue(this.getBaseValue())}getBaseValue(){let{min:J,max:G}=this;return J<0&&G<0?G:J>0&&G>0?J:0}getContext(J){let G=this.ticks||[];if(J>=0&&J<G.length){let q=G[J];return q.$context||(q.$context=MA(this.getContext(),J,q))}return this.$context||(this.$context=zA(this.chart.getContext(),this))}_tickSize(){let J=this.options.ticks,G=C8(this.labelRotation),q=Math.abs(Math.cos(G)),X=Math.abs(Math.sin(G)),N=this._getLabelSizes(),K=J.autoSkipPadding||0,H=N?N.widest.width+K:0,F=N?N.highest.height+K:0;return this.isHorizontal()?F*q>H*X?H/q:F/X:F*X<H*q?F/q:H/X}_isVisible(){let J=this.options.display;if(J!=="auto")return!!J;return this.getMatchingVisibleMetas().length>0}_computeGridLineItems(J){let G=this.axis,q=this.chart,X=this.options,{grid:N,position:K,border:H}=X,F=N.offset,W=this.isHorizontal(),R=this.ticks.length+(F?1:0),_=HJ(N),P=[],O=H.setContext(this.getContext()),E=O.display?O.width:0,V=E/2,I=function(l){return S2(q,l,E)},j,h,p,n,a,Q0,t,i,X0,d,H0,P0;if(K==="top")j=I(this.bottom),Q0=this.bottom-_,i=j-V,d=I(J.top)+V,P0=J.bottom;else if(K==="bottom")j=I(this.top),d=J.top,P0=I(J.bottom)-V,Q0=j+V,i=this.top+_;else if(K==="left")j=I(this.right),a=this.right-_,t=j-V,X0=I(J.left)+V,H0=J.right;else if(K==="right")j=I(this.left),X0=J.left,H0=I(J.right)-V,a=j+V,t=this.left+_;else if(G==="x"){if(K==="center")j=I((J.top+J.bottom)/2+0.5);else if($1(K)){let l=Object.keys(K)[0],Y0=K[l];j=I(this.chart.scales[l].getPixelForValue(Y0))}d=J.top,P0=J.bottom,Q0=j+V,i=Q0+_}else if(G==="y"){if(K==="center")j=I((J.left+J.right)/2);else if($1(K)){let l=Object.keys(K)[0],Y0=K[l];j=I(this.chart.scales[l].getPixelForValue(Y0))}a=j-V,t=a-_,X0=J.left,H0=J.right}let O0=s0(X.ticks.maxTicksLimit,R),v0=Math.max(1,Math.ceil(R/O0));for(h=0;h<R;h+=v0){let l=this.getContext(h),Y0=N.setContext(l),F0=H.setContext(l),a0=Y0.lineWidth,d0=Y0.color,k=F0.dash||[],o=F0.dashOffset,W0=Y0.tickWidth,z0=Y0.tickColor,p0=Y0.tickBorderDash||[],m1=Y0.tickBorderDashOffset;if(p=FA(this,h,F),p===void 0)continue;if(n=S2(q,p,a0),W)a=t=X0=H0=n;else Q0=i=d=P0=n;P.push({tx1:a,ty1:Q0,tx2:t,ty2:i,x1:X0,y1:d,x2:H0,y2:P0,width:a0,color:d0,borderDash:k,borderDashOffset:o,tickWidth:W0,tickColor:z0,tickBorderDash:p0,tickBorderDashOffset:m1})}return this._ticksLength=R,this._borderValue=j,P}_computeLabelItems(J){let G=this.axis,q=this.options,{position:X,ticks:N}=q,K=this.isHorizontal(),H=this.ticks,{align:F,crossAlign:W,padding:M,mirror:R}=N,_=HJ(q.grid),P=_+M,O=R?-M:P,E=-C8(this.labelRotation),V=[],I,j,h,p,n,a,Q0,t,i,X0,d,H0,P0="middle";if(X==="top")a=this.bottom-O,Q0=this._getXAxisLabelAlignment();else if(X==="bottom")a=this.top+O,Q0=this._getXAxisLabelAlignment();else if(X==="left"){let v0=this._getYAxisLabelAlignment(_);Q0=v0.textAlign,n=v0.x}else if(X==="right"){let v0=this._getYAxisLabelAlignment(_);Q0=v0.textAlign,n=v0.x}else if(G==="x"){if(X==="center")a=(J.top+J.bottom)/2+P;else if($1(X)){let v0=Object.keys(X)[0],l=X[v0];a=this.chart.scales[v0].getPixelForValue(l)+P}Q0=this._getXAxisLabelAlignment()}else if(G==="y"){if(X==="center")n=(J.left+J.right)/2-P;else if($1(X)){let v0=Object.keys(X)[0],l=X[v0];n=this.chart.scales[v0].getPixelForValue(l)}Q0=this._getYAxisLabelAlignment(_).textAlign}if(G==="y"){if(F==="start")P0="top";else if(F==="end")P0="bottom"}let O0=this._getLabelSizes();for(I=0,j=H.length;I<j;++I){h=H[I],p=h.label;let v0=N.setContext(this.getContext(I));t=this.getPixelForTick(I)+N.labelOffset,i=this._resolveTickFontOptions(I),X0=i.lineHeight,d=E1(p)?p.length:1;let l=d/2,Y0=v0.color,F0=v0.textStrokeColor,a0=v0.textStrokeWidth,d0=Q0;if(K){if(n=t,Q0==="inner")if(I===j-1)d0=!this.options.reverse?"right":"left";else if(I===0)d0=!this.options.reverse?"left":"right";else d0="center";if(X==="top")if(W==="near"||E!==0)H0=-d*X0+X0/2;else if(W==="center")H0=-O0.highest.height/2-l*X0+X0;else H0=-O0.highest.height+X0/2;else if(W==="near"||E!==0)H0=X0/2;else if(W==="center")H0=O0.highest.height/2-l*X0;else H0=O0.highest.height-d*X0;if(R)H0*=-1;if(E!==0&&!v0.showLabelBackdrop)n+=X0/2*Math.sin(E)}else a=t,H0=(1-d)*X0/2;let k;if(v0.showLabelBackdrop){let o=T5(v0.backdropPadding),W0=O0.heights[I],z0=O0.widths[I],p0=H0-o.top,m1=0-o.left;switch(P0){case"middle":p0-=W0/2;break;case"bottom":p0-=W0;break}switch(Q0){case"center":m1-=z0/2;break;case"right":m1-=z0;break;case"inner":if(I===j-1)m1-=z0;else if(I>0)m1-=z0/2;break}k={left:m1,top:p0,width:z0+o.width,height:W0+o.height,color:v0.backdropColor}}V.push({label:p,font:i,textOffset:H0,options:{rotation:E,color:Y0,strokeColor:F0,strokeWidth:a0,textAlign:d0,textBaseline:P0,translation:[n,a],backdrop:k}})}return V}_getXAxisLabelAlignment(){let{position:J,ticks:G}=this.options;if(-C8(this.labelRotation))return J==="top"?"left":"right";let X="center";if(G.align==="start")X="left";else if(G.align==="end")X="right";else if(G.align==="inner")X="inner";return X}_getYAxisLabelAlignment(J){let{position:G,ticks:{crossAlign:q,mirror:X,padding:N}}=this.options,K=this._getLabelSizes(),H=J+N,F=K.widest.width,W,M;if(G==="left")if(X)if(M=this.right+N,q==="near")W="left";else if(q==="center")W="center",M+=F/2;else W="right",M+=F;else if(M=this.right-H,q==="near")W="right";else if(q==="center")W="center",M-=F/2;else W="left",M=this.left;else if(G==="right")if(X)if(M=this.left+N,q==="near")W="right";else if(q==="center")W="center",M-=F/2;else W="left",M-=F;else if(M=this.left+H,q==="near")W="left";else if(q==="center")W="center",M+=F/2;else W="right",M=this.right;else W="right";return{textAlign:W,x:M}}_computeLabelArea(){if(this.options.ticks.mirror)return;let J=this.chart,G=this.options.position;if(G==="left"||G==="right")return{top:0,left:this.left,bottom:J.height,right:this.right};if(G==="top"||G==="bottom")return{top:this.top,left:0,bottom:this.bottom,right:J.width}}drawBackground(){let{ctx:J,options:{backgroundColor:G},left:q,top:X,width:N,height:K}=this;if(G)J.save(),J.fillStyle=G,J.fillRect(q,X,N,K),J.restore()}getLineWidthForValue(J){let G=this.options.grid;if(!this._isVisible()||!G.display)return 0;let X=this.ticks.findIndex((N)=>N.value===J);if(X>=0)return G.setContext(this.getContext(X)).lineWidth;return 0}drawGrid(J){let G=this.options.grid,q=this.ctx,X=this._gridLineItems||(this._gridLineItems=this._computeGridLineItems(J)),N,K,H=(F,W,M)=>{if(!M.width||!M.color)return;q.save(),q.lineWidth=M.width,q.strokeStyle=M.color,q.setLineDash(M.borderDash||[]),q.lineDashOffset=M.borderDashOffset,q.beginPath(),q.moveTo(F.x,F.y),q.lineTo(W.x,W.y),q.stroke(),q.restore()};if(G.display)for(N=0,K=X.length;N<K;++N){let F=X[N];if(G.drawOnChartArea)H({x:F.x1,y:F.y1},{x:F.x2,y:F.y2},F);if(G.drawTicks)H({x:F.tx1,y:F.ty1},{x:F.tx2,y:F.ty2},{color:F.tickColor,width:F.tickWidth,borderDash:F.tickBorderDash,borderDashOffset:F.tickBorderDashOffset})}}drawBorder(){let{chart:J,ctx:G,options:{border:q,grid:X}}=this,N=q.setContext(this.getContext()),K=q.display?N.width:0;if(!K)return;let H=X.setContext(this.getContext(0)).lineWidth,F=this._borderValue,W,M,R,_;if(this.isHorizontal())W=S2(J,this.left,K)-K/2,M=S2(J,this.right,H)+H/2,R=_=F;else R=S2(J,this.top,K)-K/2,_=S2(J,this.bottom,H)+H/2,W=M=F;G.save(),G.lineWidth=N.width,G.strokeStyle=N.color,G.beginPath(),G.moveTo(W,R),G.lineTo(M,_),G.stroke(),G.restore()}drawLabels(J){if(!this.options.ticks.display)return;let q=this.ctx,X=this._computeLabelArea();if(X)YJ(q,X);let N=this.getLabelItems(J);for(let K of N){let{options:H,font:F,label:W,textOffset:M}=K;D2(q,W,0,M,F,H)}if(X)XJ(q)}drawTitle(){let{ctx:J,options:{position:G,title:q,reverse:X}}=this;if(!q.display)return;let N=Q5(q.font),K=T5(q.padding),H=q.align,F=N.lineHeight/2;if(G==="bottom"||G==="center"||$1(G)){if(F+=K.bottom,E1(q.text))F+=N.lineHeight*(q.text.length-1)}else F+=K.top;let{titleX:W,titleY:M,maxWidth:R,rotation:_}=RA(this,F,G,H);D2(J,q.text,0,0,N,{color:q.color,maxWidth:R,rotation:_,textAlign:wA(H,G,X),textBaseline:"middle",translation:[W,M]})}draw(J){if(!this._isVisible())return;this.drawBackground(),this.drawGrid(J),this.drawBorder(),this.drawTitle(),this.drawLabels(J)}_layers(){let J=this.options,G=J.ticks&&J.ticks.z||0,q=s0(J.grid&&J.grid.z,-1),X=s0(J.border&&J.border.z,0);if(!this._isVisible()||this.draw!==u7.prototype.draw)return[{z:G,draw:(N)=>{this.draw(N)}}];return[{z:q,draw:(N)=>{this.drawBackground(),this.drawGrid(N),this.drawTitle()}},{z:X,draw:()=>{this.drawBorder()}},{z:G,draw:(N)=>{this.drawLabels(N)}}]}getMatchingVisibleMetas(J){let G=this.chart.getSortedVisibleDatasetMetas(),q=this.axis+"AxisID",X=[],N,K;for(N=0,K=G.length;N<K;++N){let H=G[N];if(H[q]===this.id&&(!J||H.type===J))X.push(H)}return X}_resolveTickFontOptions(J){let G=this.options.ticks.setContext(this.getContext(J));return Q5(G.font)}_maxDigits(){let J=this._resolveTickFontOptions(0).lineHeight;return(this.isHorizontal()?this.width:this.height)/J}}class zJ{constructor(J,G,q){this.type=J,this.scope=G,this.override=q,this.items=Object.create(null)}isForType(J){return Object.prototype.isPrototypeOf.call(this.type.prototype,J.prototype)}register(J){let G=Object.getPrototypeOf(J),q;if(PA(G))q=this.register(G);let X=this.items,N=J.id,K=this.scope+"."+N;if(!N)throw Error("class does not have id: "+J);if(N in X)return K;if(X[N]=J,_A(J,K,q),this.override)u1.override(J.id,J.overrides);return K}get(J){return this.items[J]}unregister(J){let G=this.items,q=J.id,X=this.scope;if(q in G)delete G[q];if(X&&q in u1[X]){if(delete u1[X][q],this.override)delete E2[q]}}}function _A(J,G,q){let X=Y$(Object.create(null),[q?u1.get(q):{},u1.get(G),J.defaults]);if(u1.set(G,X),J.defaultRoutes)LA(G,J.defaultRoutes);if(J.descriptors)u1.describe(G,J.descriptors)}function LA(J,G){Object.keys(G).forEach((q)=>{let X=q.split("."),N=X.pop(),K=[J].concat(X).join("."),H=G[q].split("."),F=H.pop(),W=H.join(".");u1.route(K,N,W,F)})}function PA(J){return"id"in J&&"defaults"in J}class B_{constructor(){this.controllers=new zJ(d3,"datasets",!0),this.elements=new zJ(E8,"elements"),this.plugins=new zJ(Object,"plugins"),this.scales=new zJ(u7,"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,G,q){[...G].forEach((X)=>{let N=q||this._getRegistryForType(X);if(q||N.isForType(X)||N===this.plugins&&X.id)this._exec(J,N,X);else F1(X,(K)=>{let H=q||this._getRegistryForType(K);this._exec(J,H,K)})})}_exec(J,G,q){let X=C3(J);O1(q["before"+X],[],q),G[J](q),O1(q["after"+X],[],q)}_getRegistryForType(J){for(let G=0;G<this._typedRegistries.length;G++){let q=this._typedRegistries[G];if(q.isForType(J))return q}return this.plugins}_get(J,G,q){let X=G.get(J);if(X===void 0)throw Error('"'+J+'" is not a registered '+q+".");return X}}var p4=new B_;class H_{constructor(){this._init=void 0}notify(J,G,q,X){if(G==="beforeInit")this._init=this._createDescriptors(J,!0),this._notify(this._init,J,"install");if(this._init===void 0)return;let N=X?this._descriptors(J).filter(X):this._descriptors(J),K=this._notify(N,J,G,q);if(G==="afterDestroy")this._notify(N,J,"stop"),this._notify(this._init,J,"uninstall"),this._init=void 0;return K}_notify(J,G,q,X){X=X||{};for(let N of J){let K=N.plugin,H=K[q],F=[G,X,N.options];if(O1(H,F,K)===!1&&X.cancelable)return!1}return!0}invalidate(){if(!Q1(this._cache))this._oldCache=this._cache,this._cache=void 0}_descriptors(J){if(this._cache)return this._cache;let G=this._cache=this._createDescriptors(J);return this._notifyStateChanges(J),G}_createDescriptors(J,G){let q=J&&J.config,X=s0(q.options&&q.options.plugins,{}),N=TA(q);return X===!1&&!G?[]:OA(J,N,X,G)}_notifyStateChanges(J){let G=this._oldCache||[],q=this._cache,X=(N,K)=>N.filter((H)=>!K.some((F)=>H.plugin.id===F.plugin.id));this._notify(X(G,q),J,"stop"),this._notify(X(q,G),J,"start")}}function TA(J){let G={},q=[],X=Object.keys(p4.plugins.items);for(let K=0;K<X.length;K++)q.push(p4.getPlugin(X[K]));let N=J.plugins||[];for(let K=0;K<N.length;K++){let H=N[K];if(q.indexOf(H)===-1)q.push(H),G[H.id]=!0}return{plugins:q,localIds:G}}function CA(J,G){if(!G&&J===!1)return null;if(J===!0)return{};return J}function OA(J,{plugins:G,localIds:q},X,N){let K=[],H=J.getContext();for(let F of G){let W=F.id,M=CA(X[W],N);if(M===null)continue;K.push({plugin:F,options:IA(J.config,{plugin:F,local:q[W]},M,H)})}return K}function IA(J,{plugin:G,local:q},X,N){let K=J.pluginScopeKeys(G),H=J.getOptionScopes(X,K);if(q&&G.defaults)H.push(G.defaults);return J.createResolver(H,N,[""],{scriptable:!1,indexable:!1,allKeys:!0})}function hU(J,G){let q=u1.datasets[J]||{};return((G.datasets||{})[J]||{}).indexAxis||G.indexAxis||q.indexAxis||"x"}function VA(J,G){let q=J;if(J==="_index_")q=G;else if(J==="_value_")q=G==="x"?"y":"x";return q}function AA(J,G){return J===G?"_index_":"_value_"}function OR(J){if(J==="x"||J==="y"||J==="r")return J}function EA(J){if(J==="top"||J==="bottom")return"x";if(J==="left"||J==="right")return"y"}function uU(J,...G){if(OR(J))return J;for(let q of G){let X=q.axis||EA(q.position)||J.length>1&&OR(J[0].toLowerCase());if(X)return X}throw Error(`Cannot determine type of '${J}' axis. Please provide 'axis' or 'position' option.`)}function IR(J,G,q){if(q[G+"AxisID"]===J)return{axis:G}}function SA(J,G){if(G.data&&G.data.datasets){let q=G.data.datasets.filter((X)=>X.xAxisID===J||X.yAxisID===J);if(q.length)return IR(J,"x",q[0])||IR(J,"y",q[0])}return{}}function DA(J,G){let q=E2[J.type]||{scales:{}},X=G.scales||{},N=hU(J.type,G),K=Object.create(null);return Object.keys(X).forEach((H)=>{let F=X[H];if(!$1(F))return console.error(`Invalid scale configuration for scale: ${H}`);if(F._proxy)return console.warn(`Ignoring resolver passed as options for scale: ${H}`);let W=uU(H,F,SA(H,J),u1.scales[F.type]),M=AA(W,N),R=q.scales||{};K[H]=N$(Object.create(null),[{axis:W},F,R[W],R[M]])}),J.data.datasets.forEach((H)=>{let F=H.type||J.type,W=H.indexAxis||hU(F,G),R=(E2[F]||{}).scales||{};Object.keys(R).forEach((_)=>{let P=VA(_,W),O=H[P+"AxisID"]||P;K[O]=K[O]||Object.create(null),N$(K[O],[{axis:P},X[O],R[_]])})}),Object.keys(K).forEach((H)=>{let F=K[H];N$(F,[u1.scales[F.type],u1.scale])}),K}function F_(J){let G=J.options||(J.options={});G.plugins=s0(G.plugins,{}),G.scales=DA(J,G)}function W_(J){return J=J||{},J.datasets=J.datasets||[],J.labels=J.labels||[],J}function jA(J){return J=J||{},J.data=W_(J.data),F_(J),J}var VR=new Map,z_=new Set;function y3(J,G){let q=VR.get(J);if(!q)q=G(),VR.set(J,q),z_.add(q);return q}var FJ=(J,G,q)=>{let X=f7(G,q);if(X!==void 0)J.add(X)};class M_{constructor(J){this._config=jA(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=W_(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(),F_(J)}clearCache(){this._scopeCache.clear(),this._resolverCache.clear()}datasetScopeKeys(J){return y3(J,()=>[[`datasets.${J}`,""]])}datasetAnimationScopeKeys(J,G){return y3(`${J}.transition.${G}`,()=>[[`datasets.${J}.transitions.${G}`,`transitions.${G}`],[`datasets.${J}`,""]])}datasetElementScopeKeys(J,G){return y3(`${J}-${G}`,()=>[[`datasets.${J}.elements.${G}`,`datasets.${J}`,`elements.${G}`,""]])}pluginScopeKeys(J){let G=J.id,q=this.type;return y3(`${q}-plugin-${G}`,()=>[[`plugins.${G}`,...J.additionalOptionScopes||[]]])}_cachedScopes(J,G){let q=this._scopeCache,X=q.get(J);if(!X||G)X=new Map,q.set(J,X);return X}getOptionScopes(J,G,q){let{options:X,type:N}=this,K=this._cachedScopes(J,q),H=K.get(G);if(H)return H;let F=new Set;G.forEach((M)=>{if(J)F.add(J),M.forEach((R)=>FJ(F,J,R));M.forEach((R)=>FJ(F,X,R)),M.forEach((R)=>FJ(F,E2[N]||{},R)),M.forEach((R)=>FJ(F,u1,R)),M.forEach((R)=>FJ(F,E3,R))});let W=Array.from(F);if(W.length===0)W.push(Object.create(null));if(z_.has(G))K.set(G,W);return W}chartOptionScopes(){let{options:J,type:G}=this;return[J,E2[G]||{},u1.datasets[G]||{},{type:G},u1,E3]}resolveNamedOptions(J,G,q,X=[""]){let N={$shared:!0},{resolver:K,subPrefixes:H}=AR(this._resolverCache,J,X),F=K;if(vA(K,G)){N.$shared=!1,q=P8(q)?q():q;let W=this.createResolver(J,q,H);F=b7(K,q,W)}for(let W of G)N[W]=F[W];return N}createResolver(J,G,q=[""],X){let{resolver:N}=AR(this._resolverCache,J,q);return $1(G)?b7(N,G,void 0,X):N}}function AR(J,G,q){let X=J.get(G);if(!X)X=new Map,J.set(G,X);let N=q.join(),K=X.get(N);if(!K)K={resolver:D3(G,q),subPrefixes:q.filter((F)=>!F.toLowerCase().includes("hover"))},X.set(N,K);return K}var kA=(J)=>$1(J)&&Object.getOwnPropertyNames(J).some((G)=>P8(J[G]));function vA(J,G){let{isScriptable:q,isIndexable:X}=wU(J);for(let N of G){let K=q(N),H=X(N),F=(H||K)&&J[N];if(K&&(P8(F)||kA(F))||H&&E1(F))return!0}return!1}var bA="4.5.1",fA=["top","bottom","left","right","chartArea"];function ER(J,G){return J==="top"||J==="bottom"||fA.indexOf(J)===-1&&G==="x"}function SR(J,G){return function(q,X){return q[J]===X[J]?q[G]-X[G]:q[J]-X[J]}}function DR(J){let G=J.chart,q=G.options.animation;G.notifyPlugins("afterRender"),O1(q&&q.onComplete,[J],G)}function yA(J){let G=J.chart,q=G.options.animation;O1(q&&q.onProgress,[J],G)}function w_(J){if(j3()&&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 x3={},jR=(J)=>{let G=w_(J);return Object.values(x3).filter((q)=>q.canvas===G).pop()};function gA(J,G,q){let X=Object.keys(J);for(let N of X){let K=+N;if(K>=G){let H=J[N];if(delete J[N],q>0||K>G)J[K+q]=H}}}function hA(J,G,q,X){if(!q||J.type==="mouseout")return null;if(X)return G;return J}class x7{static defaults=u1;static instances=x3;static overrides=E2;static registry=p4;static version=bA;static getChart=jR;static register(...J){p4.add(...J),kR()}static unregister(...J){p4.remove(...J),kR()}constructor(J,G){let q=this.config=new M_(G),X=w_(J),N=jR(X);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=q.createResolver(q.chartOptionScopes(),this.getContext());this.platform=new(q.platform||qA(X)),this.platform.updateConfig(q);let H=this.platform.acquireContext(X,K.aspectRatio),F=H&&H.canvas,W=F&&F.height,M=F&&F.width;if(this.id=Vw(),this.ctx=H,this.canvas=F,this.width=M,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 H_,this.$proxies={},this._hiddenIndices={},this.attached=!1,this._animationsDisabled=void 0,this.$context=void 0,this._doResize=hw((R)=>this.update(R),K.resizeDelay||0),this._dataChanges=[],x3[this.id]=this,!H||!F){console.error("Failed to create chart: can't acquire context from the given item");return}if(V8.listen(this,"complete",DR),V8.listen(this,"progress",yA),this._initialize(),this.attached)this.update()}get aspectRatio(){let{options:{aspectRatio:J,maintainAspectRatio:G},width:q,height:X,_aspectRatio:N}=this;if(!Q1(J))return J;if(G&&N)return N;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 p4}_initialize(){if(this.notifyPlugins("beforeInit"),this.options.responsive)this.resize();else LU(this,this.options.devicePixelRatio);return this.bindEvents(),this.notifyPlugins("afterInit"),this}clear(){return FU(this.canvas,this.ctx),this}stop(){return V8.stop(this),this}resize(J,G){if(!V8.running(this))this._resize(J,G);else this._resizeBeforeDraw={width:J,height:G}}_resize(J,G){let q=this.options,X=this.canvas,N=q.maintainAspectRatio&&this.aspectRatio,K=this.platform.getMaximumSize(X,J,G,N),H=q.devicePixelRatio||this.platform.getDevicePixelRatio(),F=this.width?"resize":"attach";if(this.width=K.width,this.height=K.height,this._aspectRatio=this.aspectRatio,!LU(this,H,!0))return;if(this.notifyPlugins("resize",{size:K}),O1(q.onResize,[this,K],this),this.attached){if(this._doResize(F))this.render()}}ensureScalesHaveIDs(){let G=this.options.scales||{};F1(G,(q,X)=>{q.id=X})}buildOrUpdateScales(){let J=this.options,G=J.scales,q=this.scales,X=Object.keys(q).reduce((K,H)=>{return K[H]=!1,K},{}),N=[];if(G)N=N.concat(Object.keys(G).map((K)=>{let H=G[K],F=uU(K,H),W=F==="r",M=F==="x";return{options:H,dposition:W?"chartArea":M?"bottom":"left",dtype:W?"radialLinear":M?"category":"linear"}}));F1(N,(K)=>{let H=K.options,F=H.id,W=uU(F,H),M=s0(H.type,K.dtype);if(H.position===void 0||ER(H.position,W)!==ER(K.dposition))H.position=K.dposition;X[F]=!0;let R=null;if(F in q&&q[F].type===M)R=q[F];else R=new(p4.getScale(M))({id:F,type:M,ctx:this.ctx,chart:this}),q[R.id]=R;R.init(H,J)}),F1(X,(K,H)=>{if(!K)delete q[H]}),F1(q,(K)=>{c6.configure(this,K,K.options),c6.addBox(this,K)})}_updateMetasets(){let J=this._metasets,G=this.data.datasets.length,q=J.length;if(J.sort((X,N)=>X.index-N.index),q>G){for(let X=G;X<q;++X)this._destroyDatasetMeta(X);J.splice(G,q-G)}this._sortedMetasets=J.slice(0).sort(SR("order","index"))}_removeUnreferencedMetasets(){let{_metasets:J,data:{datasets:G}}=this;if(J.length>G.length)delete this._stacks;J.forEach((q,X)=>{if(G.filter((N)=>N===q._dataset).length===0)this._destroyDatasetMeta(X)})}buildOrUpdateControllers(){let J=[],G=this.data.datasets,q,X;this._removeUnreferencedMetasets();for(q=0,X=G.length;q<X;q++){let N=G[q],K=this.getDatasetMeta(q),H=N.type||this.config.type;if(K.type&&K.type!==H)this._destroyDatasetMeta(q),K=this.getDatasetMeta(q);if(K.type=H,K.indexAxis=N.indexAxis||hU(H,this.options),K.order=N.order||0,K.index=q,K.label=""+N.label,K.visible=this.isDatasetVisible(q),K.controller)K.controller.updateIndex(q),K.controller.linkScales();else{let F=p4.getController(H),{datasetElementType:W,dataElementType:M}=u1.datasets[H];Object.assign(F,{dataElementType:p4.getElement(M),datasetElementType:W&&p4.getElement(W)}),K.controller=new F(this,q),J.push(K.controller)}}return this._updateMetasets(),J}_resetElements(){F1(this.data.datasets,(J,G)=>{this.getDatasetMeta(G).controller.reset()},this)}reset(){this._resetElements(),this.notifyPlugins("reset")}update(J){let G=this.config;G.update();let q=this._options=G.createResolver(G.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 N=this.buildOrUpdateControllers();this.notifyPlugins("beforeElementsUpdate");let K=0;for(let W=0,M=this.data.datasets.length;W<M;W++){let{controller:R}=this.getDatasetMeta(W),_=!X&&N.indexOf(R)===-1;R.buildOrUpdateElements(_),K=Math.max(+R.getMaxOverflow(),K)}if(K=this._minPadding=q.layout.autoPadding?K:0,this._updateLayout(K),!X)F1(N,(W)=>{W.reset()});this._updateDatasets(J),this.notifyPlugins("afterUpdate",{mode:J}),this._layers.sort(SR("z","_idx"));let{_active:H,_lastEvent:F}=this;if(F)this._eventHandler(F,!0);else if(H.length)this._updateHoverStyles(H,H,!0);this.render()}_updateScales(){F1(this.scales,(J)=>{c6.removeBox(this,J)}),this.ensureScalesHaveIDs(),this.buildOrUpdateScales()}_checkEventBindings(){let J=this.options,G=new Set(Object.keys(this._listeners)),q=new Set(J.events);if(!JU(G,q)||!!this._responsiveListeners!==J.responsive)this.unbindEvents(),this.bindEvents()}_updateHiddenIndices(){let{_hiddenIndices:J}=this,G=this._getUniformDataChanges()||[];for(let{method:q,start:X,count:N}of G){let K=q==="_removeElements"?-N:N;gA(J,X,K)}}_getUniformDataChanges(){let J=this._dataChanges;if(!J||!J.length)return;this._dataChanges=[];let G=this.data.datasets.length,q=(N)=>new Set(J.filter((K)=>K[0]===N).map((K,H)=>H+","+K.splice(1).join(","))),X=q(0);for(let N=1;N<G;N++)if(!JU(X,q(N)))return;return Array.from(X).map((N)=>N.split(",")).map((N)=>({method:N[1],start:+N[2],count:+N[3]}))}_updateLayout(J){if(this.notifyPlugins("beforeLayout",{cancelable:!0})===!1)return;c6.update(this,this.width,this.height,J);let G=this.chartArea,q=G.width<=0||G.height<=0;this._layers=[],F1(this.boxes,(X)=>{if(q&&X.position==="chartArea")return;if(X.configure)X.configure();this._layers.push(...X._layers())},this),this._layers.forEach((X,N)=>{X._idx=N}),this.notifyPlugins("afterLayout")}_updateDatasets(J){if(this.notifyPlugins("beforeDatasetsUpdate",{mode:J,cancelable:!0})===!1)return;for(let G=0,q=this.data.datasets.length;G<q;++G)this.getDatasetMeta(G).controller.configure();for(let G=0,q=this.data.datasets.length;G<q;++G)this._updateDataset(G,P8(J)?J({datasetIndex:G}):J);this.notifyPlugins("afterDatasetsUpdate",{mode:J})}_updateDataset(J,G){let q=this.getDatasetMeta(J),X={meta:q,index:J,mode:G,cancelable:!0};if(this.notifyPlugins("beforeDatasetUpdate",X)===!1)return;q.controller._update(G),X.cancelable=!1,this.notifyPlugins("afterDatasetUpdate",X)}render(){if(this.notifyPlugins("beforeRender",{cancelable:!0})===!1)return;if(V8.has(this)){if(this.attached&&!V8.running(this))V8.start(this)}else this.draw(),DR({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 G=this._layers;for(J=0;J<G.length&&G[J].z<=0;++J)G[J].draw(this.chartArea);this._drawDatasets();for(;J<G.length;++J)G[J].draw(this.chartArea);this.notifyPlugins("afterDraw")}_getSortedDatasetMetas(J){let G=this._sortedMetasets,q=[],X,N;for(X=0,N=G.length;X<N;++X){let K=G[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 G=J.length-1;G>=0;--G)this._drawDataset(J[G]);this.notifyPlugins("afterDatasetsDraw")}_drawDataset(J){let G=this.ctx,q={meta:J,index:J.index,cancelable:!0},X=VU(this,J);if(this.notifyPlugins("beforeDatasetDraw",q)===!1)return;if(X)YJ(G,X);if(J.controller.draw(),X)XJ(G);q.cancelable=!1,this.notifyPlugins("afterDatasetDraw",q)}isPointInArea(J){return x4(J,this.chartArea,this._minPadding)}getElementsAtEventForMode(J,G,q,X){let N=xV.modes[G];if(typeof N==="function")return N(this,J,q,X);return[]}getDatasetMeta(J){let G=this.data.datasets[J],q=this._metasets,X=q.filter((N)=>N&&N._dataset===G).pop();if(!X)X={type:null,data:[],dataset:null,controller:null,hidden:null,xAxisID:null,yAxisID:null,order:G&&G.order||0,index:J,_dataset:G,_parsed:[],_sorted:!1},q.push(X);return X}getContext(){return this.$context||(this.$context=I8(null,{chart:this,type:"chart"}))}getVisibleDatasetCount(){return this.getSortedVisibleDatasetMetas().length}isDatasetVisible(J){let G=this.data.datasets[J];if(!G)return!1;let q=this.getDatasetMeta(J);return typeof q.hidden==="boolean"?!q.hidden:!G.hidden}setDatasetVisibility(J,G){let q=this.getDatasetMeta(J);q.hidden=!G}toggleDataVisibility(J){this._hiddenIndices[J]=!this._hiddenIndices[J]}getDataVisibility(J){return!this._hiddenIndices[J]}_updateVisibility(J,G,q){let X=q?"show":"hide",N=this.getDatasetMeta(J),K=N.controller._resolveAnimations(void 0,X);if(U$(G))N.data[G].hidden=!q,this.update();else this.setDatasetVisibility(J,q),K.update(N,{visible:q}),this.update((H)=>H.datasetIndex===J?X:void 0)}hide(J,G){this._updateVisibility(J,G,!1)}show(J,G){this._updateVisibility(J,G,!0)}_destroyDatasetMeta(J){let G=this._metasets[J];if(G&&G.controller)G.controller._destroy();delete this._metasets[J]}_stop(){let J,G;this.stop(),V8.remove(this);for(J=0,G=this.data.datasets.length;J<G;++J)this._destroyDatasetMeta(J)}destroy(){this.notifyPlugins("beforeDestroy");let{canvas:J,ctx:G}=this;if(this._stop(),this.config.clearCache(),J)this.unbindEvents(),FU(J,G),this.platform.releaseContext(G),this.canvas=null,this.ctx=null;delete x3[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,G=this.platform,q=(N,K)=>{G.addEventListener(this,N,K),J[N]=K},X=(N,K,H)=>{N.offsetX=K,N.offsetY=H,this._eventHandler(N)};F1(this.options.events,(N)=>q(N,X))}bindResponsiveEvents(){if(!this._responsiveListeners)this._responsiveListeners={};let J=this._responsiveListeners,G=this.platform,q=(F,W)=>{G.addEventListener(this,F,W),J[F]=W},X=(F,W)=>{if(J[F])G.removeEventListener(this,F,W),delete J[F]},N=(F,W)=>{if(this.canvas)this.resize(F,W)},K,H=()=>{X("attach",H),this.attached=!0,this.resize(),q("resize",N),q("detach",K)};if(K=()=>{this.attached=!1,X("resize",N),this._stop(),this._resize(0,0),q("attach",H)},G.isAttached(this.canvas))H();else K()}unbindEvents(){F1(this._listeners,(J,G)=>{this.platform.removeEventListener(this,G,J)}),this._listeners={},F1(this._responsiveListeners,(J,G)=>{this.platform.removeEventListener(this,G,J)}),this._responsiveListeners=void 0}updateHoverStyle(J,G,q){let X=q?"set":"remove",N,K,H,F;if(G==="dataset")N=this.getDatasetMeta(J[0].datasetIndex),N.controller["_"+X+"DatasetHoverStyle"]();for(H=0,F=J.length;H<F;++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 G=this._active||[],q=J.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(!GJ(q,G))this._active=q,this._lastEvent=null,this._updateHoverStyles(q,G)}notifyPlugins(J,G,q){return this._plugins.notify(this,J,G,q)}isPluginEnabled(J){return this._plugins._cache.filter((G)=>G.plugin.id===J).length===1}_updateHoverStyles(J,G,q){let X=this.options.hover,N=(F,W)=>F.filter((M)=>!W.some((R)=>M.datasetIndex===R.datasetIndex&&M.index===R.index)),K=N(G,J),H=q?J:N(J,G);if(K.length)this.updateHoverStyle(K,X.mode,!1);if(H.length&&X.mode)this.updateHoverStyle(H,X.mode,!0)}_eventHandler(J,G){let q={event:J,replay:G,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 N=this._handleEvent(J,G,q.inChartArea);if(q.cancelable=!1,this.notifyPlugins("afterEvent",q,X),N||q.changed)this.render();return this}_handleEvent(J,G,q){let{_active:X=[],options:N}=this,K=G,H=this._getActiveElements(J,X,q,K),F=Sw(J),W=hA(J,this._lastEvent,q,F);if(q){if(this._lastEvent=null,O1(N.onHover,[J,H,this],this),F)O1(N.onClick,[J,H,this],this)}let M=!GJ(H,X);if(M||G)this._active=H,this._updateHoverStyles(H,X,G);return this._lastEvent=W,M}_getActiveElements(J,G,q,X){if(J.type==="mouseout")return[];if(!q)return G;let N=this.options.hover;return this.getElementsAtEventForMode(J,N.mode,N,X)}}function kR(){return F1(x7.instances,(J)=>J._plugins.invalidate())}function R_(J,G,q=G){J.lineCap=s0(q.borderCapStyle,G.borderCapStyle),J.setLineDash(s0(q.borderDash,G.borderDash)),J.lineDashOffset=s0(q.borderDashOffset,G.borderDashOffset),J.lineJoin=s0(q.borderJoinStyle,G.borderJoinStyle),J.lineWidth=s0(q.borderWidth,G.borderWidth),J.strokeStyle=s0(q.borderColor,G.borderColor)}function uA(J,G,q){J.lineTo(q.x,q.y)}function xA(J){if(J.stepped)return lw;if(J.tension||J.cubicInterpolationMode==="monotone")return rw;return uA}function __(J,G,q={}){let X=J.length,{start:N=0,end:K=X-1}=q,{start:H,end:F}=G,W=Math.max(N,H),M=Math.min(K,F),R=N<H&&K<H||N>F&&K>F;return{count:X,start:W,loop:G.loop,ilen:M<W&&!R?X+M-W:M-W}}function mA(J,G,q,X){let{points:N,options:K}=G,{count:H,start:F,loop:W,ilen:M}=__(N,q,X),R=xA(K),{move:_=!0,reverse:P}=X||{},O,E,V;for(O=0;O<=M;++O){if(E=N[(F+(P?M-O:O))%H],E.skip)continue;else if(_)J.moveTo(E.x,E.y),_=!1;else R(J,V,E,P,K.stepped);V=E}if(W)E=N[(F+(P?M:0))%H],R(J,V,E,P,K.stepped);return!!W}function dA(J,G,q,X){let N=G.points,{count:K,start:H,ilen:F}=__(N,q,X),{move:W=!0,reverse:M}=X||{},R=0,_=0,P,O,E,V,I,j,h=(n)=>(H+(M?F-n:n))%K,p=()=>{if(V!==I)J.lineTo(R,I),J.lineTo(R,V),J.lineTo(R,j)};if(W)O=N[h(0)],J.moveTo(O.x,O.y);for(P=0;P<=F;++P){if(O=N[h(P)],O.skip)continue;let{x:n,y:a}=O,Q0=n|0;if(Q0===E){if(a<V)V=a;else if(a>I)I=a;R=(_*R+n)/++_}else p(),J.lineTo(n,a),E=Q0,_=0,V=I=a;j=a}p()}function xU(J){let G=J.options,q=G.borderDash&&G.borderDash.length;return!J._decimated&&!J._loop&&!G.tension&&G.cubicInterpolationMode!=="monotone"&&!G.stepped&&!q?dA:mA}function pA(J){if(J.stepped)return ZR;if(J.tension||J.cubicInterpolationMode==="monotone")return JR;return I2}function cA(J,G,q,X){let N=G._path;if(!N){if(N=G._path=new Path2D,G.path(N,q,X))N.closePath()}R_(J,G.options),J.stroke(N)}function lA(J,G,q,X){let{segments:N,options:K}=G,H=xU(G);for(let F of N){if(R_(J,K,F.style),J.beginPath(),H(J,G,F,{start:q,end:q+X-1}))J.closePath();J.stroke()}}var rA=typeof Path2D==="function";function sA(J,G,q,X){if(rA&&!G.options.segment)cA(J,G,q,X);else lA(J,G,q,X)}class F$ extends E8{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,G){let q=this.options;if((q.tension||q.cubicInterpolationMode==="monotone")&&!q.stepped&&!this._pointsUpdated){let X=q.spanGaps?this._loop:this._fullLoop;tw(this._points,q,J,X,G),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=GR(this,this.options.segment))}first(){let J=this.segments,G=this.points;return J.length&&G[J[0].start]}last(){let J=this.segments,G=this.points,q=J.length;return q&&G[J[q-1].end]}interpolate(J,G){let q=this.options,X=J[G],N=this.points,K=IU(this,{property:G,start:X,end:X});if(!K.length)return;let H=[],F=pA(q),W,M;for(W=0,M=K.length;W<M;++W){let{start:R,end:_}=K[W],P=N[R],O=N[_];if(P===O){H.push(P);continue}let E=Math.abs((X-P[G])/(O[G]-P[G])),V=F(P,O,E,q.stepped);V[G]=J[G],H.push(V)}return H.length===1?H[0]:H}pathSegment(J,G,q){return xU(this)(J,this,G,q)}path(J,G,q){let X=this.segments,N=xU(this),K=this._loop;G=G||0,q=q||this.points.length-G;for(let H of X)K&=N(J,this,H,{start:G,end:G+q-1});return!!K}draw(J,G,q,X){let N=this.options||{};if((this.points||[]).length&&N.borderWidth)J.save(),sA(J,this,q,X),J.restore();if(this.animated)this._pointsUpdated=!1,this._path=void 0}}function vR(J,G,q,X){let N=J.options,{[q]:K}=J.getProps([q],X);return Math.abs(G-K)<N.radius+N.hitRadius}class iU extends E8{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,G,q){let X=this.options,{x:N,y:K}=this.getProps(["x","y"],q);return Math.pow(J-N,2)+Math.pow(G-K,2)<Math.pow(X.hitRadius+X.radius,2)}inXRange(J,G){return vR(this,J,"x",G)}inYRange(J,G){return vR(this,J,"y",G)}getCenterPoint(J){let{x:G,y:q}=this.getProps(["x","y"],J);return{x:G,y:q}}size(J){J=J||this.options||{};let G=J.radius||0;G=Math.max(G,G&&J.hoverRadius||0);let q=G&&J.borderWidth||0;return(G+q)*2}draw(J,G){let q=this.options;if(this.skip||q.radius<0.1||!x4(this,G,this.size(q)/2))return;J.strokeStyle=q.borderColor,J.lineWidth=q.borderWidth,J.fillStyle=q.backgroundColor,S3(J,q,this.x,this.y)}getRange(){let J=this.options||{};return J.radius+J.hitRadius}}function L_(J,G){let{x:q,y:X,base:N,width:K,height:H}=J.getProps(["x","y","base","width","height"],G),F,W,M,R,_;if(J.horizontal)_=H/2,F=Math.min(q,N),W=Math.max(q,N),M=X-_,R=X+_;else _=K/2,F=q-_,W=q+_,M=Math.min(X,N),R=Math.max(X,N);return{left:F,top:M,right:W,bottom:R}}function v2(J,G,q,X){return J?0:$6(G,q,X)}function nA(J,G,q){let X=J.options.borderWidth,N=J.borderSkipped,K=MU(X);return{t:v2(N.top,K.top,0,q),r:v2(N.right,K.right,0,G),b:v2(N.bottom,K.bottom,0,q),l:v2(N.left,K.left,0,G)}}function oA(J,G,q){let{enableBorderRadius:X}=J.getProps(["enableBorderRadius"]),N=J.options.borderRadius,K=j2(N),H=Math.min(G,q),F=J.borderSkipped,W=X||$1(N);return{topLeft:v2(!W||F.top||F.left,K.topLeft,0,H),topRight:v2(!W||F.top||F.right,K.topRight,0,H),bottomLeft:v2(!W||F.bottom||F.left,K.bottomLeft,0,H),bottomRight:v2(!W||F.bottom||F.right,K.bottomRight,0,H)}}function aA(J){let G=L_(J),q=G.right-G.left,X=G.bottom-G.top,N=nA(J,q/2,X/2),K=oA(J,q/2,X/2);return{outer:{x:G.left,y:G.top,w:q,h:X,radius:K},inner:{x:G.left+N.l,y:G.top+N.t,w:q-N.l-N.r,h:X-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 bU(J,G,q,X){let N=G===null,K=q===null,F=J&&!(N&&K)&&L_(J,X);return F&&(N||O8(G,F.left,F.right))&&(K||O8(q,F.top,F.bottom))}function iA(J){return J.topLeft||J.topRight||J.bottomLeft||J.bottomRight}function tA(J,G){J.rect(G.x,G.y,G.w,G.h)}function fU(J,G,q={}){let X=J.x!==q.x?-G:0,N=J.y!==q.y?-G:0,K=(J.x+J.w!==q.x+q.w?G:0)-X,H=(J.y+J.h!==q.y+q.h?G:0)-N;return{x:J.x+X,y:J.y+N,w:J.w+K,h:J.h+H,radius:J.radius}}class tU extends E8{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:G,options:{borderColor:q,backgroundColor:X}}=this,{inner:N,outer:K}=aA(this),H=iA(K.radius)?H$:tA;if(J.save(),K.w!==N.w||K.h!==N.h)J.beginPath(),H(J,fU(K,G,N)),J.clip(),H(J,fU(N,-G,K)),J.fillStyle=q,J.fill("evenodd");J.beginPath(),H(J,fU(N,G)),J.fillStyle=X,J.fill(),J.restore()}inRange(J,G,q){return bU(this,J,G,q)}inXRange(J,G){return bU(this,J,null,G)}inYRange(J,G){return bU(this,null,J,G)}getCenterPoint(J){let{x:G,y:q,base:X,horizontal:N}=this.getProps(["x","y","base","horizontal"],J);return{x:N?(G+X)/2:G,y:N?q:(q+X)/2}}getRange(J){return J==="x"?this.width/2:this.height/2}}function eA(J,G,q){let{segments:X,points:N}=J,K=G.points,H=[];for(let F of X){let{start:W,end:M}=F;M=p3(W,M,N);let R=mU(q,N[W],N[M],F.loop);if(!G.segments){H.push({source:F,target:R,start:N[W],end:N[M]});continue}let _=IU(G,R);for(let P of _){let O=mU(q,K[P.start],K[P.end],P.loop),E=OU(F,N,O);for(let V of E)H.push({source:V,target:P,start:{[q]:bR(R,O,"start",Math.max)},end:{[q]:bR(R,O,"end",Math.min)}})}}return H}function mU(J,G,q,X){if(X)return;let N=G[J],K=q[J];if(J==="angle")N=i5(N),K=i5(K);return{property:J,start:N,end:K}}function $E(J,G){let{x:q=null,y:X=null}=J||{},N=G.points,K=[];return G.segments.forEach(({start:H,end:F})=>{F=p3(H,F,N);let W=N[H],M=N[F];if(X!==null)K.push({x:W.x,y:X}),K.push({x:M.x,y:X});else if(q!==null)K.push({x:q,y:W.y}),K.push({x:q,y:M.y})}),K}function p3(J,G,q){for(;G>J;G--){let X=q[G];if(!isNaN(X.x)&&!isNaN(X.y))break}return G}function bR(J,G,q,X){if(J&&G)return X(J[q],G[q]);return J?J[q]:G?G[q]:0}function P_(J,G){let q=[],X=!1;if(E1(J))X=!0,q=J;else q=$E(J,G);return q.length?new F$({points:q,options:{tension:0},_loop:X,_fullLoop:X}):null}function fR(J){return J&&J.fill!==!1}function ZE(J,G,q){let N=J[G].fill,K=[G],H;if(!q)return N;while(N!==!1&&K.indexOf(N)===-1){if(!h1(N))return N;if(H=J[N],!H)return!1;if(H.visible)return N;K.push(N),N=H.fill}return!1}function JE(J,G,q){let X=YE(J);if($1(X))return isNaN(X.value)?!1:X;let N=parseFloat(X);if(h1(N)&&Math.floor(N)===N)return QE(X[0],G,N,q);return["origin","start","end","stack","shape"].indexOf(X)>=0&&X}function QE(J,G,q,X){if(J==="-"||J==="+")q=G+q;if(q===G||q<0||q>=X)return!1;return q}function GE(J,G){let q=null;if(J==="start")q=G.bottom;else if(J==="end")q=G.top;else if($1(J))q=G.getPixelForValue(J.value);else if(G.getBasePixel)q=G.getBasePixel();return q}function qE(J,G,q){let X;if(J==="start")X=q;else if(J==="end")X=G.options.reverse?G.min:G.max;else if($1(J))X=J.value;else X=G.getBaseValue();return X}function YE(J){let G=J.options,q=G.fill,X=s0(q&&q.target,q);if(X===void 0)X=!!G.backgroundColor;if(X===!1||X===null)return!1;if(X===!0)return"origin";return X}function XE(J){let{scale:G,index:q,line:X}=J,N=[],K=X.segments,H=X.points,F=NE(G,q);F.push(P_({x:null,y:G.bottom},X));for(let W=0;W<K.length;W++){let M=K[W];for(let R=M.start;R<=M.end;R++)UE(N,H[R],F)}return new F$({points:N,options:{}})}function NE(J,G){let q=[],X=J.getMatchingVisibleMetas("line");for(let N=0;N<X.length;N++){let K=X[N];if(K.index===G)break;if(!K.hidden)q.unshift(K.dataset)}return q}function UE(J,G,q){let X=[];for(let N=0;N<q.length;N++){let K=q[N],{first:H,last:F,point:W}=KE(K,G,"x");if(!W||H&&F)continue;if(H)X.unshift(W);else if(J.push(W),!F)break}J.push(...X)}function KE(J,G,q){let X=J.interpolate(G,q);if(!X)return{};let N=X[q],K=J.segments,H=J.points,F=!1,W=!1;for(let M=0;M<K.length;M++){let R=K[M],_=H[R.start][q],P=H[R.end][q];if(O8(N,_,P)){F=N===_,W=N===P;break}}return{first:F,last:W,point:X}}class eU{constructor(J){this.x=J.x,this.y=J.y,this.radius=J.radius}pathSegment(J,G,q){let{x:X,y:N,radius:K}=this;return G=G||{start:0,end:e5},J.arc(X,N,K,G.end,G.start,!0),!q.bounds}interpolate(J){let{x:G,y:q,radius:X}=this,N=J.angle;return{x:G+Math.cos(N)*X,y:q+Math.sin(N)*X,angle:N}}}function BE(J){let{chart:G,fill:q,line:X}=J;if(h1(q))return HE(G,q);if(q==="stack")return XE(J);if(q==="shape")return!0;let N=FE(J);if(N instanceof eU)return N;return P_(N,X)}function HE(J,G){let q=J.getDatasetMeta(G);return q&&J.isDatasetVisible(G)?q.dataset:null}function FE(J){if((J.scale||{}).getPointPositionForValue)return zE(J);return WE(J)}function WE(J){let{scale:G={},fill:q}=J,X=GE(q,G);if(h1(X)){let N=G.isHorizontal();return{x:N?X:null,y:N?null:X}}return null}function zE(J){let{scale:G,fill:q}=J,X=G.options,N=G.getLabels().length,K=X.reverse?G.max:G.min,H=qE(q,G,K),F=[];if(X.grid.circular){let W=G.getPointPositionForValue(0,K);return new eU({x:W.x,y:W.y,radius:G.getDistanceFromCenterForValue(H)})}for(let W=0;W<N;++W)F.push(G.getPointPositionForValue(W,H));return F}function yU(J,G,q){let X=BE(G),{chart:N,index:K,line:H,scale:F,axis:W}=G,M=H.options,R=M.fill,_=M.backgroundColor,{above:P=_,below:O=_}=R||{},E=N.getDatasetMeta(K),V=VU(N,E);if(X&&H.points.length)YJ(J,q),ME(J,{line:H,target:X,above:P,below:O,area:q,scale:F,axis:W,clip:V}),XJ(J)}function ME(J,G){let{line:q,target:X,above:N,below:K,area:H,scale:F,clip:W}=G,M=q._loop?"angle":G.axis;J.save();let R=K;if(K!==N){if(M==="x")yR(J,X,H.top),gU(J,{line:q,target:X,color:N,scale:F,property:M,clip:W}),J.restore(),J.save(),yR(J,X,H.bottom);else if(M==="y")gR(J,X,H.left),gU(J,{line:q,target:X,color:K,scale:F,property:M,clip:W}),J.restore(),J.save(),gR(J,X,H.right),R=N}gU(J,{line:q,target:X,color:R,scale:F,property:M,clip:W}),J.restore()}function yR(J,G,q){let{segments:X,points:N}=G,K=!0,H=!1;J.beginPath();for(let F of X){let{start:W,end:M}=F,R=N[W],_=N[p3(W,M,N)];if(K)J.moveTo(R.x,R.y),K=!1;else J.lineTo(R.x,q),J.lineTo(R.x,R.y);if(H=!!G.pathSegment(J,F,{move:H}),H)J.closePath();else J.lineTo(_.x,q)}J.lineTo(G.first().x,q),J.closePath(),J.clip()}function gR(J,G,q){let{segments:X,points:N}=G,K=!0,H=!1;J.beginPath();for(let F of X){let{start:W,end:M}=F,R=N[W],_=N[p3(W,M,N)];if(K)J.moveTo(R.x,R.y),K=!1;else J.lineTo(q,R.y),J.lineTo(R.x,R.y);if(H=!!G.pathSegment(J,F,{move:H}),H)J.closePath();else J.lineTo(q,_.y)}J.lineTo(q,G.first().y),J.closePath(),J.clip()}function gU(J,G){let{line:q,target:X,property:N,color:K,scale:H,clip:F}=G,W=eA(q,X,N);for(let{source:M,target:R,start:_,end:P}of W){let{style:{backgroundColor:O=K}={}}=M,E=X!==!0;J.save(),J.fillStyle=O,wE(J,H,F,E&&mU(N,_,P)),J.beginPath();let V=!!q.pathSegment(J,M),I;if(E){if(V)J.closePath();else hR(J,X,P,N);let j=!!X.pathSegment(J,R,{move:V,reverse:!0});if(I=V&&j,!I)hR(J,X,_,N)}J.closePath(),J.fill(I?"evenodd":"nonzero"),J.restore()}}function wE(J,G,q,X){let N=G.chart.chartArea,{property:K,start:H,end:F}=X||{};if(K==="x"||K==="y"){let W,M,R,_;if(K==="x")W=H,M=N.top,R=F,_=N.bottom;else W=N.left,M=H,R=N.right,_=F;if(J.beginPath(),q)W=Math.max(W,q.left),R=Math.min(R,q.right),M=Math.max(M,q.top),_=Math.min(_,q.bottom);J.rect(W,M,R-W,_-M),J.clip()}}function hR(J,G,q,X){let N=G.interpolate(q,X);if(N)J.lineTo(N.x,N.y)}var T_={id:"filler",afterDatasetsUpdate(J,G,q){let X=(J.data.datasets||[]).length,N=[],K,H,F,W;for(H=0;H<X;++H){if(K=J.getDatasetMeta(H),F=K.dataset,W=null,F&&F.options&&F instanceof F$)W={visible:J.isDatasetVisible(H),index:H,fill:JE(F,H,X),chart:J,axis:K.controller.options.indexAxis,scale:K.vScale,line:F};K.$filler=W,N.push(W)}for(H=0;H<X;++H){if(W=N[H],!W||W.fill===!1)continue;W.fill=ZE(N,H,q.propagate)}},beforeDraw(J,G,q){let X=q.drawTime==="beforeDraw",N=J.getSortedVisibleDatasetMetas(),K=J.chartArea;for(let H=N.length-1;H>=0;--H){let F=N[H].$filler;if(!F)continue;if(F.line.updateControlPoints(K,F.axis),X&&F.fill)yU(J.ctx,F,K)}},beforeDatasetsDraw(J,G,q){if(q.drawTime!=="beforeDatasetsDraw")return;let X=J.getSortedVisibleDatasetMetas();for(let N=X.length-1;N>=0;--N){let K=X[N].$filler;if(fR(K))yU(J.ctx,K,J.chartArea)}},beforeDatasetDraw(J,G,q){let X=G.meta.$filler;if(!fR(X)||q.drawTime!=="beforeDatasetDraw")return;yU(J.ctx,X,J.chartArea)},defaults:{propagate:!0,drawTime:"beforeDatasetDraw"}},uR=(J,G)=>{let{boxHeight:q=G,boxWidth:X=G}=J;if(J.usePointStyle)q=Math.min(q,G),X=J.pointStyleWidth||Math.min(X,G);return{boxWidth:X,boxHeight:q,itemHeight:Math.max(G,q)}},RE=(J,G)=>J!==null&&G!==null&&J.datasetIndex===G.datasetIndex&&J.index===G.index;class dU extends E8{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,G,q){this.maxWidth=J,this.maxHeight=G,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||{},G=O1(J.generateLabels,[this.chart],this)||[];if(J.filter)G=G.filter((q)=>J.filter(q,this.chart.data));if(J.sort)G=G.sort((q,X)=>J.sort(q,X,this.chart.data));if(this.options.reverse)G.reverse();this.legendItems=G}fit(){let{options:J,ctx:G}=this;if(!J.display){this.width=this.height=0;return}let q=J.labels,X=Q5(q.font),N=X.size,K=this._computeTitleHeight(),{boxWidth:H,itemHeight:F}=uR(q,N),W,M;if(G.font=X.string,this.isHorizontal())W=this.maxWidth,M=this._fitRows(K,N,H,F)+10;else M=this.maxHeight,W=this._fitCols(K,X,H,F)+10;this.width=Math.min(W,J.maxWidth||this.maxWidth),this.height=Math.min(M,J.maxHeight||this.maxHeight)}_fitRows(J,G,q,X){let{ctx:N,maxWidth:K,options:{labels:{padding:H}}}=this,F=this.legendHitBoxes=[],W=this.lineWidths=[0],M=X+H,R=J;N.textAlign="left",N.textBaseline="middle";let _=-1,P=-M;return this.legendItems.forEach((O,E)=>{let V=q+G/2+N.measureText(O.text).width;if(E===0||W[W.length-1]+V+2*H>K)R+=M,W[W.length-(E>0?0:1)]=0,P+=M,_++;F[E]={left:0,top:P,row:_,width:V,height:X},W[W.length-1]+=V+H}),R}_fitCols(J,G,q,X){let{ctx:N,maxHeight:K,options:{labels:{padding:H}}}=this,F=this.legendHitBoxes=[],W=this.columnSizes=[],M=K-J,R=H,_=0,P=0,O=0,E=0;return this.legendItems.forEach((V,I)=>{let{itemWidth:j,itemHeight:h}=_E(q,G,N,V,X);if(I>0&&P+h+2*H>M)R+=_+H,W.push({width:_,height:P}),O+=_+H,E++,_=P=0;F[I]={left:O,top:P,col:E,width:j,height:h},_=Math.max(_,j),P+=h+H}),R+=_,W.push({width:_,height:P}),R}adjustHitBoxes(){if(!this.options.display)return;let J=this._computeTitleHeight(),{legendHitBoxes:G,options:{align:q,labels:{padding:X},rtl:N}}=this,K=y7(N,this.left,this.width);if(this.isHorizontal()){let H=0,F=P5(q,this.left+X,this.right-this.lineWidths[H]);for(let W of G){if(H!==W.row)H=W.row,F=P5(q,this.left+X,this.right-this.lineWidths[H]);W.top+=this.top+J+X,W.left=K.leftForLtr(K.x(F),W.width),F+=W.width+X}}else{let H=0,F=P5(q,this.top+J+X,this.bottom-this.columnSizes[H].height);for(let W of G){if(W.col!==H)H=W.col,F=P5(q,this.top+J+X,this.bottom-this.columnSizes[H].height);W.top=F,W.left+=this.left+X,W.left=K.leftForLtr(K.x(W.left),W.width),F+=W.height+X}}}isHorizontal(){return this.options.position==="top"||this.options.position==="bottom"}draw(){if(this.options.display){let J=this.ctx;YJ(J,this),this._draw(),XJ(J)}}_draw(){let{options:J,columnSizes:G,lineWidths:q,ctx:X}=this,{align:N,labels:K}=J,H=u1.color,F=y7(J.rtl,this.left,this.width),W=Q5(K.font),{padding:M}=K,R=W.size,_=R/2,P;this.drawTitle(),X.textAlign=F.textAlign("left"),X.textBaseline="middle",X.lineWidth=0.5,X.font=W.string;let{boxWidth:O,boxHeight:E,itemHeight:V}=uR(K,R),I=function(a,Q0,t){if(isNaN(O)||O<=0||isNaN(E)||E<0)return;X.save();let i=s0(t.lineWidth,1);if(X.fillStyle=s0(t.fillStyle,H),X.lineCap=s0(t.lineCap,"butt"),X.lineDashOffset=s0(t.lineDashOffset,0),X.lineJoin=s0(t.lineJoin,"miter"),X.lineWidth=i,X.strokeStyle=s0(t.strokeStyle,H),X.setLineDash(s0(t.lineDash,[])),K.usePointStyle){let X0={radius:E*Math.SQRT2/2,pointStyle:t.pointStyle,rotation:t.rotation,borderWidth:i},d=F.xPlus(a,O/2),H0=Q0+_;WU(X,X0,d,H0,K.pointStyleWidth&&O)}else{let X0=Q0+Math.max((R-E)/2,0),d=F.leftForLtr(a,O),H0=j2(t.borderRadius);if(X.beginPath(),Object.values(H0).some((P0)=>P0!==0))H$(X,{x:d,y:X0,w:O,h:E,radius:H0});else X.rect(d,X0,O,E);if(X.fill(),i!==0)X.stroke()}X.restore()},j=function(a,Q0,t){D2(X,t.text,a,Q0+V/2,W,{strikethrough:t.hidden,textAlign:F.textAlign(t.textAlign)})},h=this.isHorizontal(),p=this._computeTitleHeight();if(h)P={x:P5(N,this.left+M,this.right-q[0]),y:this.top+M+p,line:0};else P={x:this.left+M,y:P5(N,this.top+p+M,this.bottom-G[0].height),line:0};TU(this.ctx,J.textDirection);let n=V+M;this.legendItems.forEach((a,Q0)=>{X.strokeStyle=a.fontColor,X.fillStyle=a.fontColor;let t=X.measureText(a.text).width,i=F.textAlign(a.textAlign||(a.textAlign=K.textAlign)),X0=O+_+t,d=P.x,H0=P.y;if(F.setWidth(this.width),h){if(Q0>0&&d+X0+M>this.right)H0=P.y+=n,P.line++,d=P.x=P5(N,this.left+M,this.right-q[P.line])}else if(Q0>0&&H0+n>this.bottom)d=P.x=d+G[P.line].width+M,P.line++,H0=P.y=P5(N,this.top+p+M,this.bottom-G[P.line].height);let P0=F.x(d);if(I(P0,H0,a),d=uw(i,d+O+_,h?d+X0:this.right,J.rtl),j(F.x(d),H0,a),h)P.x+=X0+M;else if(typeof a.text!=="string"){let O0=W.lineHeight;P.y+=C_(a,O0)+M}else P.y+=n}),CU(this.ctx,J.textDirection)}drawTitle(){let J=this.options,G=J.title,q=Q5(G.font),X=T5(G.padding);if(!G.display)return;let N=y7(J.rtl,this.left,this.width),K=this.ctx,H=G.position,F=q.size/2,W=X.top+F,M,R=this.left,_=this.width;if(this.isHorizontal())_=Math.max(...this.lineWidths),M=this.top+W,R=P5(J.align,R,this.right-_);else{let O=this.columnSizes.reduce((E,V)=>Math.max(E,V.height),0);M=W+P5(J.align,this.top,this.bottom-O-J.labels.padding-this._computeTitleHeight())}let P=P5(H,R,R+_);K.textAlign=N.textAlign(V3(H)),K.textBaseline="middle",K.strokeStyle=G.color,K.fillStyle=G.color,K.font=q.string,D2(K,G.text,P,M,q)}_computeTitleHeight(){let J=this.options.title,G=Q5(J.font),q=T5(J.padding);return J.display?G.lineHeight+q.height:0}_getLegendItemAt(J,G){let q,X,N;if(O8(J,this.left,this.right)&&O8(G,this.top,this.bottom)){N=this.legendHitBoxes;for(q=0;q<N.length;++q)if(X=N[q],O8(J,X.left,X.left+X.width)&&O8(G,X.top,X.top+X.height))return this.legendItems[q]}return null}handleEvent(J){let G=this.options;if(!TE(J.type,G))return;let q=this._getLegendItemAt(J.x,J.y);if(J.type==="mousemove"||J.type==="mouseout"){let X=this._hoveredItem,N=RE(X,q);if(X&&!N)O1(G.onLeave,[J,X,this],this);if(this._hoveredItem=q,q&&!N)O1(G.onHover,[J,q,this],this)}else if(q)O1(G.onClick,[J,q,this],this)}}function _E(J,G,q,X,N){let K=LE(X,J,G,q),H=PE(N,X,G.lineHeight);return{itemWidth:K,itemHeight:H}}function LE(J,G,q,X){let N=J.text;if(N&&typeof N!=="string")N=N.reduce((K,H)=>K.length>H.length?K:H);return G+q.size/2+X.measureText(N).width}function PE(J,G,q){let X=J;if(typeof G.text!=="string")X=C_(G,q);return X}function C_(J,G){let q=J.text?J.text.length:0;return G*q}function TE(J,G){if((J==="mousemove"||J==="mouseout")&&(G.onHover||G.onLeave))return!0;if(G.onClick&&(J==="click"||J==="mouseup"))return!0;return!1}var O_={id:"legend",_element:dU,start(J,G,q){let X=J.legend=new dU({ctx:J.ctx,options:q,chart:J});c6.configure(J,X,q),c6.addBox(J,X)},stop(J){c6.removeBox(J,J.legend),delete J.legend},beforeUpdate(J,G,q){let X=J.legend;c6.configure(J,X,q),X.options=q},afterUpdate(J){let G=J.legend;G.buildLabels(),G.adjustHitBoxes()},afterEvent(J,G){if(!G.replay)J.legend.handleEvent(G.event)},defaults:{display:!0,position:"top",align:"center",fullSize:!0,reverse:!1,weight:1000,onClick(J,G,q){let X=G.datasetIndex,N=q.chart;if(N.isDatasetVisible(X))N.hide(X),G.hidden=!0;else N.show(X),G.hidden=!1},onHover:null,onLeave:null,labels:{color:(J)=>J.chart.options.color,boxWidth:40,padding:10,generateLabels(J){let G=J.data.datasets,{labels:{usePointStyle:q,pointStyle:X,textAlign:N,color:K,useBorderRadius:H,borderRadius:F}}=J.legend.options;return J._getSortedDatasetMetas().map((W)=>{let M=W.controller.getStyle(q?0:void 0),R=T5(M.borderWidth);return{text:G[W.index].label,fillStyle:M.backgroundColor,fontColor:K,hidden:!W.visible,lineCap:M.borderCapStyle,lineDash:M.borderDash,lineDashOffset:M.borderDashOffset,lineJoin:M.borderJoinStyle,lineWidth:(R.width+R.height)/4,strokeStyle:M.borderColor,pointStyle:X||M.pointStyle,rotation:M.rotation,textAlign:N||M.textAlign,borderRadius:H&&(F||M.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 $K extends E8{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,G){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=G;let X=E1(q.text)?q.text.length:1;this._padding=T5(q.padding);let N=X*Q5(q.font).lineHeight+this._padding.height;if(this.isHorizontal())this.height=N;else this.width=N}isHorizontal(){let J=this.options.position;return J==="top"||J==="bottom"}_drawArgs(J){let{top:G,left:q,bottom:X,right:N,options:K}=this,H=K.align,F=0,W,M,R;if(this.isHorizontal())M=P5(H,q,N),R=G+J,W=N-q;else{if(K.position==="left")M=q+J,R=P5(H,X,G),F=r1*-0.5;else M=N-J,R=P5(H,G,X),F=r1*0.5;W=X-G}return{titleX:M,titleY:R,maxWidth:W,rotation:F}}draw(){let J=this.ctx,G=this.options;if(!G.display)return;let q=Q5(G.font),N=q.lineHeight/2+this._padding.top,{titleX:K,titleY:H,maxWidth:F,rotation:W}=this._drawArgs(N);D2(J,G.text,0,0,q,{color:G.color,maxWidth:F,rotation:W,textAlign:V3(G.align),textBaseline:"middle",translation:[K,H]})}}function CE(J,G){let q=new $K({ctx:J.ctx,options:G,chart:J});c6.configure(J,q,G),c6.addBox(J,q),J.titleBlock=q}var I_={id:"title",_element:$K,start(J,G,q){CE(J,q)},stop(J){let G=J.titleBlock;c6.removeBox(J,G),delete J.titleBlock},beforeUpdate(J,G,q){let X=J.titleBlock;c6.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 MJ={average(J){if(!J.length)return!1;let G,q,X=new Set,N=0,K=0;for(G=0,q=J.length;G<q;++G){let F=J[G].element;if(F&&F.hasValue()){let W=F.tooltipPosition();X.add(W.x),N+=W.y,++K}}if(K===0||X.size===0)return!1;return{x:[...X].reduce((F,W)=>F+W)/X.size,y:N/K}},nearest(J,G){if(!J.length)return!1;let{x:q,y:X}=G,N=Number.POSITIVE_INFINITY,K,H,F;for(K=0,H=J.length;K<H;++K){let W=J[K].element;if(W&&W.hasValue()){let M=W.getCenterPoint(),R=P3(G,M);if(R<N)N=R,F=W}}if(F){let W=F.tooltipPosition();q=W.x,X=W.y}return{x:q,y:X}}};function d4(J,G){if(G)if(E1(G))Array.prototype.push.apply(J,G);else J.push(G);return J}function A8(J){if((typeof J==="string"||J instanceof String)&&J.indexOf(`
|
|
255
|
+
*/class Z_{constructor(){this._request=null,this._charts=new Map,this._running=!1,this._lastDate=void 0}_notify(J,G,q,X){let N=G.listeners[X],K=G.duration;N.forEach((H)=>H({chart:J,initial:G.initial,numSteps:K,currentStep:Math.min(q-G.start,K)}))}_refresh(){if(this._request)return;this._running=!0,this._request=UU.call(window,()=>{if(this._update(),this._request=null,this._running)this._refresh()})}_update(J=Date.now()){let G=0;if(this._charts.forEach((q,X)=>{if(!q.running||!q.items.length)return;let N=q.items,K=N.length-1,H=!1,F;for(;K>=0;--K)if(F=N[K],F._active){if(F._total>q.duration)q.duration=F._total;F.tick(J),H=!0}else N[K]=N[N.length-1],N.pop();if(H)X.draw(),this._notify(X,q,J,"progress");if(!N.length)q.running=!1,this._notify(X,q,J,"complete"),q.initial=!1;G+=N.length}),this._lastDate=J,G===0)this._running=!1}_getAnims(J){let G=this._charts,q=G.get(J);if(!q)q={running:!1,initial:!0,items:[],listeners:{complete:[],progress:[]}},G.set(J,q);return q}listen(J,G,q){this._getAnims(J).listeners[G].push(q)}add(J,G){if(!G||!G.length)return;this._getAnims(J).items.push(...G)}has(J){return this._getAnims(J).items.length>0}start(J){let G=this._charts.get(J);if(!G)return;G.running=!0,G.start=Date.now(),G.duration=G.items.reduce((q,X)=>Math.max(q,X._duration),0),this._refresh()}running(J){if(!this._running)return!1;let G=this._charts.get(J);if(!G||!G.running||!G.items.length)return!1;return!0}stop(J){let G=this._charts.get(J);if(!G||!G.items.length)return;let q=G.items,X=q.length-1;for(;X>=0;--X)q[X].cancel();G.items=[],this._notify(J,G,Date.now(),"complete")}remove(J){return this._charts.delete(J)}}var V8=new Z_,qR="transparent",FV={boolean(J,G,q){return q>0.5?G:J},color(J,G,q){let X=HU(J||qR),N=X.valid&&HU(G||qR);return N&&N.valid?N.mix(X,q).hexString():G},number(J,G,q){return J+(G-J)*q}};class J_{constructor(J,G,q,X){let N=G[q];X=UJ([J.to,X,N,J.from]);let K=UJ([J.from,N,X]);this._active=!0,this._fn=J.fn||FV[J.type||typeof K],this._easing=Y$[J.easing]||Y$.linear,this._start=Math.floor(Date.now()+(J.delay||0)),this._duration=this._total=Math.floor(J.duration),this._loop=!!J.loop,this._target=G,this._prop=q,this._from=K,this._to=X,this._promises=void 0}active(){return this._active}update(J,G,q){if(this._active){this._notify(!1);let X=this._target[this._prop],N=q-this._start,K=this._duration-N;this._start=q,this._duration=Math.floor(Math.max(K,J.duration)),this._total+=N,this._loop=!!J.loop,this._to=UJ([J.to,G,X,J.from]),this._from=UJ([J.from,X,G])}}cancel(){if(this._active)this.tick(Date.now()),this._active=!1,this._notify(!1)}tick(J){let G=J-this._start,q=this._duration,X=this._prop,N=this._from,K=this._loop,H=this._to,F;if(this._active=N!==H&&(K||G<q),!this._active){this._target[X]=H,this._notify(!0);return}if(G<0){this._target[X]=N;return}F=G/q%2,F=K&&F>1?2-F:F,F=this._easing(Math.min(1,Math.max(0,F))),this._target[X]=this._fn(N,H,F)}wait(){let J=this._promises||(this._promises=[]);return new Promise((G,q)=>{J.push({res:G,rej:q})})}_notify(J){let G=J?"res":"rej",q=this._promises||[];for(let X=0;X<q.length;X++)q[X][G]()}}class rU{constructor(J,G){this._chart=J,this._properties=new Map,this.configure(G)}configure(J){if(!$1(J))return;let G=Object.keys(u1.animation),q=this._properties;Object.getOwnPropertyNames(J).forEach((X)=>{let N=J[X];if(!$1(N))return;let K={};for(let H of G)K[H]=N[H];(E1(N.properties)&&N.properties||[X]).forEach((H)=>{if(H===X||!q.has(H))q.set(H,K)})})}_animateOptions(J,G){let q=G.options,X=zV(J,q);if(!X)return[];let N=this._createAnimations(X,q);if(q.$shared)WV(J.options.$animations,q).then(()=>{J.options=q},()=>{});return N}_createAnimations(J,G){let q=this._properties,X=[],N=J.$animations||(J.$animations={}),K=Object.keys(G),H=Date.now(),F;for(F=K.length-1;F>=0;--F){let W=K[F];if(W.charAt(0)==="$")continue;if(W==="options"){X.push(...this._animateOptions(J,G));continue}let M=G[W],R=N[W],_=q.get(W);if(R)if(_&&R.active()){R.update(_,M,H);continue}else R.cancel();if(!_||!_.duration){J[W]=M;continue}N[W]=R=new J_(_,J,W,M),X.push(R)}return X}update(J,G){if(this._properties.size===0){Object.assign(J,G);return}let q=this._createAnimations(J,G);if(q.length)return V8.add(this._chart,q),!0}}function WV(J,G){let q=[],X=Object.keys(G);for(let N=0;N<X.length;N++){let K=J[X[N]];if(K&&K.active())q.push(K.wait())}return Promise.all(q)}function zV(J,G){if(!G)return;let q=J.options;if(!q){J.options=G;return}if(q.$shared)J.options=q=Object.assign({},q,{$shared:!1,$animations:{}});return q}function YR(J,G){let q=J&&J.options||{},X=q.reverse,N=q.min===void 0?G:0,K=q.max===void 0?G:0;return{start:X?K:N,end:X?N:K}}function MV(J,G,q){if(q===!1)return!1;let X=YR(J,q),N=YR(G,q);return{top:N.end,right:X.end,bottom:N.start,left:X.start}}function wV(J){let G,q,X,N;if($1(J))G=J.top,q=J.right,X=J.bottom,N=J.left;else G=q=X=N=J;return{top:G,right:q,bottom:X,left:N,disabled:J===!1}}function Q_(J,G){let q=[],X=J._getSortedDatasetMetas(G),N,K;for(N=0,K=X.length;N<K;++N)q.push(X[N].index);return q}function XR(J,G,q,X={}){let N=J.keys,K=X.mode==="single",H,F,W,M;if(G===null)return;let R=!1;for(H=0,F=N.length;H<F;++H){if(W=+N[H],W===q){if(R=!0,X.all)continue;break}if(M=J.values[W],h1(M)&&(K||G===0||U4(G)===U4(M)))G+=M}if(!R&&!X.all)return 0;return G}function RV(J,G){let{iScale:q,vScale:X}=G,N=q.axis==="x"?"x":"y",K=X.axis==="x"?"x":"y",H=Object.keys(J),F=Array(H.length),W,M,R;for(W=0,M=H.length;W<M;++W)R=H[W],F[W]={[N]:R,[K]:J[R]};return F}function AU(J,G){let q=J&&J.options.stacked;return q||q===void 0&&G.stack!==void 0}function _V(J,G,q){return`${J.id}.${G.id}.${q.stack||q.type}`}function LV(J){let{min:G,max:q,minDefined:X,maxDefined:N}=J.getUserBounds();return{min:X?G:Number.NEGATIVE_INFINITY,max:N?q:Number.POSITIVE_INFINITY}}function PV(J,G,q){let X=J[G]||(J[G]={});return X[q]||(X[q]={})}function NR(J,G,q,X){for(let N of G.getMatchingVisibleMetas(X).reverse()){let K=J[N.index];if(q&&K>0||!q&&K<0)return N.index}return null}function UR(J,G){let{chart:q,_cachedMeta:X}=J,N=q._stacks||(q._stacks={}),{iScale:K,vScale:H,index:F}=X,W=K.axis,M=H.axis,R=_V(K,H,X),_=G.length,P;for(let O=0;O<_;++O){let E=G[O],{[W]:V,[M]:I}=E,j=E._stacks||(E._stacks={});P=j[M]=PV(N,R,V),P[F]=I,P._top=NR(P,H,!0,X.type),P._bottom=NR(P,H,!1,X.type);let h=P._visualValues||(P._visualValues={});h[F]=I}}function EU(J,G){let q=J.scales;return Object.keys(q).filter((X)=>q[X].axis===G).shift()}function TV(J,G){return I8(J,{active:!1,dataset:void 0,datasetIndex:G,index:G,mode:"default",type:"dataset"})}function CV(J,G,q){return I8(J,{active:!1,dataIndex:G,parsed:void 0,raw:void 0,element:q,index:G,mode:"default",type:"data"})}function KJ(J,G){let q=J.controller.index,X=J.vScale&&J.vScale.axis;if(!X)return;G=G||J._parsed;for(let N of G){let K=N._stacks;if(!K||K[X]===void 0||K[X][q]===void 0)return;if(delete K[X][q],K[X]._visualValues!==void 0&&K[X]._visualValues[q]!==void 0)delete K[X]._visualValues[q]}}var SU=(J)=>J==="reset"||J==="none",KR=(J,G)=>G?J:Object.assign({},J),OV=(J,G,q)=>J&&!G.hidden&&G._stacked&&{keys:Q_(q,!0),values:null};class d3{static defaults={};static datasetElementType=null;static dataElementType=null;constructor(J,G){this.chart=J,this._ctx=J.ctx,this.index=G,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=AU(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)KJ(this._cachedMeta);this.index=J}linkScales(){let J=this.chart,G=this._cachedMeta,q=this.getDataset(),X=(R,_,P,O)=>R==="x"?_:R==="r"?O:P,N=G.xAxisID=s0(q.xAxisID,EU(J,"x")),K=G.yAxisID=s0(q.yAxisID,EU(J,"y")),H=G.rAxisID=s0(q.rAxisID,EU(J,"r")),F=G.indexAxis,W=G.iAxisID=X(F,N,K,H),M=G.vAxisID=X(F,K,N,H);G.xScale=this.getScaleForId(N),G.yScale=this.getScaleForId(K),G.rScale=this.getScaleForId(H),G.iScale=this.getScaleForId(W),G.vScale=this.getScaleForId(M)}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 G=this._cachedMeta;return J===G.iScale?G.vScale:G.iScale}reset(){this._update("reset")}_destroy(){let J=this._cachedMeta;if(this._data)XU(this._data,this);if(J._stacked)KJ(J)}_dataCheck(){let J=this.getDataset(),G=J.data||(J.data=[]),q=this._data;if($1(G)){let X=this._cachedMeta;this._data=RV(G,X)}else if(q!==G){if(q){XU(q,this);let X=this._cachedMeta;KJ(X),X._parsed=[]}if(G&&Object.isExtensible(G))gw(G,this);this._syncList=[],this._data=G}}addElements(){let J=this._cachedMeta;if(this._dataCheck(),this.datasetElementType)J.dataset=new this.datasetElementType}buildOrUpdateElements(J){let G=this._cachedMeta,q=this.getDataset(),X=!1;this._dataCheck();let N=G._stacked;if(G._stacked=AU(G.vScale,G),G.stack!==q.stack)X=!0,KJ(G),G.stack=q.stack;if(this._resyncElements(J),X||N!==G._stacked)UR(this,G._parsed),G._stacked=AU(G.vScale,G)}configure(){let J=this.chart.config,G=J.datasetScopeKeys(this._type),q=J.getOptionScopes(this.getDataset(),G,!0);this.options=J.createResolver(q,this.getContext()),this._parsing=this.options.parsing,this._cachedDataOpts={}}parse(J,G){let{_cachedMeta:q,_data:X}=this,{iScale:N,_stacked:K}=q,H=N.axis,F=J===0&&G===X.length?!0:q._sorted,W=J>0&&q._parsed[J-1],M,R,_;if(this._parsing===!1)q._parsed=X,q._sorted=!0,_=X;else{if(E1(X[J]))_=this.parseArrayData(q,X,J,G);else if($1(X[J]))_=this.parseObjectData(q,X,J,G);else _=this.parsePrimitiveData(q,X,J,G);let P=()=>R[H]===null||W&&R[H]<W[H];for(M=0;M<G;++M)if(q._parsed[M+J]=R=_[M],F){if(P())F=!1;W=R}q._sorted=F}if(K)UR(this,_)}parsePrimitiveData(J,G,q,X){let{iScale:N,vScale:K}=J,H=N.axis,F=K.axis,W=N.getLabels(),M=N===K,R=Array(X),_,P,O;for(_=0,P=X;_<P;++_)O=_+q,R[_]={[H]:M||N.parse(W[O],O),[F]:K.parse(G[O],O)};return R}parseArrayData(J,G,q,X){let{xScale:N,yScale:K}=J,H=Array(X),F,W,M,R;for(F=0,W=X;F<W;++F)M=F+q,R=G[M],H[F]={x:N.parse(R[0],M),y:K.parse(R[1],M)};return H}parseObjectData(J,G,q,X){let{xScale:N,yScale:K}=J,{xAxisKey:H="x",yAxisKey:F="y"}=this._parsing,W=Array(X),M,R,_,P;for(M=0,R=X;M<R;++M)_=M+q,P=G[_],W[M]={x:N.parse(y7(P,H),_),y:K.parse(y7(P,F),_)};return W}getParsed(J){return this._cachedMeta._parsed[J]}getDataElement(J){return this._cachedMeta.data[J]}applyStack(J,G,q){let X=this.chart,N=this._cachedMeta,K=G[J.axis],H={keys:Q_(X,!0),values:G._stacks[J.axis]._visualValues};return XR(H,K,N.index,{mode:q})}updateRangeFromParsed(J,G,q,X){let N=q[G.axis],K=N===null?NaN:N,H=X&&q._stacks[G.axis];if(X&&H)X.values=H,K=XR(X,N,this._cachedMeta.index);J.min=Math.min(J.min,K),J.max=Math.max(J.max,K)}getMinMax(J,G){let q=this._cachedMeta,X=q._parsed,N=q._sorted&&J===q.iScale,K=X.length,H=this._getOtherScale(J),F=OV(G,q,this.chart),W={min:Number.POSITIVE_INFINITY,max:Number.NEGATIVE_INFINITY},{min:M,max:R}=LV(H),_,P;function O(){P=X[_];let E=P[H.axis];return!h1(P[J.axis])||M>E||R<E}for(_=0;_<K;++_){if(O())continue;if(this.updateRangeFromParsed(W,J,P,F),N)break}if(N)for(_=K-1;_>=0;--_){if(O())continue;this.updateRangeFromParsed(W,J,P,F);break}return W}getAllParsedValues(J){let G=this._cachedMeta._parsed,q=[],X,N,K;for(X=0,N=G.length;X<N;++X)if(K=G[X][J.axis],h1(K))q.push(K);return q}getMaxOverflow(){return!1}getLabelAndValue(J){let G=this._cachedMeta,q=G.iScale,X=G.vScale,N=this.getParsed(J);return{label:q?""+q.getLabelForValue(N[q.axis]):"",value:X?""+X.getLabelForValue(N[X.axis]):""}}_update(J){let G=this._cachedMeta;this.update(J||"default"),G._clip=wV(s0(this.options.clip,MV(G.xScale,G.yScale,this.getMaxOverflow())))}update(J){}draw(){let J=this._ctx,G=this.chart,q=this._cachedMeta,X=q.data||[],N=G.chartArea,K=[],H=this._drawStart||0,F=this._drawCount||X.length-H,W=this.options.drawActiveElementsOnTop,M;if(q.dataset)q.dataset.draw(J,N,H,F);for(M=H;M<H+F;++M){let R=X[M];if(R.hidden)continue;if(R.active&&W)K.push(R);else R.draw(J,N)}for(M=0;M<K.length;++M)K[M].draw(J,N)}getStyle(J,G){let q=G?"active":"default";return J===void 0&&this._cachedMeta.dataset?this.resolveDatasetElementOptions(q):this.resolveDataElementOptions(J||0,q)}getContext(J,G,q){let X=this.getDataset(),N;if(J>=0&&J<this._cachedMeta.data.length){let K=this._cachedMeta.data[J];N=K.$context||(K.$context=CV(this.getContext(),J,K)),N.parsed=this.getParsed(J),N.raw=X.data[J],N.index=N.dataIndex=J}else N=this.$context||(this.$context=TV(this.chart.getContext(),this.index)),N.dataset=X,N.index=N.datasetIndex=this.index;return N.active=!!G,N.mode=q,N}resolveDatasetElementOptions(J){return this._resolveElementOptions(this.datasetElementType.id,J)}resolveDataElementOptions(J,G){return this._resolveElementOptions(this.dataElementType.id,G,J)}_resolveElementOptions(J,G="default",q){let X=G==="active",N=this._cachedDataOpts,K=J+"-"+G,H=N[K],F=this.enableOptionSharing&&K$(q);if(H)return KR(H,F);let W=this.chart.config,M=W.datasetElementScopeKeys(this._type,J),R=X?[`${J}Hover`,"hover",J,""]:[J,""],_=W.getOptionScopes(this.getDataset(),M),P=Object.keys(u1.elements[J]),O=()=>this.getContext(q,X,G),E=W.resolveNamedOptions(_,P,O,R);if(E.$shared)E.$shared=F,N[K]=Object.freeze(KR(E,F));return E}_resolveAnimations(J,G,q){let X=this.chart,N=this._cachedDataOpts,K=`animation-${G}`,H=N[K];if(H)return H;let F;if(X.options.animation!==!1){let M=this.chart.config,R=M.datasetAnimationScopeKeys(this._type,G),_=M.getOptionScopes(this.getDataset(),R);F=M.createResolver(_,this.getContext(J,q,G))}let W=new rU(X,F&&F.animations);if(F&&F._cacheable)N[K]=Object.freeze(W);return W}getSharedOptions(J){if(!J.$shared)return;return this._sharedOptions||(this._sharedOptions=Object.assign({},J))}includeOptions(J,G){return!G||SU(J)||this.chart._animationsDisabled}_getSharedOptions(J,G){let q=this.resolveDataElementOptions(J,G),X=this._sharedOptions,N=this.getSharedOptions(q),K=this.includeOptions(G,N)||N!==X;return this.updateSharedOptions(N,G,q),{sharedOptions:N,includeOptions:K}}updateElement(J,G,q,X){if(SU(X))Object.assign(J,q);else this._resolveAnimations(G,X).update(J,q)}updateSharedOptions(J,G,q){if(J&&!SU(G))this._resolveAnimations(void 0,G).update(J,q)}_setStyle(J,G,q,X){J.active=X;let N=this.getStyle(G,X);this._resolveAnimations(G,q,X).update(J,{options:!X&&this.getSharedOptions(N)||N})}removeHoverStyle(J,G,q){this._setStyle(J,q,"active",!1)}setHoverStyle(J,G,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 G=this._data,q=this._cachedMeta.data;for(let[H,F,W]of this._syncList)this[H](F,W);this._syncList=[];let X=q.length,N=G.length,K=Math.min(N,X);if(K)this.parse(0,K);if(N>X)this._insertElements(X,N-X,J);else if(N<X)this._removeElements(N,X-N)}_insertElements(J,G,q=!0){let X=this._cachedMeta,N=X.data,K=J+G,H,F=(W)=>{W.length+=G;for(H=W.length-1;H>=K;H--)W[H]=W[H-G]};F(N);for(H=J;H<K;++H)N[H]=new this.dataElementType;if(this._parsing)F(X._parsed);if(this.parse(J,G),q)this.updateElements(N,J,G,"reset")}updateElements(J,G,q,X){}_removeElements(J,G){let q=this._cachedMeta;if(this._parsing){let X=q._parsed.splice(J,G);if(q._stacked)KJ(q,X)}q.data.splice(J,G)}_sync(J){if(this._parsing)this._syncList.push(J);else{let[G,q,X]=J;this[G](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,G){if(G)this._sync(["_removeElements",J,G]);let q=arguments.length-2;if(q)this._sync(["_insertElements",J,q])}_onDataUnshift(){this._sync(["_insertElements",0,arguments.length])}}function IV(J,G){if(!J._cache.$bar){let q=J.getMatchingVisibleMetas(G),X=[];for(let N=0,K=q.length;N<K;N++)X=X.concat(q[N].controller.getAllParsedValues(J));J._cache.$bar=NU(X.sort((N,K)=>N-K))}return J._cache.$bar}function VV(J){let G=J.iScale,q=IV(G,J.type),X=G._length,N,K,H,F,W=()=>{if(H===32767||H===-32768)return;if(K$(F))X=Math.min(X,Math.abs(H-F)||X);F=H};for(N=0,K=q.length;N<K;++N)H=G.getPixelForValue(q[N]),W();F=void 0;for(N=0,K=G.ticks.length;N<K;++N)H=G.getPixelForTick(N),W();return X}function AV(J,G,q,X){let N=q.barThickness,K,H;if(Q1(N))K=G.min*q.categoryPercentage,H=q.barPercentage;else K=N*X,H=1;return{chunk:K/X,ratio:H,start:G.pixels[J]-K/2}}function EV(J,G,q,X){let N=G.pixels,K=N[J],H=J>0?N[J-1]:null,F=J<N.length-1?N[J+1]:null,W=q.categoryPercentage;if(H===null)H=K-(F===null?G.end-G.start:F-K);if(F===null)F=K+K-H;let M=K-(K-Math.min(H,F))/2*W;return{chunk:Math.abs(F-H)/2*W/X,ratio:q.barPercentage,start:M}}function SV(J,G,q,X){let N=q.parse(J[0],X),K=q.parse(J[1],X),H=Math.min(N,K),F=Math.max(N,K),W=H,M=F;if(Math.abs(H)>Math.abs(F))W=F,M=H;G[q.axis]=M,G._custom={barStart:W,barEnd:M,start:N,end:K,min:H,max:F}}function G_(J,G,q,X){if(E1(J))SV(J,G,q,X);else G[q.axis]=q.parse(J,X);return G}function BR(J,G,q,X){let{iScale:N,vScale:K}=J,H=N.getLabels(),F=N===K,W=[],M,R,_,P;for(M=q,R=q+X;M<R;++M)P=G[M],_={},_[N.axis]=F||N.parse(H[M],M),W.push(G_(P,_,K,M));return W}function DU(J){return J&&J.barStart!==void 0&&J.barEnd!==void 0}function DV(J,G,q){if(J!==0)return U4(J);return(G.isHorizontal()?1:-1)*(G.min>=q?1:-1)}function jV(J){let G,q,X,N,K;if(J.horizontal)G=J.base>J.x,q="left",X="right";else G=J.base<J.y,q="bottom",X="top";if(G)N="end",K="start";else N="start",K="end";return{start:q,end:X,reverse:G,top:N,bottom:K}}function kV(J,G,q,X){let N=G.borderSkipped,K={};if(!N){J.borderSkipped=K;return}if(N===!0){J.borderSkipped={top:!0,right:!0,bottom:!0,left:!0};return}let{start:H,end:F,reverse:W,top:M,bottom:R}=jV(J);if(N==="middle"&&q)if(J.enableBorderRadius=!0,(q._top||0)===X)N=M;else if((q._bottom||0)===X)N=R;else K[HR(R,H,F,W)]=!0,N=M;K[HR(N,H,F,W)]=!0,J.borderSkipped=K}function HR(J,G,q,X){if(X)J=vV(J,G,q),J=FR(J,q,G);else J=FR(J,G,q);return J}function vV(J,G,q){return J===G?q:J===q?G:J}function FR(J,G,q){return J==="start"?G:J==="end"?q:J}function bV(J,{inflateAmount:G},q){J.inflateAmount=G==="auto"?q===1?0.33:0:G}class sU extends d3{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,G,q,X){return BR(J,G,q,X)}parseArrayData(J,G,q,X){return BR(J,G,q,X)}parseObjectData(J,G,q,X){let{iScale:N,vScale:K}=J,{xAxisKey:H="x",yAxisKey:F="y"}=this._parsing,W=N.axis==="x"?H:F,M=K.axis==="x"?H:F,R=[],_,P,O,E;for(_=q,P=q+X;_<P;++_)E=G[_],O={},O[N.axis]=N.parse(y7(E,W),_),R.push(G_(y7(E,M),O,K,_));return R}updateRangeFromParsed(J,G,q,X){super.updateRangeFromParsed(J,G,q,X);let N=q._custom;if(N&&G===this._cachedMeta.vScale)J.min=Math.min(J.min,N.min),J.max=Math.max(J.max,N.max)}getMaxOverflow(){return 0}getLabelAndValue(J){let G=this._cachedMeta,{iScale:q,vScale:X}=G,N=this.getParsed(J),K=N._custom,H=DU(K)?"["+K.start+", "+K.end+"]":""+X.getLabelForValue(N[X.axis]);return{label:""+q.getLabelForValue(N[q.axis]),value:H}}initialize(){this.enableOptionSharing=!0,super.initialize();let J=this._cachedMeta;J.stack=this.getDataset().stack}update(J){let G=this._cachedMeta;this.updateElements(G.data,0,G.data.length,J)}updateElements(J,G,q,X){let N=X==="reset",{index:K,_cachedMeta:{vScale:H}}=this,F=H.getBasePixel(),W=H.isHorizontal(),M=this._getRuler(),{sharedOptions:R,includeOptions:_}=this._getSharedOptions(G,X);for(let P=G;P<G+q;P++){let O=this.getParsed(P),E=N||Q1(O[H.axis])?{base:F,head:F}:this._calculateBarValuePixels(P),V=this._calculateBarIndexPixels(P,M),I=(O._stacks||{})[H.axis],j={horizontal:W,base:E.base,enableBorderRadius:!I||DU(O._custom)||K===I._top||K===I._bottom,x:W?E.head:V.center,y:W?V.center:E.head,height:W?V.size:Math.abs(E.size),width:W?Math.abs(E.size):V.size};if(_)j.options=R||this.resolveDataElementOptions(P,J[P].active?"active":X);let h=j.options||J[P].options;kV(j,h,I,K),bV(j,h,M.ratio),this.updateElement(J[P],P,j,X)}}_getStacks(J,G){let{iScale:q}=this._cachedMeta,X=q.getMatchingVisibleMetas(this._type).filter((M)=>M.controller.options.grouped),N=q.options.stacked,K=[],H=this._cachedMeta.controller.getParsed(G),F=H&&H[q.axis],W=(M)=>{let R=M._parsed.find((P)=>P[q.axis]===F),_=R&&R[M.vScale.axis];if(Q1(_)||isNaN(_))return!0};for(let M of X){if(G!==void 0&&W(M))continue;if(N===!1||K.indexOf(M.stack)===-1||N===void 0&&M.stack===void 0)K.push(M.stack);if(M.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,G=this.chart.options.indexAxis;return Object.keys(J).filter((q)=>J[q].axis===G).shift()}_getAxis(){let J={},G=this.getFirstScaleIdForIndexAxis();for(let q of this.chart.data.datasets)J[s0(this.chart.options.indexAxis==="x"?q.xAxisID:q.yAxisID,G)]=!0;return Object.keys(J)}_getStackIndex(J,G,q){let X=this._getStacks(J,q),N=G!==void 0?X.indexOf(G):-1;return N===-1?X.length-1:N}_getRuler(){let J=this.options,G=this._cachedMeta,q=G.iScale,X=[],N,K;for(N=0,K=G.data.length;N<K;++N)X.push(q.getPixelForValue(this.getParsed(N)[q.axis],N));let H=J.barThickness;return{min:H||VV(G),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:G,_stacked:q,index:X},options:{base:N,minBarLength:K}}=this,H=N||0,F=this.getParsed(J),W=F._custom,M=DU(W),R=F[G.axis],_=0,P=q?this.applyStack(G,F,q):R,O,E;if(P!==R)_=P-R,P=R;if(M){if(R=W.barStart,P=W.barEnd-W.barStart,R!==0&&U4(R)!==U4(W.barEnd))_=0;_+=R}let V=!Q1(N)&&!M?N:_,I=G.getPixelForValue(V);if(this.chart.getDataVisibility(J))O=G.getPixelForValue(_+P);else O=I;if(E=O-I,Math.abs(E)<K){if(E=DV(E,G,H)*K,R===H)I-=E/2;let j=G.getPixelForDecimal(0),h=G.getPixelForDecimal(1),p=Math.min(j,h),n=Math.max(j,h);if(I=Math.max(Math.min(I,n),p),O=I+E,q&&!M)F._stacks[G.axis]._visualValues[X]=G.getValueForPixel(O)-G.getValueForPixel(I)}if(I===G.getPixelForValue(H)){let j=U4(E)*G.getLineWidthForValue(H)/2;I+=j,E-=j}return{size:E,base:I,head:O,center:O+E/2}}_calculateBarIndexPixels(J,G){let q=G.scale,X=this.options,N=X.skipNull,K=s0(X.maxBarThickness,1/0),H,F,W=this._getAxisCount();if(G.grouped){let M=N?this._getStackCount(J):G.stackCount,R=X.barThickness==="flex"?EV(J,G,X,M*W):AV(J,G,X,M*W),_=this.chart.options.indexAxis==="x"?this.getDataset().xAxisID:this.getDataset().yAxisID,P=this._getAxis().indexOf(s0(_,this.getFirstScaleIdForIndexAxis())),O=this._getStackIndex(this.index,this._cachedMeta.stack,N?J:void 0)+P;H=R.start+R.chunk*O+R.chunk/2,F=Math.min(K,R.chunk*R.ratio)}else H=q.getPixelForValue(this.getParsed(J)[q.axis],J),F=Math.min(K,G.min*G.ratio);return{base:H-F/2,head:H+F/2,center:H,size:F}}draw(){let J=this._cachedMeta,G=J.vScale,q=J.data,X=q.length,N=0;for(;N<X;++N)if(this.getParsed(N)[G.axis]!==null&&!q[N].hidden)q[N].draw(this._ctx)}}class nU extends d3{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 G=this._cachedMeta,{dataset:q,data:X=[],_dataset:N}=G,K=this.chart._animationsDisabled,{start:H,count:F}=xw(G,X,K);if(this._drawStart=H,this._drawCount=F,mw(G))H=0,F=X.length;q._chart=this.chart,q._datasetIndex=this.index,q._decimated=!!N._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,F,J)}updateElements(J,G,q,X){let N=X==="reset",{iScale:K,vScale:H,_stacked:F,_dataset:W}=this._cachedMeta,{sharedOptions:M,includeOptions:R}=this._getSharedOptions(G,X),_=K.axis,P=H.axis,{spanGaps:O,segment:E}=this.options,V=H$(O)?O:Number.POSITIVE_INFINITY,I=this.chart._animationsDisabled||N||X==="none",j=G+q,h=J.length,p=G>0&&this.getParsed(G-1);for(let n=0;n<h;++n){let a=J[n],Q0=I?a:{};if(n<G||n>=j){Q0.skip=!0;continue}let t=this.getParsed(n),i=Q1(t[P]),X0=Q0[_]=K.getPixelForValue(t[_],n),d=Q0[P]=N||i?H.getBasePixel():H.getPixelForValue(F?this.applyStack(H,t,F):t[P],n);if(Q0.skip=isNaN(X0)||isNaN(d)||i,Q0.stop=n>0&&Math.abs(t[_]-p[_])>V,E)Q0.parsed=t,Q0.raw=W.data[n];if(R)Q0.options=M||this.resolveDataElementOptions(n,a.active?"active":X);if(!I)this.updateElement(a,n,Q0,X);p=t}}getMaxOverflow(){let J=this._cachedMeta,G=J.dataset,q=G.options&&G.options.borderWidth||0,X=J.data||[];if(!X.length)return q;let N=X[0].size(this.resolveDataElementOptions(0)),K=X[X.length-1].size(this.resolveDataElementOptions(X.length-1));return Math.max(q,N,K)/2}draw(){let J=this._cachedMeta;J.dataset.updateControlPoints(this.chart.chartArea,J.iScale.axis),super.draw()}}function h7(){throw Error("This method is not implemented: Check that a complete date adapter is provided.")}class oU{static override(J){Object.assign(oU.prototype,J)}options;constructor(J){this.options=J||{}}init(){}formats(){return h7()}parse(){return h7()}format(){return h7()}add(){return h7()}diff(){return h7()}startOf(){return h7()}endOf(){return h7()}}var fV={_date:oU};function yV(J,G,q,X){let{controller:N,data:K,_sorted:H}=J,F=N._cachedMeta.iScale,W=J.dataset?J.dataset.options?J.dataset.options.spanGaps:null:null;if(F&&G===F.axis&&G!=="r"&&H&&K.length){let M=F._reversePixels?bw:V2;if(!X){let R=M(K,G,q);if(W){let{vScale:_}=N._cachedMeta,{_parsed:P}=J,O=P.slice(0,R.lo+1).reverse().findIndex((V)=>!Q1(V[_.axis]));R.lo-=Math.max(0,O);let E=P.slice(R.hi).findIndex((V)=>!Q1(V[_.axis]));R.hi+=Math.max(0,E)}return R}else if(N._sharedOptions){let R=K[0],_=typeof R.getRange==="function"&&R.getRange(G);if(_){let P=M(K,G,q-_),O=M(K,G,q+_);return{lo:P.lo,hi:O.hi}}}}return{lo:0,hi:K.length-1}}function PJ(J,G,q,X,N){let K=J.getSortedVisibleDatasetMetas(),H=q[G];for(let F=0,W=K.length;F<W;++F){let{index:M,data:R}=K[F],{lo:_,hi:P}=yV(K[F],G,H,N);for(let O=_;O<=P;++O){let E=R[O];if(!E.skip)X(E,M,O)}}}function gV(J){let G=J.indexOf("x")!==-1,q=J.indexOf("y")!==-1;return function(X,N){let K=G?Math.abs(X.x-N.x):0,H=q?Math.abs(X.y-N.y):0;return Math.sqrt(Math.pow(K,2)+Math.pow(H,2))}}function jU(J,G,q,X,N){let K=[];if(!N&&!J.isPointInArea(G))return K;return PJ(J,q,G,function(F,W,M){if(!N&&!x4(F,J.chartArea,0))return;if(F.inRange(G.x,G.y,X))K.push({element:F,datasetIndex:W,index:M})},!0),K}function hV(J,G,q,X){let N=[];function K(H,F,W){let{startAngle:M,endAngle:R}=H.getProps(["startAngle","endAngle"],X),{angle:_}=kw(H,{x:G.x,y:G.y});if(YU(_,M,R))N.push({element:H,datasetIndex:F,index:W})}return PJ(J,q,G,K),N}function uV(J,G,q,X,N,K){let H=[],F=gV(q),W=Number.POSITIVE_INFINITY;function M(R,_,P){let O=R.inRange(G.x,G.y,N);if(X&&!O)return;let E=R.getCenterPoint(N);if(!(!!K||J.isPointInArea(E))&&!O)return;let I=F(G,E);if(I<W)H=[{element:R,datasetIndex:_,index:P}],W=I;else if(I===W)H.push({element:R,datasetIndex:_,index:P})}return PJ(J,q,G,M),H}function kU(J,G,q,X,N,K){if(!K&&!J.isPointInArea(G))return[];return q==="r"&&!X?hV(J,G,q,N):uV(J,G,q,X,N,K)}function WR(J,G,q,X,N){let K=[],H=q==="x"?"inXRange":"inYRange",F=!1;if(PJ(J,q,G,(W,M,R)=>{if(W[H]&&W[H](G[q],N))K.push({element:W,datasetIndex:M,index:R}),F=F||W.inRange(G.x,G.y,N)}),X&&!F)return[];return K}var xV={evaluateInteractionItems:PJ,modes:{index(J,G,q,X){let N=k2(G,J),K=q.axis||"x",H=q.includeInvisible||!1,F=q.intersect?jU(J,N,K,X,H):kU(J,N,K,!1,X,H),W=[];if(!F.length)return[];return J.getSortedVisibleDatasetMetas().forEach((M)=>{let R=F[0].index,_=M.data[R];if(_&&!_.skip)W.push({element:_,datasetIndex:M.index,index:R})}),W},dataset(J,G,q,X){let N=k2(G,J),K=q.axis||"xy",H=q.includeInvisible||!1,F=q.intersect?jU(J,N,K,X,H):kU(J,N,K,!1,X,H);if(F.length>0){let W=F[0].datasetIndex,M=J.getDatasetMeta(W).data;F=[];for(let R=0;R<M.length;++R)F.push({element:M[R],datasetIndex:W,index:R})}return F},point(J,G,q,X){let N=k2(G,J),K=q.axis||"xy",H=q.includeInvisible||!1;return jU(J,N,K,X,H)},nearest(J,G,q,X){let N=k2(G,J),K=q.axis||"xy",H=q.includeInvisible||!1;return kU(J,N,K,q.intersect,X,H)},x(J,G,q,X){let N=k2(G,J);return WR(J,N,"x",q.intersect,X)},y(J,G,q,X){let N=k2(G,J);return WR(J,N,"y",q.intersect,X)}}},q_=["left","top","right","bottom"];function BJ(J,G){return J.filter((q)=>q.pos===G)}function zR(J,G){return J.filter((q)=>q_.indexOf(q.pos)===-1&&q.box.axis===G)}function HJ(J,G){return J.sort((q,X)=>{let N=G?X:q,K=G?q:X;return N.weight===K.weight?N.index-K.index:N.weight-K.weight})}function mV(J){let G=[],q,X,N,K,H,F;for(q=0,X=(J||[]).length;q<X;++q)N=J[q],{position:K,options:{stack:H,stackWeight:F=1}}=N,G.push({index:q,box:N,pos:K,horizontal:N.isHorizontal(),weight:N.weight,stack:H&&K+H,stackWeight:F});return G}function dV(J){let G={};for(let q of J){let{stack:X,pos:N,stackWeight:K}=q;if(!X||!q_.includes(N))continue;let H=G[X]||(G[X]={count:0,placed:0,weight:0,size:0});H.count++,H.weight+=K}return G}function pV(J,G){let q=dV(J),{vBoxMaxWidth:X,hBoxMaxHeight:N}=G,K,H,F;for(K=0,H=J.length;K<H;++K){F=J[K];let{fullSize:W}=F.box,M=q[F.stack],R=M&&F.stackWeight/M.weight;if(F.horizontal)F.width=R?R*X:W&&G.availableWidth,F.height=N;else F.width=X,F.height=R?R*N:W&&G.availableHeight}return q}function cV(J){let G=mV(J),q=HJ(G.filter((M)=>M.box.fullSize),!0),X=HJ(BJ(G,"left"),!0),N=HJ(BJ(G,"right")),K=HJ(BJ(G,"top"),!0),H=HJ(BJ(G,"bottom")),F=zR(G,"x"),W=zR(G,"y");return{fullSize:q,leftAndTop:X.concat(K),rightAndBottom:N.concat(W).concat(H).concat(F),chartArea:BJ(G,"chartArea"),vertical:X.concat(N).concat(W),horizontal:K.concat(H).concat(F)}}function MR(J,G,q,X){return Math.max(J[q],G[q])+Math.max(J[X],G[X])}function Y_(J,G){J.top=Math.max(J.top,G.top),J.left=Math.max(J.left,G.left),J.bottom=Math.max(J.bottom,G.bottom),J.right=Math.max(J.right,G.right)}function lV(J,G,q,X){let{pos:N,box:K}=q,H=J.maxPadding;if(!$1(N)){if(q.size)J[N]-=q.size;let _=X[q.stack]||{size:0,count:1};_.size=Math.max(_.size,q.horizontal?K.height:K.width),q.size=_.size/_.count,J[N]+=q.size}if(K.getPadding)Y_(H,K.getPadding());let F=Math.max(0,G.outerWidth-MR(H,J,"left","right")),W=Math.max(0,G.outerHeight-MR(H,J,"top","bottom")),M=F!==J.w,R=W!==J.h;return J.w=F,J.h=W,q.horizontal?{same:M,other:R}:{same:R,other:M}}function rV(J){let G=J.maxPadding;function q(X){let N=Math.max(G[X]-J[X],0);return J[X]+=N,N}J.y+=q("top"),J.x+=q("left"),q("right"),q("bottom")}function sV(J,G){let q=G.maxPadding;function X(N){let K={left:0,top:0,right:0,bottom:0};return N.forEach((H)=>{K[H]=Math.max(G[H],q[H])}),K}return J?X(["left","right"]):X(["top","bottom"])}function zJ(J,G,q,X){let N=[],K,H,F,W,M,R;for(K=0,H=J.length,M=0;K<H;++K){F=J[K],W=F.box,W.update(F.width||G.w,F.height||G.h,sV(F.horizontal,G));let{same:_,other:P}=lV(G,q,F,X);if(M|=_&&N.length,R=R||P,!W.fullSize)N.push(F)}return M&&zJ(N,G,q,X)||R}function b3(J,G,q,X,N){J.top=q,J.left=G,J.right=G+X,J.bottom=q+N,J.width=X,J.height=N}function wR(J,G,q,X){let N=q.padding,{x:K,y:H}=G;for(let F of J){let W=F.box,M=X[F.stack]||{count:1,placed:0,weight:1},R=F.stackWeight/M.weight||1;if(F.horizontal){let _=G.w*R,P=M.size||W.height;if(K$(M.start))H=M.start;if(W.fullSize)b3(W,N.left,H,q.outerWidth-N.right-N.left,P);else b3(W,G.left+M.placed,H,_,P);M.start=H,M.placed+=_,H=W.bottom}else{let _=G.h*R,P=M.size||W.width;if(K$(M.start))K=M.start;if(W.fullSize)b3(W,K,N.top,P,q.outerHeight-N.bottom-N.top);else b3(W,K,G.top+M.placed,P,_);M.start=K,M.placed+=_,K=W.right}}G.x=K,G.y=H}var c6={addBox(J,G){if(!J.boxes)J.boxes=[];G.fullSize=G.fullSize||!1,G.position=G.position||"top",G.weight=G.weight||0,G._layers=G._layers||function(){return[{z:0,draw(q){G.draw(q)}}]},J.boxes.push(G)},removeBox(J,G){let q=J.boxes?J.boxes.indexOf(G):-1;if(q!==-1)J.boxes.splice(q,1)},configure(J,G,q){G.fullSize=q.fullSize,G.position=q.position,G.weight=q.weight},update(J,G,q,X){if(!J)return;let N=T5(J.options.layout.padding),K=Math.max(G-N.width,0),H=Math.max(q-N.height,0),F=cV(J.boxes),W=F.vertical,M=F.horizontal;F1(J.boxes,(V)=>{if(typeof V.beforeLayout==="function")V.beforeLayout()});let R=W.reduce((V,I)=>I.box.options&&I.box.options.display===!1?V:V+1,0)||1,_=Object.freeze({outerWidth:G,outerHeight:q,padding:N,availableWidth:K,availableHeight:H,vBoxMaxWidth:K/2/R,hBoxMaxHeight:H/2}),P=Object.assign({},N);Y_(P,T5(X));let O=Object.assign({maxPadding:P,w:K,h:H,x:N.left,y:N.top},N),E=pV(W.concat(M),_);if(zJ(F.fullSize,O,_,E),zJ(W,O,_,E),zJ(M,O,_,E))zJ(W,O,_,E);rV(O),wR(F.leftAndTop,O,_,E),O.x+=O.w,O.y+=O.h,wR(F.rightAndBottom,O,_,E),J.chartArea={left:O.left,top:O.top,right:O.left+O.w,bottom:O.top+O.h,height:O.h,width:O.w},F1(F.chartArea,(V)=>{let I=V.box;Object.assign(I,J.chartArea),I.update(O.w,O.h,{left:0,top:0,right:0,bottom:0})})}};class aU{acquireContext(J,G){}releaseContext(J){return!1}addEventListener(J,G,q){}removeEventListener(J,G,q){}getDevicePixelRatio(){return 1}getMaximumSize(J,G,q,X){return G=Math.max(0,G||J.width),q=q||J.height,{width:G,height:Math.max(0,X?Math.floor(G/X):q)}}isAttached(J){return!0}updateConfig(J){}}class X_ extends aU{acquireContext(J){return J&&J.getContext&&J.getContext("2d")||null}updateConfig(J){J.options.animation=!1}}var u3="$chartjs",nV={touchstart:"mousedown",touchmove:"mousemove",touchend:"mouseup",pointerenter:"mouseenter",pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointerleave:"mouseout",pointerout:"mouseout"},RR=(J)=>J===null||J==="";function oV(J,G){let q=J.style,X=J.getAttribute("height"),N=J.getAttribute("width");if(J[u3]={initial:{height:X,width:N,style:{display:q.display,height:q.height,width:q.width}}},q.display=q.display||"block",q.boxSizing=q.boxSizing||"border-box",RR(N)){let K=PU(J,"width");if(K!==void 0)J.width=K}if(RR(X))if(J.style.height==="")J.height=J.width/(G||2);else{let K=PU(J,"height");if(K!==void 0)J.height=K}return J}var N_=$R?{passive:!0}:!1;function aV(J,G,q){if(J)J.addEventListener(G,q,N_)}function iV(J,G,q){if(J&&J.canvas)J.canvas.removeEventListener(G,q,N_)}function tV(J,G){let q=nV[J.type]||J.type,{x:X,y:N}=k2(J,G);return{type:q,chart:G,native:J,x:X!==void 0?X:null,y:N!==void 0?N:null}}function m3(J,G){for(let q of J)if(q===G||q.contains(G))return!0}function eV(J,G,q){let X=J.canvas,N=new MutationObserver((K)=>{let H=!1;for(let F of K)H=H||m3(F.addedNodes,X),H=H&&!m3(F.removedNodes,X);if(H)q()});return N.observe(document,{childList:!0,subtree:!0}),N}function $A(J,G,q){let X=J.canvas,N=new MutationObserver((K)=>{let H=!1;for(let F of K)H=H||m3(F.removedNodes,X),H=H&&!m3(F.addedNodes,X);if(H)q()});return N.observe(document,{childList:!0,subtree:!0}),N}var RJ=new Map,_R=0;function U_(){let J=window.devicePixelRatio;if(J===_R)return;_R=J,RJ.forEach((G,q)=>{if(q.currentDevicePixelRatio!==J)G()})}function ZA(J,G){if(!RJ.size)window.addEventListener("resize",U_);RJ.set(J,G)}function JA(J){if(RJ.delete(J),!RJ.size)window.removeEventListener("resize",U_)}function QA(J,G,q){let X=J.canvas,N=X&&k3(X);if(!N)return;let K=KU((F,W)=>{let M=N.clientWidth;if(q(F,W),M<N.clientWidth)q()},window),H=new ResizeObserver((F)=>{let W=F[0],M=W.contentRect.width,R=W.contentRect.height;if(M===0&&R===0)return;K(M,R)});return H.observe(N),ZA(J,K),H}function vU(J,G,q){if(q)q.disconnect();if(G==="resize")JA(J)}function GA(J,G,q){let X=J.canvas,N=KU((K)=>{if(J.ctx!==null)q(tV(K,J))},J);return aV(X,G,N),N}class K_ extends aU{acquireContext(J,G){let q=J&&J.getContext&&J.getContext("2d");if(q&&q.canvas===J)return oV(J,G),q;return null}releaseContext(J){let G=J.canvas;if(!G[u3])return!1;let q=G[u3].initial;["height","width"].forEach((N)=>{let K=q[N];if(Q1(K))G.removeAttribute(N);else G.setAttribute(N,K)});let X=q.style||{};return Object.keys(X).forEach((N)=>{G.style[N]=X[N]}),G.width=G.width,delete G[u3],!0}addEventListener(J,G,q){this.removeEventListener(J,G);let X=J.$proxies||(J.$proxies={}),K={attach:eV,detach:$A,resize:QA}[G]||GA;X[G]=K(J,G,q)}removeEventListener(J,G){let q=J.$proxies||(J.$proxies={}),X=q[G];if(!X)return;({attach:vU,detach:vU,resize:vU}[G]||iV)(J,G,X),q[G]=void 0}getDevicePixelRatio(){return window.devicePixelRatio}getMaximumSize(J,G,q,X){return ew(J,G,q,X)}isAttached(J){let G=J&&k3(J);return!!(G&&G.isConnected)}}function qA(J){if(!j3()||typeof OffscreenCanvas<"u"&&J instanceof OffscreenCanvas)return X_;return K_}class E8{static defaults={};static defaultRoutes=void 0;x;y;active=!1;options;$animations;tooltipPosition(J){let{x:G,y:q}=this.getProps(["x","y"],J);return{x:G,y:q}}hasValue(){return H$(this.x)&&H$(this.y)}getProps(J,G){let q=this.$animations;if(!G||!q)return this;let X={};return J.forEach((N)=>{X[N]=q[N]&&q[N].active()?q[N]._to:this[N]}),X}}function YA(J,G){let q=J.options.ticks,X=XA(J),N=Math.min(q.maxTicksLimit||X,X),K=q.major.enabled?UA(G):[],H=K.length,F=K[0],W=K[H-1],M=[];if(H>N)return KA(G,M,K,H/N),M;let R=NA(K,G,N);if(H>0){let _,P,O=H>1?Math.round((W-F)/(H-1)):null;f3(G,M,R,Q1(O)?0:F-O,F);for(_=0,P=H-1;_<P;_++)f3(G,M,R,K[_],K[_+1]);return f3(G,M,R,W,Q1(O)?G.length:W+O),M}return f3(G,M,R),M}function XA(J){let G=J.options.offset,q=J._tickSize(),X=J._length/q+(G?0:1),N=J._maxLength/q;return Math.floor(Math.min(X,N))}function NA(J,G,q){let X=BA(J),N=G.length/q;if(!X)return Math.max(N,1);let K=Dw(X);for(let H=0,F=K.length-1;H<F;H++){let W=K[H];if(W>N)return W}return Math.max(N,1)}function UA(J){let G=[],q,X;for(q=0,X=J.length;q<X;q++)if(J[q].major)G.push(q);return G}function KA(J,G,q,X){let N=0,K=q[0],H;X=Math.ceil(X);for(H=0;H<J.length;H++)if(H===K)G.push(J[H]),N++,K=q[N*X]}function f3(J,G,q,X,N){let K=s0(X,0),H=Math.min(s0(N,J.length),J.length),F=0,W,M,R;if(q=Math.ceil(q),N)W=N-X,q=W/Math.floor(W/q);R=K;while(R<0)F++,R=Math.round(K+F*q);for(M=Math.max(K,0);M<H;M++)if(M===R)G.push(J[M]),F++,R=Math.round(K+F*q)}function BA(J){let G=J.length,q,X;if(G<2)return!1;for(X=J[0],q=1;q<G;++q)if(J[q]-J[q-1]!==X)return!1;return X}var HA=(J)=>J==="left"?"right":J==="right"?"left":J,LR=(J,G,q)=>G==="top"||G==="left"?J[G]+q:J[G]-q,PR=(J,G)=>Math.min(G||J,J);function TR(J,G){let q=[],X=J.length/G,N=J.length,K=0;for(;K<N;K+=X)q.push(J[Math.floor(K)]);return q}function FA(J,G,q){let X=J.ticks.length,N=Math.min(G,X-1),K=J._startPixel,H=J._endPixel,F=0.000001,W=J.getPixelForTick(N),M;if(q){if(X===1)M=Math.max(W-K,H-W);else if(G===0)M=(J.getPixelForTick(1)-W)/2;else M=(W-J.getPixelForTick(N-1))/2;if(W+=N<G?M:-M,W<K-0.000001||W>H+0.000001)return}return W}function WA(J,G){F1(J,(q)=>{let X=q.gc,N=X.length/2,K;if(N>G){for(K=0;K<N;++K)delete q.data[X[K]];X.splice(0,N)}})}function FJ(J){return J.drawTicks?J.tickLength:0}function CR(J,G){if(!J.display)return 0;let q=Q5(J.font,G),X=T5(J.padding);return(E1(J.text)?J.text.length:1)*q.lineHeight+X.height}function zA(J,G){return I8(J,{scale:G,type:"scale"})}function MA(J,G,q){return I8(J,{tick:q,index:G,type:"tick"})}function wA(J,G,q){let X=V3(J);if(q&&G!=="right"||!q&&G==="right")X=HA(X);return X}function RA(J,G,q,X){let{top:N,left:K,bottom:H,right:F,chart:W}=J,{chartArea:M,scales:R}=W,_=0,P,O,E,V=H-N,I=F-K;if(J.isHorizontal()){if(O=P5(X,K,F),$1(q)){let j=Object.keys(q)[0],h=q[j];E=R[j].getPixelForValue(h)+V-G}else if(q==="center")E=(M.bottom+M.top)/2+V-G;else E=LR(J,q,G);P=F-K}else{if($1(q)){let j=Object.keys(q)[0],h=q[j];O=R[j].getPixelForValue(h)-I+G}else if(q==="center")O=(M.left+M.right)/2-I+G;else O=LR(J,q,G);E=P5(X,H,N),_=q==="left"?-t5:t5}return{titleX:O,titleY:E,maxWidth:P,rotation:_}}class x7 extends E8{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,G){return J}getUserBounds(){let{_userMin:J,_userMax:G,_suggestedMin:q,_suggestedMax:X}=this;return J=Z6(J,Number.POSITIVE_INFINITY),G=Z6(G,Number.NEGATIVE_INFINITY),q=Z6(q,Number.POSITIVE_INFINITY),X=Z6(X,Number.NEGATIVE_INFINITY),{min:Z6(J,q),max:Z6(G,X),minDefined:h1(J),maxDefined:h1(G)}}getMinMax(J){let{min:G,max:q,minDefined:X,maxDefined:N}=this.getUserBounds(),K;if(X&&N)return{min:G,max:q};let H=this.getMatchingVisibleMetas();for(let F=0,W=H.length;F<W;++F){if(K=H[F].controller.getMinMax(this,J),!X)G=Math.min(G,K.min);if(!N)q=Math.max(q,K.max)}return G=N&&G>q?q:G,q=X&&G>q?G:q,{min:Z6(G,Z6(q,G)),max:Z6(q,Z6(G,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(){O1(this.options.beforeUpdate,[this])}update(J,G,q){let{beginAtZero:X,grace:N,ticks:K}=this.options,H=K.sampleSize;if(this.beforeUpdate(),this.maxWidth=J,this.maxHeight=G,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(),this._range=sw(this,N,X),this._dataLimitsCached=!0;this.beforeBuildTicks(),this.ticks=this.buildTicks()||[],this.afterBuildTicks();let F=H<this.ticks.length;if(this._convertTicksToLabels(F?TR(this.ticks,H):this.ticks),this.configure(),this.beforeCalculateLabelRotation(),this.calculateLabelRotation(),this.afterCalculateLabelRotation(),K.display&&(K.autoSkip||K.source==="auto"))this.ticks=YA(this,this.ticks),this._labelSizes=null,this.afterAutoSkip();if(F)this._convertTicksToLabels(this.ticks);this.beforeFit(),this.fit(),this.afterFit(),this.afterUpdate()}configure(){let J=this.options.reverse,G,q;if(this.isHorizontal())G=this.left,q=this.right;else G=this.top,q=this.bottom,J=!J;this._startPixel=G,this._endPixel=q,this._reversePixels=J,this._length=q-G,this._alignToPixels=this.options.alignToPixels}afterUpdate(){O1(this.options.afterUpdate,[this])}beforeSetDimensions(){O1(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(){O1(this.options.afterSetDimensions,[this])}_callHooks(J){this.chart.notifyPlugins(J,this.getContext()),O1(this.options[J],[this])}beforeDataLimits(){this._callHooks("beforeDataLimits")}determineDataLimits(){}afterDataLimits(){this._callHooks("afterDataLimits")}beforeBuildTicks(){this._callHooks("beforeBuildTicks")}buildTicks(){return[]}afterBuildTicks(){this._callHooks("afterBuildTicks")}beforeTickToLabelConversion(){O1(this.options.beforeTickToLabelConversion,[this])}generateTickLabels(J){let G=this.options.ticks,q,X,N;for(q=0,X=J.length;q<X;q++)N=J[q],N.label=O1(G.callback,[N.value,q,J],this)}afterTickToLabelConversion(){O1(this.options.afterTickToLabelConversion,[this])}beforeCalculateLabelRotation(){O1(this.options.beforeCalculateLabelRotation,[this])}calculateLabelRotation(){let J=this.options,G=J.ticks,q=PR(this.ticks.length,J.ticks.maxTicksLimit),X=G.minRotation||0,N=G.maxRotation,K=X,H,F,W;if(!this._isVisible()||!G.display||X>=N||q<=1||!this.isHorizontal()){this.labelRotation=X;return}let M=this._getLabelSizes(),R=M.widest.width,_=M.highest.height,P=$6(this.chart.width-R,0,this.maxWidth);if(H=J.offset?this.maxWidth/q:P/(q-1),R+6>H)H=P/(q-(J.offset?0.5:1)),F=this.maxHeight-FJ(J.grid)-G.padding-CR(J.title,this.chart.options.font),W=Math.sqrt(R*R+_*_),K=O3(Math.min(Math.asin($6((M.highest.height+6)/H,-1,1)),Math.asin($6(F/W,-1,1))-Math.asin($6(_/W,-1,1)))),K=Math.max(X,Math.min(N,K));this.labelRotation=K}afterCalculateLabelRotation(){O1(this.options.afterCalculateLabelRotation,[this])}afterAutoSkip(){}beforeFit(){O1(this.options.beforeFit,[this])}fit(){let J={width:0,height:0},{chart:G,options:{ticks:q,title:X,grid:N}}=this,K=this._isVisible(),H=this.isHorizontal();if(K){let F=CR(X,G.options.font);if(H)J.width=this.maxWidth,J.height=FJ(N)+F;else J.height=this.maxHeight,J.width=FJ(N)+F;if(q.display&&this.ticks.length){let{first:W,last:M,widest:R,highest:_}=this._getLabelSizes(),P=q.padding*2,O=C8(this.labelRotation),E=Math.cos(O),V=Math.sin(O);if(H){let I=q.mirror?0:V*R.width+E*_.height;J.height=Math.min(this.maxHeight,J.height+I+P)}else{let I=q.mirror?0:E*R.width+V*_.height;J.width=Math.min(this.maxWidth,J.width+I+P)}this._calculatePadding(W,M,V,E)}}if(this._handleMargins(),H)this.width=this._length=G.width-this._margins.left-this._margins.right,this.height=J.height;else this.width=J.width,this.height=this._length=G.height-this._margins.top-this._margins.bottom}_calculatePadding(J,G,q,X){let{ticks:{align:N,padding:K},position:H}=this.options,F=this.labelRotation!==0,W=H!=="top"&&this.axis==="x";if(this.isHorizontal()){let M=this.getPixelForTick(0)-this.left,R=this.right-this.getPixelForTick(this.ticks.length-1),_=0,P=0;if(F)if(W)_=X*J.width,P=q*G.height;else _=q*J.height,P=X*G.width;else if(N==="start")P=G.width;else if(N==="end")_=J.width;else if(N!=="inner")_=J.width/2,P=G.width/2;this.paddingLeft=Math.max((_-M+K)*this.width/(this.width-M),0),this.paddingRight=Math.max((P-R+K)*this.width/(this.width-R),0)}else{let M=G.height/2,R=J.height/2;if(N==="start")M=0,R=J.height;else if(N==="end")M=G.height,R=0;this.paddingTop=M+K,this.paddingBottom=R+K}}_handleMargins(){if(this._margins)this._margins.left=Math.max(this.paddingLeft,this._margins.left),this._margins.top=Math.max(this.paddingTop,this._margins.top),this._margins.right=Math.max(this.paddingRight,this._margins.right),this._margins.bottom=Math.max(this.paddingBottom,this._margins.bottom)}afterFit(){O1(this.options.afterFit,[this])}isHorizontal(){let{axis:J,position:G}=this.options;return G==="top"||G==="bottom"||J==="x"}isFullSize(){return this.options.fullSize}_convertTicksToLabels(J){this.beforeTickToLabelConversion(),this.generateTickLabels(J);let G,q;for(G=0,q=J.length;G<q;G++)if(Q1(J[G].label))J.splice(G,1),q--,G--;this.afterTickToLabelConversion()}_getLabelSizes(){let J=this._labelSizes;if(!J){let G=this.options.ticks.sampleSize,q=this.ticks;if(G<q.length)q=TR(q,G);this._labelSizes=J=this._computeLabelSizes(q,q.length,this.options.ticks.maxTicksLimit)}return J}_computeLabelSizes(J,G,q){let{ctx:X,_longestTextCache:N}=this,K=[],H=[],F=Math.floor(G/PR(G,q)),W=0,M=0,R,_,P,O,E,V,I,j,h,p,n;for(R=0;R<G;R+=F){if(O=J[R].label,E=this._resolveTickFontOptions(R),X.font=V=E.string,I=N[V]=N[V]||{data:{},gc:[]},j=E.lineHeight,h=p=0,!Q1(O)&&!E1(O))h=GJ(X,I.data,I.gc,h,O),p=j;else if(E1(O)){for(_=0,P=O.length;_<P;++_)if(n=O[_],!Q1(n)&&!E1(n))h=GJ(X,I.data,I.gc,h,n),p+=j}K.push(h),H.push(p),W=Math.max(h,W),M=Math.max(p,M)}WA(N,G);let a=K.indexOf(W),Q0=H.indexOf(M),t=(i)=>({width:K[i]||0,height:H[i]||0});return{first:t(0),last:t(G-1),widest:t(a),highest:t(Q0),widths:K,heights:H}}getLabelForValue(J){return J}getPixelForValue(J,G){return NaN}getValueForPixel(J){}getPixelForTick(J){let G=this.ticks;if(J<0||J>G.length-1)return null;return this.getPixelForValue(G[J].value)}getPixelForDecimal(J){if(this._reversePixels)J=1-J;let G=this._startPixel+J*this._length;return vw(this._alignToPixels?S2(this.chart,G,0):G)}getDecimalForPixel(J){let G=(J-this._startPixel)/this._length;return this._reversePixels?1-G:G}getBasePixel(){return this.getPixelForValue(this.getBaseValue())}getBaseValue(){let{min:J,max:G}=this;return J<0&&G<0?G:J>0&&G>0?J:0}getContext(J){let G=this.ticks||[];if(J>=0&&J<G.length){let q=G[J];return q.$context||(q.$context=MA(this.getContext(),J,q))}return this.$context||(this.$context=zA(this.chart.getContext(),this))}_tickSize(){let J=this.options.ticks,G=C8(this.labelRotation),q=Math.abs(Math.cos(G)),X=Math.abs(Math.sin(G)),N=this._getLabelSizes(),K=J.autoSkipPadding||0,H=N?N.widest.width+K:0,F=N?N.highest.height+K:0;return this.isHorizontal()?F*q>H*X?H/q:F/X:F*X<H*q?F/q:H/X}_isVisible(){let J=this.options.display;if(J!=="auto")return!!J;return this.getMatchingVisibleMetas().length>0}_computeGridLineItems(J){let G=this.axis,q=this.chart,X=this.options,{grid:N,position:K,border:H}=X,F=N.offset,W=this.isHorizontal(),R=this.ticks.length+(F?1:0),_=FJ(N),P=[],O=H.setContext(this.getContext()),E=O.display?O.width:0,V=E/2,I=function(l){return S2(q,l,E)},j,h,p,n,a,Q0,t,i,X0,d,H0,P0;if(K==="top")j=I(this.bottom),Q0=this.bottom-_,i=j-V,d=I(J.top)+V,P0=J.bottom;else if(K==="bottom")j=I(this.top),d=J.top,P0=I(J.bottom)-V,Q0=j+V,i=this.top+_;else if(K==="left")j=I(this.right),a=this.right-_,t=j-V,X0=I(J.left)+V,H0=J.right;else if(K==="right")j=I(this.left),X0=J.left,H0=I(J.right)-V,a=j+V,t=this.left+_;else if(G==="x"){if(K==="center")j=I((J.top+J.bottom)/2+0.5);else if($1(K)){let l=Object.keys(K)[0],Y0=K[l];j=I(this.chart.scales[l].getPixelForValue(Y0))}d=J.top,P0=J.bottom,Q0=j+V,i=Q0+_}else if(G==="y"){if(K==="center")j=I((J.left+J.right)/2);else if($1(K)){let l=Object.keys(K)[0],Y0=K[l];j=I(this.chart.scales[l].getPixelForValue(Y0))}a=j-V,t=a-_,X0=J.left,H0=J.right}let O0=s0(X.ticks.maxTicksLimit,R),v0=Math.max(1,Math.ceil(R/O0));for(h=0;h<R;h+=v0){let l=this.getContext(h),Y0=N.setContext(l),F0=H.setContext(l),a0=Y0.lineWidth,d0=Y0.color,k=F0.dash||[],o=F0.dashOffset,W0=Y0.tickWidth,z0=Y0.tickColor,p0=Y0.tickBorderDash||[],m1=Y0.tickBorderDashOffset;if(p=FA(this,h,F),p===void 0)continue;if(n=S2(q,p,a0),W)a=t=X0=H0=n;else Q0=i=d=P0=n;P.push({tx1:a,ty1:Q0,tx2:t,ty2:i,x1:X0,y1:d,x2:H0,y2:P0,width:a0,color:d0,borderDash:k,borderDashOffset:o,tickWidth:W0,tickColor:z0,tickBorderDash:p0,tickBorderDashOffset:m1})}return this._ticksLength=R,this._borderValue=j,P}_computeLabelItems(J){let G=this.axis,q=this.options,{position:X,ticks:N}=q,K=this.isHorizontal(),H=this.ticks,{align:F,crossAlign:W,padding:M,mirror:R}=N,_=FJ(q.grid),P=_+M,O=R?-M:P,E=-C8(this.labelRotation),V=[],I,j,h,p,n,a,Q0,t,i,X0,d,H0,P0="middle";if(X==="top")a=this.bottom-O,Q0=this._getXAxisLabelAlignment();else if(X==="bottom")a=this.top+O,Q0=this._getXAxisLabelAlignment();else if(X==="left"){let v0=this._getYAxisLabelAlignment(_);Q0=v0.textAlign,n=v0.x}else if(X==="right"){let v0=this._getYAxisLabelAlignment(_);Q0=v0.textAlign,n=v0.x}else if(G==="x"){if(X==="center")a=(J.top+J.bottom)/2+P;else if($1(X)){let v0=Object.keys(X)[0],l=X[v0];a=this.chart.scales[v0].getPixelForValue(l)+P}Q0=this._getXAxisLabelAlignment()}else if(G==="y"){if(X==="center")n=(J.left+J.right)/2-P;else if($1(X)){let v0=Object.keys(X)[0],l=X[v0];n=this.chart.scales[v0].getPixelForValue(l)}Q0=this._getYAxisLabelAlignment(_).textAlign}if(G==="y"){if(F==="start")P0="top";else if(F==="end")P0="bottom"}let O0=this._getLabelSizes();for(I=0,j=H.length;I<j;++I){h=H[I],p=h.label;let v0=N.setContext(this.getContext(I));t=this.getPixelForTick(I)+N.labelOffset,i=this._resolveTickFontOptions(I),X0=i.lineHeight,d=E1(p)?p.length:1;let l=d/2,Y0=v0.color,F0=v0.textStrokeColor,a0=v0.textStrokeWidth,d0=Q0;if(K){if(n=t,Q0==="inner")if(I===j-1)d0=!this.options.reverse?"right":"left";else if(I===0)d0=!this.options.reverse?"left":"right";else d0="center";if(X==="top")if(W==="near"||E!==0)H0=-d*X0+X0/2;else if(W==="center")H0=-O0.highest.height/2-l*X0+X0;else H0=-O0.highest.height+X0/2;else if(W==="near"||E!==0)H0=X0/2;else if(W==="center")H0=O0.highest.height/2-l*X0;else H0=O0.highest.height-d*X0;if(R)H0*=-1;if(E!==0&&!v0.showLabelBackdrop)n+=X0/2*Math.sin(E)}else a=t,H0=(1-d)*X0/2;let k;if(v0.showLabelBackdrop){let o=T5(v0.backdropPadding),W0=O0.heights[I],z0=O0.widths[I],p0=H0-o.top,m1=0-o.left;switch(P0){case"middle":p0-=W0/2;break;case"bottom":p0-=W0;break}switch(Q0){case"center":m1-=z0/2;break;case"right":m1-=z0;break;case"inner":if(I===j-1)m1-=z0;else if(I>0)m1-=z0/2;break}k={left:m1,top:p0,width:z0+o.width,height:W0+o.height,color:v0.backdropColor}}V.push({label:p,font:i,textOffset:H0,options:{rotation:E,color:Y0,strokeColor:F0,strokeWidth:a0,textAlign:d0,textBaseline:P0,translation:[n,a],backdrop:k}})}return V}_getXAxisLabelAlignment(){let{position:J,ticks:G}=this.options;if(-C8(this.labelRotation))return J==="top"?"left":"right";let X="center";if(G.align==="start")X="left";else if(G.align==="end")X="right";else if(G.align==="inner")X="inner";return X}_getYAxisLabelAlignment(J){let{position:G,ticks:{crossAlign:q,mirror:X,padding:N}}=this.options,K=this._getLabelSizes(),H=J+N,F=K.widest.width,W,M;if(G==="left")if(X)if(M=this.right+N,q==="near")W="left";else if(q==="center")W="center",M+=F/2;else W="right",M+=F;else if(M=this.right-H,q==="near")W="right";else if(q==="center")W="center",M-=F/2;else W="left",M=this.left;else if(G==="right")if(X)if(M=this.left+N,q==="near")W="right";else if(q==="center")W="center",M-=F/2;else W="left",M-=F;else if(M=this.left+H,q==="near")W="left";else if(q==="center")W="center",M+=F/2;else W="right",M=this.right;else W="right";return{textAlign:W,x:M}}_computeLabelArea(){if(this.options.ticks.mirror)return;let J=this.chart,G=this.options.position;if(G==="left"||G==="right")return{top:0,left:this.left,bottom:J.height,right:this.right};if(G==="top"||G==="bottom")return{top:this.top,left:0,bottom:this.bottom,right:J.width}}drawBackground(){let{ctx:J,options:{backgroundColor:G},left:q,top:X,width:N,height:K}=this;if(G)J.save(),J.fillStyle=G,J.fillRect(q,X,N,K),J.restore()}getLineWidthForValue(J){let G=this.options.grid;if(!this._isVisible()||!G.display)return 0;let X=this.ticks.findIndex((N)=>N.value===J);if(X>=0)return G.setContext(this.getContext(X)).lineWidth;return 0}drawGrid(J){let G=this.options.grid,q=this.ctx,X=this._gridLineItems||(this._gridLineItems=this._computeGridLineItems(J)),N,K,H=(F,W,M)=>{if(!M.width||!M.color)return;q.save(),q.lineWidth=M.width,q.strokeStyle=M.color,q.setLineDash(M.borderDash||[]),q.lineDashOffset=M.borderDashOffset,q.beginPath(),q.moveTo(F.x,F.y),q.lineTo(W.x,W.y),q.stroke(),q.restore()};if(G.display)for(N=0,K=X.length;N<K;++N){let F=X[N];if(G.drawOnChartArea)H({x:F.x1,y:F.y1},{x:F.x2,y:F.y2},F);if(G.drawTicks)H({x:F.tx1,y:F.ty1},{x:F.tx2,y:F.ty2},{color:F.tickColor,width:F.tickWidth,borderDash:F.tickBorderDash,borderDashOffset:F.tickBorderDashOffset})}}drawBorder(){let{chart:J,ctx:G,options:{border:q,grid:X}}=this,N=q.setContext(this.getContext()),K=q.display?N.width:0;if(!K)return;let H=X.setContext(this.getContext(0)).lineWidth,F=this._borderValue,W,M,R,_;if(this.isHorizontal())W=S2(J,this.left,K)-K/2,M=S2(J,this.right,H)+H/2,R=_=F;else R=S2(J,this.top,K)-K/2,_=S2(J,this.bottom,H)+H/2,W=M=F;G.save(),G.lineWidth=N.width,G.strokeStyle=N.color,G.beginPath(),G.moveTo(W,R),G.lineTo(M,_),G.stroke(),G.restore()}drawLabels(J){if(!this.options.ticks.display)return;let q=this.ctx,X=this._computeLabelArea();if(X)XJ(q,X);let N=this.getLabelItems(J);for(let K of N){let{options:H,font:F,label:W,textOffset:M}=K;D2(q,W,0,M,F,H)}if(X)NJ(q)}drawTitle(){let{ctx:J,options:{position:G,title:q,reverse:X}}=this;if(!q.display)return;let N=Q5(q.font),K=T5(q.padding),H=q.align,F=N.lineHeight/2;if(G==="bottom"||G==="center"||$1(G)){if(F+=K.bottom,E1(q.text))F+=N.lineHeight*(q.text.length-1)}else F+=K.top;let{titleX:W,titleY:M,maxWidth:R,rotation:_}=RA(this,F,G,H);D2(J,q.text,0,0,N,{color:q.color,maxWidth:R,rotation:_,textAlign:wA(H,G,X),textBaseline:"middle",translation:[W,M]})}draw(J){if(!this._isVisible())return;this.drawBackground(),this.drawGrid(J),this.drawBorder(),this.drawTitle(),this.drawLabels(J)}_layers(){let J=this.options,G=J.ticks&&J.ticks.z||0,q=s0(J.grid&&J.grid.z,-1),X=s0(J.border&&J.border.z,0);if(!this._isVisible()||this.draw!==x7.prototype.draw)return[{z:G,draw:(N)=>{this.draw(N)}}];return[{z:q,draw:(N)=>{this.drawBackground(),this.drawGrid(N),this.drawTitle()}},{z:X,draw:()=>{this.drawBorder()}},{z:G,draw:(N)=>{this.drawLabels(N)}}]}getMatchingVisibleMetas(J){let G=this.chart.getSortedVisibleDatasetMetas(),q=this.axis+"AxisID",X=[],N,K;for(N=0,K=G.length;N<K;++N){let H=G[N];if(H[q]===this.id&&(!J||H.type===J))X.push(H)}return X}_resolveTickFontOptions(J){let G=this.options.ticks.setContext(this.getContext(J));return Q5(G.font)}_maxDigits(){let J=this._resolveTickFontOptions(0).lineHeight;return(this.isHorizontal()?this.width:this.height)/J}}class MJ{constructor(J,G,q){this.type=J,this.scope=G,this.override=q,this.items=Object.create(null)}isForType(J){return Object.prototype.isPrototypeOf.call(this.type.prototype,J.prototype)}register(J){let G=Object.getPrototypeOf(J),q;if(PA(G))q=this.register(G);let X=this.items,N=J.id,K=this.scope+"."+N;if(!N)throw Error("class does not have id: "+J);if(N in X)return K;if(X[N]=J,_A(J,K,q),this.override)u1.override(J.id,J.overrides);return K}get(J){return this.items[J]}unregister(J){let G=this.items,q=J.id,X=this.scope;if(q in G)delete G[q];if(X&&q in u1[X]){if(delete u1[X][q],this.override)delete E2[q]}}}function _A(J,G,q){let X=X$(Object.create(null),[q?u1.get(q):{},u1.get(G),J.defaults]);if(u1.set(G,X),J.defaultRoutes)LA(G,J.defaultRoutes);if(J.descriptors)u1.describe(G,J.descriptors)}function LA(J,G){Object.keys(G).forEach((q)=>{let X=q.split("."),N=X.pop(),K=[J].concat(X).join("."),H=G[q].split("."),F=H.pop(),W=H.join(".");u1.route(K,N,W,F)})}function PA(J){return"id"in J&&"defaults"in J}class B_{constructor(){this.controllers=new MJ(d3,"datasets",!0),this.elements=new MJ(E8,"elements"),this.plugins=new MJ(Object,"plugins"),this.scales=new MJ(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,G,q){[...G].forEach((X)=>{let N=q||this._getRegistryForType(X);if(q||N.isForType(X)||N===this.plugins&&X.id)this._exec(J,N,X);else F1(X,(K)=>{let H=q||this._getRegistryForType(K);this._exec(J,H,K)})})}_exec(J,G,q){let X=C3(J);O1(q["before"+X],[],q),G[J](q),O1(q["after"+X],[],q)}_getRegistryForType(J){for(let G=0;G<this._typedRegistries.length;G++){let q=this._typedRegistries[G];if(q.isForType(J))return q}return this.plugins}_get(J,G,q){let X=G.get(J);if(X===void 0)throw Error('"'+J+'" is not a registered '+q+".");return X}}var p4=new B_;class H_{constructor(){this._init=void 0}notify(J,G,q,X){if(G==="beforeInit")this._init=this._createDescriptors(J,!0),this._notify(this._init,J,"install");if(this._init===void 0)return;let N=X?this._descriptors(J).filter(X):this._descriptors(J),K=this._notify(N,J,G,q);if(G==="afterDestroy")this._notify(N,J,"stop"),this._notify(this._init,J,"uninstall"),this._init=void 0;return K}_notify(J,G,q,X){X=X||{};for(let N of J){let K=N.plugin,H=K[q],F=[G,X,N.options];if(O1(H,F,K)===!1&&X.cancelable)return!1}return!0}invalidate(){if(!Q1(this._cache))this._oldCache=this._cache,this._cache=void 0}_descriptors(J){if(this._cache)return this._cache;let G=this._cache=this._createDescriptors(J);return this._notifyStateChanges(J),G}_createDescriptors(J,G){let q=J&&J.config,X=s0(q.options&&q.options.plugins,{}),N=TA(q);return X===!1&&!G?[]:OA(J,N,X,G)}_notifyStateChanges(J){let G=this._oldCache||[],q=this._cache,X=(N,K)=>N.filter((H)=>!K.some((F)=>H.plugin.id===F.plugin.id));this._notify(X(G,q),J,"stop"),this._notify(X(q,G),J,"start")}}function TA(J){let G={},q=[],X=Object.keys(p4.plugins.items);for(let K=0;K<X.length;K++)q.push(p4.getPlugin(X[K]));let N=J.plugins||[];for(let K=0;K<N.length;K++){let H=N[K];if(q.indexOf(H)===-1)q.push(H),G[H.id]=!0}return{plugins:q,localIds:G}}function CA(J,G){if(!G&&J===!1)return null;if(J===!0)return{};return J}function OA(J,{plugins:G,localIds:q},X,N){let K=[],H=J.getContext();for(let F of G){let W=F.id,M=CA(X[W],N);if(M===null)continue;K.push({plugin:F,options:IA(J.config,{plugin:F,local:q[W]},M,H)})}return K}function IA(J,{plugin:G,local:q},X,N){let K=J.pluginScopeKeys(G),H=J.getOptionScopes(X,K);if(q&&G.defaults)H.push(G.defaults);return J.createResolver(H,N,[""],{scriptable:!1,indexable:!1,allKeys:!0})}function hU(J,G){let q=u1.datasets[J]||{};return((G.datasets||{})[J]||{}).indexAxis||G.indexAxis||q.indexAxis||"x"}function VA(J,G){let q=J;if(J==="_index_")q=G;else if(J==="_value_")q=G==="x"?"y":"x";return q}function AA(J,G){return J===G?"_index_":"_value_"}function OR(J){if(J==="x"||J==="y"||J==="r")return J}function EA(J){if(J==="top"||J==="bottom")return"x";if(J==="left"||J==="right")return"y"}function uU(J,...G){if(OR(J))return J;for(let q of G){let X=q.axis||EA(q.position)||J.length>1&&OR(J[0].toLowerCase());if(X)return X}throw Error(`Cannot determine type of '${J}' axis. Please provide 'axis' or 'position' option.`)}function IR(J,G,q){if(q[G+"AxisID"]===J)return{axis:G}}function SA(J,G){if(G.data&&G.data.datasets){let q=G.data.datasets.filter((X)=>X.xAxisID===J||X.yAxisID===J);if(q.length)return IR(J,"x",q[0])||IR(J,"y",q[0])}return{}}function DA(J,G){let q=E2[J.type]||{scales:{}},X=G.scales||{},N=hU(J.type,G),K=Object.create(null);return Object.keys(X).forEach((H)=>{let F=X[H];if(!$1(F))return console.error(`Invalid scale configuration for scale: ${H}`);if(F._proxy)return console.warn(`Ignoring resolver passed as options for scale: ${H}`);let W=uU(H,F,SA(H,J),u1.scales[F.type]),M=AA(W,N),R=q.scales||{};K[H]=U$(Object.create(null),[{axis:W},F,R[W],R[M]])}),J.data.datasets.forEach((H)=>{let F=H.type||J.type,W=H.indexAxis||hU(F,G),R=(E2[F]||{}).scales||{};Object.keys(R).forEach((_)=>{let P=VA(_,W),O=H[P+"AxisID"]||P;K[O]=K[O]||Object.create(null),U$(K[O],[{axis:P},X[O],R[_]])})}),Object.keys(K).forEach((H)=>{let F=K[H];U$(F,[u1.scales[F.type],u1.scale])}),K}function F_(J){let G=J.options||(J.options={});G.plugins=s0(G.plugins,{}),G.scales=DA(J,G)}function W_(J){return J=J||{},J.datasets=J.datasets||[],J.labels=J.labels||[],J}function jA(J){return J=J||{},J.data=W_(J.data),F_(J),J}var VR=new Map,z_=new Set;function y3(J,G){let q=VR.get(J);if(!q)q=G(),VR.set(J,q),z_.add(q);return q}var WJ=(J,G,q)=>{let X=y7(G,q);if(X!==void 0)J.add(X)};class M_{constructor(J){this._config=jA(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=W_(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(),F_(J)}clearCache(){this._scopeCache.clear(),this._resolverCache.clear()}datasetScopeKeys(J){return y3(J,()=>[[`datasets.${J}`,""]])}datasetAnimationScopeKeys(J,G){return y3(`${J}.transition.${G}`,()=>[[`datasets.${J}.transitions.${G}`,`transitions.${G}`],[`datasets.${J}`,""]])}datasetElementScopeKeys(J,G){return y3(`${J}-${G}`,()=>[[`datasets.${J}.elements.${G}`,`datasets.${J}`,`elements.${G}`,""]])}pluginScopeKeys(J){let G=J.id,q=this.type;return y3(`${q}-plugin-${G}`,()=>[[`plugins.${G}`,...J.additionalOptionScopes||[]]])}_cachedScopes(J,G){let q=this._scopeCache,X=q.get(J);if(!X||G)X=new Map,q.set(J,X);return X}getOptionScopes(J,G,q){let{options:X,type:N}=this,K=this._cachedScopes(J,q),H=K.get(G);if(H)return H;let F=new Set;G.forEach((M)=>{if(J)F.add(J),M.forEach((R)=>WJ(F,J,R));M.forEach((R)=>WJ(F,X,R)),M.forEach((R)=>WJ(F,E2[N]||{},R)),M.forEach((R)=>WJ(F,u1,R)),M.forEach((R)=>WJ(F,E3,R))});let W=Array.from(F);if(W.length===0)W.push(Object.create(null));if(z_.has(G))K.set(G,W);return W}chartOptionScopes(){let{options:J,type:G}=this;return[J,E2[G]||{},u1.datasets[G]||{},{type:G},u1,E3]}resolveNamedOptions(J,G,q,X=[""]){let N={$shared:!0},{resolver:K,subPrefixes:H}=AR(this._resolverCache,J,X),F=K;if(vA(K,G)){N.$shared=!1,q=P8(q)?q():q;let W=this.createResolver(J,q,H);F=f7(K,q,W)}for(let W of G)N[W]=F[W];return N}createResolver(J,G,q=[""],X){let{resolver:N}=AR(this._resolverCache,J,q);return $1(G)?f7(N,G,void 0,X):N}}function AR(J,G,q){let X=J.get(G);if(!X)X=new Map,J.set(G,X);let N=q.join(),K=X.get(N);if(!K)K={resolver:D3(G,q),subPrefixes:q.filter((F)=>!F.toLowerCase().includes("hover"))},X.set(N,K);return K}var kA=(J)=>$1(J)&&Object.getOwnPropertyNames(J).some((G)=>P8(J[G]));function vA(J,G){let{isScriptable:q,isIndexable:X}=wU(J);for(let N of G){let K=q(N),H=X(N),F=(H||K)&&J[N];if(K&&(P8(F)||kA(F))||H&&E1(F))return!0}return!1}var bA="4.5.1",fA=["top","bottom","left","right","chartArea"];function ER(J,G){return J==="top"||J==="bottom"||fA.indexOf(J)===-1&&G==="x"}function SR(J,G){return function(q,X){return q[J]===X[J]?q[G]-X[G]:q[J]-X[J]}}function DR(J){let G=J.chart,q=G.options.animation;G.notifyPlugins("afterRender"),O1(q&&q.onComplete,[J],G)}function yA(J){let G=J.chart,q=G.options.animation;O1(q&&q.onProgress,[J],G)}function w_(J){if(j3()&&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 x3={},jR=(J)=>{let G=w_(J);return Object.values(x3).filter((q)=>q.canvas===G).pop()};function gA(J,G,q){let X=Object.keys(J);for(let N of X){let K=+N;if(K>=G){let H=J[N];if(delete J[N],q>0||K>G)J[K+q]=H}}}function hA(J,G,q,X){if(!q||J.type==="mouseout")return null;if(X)return G;return J}class m7{static defaults=u1;static instances=x3;static overrides=E2;static registry=p4;static version=bA;static getChart=jR;static register(...J){p4.add(...J),kR()}static unregister(...J){p4.remove(...J),kR()}constructor(J,G){let q=this.config=new M_(G),X=w_(J),N=jR(X);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=q.createResolver(q.chartOptionScopes(),this.getContext());this.platform=new(q.platform||qA(X)),this.platform.updateConfig(q);let H=this.platform.acquireContext(X,K.aspectRatio),F=H&&H.canvas,W=F&&F.height,M=F&&F.width;if(this.id=Vw(),this.ctx=H,this.canvas=F,this.width=M,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 H_,this.$proxies={},this._hiddenIndices={},this.attached=!1,this._animationsDisabled=void 0,this.$context=void 0,this._doResize=hw((R)=>this.update(R),K.resizeDelay||0),this._dataChanges=[],x3[this.id]=this,!H||!F){console.error("Failed to create chart: can't acquire context from the given item");return}if(V8.listen(this,"complete",DR),V8.listen(this,"progress",yA),this._initialize(),this.attached)this.update()}get aspectRatio(){let{options:{aspectRatio:J,maintainAspectRatio:G},width:q,height:X,_aspectRatio:N}=this;if(!Q1(J))return J;if(G&&N)return N;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 p4}_initialize(){if(this.notifyPlugins("beforeInit"),this.options.responsive)this.resize();else LU(this,this.options.devicePixelRatio);return this.bindEvents(),this.notifyPlugins("afterInit"),this}clear(){return FU(this.canvas,this.ctx),this}stop(){return V8.stop(this),this}resize(J,G){if(!V8.running(this))this._resize(J,G);else this._resizeBeforeDraw={width:J,height:G}}_resize(J,G){let q=this.options,X=this.canvas,N=q.maintainAspectRatio&&this.aspectRatio,K=this.platform.getMaximumSize(X,J,G,N),H=q.devicePixelRatio||this.platform.getDevicePixelRatio(),F=this.width?"resize":"attach";if(this.width=K.width,this.height=K.height,this._aspectRatio=this.aspectRatio,!LU(this,H,!0))return;if(this.notifyPlugins("resize",{size:K}),O1(q.onResize,[this,K],this),this.attached){if(this._doResize(F))this.render()}}ensureScalesHaveIDs(){let G=this.options.scales||{};F1(G,(q,X)=>{q.id=X})}buildOrUpdateScales(){let J=this.options,G=J.scales,q=this.scales,X=Object.keys(q).reduce((K,H)=>{return K[H]=!1,K},{}),N=[];if(G)N=N.concat(Object.keys(G).map((K)=>{let H=G[K],F=uU(K,H),W=F==="r",M=F==="x";return{options:H,dposition:W?"chartArea":M?"bottom":"left",dtype:W?"radialLinear":M?"category":"linear"}}));F1(N,(K)=>{let H=K.options,F=H.id,W=uU(F,H),M=s0(H.type,K.dtype);if(H.position===void 0||ER(H.position,W)!==ER(K.dposition))H.position=K.dposition;X[F]=!0;let R=null;if(F in q&&q[F].type===M)R=q[F];else R=new(p4.getScale(M))({id:F,type:M,ctx:this.ctx,chart:this}),q[R.id]=R;R.init(H,J)}),F1(X,(K,H)=>{if(!K)delete q[H]}),F1(q,(K)=>{c6.configure(this,K,K.options),c6.addBox(this,K)})}_updateMetasets(){let J=this._metasets,G=this.data.datasets.length,q=J.length;if(J.sort((X,N)=>X.index-N.index),q>G){for(let X=G;X<q;++X)this._destroyDatasetMeta(X);J.splice(G,q-G)}this._sortedMetasets=J.slice(0).sort(SR("order","index"))}_removeUnreferencedMetasets(){let{_metasets:J,data:{datasets:G}}=this;if(J.length>G.length)delete this._stacks;J.forEach((q,X)=>{if(G.filter((N)=>N===q._dataset).length===0)this._destroyDatasetMeta(X)})}buildOrUpdateControllers(){let J=[],G=this.data.datasets,q,X;this._removeUnreferencedMetasets();for(q=0,X=G.length;q<X;q++){let N=G[q],K=this.getDatasetMeta(q),H=N.type||this.config.type;if(K.type&&K.type!==H)this._destroyDatasetMeta(q),K=this.getDatasetMeta(q);if(K.type=H,K.indexAxis=N.indexAxis||hU(H,this.options),K.order=N.order||0,K.index=q,K.label=""+N.label,K.visible=this.isDatasetVisible(q),K.controller)K.controller.updateIndex(q),K.controller.linkScales();else{let F=p4.getController(H),{datasetElementType:W,dataElementType:M}=u1.datasets[H];Object.assign(F,{dataElementType:p4.getElement(M),datasetElementType:W&&p4.getElement(W)}),K.controller=new F(this,q),J.push(K.controller)}}return this._updateMetasets(),J}_resetElements(){F1(this.data.datasets,(J,G)=>{this.getDatasetMeta(G).controller.reset()},this)}reset(){this._resetElements(),this.notifyPlugins("reset")}update(J){let G=this.config;G.update();let q=this._options=G.createResolver(G.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 N=this.buildOrUpdateControllers();this.notifyPlugins("beforeElementsUpdate");let K=0;for(let W=0,M=this.data.datasets.length;W<M;W++){let{controller:R}=this.getDatasetMeta(W),_=!X&&N.indexOf(R)===-1;R.buildOrUpdateElements(_),K=Math.max(+R.getMaxOverflow(),K)}if(K=this._minPadding=q.layout.autoPadding?K:0,this._updateLayout(K),!X)F1(N,(W)=>{W.reset()});this._updateDatasets(J),this.notifyPlugins("afterUpdate",{mode:J}),this._layers.sort(SR("z","_idx"));let{_active:H,_lastEvent:F}=this;if(F)this._eventHandler(F,!0);else if(H.length)this._updateHoverStyles(H,H,!0);this.render()}_updateScales(){F1(this.scales,(J)=>{c6.removeBox(this,J)}),this.ensureScalesHaveIDs(),this.buildOrUpdateScales()}_checkEventBindings(){let J=this.options,G=new Set(Object.keys(this._listeners)),q=new Set(J.events);if(!JU(G,q)||!!this._responsiveListeners!==J.responsive)this.unbindEvents(),this.bindEvents()}_updateHiddenIndices(){let{_hiddenIndices:J}=this,G=this._getUniformDataChanges()||[];for(let{method:q,start:X,count:N}of G){let K=q==="_removeElements"?-N:N;gA(J,X,K)}}_getUniformDataChanges(){let J=this._dataChanges;if(!J||!J.length)return;this._dataChanges=[];let G=this.data.datasets.length,q=(N)=>new Set(J.filter((K)=>K[0]===N).map((K,H)=>H+","+K.splice(1).join(","))),X=q(0);for(let N=1;N<G;N++)if(!JU(X,q(N)))return;return Array.from(X).map((N)=>N.split(",")).map((N)=>({method:N[1],start:+N[2],count:+N[3]}))}_updateLayout(J){if(this.notifyPlugins("beforeLayout",{cancelable:!0})===!1)return;c6.update(this,this.width,this.height,J);let G=this.chartArea,q=G.width<=0||G.height<=0;this._layers=[],F1(this.boxes,(X)=>{if(q&&X.position==="chartArea")return;if(X.configure)X.configure();this._layers.push(...X._layers())},this),this._layers.forEach((X,N)=>{X._idx=N}),this.notifyPlugins("afterLayout")}_updateDatasets(J){if(this.notifyPlugins("beforeDatasetsUpdate",{mode:J,cancelable:!0})===!1)return;for(let G=0,q=this.data.datasets.length;G<q;++G)this.getDatasetMeta(G).controller.configure();for(let G=0,q=this.data.datasets.length;G<q;++G)this._updateDataset(G,P8(J)?J({datasetIndex:G}):J);this.notifyPlugins("afterDatasetsUpdate",{mode:J})}_updateDataset(J,G){let q=this.getDatasetMeta(J),X={meta:q,index:J,mode:G,cancelable:!0};if(this.notifyPlugins("beforeDatasetUpdate",X)===!1)return;q.controller._update(G),X.cancelable=!1,this.notifyPlugins("afterDatasetUpdate",X)}render(){if(this.notifyPlugins("beforeRender",{cancelable:!0})===!1)return;if(V8.has(this)){if(this.attached&&!V8.running(this))V8.start(this)}else this.draw(),DR({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 G=this._layers;for(J=0;J<G.length&&G[J].z<=0;++J)G[J].draw(this.chartArea);this._drawDatasets();for(;J<G.length;++J)G[J].draw(this.chartArea);this.notifyPlugins("afterDraw")}_getSortedDatasetMetas(J){let G=this._sortedMetasets,q=[],X,N;for(X=0,N=G.length;X<N;++X){let K=G[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 G=J.length-1;G>=0;--G)this._drawDataset(J[G]);this.notifyPlugins("afterDatasetsDraw")}_drawDataset(J){let G=this.ctx,q={meta:J,index:J.index,cancelable:!0},X=VU(this,J);if(this.notifyPlugins("beforeDatasetDraw",q)===!1)return;if(X)XJ(G,X);if(J.controller.draw(),X)NJ(G);q.cancelable=!1,this.notifyPlugins("afterDatasetDraw",q)}isPointInArea(J){return x4(J,this.chartArea,this._minPadding)}getElementsAtEventForMode(J,G,q,X){let N=xV.modes[G];if(typeof N==="function")return N(this,J,q,X);return[]}getDatasetMeta(J){let G=this.data.datasets[J],q=this._metasets,X=q.filter((N)=>N&&N._dataset===G).pop();if(!X)X={type:null,data:[],dataset:null,controller:null,hidden:null,xAxisID:null,yAxisID:null,order:G&&G.order||0,index:J,_dataset:G,_parsed:[],_sorted:!1},q.push(X);return X}getContext(){return this.$context||(this.$context=I8(null,{chart:this,type:"chart"}))}getVisibleDatasetCount(){return this.getSortedVisibleDatasetMetas().length}isDatasetVisible(J){let G=this.data.datasets[J];if(!G)return!1;let q=this.getDatasetMeta(J);return typeof q.hidden==="boolean"?!q.hidden:!G.hidden}setDatasetVisibility(J,G){let q=this.getDatasetMeta(J);q.hidden=!G}toggleDataVisibility(J){this._hiddenIndices[J]=!this._hiddenIndices[J]}getDataVisibility(J){return!this._hiddenIndices[J]}_updateVisibility(J,G,q){let X=q?"show":"hide",N=this.getDatasetMeta(J),K=N.controller._resolveAnimations(void 0,X);if(K$(G))N.data[G].hidden=!q,this.update();else this.setDatasetVisibility(J,q),K.update(N,{visible:q}),this.update((H)=>H.datasetIndex===J?X:void 0)}hide(J,G){this._updateVisibility(J,G,!1)}show(J,G){this._updateVisibility(J,G,!0)}_destroyDatasetMeta(J){let G=this._metasets[J];if(G&&G.controller)G.controller._destroy();delete this._metasets[J]}_stop(){let J,G;this.stop(),V8.remove(this);for(J=0,G=this.data.datasets.length;J<G;++J)this._destroyDatasetMeta(J)}destroy(){this.notifyPlugins("beforeDestroy");let{canvas:J,ctx:G}=this;if(this._stop(),this.config.clearCache(),J)this.unbindEvents(),FU(J,G),this.platform.releaseContext(G),this.canvas=null,this.ctx=null;delete x3[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,G=this.platform,q=(N,K)=>{G.addEventListener(this,N,K),J[N]=K},X=(N,K,H)=>{N.offsetX=K,N.offsetY=H,this._eventHandler(N)};F1(this.options.events,(N)=>q(N,X))}bindResponsiveEvents(){if(!this._responsiveListeners)this._responsiveListeners={};let J=this._responsiveListeners,G=this.platform,q=(F,W)=>{G.addEventListener(this,F,W),J[F]=W},X=(F,W)=>{if(J[F])G.removeEventListener(this,F,W),delete J[F]},N=(F,W)=>{if(this.canvas)this.resize(F,W)},K,H=()=>{X("attach",H),this.attached=!0,this.resize(),q("resize",N),q("detach",K)};if(K=()=>{this.attached=!1,X("resize",N),this._stop(),this._resize(0,0),q("attach",H)},G.isAttached(this.canvas))H();else K()}unbindEvents(){F1(this._listeners,(J,G)=>{this.platform.removeEventListener(this,G,J)}),this._listeners={},F1(this._responsiveListeners,(J,G)=>{this.platform.removeEventListener(this,G,J)}),this._responsiveListeners=void 0}updateHoverStyle(J,G,q){let X=q?"set":"remove",N,K,H,F;if(G==="dataset")N=this.getDatasetMeta(J[0].datasetIndex),N.controller["_"+X+"DatasetHoverStyle"]();for(H=0,F=J.length;H<F;++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 G=this._active||[],q=J.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(!qJ(q,G))this._active=q,this._lastEvent=null,this._updateHoverStyles(q,G)}notifyPlugins(J,G,q){return this._plugins.notify(this,J,G,q)}isPluginEnabled(J){return this._plugins._cache.filter((G)=>G.plugin.id===J).length===1}_updateHoverStyles(J,G,q){let X=this.options.hover,N=(F,W)=>F.filter((M)=>!W.some((R)=>M.datasetIndex===R.datasetIndex&&M.index===R.index)),K=N(G,J),H=q?J:N(J,G);if(K.length)this.updateHoverStyle(K,X.mode,!1);if(H.length&&X.mode)this.updateHoverStyle(H,X.mode,!0)}_eventHandler(J,G){let q={event:J,replay:G,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 N=this._handleEvent(J,G,q.inChartArea);if(q.cancelable=!1,this.notifyPlugins("afterEvent",q,X),N||q.changed)this.render();return this}_handleEvent(J,G,q){let{_active:X=[],options:N}=this,K=G,H=this._getActiveElements(J,X,q,K),F=Sw(J),W=hA(J,this._lastEvent,q,F);if(q){if(this._lastEvent=null,O1(N.onHover,[J,H,this],this),F)O1(N.onClick,[J,H,this],this)}let M=!qJ(H,X);if(M||G)this._active=H,this._updateHoverStyles(H,X,G);return this._lastEvent=W,M}_getActiveElements(J,G,q,X){if(J.type==="mouseout")return[];if(!q)return G;let N=this.options.hover;return this.getElementsAtEventForMode(J,N.mode,N,X)}}function kR(){return F1(m7.instances,(J)=>J._plugins.invalidate())}function R_(J,G,q=G){J.lineCap=s0(q.borderCapStyle,G.borderCapStyle),J.setLineDash(s0(q.borderDash,G.borderDash)),J.lineDashOffset=s0(q.borderDashOffset,G.borderDashOffset),J.lineJoin=s0(q.borderJoinStyle,G.borderJoinStyle),J.lineWidth=s0(q.borderWidth,G.borderWidth),J.strokeStyle=s0(q.borderColor,G.borderColor)}function uA(J,G,q){J.lineTo(q.x,q.y)}function xA(J){if(J.stepped)return lw;if(J.tension||J.cubicInterpolationMode==="monotone")return rw;return uA}function __(J,G,q={}){let X=J.length,{start:N=0,end:K=X-1}=q,{start:H,end:F}=G,W=Math.max(N,H),M=Math.min(K,F),R=N<H&&K<H||N>F&&K>F;return{count:X,start:W,loop:G.loop,ilen:M<W&&!R?X+M-W:M-W}}function mA(J,G,q,X){let{points:N,options:K}=G,{count:H,start:F,loop:W,ilen:M}=__(N,q,X),R=xA(K),{move:_=!0,reverse:P}=X||{},O,E,V;for(O=0;O<=M;++O){if(E=N[(F+(P?M-O:O))%H],E.skip)continue;else if(_)J.moveTo(E.x,E.y),_=!1;else R(J,V,E,P,K.stepped);V=E}if(W)E=N[(F+(P?M:0))%H],R(J,V,E,P,K.stepped);return!!W}function dA(J,G,q,X){let N=G.points,{count:K,start:H,ilen:F}=__(N,q,X),{move:W=!0,reverse:M}=X||{},R=0,_=0,P,O,E,V,I,j,h=(n)=>(H+(M?F-n:n))%K,p=()=>{if(V!==I)J.lineTo(R,I),J.lineTo(R,V),J.lineTo(R,j)};if(W)O=N[h(0)],J.moveTo(O.x,O.y);for(P=0;P<=F;++P){if(O=N[h(P)],O.skip)continue;let{x:n,y:a}=O,Q0=n|0;if(Q0===E){if(a<V)V=a;else if(a>I)I=a;R=(_*R+n)/++_}else p(),J.lineTo(n,a),E=Q0,_=0,V=I=a;j=a}p()}function xU(J){let G=J.options,q=G.borderDash&&G.borderDash.length;return!J._decimated&&!J._loop&&!G.tension&&G.cubicInterpolationMode!=="monotone"&&!G.stepped&&!q?dA:mA}function pA(J){if(J.stepped)return ZR;if(J.tension||J.cubicInterpolationMode==="monotone")return JR;return I2}function cA(J,G,q,X){let N=G._path;if(!N){if(N=G._path=new Path2D,G.path(N,q,X))N.closePath()}R_(J,G.options),J.stroke(N)}function lA(J,G,q,X){let{segments:N,options:K}=G,H=xU(G);for(let F of N){if(R_(J,K,F.style),J.beginPath(),H(J,G,F,{start:q,end:q+X-1}))J.closePath();J.stroke()}}var rA=typeof Path2D==="function";function sA(J,G,q,X){if(rA&&!G.options.segment)cA(J,G,q,X);else lA(J,G,q,X)}class W$ extends E8{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,G){let q=this.options;if((q.tension||q.cubicInterpolationMode==="monotone")&&!q.stepped&&!this._pointsUpdated){let X=q.spanGaps?this._loop:this._fullLoop;tw(this._points,q,J,X,G),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=GR(this,this.options.segment))}first(){let J=this.segments,G=this.points;return J.length&&G[J[0].start]}last(){let J=this.segments,G=this.points,q=J.length;return q&&G[J[q-1].end]}interpolate(J,G){let q=this.options,X=J[G],N=this.points,K=IU(this,{property:G,start:X,end:X});if(!K.length)return;let H=[],F=pA(q),W,M;for(W=0,M=K.length;W<M;++W){let{start:R,end:_}=K[W],P=N[R],O=N[_];if(P===O){H.push(P);continue}let E=Math.abs((X-P[G])/(O[G]-P[G])),V=F(P,O,E,q.stepped);V[G]=J[G],H.push(V)}return H.length===1?H[0]:H}pathSegment(J,G,q){return xU(this)(J,this,G,q)}path(J,G,q){let X=this.segments,N=xU(this),K=this._loop;G=G||0,q=q||this.points.length-G;for(let H of X)K&=N(J,this,H,{start:G,end:G+q-1});return!!K}draw(J,G,q,X){let N=this.options||{};if((this.points||[]).length&&N.borderWidth)J.save(),sA(J,this,q,X),J.restore();if(this.animated)this._pointsUpdated=!1,this._path=void 0}}function vR(J,G,q,X){let N=J.options,{[q]:K}=J.getProps([q],X);return Math.abs(G-K)<N.radius+N.hitRadius}class iU extends E8{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,G,q){let X=this.options,{x:N,y:K}=this.getProps(["x","y"],q);return Math.pow(J-N,2)+Math.pow(G-K,2)<Math.pow(X.hitRadius+X.radius,2)}inXRange(J,G){return vR(this,J,"x",G)}inYRange(J,G){return vR(this,J,"y",G)}getCenterPoint(J){let{x:G,y:q}=this.getProps(["x","y"],J);return{x:G,y:q}}size(J){J=J||this.options||{};let G=J.radius||0;G=Math.max(G,G&&J.hoverRadius||0);let q=G&&J.borderWidth||0;return(G+q)*2}draw(J,G){let q=this.options;if(this.skip||q.radius<0.1||!x4(this,G,this.size(q)/2))return;J.strokeStyle=q.borderColor,J.lineWidth=q.borderWidth,J.fillStyle=q.backgroundColor,S3(J,q,this.x,this.y)}getRange(){let J=this.options||{};return J.radius+J.hitRadius}}function L_(J,G){let{x:q,y:X,base:N,width:K,height:H}=J.getProps(["x","y","base","width","height"],G),F,W,M,R,_;if(J.horizontal)_=H/2,F=Math.min(q,N),W=Math.max(q,N),M=X-_,R=X+_;else _=K/2,F=q-_,W=q+_,M=Math.min(X,N),R=Math.max(X,N);return{left:F,top:M,right:W,bottom:R}}function v2(J,G,q,X){return J?0:$6(G,q,X)}function nA(J,G,q){let X=J.options.borderWidth,N=J.borderSkipped,K=MU(X);return{t:v2(N.top,K.top,0,q),r:v2(N.right,K.right,0,G),b:v2(N.bottom,K.bottom,0,q),l:v2(N.left,K.left,0,G)}}function oA(J,G,q){let{enableBorderRadius:X}=J.getProps(["enableBorderRadius"]),N=J.options.borderRadius,K=j2(N),H=Math.min(G,q),F=J.borderSkipped,W=X||$1(N);return{topLeft:v2(!W||F.top||F.left,K.topLeft,0,H),topRight:v2(!W||F.top||F.right,K.topRight,0,H),bottomLeft:v2(!W||F.bottom||F.left,K.bottomLeft,0,H),bottomRight:v2(!W||F.bottom||F.right,K.bottomRight,0,H)}}function aA(J){let G=L_(J),q=G.right-G.left,X=G.bottom-G.top,N=nA(J,q/2,X/2),K=oA(J,q/2,X/2);return{outer:{x:G.left,y:G.top,w:q,h:X,radius:K},inner:{x:G.left+N.l,y:G.top+N.t,w:q-N.l-N.r,h:X-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 bU(J,G,q,X){let N=G===null,K=q===null,F=J&&!(N&&K)&&L_(J,X);return F&&(N||O8(G,F.left,F.right))&&(K||O8(q,F.top,F.bottom))}function iA(J){return J.topLeft||J.topRight||J.bottomLeft||J.bottomRight}function tA(J,G){J.rect(G.x,G.y,G.w,G.h)}function fU(J,G,q={}){let X=J.x!==q.x?-G:0,N=J.y!==q.y?-G:0,K=(J.x+J.w!==q.x+q.w?G:0)-X,H=(J.y+J.h!==q.y+q.h?G:0)-N;return{x:J.x+X,y:J.y+N,w:J.w+K,h:J.h+H,radius:J.radius}}class tU extends E8{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:G,options:{borderColor:q,backgroundColor:X}}=this,{inner:N,outer:K}=aA(this),H=iA(K.radius)?F$:tA;if(J.save(),K.w!==N.w||K.h!==N.h)J.beginPath(),H(J,fU(K,G,N)),J.clip(),H(J,fU(N,-G,K)),J.fillStyle=q,J.fill("evenodd");J.beginPath(),H(J,fU(N,G)),J.fillStyle=X,J.fill(),J.restore()}inRange(J,G,q){return bU(this,J,G,q)}inXRange(J,G){return bU(this,J,null,G)}inYRange(J,G){return bU(this,null,J,G)}getCenterPoint(J){let{x:G,y:q,base:X,horizontal:N}=this.getProps(["x","y","base","horizontal"],J);return{x:N?(G+X)/2:G,y:N?q:(q+X)/2}}getRange(J){return J==="x"?this.width/2:this.height/2}}function eA(J,G,q){let{segments:X,points:N}=J,K=G.points,H=[];for(let F of X){let{start:W,end:M}=F;M=p3(W,M,N);let R=mU(q,N[W],N[M],F.loop);if(!G.segments){H.push({source:F,target:R,start:N[W],end:N[M]});continue}let _=IU(G,R);for(let P of _){let O=mU(q,K[P.start],K[P.end],P.loop),E=OU(F,N,O);for(let V of E)H.push({source:V,target:P,start:{[q]:bR(R,O,"start",Math.max)},end:{[q]:bR(R,O,"end",Math.min)}})}}return H}function mU(J,G,q,X){if(X)return;let N=G[J],K=q[J];if(J==="angle")N=i5(N),K=i5(K);return{property:J,start:N,end:K}}function $E(J,G){let{x:q=null,y:X=null}=J||{},N=G.points,K=[];return G.segments.forEach(({start:H,end:F})=>{F=p3(H,F,N);let W=N[H],M=N[F];if(X!==null)K.push({x:W.x,y:X}),K.push({x:M.x,y:X});else if(q!==null)K.push({x:q,y:W.y}),K.push({x:q,y:M.y})}),K}function p3(J,G,q){for(;G>J;G--){let X=q[G];if(!isNaN(X.x)&&!isNaN(X.y))break}return G}function bR(J,G,q,X){if(J&&G)return X(J[q],G[q]);return J?J[q]:G?G[q]:0}function P_(J,G){let q=[],X=!1;if(E1(J))X=!0,q=J;else q=$E(J,G);return q.length?new W$({points:q,options:{tension:0},_loop:X,_fullLoop:X}):null}function fR(J){return J&&J.fill!==!1}function ZE(J,G,q){let N=J[G].fill,K=[G],H;if(!q)return N;while(N!==!1&&K.indexOf(N)===-1){if(!h1(N))return N;if(H=J[N],!H)return!1;if(H.visible)return N;K.push(N),N=H.fill}return!1}function JE(J,G,q){let X=YE(J);if($1(X))return isNaN(X.value)?!1:X;let N=parseFloat(X);if(h1(N)&&Math.floor(N)===N)return QE(X[0],G,N,q);return["origin","start","end","stack","shape"].indexOf(X)>=0&&X}function QE(J,G,q,X){if(J==="-"||J==="+")q=G+q;if(q===G||q<0||q>=X)return!1;return q}function GE(J,G){let q=null;if(J==="start")q=G.bottom;else if(J==="end")q=G.top;else if($1(J))q=G.getPixelForValue(J.value);else if(G.getBasePixel)q=G.getBasePixel();return q}function qE(J,G,q){let X;if(J==="start")X=q;else if(J==="end")X=G.options.reverse?G.min:G.max;else if($1(J))X=J.value;else X=G.getBaseValue();return X}function YE(J){let G=J.options,q=G.fill,X=s0(q&&q.target,q);if(X===void 0)X=!!G.backgroundColor;if(X===!1||X===null)return!1;if(X===!0)return"origin";return X}function XE(J){let{scale:G,index:q,line:X}=J,N=[],K=X.segments,H=X.points,F=NE(G,q);F.push(P_({x:null,y:G.bottom},X));for(let W=0;W<K.length;W++){let M=K[W];for(let R=M.start;R<=M.end;R++)UE(N,H[R],F)}return new W$({points:N,options:{}})}function NE(J,G){let q=[],X=J.getMatchingVisibleMetas("line");for(let N=0;N<X.length;N++){let K=X[N];if(K.index===G)break;if(!K.hidden)q.unshift(K.dataset)}return q}function UE(J,G,q){let X=[];for(let N=0;N<q.length;N++){let K=q[N],{first:H,last:F,point:W}=KE(K,G,"x");if(!W||H&&F)continue;if(H)X.unshift(W);else if(J.push(W),!F)break}J.push(...X)}function KE(J,G,q){let X=J.interpolate(G,q);if(!X)return{};let N=X[q],K=J.segments,H=J.points,F=!1,W=!1;for(let M=0;M<K.length;M++){let R=K[M],_=H[R.start][q],P=H[R.end][q];if(O8(N,_,P)){F=N===_,W=N===P;break}}return{first:F,last:W,point:X}}class eU{constructor(J){this.x=J.x,this.y=J.y,this.radius=J.radius}pathSegment(J,G,q){let{x:X,y:N,radius:K}=this;return G=G||{start:0,end:e5},J.arc(X,N,K,G.end,G.start,!0),!q.bounds}interpolate(J){let{x:G,y:q,radius:X}=this,N=J.angle;return{x:G+Math.cos(N)*X,y:q+Math.sin(N)*X,angle:N}}}function BE(J){let{chart:G,fill:q,line:X}=J;if(h1(q))return HE(G,q);if(q==="stack")return XE(J);if(q==="shape")return!0;let N=FE(J);if(N instanceof eU)return N;return P_(N,X)}function HE(J,G){let q=J.getDatasetMeta(G);return q&&J.isDatasetVisible(G)?q.dataset:null}function FE(J){if((J.scale||{}).getPointPositionForValue)return zE(J);return WE(J)}function WE(J){let{scale:G={},fill:q}=J,X=GE(q,G);if(h1(X)){let N=G.isHorizontal();return{x:N?X:null,y:N?null:X}}return null}function zE(J){let{scale:G,fill:q}=J,X=G.options,N=G.getLabels().length,K=X.reverse?G.max:G.min,H=qE(q,G,K),F=[];if(X.grid.circular){let W=G.getPointPositionForValue(0,K);return new eU({x:W.x,y:W.y,radius:G.getDistanceFromCenterForValue(H)})}for(let W=0;W<N;++W)F.push(G.getPointPositionForValue(W,H));return F}function yU(J,G,q){let X=BE(G),{chart:N,index:K,line:H,scale:F,axis:W}=G,M=H.options,R=M.fill,_=M.backgroundColor,{above:P=_,below:O=_}=R||{},E=N.getDatasetMeta(K),V=VU(N,E);if(X&&H.points.length)XJ(J,q),ME(J,{line:H,target:X,above:P,below:O,area:q,scale:F,axis:W,clip:V}),NJ(J)}function ME(J,G){let{line:q,target:X,above:N,below:K,area:H,scale:F,clip:W}=G,M=q._loop?"angle":G.axis;J.save();let R=K;if(K!==N){if(M==="x")yR(J,X,H.top),gU(J,{line:q,target:X,color:N,scale:F,property:M,clip:W}),J.restore(),J.save(),yR(J,X,H.bottom);else if(M==="y")gR(J,X,H.left),gU(J,{line:q,target:X,color:K,scale:F,property:M,clip:W}),J.restore(),J.save(),gR(J,X,H.right),R=N}gU(J,{line:q,target:X,color:R,scale:F,property:M,clip:W}),J.restore()}function yR(J,G,q){let{segments:X,points:N}=G,K=!0,H=!1;J.beginPath();for(let F of X){let{start:W,end:M}=F,R=N[W],_=N[p3(W,M,N)];if(K)J.moveTo(R.x,R.y),K=!1;else J.lineTo(R.x,q),J.lineTo(R.x,R.y);if(H=!!G.pathSegment(J,F,{move:H}),H)J.closePath();else J.lineTo(_.x,q)}J.lineTo(G.first().x,q),J.closePath(),J.clip()}function gR(J,G,q){let{segments:X,points:N}=G,K=!0,H=!1;J.beginPath();for(let F of X){let{start:W,end:M}=F,R=N[W],_=N[p3(W,M,N)];if(K)J.moveTo(R.x,R.y),K=!1;else J.lineTo(q,R.y),J.lineTo(R.x,R.y);if(H=!!G.pathSegment(J,F,{move:H}),H)J.closePath();else J.lineTo(q,_.y)}J.lineTo(q,G.first().y),J.closePath(),J.clip()}function gU(J,G){let{line:q,target:X,property:N,color:K,scale:H,clip:F}=G,W=eA(q,X,N);for(let{source:M,target:R,start:_,end:P}of W){let{style:{backgroundColor:O=K}={}}=M,E=X!==!0;J.save(),J.fillStyle=O,wE(J,H,F,E&&mU(N,_,P)),J.beginPath();let V=!!q.pathSegment(J,M),I;if(E){if(V)J.closePath();else hR(J,X,P,N);let j=!!X.pathSegment(J,R,{move:V,reverse:!0});if(I=V&&j,!I)hR(J,X,_,N)}J.closePath(),J.fill(I?"evenodd":"nonzero"),J.restore()}}function wE(J,G,q,X){let N=G.chart.chartArea,{property:K,start:H,end:F}=X||{};if(K==="x"||K==="y"){let W,M,R,_;if(K==="x")W=H,M=N.top,R=F,_=N.bottom;else W=N.left,M=H,R=N.right,_=F;if(J.beginPath(),q)W=Math.max(W,q.left),R=Math.min(R,q.right),M=Math.max(M,q.top),_=Math.min(_,q.bottom);J.rect(W,M,R-W,_-M),J.clip()}}function hR(J,G,q,X){let N=G.interpolate(q,X);if(N)J.lineTo(N.x,N.y)}var T_={id:"filler",afterDatasetsUpdate(J,G,q){let X=(J.data.datasets||[]).length,N=[],K,H,F,W;for(H=0;H<X;++H){if(K=J.getDatasetMeta(H),F=K.dataset,W=null,F&&F.options&&F instanceof W$)W={visible:J.isDatasetVisible(H),index:H,fill:JE(F,H,X),chart:J,axis:K.controller.options.indexAxis,scale:K.vScale,line:F};K.$filler=W,N.push(W)}for(H=0;H<X;++H){if(W=N[H],!W||W.fill===!1)continue;W.fill=ZE(N,H,q.propagate)}},beforeDraw(J,G,q){let X=q.drawTime==="beforeDraw",N=J.getSortedVisibleDatasetMetas(),K=J.chartArea;for(let H=N.length-1;H>=0;--H){let F=N[H].$filler;if(!F)continue;if(F.line.updateControlPoints(K,F.axis),X&&F.fill)yU(J.ctx,F,K)}},beforeDatasetsDraw(J,G,q){if(q.drawTime!=="beforeDatasetsDraw")return;let X=J.getSortedVisibleDatasetMetas();for(let N=X.length-1;N>=0;--N){let K=X[N].$filler;if(fR(K))yU(J.ctx,K,J.chartArea)}},beforeDatasetDraw(J,G,q){let X=G.meta.$filler;if(!fR(X)||q.drawTime!=="beforeDatasetDraw")return;yU(J.ctx,X,J.chartArea)},defaults:{propagate:!0,drawTime:"beforeDatasetDraw"}},uR=(J,G)=>{let{boxHeight:q=G,boxWidth:X=G}=J;if(J.usePointStyle)q=Math.min(q,G),X=J.pointStyleWidth||Math.min(X,G);return{boxWidth:X,boxHeight:q,itemHeight:Math.max(G,q)}},RE=(J,G)=>J!==null&&G!==null&&J.datasetIndex===G.datasetIndex&&J.index===G.index;class dU extends E8{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,G,q){this.maxWidth=J,this.maxHeight=G,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||{},G=O1(J.generateLabels,[this.chart],this)||[];if(J.filter)G=G.filter((q)=>J.filter(q,this.chart.data));if(J.sort)G=G.sort((q,X)=>J.sort(q,X,this.chart.data));if(this.options.reverse)G.reverse();this.legendItems=G}fit(){let{options:J,ctx:G}=this;if(!J.display){this.width=this.height=0;return}let q=J.labels,X=Q5(q.font),N=X.size,K=this._computeTitleHeight(),{boxWidth:H,itemHeight:F}=uR(q,N),W,M;if(G.font=X.string,this.isHorizontal())W=this.maxWidth,M=this._fitRows(K,N,H,F)+10;else M=this.maxHeight,W=this._fitCols(K,X,H,F)+10;this.width=Math.min(W,J.maxWidth||this.maxWidth),this.height=Math.min(M,J.maxHeight||this.maxHeight)}_fitRows(J,G,q,X){let{ctx:N,maxWidth:K,options:{labels:{padding:H}}}=this,F=this.legendHitBoxes=[],W=this.lineWidths=[0],M=X+H,R=J;N.textAlign="left",N.textBaseline="middle";let _=-1,P=-M;return this.legendItems.forEach((O,E)=>{let V=q+G/2+N.measureText(O.text).width;if(E===0||W[W.length-1]+V+2*H>K)R+=M,W[W.length-(E>0?0:1)]=0,P+=M,_++;F[E]={left:0,top:P,row:_,width:V,height:X},W[W.length-1]+=V+H}),R}_fitCols(J,G,q,X){let{ctx:N,maxHeight:K,options:{labels:{padding:H}}}=this,F=this.legendHitBoxes=[],W=this.columnSizes=[],M=K-J,R=H,_=0,P=0,O=0,E=0;return this.legendItems.forEach((V,I)=>{let{itemWidth:j,itemHeight:h}=_E(q,G,N,V,X);if(I>0&&P+h+2*H>M)R+=_+H,W.push({width:_,height:P}),O+=_+H,E++,_=P=0;F[I]={left:O,top:P,col:E,width:j,height:h},_=Math.max(_,j),P+=h+H}),R+=_,W.push({width:_,height:P}),R}adjustHitBoxes(){if(!this.options.display)return;let J=this._computeTitleHeight(),{legendHitBoxes:G,options:{align:q,labels:{padding:X},rtl:N}}=this,K=g7(N,this.left,this.width);if(this.isHorizontal()){let H=0,F=P5(q,this.left+X,this.right-this.lineWidths[H]);for(let W of G){if(H!==W.row)H=W.row,F=P5(q,this.left+X,this.right-this.lineWidths[H]);W.top+=this.top+J+X,W.left=K.leftForLtr(K.x(F),W.width),F+=W.width+X}}else{let H=0,F=P5(q,this.top+J+X,this.bottom-this.columnSizes[H].height);for(let W of G){if(W.col!==H)H=W.col,F=P5(q,this.top+J+X,this.bottom-this.columnSizes[H].height);W.top=F,W.left+=this.left+X,W.left=K.leftForLtr(K.x(W.left),W.width),F+=W.height+X}}}isHorizontal(){return this.options.position==="top"||this.options.position==="bottom"}draw(){if(this.options.display){let J=this.ctx;XJ(J,this),this._draw(),NJ(J)}}_draw(){let{options:J,columnSizes:G,lineWidths:q,ctx:X}=this,{align:N,labels:K}=J,H=u1.color,F=g7(J.rtl,this.left,this.width),W=Q5(K.font),{padding:M}=K,R=W.size,_=R/2,P;this.drawTitle(),X.textAlign=F.textAlign("left"),X.textBaseline="middle",X.lineWidth=0.5,X.font=W.string;let{boxWidth:O,boxHeight:E,itemHeight:V}=uR(K,R),I=function(a,Q0,t){if(isNaN(O)||O<=0||isNaN(E)||E<0)return;X.save();let i=s0(t.lineWidth,1);if(X.fillStyle=s0(t.fillStyle,H),X.lineCap=s0(t.lineCap,"butt"),X.lineDashOffset=s0(t.lineDashOffset,0),X.lineJoin=s0(t.lineJoin,"miter"),X.lineWidth=i,X.strokeStyle=s0(t.strokeStyle,H),X.setLineDash(s0(t.lineDash,[])),K.usePointStyle){let X0={radius:E*Math.SQRT2/2,pointStyle:t.pointStyle,rotation:t.rotation,borderWidth:i},d=F.xPlus(a,O/2),H0=Q0+_;WU(X,X0,d,H0,K.pointStyleWidth&&O)}else{let X0=Q0+Math.max((R-E)/2,0),d=F.leftForLtr(a,O),H0=j2(t.borderRadius);if(X.beginPath(),Object.values(H0).some((P0)=>P0!==0))F$(X,{x:d,y:X0,w:O,h:E,radius:H0});else X.rect(d,X0,O,E);if(X.fill(),i!==0)X.stroke()}X.restore()},j=function(a,Q0,t){D2(X,t.text,a,Q0+V/2,W,{strikethrough:t.hidden,textAlign:F.textAlign(t.textAlign)})},h=this.isHorizontal(),p=this._computeTitleHeight();if(h)P={x:P5(N,this.left+M,this.right-q[0]),y:this.top+M+p,line:0};else P={x:this.left+M,y:P5(N,this.top+p+M,this.bottom-G[0].height),line:0};TU(this.ctx,J.textDirection);let n=V+M;this.legendItems.forEach((a,Q0)=>{X.strokeStyle=a.fontColor,X.fillStyle=a.fontColor;let t=X.measureText(a.text).width,i=F.textAlign(a.textAlign||(a.textAlign=K.textAlign)),X0=O+_+t,d=P.x,H0=P.y;if(F.setWidth(this.width),h){if(Q0>0&&d+X0+M>this.right)H0=P.y+=n,P.line++,d=P.x=P5(N,this.left+M,this.right-q[P.line])}else if(Q0>0&&H0+n>this.bottom)d=P.x=d+G[P.line].width+M,P.line++,H0=P.y=P5(N,this.top+p+M,this.bottom-G[P.line].height);let P0=F.x(d);if(I(P0,H0,a),d=uw(i,d+O+_,h?d+X0:this.right,J.rtl),j(F.x(d),H0,a),h)P.x+=X0+M;else if(typeof a.text!=="string"){let O0=W.lineHeight;P.y+=C_(a,O0)+M}else P.y+=n}),CU(this.ctx,J.textDirection)}drawTitle(){let J=this.options,G=J.title,q=Q5(G.font),X=T5(G.padding);if(!G.display)return;let N=g7(J.rtl,this.left,this.width),K=this.ctx,H=G.position,F=q.size/2,W=X.top+F,M,R=this.left,_=this.width;if(this.isHorizontal())_=Math.max(...this.lineWidths),M=this.top+W,R=P5(J.align,R,this.right-_);else{let O=this.columnSizes.reduce((E,V)=>Math.max(E,V.height),0);M=W+P5(J.align,this.top,this.bottom-O-J.labels.padding-this._computeTitleHeight())}let P=P5(H,R,R+_);K.textAlign=N.textAlign(V3(H)),K.textBaseline="middle",K.strokeStyle=G.color,K.fillStyle=G.color,K.font=q.string,D2(K,G.text,P,M,q)}_computeTitleHeight(){let J=this.options.title,G=Q5(J.font),q=T5(J.padding);return J.display?G.lineHeight+q.height:0}_getLegendItemAt(J,G){let q,X,N;if(O8(J,this.left,this.right)&&O8(G,this.top,this.bottom)){N=this.legendHitBoxes;for(q=0;q<N.length;++q)if(X=N[q],O8(J,X.left,X.left+X.width)&&O8(G,X.top,X.top+X.height))return this.legendItems[q]}return null}handleEvent(J){let G=this.options;if(!TE(J.type,G))return;let q=this._getLegendItemAt(J.x,J.y);if(J.type==="mousemove"||J.type==="mouseout"){let X=this._hoveredItem,N=RE(X,q);if(X&&!N)O1(G.onLeave,[J,X,this],this);if(this._hoveredItem=q,q&&!N)O1(G.onHover,[J,q,this],this)}else if(q)O1(G.onClick,[J,q,this],this)}}function _E(J,G,q,X,N){let K=LE(X,J,G,q),H=PE(N,X,G.lineHeight);return{itemWidth:K,itemHeight:H}}function LE(J,G,q,X){let N=J.text;if(N&&typeof N!=="string")N=N.reduce((K,H)=>K.length>H.length?K:H);return G+q.size/2+X.measureText(N).width}function PE(J,G,q){let X=J;if(typeof G.text!=="string")X=C_(G,q);return X}function C_(J,G){let q=J.text?J.text.length:0;return G*q}function TE(J,G){if((J==="mousemove"||J==="mouseout")&&(G.onHover||G.onLeave))return!0;if(G.onClick&&(J==="click"||J==="mouseup"))return!0;return!1}var O_={id:"legend",_element:dU,start(J,G,q){let X=J.legend=new dU({ctx:J.ctx,options:q,chart:J});c6.configure(J,X,q),c6.addBox(J,X)},stop(J){c6.removeBox(J,J.legend),delete J.legend},beforeUpdate(J,G,q){let X=J.legend;c6.configure(J,X,q),X.options=q},afterUpdate(J){let G=J.legend;G.buildLabels(),G.adjustHitBoxes()},afterEvent(J,G){if(!G.replay)J.legend.handleEvent(G.event)},defaults:{display:!0,position:"top",align:"center",fullSize:!0,reverse:!1,weight:1000,onClick(J,G,q){let X=G.datasetIndex,N=q.chart;if(N.isDatasetVisible(X))N.hide(X),G.hidden=!0;else N.show(X),G.hidden=!1},onHover:null,onLeave:null,labels:{color:(J)=>J.chart.options.color,boxWidth:40,padding:10,generateLabels(J){let G=J.data.datasets,{labels:{usePointStyle:q,pointStyle:X,textAlign:N,color:K,useBorderRadius:H,borderRadius:F}}=J.legend.options;return J._getSortedDatasetMetas().map((W)=>{let M=W.controller.getStyle(q?0:void 0),R=T5(M.borderWidth);return{text:G[W.index].label,fillStyle:M.backgroundColor,fontColor:K,hidden:!W.visible,lineCap:M.borderCapStyle,lineDash:M.borderDash,lineDashOffset:M.borderDashOffset,lineJoin:M.borderJoinStyle,lineWidth:(R.width+R.height)/4,strokeStyle:M.borderColor,pointStyle:X||M.pointStyle,rotation:M.rotation,textAlign:N||M.textAlign,borderRadius:H&&(F||M.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 $K extends E8{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,G){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=G;let X=E1(q.text)?q.text.length:1;this._padding=T5(q.padding);let N=X*Q5(q.font).lineHeight+this._padding.height;if(this.isHorizontal())this.height=N;else this.width=N}isHorizontal(){let J=this.options.position;return J==="top"||J==="bottom"}_drawArgs(J){let{top:G,left:q,bottom:X,right:N,options:K}=this,H=K.align,F=0,W,M,R;if(this.isHorizontal())M=P5(H,q,N),R=G+J,W=N-q;else{if(K.position==="left")M=q+J,R=P5(H,X,G),F=r1*-0.5;else M=N-J,R=P5(H,G,X),F=r1*0.5;W=X-G}return{titleX:M,titleY:R,maxWidth:W,rotation:F}}draw(){let J=this.ctx,G=this.options;if(!G.display)return;let q=Q5(G.font),N=q.lineHeight/2+this._padding.top,{titleX:K,titleY:H,maxWidth:F,rotation:W}=this._drawArgs(N);D2(J,G.text,0,0,q,{color:G.color,maxWidth:F,rotation:W,textAlign:V3(G.align),textBaseline:"middle",translation:[K,H]})}}function CE(J,G){let q=new $K({ctx:J.ctx,options:G,chart:J});c6.configure(J,q,G),c6.addBox(J,q),J.titleBlock=q}var I_={id:"title",_element:$K,start(J,G,q){CE(J,q)},stop(J){let G=J.titleBlock;c6.removeBox(J,G),delete J.titleBlock},beforeUpdate(J,G,q){let X=J.titleBlock;c6.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 wJ={average(J){if(!J.length)return!1;let G,q,X=new Set,N=0,K=0;for(G=0,q=J.length;G<q;++G){let F=J[G].element;if(F&&F.hasValue()){let W=F.tooltipPosition();X.add(W.x),N+=W.y,++K}}if(K===0||X.size===0)return!1;return{x:[...X].reduce((F,W)=>F+W)/X.size,y:N/K}},nearest(J,G){if(!J.length)return!1;let{x:q,y:X}=G,N=Number.POSITIVE_INFINITY,K,H,F;for(K=0,H=J.length;K<H;++K){let W=J[K].element;if(W&&W.hasValue()){let M=W.getCenterPoint(),R=P3(G,M);if(R<N)N=R,F=W}}if(F){let W=F.tooltipPosition();q=W.x,X=W.y}return{x:q,y:X}}};function d4(J,G){if(G)if(E1(G))Array.prototype.push.apply(J,G);else J.push(G);return J}function A8(J){if((typeof J==="string"||J instanceof String)&&J.indexOf(`
|
|
256
256
|
`)>-1)return J.split(`
|
|
257
|
-
`);return J}function OE(J,G){let{element:q,datasetIndex:X,index:N}=G,K=J.getDatasetMeta(X).controller,{label:H,value:F}=K.getLabelAndValue(N);return{chart:J,label:H,parsed:K.getParsed(N),raw:J.data.datasets[X].data[N],formattedValue:F,dataset:K.getDataset(),dataIndex:N,datasetIndex:X,element:q}}function xR(J,G){let q=J.chart.ctx,{body:X,footer:N,title:K}=J,{boxWidth:H,boxHeight:F}=G,W=Q5(G.bodyFont),M=Q5(G.titleFont),R=Q5(G.footerFont),_=K.length,P=N.length,O=X.length,E=T5(G.padding),V=E.height,I=0,j=X.reduce((n,a)=>n+a.before.length+a.lines.length+a.after.length,0);if(j+=J.beforeBody.length+J.afterBody.length,_)V+=_*M.lineHeight+(_-1)*G.titleSpacing+G.titleMarginBottom;if(j){let n=G.displayColors?Math.max(F,W.lineHeight):W.lineHeight;V+=O*n+(j-O)*W.lineHeight+(j-1)*G.bodySpacing}if(P)V+=G.footerMarginTop+P*R.lineHeight+(P-1)*G.footerSpacing;let h=0,p=function(n){I=Math.max(I,q.measureText(n).width+h)};return q.save(),q.font=M.string,F1(J.title,p),q.font=W.string,F1(J.beforeBody.concat(J.afterBody),p),h=G.displayColors?H+2+G.boxPadding:0,F1(X,(n)=>{F1(n.before,p),F1(n.lines,p),F1(n.after,p)}),h=0,q.font=R.string,F1(J.footer,p),q.restore(),I+=E.width,{width:I,height:V}}function IE(J,G){let{y:q,height:X}=G;if(q<X/2)return"top";else if(q>J.height-X/2)return"bottom";return"center"}function VE(J,G,q,X){let{x:N,width:K}=X,H=q.caretSize+q.caretPadding;if(J==="left"&&N+K+H>G.width)return!0;if(J==="right"&&N-K-H<0)return!0}function AE(J,G,q,X){let{x:N,width:K}=q,{width:H,chartArea:{left:F,right:W}}=J,M="center";if(X==="center")M=N<=(F+W)/2?"left":"right";else if(N<=K/2)M="left";else if(N>=H-K/2)M="right";if(VE(M,J,G,q))M="center";return M}function mR(J,G,q){let X=q.yAlign||G.yAlign||IE(J,q);return{xAlign:q.xAlign||G.xAlign||AE(J,G,q,X),yAlign:X}}function EE(J,G){let{x:q,width:X}=J;if(G==="right")q-=X;else if(G==="center")q-=X/2;return q}function SE(J,G,q){let{y:X,height:N}=J;if(G==="top")X+=q;else if(G==="bottom")X-=N+q;else X-=N/2;return X}function dR(J,G,q,X){let{caretSize:N,caretPadding:K,cornerRadius:H}=J,{xAlign:F,yAlign:W}=q,M=N+K,{topLeft:R,topRight:_,bottomLeft:P,bottomRight:O}=j2(H),E=EE(G,F),V=SE(G,W,M);if(W==="center"){if(F==="left")E+=M;else if(F==="right")E-=M}else if(F==="left")E-=Math.max(R,P)+N;else if(F==="right")E+=Math.max(_,O)+N;return{x:$6(E,0,X.width-G.width),y:$6(V,0,X.height-G.height)}}function g3(J,G,q){let X=T5(q.padding);return G==="center"?J.x+J.width/2:G==="right"?J.x+J.width-X.right:J.x+X.left}function pR(J){return d4([],A8(J))}function DE(J,G,q){return I8(J,{tooltip:G,tooltipItems:q,type:"tooltip"})}function cR(J,G){let q=G&&G.dataset&&G.dataset.tooltip&&G.dataset.tooltip.callbacks;return q?J.override(q):J}var V_={beforeTitle:m4,title(J){if(J.length>0){let G=J[0],q=G.chart.data.labels,X=q?q.length:0;if(this&&this.options&&this.options.mode==="dataset")return G.dataset.label||"";else if(G.label)return G.label;else if(X>0&&G.dataIndex<X)return q[G.dataIndex]}return""},afterTitle:m4,beforeBody:m4,beforeLabel:m4,label(J){if(this&&this.options&&this.options.mode==="dataset")return J.label+": "+J.formattedValue||J.formattedValue;let G=J.dataset.label||"";if(G)G+=": ";let q=J.formattedValue;if(!Q1(q))G+=q;return G},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:m4,afterBody:m4,beforeFooter:m4,footer:m4,afterFooter:m4};function J6(J,G,q,X){let N=J[G].call(q,X);if(typeof N>"u")return V_[G].call(q,X);return N}class pU extends E8{static positioners=MJ;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 G=this.chart,q=this.options.setContext(this.getContext()),X=q.enabled&&G.options.animation&&q.animations,N=new rU(this.chart,X);if(X._cacheable)this._cachedAnimations=Object.freeze(N);return N}getContext(){return this.$context||(this.$context=DE(this.chart.getContext(),this,this._tooltipItems))}getTitle(J,G){let{callbacks:q}=G,X=J6(q,"beforeTitle",this,J),N=J6(q,"title",this,J),K=J6(q,"afterTitle",this,J),H=[];return H=d4(H,A8(X)),H=d4(H,A8(N)),H=d4(H,A8(K)),H}getBeforeBody(J,G){return pR(J6(G.callbacks,"beforeBody",this,J))}getBody(J,G){let{callbacks:q}=G,X=[];return F1(J,(N)=>{let K={before:[],lines:[],after:[]},H=cR(q,N);d4(K.before,A8(J6(H,"beforeLabel",this,N))),d4(K.lines,J6(H,"label",this,N)),d4(K.after,A8(J6(H,"afterLabel",this,N))),X.push(K)}),X}getAfterBody(J,G){return pR(J6(G.callbacks,"afterBody",this,J))}getFooter(J,G){let{callbacks:q}=G,X=J6(q,"beforeFooter",this,J),N=J6(q,"footer",this,J),K=J6(q,"afterFooter",this,J),H=[];return H=d4(H,A8(X)),H=d4(H,A8(N)),H=d4(H,A8(K)),H}_createItems(J){let G=this._active,q=this.chart.data,X=[],N=[],K=[],H=[],F,W;for(F=0,W=G.length;F<W;++F)H.push(OE(this.chart,G[F]));if(J.filter)H=H.filter((M,R,_)=>J.filter(M,R,_,q));if(J.itemSort)H=H.sort((M,R)=>J.itemSort(M,R,q));return F1(H,(M)=>{let R=cR(J.callbacks,M);X.push(J6(R,"labelColor",this,M)),N.push(J6(R,"labelPointStyle",this,M)),K.push(J6(R,"labelTextColor",this,M))}),this.labelColors=X,this.labelPointStyles=N,this.labelTextColors=K,this.dataPoints=H,H}update(J,G){let q=this.options.setContext(this.getContext()),X=this._active,N,K=[];if(!X.length){if(this.opacity!==0)N={opacity:0}}else{let H=MJ[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 F=this._size=xR(this,q),W=Object.assign({},H,F),M=mR(this.chart,q,W),R=dR(q,W,M,this.chart);this.xAlign=M.xAlign,this.yAlign=M.yAlign,N={opacity:1,x:R.x,y:R.y,width:F.width,height:F.height,caretX:H.x,caretY:H.y}}if(this._tooltipItems=K,this.$context=void 0,N)this._resolveAnimations().update(this,N);if(J&&q.external)q.external.call(this,{chart:this.chart,tooltip:this,replay:G})}drawCaret(J,G,q,X){let N=this.getCaretPosition(J,q,X);G.lineTo(N.x1,N.y1),G.lineTo(N.x2,N.y2),G.lineTo(N.x3,N.y3)}getCaretPosition(J,G,q){let{xAlign:X,yAlign:N}=this,{caretSize:K,cornerRadius:H}=q,{topLeft:F,topRight:W,bottomLeft:M,bottomRight:R}=j2(H),{x:_,y:P}=J,{width:O,height:E}=G,V,I,j,h,p,n;if(N==="center"){if(p=P+E/2,X==="left")V=_,I=V-K,h=p+K,n=p-K;else V=_+O,I=V+K,h=p-K,n=p+K;j=V}else{if(X==="left")I=_+Math.max(F,M)+K;else if(X==="right")I=_+O-Math.max(W,R)-K;else I=this.caretX;if(N==="top")h=P,p=h-K,V=I-K,j=I+K;else h=P+E,p=h+K,V=I+K,j=I-K;n=h}return{x1:V,x2:I,x3:j,y1:h,y2:p,y3:n}}drawTitle(J,G,q){let X=this.title,N=X.length,K,H,F;if(N){let W=y7(q.rtl,this.x,this.width);J.x=g3(this,q.titleAlign,q),G.textAlign=W.textAlign(q.titleAlign),G.textBaseline="middle",K=Q5(q.titleFont),H=q.titleSpacing,G.fillStyle=q.titleColor,G.font=K.string;for(F=0;F<N;++F)if(G.fillText(X[F],W.x(J.x),J.y+K.lineHeight/2),J.y+=K.lineHeight+H,F+1===N)J.y+=q.titleMarginBottom-H}}_drawColorBox(J,G,q,X,N){let K=this.labelColors[q],H=this.labelPointStyles[q],{boxHeight:F,boxWidth:W}=N,M=Q5(N.bodyFont),R=g3(this,"left",N),_=X.x(R),P=F<M.lineHeight?(M.lineHeight-F)/2:0,O=G.y+P;if(N.usePointStyle){let E={radius:Math.min(W,F)/2,pointStyle:H.pointStyle,rotation:H.rotation,borderWidth:1},V=X.leftForLtr(_,W)+W/2,I=O+F/2;J.strokeStyle=N.multiKeyBackground,J.fillStyle=N.multiKeyBackground,S3(J,E,V,I),J.strokeStyle=K.borderColor,J.fillStyle=K.backgroundColor,S3(J,E,V,I)}else{J.lineWidth=$1(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(_,W),V=X.leftForLtr(X.xPlus(_,1),W-2),I=j2(K.borderRadius);if(Object.values(I).some((j)=>j!==0))J.beginPath(),J.fillStyle=N.multiKeyBackground,H$(J,{x:E,y:O,w:W,h:F,radius:I}),J.fill(),J.stroke(),J.fillStyle=K.backgroundColor,J.beginPath(),H$(J,{x:V,y:O+1,w:W-2,h:F-2,radius:I}),J.fill();else J.fillStyle=N.multiKeyBackground,J.fillRect(E,O,W,F),J.strokeRect(E,O,W,F),J.fillStyle=K.backgroundColor,J.fillRect(V,O+1,W-2,F-2)}J.fillStyle=this.labelTextColors[q]}drawBody(J,G,q){let{body:X}=this,{bodySpacing:N,bodyAlign:K,displayColors:H,boxHeight:F,boxWidth:W,boxPadding:M}=q,R=Q5(q.bodyFont),_=R.lineHeight,P=0,O=y7(q.rtl,this.x,this.width),E=function(t){G.fillText(t,O.x(J.x+P),J.y+_/2),J.y+=_+N},V=O.textAlign(K),I,j,h,p,n,a,Q0;G.textAlign=K,G.textBaseline="middle",G.font=R.string,J.x=g3(this,V,q),G.fillStyle=q.bodyColor,F1(this.beforeBody,E),P=H&&V!=="right"?K==="center"?W/2+M:W+2+M:0;for(p=0,a=X.length;p<a;++p){if(I=X[p],j=this.labelTextColors[p],G.fillStyle=j,F1(I.before,E),h=I.lines,H&&h.length)this._drawColorBox(G,J,p,O,q),_=Math.max(R.lineHeight,F);for(n=0,Q0=h.length;n<Q0;++n)E(h[n]),_=R.lineHeight;F1(I.after,E)}P=0,_=R.lineHeight,F1(this.afterBody,E),J.y-=N}drawFooter(J,G,q){let X=this.footer,N=X.length,K,H;if(N){let F=y7(q.rtl,this.x,this.width);J.x=g3(this,q.footerAlign,q),J.y+=q.footerMarginTop,G.textAlign=F.textAlign(q.footerAlign),G.textBaseline="middle",K=Q5(q.footerFont),G.fillStyle=q.footerColor,G.font=K.string;for(H=0;H<N;++H)G.fillText(X[H],F.x(J.x),J.y+K.lineHeight/2),J.y+=K.lineHeight+q.footerSpacing}}drawBackground(J,G,q,X){let{xAlign:N,yAlign:K}=this,{x:H,y:F}=J,{width:W,height:M}=q,{topLeft:R,topRight:_,bottomLeft:P,bottomRight:O}=j2(X.cornerRadius);if(G.fillStyle=X.backgroundColor,G.strokeStyle=X.borderColor,G.lineWidth=X.borderWidth,G.beginPath(),G.moveTo(H+R,F),K==="top")this.drawCaret(J,G,q,X);if(G.lineTo(H+W-_,F),G.quadraticCurveTo(H+W,F,H+W,F+_),K==="center"&&N==="right")this.drawCaret(J,G,q,X);if(G.lineTo(H+W,F+M-O),G.quadraticCurveTo(H+W,F+M,H+W-O,F+M),K==="bottom")this.drawCaret(J,G,q,X);if(G.lineTo(H+P,F+M),G.quadraticCurveTo(H,F+M,H,F+M-P),K==="center"&&N==="left")this.drawCaret(J,G,q,X);if(G.lineTo(H,F+R),G.quadraticCurveTo(H,F,H+R,F),G.closePath(),G.fill(),X.borderWidth>0)G.stroke()}_updateAnimationTarget(J){let G=this.chart,q=this.$animations,X=q&&q.x,N=q&&q.y;if(X||N){let K=MJ[J.position].call(this,this._active,this._eventPosition);if(!K)return;let H=this._size=xR(this,J),F=Object.assign({},K,this._size),W=mR(G,J,F),M=dR(J,F,W,G);if(X._to!==M.x||N._to!==M.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,M)}}_willRender(){return!!this.opacity}draw(J){let G=this.options.setContext(this.getContext()),q=this.opacity;if(!q)return;this._updateAnimationTarget(G);let X={width:this.width,height:this.height},N={x:this.x,y:this.y};q=Math.abs(q)<0.001?0:q;let K=T5(G.padding),H=this.title.length||this.beforeBody.length||this.body.length||this.afterBody.length||this.footer.length;if(G.enabled&&H)J.save(),J.globalAlpha=q,this.drawBackground(N,J,X,G),TU(J,G.textDirection),N.y+=K.top,this.drawTitle(N,J,G),this.drawBody(N,J,G),this.drawFooter(N,J,G),CU(J,G.textDirection),J.restore()}getActiveElements(){return this._active||[]}setActiveElements(J,G){let q=this._active,X=J.map(({datasetIndex:H,index:F})=>{let W=this.chart.getDatasetMeta(H);if(!W)throw Error("Cannot find a dataset at index "+H);return{datasetIndex:H,element:W.data[F],index:F}}),N=!GJ(q,X),K=this._positionChanged(X,G);if(N||K)this._active=X,this._eventPosition=G,this._ignoreReplayEvents=!0,this.update(!0)}handleEvent(J,G,q=!0){if(G&&this._ignoreReplayEvents)return!1;this._ignoreReplayEvents=!1;let X=this.options,N=this._active||[],K=this._getActiveElements(J,N,G,q),H=this._positionChanged(K,J),F=G||!GJ(K,N)||H;if(F){if(this._active=K,X.enabled||X.external)this._eventPosition={x:J.x,y:J.y},this.update(!0,G)}return F}_getActiveElements(J,G,q,X){let N=this.options;if(J.type==="mouseout")return[];if(!X)return G.filter((H)=>this.chart.data.datasets[H.datasetIndex]&&this.chart.getDatasetMeta(H.datasetIndex).controller.getParsed(H.index)!==void 0);let K=this.chart.getElementsAtEventForMode(J,N.mode,N,q);if(N.reverse)K.reverse();return K}_positionChanged(J,G){let{caretX:q,caretY:X,options:N}=this,K=MJ[N.position].call(this,J,G);return K!==!1&&(q!==K.x||X!==K.y)}}var A_={id:"tooltip",_element:pU,positioners:MJ,afterInit(J,G,q){if(q)J.tooltip=new pU({chart:J,options:q})},beforeUpdate(J,G,q){if(J.tooltip)J.tooltip.initialize(q)},reset(J,G,q){if(J.tooltip)J.tooltip.initialize(q)},afterDraw(J){let G=J.tooltip;if(G&&G._willRender()){let q={tooltip:G};if(J.notifyPlugins("beforeTooltipDraw",{...q,cancelable:!0})===!1)return;G.draw(J.ctx),J.notifyPlugins("afterTooltipDraw",q)}},afterEvent(J,G){if(J.tooltip){let q=G.replay;if(J.tooltip.handleEvent(G.event,q,G.inChartArea))G.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,G)=>G.bodyFont.size,boxWidth:(J,G)=>G.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:V_},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 jE=(J,G,q,X)=>{if(typeof G==="string")q=J.push(G)-1,X.unshift({index:q,label:G});else if(isNaN(G))q=null;return q};function kE(J,G,q,X){let N=J.indexOf(G);if(N===-1)return jE(J,G,q,X);let K=J.lastIndexOf(G);return N!==K?q:N}var vE=(J,G)=>J===null?null:$6(Math.round(J),0,G);function lR(J){let G=this.getLabels();if(J>=0&&J<G.length)return G[J];return J}class ZK extends u7{static id="category";static defaults={ticks:{callback:lR}};constructor(J){super(J);this._startValue=void 0,this._valueRange=0,this._addedLabels=[]}init(J){let G=this._addedLabels;if(G.length){let q=this.getLabels();for(let{index:X,label:N}of G)if(q[X]===N)q.splice(X,1);this._addedLabels=[]}super.init(J)}parse(J,G){if(Q1(J))return null;let q=this.getLabels();return G=isFinite(G)&&q[G]===J?G:kE(q,J,s0(G,J),this._addedLabels),vE(G,q.length-1)}determineDataLimits(){let{minDefined:J,maxDefined:G}=this.getUserBounds(),{min:q,max:X}=this.getMinMax(!0);if(this.options.bounds==="ticks"){if(!J)q=0;if(!G)X=this.getLabels().length-1}this.min=q,this.max=X}buildTicks(){let J=this.min,G=this.max,q=this.options.offset,X=[],N=this.getLabels();N=J===0&&G===N.length-1?N:N.slice(J,G+1),this._valueRange=Math.max(N.length-(q?0:1),1),this._startValue=this.min-(q?0.5:0);for(let K=J;K<=G;K++)X.push({value:K});return X}getLabelForValue(J){return lR.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 G=this.ticks;if(J<0||J>G.length-1)return null;return this.getPixelForValue(G[J].value)}getValueForPixel(J){return Math.round(this._startValue+this.getDecimalForPixel(J)*this._valueRange)}getBasePixel(){return this.bottom}}function bE(J,G){let q=[],X=0.00000000000001,{bounds:N,step:K,min:H,max:F,precision:W,count:M,maxTicks:R,maxDigits:_,includeBounds:P}=J,O=K||1,E=R-1,{min:V,max:I}=G,j=!Q1(H),h=!Q1(F),p=!Q1(M),n=(I-V)/(_+1),a=QU((I-V)/E/O)*O,Q0,t,i,X0;if(a<0.00000000000001&&!j&&!h)return[{value:V},{value:I}];if(X0=Math.ceil(I/a)-Math.floor(V/a),X0>E)a=QU(X0*a/E/O)*O;if(!Q1(W))Q0=Math.pow(10,W),a=Math.ceil(a*Q0)/Q0;if(N==="ticks")t=Math.floor(V/a)*a,i=Math.ceil(I/a)*a;else t=V,i=I;if(j&&h&&K&&jw((F-H)/K,a/1000))X0=Math.round(Math.min((F-H)/a,R)),a=(F-H)/X0,t=H,i=F;else if(p)t=j?H:t,i=h?F:i,X0=M-1,a=(i-t)/X0;else if(X0=(i-t)/a,K$(X0,Math.round(X0),a/1000))X0=Math.round(X0);else X0=Math.ceil(X0);let d=Math.max(qU(a),qU(t));Q0=Math.pow(10,Q1(W)?d:W),t=Math.round(t*Q0)/Q0,i=Math.round(i*Q0)/Q0;let H0=0;if(j){if(P&&t!==H){if(q.push({value:H}),t<H)H0++;if(K$(Math.round((t+H0*a)*Q0)/Q0,H,rR(H,n,J)))H0++}else if(t<H)H0++}for(;H0<X0;++H0){let P0=Math.round((t+H0*a)*Q0)/Q0;if(h&&P0>F)break;q.push({value:P0})}if(h&&P&&i!==F)if(q.length&&K$(q[q.length-1].value,F,rR(F,n,J)))q[q.length-1].value=F;else q.push({value:F});else if(!h||i===F)q.push({value:i});return q}function rR(J,G,{horizontal:q,minRotation:X}){let N=C8(X),K=(q?Math.sin(N):Math.cos(N))||0.001,H=0.75*G*(""+J).length;return Math.min(G/K,H)}class RJ extends u7{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,G){if(Q1(J))return null;if((typeof J==="number"||J instanceof Number)&&!isFinite(+J))return null;return+J}handleTickRangeOptions(){let{beginAtZero:J}=this.options,{minDefined:G,maxDefined:q}=this.getUserBounds(),{min:X,max:N}=this,K=(F)=>X=G?X:F,H=(F)=>N=q?N:F;if(J){let F=U4(X),W=U4(N);if(F<0&&W<0)H(0);else if(F>0&&W>0)K(0)}if(X===N){let F=N===0?1:Math.abs(N*0.05);if(H(N+F),!J)K(X-F)}this.min=X,this.max=N}getTickLimit(){let J=this.options.ticks,{maxTicksLimit:G,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(),G=G||11;if(G)X=Math.min(G,X);return X}computeTickLimit(){return Number.POSITIVE_INFINITY}buildTicks(){let J=this.options,G=J.ticks,q=this.getTickLimit();q=Math.max(2,q);let X={maxTicks:q,bounds:J.bounds,min:J.min,max:J.max,precision:G.precision,step:G.stepSize,count:G.count,maxDigits:this._maxDigits(),horizontal:this.isHorizontal(),minRotation:G.minRotation||0,includeBounds:G.includeBounds!==!1},N=this._range||this,K=bE(X,N);if(J.bounds==="ticks")GU(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,G=this.min,q=this.max;if(super.configure(),this.options.offset&&J.length){let X=(q-G)/Math.max(J.length-1,1)/2;G-=X,q+=X}this._startValue=G,this._endValue=q,this._valueRange=q-G}getLabelForValue(J){return A3(J,this.chart.options.locale,this.options.ticks.format)}}class JK extends RJ{static id="linear";static defaults={ticks:{callback:qJ.formatters.numeric}};determineDataLimits(){let{min:J,max:G}=this.getMinMax(!0);this.min=h1(J)?J:0,this.max=h1(G)?G:1,this.handleTickRangeOptions()}computeTickLimit(){let J=this.isHorizontal(),G=J?this.width:this.height,q=C8(this.options.ticks.minRotation),X=(J?Math.sin(q):Math.cos(q))||0.001,N=this._resolveTickFontOptions(0);return Math.ceil(G/Math.min(40,N.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 _J=(J)=>Math.floor(T8(J)),h7=(J,G)=>Math.pow(10,_J(J)+G);function sR(J){return J/Math.pow(10,_J(J))===1}function nR(J,G,q){let X=Math.pow(10,q),N=Math.floor(J/X);return Math.ceil(G/X)-N}function fE(J,G){let q=G-J,X=_J(q);while(nR(J,G,X)>10)X++;while(nR(J,G,X)<10)X--;return Math.min(X,_J(J))}function yE(J,{min:G,max:q}){G=Z6(J.min,G);let X=[],N=_J(G),K=fE(G,q),H=K<0?Math.pow(10,Math.abs(K)):1,F=Math.pow(10,K),W=N>K?Math.pow(10,N):0,M=Math.round((G-W)*H)/H,R=Math.floor((G-W)/F/10)*F*10,_=Math.floor((M-R)/Math.pow(10,K)),P=Z6(J.min,Math.round((W+R+_*Math.pow(10,K))*H)/H);while(P<q){if(X.push({value:P,major:sR(P),significand:_}),_>=10)_=_<15?15:20;else _++;if(_>=20)K++,_=2,H=K>=0?1:H;P=Math.round((W+R+_*Math.pow(10,K))*H)/H}let O=Z6(J.max,P);return X.push({value:O,major:sR(O),significand:_}),X}class gE extends u7{static id="logarithmic";static defaults={ticks:{callback:qJ.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,G){let q=RJ.prototype.parse.apply(this,[J,G]);if(q===0){this._zero=!0;return}return h1(q)&&q>0?q:null}determineDataLimits(){let{min:J,max:G}=this.getMinMax(!0);if(this.min=h1(J)?Math.max(0,J):null,this.max=h1(G)?Math.max(0,G):null,this.options.beginAtZero)this._zero=!0;if(this._zero&&this.min!==this._suggestedMin&&!h1(this._userMin))this.min=J===h7(this.min,0)?h7(this.min,-1):h7(this.min,0);this.handleTickRangeOptions()}handleTickRangeOptions(){let{minDefined:J,maxDefined:G}=this.getUserBounds(),q=this.min,X=this.max,N=(H)=>q=J?q:H,K=(H)=>X=G?X:H;if(q===X)if(q<=0)N(1),K(10);else N(h7(q,-1)),K(h7(X,1));if(q<=0)N(h7(X,-1));if(X<=0)K(h7(q,1));this.min=q,this.max=X}buildTicks(){let J=this.options,G={min:this._userMin,max:this._userMax},q=yE(G,this);if(J.bounds==="ticks")GU(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":A3(J,this.chart.options.locale,this.options.ticks.format)}configure(){let J=this.min;super.configure(),this._startValue=T8(J),this._valueRange=T8(this.max)-T8(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:(T8(J)-this._startValue)/this._valueRange)}getValueForPixel(J){let G=this.getDecimalForPixel(J);return Math.pow(10,this._startValue+G*this._valueRange)}}function cU(J){let G=J.ticks;if(G.display&&J.display){let q=T5(G.backdropPadding);return s0(G.font&&G.font.size,u1.font.size)+q.height}return 0}function hE(J,G,q){return q=E1(q)?q:[q],{w:cw(J,G.string,q),h:q.length*G.lineHeight}}function oR(J,G,q,X,N){if(J===X||J===N)return{start:G-q/2,end:G+q/2};else if(J<X||J>N)return{start:G-q,end:G};return{start:G,end:G+q}}function uE(J){let G={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({},G),X=[],N=[],K=J._pointLabels.length,H=J.options.pointLabels,F=H.centerPointLabels?r1/K:0;for(let W=0;W<K;W++){let M=H.setContext(J.getPointLabelContext(W));N[W]=M.padding;let R=J.getPointPosition(W,J.drawingArea+N[W],F),_=Q5(M.font),P=hE(J.ctx,_,J._pointLabels[W]);X[W]=P;let O=i5(J.getIndexAngle(W)+F),E=Math.round(O3(O)),V=oR(E,R.x,P.w,0,180),I=oR(E,R.y,P.h,90,270);xE(q,G,O,V,I)}J.setCenterPoint(G.l-q.l,q.r-G.r,G.t-q.t,q.b-G.b),J._pointLabelItems=pE(J,X,N)}function xE(J,G,q,X,N){let K=Math.abs(Math.sin(q)),H=Math.abs(Math.cos(q)),F=0,W=0;if(X.start<G.l)F=(G.l-X.start)/K,J.l=Math.min(J.l,G.l-F);else if(X.end>G.r)F=(X.end-G.r)/K,J.r=Math.max(J.r,G.r+F);if(N.start<G.t)W=(G.t-N.start)/H,J.t=Math.min(J.t,G.t-W);else if(N.end>G.b)W=(N.end-G.b)/H,J.b=Math.max(J.b,G.b+W)}function mE(J,G,q){let X=J.drawingArea,{extra:N,additionalAngle:K,padding:H,size:F}=q,W=J.getPointPosition(G,X+N+H,K),M=Math.round(O3(i5(W.angle+t5))),R=rE(W.y,F.h,M),_=cE(M),P=lE(W.x,F.w,_);return{visible:!0,x:W.x,y:R,textAlign:_,left:P,top:R,right:P+F.w,bottom:R+F.h}}function dE(J,G){if(!G)return!0;let{left:q,top:X,right:N,bottom:K}=J;return!(x4({x:q,y:X},G)||x4({x:q,y:K},G)||x4({x:N,y:X},G)||x4({x:N,y:K},G))}function pE(J,G,q){let X=[],N=J._pointLabels.length,K=J.options,{centerPointLabels:H,display:F}=K.pointLabels,W={extra:cU(K)/2,additionalAngle:H?r1/N:0},M;for(let R=0;R<N;R++){W.padding=q[R],W.size=G[R];let _=mE(J,R,W);if(X.push(_),F==="auto"){if(_.visible=dE(_,M),_.visible)M=_}}return X}function cE(J){if(J===0||J===180)return"center";else if(J<180)return"left";return"right"}function lE(J,G,q){if(q==="right")J-=G;else if(q==="center")J-=G/2;return J}function rE(J,G,q){if(q===90||q===270)J-=G/2;else if(q>270||q<90)J-=G;return J}function sE(J,G,q){let{left:X,top:N,right:K,bottom:H}=q,{backdropColor:F}=G;if(!Q1(F)){let W=j2(G.borderRadius),M=T5(G.backdropPadding);J.fillStyle=F;let R=X-M.left,_=N-M.top,P=K-X+M.width,O=H-N+M.height;if(Object.values(W).some((E)=>E!==0))J.beginPath(),H$(J,{x:R,y:_,w:P,h:O,radius:W}),J.fill();else J.fillRect(R,_,P,O)}}function nE(J,G){let{ctx:q,options:{pointLabels:X}}=J;for(let N=G-1;N>=0;N--){let K=J._pointLabelItems[N];if(!K.visible)continue;let H=X.setContext(J.getPointLabelContext(N));sE(q,H,K);let F=Q5(H.font),{x:W,y:M,textAlign:R}=K;D2(q,J._pointLabels[N],W,M+F.lineHeight/2,F,{color:H.color,textAlign:R,textBaseline:"middle"})}}function E_(J,G,q,X){let{ctx:N}=J;if(q)N.arc(J.xCenter,J.yCenter,G,0,e5);else{let K=J.getPointPosition(0,G);N.moveTo(K.x,K.y);for(let H=1;H<X;H++)K=J.getPointPosition(H,G),N.lineTo(K.x,K.y)}}function oE(J,G,q,X,N){let K=J.ctx,H=G.circular,{color:F,lineWidth:W}=G;if(!H&&!X||!F||!W||q<0)return;K.save(),K.strokeStyle=F,K.lineWidth=W,K.setLineDash(N.dash||[]),K.lineDashOffset=N.dashOffset,K.beginPath(),E_(J,q,H,X),K.closePath(),K.stroke(),K.restore()}function aE(J,G,q){return I8(J,{label:q,index:G,type:"pointLabel"})}class iE extends RJ{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:qJ.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=T5(cU(this.options)/2),G=this.width=this.maxWidth-J.width,q=this.height=this.maxHeight-J.height;this.xCenter=Math.floor(this.left+G/2+J.left),this.yCenter=Math.floor(this.top+q/2+J.top),this.drawingArea=Math.floor(Math.min(G,q)/2)}determineDataLimits(){let{min:J,max:G}=this.getMinMax(!1);this.min=h1(J)&&!isNaN(J)?J:0,this.max=h1(G)&&!isNaN(G)?G:0,this.handleTickRangeOptions()}computeTickLimit(){return Math.ceil(this.drawingArea/cU(this.options))}generateTickLabels(J){RJ.prototype.generateTickLabels.call(this,J),this._pointLabels=this.getLabels().map((G,q)=>{let X=O1(this.options.pointLabels.callback,[G,q],this);return X||X===0?X:""}).filter((G,q)=>this.chart.getDataVisibility(q))}fit(){let J=this.options;if(J.display&&J.pointLabels.display)uE(this);else this.setCenterPoint(0,0,0,0)}setCenterPoint(J,G,q,X){this.xCenter+=Math.floor((J-G)/2),this.yCenter+=Math.floor((q-X)/2),this.drawingArea-=Math.min(this.drawingArea/2,Math.max(J,G,q,X))}getIndexAngle(J){let G=e5/(this._pointLabels.length||1),q=this.options.startAngle||0;return i5(J*G+C8(q))}getDistanceFromCenterForValue(J){if(Q1(J))return NaN;let G=this.drawingArea/(this.max-this.min);if(this.options.reverse)return(this.max-J)*G;return(J-this.min)*G}getValueForDistanceFromCenter(J){if(Q1(J))return NaN;let G=J/(this.drawingArea/(this.max-this.min));return this.options.reverse?this.max-G:this.min+G}getPointLabelContext(J){let G=this._pointLabels||[];if(J>=0&&J<G.length){let q=G[J];return aE(this.getContext(),J,q)}}getPointPosition(J,G,q=0){let X=this.getIndexAngle(J)-t5+q;return{x:Math.cos(X)*G+this.xCenter,y:Math.sin(X)*G+this.yCenter,angle:X}}getPointPositionForValue(J,G){return this.getPointPosition(J,this.getDistanceFromCenterForValue(G))}getBasePosition(J){return this.getPointPositionForValue(J||0,this.getBaseValue())}getPointLabelPosition(J){let{left:G,top:q,right:X,bottom:N}=this._pointLabelItems[J];return{left:G,top:q,right:X,bottom:N}}drawBackground(){let{backgroundColor:J,grid:{circular:G}}=this.options;if(J){let q=this.ctx;q.save(),q.beginPath(),E_(this,this.getDistanceFromCenterForValue(this._endValue),G,this._pointLabels.length),q.closePath(),q.fillStyle=J,q.fill(),q.restore()}}drawGrid(){let J=this.ctx,G=this.options,{angleLines:q,grid:X,border:N}=G,K=this._pointLabels.length,H,F,W;if(G.pointLabels.display)nE(this,K);if(X.display)this.ticks.forEach((M,R)=>{if(R!==0||R===0&&this.min<0){F=this.getDistanceFromCenterForValue(M.value);let _=this.getContext(R),P=X.setContext(_),O=N.setContext(_);oE(this,P,F,K,O)}});if(q.display){J.save();for(H=K-1;H>=0;H--){let M=q.setContext(this.getPointLabelContext(H)),{color:R,lineWidth:_}=M;if(!_||!R)continue;J.lineWidth=_,J.strokeStyle=R,J.setLineDash(M.borderDash),J.lineDashOffset=M.borderDashOffset,F=this.getDistanceFromCenterForValue(G.reverse?this.min:this.max),W=this.getPointPosition(H,F),J.beginPath(),J.moveTo(this.xCenter,this.yCenter),J.lineTo(W.x,W.y),J.stroke()}J.restore()}}drawBorder(){}drawLabels(){let J=this.ctx,G=this.options,q=G.ticks;if(!q.display)return;let X=this.getIndexAngle(0),N,K;J.save(),J.translate(this.xCenter,this.yCenter),J.rotate(X),J.textAlign="center",J.textBaseline="middle",this.ticks.forEach((H,F)=>{if(F===0&&this.min>=0&&!G.reverse)return;let W=q.setContext(this.getContext(F)),M=Q5(W.font);if(N=this.getDistanceFromCenterForValue(this.ticks[F].value),W.showLabelBackdrop){J.font=M.string,K=J.measureText(H.label).width,J.fillStyle=W.backdropColor;let R=T5(W.backdropPadding);J.fillRect(-K/2-R.left,-N-M.size/2-R.top,K+R.width,M.size+R.height)}D2(J,H.label,0,-N,M,{color:W.color,strokeColor:W.textStrokeColor,strokeWidth:W.textStrokeWidth})}),J.restore()}drawTitle(){}}var c3={millisecond:{common:!0,size:1,steps:1000},second:{common:!0,size:1000,steps:60},minute:{common:!0,size:60000,steps:60},hour:{common:!0,size:3600000,steps:24},day:{common:!0,size:86400000,steps:30},week:{common:!1,size:604800000,steps:4},month:{common:!0,size:2628000000,steps:12},quarter:{common:!1,size:7884000000,steps:4},year:{common:!0,size:31540000000}},Q6=Object.keys(c3);function aR(J,G){return J-G}function iR(J,G){if(Q1(G))return null;let q=J._adapter,{parser:X,round:N,isoWeekday:K}=J._parseOpts,H=G;if(typeof X==="function")H=X(H);if(!h1(H))H=typeof X==="string"?q.parse(H,X):q.parse(H);if(H===null)return null;if(N)H=N==="week"&&(B$(K)||K===!0)?q.startOf(H,"isoWeek",K):q.startOf(H,N);return+H}function tR(J,G,q,X){let N=Q6.length;for(let K=Q6.indexOf(J);K<N-1;++K){let H=c3[Q6[K]],F=H.steps?H.steps:Number.MAX_SAFE_INTEGER;if(H.common&&Math.ceil((q-G)/(F*H.size))<=X)return Q6[K]}return Q6[N-1]}function tE(J,G,q,X,N){for(let K=Q6.length-1;K>=Q6.indexOf(q);K--){let H=Q6[K];if(c3[H].common&&J._adapter.diff(N,X,H)>=G-1)return H}return Q6[q?Q6.indexOf(q):0]}function eE(J){for(let G=Q6.indexOf(J)+1,q=Q6.length;G<q;++G)if(c3[Q6[G]].common)return Q6[G]}function eR(J,G,q){if(!q)J[G]=!0;else if(q.length){let{lo:X,hi:N}=I3(q,G),K=q[X]>=G?q[X]:q[N];J[K]=!0}}function $S(J,G,q,X){let N=J._adapter,K=+N.startOf(G[0].value,X),H=G[G.length-1].value,F,W;for(F=K;F<=H;F=+N.add(F,1,X))if(W=q[F],W>=0)G[W].major=!0;return G}function $_(J,G,q){let X=[],N={},K=G.length,H,F;for(H=0;H<K;++H)F=G[H],N[F]=H,X.push({value:F,major:!1});return K===0||!q?X:$S(J,X,N,q)}class lU extends u7{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,G={}){let q=J.time||(J.time={}),X=this._adapter=new fV._date(J.adapters.date);X.init(G),N$(q.displayFormats,X.formats()),this._parseOpts={parser:q.parser,round:q.round,isoWeekday:q.isoWeekday},super.init(J),this._normalized=G.normalized}parse(J,G){if(J===void 0)return null;return iR(this,J)}beforeLayout(){super.beforeLayout(),this._cache={data:[],labels:[],all:[]}}determineDataLimits(){let J=this.options,G=this._adapter,q=J.time.unit||"day",{min:X,max:N,minDefined:K,maxDefined:H}=this.getUserBounds();function F(W){if(!K&&!isNaN(W.min))X=Math.min(X,W.min);if(!H&&!isNaN(W.max))N=Math.max(N,W.max)}if(!K||!H){if(F(this._getLabelBounds()),J.bounds!=="ticks"||J.ticks.source!=="labels")F(this.getMinMax(!1))}X=h1(X)&&!isNaN(X)?X:+G.startOf(Date.now(),q),N=h1(N)&&!isNaN(N)?N:+G.endOf(Date.now(),q)+1,this.min=Math.min(X,N-1),this.max=Math.max(X+1,N)}_getLabelBounds(){let J=this.getLabelTimestamps(),G=Number.POSITIVE_INFINITY,q=Number.NEGATIVE_INFINITY;if(J.length)G=J[0],q=J[J.length-1];return{min:G,max:q}}buildTicks(){let J=this.options,G=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 N=this.min,K=this.max,H=fw(X,N,K);if(this._unit=G.unit||(q.autoSkip?tR(G.minUnit,this.min,this.max,this._getLabelCapacity(N)):tE(this,H.length,G.minUnit,this.min,this.max)),this._majorUnit=!q.major.enabled||this._unit==="year"?void 0:eE(this._unit),this.initOffsets(X),J.reverse)H.reverse();return $_(this,H,this._majorUnit)}afterAutoSkip(){if(this.options.offsetAfterAutoskip)this.initOffsets(this.ticks.map((J)=>+J.value))}initOffsets(J=[]){let G=0,q=0,X,N;if(this.options.offset&&J.length){if(X=this.getDecimalForValue(J[0]),J.length===1)G=1-X;else G=(this.getDecimalForValue(J[1])-X)/2;if(N=this.getDecimalForValue(J[J.length-1]),J.length===1)q=N;else q=(N-this.getDecimalForValue(J[J.length-2]))/2}let K=J.length<3?0.5:0.25;G=$6(G,0,K),q=$6(q,0,K),this._offsets={start:G,end:q,factor:1/(G+1+q)}}_generate(){let J=this._adapter,G=this.min,q=this.max,X=this.options,N=X.time,K=N.unit||tR(N.minUnit,G,q,this._getLabelCapacity(G)),H=s0(X.ticks.stepSize,1),F=K==="week"?N.isoWeekday:!1,W=B$(F)||F===!0,M={},R=G,_,P;if(W)R=+J.startOf(R,"isoWeek",F);if(R=+J.startOf(R,W?"day":K),J.diff(q,G,K)>1e5*H)throw Error(G+" and "+q+" are too far apart with stepSize of "+H+" "+K);let O=X.ticks.source==="data"&&this.getDataTimestamps();for(_=R,P=0;_<q;_=+J.add(_,H,K),P++)eR(M,_,O);if(_===q||X.bounds==="ticks"||P===1)eR(M,_,O);return Object.keys(M).sort(aR).map((E)=>+E)}getLabelForValue(J){let G=this._adapter,q=this.options.time;if(q.tooltipFormat)return G.format(J,q.tooltipFormat);return G.format(J,q.displayFormats.datetime)}format(J,G){let X=this.options.time.displayFormats,N=this._unit,K=G||X[N];return this._adapter.format(J,K)}_tickFormatFunction(J,G,q,X){let N=this.options,K=N.ticks.callback;if(K)return O1(K,[J,G,q],this);let H=N.time.displayFormats,F=this._unit,W=this._majorUnit,M=F&&H[F],R=W&&H[W],_=q[G],P=W&&R&&_&&_.major;return this._adapter.format(J,X||(P?R:M))}generateTickLabels(J){let G,q,X;for(G=0,q=J.length;G<q;++G)X=J[G],X.label=this._tickFormatFunction(X.value,G,J)}getDecimalForValue(J){return J===null?NaN:(J-this.min)/(this.max-this.min)}getPixelForValue(J){let G=this._offsets,q=this.getDecimalForValue(J);return this.getPixelForDecimal((G.start+q)*G.factor)}getValueForPixel(J){let G=this._offsets,q=this.getDecimalForPixel(J)/G.factor-G.end;return this.min+q*(this.max-this.min)}_getLabelSize(J){let G=this.options.ticks,q=this.ctx.measureText(J).width,X=C8(this.isHorizontal()?G.maxRotation:G.minRotation),N=Math.cos(X),K=Math.sin(X),H=this._resolveTickFontOptions(0).size;return{w:q*N+H*K,h:q*K+H*N}}_getLabelCapacity(J){let G=this.options.time,q=G.displayFormats,X=q[G.unit]||q.millisecond,N=this._tickFormatFunction(J,0,$_(this,[J],this._majorUnit),X),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 J=this._cache.data||[],G,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(G=0,q=X.length;G<q;++G)J=J.concat(X[G].controller.getAllParsedValues(this));return this._cache.data=this.normalize(J)}getLabelTimestamps(){let J=this._cache.labels||[],G,q;if(J.length)return J;let X=this.getLabels();for(G=0,q=X.length;G<q;++G)J.push(iR(this,X[G]));return this._cache.labels=this._normalized?J:this.normalize(J)}normalize(J){return NU(J.sort(aR))}}function h3(J,G,q){let X=0,N=J.length-1,K,H,F,W;if(q){if(G>=J[X].pos&&G<=J[N].pos)({lo:X,hi:N}=V2(J,"pos",G));({pos:K,time:F}=J[X]),{pos:H,time:W}=J[N]}else{if(G>=J[X].time&&G<=J[N].time)({lo:X,hi:N}=V2(J,"time",G));({time:K,pos:F}=J[X]),{time:H,pos:W}=J[N]}let M=H-K;return M?F+(W-F)*(G-K)/M:F}class ZS extends lU{static id="timeseries";static defaults=lU.defaults;constructor(J){super(J);this._table=[],this._minPos=void 0,this._tableRange=void 0}initOffsets(){let J=this._getTimestampsForTable(),G=this._table=this.buildLookupTable(J);this._minPos=h3(G,this.min),this._tableRange=h3(G,this.max)-this._minPos,super.initOffsets(J)}buildLookupTable(J){let{min:G,max:q}=this,X=[],N=[],K,H,F,W,M;for(K=0,H=J.length;K<H;++K)if(W=J[K],W>=G&&W<=q)X.push(W);if(X.length<2)return[{time:G,pos:0},{time:q,pos:1}];for(K=0,H=X.length;K<H;++K)if(M=X[K+1],F=X[K-1],W=X[K],Math.round((M+F)/2)!==W)N.push({time:W,pos:K/(H-1)});return N}_generate(){let J=this.min,G=this.max,q=super.getDataTimestamps();if(!q.includes(J)||!q.length)q.splice(0,0,J);if(!q.includes(G)||q.length===1)q.push(G);return q.sort((X,N)=>X-N)}_getTimestampsForTable(){let J=this._cache.all||[];if(J.length)return J;let G=this.getDataTimestamps(),q=this.getLabelTimestamps();if(G.length&&q.length)J=this.normalize(G.concat(q));else J=G.length?G:q;return J=this._cache.all=J,J}getDecimalForValue(J){return(h3(this._table,J)-this._minPos)/this._tableRange}getValueForPixel(J){let G=this._offsets,q=this.getDecimalForPixel(J)/G.factor-G.end;return h3(this._table,q*this._tableRange+this._minPos,!0)}}x7.register(ZK,JK,tU,F$,iU,I_,A_,O_,T_);var qP=s(f_(),1);var j8=s(L1(),1);var n3=s(L1(),1);var r3=(...J)=>J.filter((G,q,X)=>{return Boolean(G)&&G.trim()!==""&&X.indexOf(G)===q}).join(" ").trim();var y_=(J)=>J.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase();var g_=(J)=>J.replace(/^([A-Z])|[\s-_]+(\w)/g,(G,q,X)=>X?X.toUpperCase():q.toLowerCase());var qK=(J)=>{let G=g_(J);return G.charAt(0).toUpperCase()+G.slice(1)};var PJ=s(L1(),1);var s3={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};var h_=(J)=>{for(let G in J)if(G.startsWith("aria-")||G==="role"||G==="title")return!0;return!1};var z$=s(L1(),1),NS=z$.createContext({});var u_=()=>z$.useContext(NS);var x_=PJ.forwardRef(({color:J,size:G,strokeWidth:q,absoluteStrokeWidth:X,className:N="",children:K,iconNode:H,...F},W)=>{let{size:M=24,strokeWidth:R=2,absoluteStrokeWidth:_=!1,color:P="currentColor",className:O=""}=u_()??{},E=X??_?Number(q??R)*24/Number(G??M):q??R;return PJ.createElement("svg",{ref:W,...s3,width:G??M??s3.width,height:G??M??s3.height,stroke:J??P,strokeWidth:E,className:r3("lucide",O,N),...!K&&!h_(F)&&{"aria-hidden":"true"},...F},[...H.map(([V,I])=>PJ.createElement(V,I)),...Array.isArray(K)?K:[K]])});var C0=(J,G)=>{let q=n3.forwardRef(({className:X,...N},K)=>n3.createElement(x_,{ref:K,iconNode:G,className:r3(`lucide-${y_(qK(J))}`,`lucide-${J}`,X),...N}));return q.displayName=qK(J),q};var US=[["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"}]],b2=C0("circle-alert",US);var KS=[["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"}]],TJ=C0("activity",KS);var BS=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],CJ=C0("check",BS);var HS=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],OJ=C0("chevron-down",HS);var FS=[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]],IJ=C0("chevron-up",FS);var WS=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 6v6l4 2",key:"mmk7yg"}]],VJ=C0("clock",WS);var zS=[["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"}]],d7=C0("coins",zS);var MS=[["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"}]],AJ=C0("copy",MS);var wS=[["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"}]],EJ=C0("cpu",wS);var RS=[["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"}]],SJ=C0("folder",RS);var _S=[["path",{d:"m12 14 4-4",key:"9kzdfg"}],["path",{d:"M3.34 19a10 10 0 1 1 17.32 0",key:"19p75a"}]],DJ=C0("gauge",_S);var LS=[["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"}]],jJ=C0("hash",LS);var PS=[["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"}]],kJ=C0("inbox",PS);var TS=[["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"}]],vJ=C0("layout-dashboard",TS);var CS=[["path",{d:"M4 5h16",key:"1tepv9"}],["path",{d:"M4 12h16",key:"1lakjw"}],["path",{d:"M4 19h16",key:"1djgab"}]],bJ=C0("menu",CS);var OS=[["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"}]],fJ=C0("monitor",OS);var IS=[["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"}]],yJ=C0("moon",IS);var VS=[["path",{d:"M12 22v-5",key:"1ega77"}],["path",{d:"M15 8V2",key:"18g5xt"}],["path",{d:"M17 8a1 1 0 0 1 1 1v4a4 4 0 0 1-4 4h-4a4 4 0 0 1-4-4V9a1 1 0 0 1 1-1z",key:"1xoxul"}],["path",{d:"M9 8V2",key:"14iosj"}]],gJ=C0("plug",VS);var AS=[["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"}]],hJ=C0("refresh-cw",AS);var ES=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M8 14s1.5 2 4 2 4-2 4-2",key:"1y1vjs"}],["line",{x1:"9",x2:"9.01",y1:"9",y2:"9",key:"yxxnd0"}],["line",{x1:"15",x2:"15.01",y1:"9",y2:"9",key:"1p4y9e"}]],uJ=C0("smile",ES);var SS=[["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"}]],xJ=C0("star",SS);var DS=[["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"}]],mJ=C0("sun",DS);var jS=[["path",{d:"M16 7h6v6",key:"box55l"}],["path",{d:"m22 7-8.5 8.5-5-5L2 17",key:"1t1m79"}]],dJ=C0("trending-up",jS);var kS=[["path",{d:"M14.7 6.3a1 1 0 0 0 0 1.4l1.6 1.6a1 1 0 0 0 1.4 0l3.106-3.105c.32-.322.863-.22.983.218a6 6 0 0 1-8.259 7.057l-7.91 7.91a1 1 0 0 1-2.999-3l7.91-7.91a6 6 0 0 1 7.057-8.259c.438.12.54.662.219.984z",key:"1ngwbx"}]],pJ=C0("wrench",kS);var vS=[["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"}]],cJ=C0("zap",vS);var bS=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],p7=C0("x",bS);var UL=s(L1(),1);var lJ=[{id:"overview",label:"Overview",icon:vJ},{id:"requests",label:"Requests",icon:TJ},{id:"errors",label:"Errors",icon:b2},{id:"models",label:"Models",icon:EJ},{id:"providers",label:"Providers",icon:gJ},{id:"tools",label:"Tools",icon:pJ},{id:"costs",label:"Costs",icon:d7},{id:"behavior",label:"Behavior",shortLabel:"Behavior",icon:uJ},{id:"projects",label:"Projects",icon:SJ},{id:"gain",label:"Gain",icon:dJ}];var l6=s(U0(),1);function YK({activeSection:J,onSectionChange:G,className:q=""}){return l6.jsxDEV("aside",{className:`stats-nav-rail ${q}`,children:[l6.jsxDEV("div",{className:"stats-nav-rail-header",children:l6.jsxDEV("div",{className:"stats-logo-container",children:[l6.jsxDEV("span",{className:"stats-logo-text",children:"OH MY PI"},void 0,!1,void 0,this),l6.jsxDEV("span",{className:"stats-logo-subtext",children:"Observability"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this),l6.jsxDEV("nav",{className:"stats-nav-rail-menu",children:lJ.map((X)=>{let N=X.id===J,K=X.icon;return l6.jsxDEV("button",{type:"button",onClick:()=>G(X.id),className:"stats-nav-rail-item","data-active":N?"true":"false","aria-current":N?"page":void 0,children:[l6.jsxDEV(K,{size:16,className:"stats-nav-rail-item-icon"},void 0,!1,void 0,this),l6.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),l6.jsxDEV("div",{className:"stats-nav-rail-footer",children:l6.jsxDEV("span",{className:"stats-version-tag",children:"OMP Stats v1.0.0"},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}var XK=s(U0(),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 m_({value:J,onChange:G,className:q=""}){return XK.jsxDEV("div",{className:`stats-range-control ${q}`,role:"radiogroup","aria-label":"Select time range",children:yS.map((X)=>{let N=X.value===J;return XK.jsxDEV("button",{type:"button",role:"radio","aria-checked":N,"data-active":N?"true":"false",className:"stats-range-control-btn",onClick:()=>G(X.value),children:X.label},X.value,!1,void 0,this)})},void 0,!1,void 0,this)}var NK=s(L1(),1);class d_ extends Error{status;endpoint;constructor(J,G,q){super(q);this.name="ApiError",this.status=J,this.endpoint=G}}async function r6(J,G){let q=await fetch(J,G);if(!q.ok)throw new d_(q.status,J,`HTTP error ${q.status} on ${J}`);return q.json()}async function p_(J="24h",G){return r6(`/api/stats/overview?range=${encodeURIComponent(J)}`,{signal:G})}async function c_(J="24h",G){return r6(`/api/stats/model-dashboard?range=${encodeURIComponent(J)}`,{signal:G})}async function l_(J="24h",G){return r6(`/api/stats/costs?range=${encodeURIComponent(J)}`,{signal:G})}async function o3(J=50,G){return r6(`/api/stats/recent?limit=${J}`,{signal:G})}async function r_(J="24h",G=50,q){return r6(`/api/stats/errors?range=${encodeURIComponent(J)}&limit=${G}`,{signal:q})}async function s_(J,G){return r6(`/api/request/${J}`,{signal:G})}async function n_(J){return r6("/api/sync",{signal:J})}async function o_(J="24h",G){return r6(`/api/stats/behavior?range=${encodeURIComponent(J)}`,{signal:G})}async function a_(J="24h",G){return r6(`/api/stats/folders?range=${encodeURIComponent(J)}`,{signal:G})}async function i_(J="24h",G,q){let X=new URLSearchParams({range:J});if(G)X.set("project",G);return r6(`/api/stats/gain?${X}`,{signal:q})}async function t_(J="24h",G){return r6(`/api/stats/tools?range=${encodeURIComponent(J)}`,{signal:G})}async function e_(J="24h",G){return r6(`/api/stats/providers?range=${encodeURIComponent(J)}`,{signal:G})}var rJ=s(U0(),1);function $L({onSyncStart:J,onSyncComplete:G,className:q=""}){let[X,N]=NK.useState(!1),[K,H]=NK.useState(null),F=async()=>{if(X)return;if(N(!0),H(null),J)J();try{let W=await n_(),M={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: ${M.processed} new request${M.processed===1?"":"s"} found.`}),G)G({success:!0,data:M})}catch(W){let M=W instanceof Error?W.message:String(W);if(H({type:"error",message:`Sync failed: ${M}`}),G)G({success:!1,error:M})}finally{N(!1)}};return rJ.jsxDEV("div",{className:`stats-sync-container ${q}`,children:[K&&rJ.jsxDEV("span",{className:"stats-sync-status-msg","data-type":K.type,children:K.message},void 0,!1,void 0,this),rJ.jsxDEV("button",{type:"button",onClick:F,disabled:X,className:"stats-button stats-button-primary stats-sync-btn","aria-busy":X,children:[rJ.jsxDEV(hJ,{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 a3=s(L1(),1),ZL="omp-stats-theme",JL="(prefers-color-scheme: dark)";function gS(){if(typeof localStorage>"u")return"system";let J=localStorage.getItem(ZL);return J==="light"||J==="dark"||J==="system"?J:"system"}function QL(){if(typeof window>"u")return"dark";return window.matchMedia(JL).matches?"dark":"light"}var l7=gS(),sJ=l7==="system"?QL():l7,UK=new Set;function GL(){for(let J of UK)J()}function KK(){if(sJ=l7==="system"?QL():l7,typeof document<"u")document.documentElement.dataset.theme=sJ,document.documentElement.style.colorScheme=sJ}if(typeof window<"u")KK(),window.matchMedia(JL).addEventListener("change",()=>{if(l7==="system")KK(),GL()});function hS(J){if(l7=J,typeof localStorage<"u")localStorage.setItem(ZL,J);KK(),GL()}function BK(J){return UK.add(J),()=>UK.delete(J)}function z5(){return a3.useSyncExternalStore(BK,()=>sJ,()=>"dark")}function qL(){let J=a3.useSyncExternalStore(BK,()=>l7,()=>"system"),G=a3.useSyncExternalStore(BK,()=>sJ,()=>"dark");return{preference:J,resolved:G,setPreference:hS}}var HK=s(U0(),1),uS={system:"light",light:"dark",dark:"system"},xS={system:fJ,light:mJ,dark:yJ},YL={system:"System theme",light:"Light theme",dark:"Dark theme"};function XL(){let{preference:J,setPreference:G}=qL(),q=xS[J];return HK.jsxDEV("button",{type:"button",className:"stats-theme-toggle",onClick:()=>G(uS[J]),"aria-label":`${YL[J]} (click to switch)`,title:`${YL[J]} — click to switch`,children:HK.jsxDEV(q,{size:16},void 0,!1,void 0,this)},void 0,!1,void 0,this)}var s6=s(U0(),1);function NL({activeSection:J,range:G,onRangeChange:q,updatedAt:X,onSyncStart:N,onSyncComplete:K,onMenuToggle:H,className:F=""}){let M=lJ.find((_)=>_.id===J)?.label||"Observability",R=(_)=>{if(!_)return"Not updated";return`Updated ${new Date(_).toLocaleTimeString([],{hour:"2-digit",minute:"2-digit",second:"2-digit"})}`};return s6.jsxDEV("header",{className:`stats-top-bar ${F}`,children:[s6.jsxDEV("div",{className:"stats-top-bar-left",children:[H&&s6.jsxDEV("button",{type:"button",onClick:H,className:"stats-mobile-menu-btn","aria-label":"Open navigation menu",children:s6.jsxDEV(bJ,{size:20},void 0,!1,void 0,this)},void 0,!1,void 0,this),s6.jsxDEV("h1",{className:"stats-page-title",children:M},void 0,!1,void 0,this)]},void 0,!0,void 0,this),s6.jsxDEV("div",{className:"stats-top-bar-right",children:[s6.jsxDEV("div",{className:"stats-top-bar-meta",children:s6.jsxDEV("span",{className:"stats-last-updated",title:X?new Date(X).toLocaleString():void 0,children:R(X)},void 0,!1,void 0,this)},void 0,!1,void 0,this),s6.jsxDEV(m_,{value:G,onChange:q},void 0,!1,void 0,this),s6.jsxDEV(XL,{},void 0,!1,void 0,this),s6.jsxDEV($L,{onSyncStart:N,onSyncComplete:K},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)}var j5=s(U0(),1);function KL({activeSection:J,onSectionChange:G,range:q,onRangeChange:X,updatedAt:N,onSyncStart:K,onSyncComplete:H,children:F}){let[W,M]=UL.useState(!1),R=(_)=>{G(_),M(!1)};return j5.jsxDEV("div",{className:"stats-app-container",children:[j5.jsxDEV(YK,{activeSection:J,onSectionChange:R,className:"stats-desktop-nav"},void 0,!1,void 0,this),W&&j5.jsxDEV("div",{className:"stats-mobile-drawer-overlay",onClick:()=>M(!1),role:"presentation",children:j5.jsxDEV("div",{className:"stats-mobile-drawer",onClick:(_)=>_.stopPropagation(),role:"dialog","aria-modal":"true","aria-label":"Navigation menu",children:[j5.jsxDEV("div",{className:"stats-mobile-drawer-header",children:[j5.jsxDEV("div",{className:"stats-logo-container",children:[j5.jsxDEV("span",{className:"stats-logo-text",children:"OH MY PI"},void 0,!1,void 0,this),j5.jsxDEV("span",{className:"stats-logo-subtext",children:"Observability"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),j5.jsxDEV("button",{type:"button",onClick:()=>M(!1),className:"stats-drawer-close-btn","aria-label":"Close navigation menu",children:j5.jsxDEV(p7,{size:18},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),j5.jsxDEV(YK,{activeSection:J,onSectionChange:R,className:"stats-mobile-nav"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this),j5.jsxDEV("div",{className:"stats-main-pane",children:[j5.jsxDEV(NL,{activeSection:J,range:q,onRangeChange:X,updatedAt:N,onSyncStart:K,onSyncComplete:H,onMenuToggle:()=>M(!0)},void 0,!1,void 0,this),j5.jsxDEV("main",{className:"stats-content-area",children:j5.jsxDEV("div",{className:"stats-content-inner",children:F},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)}var S8=s(L1(),1),mS=["overview","requests","errors","models","providers","tools","costs","behavior","projects","gain"],BL=["1h","24h","7d","30d","90d","all"];function FK(J){let G=J.replace(/^#\/?/,""),[q,X]=G.split("?"),N=mS.includes(q)?q:"overview",K="24h";if(X){let F=new URLSearchParams(X).get("range");if(BL.includes(F))K=F}return{section:N,range:K}}function HL(){let[J,G]=S8.useState(()=>FK(window.location.hash));S8.useEffect(()=>{let K=()=>{G(FK(window.location.hash))};return window.addEventListener("hashchange",K),()=>{window.removeEventListener("hashchange",K)}},[]);let q=S8.useCallback((K,H)=>{window.location.hash=`/${K}?range=${H}`},[]),X=S8.useCallback((K)=>{q(K,J.range)},[J.range,q]),N=S8.useCallback((K)=>{let H=BL.includes(K)?K:"24h";q(J.section,H)},[J.section,q]);return S8.useEffect(()=>{let K=window.location.hash,H=FK(K),F=`#/${H.section}?range=${H.range}`;if(K!==F)window.location.hash=`/${H.section}?range=${H.range}`},[]),{section:J.section,setSection:X,range:J.range,setRange:N}}var FL=["January","February","March","April","May","June","July","August","September","October","November","December"],WL=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dS=["MMMM","yyyy","EEEE","MMM","EEE","yy","MM","dd","HH","hh","mm","ss","M","d","H","h","m","s","a"];function f2(J,G=2){return String(J).padStart(G,"0")}function pS(J,G){let q=J.getMonth(),X=J.getDay(),N=J.getHours(),K=N%12||12;switch(G){case"yyyy":return f2(J.getFullYear(),4);case"yy":return f2(J.getFullYear()%100);case"MMMM":return FL[q];case"MMM":return FL[q].slice(0,3);case"MM":return f2(q+1);case"M":return String(q+1);case"dd":return f2(J.getDate());case"d":return String(J.getDate());case"EEEE":return WL[X];case"EEE":return WL[X].slice(0,3);case"HH":return f2(N);case"H":return String(N);case"hh":return f2(K);case"h":return String(K);case"mm":return f2(J.getMinutes());case"m":return String(J.getMinutes());case"ss":return f2(J.getSeconds());case"s":return String(J.getSeconds());case"a":return N<12?"AM":"PM"}}function ML(J){let G=J instanceof Date?new Date(J.getTime()):new Date(J);if(Number.isNaN(G.getTime()))throw RangeError("Invalid time value");return G}function K4(J,G){let q=ML(J),X="";for(let N=0;N<G.length;){if(G[N]==="'"){if(G[N+1]==="'"){X+="'",N+=2;continue}N++;while(N<G.length){if(G[N]!=="'"){X+=G[N++];continue}if(G[N+1]==="'"){X+="'",N+=2;continue}N++;break}continue}let K=G.slice(N),H=dS.find((W)=>K.startsWith(W));if(H){X+=pS(q,H),N+=H.length;continue}let F=G[N++];if(/[A-Za-z]/.test(F))throw RangeError(`Format string contains an unescaped latin alphabet character \`${F}\``);X+=F}return X}function y2(J,G){return`${J} ${J===1?G:`${G}s`}`}function cS(J,G){let q=(G.getFullYear()-J.getFullYear())*12+G.getMonth()-J.getMonth();if(q===0)return 0;let X=new Date(J);X.setDate(1),X.setFullYear(J.getFullYear(),J.getMonth()+q,1);let N=new Date(X.getFullYear(),X.getMonth()+1,0).getDate();if(X.setDate(Math.min(J.getDate(),N)),X.getTime()>G.getTime())q--;return q}function zL(J,G){let q=(G.getTime()-J.getTime())/1000,X=(G.getTimezoneOffset()-J.getTimezoneOffset())*60,N=Math.round((q-X)/60);if(N<2)return N===0?"less than a minute":"1 minute";if(N<45)return y2(N,"minute");if(N<90)return"about 1 hour";if(N<1440)return`about ${y2(Math.round(N/60),"hour")}`;if(N<2520)return"1 day";if(N<43200)return y2(Math.round(N/1440),"day");if(N<86400)return`about ${y2(Math.round(N/43200),"month")}`;let K=cS(J,G);if(K<12)return y2(Math.round(N/43200),"month");let H=Math.trunc(K/12),F=K%12;if(F<3)return`about ${y2(H,"year")}`;if(F<9)return`over ${y2(H,"year")}`;return`almost ${y2(H+1,"year")}`}function wL(J,G={}){let q=ML(J),X=new Date(Date.now()),N=q.getTime()>X.getTime(),K=N?zL(X,q):zL(q,X);if(!G.addSuffix)return K;return N?`in ${K}`:`${K} ago`}var X5=s(L1(),1);var WK=s(RL(),1),V6=s(L1(),1);var LL="label";function _L(J,G){if(typeof J==="function")J(G);else if(J)J.current=G}function rS(J,G){let q=J.options;if(q&&G)Object.assign(q,G)}function PL(J,G){J.labels=G}function TL(J,G,q=LL){let X=[];J.datasets=G.map((N)=>{let K=J.datasets.find((H)=>H[q]===N[q]);if(!K||!N.data||X.includes(K))return{...N};return X.push(K),Object.assign(K,N),K})}function sS(J,G=LL){let q={labels:[],datasets:[]};return PL(q,J.labels),TL(q,J.datasets,G),q}function nS(J,G){let{height:q=150,width:X=300,redraw:N=!1,datasetIdKey:K,type:H,data:F,options:W,plugins:M=[],fallbackContent:R,updateMode:_,...P}=J,O=V6.useRef(null),E=V6.useRef(null),V=()=>{if(!O.current)return;E.current=new x7(O.current,{type:H,data:sS(F,K),options:W&&{...W},plugins:M}),_L(G,E.current)},I=()=>{if(_L(G,null),E.current)E.current.destroy(),E.current=null};return V6.useEffect(()=>{if(!N&&E.current&&W)rS(E.current,W)},[N,W]),V6.useEffect(()=>{if(!N&&E.current)PL(E.current.config.data,F.labels)},[N,F.labels]),V6.useEffect(()=>{if(!N&&E.current&&F.datasets)TL(E.current.config.data,F.datasets,K)},[N,F.datasets]),V6.useEffect(()=>{if(!E.current)return;if(N)I(),setTimeout(V);else E.current.update(_)},[N,W,F.labels,F.datasets,_]),V6.useEffect(()=>{if(!E.current)return;I(),setTimeout(V)},[H]),V6.useEffect(()=>{return V(),()=>I()},[]),WK.jsx("canvas",{ref:O,role:"img",height:q,width:X,...P,children:R})}var oS=V6.forwardRef(nS);function CL(J,G){return x7.register(G),V6.forwardRef((q,X)=>WK.jsx(oS,{...q,ref:X,type:J}))}var k5=CL("line",nU),g2=CL("bar",sU);var K1=["#ed4abf","#9b4dff","#5ad8e6","#62d394","#c77dff","#ff8fd1","#f5c14b","#ff6b7d"],s1={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 c4(J){let{chartTheme:G,showLegend:q,defaultLabel:X,formatValue:N,footer:K}=J;return{legend:{display:q,position:"top",align:"start",labels:{color:G.legendLabel,usePointStyle:!0,padding:16,font:{size:12},boxWidth:8}},tooltip:{backgroundColor:G.tooltipBackground,titleColor:G.tooltipTitle,bodyColor:G.tooltipBody,borderColor:G.tooltipBorder,borderWidth:1,padding:12,cornerRadius:8,callbacks:{label:(H)=>{let F=H.dataset.label??X,W=H.parsed.y??0;return`${F}: ${N(W)}`},...K?{footer:K}:{}}}}}function l4(J){let{chartTheme:G,formatY:q}=J,X={grid:{color:G.grid,drawBorder:!1},ticks:{color:G.tick,font:{size:11}}},N={...X,ticks:{...X.ticks,callback:(K)=>q(Number(K))},min:0};return{sharedScaleBase:X,yScale:N}}function M$(J){return{borderColor:J,backgroundColor:`${J}20`,fill:!0,tension:0,pointRadius:3,pointHoverRadius:4,borderWidth:2}}function s7(J){return{backgroundColor:J,borderColor:J,borderWidth:0,borderRadius:4,maxBarThickness:56}}function h2(J,G){return J.datasets.map((q,X)=>({label:q.label,data:q.data,...G(X)}))}function i3(J,G,q){if(J.length===0)return{labels:[],datasets:[]};let{initBucket:X,accumulate:N,bucketToValue:K}=q,H=new Map;for(let W of J){let M=H.get(W.timestamp)??X();N(M,W),H.set(W.timestamp,M)}let F=[...H.entries()].sort((W,M)=>W[0]-M[0]);return{labels:F.map(([W])=>K4(new Date(W),"MMM d")),datasets:[{label:G,data:F.map(([,W])=>K(W))}]}}function w$(J,G){if(J.length===0)return{labels:[],datasets:[]};let{topN:q=5,rankWeight:X,initBucket:N,accumulate:K,bucketToValue:H}=G,F=new Map;for(let j of J){let h=`${j.model}::${j.provider}`,p=F.get(h);if(p)p.weight+=X(j);else F.set(h,{model:j.model,provider:j.provider,weight:X(j)})}let M=[...F.entries()].sort((j,h)=>h[1].weight-j[1].weight).slice(0,q),R=new Set(M.map(([j])=>j)),_=new Map;for(let[,{model:j}]of M)_.set(j,(_.get(j)??0)+1);let P=new Map;for(let[j,{model:h,provider:p}]of M)P.set(j,(_.get(h)??0)>1?`${h} (${p})`:h);let O=[...new Set(J.map((j)=>j.timestamp))].sort((j,h)=>j-h),E=M.map(([j])=>P.get(j)??j);if(J.some((j)=>!R.has(`${j.model}::${j.provider}`)))E.push("Other");let I=new Map;for(let j of O)I.set(j,{});for(let j of J){let h=`${j.model}::${j.provider}`,p=R.has(h)?P.get(h)??j.model:"Other",n=I.get(j.timestamp);if(!n)continue;let a=n[p]??N();K(a,j),n[p]=a}return{labels:O.map((j)=>K4(new Date(j),"MMM d")),datasets:E.map((j)=>({label:j,data:O.map((h)=>{let p=I.get(h)?.[j];return p?H(p):0})}))}}var b1=s(U0(),1);function D8(J){return{borderColor:J,backgroundColor:"transparent",tension:0.4,pointRadius:0,borderWidth:2}}function t3({timestamps:J,values:G,color:q}){let X={labels:J.map((K)=>K4(new Date(K),"MMM d")),datasets:[{data:G,...D8(q)}]};return b1.jsxDEV(k5,{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 e3(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 OL(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 IL(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 $q({title:J,subtitle:G,children:q}){return b1.jsxDEV("div",{className:"stats-panel overflow-hidden",children:[b1.jsxDEV("div",{className:"px-5 py-4 border-b border-[var(--border-subtle)]",children:[b1.jsxDEV("h3",{className:"text-sm font-semibold text-[var(--text-primary)]",children:J},void 0,!1,void 0,this),G?b1.jsxDEV("p",{className:"text-xs text-[var(--text-muted)] mt-1",children:G},void 0,!1,void 0,this):null]},void 0,!0,void 0,this),b1.jsxDEV("div",{className:"overflow-x-auto",children:q},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function aS(J){if(J==="right")return"text-right";if(J==="center")return"text-center";return""}function Zq({columns:J,gridTemplate:G}){return b1.jsxDEV("div",{className:"grid gap-3 px-5 py-3 text-[var(--text-muted)] text-xs uppercase tracking-wider font-semibold",style:{gridTemplateColumns:G},children:[J.map((q)=>b1.jsxDEV("div",{className:aS(q.align),children:q.label},q.label,!1,void 0,this)),b1.jsxDEV("div",{},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function Jq({children:J}){return b1.jsxDEV("div",{className:"max-h-[calc(100vh-300px)] overflow-y-auto",children:J},void 0,!1,void 0,this)}function Qq({model:J,provider:G}){return b1.jsxDEV("div",{children:[b1.jsxDEV("div",{className:"font-medium text-[var(--text-primary)]",children:J},void 0,!1,void 0,this),b1.jsxDEV("div",{className:"text-xs text-[var(--text-muted)]",children:G},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function Gq({gridTemplate:J,cells:G,trendCell:q,isExpanded:X,onToggle:N,expandedContent:K}){return b1.jsxDEV("div",{className:"border-t border-[var(--border-subtle)]",children:[b1.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:b1.jsxDEV("div",{className:"grid gap-3 items-center",style:{gridTemplateColumns:J},children:[G,b1.jsxDEV("div",{className:"h-10",children:q},void 0,!1,void 0,this),b1.jsxDEV("div",{className:"flex justify-center text-[var(--text-muted)]",children:X?b1.jsxDEV(IJ,{size:16},void 0,!1,void 0,this):b1.jsxDEV(OJ,{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?b1.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 qq(){return b1.jsxDEV("div",{className:"text-[var(--text-muted)] text-center text-sm",children:"-"},void 0,!1,void 0,this)}function Yq({message:J="No data available"}){return b1.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 S0(J){return J.toLocaleString()}function X1(J){return J.toLocaleString(void 0,{notation:"compact"})}function z1(J,G){if(J===0)return"$0";let q=G!==void 0?G:J>0&&J<0.01?4:2;return`$${J.toLocaleString(void 0,{minimumFractionDigits:q,maximumFractionDigits:q})}`}function x1(J,G=1){return`${(J*100).toFixed(G)}%`}function v5(J,G){if(J===null)return"-";let q=J/1000,X=G!==void 0?G:q<1?2:1;return`${q.toFixed(X)}s`}function Xq(J){if(J===null)return"-";return J.toFixed(1)}function G6(J){return wL(new Date(J),{addSuffix:!0})}function zK(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 C5=s(L1(),1),u2=new Map,iS=64;function n1(J,G,q){let X=JSON.stringify(J),[N,K]=C5.useState(()=>u2.get(X)?.data??null),[H,F]=C5.useState(null),[W,M]=C5.useState(()=>!u2.has(X)),[R,_]=C5.useState(!1),[P,O]=C5.useState(()=>u2.get(X)?.updatedAt??null),E=C5.useRef(G);E.current=G;let V=C5.useRef(X);V.current=X;let I=q?.enabled??!0,j=q?.pollMs,h=C5.useRef(null),p=C5.useRef(!1);p.current=N!==null;let n=C5.useCallback(async(Q0)=>{if(h.current)h.current.abort();let t=new AbortController;if(h.current=t,Q0)_(!0);else M(!0),K(null);F(null);try{let i=await E.current(t.signal);if(t.signal.aborted)return;if(u2.set(V.current,{data:i,updatedAt:Date.now()}),u2.size>iS){let X0=u2.keys().next().value;if(X0!==void 0)u2.delete(X0)}K(i),O(Date.now()),F(null)}catch(i){if(t.signal.aborted)return;F(i instanceof Error?i:Error(String(i)))}finally{if(!t.signal.aborted){if(M(!1),_(!1),h.current===t)h.current=null}}},[]);C5.useEffect(()=>{if(!I){M(!1),_(!1);return}let Q0=u2.get(X);if(Q0)K(Q0.data),O(Q0.updatedAt),M(!1),n(!0);else n(p.current);return()=>{if(h.current)h.current.abort(),h.current=null}},[X,I,n]),C5.useEffect(()=>{if(!I||!j)return;let Q0=setInterval(()=>{if(document.hidden)return;n(!0)},j);return()=>{clearInterval(Q0)}},[I,j,n]);let a=C5.useCallback(async()=>{await n(!0)},[n]);return{data:N,error:H,loading:W,refreshing:R,refetch:a,updatedAt:P}}var VL=3600000,Nq=24*VL,tS=300000,AL={"1h":{windowLabel:"the last hour",trendLabel:"1h Trend",bucketMs:tS,bucketCount:12,tickFormat:"HH:mm"},"24h":{windowLabel:"the last 24 hours",trendLabel:"24h Trend",bucketMs:VL,bucketCount:24,tickFormat:"HH:mm"},"7d":{windowLabel:"the last 7 days",trendLabel:"7d Trend",bucketMs:Nq,bucketCount:7,tickFormat:"MMM d"},"30d":{windowLabel:"the last 30 days",trendLabel:"30d Trend",bucketMs:Nq,bucketCount:30,tickFormat:"MMM d"},"90d":{windowLabel:"the last 90 days",trendLabel:"90d Trend",bucketMs:Nq,bucketCount:90,tickFormat:"MMM d"},all:{windowLabel:"all time",trendLabel:"Trend",bucketMs:Nq,bucketCount:0,tickFormat:"MMM d"}};function n7(J){return AL[J]}function nJ(J,G){return K4(new Date(J),AL[G].tickFormat)}var eS=["main","subagent","advisor"];function Uq(J){return J.totalInputTokens+J.totalOutputTokens+J.totalCacheReadTokens+J.totalCacheWriteTokens}function EL(J){let G=new Map;for(let H of J)G.set(H.agentType,H);let q=eS.map((H)=>G.get(H)).filter((H)=>H!==void 0),X=q.reduce((H,F)=>H+Uq(F),0),N=q.reduce((H,F)=>H+F.totalCost,0),K=q.map((H)=>{let F=Uq(H);return{agentType:H.agentType,tokens:F,requests:H.totalRequests,cost:H.totalCost,share:X>0?F/X:0}});return{totalTokens:X,totalCost:N,segments:K}}function SL(J){let G=J.reduce((F,W)=>F+W.cost,0),q=new Set(J.map((F)=>F.timestamp)).size,X=q>0?G/q:0,N=new Map;for(let F of J)N.set(F.model,(N.get(F.model)??0)+F.cost);let K="",H=0;for(let[F,W]of N)if(W>H)K=F,H=W;return{totalCost:G,avgDailyCost:X,topModelName:K,topModelCost:H}}function DL(J,G){if(J.length===0)return new Map;let q=n7(G),X=q.bucketMs,N=q.bucketCount,K=N>0?(()=>{let W=J.reduce((_,P)=>Math.max(_,P.timestamp),0),R=(W>0?W:Math.floor(Date.now()/X)*X)-(N-1)*X;return Array.from({length:N},(_,P)=>R+P*X)})():Array.from(new Set(J.map((W)=>W.timestamp))).sort((W,M)=>W-M),H=new Map(K.map((W,M)=>[W,M])),F=new Map;for(let W of J){let M=`${W.model}::${W.provider}`,R=F.get(M);if(!R)R={label:`${W.model} (${W.provider})`,data:K.map((P)=>({timestamp:P,avgTtftSeconds:null,avgTokensPerSecond:null,requests:0}))},F.set(M,R);let _=H.get(W.timestamp);if(_===void 0)continue;R.data[_]={timestamp:W.timestamp,avgTtftSeconds:W.avgTtft!==null?W.avgTtft/1000:null,avgTokensPerSecond:W.avgTokensPerSecond,requests:W.requests}}return F}function jL(J,G){let q=J.totalNegation+J.totalRepetition+J.totalBlame,X=new Map;for(let K of G){let H=`${K.model}::${K.provider}`,F=X.get(H),W=K.yelling+K.profanity+K.anguish+K.negation+K.repetition+K.blame;if(F)F.score+=W;else X.set(H,{model:K.model,provider:K.provider,score:W})}let N=null;for(let K of X.values())if(!N||K.score>N.score)N=K;return{totalMessages:J.totalMessages,totalYelling:J.totalYelling,totalProfanity:J.totalProfanity,totalAnguish:J.totalAnguish,totalFrustration:q,highestFrictionModel:N}}function kL(J){let G=[...J].sort((N,K)=>{if(K.totalCost!==N.totalCost)return K.totalCost-N.totalCost;return K.totalRequests-N.totalRequests}),q=G.reduce((N,K)=>Math.max(N,K.totalCost),0),X=G.reduce((N,K)=>Math.max(N,K.totalRequests),0);return G.map((N)=>({...N,costPercentage:q>0?N.totalCost/q*100:0,requestsPercentage:X>0?N.totalRequests/X*100:0}))}function vL(J){let G=J.reduce((q,X)=>Math.max(q,X.calls),0);return J.map((q)=>({...q,errorRate:q.calls>0?q.errors/q.calls:0,callsPercentage:G>0?q.calls/G*100:0}))}var Kq=s(U0(),1);function R$({message:J="No data available",icon:G=kJ,className:q=""}){return Kq.jsxDEV("div",{className:`stats-empty-state ${q}`,children:[Kq.jsxDEV(G,{size:24,className:"stats-empty-state-icon","aria-hidden":"true"},void 0,!1,void 0,this),Kq.jsxDEV("p",{className:"stats-empty-state-message",children:J},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}var _$=s(U0(),1);function bL({error:J,onRetry:G,className:q=""}){return _$.jsxDEV("div",{className:`stats-error-state ${q}`,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),J&&_$.jsxDEV("p",{className:"stats-error-state-message",children:J.message},void 0,!1,void 0,this),G&&_$.jsxDEV("button",{type:"button",onClick:G,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 fL=s(U0(),1);function q6({variant:J="text",width:G,height:q,className:X=""}){let N={width:G!==void 0?typeof G==="number"?`${G}px`:G:void 0,height:q!==void 0?typeof q==="number"?`${q}px`:q:void 0};return fL.jsxDEV("div",{className:`stats-skeleton ${X}`,"data-variant":J,style:N},void 0,!1,void 0,this)}var A6=s(U0(),1);function f1({loading:J,error:G,data:q,empty:X=!1,emptyText:N="No data available",fallback:K,onRetry:H,children:F}){if(G&&q===null)return A6.jsxDEV(bL,{error:G,onRetry:H},void 0,!1,void 0,this);if(J&&q===null){if(K)return A6.jsxDEV(A6.Fragment,{children:K},void 0,!1,void 0,this);return A6.jsxDEV("div",{className:"stats-boundary-skeleton",children:[A6.jsxDEV(q6,{variant:"text",width:"60%",height:24,className:"mb-4"},void 0,!1,void 0,this),A6.jsxDEV(q6,{variant:"rect",width:"100%",height:160,className:"mb-4"},void 0,!1,void 0,this),A6.jsxDEV(q6,{variant:"text",width:"80%",height:20,className:"mb-2"},void 0,!1,void 0,this),A6.jsxDEV(q6,{variant:"text",width:"40%",height:20},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}if(!J&&(X||q===null))return A6.jsxDEV(R$,{message:N},void 0,!1,void 0,this);return A6.jsxDEV(A6.Fragment,{children:F},void 0,!1,void 0,this)}var Y6=s(U0(),1);function X6({columns:J,data:G,keyExtractor:q,onRowClick:X,renderMobileCard:N,emptyText:K="No data available"}){let H=(F,W)=>{if(X&&(F.key==="Enter"||F.key===" "))F.preventDefault(),X(W)};if(G.length===0)return Y6.jsxDEV("div",{className:"stats-table-empty",children:K},void 0,!1,void 0,this);return Y6.jsxDEV("div",{className:"stats-table-wrapper",children:[N&&Y6.jsxDEV("div",{className:"stats-table-mobile-only",children:Y6.jsxDEV("div",{className:"stats-table-mobile-list",children:G.map((F)=>{let W=String(q(F));return Y6.jsxDEV("div",{className:"stats-table-mobile-card-wrapper",children:N(F,X?()=>X(F):void 0)},W,!1,void 0,this)})},void 0,!1,void 0,this)},void 0,!1,void 0,this),Y6.jsxDEV("div",{className:N?"stats-table-desktop-only":"stats-table-container",children:Y6.jsxDEV("table",{className:"stats-table",children:[Y6.jsxDEV("thead",{children:Y6.jsxDEV("tr",{children:J.map((F)=>{let W=["stats-table-th",F.numeric?"stats-text-right":"stats-text-left",F.className||""].filter(Boolean).join(" ");return Y6.jsxDEV("th",{className:W,children:F.header},F.key,!1,void 0,this)})},void 0,!1,void 0,this)},void 0,!1,void 0,this),Y6.jsxDEV("tbody",{children:G.map((F)=>{let W=String(q(F)),M=typeof X==="function",R=["stats-table-tr",M?"stats-table-tr-clickable":""].filter(Boolean).join(" ");return Y6.jsxDEV("tr",{className:R,onClick:M?()=>X(F):void 0,onKeyDown:M?(_)=>H(_,F):void 0,tabIndex:M?0:void 0,role:M?"button":void 0,children:J.map((_)=>{let P=["stats-table-td",_.numeric?"stats-text-right":"stats-text-left",_.className||""].filter(Boolean).join(" ");return Y6.jsxDEV("td",{className:P,children:_.render?_.render(F):F[_.key]},_.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 o7=s(L1(),1),n6=s(U0(),1);function MK({data:J,title:G,initialCollapsed:q=!1}){let[X,N]=o7.useState(q),[K,H]=o7.useState(!1),F=o7.useRef(0),W=JSON.stringify(J,null,2);return o7.useEffect(()=>()=>window.clearTimeout(F.current),[]),n6.jsxDEV("div",{className:"stats-json-block",children:[n6.jsxDEV("div",{className:"stats-json-block-header",onClick:()=>N(!X),onKeyDown:(_)=>{if(_.key==="Enter"||_.key===" ")_.preventDefault(),N(!X)},tabIndex:0,role:"button","aria-expanded":!X,children:[n6.jsxDEV("span",{className:"stats-json-block-title",children:G||"JSON"},void 0,!1,void 0,this),n6.jsxDEV("div",{className:"stats-json-actions",children:[n6.jsxDEV("button",{type:"button",className:"stats-json-copy-btn",onClick:async(_)=>{_.stopPropagation();try{await navigator.clipboard.writeText(W),H(!0),window.clearTimeout(F.current),F.current=window.setTimeout(()=>H(!1),1500)}catch{}},"aria-label":K?"Copied to clipboard":"Copy JSON to clipboard",children:[K?n6.jsxDEV(CJ,{size:13},void 0,!1,void 0,this):n6.jsxDEV(AJ,{size:13},void 0,!1,void 0,this),K?"Copied":"Copy"]},void 0,!0,void 0,this),n6.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&&n6.jsxDEV("div",{className:"stats-json-block-content-wrapper",children:n6.jsxDEV("pre",{className:"stats-json-block-content",children:n6.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 n0=s(U0(),1);function yL({stats:J}){let G=Uq(J);return n0.jsxDEV("div",{className:"stats-metric-cluster",children:[n0.jsxDEV("div",{className:"stats-metric-primary-grid",children:[n0.jsxDEV("div",{className:"stats-metric-card primary",children:[n0.jsxDEV("div",{className:"stats-metric-label",children:"Total Cost"},void 0,!1,void 0,this),n0.jsxDEV("div",{className:"stats-metric-value",children:z1(J.totalCost,J.totalCost>0&&J.totalCost<0.01?4:2)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),n0.jsxDEV("div",{className:"stats-metric-card primary",children:[n0.jsxDEV("div",{className:"stats-metric-label",children:"Requests"},void 0,!1,void 0,this),n0.jsxDEV("div",{className:"stats-metric-value",children:S0(J.totalRequests)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),n0.jsxDEV("div",{className:"stats-metric-card primary",children:[n0.jsxDEV("div",{className:"stats-metric-label",children:"Cache Rate"},void 0,!1,void 0,this),n0.jsxDEV("div",{className:"stats-metric-value",children:x1(J.cacheRate)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),n0.jsxDEV("div",{className:"stats-metric-card primary",children:[n0.jsxDEV("div",{className:"stats-metric-label",children:"Error Rate"},void 0,!1,void 0,this),n0.jsxDEV("div",{className:"stats-metric-value",children:x1(J.errorRate)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),n0.jsxDEV("div",{className:"stats-metric-secondary-grid",children:[n0.jsxDEV("div",{className:"stats-metric-card secondary",title:"Conversation input not served from cache",children:[n0.jsxDEV("div",{className:"stats-metric-label",children:"Uncached Input"},void 0,!1,void 0,this),n0.jsxDEV("div",{className:"stats-metric-value",children:X1(J.totalInputTokens)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),n0.jsxDEV("div",{className:"stats-metric-card secondary",title:"Conversation input read from the prompt cache",children:[n0.jsxDEV("div",{className:"stats-metric-label",children:"Cache Read"},void 0,!1,void 0,this),n0.jsxDEV("div",{className:"stats-metric-value",children:X1(J.totalCacheReadTokens)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),n0.jsxDEV("div",{className:"stats-metric-card secondary",children:[n0.jsxDEV("div",{className:"stats-metric-label",children:"Output Tokens"},void 0,!1,void 0,this),n0.jsxDEV("div",{className:"stats-metric-value",children:X1(J.totalOutputTokens)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),n0.jsxDEV("div",{className:"stats-metric-card secondary",title:"Uncached input + cache reads + cache writes + output",children:[n0.jsxDEV("div",{className:"stats-metric-label",children:"Conversation Total"},void 0,!1,void 0,this),n0.jsxDEV("div",{className:"stats-metric-value",children:X1(G)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),n0.jsxDEV("div",{className:"stats-metric-card secondary",children:[n0.jsxDEV("div",{className:"stats-metric-label",children:"Premium Requests"},void 0,!1,void 0,this),n0.jsxDEV("div",{className:"stats-metric-value",children:S0(J.totalPremiumRequests)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),n0.jsxDEV("div",{className:"stats-metric-card secondary",children:[n0.jsxDEV("div",{className:"stats-metric-label",children:"Tokens/s"},void 0,!1,void 0,this),n0.jsxDEV("div",{className:"stats-metric-value",children:Xq(J.avgTokensPerSecond)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),n0.jsxDEV("div",{className:"stats-metric-card secondary",children:[n0.jsxDEV("div",{className:"stats-metric-label",children:"Avg Latency"},void 0,!1,void 0,this),n0.jsxDEV("div",{className:"stats-metric-value",children:v5(J.avgDuration)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),n0.jsxDEV("div",{className:"stats-metric-card secondary",children:[n0.jsxDEV("div",{className:"stats-metric-label",children:"Avg TTFT"},void 0,!1,void 0,this),n0.jsxDEV("div",{className:"stats-metric-value",children:v5(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 x2=s(U0(),1);function q1({title:J,subtitle:G,actions:q,children:X,className:N="",...K}){return x2.jsxDEV("div",{className:`stats-panel ${N}`,...K,children:[(J||G||q)&&x2.jsxDEV("div",{className:"stats-panel-header",children:[x2.jsxDEV("div",{className:"stats-panel-header-titles",children:[J&&x2.jsxDEV("h3",{className:"stats-panel-title",children:J},void 0,!1,void 0,this),G&&x2.jsxDEV("p",{className:"stats-panel-subtitle",children:G},void 0,!1,void 0,this)]},void 0,!0,void 0,this),q&&x2.jsxDEV("div",{className:"stats-panel-actions",children:q},void 0,!1,void 0,this)]},void 0,!0,void 0,this),x2.jsxDEV("div",{className:"stats-panel-body",children:X},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}var r4=s(L1(),1);var gL=s(U0(),1);function O5({variant:J,children:G,className:q=""}){return gL.jsxDEV("span",{className:`stats-status-pill ${q}`,"data-variant":J,children:G},void 0,!1,void 0,this)}var M0=s(U0(),1);function hL({id:J,onClose:G}){let[q,X]=r4.useState(null),[N,K]=r4.useState(!1),[H,F]=r4.useState(null),W=r4.useRef(null),M=r4.useRef(null);if(r4.useEffect(()=>{if(J===null){X(null);return}W.current=document.activeElement,K(!0),F(null),X(null);let _=new AbortController;return s_(J,_.signal).then((P)=>{if(_.signal.aborted)return;X(P),setTimeout(()=>M.current?.focus(),50)}).catch((P)=>{if(_.signal.aborted)return;F(P instanceof Error?P:Error(String(P)))}).finally(()=>{if(!_.signal.aborted)K(!1)}),()=>_.abort()},[J]),r4.useEffect(()=>{if(J===null)return;let _=(P)=>{if(P.key==="Escape")G()};return window.addEventListener("keydown",_),()=>{if(window.removeEventListener("keydown",_),W.current)W.current.focus()}},[J,G]),J===null)return null;return M0.jsxDEV("div",{className:"stats-drawer-overlay",onClick:(_)=>{if(_.target===_.currentTarget)G()},role:"presentation",children:M0.jsxDEV("div",{className:"stats-drawer",role:"dialog","aria-modal":"true","aria-label":"Request details",children:[M0.jsxDEV("div",{className:"stats-drawer-header",children:[M0.jsxDEV("div",{className:"stats-drawer-header-left",children:[M0.jsxDEV("h2",{className:"stats-drawer-title",children:"Request Details"},void 0,!1,void 0,this),q&&M0.jsxDEV("span",{className:"stats-drawer-id",children:["ID: ",J]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),M0.jsxDEV("button",{ref:M,type:"button",onClick:G,className:"stats-drawer-close-btn","aria-label":"Close request details",children:M0.jsxDEV(p7,{size:18},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),M0.jsxDEV("div",{className:"stats-drawer-body",children:[N&&M0.jsxDEV("div",{className:"stats-drawer-loading",children:[M0.jsxDEV(q6,{variant:"text",width:"60%",height:24,className:"mb-4"},void 0,!1,void 0,this),M0.jsxDEV(q6,{variant:"rect",width:"100%",height:80,className:"mb-4"},void 0,!1,void 0,this),M0.jsxDEV(q6,{variant:"rect",width:"100%",height:120,className:"mb-4"},void 0,!1,void 0,this),M0.jsxDEV(q6,{variant:"rect",width:"100%",height:200},void 0,!1,void 0,this)]},void 0,!0,void 0,this),H&&M0.jsxDEV("div",{className:"stats-drawer-error",children:[M0.jsxDEV("p",{className:"stats-drawer-error-title",children:"Failed to load request details"},void 0,!1,void 0,this),M0.jsxDEV("p",{className:"stats-drawer-error-message",children:H.message},void 0,!1,void 0,this)]},void 0,!0,void 0,this),q&&M0.jsxDEV("div",{className:"stats-drawer-content",children:[M0.jsxDEV("div",{className:"stats-drawer-status-card",children:[M0.jsxDEV("div",{className:"stats-drawer-status-row",children:[M0.jsxDEV("div",{children:[M0.jsxDEV("div",{className:"stats-drawer-model",children:q.model},void 0,!1,void 0,this),M0.jsxDEV("div",{className:"stats-drawer-provider",children:q.provider},void 0,!1,void 0,this)]},void 0,!0,void 0,this),M0.jsxDEV(O5,{variant:q.errorMessage?"danger":"success",children:q.errorMessage?"Error":"Success"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),q.errorMessage&&M0.jsxDEV("div",{className:"stats-drawer-error-block",children:[M0.jsxDEV("div",{className:"stats-drawer-error-label",children:"Error Message"},void 0,!1,void 0,this),M0.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),M0.jsxDEV("div",{className:"stats-drawer-metrics-grid",children:[M0.jsxDEV("div",{className:"stats-drawer-metric-card",children:[M0.jsxDEV("div",{className:"stats-drawer-metric-label",children:[M0.jsxDEV(d7,{size:14,className:"stats-drawer-metric-icon"},void 0,!1,void 0,this),"Cost"]},void 0,!0,void 0,this),M0.jsxDEV("div",{className:"stats-drawer-metric-value",children:z1(q.usage.cost.total,4)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),M0.jsxDEV("div",{className:"stats-drawer-metric-card",children:[M0.jsxDEV("div",{className:"stats-drawer-metric-label",children:[M0.jsxDEV(xJ,{size:14,className:"stats-drawer-metric-icon"},void 0,!1,void 0,this),"Premium"]},void 0,!0,void 0,this),M0.jsxDEV("div",{className:"stats-drawer-metric-value",children:S0(q.usage.premiumRequests??0)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),M0.jsxDEV("div",{className:"stats-drawer-metric-card",children:[M0.jsxDEV("div",{className:"stats-drawer-metric-label",children:[M0.jsxDEV(jJ,{size:14,className:"stats-drawer-metric-icon"},void 0,!1,void 0,this),"Total Tokens"]},void 0,!0,void 0,this),M0.jsxDEV("div",{className:"stats-drawer-metric-value",children:S0(q.usage.totalTokens)},void 0,!1,void 0,this),M0.jsxDEV("div",{className:"stats-drawer-metric-sub",children:[S0(q.usage.input)," in · ",S0(q.usage.output)," out"]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),M0.jsxDEV("div",{className:"stats-drawer-metric-card",children:[M0.jsxDEV("div",{className:"stats-drawer-metric-label",children:[M0.jsxDEV(VJ,{size:14,className:"stats-drawer-metric-icon"},void 0,!1,void 0,this),"Duration"]},void 0,!0,void 0,this),M0.jsxDEV("div",{className:"stats-drawer-metric-value",children:v5(q.duration)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),M0.jsxDEV("div",{className:"stats-drawer-metric-card",children:[M0.jsxDEV("div",{className:"stats-drawer-metric-label",children:[M0.jsxDEV(cJ,{size:14,className:"stats-drawer-metric-icon"},void 0,!1,void 0,this),"TTFT"]},void 0,!0,void 0,this),M0.jsxDEV("div",{className:"stats-drawer-metric-value",children:v5(q.ttft)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),q.duration&&q.usage.output>0&&M0.jsxDEV("div",{className:"stats-drawer-metric-card",children:[M0.jsxDEV("div",{className:"stats-drawer-metric-label",children:[M0.jsxDEV(DJ,{size:14,className:"stats-drawer-metric-icon"},void 0,!1,void 0,this),"Throughput"]},void 0,!0,void 0,this),M0.jsxDEV("div",{className:"stats-drawer-metric-value",children:(q.usage.output*1000/q.duration).toFixed(1)},void 0,!1,void 0,this),M0.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),M0.jsxDEV("div",{className:"stats-drawer-json-blocks",children:[M0.jsxDEV(MK,{data:q.output,title:"Output Payload",initialCollapsed:!1},void 0,!1,void 0,this),M0.jsxDEV(MK,{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 wK=s(U0(),1);function a7({options:J,value:G,onChange:q,className:X=""}){return wK.jsxDEV("div",{className:`stats-segmented-control ${X}`,role:"radiogroup",children:J.map((N)=>{let K=N.value===G;return wK.jsxDEV("button",{type:"button",role:"radio","aria-checked":K,"data-active":K?"true":"false",className:"stats-segmented-control-btn",title:N.title,onClick:()=>q(N.value),children:N.label},String(N.value),!1,void 0,this)})},void 0,!1,void 0,this)}var w0=s(U0(),1);function cL({active:J,range:G,refreshTrigger:q}){let{data:X,error:N,loading:K}=n1(["behavior",G,q],(H)=>o_(G,H),{pollMs:30000,enabled:J});return w0.jsxDEV("div",{className:"stats-route-container space-y-6",children:w0.jsxDEV(f1,{loading:K,error:N,data:X,children:X&&w0.jsxDEV(w0.Fragment,{children:[w0.jsxDEV($D,{overall:X.overall,behaviorSeries:X.behaviorSeries},void 0,!1,void 0,this),w0.jsxDEV(ZD,{behaviorSeries:X.behaviorSeries},void 0,!1,void 0,this),w0.jsxDEV(JD,{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 Bq(J,G){if(G<=0)return;return`${(J/G).toFixed(2)} / msg`}function $D({overall:J,behaviorSeries:G}){let q=X5.useMemo(()=>jL(J,G),[J,G]),X=J.totalMessages,N=[{label:"User Messages",value:S0(J.totalMessages),sub:X>0?"in range":void 0},{label:"Yelling (CAPS)",value:S0(J.totalYelling),sub:Bq(J.totalYelling,X)},{label:"Profanity Hits",value:S0(J.totalProfanity),sub:Bq(J.totalProfanity,X)},{label:"Anguish Signals",value:S0(J.totalAnguish),sub:Bq(J.totalAnguish,X)},{label:"Friction Signals",value:S0(q.totalFrustration),sub:Bq(q.totalFrustration,X)},{label:"Highest Friction Model",value:q.highestFrictionModel?.model??"—",sub:q.highestFrictionModel?`${S0(q.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(q1,{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 RK=[{value:"yelling",label:"CAPS",title:"Yelling (CAPS)"},{value:"profanity",label:"Profanity",title:"Profanity"},{value:"anguish",label:"Anguish",title:"Anguish (!!!, nooo, ugh, dude, ':(')"},{value:"negation",label:"Negation",title:"Negation (no/nope/wrong, makes no sense)"},{value:"repetition",label:"Repetition",title:"Repetition (i meant, still doesnt)"},{value:"blame",label:"Blame",title:"Blame (you didnt, why did you, stop X-ing)"},{value:"frustration",label:"Frustration",title:"Frustration (neg + rep + blame)"},{value:"total",label:"All",title:"All signals combined"}];function uL(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 xL(J,G){if(G==="frustration")return J.negation+J.repetition+J.blame;if(G==="total")return J.yelling+J.profanity+J.anguish+J.negation+J.repetition+J.blame;return J[G]}function mL(J,G){if(G<=0)return 0;return J/G*100}function ZD({behaviorSeries:J}){let[G,q]=X5.useState(!1),[X,N]=X5.useState("total"),K=z5(),H=s1[K],F=X5.useMemo(()=>{if(G)return w$(J,{rankWeight:(h)=>h.messages,initBucket:()=>({hits:0,messages:0}),accumulate:(h,p)=>{h.hits+=xL(p,X),h.messages+=p.messages},bucketToValue:(h)=>mL(h.hits,h.messages)});let j=RK.find((h)=>h.value===X)?.title??"Hits";return i3(J,j,{initBucket:()=>({hits:0,messages:0}),accumulate:(h,p)=>{h.hits+=xL(p,X),h.messages+=p.messages},bucketToValue:(h)=>mL(h.hits,h.messages)})},[J,G,X]),W=X5.useMemo(()=>{return c4({chartTheme:H,showLegend:G,defaultLabel:"Hits",formatValue:uL})},[H,G]),{sharedScaleBase:M,yScale:R}=X5.useMemo(()=>{return l4({chartTheme:H,formatY:uL})},[H]),_=X5.useMemo(()=>{return RK.find((j)=>j.value===X)?.title??""},[X]),P=X5.useMemo(()=>{if(!G)return null;return{labels:F.labels,datasets:h2(F,(j)=>M$(K1[j%K1.length]))}},[F,G]),O=X5.useMemo(()=>{return{responsive:!0,maintainAspectRatio:!1,interaction:{mode:"index",intersect:!1},plugins:W,scales:{x:M,y:R}}},[W,M,R]),E=X5.useMemo(()=>{if(G)return null;return{labels:F.labels,datasets:h2(F,(j)=>s7(K1[j%K1.length]))}},[F,G]),V=X5.useMemo(()=>{return{responsive:!0,maintainAspectRatio:!1,interaction:{mode:"index",intersect:!1},plugins:W,scales:{x:{...M,stacked:!0},y:{...R,stacked:!0}},layout:{padding:{top:8}}}},[W,M,R]),I=[{value:!1,label:"All Models"},{value:!0,label:"By Model"}];return w0.jsxDEV(q1,{title:"User Friction Signals",subtitle:`${_} as % of user messages per day`,actions:w0.jsxDEV("div",{className:"flex items-center gap-3 flex-wrap",children:[w0.jsxDEV(a7,{options:RK.map((j)=>({value:j.value,label:j.label,title:j.title})),value:X,onChange:N},void 0,!1,void 0,this),w0.jsxDEV(a7,{options:I,value:G,onChange:q},void 0,!1,void 0,this)]},void 0,!0,void 0,this),children:w0.jsxDEV("div",{className:"h-[300px]",children:F.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):G&&P?w0.jsxDEV(k5,{data:P,options:O},void 0,!1,void 0,this):E?w0.jsxDEV(g2,{data:E,options:V},void 0,!1,void 0,this):null},void 0,!1,void 0,this)},void 0,!1,void 0,this)}var dL="2fr 0.9fr 0.8fr 0.8fr 0.8fr 0.9fr 0.8fr 140px 40px";function pL(J){if(J.totalMessages===0)return 0;return(J.totalYelling+J.totalProfanity+J.totalAnguish+J.totalNegation+J.totalRepetition+J.totalBlame)/J.totalMessages}function L$(J,G){if(G===0)return"-";let q=J/G*100;if(q===0)return"0%";if(q<1)return`${q.toFixed(1)}%`;return`${q.toFixed(0)}%`}function JD({models:J,behaviorSeries:G}){let[q,X]=X5.useState(null),N=z5(),K=s1[N],H=X5.useMemo(()=>GD(G),[G]),F=X5.useMemo(()=>{return[...J].sort((W,M)=>{if(M.totalMessages!==W.totalMessages)return M.totalMessages-W.totalMessages;return pL(M)-pL(W)})},[J]);return w0.jsxDEV($q,{title:"Behavior Signals by Model",subtitle:"Rates are per user message",children:[w0.jsxDEV(Zq,{gridTemplate:dL,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(Jq,{children:[F.map((W,M)=>{let R=`${W.model}::${W.provider}`,_=H.get(R)?.data??[],P=K1[M%K1.length],O=q===R,E=W.totalNegation+W.totalRepetition+W.totalBlame,V=W.totalYelling+W.totalProfanity+W.totalAnguish+E;return w0.jsxDEV(Gq,{gridTemplate:dL,isExpanded:O,onToggle:()=>X(O?null:R),cells:[w0.jsxDEV(Qq,{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:S0(W.totalMessages)},"messages",!1,void 0,this),w0.jsxDEV("div",{className:"text-right text-[var(--text-secondary)] font-mono text-sm",children:L$(W.totalYelling,W.totalMessages)},"caps",!1,void 0,this),w0.jsxDEV("div",{className:"text-right text-[var(--text-secondary)] font-mono text-sm",children:L$(W.totalProfanity,W.totalMessages)},"profanity",!1,void 0,this),w0.jsxDEV("div",{className:"text-right text-[var(--text-secondary)] font-mono text-sm",children:L$(W.totalAnguish,W.totalMessages)},"anguish",!1,void 0,this),w0.jsxDEV("div",{className:"text-right text-[var(--text-secondary)] font-mono text-sm",children:L$(E,W.totalMessages)},"frustration",!1,void 0,this),w0.jsxDEV("div",{className:"text-right text-[var(--text-secondary)] font-mono text-sm",children:L$(V,W.totalMessages)},"hits",!1,void 0,this)],trendCell:_.length===0?w0.jsxDEV(qq,{},void 0,!1,void 0,this):w0.jsxDEV(t3,{timestamps:_.map((I)=>I.timestamp),values:_.map((I)=>I.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(i7,{label:"Yelling (CAPS)",total:W.totalYelling,messages:W.totalMessages,valueClass:"text-[#ed4abf]"},void 0,!1,void 0,this),w0.jsxDEV(i7,{label:"Profanity",total:W.totalProfanity,messages:W.totalMessages,valueClass:"text-[#ff6b7d]"},void 0,!1,void 0,this),w0.jsxDEV(i7,{label:"Anguish (!!!, nooo, dude, ..)",total:W.totalAnguish,messages:W.totalMessages,valueClass:"text-[#9b4dff]"},void 0,!1,void 0,this),w0.jsxDEV(i7,{label:"Negation (no/nope/wrong)",total:W.totalNegation,messages:W.totalMessages,valueClass:"text-[#5ad8e6]"},void 0,!1,void 0,this),w0.jsxDEV(i7,{label:"Repetition (i meant, still doesnt)",total:W.totalRepetition,messages:W.totalMessages,valueClass:"text-[#5ad8e6]"},void 0,!1,void 0,this),w0.jsxDEV(i7,{label:"Blame (you didnt, stop X-ing)",total:W.totalBlame,messages:W.totalMessages,valueClass:"text-[#5ad8e6]"},void 0,!1,void 0,this),w0.jsxDEV(i7,{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:_.length===0?w0.jsxDEV(Yq,{},void 0,!1,void 0,this):w0.jsxDEV(QD,{data:_,chartTheme:K},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},R,!1,void 0,this)}),F.length===0?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 i7({label:J,total:G,messages:q,valueClass:X,mode:N="rate"}){let K=N==="rate"?"% of msgs":"Per msg",H=X5.useMemo(()=>{if(q===0)return"-";return N==="rate"?L$(G,q):(G/q).toFixed(0)},[G,q,N]);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:S0(G)},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 Hq={yelling:"#ed4abf",profanity:"#ff6b7d",anguish:"#9b4dff",frustration:"#5ad8e6"};function QD({data:J,chartTheme:G}){let q=X5.useMemo(()=>{return{labels:J.map((N)=>K4(new Date(N.timestamp),"MMM d")),datasets:[{label:"CAPS",data:J.map((N)=>N.yelling),...D8(Hq.yelling)},{label:"Profanity",data:J.map((N)=>N.profanity),...D8(Hq.profanity)},{label:"Anguish",data:J.map((N)=>N.anguish),...D8(Hq.anguish)},{label:"Frustration",data:J.map((N)=>N.frustration),...D8(Hq.frustration)}]}},[J]),X=X5.useMemo(()=>{return{responsive:!0,maintainAspectRatio:!1,plugins:e3(G),scales:OL(G)}},[G]);return w0.jsxDEV(k5,{data:q,options:X},void 0,!1,void 0,this)}function GD(J){if(J.length===0)return new Map;let G=[...new Set(J.map((N)=>N.timestamp))].sort((N,K)=>N-K),q=new Map;for(let N of J){let K=`${N.model}::${N.provider}`,H=q.get(K);if(!H)H=new Map,q.set(K,H);let F=H.get(N.timestamp)??{timestamp:N.timestamp,yelling:0,profanity:0,anguish:0,frustration:0,total:0};F.yelling+=N.yelling,F.profanity+=N.profanity,F.anguish+=N.anguish,F.frustration+=N.negation+N.repetition+N.blame,F.total=F.yelling+F.profanity+F.anguish+F.frustration,H.set(N.timestamp,F)}let X=new Map;for(let[N,K]of q){let H=G.map((F)=>K.get(F)??{timestamp:F,yelling:0,profanity:0,anguish:0,frustration:0,total:0});X.set(N,{data:H})}return X}var o6=s(L1(),1);var N5=s(U0(),1);function lL({active:J,range:G,refreshTrigger:q}){let{data:X,error:N,loading:K}=n1(["costs",G,q],(H)=>l_(G,H),{pollMs:30000,enabled:J});return N5.jsxDEV("div",{className:"stats-route-container space-y-6",children:N5.jsxDEV(f1,{loading:K,error:N,data:X,children:X&&N5.jsxDEV(N5.Fragment,{children:[N5.jsxDEV(qD,{costSeries:X.costSeries},void 0,!1,void 0,this),N5.jsxDEV(ND,{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 qD({costSeries:J}){let G=o6.useMemo(()=>SL(J),[J]),q=[{label:"Total Cost",value:z1(G.totalCost)},{label:"Average / Day",value:z1(G.avgDailyCost)},{label:"Top Model",value:G.topModelName||"—",sub:G.topModelName?z1(G.topModelCost):void 0}];return N5.jsxDEV("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-4",children:q.map((X)=>N5.jsxDEV(q1,{className:"stats-cost-overview-card py-4 px-5",children:[N5.jsxDEV("p",{className:"text-xs stats-text-muted mb-1 font-medium uppercase tracking-wider",children:X.label},void 0,!1,void 0,this),N5.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&&N5.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 YD={dark:"rgba(248, 250, 252, 0.7)",light:"rgba(15, 23, 42, 0.6)"};function XD(J){return{id:"costBarLabels",afterDatasetsDraw(G){let{ctx:q}=G;if(!G.data.datasets[0])return;let N=G.getDatasetMeta(0);q.save(),q.font="11px system-ui, sans-serif",q.fillStyle=J,q.textAlign="center",q.textBaseline="bottom";for(let K of N.data){let H=K.$context.parsed.y;if(!H)continue;let F=`$${Math.round(H)}`,{x:W,y:M}=K.getProps(["x","y"],!0);q.fillText(F,W,M-3)}q.restore()}}}function ND({costSeries:J}){let[G,q]=o6.useState(!1),X=z5(),N=s1[X],K=o6.useMemo(()=>{if(G)return w$(J,{rankWeight:(V)=>V.cost,initBucket:()=>({total:0}),accumulate:(V,I)=>{V.total+=I.cost},bucketToValue:(V)=>V.total});return i3(J,"Cost",{initBucket:()=>({total:0}),accumulate:(V,I)=>{V.total+=I.cost},bucketToValue:(V)=>V.total})},[J,G]),H=o6.useMemo(()=>{return c4({chartTheme:N,showLegend:G,defaultLabel:"Cost",formatValue:(V)=>`$${V.toFixed(2)}`,footer:(V)=>{if(!G||V.length<2)return;return`Total: $${V.reduce((j,h)=>j+(h.parsed.y??0),0).toFixed(2)}`}})},[N,G]),{sharedScaleBase:F,yScale:W}=o6.useMemo(()=>{return l4({chartTheme:N,formatY:(V)=>`$${Math.round(V)}`})},[N]),M=o6.useMemo(()=>{return XD(YD[X])},[X]),R=o6.useMemo(()=>{if(!G)return null;return{labels:K.labels,datasets:h2(K,(V)=>M$(K1[V%K1.length]))}},[K,G]),_=o6.useMemo(()=>{return{responsive:!0,maintainAspectRatio:!1,interaction:{mode:"index",intersect:!1},plugins:H,scales:{x:F,y:W}}},[H,F,W]),P=o6.useMemo(()=>{if(G)return null;return{labels:K.labels,datasets:h2(K,(V)=>s7(K1[V%K1.length]))}},[K,G]),O=o6.useMemo(()=>{return{responsive:!0,maintainAspectRatio:!1,interaction:{mode:"index",intersect:!1},plugins:{...H,costBarLabels:{}},scales:{x:{...F,stacked:!0},y:{...W,stacked:!0}},layout:{padding:{top:24}}}},[H,F,W]);return N5.jsxDEV(q1,{title:"Daily Cost",subtitle:"API spending over time",actions:N5.jsxDEV(a7,{options:[{value:!1,label:"All Models"},{value:!0,label:"By Model"}],value:G,onChange:q},void 0,!1,void 0,this),children:N5.jsxDEV("div",{className:"h-[300px]",children:K.labels.length===0?N5.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):G&&R?N5.jsxDEV(k5,{data:R,options:_},void 0,!1,void 0,this):P?N5.jsxDEV(g2,{data:P,options:O,plugins:[M]},void 0,!1,void 0,this):null},void 0,!1,void 0,this)},void 0,!1,void 0,this)}var rL=s(L1(),1);var S1=s(U0(),1);function sL({active:J,range:G,refreshTrigger:q,onRequestClick:X}){let{data:N,error:K,loading:H}=n1(["recent-errors-dense",G,q],(M)=>r_(G,50,M),{pollMs:30000,enabled:J}),F=rL.useMemo(()=>[{key:"model",header:"Model",render:(M)=>S1.jsxDEV("div",{children:[S1.jsxDEV("div",{className:"stats-font-medium stats-text-primary",children:M.model},void 0,!1,void 0,this),S1.jsxDEV("div",{className:"stats-text-xs stats-text-muted",children:M.provider},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},{key:"timestamp",header:"Time",render:(M)=>G6(M.timestamp)},{key:"errorMessage",header:"Error Message",render:(M)=>S1.jsxDEV("div",{className:"stats-text-xs stats-text-danger stats-truncate stats-max-w-md stats-font-mono",title:M.errorMessage||"",children:M.errorMessage||"Unknown error"},void 0,!1,void 0,this)},{key:"tokens",header:"Tokens",numeric:!0,render:(M)=>S0(M.usage.totalTokens)},{key:"cost",header:"Cost",numeric:!0,render:(M)=>z1(M.usage.cost.total,4)}],[]);return S1.jsxDEV("div",{className:"stats-route-container",children:S1.jsxDEV(q1,{title:"Recent Errors",subtitle:"Up to 50 most recent failed requests in the stats database",children:S1.jsxDEV(f1,{loading:H,error:K,data:N,emptyText:"No recent failures in the local stats database",children:S1.jsxDEV(X6,{columns:F,data:N||[],keyExtractor:(M)=>M.id||`${M.sessionFile}-${M.entryId}`,onRowClick:(M)=>M.id&&X(M.id),renderMobileCard:(M,R)=>S1.jsxDEV("div",{className:"stats-mobile-card stats-border-danger",onClick:R,children:[S1.jsxDEV("div",{className:"stats-mobile-card-header",children:[S1.jsxDEV("div",{children:[S1.jsxDEV("div",{className:"stats-font-semibold stats-text-primary",children:M.model},void 0,!1,void 0,this),S1.jsxDEV("div",{className:"stats-text-xs stats-text-muted",children:M.provider},void 0,!1,void 0,this)]},void 0,!0,void 0,this),S1.jsxDEV(O5,{variant:"danger",children:"Failed"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),S1.jsxDEV("div",{className:"stats-mobile-card-grid",children:[S1.jsxDEV("div",{children:[S1.jsxDEV("div",{className:"stats-mobile-card-label",children:"Time"},void 0,!1,void 0,this),S1.jsxDEV("div",{className:"stats-mobile-card-value",children:G6(M.timestamp)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),S1.jsxDEV("div",{children:[S1.jsxDEV("div",{className:"stats-mobile-card-label",children:"Cost"},void 0,!1,void 0,this),S1.jsxDEV("div",{className:"stats-mobile-card-value",children:z1(M.usage.cost.total,4)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),S1.jsxDEV("div",{children:[S1.jsxDEV("div",{className:"stats-mobile-card-label",children:"Tokens"},void 0,!1,void 0,this),S1.jsxDEV("div",{className:"stats-mobile-card-value",children:S0(M.usage.totalTokens)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),M.errorMessage&&S1.jsxDEV("div",{className:"stats-mobile-card-error mt-2 stats-font-mono",children:M.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 Fq=s(L1(),1);var I0=s(U0(),1);function nL({active:J,range:G,refreshTrigger:q}){let[X,N]=Fq.useState(null),{data:K,error:H,loading:F}=n1(["gain",G,q,X],(W)=>i_(G,X,W),{pollMs:30000,enabled:J});return I0.jsxDEV("div",{className:"stats-route-container space-y-6",children:I0.jsxDEV(f1,{loading:F,error:H,data:K,children:K&&I0.jsxDEV(I0.Fragment,{children:[I0.jsxDEV(UD,{projects:K.projects,selected:X,onChange:N},void 0,!1,void 0,this),I0.jsxDEV(KD,{overall:K.overall},void 0,!1,void 0,this),I0.jsxDEV(HD,{bySource:K.bySource},void 0,!1,void 0,this),I0.jsxDEV(WD,{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 UD({projects:J,selected:G,onChange:q}){if(J.length===0)return null;return I0.jsxDEV("div",{style:{display:"flex",alignItems:"center",gap:"0.5rem"},children:[I0.jsxDEV("span",{className:"stats-text-secondary",style:{fontSize:"0.875rem",whiteSpace:"nowrap"},children:"Project"},void 0,!1,void 0,this),I0.jsxDEV("select",{className:"stats-select",value:G??"",onChange:(X)=>q(X.target.value||null),style:{maxWidth:"480px",flex:1},children:[I0.jsxDEV("option",{value:"",children:"All projects"},void 0,!1,void 0,this),J.map((X)=>I0.jsxDEV("option",{value:X,children:X},X,!1,void 0,this))]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)}function KD({overall:J}){return I0.jsxDEV(q1,{title:"Overall Gain",subtitle:"Aggregate snapcompact savings",children:I0.jsxDEV("div",{className:"stats-metric-primary-grid",children:[I0.jsxDEV("div",{className:"stats-metric-card primary",children:[I0.jsxDEV("div",{className:"stats-metric-label",children:"Saved Tokens"},void 0,!1,void 0,this),I0.jsxDEV("div",{className:"stats-metric-value",children:X1(J.savedTokens)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),I0.jsxDEV("div",{className:"stats-metric-card primary",children:[I0.jsxDEV("div",{className:"stats-metric-label",children:"Saved Bytes"},void 0,!1,void 0,this),I0.jsxDEV("div",{className:"stats-metric-value",children:zK(J.savedBytes)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),I0.jsxDEV("div",{className:"stats-metric-card primary",children:[I0.jsxDEV("div",{className:"stats-metric-label",children:"Reduction"},void 0,!1,void 0,this),I0.jsxDEV("div",{className:"stats-metric-value",children:J.reductionPercent!==null?x1(J.reductionPercent):"—"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),I0.jsxDEV("div",{className:"stats-metric-card primary",children:[I0.jsxDEV("div",{className:"stats-metric-label",children:"Total Hits"},void 0,!1,void 0,this),I0.jsxDEV("div",{className:"stats-metric-value",children:S0(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 BD({title:J,totals:G}){return I0.jsxDEV("div",{className:"stats-metric-card secondary",style:{flex:1},children:[I0.jsxDEV("div",{className:"stats-metric-label",style:{fontWeight:600,marginBottom:8},children:J},void 0,!1,void 0,this),I0.jsxDEV("div",{style:{display:"grid",gridTemplateColumns:"1fr 1fr",gap:8},children:[I0.jsxDEV("div",{children:[I0.jsxDEV("div",{className:"stats-metric-label",children:"Saved Tokens"},void 0,!1,void 0,this),I0.jsxDEV("div",{className:"stats-metric-value",style:{fontSize:"1rem"},children:X1(G.savedTokens)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),I0.jsxDEV("div",{children:[I0.jsxDEV("div",{className:"stats-metric-label",children:"Saved Bytes"},void 0,!1,void 0,this),I0.jsxDEV("div",{className:"stats-metric-value",style:{fontSize:"1rem"},children:zK(G.savedBytes)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),I0.jsxDEV("div",{children:[I0.jsxDEV("div",{className:"stats-metric-label",children:"Hits"},void 0,!1,void 0,this),I0.jsxDEV("div",{className:"stats-metric-value",style:{fontSize:"1rem"},children:S0(G.hits)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),I0.jsxDEV("div",{children:[I0.jsxDEV("div",{className:"stats-metric-label",children:"Reduction"},void 0,!1,void 0,this),I0.jsxDEV("div",{className:"stats-metric-value",style:{fontSize:"1rem"},children:G.reductionPercent!==null?x1(G.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 HD({bySource:J}){return I0.jsxDEV(q1,{title:"By Source",subtitle:"Savings breakdown per subsystem",children:I0.jsxDEV("div",{style:{display:"flex",gap:16,flexWrap:"wrap"},children:I0.jsxDEV(BD,{title:"Snapcompact",totals:J.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 WD({timeSeries:J}){let G=z5(),q=s1[G],{data:X,options:N}=Fq.useMemo(()=>{let K=new Intl.DateTimeFormat(void 0,{month:"short",day:"numeric",timeZone:"UTC"}),F={labels:J.map((_)=>K.format(new Date(`${_.date}T00:00:00.000Z`))),datasets:[{label:"Snapcompact",data:J.map((_)=>_.snapcompact),...M$(FD.snapcompact)}]},{sharedScaleBase:W,yScale:M}=l4({chartTheme:q,formatY:(_)=>X1(_)}),R={responsive:!0,maintainAspectRatio:!1,plugins:c4({chartTheme:q,showLegend:!0,defaultLabel:"Tokens Saved",formatValue:X1}),scales:{x:{...W,stacked:!0},y:{...M,stacked:!0}}};return{data:F,options:R}},[J,q]);return I0.jsxDEV(q1,{title:"Savings Over Time",subtitle:"Daily token savings",children:I0.jsxDEV("div",{style:{height:240},children:J.length===0?I0.jsxDEV("div",{className:"stats-table-empty",children:"No time series data yet"},void 0,!1,void 0,this):I0.jsxDEV(k5,{data:X,options:N},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this)}var s4=s(L1(),1);var D0=s(U0(),1);function aL({active:J,range:G,refreshTrigger:q}){let{data:X,error:N,loading:K}=n1(["models",G,q],(H)=>c_(G,H),{pollMs:30000,enabled:J});return D0.jsxDEV("div",{className:"stats-route-container space-y-6",children:D0.jsxDEV(f1,{loading:K,error:N,data:X,children:X&&D0.jsxDEV(D0.Fragment,{children:[D0.jsxDEV(zD,{modelSeries:X.modelSeries,timeRange:G},void 0,!1,void 0,this),D0.jsxDEV(wD,{models:X.byModel,performanceSeries:X.modelPerformanceSeries,timeRange:G},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 zD({modelSeries:J,timeRange:G}){let q=z5(),X=s1[q],N=n7(G),K=s4.useMemo(()=>MD(J),[J]),H=s4.useMemo(()=>{return{labels:K.data.map((W)=>nJ(W.timestamp,G)),datasets:K.series.map((W,M)=>({label:W,data:K.data.map((R)=>R[W]??0),borderColor:K1[M%K1.length],backgroundColor:`${K1[M%K1.length]}20`,fill:!0,tension:0.4,pointRadius:0,pointHoverRadius:4,borderWidth:2}))}},[K,G]),F=s4.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 M=W.dataset.label??"",R=W.parsed.y;return`${M}: ${(R??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 D0.jsxDEV(q1,{title:"Model Preference",subtitle:`Share of requests over ${N.windowLabel}`,children:D0.jsxDEV("div",{className:"h-[280px]",children:K.data.length===0?D0.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):D0.jsxDEV(k5,{data:H,options:F},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this)}function MD(J,G=5){if(J.length===0)return{data:[],series:[]};let q=new Map;for(let _ of J){let P=`${_.model}::${_.provider}`,O=q.get(P);if(O)O.total+=_.requests;else q.set(P,{model:_.model,provider:_.provider,total:_.requests})}let N=[...q.entries()].map(([_,P])=>({key:_,...P})).sort((_,P)=>P.total-_.total).slice(0,G),K=new Set(N.map((_)=>_.key)),H=new Map;for(let _ of N)H.set(_.model,(H.get(_.model)??0)+1);let F=new Map;for(let _ of N){let P=(H.get(_.model)??0)>1;F.set(_.key,P?`${_.model} (${_.provider})`:_.model)}let W=new Map;for(let _ of J){let P=`${_.model}::${_.provider}`,O=W.get(_.timestamp)??{timestamp:_.timestamp,total:0};O.total+=_.requests;let E=K.has(P)?F.get(P)??_.model:"Other";O[E]=(O[E]??0)+_.requests,W.set(_.timestamp,O)}let M=N.map((_)=>F.get(_.key)??_.model);if([...W.values()].some((_)=>(_.Other??0)>0))M.push("Other");return{data:[...W.values()].sort((_,P)=>(_.timestamp??0)-(P.timestamp??0)).map((_)=>{let P=_.total??0;for(let O of M)_[O]=P>0?(_[O]??0)/P*100:0;return _}),series:M}}var oL="2fr 0.9fr 0.9fr 1fr 0.8fr 0.8fr 140px 40px";function wD({models:J,performanceSeries:G,timeRange:q}){let[X,N]=s4.useState(null),K=n7(q),H=s4.useMemo(()=>DL(G,q),[G,q]),F=z5(),W=s1[F],M=s4.useMemo(()=>{return[...J].sort((R,_)=>_.totalInputTokens+_.totalOutputTokens-(R.totalInputTokens+R.totalOutputTokens))},[J]);return D0.jsxDEV($q,{title:"Model Statistics",children:[D0.jsxDEV(Zq,{gridTemplate:oL,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),D0.jsxDEV(Jq,{children:M.map((R,_)=>{let P=`${R.model}::${R.provider}`,E=H.get(P)?.data??[],V=K1[_%K1.length],I=X===P,j=R.errorRate*100;return D0.jsxDEV(Gq,{gridTemplate:oL,isExpanded:I,onToggle:()=>N(I?null:P),cells:[D0.jsxDEV(Qq,{model:R.model,provider:R.provider},"name",!1,void 0,this),D0.jsxDEV("div",{className:"text-right text-[var(--text-secondary)] font-mono text-sm",children:R.totalRequests.toLocaleString()},"requests",!1,void 0,this),D0.jsxDEV("div",{className:"text-right text-[var(--text-secondary)] font-mono text-sm",children:["$",R.totalCost.toFixed(2)]},"cost",!0,void 0,this),D0.jsxDEV("div",{className:"text-right text-[var(--text-secondary)] font-mono text-sm",children:(R.totalInputTokens+R.totalOutputTokens).toLocaleString()},"tokens",!1,void 0,this),D0.jsxDEV("div",{className:"text-right text-[var(--text-secondary)] font-mono text-sm",children:R.avgTokensPerSecond?.toFixed(1)??"-"},"tps",!1,void 0,this),D0.jsxDEV("div",{className:"text-right text-[var(--text-secondary)] font-mono text-sm",children:R.avgTtft?`${(R.avgTtft/1000).toFixed(2)}s`:"-"},"ttft",!1,void 0,this)],trendCell:E.length===0?D0.jsxDEV(qq,{},void 0,!1,void 0,this):D0.jsxDEV(t3,{timestamps:E.map((h)=>h.timestamp),values:E.map((h)=>h.avgTokensPerSecond??0),color:V},void 0,!1,void 0,this),expandedContent:D0.jsxDEV("div",{className:"grid gap-4",style:{gridTemplateColumns:"200px 1fr"},children:[D0.jsxDEV("div",{className:"space-y-4 text-sm",children:[D0.jsxDEV("div",{children:[D0.jsxDEV("div",{className:"text-[var(--text-primary)] font-medium mb-2",children:"Quality"},void 0,!1,void 0,this),D0.jsxDEV("div",{className:"space-y-1 text-[var(--text-secondary)]",children:[D0.jsxDEV("div",{className:"flex items-center justify-between",children:[D0.jsxDEV("span",{children:"Error rate"},void 0,!1,void 0,this),D0.jsxDEV("span",{className:j>5?"text-[var(--accent-red)]":"text-[var(--accent-green)]",children:[j.toFixed(1),"%"]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),D0.jsxDEV("div",{className:"flex items-center justify-between",children:[D0.jsxDEV("span",{children:"Cache rate"},void 0,!1,void 0,this),D0.jsxDEV("span",{className:"text-[var(--accent-cyan)]",children:[(R.cacheRate*100).toFixed(1),"%"]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),D0.jsxDEV("div",{children:[D0.jsxDEV("div",{className:"text-[var(--text-primary)] font-medium mb-2",children:"Latency"},void 0,!1,void 0,this),D0.jsxDEV("div",{className:"space-y-1 text-[var(--text-secondary)]",children:[D0.jsxDEV("div",{className:"flex items-center justify-between",children:[D0.jsxDEV("span",{children:"Avg duration"},void 0,!1,void 0,this),D0.jsxDEV("span",{className:"font-mono",children:R.avgDuration?`${(R.avgDuration/1000).toFixed(2)}s`:"-"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),D0.jsxDEV("div",{className:"flex items-center justify-between",children:[D0.jsxDEV("span",{children:"Avg TTFT"},void 0,!1,void 0,this),D0.jsxDEV("span",{className:"font-mono",children:R.avgTtft?`${(R.avgTtft/1000).toFixed(2)}s`:"-"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),D0.jsxDEV("div",{className:"h-[200px]",children:E.length===0?D0.jsxDEV(Yq,{},void 0,!1,void 0,this):D0.jsxDEV(RD,{data:E,color:V,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 RD({data:J,color:G,chartTheme:q,timeRange:X}){let N=s4.useMemo(()=>{return{labels:J.map((H)=>nJ(H.timestamp,X)),datasets:[{label:"TTFT",data:J.map((H)=>H.avgTtftSeconds??null),...D8("#5ad8e6"),yAxisID:"y"},{label:"Tokens/s",data:J.map((H)=>H.avgTokensPerSecond??null),...D8(G),yAxisID:"y1"}]}},[J,G,X]),K=s4.useMemo(()=>{return{responsive:!0,maintainAspectRatio:!1,plugins:e3(q),scales:IL(q)}},[q]);return D0.jsxDEV(k5,{data:N,options:K},void 0,!1,void 0,this)}var oJ=s(L1(),1);var iL=s(L1(),1);var N6=s(U0(),1),Wq={main:{label:"Main agent",color:"#ed4abf"},subagent:{label:"Subagents",color:"#9b4dff"},advisor:{label:"Advisor",color:"#5ad8e6"}};function tL({stats:J}){let G=iL.useMemo(()=>EL(J),[J]);if(G.totalTokens===0)return N6.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 N6.jsxDEV("div",{className:"space-y-4",children:[N6.jsxDEV("div",{className:"flex h-3 w-full overflow-hidden rounded-full",style:{background:"var(--surface-2)"},children:G.segments.map((q)=>q.share>0&&N6.jsxDEV("div",{className:"h-full",style:{width:`${q.share*100}%`,background:Wq[q.agentType].color},title:`${Wq[q.agentType].label}: ${x1(q.share)}`},q.agentType,!1,void 0,this))},void 0,!1,void 0,this),N6.jsxDEV("div",{className:"space-y-2",children:G.segments.map((q)=>N6.jsxDEV("div",{className:"flex items-center justify-between gap-3 text-sm",children:[N6.jsxDEV("div",{className:"flex items-center gap-2 min-w-0",children:[N6.jsxDEV("span",{className:"w-2.5 h-2.5 rounded-full flex-shrink-0",style:{background:Wq[q.agentType].color}},void 0,!1,void 0,this),N6.jsxDEV("span",{className:"stats-text-primary truncate",children:Wq[q.agentType].label},void 0,!1,void 0,this),N6.jsxDEV("span",{className:"stats-text-muted stats-text-xs whitespace-nowrap",children:[S0(q.requests)," req"]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),N6.jsxDEV("div",{className:"flex items-center gap-3 whitespace-nowrap",children:[N6.jsxDEV("span",{className:"stats-text-secondary",children:[X1(q.tokens)," tok"]},void 0,!0,void 0,this),N6.jsxDEV("span",{className:"stats-font-semibold stats-text-primary tabular-nums",children:x1(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 K0=s(U0(),1);function eL({active:J,range:G,refreshTrigger:q,onRequestClick:X}){let{data:N,error:K,loading:H}=n1(["overview",G,q],(j)=>p_(G,j),{pollMs:30000,enabled:J}),{data:F,error:W,loading:M}=n1(["recent-requests",q],(j)=>o3(50,j),{pollMs:30000,enabled:J}),R=z5(),_=s1[R],P=oJ.useMemo(()=>{if(!N?.timeSeries)return{labels:[],datasets:[]};let j=N.timeSeries.map((p)=>K4(new Date(p.timestamp),G==="1h"||G==="24h"?"HH:mm":"MMM d")),h=N.timeSeries.length<=2?3:0;return{labels:j,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,G]),O=oJ.useMemo(()=>{return{responsive:!0,maintainAspectRatio:!1,interaction:{mode:"index",intersect:!1},plugins:{legend:{display:!0,position:"top",align:"end",labels:{color:_.legendLabel,boxWidth:8,usePointStyle:!0,font:{size:11}}},tooltip:{backgroundColor:_.tooltipBackground,titleColor:_.tooltipTitle,bodyColor:_.tooltipBody,borderColor:_.tooltipBorder,borderWidth:1,cornerRadius:8,padding:10}},scales:{x:{grid:{color:_.grid,drawBorder:!1},ticks:{color:_.tick,font:{size:10}}},y:{grid:{color:_.grid,drawBorder:!1},ticks:{color:_.tick,font:{size:10}},min:0}}}},[_]),E=oJ.useMemo(()=>[{key:"model",header:"Model",render:(j)=>K0.jsxDEV("div",{children:[K0.jsxDEV("div",{className:"stats-font-medium stats-text-primary",children:j.model},void 0,!1,void 0,this),K0.jsxDEV("div",{className:"stats-text-xs stats-text-muted",children:j.provider},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},{key:"timestamp",header:"Time",render:(j)=>G6(j.timestamp)},{key:"tokens",header:"Tokens",numeric:!0,render:(j)=>S0(j.usage.totalTokens)},{key:"cost",header:"Cost",numeric:!0,render:(j)=>z1(j.usage.cost.total,4)},{key:"duration",header:"Duration",numeric:!0,render:(j)=>v5(j.duration)},{key:"status",header:"Status",className:"stats-text-center",render:(j)=>K0.jsxDEV(O5,{variant:j.errorMessage?"danger":"success",children:j.errorMessage?"Failed":"Success"},void 0,!1,void 0,this)}],[]),V=(j,h)=>K0.jsxDEV("div",{className:"stats-mobile-card",onClick:h,children:[K0.jsxDEV("div",{className:"stats-mobile-card-header",children:[K0.jsxDEV("div",{children:[K0.jsxDEV("div",{className:"stats-font-semibold stats-text-primary",children:j.model},void 0,!1,void 0,this),K0.jsxDEV("div",{className:"stats-text-xs stats-text-muted",children:j.provider},void 0,!1,void 0,this)]},void 0,!0,void 0,this),K0.jsxDEV(O5,{variant:j.errorMessage?"danger":"success",children:j.errorMessage?"Failed":"Success"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),K0.jsxDEV("div",{className:"stats-mobile-card-grid",children:[K0.jsxDEV("div",{children:[K0.jsxDEV("div",{className:"stats-mobile-card-label",children:"Time"},void 0,!1,void 0,this),K0.jsxDEV("div",{className:"stats-mobile-card-value",children:G6(j.timestamp)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),K0.jsxDEV("div",{children:[K0.jsxDEV("div",{className:"stats-mobile-card-label",children:"Cost"},void 0,!1,void 0,this),K0.jsxDEV("div",{className:"stats-mobile-card-value",children:z1(j.usage.cost.total,4)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),K0.jsxDEV("div",{children:[K0.jsxDEV("div",{className:"stats-mobile-card-label",children:"Tokens"},void 0,!1,void 0,this),K0.jsxDEV("div",{className:"stats-mobile-card-value",children:S0(j.usage.totalTokens)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),K0.jsxDEV("div",{children:[K0.jsxDEV("div",{className:"stats-mobile-card-label",children:"Duration"},void 0,!1,void 0,this),K0.jsxDEV("div",{className:"stats-mobile-card-value",children:v5(j.duration)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),j.errorMessage&&K0.jsxDEV("div",{className:"stats-mobile-card-error truncate mt-2",children:j.errorMessage},void 0,!1,void 0,this)]},void 0,!0,void 0,this),I=oJ.useMemo(()=>{if(!F)return[];return F.slice(0,10)},[F]);return K0.jsxDEV("div",{className:"stats-route-container space-y-6",children:[K0.jsxDEV(f1,{loading:H,error:K,data:N,children:N&&K0.jsxDEV(yL,{stats:N.overall},void 0,!1,void 0,this)},void 0,!1,void 0,this),K0.jsxDEV(q1,{title:"Conversation Tokens by Agent",subtitle:"Uncached input + cache reads + cache writes + output, grouped by agent type",children:K0.jsxDEV(f1,{loading:H,error:K,data:N,children:N&&K0.jsxDEV(tL,{stats:N.byAgentType},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this),K0.jsxDEV("div",{className:"grid grid-cols-1 lg:grid-cols-3 gap-6",children:[K0.jsxDEV("div",{className:"lg:col-span-2",children:K0.jsxDEV(q1,{title:"System Throughput",subtitle:"Request volume and errors over time",children:K0.jsxDEV(f1,{loading:H,error:K,data:N,children:K0.jsxDEV("div",{className:"h-[280px]",children:N?.timeSeries&&N.timeSeries.length>0?K0.jsxDEV(k5,{data:P,options:O},void 0,!1,void 0,this):K0.jsxDEV("div",{className:"h-full flex items-center justify-center text-stats-muted text-sm",children:"No time-series data available"},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this),K0.jsxDEV("div",{children:K0.jsxDEV(q1,{title:"Operational Feed",subtitle:"Real-time request log",children:K0.jsxDEV(f1,{loading:M,error:W,data:F,fallback:K0.jsxDEV("div",{className:"space-y-4",children:Array.from({length:5}).map((j,h)=>K0.jsxDEV("div",{className:"flex items-center gap-3",children:[K0.jsxDEV(q6,{variant:"circle",width:10,height:10},void 0,!1,void 0,this),K0.jsxDEV("div",{className:"flex-1",children:[K0.jsxDEV(q6,{variant:"text",width:"60%",height:16},void 0,!1,void 0,this),K0.jsxDEV(q6,{variant:"text",width:"40%",height:12},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},h,!0,void 0,this))},void 0,!1,void 0,this),children:K0.jsxDEV("div",{className:"stats-feed-ledger overflow-y-auto max-h-[280px] pr-2",children:[I.map((j)=>{let h=!!j.errorMessage;return K0.jsxDEV("div",{className:"stats-feed-item flex items-start gap-3 p-2 rounded hover:bg-stats-surface-2 cursor-pointer transition-colors",onClick:()=>j.id&&X(j.id),children:[K0.jsxDEV("div",{className:`w-2 h-2 mt-1.5 rounded-full flex-shrink-0 ${h?"bg-stats-danger":"bg-stats-success"}`},void 0,!1,void 0,this),K0.jsxDEV("div",{className:"flex-1 min-w-0",children:[K0.jsxDEV("div",{className:"flex justify-between items-baseline gap-2",children:[K0.jsxDEV("div",{className:"stats-font-medium stats-text-primary text-sm truncate",children:j.model},void 0,!1,void 0,this),K0.jsxDEV("div",{className:"stats-text-xs stats-text-muted whitespace-nowrap",children:G6(j.timestamp)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),K0.jsxDEV("div",{className:"flex justify-between items-center text-xs stats-text-muted mt-0.5",children:[K0.jsxDEV("div",{children:j.provider},void 0,!1,void 0,this),K0.jsxDEV("div",{children:[j.duration?v5(j.duration):""," ",j.usage?.cost?.total?`· ${z1(j.usage.cost.total,4)}`:""]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),h&&K0.jsxDEV("div",{className:"text-xs text-stats-danger truncate mt-1",children:j.errorMessage},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},j.id||`${j.sessionFile}-${j.entryId}`,!0,void 0,this)}),I.length===0&&K0.jsxDEV("div",{className:"py-8 text-center stats-text-muted text-sm",children:"No recent requests found"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),K0.jsxDEV(q1,{title:"Recent Requests Preview",subtitle:"Latest transactions processed by the proxy",actions:K0.jsxDEV("a",{href:`#/requests?range=${G}`,className:"stats-button stats-button-secondary text-xs",children:"View All Requests"},void 0,!1,void 0,this),children:K0.jsxDEV(f1,{loading:M,error:W,data:F,children:K0.jsxDEV(X6,{columns:E,data:I,keyExtractor:(j)=>j.id||`${j.sessionFile}-${j.entryId}`,onRowClick:(j)=>j.id&&X(j.id),renderMobileCard:V,emptyText:"No recent requests found"},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}var _K=s(L1(),1);var Y1=s(U0(),1);function $P({active:J,range:G,refreshTrigger:q}){let{data:X,error:N,loading:K}=n1(["projects",G,q],(M)=>a_(G,M),{pollMs:30000,enabled:J}),H=_K.useMemo(()=>{if(!X)return[];return kL(X)},[X]),F=_K.useMemo(()=>[{key:"folder",header:"Project/Folder",render:(M)=>Y1.jsxDEV("div",{className:"stats-font-medium stats-text-primary truncate max-w-[440px]",title:M.folder||"(root)",children:M.folder||"(root)"},void 0,!1,void 0,this)},{key:"totalRequests",header:"Requests",numeric:!0,render:(M)=>Y1.jsxDEV("div",{className:"stats-text-right",children:[Y1.jsxDEV("div",{className:"font-mono",children:S0(M.totalRequests)},void 0,!1,void 0,this),Y1.jsxDEV("div",{className:"stats-progress-bar-track mt-1 ml-auto w-24 h-1",children:Y1.jsxDEV("div",{className:"stats-progress-bar-fill","data-variant":"link",style:{width:`${M.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:(M)=>Y1.jsxDEV("div",{className:"stats-text-right",children:[Y1.jsxDEV("div",{className:"font-mono",children:z1(M.totalCost)},void 0,!1,void 0,this),Y1.jsxDEV("div",{className:"stats-progress-bar-track mt-1 ml-auto w-24 h-1",children:Y1.jsxDEV("div",{className:"stats-progress-bar-fill","data-variant":"success",style:{width:`${M.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:(M)=>Y1.jsxDEV("div",{className:"font-mono",children:S0(M.totalInputTokens+M.totalOutputTokens)},void 0,!1,void 0,this)},{key:"cacheRate",header:"Cache Rate",numeric:!0,render:(M)=>Y1.jsxDEV("span",{className:"stats-text-success font-medium",children:x1(M.cacheRate)},void 0,!1,void 0,this)},{key:"errorRate",header:"Error Rate",numeric:!0,render:(M)=>Y1.jsxDEV(O5,{variant:M.errorRate>0.1?"danger":M.errorRate>0?"warning":"success",children:x1(M.errorRate)},void 0,!1,void 0,this)},{key:"avgDuration",header:"Avg Duration",numeric:!0,render:(M)=>v5(M.avgDuration)}],[]);return Y1.jsxDEV("div",{className:"stats-route-container",children:Y1.jsxDEV(q1,{title:"Projects & Folders",subtitle:"Aggregate proxy metrics grouped by folder path",children:Y1.jsxDEV(f1,{loading:K,error:N,data:X,emptyText:"No project folders recorded for this range.",children:Y1.jsxDEV(X6,{columns:F,data:H,keyExtractor:(M)=>M.folder,renderMobileCard:(M)=>Y1.jsxDEV("div",{className:"stats-mobile-card",children:[Y1.jsxDEV("div",{className:"stats-mobile-card-header mb-2",children:[Y1.jsxDEV("div",{className:"stats-font-semibold stats-text-primary",children:M.folder||"(root)"},void 0,!1,void 0,this),Y1.jsxDEV(O5,{variant:M.errorRate>0.1?"danger":M.errorRate>0?"warning":"success",children:[x1(M.errorRate)," Err"]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),Y1.jsxDEV("div",{className:"stats-mobile-card-grid",children:[Y1.jsxDEV("div",{children:[Y1.jsxDEV("div",{className:"stats-mobile-card-label",children:"Requests"},void 0,!1,void 0,this),Y1.jsxDEV("div",{className:"stats-mobile-card-value font-mono",children:S0(M.totalRequests)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),Y1.jsxDEV("div",{children:[Y1.jsxDEV("div",{className:"stats-mobile-card-label",children:"Cost"},void 0,!1,void 0,this),Y1.jsxDEV("div",{className:"stats-mobile-card-value font-mono",children:z1(M.totalCost)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),Y1.jsxDEV("div",{children:[Y1.jsxDEV("div",{className:"stats-mobile-card-label",children:"Cache"},void 0,!1,void 0,this),Y1.jsxDEV("div",{className:"stats-mobile-card-value",children:x1(M.cacheRate)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),Y1.jsxDEV("div",{children:[Y1.jsxDEV("div",{className:"stats-mobile-card-label",children:"Duration"},void 0,!1,void 0,this),Y1.jsxDEV("div",{className:"stats-mobile-card-value",children:v5(M.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 b5=s(L1(),1);var m0=s(U0(),1);function ZP({active:J,range:G,refreshTrigger:q}){let{data:X,error:N,loading:K}=n1(["providers",G,q],(H)=>e_(G,H),{pollMs:30000,enabled:J});return m0.jsxDEV("div",{className:"stats-route-container space-y-6",children:m0.jsxDEV(f1,{loading:K,error:N,data:X,children:X&&m0.jsxDEV(m0.Fragment,{children:[m0.jsxDEV(_D,{providers:X.providers},void 0,!1,void 0,this),m0.jsxDEV(LD,{stats:X},void 0,!1,void 0,this),m0.jsxDEV(PD,{hourly:X.hourly,providers:X.providers},void 0,!1,void 0,this),m0.jsxDEV(TD,{insights:X.windowInsights},void 0,!1,void 0,this),m0.jsxDEV(CD,{usageSeries:X.usageSeries},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this)}function _D({providers:J}){let G=b5.useMemo(()=>J.reduce((X,N)=>X+N.totalTokens,0),[J]);return m0.jsxDEV(q1,{title:"Provider Totals",subtitle:"Token, request, and cost totals per provider over the active range",children:m0.jsxDEV(X6,{columns:[{key:"provider",header:"Provider",render:(X)=>m0.jsxDEV("span",{className:"font-medium",children:X.provider},void 0,!1,void 0,this)},{key:"requests",header:"Requests",numeric:!0,render:(X)=>S0(X.totalRequests)},{key:"errors",header:"Error Rate",numeric:!0,render:(X)=>x1(X.totalRequests>0?X.failedRequests/X.totalRequests:0)},{key:"models",header:"Models",numeric:!0,render:(X)=>S0(X.models)},{key:"tokens",header:"Tokens",numeric:!0,render:(X)=>m0.jsxDEV("span",{title:`Input ${X1(X.totalInputTokens)} · Output ${X1(X.totalOutputTokens)} · Cache read ${X1(X.totalCacheReadTokens)} · Cache write ${X1(X.totalCacheWriteTokens)}`,children:X1(X.totalTokens)},void 0,!1,void 0,this)},{key:"share",header:"Share",numeric:!0,render:(X)=>x1(G>0?X.totalTokens/G:0)},{key:"cost",header:"Cost",numeric:!0,render:(X)=>z1(X.totalCost)},{key:"tps",header:"Tok/s",numeric:!0,render:(X)=>Xq(X.avgTokensPerSecond)}],data:J,keyExtractor:(X)=>X.provider,emptyText:"No requests recorded in this range"},void 0,!1,void 0,this)},void 0,!1,void 0,this)}function LD({stats:J}){let[G,q]=b5.useState("tokens"),X=z5(),N=s1[X],K=b5.useMemo(()=>{let M=J.series.map((R)=>({...R,model:R.provider}));return w$(M,{topN:6,rankWeight:(R)=>G==="tokens"?R.totalTokens:R.cost,initBucket:()=>({total:0}),accumulate:(R,_)=>{R.total+=G==="tokens"?_.totalTokens:_.cost},bucketToValue:(R)=>R.total})},[J.series,G]),H=G==="tokens"?X1:(M)=>z1(M),F=b5.useMemo(()=>{let{sharedScaleBase:M,yScale:R}=l4({chartTheme:N,formatY:H});return{responsive:!0,maintainAspectRatio:!1,interaction:{mode:"index",intersect:!1},plugins:c4({chartTheme:N,showLegend:!0,defaultLabel:G==="tokens"?"Tokens":"Cost",formatValue:H,footer:(_)=>{if(_.length<2)return;let P=_.reduce((O,E)=>O+(E.parsed.y??0),0);return`Total: ${H(P)}`}}),scales:{x:{...M,stacked:!0},y:{...R,stacked:!0}}}},[N,G,H]),W=b5.useMemo(()=>({labels:K.labels,datasets:h2(K,(M)=>s7(K1[M%K1.length]))}),[K]);return m0.jsxDEV(q1,{title:"Burn by Provider",subtitle:"Stacked token/cost burn per provider over time",actions:m0.jsxDEV(a7,{options:[{value:"tokens",label:"Tokens"},{value:"cost",label:"Cost"}],value:G,onChange:q},void 0,!1,void 0,this),children:m0.jsxDEV("div",{className:"h-[300px]",children:K.labels.length===0?m0.jsxDEV(R$,{message:"No provider activity in this range"},void 0,!1,void 0,this):m0.jsxDEV(g2,{data:W,options:F},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this)}var LK="__all__";function PD({hourly:J,providers:G}){let[q,X]=b5.useState(LK),N=z5(),K=s1[N],{tokensByHour:H,peakHour:F}=b5.useMemo(()=>{let _=Array(24).fill(0);for(let O of J){if(q!==LK&&O.provider!==q)continue;_[O.hour]+=O.totalTokens}let P=0;for(let O=1;O<24;O++)if(_[O]>_[P])P=O;return{tokensByHour:_,peakHour:P}},[J,q]),W=H.some((_)=>_>0),M=b5.useMemo(()=>({labels:Array.from({length:24},(_,P)=>`${String(P).padStart(2,"0")}:00`),datasets:[{label:"Tokens",data:H,...s7(K1[2]),backgroundColor:H.map((_,P)=>P===F?K1[0]:K1[2])}]}),[H,F]),R=b5.useMemo(()=>{let{sharedScaleBase:_,yScale:P}=l4({chartTheme:K,formatY:X1});return{responsive:!0,maintainAspectRatio:!1,plugins:c4({chartTheme:K,showLegend:!1,defaultLabel:"Tokens",formatValue:X1}),scales:{x:_,y:P}}},[K]);return m0.jsxDEV(q1,{title:"Peak Burn Hours",subtitle:W?`Token burn by local hour of day — peak at ${String(F).padStart(2,"0")}:00`:"Token burn by local hour of day",actions:m0.jsxDEV("select",{className:"stats-select",value:q,onChange:(_)=>X(_.target.value),"aria-label":"Provider",children:[m0.jsxDEV("option",{value:LK,children:"All providers"},void 0,!1,void 0,this),G.map((_)=>m0.jsxDEV("option",{value:_.provider,children:_.provider},_.provider,!1,void 0,this))]},void 0,!0,void 0,this),children:m0.jsxDEV("div",{className:"h-[260px]",children:W?m0.jsxDEV(g2,{data:M,options:R},void 0,!1,void 0,this):m0.jsxDEV(R$,{message:"No activity in this range"},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this)}function TD({insights:J}){return m0.jsxDEV(q1,{title:"Subscription Windows",subtitle:"What each usage window buys you, and how many accounts peak demand needs",children:m0.jsxDEV(X6,{columns:[{key:"provider",header:"Provider",render:(q)=>m0.jsxDEV("span",{className:"font-medium",children:q.provider},void 0,!1,void 0,this)},{key:"window",header:"Window",render:(q)=>q.windowLabel},{key:"accounts",header:"Accounts",numeric:!0,render:(q)=>S0(q.accounts)},{key:"consumed",header:"Windows Burned",numeric:!0,render:(q)=>m0.jsxDEV("span",{title:"Subscription-window equivalents consumed in range (sum of used-fraction increases across accounts)",children:q.fractionConsumed.toFixed(2)},void 0,!1,void 0,this)},{key:"capacity",header:"Est. Tokens / Window",numeric:!0,render:(q)=>m0.jsxDEV("span",{title:"Provider tokens burned in range ÷ windows burned — what one full window is worth",children:q.estTokensPerWindow!==null?X1(q.estTokensPerWindow):"—"},void 0,!1,void 0,this)},{key:"peak",header:"Peak Utilization",numeric:!0,render:(q)=>m0.jsxDEV("span",{title:"Peak of summed used fraction across accounts at any sampled instant",children:x1(q.peakConcurrentFraction)},void 0,!1,void 0,this)},{key:"ideal",header:"Ideal Accounts",numeric:!0,render:(q)=>m0.jsxDEV("span",{title:"Accounts needed to keep peak demand under 90% of fleet capacity",className:q.idealAccounts>q.accounts?"stats-text-warning font-semibold":void 0,children:[S0(q.idealAccounts),q.idealAccounts>q.accounts?` (have ${q.accounts})`:""]},void 0,!0,void 0,this)},{key:"exhausted",header:"Exhaustions",numeric:!0,render:(q)=>m0.jsxDEV("span",{className:q.exhaustedEvents>0?"stats-text-warning":void 0,children:S0(q.exhaustedEvents)},void 0,!1,void 0,this)}],data:J,keyExtractor:(q)=>`${q.provider}::${q.windowKey}`,emptyText:"No usage snapshots recorded yet — they accumulate whenever usage is fetched (TUI footer, /usage, omp usage)"},void 0,!1,void 0,this)},void 0,!1,void 0,this)}var PK={ok:"#62d394",warning:"#f5c14b",exhausted:"#ff6b7d"};function CD({usageSeries:J}){let G=b5.useMemo(()=>[...new Set(J.map((R)=>R.provider))],[J]),[q,X]=b5.useState(null),N=q!==null&&G.includes(q)?q:G[0]??null,K=z5(),H=s1[K],F=b5.useMemo(()=>{return J.filter((R)=>R.provider===N).map((R)=>{let _=[...R.points].reverse().find((P)=>P.usedFraction!==null);return _?{label:`${R.windowLabel} · ${R.accountLabel}`,fraction:_.usedFraction??0,exhausted:_.exhausted,recordedAt:_.timestamp}:null}).filter((R)=>R!==null).sort((R,_)=>_.fraction-R.fraction)},[J,N]),W=b5.useMemo(()=>({labels:F.map((R)=>R.label),datasets:[{label:"Used",data:F.map((R)=>R.fraction*100),backgroundColor:F.map((R)=>R.exhausted?PK.exhausted:R.fraction>=0.8?PK.warning:PK.ok),borderWidth:0,borderRadius:4,barThickness:18}]}),[F]),M=b5.useMemo(()=>{let{sharedScaleBase:R,yScale:_}=l4({chartTheme:H,formatY:(E)=>`${Math.round(E)}%`}),P=Math.max(100,...F.map((E)=>E.fraction*100)),O=c4({chartTheme:H,showLegend:!1,defaultLabel:"Used",formatValue:(E)=>`${E.toFixed(1)}%`});return{indexAxis:"y",responsive:!0,maintainAspectRatio:!1,plugins:{...O,tooltip:{...O.tooltip,callbacks:{label:(E)=>{let V=F[E.dataIndex],I=`${(E.parsed.x??0).toFixed(1)}% used`;return V?`${I} · recorded ${G6(V.recordedAt)}`:I}}}},scales:{x:{..._,max:P},y:{...R,grid:{display:!1}}}}},[H,F]);return m0.jsxDEV(q1,{title:"Window Utilization",subtitle:"Latest recorded limit utilization per account and window — red bars are exhausted, amber above 80%",actions:G.length>1?m0.jsxDEV("select",{className:"stats-select",value:N??"",onChange:(R)=>X(R.target.value),"aria-label":"Provider",children:G.map((R)=>m0.jsxDEV("option",{value:R,children:R},R,!1,void 0,this))},void 0,!1,void 0,this):void 0,children:m0.jsxDEV("div",{style:{height:Math.max(160,F.length*34+60)},children:F.length===0?m0.jsxDEV(R$,{message:"No usage snapshots recorded yet — they accumulate whenever usage is fetched"},void 0,!1,void 0,this):m0.jsxDEV(g2,{data:W,options:M},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this)}var JP=s(L1(),1);var M1=s(U0(),1);function QP({active:J,refreshTrigger:G,onRequestClick:q}){let{data:X,error:N,loading:K}=n1(["recent-requests-dense",G],(W)=>o3(50,W),{pollMs:30000,enabled:J}),H=JP.useMemo(()=>[{key:"model",header:"Model",render:(W)=>M1.jsxDEV("div",{children:[M1.jsxDEV("div",{className:"stats-font-medium stats-text-primary",children:W.model},void 0,!1,void 0,this),M1.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)=>G6(W.timestamp)},{key:"tokens",header:"Tokens",numeric:!0,render:(W)=>S0(W.usage.totalTokens)},{key:"cost",header:"Cost",numeric:!0,render:(W)=>z1(W.usage.cost.total,4)},{key:"duration",header:"Duration",numeric:!0,render:(W)=>v5(W.duration)},{key:"status",header:"Status",className:"stats-text-center",render:(W)=>M1.jsxDEV(O5,{variant:W.errorMessage?"danger":"success",children:W.errorMessage?"Failed":"Success"},void 0,!1,void 0,this)}],[]);return M1.jsxDEV("div",{className:"stats-route-container",children:M1.jsxDEV(q1,{title:"All Recent Requests",subtitle:"Up to 50 most recent requests processed by OMP",children:M1.jsxDEV(f1,{loading:K,error:N,data:X,children:M1.jsxDEV(X6,{columns:H,data:X||[],keyExtractor:(W)=>W.id||`${W.sessionFile}-${W.entryId}`,onRowClick:(W)=>W.id&&q(W.id),renderMobileCard:(W,M)=>M1.jsxDEV("div",{className:"stats-mobile-card",onClick:M,children:[M1.jsxDEV("div",{className:"stats-mobile-card-header",children:[M1.jsxDEV("div",{children:[M1.jsxDEV("div",{className:"stats-font-semibold stats-text-primary",children:W.model},void 0,!1,void 0,this),M1.jsxDEV("div",{className:"stats-text-xs stats-text-muted",children:W.provider},void 0,!1,void 0,this)]},void 0,!0,void 0,this),M1.jsxDEV(O5,{variant:W.errorMessage?"danger":"success",children:W.errorMessage?"Failed":"Success"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),M1.jsxDEV("div",{className:"stats-mobile-card-grid",children:[M1.jsxDEV("div",{children:[M1.jsxDEV("div",{className:"stats-mobile-card-label",children:"Time"},void 0,!1,void 0,this),M1.jsxDEV("div",{className:"stats-mobile-card-value",children:G6(W.timestamp)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),M1.jsxDEV("div",{children:[M1.jsxDEV("div",{className:"stats-mobile-card-label",children:"Cost"},void 0,!1,void 0,this),M1.jsxDEV("div",{className:"stats-mobile-card-value",children:z1(W.usage.cost.total,4)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),M1.jsxDEV("div",{children:[M1.jsxDEV("div",{className:"stats-mobile-card-label",children:"Tokens"},void 0,!1,void 0,this),M1.jsxDEV("div",{className:"stats-mobile-card-value",children:S0(W.usage.totalTokens)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),M1.jsxDEV("div",{children:[M1.jsxDEV("div",{className:"stats-mobile-card-label",children:"Duration"},void 0,!1,void 0,this),M1.jsxDEV("div",{className:"stats-mobile-card-value",children:v5(W.duration)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),W.errorMessage&&M1.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 a6=s(L1(),1);var e=s(U0(),1);function GP({active:J,range:G,refreshTrigger:q}){let{data:X,error:N,loading:K}=n1(["tools",G,q],(H)=>t_(G,H),{pollMs:30000,enabled:J});return e.jsxDEV("div",{className:"stats-route-container space-y-6",children:e.jsxDEV(f1,{loading:K,error:N,data:X,emptyText:"No tool calls recorded for this range.",children:X&&e.jsxDEV(e.Fragment,{children:[e.jsxDEV(OD,{byTool:X.byTool},void 0,!1,void 0,this),e.jsxDEV(AD,{series:X.series,timeRange:G},void 0,!1,void 0,this),e.jsxDEV(ED,{byTool:X.byTool},void 0,!1,void 0,this),e.jsxDEV(SD,{byToolModel:X.byToolModel},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this)}function OD({byTool:J}){let G=a6.useMemo(()=>{let q=0,X=0,N=0,K=0,H=0,F=0,W=0;for(let M of J)q+=M.calls,X+=M.errors,N+=M.totalTokensShare,K+=M.outputTokensShare,H+=M.costShare,F+=M.resultChars,W+=M.argsChars;return{calls:q,errors:X,tokens:N,output:K,cost:H,resultChars:F,argsChars:W,tools:J.length}},[J]);return e.jsxDEV(q1,{title:"Tool Usage",subtitle:"Tokens/cost are the invoking turns' real provider usage, split across each turn's tool calls",children:e.jsxDEV("div",{className:"stats-metric-cluster",children:[e.jsxDEV("div",{className:"stats-metric-primary-grid",children:[e.jsxDEV("div",{className:"stats-metric-card primary",children:[e.jsxDEV("div",{className:"stats-metric-label",children:"Tool Calls"},void 0,!1,void 0,this),e.jsxDEV("div",{className:"stats-metric-value",children:S0(G.calls)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),e.jsxDEV("div",{className:"stats-metric-card primary",children:[e.jsxDEV("div",{className:"stats-metric-label",children:"Tools Used"},void 0,!1,void 0,this),e.jsxDEV("div",{className:"stats-metric-value",children:S0(G.tools)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),e.jsxDEV("div",{className:"stats-metric-card primary",children:[e.jsxDEV("div",{className:"stats-metric-label",children:"Error Rate"},void 0,!1,void 0,this),e.jsxDEV("div",{className:"stats-metric-value",children:x1(G.calls>0?G.errors/G.calls:0)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),e.jsxDEV("div",{className:"stats-metric-card primary",children:[e.jsxDEV("div",{className:"stats-metric-label",children:"Attributed Cost"},void 0,!1,void 0,this),e.jsxDEV("div",{className:"stats-metric-value",children:z1(G.cost)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),e.jsxDEV("div",{className:"stats-metric-secondary-grid",children:[e.jsxDEV("div",{className:"stats-metric-card secondary",children:[e.jsxDEV("div",{className:"stats-metric-label",children:"Attributed Tokens"},void 0,!1,void 0,this),e.jsxDEV("div",{className:"stats-metric-value",children:X1(Math.round(G.tokens))},void 0,!1,void 0,this)]},void 0,!0,void 0,this),e.jsxDEV("div",{className:"stats-metric-card secondary",children:[e.jsxDEV("div",{className:"stats-metric-label",children:"Attributed Output"},void 0,!1,void 0,this),e.jsxDEV("div",{className:"stats-metric-value",children:X1(Math.round(G.output))},void 0,!1,void 0,this)]},void 0,!0,void 0,this),e.jsxDEV("div",{className:"stats-metric-card secondary",children:[e.jsxDEV("div",{className:"stats-metric-label",children:"Result Text"},void 0,!1,void 0,this),e.jsxDEV("div",{className:"stats-metric-value",children:[X1(G.resultChars)," chars"]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),e.jsxDEV("div",{className:"stats-metric-card secondary",children:[e.jsxDEV("div",{className:"stats-metric-label",children:"Call Arguments"},void 0,!1,void 0,this),e.jsxDEV("div",{className:"stats-metric-value",children:[X1(G.argsChars)," chars"]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)}var ID=6;function VD(J){let G=new Map;for(let M of J)G.set(M.tool,(G.get(M.tool)??0)+M.calls);let q=[...G.entries()].sort((M,R)=>R[1]-M[1]),X=q.slice(0,ID).map(([M])=>M),N=new Set(X),H=q.length>X.length?[...X,"Other"]:X,F=[...new Set(J.map((M)=>M.timestamp))].sort((M,R)=>M-R),W=new Map;for(let M of F)W.set(M,{});for(let M of J){let R=N.has(M.tool)?M.tool:"Other",_=W.get(M.timestamp);if(_)_[R]=(_[R]??0)+M.calls}return{buckets:F,tools:H,data:W}}function AD({series:J,timeRange:G}){let q=z5(),X=s1[q],N=n7(G),K=a6.useMemo(()=>VD(J),[J]),H=a6.useMemo(()=>({labels:K.buckets.map((W)=>nJ(W,G)),datasets:K.tools.map((W,M)=>({label:W,data:K.buckets.map((R)=>K.data.get(R)?.[W]??0),borderColor:K1[M%K1.length],backgroundColor:`${K1[M%K1.length]}30`,fill:!0,tension:0.4,pointRadius:0,pointHoverRadius:4,borderWidth:2}))}),[K,G]),F=a6.useMemo(()=>({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)=>`${W.dataset.label??""}: ${S0(W.parsed.y??0)} calls`}}},scales:{x:{stacked:!0,grid:{color:X.grid,drawBorder:!1},ticks:{color:X.tick,font:{size:11}}},y:{stacked:!0,grid:{color:X.grid,drawBorder:!1},ticks:{color:X.tick,font:{size:11},precision:0},min:0}}}),[X]);return e.jsxDEV(q1,{title:"Calls Over Time",subtitle:`Tool calls over ${N.windowLabel}, stacked by tool`,children:e.jsxDEV("div",{className:"h-[280px]",children:K.buckets.length===0?e.jsxDEV("div",{className:"h-full flex items-center justify-center text-stats-muted text-sm",children:"No data available"},void 0,!1,void 0,this):e.jsxDEV(k5,{data:H,options:F},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this)}function TK(J){return J>0.1?"danger":J>0?"warning":"success"}function ED({byTool:J}){let G=a6.useMemo(()=>vL(J),[J]),q=a6.useMemo(()=>[{key:"tool",header:"Tool",render:(N)=>e.jsxDEV("div",{className:"stats-font-medium stats-text-primary font-mono truncate max-w-[280px]",title:N.tool,children:N.tool},void 0,!1,void 0,this)},{key:"calls",header:"Calls",numeric:!0,render:(N)=>e.jsxDEV("div",{className:"stats-text-right",children:[e.jsxDEV("div",{className:"font-mono",children:S0(N.calls)},void 0,!1,void 0,this),e.jsxDEV("div",{className:"stats-progress-bar-track mt-1 ml-auto w-24 h-1",children:e.jsxDEV("div",{className:"stats-progress-bar-fill","data-variant":"link",style:{width:`${N.callsPercentage}%`}},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},{key:"errorRate",header:"Error Rate",numeric:!0,render:(N)=>e.jsxDEV(O5,{variant:TK(N.errorRate),children:x1(N.errorRate)},void 0,!1,void 0,this)},{key:"tokens",header:"Attr. Tokens",numeric:!0,render:(N)=>e.jsxDEV("span",{className:"font-mono",title:"Invoking turns' total tokens, split across each turn's calls",children:X1(Math.round(N.totalTokensShare))},void 0,!1,void 0,this)},{key:"cost",header:"Attr. Cost",numeric:!0,render:(N)=>e.jsxDEV("span",{className:"font-mono",children:z1(N.costShare)},void 0,!1,void 0,this)},{key:"resultChars",header:"Result Text",numeric:!0,render:(N)=>e.jsxDEV("span",{className:"font-mono",title:"Characters of tool-result text fed back into context",children:X1(N.resultChars)},void 0,!1,void 0,this)},{key:"lastUsed",header:"Last Used",numeric:!0,render:(N)=>e.jsxDEV("span",{className:"stats-text-secondary",children:G6(N.lastUsed)},void 0,!1,void 0,this)}],[]);return e.jsxDEV(q1,{title:"By Tool",subtitle:"Usage per tool, most called first",children:e.jsxDEV(X6,{columns:q,data:G,keyExtractor:(N)=>N.tool,renderMobileCard:(N)=>e.jsxDEV("div",{className:"stats-mobile-card",children:[e.jsxDEV("div",{className:"stats-mobile-card-header mb-2",children:[e.jsxDEV("div",{className:"stats-font-semibold stats-text-primary font-mono",children:N.tool},void 0,!1,void 0,this),e.jsxDEV(O5,{variant:TK(N.errorRate),children:[x1(N.errorRate)," Err"]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),e.jsxDEV("div",{className:"stats-mobile-card-grid",children:[e.jsxDEV("div",{children:[e.jsxDEV("div",{className:"stats-mobile-card-label",children:"Calls"},void 0,!1,void 0,this),e.jsxDEV("div",{className:"stats-mobile-card-value font-mono",children:S0(N.calls)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),e.jsxDEV("div",{children:[e.jsxDEV("div",{className:"stats-mobile-card-label",children:"Attr. Tokens"},void 0,!1,void 0,this),e.jsxDEV("div",{className:"stats-mobile-card-value font-mono",children:X1(Math.round(N.totalTokensShare))},void 0,!1,void 0,this)]},void 0,!0,void 0,this),e.jsxDEV("div",{children:[e.jsxDEV("div",{className:"stats-mobile-card-label",children:"Attr. Cost"},void 0,!1,void 0,this),e.jsxDEV("div",{className:"stats-mobile-card-value font-mono",children:z1(N.costShare)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),e.jsxDEV("div",{children:[e.jsxDEV("div",{className:"stats-mobile-card-label",children:"Result Text"},void 0,!1,void 0,this),e.jsxDEV("div",{className:"stats-mobile-card-value font-mono",children:X1(N.resultChars)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),emptyText:"No tool calls recorded for this range."},void 0,!1,void 0,this)},void 0,!1,void 0,this)}function SD({byToolModel:J}){let[G,q]=a6.useState(null),X=a6.useMemo(()=>[...new Set(J.map((H)=>H.tool))].sort(),[J]),N=a6.useMemo(()=>{return(G?J.filter((F)=>F.tool===G):J).map((F)=>({...F,errorRate:F.calls>0?F.errors/F.calls:0}))},[J,G]),K=a6.useMemo(()=>[{key:"tool",header:"Tool",render:(H)=>e.jsxDEV("span",{className:"stats-font-medium stats-text-primary font-mono",children:H.tool},void 0,!1,void 0,this)},{key:"model",header:"Model",render:(H)=>e.jsxDEV("div",{children:[e.jsxDEV("div",{className:"stats-text-primary",children:H.model||"(unknown)"},void 0,!1,void 0,this),e.jsxDEV("div",{className:"stats-text-secondary text-xs",children:H.provider},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},{key:"calls",header:"Calls",numeric:!0,render:(H)=>e.jsxDEV("span",{className:"font-mono",children:S0(H.calls)},void 0,!1,void 0,this)},{key:"errorRate",header:"Error Rate",numeric:!0,render:(H)=>e.jsxDEV(O5,{variant:TK(H.errorRate),children:x1(H.errorRate)},void 0,!1,void 0,this)},{key:"tokens",header:"Attr. Tokens",numeric:!0,render:(H)=>e.jsxDEV("span",{className:"font-mono",children:X1(Math.round(H.totalTokensShare))},void 0,!1,void 0,this)},{key:"cost",header:"Attr. Cost",numeric:!0,render:(H)=>e.jsxDEV("span",{className:"font-mono",children:z1(H.costShare)},void 0,!1,void 0,this)}],[]);return e.jsxDEV(q1,{title:"By Model",subtitle:"Which models call which tools",children:[e.jsxDEV("div",{className:"mb-4",style:{display:"flex",alignItems:"center",gap:"0.5rem"},children:[e.jsxDEV("span",{className:"stats-text-secondary",style:{fontSize:"0.875rem",whiteSpace:"nowrap"},children:"Tool"},void 0,!1,void 0,this),e.jsxDEV("select",{className:"stats-select",value:G??"",onChange:(H)=>q(H.target.value||null),style:{maxWidth:"320px",flex:1},children:[e.jsxDEV("option",{value:"",children:"All tools"},void 0,!1,void 0,this),X.map((H)=>e.jsxDEV("option",{value:H,children:H},H,!1,void 0,this))]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),e.jsxDEV(X6,{columns:K,data:N,keyExtractor:(H)=>`${H.tool}::${H.model}::${H.provider}`,emptyText:"No tool calls recorded for this range."},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}var I5=s(U0(),1);function CK(){let{section:J,setSection:G,range:q,setRange:X}=HL(),[N,K]=j8.useState(0),[H,F]=j8.useState(null),[W,M]=j8.useState(()=>Date.now()),R=j8.useCallback((V)=>{if(V.success)K((I)=>I+1),M(Date.now())},[]),_=j8.useCallback(()=>F(null),[]),P=J,O=j8.useRef(new Set);O.current.add(P);let E=(V)=>{let I=V===P;switch(V){case"overview":return I5.jsxDEV(eL,{active:I,range:q,refreshTrigger:N,onRequestClick:F},void 0,!1,void 0,this);case"requests":return I5.jsxDEV(QP,{active:I,range:q,refreshTrigger:N,onRequestClick:F},void 0,!1,void 0,this);case"errors":return I5.jsxDEV(sL,{active:I,range:q,refreshTrigger:N,onRequestClick:F},void 0,!1,void 0,this);case"models":return I5.jsxDEV(aL,{active:I,range:q,refreshTrigger:N},void 0,!1,void 0,this);case"providers":return I5.jsxDEV(ZP,{active:I,range:q,refreshTrigger:N},void 0,!1,void 0,this);case"tools":return I5.jsxDEV(GP,{active:I,range:q,refreshTrigger:N},void 0,!1,void 0,this);case"costs":return I5.jsxDEV(lL,{active:I,range:q,refreshTrigger:N},void 0,!1,void 0,this);case"behavior":return I5.jsxDEV(cL,{active:I,range:q,refreshTrigger:N},void 0,!1,void 0,this);case"projects":return I5.jsxDEV($P,{active:I,range:q,refreshTrigger:N},void 0,!1,void 0,this);case"gain":return I5.jsxDEV(nL,{active:I,range:q,refreshTrigger:N},void 0,!1,void 0,this)}};return I5.jsxDEV(I5.Fragment,{children:[I5.jsxDEV(KL,{activeSection:P,onSectionChange:G,range:q,onRangeChange:X,updatedAt:W,onSyncComplete:R,children:[...O.current].map((V)=>I5.jsxDEV("div",{hidden:V!==P,children:E(V)},V,!1,void 0,this))},void 0,!1,void 0,this),I5.jsxDEV(hL,{id:H,onClose:_},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}var YP=s(U0(),1),DD=qP.createRoot(document.getElementById("root"));DD.render(YP.jsxDEV(CK,{},void 0,!1,void 0,this));
|
|
257
|
+
`);return J}function OE(J,G){let{element:q,datasetIndex:X,index:N}=G,K=J.getDatasetMeta(X).controller,{label:H,value:F}=K.getLabelAndValue(N);return{chart:J,label:H,parsed:K.getParsed(N),raw:J.data.datasets[X].data[N],formattedValue:F,dataset:K.getDataset(),dataIndex:N,datasetIndex:X,element:q}}function xR(J,G){let q=J.chart.ctx,{body:X,footer:N,title:K}=J,{boxWidth:H,boxHeight:F}=G,W=Q5(G.bodyFont),M=Q5(G.titleFont),R=Q5(G.footerFont),_=K.length,P=N.length,O=X.length,E=T5(G.padding),V=E.height,I=0,j=X.reduce((n,a)=>n+a.before.length+a.lines.length+a.after.length,0);if(j+=J.beforeBody.length+J.afterBody.length,_)V+=_*M.lineHeight+(_-1)*G.titleSpacing+G.titleMarginBottom;if(j){let n=G.displayColors?Math.max(F,W.lineHeight):W.lineHeight;V+=O*n+(j-O)*W.lineHeight+(j-1)*G.bodySpacing}if(P)V+=G.footerMarginTop+P*R.lineHeight+(P-1)*G.footerSpacing;let h=0,p=function(n){I=Math.max(I,q.measureText(n).width+h)};return q.save(),q.font=M.string,F1(J.title,p),q.font=W.string,F1(J.beforeBody.concat(J.afterBody),p),h=G.displayColors?H+2+G.boxPadding:0,F1(X,(n)=>{F1(n.before,p),F1(n.lines,p),F1(n.after,p)}),h=0,q.font=R.string,F1(J.footer,p),q.restore(),I+=E.width,{width:I,height:V}}function IE(J,G){let{y:q,height:X}=G;if(q<X/2)return"top";else if(q>J.height-X/2)return"bottom";return"center"}function VE(J,G,q,X){let{x:N,width:K}=X,H=q.caretSize+q.caretPadding;if(J==="left"&&N+K+H>G.width)return!0;if(J==="right"&&N-K-H<0)return!0}function AE(J,G,q,X){let{x:N,width:K}=q,{width:H,chartArea:{left:F,right:W}}=J,M="center";if(X==="center")M=N<=(F+W)/2?"left":"right";else if(N<=K/2)M="left";else if(N>=H-K/2)M="right";if(VE(M,J,G,q))M="center";return M}function mR(J,G,q){let X=q.yAlign||G.yAlign||IE(J,q);return{xAlign:q.xAlign||G.xAlign||AE(J,G,q,X),yAlign:X}}function EE(J,G){let{x:q,width:X}=J;if(G==="right")q-=X;else if(G==="center")q-=X/2;return q}function SE(J,G,q){let{y:X,height:N}=J;if(G==="top")X+=q;else if(G==="bottom")X-=N+q;else X-=N/2;return X}function dR(J,G,q,X){let{caretSize:N,caretPadding:K,cornerRadius:H}=J,{xAlign:F,yAlign:W}=q,M=N+K,{topLeft:R,topRight:_,bottomLeft:P,bottomRight:O}=j2(H),E=EE(G,F),V=SE(G,W,M);if(W==="center"){if(F==="left")E+=M;else if(F==="right")E-=M}else if(F==="left")E-=Math.max(R,P)+N;else if(F==="right")E+=Math.max(_,O)+N;return{x:$6(E,0,X.width-G.width),y:$6(V,0,X.height-G.height)}}function g3(J,G,q){let X=T5(q.padding);return G==="center"?J.x+J.width/2:G==="right"?J.x+J.width-X.right:J.x+X.left}function pR(J){return d4([],A8(J))}function DE(J,G,q){return I8(J,{tooltip:G,tooltipItems:q,type:"tooltip"})}function cR(J,G){let q=G&&G.dataset&&G.dataset.tooltip&&G.dataset.tooltip.callbacks;return q?J.override(q):J}var V_={beforeTitle:m4,title(J){if(J.length>0){let G=J[0],q=G.chart.data.labels,X=q?q.length:0;if(this&&this.options&&this.options.mode==="dataset")return G.dataset.label||"";else if(G.label)return G.label;else if(X>0&&G.dataIndex<X)return q[G.dataIndex]}return""},afterTitle:m4,beforeBody:m4,beforeLabel:m4,label(J){if(this&&this.options&&this.options.mode==="dataset")return J.label+": "+J.formattedValue||J.formattedValue;let G=J.dataset.label||"";if(G)G+=": ";let q=J.formattedValue;if(!Q1(q))G+=q;return G},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:m4,afterBody:m4,beforeFooter:m4,footer:m4,afterFooter:m4};function J6(J,G,q,X){let N=J[G].call(q,X);if(typeof N>"u")return V_[G].call(q,X);return N}class pU extends E8{static positioners=wJ;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 G=this.chart,q=this.options.setContext(this.getContext()),X=q.enabled&&G.options.animation&&q.animations,N=new rU(this.chart,X);if(X._cacheable)this._cachedAnimations=Object.freeze(N);return N}getContext(){return this.$context||(this.$context=DE(this.chart.getContext(),this,this._tooltipItems))}getTitle(J,G){let{callbacks:q}=G,X=J6(q,"beforeTitle",this,J),N=J6(q,"title",this,J),K=J6(q,"afterTitle",this,J),H=[];return H=d4(H,A8(X)),H=d4(H,A8(N)),H=d4(H,A8(K)),H}getBeforeBody(J,G){return pR(J6(G.callbacks,"beforeBody",this,J))}getBody(J,G){let{callbacks:q}=G,X=[];return F1(J,(N)=>{let K={before:[],lines:[],after:[]},H=cR(q,N);d4(K.before,A8(J6(H,"beforeLabel",this,N))),d4(K.lines,J6(H,"label",this,N)),d4(K.after,A8(J6(H,"afterLabel",this,N))),X.push(K)}),X}getAfterBody(J,G){return pR(J6(G.callbacks,"afterBody",this,J))}getFooter(J,G){let{callbacks:q}=G,X=J6(q,"beforeFooter",this,J),N=J6(q,"footer",this,J),K=J6(q,"afterFooter",this,J),H=[];return H=d4(H,A8(X)),H=d4(H,A8(N)),H=d4(H,A8(K)),H}_createItems(J){let G=this._active,q=this.chart.data,X=[],N=[],K=[],H=[],F,W;for(F=0,W=G.length;F<W;++F)H.push(OE(this.chart,G[F]));if(J.filter)H=H.filter((M,R,_)=>J.filter(M,R,_,q));if(J.itemSort)H=H.sort((M,R)=>J.itemSort(M,R,q));return F1(H,(M)=>{let R=cR(J.callbacks,M);X.push(J6(R,"labelColor",this,M)),N.push(J6(R,"labelPointStyle",this,M)),K.push(J6(R,"labelTextColor",this,M))}),this.labelColors=X,this.labelPointStyles=N,this.labelTextColors=K,this.dataPoints=H,H}update(J,G){let q=this.options.setContext(this.getContext()),X=this._active,N,K=[];if(!X.length){if(this.opacity!==0)N={opacity:0}}else{let H=wJ[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 F=this._size=xR(this,q),W=Object.assign({},H,F),M=mR(this.chart,q,W),R=dR(q,W,M,this.chart);this.xAlign=M.xAlign,this.yAlign=M.yAlign,N={opacity:1,x:R.x,y:R.y,width:F.width,height:F.height,caretX:H.x,caretY:H.y}}if(this._tooltipItems=K,this.$context=void 0,N)this._resolveAnimations().update(this,N);if(J&&q.external)q.external.call(this,{chart:this.chart,tooltip:this,replay:G})}drawCaret(J,G,q,X){let N=this.getCaretPosition(J,q,X);G.lineTo(N.x1,N.y1),G.lineTo(N.x2,N.y2),G.lineTo(N.x3,N.y3)}getCaretPosition(J,G,q){let{xAlign:X,yAlign:N}=this,{caretSize:K,cornerRadius:H}=q,{topLeft:F,topRight:W,bottomLeft:M,bottomRight:R}=j2(H),{x:_,y:P}=J,{width:O,height:E}=G,V,I,j,h,p,n;if(N==="center"){if(p=P+E/2,X==="left")V=_,I=V-K,h=p+K,n=p-K;else V=_+O,I=V+K,h=p-K,n=p+K;j=V}else{if(X==="left")I=_+Math.max(F,M)+K;else if(X==="right")I=_+O-Math.max(W,R)-K;else I=this.caretX;if(N==="top")h=P,p=h-K,V=I-K,j=I+K;else h=P+E,p=h+K,V=I+K,j=I-K;n=h}return{x1:V,x2:I,x3:j,y1:h,y2:p,y3:n}}drawTitle(J,G,q){let X=this.title,N=X.length,K,H,F;if(N){let W=g7(q.rtl,this.x,this.width);J.x=g3(this,q.titleAlign,q),G.textAlign=W.textAlign(q.titleAlign),G.textBaseline="middle",K=Q5(q.titleFont),H=q.titleSpacing,G.fillStyle=q.titleColor,G.font=K.string;for(F=0;F<N;++F)if(G.fillText(X[F],W.x(J.x),J.y+K.lineHeight/2),J.y+=K.lineHeight+H,F+1===N)J.y+=q.titleMarginBottom-H}}_drawColorBox(J,G,q,X,N){let K=this.labelColors[q],H=this.labelPointStyles[q],{boxHeight:F,boxWidth:W}=N,M=Q5(N.bodyFont),R=g3(this,"left",N),_=X.x(R),P=F<M.lineHeight?(M.lineHeight-F)/2:0,O=G.y+P;if(N.usePointStyle){let E={radius:Math.min(W,F)/2,pointStyle:H.pointStyle,rotation:H.rotation,borderWidth:1},V=X.leftForLtr(_,W)+W/2,I=O+F/2;J.strokeStyle=N.multiKeyBackground,J.fillStyle=N.multiKeyBackground,S3(J,E,V,I),J.strokeStyle=K.borderColor,J.fillStyle=K.backgroundColor,S3(J,E,V,I)}else{J.lineWidth=$1(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(_,W),V=X.leftForLtr(X.xPlus(_,1),W-2),I=j2(K.borderRadius);if(Object.values(I).some((j)=>j!==0))J.beginPath(),J.fillStyle=N.multiKeyBackground,F$(J,{x:E,y:O,w:W,h:F,radius:I}),J.fill(),J.stroke(),J.fillStyle=K.backgroundColor,J.beginPath(),F$(J,{x:V,y:O+1,w:W-2,h:F-2,radius:I}),J.fill();else J.fillStyle=N.multiKeyBackground,J.fillRect(E,O,W,F),J.strokeRect(E,O,W,F),J.fillStyle=K.backgroundColor,J.fillRect(V,O+1,W-2,F-2)}J.fillStyle=this.labelTextColors[q]}drawBody(J,G,q){let{body:X}=this,{bodySpacing:N,bodyAlign:K,displayColors:H,boxHeight:F,boxWidth:W,boxPadding:M}=q,R=Q5(q.bodyFont),_=R.lineHeight,P=0,O=g7(q.rtl,this.x,this.width),E=function(t){G.fillText(t,O.x(J.x+P),J.y+_/2),J.y+=_+N},V=O.textAlign(K),I,j,h,p,n,a,Q0;G.textAlign=K,G.textBaseline="middle",G.font=R.string,J.x=g3(this,V,q),G.fillStyle=q.bodyColor,F1(this.beforeBody,E),P=H&&V!=="right"?K==="center"?W/2+M:W+2+M:0;for(p=0,a=X.length;p<a;++p){if(I=X[p],j=this.labelTextColors[p],G.fillStyle=j,F1(I.before,E),h=I.lines,H&&h.length)this._drawColorBox(G,J,p,O,q),_=Math.max(R.lineHeight,F);for(n=0,Q0=h.length;n<Q0;++n)E(h[n]),_=R.lineHeight;F1(I.after,E)}P=0,_=R.lineHeight,F1(this.afterBody,E),J.y-=N}drawFooter(J,G,q){let X=this.footer,N=X.length,K,H;if(N){let F=g7(q.rtl,this.x,this.width);J.x=g3(this,q.footerAlign,q),J.y+=q.footerMarginTop,G.textAlign=F.textAlign(q.footerAlign),G.textBaseline="middle",K=Q5(q.footerFont),G.fillStyle=q.footerColor,G.font=K.string;for(H=0;H<N;++H)G.fillText(X[H],F.x(J.x),J.y+K.lineHeight/2),J.y+=K.lineHeight+q.footerSpacing}}drawBackground(J,G,q,X){let{xAlign:N,yAlign:K}=this,{x:H,y:F}=J,{width:W,height:M}=q,{topLeft:R,topRight:_,bottomLeft:P,bottomRight:O}=j2(X.cornerRadius);if(G.fillStyle=X.backgroundColor,G.strokeStyle=X.borderColor,G.lineWidth=X.borderWidth,G.beginPath(),G.moveTo(H+R,F),K==="top")this.drawCaret(J,G,q,X);if(G.lineTo(H+W-_,F),G.quadraticCurveTo(H+W,F,H+W,F+_),K==="center"&&N==="right")this.drawCaret(J,G,q,X);if(G.lineTo(H+W,F+M-O),G.quadraticCurveTo(H+W,F+M,H+W-O,F+M),K==="bottom")this.drawCaret(J,G,q,X);if(G.lineTo(H+P,F+M),G.quadraticCurveTo(H,F+M,H,F+M-P),K==="center"&&N==="left")this.drawCaret(J,G,q,X);if(G.lineTo(H,F+R),G.quadraticCurveTo(H,F,H+R,F),G.closePath(),G.fill(),X.borderWidth>0)G.stroke()}_updateAnimationTarget(J){let G=this.chart,q=this.$animations,X=q&&q.x,N=q&&q.y;if(X||N){let K=wJ[J.position].call(this,this._active,this._eventPosition);if(!K)return;let H=this._size=xR(this,J),F=Object.assign({},K,this._size),W=mR(G,J,F),M=dR(J,F,W,G);if(X._to!==M.x||N._to!==M.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,M)}}_willRender(){return!!this.opacity}draw(J){let G=this.options.setContext(this.getContext()),q=this.opacity;if(!q)return;this._updateAnimationTarget(G);let X={width:this.width,height:this.height},N={x:this.x,y:this.y};q=Math.abs(q)<0.001?0:q;let K=T5(G.padding),H=this.title.length||this.beforeBody.length||this.body.length||this.afterBody.length||this.footer.length;if(G.enabled&&H)J.save(),J.globalAlpha=q,this.drawBackground(N,J,X,G),TU(J,G.textDirection),N.y+=K.top,this.drawTitle(N,J,G),this.drawBody(N,J,G),this.drawFooter(N,J,G),CU(J,G.textDirection),J.restore()}getActiveElements(){return this._active||[]}setActiveElements(J,G){let q=this._active,X=J.map(({datasetIndex:H,index:F})=>{let W=this.chart.getDatasetMeta(H);if(!W)throw Error("Cannot find a dataset at index "+H);return{datasetIndex:H,element:W.data[F],index:F}}),N=!qJ(q,X),K=this._positionChanged(X,G);if(N||K)this._active=X,this._eventPosition=G,this._ignoreReplayEvents=!0,this.update(!0)}handleEvent(J,G,q=!0){if(G&&this._ignoreReplayEvents)return!1;this._ignoreReplayEvents=!1;let X=this.options,N=this._active||[],K=this._getActiveElements(J,N,G,q),H=this._positionChanged(K,J),F=G||!qJ(K,N)||H;if(F){if(this._active=K,X.enabled||X.external)this._eventPosition={x:J.x,y:J.y},this.update(!0,G)}return F}_getActiveElements(J,G,q,X){let N=this.options;if(J.type==="mouseout")return[];if(!X)return G.filter((H)=>this.chart.data.datasets[H.datasetIndex]&&this.chart.getDatasetMeta(H.datasetIndex).controller.getParsed(H.index)!==void 0);let K=this.chart.getElementsAtEventForMode(J,N.mode,N,q);if(N.reverse)K.reverse();return K}_positionChanged(J,G){let{caretX:q,caretY:X,options:N}=this,K=wJ[N.position].call(this,J,G);return K!==!1&&(q!==K.x||X!==K.y)}}var A_={id:"tooltip",_element:pU,positioners:wJ,afterInit(J,G,q){if(q)J.tooltip=new pU({chart:J,options:q})},beforeUpdate(J,G,q){if(J.tooltip)J.tooltip.initialize(q)},reset(J,G,q){if(J.tooltip)J.tooltip.initialize(q)},afterDraw(J){let G=J.tooltip;if(G&&G._willRender()){let q={tooltip:G};if(J.notifyPlugins("beforeTooltipDraw",{...q,cancelable:!0})===!1)return;G.draw(J.ctx),J.notifyPlugins("afterTooltipDraw",q)}},afterEvent(J,G){if(J.tooltip){let q=G.replay;if(J.tooltip.handleEvent(G.event,q,G.inChartArea))G.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,G)=>G.bodyFont.size,boxWidth:(J,G)=>G.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:V_},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 jE=(J,G,q,X)=>{if(typeof G==="string")q=J.push(G)-1,X.unshift({index:q,label:G});else if(isNaN(G))q=null;return q};function kE(J,G,q,X){let N=J.indexOf(G);if(N===-1)return jE(J,G,q,X);let K=J.lastIndexOf(G);return N!==K?q:N}var vE=(J,G)=>J===null?null:$6(Math.round(J),0,G);function lR(J){let G=this.getLabels();if(J>=0&&J<G.length)return G[J];return J}class ZK extends x7{static id="category";static defaults={ticks:{callback:lR}};constructor(J){super(J);this._startValue=void 0,this._valueRange=0,this._addedLabels=[]}init(J){let G=this._addedLabels;if(G.length){let q=this.getLabels();for(let{index:X,label:N}of G)if(q[X]===N)q.splice(X,1);this._addedLabels=[]}super.init(J)}parse(J,G){if(Q1(J))return null;let q=this.getLabels();return G=isFinite(G)&&q[G]===J?G:kE(q,J,s0(G,J),this._addedLabels),vE(G,q.length-1)}determineDataLimits(){let{minDefined:J,maxDefined:G}=this.getUserBounds(),{min:q,max:X}=this.getMinMax(!0);if(this.options.bounds==="ticks"){if(!J)q=0;if(!G)X=this.getLabels().length-1}this.min=q,this.max=X}buildTicks(){let J=this.min,G=this.max,q=this.options.offset,X=[],N=this.getLabels();N=J===0&&G===N.length-1?N:N.slice(J,G+1),this._valueRange=Math.max(N.length-(q?0:1),1),this._startValue=this.min-(q?0.5:0);for(let K=J;K<=G;K++)X.push({value:K});return X}getLabelForValue(J){return lR.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 G=this.ticks;if(J<0||J>G.length-1)return null;return this.getPixelForValue(G[J].value)}getValueForPixel(J){return Math.round(this._startValue+this.getDecimalForPixel(J)*this._valueRange)}getBasePixel(){return this.bottom}}function bE(J,G){let q=[],X=0.00000000000001,{bounds:N,step:K,min:H,max:F,precision:W,count:M,maxTicks:R,maxDigits:_,includeBounds:P}=J,O=K||1,E=R-1,{min:V,max:I}=G,j=!Q1(H),h=!Q1(F),p=!Q1(M),n=(I-V)/(_+1),a=QU((I-V)/E/O)*O,Q0,t,i,X0;if(a<0.00000000000001&&!j&&!h)return[{value:V},{value:I}];if(X0=Math.ceil(I/a)-Math.floor(V/a),X0>E)a=QU(X0*a/E/O)*O;if(!Q1(W))Q0=Math.pow(10,W),a=Math.ceil(a*Q0)/Q0;if(N==="ticks")t=Math.floor(V/a)*a,i=Math.ceil(I/a)*a;else t=V,i=I;if(j&&h&&K&&jw((F-H)/K,a/1000))X0=Math.round(Math.min((F-H)/a,R)),a=(F-H)/X0,t=H,i=F;else if(p)t=j?H:t,i=h?F:i,X0=M-1,a=(i-t)/X0;else if(X0=(i-t)/a,B$(X0,Math.round(X0),a/1000))X0=Math.round(X0);else X0=Math.ceil(X0);let d=Math.max(qU(a),qU(t));Q0=Math.pow(10,Q1(W)?d:W),t=Math.round(t*Q0)/Q0,i=Math.round(i*Q0)/Q0;let H0=0;if(j){if(P&&t!==H){if(q.push({value:H}),t<H)H0++;if(B$(Math.round((t+H0*a)*Q0)/Q0,H,rR(H,n,J)))H0++}else if(t<H)H0++}for(;H0<X0;++H0){let P0=Math.round((t+H0*a)*Q0)/Q0;if(h&&P0>F)break;q.push({value:P0})}if(h&&P&&i!==F)if(q.length&&B$(q[q.length-1].value,F,rR(F,n,J)))q[q.length-1].value=F;else q.push({value:F});else if(!h||i===F)q.push({value:i});return q}function rR(J,G,{horizontal:q,minRotation:X}){let N=C8(X),K=(q?Math.sin(N):Math.cos(N))||0.001,H=0.75*G*(""+J).length;return Math.min(G/K,H)}class _J 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,G){if(Q1(J))return null;if((typeof J==="number"||J instanceof Number)&&!isFinite(+J))return null;return+J}handleTickRangeOptions(){let{beginAtZero:J}=this.options,{minDefined:G,maxDefined:q}=this.getUserBounds(),{min:X,max:N}=this,K=(F)=>X=G?X:F,H=(F)=>N=q?N:F;if(J){let F=U4(X),W=U4(N);if(F<0&&W<0)H(0);else if(F>0&&W>0)K(0)}if(X===N){let F=N===0?1:Math.abs(N*0.05);if(H(N+F),!J)K(X-F)}this.min=X,this.max=N}getTickLimit(){let J=this.options.ticks,{maxTicksLimit:G,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(),G=G||11;if(G)X=Math.min(G,X);return X}computeTickLimit(){return Number.POSITIVE_INFINITY}buildTicks(){let J=this.options,G=J.ticks,q=this.getTickLimit();q=Math.max(2,q);let X={maxTicks:q,bounds:J.bounds,min:J.min,max:J.max,precision:G.precision,step:G.stepSize,count:G.count,maxDigits:this._maxDigits(),horizontal:this.isHorizontal(),minRotation:G.minRotation||0,includeBounds:G.includeBounds!==!1},N=this._range||this,K=bE(X,N);if(J.bounds==="ticks")GU(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,G=this.min,q=this.max;if(super.configure(),this.options.offset&&J.length){let X=(q-G)/Math.max(J.length-1,1)/2;G-=X,q+=X}this._startValue=G,this._endValue=q,this._valueRange=q-G}getLabelForValue(J){return A3(J,this.chart.options.locale,this.options.ticks.format)}}class JK extends _J{static id="linear";static defaults={ticks:{callback:YJ.formatters.numeric}};determineDataLimits(){let{min:J,max:G}=this.getMinMax(!0);this.min=h1(J)?J:0,this.max=h1(G)?G:1,this.handleTickRangeOptions()}computeTickLimit(){let J=this.isHorizontal(),G=J?this.width:this.height,q=C8(this.options.ticks.minRotation),X=(J?Math.sin(q):Math.cos(q))||0.001,N=this._resolveTickFontOptions(0);return Math.ceil(G/Math.min(40,N.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 LJ=(J)=>Math.floor(T8(J)),u7=(J,G)=>Math.pow(10,LJ(J)+G);function sR(J){return J/Math.pow(10,LJ(J))===1}function nR(J,G,q){let X=Math.pow(10,q),N=Math.floor(J/X);return Math.ceil(G/X)-N}function fE(J,G){let q=G-J,X=LJ(q);while(nR(J,G,X)>10)X++;while(nR(J,G,X)<10)X--;return Math.min(X,LJ(J))}function yE(J,{min:G,max:q}){G=Z6(J.min,G);let X=[],N=LJ(G),K=fE(G,q),H=K<0?Math.pow(10,Math.abs(K)):1,F=Math.pow(10,K),W=N>K?Math.pow(10,N):0,M=Math.round((G-W)*H)/H,R=Math.floor((G-W)/F/10)*F*10,_=Math.floor((M-R)/Math.pow(10,K)),P=Z6(J.min,Math.round((W+R+_*Math.pow(10,K))*H)/H);while(P<q){if(X.push({value:P,major:sR(P),significand:_}),_>=10)_=_<15?15:20;else _++;if(_>=20)K++,_=2,H=K>=0?1:H;P=Math.round((W+R+_*Math.pow(10,K))*H)/H}let O=Z6(J.max,P);return X.push({value:O,major:sR(O),significand:_}),X}class gE extends x7{static id="logarithmic";static defaults={ticks:{callback:YJ.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,G){let q=_J.prototype.parse.apply(this,[J,G]);if(q===0){this._zero=!0;return}return h1(q)&&q>0?q:null}determineDataLimits(){let{min:J,max:G}=this.getMinMax(!0);if(this.min=h1(J)?Math.max(0,J):null,this.max=h1(G)?Math.max(0,G):null,this.options.beginAtZero)this._zero=!0;if(this._zero&&this.min!==this._suggestedMin&&!h1(this._userMin))this.min=J===u7(this.min,0)?u7(this.min,-1):u7(this.min,0);this.handleTickRangeOptions()}handleTickRangeOptions(){let{minDefined:J,maxDefined:G}=this.getUserBounds(),q=this.min,X=this.max,N=(H)=>q=J?q:H,K=(H)=>X=G?X:H;if(q===X)if(q<=0)N(1),K(10);else N(u7(q,-1)),K(u7(X,1));if(q<=0)N(u7(X,-1));if(X<=0)K(u7(q,1));this.min=q,this.max=X}buildTicks(){let J=this.options,G={min:this._userMin,max:this._userMax},q=yE(G,this);if(J.bounds==="ticks")GU(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":A3(J,this.chart.options.locale,this.options.ticks.format)}configure(){let J=this.min;super.configure(),this._startValue=T8(J),this._valueRange=T8(this.max)-T8(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:(T8(J)-this._startValue)/this._valueRange)}getValueForPixel(J){let G=this.getDecimalForPixel(J);return Math.pow(10,this._startValue+G*this._valueRange)}}function cU(J){let G=J.ticks;if(G.display&&J.display){let q=T5(G.backdropPadding);return s0(G.font&&G.font.size,u1.font.size)+q.height}return 0}function hE(J,G,q){return q=E1(q)?q:[q],{w:cw(J,G.string,q),h:q.length*G.lineHeight}}function oR(J,G,q,X,N){if(J===X||J===N)return{start:G-q/2,end:G+q/2};else if(J<X||J>N)return{start:G-q,end:G};return{start:G,end:G+q}}function uE(J){let G={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({},G),X=[],N=[],K=J._pointLabels.length,H=J.options.pointLabels,F=H.centerPointLabels?r1/K:0;for(let W=0;W<K;W++){let M=H.setContext(J.getPointLabelContext(W));N[W]=M.padding;let R=J.getPointPosition(W,J.drawingArea+N[W],F),_=Q5(M.font),P=hE(J.ctx,_,J._pointLabels[W]);X[W]=P;let O=i5(J.getIndexAngle(W)+F),E=Math.round(O3(O)),V=oR(E,R.x,P.w,0,180),I=oR(E,R.y,P.h,90,270);xE(q,G,O,V,I)}J.setCenterPoint(G.l-q.l,q.r-G.r,G.t-q.t,q.b-G.b),J._pointLabelItems=pE(J,X,N)}function xE(J,G,q,X,N){let K=Math.abs(Math.sin(q)),H=Math.abs(Math.cos(q)),F=0,W=0;if(X.start<G.l)F=(G.l-X.start)/K,J.l=Math.min(J.l,G.l-F);else if(X.end>G.r)F=(X.end-G.r)/K,J.r=Math.max(J.r,G.r+F);if(N.start<G.t)W=(G.t-N.start)/H,J.t=Math.min(J.t,G.t-W);else if(N.end>G.b)W=(N.end-G.b)/H,J.b=Math.max(J.b,G.b+W)}function mE(J,G,q){let X=J.drawingArea,{extra:N,additionalAngle:K,padding:H,size:F}=q,W=J.getPointPosition(G,X+N+H,K),M=Math.round(O3(i5(W.angle+t5))),R=rE(W.y,F.h,M),_=cE(M),P=lE(W.x,F.w,_);return{visible:!0,x:W.x,y:R,textAlign:_,left:P,top:R,right:P+F.w,bottom:R+F.h}}function dE(J,G){if(!G)return!0;let{left:q,top:X,right:N,bottom:K}=J;return!(x4({x:q,y:X},G)||x4({x:q,y:K},G)||x4({x:N,y:X},G)||x4({x:N,y:K},G))}function pE(J,G,q){let X=[],N=J._pointLabels.length,K=J.options,{centerPointLabels:H,display:F}=K.pointLabels,W={extra:cU(K)/2,additionalAngle:H?r1/N:0},M;for(let R=0;R<N;R++){W.padding=q[R],W.size=G[R];let _=mE(J,R,W);if(X.push(_),F==="auto"){if(_.visible=dE(_,M),_.visible)M=_}}return X}function cE(J){if(J===0||J===180)return"center";else if(J<180)return"left";return"right"}function lE(J,G,q){if(q==="right")J-=G;else if(q==="center")J-=G/2;return J}function rE(J,G,q){if(q===90||q===270)J-=G/2;else if(q>270||q<90)J-=G;return J}function sE(J,G,q){let{left:X,top:N,right:K,bottom:H}=q,{backdropColor:F}=G;if(!Q1(F)){let W=j2(G.borderRadius),M=T5(G.backdropPadding);J.fillStyle=F;let R=X-M.left,_=N-M.top,P=K-X+M.width,O=H-N+M.height;if(Object.values(W).some((E)=>E!==0))J.beginPath(),F$(J,{x:R,y:_,w:P,h:O,radius:W}),J.fill();else J.fillRect(R,_,P,O)}}function nE(J,G){let{ctx:q,options:{pointLabels:X}}=J;for(let N=G-1;N>=0;N--){let K=J._pointLabelItems[N];if(!K.visible)continue;let H=X.setContext(J.getPointLabelContext(N));sE(q,H,K);let F=Q5(H.font),{x:W,y:M,textAlign:R}=K;D2(q,J._pointLabels[N],W,M+F.lineHeight/2,F,{color:H.color,textAlign:R,textBaseline:"middle"})}}function E_(J,G,q,X){let{ctx:N}=J;if(q)N.arc(J.xCenter,J.yCenter,G,0,e5);else{let K=J.getPointPosition(0,G);N.moveTo(K.x,K.y);for(let H=1;H<X;H++)K=J.getPointPosition(H,G),N.lineTo(K.x,K.y)}}function oE(J,G,q,X,N){let K=J.ctx,H=G.circular,{color:F,lineWidth:W}=G;if(!H&&!X||!F||!W||q<0)return;K.save(),K.strokeStyle=F,K.lineWidth=W,K.setLineDash(N.dash||[]),K.lineDashOffset=N.dashOffset,K.beginPath(),E_(J,q,H,X),K.closePath(),K.stroke(),K.restore()}function aE(J,G,q){return I8(J,{label:q,index:G,type:"pointLabel"})}class iE extends _J{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:YJ.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=T5(cU(this.options)/2),G=this.width=this.maxWidth-J.width,q=this.height=this.maxHeight-J.height;this.xCenter=Math.floor(this.left+G/2+J.left),this.yCenter=Math.floor(this.top+q/2+J.top),this.drawingArea=Math.floor(Math.min(G,q)/2)}determineDataLimits(){let{min:J,max:G}=this.getMinMax(!1);this.min=h1(J)&&!isNaN(J)?J:0,this.max=h1(G)&&!isNaN(G)?G:0,this.handleTickRangeOptions()}computeTickLimit(){return Math.ceil(this.drawingArea/cU(this.options))}generateTickLabels(J){_J.prototype.generateTickLabels.call(this,J),this._pointLabels=this.getLabels().map((G,q)=>{let X=O1(this.options.pointLabels.callback,[G,q],this);return X||X===0?X:""}).filter((G,q)=>this.chart.getDataVisibility(q))}fit(){let J=this.options;if(J.display&&J.pointLabels.display)uE(this);else this.setCenterPoint(0,0,0,0)}setCenterPoint(J,G,q,X){this.xCenter+=Math.floor((J-G)/2),this.yCenter+=Math.floor((q-X)/2),this.drawingArea-=Math.min(this.drawingArea/2,Math.max(J,G,q,X))}getIndexAngle(J){let G=e5/(this._pointLabels.length||1),q=this.options.startAngle||0;return i5(J*G+C8(q))}getDistanceFromCenterForValue(J){if(Q1(J))return NaN;let G=this.drawingArea/(this.max-this.min);if(this.options.reverse)return(this.max-J)*G;return(J-this.min)*G}getValueForDistanceFromCenter(J){if(Q1(J))return NaN;let G=J/(this.drawingArea/(this.max-this.min));return this.options.reverse?this.max-G:this.min+G}getPointLabelContext(J){let G=this._pointLabels||[];if(J>=0&&J<G.length){let q=G[J];return aE(this.getContext(),J,q)}}getPointPosition(J,G,q=0){let X=this.getIndexAngle(J)-t5+q;return{x:Math.cos(X)*G+this.xCenter,y:Math.sin(X)*G+this.yCenter,angle:X}}getPointPositionForValue(J,G){return this.getPointPosition(J,this.getDistanceFromCenterForValue(G))}getBasePosition(J){return this.getPointPositionForValue(J||0,this.getBaseValue())}getPointLabelPosition(J){let{left:G,top:q,right:X,bottom:N}=this._pointLabelItems[J];return{left:G,top:q,right:X,bottom:N}}drawBackground(){let{backgroundColor:J,grid:{circular:G}}=this.options;if(J){let q=this.ctx;q.save(),q.beginPath(),E_(this,this.getDistanceFromCenterForValue(this._endValue),G,this._pointLabels.length),q.closePath(),q.fillStyle=J,q.fill(),q.restore()}}drawGrid(){let J=this.ctx,G=this.options,{angleLines:q,grid:X,border:N}=G,K=this._pointLabels.length,H,F,W;if(G.pointLabels.display)nE(this,K);if(X.display)this.ticks.forEach((M,R)=>{if(R!==0||R===0&&this.min<0){F=this.getDistanceFromCenterForValue(M.value);let _=this.getContext(R),P=X.setContext(_),O=N.setContext(_);oE(this,P,F,K,O)}});if(q.display){J.save();for(H=K-1;H>=0;H--){let M=q.setContext(this.getPointLabelContext(H)),{color:R,lineWidth:_}=M;if(!_||!R)continue;J.lineWidth=_,J.strokeStyle=R,J.setLineDash(M.borderDash),J.lineDashOffset=M.borderDashOffset,F=this.getDistanceFromCenterForValue(G.reverse?this.min:this.max),W=this.getPointPosition(H,F),J.beginPath(),J.moveTo(this.xCenter,this.yCenter),J.lineTo(W.x,W.y),J.stroke()}J.restore()}}drawBorder(){}drawLabels(){let J=this.ctx,G=this.options,q=G.ticks;if(!q.display)return;let X=this.getIndexAngle(0),N,K;J.save(),J.translate(this.xCenter,this.yCenter),J.rotate(X),J.textAlign="center",J.textBaseline="middle",this.ticks.forEach((H,F)=>{if(F===0&&this.min>=0&&!G.reverse)return;let W=q.setContext(this.getContext(F)),M=Q5(W.font);if(N=this.getDistanceFromCenterForValue(this.ticks[F].value),W.showLabelBackdrop){J.font=M.string,K=J.measureText(H.label).width,J.fillStyle=W.backdropColor;let R=T5(W.backdropPadding);J.fillRect(-K/2-R.left,-N-M.size/2-R.top,K+R.width,M.size+R.height)}D2(J,H.label,0,-N,M,{color:W.color,strokeColor:W.textStrokeColor,strokeWidth:W.textStrokeWidth})}),J.restore()}drawTitle(){}}var c3={millisecond:{common:!0,size:1,steps:1000},second:{common:!0,size:1000,steps:60},minute:{common:!0,size:60000,steps:60},hour:{common:!0,size:3600000,steps:24},day:{common:!0,size:86400000,steps:30},week:{common:!1,size:604800000,steps:4},month:{common:!0,size:2628000000,steps:12},quarter:{common:!1,size:7884000000,steps:4},year:{common:!0,size:31540000000}},Q6=Object.keys(c3);function aR(J,G){return J-G}function iR(J,G){if(Q1(G))return null;let q=J._adapter,{parser:X,round:N,isoWeekday:K}=J._parseOpts,H=G;if(typeof X==="function")H=X(H);if(!h1(H))H=typeof X==="string"?q.parse(H,X):q.parse(H);if(H===null)return null;if(N)H=N==="week"&&(H$(K)||K===!0)?q.startOf(H,"isoWeek",K):q.startOf(H,N);return+H}function tR(J,G,q,X){let N=Q6.length;for(let K=Q6.indexOf(J);K<N-1;++K){let H=c3[Q6[K]],F=H.steps?H.steps:Number.MAX_SAFE_INTEGER;if(H.common&&Math.ceil((q-G)/(F*H.size))<=X)return Q6[K]}return Q6[N-1]}function tE(J,G,q,X,N){for(let K=Q6.length-1;K>=Q6.indexOf(q);K--){let H=Q6[K];if(c3[H].common&&J._adapter.diff(N,X,H)>=G-1)return H}return Q6[q?Q6.indexOf(q):0]}function eE(J){for(let G=Q6.indexOf(J)+1,q=Q6.length;G<q;++G)if(c3[Q6[G]].common)return Q6[G]}function eR(J,G,q){if(!q)J[G]=!0;else if(q.length){let{lo:X,hi:N}=I3(q,G),K=q[X]>=G?q[X]:q[N];J[K]=!0}}function $S(J,G,q,X){let N=J._adapter,K=+N.startOf(G[0].value,X),H=G[G.length-1].value,F,W;for(F=K;F<=H;F=+N.add(F,1,X))if(W=q[F],W>=0)G[W].major=!0;return G}function $_(J,G,q){let X=[],N={},K=G.length,H,F;for(H=0;H<K;++H)F=G[H],N[F]=H,X.push({value:F,major:!1});return K===0||!q?X:$S(J,X,N,q)}class lU 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,G={}){let q=J.time||(J.time={}),X=this._adapter=new fV._date(J.adapters.date);X.init(G),U$(q.displayFormats,X.formats()),this._parseOpts={parser:q.parser,round:q.round,isoWeekday:q.isoWeekday},super.init(J),this._normalized=G.normalized}parse(J,G){if(J===void 0)return null;return iR(this,J)}beforeLayout(){super.beforeLayout(),this._cache={data:[],labels:[],all:[]}}determineDataLimits(){let J=this.options,G=this._adapter,q=J.time.unit||"day",{min:X,max:N,minDefined:K,maxDefined:H}=this.getUserBounds();function F(W){if(!K&&!isNaN(W.min))X=Math.min(X,W.min);if(!H&&!isNaN(W.max))N=Math.max(N,W.max)}if(!K||!H){if(F(this._getLabelBounds()),J.bounds!=="ticks"||J.ticks.source!=="labels")F(this.getMinMax(!1))}X=h1(X)&&!isNaN(X)?X:+G.startOf(Date.now(),q),N=h1(N)&&!isNaN(N)?N:+G.endOf(Date.now(),q)+1,this.min=Math.min(X,N-1),this.max=Math.max(X+1,N)}_getLabelBounds(){let J=this.getLabelTimestamps(),G=Number.POSITIVE_INFINITY,q=Number.NEGATIVE_INFINITY;if(J.length)G=J[0],q=J[J.length-1];return{min:G,max:q}}buildTicks(){let J=this.options,G=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 N=this.min,K=this.max,H=fw(X,N,K);if(this._unit=G.unit||(q.autoSkip?tR(G.minUnit,this.min,this.max,this._getLabelCapacity(N)):tE(this,H.length,G.minUnit,this.min,this.max)),this._majorUnit=!q.major.enabled||this._unit==="year"?void 0:eE(this._unit),this.initOffsets(X),J.reverse)H.reverse();return $_(this,H,this._majorUnit)}afterAutoSkip(){if(this.options.offsetAfterAutoskip)this.initOffsets(this.ticks.map((J)=>+J.value))}initOffsets(J=[]){let G=0,q=0,X,N;if(this.options.offset&&J.length){if(X=this.getDecimalForValue(J[0]),J.length===1)G=1-X;else G=(this.getDecimalForValue(J[1])-X)/2;if(N=this.getDecimalForValue(J[J.length-1]),J.length===1)q=N;else q=(N-this.getDecimalForValue(J[J.length-2]))/2}let K=J.length<3?0.5:0.25;G=$6(G,0,K),q=$6(q,0,K),this._offsets={start:G,end:q,factor:1/(G+1+q)}}_generate(){let J=this._adapter,G=this.min,q=this.max,X=this.options,N=X.time,K=N.unit||tR(N.minUnit,G,q,this._getLabelCapacity(G)),H=s0(X.ticks.stepSize,1),F=K==="week"?N.isoWeekday:!1,W=H$(F)||F===!0,M={},R=G,_,P;if(W)R=+J.startOf(R,"isoWeek",F);if(R=+J.startOf(R,W?"day":K),J.diff(q,G,K)>1e5*H)throw Error(G+" and "+q+" are too far apart with stepSize of "+H+" "+K);let O=X.ticks.source==="data"&&this.getDataTimestamps();for(_=R,P=0;_<q;_=+J.add(_,H,K),P++)eR(M,_,O);if(_===q||X.bounds==="ticks"||P===1)eR(M,_,O);return Object.keys(M).sort(aR).map((E)=>+E)}getLabelForValue(J){let G=this._adapter,q=this.options.time;if(q.tooltipFormat)return G.format(J,q.tooltipFormat);return G.format(J,q.displayFormats.datetime)}format(J,G){let X=this.options.time.displayFormats,N=this._unit,K=G||X[N];return this._adapter.format(J,K)}_tickFormatFunction(J,G,q,X){let N=this.options,K=N.ticks.callback;if(K)return O1(K,[J,G,q],this);let H=N.time.displayFormats,F=this._unit,W=this._majorUnit,M=F&&H[F],R=W&&H[W],_=q[G],P=W&&R&&_&&_.major;return this._adapter.format(J,X||(P?R:M))}generateTickLabels(J){let G,q,X;for(G=0,q=J.length;G<q;++G)X=J[G],X.label=this._tickFormatFunction(X.value,G,J)}getDecimalForValue(J){return J===null?NaN:(J-this.min)/(this.max-this.min)}getPixelForValue(J){let G=this._offsets,q=this.getDecimalForValue(J);return this.getPixelForDecimal((G.start+q)*G.factor)}getValueForPixel(J){let G=this._offsets,q=this.getDecimalForPixel(J)/G.factor-G.end;return this.min+q*(this.max-this.min)}_getLabelSize(J){let G=this.options.ticks,q=this.ctx.measureText(J).width,X=C8(this.isHorizontal()?G.maxRotation:G.minRotation),N=Math.cos(X),K=Math.sin(X),H=this._resolveTickFontOptions(0).size;return{w:q*N+H*K,h:q*K+H*N}}_getLabelCapacity(J){let G=this.options.time,q=G.displayFormats,X=q[G.unit]||q.millisecond,N=this._tickFormatFunction(J,0,$_(this,[J],this._majorUnit),X),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 J=this._cache.data||[],G,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(G=0,q=X.length;G<q;++G)J=J.concat(X[G].controller.getAllParsedValues(this));return this._cache.data=this.normalize(J)}getLabelTimestamps(){let J=this._cache.labels||[],G,q;if(J.length)return J;let X=this.getLabels();for(G=0,q=X.length;G<q;++G)J.push(iR(this,X[G]));return this._cache.labels=this._normalized?J:this.normalize(J)}normalize(J){return NU(J.sort(aR))}}function h3(J,G,q){let X=0,N=J.length-1,K,H,F,W;if(q){if(G>=J[X].pos&&G<=J[N].pos)({lo:X,hi:N}=V2(J,"pos",G));({pos:K,time:F}=J[X]),{pos:H,time:W}=J[N]}else{if(G>=J[X].time&&G<=J[N].time)({lo:X,hi:N}=V2(J,"time",G));({time:K,pos:F}=J[X]),{time:H,pos:W}=J[N]}let M=H-K;return M?F+(W-F)*(G-K)/M:F}class ZS extends lU{static id="timeseries";static defaults=lU.defaults;constructor(J){super(J);this._table=[],this._minPos=void 0,this._tableRange=void 0}initOffsets(){let J=this._getTimestampsForTable(),G=this._table=this.buildLookupTable(J);this._minPos=h3(G,this.min),this._tableRange=h3(G,this.max)-this._minPos,super.initOffsets(J)}buildLookupTable(J){let{min:G,max:q}=this,X=[],N=[],K,H,F,W,M;for(K=0,H=J.length;K<H;++K)if(W=J[K],W>=G&&W<=q)X.push(W);if(X.length<2)return[{time:G,pos:0},{time:q,pos:1}];for(K=0,H=X.length;K<H;++K)if(M=X[K+1],F=X[K-1],W=X[K],Math.round((M+F)/2)!==W)N.push({time:W,pos:K/(H-1)});return N}_generate(){let J=this.min,G=this.max,q=super.getDataTimestamps();if(!q.includes(J)||!q.length)q.splice(0,0,J);if(!q.includes(G)||q.length===1)q.push(G);return q.sort((X,N)=>X-N)}_getTimestampsForTable(){let J=this._cache.all||[];if(J.length)return J;let G=this.getDataTimestamps(),q=this.getLabelTimestamps();if(G.length&&q.length)J=this.normalize(G.concat(q));else J=G.length?G:q;return J=this._cache.all=J,J}getDecimalForValue(J){return(h3(this._table,J)-this._minPos)/this._tableRange}getValueForPixel(J){let G=this._offsets,q=this.getDecimalForPixel(J)/G.factor-G.end;return h3(this._table,q*this._tableRange+this._minPos,!0)}}m7.register(ZK,JK,tU,W$,iU,I_,A_,O_,T_);var qP=s(f_(),1);var j8=s(L1(),1);var n3=s(L1(),1);var r3=(...J)=>J.filter((G,q,X)=>{return Boolean(G)&&G.trim()!==""&&X.indexOf(G)===q}).join(" ").trim();var y_=(J)=>J.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase();var g_=(J)=>J.replace(/^([A-Z])|[\s-_]+(\w)/g,(G,q,X)=>X?X.toUpperCase():q.toLowerCase());var qK=(J)=>{let G=g_(J);return G.charAt(0).toUpperCase()+G.slice(1)};var TJ=s(L1(),1);var s3={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};var h_=(J)=>{for(let G in J)if(G.startsWith("aria-")||G==="role"||G==="title")return!0;return!1};var M$=s(L1(),1),NS=M$.createContext({});var u_=()=>M$.useContext(NS);var x_=TJ.forwardRef(({color:J,size:G,strokeWidth:q,absoluteStrokeWidth:X,className:N="",children:K,iconNode:H,...F},W)=>{let{size:M=24,strokeWidth:R=2,absoluteStrokeWidth:_=!1,color:P="currentColor",className:O=""}=u_()??{},E=X??_?Number(q??R)*24/Number(G??M):q??R;return TJ.createElement("svg",{ref:W,...s3,width:G??M??s3.width,height:G??M??s3.height,stroke:J??P,strokeWidth:E,className:r3("lucide",O,N),...!K&&!h_(F)&&{"aria-hidden":"true"},...F},[...H.map(([V,I])=>TJ.createElement(V,I)),...Array.isArray(K)?K:[K]])});var C0=(J,G)=>{let q=n3.forwardRef(({className:X,...N},K)=>n3.createElement(x_,{ref:K,iconNode:G,className:r3(`lucide-${y_(qK(J))}`,`lucide-${J}`,X),...N}));return q.displayName=qK(J),q};var US=[["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"}]],b2=C0("circle-alert",US);var KS=[["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"}]],f2=C0("face-slightly-smiling",KS);var BS=[["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"}]],CJ=C0("activity",BS);var HS=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],OJ=C0("check",HS);var FS=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],IJ=C0("chevron-down",FS);var WS=[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]],VJ=C0("chevron-up",WS);var zS=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 6v6l4 2",key:"mmk7yg"}]],AJ=C0("clock",zS);var MS=[["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"}]],p7=C0("coins",MS);var wS=[["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"}]],EJ=C0("copy",wS);var RS=[["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"}]],SJ=C0("cpu",RS);var _S=[["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"}]],DJ=C0("folder",_S);var LS=[["path",{d:"m12 14 4-4",key:"9kzdfg"}],["path",{d:"M3.34 19a10 10 0 1 1 17.32 0",key:"19p75a"}]],jJ=C0("gauge",LS);var PS=[["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"}]],kJ=C0("hash",PS);var TS=[["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"}]],vJ=C0("inbox",TS);var CS=[["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"}]],bJ=C0("layout-dashboard",CS);var OS=[["path",{d:"M4 5h16",key:"1tepv9"}],["path",{d:"M4 12h16",key:"1lakjw"}],["path",{d:"M4 19h16",key:"1djgab"}]],fJ=C0("menu",OS);var IS=[["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"}]],yJ=C0("monitor",IS);var VS=[["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"}]],gJ=C0("moon",VS);var AS=[["path",{d:"M12 22v-5",key:"1ega77"}],["path",{d:"M15 8V2",key:"18g5xt"}],["path",{d:"M17 8a1 1 0 0 1 1 1v4a4 4 0 0 1-4 4h-4a4 4 0 0 1-4-4V9a1 1 0 0 1 1-1z",key:"1xoxul"}],["path",{d:"M9 8V2",key:"14iosj"}]],hJ=C0("plug",AS);var ES=[["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"}]],uJ=C0("refresh-cw",ES);var SS=[["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"}]],xJ=C0("star",SS);var DS=[["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"}]],mJ=C0("sun",DS);var jS=[["path",{d:"M16 7h6v6",key:"box55l"}],["path",{d:"m22 7-8.5 8.5-5-5L2 17",key:"1t1m79"}]],dJ=C0("trending-up",jS);var kS=[["path",{d:"M14.7 6.3a1 1 0 0 0 0 1.4l1.6 1.6a1 1 0 0 0 1.4 0l3.106-3.105c.32-.322.863-.22.983.218a6 6 0 0 1-8.259 7.057l-7.91 7.91a1 1 0 0 1-2.999-3l7.91-7.91a6 6 0 0 1 7.057-8.259c.438.12.54.662.219.984z",key:"1ngwbx"}]],pJ=C0("wrench",kS);var vS=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],c7=C0("x",vS);var bS=[["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"}]],cJ=C0("zap",bS);var UL=s(L1(),1);var lJ=[{id:"overview",label:"Overview",icon:bJ},{id:"requests",label:"Requests",icon:CJ},{id:"errors",label:"Errors",icon:b2},{id:"models",label:"Models",icon:SJ},{id:"providers",label:"Providers",icon:hJ},{id:"tools",label:"Tools",icon:pJ},{id:"costs",label:"Costs",icon:p7},{id:"behavior",label:"Behavior",shortLabel:"Behavior",icon:f2},{id:"projects",label:"Projects",icon:DJ},{id:"gain",label:"Gain",icon:dJ}];var l6=s(U0(),1);function YK({activeSection:J,onSectionChange:G,className:q=""}){return l6.jsxDEV("aside",{className:`stats-nav-rail ${q}`,children:[l6.jsxDEV("div",{className:"stats-nav-rail-header",children:l6.jsxDEV("div",{className:"stats-logo-container",children:[l6.jsxDEV("span",{className:"stats-logo-text",children:"OH MY PI"},void 0,!1,void 0,this),l6.jsxDEV("span",{className:"stats-logo-subtext",children:"Observability"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this),l6.jsxDEV("nav",{className:"stats-nav-rail-menu",children:lJ.map((X)=>{let N=X.id===J,K=X.icon;return l6.jsxDEV("button",{type:"button",onClick:()=>G(X.id),className:"stats-nav-rail-item","data-active":N?"true":"false","aria-current":N?"page":void 0,children:[l6.jsxDEV(K,{size:16,className:"stats-nav-rail-item-icon"},void 0,!1,void 0,this),l6.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),l6.jsxDEV("div",{className:"stats-nav-rail-footer",children:l6.jsxDEV("span",{className:"stats-version-tag",children:"OMP Stats v1.0.0"},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}var XK=s(U0(),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 m_({value:J,onChange:G,className:q=""}){return XK.jsxDEV("div",{className:`stats-range-control ${q}`,role:"radiogroup","aria-label":"Select time range",children:yS.map((X)=>{let N=X.value===J;return XK.jsxDEV("button",{type:"button",role:"radio","aria-checked":N,"data-active":N?"true":"false",className:"stats-range-control-btn",onClick:()=>G(X.value),children:X.label},X.value,!1,void 0,this)})},void 0,!1,void 0,this)}var NK=s(L1(),1);class d_ extends Error{status;endpoint;constructor(J,G,q){super(q);this.name="ApiError",this.status=J,this.endpoint=G}}async function r6(J,G){let q=await fetch(J,G);if(!q.ok)throw new d_(q.status,J,`HTTP error ${q.status} on ${J}`);return q.json()}async function p_(J="24h",G){return r6(`/api/stats/overview?range=${encodeURIComponent(J)}`,{signal:G})}async function c_(J="24h",G){return r6(`/api/stats/model-dashboard?range=${encodeURIComponent(J)}`,{signal:G})}async function l_(J="24h",G){return r6(`/api/stats/costs?range=${encodeURIComponent(J)}`,{signal:G})}async function o3(J=50,G){return r6(`/api/stats/recent?limit=${J}`,{signal:G})}async function r_(J="24h",G=50,q){return r6(`/api/stats/errors?range=${encodeURIComponent(J)}&limit=${G}`,{signal:q})}async function s_(J,G){return r6(`/api/request/${J}`,{signal:G})}async function n_(J){return r6("/api/sync",{signal:J})}async function o_(J="24h",G){return r6(`/api/stats/behavior?range=${encodeURIComponent(J)}`,{signal:G})}async function a_(J="24h",G){return r6(`/api/stats/folders?range=${encodeURIComponent(J)}`,{signal:G})}async function i_(J="24h",G,q){let X=new URLSearchParams({range:J});if(G)X.set("project",G);return r6(`/api/stats/gain?${X}`,{signal:q})}async function t_(J="24h",G){return r6(`/api/stats/tools?range=${encodeURIComponent(J)}`,{signal:G})}async function e_(J="24h",G){return r6(`/api/stats/providers?range=${encodeURIComponent(J)}`,{signal:G})}var rJ=s(U0(),1);function $L({onSyncStart:J,onSyncComplete:G,className:q=""}){let[X,N]=NK.useState(!1),[K,H]=NK.useState(null),F=async()=>{if(X)return;if(N(!0),H(null),J)J();try{let W=await n_(),M={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: ${M.processed} new request${M.processed===1?"":"s"} found.`}),G)G({success:!0,data:M})}catch(W){let M=W instanceof Error?W.message:String(W);if(H({type:"error",message:`Sync failed: ${M}`}),G)G({success:!1,error:M})}finally{N(!1)}};return rJ.jsxDEV("div",{className:`stats-sync-container ${q}`,children:[K&&rJ.jsxDEV("span",{className:"stats-sync-status-msg","data-type":K.type,children:K.message},void 0,!1,void 0,this),rJ.jsxDEV("button",{type:"button",onClick:F,disabled:X,className:"stats-button stats-button-primary stats-sync-btn","aria-busy":X,children:[rJ.jsxDEV(uJ,{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 a3=s(L1(),1),ZL="omp-stats-theme",JL="(prefers-color-scheme: dark)";function gS(){if(typeof localStorage>"u")return"system";let J=localStorage.getItem(ZL);return J==="light"||J==="dark"||J==="system"?J:"system"}function QL(){if(typeof window>"u")return"dark";return window.matchMedia(JL).matches?"dark":"light"}var r7=gS(),sJ=r7==="system"?QL():r7,UK=new Set;function GL(){for(let J of UK)J()}function KK(){if(sJ=r7==="system"?QL():r7,typeof document<"u")document.documentElement.dataset.theme=sJ,document.documentElement.style.colorScheme=sJ}if(typeof window<"u")KK(),window.matchMedia(JL).addEventListener("change",()=>{if(r7==="system")KK(),GL()});function hS(J){if(r7=J,typeof localStorage<"u")localStorage.setItem(ZL,J);KK(),GL()}function BK(J){return UK.add(J),()=>UK.delete(J)}function z5(){return a3.useSyncExternalStore(BK,()=>sJ,()=>"dark")}function qL(){let J=a3.useSyncExternalStore(BK,()=>r7,()=>"system"),G=a3.useSyncExternalStore(BK,()=>sJ,()=>"dark");return{preference:J,resolved:G,setPreference:hS}}var HK=s(U0(),1),uS={system:"light",light:"dark",dark:"system"},xS={system:yJ,light:mJ,dark:gJ},YL={system:"System theme",light:"Light theme",dark:"Dark theme"};function XL(){let{preference:J,setPreference:G}=qL(),q=xS[J];return HK.jsxDEV("button",{type:"button",className:"stats-theme-toggle",onClick:()=>G(uS[J]),"aria-label":`${YL[J]} (click to switch)`,title:`${YL[J]} — click to switch`,children:HK.jsxDEV(q,{size:16},void 0,!1,void 0,this)},void 0,!1,void 0,this)}var s6=s(U0(),1);function NL({activeSection:J,range:G,onRangeChange:q,updatedAt:X,onSyncStart:N,onSyncComplete:K,onMenuToggle:H,className:F=""}){let M=lJ.find((_)=>_.id===J)?.label||"Observability",R=(_)=>{if(!_)return"Not updated";return`Updated ${new Date(_).toLocaleTimeString([],{hour:"2-digit",minute:"2-digit",second:"2-digit"})}`};return s6.jsxDEV("header",{className:`stats-top-bar ${F}`,children:[s6.jsxDEV("div",{className:"stats-top-bar-left",children:[H&&s6.jsxDEV("button",{type:"button",onClick:H,className:"stats-mobile-menu-btn","aria-label":"Open navigation menu",children:s6.jsxDEV(fJ,{size:20},void 0,!1,void 0,this)},void 0,!1,void 0,this),s6.jsxDEV("h1",{className:"stats-page-title",children:M},void 0,!1,void 0,this)]},void 0,!0,void 0,this),s6.jsxDEV("div",{className:"stats-top-bar-right",children:[s6.jsxDEV("div",{className:"stats-top-bar-meta",children:s6.jsxDEV("span",{className:"stats-last-updated",title:X?new Date(X).toLocaleString():void 0,children:R(X)},void 0,!1,void 0,this)},void 0,!1,void 0,this),s6.jsxDEV(m_,{value:G,onChange:q},void 0,!1,void 0,this),s6.jsxDEV(XL,{},void 0,!1,void 0,this),s6.jsxDEV($L,{onSyncStart:N,onSyncComplete:K},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)}var j5=s(U0(),1);function KL({activeSection:J,onSectionChange:G,range:q,onRangeChange:X,updatedAt:N,onSyncStart:K,onSyncComplete:H,children:F}){let[W,M]=UL.useState(!1),R=(_)=>{G(_),M(!1)};return j5.jsxDEV("div",{className:"stats-app-container",children:[j5.jsxDEV(YK,{activeSection:J,onSectionChange:R,className:"stats-desktop-nav"},void 0,!1,void 0,this),W&&j5.jsxDEV("div",{className:"stats-mobile-drawer-overlay",onClick:()=>M(!1),role:"presentation",children:j5.jsxDEV("div",{className:"stats-mobile-drawer",onClick:(_)=>_.stopPropagation(),role:"dialog","aria-modal":"true","aria-label":"Navigation menu",children:[j5.jsxDEV("div",{className:"stats-mobile-drawer-header",children:[j5.jsxDEV("div",{className:"stats-logo-container",children:[j5.jsxDEV("span",{className:"stats-logo-text",children:"OH MY PI"},void 0,!1,void 0,this),j5.jsxDEV("span",{className:"stats-logo-subtext",children:"Observability"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),j5.jsxDEV("button",{type:"button",onClick:()=>M(!1),className:"stats-drawer-close-btn","aria-label":"Close navigation menu",children:j5.jsxDEV(c7,{size:18},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),j5.jsxDEV(YK,{activeSection:J,onSectionChange:R,className:"stats-mobile-nav"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this),j5.jsxDEV("div",{className:"stats-main-pane",children:[j5.jsxDEV(NL,{activeSection:J,range:q,onRangeChange:X,updatedAt:N,onSyncStart:K,onSyncComplete:H,onMenuToggle:()=>M(!0)},void 0,!1,void 0,this),j5.jsxDEV("main",{className:"stats-content-area",children:j5.jsxDEV("div",{className:"stats-content-inner",children:F},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)}var S8=s(L1(),1),mS=["overview","requests","errors","models","providers","tools","costs","behavior","projects","gain"],BL=["1h","24h","7d","30d","90d","all"];function FK(J){let G=J.replace(/^#\/?/,""),[q,X]=G.split("?"),N=mS.includes(q)?q:"overview",K="24h";if(X){let F=new URLSearchParams(X).get("range");if(BL.includes(F))K=F}return{section:N,range:K}}function HL(){let[J,G]=S8.useState(()=>FK(window.location.hash));S8.useEffect(()=>{let K=()=>{G(FK(window.location.hash))};return window.addEventListener("hashchange",K),()=>{window.removeEventListener("hashchange",K)}},[]);let q=S8.useCallback((K,H)=>{window.location.hash=`/${K}?range=${H}`},[]),X=S8.useCallback((K)=>{q(K,J.range)},[J.range,q]),N=S8.useCallback((K)=>{let H=BL.includes(K)?K:"24h";q(J.section,H)},[J.section,q]);return S8.useEffect(()=>{let K=window.location.hash,H=FK(K),F=`#/${H.section}?range=${H.range}`;if(K!==F)window.location.hash=`/${H.section}?range=${H.range}`},[]),{section:J.section,setSection:X,range:J.range,setRange:N}}var FL=["January","February","March","April","May","June","July","August","September","October","November","December"],WL=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dS=["MMMM","yyyy","EEEE","MMM","EEE","yy","MM","dd","HH","hh","mm","ss","M","d","H","h","m","s","a"];function y2(J,G=2){return String(J).padStart(G,"0")}function pS(J,G){let q=J.getMonth(),X=J.getDay(),N=J.getHours(),K=N%12||12;switch(G){case"yyyy":return y2(J.getFullYear(),4);case"yy":return y2(J.getFullYear()%100);case"MMMM":return FL[q];case"MMM":return FL[q].slice(0,3);case"MM":return y2(q+1);case"M":return String(q+1);case"dd":return y2(J.getDate());case"d":return String(J.getDate());case"EEEE":return WL[X];case"EEE":return WL[X].slice(0,3);case"HH":return y2(N);case"H":return String(N);case"hh":return y2(K);case"h":return String(K);case"mm":return y2(J.getMinutes());case"m":return String(J.getMinutes());case"ss":return y2(J.getSeconds());case"s":return String(J.getSeconds());case"a":return N<12?"AM":"PM"}}function ML(J){let G=J instanceof Date?new Date(J.getTime()):new Date(J);if(Number.isNaN(G.getTime()))throw RangeError("Invalid time value");return G}function K4(J,G){let q=ML(J),X="";for(let N=0;N<G.length;){if(G[N]==="'"){if(G[N+1]==="'"){X+="'",N+=2;continue}N++;while(N<G.length){if(G[N]!=="'"){X+=G[N++];continue}if(G[N+1]==="'"){X+="'",N+=2;continue}N++;break}continue}let K=G.slice(N),H=dS.find((W)=>K.startsWith(W));if(H){X+=pS(q,H),N+=H.length;continue}let F=G[N++];if(/[A-Za-z]/.test(F))throw RangeError(`Format string contains an unescaped latin alphabet character \`${F}\``);X+=F}return X}function g2(J,G){return`${J} ${J===1?G:`${G}s`}`}function cS(J,G){let q=(G.getFullYear()-J.getFullYear())*12+G.getMonth()-J.getMonth();if(q===0)return 0;let X=new Date(J);X.setDate(1),X.setFullYear(J.getFullYear(),J.getMonth()+q,1);let N=new Date(X.getFullYear(),X.getMonth()+1,0).getDate();if(X.setDate(Math.min(J.getDate(),N)),X.getTime()>G.getTime())q--;return q}function zL(J,G){let q=(G.getTime()-J.getTime())/1000,X=(G.getTimezoneOffset()-J.getTimezoneOffset())*60,N=Math.round((q-X)/60);if(N<2)return N===0?"less than a minute":"1 minute";if(N<45)return g2(N,"minute");if(N<90)return"about 1 hour";if(N<1440)return`about ${g2(Math.round(N/60),"hour")}`;if(N<2520)return"1 day";if(N<43200)return g2(Math.round(N/1440),"day");if(N<86400)return`about ${g2(Math.round(N/43200),"month")}`;let K=cS(J,G);if(K<12)return g2(Math.round(N/43200),"month");let H=Math.trunc(K/12),F=K%12;if(F<3)return`about ${g2(H,"year")}`;if(F<9)return`over ${g2(H,"year")}`;return`almost ${g2(H+1,"year")}`}function wL(J,G={}){let q=ML(J),X=new Date(Date.now()),N=q.getTime()>X.getTime(),K=N?zL(X,q):zL(q,X);if(!G.addSuffix)return K;return N?`in ${K}`:`${K} ago`}var X5=s(L1(),1);var WK=s(RL(),1),V6=s(L1(),1);var LL="label";function _L(J,G){if(typeof J==="function")J(G);else if(J)J.current=G}function rS(J,G){let q=J.options;if(q&&G)Object.assign(q,G)}function PL(J,G){J.labels=G}function TL(J,G,q=LL){let X=[];J.datasets=G.map((N)=>{let K=J.datasets.find((H)=>H[q]===N[q]);if(!K||!N.data||X.includes(K))return{...N};return X.push(K),Object.assign(K,N),K})}function sS(J,G=LL){let q={labels:[],datasets:[]};return PL(q,J.labels),TL(q,J.datasets,G),q}function nS(J,G){let{height:q=150,width:X=300,redraw:N=!1,datasetIdKey:K,type:H,data:F,options:W,plugins:M=[],fallbackContent:R,updateMode:_,...P}=J,O=V6.useRef(null),E=V6.useRef(null),V=()=>{if(!O.current)return;E.current=new m7(O.current,{type:H,data:sS(F,K),options:W&&{...W},plugins:M}),_L(G,E.current)},I=()=>{if(_L(G,null),E.current)E.current.destroy(),E.current=null};return V6.useEffect(()=>{if(!N&&E.current&&W)rS(E.current,W)},[N,W]),V6.useEffect(()=>{if(!N&&E.current)PL(E.current.config.data,F.labels)},[N,F.labels]),V6.useEffect(()=>{if(!N&&E.current&&F.datasets)TL(E.current.config.data,F.datasets,K)},[N,F.datasets]),V6.useEffect(()=>{if(!E.current)return;if(N)I(),setTimeout(V);else E.current.update(_)},[N,W,F.labels,F.datasets,_]),V6.useEffect(()=>{if(!E.current)return;I(),setTimeout(V)},[H]),V6.useEffect(()=>{return V(),()=>I()},[]),WK.jsx("canvas",{ref:O,role:"img",height:q,width:X,...P,children:R})}var oS=V6.forwardRef(nS);function CL(J,G){return m7.register(G),V6.forwardRef((q,X)=>WK.jsx(oS,{...q,ref:X,type:J}))}var k5=CL("line",nU),h2=CL("bar",sU);var K1=["#ed4abf","#9b4dff","#5ad8e6","#62d394","#c77dff","#ff8fd1","#f5c14b","#ff6b7d"],s1={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 c4(J){let{chartTheme:G,showLegend:q,defaultLabel:X,formatValue:N,footer:K}=J;return{legend:{display:q,position:"top",align:"start",labels:{color:G.legendLabel,usePointStyle:!0,padding:16,font:{size:12},boxWidth:8}},tooltip:{backgroundColor:G.tooltipBackground,titleColor:G.tooltipTitle,bodyColor:G.tooltipBody,borderColor:G.tooltipBorder,borderWidth:1,padding:12,cornerRadius:8,callbacks:{label:(H)=>{let F=H.dataset.label??X,W=H.parsed.y??0;return`${F}: ${N(W)}`},...K?{footer:K}:{}}}}}function l4(J){let{chartTheme:G,formatY:q}=J,X={grid:{color:G.grid,drawBorder:!1},ticks:{color:G.tick,font:{size:11}}},N={...X,ticks:{...X.ticks,callback:(K)=>q(Number(K))},min:0};return{sharedScaleBase:X,yScale:N}}function w$(J){return{borderColor:J,backgroundColor:`${J}20`,fill:!0,tension:0,pointRadius:3,pointHoverRadius:4,borderWidth:2}}function n7(J){return{backgroundColor:J,borderColor:J,borderWidth:0,borderRadius:4,maxBarThickness:56}}function u2(J,G){return J.datasets.map((q,X)=>({label:q.label,data:q.data,...G(X)}))}function i3(J,G,q){if(J.length===0)return{labels:[],datasets:[]};let{initBucket:X,accumulate:N,bucketToValue:K}=q,H=new Map;for(let W of J){let M=H.get(W.timestamp)??X();N(M,W),H.set(W.timestamp,M)}let F=[...H.entries()].sort((W,M)=>W[0]-M[0]);return{labels:F.map(([W])=>K4(new Date(W),"MMM d")),datasets:[{label:G,data:F.map(([,W])=>K(W))}]}}function R$(J,G){if(J.length===0)return{labels:[],datasets:[]};let{topN:q=5,rankWeight:X,initBucket:N,accumulate:K,bucketToValue:H}=G,F=new Map;for(let j of J){let h=`${j.model}::${j.provider}`,p=F.get(h);if(p)p.weight+=X(j);else F.set(h,{model:j.model,provider:j.provider,weight:X(j)})}let M=[...F.entries()].sort((j,h)=>h[1].weight-j[1].weight).slice(0,q),R=new Set(M.map(([j])=>j)),_=new Map;for(let[,{model:j}]of M)_.set(j,(_.get(j)??0)+1);let P=new Map;for(let[j,{model:h,provider:p}]of M)P.set(j,(_.get(h)??0)>1?`${h} (${p})`:h);let O=[...new Set(J.map((j)=>j.timestamp))].sort((j,h)=>j-h),E=M.map(([j])=>P.get(j)??j);if(J.some((j)=>!R.has(`${j.model}::${j.provider}`)))E.push("Other");let I=new Map;for(let j of O)I.set(j,{});for(let j of J){let h=`${j.model}::${j.provider}`,p=R.has(h)?P.get(h)??j.model:"Other",n=I.get(j.timestamp);if(!n)continue;let a=n[p]??N();K(a,j),n[p]=a}return{labels:O.map((j)=>K4(new Date(j),"MMM d")),datasets:E.map((j)=>({label:j,data:O.map((h)=>{let p=I.get(h)?.[j];return p?H(p):0})}))}}var b1=s(U0(),1);function D8(J){return{borderColor:J,backgroundColor:"transparent",tension:0.4,pointRadius:0,borderWidth:2}}function t3({timestamps:J,values:G,color:q}){let X={labels:J.map((K)=>K4(new Date(K),"MMM d")),datasets:[{data:G,...D8(q)}]};return b1.jsxDEV(k5,{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 e3(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 OL(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 IL(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 $q({title:J,subtitle:G,children:q}){return b1.jsxDEV("div",{className:"stats-panel overflow-hidden",children:[b1.jsxDEV("div",{className:"px-5 py-4 border-b border-[var(--border-subtle)]",children:[b1.jsxDEV("h3",{className:"text-sm font-semibold text-[var(--text-primary)]",children:J},void 0,!1,void 0,this),G?b1.jsxDEV("p",{className:"text-xs text-[var(--text-muted)] mt-1",children:G},void 0,!1,void 0,this):null]},void 0,!0,void 0,this),b1.jsxDEV("div",{className:"overflow-x-auto",children:q},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function aS(J){if(J==="right")return"text-right";if(J==="center")return"text-center";return""}function Zq({columns:J,gridTemplate:G}){return b1.jsxDEV("div",{className:"grid gap-3 px-5 py-3 text-[var(--text-muted)] text-xs uppercase tracking-wider font-semibold",style:{gridTemplateColumns:G},children:[J.map((q)=>b1.jsxDEV("div",{className:aS(q.align),children:q.label},q.label,!1,void 0,this)),b1.jsxDEV("div",{},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function Jq({children:J}){return b1.jsxDEV("div",{className:"max-h-[calc(100vh-300px)] overflow-y-auto",children:J},void 0,!1,void 0,this)}function Qq({model:J,provider:G}){return b1.jsxDEV("div",{children:[b1.jsxDEV("div",{className:"font-medium text-[var(--text-primary)]",children:J},void 0,!1,void 0,this),b1.jsxDEV("div",{className:"text-xs text-[var(--text-muted)]",children:G},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function Gq({gridTemplate:J,cells:G,trendCell:q,isExpanded:X,onToggle:N,expandedContent:K}){return b1.jsxDEV("div",{className:"border-t border-[var(--border-subtle)]",children:[b1.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:b1.jsxDEV("div",{className:"grid gap-3 items-center",style:{gridTemplateColumns:J},children:[G,b1.jsxDEV("div",{className:"h-10",children:q},void 0,!1,void 0,this),b1.jsxDEV("div",{className:"flex justify-center text-[var(--text-muted)]",children:X?b1.jsxDEV(VJ,{size:16},void 0,!1,void 0,this):b1.jsxDEV(IJ,{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?b1.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 qq(){return b1.jsxDEV("div",{className:"text-[var(--text-muted)] text-center text-sm",children:"-"},void 0,!1,void 0,this)}function Yq({message:J="No data available"}){return b1.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 S0(J){return J.toLocaleString()}function X1(J){return J.toLocaleString(void 0,{notation:"compact"})}function z1(J,G){if(J===0)return"$0";let q=G!==void 0?G:J>0&&J<0.01?4:2;return`$${J.toLocaleString(void 0,{minimumFractionDigits:q,maximumFractionDigits:q})}`}function x1(J,G=1){return`${(J*100).toFixed(G)}%`}function v5(J,G){if(J===null)return"-";let q=J/1000,X=G!==void 0?G:q<1?2:1;return`${q.toFixed(X)}s`}function Xq(J){if(J===null)return"-";return J.toFixed(1)}function G6(J){return wL(new Date(J),{addSuffix:!0})}function zK(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 C5=s(L1(),1),x2=new Map,iS=64;function n1(J,G,q){let X=JSON.stringify(J),[N,K]=C5.useState(()=>x2.get(X)?.data??null),[H,F]=C5.useState(null),[W,M]=C5.useState(()=>!x2.has(X)),[R,_]=C5.useState(!1),[P,O]=C5.useState(()=>x2.get(X)?.updatedAt??null),E=C5.useRef(G);E.current=G;let V=C5.useRef(X);V.current=X;let I=q?.enabled??!0,j=q?.pollMs,h=C5.useRef(null),p=C5.useRef(!1);p.current=N!==null;let n=C5.useCallback(async(Q0)=>{if(h.current)h.current.abort();let t=new AbortController;if(h.current=t,Q0)_(!0);else M(!0),K(null);F(null);try{let i=await E.current(t.signal);if(t.signal.aborted)return;if(x2.set(V.current,{data:i,updatedAt:Date.now()}),x2.size>iS){let X0=x2.keys().next().value;if(X0!==void 0)x2.delete(X0)}K(i),O(Date.now()),F(null)}catch(i){if(t.signal.aborted)return;F(i instanceof Error?i:Error(String(i)))}finally{if(!t.signal.aborted){if(M(!1),_(!1),h.current===t)h.current=null}}},[]);C5.useEffect(()=>{if(!I){M(!1),_(!1);return}let Q0=x2.get(X);if(Q0)K(Q0.data),O(Q0.updatedAt),M(!1),n(!0);else n(p.current);return()=>{if(h.current)h.current.abort(),h.current=null}},[X,I,n]),C5.useEffect(()=>{if(!I||!j)return;let Q0=setInterval(()=>{if(document.hidden)return;n(!0)},j);return()=>{clearInterval(Q0)}},[I,j,n]);let a=C5.useCallback(async()=>{await n(!0)},[n]);return{data:N,error:H,loading:W,refreshing:R,refetch:a,updatedAt:P}}var VL=3600000,Nq=24*VL,tS=300000,AL={"1h":{windowLabel:"the last hour",trendLabel:"1h Trend",bucketMs:tS,bucketCount:12,tickFormat:"HH:mm"},"24h":{windowLabel:"the last 24 hours",trendLabel:"24h Trend",bucketMs:VL,bucketCount:24,tickFormat:"HH:mm"},"7d":{windowLabel:"the last 7 days",trendLabel:"7d Trend",bucketMs:Nq,bucketCount:7,tickFormat:"MMM d"},"30d":{windowLabel:"the last 30 days",trendLabel:"30d Trend",bucketMs:Nq,bucketCount:30,tickFormat:"MMM d"},"90d":{windowLabel:"the last 90 days",trendLabel:"90d Trend",bucketMs:Nq,bucketCount:90,tickFormat:"MMM d"},all:{windowLabel:"all time",trendLabel:"Trend",bucketMs:Nq,bucketCount:0,tickFormat:"MMM d"}};function o7(J){return AL[J]}function nJ(J,G){return K4(new Date(J),AL[G].tickFormat)}var eS=["main","subagent","advisor"];function Uq(J){return J.totalInputTokens+J.totalOutputTokens+J.totalCacheReadTokens+J.totalCacheWriteTokens}function EL(J){let G=new Map;for(let H of J)G.set(H.agentType,H);let q=eS.map((H)=>G.get(H)).filter((H)=>H!==void 0),X=q.reduce((H,F)=>H+Uq(F),0),N=q.reduce((H,F)=>H+F.totalCost,0),K=q.map((H)=>{let F=Uq(H);return{agentType:H.agentType,tokens:F,requests:H.totalRequests,cost:H.totalCost,share:X>0?F/X:0}});return{totalTokens:X,totalCost:N,segments:K}}function SL(J){let G=J.reduce((F,W)=>F+W.cost,0),q=new Set(J.map((F)=>F.timestamp)).size,X=q>0?G/q:0,N=new Map;for(let F of J)N.set(F.model,(N.get(F.model)??0)+F.cost);let K="",H=0;for(let[F,W]of N)if(W>H)K=F,H=W;return{totalCost:G,avgDailyCost:X,topModelName:K,topModelCost:H}}function DL(J,G){if(J.length===0)return new Map;let q=o7(G),X=q.bucketMs,N=q.bucketCount,K=N>0?(()=>{let W=J.reduce((_,P)=>Math.max(_,P.timestamp),0),R=(W>0?W:Math.floor(Date.now()/X)*X)-(N-1)*X;return Array.from({length:N},(_,P)=>R+P*X)})():Array.from(new Set(J.map((W)=>W.timestamp))).sort((W,M)=>W-M),H=new Map(K.map((W,M)=>[W,M])),F=new Map;for(let W of J){let M=`${W.model}::${W.provider}`,R=F.get(M);if(!R)R={label:`${W.model} (${W.provider})`,data:K.map((P)=>({timestamp:P,avgTtftSeconds:null,avgTokensPerSecond:null,requests:0}))},F.set(M,R);let _=H.get(W.timestamp);if(_===void 0)continue;R.data[_]={timestamp:W.timestamp,avgTtftSeconds:W.avgTtft!==null?W.avgTtft/1000:null,avgTokensPerSecond:W.avgTokensPerSecond,requests:W.requests}}return F}function jL(J,G){let q=J.totalNegation+J.totalRepetition+J.totalBlame,X=new Map;for(let K of G){let H=`${K.model}::${K.provider}`,F=X.get(H),W=K.yelling+K.profanity+K.anguish+K.negation+K.repetition+K.blame;if(F)F.score+=W;else X.set(H,{model:K.model,provider:K.provider,score:W})}let N=null;for(let K of X.values())if(!N||K.score>N.score)N=K;return{totalMessages:J.totalMessages,totalYelling:J.totalYelling,totalProfanity:J.totalProfanity,totalAnguish:J.totalAnguish,totalFrustration:q,highestFrictionModel:N}}function kL(J){let G=[...J].sort((N,K)=>{if(K.totalCost!==N.totalCost)return K.totalCost-N.totalCost;return K.totalRequests-N.totalRequests}),q=G.reduce((N,K)=>Math.max(N,K.totalCost),0),X=G.reduce((N,K)=>Math.max(N,K.totalRequests),0);return G.map((N)=>({...N,costPercentage:q>0?N.totalCost/q*100:0,requestsPercentage:X>0?N.totalRequests/X*100:0}))}function vL(J){let G=J.reduce((q,X)=>Math.max(q,X.calls),0);return J.map((q)=>({...q,errorRate:q.calls>0?q.errors/q.calls:0,callsPercentage:G>0?q.calls/G*100:0}))}var Kq=s(U0(),1);function _$({message:J="No data available",icon:G=vJ,className:q=""}){return Kq.jsxDEV("div",{className:`stats-empty-state ${q}`,children:[Kq.jsxDEV(G,{size:24,className:"stats-empty-state-icon","aria-hidden":"true"},void 0,!1,void 0,this),Kq.jsxDEV("p",{className:"stats-empty-state-message",children:J},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}var L$=s(U0(),1);function bL({error:J,onRetry:G,className:q=""}){return L$.jsxDEV("div",{className:`stats-error-state ${q}`,children:L$.jsxDEV("div",{className:"stats-error-state-content",children:[L$.jsxDEV("h4",{className:"stats-error-state-title",children:"Failed to load data"},void 0,!1,void 0,this),J&&L$.jsxDEV("p",{className:"stats-error-state-message",children:J.message},void 0,!1,void 0,this),G&&L$.jsxDEV("button",{type:"button",onClick:G,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 fL=s(U0(),1);function q6({variant:J="text",width:G,height:q,className:X=""}){let N={width:G!==void 0?typeof G==="number"?`${G}px`:G:void 0,height:q!==void 0?typeof q==="number"?`${q}px`:q:void 0};return fL.jsxDEV("div",{className:`stats-skeleton ${X}`,"data-variant":J,style:N},void 0,!1,void 0,this)}var A6=s(U0(),1);function f1({loading:J,error:G,data:q,empty:X=!1,emptyText:N="No data available",fallback:K,onRetry:H,children:F}){if(G&&q===null)return A6.jsxDEV(bL,{error:G,onRetry:H},void 0,!1,void 0,this);if(J&&q===null){if(K)return A6.jsxDEV(A6.Fragment,{children:K},void 0,!1,void 0,this);return A6.jsxDEV("div",{className:"stats-boundary-skeleton",children:[A6.jsxDEV(q6,{variant:"text",width:"60%",height:24,className:"mb-4"},void 0,!1,void 0,this),A6.jsxDEV(q6,{variant:"rect",width:"100%",height:160,className:"mb-4"},void 0,!1,void 0,this),A6.jsxDEV(q6,{variant:"text",width:"80%",height:20,className:"mb-2"},void 0,!1,void 0,this),A6.jsxDEV(q6,{variant:"text",width:"40%",height:20},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}if(!J&&(X||q===null))return A6.jsxDEV(_$,{message:N},void 0,!1,void 0,this);return A6.jsxDEV(A6.Fragment,{children:F},void 0,!1,void 0,this)}var Y6=s(U0(),1);function X6({columns:J,data:G,keyExtractor:q,onRowClick:X,renderMobileCard:N,emptyText:K="No data available"}){let H=(F,W)=>{if(X&&(F.key==="Enter"||F.key===" "))F.preventDefault(),X(W)};if(G.length===0)return Y6.jsxDEV("div",{className:"stats-table-empty",children:K},void 0,!1,void 0,this);return Y6.jsxDEV("div",{className:"stats-table-wrapper",children:[N&&Y6.jsxDEV("div",{className:"stats-table-mobile-only",children:Y6.jsxDEV("div",{className:"stats-table-mobile-list",children:G.map((F)=>{let W=String(q(F));return Y6.jsxDEV("div",{className:"stats-table-mobile-card-wrapper",children:N(F,X?()=>X(F):void 0)},W,!1,void 0,this)})},void 0,!1,void 0,this)},void 0,!1,void 0,this),Y6.jsxDEV("div",{className:N?"stats-table-desktop-only":"stats-table-container",children:Y6.jsxDEV("table",{className:"stats-table",children:[Y6.jsxDEV("thead",{children:Y6.jsxDEV("tr",{children:J.map((F)=>{let W=["stats-table-th",F.numeric?"stats-text-right":"stats-text-left",F.className||""].filter(Boolean).join(" ");return Y6.jsxDEV("th",{className:W,children:F.header},F.key,!1,void 0,this)})},void 0,!1,void 0,this)},void 0,!1,void 0,this),Y6.jsxDEV("tbody",{children:G.map((F)=>{let W=String(q(F)),M=typeof X==="function",R=["stats-table-tr",M?"stats-table-tr-clickable":""].filter(Boolean).join(" ");return Y6.jsxDEV("tr",{className:R,onClick:M?()=>X(F):void 0,onKeyDown:M?(_)=>H(_,F):void 0,tabIndex:M?0:void 0,role:M?"button":void 0,children:J.map((_)=>{let P=["stats-table-td",_.numeric?"stats-text-right":"stats-text-left",_.className||""].filter(Boolean).join(" ");return Y6.jsxDEV("td",{className:P,children:_.render?_.render(F):F[_.key]},_.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 a7=s(L1(),1),n6=s(U0(),1);function MK({data:J,title:G,initialCollapsed:q=!1}){let[X,N]=a7.useState(q),[K,H]=a7.useState(!1),F=a7.useRef(0),W=JSON.stringify(J,null,2);return a7.useEffect(()=>()=>window.clearTimeout(F.current),[]),n6.jsxDEV("div",{className:"stats-json-block",children:[n6.jsxDEV("div",{className:"stats-json-block-header",onClick:()=>N(!X),onKeyDown:(_)=>{if(_.key==="Enter"||_.key===" ")_.preventDefault(),N(!X)},tabIndex:0,role:"button","aria-expanded":!X,children:[n6.jsxDEV("span",{className:"stats-json-block-title",children:G||"JSON"},void 0,!1,void 0,this),n6.jsxDEV("div",{className:"stats-json-actions",children:[n6.jsxDEV("button",{type:"button",className:"stats-json-copy-btn",onClick:async(_)=>{_.stopPropagation();try{await navigator.clipboard.writeText(W),H(!0),window.clearTimeout(F.current),F.current=window.setTimeout(()=>H(!1),1500)}catch{}},"aria-label":K?"Copied to clipboard":"Copy JSON to clipboard",children:[K?n6.jsxDEV(OJ,{size:13},void 0,!1,void 0,this):n6.jsxDEV(EJ,{size:13},void 0,!1,void 0,this),K?"Copied":"Copy"]},void 0,!0,void 0,this),n6.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&&n6.jsxDEV("div",{className:"stats-json-block-content-wrapper",children:n6.jsxDEV("pre",{className:"stats-json-block-content",children:n6.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 n0=s(U0(),1);function yL({stats:J}){let G=Uq(J);return n0.jsxDEV("div",{className:"stats-metric-cluster",children:[n0.jsxDEV("div",{className:"stats-metric-primary-grid",children:[n0.jsxDEV("div",{className:"stats-metric-card primary",children:[n0.jsxDEV("div",{className:"stats-metric-label",children:"Total Cost"},void 0,!1,void 0,this),n0.jsxDEV("div",{className:"stats-metric-value",children:z1(J.totalCost,J.totalCost>0&&J.totalCost<0.01?4:2)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),n0.jsxDEV("div",{className:"stats-metric-card primary",children:[n0.jsxDEV("div",{className:"stats-metric-label",children:"Requests"},void 0,!1,void 0,this),n0.jsxDEV("div",{className:"stats-metric-value",children:S0(J.totalRequests)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),n0.jsxDEV("div",{className:"stats-metric-card primary",children:[n0.jsxDEV("div",{className:"stats-metric-label",children:"Cache Rate"},void 0,!1,void 0,this),n0.jsxDEV("div",{className:"stats-metric-value",children:x1(J.cacheRate)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),n0.jsxDEV("div",{className:"stats-metric-card primary",children:[n0.jsxDEV("div",{className:"stats-metric-label",children:"Error Rate"},void 0,!1,void 0,this),n0.jsxDEV("div",{className:"stats-metric-value",children:x1(J.errorRate)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),n0.jsxDEV("div",{className:"stats-metric-secondary-grid",children:[n0.jsxDEV("div",{className:"stats-metric-card secondary",title:"Conversation input not served from cache",children:[n0.jsxDEV("div",{className:"stats-metric-label",children:"Uncached Input"},void 0,!1,void 0,this),n0.jsxDEV("div",{className:"stats-metric-value",children:X1(J.totalInputTokens)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),n0.jsxDEV("div",{className:"stats-metric-card secondary",title:"Conversation input read from the prompt cache",children:[n0.jsxDEV("div",{className:"stats-metric-label",children:"Cache Read"},void 0,!1,void 0,this),n0.jsxDEV("div",{className:"stats-metric-value",children:X1(J.totalCacheReadTokens)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),n0.jsxDEV("div",{className:"stats-metric-card secondary",children:[n0.jsxDEV("div",{className:"stats-metric-label",children:"Output Tokens"},void 0,!1,void 0,this),n0.jsxDEV("div",{className:"stats-metric-value",children:X1(J.totalOutputTokens)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),n0.jsxDEV("div",{className:"stats-metric-card secondary",title:"Uncached input + cache reads + cache writes + output",children:[n0.jsxDEV("div",{className:"stats-metric-label",children:"Conversation Total"},void 0,!1,void 0,this),n0.jsxDEV("div",{className:"stats-metric-value",children:X1(G)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),n0.jsxDEV("div",{className:"stats-metric-card secondary",children:[n0.jsxDEV("div",{className:"stats-metric-label",children:"Premium Requests"},void 0,!1,void 0,this),n0.jsxDEV("div",{className:"stats-metric-value",children:S0(J.totalPremiumRequests)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),n0.jsxDEV("div",{className:"stats-metric-card secondary",children:[n0.jsxDEV("div",{className:"stats-metric-label",children:"Tokens/s"},void 0,!1,void 0,this),n0.jsxDEV("div",{className:"stats-metric-value",children:Xq(J.avgTokensPerSecond)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),n0.jsxDEV("div",{className:"stats-metric-card secondary",children:[n0.jsxDEV("div",{className:"stats-metric-label",children:"Avg Latency"},void 0,!1,void 0,this),n0.jsxDEV("div",{className:"stats-metric-value",children:v5(J.avgDuration)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),n0.jsxDEV("div",{className:"stats-metric-card secondary",children:[n0.jsxDEV("div",{className:"stats-metric-label",children:"Avg TTFT"},void 0,!1,void 0,this),n0.jsxDEV("div",{className:"stats-metric-value",children:v5(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 m2=s(U0(),1);function q1({title:J,subtitle:G,actions:q,children:X,className:N="",...K}){return m2.jsxDEV("div",{className:`stats-panel ${N}`,...K,children:[(J||G||q)&&m2.jsxDEV("div",{className:"stats-panel-header",children:[m2.jsxDEV("div",{className:"stats-panel-header-titles",children:[J&&m2.jsxDEV("h3",{className:"stats-panel-title",children:J},void 0,!1,void 0,this),G&&m2.jsxDEV("p",{className:"stats-panel-subtitle",children:G},void 0,!1,void 0,this)]},void 0,!0,void 0,this),q&&m2.jsxDEV("div",{className:"stats-panel-actions",children:q},void 0,!1,void 0,this)]},void 0,!0,void 0,this),m2.jsxDEV("div",{className:"stats-panel-body",children:X},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}var r4=s(L1(),1);var gL=s(U0(),1);function O5({variant:J,children:G,className:q=""}){return gL.jsxDEV("span",{className:`stats-status-pill ${q}`,"data-variant":J,children:G},void 0,!1,void 0,this)}var M0=s(U0(),1);function hL({id:J,onClose:G}){let[q,X]=r4.useState(null),[N,K]=r4.useState(!1),[H,F]=r4.useState(null),W=r4.useRef(null),M=r4.useRef(null);if(r4.useEffect(()=>{if(J===null){X(null);return}W.current=document.activeElement,K(!0),F(null),X(null);let _=new AbortController;return s_(J,_.signal).then((P)=>{if(_.signal.aborted)return;X(P),setTimeout(()=>M.current?.focus(),50)}).catch((P)=>{if(_.signal.aborted)return;F(P instanceof Error?P:Error(String(P)))}).finally(()=>{if(!_.signal.aborted)K(!1)}),()=>_.abort()},[J]),r4.useEffect(()=>{if(J===null)return;let _=(P)=>{if(P.key==="Escape")G()};return window.addEventListener("keydown",_),()=>{if(window.removeEventListener("keydown",_),W.current)W.current.focus()}},[J,G]),J===null)return null;return M0.jsxDEV("div",{className:"stats-drawer-overlay",onClick:(_)=>{if(_.target===_.currentTarget)G()},role:"presentation",children:M0.jsxDEV("div",{className:"stats-drawer",role:"dialog","aria-modal":"true","aria-label":"Request details",children:[M0.jsxDEV("div",{className:"stats-drawer-header",children:[M0.jsxDEV("div",{className:"stats-drawer-header-left",children:[M0.jsxDEV("h2",{className:"stats-drawer-title",children:"Request Details"},void 0,!1,void 0,this),q&&M0.jsxDEV("span",{className:"stats-drawer-id",children:["ID: ",J]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),M0.jsxDEV("button",{ref:M,type:"button",onClick:G,className:"stats-drawer-close-btn","aria-label":"Close request details",children:M0.jsxDEV(c7,{size:18},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),M0.jsxDEV("div",{className:"stats-drawer-body",children:[N&&M0.jsxDEV("div",{className:"stats-drawer-loading",children:[M0.jsxDEV(q6,{variant:"text",width:"60%",height:24,className:"mb-4"},void 0,!1,void 0,this),M0.jsxDEV(q6,{variant:"rect",width:"100%",height:80,className:"mb-4"},void 0,!1,void 0,this),M0.jsxDEV(q6,{variant:"rect",width:"100%",height:120,className:"mb-4"},void 0,!1,void 0,this),M0.jsxDEV(q6,{variant:"rect",width:"100%",height:200},void 0,!1,void 0,this)]},void 0,!0,void 0,this),H&&M0.jsxDEV("div",{className:"stats-drawer-error",children:[M0.jsxDEV("p",{className:"stats-drawer-error-title",children:"Failed to load request details"},void 0,!1,void 0,this),M0.jsxDEV("p",{className:"stats-drawer-error-message",children:H.message},void 0,!1,void 0,this)]},void 0,!0,void 0,this),q&&M0.jsxDEV("div",{className:"stats-drawer-content",children:[M0.jsxDEV("div",{className:"stats-drawer-status-card",children:[M0.jsxDEV("div",{className:"stats-drawer-status-row",children:[M0.jsxDEV("div",{children:[M0.jsxDEV("div",{className:"stats-drawer-model",children:q.model},void 0,!1,void 0,this),M0.jsxDEV("div",{className:"stats-drawer-provider",children:q.provider},void 0,!1,void 0,this)]},void 0,!0,void 0,this),M0.jsxDEV(O5,{variant:q.errorMessage?"danger":"success",children:q.errorMessage?"Error":"Success"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),q.errorMessage&&M0.jsxDEV("div",{className:"stats-drawer-error-block",children:[M0.jsxDEV("div",{className:"stats-drawer-error-label",children:"Error Message"},void 0,!1,void 0,this),M0.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),M0.jsxDEV("div",{className:"stats-drawer-metrics-grid",children:[M0.jsxDEV("div",{className:"stats-drawer-metric-card",children:[M0.jsxDEV("div",{className:"stats-drawer-metric-label",children:[M0.jsxDEV(p7,{size:14,className:"stats-drawer-metric-icon"},void 0,!1,void 0,this),"Cost"]},void 0,!0,void 0,this),M0.jsxDEV("div",{className:"stats-drawer-metric-value",children:z1(q.usage.cost.total,4)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),M0.jsxDEV("div",{className:"stats-drawer-metric-card",children:[M0.jsxDEV("div",{className:"stats-drawer-metric-label",children:[M0.jsxDEV(xJ,{size:14,className:"stats-drawer-metric-icon"},void 0,!1,void 0,this),"Premium"]},void 0,!0,void 0,this),M0.jsxDEV("div",{className:"stats-drawer-metric-value",children:S0(q.usage.premiumRequests??0)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),M0.jsxDEV("div",{className:"stats-drawer-metric-card",children:[M0.jsxDEV("div",{className:"stats-drawer-metric-label",children:[M0.jsxDEV(kJ,{size:14,className:"stats-drawer-metric-icon"},void 0,!1,void 0,this),"Total Tokens"]},void 0,!0,void 0,this),M0.jsxDEV("div",{className:"stats-drawer-metric-value",children:S0(q.usage.totalTokens)},void 0,!1,void 0,this),M0.jsxDEV("div",{className:"stats-drawer-metric-sub",children:[S0(q.usage.input)," in · ",S0(q.usage.output)," out"]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),M0.jsxDEV("div",{className:"stats-drawer-metric-card",children:[M0.jsxDEV("div",{className:"stats-drawer-metric-label",children:[M0.jsxDEV(AJ,{size:14,className:"stats-drawer-metric-icon"},void 0,!1,void 0,this),"Duration"]},void 0,!0,void 0,this),M0.jsxDEV("div",{className:"stats-drawer-metric-value",children:v5(q.duration)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),M0.jsxDEV("div",{className:"stats-drawer-metric-card",children:[M0.jsxDEV("div",{className:"stats-drawer-metric-label",children:[M0.jsxDEV(cJ,{size:14,className:"stats-drawer-metric-icon"},void 0,!1,void 0,this),"TTFT"]},void 0,!0,void 0,this),M0.jsxDEV("div",{className:"stats-drawer-metric-value",children:v5(q.ttft)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),q.duration&&q.usage.output>0&&M0.jsxDEV("div",{className:"stats-drawer-metric-card",children:[M0.jsxDEV("div",{className:"stats-drawer-metric-label",children:[M0.jsxDEV(jJ,{size:14,className:"stats-drawer-metric-icon"},void 0,!1,void 0,this),"Throughput"]},void 0,!0,void 0,this),M0.jsxDEV("div",{className:"stats-drawer-metric-value",children:(q.usage.output*1000/q.duration).toFixed(1)},void 0,!1,void 0,this),M0.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),M0.jsxDEV("div",{className:"stats-drawer-json-blocks",children:[M0.jsxDEV(MK,{data:q.output,title:"Output Payload",initialCollapsed:!1},void 0,!1,void 0,this),M0.jsxDEV(MK,{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 wK=s(U0(),1);function i7({options:J,value:G,onChange:q,className:X=""}){return wK.jsxDEV("div",{className:`stats-segmented-control ${X}`,role:"radiogroup",children:J.map((N)=>{let K=N.value===G;return wK.jsxDEV("button",{type:"button",role:"radio","aria-checked":K,"data-active":K?"true":"false",className:"stats-segmented-control-btn",title:N.title,onClick:()=>q(N.value),children:N.label},String(N.value),!1,void 0,this)})},void 0,!1,void 0,this)}var w0=s(U0(),1);function cL({active:J,range:G,refreshTrigger:q}){let{data:X,error:N,loading:K}=n1(["behavior",G,q],(H)=>o_(G,H),{pollMs:30000,enabled:J});return w0.jsxDEV("div",{className:"stats-route-container space-y-6",children:w0.jsxDEV(f1,{loading:K,error:N,data:X,children:X&&w0.jsxDEV(w0.Fragment,{children:[w0.jsxDEV($D,{overall:X.overall,behaviorSeries:X.behaviorSeries},void 0,!1,void 0,this),w0.jsxDEV(ZD,{behaviorSeries:X.behaviorSeries},void 0,!1,void 0,this),w0.jsxDEV(JD,{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 Bq(J,G){if(G<=0)return;return`${(J/G).toFixed(2)} / msg`}function $D({overall:J,behaviorSeries:G}){let q=X5.useMemo(()=>jL(J,G),[J,G]),X=J.totalMessages,N=[{label:"User Messages",value:S0(J.totalMessages),sub:X>0?"in range":void 0},{label:"Yelling (CAPS)",value:S0(J.totalYelling),sub:Bq(J.totalYelling,X)},{label:"Profanity Hits",value:S0(J.totalProfanity),sub:Bq(J.totalProfanity,X)},{label:"Anguish Signals",value:S0(J.totalAnguish),sub:Bq(J.totalAnguish,X)},{label:"Friction Signals",value:S0(q.totalFrustration),sub:Bq(q.totalFrustration,X)},{label:"Highest Friction Model",value:q.highestFrictionModel?.model??"—",sub:q.highestFrictionModel?`${S0(q.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(q1,{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 RK=[{value:"yelling",label:"CAPS",title:"Yelling (CAPS)"},{value:"profanity",label:"Profanity",title:"Profanity"},{value:"anguish",label:"Anguish",title:"Anguish (!!!, nooo, ugh, dude, ':(')"},{value:"negation",label:"Negation",title:"Negation (no/nope/wrong, makes no sense)"},{value:"repetition",label:"Repetition",title:"Repetition (i meant, still doesnt)"},{value:"blame",label:"Blame",title:"Blame (you didnt, why did you, stop X-ing)"},{value:"frustration",label:"Frustration",title:"Frustration (neg + rep + blame)"},{value:"total",label:"All",title:"All signals combined"}];function uL(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 xL(J,G){if(G==="frustration")return J.negation+J.repetition+J.blame;if(G==="total")return J.yelling+J.profanity+J.anguish+J.negation+J.repetition+J.blame;return J[G]}function mL(J,G){if(G<=0)return 0;return J/G*100}function ZD({behaviorSeries:J}){let[G,q]=X5.useState(!1),[X,N]=X5.useState("total"),K=z5(),H=s1[K],F=X5.useMemo(()=>{if(G)return R$(J,{rankWeight:(h)=>h.messages,initBucket:()=>({hits:0,messages:0}),accumulate:(h,p)=>{h.hits+=xL(p,X),h.messages+=p.messages},bucketToValue:(h)=>mL(h.hits,h.messages)});let j=RK.find((h)=>h.value===X)?.title??"Hits";return i3(J,j,{initBucket:()=>({hits:0,messages:0}),accumulate:(h,p)=>{h.hits+=xL(p,X),h.messages+=p.messages},bucketToValue:(h)=>mL(h.hits,h.messages)})},[J,G,X]),W=X5.useMemo(()=>{return c4({chartTheme:H,showLegend:G,defaultLabel:"Hits",formatValue:uL})},[H,G]),{sharedScaleBase:M,yScale:R}=X5.useMemo(()=>{return l4({chartTheme:H,formatY:uL})},[H]),_=X5.useMemo(()=>{return RK.find((j)=>j.value===X)?.title??""},[X]),P=X5.useMemo(()=>{if(!G)return null;return{labels:F.labels,datasets:u2(F,(j)=>w$(K1[j%K1.length]))}},[F,G]),O=X5.useMemo(()=>{return{responsive:!0,maintainAspectRatio:!1,interaction:{mode:"index",intersect:!1},plugins:W,scales:{x:M,y:R}}},[W,M,R]),E=X5.useMemo(()=>{if(G)return null;return{labels:F.labels,datasets:u2(F,(j)=>n7(K1[j%K1.length]))}},[F,G]),V=X5.useMemo(()=>{return{responsive:!0,maintainAspectRatio:!1,interaction:{mode:"index",intersect:!1},plugins:W,scales:{x:{...M,stacked:!0},y:{...R,stacked:!0}},layout:{padding:{top:8}}}},[W,M,R]),I=[{value:!1,label:"All Models"},{value:!0,label:"By Model"}];return w0.jsxDEV(q1,{title:"User Friction Signals",subtitle:`${_} as % of user messages per day`,actions:w0.jsxDEV("div",{className:"flex items-center gap-3 flex-wrap",children:[w0.jsxDEV(i7,{options:RK.map((j)=>({value:j.value,label:j.label,title:j.title})),value:X,onChange:N},void 0,!1,void 0,this),w0.jsxDEV(i7,{options:I,value:G,onChange:q},void 0,!1,void 0,this)]},void 0,!0,void 0,this),children:w0.jsxDEV("div",{className:"h-[300px]",children:F.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):G&&P?w0.jsxDEV(k5,{data:P,options:O},void 0,!1,void 0,this):E?w0.jsxDEV(h2,{data:E,options:V},void 0,!1,void 0,this):null},void 0,!1,void 0,this)},void 0,!1,void 0,this)}var dL="2fr 0.9fr 0.8fr 0.8fr 0.8fr 0.9fr 0.8fr 140px 40px";function pL(J){if(J.totalMessages===0)return 0;return(J.totalYelling+J.totalProfanity+J.totalAnguish+J.totalNegation+J.totalRepetition+J.totalBlame)/J.totalMessages}function P$(J,G){if(G===0)return"-";let q=J/G*100;if(q===0)return"0%";if(q<1)return`${q.toFixed(1)}%`;return`${q.toFixed(0)}%`}function JD({models:J,behaviorSeries:G}){let[q,X]=X5.useState(null),N=z5(),K=s1[N],H=X5.useMemo(()=>GD(G),[G]),F=X5.useMemo(()=>{return[...J].sort((W,M)=>{if(M.totalMessages!==W.totalMessages)return M.totalMessages-W.totalMessages;return pL(M)-pL(W)})},[J]);return w0.jsxDEV($q,{title:"Behavior Signals by Model",subtitle:"Rates are per user message",children:[w0.jsxDEV(Zq,{gridTemplate:dL,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(Jq,{children:[F.map((W,M)=>{let R=`${W.model}::${W.provider}`,_=H.get(R)?.data??[],P=K1[M%K1.length],O=q===R,E=W.totalNegation+W.totalRepetition+W.totalBlame,V=W.totalYelling+W.totalProfanity+W.totalAnguish+E;return w0.jsxDEV(Gq,{gridTemplate:dL,isExpanded:O,onToggle:()=>X(O?null:R),cells:[w0.jsxDEV(Qq,{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:S0(W.totalMessages)},"messages",!1,void 0,this),w0.jsxDEV("div",{className:"text-right text-[var(--text-secondary)] font-mono text-sm",children:P$(W.totalYelling,W.totalMessages)},"caps",!1,void 0,this),w0.jsxDEV("div",{className:"text-right text-[var(--text-secondary)] font-mono text-sm",children:P$(W.totalProfanity,W.totalMessages)},"profanity",!1,void 0,this),w0.jsxDEV("div",{className:"text-right text-[var(--text-secondary)] font-mono text-sm",children:P$(W.totalAnguish,W.totalMessages)},"anguish",!1,void 0,this),w0.jsxDEV("div",{className:"text-right text-[var(--text-secondary)] font-mono text-sm",children:P$(E,W.totalMessages)},"frustration",!1,void 0,this),w0.jsxDEV("div",{className:"text-right text-[var(--text-secondary)] font-mono text-sm",children:P$(V,W.totalMessages)},"hits",!1,void 0,this)],trendCell:_.length===0?w0.jsxDEV(qq,{},void 0,!1,void 0,this):w0.jsxDEV(t3,{timestamps:_.map((I)=>I.timestamp),values:_.map((I)=>I.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(t7,{label:"Yelling (CAPS)",total:W.totalYelling,messages:W.totalMessages,valueClass:"text-[#ed4abf]"},void 0,!1,void 0,this),w0.jsxDEV(t7,{label:"Profanity",total:W.totalProfanity,messages:W.totalMessages,valueClass:"text-[#ff6b7d]"},void 0,!1,void 0,this),w0.jsxDEV(t7,{label:"Anguish (!!!, nooo, dude, ..)",total:W.totalAnguish,messages:W.totalMessages,valueClass:"text-[#9b4dff]"},void 0,!1,void 0,this),w0.jsxDEV(t7,{label:"Negation (no/nope/wrong)",total:W.totalNegation,messages:W.totalMessages,valueClass:"text-[#5ad8e6]"},void 0,!1,void 0,this),w0.jsxDEV(t7,{label:"Repetition (i meant, still doesnt)",total:W.totalRepetition,messages:W.totalMessages,valueClass:"text-[#5ad8e6]"},void 0,!1,void 0,this),w0.jsxDEV(t7,{label:"Blame (you didnt, stop X-ing)",total:W.totalBlame,messages:W.totalMessages,valueClass:"text-[#5ad8e6]"},void 0,!1,void 0,this),w0.jsxDEV(t7,{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:_.length===0?w0.jsxDEV(Yq,{},void 0,!1,void 0,this):w0.jsxDEV(QD,{data:_,chartTheme:K},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},R,!1,void 0,this)}),F.length===0?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 t7({label:J,total:G,messages:q,valueClass:X,mode:N="rate"}){let K=N==="rate"?"% of msgs":"Per msg",H=X5.useMemo(()=>{if(q===0)return"-";return N==="rate"?P$(G,q):(G/q).toFixed(0)},[G,q,N]);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:S0(G)},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 Hq={yelling:"#ed4abf",profanity:"#ff6b7d",anguish:"#9b4dff",frustration:"#5ad8e6"};function QD({data:J,chartTheme:G}){let q=X5.useMemo(()=>{return{labels:J.map((N)=>K4(new Date(N.timestamp),"MMM d")),datasets:[{label:"CAPS",data:J.map((N)=>N.yelling),...D8(Hq.yelling)},{label:"Profanity",data:J.map((N)=>N.profanity),...D8(Hq.profanity)},{label:"Anguish",data:J.map((N)=>N.anguish),...D8(Hq.anguish)},{label:"Frustration",data:J.map((N)=>N.frustration),...D8(Hq.frustration)}]}},[J]),X=X5.useMemo(()=>{return{responsive:!0,maintainAspectRatio:!1,plugins:e3(G),scales:OL(G)}},[G]);return w0.jsxDEV(k5,{data:q,options:X},void 0,!1,void 0,this)}function GD(J){if(J.length===0)return new Map;let G=[...new Set(J.map((N)=>N.timestamp))].sort((N,K)=>N-K),q=new Map;for(let N of J){let K=`${N.model}::${N.provider}`,H=q.get(K);if(!H)H=new Map,q.set(K,H);let F=H.get(N.timestamp)??{timestamp:N.timestamp,yelling:0,profanity:0,anguish:0,frustration:0,total:0};F.yelling+=N.yelling,F.profanity+=N.profanity,F.anguish+=N.anguish,F.frustration+=N.negation+N.repetition+N.blame,F.total=F.yelling+F.profanity+F.anguish+F.frustration,H.set(N.timestamp,F)}let X=new Map;for(let[N,K]of q){let H=G.map((F)=>K.get(F)??{timestamp:F,yelling:0,profanity:0,anguish:0,frustration:0,total:0});X.set(N,{data:H})}return X}var o6=s(L1(),1);var N5=s(U0(),1);function lL({active:J,range:G,refreshTrigger:q}){let{data:X,error:N,loading:K}=n1(["costs",G,q],(H)=>l_(G,H),{pollMs:30000,enabled:J});return N5.jsxDEV("div",{className:"stats-route-container space-y-6",children:N5.jsxDEV(f1,{loading:K,error:N,data:X,children:X&&N5.jsxDEV(N5.Fragment,{children:[N5.jsxDEV(qD,{costSeries:X.costSeries},void 0,!1,void 0,this),N5.jsxDEV(ND,{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 qD({costSeries:J}){let G=o6.useMemo(()=>SL(J),[J]),q=[{label:"Total Cost",value:z1(G.totalCost)},{label:"Average / Day",value:z1(G.avgDailyCost)},{label:"Top Model",value:G.topModelName||"—",sub:G.topModelName?z1(G.topModelCost):void 0}];return N5.jsxDEV("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-4",children:q.map((X)=>N5.jsxDEV(q1,{className:"stats-cost-overview-card py-4 px-5",children:[N5.jsxDEV("p",{className:"text-xs stats-text-muted mb-1 font-medium uppercase tracking-wider",children:X.label},void 0,!1,void 0,this),N5.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&&N5.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 YD={dark:"rgba(248, 250, 252, 0.7)",light:"rgba(15, 23, 42, 0.6)"};function XD(J){return{id:"costBarLabels",afterDatasetsDraw(G){let{ctx:q}=G;if(!G.data.datasets[0])return;let N=G.getDatasetMeta(0);q.save(),q.font="11px system-ui, sans-serif",q.fillStyle=J,q.textAlign="center",q.textBaseline="bottom";for(let K of N.data){let H=K.$context.parsed.y;if(!H)continue;let F=`$${Math.round(H)}`,{x:W,y:M}=K.getProps(["x","y"],!0);q.fillText(F,W,M-3)}q.restore()}}}function ND({costSeries:J}){let[G,q]=o6.useState(!1),X=z5(),N=s1[X],K=o6.useMemo(()=>{if(G)return R$(J,{rankWeight:(V)=>V.cost,initBucket:()=>({total:0}),accumulate:(V,I)=>{V.total+=I.cost},bucketToValue:(V)=>V.total});return i3(J,"Cost",{initBucket:()=>({total:0}),accumulate:(V,I)=>{V.total+=I.cost},bucketToValue:(V)=>V.total})},[J,G]),H=o6.useMemo(()=>{return c4({chartTheme:N,showLegend:G,defaultLabel:"Cost",formatValue:(V)=>`$${V.toFixed(2)}`,footer:(V)=>{if(!G||V.length<2)return;return`Total: $${V.reduce((j,h)=>j+(h.parsed.y??0),0).toFixed(2)}`}})},[N,G]),{sharedScaleBase:F,yScale:W}=o6.useMemo(()=>{return l4({chartTheme:N,formatY:(V)=>`$${Math.round(V)}`})},[N]),M=o6.useMemo(()=>{return XD(YD[X])},[X]),R=o6.useMemo(()=>{if(!G)return null;return{labels:K.labels,datasets:u2(K,(V)=>w$(K1[V%K1.length]))}},[K,G]),_=o6.useMemo(()=>{return{responsive:!0,maintainAspectRatio:!1,interaction:{mode:"index",intersect:!1},plugins:H,scales:{x:F,y:W}}},[H,F,W]),P=o6.useMemo(()=>{if(G)return null;return{labels:K.labels,datasets:u2(K,(V)=>n7(K1[V%K1.length]))}},[K,G]),O=o6.useMemo(()=>{return{responsive:!0,maintainAspectRatio:!1,interaction:{mode:"index",intersect:!1},plugins:{...H,costBarLabels:{}},scales:{x:{...F,stacked:!0},y:{...W,stacked:!0}},layout:{padding:{top:24}}}},[H,F,W]);return N5.jsxDEV(q1,{title:"Daily Cost",subtitle:"API spending over time",actions:N5.jsxDEV(i7,{options:[{value:!1,label:"All Models"},{value:!0,label:"By Model"}],value:G,onChange:q},void 0,!1,void 0,this),children:N5.jsxDEV("div",{className:"h-[300px]",children:K.labels.length===0?N5.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):G&&R?N5.jsxDEV(k5,{data:R,options:_},void 0,!1,void 0,this):P?N5.jsxDEV(h2,{data:P,options:O,plugins:[M]},void 0,!1,void 0,this):null},void 0,!1,void 0,this)},void 0,!1,void 0,this)}var rL=s(L1(),1);var S1=s(U0(),1);function sL({active:J,range:G,refreshTrigger:q,onRequestClick:X}){let{data:N,error:K,loading:H}=n1(["recent-errors-dense",G,q],(M)=>r_(G,50,M),{pollMs:30000,enabled:J}),F=rL.useMemo(()=>[{key:"model",header:"Model",render:(M)=>S1.jsxDEV("div",{children:[S1.jsxDEV("div",{className:"stats-font-medium stats-text-primary",children:M.model},void 0,!1,void 0,this),S1.jsxDEV("div",{className:"stats-text-xs stats-text-muted",children:M.provider},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},{key:"timestamp",header:"Time",render:(M)=>G6(M.timestamp)},{key:"errorMessage",header:"Error Message",render:(M)=>S1.jsxDEV("div",{className:"stats-text-xs stats-text-danger stats-truncate stats-max-w-md stats-font-mono",title:M.errorMessage||"",children:M.errorMessage||"Unknown error"},void 0,!1,void 0,this)},{key:"tokens",header:"Tokens",numeric:!0,render:(M)=>S0(M.usage.totalTokens)},{key:"cost",header:"Cost",numeric:!0,render:(M)=>z1(M.usage.cost.total,4)}],[]);return S1.jsxDEV("div",{className:"stats-route-container",children:S1.jsxDEV(q1,{title:"Recent Errors",subtitle:"Up to 50 most recent failed requests in the stats database",children:S1.jsxDEV(f1,{loading:H,error:K,data:N,emptyText:"No recent failures in the local stats database",children:S1.jsxDEV(X6,{columns:F,data:N||[],keyExtractor:(M)=>M.id||`${M.sessionFile}-${M.entryId}`,onRowClick:(M)=>M.id&&X(M.id),renderMobileCard:(M,R)=>S1.jsxDEV("div",{className:"stats-mobile-card stats-border-danger",onClick:R,children:[S1.jsxDEV("div",{className:"stats-mobile-card-header",children:[S1.jsxDEV("div",{children:[S1.jsxDEV("div",{className:"stats-font-semibold stats-text-primary",children:M.model},void 0,!1,void 0,this),S1.jsxDEV("div",{className:"stats-text-xs stats-text-muted",children:M.provider},void 0,!1,void 0,this)]},void 0,!0,void 0,this),S1.jsxDEV(O5,{variant:"danger",children:"Failed"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),S1.jsxDEV("div",{className:"stats-mobile-card-grid",children:[S1.jsxDEV("div",{children:[S1.jsxDEV("div",{className:"stats-mobile-card-label",children:"Time"},void 0,!1,void 0,this),S1.jsxDEV("div",{className:"stats-mobile-card-value",children:G6(M.timestamp)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),S1.jsxDEV("div",{children:[S1.jsxDEV("div",{className:"stats-mobile-card-label",children:"Cost"},void 0,!1,void 0,this),S1.jsxDEV("div",{className:"stats-mobile-card-value",children:z1(M.usage.cost.total,4)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),S1.jsxDEV("div",{children:[S1.jsxDEV("div",{className:"stats-mobile-card-label",children:"Tokens"},void 0,!1,void 0,this),S1.jsxDEV("div",{className:"stats-mobile-card-value",children:S0(M.usage.totalTokens)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),M.errorMessage&&S1.jsxDEV("div",{className:"stats-mobile-card-error mt-2 stats-font-mono",children:M.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 Fq=s(L1(),1);var I0=s(U0(),1);function nL({active:J,range:G,refreshTrigger:q}){let[X,N]=Fq.useState(null),{data:K,error:H,loading:F}=n1(["gain",G,q,X],(W)=>i_(G,X,W),{pollMs:30000,enabled:J});return I0.jsxDEV("div",{className:"stats-route-container space-y-6",children:I0.jsxDEV(f1,{loading:F,error:H,data:K,children:K&&I0.jsxDEV(I0.Fragment,{children:[I0.jsxDEV(UD,{projects:K.projects,selected:X,onChange:N},void 0,!1,void 0,this),I0.jsxDEV(KD,{overall:K.overall},void 0,!1,void 0,this),I0.jsxDEV(HD,{bySource:K.bySource},void 0,!1,void 0,this),I0.jsxDEV(WD,{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 UD({projects:J,selected:G,onChange:q}){if(J.length===0)return null;return I0.jsxDEV("div",{style:{display:"flex",alignItems:"center",gap:"0.5rem"},children:[I0.jsxDEV("span",{className:"stats-text-secondary",style:{fontSize:"0.875rem",whiteSpace:"nowrap"},children:"Project"},void 0,!1,void 0,this),I0.jsxDEV("select",{className:"stats-select",value:G??"",onChange:(X)=>q(X.target.value||null),style:{maxWidth:"480px",flex:1},children:[I0.jsxDEV("option",{value:"",children:"All projects"},void 0,!1,void 0,this),J.map((X)=>I0.jsxDEV("option",{value:X,children:X},X,!1,void 0,this))]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)}function KD({overall:J}){return I0.jsxDEV(q1,{title:"Overall Gain",subtitle:"Aggregate snapcompact savings",children:I0.jsxDEV("div",{className:"stats-metric-primary-grid",children:[I0.jsxDEV("div",{className:"stats-metric-card primary",children:[I0.jsxDEV("div",{className:"stats-metric-label",children:"Saved Tokens"},void 0,!1,void 0,this),I0.jsxDEV("div",{className:"stats-metric-value",children:X1(J.savedTokens)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),I0.jsxDEV("div",{className:"stats-metric-card primary",children:[I0.jsxDEV("div",{className:"stats-metric-label",children:"Saved Bytes"},void 0,!1,void 0,this),I0.jsxDEV("div",{className:"stats-metric-value",children:zK(J.savedBytes)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),I0.jsxDEV("div",{className:"stats-metric-card primary",children:[I0.jsxDEV("div",{className:"stats-metric-label",children:"Reduction"},void 0,!1,void 0,this),I0.jsxDEV("div",{className:"stats-metric-value",children:J.reductionPercent!==null?x1(J.reductionPercent):"—"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),I0.jsxDEV("div",{className:"stats-metric-card primary",children:[I0.jsxDEV("div",{className:"stats-metric-label",children:"Total Hits"},void 0,!1,void 0,this),I0.jsxDEV("div",{className:"stats-metric-value",children:S0(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 BD({title:J,totals:G}){return I0.jsxDEV("div",{className:"stats-metric-card secondary",style:{flex:1},children:[I0.jsxDEV("div",{className:"stats-metric-label",style:{fontWeight:600,marginBottom:8},children:J},void 0,!1,void 0,this),I0.jsxDEV("div",{style:{display:"grid",gridTemplateColumns:"1fr 1fr",gap:8},children:[I0.jsxDEV("div",{children:[I0.jsxDEV("div",{className:"stats-metric-label",children:"Saved Tokens"},void 0,!1,void 0,this),I0.jsxDEV("div",{className:"stats-metric-value",style:{fontSize:"1rem"},children:X1(G.savedTokens)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),I0.jsxDEV("div",{children:[I0.jsxDEV("div",{className:"stats-metric-label",children:"Saved Bytes"},void 0,!1,void 0,this),I0.jsxDEV("div",{className:"stats-metric-value",style:{fontSize:"1rem"},children:zK(G.savedBytes)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),I0.jsxDEV("div",{children:[I0.jsxDEV("div",{className:"stats-metric-label",children:"Hits"},void 0,!1,void 0,this),I0.jsxDEV("div",{className:"stats-metric-value",style:{fontSize:"1rem"},children:S0(G.hits)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),I0.jsxDEV("div",{children:[I0.jsxDEV("div",{className:"stats-metric-label",children:"Reduction"},void 0,!1,void 0,this),I0.jsxDEV("div",{className:"stats-metric-value",style:{fontSize:"1rem"},children:G.reductionPercent!==null?x1(G.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 HD({bySource:J}){return I0.jsxDEV(q1,{title:"By Source",subtitle:"Savings breakdown per subsystem",children:I0.jsxDEV("div",{style:{display:"flex",gap:16,flexWrap:"wrap"},children:I0.jsxDEV(BD,{title:"Snapcompact",totals:J.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 WD({timeSeries:J}){let G=z5(),q=s1[G],{data:X,options:N}=Fq.useMemo(()=>{let K=new Intl.DateTimeFormat(void 0,{month:"short",day:"numeric",timeZone:"UTC"}),F={labels:J.map((_)=>K.format(new Date(`${_.date}T00:00:00.000Z`))),datasets:[{label:"Snapcompact",data:J.map((_)=>_.snapcompact),...w$(FD.snapcompact)}]},{sharedScaleBase:W,yScale:M}=l4({chartTheme:q,formatY:(_)=>X1(_)}),R={responsive:!0,maintainAspectRatio:!1,plugins:c4({chartTheme:q,showLegend:!0,defaultLabel:"Tokens Saved",formatValue:X1}),scales:{x:{...W,stacked:!0},y:{...M,stacked:!0}}};return{data:F,options:R}},[J,q]);return I0.jsxDEV(q1,{title:"Savings Over Time",subtitle:"Daily token savings",children:I0.jsxDEV("div",{style:{height:240},children:J.length===0?I0.jsxDEV("div",{className:"stats-table-empty",children:"No time series data yet"},void 0,!1,void 0,this):I0.jsxDEV(k5,{data:X,options:N},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this)}var s4=s(L1(),1);var D0=s(U0(),1);function aL({active:J,range:G,refreshTrigger:q}){let{data:X,error:N,loading:K}=n1(["models",G,q],(H)=>c_(G,H),{pollMs:30000,enabled:J});return D0.jsxDEV("div",{className:"stats-route-container space-y-6",children:D0.jsxDEV(f1,{loading:K,error:N,data:X,children:X&&D0.jsxDEV(D0.Fragment,{children:[D0.jsxDEV(zD,{modelSeries:X.modelSeries,timeRange:G},void 0,!1,void 0,this),D0.jsxDEV(wD,{models:X.byModel,performanceSeries:X.modelPerformanceSeries,timeRange:G},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 zD({modelSeries:J,timeRange:G}){let q=z5(),X=s1[q],N=o7(G),K=s4.useMemo(()=>MD(J),[J]),H=s4.useMemo(()=>{return{labels:K.data.map((W)=>nJ(W.timestamp,G)),datasets:K.series.map((W,M)=>({label:W,data:K.data.map((R)=>R[W]??0),borderColor:K1[M%K1.length],backgroundColor:`${K1[M%K1.length]}20`,fill:!0,tension:0.4,pointRadius:0,pointHoverRadius:4,borderWidth:2}))}},[K,G]),F=s4.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 M=W.dataset.label??"",R=W.parsed.y;return`${M}: ${(R??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 D0.jsxDEV(q1,{title:"Model Preference",subtitle:`Share of requests over ${N.windowLabel}`,children:D0.jsxDEV("div",{className:"h-[280px]",children:K.data.length===0?D0.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):D0.jsxDEV(k5,{data:H,options:F},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this)}function MD(J,G=5){if(J.length===0)return{data:[],series:[]};let q=new Map;for(let _ of J){let P=`${_.model}::${_.provider}`,O=q.get(P);if(O)O.total+=_.requests;else q.set(P,{model:_.model,provider:_.provider,total:_.requests})}let N=[...q.entries()].map(([_,P])=>({key:_,...P})).sort((_,P)=>P.total-_.total).slice(0,G),K=new Set(N.map((_)=>_.key)),H=new Map;for(let _ of N)H.set(_.model,(H.get(_.model)??0)+1);let F=new Map;for(let _ of N){let P=(H.get(_.model)??0)>1;F.set(_.key,P?`${_.model} (${_.provider})`:_.model)}let W=new Map;for(let _ of J){let P=`${_.model}::${_.provider}`,O=W.get(_.timestamp)??{timestamp:_.timestamp,total:0};O.total+=_.requests;let E=K.has(P)?F.get(P)??_.model:"Other";O[E]=(O[E]??0)+_.requests,W.set(_.timestamp,O)}let M=N.map((_)=>F.get(_.key)??_.model);if([...W.values()].some((_)=>(_.Other??0)>0))M.push("Other");return{data:[...W.values()].sort((_,P)=>(_.timestamp??0)-(P.timestamp??0)).map((_)=>{let P=_.total??0;for(let O of M)_[O]=P>0?(_[O]??0)/P*100:0;return _}),series:M}}var oL="2fr 0.9fr 0.9fr 1fr 0.8fr 0.8fr 140px 40px";function wD({models:J,performanceSeries:G,timeRange:q}){let[X,N]=s4.useState(null),K=o7(q),H=s4.useMemo(()=>DL(G,q),[G,q]),F=z5(),W=s1[F],M=s4.useMemo(()=>{return[...J].sort((R,_)=>_.totalInputTokens+_.totalOutputTokens-(R.totalInputTokens+R.totalOutputTokens))},[J]);return D0.jsxDEV($q,{title:"Model Statistics",children:[D0.jsxDEV(Zq,{gridTemplate:oL,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),D0.jsxDEV(Jq,{children:M.map((R,_)=>{let P=`${R.model}::${R.provider}`,E=H.get(P)?.data??[],V=K1[_%K1.length],I=X===P,j=R.errorRate*100;return D0.jsxDEV(Gq,{gridTemplate:oL,isExpanded:I,onToggle:()=>N(I?null:P),cells:[D0.jsxDEV(Qq,{model:R.model,provider:R.provider},"name",!1,void 0,this),D0.jsxDEV("div",{className:"text-right text-[var(--text-secondary)] font-mono text-sm",children:R.totalRequests.toLocaleString()},"requests",!1,void 0,this),D0.jsxDEV("div",{className:"text-right text-[var(--text-secondary)] font-mono text-sm",children:["$",R.totalCost.toFixed(2)]},"cost",!0,void 0,this),D0.jsxDEV("div",{className:"text-right text-[var(--text-secondary)] font-mono text-sm",children:(R.totalInputTokens+R.totalOutputTokens).toLocaleString()},"tokens",!1,void 0,this),D0.jsxDEV("div",{className:"text-right text-[var(--text-secondary)] font-mono text-sm",children:R.avgTokensPerSecond?.toFixed(1)??"-"},"tps",!1,void 0,this),D0.jsxDEV("div",{className:"text-right text-[var(--text-secondary)] font-mono text-sm",children:R.avgTtft?`${(R.avgTtft/1000).toFixed(2)}s`:"-"},"ttft",!1,void 0,this)],trendCell:E.length===0?D0.jsxDEV(qq,{},void 0,!1,void 0,this):D0.jsxDEV(t3,{timestamps:E.map((h)=>h.timestamp),values:E.map((h)=>h.avgTokensPerSecond??0),color:V},void 0,!1,void 0,this),expandedContent:D0.jsxDEV("div",{className:"grid gap-4",style:{gridTemplateColumns:"200px 1fr"},children:[D0.jsxDEV("div",{className:"space-y-4 text-sm",children:[D0.jsxDEV("div",{children:[D0.jsxDEV("div",{className:"text-[var(--text-primary)] font-medium mb-2",children:"Quality"},void 0,!1,void 0,this),D0.jsxDEV("div",{className:"space-y-1 text-[var(--text-secondary)]",children:[D0.jsxDEV("div",{className:"flex items-center justify-between",children:[D0.jsxDEV("span",{children:"Error rate"},void 0,!1,void 0,this),D0.jsxDEV("span",{className:j>5?"text-[var(--accent-red)]":"text-[var(--accent-green)]",children:[j.toFixed(1),"%"]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),D0.jsxDEV("div",{className:"flex items-center justify-between",children:[D0.jsxDEV("span",{children:"Cache rate"},void 0,!1,void 0,this),D0.jsxDEV("span",{className:"text-[var(--accent-cyan)]",children:[(R.cacheRate*100).toFixed(1),"%"]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),D0.jsxDEV("div",{children:[D0.jsxDEV("div",{className:"text-[var(--text-primary)] font-medium mb-2",children:"Latency"},void 0,!1,void 0,this),D0.jsxDEV("div",{className:"space-y-1 text-[var(--text-secondary)]",children:[D0.jsxDEV("div",{className:"flex items-center justify-between",children:[D0.jsxDEV("span",{children:"Avg duration"},void 0,!1,void 0,this),D0.jsxDEV("span",{className:"font-mono",children:R.avgDuration?`${(R.avgDuration/1000).toFixed(2)}s`:"-"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),D0.jsxDEV("div",{className:"flex items-center justify-between",children:[D0.jsxDEV("span",{children:"Avg TTFT"},void 0,!1,void 0,this),D0.jsxDEV("span",{className:"font-mono",children:R.avgTtft?`${(R.avgTtft/1000).toFixed(2)}s`:"-"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),D0.jsxDEV("div",{className:"h-[200px]",children:E.length===0?D0.jsxDEV(Yq,{},void 0,!1,void 0,this):D0.jsxDEV(RD,{data:E,color:V,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 RD({data:J,color:G,chartTheme:q,timeRange:X}){let N=s4.useMemo(()=>{return{labels:J.map((H)=>nJ(H.timestamp,X)),datasets:[{label:"TTFT",data:J.map((H)=>H.avgTtftSeconds??null),...D8("#5ad8e6"),yAxisID:"y"},{label:"Tokens/s",data:J.map((H)=>H.avgTokensPerSecond??null),...D8(G),yAxisID:"y1"}]}},[J,G,X]),K=s4.useMemo(()=>{return{responsive:!0,maintainAspectRatio:!1,plugins:e3(q),scales:IL(q)}},[q]);return D0.jsxDEV(k5,{data:N,options:K},void 0,!1,void 0,this)}var oJ=s(L1(),1);var iL=s(L1(),1);var N6=s(U0(),1),Wq={main:{label:"Main agent",color:"#ed4abf"},subagent:{label:"Subagents",color:"#9b4dff"},advisor:{label:"Advisor",color:"#5ad8e6"}};function tL({stats:J}){let G=iL.useMemo(()=>EL(J),[J]);if(G.totalTokens===0)return N6.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 N6.jsxDEV("div",{className:"space-y-4",children:[N6.jsxDEV("div",{className:"flex h-3 w-full overflow-hidden rounded-full",style:{background:"var(--surface-2)"},children:G.segments.map((q)=>q.share>0&&N6.jsxDEV("div",{className:"h-full",style:{width:`${q.share*100}%`,background:Wq[q.agentType].color},title:`${Wq[q.agentType].label}: ${x1(q.share)}`},q.agentType,!1,void 0,this))},void 0,!1,void 0,this),N6.jsxDEV("div",{className:"space-y-2",children:G.segments.map((q)=>N6.jsxDEV("div",{className:"flex items-center justify-between gap-3 text-sm",children:[N6.jsxDEV("div",{className:"flex items-center gap-2 min-w-0",children:[N6.jsxDEV("span",{className:"w-2.5 h-2.5 rounded-full flex-shrink-0",style:{background:Wq[q.agentType].color}},void 0,!1,void 0,this),N6.jsxDEV("span",{className:"stats-text-primary truncate",children:Wq[q.agentType].label},void 0,!1,void 0,this),N6.jsxDEV("span",{className:"stats-text-muted stats-text-xs whitespace-nowrap",children:[S0(q.requests)," req"]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),N6.jsxDEV("div",{className:"flex items-center gap-3 whitespace-nowrap",children:[N6.jsxDEV("span",{className:"stats-text-secondary",children:[X1(q.tokens)," tok"]},void 0,!0,void 0,this),N6.jsxDEV("span",{className:"stats-font-semibold stats-text-primary tabular-nums",children:x1(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 K0=s(U0(),1);function eL({active:J,range:G,refreshTrigger:q,onRequestClick:X}){let{data:N,error:K,loading:H}=n1(["overview",G,q],(j)=>p_(G,j),{pollMs:30000,enabled:J}),{data:F,error:W,loading:M}=n1(["recent-requests",q],(j)=>o3(50,j),{pollMs:30000,enabled:J}),R=z5(),_=s1[R],P=oJ.useMemo(()=>{if(!N?.timeSeries)return{labels:[],datasets:[]};let j=N.timeSeries.map((p)=>K4(new Date(p.timestamp),G==="1h"||G==="24h"?"HH:mm":"MMM d")),h=N.timeSeries.length<=2?3:0;return{labels:j,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,G]),O=oJ.useMemo(()=>{return{responsive:!0,maintainAspectRatio:!1,interaction:{mode:"index",intersect:!1},plugins:{legend:{display:!0,position:"top",align:"end",labels:{color:_.legendLabel,boxWidth:8,usePointStyle:!0,font:{size:11}}},tooltip:{backgroundColor:_.tooltipBackground,titleColor:_.tooltipTitle,bodyColor:_.tooltipBody,borderColor:_.tooltipBorder,borderWidth:1,cornerRadius:8,padding:10}},scales:{x:{grid:{color:_.grid,drawBorder:!1},ticks:{color:_.tick,font:{size:10}}},y:{grid:{color:_.grid,drawBorder:!1},ticks:{color:_.tick,font:{size:10}},min:0}}}},[_]),E=oJ.useMemo(()=>[{key:"model",header:"Model",render:(j)=>K0.jsxDEV("div",{children:[K0.jsxDEV("div",{className:"stats-font-medium stats-text-primary",children:j.model},void 0,!1,void 0,this),K0.jsxDEV("div",{className:"stats-text-xs stats-text-muted",children:j.provider},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},{key:"timestamp",header:"Time",render:(j)=>G6(j.timestamp)},{key:"tokens",header:"Tokens",numeric:!0,render:(j)=>S0(j.usage.totalTokens)},{key:"cost",header:"Cost",numeric:!0,render:(j)=>z1(j.usage.cost.total,4)},{key:"duration",header:"Duration",numeric:!0,render:(j)=>v5(j.duration)},{key:"status",header:"Status",className:"stats-text-center",render:(j)=>K0.jsxDEV(O5,{variant:j.errorMessage?"danger":"success",children:j.errorMessage?"Failed":"Success"},void 0,!1,void 0,this)}],[]),V=(j,h)=>K0.jsxDEV("div",{className:"stats-mobile-card",onClick:h,children:[K0.jsxDEV("div",{className:"stats-mobile-card-header",children:[K0.jsxDEV("div",{children:[K0.jsxDEV("div",{className:"stats-font-semibold stats-text-primary",children:j.model},void 0,!1,void 0,this),K0.jsxDEV("div",{className:"stats-text-xs stats-text-muted",children:j.provider},void 0,!1,void 0,this)]},void 0,!0,void 0,this),K0.jsxDEV(O5,{variant:j.errorMessage?"danger":"success",children:j.errorMessage?"Failed":"Success"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),K0.jsxDEV("div",{className:"stats-mobile-card-grid",children:[K0.jsxDEV("div",{children:[K0.jsxDEV("div",{className:"stats-mobile-card-label",children:"Time"},void 0,!1,void 0,this),K0.jsxDEV("div",{className:"stats-mobile-card-value",children:G6(j.timestamp)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),K0.jsxDEV("div",{children:[K0.jsxDEV("div",{className:"stats-mobile-card-label",children:"Cost"},void 0,!1,void 0,this),K0.jsxDEV("div",{className:"stats-mobile-card-value",children:z1(j.usage.cost.total,4)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),K0.jsxDEV("div",{children:[K0.jsxDEV("div",{className:"stats-mobile-card-label",children:"Tokens"},void 0,!1,void 0,this),K0.jsxDEV("div",{className:"stats-mobile-card-value",children:S0(j.usage.totalTokens)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),K0.jsxDEV("div",{children:[K0.jsxDEV("div",{className:"stats-mobile-card-label",children:"Duration"},void 0,!1,void 0,this),K0.jsxDEV("div",{className:"stats-mobile-card-value",children:v5(j.duration)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),j.errorMessage&&K0.jsxDEV("div",{className:"stats-mobile-card-error truncate mt-2",children:j.errorMessage},void 0,!1,void 0,this)]},void 0,!0,void 0,this),I=oJ.useMemo(()=>{if(!F)return[];return F.slice(0,10)},[F]);return K0.jsxDEV("div",{className:"stats-route-container space-y-6",children:[K0.jsxDEV(f1,{loading:H,error:K,data:N,children:N&&K0.jsxDEV(yL,{stats:N.overall},void 0,!1,void 0,this)},void 0,!1,void 0,this),K0.jsxDEV(q1,{title:"Conversation Tokens by Agent",subtitle:"Uncached input + cache reads + cache writes + output, grouped by agent type",children:K0.jsxDEV(f1,{loading:H,error:K,data:N,children:N&&K0.jsxDEV(tL,{stats:N.byAgentType},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this),K0.jsxDEV("div",{className:"grid grid-cols-1 lg:grid-cols-3 gap-6",children:[K0.jsxDEV("div",{className:"lg:col-span-2",children:K0.jsxDEV(q1,{title:"System Throughput",subtitle:"Request volume and errors over time",children:K0.jsxDEV(f1,{loading:H,error:K,data:N,children:K0.jsxDEV("div",{className:"h-[280px]",children:N?.timeSeries&&N.timeSeries.length>0?K0.jsxDEV(k5,{data:P,options:O},void 0,!1,void 0,this):K0.jsxDEV("div",{className:"h-full flex items-center justify-center text-stats-muted text-sm",children:"No time-series data available"},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this),K0.jsxDEV("div",{children:K0.jsxDEV(q1,{title:"Operational Feed",subtitle:"Real-time request log",children:K0.jsxDEV(f1,{loading:M,error:W,data:F,fallback:K0.jsxDEV("div",{className:"space-y-4",children:Array.from({length:5}).map((j,h)=>K0.jsxDEV("div",{className:"flex items-center gap-3",children:[K0.jsxDEV(q6,{variant:"circle",width:10,height:10},void 0,!1,void 0,this),K0.jsxDEV("div",{className:"flex-1",children:[K0.jsxDEV(q6,{variant:"text",width:"60%",height:16},void 0,!1,void 0,this),K0.jsxDEV(q6,{variant:"text",width:"40%",height:12},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},h,!0,void 0,this))},void 0,!1,void 0,this),children:K0.jsxDEV("div",{className:"stats-feed-ledger overflow-y-auto max-h-[280px] pr-2",children:[I.map((j)=>{let h=!!j.errorMessage;return K0.jsxDEV("div",{className:"stats-feed-item flex items-start gap-3 p-2 rounded hover:bg-stats-surface-2 cursor-pointer transition-colors",onClick:()=>j.id&&X(j.id),children:[K0.jsxDEV("div",{className:`w-2 h-2 mt-1.5 rounded-full flex-shrink-0 ${h?"bg-stats-danger":"bg-stats-success"}`},void 0,!1,void 0,this),K0.jsxDEV("div",{className:"flex-1 min-w-0",children:[K0.jsxDEV("div",{className:"flex justify-between items-baseline gap-2",children:[K0.jsxDEV("div",{className:"stats-font-medium stats-text-primary text-sm truncate",children:j.model},void 0,!1,void 0,this),K0.jsxDEV("div",{className:"stats-text-xs stats-text-muted whitespace-nowrap",children:G6(j.timestamp)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),K0.jsxDEV("div",{className:"flex justify-between items-center text-xs stats-text-muted mt-0.5",children:[K0.jsxDEV("div",{children:j.provider},void 0,!1,void 0,this),K0.jsxDEV("div",{children:[j.duration?v5(j.duration):""," ",j.usage?.cost?.total?`· ${z1(j.usage.cost.total,4)}`:""]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),h&&K0.jsxDEV("div",{className:"text-xs text-stats-danger truncate mt-1",children:j.errorMessage},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},j.id||`${j.sessionFile}-${j.entryId}`,!0,void 0,this)}),I.length===0&&K0.jsxDEV("div",{className:"py-8 text-center stats-text-muted text-sm",children:"No recent requests found"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),K0.jsxDEV(q1,{title:"Recent Requests Preview",subtitle:"Latest transactions processed by the proxy",actions:K0.jsxDEV("a",{href:`#/requests?range=${G}`,className:"stats-button stats-button-secondary text-xs",children:"View All Requests"},void 0,!1,void 0,this),children:K0.jsxDEV(f1,{loading:M,error:W,data:F,children:K0.jsxDEV(X6,{columns:E,data:I,keyExtractor:(j)=>j.id||`${j.sessionFile}-${j.entryId}`,onRowClick:(j)=>j.id&&X(j.id),renderMobileCard:V,emptyText:"No recent requests found"},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}var _K=s(L1(),1);var Y1=s(U0(),1);function $P({active:J,range:G,refreshTrigger:q}){let{data:X,error:N,loading:K}=n1(["projects",G,q],(M)=>a_(G,M),{pollMs:30000,enabled:J}),H=_K.useMemo(()=>{if(!X)return[];return kL(X)},[X]),F=_K.useMemo(()=>[{key:"folder",header:"Project/Folder",render:(M)=>Y1.jsxDEV("div",{className:"stats-font-medium stats-text-primary truncate max-w-[440px]",title:M.folder||"(root)",children:M.folder||"(root)"},void 0,!1,void 0,this)},{key:"totalRequests",header:"Requests",numeric:!0,render:(M)=>Y1.jsxDEV("div",{className:"stats-text-right",children:[Y1.jsxDEV("div",{className:"font-mono",children:S0(M.totalRequests)},void 0,!1,void 0,this),Y1.jsxDEV("div",{className:"stats-progress-bar-track mt-1 ml-auto w-24 h-1",children:Y1.jsxDEV("div",{className:"stats-progress-bar-fill","data-variant":"link",style:{width:`${M.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:(M)=>Y1.jsxDEV("div",{className:"stats-text-right",children:[Y1.jsxDEV("div",{className:"font-mono",children:z1(M.totalCost)},void 0,!1,void 0,this),Y1.jsxDEV("div",{className:"stats-progress-bar-track mt-1 ml-auto w-24 h-1",children:Y1.jsxDEV("div",{className:"stats-progress-bar-fill","data-variant":"success",style:{width:`${M.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:(M)=>Y1.jsxDEV("div",{className:"font-mono",children:S0(M.totalInputTokens+M.totalOutputTokens)},void 0,!1,void 0,this)},{key:"cacheRate",header:"Cache Rate",numeric:!0,render:(M)=>Y1.jsxDEV("span",{className:"stats-text-success font-medium",children:x1(M.cacheRate)},void 0,!1,void 0,this)},{key:"errorRate",header:"Error Rate",numeric:!0,render:(M)=>Y1.jsxDEV(O5,{variant:M.errorRate>0.1?"danger":M.errorRate>0?"warning":"success",children:x1(M.errorRate)},void 0,!1,void 0,this)},{key:"avgDuration",header:"Avg Duration",numeric:!0,render:(M)=>v5(M.avgDuration)}],[]);return Y1.jsxDEV("div",{className:"stats-route-container",children:Y1.jsxDEV(q1,{title:"Projects & Folders",subtitle:"Aggregate proxy metrics grouped by folder path",children:Y1.jsxDEV(f1,{loading:K,error:N,data:X,emptyText:"No project folders recorded for this range.",children:Y1.jsxDEV(X6,{columns:F,data:H,keyExtractor:(M)=>M.folder,renderMobileCard:(M)=>Y1.jsxDEV("div",{className:"stats-mobile-card",children:[Y1.jsxDEV("div",{className:"stats-mobile-card-header mb-2",children:[Y1.jsxDEV("div",{className:"stats-font-semibold stats-text-primary",children:M.folder||"(root)"},void 0,!1,void 0,this),Y1.jsxDEV(O5,{variant:M.errorRate>0.1?"danger":M.errorRate>0?"warning":"success",children:[x1(M.errorRate)," Err"]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),Y1.jsxDEV("div",{className:"stats-mobile-card-grid",children:[Y1.jsxDEV("div",{children:[Y1.jsxDEV("div",{className:"stats-mobile-card-label",children:"Requests"},void 0,!1,void 0,this),Y1.jsxDEV("div",{className:"stats-mobile-card-value font-mono",children:S0(M.totalRequests)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),Y1.jsxDEV("div",{children:[Y1.jsxDEV("div",{className:"stats-mobile-card-label",children:"Cost"},void 0,!1,void 0,this),Y1.jsxDEV("div",{className:"stats-mobile-card-value font-mono",children:z1(M.totalCost)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),Y1.jsxDEV("div",{children:[Y1.jsxDEV("div",{className:"stats-mobile-card-label",children:"Cache"},void 0,!1,void 0,this),Y1.jsxDEV("div",{className:"stats-mobile-card-value",children:x1(M.cacheRate)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),Y1.jsxDEV("div",{children:[Y1.jsxDEV("div",{className:"stats-mobile-card-label",children:"Duration"},void 0,!1,void 0,this),Y1.jsxDEV("div",{className:"stats-mobile-card-value",children:v5(M.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 b5=s(L1(),1);var m0=s(U0(),1);function ZP({active:J,range:G,refreshTrigger:q}){let{data:X,error:N,loading:K}=n1(["providers",G,q],(H)=>e_(G,H),{pollMs:30000,enabled:J});return m0.jsxDEV("div",{className:"stats-route-container space-y-6",children:m0.jsxDEV(f1,{loading:K,error:N,data:X,children:X&&m0.jsxDEV(m0.Fragment,{children:[m0.jsxDEV(_D,{providers:X.providers},void 0,!1,void 0,this),m0.jsxDEV(LD,{stats:X},void 0,!1,void 0,this),m0.jsxDEV(PD,{hourly:X.hourly,providers:X.providers},void 0,!1,void 0,this),m0.jsxDEV(TD,{insights:X.windowInsights},void 0,!1,void 0,this),m0.jsxDEV(CD,{usageSeries:X.usageSeries},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this)}function _D({providers:J}){let G=b5.useMemo(()=>J.reduce((X,N)=>X+N.totalTokens,0),[J]);return m0.jsxDEV(q1,{title:"Provider Totals",subtitle:"Token, request, and cost totals per provider over the active range",children:m0.jsxDEV(X6,{columns:[{key:"provider",header:"Provider",render:(X)=>m0.jsxDEV("span",{className:"font-medium",children:X.provider},void 0,!1,void 0,this)},{key:"requests",header:"Requests",numeric:!0,render:(X)=>S0(X.totalRequests)},{key:"errors",header:"Error Rate",numeric:!0,render:(X)=>x1(X.totalRequests>0?X.failedRequests/X.totalRequests:0)},{key:"models",header:"Models",numeric:!0,render:(X)=>S0(X.models)},{key:"tokens",header:"Tokens",numeric:!0,render:(X)=>m0.jsxDEV("span",{title:`Input ${X1(X.totalInputTokens)} · Output ${X1(X.totalOutputTokens)} · Cache read ${X1(X.totalCacheReadTokens)} · Cache write ${X1(X.totalCacheWriteTokens)}`,children:X1(X.totalTokens)},void 0,!1,void 0,this)},{key:"share",header:"Share",numeric:!0,render:(X)=>x1(G>0?X.totalTokens/G:0)},{key:"cost",header:"Cost",numeric:!0,render:(X)=>z1(X.totalCost)},{key:"tps",header:"Tok/s",numeric:!0,render:(X)=>Xq(X.avgTokensPerSecond)}],data:J,keyExtractor:(X)=>X.provider,emptyText:"No requests recorded in this range"},void 0,!1,void 0,this)},void 0,!1,void 0,this)}function LD({stats:J}){let[G,q]=b5.useState("tokens"),X=z5(),N=s1[X],K=b5.useMemo(()=>{let M=J.series.map((R)=>({...R,model:R.provider}));return R$(M,{topN:6,rankWeight:(R)=>G==="tokens"?R.totalTokens:R.cost,initBucket:()=>({total:0}),accumulate:(R,_)=>{R.total+=G==="tokens"?_.totalTokens:_.cost},bucketToValue:(R)=>R.total})},[J.series,G]),H=G==="tokens"?X1:(M)=>z1(M),F=b5.useMemo(()=>{let{sharedScaleBase:M,yScale:R}=l4({chartTheme:N,formatY:H});return{responsive:!0,maintainAspectRatio:!1,interaction:{mode:"index",intersect:!1},plugins:c4({chartTheme:N,showLegend:!0,defaultLabel:G==="tokens"?"Tokens":"Cost",formatValue:H,footer:(_)=>{if(_.length<2)return;let P=_.reduce((O,E)=>O+(E.parsed.y??0),0);return`Total: ${H(P)}`}}),scales:{x:{...M,stacked:!0},y:{...R,stacked:!0}}}},[N,G,H]),W=b5.useMemo(()=>({labels:K.labels,datasets:u2(K,(M)=>n7(K1[M%K1.length]))}),[K]);return m0.jsxDEV(q1,{title:"Burn by Provider",subtitle:"Stacked token/cost burn per provider over time",actions:m0.jsxDEV(i7,{options:[{value:"tokens",label:"Tokens"},{value:"cost",label:"Cost"}],value:G,onChange:q},void 0,!1,void 0,this),children:m0.jsxDEV("div",{className:"h-[300px]",children:K.labels.length===0?m0.jsxDEV(_$,{message:"No provider activity in this range"},void 0,!1,void 0,this):m0.jsxDEV(h2,{data:W,options:F},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this)}var LK="__all__";function PD({hourly:J,providers:G}){let[q,X]=b5.useState(LK),N=z5(),K=s1[N],{tokensByHour:H,peakHour:F}=b5.useMemo(()=>{let _=Array(24).fill(0);for(let O of J){if(q!==LK&&O.provider!==q)continue;_[O.hour]+=O.totalTokens}let P=0;for(let O=1;O<24;O++)if(_[O]>_[P])P=O;return{tokensByHour:_,peakHour:P}},[J,q]),W=H.some((_)=>_>0),M=b5.useMemo(()=>({labels:Array.from({length:24},(_,P)=>`${String(P).padStart(2,"0")}:00`),datasets:[{label:"Tokens",data:H,...n7(K1[2]),backgroundColor:H.map((_,P)=>P===F?K1[0]:K1[2])}]}),[H,F]),R=b5.useMemo(()=>{let{sharedScaleBase:_,yScale:P}=l4({chartTheme:K,formatY:X1});return{responsive:!0,maintainAspectRatio:!1,plugins:c4({chartTheme:K,showLegend:!1,defaultLabel:"Tokens",formatValue:X1}),scales:{x:_,y:P}}},[K]);return m0.jsxDEV(q1,{title:"Peak Burn Hours",subtitle:W?`Token burn by local hour of day — peak at ${String(F).padStart(2,"0")}:00`:"Token burn by local hour of day",actions:m0.jsxDEV("select",{className:"stats-select",value:q,onChange:(_)=>X(_.target.value),"aria-label":"Provider",children:[m0.jsxDEV("option",{value:LK,children:"All providers"},void 0,!1,void 0,this),G.map((_)=>m0.jsxDEV("option",{value:_.provider,children:_.provider},_.provider,!1,void 0,this))]},void 0,!0,void 0,this),children:m0.jsxDEV("div",{className:"h-[260px]",children:W?m0.jsxDEV(h2,{data:M,options:R},void 0,!1,void 0,this):m0.jsxDEV(_$,{message:"No activity in this range"},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this)}function TD({insights:J}){return m0.jsxDEV(q1,{title:"Subscription Windows",subtitle:"What each usage window buys you, and how many accounts peak demand needs",children:m0.jsxDEV(X6,{columns:[{key:"provider",header:"Provider",render:(q)=>m0.jsxDEV("span",{className:"font-medium",children:q.provider},void 0,!1,void 0,this)},{key:"window",header:"Window",render:(q)=>q.windowLabel},{key:"accounts",header:"Accounts",numeric:!0,render:(q)=>S0(q.accounts)},{key:"consumed",header:"Windows Burned",numeric:!0,render:(q)=>m0.jsxDEV("span",{title:"Subscription-window equivalents consumed in range (sum of used-fraction increases across accounts)",children:q.fractionConsumed.toFixed(2)},void 0,!1,void 0,this)},{key:"capacity",header:"Est. Tokens / Window",numeric:!0,render:(q)=>m0.jsxDEV("span",{title:"Provider tokens burned in range ÷ windows burned — what one full window is worth",children:q.estTokensPerWindow!==null?X1(q.estTokensPerWindow):"—"},void 0,!1,void 0,this)},{key:"peak",header:"Peak Utilization",numeric:!0,render:(q)=>m0.jsxDEV("span",{title:"Peak of summed used fraction across accounts at any sampled instant",children:x1(q.peakConcurrentFraction)},void 0,!1,void 0,this)},{key:"ideal",header:"Ideal Accounts",numeric:!0,render:(q)=>m0.jsxDEV("span",{title:"Accounts needed to keep peak demand under 90% of fleet capacity",className:q.idealAccounts>q.accounts?"stats-text-warning font-semibold":void 0,children:[S0(q.idealAccounts),q.idealAccounts>q.accounts?` (have ${q.accounts})`:""]},void 0,!0,void 0,this)},{key:"exhausted",header:"Exhaustions",numeric:!0,render:(q)=>m0.jsxDEV("span",{className:q.exhaustedEvents>0?"stats-text-warning":void 0,children:S0(q.exhaustedEvents)},void 0,!1,void 0,this)}],data:J,keyExtractor:(q)=>`${q.provider}::${q.windowKey}`,emptyText:"No usage snapshots recorded yet — they accumulate whenever usage is fetched (TUI footer, /usage, omp usage)"},void 0,!1,void 0,this)},void 0,!1,void 0,this)}var PK={ok:"#62d394",warning:"#f5c14b",exhausted:"#ff6b7d"};function CD({usageSeries:J}){let G=b5.useMemo(()=>[...new Set(J.map((R)=>R.provider))],[J]),[q,X]=b5.useState(null),N=q!==null&&G.includes(q)?q:G[0]??null,K=z5(),H=s1[K],F=b5.useMemo(()=>{return J.filter((R)=>R.provider===N).map((R)=>{let _=[...R.points].reverse().find((P)=>P.usedFraction!==null);return _?{label:`${R.windowLabel} · ${R.accountLabel}`,fraction:_.usedFraction??0,exhausted:_.exhausted,recordedAt:_.timestamp}:null}).filter((R)=>R!==null).sort((R,_)=>_.fraction-R.fraction)},[J,N]),W=b5.useMemo(()=>({labels:F.map((R)=>R.label),datasets:[{label:"Used",data:F.map((R)=>R.fraction*100),backgroundColor:F.map((R)=>R.exhausted?PK.exhausted:R.fraction>=0.8?PK.warning:PK.ok),borderWidth:0,borderRadius:4,barThickness:18}]}),[F]),M=b5.useMemo(()=>{let{sharedScaleBase:R,yScale:_}=l4({chartTheme:H,formatY:(E)=>`${Math.round(E)}%`}),P=Math.max(100,...F.map((E)=>E.fraction*100)),O=c4({chartTheme:H,showLegend:!1,defaultLabel:"Used",formatValue:(E)=>`${E.toFixed(1)}%`});return{indexAxis:"y",responsive:!0,maintainAspectRatio:!1,plugins:{...O,tooltip:{...O.tooltip,callbacks:{label:(E)=>{let V=F[E.dataIndex],I=`${(E.parsed.x??0).toFixed(1)}% used`;return V?`${I} · recorded ${G6(V.recordedAt)}`:I}}}},scales:{x:{..._,max:P},y:{...R,grid:{display:!1}}}}},[H,F]);return m0.jsxDEV(q1,{title:"Window Utilization",subtitle:"Latest recorded limit utilization per account and window — red bars are exhausted, amber above 80%",actions:G.length>1?m0.jsxDEV("select",{className:"stats-select",value:N??"",onChange:(R)=>X(R.target.value),"aria-label":"Provider",children:G.map((R)=>m0.jsxDEV("option",{value:R,children:R},R,!1,void 0,this))},void 0,!1,void 0,this):void 0,children:m0.jsxDEV("div",{style:{height:Math.max(160,F.length*34+60)},children:F.length===0?m0.jsxDEV(_$,{message:"No usage snapshots recorded yet — they accumulate whenever usage is fetched"},void 0,!1,void 0,this):m0.jsxDEV(h2,{data:W,options:M},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this)}var JP=s(L1(),1);var M1=s(U0(),1);function QP({active:J,refreshTrigger:G,onRequestClick:q}){let{data:X,error:N,loading:K}=n1(["recent-requests-dense",G],(W)=>o3(50,W),{pollMs:30000,enabled:J}),H=JP.useMemo(()=>[{key:"model",header:"Model",render:(W)=>M1.jsxDEV("div",{children:[M1.jsxDEV("div",{className:"stats-font-medium stats-text-primary",children:W.model},void 0,!1,void 0,this),M1.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)=>G6(W.timestamp)},{key:"tokens",header:"Tokens",numeric:!0,render:(W)=>S0(W.usage.totalTokens)},{key:"cost",header:"Cost",numeric:!0,render:(W)=>z1(W.usage.cost.total,4)},{key:"duration",header:"Duration",numeric:!0,render:(W)=>v5(W.duration)},{key:"status",header:"Status",className:"stats-text-center",render:(W)=>M1.jsxDEV(O5,{variant:W.errorMessage?"danger":"success",children:W.errorMessage?"Failed":"Success"},void 0,!1,void 0,this)}],[]);return M1.jsxDEV("div",{className:"stats-route-container",children:M1.jsxDEV(q1,{title:"All Recent Requests",subtitle:"Up to 50 most recent requests processed by OMP",children:M1.jsxDEV(f1,{loading:K,error:N,data:X,children:M1.jsxDEV(X6,{columns:H,data:X||[],keyExtractor:(W)=>W.id||`${W.sessionFile}-${W.entryId}`,onRowClick:(W)=>W.id&&q(W.id),renderMobileCard:(W,M)=>M1.jsxDEV("div",{className:"stats-mobile-card",onClick:M,children:[M1.jsxDEV("div",{className:"stats-mobile-card-header",children:[M1.jsxDEV("div",{children:[M1.jsxDEV("div",{className:"stats-font-semibold stats-text-primary",children:W.model},void 0,!1,void 0,this),M1.jsxDEV("div",{className:"stats-text-xs stats-text-muted",children:W.provider},void 0,!1,void 0,this)]},void 0,!0,void 0,this),M1.jsxDEV(O5,{variant:W.errorMessage?"danger":"success",children:W.errorMessage?"Failed":"Success"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),M1.jsxDEV("div",{className:"stats-mobile-card-grid",children:[M1.jsxDEV("div",{children:[M1.jsxDEV("div",{className:"stats-mobile-card-label",children:"Time"},void 0,!1,void 0,this),M1.jsxDEV("div",{className:"stats-mobile-card-value",children:G6(W.timestamp)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),M1.jsxDEV("div",{children:[M1.jsxDEV("div",{className:"stats-mobile-card-label",children:"Cost"},void 0,!1,void 0,this),M1.jsxDEV("div",{className:"stats-mobile-card-value",children:z1(W.usage.cost.total,4)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),M1.jsxDEV("div",{children:[M1.jsxDEV("div",{className:"stats-mobile-card-label",children:"Tokens"},void 0,!1,void 0,this),M1.jsxDEV("div",{className:"stats-mobile-card-value",children:S0(W.usage.totalTokens)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),M1.jsxDEV("div",{children:[M1.jsxDEV("div",{className:"stats-mobile-card-label",children:"Duration"},void 0,!1,void 0,this),M1.jsxDEV("div",{className:"stats-mobile-card-value",children:v5(W.duration)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),W.errorMessage&&M1.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 a6=s(L1(),1);var e=s(U0(),1);function GP({active:J,range:G,refreshTrigger:q}){let{data:X,error:N,loading:K}=n1(["tools",G,q],(H)=>t_(G,H),{pollMs:30000,enabled:J});return e.jsxDEV("div",{className:"stats-route-container space-y-6",children:e.jsxDEV(f1,{loading:K,error:N,data:X,emptyText:"No tool calls recorded for this range.",children:X&&e.jsxDEV(e.Fragment,{children:[e.jsxDEV(OD,{byTool:X.byTool},void 0,!1,void 0,this),e.jsxDEV(AD,{series:X.series,timeRange:G},void 0,!1,void 0,this),e.jsxDEV(ED,{byTool:X.byTool},void 0,!1,void 0,this),e.jsxDEV(SD,{byToolModel:X.byToolModel},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this)}function OD({byTool:J}){let G=a6.useMemo(()=>{let q=0,X=0,N=0,K=0,H=0,F=0,W=0;for(let M of J)q+=M.calls,X+=M.errors,N+=M.totalTokensShare,K+=M.outputTokensShare,H+=M.costShare,F+=M.resultChars,W+=M.argsChars;return{calls:q,errors:X,tokens:N,output:K,cost:H,resultChars:F,argsChars:W,tools:J.length}},[J]);return e.jsxDEV(q1,{title:"Tool Usage",subtitle:"Tokens/cost are the invoking turns' real provider usage, split across each turn's tool calls",children:e.jsxDEV("div",{className:"stats-metric-cluster",children:[e.jsxDEV("div",{className:"stats-metric-primary-grid",children:[e.jsxDEV("div",{className:"stats-metric-card primary",children:[e.jsxDEV("div",{className:"stats-metric-label",children:"Tool Calls"},void 0,!1,void 0,this),e.jsxDEV("div",{className:"stats-metric-value",children:S0(G.calls)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),e.jsxDEV("div",{className:"stats-metric-card primary",children:[e.jsxDEV("div",{className:"stats-metric-label",children:"Tools Used"},void 0,!1,void 0,this),e.jsxDEV("div",{className:"stats-metric-value",children:S0(G.tools)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),e.jsxDEV("div",{className:"stats-metric-card primary",children:[e.jsxDEV("div",{className:"stats-metric-label",children:"Error Rate"},void 0,!1,void 0,this),e.jsxDEV("div",{className:"stats-metric-value",children:x1(G.calls>0?G.errors/G.calls:0)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),e.jsxDEV("div",{className:"stats-metric-card primary",children:[e.jsxDEV("div",{className:"stats-metric-label",children:"Attributed Cost"},void 0,!1,void 0,this),e.jsxDEV("div",{className:"stats-metric-value",children:z1(G.cost)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),e.jsxDEV("div",{className:"stats-metric-secondary-grid",children:[e.jsxDEV("div",{className:"stats-metric-card secondary",children:[e.jsxDEV("div",{className:"stats-metric-label",children:"Attributed Tokens"},void 0,!1,void 0,this),e.jsxDEV("div",{className:"stats-metric-value",children:X1(Math.round(G.tokens))},void 0,!1,void 0,this)]},void 0,!0,void 0,this),e.jsxDEV("div",{className:"stats-metric-card secondary",children:[e.jsxDEV("div",{className:"stats-metric-label",children:"Attributed Output"},void 0,!1,void 0,this),e.jsxDEV("div",{className:"stats-metric-value",children:X1(Math.round(G.output))},void 0,!1,void 0,this)]},void 0,!0,void 0,this),e.jsxDEV("div",{className:"stats-metric-card secondary",children:[e.jsxDEV("div",{className:"stats-metric-label",children:"Result Text"},void 0,!1,void 0,this),e.jsxDEV("div",{className:"stats-metric-value",children:[X1(G.resultChars)," chars"]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),e.jsxDEV("div",{className:"stats-metric-card secondary",children:[e.jsxDEV("div",{className:"stats-metric-label",children:"Call Arguments"},void 0,!1,void 0,this),e.jsxDEV("div",{className:"stats-metric-value",children:[X1(G.argsChars)," chars"]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)}var ID=6;function VD(J){let G=new Map;for(let M of J)G.set(M.tool,(G.get(M.tool)??0)+M.calls);let q=[...G.entries()].sort((M,R)=>R[1]-M[1]),X=q.slice(0,ID).map(([M])=>M),N=new Set(X),H=q.length>X.length?[...X,"Other"]:X,F=[...new Set(J.map((M)=>M.timestamp))].sort((M,R)=>M-R),W=new Map;for(let M of F)W.set(M,{});for(let M of J){let R=N.has(M.tool)?M.tool:"Other",_=W.get(M.timestamp);if(_)_[R]=(_[R]??0)+M.calls}return{buckets:F,tools:H,data:W}}function AD({series:J,timeRange:G}){let q=z5(),X=s1[q],N=o7(G),K=a6.useMemo(()=>VD(J),[J]),H=a6.useMemo(()=>({labels:K.buckets.map((W)=>nJ(W,G)),datasets:K.tools.map((W,M)=>({label:W,data:K.buckets.map((R)=>K.data.get(R)?.[W]??0),borderColor:K1[M%K1.length],backgroundColor:`${K1[M%K1.length]}30`,fill:!0,tension:0.4,pointRadius:0,pointHoverRadius:4,borderWidth:2}))}),[K,G]),F=a6.useMemo(()=>({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)=>`${W.dataset.label??""}: ${S0(W.parsed.y??0)} calls`}}},scales:{x:{stacked:!0,grid:{color:X.grid,drawBorder:!1},ticks:{color:X.tick,font:{size:11}}},y:{stacked:!0,grid:{color:X.grid,drawBorder:!1},ticks:{color:X.tick,font:{size:11},precision:0},min:0}}}),[X]);return e.jsxDEV(q1,{title:"Calls Over Time",subtitle:`Tool calls over ${N.windowLabel}, stacked by tool`,children:e.jsxDEV("div",{className:"h-[280px]",children:K.buckets.length===0?e.jsxDEV("div",{className:"h-full flex items-center justify-center text-stats-muted text-sm",children:"No data available"},void 0,!1,void 0,this):e.jsxDEV(k5,{data:H,options:F},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this)}function TK(J){return J>0.1?"danger":J>0?"warning":"success"}function ED({byTool:J}){let G=a6.useMemo(()=>vL(J),[J]),q=a6.useMemo(()=>[{key:"tool",header:"Tool",render:(N)=>e.jsxDEV("div",{className:"stats-font-medium stats-text-primary font-mono truncate max-w-[280px]",title:N.tool,children:N.tool},void 0,!1,void 0,this)},{key:"calls",header:"Calls",numeric:!0,render:(N)=>e.jsxDEV("div",{className:"stats-text-right",children:[e.jsxDEV("div",{className:"font-mono",children:S0(N.calls)},void 0,!1,void 0,this),e.jsxDEV("div",{className:"stats-progress-bar-track mt-1 ml-auto w-24 h-1",children:e.jsxDEV("div",{className:"stats-progress-bar-fill","data-variant":"link",style:{width:`${N.callsPercentage}%`}},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},{key:"errorRate",header:"Error Rate",numeric:!0,render:(N)=>e.jsxDEV(O5,{variant:TK(N.errorRate),children:x1(N.errorRate)},void 0,!1,void 0,this)},{key:"tokens",header:"Attr. Tokens",numeric:!0,render:(N)=>e.jsxDEV("span",{className:"font-mono",title:"Invoking turns' total tokens, split across each turn's calls",children:X1(Math.round(N.totalTokensShare))},void 0,!1,void 0,this)},{key:"cost",header:"Attr. Cost",numeric:!0,render:(N)=>e.jsxDEV("span",{className:"font-mono",children:z1(N.costShare)},void 0,!1,void 0,this)},{key:"resultChars",header:"Result Text",numeric:!0,render:(N)=>e.jsxDEV("span",{className:"font-mono",title:"Characters of tool-result text fed back into context",children:X1(N.resultChars)},void 0,!1,void 0,this)},{key:"lastUsed",header:"Last Used",numeric:!0,render:(N)=>e.jsxDEV("span",{className:"stats-text-secondary",children:G6(N.lastUsed)},void 0,!1,void 0,this)}],[]);return e.jsxDEV(q1,{title:"By Tool",subtitle:"Usage per tool, most called first",children:e.jsxDEV(X6,{columns:q,data:G,keyExtractor:(N)=>N.tool,renderMobileCard:(N)=>e.jsxDEV("div",{className:"stats-mobile-card",children:[e.jsxDEV("div",{className:"stats-mobile-card-header mb-2",children:[e.jsxDEV("div",{className:"stats-font-semibold stats-text-primary font-mono",children:N.tool},void 0,!1,void 0,this),e.jsxDEV(O5,{variant:TK(N.errorRate),children:[x1(N.errorRate)," Err"]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),e.jsxDEV("div",{className:"stats-mobile-card-grid",children:[e.jsxDEV("div",{children:[e.jsxDEV("div",{className:"stats-mobile-card-label",children:"Calls"},void 0,!1,void 0,this),e.jsxDEV("div",{className:"stats-mobile-card-value font-mono",children:S0(N.calls)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),e.jsxDEV("div",{children:[e.jsxDEV("div",{className:"stats-mobile-card-label",children:"Attr. Tokens"},void 0,!1,void 0,this),e.jsxDEV("div",{className:"stats-mobile-card-value font-mono",children:X1(Math.round(N.totalTokensShare))},void 0,!1,void 0,this)]},void 0,!0,void 0,this),e.jsxDEV("div",{children:[e.jsxDEV("div",{className:"stats-mobile-card-label",children:"Attr. Cost"},void 0,!1,void 0,this),e.jsxDEV("div",{className:"stats-mobile-card-value font-mono",children:z1(N.costShare)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),e.jsxDEV("div",{children:[e.jsxDEV("div",{className:"stats-mobile-card-label",children:"Result Text"},void 0,!1,void 0,this),e.jsxDEV("div",{className:"stats-mobile-card-value font-mono",children:X1(N.resultChars)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),emptyText:"No tool calls recorded for this range."},void 0,!1,void 0,this)},void 0,!1,void 0,this)}function SD({byToolModel:J}){let[G,q]=a6.useState(null),X=a6.useMemo(()=>[...new Set(J.map((H)=>H.tool))].sort(),[J]),N=a6.useMemo(()=>{return(G?J.filter((F)=>F.tool===G):J).map((F)=>({...F,errorRate:F.calls>0?F.errors/F.calls:0}))},[J,G]),K=a6.useMemo(()=>[{key:"tool",header:"Tool",render:(H)=>e.jsxDEV("span",{className:"stats-font-medium stats-text-primary font-mono",children:H.tool},void 0,!1,void 0,this)},{key:"model",header:"Model",render:(H)=>e.jsxDEV("div",{children:[e.jsxDEV("div",{className:"stats-text-primary",children:H.model||"(unknown)"},void 0,!1,void 0,this),e.jsxDEV("div",{className:"stats-text-secondary text-xs",children:H.provider},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},{key:"calls",header:"Calls",numeric:!0,render:(H)=>e.jsxDEV("span",{className:"font-mono",children:S0(H.calls)},void 0,!1,void 0,this)},{key:"errorRate",header:"Error Rate",numeric:!0,render:(H)=>e.jsxDEV(O5,{variant:TK(H.errorRate),children:x1(H.errorRate)},void 0,!1,void 0,this)},{key:"tokens",header:"Attr. Tokens",numeric:!0,render:(H)=>e.jsxDEV("span",{className:"font-mono",children:X1(Math.round(H.totalTokensShare))},void 0,!1,void 0,this)},{key:"cost",header:"Attr. Cost",numeric:!0,render:(H)=>e.jsxDEV("span",{className:"font-mono",children:z1(H.costShare)},void 0,!1,void 0,this)}],[]);return e.jsxDEV(q1,{title:"By Model",subtitle:"Which models call which tools",children:[e.jsxDEV("div",{className:"mb-4",style:{display:"flex",alignItems:"center",gap:"0.5rem"},children:[e.jsxDEV("span",{className:"stats-text-secondary",style:{fontSize:"0.875rem",whiteSpace:"nowrap"},children:"Tool"},void 0,!1,void 0,this),e.jsxDEV("select",{className:"stats-select",value:G??"",onChange:(H)=>q(H.target.value||null),style:{maxWidth:"320px",flex:1},children:[e.jsxDEV("option",{value:"",children:"All tools"},void 0,!1,void 0,this),X.map((H)=>e.jsxDEV("option",{value:H,children:H},H,!1,void 0,this))]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),e.jsxDEV(X6,{columns:K,data:N,keyExtractor:(H)=>`${H.tool}::${H.model}::${H.provider}`,emptyText:"No tool calls recorded for this range."},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}var I5=s(U0(),1);function CK(){let{section:J,setSection:G,range:q,setRange:X}=HL(),[N,K]=j8.useState(0),[H,F]=j8.useState(null),[W,M]=j8.useState(()=>Date.now()),R=j8.useCallback((V)=>{if(V.success)K((I)=>I+1),M(Date.now())},[]),_=j8.useCallback(()=>F(null),[]),P=J,O=j8.useRef(new Set);O.current.add(P);let E=(V)=>{let I=V===P;switch(V){case"overview":return I5.jsxDEV(eL,{active:I,range:q,refreshTrigger:N,onRequestClick:F},void 0,!1,void 0,this);case"requests":return I5.jsxDEV(QP,{active:I,range:q,refreshTrigger:N,onRequestClick:F},void 0,!1,void 0,this);case"errors":return I5.jsxDEV(sL,{active:I,range:q,refreshTrigger:N,onRequestClick:F},void 0,!1,void 0,this);case"models":return I5.jsxDEV(aL,{active:I,range:q,refreshTrigger:N},void 0,!1,void 0,this);case"providers":return I5.jsxDEV(ZP,{active:I,range:q,refreshTrigger:N},void 0,!1,void 0,this);case"tools":return I5.jsxDEV(GP,{active:I,range:q,refreshTrigger:N},void 0,!1,void 0,this);case"costs":return I5.jsxDEV(lL,{active:I,range:q,refreshTrigger:N},void 0,!1,void 0,this);case"behavior":return I5.jsxDEV(cL,{active:I,range:q,refreshTrigger:N},void 0,!1,void 0,this);case"projects":return I5.jsxDEV($P,{active:I,range:q,refreshTrigger:N},void 0,!1,void 0,this);case"gain":return I5.jsxDEV(nL,{active:I,range:q,refreshTrigger:N},void 0,!1,void 0,this)}};return I5.jsxDEV(I5.Fragment,{children:[I5.jsxDEV(KL,{activeSection:P,onSectionChange:G,range:q,onRangeChange:X,updatedAt:W,onSyncComplete:R,children:[...O.current].map((V)=>I5.jsxDEV("div",{hidden:V!==P,children:E(V)},V,!1,void 0,this))},void 0,!1,void 0,this),I5.jsxDEV(hL,{id:H,onClose:_},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}var YP=s(U0(),1),DD=qP.createRoot(document.getElementById("root"));DD.render(YP.jsxDEV(CK,{},void 0,!1,void 0,this));
|