@oh-my-pi/omp-stats 15.1.2 → 15.1.4
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 +73 -73
- package/dist/types/client/components/ChartsContainer.d.ts +3 -2
- package/dist/types/client/components/ModelsTable.d.ts +3 -2
- package/dist/types/client/components/chart-shared.d.ts +0 -5
- package/dist/types/client/components/range-meta.d.ts +21 -0
- package/dist/types/db.d.ts +2 -2
- package/package.json +3 -3
- package/src/aggregator.ts +30 -7
- package/src/client/App.tsx +2 -1
- package/src/client/components/ChartsContainer.tsx +7 -5
- package/src/client/components/ModelsTable.tsx +20 -9
- package/src/client/components/chart-shared.tsx +1 -1
- package/src/client/components/range-meta.ts +72 -0
- package/src/db.ts +23 -6
package/dist/client/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
var UP=Object.create;var{getPrototypeOf:NP,defineProperty:kR,getOwnPropertyNames:KP}=Object;var BP=Object.prototype.hasOwnProperty;function MP(Q){return this[Q]}var HP,FP,w0=(Q,J,q)=>{var Y=Q!=null&&typeof Q==="object";if(Y){var U=J?HP??=new WeakMap:FP??=new WeakMap,K=U.get(Q);if(K)return K}q=Q!=null?UP(NP(Q)):{};let M=J||!Q||!Q.__esModule?kR(q,"default",{value:Q,enumerable:!0}):q;for(let H of KP(Q))if(!BP.call(M,H))kR(M,H,{get:MP.bind(Q,H),enumerable:!0});if(Y)U.set(Q,M);return M};var Z2=(Q,J)=>()=>(J||Q((J={exports:{}}).exports,J),J.exports);var bR=Z2((WP)=>{(function(){function Q(){if(a=!1,i){var l=WP.unstable_now();N0=l;var J0=!0;try{$:{m=!1,o&&(o=!1,Q0(Y0),Y0=-1),g=!0;var K0=C;try{Z:{K(l);for(A=q(L);A!==null&&!(A.expirationTime>l&&H());){var d0=A.callback;if(typeof d0==="function"){A.callback=null,C=A.priorityLevel;var k0=d0(A.expirationTime<=l);if(l=WP.unstable_now(),typeof k0==="function"){A.callback=k0,K(l),J0=!0;break Z}A===q(L)&&Y(L),K(l)}else Y(L);A=q(L)}if(A!==null)J0=!0;else{var S=q(P);S!==null&&F(M,S.startTime-l),J0=!1}}break $}finally{A=null,C=K0,g=!1}J0=void 0}}finally{J0?R0():i=!1}}}function J(l,J0){var K0=l.length;l.push(J0);$:for(;0<K0;){var d0=K0-1>>>1,k0=l[d0];if(0<U(k0,J0))l[d0]=J0,l[K0]=k0,K0=d0;else break $}}function q(l){return l.length===0?null:l[0]}function Y(l){if(l.length===0)return null;var J0=l[0],K0=l.pop();if(K0!==J0){l[0]=K0;$:for(var d0=0,k0=l.length,S=k0>>>1;d0<S;){var n=2*(d0+1)-1,B0=l[n],M0=n+1,b0=l[M0];if(0>U(B0,K0))M0<k0&&0>U(b0,B0)?(l[d0]=b0,l[M0]=K0,d0=M0):(l[d0]=B0,l[n]=K0,d0=n);else if(M0<k0&&0>U(b0,K0))l[d0]=b0,l[M0]=K0,d0=M0;else break $}}return J0}function U(l,J0){var K0=l.sortIndex-J0.sortIndex;return K0!==0?K0:l.id-J0.id}function K(l){for(var J0=q(P);J0!==null;){if(J0.callback===null)Y(P);else if(J0.startTime<=l)Y(P),J0.sortIndex=J0.expirationTime,J(L,J0);else break;J0=q(P)}}function M(l){if(o=!1,K(l),!m)if(q(L)!==null)m=!0,i||(i=!0,R0());else{var J0=q(P);J0!==null&&F(M,J0.startTime-l)}}function H(){return a?!0:WP.unstable_now()-N0<d?!1:!0}function F(l,J0){Y0=s(function(){l(WP.unstable_now())},J0)}if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart==="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error()),WP.unstable_now=void 0,typeof performance==="object"&&typeof performance.now==="function"){var w=performance;WP.unstable_now=function(){return w.now()}}else{var T=Date,_=T.now();WP.unstable_now=function(){return T.now()-_}}var L=[],P=[],O=1,A=null,C=3,g=!1,m=!1,o=!1,a=!1,s=typeof setTimeout==="function"?setTimeout:null,Q0=typeof clearTimeout==="function"?clearTimeout:null,p=typeof setImmediate<"u"?setImmediate:null,i=!1,Y0=-1,d=5,N0=-1;if(typeof p==="function")var R0=function(){p(Q)};else if(typeof MessageChannel<"u"){var _0=new MessageChannel,C0=_0.port2;_0.port1.onmessage=Q,R0=function(){C0.postMessage(null)}}else R0=function(){s(Q,0)};WP.unstable_IdlePriority=5,WP.unstable_ImmediatePriority=1,WP.unstable_LowPriority=4,WP.unstable_NormalPriority=3,WP.unstable_Profiling=null,WP.unstable_UserBlockingPriority=2,WP.unstable_cancelCallback=function(l){l.callback=null},WP.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},WP.unstable_getCurrentPriorityLevel=function(){return C},WP.unstable_next=function(l){switch(C){case 1:case 2:case 3:var J0=3;break;default:J0=C}var K0=C;C=J0;try{return l()}finally{C=K0}},WP.unstable_requestPaint=function(){a=!0},WP.unstable_runWithPriority=function(l,J0){switch(l){case 1:case 2:case 3:case 4:case 5:break;default:l=3}var K0=C;C=l;try{return J0()}finally{C=K0}},WP.unstable_scheduleCallback=function(l,J0,K0){var d0=WP.unstable_now();switch(typeof K0==="object"&&K0!==null?(K0=K0.delay,K0=typeof K0==="number"&&0<K0?d0+K0:d0):K0=d0,l){case 1:var k0=-1;break;case 2:k0=250;break;case 5:k0=1073741823;break;case 4:k0=1e4;break;default:k0=5000}return k0=K0+k0,l={id:O++,callback:J0,priorityLevel:l,startTime:K0,expirationTime:k0,sortIndex:-1},K0>d0?(l.sortIndex=K0,J(P,l),q(L)===null&&l===q(P)&&(o?(Q0(Y0),Y0=-1):o=!0,F(M,K0-d0))):(l.sortIndex=k0,J(L,l),m||g||(m=!0,i||(i=!0,R0()))),l},WP.unstable_shouldYield=H,WP.unstable_wrapCallback=function(l){var J0=C;return function(){var K0=C;C=J0;try{return l.apply(this,arguments)}finally{C=K0}}},typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop==="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()});var e1=Z2((RP,xJ)=>{(function(){function Q(E,f){Object.defineProperty(Y.prototype,E,{get:function(){console.warn("%s(...) is deprecated in plain JavaScript React classes. %s",f[0],f[1])}})}function J(E){if(E===null||typeof E!=="object")return null;return E=VQ&&E[VQ]||E["@@iterator"],typeof E==="function"?E:null}function q(E,f){E=(E=E.constructor)&&(E.displayName||E.name)||"ReactClass";var r=E+"."+f;G0[r]||(console.error("Can't call %s on a component that is not yet mounted. This is a no-op, but it might indicate a bug in your application. Instead, assign to `this.state` directly or define a `state = {};` class property with the desired state in the %s component.",f,E),G0[r]=!0)}function Y(E,f,r){this.props=E,this.context=f,this.refs=B6,this.updater=r||O$}function U(){}function K(E,f,r){this.props=E,this.context=f,this.refs=B6,this.updater=r||O$}function M(){}function H(E){return""+E}function F(E){try{H(E);var f=!1}catch(q0){f=!0}if(f){f=console;var r=f.error,e=typeof Symbol==="function"&&Symbol.toStringTag&&E[Symbol.toStringTag]||E.constructor.name||"Object";return r.call(f,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",e),H(E)}}function w(E){if(E==null)return null;if(typeof E==="function")return E.$$typeof===Q7?null:E.displayName||E.name||null;if(typeof E==="string")return E;switch(E){case k0:return"Fragment";case n:return"Profiler";case S:return"StrictMode";case j1:return"Suspense";case I0:return"SuspenseList";case P4:return"Activity"}if(typeof E==="object")switch(typeof E.tag==="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),E.$$typeof){case d0:return"Portal";case M0:return E.displayName||"Context";case B0:return(E._context.displayName||"Context")+".Consumer";case b0:var f=E.render;return E=E.displayName,E||(E=f.displayName||f.name||"",E=E!==""?"ForwardRef("+E+")":"ForwardRef"),E;case f1:return f=E.displayName||null,f!==null?f:w(E.type)||"Memo";case N5:f=E._payload,E=E._init;try{return w(E(f))}catch(r){}}return null}function T(E){if(E===k0)return"<>";if(typeof E==="object"&&E!==null&&E.$$typeof===N5)return"<...>";try{var f=w(E);return f?"<"+f+">":"<...>"}catch(r){return"<...>"}}function _(){var E=D0.A;return E===null?null:E.getOwner()}function L(){return Error("react-stack-top-frame")}function P(E){if(D$.call(E,"key")){var f=Object.getOwnPropertyDescriptor(E,"key").get;if(f&&f.isReactWarning)return!1}return E.key!==void 0}function O(E,f){function r(){EQ||(EQ=!0,console.error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",f))}r.isReactWarning=!0,Object.defineProperty(E,"key",{get:r,configurable:!0})}function A(){var E=w(this.type);return z2[E]||(z2[E]=!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.")),E=this.props.ref,E!==void 0?E:null}function C(E,f,r,e,q0,E0){var P0=r.ref;return E={$$typeof:K0,type:E,key:f,props:r,_owner:e},(P0!==void 0?P0:null)!==null?Object.defineProperty(E,"ref",{enumerable:!1,get:A}):Object.defineProperty(E,"ref",{enumerable:!1,value:null}),E._store={},Object.defineProperty(E._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(E,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(E,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:q0}),Object.defineProperty(E,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:E0}),Object.freeze&&(Object.freeze(E.props),Object.freeze(E)),E}function g(E,f){return f=C(E.type,f,E.props,E._owner,E._debugStack,E._debugTask),E._store&&(f._store.validated=E._store.validated),f}function m(E){o(E)?E._store&&(E._store.validated=1):typeof E==="object"&&E!==null&&E.$$typeof===N5&&(E._payload.status==="fulfilled"?o(E._payload.value)&&E._payload.value._store&&(E._payload.value._store.validated=1):E._store&&(E._store.validated=1))}function o(E){return typeof E==="object"&&E!==null&&E.$$typeof===K0}function a(E){var f={"=":"=0",":":"=2"};return"$"+E.replace(/[=:]/g,function(r){return f[r]})}function s(E,f){return typeof E==="object"&&E!==null&&E.key!=null?(F(E.key),a(""+E.key)):f.toString(36)}function Q0(E){switch(E.status){case"fulfilled":return E.value;case"rejected":throw E.reason;default:switch(typeof E.status==="string"?E.then(M,M):(E.status="pending",E.then(function(f){E.status==="pending"&&(E.status="fulfilled",E.value=f)},function(f){E.status==="pending"&&(E.status="rejected",E.reason=f)})),E.status){case"fulfilled":return E.value;case"rejected":throw E.reason}}throw E}function p(E,f,r,e,q0){var E0=typeof E;if(E0==="undefined"||E0==="boolean")E=null;var P0=!1;if(E===null)P0=!0;else switch(E0){case"bigint":case"string":case"number":P0=!0;break;case"object":switch(E.$$typeof){case K0:case d0:P0=!0;break;case N5:return P0=E._init,p(P0(E._payload),f,r,e,q0)}}if(P0){P0=E,q0=q0(P0);var a0=e===""?"."+s(P0,0):e;return Y1(q0)?(r="",a0!=null&&(r=a0.replace(A$,"$&/")+"/"),p(q0,f,r,"",function(K5){return K5})):q0!=null&&(o(q0)&&(q0.key!=null&&(P0&&P0.key===q0.key||F(q0.key)),r=g(q0,r+(q0.key==null||P0&&P0.key===q0.key?"":(""+q0.key).replace(A$,"$&/")+"/")+a0),e!==""&&P0!=null&&o(P0)&&P0.key==null&&P0._store&&!P0._store.validated&&(r._store.validated=2),q0=r),f.push(q0)),1}if(P0=0,a0=e===""?".":e+":",Y1(E))for(var F0=0;F0<E.length;F0++)e=E[F0],E0=a0+s(e,F0),P0+=p(e,f,r,E0,q0);else if(F0=J(E),typeof F0==="function")for(F0===E.entries&&(j$||console.warn("Using Maps as children is not supported. Use an array of keyed ReactElements instead."),j$=!0),E=F0.call(E),F0=0;!(e=E.next()).done;)e=e.value,E0=a0+s(e,F0++),P0+=p(e,f,r,E0,q0);else if(E0==="object"){if(typeof E.then==="function")return p(Q0(E),f,r,e,q0);throw f=String(E),Error("Objects are not valid as a React child (found: "+(f==="[object Object]"?"object with keys {"+Object.keys(E).join(", ")+"}":f)+"). If you meant to render a collection of children, use an array instead.")}return P0}function i(E,f,r){if(E==null)return E;var e=[],q0=0;return p(E,e,"","",function(E0){return f.call(r,E0,q0++)}),e}function Y0(E){if(E._status===-1){var f=E._ioInfo;f!=null&&(f.start=f.end=performance.now()),f=E._result;var r=f();if(r.then(function(q0){if(E._status===0||E._status===-1){E._status=1,E._result=q0;var E0=E._ioInfo;E0!=null&&(E0.end=performance.now()),r.status===void 0&&(r.status="fulfilled",r.value=q0)}},function(q0){if(E._status===0||E._status===-1){E._status=2,E._result=q0;var E0=E._ioInfo;E0!=null&&(E0.end=performance.now()),r.status===void 0&&(r.status="rejected",r.reason=q0)}}),f=E._ioInfo,f!=null){f.value=r;var e=r.displayName;typeof e==="string"&&(f.name=e)}E._status===-1&&(E._status=0,E._result=r)}if(E._status===1)return f=E._result,f===void 0&&console.error(`lazy: Expected the result of a dynamic import() call. Instead received: %s
|
|
1
|
+
var MP=Object.create;var{getPrototypeOf:FP,defineProperty:yw,getOwnPropertyNames:WP}=Object;var wP=Object.prototype.hasOwnProperty;function RP(Q){return this[Q]}var TP,zP,R0=(Q,J,q)=>{var Y=Q!=null&&typeof Q==="object";if(Y){var U=J?TP??=new WeakMap:zP??=new WeakMap,K=U.get(Q);if(K)return K}q=Q!=null?MP(FP(Q)):{};let H=J||!Q||!Q.__esModule?yw(q,"default",{value:Q,enumerable:!0}):q;for(let M of WP(Q))if(!wP.call(H,M))yw(H,M,{get:RP.bind(Q,M),enumerable:!0});if(Y)U.set(Q,H);return H};var Z2=(Q,J)=>()=>(J||Q((J={exports:{}}).exports,J),J.exports);var gw=Z2((_P)=>{(function(){function Q(){if(a=!1,i){var l=_P.unstable_now();N0=l;var J0=!0;try{$:{m=!1,o&&(o=!1,Q0(Y0),Y0=-1),g=!0;var K0=C;try{Z:{K(l);for(A=q(L);A!==null&&!(A.expirationTime>l&&M());){var d0=A.callback;if(typeof d0==="function"){A.callback=null,C=A.priorityLevel;var k0=d0(A.expirationTime<=l);if(l=_P.unstable_now(),typeof k0==="function"){A.callback=k0,K(l),J0=!0;break Z}A===q(L)&&Y(L),K(l)}else Y(L);A=q(L)}if(A!==null)J0=!0;else{var S=q(P);S!==null&&F(H,S.startTime-l),J0=!1}}break $}finally{A=null,C=K0,g=!1}J0=void 0}}finally{J0?w0():i=!1}}}function J(l,J0){var K0=l.length;l.push(J0);$:for(;0<K0;){var d0=K0-1>>>1,k0=l[d0];if(0<U(k0,J0))l[d0]=J0,l[K0]=k0,K0=d0;else break $}}function q(l){return l.length===0?null:l[0]}function Y(l){if(l.length===0)return null;var J0=l[0],K0=l.pop();if(K0!==J0){l[0]=K0;$:for(var d0=0,k0=l.length,S=k0>>>1;d0<S;){var n=2*(d0+1)-1,B0=l[n],H0=n+1,b0=l[H0];if(0>U(B0,K0))H0<k0&&0>U(b0,B0)?(l[d0]=b0,l[H0]=K0,d0=H0):(l[d0]=B0,l[n]=K0,d0=n);else if(H0<k0&&0>U(b0,K0))l[d0]=b0,l[H0]=K0,d0=H0;else break $}}return J0}function U(l,J0){var K0=l.sortIndex-J0.sortIndex;return K0!==0?K0:l.id-J0.id}function K(l){for(var J0=q(P);J0!==null;){if(J0.callback===null)Y(P);else if(J0.startTime<=l)Y(P),J0.sortIndex=J0.expirationTime,J(L,J0);else break;J0=q(P)}}function H(l){if(o=!1,K(l),!m)if(q(L)!==null)m=!0,i||(i=!0,w0());else{var J0=q(P);J0!==null&&F(H,J0.startTime-l)}}function M(){return a?!0:_P.unstable_now()-N0<d?!1:!0}function F(l,J0){Y0=s(function(){l(_P.unstable_now())},J0)}if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart==="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error()),_P.unstable_now=void 0,typeof performance==="object"&&typeof performance.now==="function"){var R=performance;_P.unstable_now=function(){return R.now()}}else{var T=Date,z=T.now();_P.unstable_now=function(){return T.now()-z}}var L=[],P=[],I=1,A=null,C=3,g=!1,m=!1,o=!1,a=!1,s=typeof setTimeout==="function"?setTimeout:null,Q0=typeof clearTimeout==="function"?clearTimeout:null,p=typeof setImmediate<"u"?setImmediate:null,i=!1,Y0=-1,d=5,N0=-1;if(typeof p==="function")var w0=function(){p(Q)};else if(typeof MessageChannel<"u"){var z0=new MessageChannel,C0=z0.port2;z0.port1.onmessage=Q,w0=function(){C0.postMessage(null)}}else w0=function(){s(Q,0)};_P.unstable_IdlePriority=5,_P.unstable_ImmediatePriority=1,_P.unstable_LowPriority=4,_P.unstable_NormalPriority=3,_P.unstable_Profiling=null,_P.unstable_UserBlockingPriority=2,_P.unstable_cancelCallback=function(l){l.callback=null},_P.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},_P.unstable_getCurrentPriorityLevel=function(){return C},_P.unstable_next=function(l){switch(C){case 1:case 2:case 3:var J0=3;break;default:J0=C}var K0=C;C=J0;try{return l()}finally{C=K0}},_P.unstable_requestPaint=function(){a=!0},_P.unstable_runWithPriority=function(l,J0){switch(l){case 1:case 2:case 3:case 4:case 5:break;default:l=3}var K0=C;C=l;try{return J0()}finally{C=K0}},_P.unstable_scheduleCallback=function(l,J0,K0){var d0=_P.unstable_now();switch(typeof K0==="object"&&K0!==null?(K0=K0.delay,K0=typeof K0==="number"&&0<K0?d0+K0:d0):K0=d0,l){case 1:var k0=-1;break;case 2:k0=250;break;case 5:k0=1073741823;break;case 4:k0=1e4;break;default:k0=5000}return k0=K0+k0,l={id:I++,callback:J0,priorityLevel:l,startTime:K0,expirationTime:k0,sortIndex:-1},K0>d0?(l.sortIndex=K0,J(P,l),q(L)===null&&l===q(P)&&(o?(Q0(Y0),Y0=-1):o=!0,F(H,K0-d0))):(l.sortIndex=k0,J(L,l),m||g||(m=!0,i||(i=!0,w0()))),l},_P.unstable_shouldYield=M,_P.unstable_wrapCallback=function(l){var J0=C;return function(){var K0=C;C=J0;try{return l.apply(this,arguments)}finally{C=K0}}},typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop==="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()});var e1=Z2((LP,xJ)=>{(function(){function Q(E,f){Object.defineProperty(Y.prototype,E,{get:function(){console.warn("%s(...) is deprecated in plain JavaScript React classes. %s",f[0],f[1])}})}function J(E){if(E===null||typeof E!=="object")return null;return E=VQ&&E[VQ]||E["@@iterator"],typeof E==="function"?E:null}function q(E,f){E=(E=E.constructor)&&(E.displayName||E.name)||"ReactClass";var r=E+"."+f;G0[r]||(console.error("Can't call %s on a component that is not yet mounted. This is a no-op, but it might indicate a bug in your application. Instead, assign to `this.state` directly or define a `state = {};` class property with the desired state in the %s component.",f,E),G0[r]=!0)}function Y(E,f,r){this.props=E,this.context=f,this.refs=B6,this.updater=r||O$}function U(){}function K(E,f,r){this.props=E,this.context=f,this.refs=B6,this.updater=r||O$}function H(){}function M(E){return""+E}function F(E){try{M(E);var f=!1}catch(q0){f=!0}if(f){f=console;var r=f.error,e=typeof Symbol==="function"&&Symbol.toStringTag&&E[Symbol.toStringTag]||E.constructor.name||"Object";return r.call(f,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",e),M(E)}}function R(E){if(E==null)return null;if(typeof E==="function")return E.$$typeof===Q7?null:E.displayName||E.name||null;if(typeof E==="string")return E;switch(E){case k0:return"Fragment";case n:return"Profiler";case S:return"StrictMode";case j1:return"Suspense";case I0:return"SuspenseList";case P4:return"Activity"}if(typeof E==="object")switch(typeof E.tag==="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),E.$$typeof){case d0:return"Portal";case H0:return E.displayName||"Context";case B0:return(E._context.displayName||"Context")+".Consumer";case b0:var f=E.render;return E=E.displayName,E||(E=f.displayName||f.name||"",E=E!==""?"ForwardRef("+E+")":"ForwardRef"),E;case f1:return f=E.displayName||null,f!==null?f:R(E.type)||"Memo";case N5:f=E._payload,E=E._init;try{return R(E(f))}catch(r){}}return null}function T(E){if(E===k0)return"<>";if(typeof E==="object"&&E!==null&&E.$$typeof===N5)return"<...>";try{var f=R(E);return f?"<"+f+">":"<...>"}catch(r){return"<...>"}}function z(){var E=D0.A;return E===null?null:E.getOwner()}function L(){return Error("react-stack-top-frame")}function P(E){if(D$.call(E,"key")){var f=Object.getOwnPropertyDescriptor(E,"key").get;if(f&&f.isReactWarning)return!1}return E.key!==void 0}function I(E,f){function r(){EQ||(EQ=!0,console.error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",f))}r.isReactWarning=!0,Object.defineProperty(E,"key",{get:r,configurable:!0})}function A(){var E=R(this.type);return _2[E]||(_2[E]=!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.")),E=this.props.ref,E!==void 0?E:null}function C(E,f,r,e,q0,E0){var P0=r.ref;return E={$$typeof:K0,type:E,key:f,props:r,_owner:e},(P0!==void 0?P0:null)!==null?Object.defineProperty(E,"ref",{enumerable:!1,get:A}):Object.defineProperty(E,"ref",{enumerable:!1,value:null}),E._store={},Object.defineProperty(E._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(E,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(E,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:q0}),Object.defineProperty(E,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:E0}),Object.freeze&&(Object.freeze(E.props),Object.freeze(E)),E}function g(E,f){return f=C(E.type,f,E.props,E._owner,E._debugStack,E._debugTask),E._store&&(f._store.validated=E._store.validated),f}function m(E){o(E)?E._store&&(E._store.validated=1):typeof E==="object"&&E!==null&&E.$$typeof===N5&&(E._payload.status==="fulfilled"?o(E._payload.value)&&E._payload.value._store&&(E._payload.value._store.validated=1):E._store&&(E._store.validated=1))}function o(E){return typeof E==="object"&&E!==null&&E.$$typeof===K0}function a(E){var f={"=":"=0",":":"=2"};return"$"+E.replace(/[=:]/g,function(r){return f[r]})}function s(E,f){return typeof E==="object"&&E!==null&&E.key!=null?(F(E.key),a(""+E.key)):f.toString(36)}function Q0(E){switch(E.status){case"fulfilled":return E.value;case"rejected":throw E.reason;default:switch(typeof E.status==="string"?E.then(H,H):(E.status="pending",E.then(function(f){E.status==="pending"&&(E.status="fulfilled",E.value=f)},function(f){E.status==="pending"&&(E.status="rejected",E.reason=f)})),E.status){case"fulfilled":return E.value;case"rejected":throw E.reason}}throw E}function p(E,f,r,e,q0){var E0=typeof E;if(E0==="undefined"||E0==="boolean")E=null;var P0=!1;if(E===null)P0=!0;else switch(E0){case"bigint":case"string":case"number":P0=!0;break;case"object":switch(E.$$typeof){case K0:case d0:P0=!0;break;case N5:return P0=E._init,p(P0(E._payload),f,r,e,q0)}}if(P0){P0=E,q0=q0(P0);var a0=e===""?"."+s(P0,0):e;return Y1(q0)?(r="",a0!=null&&(r=a0.replace(A$,"$&/")+"/"),p(q0,f,r,"",function(K5){return K5})):q0!=null&&(o(q0)&&(q0.key!=null&&(P0&&P0.key===q0.key||F(q0.key)),r=g(q0,r+(q0.key==null||P0&&P0.key===q0.key?"":(""+q0.key).replace(A$,"$&/")+"/")+a0),e!==""&&P0!=null&&o(P0)&&P0.key==null&&P0._store&&!P0._store.validated&&(r._store.validated=2),q0=r),f.push(q0)),1}if(P0=0,a0=e===""?".":e+":",Y1(E))for(var F0=0;F0<E.length;F0++)e=E[F0],E0=a0+s(e,F0),P0+=p(e,f,r,E0,q0);else if(F0=J(E),typeof F0==="function")for(F0===E.entries&&(j$||console.warn("Using Maps as children is not supported. Use an array of keyed ReactElements instead."),j$=!0),E=F0.call(E),F0=0;!(e=E.next()).done;)e=e.value,E0=a0+s(e,F0++),P0+=p(e,f,r,E0,q0);else if(E0==="object"){if(typeof E.then==="function")return p(Q0(E),f,r,e,q0);throw f=String(E),Error("Objects are not valid as a React child (found: "+(f==="[object Object]"?"object with keys {"+Object.keys(E).join(", ")+"}":f)+"). If you meant to render a collection of children, use an array instead.")}return P0}function i(E,f,r){if(E==null)return E;var e=[],q0=0;return p(E,e,"","",function(E0){return f.call(r,E0,q0++)}),e}function Y0(E){if(E._status===-1){var f=E._ioInfo;f!=null&&(f.start=f.end=performance.now()),f=E._result;var r=f();if(r.then(function(q0){if(E._status===0||E._status===-1){E._status=1,E._result=q0;var E0=E._ioInfo;E0!=null&&(E0.end=performance.now()),r.status===void 0&&(r.status="fulfilled",r.value=q0)}},function(q0){if(E._status===0||E._status===-1){E._status=2,E._result=q0;var E0=E._ioInfo;E0!=null&&(E0.end=performance.now()),r.status===void 0&&(r.status="rejected",r.reason=q0)}}),f=E._ioInfo,f!=null){f.value=r;var e=r.displayName;typeof e==="string"&&(f.name=e)}E._status===-1&&(E._status=0,E._result=r)}if(E._status===1)return f=E._result,f===void 0&&console.error(`lazy: Expected the result of a dynamic import() call. Instead received: %s
|
|
2
2
|
|
|
3
3
|
Your code should look like:
|
|
4
4
|
const MyComponent = lazy(() => import('./MyComponent'))
|
|
@@ -10,67 +10,67 @@ 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.`),E}function N0(){D0.asyncTransitions--}function R0(E){if(V2===null)try{var f=("require"+Math.random()).slice(0,7);V2=(xJ&&xJ[f]).call(xJ,"timers").setImmediate}catch(r){V2=function(e){PQ===!1&&(PQ=!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 q0=new MessageChannel;q0.port1.onmessage=e,q0.port2.postMessage(void 0)}}return V2(E)}function _0(E){return 1<E.length&&typeof AggregateError==="function"?AggregateError(E):E[0]}function C0(E,f){f!==E2-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. "),E2=f}function l(E,f,r){var e=D0.actQueue;if(e!==null)if(e.length!==0)try{J0(e),R0(function(){return l(E,f,r)});return}catch(q0){D0.thrownErrors.push(q0)}else D0.actQueue=null;0<D0.thrownErrors.length?(e=_0(D0.thrownErrors),D0.thrownErrors.length=0,r(e)):f(E)}function J0(E){if(!C2){C2=!0;var f=0;try{for(;f<E.length;f++){var r=E[f];do{D0.didUsePromise=!1;var e=r(!1);if(e!==null){if(D0.didUsePromise){E[f]=r,E.splice(0,f);return}r=e}else break}while(1)}E.length=0}catch(q0){E.splice(0,f+1),D0.thrownErrors.push(q0)}finally{C2=!1}}}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart==="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var K0=Symbol.for("react.transitional.element"),d0=Symbol.for("react.portal"),k0=Symbol.for("react.fragment"),S=Symbol.for("react.strict_mode"),n=Symbol.for("react.profiler"),B0=Symbol.for("react.consumer"),M0=Symbol.for("react.context"),b0=Symbol.for("react.forward_ref"),j1=Symbol.for("react.suspense"),I0=Symbol.for("react.suspense_list"),f1=Symbol.for("react.memo"),N5=Symbol.for("react.lazy"),P4=Symbol.for("react.activity"),VQ=Symbol.iterator,G0={},O$={isMounted:function(){return!1},enqueueForceUpdate:function(E){q(E,"forceUpdate")},enqueueReplaceState:function(E){q(E,"replaceState")},enqueueSetState:function(E){q(E,"setState")}},_2=Object.assign,B6={};Object.freeze(B6),Y.prototype.isReactComponent={},Y.prototype.setState=function(E,f){if(typeof E!=="object"&&typeof E!=="function"&&E!=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,E,f,"setState")},Y.prototype.forceUpdate=function(E){this.updater.enqueueForceUpdate(this,E,"forceUpdate")};var s1={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(H6 in s1)s1.hasOwnProperty(H6)&&Q(H6,s1[H6]);U.prototype=Y.prototype,s1=K.prototype=new U,s1.constructor=K,_2(s1,Y.prototype),s1.isPureReactComponent=!0;var Y1=Array.isArray,Q7=Symbol.for("react.client.reference"),D0={H:null,A:null,T:null,S:null,actQueue:null,asyncTransitions:0,isBatchingLegacy:!1,didScheduleLegacyUpdate:!1,didUsePromise:!1,thrownErrors:[],getCurrentStack:null,recentlyCreatedOwnerStacks:0},D$=Object.prototype.hasOwnProperty,M1=console.createTask?console.createTask:function(){return null};s1={react_stack_bottom_frame:function(E){return E()}};var EQ,m4,z2={},L2=s1.react_stack_bottom_frame.bind(s1,L)(),eq=M1(T(L)),j$=!1,A$=/\/+/g,M6=typeof reportError==="function"?reportError:function(E){if(typeof window==="object"&&typeof window.ErrorEvent==="function"){var f=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof E==="object"&&E!==null&&typeof E.message==="string"?String(E.message):String(E),error:E});if(!window.dispatchEvent(f))return}else if(typeof process==="object"&&typeof process.emit==="function"){process.emit("uncaughtException",E);return}console.error(E)},PQ=!1,V2=null,E2=0,P2=!1,C2=!1,G7=typeof queueMicrotask==="function"?function(E){queueMicrotask(function(){return queueMicrotask(E)})}:R0;s1=Object.freeze({__proto__:null,c:function(E){return d().useMemoCache(E)}});var H6={map:i,forEach:function(E,f,r){i(E,function(){f.apply(this,arguments)},r)},count:function(E){var f=0;return i(E,function(){f++}),f},toArray:function(E){return i(E,function(f){return f})||[]},only:function(E){if(!o(E))throw Error("React.Children.only expected to receive a single React element child.");return E}};RP.Activity=P4,RP.Children=H6,RP.Component=Y,RP.Fragment=k0,RP.Profiler=n,RP.PureComponent=K,RP.StrictMode=S,RP.Suspense=j1,RP.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=D0,RP.__COMPILER_RUNTIME=s1,RP.act=function(E){var f=D0.actQueue,r=E2;E2++;var e=D0.actQueue=f!==null?f:[],q0=!1;try{var E0=E()}catch(F0){D0.thrownErrors.push(F0)}if(0<D0.thrownErrors.length)throw C0(f,r),E=_0(D0.thrownErrors),D0.thrownErrors.length=0,E;if(E0!==null&&typeof E0==="object"&&typeof E0.then==="function"){var P0=E0;return G7(function(){q0||P2||(P2=!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(F0,K5){q0=!0,P0.then(function(d5){if(C0(f,r),r===0){try{J0(e),R0(function(){return l(d5,F0,K5)})}catch(J7){D0.thrownErrors.push(J7)}if(0<D0.thrownErrors.length){var F6=_0(D0.thrownErrors);D0.thrownErrors.length=0,K5(F6)}}else F0(d5)},function(d5){C0(f,r),0<D0.thrownErrors.length?(d5=_0(D0.thrownErrors),D0.thrownErrors.length=0,K5(d5)):K5(d5)})}}}var a0=E0;if(C0(f,r),r===0&&(J0(e),e.length!==0&&G7(function(){q0||P2||(P2=!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(() => ...)"))}),D0.actQueue=null),0<D0.thrownErrors.length)throw E=_0(D0.thrownErrors),D0.thrownErrors.length=0,E;return{then:function(F0,K5){q0=!0,r===0?(D0.actQueue=e,R0(function(){return l(a0,F0,K5)})):F0(a0)}}},RP.cache=function(E){return function(){return E.apply(null,arguments)}},RP.cacheSignal=function(){return null},RP.captureOwnerStack=function(){var E=D0.getCurrentStack;return E===null?null:E()},RP.cloneElement=function(E,f,r){if(E===null||E===void 0)throw Error("The argument must be a React element, but you passed "+E+".");var e=_2({},E.props),q0=E.key,E0=E._owner;if(f!=null){var P0;$:{if(D$.call(f,"ref")&&(P0=Object.getOwnPropertyDescriptor(f,"ref").get)&&P0.isReactWarning){P0=!1;break $}P0=f.ref!==void 0}P0&&(E0=_()),P(f)&&(F(f.key),q0=""+f.key);for(a0 in f)!D$.call(f,a0)||a0==="key"||a0==="__self"||a0==="__source"||a0==="ref"&&f.ref===void 0||(e[a0]=f[a0])}var a0=arguments.length-2;if(a0===1)e.children=r;else if(1<a0){P0=Array(a0);for(var F0=0;F0<a0;F0++)P0[F0]=arguments[F0+2];e.children=P0}e=C(E.type,q0,e,E0,E._debugStack,E._debugTask);for(q0=2;q0<arguments.length;q0++)m(arguments[q0]);return e},RP.createContext=function(E){return E={$$typeof:M0,_currentValue:E,_currentValue2:E,_threadCount:0,Provider:null,Consumer:null},E.Provider=E,E.Consumer={$$typeof:B0,_context:E},E._currentRenderer=null,E._currentRenderer2=null,E},RP.createElement=function(E,f,r){for(var e=2;e<arguments.length;e++)m(arguments[e]);e={};var q0=null;if(f!=null)for(F0 in m4||!("__self"in f)||"key"in f||(m4=!0,console.warn("Your app (or one of its dependencies) is using an outdated JSX transform. Update to the modern JSX transform for faster performance: https://react.dev/link/new-jsx-transform")),P(f)&&(F(f.key),q0=""+f.key),f)D$.call(f,F0)&&F0!=="key"&&F0!=="__self"&&F0!=="__source"&&(e[F0]=f[F0]);var E0=arguments.length-2;if(E0===1)e.children=r;else if(1<E0){for(var P0=Array(E0),a0=0;a0<E0;a0++)P0[a0]=arguments[a0+2];Object.freeze&&Object.freeze(P0),e.children=P0}if(E&&E.defaultProps)for(F0 in E0=E.defaultProps,E0)e[F0]===void 0&&(e[F0]=E0[F0]);q0&&O(e,typeof E==="function"?E.displayName||E.name||"Unknown":E);var F0=1e4>D0.recentlyCreatedOwnerStacks++;return C(E,q0,e,_(),F0?Error("react-stack-top-frame"):L2,F0?M1(T(E)):eq)},RP.createRef=function(){var E={current:null};return Object.seal(E),E},RP.forwardRef=function(E){E!=null&&E.$$typeof===f1?console.error("forwardRef requires a render function but received a `memo` component. Instead of forwardRef(memo(...)), use memo(forwardRef(...))."):typeof E!=="function"?console.error("forwardRef requires a render function but was given %s.",E===null?"null":typeof E):E.length!==0&&E.length!==2&&console.error("forwardRef render functions accept exactly two parameters: props and ref. %s",E.length===1?"Did you forget to use the ref parameter?":"Any additional parameter will be undefined."),E!=null&&E.defaultProps!=null&&console.error("forwardRef render functions do not support defaultProps. Did you accidentally pass a React component?");var f={$$typeof:b0,render:E},r;return Object.defineProperty(f,"displayName",{enumerable:!1,configurable:!0,get:function(){return r},set:function(e){r=e,E.name||E.displayName||(Object.defineProperty(E,"name",{value:e}),E.displayName=e)}}),f},RP.isValidElement=o,RP.lazy=function(E){E={_status:-1,_result:E};var f={$$typeof:N5,_payload:E,_init:Y0},r={name:"lazy",start:-1,end:-1,value:null,owner:null,debugStack:Error("react-stack-top-frame"),debugTask:console.createTask?console.createTask("lazy()"):null};return E._ioInfo=r,f._debugInfo=[{awaited:r}],f},RP.memo=function(E,f){E==null&&console.error("memo: The first argument must be a component. Instead received: %s",E===null?"null":typeof E),f={$$typeof:f1,type:E,compare:f===void 0?null:f};var r;return Object.defineProperty(f,"displayName",{enumerable:!1,configurable:!0,get:function(){return r},set:function(e){r=e,E.name||E.displayName||(Object.defineProperty(E,"name",{value:e}),E.displayName=e)}}),f},RP.startTransition=function(E){var f=D0.T,r={};r._updatedFibers=new Set,D0.T=r;try{var e=E(),q0=D0.S;q0!==null&&q0(r,e),typeof e==="object"&&e!==null&&typeof e.then==="function"&&(D0.asyncTransitions++,e.then(N0,N0),e.then(M,M6))}catch(E0){M6(E0)}finally{f===null&&r._updatedFibers&&(E=r._updatedFibers.size,r._updatedFibers.clear(),10<E&&console.warn("Detected a large number of updates inside startTransition. If this is due to a subscription please re-write it to use React provided hooks. Otherwise concurrent mode guarantees are off the table.")),f!==null&&r.types!==null&&(f.types!==null&&f.types!==r.types&&console.error("We expected inner Transitions to have transferred the outer types set and that you cannot add to the outer Transition while inside the inner.This is a bug in React."),f.types=r.types),D0.T=f}},RP.unstable_useCacheRefresh=function(){return d().useCacheRefresh()},RP.use=function(E){return d().use(E)},RP.useActionState=function(E,f,r){return d().useActionState(E,f,r)},RP.useCallback=function(E,f){return d().useCallback(E,f)},RP.useContext=function(E){var f=d();return E.$$typeof===B0&&console.error("Calling useContext(Context.Consumer) is not supported and will cause bugs. Did you mean to call useContext(Context) instead?"),f.useContext(E)},RP.useDebugValue=function(E,f){return d().useDebugValue(E,f)},RP.useDeferredValue=function(E,f){return d().useDeferredValue(E,f)},RP.useEffect=function(E,f){return E==null&&console.warn("React Hook useEffect requires an effect callback. Did you forget to pass a callback to the hook?"),d().useEffect(E,f)},RP.useEffectEvent=function(E){return d().useEffectEvent(E)},RP.useId=function(){return d().useId()},RP.useImperativeHandle=function(E,f,r){return d().useImperativeHandle(E,f,r)},RP.useInsertionEffect=function(E,f){return E==null&&console.warn("React Hook useInsertionEffect requires an effect callback. Did you forget to pass a callback to the hook?"),d().useInsertionEffect(E,f)},RP.useLayoutEffect=function(E,f){return E==null&&console.warn("React Hook useLayoutEffect requires an effect callback. Did you forget to pass a callback to the hook?"),d().useLayoutEffect(E,f)},RP.useMemo=function(E,f){return d().useMemo(E,f)},RP.useOptimistic=function(E,f){return d().useOptimistic(E,f)},RP.useReducer=function(E,f,r){return d().useReducer(E,f,r)},RP.useRef=function(E){return d().useRef(E)},RP.useState=function(E){return d().useState(E)},RP.useSyncExternalStore=function(E,f,r){return d().useSyncExternalStore(E,f,r)},RP.useTransition=function(){return d().useTransition()},RP.version="19.2.5",typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop==="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()});var fR=Z2((wP)=>{var kU=w0(e1());(function(){function Q(){}function J(T){return""+T}function q(T,_,L){var P=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;try{J(P);var O=!1}catch(A){O=!0}return O&&(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&&P[Symbol.toStringTag]||P.constructor.name||"Object"),J(P)),{$$typeof:F,key:P==null?null:""+P,children:T,containerInfo:_,implementation:L}}function Y(T,_){if(T==="font")return"";if(typeof _==="string")return _==="use-credentials"?_:""}function U(T){return T===null?"`null`":T===void 0?"`undefined`":T===""?"an empty string":'something with type "'+typeof T+'"'}function K(T){return T===null?"`null`":T===void 0?"`undefined`":T===""?"an empty string":typeof T==="string"?JSON.stringify(T):typeof T==="number"?"`"+T+"`":'something with type "'+typeof T+'"'}function M(){var T=w.H;return T===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.`),E}function N0(){D0.asyncTransitions--}function w0(E){if(V2===null)try{var f=("require"+Math.random()).slice(0,7);V2=(xJ&&xJ[f]).call(xJ,"timers").setImmediate}catch(r){V2=function(e){PQ===!1&&(PQ=!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 q0=new MessageChannel;q0.port1.onmessage=e,q0.port2.postMessage(void 0)}}return V2(E)}function z0(E){return 1<E.length&&typeof AggregateError==="function"?AggregateError(E):E[0]}function C0(E,f){f!==E2-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. "),E2=f}function l(E,f,r){var e=D0.actQueue;if(e!==null)if(e.length!==0)try{J0(e),w0(function(){return l(E,f,r)});return}catch(q0){D0.thrownErrors.push(q0)}else D0.actQueue=null;0<D0.thrownErrors.length?(e=z0(D0.thrownErrors),D0.thrownErrors.length=0,r(e)):f(E)}function J0(E){if(!C2){C2=!0;var f=0;try{for(;f<E.length;f++){var r=E[f];do{D0.didUsePromise=!1;var e=r(!1);if(e!==null){if(D0.didUsePromise){E[f]=r,E.splice(0,f);return}r=e}else break}while(1)}E.length=0}catch(q0){E.splice(0,f+1),D0.thrownErrors.push(q0)}finally{C2=!1}}}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart==="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var K0=Symbol.for("react.transitional.element"),d0=Symbol.for("react.portal"),k0=Symbol.for("react.fragment"),S=Symbol.for("react.strict_mode"),n=Symbol.for("react.profiler"),B0=Symbol.for("react.consumer"),H0=Symbol.for("react.context"),b0=Symbol.for("react.forward_ref"),j1=Symbol.for("react.suspense"),I0=Symbol.for("react.suspense_list"),f1=Symbol.for("react.memo"),N5=Symbol.for("react.lazy"),P4=Symbol.for("react.activity"),VQ=Symbol.iterator,G0={},O$={isMounted:function(){return!1},enqueueForceUpdate:function(E){q(E,"forceUpdate")},enqueueReplaceState:function(E){q(E,"replaceState")},enqueueSetState:function(E){q(E,"setState")}},z2=Object.assign,B6={};Object.freeze(B6),Y.prototype.isReactComponent={},Y.prototype.setState=function(E,f){if(typeof E!=="object"&&typeof E!=="function"&&E!=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,E,f,"setState")},Y.prototype.forceUpdate=function(E){this.updater.enqueueForceUpdate(this,E,"forceUpdate")};var s1={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(M6 in s1)s1.hasOwnProperty(M6)&&Q(M6,s1[M6]);U.prototype=Y.prototype,s1=K.prototype=new U,s1.constructor=K,z2(s1,Y.prototype),s1.isPureReactComponent=!0;var Y1=Array.isArray,Q7=Symbol.for("react.client.reference"),D0={H:null,A:null,T:null,S:null,actQueue:null,asyncTransitions:0,isBatchingLegacy:!1,didScheduleLegacyUpdate:!1,didUsePromise:!1,thrownErrors:[],getCurrentStack:null,recentlyCreatedOwnerStacks:0},D$=Object.prototype.hasOwnProperty,H1=console.createTask?console.createTask:function(){return null};s1={react_stack_bottom_frame:function(E){return E()}};var EQ,m4,_2={},L2=s1.react_stack_bottom_frame.bind(s1,L)(),Z3=H1(T(L)),j$=!1,A$=/\/+/g,H6=typeof reportError==="function"?reportError:function(E){if(typeof window==="object"&&typeof window.ErrorEvent==="function"){var f=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof E==="object"&&E!==null&&typeof E.message==="string"?String(E.message):String(E),error:E});if(!window.dispatchEvent(f))return}else if(typeof process==="object"&&typeof process.emit==="function"){process.emit("uncaughtException",E);return}console.error(E)},PQ=!1,V2=null,E2=0,P2=!1,C2=!1,G7=typeof queueMicrotask==="function"?function(E){queueMicrotask(function(){return queueMicrotask(E)})}:w0;s1=Object.freeze({__proto__:null,c:function(E){return d().useMemoCache(E)}});var M6={map:i,forEach:function(E,f,r){i(E,function(){f.apply(this,arguments)},r)},count:function(E){var f=0;return i(E,function(){f++}),f},toArray:function(E){return i(E,function(f){return f})||[]},only:function(E){if(!o(E))throw Error("React.Children.only expected to receive a single React element child.");return E}};LP.Activity=P4,LP.Children=M6,LP.Component=Y,LP.Fragment=k0,LP.Profiler=n,LP.PureComponent=K,LP.StrictMode=S,LP.Suspense=j1,LP.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=D0,LP.__COMPILER_RUNTIME=s1,LP.act=function(E){var f=D0.actQueue,r=E2;E2++;var e=D0.actQueue=f!==null?f:[],q0=!1;try{var E0=E()}catch(F0){D0.thrownErrors.push(F0)}if(0<D0.thrownErrors.length)throw C0(f,r),E=z0(D0.thrownErrors),D0.thrownErrors.length=0,E;if(E0!==null&&typeof E0==="object"&&typeof E0.then==="function"){var P0=E0;return G7(function(){q0||P2||(P2=!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(F0,K5){q0=!0,P0.then(function(d5){if(C0(f,r),r===0){try{J0(e),w0(function(){return l(d5,F0,K5)})}catch(J7){D0.thrownErrors.push(J7)}if(0<D0.thrownErrors.length){var F6=z0(D0.thrownErrors);D0.thrownErrors.length=0,K5(F6)}}else F0(d5)},function(d5){C0(f,r),0<D0.thrownErrors.length?(d5=z0(D0.thrownErrors),D0.thrownErrors.length=0,K5(d5)):K5(d5)})}}}var a0=E0;if(C0(f,r),r===0&&(J0(e),e.length!==0&&G7(function(){q0||P2||(P2=!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(() => ...)"))}),D0.actQueue=null),0<D0.thrownErrors.length)throw E=z0(D0.thrownErrors),D0.thrownErrors.length=0,E;return{then:function(F0,K5){q0=!0,r===0?(D0.actQueue=e,w0(function(){return l(a0,F0,K5)})):F0(a0)}}},LP.cache=function(E){return function(){return E.apply(null,arguments)}},LP.cacheSignal=function(){return null},LP.captureOwnerStack=function(){var E=D0.getCurrentStack;return E===null?null:E()},LP.cloneElement=function(E,f,r){if(E===null||E===void 0)throw Error("The argument must be a React element, but you passed "+E+".");var e=z2({},E.props),q0=E.key,E0=E._owner;if(f!=null){var P0;$:{if(D$.call(f,"ref")&&(P0=Object.getOwnPropertyDescriptor(f,"ref").get)&&P0.isReactWarning){P0=!1;break $}P0=f.ref!==void 0}P0&&(E0=z()),P(f)&&(F(f.key),q0=""+f.key);for(a0 in f)!D$.call(f,a0)||a0==="key"||a0==="__self"||a0==="__source"||a0==="ref"&&f.ref===void 0||(e[a0]=f[a0])}var a0=arguments.length-2;if(a0===1)e.children=r;else if(1<a0){P0=Array(a0);for(var F0=0;F0<a0;F0++)P0[F0]=arguments[F0+2];e.children=P0}e=C(E.type,q0,e,E0,E._debugStack,E._debugTask);for(q0=2;q0<arguments.length;q0++)m(arguments[q0]);return e},LP.createContext=function(E){return E={$$typeof:H0,_currentValue:E,_currentValue2:E,_threadCount:0,Provider:null,Consumer:null},E.Provider=E,E.Consumer={$$typeof:B0,_context:E},E._currentRenderer=null,E._currentRenderer2=null,E},LP.createElement=function(E,f,r){for(var e=2;e<arguments.length;e++)m(arguments[e]);e={};var q0=null;if(f!=null)for(F0 in m4||!("__self"in f)||"key"in f||(m4=!0,console.warn("Your app (or one of its dependencies) is using an outdated JSX transform. Update to the modern JSX transform for faster performance: https://react.dev/link/new-jsx-transform")),P(f)&&(F(f.key),q0=""+f.key),f)D$.call(f,F0)&&F0!=="key"&&F0!=="__self"&&F0!=="__source"&&(e[F0]=f[F0]);var E0=arguments.length-2;if(E0===1)e.children=r;else if(1<E0){for(var P0=Array(E0),a0=0;a0<E0;a0++)P0[a0]=arguments[a0+2];Object.freeze&&Object.freeze(P0),e.children=P0}if(E&&E.defaultProps)for(F0 in E0=E.defaultProps,E0)e[F0]===void 0&&(e[F0]=E0[F0]);q0&&I(e,typeof E==="function"?E.displayName||E.name||"Unknown":E);var F0=1e4>D0.recentlyCreatedOwnerStacks++;return C(E,q0,e,z(),F0?Error("react-stack-top-frame"):L2,F0?H1(T(E)):Z3)},LP.createRef=function(){var E={current:null};return Object.seal(E),E},LP.forwardRef=function(E){E!=null&&E.$$typeof===f1?console.error("forwardRef requires a render function but received a `memo` component. Instead of forwardRef(memo(...)), use memo(forwardRef(...))."):typeof E!=="function"?console.error("forwardRef requires a render function but was given %s.",E===null?"null":typeof E):E.length!==0&&E.length!==2&&console.error("forwardRef render functions accept exactly two parameters: props and ref. %s",E.length===1?"Did you forget to use the ref parameter?":"Any additional parameter will be undefined."),E!=null&&E.defaultProps!=null&&console.error("forwardRef render functions do not support defaultProps. Did you accidentally pass a React component?");var f={$$typeof:b0,render:E},r;return Object.defineProperty(f,"displayName",{enumerable:!1,configurable:!0,get:function(){return r},set:function(e){r=e,E.name||E.displayName||(Object.defineProperty(E,"name",{value:e}),E.displayName=e)}}),f},LP.isValidElement=o,LP.lazy=function(E){E={_status:-1,_result:E};var f={$$typeof:N5,_payload:E,_init:Y0},r={name:"lazy",start:-1,end:-1,value:null,owner:null,debugStack:Error("react-stack-top-frame"),debugTask:console.createTask?console.createTask("lazy()"):null};return E._ioInfo=r,f._debugInfo=[{awaited:r}],f},LP.memo=function(E,f){E==null&&console.error("memo: The first argument must be a component. Instead received: %s",E===null?"null":typeof E),f={$$typeof:f1,type:E,compare:f===void 0?null:f};var r;return Object.defineProperty(f,"displayName",{enumerable:!1,configurable:!0,get:function(){return r},set:function(e){r=e,E.name||E.displayName||(Object.defineProperty(E,"name",{value:e}),E.displayName=e)}}),f},LP.startTransition=function(E){var f=D0.T,r={};r._updatedFibers=new Set,D0.T=r;try{var e=E(),q0=D0.S;q0!==null&&q0(r,e),typeof e==="object"&&e!==null&&typeof e.then==="function"&&(D0.asyncTransitions++,e.then(N0,N0),e.then(H,H6))}catch(E0){H6(E0)}finally{f===null&&r._updatedFibers&&(E=r._updatedFibers.size,r._updatedFibers.clear(),10<E&&console.warn("Detected a large number of updates inside startTransition. If this is due to a subscription please re-write it to use React provided hooks. Otherwise concurrent mode guarantees are off the table.")),f!==null&&r.types!==null&&(f.types!==null&&f.types!==r.types&&console.error("We expected inner Transitions to have transferred the outer types set and that you cannot add to the outer Transition while inside the inner.This is a bug in React."),f.types=r.types),D0.T=f}},LP.unstable_useCacheRefresh=function(){return d().useCacheRefresh()},LP.use=function(E){return d().use(E)},LP.useActionState=function(E,f,r){return d().useActionState(E,f,r)},LP.useCallback=function(E,f){return d().useCallback(E,f)},LP.useContext=function(E){var f=d();return E.$$typeof===B0&&console.error("Calling useContext(Context.Consumer) is not supported and will cause bugs. Did you mean to call useContext(Context) instead?"),f.useContext(E)},LP.useDebugValue=function(E,f){return d().useDebugValue(E,f)},LP.useDeferredValue=function(E,f){return d().useDeferredValue(E,f)},LP.useEffect=function(E,f){return E==null&&console.warn("React Hook useEffect requires an effect callback. Did you forget to pass a callback to the hook?"),d().useEffect(E,f)},LP.useEffectEvent=function(E){return d().useEffectEvent(E)},LP.useId=function(){return d().useId()},LP.useImperativeHandle=function(E,f,r){return d().useImperativeHandle(E,f,r)},LP.useInsertionEffect=function(E,f){return E==null&&console.warn("React Hook useInsertionEffect requires an effect callback. Did you forget to pass a callback to the hook?"),d().useInsertionEffect(E,f)},LP.useLayoutEffect=function(E,f){return E==null&&console.warn("React Hook useLayoutEffect requires an effect callback. Did you forget to pass a callback to the hook?"),d().useLayoutEffect(E,f)},LP.useMemo=function(E,f){return d().useMemo(E,f)},LP.useOptimistic=function(E,f){return d().useOptimistic(E,f)},LP.useReducer=function(E,f,r){return d().useReducer(E,f,r)},LP.useRef=function(E){return d().useRef(E)},LP.useState=function(E){return d().useState(E)},LP.useSyncExternalStore=function(E,f,r){return d().useSyncExternalStore(E,f,r)},LP.useTransition=function(){return d().useTransition()},LP.version="19.2.5",typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop==="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()});var hw=Z2((VP)=>{var fU=R0(e1());(function(){function Q(){}function J(T){return""+T}function q(T,z,L){var P=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;try{J(P);var I=!1}catch(A){I=!0}return I&&(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&&P[Symbol.toStringTag]||P.constructor.name||"Object"),J(P)),{$$typeof:F,key:P==null?null:""+P,children:T,containerInfo:z,implementation:L}}function Y(T,z){if(T==="font")return"";if(typeof z==="string")return z==="use-credentials"?z:""}function U(T){return T===null?"`null`":T===void 0?"`undefined`":T===""?"an empty string":'something with type "'+typeof T+'"'}function K(T){return T===null?"`null`":T===void 0?"`undefined`":T===""?"an empty string":typeof T==="string"?JSON.stringify(T):typeof T==="number"?"`"+T+"`":'something with type "'+typeof T+'"'}function H(){var T=R.H;return T===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.`),T}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart==="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var H={d:{f:Q,r:function(){throw Error("Invalid form element. requestFormReset must be passed a form that was rendered by React.")},D:Q,C:Q,L:Q,m:Q,X:Q,S:Q,M:Q},p:0,findDOMNode:null},F=Symbol.for("react.portal"),w=kU.__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"),wP.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=H,wP.createPortal=function(T,_){var L=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(T,_,null,L)},wP.flushSync=function(T){var _=w.T,L=H.p;try{if(w.T=null,H.p=2,T)return T()}finally{w.T=_,H.p=L,H.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.")}},wP.preconnect=function(T,_){typeof T==="string"&&T?_!=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.",U(_.crossOrigin)):console.error("ReactDOM.preconnect(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.",U(T)),typeof T==="string"&&(_?(_=_.crossOrigin,_=typeof _==="string"?_==="use-credentials"?_:"":void 0):_=null,H.d.C(T,_))},wP.prefetchDNS=function(T){if(typeof T!=="string"||!T)console.error("ReactDOM.prefetchDNS(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.",U(T));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 T==="string"&&H.d.D(T)},wP.preinit=function(T,_){if(typeof T==="string"&&T?_==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.",U(T)),typeof T==="string"&&_&&typeof _.as==="string"){var L=_.as,P=Y(L,_.crossOrigin),O=typeof _.integrity==="string"?_.integrity:void 0,A=typeof _.fetchPriority==="string"?_.fetchPriority:void 0;L==="style"?H.d.S(T,typeof _.precedence==="string"?_.precedence:void 0,{crossOrigin:P,integrity:O,fetchPriority:A}):L==="script"&&H.d.X(T,{crossOrigin:P,integrity:O,fetchPriority:A,nonce:typeof _.nonce==="string"?_.nonce:void 0})}},wP.preinitModule=function(T,_){var L="";if(typeof T==="string"&&T||(L+=" The `href` argument encountered was "+U(T)+"."),_!==void 0&&typeof _!=="object"?L+=" The `options` argument encountered was "+U(_)+".":_&&("as"in _)&&_.as!=="script"&&(L+=" The `as` option encountered was "+K(_.as)+"."),L)console.error("ReactDOM.preinitModule(): Expected up to two arguments, a non-empty `href` string and, optionally, an `options` object with a valid `as` property.%s",L);else switch(L=_&&typeof _.as==="string"?_.as:"script",L){case"script":break;default:L=K(L),console.error('ReactDOM.preinitModule(): Currently the only supported "as" type for this function is "script" but received "%s" instead. This warning was generated for `href` "%s". In the future other module types will be supported, aligning with the import-attributes proposal. Learn more here: (https://github.com/tc39/proposal-import-attributes)',L,T)}if(typeof T==="string")if(typeof _==="object"&&_!==null){if(_.as==null||_.as==="script")L=Y(_.as,_.crossOrigin),H.d.M(T,{crossOrigin:L,integrity:typeof _.integrity==="string"?_.integrity:void 0,nonce:typeof _.nonce==="string"?_.nonce:void 0})}else _==null&&H.d.M(T)},wP.preload=function(T,_){var L="";if(typeof T==="string"&&T||(L+=" The `href` argument encountered was "+U(T)+"."),_==null||typeof _!=="object"?L+=" The `options` argument encountered was "+U(_)+".":typeof _.as==="string"&&_.as||(L+=" The `as` option encountered was "+U(_.as)+"."),L&&console.error('ReactDOM.preload(): Expected two arguments, a non-empty `href` string and an `options` object with an `as` property valid for a `<link rel="preload" as="..." />` tag.%s',L),typeof T==="string"&&typeof _==="object"&&_!==null&&typeof _.as==="string"){L=_.as;var P=Y(L,_.crossOrigin);H.d.L(T,L,{crossOrigin:P,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})}},wP.preloadModule=function(T,_){var L="";typeof T==="string"&&T||(L+=" The `href` argument encountered was "+U(T)+"."),_!==void 0&&typeof _!=="object"?L+=" The `options` argument encountered was "+U(_)+".":_&&("as"in _)&&typeof _.as!=="string"&&(L+=" The `as` option encountered was "+U(_.as)+"."),L&&console.error('ReactDOM.preloadModule(): Expected two arguments, a non-empty `href` string and, optionally, an `options` object with an `as` property valid for a `<link rel="modulepreload" as="..." />` tag.%s',L),typeof T==="string"&&(_?(L=Y(_.as,_.crossOrigin),H.d.m(T,{as:typeof _.as==="string"&&_.as!=="script"?_.as:void 0,crossOrigin:L,integrity:typeof _.integrity==="string"?_.integrity:void 0})):H.d.m(T))},wP.requestFormReset=function(T){H.d.r(T)},wP.unstable_batchedUpdates=function(T,_){return T(_)},wP.useFormState=function(T,_,L){return M().useFormState(T,_,L)},wP.useFormStatus=function(){return M().useHostTransitionStatus()},wP.version="19.2.5",typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop==="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()});var gR=Z2((vS,yR)=>{var TP=w0(fR());yR.exports=TP});var hR=Z2((_P)=>{var i0=w0(bR()),v9=w0(e1()),bU=w0(gR());(function(){function Q($,Z){for($=$.memoizedState;$!==null&&0<Z;)$=$.next,Z--;return $}function J($,Z,G,X){if(G>=Z.length)return X;var N=Z[G],B=c1($)?$.slice():y0({},$);return B[N]=J($[N],Z,G+1,X),B}function q($,Z,G){if(Z.length!==G.length)console.warn("copyWithRename() expects paths of the same length");else{for(var X=0;X<G.length-1;X++)if(Z[X]!==G[X]){console.warn("copyWithRename() expects paths to be the same except for the deepest key");return}return Y($,Z,G,0)}}function Y($,Z,G,X){var N=Z[X],B=c1($)?$.slice():y0({},$);return X+1===Z.length?(B[G[X]]=B[N],c1(B)?B.splice(N,1):delete B[N]):B[N]=Y($[N],Z,G,X+1),B}function U($,Z,G){var X=Z[G],N=c1($)?$.slice():y0({},$);if(G+1===Z.length)return c1(N)?N.splice(X,1):delete N[X],N;return N[X]=U($[X],Z,G+1),N}function K(){return!1}function M(){return null}function H(){console.error("Do not call Hooks inside useEffect(...), useMemo(...), or other built-in Hooks. You can only call Hooks at the top level of your React function. For more information, see https://react.dev/link/rules-of-hooks")}function F(){console.error("Context can only be read while React is rendering. In classes, you can read it in the render method or getDerivedStateFromProps. In function components, you can read it directly in the function body, but not inside Hooks like useReducer() or useMemo().")}function w(){}function T(){}function _($){var Z=[];return $.forEach(function(G){Z.push(G)}),Z.sort().join(", ")}function L($,Z,G,X){return new iz($,Z,G,X)}function P($,Z){$.context===b6&&(eX($.current,2,Z,$,null,null),p$())}function O($,Z){if(B4!==null){var G=Z.staleFamilies;Z=Z.updatedFamilies,A7(),xK($.current,Z,G),p$()}}function A($){B4=$}function C($){return!(!$||$.nodeType!==1&&$.nodeType!==9&&$.nodeType!==11)}function g($){var Z=$,G=$;if($.alternate)for(;Z.return;)Z=Z.return;else{$=Z;do Z=$,(Z.flags&4098)!==0&&(G=Z.return),$=Z.return;while($)}return Z.tag===3?G:null}function m($){if($.tag===13){var Z=$.memoizedState;if(Z===null&&($=$.alternate,$!==null&&(Z=$.memoizedState)),Z!==null)return Z.dehydrated}return null}function o($){if($.tag===31){var Z=$.memoizedState;if(Z===null&&($=$.alternate,$!==null&&(Z=$.memoizedState)),Z!==null)return Z.dehydrated}return null}function a($){if(g($)!==$)throw Error("Unable to find node on an unmounted component.")}function s($){var Z=$.alternate;if(!Z){if(Z=g($),Z===null)throw Error("Unable to find node on an unmounted component.");return Z!==$?null:$}for(var G=$,X=Z;;){var N=G.return;if(N===null)break;var B=N.alternate;if(B===null){if(X=N.return,X!==null){G=X;continue}break}if(N.child===B.child){for(B=N.child;B;){if(B===G)return a(N),$;if(B===X)return a(N),Z;B=B.sibling}throw Error("Unable to find node on an unmounted component.")}if(G.return!==X.return)G=N,X=B;else{for(var W=!1,R=N.child;R;){if(R===G){W=!0,G=N,X=B;break}if(R===X){W=!0,X=N,G=B;break}R=R.sibling}if(!W){for(R=B.child;R;){if(R===G){W=!0,G=B,X=N;break}if(R===X){W=!0,X=B,G=N;break}R=R.sibling}if(!W)throw Error("Child was not found in either parent set. This indicates a bug in React related to the return pointer. Please file an issue.")}}if(G.alternate!==X)throw Error("Return fibers should always be each others' alternates. This error is likely caused by a bug in React. Please file an issue.")}if(G.tag!==3)throw Error("Unable to find node on an unmounted component.");return G.stateNode.current===G?$:Z}function 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 p($){if($===null||typeof $!=="object")return null;return $=rH&&$[rH]||$["@@iterator"],typeof $==="function"?$:null}function i($){if($==null)return null;if(typeof $==="function")return $.$$typeof===TV?null:$.displayName||$.name||null;if(typeof $==="string")return $;switch($){case a$:return"Fragment";case qY:return"Profiler";case kG:return"StrictMode";case YY:return"Suspense";case UY:return"SuspenseList";case NY: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 o$:return"Portal";case q8:return $.displayName||"Context";case XY:return($._context.displayName||"Context")+".Consumer";case u7:var Z=$.render;return $=$.displayName,$||($=Z.displayName||Z.name||"",$=$!==""?"ForwardRef("+$+")":"ForwardRef"),$;case bG:return Z=$.displayName||null,Z!==null?Z:i($.type)||"Memo";case i5:Z=$._payload,$=$._init;try{return i($(Z))}catch(G){}}return null}function Y0($){return typeof $.tag==="number"?d($):typeof $.name==="string"?$.name:null}function d($){var Z=$.type;switch($.tag){case 31:return"Activity";case 24:return"Cache";case 9:return(Z._context.displayName||"Context")+".Consumer";case 10:return Z.displayName||"Context";case 18:return"DehydratedFragment";case 11:return $=Z.render,$=$.displayName||$.name||"",Z.displayName||($!==""?"ForwardRef("+$+")":"ForwardRef");case 7:return"Fragment";case 26:case 27:case 5:return Z;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return i(Z);case 8:return Z===kG?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 14:case 15:if(typeof Z==="function")return Z.displayName||Z.name||null;if(typeof Z==="string")return Z;break;case 29:if(Z=$._debugInfo,Z!=null){for(var G=Z.length-1;0<=G;G--)if(typeof Z[G].name==="string")return Z[G].name}if($.return!==null)return d($.return)}return null}function N0($){return{current:$}}function R0($,Z){0>b8?console.error("Unexpected pop."):(Z!==BY[b8]&&console.error("Unexpected Fiber popped."),$.current=KY[b8],KY[b8]=null,BY[b8]=null,b8--)}function _0($,Z,G){b8++,KY[b8]=$.current,BY[b8]=G,$.current=Z}function C0($){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){_0(D6,Z,$),_0(m7,$,$),_0(O6,null,$);var G=Z.nodeType;switch(G){case 9:case 11:G=G===9?"#document":"#fragment",Z=(Z=Z.documentElement)?(Z=Z.namespaceURI)?RH(Z):n8:n8;break;default:if(G=Z.tagName,Z=Z.namespaceURI)Z=RH(Z),Z=wH(Z,G);else switch(G){case"svg":Z=A9;break;case"math":Z=vJ;break;default:Z=n8}}G=G.toLowerCase(),G=KK(null,G),G={context:Z,ancestorInfo:G},R0(O6,$),_0(O6,G,$)}function J0($){R0(O6,$),R0(m7,$),R0(D6,$)}function K0(){return C0(O6.current)}function d0($){$.memoizedState!==null&&_0(fG,$,$);var Z=C0(O6.current),G=$.type,X=wH(Z.context,G);G=KK(Z.ancestorInfo,G),X={context:X,ancestorInfo:G},Z!==X&&(_0(m7,$,$),_0(O6,X,$))}function k0($){m7.current===$&&(R0(O6,$),R0(m7,$)),fG.current===$&&(R0(fG,$),vZ._currentValue=N$)}function S(){}function n(){if(d7===0){sH=console.log,nH=console.info,oH=console.warn,aH=console.error,iH=console.group,tH=console.groupCollapsed,eH=console.groupEnd;var $={configurable:!0,enumerable:!0,value:S,writable:!0};Object.defineProperties(console,{info:$,log:$,warn:$,error:$,group:$,groupCollapsed:$,groupEnd:$})}d7++}function B0(){if(d7--,d7===0){var $={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:y0({},$,{value:sH}),info:y0({},$,{value:nH}),warn:y0({},$,{value:oH}),error:y0({},$,{value:aH}),group:y0({},$,{value:iH}),groupCollapsed:y0({},$,{value:tH}),groupEnd:y0({},$,{value:eH})})}0>d7&&console.error("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}function M0($){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.`),T}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart==="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var M={d:{f:Q,r:function(){throw Error("Invalid form element. requestFormReset must be passed a form that was rendered by React.")},D:Q,C:Q,L:Q,m:Q,X:Q,S:Q,M:Q},p:0,findDOMNode:null},F=Symbol.for("react.portal"),R=fU.__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"),VP.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=M,VP.createPortal=function(T,z){var L=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!z||z.nodeType!==1&&z.nodeType!==9&&z.nodeType!==11)throw Error("Target container is not a DOM element.");return q(T,z,null,L)},VP.flushSync=function(T){var z=R.T,L=M.p;try{if(R.T=null,M.p=2,T)return T()}finally{R.T=z,M.p=L,M.d.f()&&console.error("flushSync was called from inside a lifecycle method. React cannot flush when React is already rendering. Consider moving this call to a scheduler task or micro task.")}},VP.preconnect=function(T,z){typeof T==="string"&&T?z!=null&&typeof z!=="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(z)):z!=null&&typeof z.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.",U(z.crossOrigin)):console.error("ReactDOM.preconnect(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.",U(T)),typeof T==="string"&&(z?(z=z.crossOrigin,z=typeof z==="string"?z==="use-credentials"?z:"":void 0):z=null,M.d.C(T,z))},VP.prefetchDNS=function(T){if(typeof T!=="string"||!T)console.error("ReactDOM.prefetchDNS(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.",U(T));else if(1<arguments.length){var z=arguments[1];typeof z==="object"&&z.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(z)):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(z))}typeof T==="string"&&M.d.D(T)},VP.preinit=function(T,z){if(typeof T==="string"&&T?z==null||typeof z!=="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(z)):z.as!=="style"&&z.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(z.as)):console.error("ReactDOM.preinit(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.",U(T)),typeof T==="string"&&z&&typeof z.as==="string"){var L=z.as,P=Y(L,z.crossOrigin),I=typeof z.integrity==="string"?z.integrity:void 0,A=typeof z.fetchPriority==="string"?z.fetchPriority:void 0;L==="style"?M.d.S(T,typeof z.precedence==="string"?z.precedence:void 0,{crossOrigin:P,integrity:I,fetchPriority:A}):L==="script"&&M.d.X(T,{crossOrigin:P,integrity:I,fetchPriority:A,nonce:typeof z.nonce==="string"?z.nonce:void 0})}},VP.preinitModule=function(T,z){var L="";if(typeof T==="string"&&T||(L+=" The `href` argument encountered was "+U(T)+"."),z!==void 0&&typeof z!=="object"?L+=" The `options` argument encountered was "+U(z)+".":z&&("as"in z)&&z.as!=="script"&&(L+=" The `as` option encountered was "+K(z.as)+"."),L)console.error("ReactDOM.preinitModule(): Expected up to two arguments, a non-empty `href` string and, optionally, an `options` object with a valid `as` property.%s",L);else switch(L=z&&typeof z.as==="string"?z.as:"script",L){case"script":break;default:L=K(L),console.error('ReactDOM.preinitModule(): Currently the only supported "as" type for this function is "script" but received "%s" instead. This warning was generated for `href` "%s". In the future other module types will be supported, aligning with the import-attributes proposal. Learn more here: (https://github.com/tc39/proposal-import-attributes)',L,T)}if(typeof T==="string")if(typeof z==="object"&&z!==null){if(z.as==null||z.as==="script")L=Y(z.as,z.crossOrigin),M.d.M(T,{crossOrigin:L,integrity:typeof z.integrity==="string"?z.integrity:void 0,nonce:typeof z.nonce==="string"?z.nonce:void 0})}else z==null&&M.d.M(T)},VP.preload=function(T,z){var L="";if(typeof T==="string"&&T||(L+=" The `href` argument encountered was "+U(T)+"."),z==null||typeof z!=="object"?L+=" The `options` argument encountered was "+U(z)+".":typeof z.as==="string"&&z.as||(L+=" The `as` option encountered was "+U(z.as)+"."),L&&console.error('ReactDOM.preload(): Expected two arguments, a non-empty `href` string and an `options` object with an `as` property valid for a `<link rel="preload" as="..." />` tag.%s',L),typeof T==="string"&&typeof z==="object"&&z!==null&&typeof z.as==="string"){L=z.as;var P=Y(L,z.crossOrigin);M.d.L(T,L,{crossOrigin:P,integrity:typeof z.integrity==="string"?z.integrity:void 0,nonce:typeof z.nonce==="string"?z.nonce:void 0,type:typeof z.type==="string"?z.type:void 0,fetchPriority:typeof z.fetchPriority==="string"?z.fetchPriority:void 0,referrerPolicy:typeof z.referrerPolicy==="string"?z.referrerPolicy:void 0,imageSrcSet:typeof z.imageSrcSet==="string"?z.imageSrcSet:void 0,imageSizes:typeof z.imageSizes==="string"?z.imageSizes:void 0,media:typeof z.media==="string"?z.media:void 0})}},VP.preloadModule=function(T,z){var L="";typeof T==="string"&&T||(L+=" The `href` argument encountered was "+U(T)+"."),z!==void 0&&typeof z!=="object"?L+=" The `options` argument encountered was "+U(z)+".":z&&("as"in z)&&typeof z.as!=="string"&&(L+=" The `as` option encountered was "+U(z.as)+"."),L&&console.error('ReactDOM.preloadModule(): Expected two arguments, a non-empty `href` string and, optionally, an `options` object with an `as` property valid for a `<link rel="modulepreload" as="..." />` tag.%s',L),typeof T==="string"&&(z?(L=Y(z.as,z.crossOrigin),M.d.m(T,{as:typeof z.as==="string"&&z.as!=="script"?z.as:void 0,crossOrigin:L,integrity:typeof z.integrity==="string"?z.integrity:void 0})):M.d.m(T))},VP.requestFormReset=function(T){M.d.r(T)},VP.unstable_batchedUpdates=function(T,z){return T(z)},VP.useFormState=function(T,z,L){return H().useFormState(T,z,L)},VP.useFormStatus=function(){return H().useHostTransitionStatus()},VP.version="19.2.5",typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop==="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()});var uw=Z2((gS,xw)=>{var EP=R0(hw());xw.exports=EP});var mw=Z2((PP)=>{var i0=R0(gw()),v9=R0(e1()),yU=R0(uw());(function(){function Q($,Z){for($=$.memoizedState;$!==null&&0<Z;)$=$.next,Z--;return $}function J($,Z,G,X){if(G>=Z.length)return X;var N=Z[G],B=c1($)?$.slice():y0({},$);return B[N]=J($[N],Z,G+1,X),B}function q($,Z,G){if(Z.length!==G.length)console.warn("copyWithRename() expects paths of the same length");else{for(var X=0;X<G.length-1;X++)if(Z[X]!==G[X]){console.warn("copyWithRename() expects paths to be the same except for the deepest key");return}return Y($,Z,G,0)}}function Y($,Z,G,X){var N=Z[X],B=c1($)?$.slice():y0({},$);return X+1===Z.length?(B[G[X]]=B[N],c1(B)?B.splice(N,1):delete B[N]):B[N]=Y($[N],Z,G,X+1),B}function U($,Z,G){var X=Z[G],N=c1($)?$.slice():y0({},$);if(G+1===Z.length)return c1(N)?N.splice(X,1):delete N[X],N;return N[X]=U($[X],Z,G+1),N}function K(){return!1}function H(){return null}function M(){console.error("Do not call Hooks inside useEffect(...), useMemo(...), or other built-in Hooks. You can only call Hooks at the top level of your React function. For more information, see https://react.dev/link/rules-of-hooks")}function F(){console.error("Context can only be read while React is rendering. In classes, you can read it in the render method or getDerivedStateFromProps. In function components, you can read it directly in the function body, but not inside Hooks like useReducer() or useMemo().")}function R(){}function T(){}function z($){var Z=[];return $.forEach(function(G){Z.push(G)}),Z.sort().join(", ")}function L($,Z,G,X){return new QL($,Z,G,X)}function P($,Z){$.context===b6&&(ZY($.current,2,Z,$,null,null),p$())}function I($,Z){if(B4!==null){var G=Z.staleFamilies;Z=Z.updatedFamilies,A7(),dK($.current,Z,G),p$()}}function A($){B4=$}function C($){return!(!$||$.nodeType!==1&&$.nodeType!==9&&$.nodeType!==11)}function g($){var Z=$,G=$;if($.alternate)for(;Z.return;)Z=Z.return;else{$=Z;do Z=$,(Z.flags&4098)!==0&&(G=Z.return),$=Z.return;while($)}return Z.tag===3?G:null}function m($){if($.tag===13){var Z=$.memoizedState;if(Z===null&&($=$.alternate,$!==null&&(Z=$.memoizedState)),Z!==null)return Z.dehydrated}return null}function o($){if($.tag===31){var Z=$.memoizedState;if(Z===null&&($=$.alternate,$!==null&&(Z=$.memoizedState)),Z!==null)return Z.dehydrated}return null}function a($){if(g($)!==$)throw Error("Unable to find node on an unmounted component.")}function s($){var Z=$.alternate;if(!Z){if(Z=g($),Z===null)throw Error("Unable to find node on an unmounted component.");return Z!==$?null:$}for(var G=$,X=Z;;){var N=G.return;if(N===null)break;var B=N.alternate;if(B===null){if(X=N.return,X!==null){G=X;continue}break}if(N.child===B.child){for(B=N.child;B;){if(B===G)return a(N),$;if(B===X)return a(N),Z;B=B.sibling}throw Error("Unable to find node on an unmounted component.")}if(G.return!==X.return)G=N,X=B;else{for(var W=!1,w=N.child;w;){if(w===G){W=!0,G=N,X=B;break}if(w===X){W=!0,X=N,G=B;break}w=w.sibling}if(!W){for(w=B.child;w;){if(w===G){W=!0,G=B,X=N;break}if(w===X){W=!0,X=B,G=N;break}w=w.sibling}if(!W)throw Error("Child was not found in either parent set. This indicates a bug in React related to the return pointer. Please file an issue.")}}if(G.alternate!==X)throw Error("Return fibers should always be each others' alternates. This error is likely caused by a bug in React. Please file an issue.")}if(G.tag!==3)throw Error("Unable to find node on an unmounted component.");return G.stateNode.current===G?$:Z}function 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 p($){if($===null||typeof $!=="object")return null;return $=oM&&$[oM]||$["@@iterator"],typeof $==="function"?$:null}function i($){if($==null)return null;if(typeof $==="function")return $.$$typeof===EV?null:$.displayName||$.name||null;if(typeof $==="string")return $;switch($){case a$:return"Fragment";case YY:return"Profiler";case kG:return"StrictMode";case NY:return"Suspense";case KY:return"SuspenseList";case BY:return"Activity"}if(typeof $==="object")switch(typeof $.tag==="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),$.$$typeof){case o$:return"Portal";case q8:return $.displayName||"Context";case UY:return($._context.displayName||"Context")+".Consumer";case u7:var Z=$.render;return $=$.displayName,$||($=Z.displayName||Z.name||"",$=$!==""?"ForwardRef("+$+")":"ForwardRef"),$;case bG:return Z=$.displayName||null,Z!==null?Z:i($.type)||"Memo";case i5:Z=$._payload,$=$._init;try{return i($(Z))}catch(G){}}return null}function Y0($){return typeof $.tag==="number"?d($):typeof $.name==="string"?$.name:null}function d($){var Z=$.type;switch($.tag){case 31:return"Activity";case 24:return"Cache";case 9:return(Z._context.displayName||"Context")+".Consumer";case 10:return Z.displayName||"Context";case 18:return"DehydratedFragment";case 11:return $=Z.render,$=$.displayName||$.name||"",Z.displayName||($!==""?"ForwardRef("+$+")":"ForwardRef");case 7:return"Fragment";case 26:case 27:case 5:return Z;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return i(Z);case 8:return Z===kG?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 14:case 15:if(typeof Z==="function")return Z.displayName||Z.name||null;if(typeof Z==="string")return Z;break;case 29:if(Z=$._debugInfo,Z!=null){for(var G=Z.length-1;0<=G;G--)if(typeof Z[G].name==="string")return Z[G].name}if($.return!==null)return d($.return)}return null}function N0($){return{current:$}}function w0($,Z){0>b8?console.error("Unexpected pop."):(Z!==MY[b8]&&console.error("Unexpected Fiber popped."),$.current=HY[b8],HY[b8]=null,MY[b8]=null,b8--)}function z0($,Z,G){b8++,HY[b8]=$.current,MY[b8]=G,$.current=Z}function C0($){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){z0(D6,Z,$),z0(m7,$,$),z0(O6,null,$);var G=Z.nodeType;switch(G){case 9:case 11:G=G===9?"#document":"#fragment",Z=(Z=Z.documentElement)?(Z=Z.namespaceURI)?zM(Z):n8:n8;break;default:if(G=Z.tagName,Z=Z.namespaceURI)Z=zM(Z),Z=_M(Z,G);else switch(G){case"svg":Z=A9;break;case"math":Z=vJ;break;default:Z=n8}}G=G.toLowerCase(),G=MK(null,G),G={context:Z,ancestorInfo:G},w0(O6,$),z0(O6,G,$)}function J0($){w0(O6,$),w0(m7,$),w0(D6,$)}function K0(){return C0(O6.current)}function d0($){$.memoizedState!==null&&z0(fG,$,$);var Z=C0(O6.current),G=$.type,X=_M(Z.context,G);G=MK(Z.ancestorInfo,G),X={context:X,ancestorInfo:G},Z!==X&&(z0(m7,$,$),z0(O6,X,$))}function k0($){m7.current===$&&(w0(O6,$),w0(m7,$)),fG.current===$&&(w0(fG,$),vZ._currentValue=N$)}function S(){}function n(){if(d7===0){aM=console.log,iM=console.info,tM=console.warn,eM=console.error,$F=console.group,ZF=console.groupCollapsed,QF=console.groupEnd;var $={configurable:!0,enumerable:!0,value:S,writable:!0};Object.defineProperties(console,{info:$,log:$,warn:$,error:$,group:$,groupCollapsed:$,groupEnd:$})}d7++}function B0(){if(d7--,d7===0){var $={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:y0({},$,{value:aM}),info:y0({},$,{value:iM}),warn:y0({},$,{value:tM}),error:y0({},$,{value:eM}),group:y0({},$,{value:$F}),groupCollapsed:y0({},$,{value:ZF}),groupEnd:y0({},$,{value:QF})})}0>d7&&console.error("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}function H0($){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
|
-
`,Z)),Z!==-1)$=$.slice(0,Z);else return"";return $}function b0($){if(
|
|
20
|
+
`,Z)),Z!==-1)$=$.slice(0,Z);else return"";return $}function b0($){if(FY===void 0)try{throw Error()}catch(G){var Z=G.stack.trim().match(/\n( *(at )?)/);FY=Z&&Z[1]||"",GF=-1<G.stack.indexOf(`
|
|
21
21
|
at`)?" (<anonymous>)":-1<G.stack.indexOf("@")?"@unknown:0:0":""}return`
|
|
22
|
-
`+
|
|
23
|
-
`),k=
|
|
22
|
+
`+FY+$+GF}function j1($,Z){if(!$||WY)return"";var G=wY.get($);if(G!==void 0)return G;WY=!0,G=Error.prepareStackTrace,Error.prepareStackTrace=void 0;var X=null;X=x.H,x.H=null,n();try{var N={DetermineComponentFrameRoot:function(){try{if(Z){var D=function(){throw Error()};if(Object.defineProperty(D.prototype,"props",{set:function(){throw Error()}}),typeof Reflect==="object"&&Reflect.construct){try{Reflect.construct(D,[])}catch(t){var y=t}Reflect.construct($,[],D)}else{try{D.call()}catch(t){y=t}$.call(D.prototype)}}else{try{throw Error()}catch(t){y=t}(D=$())&&typeof D.catch==="function"&&D.catch(function(){})}}catch(t){if(t&&y&&typeof t.stack==="string")return[t.stack,y.stack]}return[null,null]}};N.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var B=Object.getOwnPropertyDescriptor(N.DetermineComponentFrameRoot,"name");B&&B.configurable&&Object.defineProperty(N.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var W=N.DetermineComponentFrameRoot(),w=W[0],_=W[1];if(w&&_){var V=w.split(`
|
|
23
|
+
`),k=_.split(`
|
|
24
24
|
`);for(W=B=0;B<V.length&&!V[B].includes("DetermineComponentFrameRoot");)B++;for(;W<k.length&&!k[W].includes("DetermineComponentFrameRoot");)W++;if(B===V.length||W===k.length)for(B=V.length-1,W=k.length-1;1<=B&&0<=W&&V[B]!==k[W];)W--;for(;1<=B&&0<=W;B--,W--)if(V[B]!==k[W]){if(B!==1||W!==1)do if(B--,W--,0>W||V[B]!==k[W]){var b=`
|
|
25
|
-
`+V[B].replace(" at new "," at ");return $.displayName&&b.includes("<anonymous>")&&(b=b.replace("<anonymous>",$.displayName)),typeof $==="function"&&
|
|
26
|
-
`),D=b===-1?k:k.slice(b+1);if(D.indexOf(
|
|
27
|
-
`+D;break $}}y=b0(
|
|
25
|
+
`+V[B].replace(" at new "," at ");return $.displayName&&b.includes("<anonymous>")&&(b=b.replace("<anonymous>",$.displayName)),typeof $==="function"&&wY.set($,b),b}while(1<=B&&0<=W);break}}}finally{WY=!1,x.H=X,B0(),Error.prepareStackTrace=G}return V=(V=$?$.displayName||$.name:"")?b0(V):"",typeof $==="function"&&wY.set($,V),V}function I0($,Z){switch($.tag){case 26:case 27:case 5:return b0($.type);case 16:return b0("Lazy");case 13:return $.child!==Z&&Z!==null?b0("Suspense Fallback"):b0("Suspense");case 19:return b0("SuspenseList");case 0:case 15:return j1($.type,!1);case 11:return j1($.type.render,!1);case 1:return j1($.type,!0);case 31:return b0("Activity");default:return""}}function f1($){try{var Z="",G=null;do{Z+=I0($,G);var X=$._debugInfo;if(X)for(var N=X.length-1;0<=N;N--){var B=X[N];if(typeof B.name==="string"){var W=Z;$:{var{name:w,env:_,debugLocation:V}=B;if(V!=null){var k=H0(V),b=k.lastIndexOf(`
|
|
26
|
+
`),D=b===-1?k:k.slice(b+1);if(D.indexOf(w)!==-1){var y=`
|
|
27
|
+
`+D;break $}}y=b0(w+(_?" ["+_+"]":""))}Z=W+y}}G=$,$=$.return}while($);return Z}catch(t){return`
|
|
28
28
|
Error generating stack: `+t.message+`
|
|
29
|
-
`+t.stack}}function N5($){return($=$?$.displayName||$.name:"")?b0($):""}function P4(){if(t5===null)return null;var $=t5._debugOwner;return $!=null?Y0($):null}function VQ(){if(t5===null)return"";var $=t5;try{var Z="";switch($.tag===6&&($=$.return),$.tag){case 26:case 27:case 5:Z+=b0($.type);break;case 13:Z+=b0("Suspense");break;case 19:Z+=b0("SuspenseList");break;case 31:Z+=b0("Activity");break;case 30:case 0:case 15:case 1:$._debugOwner||Z!==""||(Z+=N5($.type));break;case 11:$._debugOwner||Z!==""||(Z+=N5($.type.render))}for(;$;)if(typeof $.tag==="number"){var G=$;$=G._debugOwner;var X=G._debugStack;if($&&X){var N=
|
|
29
|
+
`+t.stack}}function N5($){return($=$?$.displayName||$.name:"")?b0($):""}function P4(){if(t5===null)return null;var $=t5._debugOwner;return $!=null?Y0($):null}function VQ(){if(t5===null)return"";var $=t5;try{var Z="";switch($.tag===6&&($=$.return),$.tag){case 26:case 27:case 5:Z+=b0($.type);break;case 13:Z+=b0("Suspense");break;case 19:Z+=b0("SuspenseList");break;case 31:Z+=b0("Activity");break;case 30:case 0:case 15:case 1:$._debugOwner||Z!==""||(Z+=N5($.type));break;case 11:$._debugOwner||Z!==""||(Z+=N5($.type.render))}for(;$;)if(typeof $.tag==="number"){var G=$;$=G._debugOwner;var X=G._debugStack;if($&&X){var N=H0(X);N!==""&&(Z+=`
|
|
30
30
|
`+N)}}else if($.debugStack!=null){var B=$.debugStack;($=$.owner)&&B&&(Z+=`
|
|
31
|
-
`+
|
|
32
|
-
Error generating stack: `+
|
|
33
|
-
`+R.stack}return W}function G0($,Z,G,X,N,B,W){var R=t5;O$($);try{return $!==null&&$._debugTask?$._debugTask.run(Z.bind(null,G,X,N,B,W)):Z(G,X,N,B,W)}finally{O$(R)}throw Error("runWithFiberInDEV should never be called in production. This is a bug in React.")}function O$($){x.getCurrentStack=$===null?null:VQ,X8=!1,t5=$}function _2($){return typeof Symbol==="function"&&Symbol.toStringTag&&$[Symbol.toStringTag]||$.constructor.name||"Object"}function B6($){try{return s1($),!1}catch(Z){return!0}}function s1($){return""+$}function Y1($,Z){if(B6($))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,_2($)),s1($)}function Q7($,Z){if(B6($))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,_2($)),s1($)}function D0($){if(B6($))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.",_2($)),s1($)}function D$($){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{t$=Z.inject($),M5=Z}catch(G){console.error("React instrumentation encountered an error: %o.",G)}return Z.checkDCE?!0:!1}function M1($){if(typeof CV==="function"&&IV($),M5&&typeof M5.setStrictMode==="function")try{M5.setStrictMode(t$,$)}catch(Z){Y8||(Y8=!0,console.error("React instrumentation encountered an error: %o",Z))}}function EQ($){return $>>>=0,$===0?32:31-(OV($)/DV|0)|0}function m4($){var Z=$&42;if(Z!==0)return Z;switch($&-$){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return $&261888;case 262144:case 524288:case 1048576:case 2097152:return $&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return $&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return console.error("Should have found matching lanes. This is a bug in React."),$}}function z2($,Z,G){var X=$.pendingLanes;if(X===0)return 0;var N=0,B=$.suspendedLanes,W=$.pingedLanes;$=$.warmLanes;var R=X&134217727;return R!==0?(X=R&~B,X!==0?N=m4(X):(W&=R,W!==0?N=m4(W):G||(G=R&~$,G!==0&&(N=m4(G))))):(R=X&~B,R!==0?N=m4(R):W!==0?N=m4(W):G||(G=X&~$,G!==0&&(N=m4(G)))),N===0?0:Z!==0&&Z!==N&&(Z&B)===0&&(B=N&-N,G=Z&-Z,B>=G||B===32&&(G&4194048)!==0)?Z:N}function L2($,Z){return($.pendingLanes&~($.suspendedLanes&~$.pingedLanes)&Z)===0}function eq($,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 j$(){var $=hG;return hG<<=1,(hG&62914560)===0&&(hG=4194304),$}function A$($){for(var Z=[],G=0;31>G;G++)Z.push($);return Z}function M6($,Z){$.pendingLanes|=Z,Z!==268435456&&($.suspendedLanes=0,$.pingedLanes=0,$.warmLanes=0)}function PQ($,Z,G,X,N,B){var W=$.pendingLanes;$.pendingLanes=G,$.suspendedLanes=0,$.pingedLanes=0,$.warmLanes=0,$.expiredLanes&=G,$.entangledLanes&=G,$.errorRecoveryDisabledLanes&=G,$.shellSuspendCounter=0;var{entanglements:R,expirationTimes:z,hiddenUpdates:V}=$;for(G=W&~G;0<G;){var k=31-R5(G),b=1<<k;R[k]=0,z[k]=-1;var D=V[k];if(D!==null)for(V[k]=null,k=0;k<D.length;k++){var y=D[k];y!==null&&(y.lane&=-536870913)}G&=~b}X!==0&&V2($,X,0),B!==0&&N===0&&$.tag!==0&&($.suspendedLanes|=B&~(W&~Z))}function V2($,Z,G){$.pendingLanes|=Z,$.suspendedLanes&=~Z;var X=31-R5(Z);$.entangledLanes|=Z,$.entanglements[X]=$.entanglements[X]|1073741824|G&261930}function E2($,Z){var G=$.entangledLanes|=Z;for($=$.entanglements;G;){var X=31-R5(G),N=1<<X;N&Z|$[X]&Z&&($[X]|=Z),G&=~N}}function P2($,Z){var G=Z&-Z;return G=(G&42)!==0?1:C2(G),(G&($.suspendedLanes|Z))!==0?0:G}function C2($){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 G7($,Z,G){if(U8)for($=$.pendingUpdatersLaneMap;0<G;){var X=31-R5(G),N=1<<X;$[X].add(Z),G&=~N}}function H6($,Z){if(U8)for(var{pendingUpdatersLaneMap:G,memoizedUpdaters:X}=$;0<Z;){var N=31-R5(Z);$=1<<N,N=G[N],0<N.size&&(N.forEach(function(B){var W=B.alternate;W!==null&&X.has(W)||X.add(B)}),N.clear()),Z&=~$}}function E($){return $&=-$,e5!==0&&e5<$?j4!==0&&j4<$?($&134217727)!==0?N8:xG:j4:e5}function f(){var $=Z1.p;if($!==0)return $;return $=window.event,$===void 0?N8:xH($.type)}function r($,Z){var G=Z1.p;try{return Z1.p=$,Z()}finally{Z1.p=G}}function e($){delete $[G5],delete $[w5],delete $[_Y],delete $[jV],delete $[AV]}function q0($){var Z=$[G5];if(Z)return Z;for(var G=$.parentNode;G;){if(Z=G[A6]||G[G5]){if(G=Z.alternate,Z.child!==null||G!==null&&G.child!==null)for($=CH($);$!==null;){if(G=$[G5])return G;$=CH($)}return Z}$=G,G=$.parentNode}return null}function E0($){if($=$[G5]||$[A6]){var Z=$.tag;if(Z===5||Z===6||Z===13||Z===31||Z===26||Z===27||Z===3)return $}return null}function P0($){var Z=$.tag;if(Z===5||Z===26||Z===27||Z===6)return $.stateNode;throw Error("getNodeFromInstance: Invalid argument.")}function a0($){var Z=$[ZF];return Z||(Z=$[ZF]={hoistableStyles:new Map,hoistableScripts:new Map}),Z}function F0($){$[p7]=!0}function K5($,Z){d5($,Z),d5($+"Capture",Z)}function d5($,Z){m2[$]&&console.error("EventRegistry: More than one plugin attempted to publish the same registration name, `%s`.",$),m2[$]=Z;var G=$.toLowerCase();zY[G]=$,$==="onDoubleClick"&&(zY.ondblclick=$);for($=0;$<Z.length;$++)QF.add(Z[$])}function F6($,Z){SV[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 J7($){if(D4.call(JF,$))return!0;if(D4.call(GF,$))return!1;if(vV.test($))return JF[$]=!0;return GF[$]=!0,console.error("Invalid attribute name: `%s`",$),!1}function oN($,Z,G){if(J7(Z)){if(!$.hasAttribute(Z)){switch(typeof G){case"symbol":case"object":return G;case"function":return G;case"boolean":if(G===!1)return G}return G===void 0?void 0:null}if($=$.getAttribute(Z),$===""&&G===!0)return!0;return Y1(G,Z),$===""+G?G:$}}function CQ($,Z,G){if(J7(Z))if(G===null)$.removeAttribute(Z);else{switch(typeof G){case"undefined":case"function":case"symbol":$.removeAttribute(Z);return;case"boolean":var X=Z.toLowerCase().slice(0,5);if(X!=="data-"&&X!=="aria-"){$.removeAttribute(Z);return}}Y1(G,Z),$.setAttribute(Z,""+G)}}function IQ($,Z,G){if(G===null)$.removeAttribute(Z);else{switch(typeof G){case"undefined":case"function":case"symbol":case"boolean":$.removeAttribute(Z);return}Y1(G,Z),$.setAttribute(Z,""+G)}}function C8($,Z,G,X){if(X===null)$.removeAttribute(G);else{switch(typeof X){case"undefined":case"function":case"symbol":case"boolean":$.removeAttribute(G);return}Y1(X,G),$.setAttributeNS(Z,G,""+X)}}function X4($){switch(typeof $){case"bigint":case"boolean":case"number":case"string":case"undefined":return $;case"object":return D0($),$;default:return""}}function aN($){var Z=$.type;return($=$.nodeName)&&$.toLowerCase()==="input"&&(Z==="checkbox"||Z==="radio")}function Dz($,Z,G){var X=Object.getOwnPropertyDescriptor($.constructor.prototype,Z);if(!$.hasOwnProperty(Z)&&typeof X<"u"&&typeof X.get==="function"&&typeof X.set==="function"){var{get:N,set:B}=X;return Object.defineProperty($,Z,{configurable:!0,get:function(){return N.call(this)},set:function(W){D0(W),G=""+W,B.call(this,W)}}),Object.defineProperty($,Z,{enumerable:X.enumerable}),{getValue:function(){return G},setValue:function(W){D0(W),G=""+W},stopTracking:function(){$._valueTracker=null,delete $[Z]}}}}function $3($){if(!$._valueTracker){var Z=aN($)?"checked":"value";$._valueTracker=Dz($,Z,""+$[Z])}}function iN($){if(!$)return!1;var Z=$._valueTracker;if(!Z)return!0;var G=Z.getValue(),X="";return $&&(X=aN($)?$.checked?"true":"false":$.value),$=X,$!==G?(Z.setValue($),!0):!1}function OQ($){if($=$||(typeof document<"u"?document:void 0),typeof $>"u")return null;try{return $.activeElement||$.body}catch(Z){return $.body}}function Y4($){return $.replace(kV,function(Z){return"\\"+Z.charCodeAt(0).toString(16)+" "})}function tN($,Z){Z.checked===void 0||Z.defaultChecked===void 0||XF||(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",P4()||"A component",Z.type),XF=!0),Z.value===void 0||Z.defaultValue===void 0||qF||(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",P4()||"A component",Z.type),qF=!0)}function Z3($,Z,G,X,N,B,W,R){if($.name="",W!=null&&typeof W!=="function"&&typeof W!=="symbol"&&typeof W!=="boolean"?(Y1(W,"type"),$.type=W):$.removeAttribute("type"),Z!=null)if(W==="number"){if(Z===0&&$.value===""||$.value!=Z)$.value=""+X4(Z)}else $.value!==""+X4(Z)&&($.value=""+X4(Z));else W!=="submit"&&W!=="reset"||$.removeAttribute("value");Z!=null?Q3($,W,X4(Z)):G!=null?Q3($,W,X4(G)):X!=null&&$.removeAttribute("value"),N==null&&B!=null&&($.defaultChecked=!!B),N!=null&&($.checked=N&&typeof N!=="function"&&typeof N!=="symbol"),R!=null&&typeof R!=="function"&&typeof R!=="symbol"&&typeof R!=="boolean"?(Y1(R,"name"),$.name=""+X4(R)):$.removeAttribute("name")}function eN($,Z,G,X,N,B,W,R){if(B!=null&&typeof B!=="function"&&typeof B!=="symbol"&&typeof B!=="boolean"&&(Y1(B,"type"),$.type=B),Z!=null||G!=null){if(!(B!=="submit"&&B!=="reset"||Z!==void 0&&Z!==null)){$3($);return}G=G!=null?""+X4(G):"",Z=Z!=null?""+X4(Z):G,R||Z===$.value||($.value=Z),$.defaultValue=Z}X=X!=null?X:N,X=typeof X!=="function"&&typeof X!=="symbol"&&!!X,$.checked=R?$.checked:!!X,$.defaultChecked=!!X,W!=null&&typeof W!=="function"&&typeof W!=="symbol"&&typeof W!=="boolean"&&(Y1(W,"name"),$.name=W),$3($)}function Q3($,Z,G){Z==="number"&&OQ($.ownerDocument)===$||$.defaultValue===""+G||($.defaultValue=""+G)}function $K($,Z){Z.value==null&&(typeof Z.children==="object"&&Z.children!==null?v9.Children.forEach(Z.children,function(G){G==null||typeof G==="string"||typeof G==="number"||typeof G==="bigint"||UF||(UF=!0,console.error("Cannot infer the option value of complex children. Pass a `value` prop or use a plain string as children to <option>."))}):Z.dangerouslySetInnerHTML==null||NF||(NF=!0,console.error("Pass a `value` prop if you set dangerouslyInnerHTML so React knows which value should be selected."))),Z.selected==null||YF||(console.error("Use the `defaultValue` or `value` props on <select> instead of setting `selected` on <option>."),YF=!0)}function ZK(){var $=P4();return $?`
|
|
31
|
+
`+H0(B))}else break;var W=Z}catch(w){W=`
|
|
32
|
+
Error generating stack: `+w.message+`
|
|
33
|
+
`+w.stack}return W}function G0($,Z,G,X,N,B,W){var w=t5;O$($);try{return $!==null&&$._debugTask?$._debugTask.run(Z.bind(null,G,X,N,B,W)):Z(G,X,N,B,W)}finally{O$(w)}throw Error("runWithFiberInDEV should never be called in production. This is a bug in React.")}function O$($){x.getCurrentStack=$===null?null:VQ,X8=!1,t5=$}function z2($){return typeof Symbol==="function"&&Symbol.toStringTag&&$[Symbol.toStringTag]||$.constructor.name||"Object"}function B6($){try{return s1($),!1}catch(Z){return!0}}function s1($){return""+$}function Y1($,Z){if(B6($))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,z2($)),s1($)}function Q7($,Z){if(B6($))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,z2($)),s1($)}function D0($){if(B6($))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.",z2($)),s1($)}function D$($){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{t$=Z.inject($),H5=Z}catch(G){console.error("React instrumentation encountered an error: %o.",G)}return Z.checkDCE?!0:!1}function H1($){if(typeof AV==="function"&&SV($),H5&&typeof H5.setStrictMode==="function")try{H5.setStrictMode(t$,$)}catch(Z){Y8||(Y8=!0,console.error("React instrumentation encountered an error: %o",Z))}}function EQ($){return $>>>=0,$===0?32:31-(vV($)/kV|0)|0}function m4($){var Z=$&42;if(Z!==0)return Z;switch($&-$){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return $&261888;case 262144:case 524288:case 1048576:case 2097152:return $&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return $&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return console.error("Should have found matching lanes. This is a bug in React."),$}}function _2($,Z,G){var X=$.pendingLanes;if(X===0)return 0;var N=0,B=$.suspendedLanes,W=$.pingedLanes;$=$.warmLanes;var w=X&134217727;return w!==0?(X=w&~B,X!==0?N=m4(X):(W&=w,W!==0?N=m4(W):G||(G=w&~$,G!==0&&(N=m4(G))))):(w=X&~B,w!==0?N=m4(w):W!==0?N=m4(W):G||(G=X&~$,G!==0&&(N=m4(G)))),N===0?0:Z!==0&&Z!==N&&(Z&B)===0&&(B=N&-N,G=Z&-Z,B>=G||B===32&&(G&4194048)!==0)?Z:N}function L2($,Z){return($.pendingLanes&~($.suspendedLanes&~$.pingedLanes)&Z)===0}function Z3($,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 j$(){var $=hG;return hG<<=1,(hG&62914560)===0&&(hG=4194304),$}function A$($){for(var Z=[],G=0;31>G;G++)Z.push($);return Z}function H6($,Z){$.pendingLanes|=Z,Z!==268435456&&($.suspendedLanes=0,$.pingedLanes=0,$.warmLanes=0)}function PQ($,Z,G,X,N,B){var W=$.pendingLanes;$.pendingLanes=G,$.suspendedLanes=0,$.pingedLanes=0,$.warmLanes=0,$.expiredLanes&=G,$.entangledLanes&=G,$.errorRecoveryDisabledLanes&=G,$.shellSuspendCounter=0;var{entanglements:w,expirationTimes:_,hiddenUpdates:V}=$;for(G=W&~G;0<G;){var k=31-w5(G),b=1<<k;w[k]=0,_[k]=-1;var D=V[k];if(D!==null)for(V[k]=null,k=0;k<D.length;k++){var y=D[k];y!==null&&(y.lane&=-536870913)}G&=~b}X!==0&&V2($,X,0),B!==0&&N===0&&$.tag!==0&&($.suspendedLanes|=B&~(W&~Z))}function V2($,Z,G){$.pendingLanes|=Z,$.suspendedLanes&=~Z;var X=31-w5(Z);$.entangledLanes|=Z,$.entanglements[X]=$.entanglements[X]|1073741824|G&261930}function E2($,Z){var G=$.entangledLanes|=Z;for($=$.entanglements;G;){var X=31-w5(G),N=1<<X;N&Z|$[X]&Z&&($[X]|=Z),G&=~N}}function P2($,Z){var G=Z&-Z;return G=(G&42)!==0?1:C2(G),(G&($.suspendedLanes|Z))!==0?0:G}function C2($){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 G7($,Z,G){if(U8)for($=$.pendingUpdatersLaneMap;0<G;){var X=31-w5(G),N=1<<X;$[X].add(Z),G&=~N}}function M6($,Z){if(U8)for(var{pendingUpdatersLaneMap:G,memoizedUpdaters:X}=$;0<Z;){var N=31-w5(Z);$=1<<N,N=G[N],0<N.size&&(N.forEach(function(B){var W=B.alternate;W!==null&&X.has(W)||X.add(B)}),N.clear()),Z&=~$}}function E($){return $&=-$,e5!==0&&e5<$?j4!==0&&j4<$?($&134217727)!==0?N8:xG:j4:e5}function f(){var $=Z1.p;if($!==0)return $;return $=window.event,$===void 0?N8:dM($.type)}function r($,Z){var G=Z1.p;try{return Z1.p=$,Z()}finally{Z1.p=G}}function e($){delete $[G5],delete $[R5],delete $[LY],delete $[bV],delete $[fV]}function q0($){var Z=$[G5];if(Z)return Z;for(var G=$.parentNode;G;){if(Z=G[A6]||G[G5]){if(G=Z.alternate,Z.child!==null||G!==null&&G.child!==null)for($=DM($);$!==null;){if(G=$[G5])return G;$=DM($)}return Z}$=G,G=$.parentNode}return null}function E0($){if($=$[G5]||$[A6]){var Z=$.tag;if(Z===5||Z===6||Z===13||Z===31||Z===26||Z===27||Z===3)return $}return null}function P0($){var Z=$.tag;if(Z===5||Z===26||Z===27||Z===6)return $.stateNode;throw Error("getNodeFromInstance: Invalid argument.")}function a0($){var Z=$[JF];return Z||(Z=$[JF]={hoistableStyles:new Map,hoistableScripts:new Map}),Z}function F0($){$[p7]=!0}function K5($,Z){d5($,Z),d5($+"Capture",Z)}function d5($,Z){m2[$]&&console.error("EventRegistry: More than one plugin attempted to publish the same registration name, `%s`.",$),m2[$]=Z;var G=$.toLowerCase();VY[G]=$,$==="onDoubleClick"&&(VY.ondblclick=$);for($=0;$<Z.length;$++)qF.add(Z[$])}function F6($,Z){yV[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 J7($){if(D4.call(YF,$))return!0;if(D4.call(XF,$))return!1;if(gV.test($))return YF[$]=!0;return XF[$]=!0,console.error("Invalid attribute name: `%s`",$),!1}function tN($,Z,G){if(J7(Z)){if(!$.hasAttribute(Z)){switch(typeof G){case"symbol":case"object":return G;case"function":return G;case"boolean":if(G===!1)return G}return G===void 0?void 0:null}if($=$.getAttribute(Z),$===""&&G===!0)return!0;return Y1(G,Z),$===""+G?G:$}}function CQ($,Z,G){if(J7(Z))if(G===null)$.removeAttribute(Z);else{switch(typeof G){case"undefined":case"function":case"symbol":$.removeAttribute(Z);return;case"boolean":var X=Z.toLowerCase().slice(0,5);if(X!=="data-"&&X!=="aria-"){$.removeAttribute(Z);return}}Y1(G,Z),$.setAttribute(Z,""+G)}}function IQ($,Z,G){if(G===null)$.removeAttribute(Z);else{switch(typeof G){case"undefined":case"function":case"symbol":case"boolean":$.removeAttribute(Z);return}Y1(G,Z),$.setAttribute(Z,""+G)}}function C8($,Z,G,X){if(X===null)$.removeAttribute(G);else{switch(typeof X){case"undefined":case"function":case"symbol":case"boolean":$.removeAttribute(G);return}Y1(X,G),$.setAttributeNS(Z,G,""+X)}}function X4($){switch(typeof $){case"bigint":case"boolean":case"number":case"string":case"undefined":return $;case"object":return D0($),$;default:return""}}function eN($){var Z=$.type;return($=$.nodeName)&&$.toLowerCase()==="input"&&(Z==="checkbox"||Z==="radio")}function k_($,Z,G){var X=Object.getOwnPropertyDescriptor($.constructor.prototype,Z);if(!$.hasOwnProperty(Z)&&typeof X<"u"&&typeof X.get==="function"&&typeof X.set==="function"){var{get:N,set:B}=X;return Object.defineProperty($,Z,{configurable:!0,get:function(){return N.call(this)},set:function(W){D0(W),G=""+W,B.call(this,W)}}),Object.defineProperty($,Z,{enumerable:X.enumerable}),{getValue:function(){return G},setValue:function(W){D0(W),G=""+W},stopTracking:function(){$._valueTracker=null,delete $[Z]}}}}function Q3($){if(!$._valueTracker){var Z=eN($)?"checked":"value";$._valueTracker=k_($,Z,""+$[Z])}}function $K($){if(!$)return!1;var Z=$._valueTracker;if(!Z)return!0;var G=Z.getValue(),X="";return $&&(X=eN($)?$.checked?"true":"false":$.value),$=X,$!==G?(Z.setValue($),!0):!1}function OQ($){if($=$||(typeof document<"u"?document:void 0),typeof $>"u")return null;try{return $.activeElement||$.body}catch(Z){return $.body}}function Y4($){return $.replace(hV,function(Z){return"\\"+Z.charCodeAt(0).toString(16)+" "})}function ZK($,Z){Z.checked===void 0||Z.defaultChecked===void 0||NF||(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",P4()||"A component",Z.type),NF=!0),Z.value===void 0||Z.defaultValue===void 0||UF||(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",P4()||"A component",Z.type),UF=!0)}function G3($,Z,G,X,N,B,W,w){if($.name="",W!=null&&typeof W!=="function"&&typeof W!=="symbol"&&typeof W!=="boolean"?(Y1(W,"type"),$.type=W):$.removeAttribute("type"),Z!=null)if(W==="number"){if(Z===0&&$.value===""||$.value!=Z)$.value=""+X4(Z)}else $.value!==""+X4(Z)&&($.value=""+X4(Z));else W!=="submit"&&W!=="reset"||$.removeAttribute("value");Z!=null?J3($,W,X4(Z)):G!=null?J3($,W,X4(G)):X!=null&&$.removeAttribute("value"),N==null&&B!=null&&($.defaultChecked=!!B),N!=null&&($.checked=N&&typeof N!=="function"&&typeof N!=="symbol"),w!=null&&typeof w!=="function"&&typeof w!=="symbol"&&typeof w!=="boolean"?(Y1(w,"name"),$.name=""+X4(w)):$.removeAttribute("name")}function QK($,Z,G,X,N,B,W,w){if(B!=null&&typeof B!=="function"&&typeof B!=="symbol"&&typeof B!=="boolean"&&(Y1(B,"type"),$.type=B),Z!=null||G!=null){if(!(B!=="submit"&&B!=="reset"||Z!==void 0&&Z!==null)){Q3($);return}G=G!=null?""+X4(G):"",Z=Z!=null?""+X4(Z):G,w||Z===$.value||($.value=Z),$.defaultValue=Z}X=X!=null?X:N,X=typeof X!=="function"&&typeof X!=="symbol"&&!!X,$.checked=w?$.checked:!!X,$.defaultChecked=!!X,W!=null&&typeof W!=="function"&&typeof W!=="symbol"&&typeof W!=="boolean"&&(Y1(W,"name"),$.name=W),Q3($)}function J3($,Z,G){Z==="number"&&OQ($.ownerDocument)===$||$.defaultValue===""+G||($.defaultValue=""+G)}function GK($,Z){Z.value==null&&(typeof Z.children==="object"&&Z.children!==null?v9.Children.forEach(Z.children,function(G){G==null||typeof G==="string"||typeof G==="number"||typeof G==="bigint"||BF||(BF=!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||HF||(HF=!0,console.error("Pass a `value` prop if you set dangerouslyInnerHTML so React knows which value should be selected."))),Z.selected==null||KF||(console.error("Use the `defaultValue` or `value` props on <select> instead of setting `selected` on <option>."),KF=!0)}function JK(){var $=P4();return $?`
|
|
34
34
|
|
|
35
|
-
Check the render method of \``+$+"`.":""}function S$($,Z,G,X){if($=$.options,Z){Z={};for(var N=0;N<G.length;N++)Z["$"+G[N]]=!0;for(G=0;G<$.length;G++)N=Z.hasOwnProperty("$"+$[G].value),$[G].selected!==N&&($[G].selected=N),N&&X&&($[G].defaultSelected=!0)}else{G=""+X4(G),Z=null;for(N=0;N<$.length;N++){if($[N].value===G){$[N].selected=!0,X&&($[N].defaultSelected=!0);return}Z!==null||$[N].disabled||(Z=$[N])}Z!==null&&(Z.selected=!0)}}function
|
|
35
|
+
Check the render method of \``+$+"`.":""}function S$($,Z,G,X){if($=$.options,Z){Z={};for(var N=0;N<G.length;N++)Z["$"+G[N]]=!0;for(G=0;G<$.length;G++)N=Z.hasOwnProperty("$"+$[G].value),$[G].selected!==N&&($[G].selected=N),N&&X&&($[G].defaultSelected=!0)}else{G=""+X4(G),Z=null;for(N=0;N<$.length;N++){if($[N].value===G){$[N].selected=!0,X&&($[N].defaultSelected=!0);return}Z!==null||$[N].disabled||(Z=$[N])}Z!==null&&(Z.selected=!0)}}function qK($,Z){for($=0;$<FF.length;$++){var G=FF[$];if(Z[G]!=null){var X=c1(Z[G]);Z.multiple&&!X?console.error("The `%s` prop supplied to <select> must be an array if `multiple` is true.%s",G,JK()):!Z.multiple&&X&&console.error("The `%s` prop supplied to <select> must be a scalar value if `multiple` is false.%s",G,JK())}}Z.value===void 0||Z.defaultValue===void 0||MF||(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"),MF=!0)}function XK($,Z){Z.value===void 0||Z.defaultValue===void 0||WF||(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",P4()||"A component"),WF=!0),Z.children!=null&&Z.value==null&&console.error("Use the `defaultValue` or `value` props instead of setting children on <textarea>.")}function YK($,Z,G){if(Z!=null&&(Z=""+X4(Z),Z!==$.value&&($.value=Z),G==null)){$.defaultValue!==Z&&($.defaultValue=Z);return}$.defaultValue=G!=null?""+X4(G):""}function UK($,Z,G,X){if(Z==null){if(X!=null){if(G!=null)throw Error("If you supply `defaultValue` on a <textarea>, do not pass children.");if(c1(X)){if(1<X.length)throw Error("<textarea> can only have at most one child.");X=X[0]}G=X}G==null&&(G=""),Z=G}G=X4(Z),$.defaultValue=G,X=$.textContent,X===G&&X!==""&&X!==null&&($.value=X),Q3($)}function NK($,Z){return $.serverProps===void 0&&$.serverTail.length===0&&$.children.length===1&&3<$.distanceFromLeaf&&$.distanceFromLeaf>15-Z?NK($.children[0],Z):$}function p5($){return" "+" ".repeat($)}function v$($){return"+ "+" ".repeat($)}function I2($){return"- "+" ".repeat($)}function KK($){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 q7($,Z){return wF.test($)?($=JSON.stringify($),$.length>Z-2?8>Z?'{"..."}':"{"+$.slice(0,Z-7)+'..."}':"{"+$+"}"):$.length>Z?5>Z?'{"..."}':$.slice(0,Z-3)+"...":$}function DQ($,Z,G){var X=120-2*G;if(Z===null)return v$(G)+q7($,X)+`
|
|
36
36
|
`;if(typeof Z==="string"){for(var N=0;N<Z.length&&N<$.length&&Z.charCodeAt(N)===$.charCodeAt(N);N++);return N>X-8&&10<N&&($="..."+$.slice(N-8),Z="..."+Z.slice(N-8)),v$(G)+q7($,X)+`
|
|
37
37
|
`+I2(G)+q7(Z,X)+`
|
|
38
38
|
`}return p5(G)+q7($,X)+`
|
|
39
|
-
`}function
|
|
39
|
+
`}function q3($){return Object.prototype.toString.call($).replace(/^\[object (.*)\]$/,function(Z,G){return G})}function X7($,Z){switch(typeof $){case"string":return $=JSON.stringify($),$.length>Z?5>Z?'"..."':$.slice(0,Z-4)+'..."':$;case"object":if($===null)return"null";if(c1($))return"[...]";if($.$$typeof===J8)return(Z=i($.type))?"<"+Z+">":"<...>";var G=q3($);if(G==="Object"){G="",Z-=2;for(var X in $)if($.hasOwnProperty(X)){var N=JSON.stringify(X);if(N!=='"'+X+'"'&&(X=N),Z-=X.length-2,N=X7($[X],15>Z?Z:15),Z-=N.length,0>Z){G+=G===""?"...":", ...";break}G+=(G===""?"":",")+X+":"+N}return"{"+G+"}"}return G;case"function":return(Z=$.displayName||$.name)?"function "+Z:"function";default:return String($)}}function k$($,Z){return typeof $!=="string"||wF.test($)?"{"+X7($,Z-2)+"}":$.length>Z-2?5>Z?'"..."':'"'+$.slice(0,Z-5)+'..."':'"'+$+'"'}function X3($,Z,G){var X=120-G.length-$.length,N=[],B;for(B in Z)if(Z.hasOwnProperty(B)&&B!=="children"){var W=k$(Z[B],120-G.length-B.length-1);X-=B.length+W.length+2,N.push(B+"="+W)}return N.length===0?G+"<"+$+`>
|
|
40
40
|
`:0<X?G+"<"+$+" "+N.join(" ")+`>
|
|
41
41
|
`:G+"<"+$+`
|
|
42
42
|
`+G+" "+N.join(`
|
|
43
43
|
`+G+" ")+`
|
|
44
44
|
`+G+`>
|
|
45
|
-
`}function
|
|
45
|
+
`}function b_($,Z,G){var X="",N=y0({},Z),B;for(B in $)if($.hasOwnProperty(B)){delete N[B];var W=120-2*G-B.length-2,w=X7($[B],W);Z.hasOwnProperty(B)?(W=X7(Z[B],W),X+=v$(G)+B+": "+w+`
|
|
46
46
|
`,X+=I2(G)+B+": "+W+`
|
|
47
|
-
`):X+=v$(G)+B+": "+
|
|
48
|
-
`}for(var
|
|
49
|
-
`);return X}function
|
|
50
|
-
`+
|
|
47
|
+
`):X+=v$(G)+B+": "+w+`
|
|
48
|
+
`}for(var _ in N)N.hasOwnProperty(_)&&($=X7(N[_],120-2*G-_.length-2),X+=I2(G)+_+": "+$+`
|
|
49
|
+
`);return X}function f_($,Z,G,X){var N="",B=new Map;for(V in G)G.hasOwnProperty(V)&&B.set(V.toLowerCase(),V);if(B.size===1&&B.has("children"))N+=X3($,Z,p5(X));else{for(var W in Z)if(Z.hasOwnProperty(W)&&W!=="children"){var w=120-2*(X+1)-W.length-1,_=B.get(W.toLowerCase());if(_!==void 0){B.delete(W.toLowerCase());var V=Z[W];_=G[_];var k=k$(V,w);w=k$(_,w),typeof V==="object"&&V!==null&&typeof _==="object"&&_!==null&&q3(V)==="Object"&&q3(_)==="Object"&&(2<Object.keys(V).length||2<Object.keys(_).length||-1<k.indexOf("...")||-1<w.indexOf("..."))?N+=p5(X+1)+W+`={{
|
|
50
|
+
`+b_(V,_,X+2)+p5(X+1)+`}}
|
|
51
51
|
`:(N+=v$(X+1)+W+"="+k+`
|
|
52
|
-
`,N+=I2(X+1)+W+"="+
|
|
53
|
-
`)}else N+=p5(X+1)+W+"="+k$(Z[W],
|
|
52
|
+
`,N+=I2(X+1)+W+"="+w+`
|
|
53
|
+
`)}else N+=p5(X+1)+W+"="+k$(Z[W],w)+`
|
|
54
54
|
`}B.forEach(function(b){if(b!=="children"){var D=120-2*(X+1)-b.length-1;N+=I2(X+1)+b+"="+k$(G[b],D)+`
|
|
55
55
|
`}}),N=N===""?p5(X)+"<"+$+`>
|
|
56
56
|
`:p5(X)+"<"+$+`
|
|
57
57
|
`+N+p5(X)+`>
|
|
58
|
-
`}if($=G.children,Z=Z.children,typeof $==="string"||typeof $==="number"||typeof $==="bigint"){if(B="",typeof Z==="string"||typeof Z==="number"||typeof Z==="bigint")B=""+Z;N+=DQ(B,""+$,X+1)}else if(typeof Z==="string"||typeof Z==="number"||typeof Z==="bigint")N=$==null?N+DQ(""+Z,null,X+1):N+DQ(""+Z,void 0,X+1);return N}function
|
|
59
|
-
`}function
|
|
60
|
-
`+
|
|
61
|
-
`,Z++)}if(X="",N=$.fiber.pendingProps,$.fiber.tag===6)X=DQ(N,$.serverProps,Z),Z++;else if(B=
|
|
62
|
-
`,Z++}else $.serverProps===null?(X=
|
|
58
|
+
`}if($=G.children,Z=Z.children,typeof $==="string"||typeof $==="number"||typeof $==="bigint"){if(B="",typeof Z==="string"||typeof Z==="number"||typeof Z==="bigint")B=""+Z;N+=DQ(B,""+$,X+1)}else if(typeof Z==="string"||typeof Z==="number"||typeof Z==="bigint")N=$==null?N+DQ(""+Z,null,X+1):N+DQ(""+Z,void 0,X+1);return N}function BK($,Z){var G=KK($);if(G===null){G="";for($=$.child;$;)G+=BK($,Z),$=$.sibling;return G}return p5(Z)+"<"+G+`>
|
|
59
|
+
`}function Y3($,Z){var G=NK($,Z);if(G!==$&&($.children.length!==1||$.children[0]!==G))return p5(Z)+`...
|
|
60
|
+
`+Y3(G,Z+1);G="";var X=$.fiber._debugInfo;if(X)for(var N=0;N<X.length;N++){var B=X[N].name;typeof B==="string"&&(G+=p5(Z)+"<"+B+`>
|
|
61
|
+
`,Z++)}if(X="",N=$.fiber.pendingProps,$.fiber.tag===6)X=DQ(N,$.serverProps,Z),Z++;else if(B=KK($.fiber),B!==null)if($.serverProps===void 0){X=Z;var W=120-2*X-B.length-2,w="";for(V in N)if(N.hasOwnProperty(V)&&V!=="children"){var _=k$(N[V],15);if(W-=V.length+_.length+2,0>W){w+=" ...";break}w+=" "+V+"="+_}X=p5(X)+"<"+B+w+`>
|
|
62
|
+
`,Z++}else $.serverProps===null?(X=X3(B,N,v$(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."):(X=f_(B,N,$.serverProps,Z),Z++);var V="";N=$.fiber.child;for(B=0;N&&B<$.children.length;)W=$.children[B],W.fiber===N?(V+=Y3(W,Z),B++):V+=BK(N,Z),N=N.sibling;N&&0<$.children.length&&(V+=p5(Z)+`...
|
|
63
63
|
`),N=$.serverTail,$.serverProps===null&&Z--;for($=0;$<N.length;$++)B=N[$],V=typeof B==="string"?V+(I2(Z)+q7(B,120-2*Z)+`
|
|
64
|
-
`):V+
|
|
64
|
+
`):V+X3(B.type,B.props,I2(Z));return G+X+V}function U3($){try{return`
|
|
65
65
|
|
|
66
|
-
`+
|
|
66
|
+
`+Y3($,0)}catch(Z){return""}}function HK($,Z,G){for(var X=Z,N=null,B=0;X;)X===$&&(B=0),N={fiber:X,children:N!==null?[N]:[],serverProps:X===Z?G:X===$?null:void 0,serverTail:[],distanceFromLeaf:B},B++,X=X.return;return N!==null?U3(N).replaceAll(/^[+-]/gm,">"):""}function MK($,Z){var G=y0({},$||TF),X={tag:Z};if(RF.indexOf(Z)!==-1&&(G.aTagInScope=null,G.buttonTagInScope=null,G.nobrTagInScope=null),uV.indexOf(Z)!==-1&&(G.pTagInButtonScope=null),xV.indexOf(Z)!==-1&&Z!=="address"&&Z!=="div"&&Z!=="p"&&(G.listItemTagAutoclosing=null,G.dlItemTagAutoclosing=null),G.current=X,Z==="form"&&(G.formTag=X),Z==="a"&&(G.aTagInScope=X),Z==="button"&&(G.buttonTagInScope=X),Z==="nobr"&&(G.nobrTagInScope=X),Z==="p"&&(G.pTagInButtonScope=X),Z==="li"&&(G.listItemTagAutoclosing=X),Z==="dd"||Z==="dt")G.dlItemTagAutoclosing=X;return Z==="#document"||Z==="html"?G.containerTagInScope=null:G.containerTagInScope||(G.containerTagInScope=X),$!==null||Z!=="#document"&&Z!=="html"&&Z!=="body"?G.implicitRootScope===!0&&(G.implicitRootScope=!1):G.implicitRootScope=!0,G}function FK($,Z,G){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(G)break;return $==="head"||$==="body"||$==="frameset";case"frameset":return $==="frame";case"#document":if(!G)return $==="html"}switch($){case"h1":case"h2":case"h3":case"h4":case"h5":case"h6":return Z!=="h1"&&Z!=="h2"&&Z!=="h3"&&Z!=="h4"&&Z!=="h5"&&Z!=="h6";case"rp":case"rt":return mV.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 G||Z===null;case"html":return G&&Z==="#document"||Z===null;case"body":return G&&(Z==="#document"||Z==="html")||Z===null}return!0}function y_($,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 WK($,Z){for(;$;){switch($.tag){case 5:case 26:case 27:if($.type===Z)return $}$=$.return}return null}function N3($,Z){Z=Z||TF;var G=Z.current;if(Z=(G=FK($,G&&G.tag,Z.implicitRootScope)?null:G)?null:y_($,Z),Z=G||Z,!Z)return!0;var X=Z.tag;if(Z=String(!!G)+"|"+$+"|"+X,uG[Z])return!1;uG[Z]=!0;var N=(Z=t5)?WK(Z.return,X):null,B=Z!==null&&N!==null?HK(N,Z,null):"",W="<"+$+">";return G?(G="",X==="table"&&$==="tr"&&(G+=" Add a <tbody>, <thead> or <tfoot> to your code to match the DOM tree generated by the browser."),console.error(`In HTML, %s cannot be a child of <%s>.%s
|
|
67
67
|
This will cause a hydration error.%s`,W,X,G,B)):console.error(`In HTML, %s cannot be a descendant of <%s>.
|
|
68
68
|
This will cause a hydration error.%s`,W,X,B),Z&&($=Z.return,N===null||$===null||N===$&&$._debugOwner===Z._debugOwner||G0(N,function(){console.error(`<%s> cannot contain a nested %s.
|
|
69
|
-
See this log for the ancestor stack trace.`,X,W)})),!1}function jQ($,Z,G){if(G||
|
|
69
|
+
See this log for the ancestor stack trace.`,X,W)})),!1}function jQ($,Z,G){if(G||FK("#text",Z,!1))return!0;if(G="#text|"+Z,uG[G])return!1;uG[G]=!0;var X=(G=t5)?WK(G,Z):null;return G=G!==null&&X!==null?HK(X,G,G.tag!==6?{children:null}:null):"",/\S/.test($)?console.error(`In HTML, text nodes cannot be a child of <%s>.
|
|
70
70
|
This will cause a hydration error.%s`,Z,G):console.error(`In HTML, whitespace text nodes cannot be a child of <%s>. Make sure you don't have any extra whitespace between tags on each line of your source code.
|
|
71
|
-
This will cause a hydration error.%s`,Z,G),!1}function Y7($,Z){if(Z){var G=$.firstChild;if(G&&G===$.lastChild&&G.nodeType===3){G.nodeValue=Z;return}}$.textContent=Z}function vz($){return $.replace(xV,function(Z,G){return G.toUpperCase()})}function HK($,Z,G){var X=Z.indexOf("--")===0;X||(-1<Z.indexOf("-")?e$.hasOwnProperty(Z)&&e$[Z]||(e$[Z]=!0,console.error("Unsupported style property %s. Did you mean %s?",Z,vz(Z.replace(hV,"ms-")))):gV.test(Z)?e$.hasOwnProperty(Z)&&e$[Z]||(e$[Z]=!0,console.error("Unsupported vendor-prefixed style property %s. Did you mean %s?",Z,Z.charAt(0).toUpperCase()+Z.slice(1))):!TF.test(G)||VY.hasOwnProperty(G)&&VY[G]||(VY[G]=!0,console.error(`Style property values shouldn't contain a semicolon. Try "%s: %s" instead.`,Z,G.replace(TF,""))),typeof G==="number"&&(isNaN(G)?_F||(_F=!0,console.error("`NaN` is an invalid value for the `%s` css style property.",Z)):isFinite(G)||zF||(zF=!0,console.error("`Infinity` is an invalid value for the `%s` css style property.",Z)))),G==null||typeof G==="boolean"||G===""?X?$.setProperty(Z,""):Z==="float"?$.cssFloat="":$[Z]="":X?$.setProperty(Z,G):typeof G!=="number"||G===0||LF.has(Z)?Z==="float"?$.cssFloat=G:(Q7(G,Z),$[Z]=(""+G).trim()):$[Z]=G+"px"}function FK($,Z,G){if(Z!=null&&typeof Z!=="object")throw Error("The `style` prop expects a mapping from style properties to values, not a string. For example, style={{marginRight: spacing + 'em'}} when using JSX.");if(Z&&Object.freeze(Z),$=$.style,G!=null){if(Z){var X={};if(G){for(var N in G)if(G.hasOwnProperty(N)&&!Z.hasOwnProperty(N))for(var B=LY[N]||[N],W=0;W<B.length;W++)X[B[W]]=N}for(var R in Z)if(Z.hasOwnProperty(R)&&(!G||G[R]!==Z[R]))for(N=LY[R]||[R],B=0;B<N.length;B++)X[N[B]]=R;R={};for(var z in Z)for(N=LY[z]||[z],B=0;B<N.length;B++)R[N[B]]=z;z={};for(var V in X)if(N=X[V],(B=R[V])&&N!==B&&(W=N+","+B,!z[W])){z[W]=!0,W=console;var k=Z[N];W.error.call(W,"%s a style property during rerender (%s) when a conflicting property is set (%s) can lead to styling bugs. To avoid this, don't mix shorthand and non-shorthand properties for the same value; instead, replace the shorthand with separate values.",k==null||typeof k==="boolean"||k===""?"Removing":"Updating",N,B)}}for(var b in G)!G.hasOwnProperty(b)||Z!=null&&Z.hasOwnProperty(b)||(b.indexOf("--")===0?$.setProperty(b,""):b==="float"?$.cssFloat="":$[b]="");for(var D in Z)V=Z[D],Z.hasOwnProperty(D)&&G[D]!==V&&HK($,D,V)}else for(X in Z)Z.hasOwnProperty(X)&&HK($,X,Z[X])}function U7($){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 WK($){return uV.get($)||$}function kz($,Z){if(D4.call(Z9,Z)&&Z9[Z])return!0;if(dV.test(Z)){if($="aria-"+Z.slice(4).toLowerCase(),$=VF.hasOwnProperty($)?$:null,$==null)return console.error("Invalid ARIA attribute `%s`. ARIA attributes follow the pattern aria-* and must be lowercase.",Z),Z9[Z]=!0;if(Z!==$)return console.error("Invalid ARIA attribute `%s`. Did you mean `%s`?",Z,$),Z9[Z]=!0}if(mV.test(Z)){if($=Z.toLowerCase(),$=VF.hasOwnProperty($)?$:null,$==null)return Z9[Z]=!0,!1;Z!==$&&(console.error("Unknown ARIA attribute `%s`. Did you mean `%s`?",Z,$),Z9[Z]=!0)}return!0}function bz($,Z){var G=[],X;for(X in Z)kz($,X)||G.push(X);Z=G.map(function(N){return"`"+N+"`"}).join(", "),G.length===1?console.error("Invalid aria prop %s on <%s> tag. For details, see https://react.dev/link/invalid-aria-props",Z,$):1<G.length&&console.error("Invalid aria props %s on <%s> tag. For details, see https://react.dev/link/invalid-aria-props",Z,$)}function fz($,Z,G,X){if(D4.call(T5,Z)&&T5[Z])return!0;var N=Z.toLowerCase();if(N==="onfocusin"||N==="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."),T5[Z]=!0;if(typeof G==="function"&&($==="form"&&Z==="action"||$==="input"&&Z==="formAction"||$==="button"&&Z==="formAction"))return!0;if(X!=null){if($=X.possibleRegistrationNames,X.registrationNameDependencies.hasOwnProperty(Z))return!0;if(X=$.hasOwnProperty(N)?$[N]:null,X!=null)return console.error("Invalid event handler property `%s`. Did you mean `%s`?",Z,X),T5[Z]=!0;if(PF.test(Z))return console.error("Unknown event handler property `%s`. It will be ignored.",Z),T5[Z]=!0}else if(PF.test(Z))return pV.test(Z)&&console.error("Invalid event handler property `%s`. React events use the camelCase naming convention, for example `onClick`.",Z),T5[Z]=!0;if(cV.test(Z)||lV.test(Z))return!0;if(N==="innerhtml")return console.error("Directly setting property `innerHTML` is not permitted. For more information, lookup documentation on `dangerouslySetInnerHTML`."),T5[Z]=!0;if(N==="aria")return console.error("The `aria` attribute is reserved for future use in React. Pass individual `aria-` attributes instead."),T5[Z]=!0;if(N==="is"&&G!==null&&G!==void 0&&typeof G!=="string")return console.error("Received a `%s` for a string attribute `is`. If this is expected, cast the value to a string.",typeof G),T5[Z]=!0;if(typeof G==="number"&&isNaN(G))return console.error("Received NaN for the `%s` attribute. If this is expected, cast the value to a string.",Z),T5[Z]=!0;if(dG.hasOwnProperty(N)){if(N=dG[N],N!==Z)return console.error("Invalid DOM property `%s`. Did you mean `%s`?",Z,N),T5[Z]=!0}else if(Z!==N)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,N),T5[Z]=!0;switch(Z){case"dangerouslySetInnerHTML":case"children":case"style":case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":return!0;case"innerText":case"textContent":return!0}switch(typeof G){case"boolean":switch(Z){case"autoFocus":case"checked":case"multiple":case"muted":case"selected":case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":case"capture":case"download":case"inert":return!0;default:if(N=Z.toLowerCase().slice(0,5),N==="data-"||N==="aria-")return!0;return G?console.error('Received `%s` for a non-boolean attribute `%s`.\n\nIf you want to write it to the DOM, pass a string instead: %s="%s" or %s={value.toString()}.',G,Z,Z,G,Z):console.error('Received `%s` for a non-boolean attribute `%s`.\n\nIf you want to write it to the DOM, pass a string instead: %s="%s" or %s={value.toString()}.\n\nIf you used to conditionally omit it with %s={condition && value}, pass %s={condition ? value : undefined} instead.',G,Z,Z,G,Z,Z,Z),T5[Z]=!0}case"function":case"symbol":return T5[Z]=!0,!1;case"string":if(G==="false"||G==="true"){switch(Z){case"checked":case"selected":case"multiple":case"muted":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":case"inert":break;default:return!0}console.error("Received the string `%s` for the boolean attribute `%s`. %s Did you mean %s={%s}?",G,Z,G==="false"?"The browser will interpret it as a truthy value.":'Although this works, it will not work as expected if you pass the string "false".',Z,G),T5[Z]=!0}}return!0}function yz($,Z,G){var X=[],N;for(N in Z)fz($,N,Z[N],G)||X.push(N);Z=X.map(function(B){return"`"+B+"`"}).join(", "),X.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<X.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 N7($){return rV.test(""+$)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":$}function I8(){}function U3($){return $=$.target||$.srcElement||window,$.correspondingUseElement&&($=$.correspondingUseElement),$.nodeType===3?$.parentNode:$}function RK($){var Z=E0($);if(Z&&($=Z.stateNode)){var G=$[w5]||null;$:switch($=Z.stateNode,Z.type){case"input":if(Z3($,G.value,G.defaultValue,G.defaultValue,G.checked,G.defaultChecked,G.type,G.name),Z=G.name,G.type==="radio"&&Z!=null){for(G=$;G.parentNode;)G=G.parentNode;Y1(Z,"name"),G=G.querySelectorAll('input[name="'+Y4(""+Z)+'"][type="radio"]');for(Z=0;Z<G.length;Z++){var X=G[Z];if(X!==$&&X.form===$.form){var N=X[w5]||null;if(!N)throw Error("ReactDOMInput: Mixing React and non-React radio inputs with the same `name` is not supported.");Z3(X,N.value,N.defaultValue,N.defaultValue,N.checked,N.defaultChecked,N.type,N.name)}}for(Z=0;Z<G.length;Z++)X=G[Z],X.form===$.form&&iN(X)}break $;case"textarea":JK($,G.value,G.defaultValue);break $;case"select":Z=G.value,Z!=null&&S$($,!!G.multiple,Z,!1)}}}function wK($,Z,G){if(EY)return $(Z,G);EY=!0;try{var X=$(Z);return X}finally{if(EY=!1,Q9!==null||G9!==null){if(p$(),Q9&&(Z=Q9,$=G9,G9=Q9=null,RK(Z),$))for(Z=0;Z<$.length;Z++)RK($[Z])}}}function K7($,Z){var G=$.stateNode;if(G===null)return null;var X=G[w5]||null;if(X===null)return null;G=X[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":(X=!X.disabled)||($=$.type,X=!($==="button"||$==="input"||$==="select"||$==="textarea")),$=!X;break $;default:$=!1}if($)return null;if(G&&typeof G!=="function")throw Error("Expected `"+Z+"` listener to be a function, instead got a value of `"+typeof G+"` type.");return G}function TK(){if(pG)return pG;var $,Z=CY,G=Z.length,X,N="value"in S6?S6.value:S6.textContent,B=N.length;for($=0;$<G&&Z[$]===N[$];$++);var W=G-$;for(X=1;X<=W&&Z[G-X]===N[B-X];X++);return pG=N.slice($,1<X?1-X:void 0)}function AQ($){var Z=$.keyCode;return"charCode"in $?($=$.charCode,$===0&&Z===13&&($=13)):$=Z,$===10&&($=13),32<=$||$===13?$:0}function SQ(){return!0}function _K(){return!1}function I5($){function Z(G,X,N,B,W){this._reactName=G,this._targetInst=N,this.type=X,this.nativeEvent=B,this.target=W,this.currentTarget=null;for(var R in $)$.hasOwnProperty(R)&&(G=$[R],this[R]=G?G(B):B[R]);return this.isDefaultPrevented=(B.defaultPrevented!=null?B.defaultPrevented:B.returnValue===!1)?SQ:_K,this.isPropagationStopped=_K,this}return y0(Z.prototype,{preventDefault:function(){this.defaultPrevented=!0;var G=this.nativeEvent;G&&(G.preventDefault?G.preventDefault():typeof G.returnValue!=="unknown"&&(G.returnValue=!1),this.isDefaultPrevented=SQ)},stopPropagation:function(){var G=this.nativeEvent;G&&(G.stopPropagation?G.stopPropagation():typeof G.cancelBubble!=="unknown"&&(G.cancelBubble=!0),this.isPropagationStopped=SQ)},persist:function(){},isPersistent:SQ}),Z}function gz($){var Z=this.nativeEvent;return Z.getModifierState?Z.getModifierState($):($=qE[$])?!!Z[$]:!1}function N3(){return gz}function zK($,Z){switch($){case"keyup":return wE.indexOf(Z.keyCode)!==-1;case"keydown":return Z.keyCode!==DF;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function LK($){return $=$.detail,typeof $==="object"&&"data"in $?$.data:null}function hz($,Z){switch($){case"compositionend":return LK(Z);case"keypress":if(Z.which!==AF)return null;return vF=!0,SF;case"textInput":return $=Z.data,$===SF&&vF?null:$;default:return null}}function xz($,Z){if(J9)return $==="compositionend"||!jY&&zK($,Z)?($=TK(),pG=CY=S6=null,J9=!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 jF&&Z.locale!=="ko"?null:Z.data;default:return null}}function VK($){var Z=$&&$.nodeName&&$.nodeName.toLowerCase();return Z==="input"?!!_E[$.type]:Z==="textarea"?!0:!1}function uz($){if(!K8)return!1;$="on"+$;var Z=$ in document;return Z||(Z=document.createElement("div"),Z.setAttribute($,"return;"),Z=typeof Z[$]==="function"),Z}function EK($,Z,G,X){Q9?G9?G9.push(X):G9=[X]:Q9=X,Z=EG(Z,"onChange"),0<Z.length&&(G=new cG("onChange","change",null,G,X),$.push({event:G,listeners:Z}))}function mz($){qH($,0)}function vQ($){var Z=P0($);if(iN(Z))return $}function PK($,Z){if($==="change")return Z}function CK(){o7&&(o7.detachEvent("onpropertychange",IK),a7=o7=null)}function IK($){if($.propertyName==="value"&&vQ(a7)){var Z=[];EK(Z,a7,$,U3($)),wK(mz,Z)}}function dz($,Z,G){$==="focusin"?(CK(),o7=Z,a7=G,o7.attachEvent("onpropertychange",IK)):$==="focusout"&&CK()}function pz($){if($==="selectionchange"||$==="keyup"||$==="keydown")return vQ(a7)}function cz($,Z){if($==="click")return vQ(Z)}function lz($,Z){if($==="input"||$==="change")return vQ(Z)}function rz($,Z){return $===Z&&($!==0||1/$===1/Z)||$!==$&&Z!==Z}function B7($,Z){if(_5($,Z))return!0;if(typeof $!=="object"||$===null||typeof Z!=="object"||Z===null)return!1;var G=Object.keys($),X=Object.keys(Z);if(G.length!==X.length)return!1;for(X=0;X<G.length;X++){var N=G[X];if(!D4.call(Z,N)||!_5($[N],Z[N]))return!1}return!0}function OK($){for(;$&&$.firstChild;)$=$.firstChild;return $}function DK($,Z){var G=OK($);$=0;for(var X;G;){if(G.nodeType===3){if(X=$+G.textContent.length,$<=Z&&X>=Z)return{node:G,offset:Z-$};$=X}$:{for(;G;){if(G.nextSibling){G=G.nextSibling;break $}G=G.parentNode}G=void 0}G=OK(G)}}function jK($,Z){return $&&Z?$===Z?!0:$&&$.nodeType===3?!1:Z&&Z.nodeType===3?jK($,Z.parentNode):("contains"in $)?$.contains(Z):$.compareDocumentPosition?!!($.compareDocumentPosition(Z)&16):!1:!1}function AK($){$=$!=null&&$.ownerDocument!=null&&$.ownerDocument.defaultView!=null?$.ownerDocument.defaultView:window;for(var Z=OQ($.document);Z instanceof $.HTMLIFrameElement;){try{var G=typeof Z.contentWindow.location.href==="string"}catch(X){G=!1}if(G)$=Z.contentWindow;else break;Z=OQ($.document)}return Z}function K3($){var Z=$&&$.nodeName&&$.nodeName.toLowerCase();return Z&&(Z==="input"&&($.type==="text"||$.type==="search"||$.type==="tel"||$.type==="url"||$.type==="password")||Z==="textarea"||$.contentEditable==="true")}function SK($,Z,G){var X=G.window===G?G.document:G.nodeType===9?G:G.ownerDocument;SY||q9==null||q9!==OQ(X)||(X=q9,("selectionStart"in X)&&K3(X)?X={start:X.selectionStart,end:X.selectionEnd}:(X=(X.ownerDocument&&X.ownerDocument.defaultView||window).getSelection(),X={anchorNode:X.anchorNode,anchorOffset:X.anchorOffset,focusNode:X.focusNode,focusOffset:X.focusOffset}),i7&&B7(i7,X)||(i7=X,X=EG(AY,"onSelect"),0<X.length&&(Z=new cG("onSelect","select",null,Z,G),$.push({event:Z,listeners:X}),Z.target=q9)))}function O2($,Z){var G={};return G[$.toLowerCase()]=Z.toLowerCase(),G["Webkit"+$]="webkit"+Z,G["Moz"+$]="moz"+Z,G}function D2($){if(vY[$])return vY[$];if(!X9[$])return $;var Z=X9[$],G;for(G in Z)if(Z.hasOwnProperty(G)&&G in bF)return vY[$]=Z[G];return $}function C4($,Z){xF.set($,Z),K5(Z,[$])}function sz($){for(var Z=rG,G=0;G<$.length;G++){var X=$[G];if(typeof X==="object"&&X!==null)if(c1(X)&&X.length===2&&typeof X[0]==="string"){if(Z!==rG&&Z!==gY)return fY;Z=gY}else return fY;else{if(typeof X==="function"||typeof X==="string"&&50<X.length||Z!==rG&&Z!==yY)return fY;Z=yY}}return Z}function B3($,Z,G,X){for(var N in $)D4.call($,N)&&N[0]!=="_"&&d4(N,$[N],Z,G,X)}function d4($,Z,G,X,N){switch(typeof Z){case"object":if(Z===null){Z="null";break}else{if(Z.$$typeof===J8){var B=i(Z.type)||"…",W=Z.key;Z=Z.props;var R=Object.keys(Z),z=R.length;if(W==null&&z===0){Z="<"+B+" />";break}if(3>X||z===1&&R[0]==="children"&&W==null){Z="<"+B+" … />";break}G.push([N+" ".repeat(X)+$,"<"+B]),W!==null&&d4("key",W,G,X+1,N),$=!1;for(var V in Z)V==="children"?Z.children!=null&&(!c1(Z.children)||0<Z.children.length)&&($=!0):D4.call(Z,V)&&V[0]!=="_"&&d4(V,Z[V],G,X+1,N);G.push(["",$?">…</"+B+">":"/>"]);return}if(B=Object.prototype.toString.call(Z),B=B.slice(8,B.length-1),B==="Array"){if(V=sz(Z),V===yY||V===rG){Z=JSON.stringify(Z);break}else if(V===gY){G.push([N+" ".repeat(X)+$,""]);for($=0;$<Z.length;$++)B=Z[$],d4(B[0],B[1],G,X+1,N);return}}if(B==="Promise"){if(Z.status==="fulfilled"){if(B=G.length,d4($,Z.value,G,X,N),G.length>B){G=G[B],G[1]="Promise<"+(G[1]||"Object")+">";return}}else if(Z.status==="rejected"&&(B=G.length,d4($,Z.reason,G,X,N),G.length>B)){G=G[B],G[1]="Rejected Promise<"+G[1]+">";return}G.push([" ".repeat(X)+$,"Promise"]);return}B==="Object"&&(V=Object.getPrototypeOf(Z))&&typeof V.constructor==="function"&&(B=V.constructor.name),G.push([N+" ".repeat(X)+$,B==="Object"?3>X?"":"…":B]),3>X&&B3(Z,G,X+1,N);return}case"function":Z=Z.name===""?"() => {}":Z.name+"() {}";break;case"string":Z=Z===IE?"…":JSON.stringify(Z);break;case"undefined":Z="undefined";break;case"boolean":Z=Z?"true":"false";break;default:Z=String(Z)}G.push([N+" ".repeat(X)+$,Z])}function vK($,Z,G,X){var N=!0;for(W in $)W in Z||(G.push([sG+" ".repeat(X)+W,"…"]),N=!1);for(var B in Z)if(B in $){var W=$[B],R=Z[B];if(W!==R){if(X===0&&B==="children")N=" ".repeat(X)+B,G.push([sG+N,"…"],[nG+N,"…"]);else{if(!(3<=X)){if(typeof W==="object"&&typeof R==="object"&&W!==null&&R!==null&&W.$$typeof===R.$$typeof)if(R.$$typeof===J8){if(W.type===R.type&&W.key===R.key){W=i(R.type)||"…",N=" ".repeat(X)+B,W="<"+W+" … />",G.push([sG+N,W],[nG+N,W]),N=!1;continue}}else{var z=Object.prototype.toString.call(W),V=Object.prototype.toString.call(R);if(z===V&&(V==="[object Object]"||V==="[object Array]")){z=[dF+" ".repeat(X)+B,V==="[object Array]"?"Array":""],G.push(z),V=G.length,vK(W,R,G,X+1)?V===G.length&&(z[1]="Referentially unequal but deeply equal objects. Consider memoization."):N=!1;continue}}else if(typeof W==="function"&&typeof R==="function"&&W.name===R.name&&W.length===R.length&&(z=Function.prototype.toString.call(W),V=Function.prototype.toString.call(R),z===V)){W=R.name===""?"() => {}":R.name+"() {}",G.push([dF+" ".repeat(X)+B,W+" Referentially unequal function closure. Consider memoization."]);continue}}d4(B,W,G,X,sG),d4(B,R,G,X,nG)}N=!1}}else G.push([nG+" ".repeat(X)+B,"…"]),N=!1;return N}function c5($){u0=$&63?"Blocking":$&64?"Gesture":$&4194176?"Transition":$&62914560?"Suspense":$&2080374784?"Idle":"Other"}function p4($,Z,G,X){R1&&(k6.start=Z,k6.end=G,f8.color="warning",f8.tooltipText=X,f8.properties=null,($=$._debugTask)?$.run(performance.measure.bind(performance,X,k6)):performance.measure(X,k6))}function kQ($,Z,G){p4($,Z,G,"Reconnect")}function bQ($,Z,G,X,N){var B=d($);if(B!==null&&R1){var{alternate:W,actualDuration:R}=$;if(W===null||W.child!==$.child)for(var z=$.child;z!==null;z=z.sibling)R-=z.actualDuration;X=0.5>R?X?"tertiary-light":"primary-light":10>R?X?"tertiary":"primary":100>R?X?"tertiary-dark":"primary-dark":"error";var V=$.memoizedProps;R=$._debugTask,V!==null&&W!==null&&W.memoizedProps!==V?(z=[OE],V=vK(W.memoizedProps,V,z,0),1<z.length&&(V&&!v6&&(W.lanes&N)===0&&100<$.actualDuration?(v6=!0,z[0]=DE,f8.color="warning",f8.tooltipText=pF):(f8.color=X,f8.tooltipText=B),f8.properties=z,k6.start=Z,k6.end=G,R!=null?R.run(performance.measure.bind(performance,""+B,k6)):performance.measure(""+B,k6))):R!=null?R.run(console.timeStamp.bind(console,B,Z,G,N4,void 0,X)):console.timeStamp(B,Z,G,N4,void 0,X)}}function M3($,Z,G,X){if(R1){var N=d($);if(N!==null){for(var B=null,W=[],R=0;R<X.length;R++){var z=X[R];B==null&&z.source!==null&&(B=z.source._debugTask),z=z.value,W.push(["Error",typeof z==="object"&&z!==null&&typeof z.message==="string"?String(z.message):String(z)])}$.key!==null&&d4("key",$.key,W,0,""),$.memoizedProps!==null&&B3($.memoizedProps,W,0,""),B==null&&(B=$._debugTask),$={start:Z,end:G,detail:{devtools:{color:"error",track:N4,tooltipText:$.tag===13?"Hydration failed":"Error boundary caught an error",properties:W}}},B?B.run(performance.measure.bind(performance,""+N,$)):performance.measure(""+N,$)}}}function c4($,Z,G,X,N){if(N!==null){if(R1){var B=d($);if(B!==null){X=[];for(var W=0;W<N.length;W++){var R=N[W].value;X.push(["Error",typeof R==="object"&&R!==null&&typeof R.message==="string"?String(R.message):String(R)])}$.key!==null&&d4("key",$.key,X,0,""),$.memoizedProps!==null&&B3($.memoizedProps,X,0,""),Z={start:Z,end:G,detail:{devtools:{color:"error",track:N4,tooltipText:"A lifecycle or effect errored",properties:X}}},($=$._debugTask)?$.run(performance.measure.bind(performance,""+B,Z)):performance.measure(""+B,Z)}}}else B=d($),B!==null&&R1&&(N=1>X?"secondary-light":100>X?"secondary":500>X?"secondary-dark":"error",($=$._debugTask)?$.run(console.timeStamp.bind(console,B,Z,G,N4,void 0,N)):console.timeStamp(B,Z,G,N4,void 0,N))}function nz($,Z,G,X){if(R1&&!(Z<=$)){var N=(G&738197653)===G?"tertiary-dark":"primary-dark";G=(G&536870912)===G?"Prepared":(G&201326741)===G?"Hydrated":"Render",X?X.run(console.timeStamp.bind(console,G,$,Z,u0,g0,N)):console.timeStamp(G,$,Z,u0,g0,N)}}function kK($,Z,G,X){!R1||Z<=$||(G=(G&738197653)===G?"tertiary-dark":"primary-dark",X?X.run(console.timeStamp.bind(console,"Prewarm",$,Z,u0,g0,G)):console.timeStamp("Prewarm",$,Z,u0,g0,G))}function bK($,Z,G,X){!R1||Z<=$||(G=(G&738197653)===G?"tertiary-dark":"primary-dark",X?X.run(console.timeStamp.bind(console,"Suspended",$,Z,u0,g0,G)):console.timeStamp("Suspended",$,Z,u0,g0,G))}function oz($,Z,G,X,N,B){if(R1&&!(Z<=$)){G=[];for(var W=0;W<X.length;W++){var R=X[W].value;G.push(["Recoverable Error",typeof R==="object"&&R!==null&&typeof R.message==="string"?String(R.message):String(R)])}$={start:$,end:Z,detail:{devtools:{color:"primary-dark",track:u0,trackGroup:g0,tooltipText:N?"Hydration Failed":"Recovered after Error",properties:G}}},B?B.run(performance.measure.bind(performance,"Recovered",$)):performance.measure("Recovered",$)}}function H3($,Z,G,X){!R1||Z<=$||(X?X.run(console.timeStamp.bind(console,"Errored",$,Z,u0,g0,"error")):console.timeStamp("Errored",$,Z,u0,g0,"error"))}function az($,Z,G,X){!R1||Z<=$||(X?X.run(console.timeStamp.bind(console,G,$,Z,u0,g0,"secondary-light")):console.timeStamp(G,$,Z,u0,g0,"secondary-light"))}function fK($,Z,G,X,N){if(R1&&!(Z<=$)){for(var B=[],W=0;W<G.length;W++){var R=G[W].value;B.push(["Error",typeof R==="object"&&R!==null&&typeof R.message==="string"?String(R.message):String(R)])}$={start:$,end:Z,detail:{devtools:{color:"error",track:u0,trackGroup:g0,tooltipText:X?"Remaining Effects Errored":"Commit Errored",properties:B}}},N?N.run(performance.measure.bind(performance,"Errored",$)):performance.measure("Errored",$)}}function M7($,Z,G){!R1||Z<=$||(G?G.run(console.timeStamp.bind(console,"Animating",$,Z,u0,g0,"secondary-dark")):console.timeStamp("Animating",$,Z,u0,g0,"secondary-dark"))}function fQ(){for(var $=Y9,Z=hY=Y9=0;Z<$;){var G=K4[Z];K4[Z++]=null;var X=K4[Z];K4[Z++]=null;var N=K4[Z];K4[Z++]=null;var B=K4[Z];if(K4[Z++]=null,X!==null&&N!==null){var W=X.pending;W===null?N.next=N:(N.next=W.next,W.next=N),X.pending=N}B!==0&&yK(G,N,B)}}function yQ($,Z,G,X){K4[Y9++]=$,K4[Y9++]=Z,K4[Y9++]=G,K4[Y9++]=X,hY|=X,$.lanes|=X,$=$.alternate,$!==null&&($.lanes|=X)}function F3($,Z,G,X){return yQ($,Z,G,X),gQ($)}function B5($,Z){return yQ($,null,null,Z),gQ($)}function yK($,Z,G){$.lanes|=G;var X=$.alternate;X!==null&&(X.lanes|=G);for(var N=!1,B=$.return;B!==null;)B.childLanes|=G,X=B.alternate,X!==null&&(X.childLanes|=G),B.tag===22&&($=B.stateNode,$===null||$._visibility&t7||(N=!0)),$=B,B=B.return;return $.tag===3?(B=$.stateNode,N&&Z!==null&&(N=31-R5(G),$=B.hiddenUpdates,X=$[N],X===null?$[N]=[Z]:X.push(Z),Z.lane=G|536870912),B):null}function gQ($){if(CZ>pE)throw G$=CZ=0,IZ=wU=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.");G$>cE&&(G$=0,IZ=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&&tM($);for(var Z=$,G=Z.return;G!==null;)Z.alternate===null&&(Z.flags&4098)!==0&&tM($),Z=G,G=Z.return;return Z.tag===3?Z.stateNode:null}function j2($){if(B4===null)return $;var Z=B4($);return Z===void 0?$:Z.current}function W3($){if(B4===null)return $;var Z=B4($);return Z===void 0?$!==null&&$!==void 0&&typeof $.render==="function"&&(Z=j2($.render),$.render!==Z)?(Z={$$typeof:u7,render:Z},$.displayName!==void 0&&(Z.displayName=$.displayName),Z):$:Z.current}function gK($,Z){if(B4===null)return!1;var G=$.elementType;Z=Z.type;var X=!1,N=typeof Z==="object"&&Z!==null?Z.$$typeof:null;switch($.tag){case 1:typeof Z==="function"&&(X=!0);break;case 0:typeof Z==="function"?X=!0:N===i5&&(X=!0);break;case 11:N===u7?X=!0:N===i5&&(X=!0);break;case 14:case 15:N===bG?X=!0:N===i5&&(X=!0);break;default:return!1}return X&&($=B4(G),$!==void 0&&$===B4(Z))?!0:!1}function hK($){B4!==null&&typeof WeakSet==="function"&&(U9===null&&(U9=new WeakSet),U9.add($))}function xK($,Z,G){do{var X=$,N=X.alternate,B=X.child,W=X.sibling,R=X.tag;X=X.type;var z=null;switch(R){case 0:case 15:case 1:z=X;break;case 11:z=X.render}if(B4===null)throw Error("Expected resolveFamily to be set during hot reload.");var V=!1;if(X=!1,z!==null&&(z=B4(z),z!==void 0&&(G.has(z)?X=!0:Z.has(z)&&(R===1?X=!0:V=!0))),U9!==null&&(U9.has($)||N!==null&&U9.has(N))&&(X=!0),X&&($._debugNeedsRemount=!0),X||V)N=B5($,2),N!==null&&C1(N,$,2);if(B===null||X||xK(B,Z,G),W===null)break;$=W}while(1)}function iz($,Z,G,X){this.tag=$,this.key=G,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=Z,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=X,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,cF||typeof Object.preventExtensions!=="function"||Object.preventExtensions(this)}function R3($){return $=$.prototype,!(!$||!$.isReactComponent)}function O8($,Z){var G=$.alternate;switch(G===null?(G=L($.tag,Z,$.key,$.mode),G.elementType=$.elementType,G.type=$.type,G.stateNode=$.stateNode,G._debugOwner=$._debugOwner,G._debugStack=$._debugStack,G._debugTask=$._debugTask,G._debugHookTypes=$._debugHookTypes,G.alternate=$,$.alternate=G):(G.pendingProps=Z,G.type=$.type,G.flags=0,G.subtreeFlags=0,G.deletions=null,G.actualDuration=-0,G.actualStartTime=-1.1),G.flags=$.flags&65011712,G.childLanes=$.childLanes,G.lanes=$.lanes,G.child=$.child,G.memoizedProps=$.memoizedProps,G.memoizedState=$.memoizedState,G.updateQueue=$.updateQueue,Z=$.dependencies,G.dependencies=Z===null?null:{lanes:Z.lanes,firstContext:Z.firstContext,_debugThenableState:Z._debugThenableState},G.sibling=$.sibling,G.index=$.index,G.ref=$.ref,G.refCleanup=$.refCleanup,G.selfBaseDuration=$.selfBaseDuration,G.treeBaseDuration=$.treeBaseDuration,G._debugInfo=$._debugInfo,G._debugNeedsRemount=$._debugNeedsRemount,G.tag){case 0:case 15:G.type=j2($.type);break;case 1:G.type=j2($.type);break;case 11:G.type=W3($.type)}return G}function uK($,Z){$.flags&=65011714;var G=$.alternate;return G===null?($.childLanes=0,$.lanes=Z,$.child=null,$.subtreeFlags=0,$.memoizedProps=null,$.memoizedState=null,$.updateQueue=null,$.dependencies=null,$.stateNode=null,$.selfBaseDuration=0,$.treeBaseDuration=0):($.childLanes=G.childLanes,$.lanes=G.lanes,$.child=G.child,$.subtreeFlags=0,$.deletions=null,$.memoizedProps=G.memoizedProps,$.memoizedState=G.memoizedState,$.updateQueue=G.updateQueue,$.type=G.type,Z=G.dependencies,$.dependencies=Z===null?null:{lanes:Z.lanes,firstContext:Z.firstContext,_debugThenableState:Z._debugThenableState},$.selfBaseDuration=G.selfBaseDuration,$.treeBaseDuration=G.treeBaseDuration),$}function w3($,Z,G,X,N,B){var W=0,R=$;if(typeof $==="function")R3($)&&(W=1),R=j2(R);else if(typeof $==="string")W=K0(),W=XV($,G,W)?26:$==="html"||$==="head"||$==="body"?27:5;else $:switch($){case NY:return Z=L(31,G,Z,N),Z.elementType=NY,Z.lanes=B,Z;case a$:return A2(G.children,N,B,Z);case kG:W=8,N|=H5,N|=A4;break;case qY:return $=G,X=N,typeof $.id!=="string"&&console.error('Profiler must specify an "id" of type `string` as a prop. Received the type `%s` instead.',typeof $.id),Z=L(12,$,Z,X|j0),Z.elementType=qY,Z.lanes=B,Z.stateNode={effectDuration:0,passiveEffectDuration:0},Z;case YY:return Z=L(13,G,Z,N),Z.elementType=YY,Z.lanes=B,Z;case UY:return Z=L(19,G,Z,N),Z.elementType=UY,Z.lanes=B,Z;default:if(typeof $==="object"&&$!==null)switch($.$$typeof){case q8:W=10;break $;case XY:W=9;break $;case u7:W=11,R=W3(R);break $;case bG:W=14;break $;case i5:W=16,R=null;break $}if(R="",$===void 0||typeof $==="object"&&$!==null&&Object.keys($).length===0)R+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.";$===null?G="null":c1($)?G="array":$!==void 0&&$.$$typeof===J8?(G="<"+(i($.type)||"Unknown")+" />",R=" Did you accidentally export a JSX literal instead of a component?"):G=typeof $,(W=X?Y0(X):null)&&(R+=`
|
|
71
|
+
This will cause a hydration error.%s`,Z,G),!1}function Y7($,Z){if(Z){var G=$.firstChild;if(G&&G===$.lastChild&&G.nodeType===3){G.nodeValue=Z;return}}$.textContent=Z}function g_($){return $.replace(cV,function(Z,G){return G.toUpperCase()})}function wK($,Z,G){var X=Z.indexOf("--")===0;X||(-1<Z.indexOf("-")?e$.hasOwnProperty(Z)&&e$[Z]||(e$[Z]=!0,console.error("Unsupported style property %s. Did you mean %s?",Z,g_(Z.replace(pV,"ms-")))):dV.test(Z)?e$.hasOwnProperty(Z)&&e$[Z]||(e$[Z]=!0,console.error("Unsupported vendor-prefixed style property %s. Did you mean %s?",Z,Z.charAt(0).toUpperCase()+Z.slice(1))):!LF.test(G)||PY.hasOwnProperty(G)&&PY[G]||(PY[G]=!0,console.error(`Style property values shouldn't contain a semicolon. Try "%s: %s" instead.`,Z,G.replace(LF,""))),typeof G==="number"&&(isNaN(G)?VF||(VF=!0,console.error("`NaN` is an invalid value for the `%s` css style property.",Z)):isFinite(G)||EF||(EF=!0,console.error("`Infinity` is an invalid value for the `%s` css style property.",Z)))),G==null||typeof G==="boolean"||G===""?X?$.setProperty(Z,""):Z==="float"?$.cssFloat="":$[Z]="":X?$.setProperty(Z,G):typeof G!=="number"||G===0||PF.has(Z)?Z==="float"?$.cssFloat=G:(Q7(G,Z),$[Z]=(""+G).trim()):$[Z]=G+"px"}function RK($,Z,G){if(Z!=null&&typeof Z!=="object")throw Error("The `style` prop expects a mapping from style properties to values, not a string. For example, style={{marginRight: spacing + 'em'}} when using JSX.");if(Z&&Object.freeze(Z),$=$.style,G!=null){if(Z){var X={};if(G){for(var N in G)if(G.hasOwnProperty(N)&&!Z.hasOwnProperty(N))for(var B=EY[N]||[N],W=0;W<B.length;W++)X[B[W]]=N}for(var w in Z)if(Z.hasOwnProperty(w)&&(!G||G[w]!==Z[w]))for(N=EY[w]||[w],B=0;B<N.length;B++)X[N[B]]=w;w={};for(var _ in Z)for(N=EY[_]||[_],B=0;B<N.length;B++)w[N[B]]=_;_={};for(var V in X)if(N=X[V],(B=w[V])&&N!==B&&(W=N+","+B,!_[W])){_[W]=!0,W=console;var k=Z[N];W.error.call(W,"%s a style property during rerender (%s) when a conflicting property is set (%s) can lead to styling bugs. To avoid this, don't mix shorthand and non-shorthand properties for the same value; instead, replace the shorthand with separate values.",k==null||typeof k==="boolean"||k===""?"Removing":"Updating",N,B)}}for(var b in G)!G.hasOwnProperty(b)||Z!=null&&Z.hasOwnProperty(b)||(b.indexOf("--")===0?$.setProperty(b,""):b==="float"?$.cssFloat="":$[b]="");for(var D in Z)V=Z[D],Z.hasOwnProperty(D)&&G[D]!==V&&wK($,D,V)}else for(X in Z)Z.hasOwnProperty(X)&&wK($,X,Z[X])}function U7($){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 TK($){return lV.get($)||$}function h_($,Z){if(D4.call(Z9,Z)&&Z9[Z])return!0;if(sV.test(Z)){if($="aria-"+Z.slice(4).toLowerCase(),$=CF.hasOwnProperty($)?$:null,$==null)return console.error("Invalid ARIA attribute `%s`. ARIA attributes follow the pattern aria-* and must be lowercase.",Z),Z9[Z]=!0;if(Z!==$)return console.error("Invalid ARIA attribute `%s`. Did you mean `%s`?",Z,$),Z9[Z]=!0}if(rV.test(Z)){if($=Z.toLowerCase(),$=CF.hasOwnProperty($)?$:null,$==null)return Z9[Z]=!0,!1;Z!==$&&(console.error("Unknown ARIA attribute `%s`. Did you mean `%s`?",Z,$),Z9[Z]=!0)}return!0}function x_($,Z){var G=[],X;for(X in Z)h_($,X)||G.push(X);Z=G.map(function(N){return"`"+N+"`"}).join(", "),G.length===1?console.error("Invalid aria prop %s on <%s> tag. For details, see https://react.dev/link/invalid-aria-props",Z,$):1<G.length&&console.error("Invalid aria props %s on <%s> tag. For details, see https://react.dev/link/invalid-aria-props",Z,$)}function u_($,Z,G,X){if(D4.call(T5,Z)&&T5[Z])return!0;var N=Z.toLowerCase();if(N==="onfocusin"||N==="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."),T5[Z]=!0;if(typeof G==="function"&&($==="form"&&Z==="action"||$==="input"&&Z==="formAction"||$==="button"&&Z==="formAction"))return!0;if(X!=null){if($=X.possibleRegistrationNames,X.registrationNameDependencies.hasOwnProperty(Z))return!0;if(X=$.hasOwnProperty(N)?$[N]:null,X!=null)return console.error("Invalid event handler property `%s`. Did you mean `%s`?",Z,X),T5[Z]=!0;if(OF.test(Z))return console.error("Unknown event handler property `%s`. It will be ignored.",Z),T5[Z]=!0}else if(OF.test(Z))return nV.test(Z)&&console.error("Invalid event handler property `%s`. React events use the camelCase naming convention, for example `onClick`.",Z),T5[Z]=!0;if(oV.test(Z)||aV.test(Z))return!0;if(N==="innerhtml")return console.error("Directly setting property `innerHTML` is not permitted. For more information, lookup documentation on `dangerouslySetInnerHTML`."),T5[Z]=!0;if(N==="aria")return console.error("The `aria` attribute is reserved for future use in React. Pass individual `aria-` attributes instead."),T5[Z]=!0;if(N==="is"&&G!==null&&G!==void 0&&typeof G!=="string")return console.error("Received a `%s` for a string attribute `is`. If this is expected, cast the value to a string.",typeof G),T5[Z]=!0;if(typeof G==="number"&&isNaN(G))return console.error("Received NaN for the `%s` attribute. If this is expected, cast the value to a string.",Z),T5[Z]=!0;if(dG.hasOwnProperty(N)){if(N=dG[N],N!==Z)return console.error("Invalid DOM property `%s`. Did you mean `%s`?",Z,N),T5[Z]=!0}else if(Z!==N)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,N),T5[Z]=!0;switch(Z){case"dangerouslySetInnerHTML":case"children":case"style":case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":return!0;case"innerText":case"textContent":return!0}switch(typeof G){case"boolean":switch(Z){case"autoFocus":case"checked":case"multiple":case"muted":case"selected":case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":case"capture":case"download":case"inert":return!0;default:if(N=Z.toLowerCase().slice(0,5),N==="data-"||N==="aria-")return!0;return G?console.error('Received `%s` for a non-boolean attribute `%s`.\n\nIf you want to write it to the DOM, pass a string instead: %s="%s" or %s={value.toString()}.',G,Z,Z,G,Z):console.error('Received `%s` for a non-boolean attribute `%s`.\n\nIf you want to write it to the DOM, pass a string instead: %s="%s" or %s={value.toString()}.\n\nIf you used to conditionally omit it with %s={condition && value}, pass %s={condition ? value : undefined} instead.',G,Z,Z,G,Z,Z,Z),T5[Z]=!0}case"function":case"symbol":return T5[Z]=!0,!1;case"string":if(G==="false"||G==="true"){switch(Z){case"checked":case"selected":case"multiple":case"muted":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":case"inert":break;default:return!0}console.error("Received the string `%s` for the boolean attribute `%s`. %s Did you mean %s={%s}?",G,Z,G==="false"?"The browser will interpret it as a truthy value.":'Although this works, it will not work as expected if you pass the string "false".',Z,G),T5[Z]=!0}}return!0}function m_($,Z,G){var X=[],N;for(N in Z)u_($,N,Z[N],G)||X.push(N);Z=X.map(function(B){return"`"+B+"`"}).join(", "),X.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<X.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 N7($){return iV.test(""+$)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":$}function I8(){}function K3($){return $=$.target||$.srcElement||window,$.correspondingUseElement&&($=$.correspondingUseElement),$.nodeType===3?$.parentNode:$}function zK($){var Z=E0($);if(Z&&($=Z.stateNode)){var G=$[R5]||null;$:switch($=Z.stateNode,Z.type){case"input":if(G3($,G.value,G.defaultValue,G.defaultValue,G.checked,G.defaultChecked,G.type,G.name),Z=G.name,G.type==="radio"&&Z!=null){for(G=$;G.parentNode;)G=G.parentNode;Y1(Z,"name"),G=G.querySelectorAll('input[name="'+Y4(""+Z)+'"][type="radio"]');for(Z=0;Z<G.length;Z++){var X=G[Z];if(X!==$&&X.form===$.form){var N=X[R5]||null;if(!N)throw Error("ReactDOMInput: Mixing React and non-React radio inputs with the same `name` is not supported.");G3(X,N.value,N.defaultValue,N.defaultValue,N.checked,N.defaultChecked,N.type,N.name)}}for(Z=0;Z<G.length;Z++)X=G[Z],X.form===$.form&&$K(X)}break $;case"textarea":YK($,G.value,G.defaultValue);break $;case"select":Z=G.value,Z!=null&&S$($,!!G.multiple,Z,!1)}}}function _K($,Z,G){if(CY)return $(Z,G);CY=!0;try{var X=$(Z);return X}finally{if(CY=!1,Q9!==null||G9!==null){if(p$(),Q9&&(Z=Q9,$=G9,G9=Q9=null,zK(Z),$))for(Z=0;Z<$.length;Z++)zK($[Z])}}}function K7($,Z){var G=$.stateNode;if(G===null)return null;var X=G[R5]||null;if(X===null)return null;G=X[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":(X=!X.disabled)||($=$.type,X=!($==="button"||$==="input"||$==="select"||$==="textarea")),$=!X;break $;default:$=!1}if($)return null;if(G&&typeof G!=="function")throw Error("Expected `"+Z+"` listener to be a function, instead got a value of `"+typeof G+"` type.");return G}function LK(){if(pG)return pG;var $,Z=OY,G=Z.length,X,N="value"in S6?S6.value:S6.textContent,B=N.length;for($=0;$<G&&Z[$]===N[$];$++);var W=G-$;for(X=1;X<=W&&Z[G-X]===N[B-X];X++);return pG=N.slice($,1<X?1-X:void 0)}function AQ($){var Z=$.keyCode;return"charCode"in $?($=$.charCode,$===0&&Z===13&&($=13)):$=Z,$===10&&($=13),32<=$||$===13?$:0}function SQ(){return!0}function VK(){return!1}function I5($){function Z(G,X,N,B,W){this._reactName=G,this._targetInst=N,this.type=X,this.nativeEvent=B,this.target=W,this.currentTarget=null;for(var w in $)$.hasOwnProperty(w)&&(G=$[w],this[w]=G?G(B):B[w]);return this.isDefaultPrevented=(B.defaultPrevented!=null?B.defaultPrevented:B.returnValue===!1)?SQ:VK,this.isPropagationStopped=VK,this}return y0(Z.prototype,{preventDefault:function(){this.defaultPrevented=!0;var G=this.nativeEvent;G&&(G.preventDefault?G.preventDefault():typeof G.returnValue!=="unknown"&&(G.returnValue=!1),this.isDefaultPrevented=SQ)},stopPropagation:function(){var G=this.nativeEvent;G&&(G.stopPropagation?G.stopPropagation():typeof G.cancelBubble!=="unknown"&&(G.cancelBubble=!0),this.isPropagationStopped=SQ)},persist:function(){},isPersistent:SQ}),Z}function d_($){var Z=this.nativeEvent;return Z.getModifierState?Z.getModifierState($):($=KE[$])?!!Z[$]:!1}function B3(){return d_}function EK($,Z){switch($){case"keyup":return VE.indexOf(Z.keyCode)!==-1;case"keydown":return Z.keyCode!==SF;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function PK($){return $=$.detail,typeof $==="object"&&"data"in $?$.data:null}function p_($,Z){switch($){case"compositionend":return PK(Z);case"keypress":if(Z.which!==kF)return null;return fF=!0,bF;case"textInput":return $=Z.data,$===bF&&fF?null:$;default:return null}}function c_($,Z){if(J9)return $==="compositionend"||!SY&&EK($,Z)?($=LK(),pG=OY=S6=null,J9=!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 vF&&Z.locale!=="ko"?null:Z.data;default:return null}}function CK($){var Z=$&&$.nodeName&&$.nodeName.toLowerCase();return Z==="input"?!!PE[$.type]:Z==="textarea"?!0:!1}function l_($){if(!K8)return!1;$="on"+$;var Z=$ in document;return Z||(Z=document.createElement("div"),Z.setAttribute($,"return;"),Z=typeof Z[$]==="function"),Z}function IK($,Z,G,X){Q9?G9?G9.push(X):G9=[X]:Q9=X,Z=EG(Z,"onChange"),0<Z.length&&(G=new cG("onChange","change",null,G,X),$.push({event:G,listeners:Z}))}function r_($){UM($,0)}function vQ($){var Z=P0($);if($K(Z))return $}function OK($,Z){if($==="change")return Z}function DK(){o7&&(o7.detachEvent("onpropertychange",jK),a7=o7=null)}function jK($){if($.propertyName==="value"&&vQ(a7)){var Z=[];IK(Z,a7,$,K3($)),_K(r_,Z)}}function s_($,Z,G){$==="focusin"?(DK(),o7=Z,a7=G,o7.attachEvent("onpropertychange",jK)):$==="focusout"&&DK()}function n_($){if($==="selectionchange"||$==="keyup"||$==="keydown")return vQ(a7)}function o_($,Z){if($==="click")return vQ(Z)}function a_($,Z){if($==="input"||$==="change")return vQ(Z)}function i_($,Z){return $===Z&&($!==0||1/$===1/Z)||$!==$&&Z!==Z}function B7($,Z){if(z5($,Z))return!0;if(typeof $!=="object"||$===null||typeof Z!=="object"||Z===null)return!1;var G=Object.keys($),X=Object.keys(Z);if(G.length!==X.length)return!1;for(X=0;X<G.length;X++){var N=G[X];if(!D4.call(Z,N)||!z5($[N],Z[N]))return!1}return!0}function AK($){for(;$&&$.firstChild;)$=$.firstChild;return $}function SK($,Z){var G=AK($);$=0;for(var X;G;){if(G.nodeType===3){if(X=$+G.textContent.length,$<=Z&&X>=Z)return{node:G,offset:Z-$};$=X}$:{for(;G;){if(G.nextSibling){G=G.nextSibling;break $}G=G.parentNode}G=void 0}G=AK(G)}}function vK($,Z){return $&&Z?$===Z?!0:$&&$.nodeType===3?!1:Z&&Z.nodeType===3?vK($,Z.parentNode):("contains"in $)?$.contains(Z):$.compareDocumentPosition?!!($.compareDocumentPosition(Z)&16):!1:!1}function kK($){$=$!=null&&$.ownerDocument!=null&&$.ownerDocument.defaultView!=null?$.ownerDocument.defaultView:window;for(var Z=OQ($.document);Z instanceof $.HTMLIFrameElement;){try{var G=typeof Z.contentWindow.location.href==="string"}catch(X){G=!1}if(G)$=Z.contentWindow;else break;Z=OQ($.document)}return Z}function H3($){var Z=$&&$.nodeName&&$.nodeName.toLowerCase();return Z&&(Z==="input"&&($.type==="text"||$.type==="search"||$.type==="tel"||$.type==="url"||$.type==="password")||Z==="textarea"||$.contentEditable==="true")}function bK($,Z,G){var X=G.window===G?G.document:G.nodeType===9?G:G.ownerDocument;kY||q9==null||q9!==OQ(X)||(X=q9,("selectionStart"in X)&&H3(X)?X={start:X.selectionStart,end:X.selectionEnd}:(X=(X.ownerDocument&&X.ownerDocument.defaultView||window).getSelection(),X={anchorNode:X.anchorNode,anchorOffset:X.anchorOffset,focusNode:X.focusNode,focusOffset:X.focusOffset}),i7&&B7(i7,X)||(i7=X,X=EG(vY,"onSelect"),0<X.length&&(Z=new cG("onSelect","select",null,Z,G),$.push({event:Z,listeners:X}),Z.target=q9)))}function O2($,Z){var G={};return G[$.toLowerCase()]=Z.toLowerCase(),G["Webkit"+$]="webkit"+Z,G["Moz"+$]="moz"+Z,G}function D2($){if(bY[$])return bY[$];if(!X9[$])return $;var Z=X9[$],G;for(G in Z)if(Z.hasOwnProperty(G)&&G in gF)return bY[$]=Z[G];return $}function C4($,Z){dF.set($,Z),K5(Z,[$])}function t_($){for(var Z=rG,G=0;G<$.length;G++){var X=$[G];if(typeof X==="object"&&X!==null)if(c1(X)&&X.length===2&&typeof X[0]==="string"){if(Z!==rG&&Z!==xY)return gY;Z=xY}else return gY;else{if(typeof X==="function"||typeof X==="string"&&50<X.length||Z!==rG&&Z!==hY)return gY;Z=hY}}return Z}function M3($,Z,G,X){for(var N in $)D4.call($,N)&&N[0]!=="_"&&d4(N,$[N],Z,G,X)}function d4($,Z,G,X,N){switch(typeof Z){case"object":if(Z===null){Z="null";break}else{if(Z.$$typeof===J8){var B=i(Z.type)||"…",W=Z.key;Z=Z.props;var w=Object.keys(Z),_=w.length;if(W==null&&_===0){Z="<"+B+" />";break}if(3>X||_===1&&w[0]==="children"&&W==null){Z="<"+B+" … />";break}G.push([N+" ".repeat(X)+$,"<"+B]),W!==null&&d4("key",W,G,X+1,N),$=!1;for(var V in Z)V==="children"?Z.children!=null&&(!c1(Z.children)||0<Z.children.length)&&($=!0):D4.call(Z,V)&&V[0]!=="_"&&d4(V,Z[V],G,X+1,N);G.push(["",$?">…</"+B+">":"/>"]);return}if(B=Object.prototype.toString.call(Z),B=B.slice(8,B.length-1),B==="Array"){if(V=t_(Z),V===hY||V===rG){Z=JSON.stringify(Z);break}else if(V===xY){G.push([N+" ".repeat(X)+$,""]);for($=0;$<Z.length;$++)B=Z[$],d4(B[0],B[1],G,X+1,N);return}}if(B==="Promise"){if(Z.status==="fulfilled"){if(B=G.length,d4($,Z.value,G,X,N),G.length>B){G=G[B],G[1]="Promise<"+(G[1]||"Object")+">";return}}else if(Z.status==="rejected"&&(B=G.length,d4($,Z.reason,G,X,N),G.length>B)){G=G[B],G[1]="Rejected Promise<"+G[1]+">";return}G.push([" ".repeat(X)+$,"Promise"]);return}B==="Object"&&(V=Object.getPrototypeOf(Z))&&typeof V.constructor==="function"&&(B=V.constructor.name),G.push([N+" ".repeat(X)+$,B==="Object"?3>X?"":"…":B]),3>X&&M3(Z,G,X+1,N);return}case"function":Z=Z.name===""?"() => {}":Z.name+"() {}";break;case"string":Z=Z===SE?"…":JSON.stringify(Z);break;case"undefined":Z="undefined";break;case"boolean":Z=Z?"true":"false";break;default:Z=String(Z)}G.push([N+" ".repeat(X)+$,Z])}function fK($,Z,G,X){var N=!0;for(W in $)W in Z||(G.push([sG+" ".repeat(X)+W,"…"]),N=!1);for(var B in Z)if(B in $){var W=$[B],w=Z[B];if(W!==w){if(X===0&&B==="children")N=" ".repeat(X)+B,G.push([sG+N,"…"],[nG+N,"…"]);else{if(!(3<=X)){if(typeof W==="object"&&typeof w==="object"&&W!==null&&w!==null&&W.$$typeof===w.$$typeof)if(w.$$typeof===J8){if(W.type===w.type&&W.key===w.key){W=i(w.type)||"…",N=" ".repeat(X)+B,W="<"+W+" … />",G.push([sG+N,W],[nG+N,W]),N=!1;continue}}else{var _=Object.prototype.toString.call(W),V=Object.prototype.toString.call(w);if(_===V&&(V==="[object Object]"||V==="[object Array]")){_=[lF+" ".repeat(X)+B,V==="[object Array]"?"Array":""],G.push(_),V=G.length,fK(W,w,G,X+1)?V===G.length&&(_[1]="Referentially unequal but deeply equal objects. Consider memoization."):N=!1;continue}}else if(typeof W==="function"&&typeof w==="function"&&W.name===w.name&&W.length===w.length&&(_=Function.prototype.toString.call(W),V=Function.prototype.toString.call(w),_===V)){W=w.name===""?"() => {}":w.name+"() {}",G.push([lF+" ".repeat(X)+B,W+" Referentially unequal function closure. Consider memoization."]);continue}}d4(B,W,G,X,sG),d4(B,w,G,X,nG)}N=!1}}else G.push([nG+" ".repeat(X)+B,"…"]),N=!1;return N}function c5($){u0=$&63?"Blocking":$&64?"Gesture":$&4194176?"Transition":$&62914560?"Suspense":$&2080374784?"Idle":"Other"}function p4($,Z,G,X){w1&&(k6.start=Z,k6.end=G,f8.color="warning",f8.tooltipText=X,f8.properties=null,($=$._debugTask)?$.run(performance.measure.bind(performance,X,k6)):performance.measure(X,k6))}function kQ($,Z,G){p4($,Z,G,"Reconnect")}function bQ($,Z,G,X,N){var B=d($);if(B!==null&&w1){var{alternate:W,actualDuration:w}=$;if(W===null||W.child!==$.child)for(var _=$.child;_!==null;_=_.sibling)w-=_.actualDuration;X=0.5>w?X?"tertiary-light":"primary-light":10>w?X?"tertiary":"primary":100>w?X?"tertiary-dark":"primary-dark":"error";var V=$.memoizedProps;w=$._debugTask,V!==null&&W!==null&&W.memoizedProps!==V?(_=[vE],V=fK(W.memoizedProps,V,_,0),1<_.length&&(V&&!v6&&(W.lanes&N)===0&&100<$.actualDuration?(v6=!0,_[0]=kE,f8.color="warning",f8.tooltipText=rF):(f8.color=X,f8.tooltipText=B),f8.properties=_,k6.start=Z,k6.end=G,w!=null?w.run(performance.measure.bind(performance,""+B,k6)):performance.measure(""+B,k6))):w!=null?w.run(console.timeStamp.bind(console,B,Z,G,N4,void 0,X)):console.timeStamp(B,Z,G,N4,void 0,X)}}function F3($,Z,G,X){if(w1){var N=d($);if(N!==null){for(var B=null,W=[],w=0;w<X.length;w++){var _=X[w];B==null&&_.source!==null&&(B=_.source._debugTask),_=_.value,W.push(["Error",typeof _==="object"&&_!==null&&typeof _.message==="string"?String(_.message):String(_)])}$.key!==null&&d4("key",$.key,W,0,""),$.memoizedProps!==null&&M3($.memoizedProps,W,0,""),B==null&&(B=$._debugTask),$={start:Z,end:G,detail:{devtools:{color:"error",track:N4,tooltipText:$.tag===13?"Hydration failed":"Error boundary caught an error",properties:W}}},B?B.run(performance.measure.bind(performance,""+N,$)):performance.measure(""+N,$)}}}function c4($,Z,G,X,N){if(N!==null){if(w1){var B=d($);if(B!==null){X=[];for(var W=0;W<N.length;W++){var w=N[W].value;X.push(["Error",typeof w==="object"&&w!==null&&typeof w.message==="string"?String(w.message):String(w)])}$.key!==null&&d4("key",$.key,X,0,""),$.memoizedProps!==null&&M3($.memoizedProps,X,0,""),Z={start:Z,end:G,detail:{devtools:{color:"error",track:N4,tooltipText:"A lifecycle or effect errored",properties:X}}},($=$._debugTask)?$.run(performance.measure.bind(performance,""+B,Z)):performance.measure(""+B,Z)}}}else B=d($),B!==null&&w1&&(N=1>X?"secondary-light":100>X?"secondary":500>X?"secondary-dark":"error",($=$._debugTask)?$.run(console.timeStamp.bind(console,B,Z,G,N4,void 0,N)):console.timeStamp(B,Z,G,N4,void 0,N))}function e_($,Z,G,X){if(w1&&!(Z<=$)){var N=(G&738197653)===G?"tertiary-dark":"primary-dark";G=(G&536870912)===G?"Prepared":(G&201326741)===G?"Hydrated":"Render",X?X.run(console.timeStamp.bind(console,G,$,Z,u0,g0,N)):console.timeStamp(G,$,Z,u0,g0,N)}}function yK($,Z,G,X){!w1||Z<=$||(G=(G&738197653)===G?"tertiary-dark":"primary-dark",X?X.run(console.timeStamp.bind(console,"Prewarm",$,Z,u0,g0,G)):console.timeStamp("Prewarm",$,Z,u0,g0,G))}function gK($,Z,G,X){!w1||Z<=$||(G=(G&738197653)===G?"tertiary-dark":"primary-dark",X?X.run(console.timeStamp.bind(console,"Suspended",$,Z,u0,g0,G)):console.timeStamp("Suspended",$,Z,u0,g0,G))}function $L($,Z,G,X,N,B){if(w1&&!(Z<=$)){G=[];for(var W=0;W<X.length;W++){var w=X[W].value;G.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:u0,trackGroup:g0,tooltipText:N?"Hydration Failed":"Recovered after Error",properties:G}}},B?B.run(performance.measure.bind(performance,"Recovered",$)):performance.measure("Recovered",$)}}function W3($,Z,G,X){!w1||Z<=$||(X?X.run(console.timeStamp.bind(console,"Errored",$,Z,u0,g0,"error")):console.timeStamp("Errored",$,Z,u0,g0,"error"))}function ZL($,Z,G,X){!w1||Z<=$||(X?X.run(console.timeStamp.bind(console,G,$,Z,u0,g0,"secondary-light")):console.timeStamp(G,$,Z,u0,g0,"secondary-light"))}function hK($,Z,G,X,N){if(w1&&!(Z<=$)){for(var B=[],W=0;W<G.length;W++){var w=G[W].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:u0,trackGroup:g0,tooltipText:X?"Remaining Effects Errored":"Commit Errored",properties:B}}},N?N.run(performance.measure.bind(performance,"Errored",$)):performance.measure("Errored",$)}}function H7($,Z,G){!w1||Z<=$||(G?G.run(console.timeStamp.bind(console,"Animating",$,Z,u0,g0,"secondary-dark")):console.timeStamp("Animating",$,Z,u0,g0,"secondary-dark"))}function fQ(){for(var $=Y9,Z=uY=Y9=0;Z<$;){var G=K4[Z];K4[Z++]=null;var X=K4[Z];K4[Z++]=null;var N=K4[Z];K4[Z++]=null;var B=K4[Z];if(K4[Z++]=null,X!==null&&N!==null){var W=X.pending;W===null?N.next=N:(N.next=W.next,W.next=N),X.pending=N}B!==0&&xK(G,N,B)}}function yQ($,Z,G,X){K4[Y9++]=$,K4[Y9++]=Z,K4[Y9++]=G,K4[Y9++]=X,uY|=X,$.lanes|=X,$=$.alternate,$!==null&&($.lanes|=X)}function w3($,Z,G,X){return yQ($,Z,G,X),gQ($)}function B5($,Z){return yQ($,null,null,Z),gQ($)}function xK($,Z,G){$.lanes|=G;var X=$.alternate;X!==null&&(X.lanes|=G);for(var N=!1,B=$.return;B!==null;)B.childLanes|=G,X=B.alternate,X!==null&&(X.childLanes|=G),B.tag===22&&($=B.stateNode,$===null||$._visibility&t7||(N=!0)),$=B,B=B.return;return $.tag===3?(B=$.stateNode,N&&Z!==null&&(N=31-w5(G),$=B.hiddenUpdates,X=$[N],X===null?$[N]=[Z]:X.push(Z),Z.lane=G|536870912),B):null}function gQ($){if(CZ>nE)throw G$=CZ=0,IZ=zU=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.");G$>oE&&(G$=0,IZ=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&&ZM($);for(var Z=$,G=Z.return;G!==null;)Z.alternate===null&&(Z.flags&4098)!==0&&ZM($),Z=G,G=Z.return;return Z.tag===3?Z.stateNode:null}function j2($){if(B4===null)return $;var Z=B4($);return Z===void 0?$:Z.current}function R3($){if(B4===null)return $;var Z=B4($);return Z===void 0?$!==null&&$!==void 0&&typeof $.render==="function"&&(Z=j2($.render),$.render!==Z)?(Z={$$typeof:u7,render:Z},$.displayName!==void 0&&(Z.displayName=$.displayName),Z):$:Z.current}function uK($,Z){if(B4===null)return!1;var G=$.elementType;Z=Z.type;var X=!1,N=typeof Z==="object"&&Z!==null?Z.$$typeof:null;switch($.tag){case 1:typeof Z==="function"&&(X=!0);break;case 0:typeof Z==="function"?X=!0:N===i5&&(X=!0);break;case 11:N===u7?X=!0:N===i5&&(X=!0);break;case 14:case 15:N===bG?X=!0:N===i5&&(X=!0);break;default:return!1}return X&&($=B4(G),$!==void 0&&$===B4(Z))?!0:!1}function mK($){B4!==null&&typeof WeakSet==="function"&&(U9===null&&(U9=new WeakSet),U9.add($))}function dK($,Z,G){do{var X=$,N=X.alternate,B=X.child,W=X.sibling,w=X.tag;X=X.type;var _=null;switch(w){case 0:case 15:case 1:_=X;break;case 11:_=X.render}if(B4===null)throw Error("Expected resolveFamily to be set during hot reload.");var V=!1;if(X=!1,_!==null&&(_=B4(_),_!==void 0&&(G.has(_)?X=!0:Z.has(_)&&(w===1?X=!0:V=!0))),U9!==null&&(U9.has($)||N!==null&&U9.has(N))&&(X=!0),X&&($._debugNeedsRemount=!0),X||V)N=B5($,2),N!==null&&C1(N,$,2);if(B===null||X||dK(B,Z,G),W===null)break;$=W}while(1)}function QL($,Z,G,X){this.tag=$,this.key=G,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=Z,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=X,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,sF||typeof Object.preventExtensions!=="function"||Object.preventExtensions(this)}function T3($){return $=$.prototype,!(!$||!$.isReactComponent)}function O8($,Z){var G=$.alternate;switch(G===null?(G=L($.tag,Z,$.key,$.mode),G.elementType=$.elementType,G.type=$.type,G.stateNode=$.stateNode,G._debugOwner=$._debugOwner,G._debugStack=$._debugStack,G._debugTask=$._debugTask,G._debugHookTypes=$._debugHookTypes,G.alternate=$,$.alternate=G):(G.pendingProps=Z,G.type=$.type,G.flags=0,G.subtreeFlags=0,G.deletions=null,G.actualDuration=-0,G.actualStartTime=-1.1),G.flags=$.flags&65011712,G.childLanes=$.childLanes,G.lanes=$.lanes,G.child=$.child,G.memoizedProps=$.memoizedProps,G.memoizedState=$.memoizedState,G.updateQueue=$.updateQueue,Z=$.dependencies,G.dependencies=Z===null?null:{lanes:Z.lanes,firstContext:Z.firstContext,_debugThenableState:Z._debugThenableState},G.sibling=$.sibling,G.index=$.index,G.ref=$.ref,G.refCleanup=$.refCleanup,G.selfBaseDuration=$.selfBaseDuration,G.treeBaseDuration=$.treeBaseDuration,G._debugInfo=$._debugInfo,G._debugNeedsRemount=$._debugNeedsRemount,G.tag){case 0:case 15:G.type=j2($.type);break;case 1:G.type=j2($.type);break;case 11:G.type=R3($.type)}return G}function pK($,Z){$.flags&=65011714;var G=$.alternate;return G===null?($.childLanes=0,$.lanes=Z,$.child=null,$.subtreeFlags=0,$.memoizedProps=null,$.memoizedState=null,$.updateQueue=null,$.dependencies=null,$.stateNode=null,$.selfBaseDuration=0,$.treeBaseDuration=0):($.childLanes=G.childLanes,$.lanes=G.lanes,$.child=G.child,$.subtreeFlags=0,$.deletions=null,$.memoizedProps=G.memoizedProps,$.memoizedState=G.memoizedState,$.updateQueue=G.updateQueue,$.type=G.type,Z=G.dependencies,$.dependencies=Z===null?null:{lanes:Z.lanes,firstContext:Z.firstContext,_debugThenableState:Z._debugThenableState},$.selfBaseDuration=G.selfBaseDuration,$.treeBaseDuration=G.treeBaseDuration),$}function z3($,Z,G,X,N,B){var W=0,w=$;if(typeof $==="function")T3($)&&(W=1),w=j2(w);else if(typeof $==="string")W=K0(),W=BV($,G,W)?26:$==="html"||$==="head"||$==="body"?27:5;else $:switch($){case BY:return Z=L(31,G,Z,N),Z.elementType=BY,Z.lanes=B,Z;case a$:return A2(G.children,N,B,Z);case kG:W=8,N|=M5,N|=A4;break;case YY:return $=G,X=N,typeof $.id!=="string"&&console.error('Profiler must specify an "id" of type `string` as a prop. Received the type `%s` instead.',typeof $.id),Z=L(12,$,Z,X|j0),Z.elementType=YY,Z.lanes=B,Z.stateNode={effectDuration:0,passiveEffectDuration:0},Z;case NY:return Z=L(13,G,Z,N),Z.elementType=NY,Z.lanes=B,Z;case KY:return Z=L(19,G,Z,N),Z.elementType=KY,Z.lanes=B,Z;default:if(typeof $==="object"&&$!==null)switch($.$$typeof){case q8:W=10;break $;case UY:W=9;break $;case u7:W=11,w=R3(w);break $;case bG:W=14;break $;case i5:W=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?G="null":c1($)?G="array":$!==void 0&&$.$$typeof===J8?(G="<"+(i($.type)||"Unknown")+" />",w=" Did you accidentally export a JSX literal instead of a component?"):G=typeof $,(W=X?Y0(X):null)&&(w+=`
|
|
72
72
|
|
|
73
|
-
Check the render method of \``+W+"`."),W=29,G=Error("Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) but got: "+(G+"."+
|
|
73
|
+
Check the render method of \``+W+"`."),W=29,G=Error("Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) but got: "+(G+"."+w)),w=null}return Z=L(W,G,Z,N),Z.elementType=$,Z.type=w,Z.lanes=B,Z._debugOwner=X,Z}function hQ($,Z,G){return Z=z3($.type,$.key,$.props,$._owner,Z,G),Z._debugOwner=$._owner,Z._debugStack=$._debugStack,Z._debugTask=$._debugTask,Z}function A2($,Z,G,X){return $=L(7,$,X,Z),$.lanes=G,$}function _3($,Z,G){return $=L(6,$,null,Z),$.lanes=G,$}function cK($){var Z=L(18,null,null,_0);return Z.stateNode=$,Z}function L3($,Z,G){return Z=L(4,$.children!==null?$.children:[],$.key,Z),Z.lanes=G,Z.stateNode={containerInfo:$.containerInfo,pendingChildren:null,implementation:$.implementation},Z}function l5($,Z){if(typeof $==="object"&&$!==null){var G=mY.get($);if(G!==void 0)return G;return Z={value:$,source:Z,stack:f1(Z)},mY.set($,Z),Z}return{value:$,source:Z,stack:f1(Z)}}function D8($,Z){W6(),N9[K9++]=e7,N9[K9++]=oG,oG=$,e7=Z}function lK($,Z,G){W6(),H4[M4++]=g8,H4[M4++]=h8,H4[M4++]=p2,p2=$;var X=g8;$=h8;var N=32-w5(X)-1;X&=~(1<<N),G+=1;var B=32-w5(Z)+N;if(30<B){var W=N-N%5;B=(X&(1<<W)-1).toString(32),X>>=W,N-=W,g8=1<<32-w5(Z)+N|G<<N|X,h8=B+$}else g8=1<<B|G<<N|X,h8=$}function V3($){W6(),$.return!==null&&(D8($,1),lK($,1,0))}function E3($){for(;$===oG;)oG=N9[--K9],N9[K9]=null,e7=N9[--K9],N9[K9]=null;for(;$===p2;)p2=H4[--M4],H4[M4]=null,h8=H4[--M4],H4[M4]=null,g8=H4[--M4],H4[M4]=null}function rK(){return W6(),p2!==null?{id:g8,overflow:h8}:null}function sK($,Z){W6(),H4[M4++]=g8,H4[M4++]=h8,H4[M4++]=p2,g8=Z.id,h8=Z.overflow,p2=$}function W6(){p0||console.error("Expected to be hydrating. This is a bug in React. Please file an issue.")}function S2($,Z){if($.return===null){if($4===null)$4={fiber:$,children:[],serverProps:void 0,serverTail:[],distanceFromLeaf:Z};else{if($4.fiber!==$)throw Error("Saw multiple hydration diff roots in a pass. This is a bug in React.");$4.distanceFromLeaf>Z&&($4.distanceFromLeaf=Z)}return $4}var G=S2($.return,Z+1).children;if(0<G.length&&G[G.length-1].fiber===$)return G=G[G.length-1],G.distanceFromLeaf>Z&&(G.distanceFromLeaf=Z),G;return Z={fiber:$,children:[],serverProps:void 0,serverTail:[],distanceFromLeaf:Z},G.push(Z),Z}function nK(){p0&&console.error("We should not be hydrating here. This is a bug in React. Please file a bug.")}function xQ($,Z){B8||($=S2($,0),$.serverProps=null,Z!==null&&(Z=IM(Z),$.serverTail.push(Z)))}function w6($){var Z=1<arguments.length&&arguments[1]!==void 0?arguments[1]:!1,G="",X=$4;throw X!==null&&($4=null,G=U3(X)),M7(l5(Error("Hydration failed because the server rendered "+(Z?"text":"HTML")+` didn't match the client. As a result this tree will be regenerated on the client. This can happen if a SSR-ed Client Component used:
|
|
74
74
|
|
|
75
75
|
- A server/client branch \`if (typeof window !== 'undefined')\`.
|
|
76
76
|
- Variable input such as \`Date.now()\` or \`Math.random()\` which changes each time it's called.
|
|
@@ -80,7 +80,7 @@ Check the render method of \``+W+"`."),W=29,G=Error("Element type is invalid: ex
|
|
|
80
80
|
|
|
81
81
|
It can also happen if the client has a browser extension installed which messes with the HTML before React loaded.
|
|
82
82
|
|
|
83
|
-
https://react.dev/link/hydration-mismatch`+G),$)),
|
|
83
|
+
https://react.dev/link/hydration-mismatch`+G),$)),dY}function oK($){var{stateNode:Z,type:G,memoizedProps:X}=$;switch(Z[G5]=$,Z[R5]=X,pX(G,X),G){case"dialog":c0("cancel",Z),c0("close",Z);break;case"iframe":case"object":case"embed":c0("load",Z);break;case"video":case"audio":for(G=0;G<OZ.length;G++)c0(OZ[G],Z);break;case"source":c0("error",Z);break;case"img":case"image":case"link":c0("error",Z),c0("load",Z);break;case"details":c0("toggle",Z);break;case"input":F6("input",X),c0("invalid",Z),ZK(Z,X),QK(Z,X.value,X.defaultValue,X.checked,X.defaultChecked,X.type,X.name,!0);break;case"option":GK(Z,X);break;case"select":F6("select",X),c0("invalid",Z),qK(Z,X);break;case"textarea":F6("textarea",X),c0("invalid",Z),XK(Z,X),UK(Z,X.value,X.defaultValue,X.children)}G=X.children,typeof G!=="string"&&typeof G!=="number"&&typeof G!=="bigint"||Z.textContent===""+G||X.suppressHydrationWarning===!0||HM(Z.textContent,G)?(X.popover!=null&&(c0("beforetoggle",Z),c0("toggle",Z)),X.onScroll!=null&&c0("scroll",Z),X.onScrollEnd!=null&&c0("scrollend",Z),X.onClick!=null&&(Z.onclick=I8),Z=!0):Z=!1,Z||w6($,!0)}function aK($){for(J5=$.return;J5;)switch(J5.tag){case 5:case 31:case 13:F4=!1;return;case 27:case 3:F4=!0;return;default:J5=J5.return}}function b$($){if($!==J5)return!1;if(!p0)return aK($),p0=!0,!1;var Z=$.tag,G;if(G=Z!==3&&Z!==27){if(G=Z===5)G=$.type,G=!(G!=="form"&&G!=="button")||nX($.type,$.memoizedProps);G=!G}if(G&&R1){for(G=R1;G;){var X=S2($,0),N=IM(G);X.serverTail.push(N),G=N.type==="Suspense"?tX(G):a5(G.nextSibling)}w6($)}if(aK($),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.");R1=tX($)}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.");R1=tX($)}else Z===27?(Z=R1,I6($.type)?($=SU,SU=null,R1=$):R1=Z):R1=J5?a5($.stateNode.nextSibling):null;return!0}function v2(){R1=J5=null,B8=p0=!1}function P3(){var $=f6;return $!==null&&(E5===null?E5=$:E5.push.apply(E5,$),f6=null),$}function M7($){f6===null?f6=[$]:f6.push($)}function C3(){var $=$4;if($!==null){$4=null;for(var Z=U3($);0<$.children.length;)$=$.children[0];G0($.fiber,function(){console.error(`A tree hydrated but some attributes of the server rendered HTML didn't match the client properties. This won't be patched up. This can happen if a SSR-ed Client Component used:
|
|
84
84
|
|
|
85
85
|
- A server/client branch \`if (typeof window !== 'undefined')\`.
|
|
86
86
|
- Variable input such as \`Date.now()\` or \`Math.random()\` which changes each time it's called.
|
|
@@ -90,54 +90,54 @@ https://react.dev/link/hydration-mismatch`+G),$)),uY}function rK($){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 uQ(){B9=aG=null,
|
|
93
|
+
%s%s`,"https://react.dev/link/hydration-mismatch",Z)})}}function uQ(){B9=aG=null,H9=!1}function R6($,Z,G){z0(pY,Z._currentValue,$),Z._currentValue=G,z0(cY,Z._currentRenderer,$),Z._currentRenderer!==void 0&&Z._currentRenderer!==null&&Z._currentRenderer!==oF&&console.error("Detected multiple renderers concurrently rendering the same context provider. This is currently unsupported."),Z._currentRenderer=oF}function j8($,Z){$._currentValue=pY.current;var G=cY.current;w0(cY,Z),$._currentRenderer=G,w0(pY,Z)}function I3($,Z,G){for(;$!==null;){var X=$.alternate;if(($.childLanes&Z)!==Z?($.childLanes|=Z,X!==null&&(X.childLanes|=Z)):X!==null&&(X.childLanes&Z)!==Z&&(X.childLanes|=Z),$===G)break;$=$.return}$!==G&&console.error("Expected to find the propagation root when scheduling context work. This error is likely caused by a bug in React. Please file an issue.")}function O3($,Z,G,X){var N=$.child;N!==null&&(N.return=$);for(;N!==null;){var B=N.dependencies;if(B!==null){var W=N.child;B=B.firstContext;$:for(;B!==null;){var w=B;B=N;for(var _=0;_<Z.length;_++)if(w.context===Z[_]){B.lanes|=G,w=B.alternate,w!==null&&(w.lanes|=G),I3(B.return,G,$),X||(W=null);break $}B=w.next}}else if(N.tag===18){if(W=N.return,W===null)throw Error("We just came from a parent so we must have had a parent. This is a bug in React.");W.lanes|=G,B=W.alternate,B!==null&&(B.lanes|=G),I3(W,G,$),W=null}else W=N.child;if(W!==null)W.return=N;else for(W=N;W!==null;){if(W===$){W=null;break}if(N=W.sibling,N!==null){N.return=W.return,W=N;break}W=W.return}N=W}}function f$($,Z,G,X){$=null;for(var N=Z,B=!1;N!==null;){if(!B){if((N.flags&524288)!==0)B=!0;else if((N.flags&262144)!==0)break}if(N.tag===10){var W=N.alternate;if(W===null)throw Error("Should have a current fiber. This is a bug in React.");if(W=W.memoizedProps,W!==null){var w=N.type;z5(N.pendingProps.value,W.value)||($!==null?$.push(w):$=[w])}}else if(N===fG.current){if(W=N.alternate,W===null)throw Error("Should have a current fiber. This is a bug in React.");W.memoizedState.memoizedState!==N.memoizedState.memoizedState&&($!==null?$.push(vZ):$=[vZ])}N=N.return}$!==null&&O3(Z,$,G,X),Z.flags|=262144}function mQ($){for($=$.firstContext;$!==null;){if(!z5($.context._currentValue,$.memoizedValue))return!0;$=$.next}return!1}function k2($){aG=$,B9=null,$=$.dependencies,$!==null&&($.firstContext=null)}function _1($){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()."),iK(aG,$)}function dQ($,Z){return aG===null&&k2($),iK($,Z)}function iK($,Z){var G=Z._currentValue;if(Z={context:Z,memoizedValue:G,next:null},B9===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().");B9=Z,$.dependencies={lanes:0,firstContext:Z,_debugThenableState:null},$.flags|=524288}else B9=B9.next=Z;return G}function D3(){return{controller:new yE,data:new Map,refCount:0}}function b2($){$.controller.signal.aborted&&console.warn("A cache instance was retained after it was already freed. This likely indicates a bug in React."),$.refCount++}function F7($){$.refCount--,0>$.refCount&&console.warn("A cache instance was released after it was already freed. This likely indicates a bug in React."),$.refCount===0&&gE(hE,function(){$.controller.abort()})}function l4($,Z,G){if(($&127)!==0)0>H8&&(H8=g1(),ZZ=iG(Z),lY=Z,G!=null&&(rY=d(G)),(o0&(r1|G4))!==t1&&(I1=!0,h6=$Z),$=f7(),Z=b7(),$!==M9||Z!==QZ?M9=-1.1:Z!==null&&(h6=$Z),l2=$,QZ=Z);else if(($&4194048)!==0&&0>W4&&(W4=g1(),GZ=iG(Z),aF=Z,G!=null&&(iF=d(G)),0>m8)){if($=f7(),Z=b7(),$!==u6||Z!==r2)u6=-1.1;x6=$,r2=Z}}function GL($){if(0>H8){H8=g1(),ZZ=$._debugTask!=null?$._debugTask:null,(o0&(r1|G4))!==t1&&(h6=$Z);var Z=f7(),G=b7();Z!==M9||G!==QZ?M9=-1.1:G!==null&&(h6=$Z),l2=Z,QZ=G}if(0>W4&&(W4=g1(),GZ=$._debugTask!=null?$._debugTask:null,0>m8)){if($=f7(),Z=b7(),$!==u6||Z!==r2)u6=-1.1;x6=$,r2=Z}}function A8(){var $=c2;return c2=0,$}function pQ($){var Z=c2;return c2=$,Z}function W7($){var Z=c2;return c2+=$,Z}function cQ(){T0=W0=-1.1}function r5(){var $=W0;return W0=-1.1,$}function s5($){0<=$&&(W0=$)}function r4(){var $=V1;return V1=-0,$}function s4($){0<=$&&(V1=$)}function n4(){var $=L1;return L1=null,$}function o4(){var $=I1;return I1=!1,$}function j3($){_5=g1(),0>$.actualStartTime&&($.actualStartTime=_5)}function A3($){if(0<=_5){var Z=g1()-_5;$.actualDuration+=Z,$.selfBaseDuration=Z,_5=-1}}function tK($){if(0<=_5){var Z=g1()-_5;$.actualDuration+=Z,_5=-1}}function a4(){if(0<=_5){var $=g1(),Z=$-_5;_5=-1,c2+=Z,V1+=Z,T0=$}}function eK($){L1===null&&(L1=[]),L1.push($),u8===null&&(u8=[]),u8.push($)}function i4(){_5=g1(),0>W0&&(W0=_5)}function w7($){for(var Z=$.child;Z;)$.actualDuration+=Z.actualDuration,Z=Z.sibling}function JL($,Z){if(qZ===null){var G=qZ=[];nY=0,s2=xX(),F9={status:"pending",value:void 0,then:function(X){G.push(X)}}}return nY++,Z.then($B,$B),Z}function $B(){if(--nY===0&&(-1<W4||(m8=-1.1),qZ!==null)){F9!==null&&(F9.status="fulfilled");var $=qZ;qZ=null,s2=0,F9=null;for(var Z=0;Z<$.length;Z++)(0,$[Z])()}}function qL($,Z){var G=[],X={status:"pending",value:null,reason:null,then:function(N){G.push(N)}};return $.then(function(){X.status="fulfilled",X.value=Z;for(var N=0;N<G.length;N++)(0,G[N])(Z)},function(N){X.status="rejected",X.reason=N;for(N=0;N<G.length;N++)(0,G[N])(void 0)}),X}function S3(){var $=n2.current;return $!==null?$:K1.pooledCache}function lQ($,Z){Z===null?z0(n2,n2.current,$):z0(n2,Z.pool,$)}function ZB(){var $=S3();return $===null?null:{parent:y1._currentValue,pool:$}}function QB(){return{didWarnAboutUncachedPromise:!1,thenables:[]}}function GB($){return $=$.status,$==="fulfilled"||$==="rejected"}function JB($,Z,G){x.actQueue!==null&&(x.didUsePromise=!0);var X=$.thenables;if(G=X[G],G===void 0?X.push(Z):G!==Z&&($.didWarnAboutUncachedPromise||($.didWarnAboutUncachedPromise=!0,console.error("A component was suspended by an uncached promise. Creating promises inside a Client Component or hook is not yet supported, except via a Suspense-compatible library or framework.")),Z.then(I8,I8),Z=G),Z._debugInfo===void 0){$=performance.now(),X=Z.displayName;var N={name:typeof X==="string"?X:"Promise",start:$,end:$,value:Z};Z._debugInfo=[{awaited:N}],Z.status!=="fulfilled"&&Z.status!=="rejected"&&($=function(){N.end=performance.now()},Z.then($,$))}switch(Z.status){case"fulfilled":return Z.value;case"rejected":throw $=Z.reason,XB($),$;default:if(typeof Z.status==="string")Z.then(I8,I8);else{if($=K1,$!==null&&100<$.shellSuspendCounter)throw Error("An unknown Component is an async Client Component. Only Server Components can be async at the moment. This error is often caused by accidentally adding `'use client'` to a module that was originally written for the server.");$=Z,$.status="pending",$.then(function(B){if(Z.status==="pending"){var W=Z;W.status="fulfilled",W.value=B}},function(B){if(Z.status==="pending"){var W=Z;W.status="rejected",W.reason=B}})}switch(Z.status){case"fulfilled":return Z.value;case"rejected":throw $=Z.reason,XB($),$}throw a2=Z,HZ=!0,W9}}function T6($){try{return dE($)}catch(Z){if(Z!==null&&typeof Z==="object"&&typeof Z.then==="function")throw a2=Z,HZ=!0,W9;throw Z}}function qB(){if(a2===null)throw Error("Expected a suspended thenable. This is a bug in React. Please file an issue.");var $=a2;return a2=null,HZ=!1,$}function XB($){if($===W9||$===qJ)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 $5($){var Z=A0;return $!=null&&(A0=Z===null?$:Z.concat($)),Z}function v3(){var $=A0;if($!=null){for(var Z=$.length-1;0<=Z;Z--)if($[Z].name!=null){var G=$[Z].debugTask;if(G!=null)return G}}return null}function rQ($,Z,G){for(var X=Object.keys($.props),N=0;N<X.length;N++){var B=X[N];if(B!=="children"&&B!=="key"){Z===null&&(Z=hQ($,G.mode,0),Z._debugInfo=A0,Z.return=G),G0(Z,function(W){console.error("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",W)},B);break}}}function sQ($){var Z=MZ;return MZ+=1,w9===null&&(w9=QB()),JB(w9,$,Z)}function R7($,Z){Z=Z.props.ref,$.ref=Z!==void 0?Z:null}function YB($,Z){if(Z.$$typeof===LV)throw Error(`A React Element from an older version of React was rendered. This is not supported. It can happen if:
|
|
94
94
|
- Multiple copies of the "react" package is used.
|
|
95
95
|
- A library pre-bundled an old copy of "react" or "react/jsx-runtime".
|
|
96
|
-
- A compiler tries to "inline" JSX instead of using the runtime.`);throw $=Object.prototype.toString.call(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 nQ($,Z){var G=
|
|
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 nQ($,Z){var G=v3();G!==null?G.run(YB.bind(null,$,Z)):YB($,Z)}function UB($,Z){var G=d($)||"Component";RW[G]||(RW[G]=!0,Z=Z.displayName||Z.name||"Component",$.tag===3?console.error(`Functions are not valid as a React child. This may happen if you return %s instead of <%s /> from render. Or maybe you meant to call this function rather than return it.
|
|
97
97
|
root.render(%s)`,Z,Z,Z):console.error(`Functions are not valid as a React child. This may happen if you return %s instead of <%s /> from render. Or maybe you meant to call this function rather than return it.
|
|
98
|
-
<%s>{%s}</%s>`,Z,Z,G,Z,G))}function oQ($,Z){var G=
|
|
98
|
+
<%s>{%s}</%s>`,Z,Z,G,Z,G))}function oQ($,Z){var G=v3();G!==null?G.run(UB.bind(null,$,Z)):UB($,Z)}function NB($,Z){var G=d($)||"Component";TW[G]||(TW[G]=!0,Z=String(Z),$.tag===3?console.error(`Symbols are not valid as a React child.
|
|
99
99
|
root.render(%s)`,Z):console.error(`Symbols are not valid as a React child.
|
|
100
|
-
<%s>%s</%s>`,G,Z,G))}function aQ($,Z){var G=A3();G!==null?G.run(XB.bind(null,$,Z)):XB($,Z)}function YB($){function Z(I,j){if($){var v=I.deletions;v===null?(I.deletions=[j],I.flags|=16):v.push(j)}}function G(I,j){if(!$)return null;for(;j!==null;)Z(I,j),j=j.sibling;return null}function X(I){for(var j=new Map;I!==null;)I.key!==null?j.set(I.key,I):j.set(I.index,I),I=I.sibling;return j}function N(I,j){return I=O8(I,j),I.index=0,I.sibling=null,I}function B(I,j,v){if(I.index=v,!$)return I.flags|=1048576,j;if(v=I.alternate,v!==null)return v=v.index,v<j?(I.flags|=67108866,j):v;return I.flags|=67108866,j}function W(I){return $&&I.alternate===null&&(I.flags|=67108866),I}function R(I,j,v,u){if(j===null||j.tag!==6)return j=T3(v,I.mode,u),j.return=I,j._debugOwner=I,j._debugTask=I._debugTask,j._debugInfo=A0,j;return j=N(j,v),j.return=I,j._debugInfo=A0,j}function z(I,j,v,u){var $0=v.type;if($0===a$)return j=k(I,j,v.props.children,u,v.key),rQ(v,j,I),j;if(j!==null&&(j.elementType===$0||gK(j,v)||typeof $0==="object"&&$0!==null&&$0.$$typeof===i5&&T6($0)===j.type))return j=N(j,v.props),w7(j,v),j.return=I,j._debugOwner=v._owner,j._debugInfo=A0,j;return j=hQ(v,I.mode,u),w7(j,v),j.return=I,j._debugInfo=A0,j}function V(I,j,v,u){if(j===null||j.tag!==4||j.stateNode.containerInfo!==v.containerInfo||j.stateNode.implementation!==v.implementation)return j=_3(v,I.mode,u),j.return=I,j._debugInfo=A0,j;return j=N(j,v.children||[]),j.return=I,j._debugInfo=A0,j}function k(I,j,v,u,$0){if(j===null||j.tag!==7)return j=A2(v,I.mode,u,$0),j.return=I,j._debugOwner=I,j._debugTask=I._debugTask,j._debugInfo=A0,j;return j=N(j,v),j.return=I,j._debugInfo=A0,j}function b(I,j,v){if(typeof j==="string"&&j!==""||typeof j==="number"||typeof j==="bigint")return j=T3(""+j,I.mode,v),j.return=I,j._debugOwner=I,j._debugTask=I._debugTask,j._debugInfo=A0,j;if(typeof j==="object"&&j!==null){switch(j.$$typeof){case J8:return v=hQ(j,I.mode,v),w7(v,j),v.return=I,I=$5(j._debugInfo),v._debugInfo=A0,A0=I,v;case o$:return j=_3(j,I.mode,v),j.return=I,j._debugInfo=A0,j;case i5:var u=$5(j._debugInfo);return j=T6(j),I=b(I,j,v),A0=u,I}if(c1(j)||p(j))return v=A2(j,I.mode,v,null),v.return=I,v._debugOwner=I,v._debugTask=I._debugTask,I=$5(j._debugInfo),v._debugInfo=A0,A0=I,v;if(typeof j.then==="function")return u=$5(j._debugInfo),I=b(I,sQ(j),v),A0=u,I;if(j.$$typeof===q8)return b(I,dQ(I,j),v);nQ(I,j)}return typeof j==="function"&&oQ(I,j),typeof j==="symbol"&&aQ(I,j),null}function D(I,j,v,u){var $0=j!==null?j.key:null;if(typeof v==="string"&&v!==""||typeof v==="number"||typeof v==="bigint")return $0!==null?null:R(I,j,""+v,u);if(typeof v==="object"&&v!==null){switch(v.$$typeof){case J8:return v.key===$0?($0=$5(v._debugInfo),I=z(I,j,v,u),A0=$0,I):null;case o$:return v.key===$0?V(I,j,v,u):null;case i5:return $0=$5(v._debugInfo),v=T6(v),I=D(I,j,v,u),A0=$0,I}if(c1(v)||p(v)){if($0!==null)return null;return $0=$5(v._debugInfo),I=k(I,j,v,u,null),A0=$0,I}if(typeof v.then==="function")return $0=$5(v._debugInfo),I=D(I,j,sQ(v),u),A0=$0,I;if(v.$$typeof===q8)return D(I,j,dQ(I,v),u);nQ(I,v)}return typeof v==="function"&&oQ(I,v),typeof v==="symbol"&&aQ(I,v),null}function y(I,j,v,u,$0){if(typeof u==="string"&&u!==""||typeof u==="number"||typeof u==="bigint")return I=I.get(v)||null,R(j,I,""+u,$0);if(typeof u==="object"&&u!==null){switch(u.$$typeof){case J8:return v=I.get(u.key===null?v:u.key)||null,I=$5(u._debugInfo),j=z(j,v,u,$0),A0=I,j;case o$:return I=I.get(u.key===null?v:u.key)||null,V(j,I,u,$0);case i5:var V0=$5(u._debugInfo);return u=T6(u),j=y(I,j,v,u,$0),A0=V0,j}if(c1(u)||p(u))return v=I.get(v)||null,I=$5(u._debugInfo),j=k(j,v,u,$0,null),A0=I,j;if(typeof u.then==="function")return V0=$5(u._debugInfo),j=y(I,j,v,sQ(u),$0),A0=V0,j;if(u.$$typeof===q8)return y(I,j,v,dQ(j,u),$0);nQ(j,u)}return typeof u==="function"&&oQ(j,u),typeof u==="symbol"&&aQ(j,u),null}function t(I,j,v,u){if(typeof v!=="object"||v===null)return u;switch(v.$$typeof){case J8:case o$:T(I,j,v);var $0=v.key;if(typeof $0!=="string")break;if(u===null){u=new Set,u.add($0);break}if(!u.has($0)){u.add($0);break}G0(j,function(){console.error("Encountered two children with the same key, `%s`. Keys should be unique so that components maintain their identity across updates. Non-unique keys may cause children to be duplicated and/or omitted — the behavior is unsupported and could change in a future version.",$0)});break;case i5:v=T6(v),t(I,j,v,u)}return u}function Z0(I,j,v,u){for(var $0=null,V0=null,H0=null,U0=j,O0=j=0,T1=null;U0!==null&&O0<v.length;O0++){U0.index>O0?(T1=U0,U0=null):T1=U0.sibling;var k1=D(I,U0,v[O0],u);if(k1===null){U0===null&&(U0=T1);break}$0=t(I,k1,v[O0],$0),$&&U0&&k1.alternate===null&&Z(I,U0),j=B(k1,j,O0),H0===null?V0=k1:H0.sibling=k1,H0=k1,U0=T1}if(O0===v.length)return G(I,U0),p0&&D8(I,O0),V0;if(U0===null){for(;O0<v.length;O0++)U0=b(I,v[O0],u),U0!==null&&($0=t(I,U0,v[O0],$0),j=B(U0,j,O0),H0===null?V0=U0:H0.sibling=U0,H0=U0);return p0&&D8(I,O0),V0}for(U0=X(U0);O0<v.length;O0++)T1=y(U0,I,O0,v[O0],u),T1!==null&&($0=t(I,T1,v[O0],$0),$&&T1.alternate!==null&&U0.delete(T1.key===null?O0:T1.key),j=B(T1,j,O0),H0===null?V0=T1:H0.sibling=T1,H0=T1);return $&&U0.forEach(function(a8){return Z(I,a8)}),p0&&D8(I,O0),V0}function F1(I,j,v,u){if(v==null)throw Error("An iterable object provided no iterator.");for(var $0=null,V0=null,H0=j,U0=j=0,O0=null,T1=null,k1=v.next();H0!==null&&!k1.done;U0++,k1=v.next()){H0.index>U0?(O0=H0,H0=null):O0=H0.sibling;var a8=D(I,H0,k1.value,u);if(a8===null){H0===null&&(H0=O0);break}T1=t(I,a8,k1.value,T1),$&&H0&&a8.alternate===null&&Z(I,H0),j=B(a8,j,U0),V0===null?$0=a8:V0.sibling=a8,V0=a8,H0=O0}if(k1.done)return G(I,H0),p0&&D8(I,U0),$0;if(H0===null){for(;!k1.done;U0++,k1=v.next())H0=b(I,k1.value,u),H0!==null&&(T1=t(I,H0,k1.value,T1),j=B(H0,j,U0),V0===null?$0=H0:V0.sibling=H0,V0=H0);return p0&&D8(I,U0),$0}for(H0=X(H0);!k1.done;U0++,k1=v.next())O0=y(H0,I,U0,k1.value,u),O0!==null&&(T1=t(I,O0,k1.value,T1),$&&O0.alternate!==null&&H0.delete(O0.key===null?U0:O0.key),j=B(O0,j,U0),V0===null?$0=O0:V0.sibling=O0,V0=O0);return $&&H0.forEach(function(YP){return Z(I,YP)}),p0&&D8(I,U0),$0}function l0(I,j,v,u){if(typeof v==="object"&&v!==null&&v.type===a$&&v.key===null&&(rQ(v,null,I),v=v.props.children),typeof v==="object"&&v!==null){switch(v.$$typeof){case J8:var $0=$5(v._debugInfo);$:{for(var V0=v.key;j!==null;){if(j.key===V0){if(V0=v.type,V0===a$){if(j.tag===7){G(I,j.sibling),u=N(j,v.props.children),u.return=I,u._debugOwner=v._owner,u._debugInfo=A0,rQ(v,u,I),I=u;break $}}else if(j.elementType===V0||gK(j,v)||typeof V0==="object"&&V0!==null&&V0.$$typeof===i5&&T6(V0)===j.type){G(I,j.sibling),u=N(j,v.props),w7(u,v),u.return=I,u._debugOwner=v._owner,u._debugInfo=A0,I=u;break $}G(I,j);break}else Z(I,j);j=j.sibling}v.type===a$?(u=A2(v.props.children,I.mode,u,v.key),u.return=I,u._debugOwner=I,u._debugTask=I._debugTask,u._debugInfo=A0,rQ(v,u,I),I=u):(u=hQ(v,I.mode,u),w7(u,v),u.return=I,u._debugInfo=A0,I=u)}return I=W(I),A0=$0,I;case o$:$:{$0=v;for(v=$0.key;j!==null;){if(j.key===v)if(j.tag===4&&j.stateNode.containerInfo===$0.containerInfo&&j.stateNode.implementation===$0.implementation){G(I,j.sibling),u=N(j,$0.children||[]),u.return=I,I=u;break $}else{G(I,j);break}else Z(I,j);j=j.sibling}u=_3($0,I.mode,u),u.return=I,I=u}return W(I);case i5:return $0=$5(v._debugInfo),v=T6(v),I=l0(I,j,v,u),A0=$0,I}if(c1(v))return $0=$5(v._debugInfo),I=Z0(I,j,v,u),A0=$0,I;if(p(v)){if($0=$5(v._debugInfo),V0=p(v),typeof V0!=="function")throw Error("An object is not an iterable. This error is likely caused by a bug in React. Please file an issue.");var H0=V0.call(v);if(H0===v){if(I.tag!==0||Object.prototype.toString.call(I.type)!=="[object GeneratorFunction]"||Object.prototype.toString.call(H0)!=="[object Generator]")MW||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."),MW=!0}else v.entries!==V0||aY||(console.error("Using Maps as children is not supported. Use an array of keyed ReactElements instead."),aY=!0);return I=F1(I,j,H0,u),A0=$0,I}if(typeof v.then==="function")return $0=$5(v._debugInfo),I=l0(I,j,sQ(v),u),A0=$0,I;if(v.$$typeof===q8)return l0(I,j,dQ(I,v),u);nQ(I,v)}if(typeof v==="string"&&v!==""||typeof v==="number"||typeof v==="bigint")return $0=""+v,j!==null&&j.tag===6?(G(I,j.sibling),u=N(j,$0),u.return=I,I=u):(G(I,j),u=T3($0,I.mode,u),u.return=I,u._debugOwner=I,u._debugTask=I._debugTask,u._debugInfo=A0,I=u),W(I);return typeof v==="function"&&oQ(I,v),typeof v==="symbol"&&aQ(I,v),G(I,j)}return function(I,j,v,u){var $0=A0;A0=null;try{HZ=0;var V0=l0(I,j,v,u);return R9=null,V0}catch(T1){if(T1===W9||T1===qJ)throw T1;var H0=L(29,T1,null,I.mode);H0.lanes=u,H0.return=I;var U0=H0._debugInfo=A0;if(H0._debugOwner=I._debugOwner,H0._debugTask=I._debugTask,U0!=null){for(var O0=U0.length-1;0<=O0;O0--)if(typeof U0[O0].stack==="string"){H0._debugOwner=U0[O0],H0._debugTask=U0[O0].debugTask;break}}return H0}finally{A0=$0}}}function UB($,Z){var G=c1($);return $=!G&&typeof p($)==="function",G||$?(G=G?"array":"iterable",console.error("A nested %s was passed to row #%s in <SuspenseList />. Wrap it in an additional SuspenseList to configure its revealOrder: <SuspenseList revealOrder=...> ... <SuspenseList revealOrder=...>{%s}</SuspenseList> ... </SuspenseList>",G,Z,G),!1):!0}function S3($){$.updateQueue={baseState:$.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function v3($,Z){$=$.updateQueue,Z.updateQueue===$&&(Z.updateQueue={baseState:$.baseState,firstBaseUpdate:$.firstBaseUpdate,lastBaseUpdate:$.lastBaseUpdate,shared:$.shared,callbacks:null})}function _6($){return{lane:$,tag:wW,payload:null,callback:null,next:null}}function z6($,Z,G){var X=$.updateQueue;if(X===null)return null;if(X=X.shared,tY===X&&!zW){var N=d($);console.error(`An update (setState, replaceState, or forceUpdate) was scheduled from inside an update function. Update functions should be pure, with zero side-effects. Consider using componentDidUpdate or a callback.
|
|
100
|
+
<%s>%s</%s>`,G,Z,G))}function aQ($,Z){var G=v3();G!==null?G.run(NB.bind(null,$,Z)):NB($,Z)}function KB($){function Z(O,j){if($){var v=O.deletions;v===null?(O.deletions=[j],O.flags|=16):v.push(j)}}function G(O,j){if(!$)return null;for(;j!==null;)Z(O,j),j=j.sibling;return null}function X(O){for(var j=new Map;O!==null;)O.key!==null?j.set(O.key,O):j.set(O.index,O),O=O.sibling;return j}function N(O,j){return O=O8(O,j),O.index=0,O.sibling=null,O}function B(O,j,v){if(O.index=v,!$)return O.flags|=1048576,j;if(v=O.alternate,v!==null)return v=v.index,v<j?(O.flags|=67108866,j):v;return O.flags|=67108866,j}function W(O){return $&&O.alternate===null&&(O.flags|=67108866),O}function w(O,j,v,u){if(j===null||j.tag!==6)return j=_3(v,O.mode,u),j.return=O,j._debugOwner=O,j._debugTask=O._debugTask,j._debugInfo=A0,j;return j=N(j,v),j.return=O,j._debugInfo=A0,j}function _(O,j,v,u){var $0=v.type;if($0===a$)return j=k(O,j,v.props.children,u,v.key),rQ(v,j,O),j;if(j!==null&&(j.elementType===$0||uK(j,v)||typeof $0==="object"&&$0!==null&&$0.$$typeof===i5&&T6($0)===j.type))return j=N(j,v.props),R7(j,v),j.return=O,j._debugOwner=v._owner,j._debugInfo=A0,j;return j=hQ(v,O.mode,u),R7(j,v),j.return=O,j._debugInfo=A0,j}function V(O,j,v,u){if(j===null||j.tag!==4||j.stateNode.containerInfo!==v.containerInfo||j.stateNode.implementation!==v.implementation)return j=L3(v,O.mode,u),j.return=O,j._debugInfo=A0,j;return j=N(j,v.children||[]),j.return=O,j._debugInfo=A0,j}function k(O,j,v,u,$0){if(j===null||j.tag!==7)return j=A2(v,O.mode,u,$0),j.return=O,j._debugOwner=O,j._debugTask=O._debugTask,j._debugInfo=A0,j;return j=N(j,v),j.return=O,j._debugInfo=A0,j}function b(O,j,v){if(typeof j==="string"&&j!==""||typeof j==="number"||typeof j==="bigint")return j=_3(""+j,O.mode,v),j.return=O,j._debugOwner=O,j._debugTask=O._debugTask,j._debugInfo=A0,j;if(typeof j==="object"&&j!==null){switch(j.$$typeof){case J8:return v=hQ(j,O.mode,v),R7(v,j),v.return=O,O=$5(j._debugInfo),v._debugInfo=A0,A0=O,v;case o$:return j=L3(j,O.mode,v),j.return=O,j._debugInfo=A0,j;case i5:var u=$5(j._debugInfo);return j=T6(j),O=b(O,j,v),A0=u,O}if(c1(j)||p(j))return v=A2(j,O.mode,v,null),v.return=O,v._debugOwner=O,v._debugTask=O._debugTask,O=$5(j._debugInfo),v._debugInfo=A0,A0=O,v;if(typeof j.then==="function")return u=$5(j._debugInfo),O=b(O,sQ(j),v),A0=u,O;if(j.$$typeof===q8)return b(O,dQ(O,j),v);nQ(O,j)}return typeof j==="function"&&oQ(O,j),typeof j==="symbol"&&aQ(O,j),null}function D(O,j,v,u){var $0=j!==null?j.key:null;if(typeof v==="string"&&v!==""||typeof v==="number"||typeof v==="bigint")return $0!==null?null:w(O,j,""+v,u);if(typeof v==="object"&&v!==null){switch(v.$$typeof){case J8:return v.key===$0?($0=$5(v._debugInfo),O=_(O,j,v,u),A0=$0,O):null;case o$:return v.key===$0?V(O,j,v,u):null;case i5:return $0=$5(v._debugInfo),v=T6(v),O=D(O,j,v,u),A0=$0,O}if(c1(v)||p(v)){if($0!==null)return null;return $0=$5(v._debugInfo),O=k(O,j,v,u,null),A0=$0,O}if(typeof v.then==="function")return $0=$5(v._debugInfo),O=D(O,j,sQ(v),u),A0=$0,O;if(v.$$typeof===q8)return D(O,j,dQ(O,v),u);nQ(O,v)}return typeof v==="function"&&oQ(O,v),typeof v==="symbol"&&aQ(O,v),null}function y(O,j,v,u,$0){if(typeof u==="string"&&u!==""||typeof u==="number"||typeof u==="bigint")return O=O.get(v)||null,w(j,O,""+u,$0);if(typeof u==="object"&&u!==null){switch(u.$$typeof){case J8:return v=O.get(u.key===null?v:u.key)||null,O=$5(u._debugInfo),j=_(j,v,u,$0),A0=O,j;case o$:return O=O.get(u.key===null?v:u.key)||null,V(j,O,u,$0);case i5:var V0=$5(u._debugInfo);return u=T6(u),j=y(O,j,v,u,$0),A0=V0,j}if(c1(u)||p(u))return v=O.get(v)||null,O=$5(u._debugInfo),j=k(j,v,u,$0,null),A0=O,j;if(typeof u.then==="function")return V0=$5(u._debugInfo),j=y(O,j,v,sQ(u),$0),A0=V0,j;if(u.$$typeof===q8)return y(O,j,v,dQ(j,u),$0);nQ(j,u)}return typeof u==="function"&&oQ(j,u),typeof u==="symbol"&&aQ(j,u),null}function t(O,j,v,u){if(typeof v!=="object"||v===null)return u;switch(v.$$typeof){case J8:case o$:T(O,j,v);var $0=v.key;if(typeof $0!=="string")break;if(u===null){u=new Set,u.add($0);break}if(!u.has($0)){u.add($0);break}G0(j,function(){console.error("Encountered two children with the same key, `%s`. Keys should be unique so that components maintain their identity across updates. Non-unique keys may cause children to be duplicated and/or omitted — the behavior is unsupported and could change in a future version.",$0)});break;case i5:v=T6(v),t(O,j,v,u)}return u}function Z0(O,j,v,u){for(var $0=null,V0=null,M0=null,U0=j,O0=j=0,T1=null;U0!==null&&O0<v.length;O0++){U0.index>O0?(T1=U0,U0=null):T1=U0.sibling;var k1=D(O,U0,v[O0],u);if(k1===null){U0===null&&(U0=T1);break}$0=t(O,k1,v[O0],$0),$&&U0&&k1.alternate===null&&Z(O,U0),j=B(k1,j,O0),M0===null?V0=k1:M0.sibling=k1,M0=k1,U0=T1}if(O0===v.length)return G(O,U0),p0&&D8(O,O0),V0;if(U0===null){for(;O0<v.length;O0++)U0=b(O,v[O0],u),U0!==null&&($0=t(O,U0,v[O0],$0),j=B(U0,j,O0),M0===null?V0=U0:M0.sibling=U0,M0=U0);return p0&&D8(O,O0),V0}for(U0=X(U0);O0<v.length;O0++)T1=y(U0,O,O0,v[O0],u),T1!==null&&($0=t(O,T1,v[O0],$0),$&&T1.alternate!==null&&U0.delete(T1.key===null?O0:T1.key),j=B(T1,j,O0),M0===null?V0=T1:M0.sibling=T1,M0=T1);return $&&U0.forEach(function(a8){return Z(O,a8)}),p0&&D8(O,O0),V0}function F1(O,j,v,u){if(v==null)throw Error("An iterable object provided no iterator.");for(var $0=null,V0=null,M0=j,U0=j=0,O0=null,T1=null,k1=v.next();M0!==null&&!k1.done;U0++,k1=v.next()){M0.index>U0?(O0=M0,M0=null):O0=M0.sibling;var a8=D(O,M0,k1.value,u);if(a8===null){M0===null&&(M0=O0);break}T1=t(O,a8,k1.value,T1),$&&M0&&a8.alternate===null&&Z(O,M0),j=B(a8,j,U0),V0===null?$0=a8:V0.sibling=a8,V0=a8,M0=O0}if(k1.done)return G(O,M0),p0&&D8(O,U0),$0;if(M0===null){for(;!k1.done;U0++,k1=v.next())M0=b(O,k1.value,u),M0!==null&&(T1=t(O,M0,k1.value,T1),j=B(M0,j,U0),V0===null?$0=M0:V0.sibling=M0,V0=M0);return p0&&D8(O,U0),$0}for(M0=X(M0);!k1.done;U0++,k1=v.next())O0=y(M0,O,U0,k1.value,u),O0!==null&&(T1=t(O,O0,k1.value,T1),$&&O0.alternate!==null&&M0.delete(O0.key===null?U0:O0.key),j=B(O0,j,U0),V0===null?$0=O0:V0.sibling=O0,V0=O0);return $&&M0.forEach(function(HP){return Z(O,HP)}),p0&&D8(O,U0),$0}function l0(O,j,v,u){if(typeof v==="object"&&v!==null&&v.type===a$&&v.key===null&&(rQ(v,null,O),v=v.props.children),typeof v==="object"&&v!==null){switch(v.$$typeof){case J8:var $0=$5(v._debugInfo);$:{for(var V0=v.key;j!==null;){if(j.key===V0){if(V0=v.type,V0===a$){if(j.tag===7){G(O,j.sibling),u=N(j,v.props.children),u.return=O,u._debugOwner=v._owner,u._debugInfo=A0,rQ(v,u,O),O=u;break $}}else if(j.elementType===V0||uK(j,v)||typeof V0==="object"&&V0!==null&&V0.$$typeof===i5&&T6(V0)===j.type){G(O,j.sibling),u=N(j,v.props),R7(u,v),u.return=O,u._debugOwner=v._owner,u._debugInfo=A0,O=u;break $}G(O,j);break}else Z(O,j);j=j.sibling}v.type===a$?(u=A2(v.props.children,O.mode,u,v.key),u.return=O,u._debugOwner=O,u._debugTask=O._debugTask,u._debugInfo=A0,rQ(v,u,O),O=u):(u=hQ(v,O.mode,u),R7(u,v),u.return=O,u._debugInfo=A0,O=u)}return O=W(O),A0=$0,O;case o$:$:{$0=v;for(v=$0.key;j!==null;){if(j.key===v)if(j.tag===4&&j.stateNode.containerInfo===$0.containerInfo&&j.stateNode.implementation===$0.implementation){G(O,j.sibling),u=N(j,$0.children||[]),u.return=O,O=u;break $}else{G(O,j);break}else Z(O,j);j=j.sibling}u=L3($0,O.mode,u),u.return=O,O=u}return W(O);case i5:return $0=$5(v._debugInfo),v=T6(v),O=l0(O,j,v,u),A0=$0,O}if(c1(v))return $0=$5(v._debugInfo),O=Z0(O,j,v,u),A0=$0,O;if(p(v)){if($0=$5(v._debugInfo),V0=p(v),typeof V0!=="function")throw Error("An object is not an iterable. This error is likely caused by a bug in React. Please file an issue.");var M0=V0.call(v);if(M0===v){if(O.tag!==0||Object.prototype.toString.call(O.type)!=="[object GeneratorFunction]"||Object.prototype.toString.call(M0)!=="[object Generator]")WW||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."),WW=!0}else v.entries!==V0||tY||(console.error("Using Maps as children is not supported. Use an array of keyed ReactElements instead."),tY=!0);return O=F1(O,j,M0,u),A0=$0,O}if(typeof v.then==="function")return $0=$5(v._debugInfo),O=l0(O,j,sQ(v),u),A0=$0,O;if(v.$$typeof===q8)return l0(O,j,dQ(O,v),u);nQ(O,v)}if(typeof v==="string"&&v!==""||typeof v==="number"||typeof v==="bigint")return $0=""+v,j!==null&&j.tag===6?(G(O,j.sibling),u=N(j,$0),u.return=O,O=u):(G(O,j),u=_3($0,O.mode,u),u.return=O,u._debugOwner=O,u._debugTask=O._debugTask,u._debugInfo=A0,O=u),W(O);return typeof v==="function"&&oQ(O,v),typeof v==="symbol"&&aQ(O,v),G(O,j)}return function(O,j,v,u){var $0=A0;A0=null;try{MZ=0;var V0=l0(O,j,v,u);return w9=null,V0}catch(T1){if(T1===W9||T1===qJ)throw T1;var M0=L(29,T1,null,O.mode);M0.lanes=u,M0.return=O;var U0=M0._debugInfo=A0;if(M0._debugOwner=O._debugOwner,M0._debugTask=O._debugTask,U0!=null){for(var O0=U0.length-1;0<=O0;O0--)if(typeof U0[O0].stack==="string"){M0._debugOwner=U0[O0],M0._debugTask=U0[O0].debugTask;break}}return M0}finally{A0=$0}}}function BB($,Z){var G=c1($);return $=!G&&typeof p($)==="function",G||$?(G=G?"array":"iterable",console.error("A nested %s was passed to row #%s in <SuspenseList />. Wrap it in an additional SuspenseList to configure its revealOrder: <SuspenseList revealOrder=...> ... <SuspenseList revealOrder=...>{%s}</SuspenseList> ... </SuspenseList>",G,Z,G),!1):!0}function k3($){$.updateQueue={baseState:$.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function b3($,Z){$=$.updateQueue,Z.updateQueue===$&&(Z.updateQueue={baseState:$.baseState,firstBaseUpdate:$.firstBaseUpdate,lastBaseUpdate:$.lastBaseUpdate,shared:$.shared,callbacks:null})}function z6($){return{lane:$,tag:_W,payload:null,callback:null,next:null}}function _6($,Z,G){var X=$.updateQueue;if(X===null)return null;if(X=X.shared,$U===X&&!EW){var N=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`,N),
|
|
102
|
+
Please update the following component: %s`,N),EW=!0}if((o0&r1)!==t1)return N=X.pending,N===null?Z.next=Z:(Z.next=N.next,N.next=Z),X.pending=Z,Z=gQ($),xK($,null,G),Z;return yQ($,X,Z,G),gQ($)}function T7($,Z,G){if(Z=Z.updateQueue,Z!==null&&(Z=Z.shared,(G&4194048)!==0)){var X=Z.lanes;X&=$.pendingLanes,G|=X,Z.lanes=G,E2($,G)}}function iQ($,Z){var{updateQueue:G,alternate:X}=$;if(X!==null&&(X=X.updateQueue,G===X)){var N=null,B=null;if(G=G.firstBaseUpdate,G!==null){do{var W={lane:G.lane,tag:G.tag,payload:G.payload,callback:null,next:null};B===null?N=B=W:B=B.next=W,G=G.next}while(G!==null);B===null?N=B=Z:B=B.next=Z}else N=B=Z;G={baseState:X.baseState,firstBaseUpdate:N,lastBaseUpdate:B,shared:X.shared,callbacks:X.callbacks},$.updateQueue=G;return}$=G.lastBaseUpdate,$===null?G.firstBaseUpdate=Z:$.next=Z,G.lastBaseUpdate=Z}function z7(){if(ZU){var $=F9;if($!==null)throw $}}function _7($,Z,G,X){ZU=!1;var N=$.updateQueue;m6=!1,$U=N.shared;var{firstBaseUpdate:B,lastBaseUpdate:W}=N,w=N.shared.pending;if(w!==null){N.shared.pending=null;var _=w,V=_.next;_.next=null,W===null?B=V:W.next=V,W=_;var k=$.alternate;k!==null&&(k=k.updateQueue,w=k.lastBaseUpdate,w!==W&&(w===null?k.firstBaseUpdate=V:w.next=V,k.lastBaseUpdate=_))}if(B!==null){var b=N.baseState;W=0,k=V=_=null,w=B;do{var D=w.lane&-536870913,y=D!==w.lane;if(y?(S0&D)===D:(X&D)===D){D!==0&&D===s2&&(ZU=!0),k!==null&&(k=k.next={lane:0,tag:w.tag,payload:w.payload,callback:null,next:null});$:{D=$;var t=w,Z0=Z,F1=G;switch(t.tag){case LW:if(t=t.payload,typeof t==="function"){H9=!0;var l0=t.call(F1,b,Z0);if(D.mode&M5){H1(!0);try{t.call(F1,b,Z0)}finally{H1(!1)}}H9=!1,b=l0;break $}b=t;break $;case eY:D.flags=D.flags&-65537|128;case _W:if(l0=t.payload,typeof l0==="function"){if(H9=!0,t=l0.call(F1,b,Z0),D.mode&M5){H1(!0);try{l0.call(F1,b,Z0)}finally{H1(!1)}}H9=!1}else t=l0;if(t===null||t===void 0)break $;b=y0({},b,t);break $;case VW:m6=!0}}D=w.callback,D!==null&&($.flags|=64,y&&($.flags|=8192),y=N.callbacks,y===null?N.callbacks=[D]:y.push(D))}else y={lane:D,tag:w.tag,payload:w.payload,callback:w.callback,next:null},k===null?(V=k=y,_=b):k=k.next=y,W|=D;if(w=w.next,w===null)if(w=N.shared.pending,w===null)break;else y=w,w=y.next,y.next=null,N.lastBaseUpdate=y,N.shared.pending=null}while(1);k===null&&(_=b),N.baseState=_,N.firstBaseUpdate=V,N.lastBaseUpdate=k,B===null&&(N.shared.lanes=0),c6|=W,$.lanes=W,$.memoizedState=b}$U=null}function HB($,Z){if(typeof $!=="function")throw Error("Invalid argument passed as callback. Expected a function. Instead received: "+$);$.call(Z)}function XL($,Z){var G=$.shared.hiddenCallbacks;if(G!==null)for($.shared.hiddenCallbacks=null,$=0;$<G.length;$++)HB(G[$],Z)}function MB($,Z){var G=$.callbacks;if(G!==null)for($.callbacks=null,$=0;$<G.length;$++)HB(G[$],Z)}function FB($,Z){var G=W8;z0(YJ,G,$),z0(R9,Z,$),W8=G|Z.baseLanes}function f3($){z0(YJ,W8,$),z0(R9,R9.current,$)}function y3($){W8=YJ.current,w0(R9,$),w0(YJ,$)}function L6($){var Z=$.alternate;z0(v1,v1.current&T9,$),z0(Z4,$,$),w4===null&&(Z===null||R9.current!==null?w4=$:Z.memoizedState!==null&&(w4=$))}function g3($){z0(v1,v1.current,$),z0(Z4,$,$),w4===null&&(w4=$)}function WB($){$.tag===22?(z0(v1,v1.current,$),z0(Z4,$,$),w4===null&&(w4=$)):V6($)}function V6($){z0(v1,v1.current,$),z0(Z4,Z4.current,$)}function n5($){w0(Z4,$),w4===$&&(w4=null),w0(v1,$)}function tQ($){for(var Z=$;Z!==null;){if(Z.tag===13){var G=Z.memoizedState;if(G!==null&&(G=G.dehydrated,G===null||aX(G)||iX(G)))return Z}else if(Z.tag===19&&(Z.memoizedProps.revealOrder==="forwards"||Z.memoizedProps.revealOrder==="backwards"||Z.memoizedProps.revealOrder==="unstable_legacy-backwards"||Z.memoizedProps.revealOrder==="together")){if((Z.flags&128)!==0)return Z}else if(Z.child!==null){Z.child.return=Z,Z=Z.child;continue}if(Z===$)break;for(;Z.sibling===null;){if(Z.return===null||Z.return===$)return null;Z=Z.return}Z.sibling.return=Z.return,Z=Z.sibling}return null}function f0(){var $=h;T4===null?T4=[$]:T4.push($)}function c(){var $=h;if(T4!==null&&(l8++,T4[l8]!==$)){var Z=d(L0);if(!PW.has(Z)&&(PW.add(Z),T4!==null)){for(var G="",X=0;X<=l8;X++){var N=T4[X],B=X===l8?$:N;for(N=X+1+". "+N;30>N.length;)N+=" ";N+=B+`
|
|
103
103
|
`,G+=N}console.error(`React has detected a change in the order of Hooks called by %s. This will lead to bugs and errors if not fixed. For more information, read the Rules of Hooks: https://react.dev/link/rules-of-hooks
|
|
104
104
|
|
|
105
105
|
Previous render Next render
|
|
106
106
|
------------------------------------------------------
|
|
107
107
|
%s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
108
|
-
`,Z,G)}}}function y$($){$===void 0||$===null||c1($)||console.error("%s received a final argument that is not an array (instead, received `%s`). When specified, the final argument must be an array.",h,typeof $)}function eQ(){var $=d(L0);
|
|
108
|
+
`,Z,G)}}}function y$($){$===void 0||$===null||c1($)||console.error("%s received a final argument that is not an array (instead, received `%s`). When specified, the final argument must be an array.",h,typeof $)}function eQ(){var $=d(L0);IW.has($)||(IW.add($),console.error("ReactDOM.useFormState has been renamed to React.useActionState. Please update %s to use React.useActionState.",$))}function A1(){throw Error(`Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:
|
|
109
109
|
1. You might have mismatching versions of React and the renderer (such as React DOM)
|
|
110
110
|
2. You might be breaking the Rules of Hooks
|
|
111
111
|
3. You might have more than one copy of React in the same app
|
|
112
|
-
See https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem.`)}function
|
|
112
|
+
See https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem.`)}function h3($,Z){if(wZ)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.",h),!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`,h,"["+Z.join(", ")+"]","["+$.join(", ")+"]");for(var G=0;G<Z.length&&G<$.length;G++)if(!_5($[G],Z[G]))return!1;return!0}function g3($,Z,G,X,N,B){if(p8=B,L0=Z,T4=$!==null?$._debugHookTypes:null,l8=-1,RZ=$!==null&&$.type!==Z.type,Object.prototype.toString.call(G)==="[object AsyncFunction]"||Object.prototype.toString.call(G)==="[object AsyncGeneratorFunction]")B=d(L0),$U.has(B)||($U.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?QU:T4!==null?PW:ZU,t2=B=(Z.mode&H5)!==z0;var W=sY(G,X,N);if(t2=!1,z9&&(W=h3(Z,G,X,N)),B){M1(!0);try{W=h3(Z,G,X,N)}finally{M1(!1)}}return HB($,Z),W}function HB($,Z){Z._debugHookTypes=T4,Z.dependencies===null?c8!==null&&(Z.dependencies={lanes:0,firstContext:null,_debugThenableState:c8}):Z.dependencies._debugThenableState=c8,x.H=wZ;var G=N1!==null&&N1.next!==null;if(p8=0,T4=h=h1=N1=L0=null,l8=-1,$!==null&&($.flags&65011712)!==(Z.flags&65011712)&&console.error("Internal React error: Expected static flag was missing. Please notify the React team."),NJ=!1,WZ=0,c8=null,G)throw Error("Rendered fewer hooks than expected. This may be caused by an accidental early return statement.");$===null||x1||($=$.dependencies,$!==null&&mQ($)&&(x1=!0)),MZ?(MZ=!1,$=!0):$=!1,$&&(Z=d(Z)||"Unknown",VW.has(Z)||$U.has(Z)||(VW.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 h3($,Z,G,X){L0=$;var N=0;do{if(z9&&(c8=null),WZ=0,z9=!1,N>=xE)throw Error("Too many re-renders. React limits the number of renders to prevent an infinite loop.");if(N+=1,RZ=!1,h1=N1=null,$.updateQueue!=null){var B=$.updateQueue;B.lastEffect=null,B.events=null,B.stores=null,B.memoCache!=null&&(B.memoCache.index=0)}l8=-1,x.H=CW,B=sY(Z,G,X)}while(z9);return B}function QL(){var $=x.H,Z=$.useState()[0];return Z=typeof Z.then==="function"?L7(Z):Z,$=$.useState()[0],(N1!==null?N1.memoizedState:null)!==$&&(L0.flags|=1024),Z}function x3(){var $=KJ!==0;return KJ=0,$}function u3($,Z,G){Z.updateQueue=$.updateQueue,Z.flags=(Z.mode&A4)!==z0?Z.flags&-402655237:Z.flags&-2053,$.lanes&=~G}function m3($){if(NJ){for($=$.memoizedState;$!==null;){var Z=$.queue;Z!==null&&(Z.pending=null),$=$.next}NJ=!1}p8=0,T4=h1=N1=L0=null,l8=-1,h=null,z9=!1,WZ=KJ=0,c8=null}function W5(){var $={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return h1===null?L0.memoizedState=h1=$:h1=h1.next=$,h1}function J1(){if(N1===null){var $=L0.alternate;$=$!==null?$.memoizedState:null}else $=N1.next;var Z=h1===null?L0.memoizedState:h1.next;if(Z!==null)h1=Z,N1=$;else{if($===null){if(L0.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.")}N1=$,$={memoizedState:N1.memoizedState,baseState:N1.baseState,baseQueue:N1.baseQueue,queue:N1.queue,next:null},h1===null?L0.memoizedState=h1=$:h1=h1.next=$}return h1}function $G(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function L7($){var Z=WZ;return WZ+=1,c8===null&&(c8=eK()),$=ZB(c8,$,Z),Z=L0,(h1===null?Z.memoizedState:h1.next)===null&&(Z=Z.alternate,x.H=Z!==null&&Z.memoizedState!==null?QU:ZU),$}function E6($){if($!==null&&typeof $==="object"){if(typeof $.then==="function")return L7($);if($.$$typeof===q8)return z1($)}throw Error("An unsupported type was passed to use(): "+String($))}function f2($){var Z=null,G=L0.updateQueue;if(G!==null&&(Z=G.memoCache),Z==null){var X=L0.alternate;X!==null&&(X=X.updateQueue,X!==null&&(X=X.memoCache,X!=null&&(Z={data:X.data.map(function(N){return N.slice()}),index:0})))}if(Z==null&&(Z={data:[],index:0}),G===null&&(G=$G(),L0.updateQueue=G),G.memoCache=Z,G=Z.data[Z.index],G===void 0||RZ)for(G=Z.data[Z.index]=Array($),X=0;X<$;X++)G[X]=wV;else G.length!==$&&console.error("Expected a constant size argument for each invocation of useMemoCache. The previous cache was allocated with size %s but size %s was requested.",G.length,$);return Z.index++,G}function I4($,Z){return typeof Z==="function"?Z($):Z}function d3($,Z,G){var X=W5();if(G!==void 0){var N=G(Z);if(t2){M1(!0);try{G(Z)}finally{M1(!1)}}}else N=Z;return X.memoizedState=X.baseState=N,$={pending:null,lanes:0,dispatch:null,lastRenderedReducer:$,lastRenderedState:N},X.queue=$,$=$.dispatch=YL.bind(null,L0,$),[X.memoizedState,$]}function g$($){var Z=J1();return p3(Z,N1,$)}function p3($,Z,G){var X=$.queue;if(X===null)throw Error("Should have a queue. You are likely calling Hooks conditionally, which is not allowed. (https://react.dev/link/invalid-hook-call)");X.lastRenderedReducer=G;var N=$.baseQueue,B=X.pending;if(B!==null){if(N!==null){var W=N.next;N.next=B.next,B.next=W}Z.baseQueue!==N&&console.error("Internal error: Expected work-in-progress queue to be a clone. This is a bug in React."),Z.baseQueue=N=B,X.pending=null}if(B=$.baseState,N===null)$.memoizedState=B;else{Z=N.next;var R=W=null,z=null,V=Z,k=!1;do{var b=V.lane&-536870913;if(b!==V.lane?(S0&b)===b:(p8&b)===b){var D=V.revertLane;if(D===0)z!==null&&(z=z.next={lane:0,revertLane:0,gesture:null,action:V.action,hasEagerState:V.hasEagerState,eagerState:V.eagerState,next:null}),b===s2&&(k=!0);else if((p8&D)===D){V=V.next,D===s2&&(k=!0);continue}else b={lane:0,revertLane:V.revertLane,gesture:null,action:V.action,hasEagerState:V.hasEagerState,eagerState:V.eagerState,next:null},z===null?(R=z=b,W=B):z=z.next=b,L0.lanes|=D,c6|=D;b=V.action,t2&&G(B,b),B=V.hasEagerState?V.eagerState:G(B,b)}else D={lane:b,revertLane:V.revertLane,gesture:V.gesture,action:V.action,hasEagerState:V.hasEagerState,eagerState:V.eagerState,next:null},z===null?(R=z=D,W=B):z=z.next=D,L0.lanes|=b,c6|=b;V=V.next}while(V!==null&&V!==Z);if(z===null?W=B:z.next=R,!_5(B,$.memoizedState)&&(x1=!0,k&&(G=F9,G!==null)))throw G;$.memoizedState=B,$.baseState=W,$.baseQueue=z,X.lastRenderedState=B}return N===null&&(X.lanes=0),[$.memoizedState,X.dispatch]}function V7($){var Z=J1(),G=Z.queue;if(G===null)throw Error("Should have a queue. You are likely calling Hooks conditionally, which is not allowed. (https://react.dev/link/invalid-hook-call)");G.lastRenderedReducer=$;var{dispatch:X,pending:N}=G,B=Z.memoizedState;if(N!==null){G.pending=null;var W=N=N.next;do B=$(B,W.action),W=W.next;while(W!==N);_5(B,Z.memoizedState)||(x1=!0),Z.memoizedState=B,Z.baseQueue===null&&(Z.baseState=B),G.lastRenderedState=B}return[B,X]}function c3($,Z,G){var X=L0,N=W5();if(p0){if(G===void 0)throw Error("Missing getServerSnapshot, which is required for server-rendered content. Will revert to client rendering.");var B=G();_9||B===G()||(console.error("The result of getServerSnapshot should be cached to avoid an infinite loop"),_9=!0)}else{if(B=Z(),_9||(G=Z(),_5(B,G)||(console.error("The result of getSnapshot should be cached to avoid an infinite loop"),_9=!0)),K1===null)throw Error("Expected a work-in-progress root. This is a bug in React. Please file an issue.");(S0&127)!==0||FB(X,Z,B)}return N.memoizedState=B,G={value:B,getSnapshot:Z},N.queue=G,JG(RB.bind(null,X,G,$),[$]),X.flags|=2048,x$(w4|V5,{destroy:void 0},WB.bind(null,X,G,B,Z),null),B}function ZG($,Z,G){var X=L0,N=J1(),B=p0;if(B){if(G===void 0)throw Error("Missing getServerSnapshot, which is required for server-rendered content. Will revert to client rendering.");G=G()}else if(G=Z(),!_9){var W=Z();_5(G,W)||(console.error("The result of getSnapshot should be cached to avoid an infinite loop"),_9=!0)}if(W=!_5((N1||N).memoizedState,G))N.memoizedState=G,x1=!0;N=N.queue;var R=RB.bind(null,X,N,$);if(O5(2048,V5,R,[$]),N.getSnapshot!==Z||W||h1!==null&&h1.memoizedState.tag&w4){if(X.flags|=2048,x$(w4|V5,{destroy:void 0},WB.bind(null,X,N,G,Z),null),K1===null)throw Error("Expected a work-in-progress root. This is a bug in React. Please file an issue.");B||(p8&127)!==0||FB(X,Z,G)}return G}function FB($,Z,G){$.flags|=16384,$={getSnapshot:Z,value:G},Z=L0.updateQueue,Z===null?(Z=$G(),L0.updateQueue=Z,Z.stores=[$]):(G=Z.stores,G===null?Z.stores=[$]:G.push($))}function WB($,Z,G,X){Z.value=G,Z.getSnapshot=X,wB(Z)&&TB($)}function RB($,Z,G){return G(function(){wB(Z)&&(l4(2,"updateSyncExternalStore()",$),TB($))})}function wB($){var Z=$.getSnapshot;$=$.value;try{var G=Z();return!_5($,G)}catch(X){return!0}}function TB($){var Z=B5($,2);Z!==null&&C1(Z,$,2)}function l3($){var Z=W5();if(typeof $==="function"){var G=$;if($=G(),t2){M1(!0);try{G()}finally{M1(!1)}}}return Z.memoizedState=Z.baseState=$,Z.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:I4,lastRenderedState:$},Z}function r3($){$=l3($);var Z=$.queue,G=gB.bind(null,L0,Z);return Z.dispatch=G,[$.memoizedState,G]}function s3($){var Z=W5();Z.memoizedState=Z.baseState=$;var G={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return Z.queue=G,Z=YX.bind(null,L0,!0,G),G.dispatch=Z,[$,Z]}function _B($,Z){var G=J1();return zB(G,N1,$,Z)}function zB($,Z,G,X){return $.baseState=G,p3($,N1,typeof X==="function"?X:I4)}function LB($,Z){var G=J1();if(N1!==null)return zB(G,N1,$,Z);return G.baseState=$,[$,G.queue.dispatch]}function GL($,Z,G,X,N){if(KG($))throw Error("Cannot update form state while rendering.");if($=Z.action,$!==null){var B={payload:N,action:$,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(W){B.listeners.push(W)}};x.T!==null?G(!0):B.isTransition=!1,X(B),G=Z.pending,G===null?(B.next=Z.pending=B,VB(Z,B)):(B.next=G.next,Z.pending=G.next=B)}}function VB($,Z){var{action:G,payload:X}=Z,N=$.state;if(Z.isTransition){var B=x.T,W={};W._updatedFibers=new Set,x.T=W;try{var R=G(N,X),z=x.S;z!==null&&z(W,R),EB($,Z,R)}catch(V){n3($,Z,V)}finally{B!==null&&W.types!==null&&(B.types!==null&&B.types!==W.types&&console.error("We expected inner Transitions to have transferred the outer types set and that you cannot add to the outer Transition while inside the inner.This is a bug in React."),B.types=W.types),x.T=B,B===null&&W._updatedFibers&&($=W._updatedFibers.size,W._updatedFibers.clear(),10<$&&console.warn("Detected a large number of updates inside startTransition. If this is due to a subscription please re-write it to use React provided hooks. Otherwise concurrent mode guarantees are off the table."))}}else try{W=G(N,X),EB($,Z,W)}catch(V){n3($,Z,V)}}function EB($,Z,G){G!==null&&typeof G==="object"&&typeof G.then==="function"?(x.asyncTransitions++,G.then(NG,NG),G.then(function(X){PB($,Z,X)},function(X){return n3($,Z,X)}),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.")):PB($,Z,G)}function PB($,Z,G){Z.status="fulfilled",Z.value=G,CB(Z),$.state=G,Z=$.pending,Z!==null&&(G=Z.next,G===Z?$.pending=null:(G=G.next,Z.next=G,VB($,G)))}function n3($,Z,G){var X=$.pending;if($.pending=null,X!==null){X=X.next;do Z.status="rejected",Z.reason=G,CB(Z),Z=Z.next;while(Z!==X)}$.action=null}function CB($){$=$.listeners;for(var Z=0;Z<$.length;Z++)(0,$[Z])()}function IB($,Z){return Z}function h$($,Z){if(p0){var G=K1.formState;if(G!==null){$:{var X=L0;if(p0){if(w1){Z:{var N=w1;for(var B=F4;N.nodeType!==8;){if(!B){N=null;break Z}if(N=a5(N.nextSibling),N===null){N=null;break Z}}B=N.data,N=B===CU||B===KR?N:null}if(N){w1=a5(N.nextSibling),X=N.data===CU;break $}}R6(X)}X=!1}X&&(Z=G[0])}}return G=W5(),G.memoizedState=G.baseState=Z,X={pending:null,lanes:0,dispatch:null,lastRenderedReducer:IB,lastRenderedState:Z},G.queue=X,G=gB.bind(null,L0,X),X.dispatch=G,X=l3(!1),B=YX.bind(null,L0,!1,X.queue),X=W5(),N={state:Z,dispatch:null,action:$,pending:null},X.queue=N,G=GL.bind(null,L0,N,B,G),N.dispatch=G,X.memoizedState=$,[Z,G,!1]}function QG($){var Z=J1();return OB(Z,N1,$)}function OB($,Z,G){if(Z=p3($,Z,IB)[0],$=g$(I4)[0],typeof Z==="object"&&Z!==null&&typeof Z.then==="function")try{var X=L7(Z)}catch(W){if(W===W9)throw qJ;throw W}else X=Z;Z=J1();var N=Z.queue,B=N.dispatch;return G!==Z.memoizedState&&(L0.flags|=2048,x$(w4|V5,{destroy:void 0},JL.bind(null,N,G),null)),[X,B,$]}function JL($,Z){$.action=Z}function GG($){var Z=J1(),G=N1;if(G!==null)return OB(Z,G,$);J1(),Z=Z.memoizedState,G=J1();var X=G.queue.dispatch;return G.memoizedState=$,[Z,X,!1]}function x$($,Z,G,X){return $={tag:$,create:G,deps:X,inst:Z,next:null},Z=L0.updateQueue,Z===null&&(Z=$G(),L0.updateQueue=Z),G=Z.lastEffect,G===null?Z.lastEffect=$.next=$:(X=G.next,G.next=$,$.next=X,Z.lastEffect=$),$}function o3($){var Z=W5();return $={current:$},Z.memoizedState=$}function y2($,Z,G,X){var N=W5();L0.flags|=$,N.memoizedState=x$(w4|Z,{destroy:void 0},G,X===void 0?null:X)}function O5($,Z,G,X){var N=J1();X=X===void 0?null:X;var B=N.memoizedState.inst;N1!==null&&X!==null&&y3(X,N1.memoizedState.deps)?N.memoizedState=x$(Z,B,G,X):(L0.flags|=$,N.memoizedState=x$(w4|Z,B,G,X))}function JG($,Z){(L0.mode&A4)!==z0?y2(276826112,V5,$,Z):y2(8390656,V5,$,Z)}function qL($){L0.flags|=4;var Z=L0.updateQueue;if(Z===null)Z=$G(),L0.updateQueue=Z,Z.events=[$];else{var G=Z.events;G===null?Z.events=[$]:G.push($)}}function a3($){var Z=W5(),G={impl:$};return Z.memoizedState=G,function(){if((o0&r1)!==t1)throw Error("A function wrapped in useEffectEvent can't be called during rendering.");return G.impl.apply(void 0,arguments)}}function qG($){var Z=J1().memoizedState;return qL({ref:Z,nextImpl:$}),function(){if((o0&r1)!==t1)throw Error("A function wrapped in useEffectEvent can't be called during rendering.");return Z.impl.apply(void 0,arguments)}}function i3($,Z){var G=4194308;return(L0.mode&A4)!==z0&&(G|=134217728),y2(G,Q4,$,Z)}function DB($,Z){if(typeof Z==="function"){$=$();var G=Z($);return function(){typeof G==="function"?G():Z(null)}}if(Z!==null&&Z!==void 0)return Z.hasOwnProperty("current")||console.error("Expected useImperativeHandle() first argument to either be a ref callback or React.createRef() object. Instead received: %s.","an object with keys {"+Object.keys(Z).join(", ")+"}"),$=$(),Z.current=$,function(){Z.current=null}}function t3($,Z,G){typeof Z!=="function"&&console.error("Expected useImperativeHandle() second argument to be a function that creates a handle. Instead received: %s.",Z!==null?typeof Z:"null"),G=G!==null&&G!==void 0?G.concat([$]):null;var X=4194308;(L0.mode&A4)!==z0&&(X|=134217728),y2(X,Q4,DB.bind(null,Z,$),G)}function XG($,Z,G){typeof Z!=="function"&&console.error("Expected useImperativeHandle() second argument to be a function that creates a handle. Instead received: %s.",Z!==null?typeof Z:"null"),G=G!==null&&G!==void 0?G.concat([$]):null,O5(4,Q4,DB.bind(null,Z,$),G)}function e3($,Z){return W5().memoizedState=[$,Z===void 0?null:Z],$}function YG($,Z){var G=J1();Z=Z===void 0?null:Z;var X=G.memoizedState;if(Z!==null&&y3(Z,X[1]))return X[0];return G.memoizedState=[$,Z],$}function $X($,Z){var G=W5();Z=Z===void 0?null:Z;var X=$();if(t2){M1(!0);try{$()}finally{M1(!1)}}return G.memoizedState=[X,Z],X}function UG($,Z){var G=J1();Z=Z===void 0?null:Z;var X=G.memoizedState;if(Z!==null&&y3(Z,X[1]))return X[0];if(X=$(),t2){M1(!0);try{$()}finally{M1(!1)}}return G.memoizedState=[X,Z],X}function ZX($,Z){var G=W5();return QX(G,$,Z)}function jB($,Z){var G=J1();return SB(G,N1.memoizedState,$,Z)}function AB($,Z){var G=J1();return N1===null?QX(G,$,Z):SB(G,N1.memoizedState,$,Z)}function QX($,Z,G){if(G===void 0||(p8&1073741824)!==0&&(S0&261930)===0)return $.memoizedState=Z;return $.memoizedState=G,$=vM(),L0.lanes|=$,c6|=$,G}function SB($,Z,G,X){if(_5(G,Z))return G;if(w9.current!==null)return $=QX($,G,X),_5($,Z)||(x1=!0),$;if((p8&42)===0||(p8&1073741824)!==0&&(S0&261930)===0)return x1=!0,$.memoizedState=G;return $=vM(),L0.lanes|=$,c6|=$,Z}function NG(){x.asyncTransitions--}function vB($,Z,G,X,N){var B=Z1.p;Z1.p=B!==0&&B<j4?B:j4;var W=x.T,R={};R._updatedFibers=new Set,x.T=R,YX($,!1,Z,G);try{var z=N(),V=x.S;if(V!==null&&V(R,z),z!==null&&typeof z==="object"&&typeof z.then==="function"){x.asyncTransitions++,z.then(NG,NG);var k=$L(z,X);E7($,Z,k,o5($))}else E7($,Z,X,o5($))}catch(b){E7($,Z,{then:function(){},status:"rejected",reason:b},o5($))}finally{Z1.p=B,W!==null&&R.types!==null&&(W.types!==null&&W.types!==R.types&&console.error("We expected inner Transitions to have transferred the outer types set and that you cannot add to the outer Transition while inside the inner.This is a bug in React."),W.types=R.types),x.T=W,W===null&&R._updatedFibers&&($=R._updatedFibers.size,R._updatedFibers.clear(),10<$&&console.warn("Detected a large number of updates inside startTransition. If this is due to a subscription please re-write it to use React provided hooks. Otherwise concurrent mode guarantees are off the table."))}}function GX($,Z,G,X){if($.tag!==5)throw Error("Expected the form instance to be a HostComponent. This is a bug in React.");var N=kB($).queue;tz($),vB($,N,Z,N$,G===null?w:function(){return bB($),G(X)})}function kB($){var Z=$.memoizedState;if(Z!==null)return Z;Z={memoizedState:N$,baseState:N$,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:I4,lastRenderedState:N$},next:null};var G={};return Z.next={memoizedState:G,baseState:G,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:I4,lastRenderedState:G},next:null},$.memoizedState=Z,$=$.alternate,$!==null&&($.memoizedState=Z),Z}function bB($){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=kB($);Z.next===null&&(Z=$.alternate.memoizedState),E7($,Z.next.queue,{},o5($))}function JX(){var $=l3(!1);return $=vB.bind(null,L0,$.queue,!0,!1),W5().memoizedState=$,[!1,$]}function fB(){var $=g$(I4)[0],Z=J1().memoizedState;return[typeof $==="boolean"?$:L7($),Z]}function yB(){var $=V7(I4)[0],Z=J1().memoizedState;return[typeof $==="boolean"?$:L7($),Z]}function g2(){return z1(vZ)}function qX(){var $=W5(),Z=K1.identifierPrefix;if(p0){var G=h8,X=g8;G=(X&~(1<<32-R5(X)-1)).toString(32)+G,Z="_"+Z+"R_"+G,G=KJ++,0<G&&(Z+="H"+G.toString(32)),Z+="_"}else G=hE++,Z="_"+Z+"r_"+G.toString(32)+"_";return $.memoizedState=Z}function XX(){return W5().memoizedState=XL.bind(null,L0)}function XL($,Z){for(var G=$.return;G!==null;){switch(G.tag){case 24:case 3:var X=o5(G),N=_6(X),B=z6(G,N,X);B!==null&&(l4(X,"refresh()",$),C1(B,G,X),T7(B,G,X)),$=I3(),Z!==null&&Z!==void 0&&B!==null&&console.error("The seed argument is not enabled outside experimental channels."),N.payload={cache:$};return}G=G.return}}function YL($,Z,G){var X=arguments;typeof X[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()."),X=o5($);var N={lane:X,revertLane:0,gesture:null,action:G,hasEagerState:!1,eagerState:null,next:null};KG($)?hB(Z,N):(N=F3($,Z,N,X),N!==null&&(l4(X,"dispatch()",$),C1(N,$,X),xB(N,Z,X)))}function gB($,Z,G){var X=arguments;typeof X[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()."),X=o5($),E7($,Z,G,X)&&l4(X,"setState()",$)}function E7($,Z,G,X){var N={lane:X,revertLane:0,gesture:null,action:G,hasEagerState:!1,eagerState:null,next:null};if(KG($))hB(Z,N);else{var B=$.alternate;if($.lanes===0&&(B===null||B.lanes===0)&&(B=Z.lastRenderedReducer,B!==null)){var W=x.H;x.H=v4;try{var R=Z.lastRenderedState,z=B(R,G);if(N.hasEagerState=!0,N.eagerState=z,_5(z,R))return yQ($,Z,N,0),K1===null&&fQ(),!1}catch(V){}finally{x.H=W}}if(G=F3($,Z,N,X),G!==null)return C1(G,$,X),xB(G,Z,X),!0}return!1}function YX($,Z,G,X){if(x.T===null&&s2===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."),X={lane:2,revertLane:gX(),gesture:null,action:X,hasEagerState:!1,eagerState:null,next:null},KG($)){if(Z)throw Error("Cannot update optimistic state while rendering.");console.error("Cannot call startTransition while rendering.")}else Z=F3($,G,X,2),Z!==null&&(l4(2,"setOptimistic()",$),C1(Z,$,2))}function KG($){var Z=$.alternate;return $===L0||Z!==null&&Z===L0}function hB($,Z){z9=NJ=!0;var G=$.pending;G===null?Z.next=Z:(Z.next=G.next,G.next=Z),$.pending=Z}function xB($,Z,G){if((G&4194048)!==0){var X=Z.lanes;X&=$.pendingLanes,G|=X,Z.lanes=G,E2($,G)}}function UX($){if($!==null&&typeof $!=="function"){var Z=String($);yW.has(Z)||(yW.add(Z),console.error("Expected the last optional `callback` argument to be a function. Instead received: %s.",$))}}function NX($,Z,G,X){var N=$.memoizedState,B=G(X,N);if($.mode&H5){M1(!0);try{B=G(X,N)}finally{M1(!1)}}B===void 0&&(Z=i(Z)||"Component",vW.has(Z)||(vW.add(Z),console.error("%s.getDerivedStateFromProps(): A valid state object (or null) must be returned. You have returned undefined.",Z))),N=B===null||B===void 0?N:y0({},N,B),$.memoizedState=N,$.lanes===0&&($.updateQueue.baseState=N)}function uB($,Z,G,X,N,B,W){var R=$.stateNode;if(typeof R.shouldComponentUpdate==="function"){if(G=R.shouldComponentUpdate(X,B,W),$.mode&H5){M1(!0);try{G=R.shouldComponentUpdate(X,B,W)}finally{M1(!1)}}return G===void 0&&console.error("%s.shouldComponentUpdate(): Returned undefined instead of a boolean value. Make sure to return true or false.",i(Z)||"Component"),G}return Z.prototype&&Z.prototype.isPureReactComponent?!B7(G,X)||!B7(N,B):!0}function mB($,Z,G,X){var N=Z.state;typeof Z.componentWillReceiveProps==="function"&&Z.componentWillReceiveProps(G,X),typeof Z.UNSAFE_componentWillReceiveProps==="function"&&Z.UNSAFE_componentWillReceiveProps(G,X),Z.state!==N&&($=d($)||"Component",OW.has($)||(OW.add($),console.error("%s.componentWillReceiveProps(): Assigning directly to this.state is deprecated (except inside a component's constructor). Use setState instead.",$)),GU.enqueueReplaceState(Z,Z.state,null))}function h2($,Z){var G=Z;if("ref"in Z){G={};for(var X in Z)X!=="ref"&&(G[X]=Z[X])}if($=$.defaultProps){G===Z&&(G=y0({},G));for(var N in $)G[N]===void 0&&(G[N]=$[N])}return G}function dB($){bY($),console.warn(`%s
|
|
115
|
+
Incoming: %s`,h,"["+Z.join(", ")+"]","["+$.join(", ")+"]");for(var G=0;G<Z.length&&G<$.length;G++)if(!z5($[G],Z[G]))return!1;return!0}function x3($,Z,G,X,N,B){if(p8=B,L0=Z,T4=$!==null?$._debugHookTypes:null,l8=-1,wZ=$!==null&&$.type!==Z.type,Object.prototype.toString.call(G)==="[object AsyncFunction]"||Object.prototype.toString.call(G)==="[object AsyncGeneratorFunction]")B=d(L0),QU.has(B)||(QU.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?JU:T4!==null?OW:GU,t2=B=(Z.mode&M5)!==_0;var W=oY(G,X,N);if(t2=!1,_9&&(W=u3(Z,G,X,N)),B){H1(!0);try{W=u3(Z,G,X,N)}finally{H1(!1)}}return wB($,Z),W}function wB($,Z){Z._debugHookTypes=T4,Z.dependencies===null?c8!==null&&(Z.dependencies={lanes:0,firstContext:null,_debugThenableState:c8}):Z.dependencies._debugThenableState=c8,x.H=RZ;var G=N1!==null&&N1.next!==null;if(p8=0,T4=h=h1=N1=L0=null,l8=-1,$!==null&&($.flags&65011712)!==(Z.flags&65011712)&&console.error("Internal React error: Expected static flag was missing. Please notify the React team."),NJ=!1,WZ=0,c8=null,G)throw Error("Rendered fewer hooks than expected. This may be caused by an accidental early return statement.");$===null||x1||($=$.dependencies,$!==null&&mQ($)&&(x1=!0)),HZ?(HZ=!1,$=!0):$=!1,$&&(Z=d(Z)||"Unknown",CW.has(Z)||QU.has(Z)||(CW.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 u3($,Z,G,X){L0=$;var N=0;do{if(_9&&(c8=null),WZ=0,_9=!1,N>=cE)throw Error("Too many re-renders. React limits the number of renders to prevent an infinite loop.");if(N+=1,wZ=!1,h1=N1=null,$.updateQueue!=null){var B=$.updateQueue;B.lastEffect=null,B.events=null,B.stores=null,B.memoCache!=null&&(B.memoCache.index=0)}l8=-1,x.H=DW,B=oY(Z,G,X)}while(_9);return B}function YL(){var $=x.H,Z=$.useState()[0];return Z=typeof Z.then==="function"?L7(Z):Z,$=$.useState()[0],(N1!==null?N1.memoizedState:null)!==$&&(L0.flags|=1024),Z}function m3(){var $=KJ!==0;return KJ=0,$}function d3($,Z,G){Z.updateQueue=$.updateQueue,Z.flags=(Z.mode&A4)!==_0?Z.flags&-402655237:Z.flags&-2053,$.lanes&=~G}function p3($){if(NJ){for($=$.memoizedState;$!==null;){var Z=$.queue;Z!==null&&(Z.pending=null),$=$.next}NJ=!1}p8=0,T4=h1=N1=L0=null,l8=-1,h=null,_9=!1,WZ=KJ=0,c8=null}function W5(){var $={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return h1===null?L0.memoizedState=h1=$:h1=h1.next=$,h1}function J1(){if(N1===null){var $=L0.alternate;$=$!==null?$.memoizedState:null}else $=N1.next;var Z=h1===null?L0.memoizedState:h1.next;if(Z!==null)h1=Z,N1=$;else{if($===null){if(L0.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.")}N1=$,$={memoizedState:N1.memoizedState,baseState:N1.baseState,baseQueue:N1.baseQueue,queue:N1.queue,next:null},h1===null?L0.memoizedState=h1=$:h1=h1.next=$}return h1}function $G(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function L7($){var Z=WZ;return WZ+=1,c8===null&&(c8=QB()),$=JB(c8,$,Z),Z=L0,(h1===null?Z.memoizedState:h1.next)===null&&(Z=Z.alternate,x.H=Z!==null&&Z.memoizedState!==null?JU:GU),$}function E6($){if($!==null&&typeof $==="object"){if(typeof $.then==="function")return L7($);if($.$$typeof===q8)return _1($)}throw Error("An unsupported type was passed to use(): "+String($))}function f2($){var Z=null,G=L0.updateQueue;if(G!==null&&(Z=G.memoCache),Z==null){var X=L0.alternate;X!==null&&(X=X.updateQueue,X!==null&&(X=X.memoCache,X!=null&&(Z={data:X.data.map(function(N){return N.slice()}),index:0})))}if(Z==null&&(Z={data:[],index:0}),G===null&&(G=$G(),L0.updateQueue=G),G.memoCache=Z,G=Z.data[Z.index],G===void 0||wZ)for(G=Z.data[Z.index]=Array($),X=0;X<$;X++)G[X]=VV;else G.length!==$&&console.error("Expected a constant size argument for each invocation of useMemoCache. The previous cache was allocated with size %s but size %s was requested.",G.length,$);return Z.index++,G}function I4($,Z){return typeof Z==="function"?Z($):Z}function c3($,Z,G){var X=W5();if(G!==void 0){var N=G(Z);if(t2){H1(!0);try{G(Z)}finally{H1(!1)}}}else N=Z;return X.memoizedState=X.baseState=N,$={pending:null,lanes:0,dispatch:null,lastRenderedReducer:$,lastRenderedState:N},X.queue=$,$=$.dispatch=HL.bind(null,L0,$),[X.memoizedState,$]}function g$($){var Z=J1();return l3(Z,N1,$)}function l3($,Z,G){var X=$.queue;if(X===null)throw Error("Should have a queue. You are likely calling Hooks conditionally, which is not allowed. (https://react.dev/link/invalid-hook-call)");X.lastRenderedReducer=G;var N=$.baseQueue,B=X.pending;if(B!==null){if(N!==null){var W=N.next;N.next=B.next,B.next=W}Z.baseQueue!==N&&console.error("Internal error: Expected work-in-progress queue to be a clone. This is a bug in React."),Z.baseQueue=N=B,X.pending=null}if(B=$.baseState,N===null)$.memoizedState=B;else{Z=N.next;var w=W=null,_=null,V=Z,k=!1;do{var b=V.lane&-536870913;if(b!==V.lane?(S0&b)===b:(p8&b)===b){var D=V.revertLane;if(D===0)_!==null&&(_=_.next={lane:0,revertLane:0,gesture:null,action:V.action,hasEagerState:V.hasEagerState,eagerState:V.eagerState,next:null}),b===s2&&(k=!0);else if((p8&D)===D){V=V.next,D===s2&&(k=!0);continue}else b={lane:0,revertLane:V.revertLane,gesture:null,action:V.action,hasEagerState:V.hasEagerState,eagerState:V.eagerState,next:null},_===null?(w=_=b,W=B):_=_.next=b,L0.lanes|=D,c6|=D;b=V.action,t2&&G(B,b),B=V.hasEagerState?V.eagerState:G(B,b)}else D={lane:b,revertLane:V.revertLane,gesture:V.gesture,action:V.action,hasEagerState:V.hasEagerState,eagerState:V.eagerState,next:null},_===null?(w=_=D,W=B):_=_.next=D,L0.lanes|=b,c6|=b;V=V.next}while(V!==null&&V!==Z);if(_===null?W=B:_.next=w,!z5(B,$.memoizedState)&&(x1=!0,k&&(G=F9,G!==null)))throw G;$.memoizedState=B,$.baseState=W,$.baseQueue=_,X.lastRenderedState=B}return N===null&&(X.lanes=0),[$.memoizedState,X.dispatch]}function V7($){var Z=J1(),G=Z.queue;if(G===null)throw Error("Should have a queue. You are likely calling Hooks conditionally, which is not allowed. (https://react.dev/link/invalid-hook-call)");G.lastRenderedReducer=$;var{dispatch:X,pending:N}=G,B=Z.memoizedState;if(N!==null){G.pending=null;var W=N=N.next;do B=$(B,W.action),W=W.next;while(W!==N);z5(B,Z.memoizedState)||(x1=!0),Z.memoizedState=B,Z.baseQueue===null&&(Z.baseState=B),G.lastRenderedState=B}return[B,X]}function r3($,Z,G){var X=L0,N=W5();if(p0){if(G===void 0)throw Error("Missing getServerSnapshot, which is required for server-rendered content. Will revert to client rendering.");var B=G();z9||B===G()||(console.error("The result of getServerSnapshot should be cached to avoid an infinite loop"),z9=!0)}else{if(B=Z(),z9||(G=Z(),z5(B,G)||(console.error("The result of getSnapshot should be cached to avoid an infinite loop"),z9=!0)),K1===null)throw Error("Expected a work-in-progress root. This is a bug in React. Please file an issue.");(S0&127)!==0||RB(X,Z,B)}return N.memoizedState=B,G={value:B,getSnapshot:Z},N.queue=G,JG(zB.bind(null,X,G,$),[$]),X.flags|=2048,x$(R4|V5,{destroy:void 0},TB.bind(null,X,G,B,Z),null),B}function ZG($,Z,G){var X=L0,N=J1(),B=p0;if(B){if(G===void 0)throw Error("Missing getServerSnapshot, which is required for server-rendered content. Will revert to client rendering.");G=G()}else if(G=Z(),!z9){var W=Z();z5(G,W)||(console.error("The result of getSnapshot should be cached to avoid an infinite loop"),z9=!0)}if(W=!z5((N1||N).memoizedState,G))N.memoizedState=G,x1=!0;N=N.queue;var w=zB.bind(null,X,N,$);if(O5(2048,V5,w,[$]),N.getSnapshot!==Z||W||h1!==null&&h1.memoizedState.tag&R4){if(X.flags|=2048,x$(R4|V5,{destroy:void 0},TB.bind(null,X,N,G,Z),null),K1===null)throw Error("Expected a work-in-progress root. This is a bug in React. Please file an issue.");B||(p8&127)!==0||RB(X,Z,G)}return G}function RB($,Z,G){$.flags|=16384,$={getSnapshot:Z,value:G},Z=L0.updateQueue,Z===null?(Z=$G(),L0.updateQueue=Z,Z.stores=[$]):(G=Z.stores,G===null?Z.stores=[$]:G.push($))}function TB($,Z,G,X){Z.value=G,Z.getSnapshot=X,_B(Z)&&LB($)}function zB($,Z,G){return G(function(){_B(Z)&&(l4(2,"updateSyncExternalStore()",$),LB($))})}function _B($){var Z=$.getSnapshot;$=$.value;try{var G=Z();return!z5($,G)}catch(X){return!0}}function LB($){var Z=B5($,2);Z!==null&&C1(Z,$,2)}function s3($){var Z=W5();if(typeof $==="function"){var G=$;if($=G(),t2){H1(!0);try{G()}finally{H1(!1)}}}return Z.memoizedState=Z.baseState=$,Z.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:I4,lastRenderedState:$},Z}function n3($){$=s3($);var Z=$.queue,G=uB.bind(null,L0,Z);return Z.dispatch=G,[$.memoizedState,G]}function o3($){var Z=W5();Z.memoizedState=Z.baseState=$;var G={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return Z.queue=G,Z=NX.bind(null,L0,!0,G),G.dispatch=Z,[$,Z]}function VB($,Z){var G=J1();return EB(G,N1,$,Z)}function EB($,Z,G,X){return $.baseState=G,l3($,N1,typeof X==="function"?X:I4)}function PB($,Z){var G=J1();if(N1!==null)return EB(G,N1,$,Z);return G.baseState=$,[$,G.queue.dispatch]}function UL($,Z,G,X,N){if(KG($))throw Error("Cannot update form state while rendering.");if($=Z.action,$!==null){var B={payload:N,action:$,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(W){B.listeners.push(W)}};x.T!==null?G(!0):B.isTransition=!1,X(B),G=Z.pending,G===null?(B.next=Z.pending=B,CB(Z,B)):(B.next=G.next,Z.pending=G.next=B)}}function CB($,Z){var{action:G,payload:X}=Z,N=$.state;if(Z.isTransition){var B=x.T,W={};W._updatedFibers=new Set,x.T=W;try{var w=G(N,X),_=x.S;_!==null&&_(W,w),IB($,Z,w)}catch(V){a3($,Z,V)}finally{B!==null&&W.types!==null&&(B.types!==null&&B.types!==W.types&&console.error("We expected inner Transitions to have transferred the outer types set and that you cannot add to the outer Transition while inside the inner.This is a bug in React."),B.types=W.types),x.T=B,B===null&&W._updatedFibers&&($=W._updatedFibers.size,W._updatedFibers.clear(),10<$&&console.warn("Detected a large number of updates inside startTransition. If this is due to a subscription please re-write it to use React provided hooks. Otherwise concurrent mode guarantees are off the table."))}}else try{W=G(N,X),IB($,Z,W)}catch(V){a3($,Z,V)}}function IB($,Z,G){G!==null&&typeof G==="object"&&typeof G.then==="function"?(x.asyncTransitions++,G.then(NG,NG),G.then(function(X){OB($,Z,X)},function(X){return a3($,Z,X)}),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.")):OB($,Z,G)}function OB($,Z,G){Z.status="fulfilled",Z.value=G,DB(Z),$.state=G,Z=$.pending,Z!==null&&(G=Z.next,G===Z?$.pending=null:(G=G.next,Z.next=G,CB($,G)))}function a3($,Z,G){var X=$.pending;if($.pending=null,X!==null){X=X.next;do Z.status="rejected",Z.reason=G,DB(Z),Z=Z.next;while(Z!==X)}$.action=null}function DB($){$=$.listeners;for(var Z=0;Z<$.length;Z++)(0,$[Z])()}function jB($,Z){return Z}function h$($,Z){if(p0){var G=K1.formState;if(G!==null){$:{var X=L0;if(p0){if(R1){Z:{var N=R1;for(var B=F4;N.nodeType!==8;){if(!B){N=null;break Z}if(N=a5(N.nextSibling),N===null){N=null;break Z}}B=N.data,N=B===OU||B===Mw?N:null}if(N){R1=a5(N.nextSibling),X=N.data===OU;break $}}w6(X)}X=!1}X&&(Z=G[0])}}return G=W5(),G.memoizedState=G.baseState=Z,X={pending:null,lanes:0,dispatch:null,lastRenderedReducer:jB,lastRenderedState:Z},G.queue=X,G=uB.bind(null,L0,X),X.dispatch=G,X=s3(!1),B=NX.bind(null,L0,!1,X.queue),X=W5(),N={state:Z,dispatch:null,action:$,pending:null},X.queue=N,G=UL.bind(null,L0,N,B,G),N.dispatch=G,X.memoizedState=$,[Z,G,!1]}function QG($){var Z=J1();return AB(Z,N1,$)}function AB($,Z,G){if(Z=l3($,Z,jB)[0],$=g$(I4)[0],typeof Z==="object"&&Z!==null&&typeof Z.then==="function")try{var X=L7(Z)}catch(W){if(W===W9)throw qJ;throw W}else X=Z;Z=J1();var N=Z.queue,B=N.dispatch;return G!==Z.memoizedState&&(L0.flags|=2048,x$(R4|V5,{destroy:void 0},NL.bind(null,N,G),null)),[X,B,$]}function NL($,Z){$.action=Z}function GG($){var Z=J1(),G=N1;if(G!==null)return AB(Z,G,$);J1(),Z=Z.memoizedState,G=J1();var X=G.queue.dispatch;return G.memoizedState=$,[Z,X,!1]}function x$($,Z,G,X){return $={tag:$,create:G,deps:X,inst:Z,next:null},Z=L0.updateQueue,Z===null&&(Z=$G(),L0.updateQueue=Z),G=Z.lastEffect,G===null?Z.lastEffect=$.next=$:(X=G.next,G.next=$,$.next=X,Z.lastEffect=$),$}function i3($){var Z=W5();return $={current:$},Z.memoizedState=$}function y2($,Z,G,X){var N=W5();L0.flags|=$,N.memoizedState=x$(R4|Z,{destroy:void 0},G,X===void 0?null:X)}function O5($,Z,G,X){var N=J1();X=X===void 0?null:X;var B=N.memoizedState.inst;N1!==null&&X!==null&&h3(X,N1.memoizedState.deps)?N.memoizedState=x$(Z,B,G,X):(L0.flags|=$,N.memoizedState=x$(R4|Z,B,G,X))}function JG($,Z){(L0.mode&A4)!==_0?y2(276826112,V5,$,Z):y2(8390656,V5,$,Z)}function KL($){L0.flags|=4;var Z=L0.updateQueue;if(Z===null)Z=$G(),L0.updateQueue=Z,Z.events=[$];else{var G=Z.events;G===null?Z.events=[$]:G.push($)}}function t3($){var Z=W5(),G={impl:$};return Z.memoizedState=G,function(){if((o0&r1)!==t1)throw Error("A function wrapped in useEffectEvent can't be called during rendering.");return G.impl.apply(void 0,arguments)}}function qG($){var Z=J1().memoizedState;return KL({ref:Z,nextImpl:$}),function(){if((o0&r1)!==t1)throw Error("A function wrapped in useEffectEvent can't be called during rendering.");return Z.impl.apply(void 0,arguments)}}function e3($,Z){var G=4194308;return(L0.mode&A4)!==_0&&(G|=134217728),y2(G,Q4,$,Z)}function SB($,Z){if(typeof Z==="function"){$=$();var G=Z($);return function(){typeof G==="function"?G():Z(null)}}if(Z!==null&&Z!==void 0)return Z.hasOwnProperty("current")||console.error("Expected useImperativeHandle() first argument to either be a ref callback or React.createRef() object. Instead received: %s.","an object with keys {"+Object.keys(Z).join(", ")+"}"),$=$(),Z.current=$,function(){Z.current=null}}function $X($,Z,G){typeof Z!=="function"&&console.error("Expected useImperativeHandle() second argument to be a function that creates a handle. Instead received: %s.",Z!==null?typeof Z:"null"),G=G!==null&&G!==void 0?G.concat([$]):null;var X=4194308;(L0.mode&A4)!==_0&&(X|=134217728),y2(X,Q4,SB.bind(null,Z,$),G)}function XG($,Z,G){typeof Z!=="function"&&console.error("Expected useImperativeHandle() second argument to be a function that creates a handle. Instead received: %s.",Z!==null?typeof Z:"null"),G=G!==null&&G!==void 0?G.concat([$]):null,O5(4,Q4,SB.bind(null,Z,$),G)}function ZX($,Z){return W5().memoizedState=[$,Z===void 0?null:Z],$}function YG($,Z){var G=J1();Z=Z===void 0?null:Z;var X=G.memoizedState;if(Z!==null&&h3(Z,X[1]))return X[0];return G.memoizedState=[$,Z],$}function QX($,Z){var G=W5();Z=Z===void 0?null:Z;var X=$();if(t2){H1(!0);try{$()}finally{H1(!1)}}return G.memoizedState=[X,Z],X}function UG($,Z){var G=J1();Z=Z===void 0?null:Z;var X=G.memoizedState;if(Z!==null&&h3(Z,X[1]))return X[0];if(X=$(),t2){H1(!0);try{$()}finally{H1(!1)}}return G.memoizedState=[X,Z],X}function GX($,Z){var G=W5();return JX(G,$,Z)}function vB($,Z){var G=J1();return bB(G,N1.memoizedState,$,Z)}function kB($,Z){var G=J1();return N1===null?JX(G,$,Z):bB(G,N1.memoizedState,$,Z)}function JX($,Z,G){if(G===void 0||(p8&1073741824)!==0&&(S0&261930)===0)return $.memoizedState=Z;return $.memoizedState=G,$=fH(),L0.lanes|=$,c6|=$,G}function bB($,Z,G,X){if(z5(G,Z))return G;if(R9.current!==null)return $=JX($,G,X),z5($,Z)||(x1=!0),$;if((p8&42)===0||(p8&1073741824)!==0&&(S0&261930)===0)return x1=!0,$.memoizedState=G;return $=fH(),L0.lanes|=$,c6|=$,Z}function NG(){x.asyncTransitions--}function fB($,Z,G,X,N){var B=Z1.p;Z1.p=B!==0&&B<j4?B:j4;var W=x.T,w={};w._updatedFibers=new Set,x.T=w,NX($,!1,Z,G);try{var _=N(),V=x.S;if(V!==null&&V(w,_),_!==null&&typeof _==="object"&&typeof _.then==="function"){x.asyncTransitions++,_.then(NG,NG);var k=qL(_,X);E7($,Z,k,o5($))}else E7($,Z,X,o5($))}catch(b){E7($,Z,{then:function(){},status:"rejected",reason:b},o5($))}finally{Z1.p=B,W!==null&&w.types!==null&&(W.types!==null&&W.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."),W.types=w.types),x.T=W,W===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 qX($,Z,G,X){if($.tag!==5)throw Error("Expected the form instance to be a HostComponent. This is a bug in React.");var N=yB($).queue;GL($),fB($,N,Z,N$,G===null?R:function(){return gB($),G(X)})}function yB($){var Z=$.memoizedState;if(Z!==null)return Z;Z={memoizedState:N$,baseState:N$,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:I4,lastRenderedState:N$},next:null};var G={};return Z.next={memoizedState:G,baseState:G,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:I4,lastRenderedState:G},next:null},$.memoizedState=Z,$=$.alternate,$!==null&&($.memoizedState=Z),Z}function gB($){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=yB($);Z.next===null&&(Z=$.alternate.memoizedState),E7($,Z.next.queue,{},o5($))}function XX(){var $=s3(!1);return $=fB.bind(null,L0,$.queue,!0,!1),W5().memoizedState=$,[!1,$]}function hB(){var $=g$(I4)[0],Z=J1().memoizedState;return[typeof $==="boolean"?$:L7($),Z]}function xB(){var $=V7(I4)[0],Z=J1().memoizedState;return[typeof $==="boolean"?$:L7($),Z]}function g2(){return _1(vZ)}function YX(){var $=W5(),Z=K1.identifierPrefix;if(p0){var G=h8,X=g8;G=(X&~(1<<32-w5(X)-1)).toString(32)+G,Z="_"+Z+"R_"+G,G=KJ++,0<G&&(Z+="H"+G.toString(32)),Z+="_"}else G=pE++,Z="_"+Z+"r_"+G.toString(32)+"_";return $.memoizedState=Z}function UX(){return W5().memoizedState=BL.bind(null,L0)}function BL($,Z){for(var G=$.return;G!==null;){switch(G.tag){case 24:case 3:var X=o5(G),N=z6(X),B=_6(G,N,X);B!==null&&(l4(X,"refresh()",$),C1(B,G,X),T7(B,G,X)),$=D3(),Z!==null&&Z!==void 0&&B!==null&&console.error("The seed argument is not enabled outside experimental channels."),N.payload={cache:$};return}G=G.return}}function HL($,Z,G){var X=arguments;typeof X[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()."),X=o5($);var N={lane:X,revertLane:0,gesture:null,action:G,hasEagerState:!1,eagerState:null,next:null};KG($)?mB(Z,N):(N=w3($,Z,N,X),N!==null&&(l4(X,"dispatch()",$),C1(N,$,X),dB(N,Z,X)))}function uB($,Z,G){var X=arguments;typeof X[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()."),X=o5($),E7($,Z,G,X)&&l4(X,"setState()",$)}function E7($,Z,G,X){var N={lane:X,revertLane:0,gesture:null,action:G,hasEagerState:!1,eagerState:null,next:null};if(KG($))mB(Z,N);else{var B=$.alternate;if($.lanes===0&&(B===null||B.lanes===0)&&(B=Z.lastRenderedReducer,B!==null)){var W=x.H;x.H=v4;try{var w=Z.lastRenderedState,_=B(w,G);if(N.hasEagerState=!0,N.eagerState=_,z5(_,w))return yQ($,Z,N,0),K1===null&&fQ(),!1}catch(V){}finally{x.H=W}}if(G=w3($,Z,N,X),G!==null)return C1(G,$,X),dB(G,Z,X),!0}return!1}function NX($,Z,G,X){if(x.T===null&&s2===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."),X={lane:2,revertLane:xX(),gesture:null,action:X,hasEagerState:!1,eagerState:null,next:null},KG($)){if(Z)throw Error("Cannot update optimistic state while rendering.");console.error("Cannot call startTransition while rendering.")}else Z=w3($,G,X,2),Z!==null&&(l4(2,"setOptimistic()",$),C1(Z,$,2))}function KG($){var Z=$.alternate;return $===L0||Z!==null&&Z===L0}function mB($,Z){_9=NJ=!0;var G=$.pending;G===null?Z.next=Z:(Z.next=G.next,G.next=Z),$.pending=Z}function dB($,Z,G){if((G&4194048)!==0){var X=Z.lanes;X&=$.pendingLanes,G|=X,Z.lanes=G,E2($,G)}}function KX($){if($!==null&&typeof $!=="function"){var Z=String($);xW.has(Z)||(xW.add(Z),console.error("Expected the last optional `callback` argument to be a function. Instead received: %s.",$))}}function BX($,Z,G,X){var N=$.memoizedState,B=G(X,N);if($.mode&M5){H1(!0);try{B=G(X,N)}finally{H1(!1)}}B===void 0&&(Z=i(Z)||"Component",fW.has(Z)||(fW.add(Z),console.error("%s.getDerivedStateFromProps(): A valid state object (or null) must be returned. You have returned undefined.",Z))),N=B===null||B===void 0?N:y0({},N,B),$.memoizedState=N,$.lanes===0&&($.updateQueue.baseState=N)}function pB($,Z,G,X,N,B,W){var w=$.stateNode;if(typeof w.shouldComponentUpdate==="function"){if(G=w.shouldComponentUpdate(X,B,W),$.mode&M5){H1(!0);try{G=w.shouldComponentUpdate(X,B,W)}finally{H1(!1)}}return G===void 0&&console.error("%s.shouldComponentUpdate(): Returned undefined instead of a boolean value. Make sure to return true or false.",i(Z)||"Component"),G}return Z.prototype&&Z.prototype.isPureReactComponent?!B7(G,X)||!B7(N,B):!0}function cB($,Z,G,X){var N=Z.state;typeof Z.componentWillReceiveProps==="function"&&Z.componentWillReceiveProps(G,X),typeof Z.UNSAFE_componentWillReceiveProps==="function"&&Z.UNSAFE_componentWillReceiveProps(G,X),Z.state!==N&&($=d($)||"Component",AW.has($)||(AW.add($),console.error("%s.componentWillReceiveProps(): Assigning directly to this.state is deprecated (except inside a component's constructor). Use setState instead.",$)),qU.enqueueReplaceState(Z,Z.state,null))}function h2($,Z){var G=Z;if("ref"in Z){G={};for(var X in Z)X!=="ref"&&(G[X]=Z[X])}if($=$.defaultProps){G===Z&&(G=y0({},G));for(var N in $)G[N]===void 0&&(G[N]=$[N])}return G}function lB($){yY($),console.warn(`%s
|
|
116
116
|
|
|
117
117
|
%s
|
|
118
118
|
`,L9?"An error occurred in the <"+L9+"> 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
|
|
119
|
+
Visit https://react.dev/link/error-boundaries to learn more about error boundaries.`)}function rB($){var Z=L9?"The above error occurred in the <"+L9+"> component.":"The above error occurred in one of your React components.",G="React will try to recreate this component tree from scratch using the error boundary you provided, "+((XU||"Anonymous")+".");if(typeof $==="object"&&$!==null&&typeof $.environmentName==="string"){var X=$.environmentName;$=[`%o
|
|
120
120
|
|
|
121
121
|
%s
|
|
122
122
|
|
|
123
123
|
%s
|
|
124
|
-
`,$,Z,G].slice(0),typeof $[0]==="string"?$.splice(0,1,
|
|
124
|
+
`,$,Z,G].slice(0),typeof $[0]==="string"?$.splice(0,1,Lw+" "+$[0],Vw,fJ+X+fJ,Ew):$.splice(0,0,Lw,Vw,fJ+X+fJ,Ew),$.unshift(console),X=KP.apply(console.error,$),X()}else console.error(`%o
|
|
125
125
|
|
|
126
126
|
%s
|
|
127
127
|
|
|
128
128
|
%s
|
|
129
|
-
`,$,Z,G)}function
|
|
129
|
+
`,$,Z,G)}function sB($){yY($)}function BG($,Z){try{L9=Z.source?d(Z.source):null,XU=null;var G=Z.value;if(x.actQueue!==null)x.thrownErrors.push(G);else{var X=$.onUncaughtError;X(G,{componentStack:Z.stack})}}catch(N){setTimeout(function(){throw N})}}function nB($,Z,G){try{L9=G.source?d(G.source):null,XU=d(Z);var X=$.onCaughtError;X(G.value,{componentStack:G.stack,errorBoundary:Z.tag===1?Z.stateNode:null})}catch(N){setTimeout(function(){throw N})}}function HX($,Z,G){return G=z6(G),G.tag=eY,G.payload={element:null},G.callback=function(){G0(Z.source,BG,$,Z)},G}function MX($){return $=z6($),$.tag=eY,$}function FX($,Z,G,X){var N=G.type.getDerivedStateFromError;if(typeof N==="function"){var B=X.value;$.payload=function(){return N(B)},$.callback=function(){mK(G),G0(X.source,nB,Z,G,X)}}var W=G.stateNode;W!==null&&typeof W.componentDidCatch==="function"&&($.callback=function(){mK(G),G0(X.source,nB,Z,G,X),typeof N!=="function"&&(r6===null?r6=new Set([this]):r6.add(this)),xE(this,X),typeof N==="function"||(G.lanes&2)===0&&console.error("%s: Error boundaries should implement getDerivedStateFromError(). In that method, return a state update to display an error message or fallback UI.",d(G)||"Unknown")})}function ML($,Z,G,X,N){if(G.flags|=32768,U8&&S7($,N),X!==null&&typeof X==="object"&&typeof X.then==="function"){if(Z=G.alternate,Z!==null&&f$(Z,G,N,!0),p0&&(B8=!0),G=Z4.current,G!==null){switch(G.tag){case 31:case 13:return w4===null?_G():G.alternate===null&&E1===s8&&(E1=MJ),G.flags&=-257,G.flags|=65536,G.lanes=N,X===XJ?G.flags|=16384:(Z=G.updateQueue,Z===null?G.updateQueue=new Set([X]):Z.add(X),fX($,X,N)),!1;case 22:return G.flags|=65536,X===XJ?G.flags|=16384:(Z=G.updateQueue,Z===null?(Z={transitions:null,markerInstances:null,retryQueue:new Set([X])},G.updateQueue=Z):(G=Z.retryQueue,G===null?Z.retryQueue=new Set([X]):G.add(X)),fX($,X,N)),!1}throw Error("Unexpected Suspense handler tag ("+G.tag+"). This is a bug in React.")}return fX($,X,N),_G(),!1}if(p0)return B8=!0,Z=Z4.current,Z!==null?((Z.flags&65536)===0&&(Z.flags|=256),Z.flags|=65536,Z.lanes=N,X!==dY&&M7(l5(Error("There was an error while hydrating but React was able to recover by instead client rendering from the nearest Suspense boundary.",{cause:X}),G))):(X!==dY&&M7(l5(Error("There was an error while hydrating but React was able to recover by instead client rendering the entire root.",{cause:X}),G)),$=$.current.alternate,$.flags|=65536,N&=-N,$.lanes|=N,X=l5(X,G),N=HX($.stateNode,X,N),iQ($,N),E1!==d6&&(E1=e2)),!1;var B=l5(Error("There was an error during concurrent rendering but React was able to recover by instead synchronously rendering the entire root.",{cause:X}),G);if(EZ===null?EZ=[B]:EZ.push(B),E1!==d6&&(E1=e2),Z===null)return!0;X=l5(X,G),G=Z;do{switch(G.tag){case 3:return G.flags|=65536,$=N&-N,G.lanes|=$,$=HX(G.stateNode,X,$),iQ(G,$),!1;case 1:if(Z=G.type,B=G.stateNode,(G.flags&128)===0&&(typeof Z.getDerivedStateFromError==="function"||B!==null&&typeof B.componentDidCatch==="function"&&(r6===null||!r6.has(B))))return G.flags|=65536,N&=-N,G.lanes|=N,N=MX(N),FX(N,$,G,X),iQ(G,N),!1}G=G.return}while(G!==null);return!1}function Z5($,Z,G,X){Z.child=$===null?zW(Z,null,G,X):i2(Z,$.child,G,X)}function oB($,Z,G,X,N){G=G.render;var B=Z.ref;if("ref"in X){var W={};for(var w in X)w!=="ref"&&(W[w]=X[w])}else W=X;if(k2(Z),X=x3($,Z,G,W,B,N),w=m3(),$!==null&&!x1)return d3($,Z,N),S8($,Z,N);return p0&&w&&V3(Z),Z.flags|=1,Z5($,Z,X,N),Z.child}function aB($,Z,G,X,N){if($===null){var B=G.type;if(typeof B==="function"&&!T3(B)&&B.defaultProps===void 0&&G.compare===null)return G=j2(B),Z.tag=15,Z.type=G,wX(Z,B),iB($,Z,G,X,N);return $=z3(G.type,null,X,Z,Z.mode,N),$.ref=Z.ref,$.return=Z,Z.child=$}if(B=$.child,!VX($,N)){var W=B.memoizedProps;if(G=G.compare,G=G!==null?G:B7,G(W,X)&&$.ref===Z.ref)return S8($,Z,N)}return Z.flags|=1,$=O8(B,X),$.ref=Z.ref,$.return=Z,Z.child=$}function iB($,Z,G,X,N){if($!==null){var B=$.memoizedProps;if(B7(B,X)&&$.ref===Z.ref&&Z.type===$.type)if(x1=!1,Z.pendingProps=X=B,VX($,N))($.flags&131072)!==0&&(x1=!0);else return Z.lanes=$.lanes,S8($,Z,N)}return WX($,Z,G,X,N)}function tB($,Z,G,X){var N=X.children,B=$!==null?$.memoizedState:null;if($===null&&Z.stateNode===null&&(Z.stateNode={_visibility:t7,_pendingMarkers:null,_retryCache:null,_transitions:null}),X.mode==="hidden"){if((Z.flags&128)!==0){if(B=B!==null?B.baseLanes|G:G,$!==null){X=Z.child=$.child;for(N=0;X!==null;)N=N|X.lanes|X.childLanes,X=X.sibling;X=N&~B}else X=0,Z.child=null;return eB($,Z,B,G,X)}if((G&536870912)!==0)Z.memoizedState={baseLanes:0,cachePool:null},$!==null&&lQ(Z,B!==null?B.cachePool:null),B!==null?FB(Z,B):f3(Z),WB(Z);else return X=Z.lanes=536870912,eB($,Z,B!==null?B.baseLanes|G:G,G,X)}else B!==null?(lQ(Z,B.cachePool),FB(Z,B),V6(Z),Z.memoizedState=null):($!==null&&lQ(Z,null),f3(Z),V6(Z));return Z5($,Z,N,G),Z.child}function P7($,Z){return $!==null&&$.tag===22||Z.stateNode!==null||(Z.stateNode={_visibility:t7,_pendingMarkers:null,_retryCache:null,_transitions:null}),Z.sibling}function eB($,Z,G,X,N){var B=S3();return B=B===null?null:{parent:y1._currentValue,pool:B},Z.memoizedState={baseLanes:G,cachePool:B},$!==null&&lQ(Z,null),f3(Z),WB(Z),$!==null&&f$($,Z,X,!0),Z.childLanes=N,null}function HG($,Z){var G=Z.hidden;return G!==void 0&&console.error(`<Activity> doesn't accept a hidden prop. Use mode="hidden" instead.
|
|
130
130
|
- <Activity %s>
|
|
131
|
-
+ <Activity %s>`,G===!0?"hidden":G===!1?"hidden={false}":"hidden={...}",G?'mode="hidden"':'mode="visible"'),Z=FG({mode:Z.mode,children:Z.children},$.mode),Z.ref=$.ref,$.child=Z,Z.return=$,Z}function
|
|
131
|
+
+ <Activity %s>`,G===!0?"hidden":G===!1?"hidden={false}":"hidden={...}",G?'mode="hidden"':'mode="visible"'),Z=FG({mode:Z.mode,children:Z.children},$.mode),Z.ref=$.ref,$.child=Z,Z.return=$,Z}function $H($,Z,G){return i2(Z,$.child,null,G),$=HG(Z,Z.pendingProps),$.flags|=2,n5(Z),Z.memoizedState=null,$}function FL($,Z,G){var X=Z.pendingProps,N=(Z.flags&128)!==0;if(Z.flags&=-129,$===null){if(p0){if(X.mode==="hidden")return $=HG(Z,X),Z.lanes=536870912,P7(null,$);if(g3(Z),($=R1)?(G=CM($,F4),G=G!==null&&G.data===q$?G:null,G!==null&&(X={dehydrated:G,treeContext:rK(),retryLane:536870912,hydrationErrors:null},Z.memoizedState=X,X=cK(G),X.return=Z,Z.child=X,J5=Z,R1=null)):G=null,G===null)throw xQ(Z,$),w6(Z);return Z.lanes=536870912,null}return HG(Z,X)}var B=$.memoizedState;if(B!==null){var W=B.dehydrated;if(g3(Z),N)if(Z.flags&256)Z.flags&=-257,Z=$H($,Z,G);else if(Z.memoizedState!==null)Z.child=$.child,Z.flags|=128,Z=null;else throw Error("Client rendering an Activity suspended it again. This is a bug in React.");else if(nK(),(G&536870912)!==0&&zG(Z),x1||f$($,Z,G,!1),N=(G&$.childLanes)!==0,x1||N){if(X=K1,X!==null&&(W=P2(X,G),W!==0&&W!==B.retryLane))throw B.retryLane=W,B5($,W),C1(X,$,W),YU;_G(),Z=$H($,Z,G)}else $=B.treeContext,R1=a5(W.nextSibling),J5=Z,p0=!0,f6=null,B8=!1,$4=null,F4=!1,$!==null&&sK(Z,$),Z=HG(Z,X),Z.flags|=4096;return Z}return B=$.child,X={mode:X.mode,children:X.children},(G&536870912)!==0&&(G&$.lanes)!==0&&zG(Z),$=O8(B,X),$.ref=Z.ref,Z.child=$,$.return=Z,$}function MG($,Z){var G=Z.ref;if(G===null)$!==null&&$.ref!==null&&(Z.flags|=4194816);else{if(typeof G!=="function"&&typeof G!=="object")throw Error("Expected ref to be a function, an object returned by React.createRef(), or undefined/null.");if($===null||$.ref!==G)Z.flags|=4194816}}function WX($,Z,G,X,N){if(G.prototype&&typeof G.prototype.render==="function"){var B=i(G)||"Unknown";uW[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),uW[B]=!0)}if(Z.mode&M5&&S4.recordLegacyContextWarning(Z,null),$===null&&(wX(Z,Z.type),G.contextTypes&&(B=i(G)||"Unknown",dW[B]||(dW[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)))),k2(Z),G=x3($,Z,G,X,void 0,N),X=m3(),$!==null&&!x1)return d3($,Z,N),S8($,Z,N);return p0&&X&&V3(Z),Z.flags|=1,Z5($,Z,G,N),Z.child}function ZH($,Z,G,X,N,B){if(k2(Z),l8=-1,wZ=$!==null&&$.type!==Z.type,Z.updateQueue=null,G=u3(Z,X,G,N),wB($,Z),X=m3(),$!==null&&!x1)return d3($,Z,B),S8($,Z,B);return p0&&X&&V3(Z),Z.flags|=1,Z5($,Z,G,B),Z.child}function QH($,Z,G,X,N){switch(H(Z)){case!1:var B=Z.stateNode,W=new Z.type(Z.memoizedProps,B.context).state;B.updater.enqueueSetState(B,W,null);break;case!0:Z.flags|=128,Z.flags|=65536,B=Error("Simulated error coming from DevTools");var w=N&-N;if(Z.lanes|=w,W=K1,W===null)throw Error("Expected a work-in-progress root. This is a bug in React. Please file an issue.");w=MX(w),FX(w,W,Z,l5(B,Z)),iQ(Z,w)}if(k2(Z),Z.stateNode===null){if(W=b6,B=G.contextType,"contextType"in G&&B!==null&&(B===void 0||B.$$typeof!==q8)&&!hW.has(G)&&(hW.add(G),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===UY?" Did you accidentally pass the Context.Consumer instead?":" However, it is set to an object with keys {"+Object.keys(B).join(", ")+"}.",console.error("%s defines an invalid contextType. contextType should point to the Context object returned by React.createContext().%s",i(G)||"Component",w)),typeof B==="object"&&B!==null&&(W=_1(B)),B=new G(X,W),Z.mode&M5){H1(!0);try{B=new G(X,W)}finally{H1(!1)}}if(W=Z.memoizedState=B.state!==null&&B.state!==void 0?B.state:null,B.updater=qU,Z.stateNode=B,B._reactInternals=Z,B._reactInternalInstance=jW,typeof G.getDerivedStateFromProps==="function"&&W===null&&(W=i(G)||"Component",SW.has(W)||(SW.add(W),console.error("`%s` uses `getDerivedStateFromProps` but its initial state is %s. This is not recommended. Instead, define the initial state by assigning an object to `this.state` in the constructor of `%s`. This ensures that `getDerivedStateFromProps` arguments have a consistent shape.",W,B.state===null?"null":"undefined",W))),typeof G.getDerivedStateFromProps==="function"||typeof B.getSnapshotBeforeUpdate==="function"){var _=w=W=null;if(typeof B.componentWillMount==="function"&&B.componentWillMount.__suppressDeprecationWarning!==!0?W="componentWillMount":typeof B.UNSAFE_componentWillMount==="function"&&(W="UNSAFE_componentWillMount"),typeof B.componentWillReceiveProps==="function"&&B.componentWillReceiveProps.__suppressDeprecationWarning!==!0?w="componentWillReceiveProps":typeof B.UNSAFE_componentWillReceiveProps==="function"&&(w="UNSAFE_componentWillReceiveProps"),typeof B.componentWillUpdate==="function"&&B.componentWillUpdate.__suppressDeprecationWarning!==!0?_="componentWillUpdate":typeof B.UNSAFE_componentWillUpdate==="function"&&(_="UNSAFE_componentWillUpdate"),W!==null||w!==null||_!==null){B=i(G)||"Component";var V=typeof G.getDerivedStateFromProps==="function"?"getDerivedStateFromProps()":"getSnapshotBeforeUpdate()";kW.has(B)||(kW.add(B),console.error(`Unsafe legacy lifecycles will not be called for components using new component APIs.
|
|
132
132
|
|
|
133
133
|
%s uses %s but also contains the following legacy lifecycles:%s%s%s
|
|
134
134
|
|
|
135
135
|
The above lifecycles should be removed. Learn more about this warning here:
|
|
136
136
|
https://react.dev/link/unsafe-component-lifecycles`,B,V,W!==null?`
|
|
137
|
-
`+W:"",
|
|
138
|
-
`+
|
|
139
|
-
`+
|
|
140
|
-
%s.childContextTypes = ...`,Z.displayName||Z.name||"Component"),typeof Z.getDerivedStateFromProps==="function"&&($=i(Z)||"Unknown",uW[$]||(console.error("%s: Function components do not support getDerivedStateFromProps.",$),uW[$]=!0)),typeof Z.contextType==="object"&&Z.contextType!==null&&(Z=i(Z)||"Unknown",hW[Z]||(console.error("%s: Function components do not support contextType.",Z),hW[Z]=!0))}function WX($){return{baseLanes:$,cachePool:tK()}}function RX($,Z,G){return $=$!==null?$.childLanes&~G:0,Z&&($|=v5),$}function ZM($,Z,G){var X,N=Z.pendingProps;K(Z)&&(Z.flags|=128);var B=!1,W=(Z.flags&128)!==0;if((X=W)||(X=$!==null&&$.memoizedState===null?!1:(v1.current&FZ)!==0),X&&(B=!0,Z.flags&=-129),X=(Z.flags&32)!==0,Z.flags&=-33,$===null){if(p0){if(B?L6(Z):V6(Z),($=w1)?(G=VH($,F4),G=G!==null&&G.data!==q$?G:null,G!==null&&(X={dehydrated:G,treeContext:pK(),retryLane:536870912,hydrationErrors:null},Z.memoizedState=X,X=mK(G),X.return=Z,Z.child=X,J5=Z,w1=null)):G=null,G===null)throw xQ(Z,$),R6(Z);return oX(G)?Z.lanes=32:Z.lanes=536870912,null}var R=N.children;if(N=N.fallback,B){V6(Z);var z=Z.mode;return R=FG({mode:"hidden",children:R},z),N=A2(N,z,G,null),R.return=Z,N.return=Z,R.sibling=N,Z.child=R,N=Z.child,N.memoizedState=WX(G),N.childLanes=RX($,X,G),Z.memoizedState=XU,P7(null,N)}return L6(Z),wX(Z,R)}var V=$.memoizedState;if(V!==null){var k=V.dehydrated;if(k!==null){if(W)Z.flags&256?(L6(Z),Z.flags&=-257,Z=TX($,Z,G)):Z.memoizedState!==null?(V6(Z),Z.child=$.child,Z.flags|=128,Z=null):(V6(Z),R=N.fallback,z=Z.mode,N=FG({mode:"visible",children:N.children},z),R=A2(R,z,G,null),R.flags|=2,N.return=Z,R.return=Z,N.sibling=R,Z.child=N,i2(Z,$.child,null,G),N=Z.child,N.memoizedState=WX(G),N.childLanes=RX($,X,G),Z.memoizedState=XU,Z=P7(null,N));else if(L6(Z),lK(),(G&536870912)!==0&&_G(Z),oX(k)){if(X=k.nextSibling&&k.nextSibling.dataset,X){R=X.dgst;var b=X.msg;z=X.stck;var D=X.cstck}B=b,X=R,N=z,k=D,R=B,z=k,R=R?Error(R):Error("The server could not finish this Suspense boundary, likely due to an error during server rendering. Switched to client rendering."),R.stack=N||"",R.digest=X,X=z===void 0?null:z,N={value:R,source:null,stack:X},typeof X==="string"&&xY.set(R,N),H7(N),Z=TX($,Z,G)}else if(x1||f$($,Z,G,!1),X=(G&$.childLanes)!==0,x1||X){if(X=K1,X!==null&&(N=P2(X,G),N!==0&&N!==V.retryLane))throw V.retryLane=N,B5($,N),C1(X,$,N),qU;nX(k)||zG(),Z=TX($,Z,G)}else nX(k)?(Z.flags|=192,Z.child=$.child,Z=null):($=V.treeContext,w1=a5(k.nextSibling),J5=Z,p0=!0,f6=null,B8=!1,$4=null,F4=!1,$!==null&&cK(Z,$),Z=wX(Z,N.children),Z.flags|=4096);return Z}}if(B)return V6(Z),R=N.fallback,z=Z.mode,D=$.child,k=D.sibling,N=O8(D,{mode:"hidden",children:N.children}),N.subtreeFlags=D.subtreeFlags&65011712,k!==null?R=O8(k,R):(R=A2(R,z,G,null),R.flags|=2),R.return=Z,N.return=Z,N.sibling=R,Z.child=N,P7(null,N),N=Z.child,R=$.child.memoizedState,R===null?R=WX(G):(z=R.cachePool,z!==null?(D=y1._currentValue,z=z.parent!==D?{parent:D,pool:D}:z):z=tK(),R={baseLanes:R.baseLanes|G,cachePool:z}),N.memoizedState=R,N.childLanes=RX($,X,G),Z.memoizedState=XU,P7($.child,N);return V!==null&&(G&62914560)===G&&(G&$.lanes)!==0&&_G(Z),L6(Z),G=$.child,$=G.sibling,G=O8(G,{mode:"visible",children:N.children}),G.return=Z,G.sibling=null,$!==null&&(X=Z.deletions,X===null?(Z.deletions=[$],Z.flags|=16):X.push($)),Z.child=G,Z.memoizedState=null,G}function wX($,Z){return Z=FG({mode:"visible",children:Z},$.mode),Z.return=$,$.child=Z}function FG($,Z){return $=L(22,$,null,Z),$.lanes=0,$}function TX($,Z,G){return i2(Z,$.child,null,G),$=wX(Z,Z.pendingProps.children),$.flags|=2,Z.memoizedState=null,$}function QM($,Z,G){$.lanes|=Z;var X=$.alternate;X!==null&&(X.lanes|=Z),P3($.return,Z,G)}function _X($,Z,G,X,N,B){var W=$.memoizedState;W===null?$.memoizedState={isBackwards:Z,rendering:null,renderingStartTime:0,last:X,tail:G,tailMode:N,treeForkCount:B}:(W.isBackwards=Z,W.rendering=null,W.renderingStartTime=0,W.last=X,W.tail=G,W.tailMode=N,W.treeForkCount=B)}function GM($,Z,G){var X=Z.pendingProps,N=X.revealOrder,B=X.tail,W=X.children,R=v1.current;if((X=(R&FZ)!==0)?(R=R&T9|FZ,Z.flags|=128):R&=T9,_0(v1,R,Z),R=N==null?"null":N,N!=="forwards"&&N!=="unstable_legacy-backwards"&&N!=="together"&&N!=="independent"&&!mW[R])if(mW[R]=!0,N==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(N==="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 N==="string")switch(N.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.',N,N.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.',N,N.toLowerCase());break;default:console.error('"%s" is not a supported revealOrder on <SuspenseList />. Did you mean "independent", "together", "forwards" or "backwards"?',N)}else console.error('%s is not a supported value for revealOrder on <SuspenseList />. Did you mean "independent", "together", "forwards" or "backwards"?',N);if(R=B==null?"null":B,!MJ[R])if(B==null){if(N==="forwards"||N==="backwards"||N==="unstable_legacy-backwards")MJ[R]=!0,console.error('The default for the <SuspenseList tail="..."> prop is changing. To be future compatible you must explictly specify either "visible" (the current default), "collapsed" or "hidden".')}else B!=="visible"&&B!=="collapsed"&&B!=="hidden"?(MJ[R]=!0,console.error('"%s" is not a supported value for tail on <SuspenseList />. Did you mean "visible", "collapsed" or "hidden"?',B)):N!=="forwards"&&N!=="backwards"&&N!=="unstable_legacy-backwards"&&(MJ[R]=!0,console.error('<SuspenseList tail="%s" /> is only valid if revealOrder is "forwards" or "backwards". Did you mean to specify revealOrder="forwards"?',B));$:if((N==="forwards"||N==="backwards"||N==="unstable_legacy-backwards")&&W!==void 0&&W!==null&&W!==!1)if(c1(W)){for(R=0;R<W.length;R++)if(!UB(W[R],R))break $}else if(R=p(W),typeof R==="function"){if(R=R.call(W))for(var z=R.next(),V=0;!z.done;z=R.next()){if(!UB(z.value,V))break $;V++}}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?',N);if(Z5($,Z,W,G),p0?(W6(),W=e7):W=0,!X&&$!==null&&($.flags&128)!==0)$:for($=Z.child;$!==null;){if($.tag===13)$.memoizedState!==null&&QM($,G,Z);else if($.tag===19)QM($,G,Z);else if($.child!==null){$.child.return=$,$=$.child;continue}if($===Z)break $;for(;$.sibling===null;){if($.return===null||$.return===Z)break $;$=$.return}$.sibling.return=$.return,$=$.sibling}switch(N){case"forwards":G=Z.child;for(N=null;G!==null;)$=G.alternate,$!==null&&tQ($)===null&&(N=G),G=G.sibling;G=N,G===null?(N=Z.child,Z.child=null):(N=G.sibling,G.sibling=null),_X(Z,!1,N,G,B,W);break;case"backwards":case"unstable_legacy-backwards":G=null,N=Z.child;for(Z.child=null;N!==null;){if($=N.alternate,$!==null&&tQ($)===null){Z.child=N;break}$=N.sibling,N.sibling=G,G=N,N=$}_X(Z,!0,G,null,B,W);break;case"together":_X(Z,!1,null,null,void 0,W);break;default:Z.memoizedState=null}return Z.child}function S8($,Z,G){if($!==null&&(Z.dependencies=$.dependencies),z5=-1,c6|=Z.lanes,(G&Z.childLanes)===0)if($!==null){if(f$($,Z,G,!1),(G&Z.childLanes)===0)return null}else return null;if($!==null&&Z.child!==$.child)throw Error("Resuming work not yet implemented.");if(Z.child!==null){$=Z.child,G=O8($,$.pendingProps),Z.child=G;for(G.return=Z;$.sibling!==null;)$=$.sibling,G=G.sibling=O8($,$.pendingProps),G.return=Z;G.sibling=null}return Z.child}function zX($,Z){if(($.lanes&Z)!==0)return!0;return $=$.dependencies,$!==null&&mQ($)?!0:!1}function KL($,Z,G){switch(Z.tag){case 3:l(Z,Z.stateNode.containerInfo),w6(Z,y1,$.memoizedState.cache),v2();break;case 27:case 5:d0(Z);break;case 4:l(Z,Z.stateNode.containerInfo);break;case 10:w6(Z,Z.type,Z.memoizedProps.value);break;case 12:(G&Z.childLanes)!==0&&(Z.flags|=4),Z.flags|=2048;var X=Z.stateNode;X.effectDuration=-0,X.passiveEffectDuration=-0;break;case 31:if(Z.memoizedState!==null)return Z.flags|=128,f3(Z),null;break;case 13:if(X=Z.memoizedState,X!==null){if(X.dehydrated!==null)return L6(Z),Z.flags|=128,null;if((G&Z.child.childLanes)!==0)return ZM($,Z,G);return L6(Z),$=S8($,Z,G),$!==null?$.sibling:null}L6(Z);break;case 19:var N=($.flags&128)!==0;if(X=(G&Z.childLanes)!==0,X||(f$($,Z,G,!1),X=(G&Z.childLanes)!==0),N){if(X)return GM($,Z,G);Z.flags|=128}if(N=Z.memoizedState,N!==null&&(N.rendering=null,N.tail=null,N.lastEffect=null),_0(v1,v1.current,Z),X)break;else return null;case 22:return Z.lanes=0,oB($,Z,G,Z.pendingProps);case 24:w6(Z,y1,$.memoizedState.cache)}return S8($,Z,G)}function LX($,Z,G){if(Z._debugNeedsRemount&&$!==null){G=w3(Z.type,Z.key,Z.pendingProps,Z._debugOwner||null,Z.mode,Z.lanes),G._debugStack=Z._debugStack,G._debugTask=Z._debugTask;var X=Z.return;if(X===null)throw Error("Cannot swap the root fiber.");if($.alternate=null,Z.alternate=null,G.index=Z.index,G.sibling=Z.sibling,G.return=Z.return,G.ref=Z.ref,G._debugInfo=Z._debugInfo,Z===X.child)X.child=G;else{var N=X.child;if(N===null)throw Error("Expected parent to have a child.");for(;N.sibling!==Z;)if(N=N.sibling,N===null)throw Error("Expected to find the previous sibling.");N.sibling=G}return Z=X.deletions,Z===null?(X.deletions=[$],X.flags|=16):Z.push($),G.flags|=2,G}if($!==null)if($.memoizedProps!==Z.pendingProps||Z.type!==$.type)x1=!0;else{if(!zX($,G)&&(Z.flags&128)===0)return x1=!1,KL($,Z,G);x1=($.flags&131072)!==0?!0:!1}else{if(x1=!1,X=p0)W6(),X=(Z.flags&1048576)!==0;X&&(X=Z.index,W6(),dK(Z,e7,X))}switch(Z.lanes=0,Z.tag){case 16:$:if(X=Z.pendingProps,$=T6(Z.elementType),Z.type=$,typeof $==="function")R3($)?(X=h2($,X),Z.tag=1,Z.type=$=j2($),Z=eB(null,Z,$,X,G)):(Z.tag=0,FX(Z,$),Z.type=$=j2($),Z=HX(null,Z,$,X,G));else{if($!==void 0&&$!==null){if(N=$.$$typeof,N===u7){Z.tag=11,Z.type=$=W3($),Z=rB(null,Z,$,X,G);break $}else if(N===bG){Z.tag=14,Z=sB(null,Z,$,X,G);break $}}throw Z="",$!==null&&typeof $==="object"&&$.$$typeof===i5&&(Z=" Did you wrap a component in React.lazy() more than once?"),G=i($)||$,Error("Element type is invalid. Received a promise that resolves to: "+G+". Lazy element type must resolve to a class or function."+Z)}return Z;case 0:return HX($,Z,Z.type,Z.pendingProps,G);case 1:return X=Z.type,N=h2(X,Z.pendingProps),eB($,Z,X,N,G);case 3:$:{if(l(Z,Z.stateNode.containerInfo),$===null)throw Error("Should have a current fiber. This is a bug in React.");X=Z.pendingProps;var B=Z.memoizedState;N=B.element,v3($,Z),z7(Z,X,null,G);var W=Z.memoizedState;if(X=W.cache,w6(Z,y1,X),X!==B.cache&&C3(Z,[y1],G,!0),_7(),X=W.element,B.isDehydrated)if(B={element:X,isDehydrated:!1,cache:W.cache},Z.updateQueue.baseState=B,Z.memoizedState=B,Z.flags&256){Z=$M($,Z,X,G);break $}else if(X!==N){N=l5(Error("This root received an early update, before anything was able hydrate. Switched the entire root to client rendering."),Z),H7(N),Z=$M($,Z,X,G);break $}else{switch($=Z.stateNode.containerInfo,$.nodeType){case 9:$=$.body;break;default:$=$.nodeName==="HTML"?$.ownerDocument.body:$}w1=a5($.firstChild),J5=Z,p0=!0,f6=null,B8=!1,$4=null,F4=!0,G=RW(Z,null,X,G);for(Z.child=G;G;)G.flags=G.flags&-3|4096,G=G.sibling}else{if(v2(),X===N){Z=S8($,Z,G);break $}Z5($,Z,X,G)}Z=Z.child}return Z;case 26:return HG($,Z),$===null?(G=DH(Z.type,null,Z.pendingProps,null))?Z.memoizedState=G:p0||(G=Z.type,$=Z.pendingProps,X=C0(D6.current),X=PG(X).createElement(G),X[G5]=Z,X[w5]=$,Q5(X,G,$),F0(X),Z.stateNode=X):Z.memoizedState=DH(Z.type,$.memoizedProps,Z.pendingProps,$.memoizedState),null;case 27:return d0(Z),$===null&&p0&&(X=C0(D6.current),N=K0(),X=Z.stateNode=IH(Z.type,Z.pendingProps,X,N,!1),B8||(N=FH(X,Z.type,Z.pendingProps,N),N!==null&&(S2(Z,0).serverProps=N)),J5=Z,F4=!0,N=w1,I6(Z.type)?(jU=N,w1=a5(X.firstChild)):w1=N),Z5($,Z,Z.pendingProps.children,G),HG($,Z),$===null&&(Z.flags|=4194304),Z.child;case 5:return $===null&&p0&&(B=K0(),X=Y3(Z.type,B.ancestorInfo),N=w1,(W=!N)||(W=tL(N,Z.type,Z.pendingProps,F4),W!==null?(Z.stateNode=W,B8||(B=FH(W,Z.type,Z.pendingProps,B),B!==null&&(S2(Z,0).serverProps=B)),J5=Z,w1=a5(W.firstChild),F4=!1,B=!0):B=!1,W=!B),W&&(X&&xQ(Z,N),R6(Z))),d0(Z),N=Z.type,B=Z.pendingProps,W=$!==null?$.memoizedProps:null,X=B.children,rX(N,B)?X=null:W!==null&&rX(N,W)&&(Z.flags|=32),Z.memoizedState!==null&&(N=g3($,Z,QL,null,null,G),vZ._currentValue=N),HG($,Z),Z5($,Z,X,G),Z.child;case 6:return $===null&&p0&&(G=Z.pendingProps,$=K0(),X=$.ancestorInfo.current,G=X!=null?jQ(G,X.tag,$.ancestorInfo.implicitRootScope):!0,$=w1,(X=!$)||(X=eL($,Z.pendingProps,F4),X!==null?(Z.stateNode=X,J5=Z,w1=null,X=!0):X=!1,X=!X),X&&(G&&xQ(Z,$),R6(Z))),null;case 13:return ZM($,Z,G);case 4:return l(Z,Z.stateNode.containerInfo),X=Z.pendingProps,$===null?Z.child=i2(Z,null,X,G):Z5($,Z,X,G),Z.child;case 11:return rB($,Z,Z.type,Z.pendingProps,G);case 7:return Z5($,Z,Z.pendingProps,G),Z.child;case 8:return Z5($,Z,Z.pendingProps.children,G),Z.child;case 12:return Z.flags|=4,Z.flags|=2048,X=Z.stateNode,X.effectDuration=-0,X.passiveEffectDuration=-0,Z5($,Z,Z.pendingProps.children,G),Z.child;case 10:return X=Z.type,N=Z.pendingProps,B=N.value,"value"in N||dW||(dW=!0,console.error("The `value` prop is required for the `<Context.Provider>`. Did you misspell it or forget to pass it?")),w6(Z,X,B),Z5($,Z,N.children,G),Z.child;case 9:return N=Z.type._context,X=Z.pendingProps.children,typeof X!=="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."),k2(Z),N=z1(N),X=sY(X,N,void 0),Z.flags|=1,Z5($,Z,X,G),Z.child;case 14:return sB($,Z,Z.type,Z.pendingProps,G);case 15:return nB($,Z,Z.type,Z.pendingProps,G);case 19:return GM($,Z,G);case 31:return NL($,Z,G);case 22:return oB($,Z,G,Z.pendingProps);case 24:return k2(Z),X=z1(y1),$===null?(N=j3(),N===null&&(N=K1,B=I3(),N.pooledCache=B,b2(B),B!==null&&(N.pooledCacheLanes|=G),N=B),Z.memoizedState={parent:X,cache:N},S3(Z),w6(Z,y1,N)):(($.lanes&G)!==0&&(v3($,Z),z7(Z,null,null,G),_7()),N=$.memoizedState,B=Z.memoizedState,N.parent!==X?(N={parent:X,cache:X},Z.memoizedState=N,Z.lanes===0&&(Z.memoizedState=Z.updateQueue.baseState=N),w6(Z,y1,X)):(X=B.cache,w6(Z,y1,X),X!==N.cache&&C3(Z,[y1],G,!0))),Z5($,Z,Z.pendingProps.children,G),Z.child;case 29:throw Z.pendingProps}throw Error("Unknown unit of work tag ("+Z.tag+"). This error is likely caused by a bug in React. Please file an issue.")}function v8($){$.flags|=4}function VX($,Z,G,X,N){if(Z=($.mode&AE)!==z0)Z=!1;if(Z){if($.flags|=16777216,(N&335544128)===N)if($.stateNode.complete)$.flags|=8192;else if(yM())$.flags|=8192;else throw a2=XJ,oY}else $.flags&=-16777217}function JM($,Z){if(Z.type!=="stylesheet"||(Z.state.loading&_4)!==U$)$.flags&=-16777217;else if($.flags|=16777216,!kH(Z))if(yM())$.flags|=8192;else throw a2=XJ,oY}function WG($,Z){Z!==null&&($.flags|=4),$.flags&16384&&(Z=$.tag!==22?j$():536870912,$.lanes|=Z,Q$|=Z)}function C7($,Z){if(!p0)switch($.tailMode){case"hidden":Z=$.tail;for(var G=null;Z!==null;)Z.alternate!==null&&(G=Z),Z=Z.sibling;G===null?$.tail=null:G.sibling=null;break;case"collapsed":G=$.tail;for(var X=null;G!==null;)G.alternate!==null&&(X=G),G=G.sibling;X===null?Z||$.tail===null?$.tail=null:$.tail.sibling=null:X.sibling=null}}function H1($){var Z=$.alternate!==null&&$.alternate.child===$.child,G=0,X=0;if(Z)if(($.mode&j0)!==z0){for(var{selfBaseDuration:N,child:B}=$;B!==null;)G|=B.lanes|B.childLanes,X|=B.subtreeFlags&65011712,X|=B.flags&65011712,N+=B.treeBaseDuration,B=B.sibling;$.treeBaseDuration=N}else for(N=$.child;N!==null;)G|=N.lanes|N.childLanes,X|=N.subtreeFlags&65011712,X|=N.flags&65011712,N.return=$,N=N.sibling;else if(($.mode&j0)!==z0){N=$.actualDuration,B=$.selfBaseDuration;for(var W=$.child;W!==null;)G|=W.lanes|W.childLanes,X|=W.subtreeFlags,X|=W.flags,N+=W.actualDuration,B+=W.treeBaseDuration,W=W.sibling;$.actualDuration=N,$.treeBaseDuration=B}else for(N=$.child;N!==null;)G|=N.lanes|N.childLanes,X|=N.subtreeFlags,X|=N.flags,N.return=$,N=N.sibling;return $.subtreeFlags|=X,$.childLanes=G,Z}function BL($,Z,G){var X=Z.pendingProps;switch(L3(Z),Z.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return H1(Z),null;case 1:return H1(Z),null;case 3:if(G=Z.stateNode,X=null,$!==null&&(X=$.memoizedState.cache),Z.memoizedState.cache!==X&&(Z.flags|=2048),j8(y1,Z),J0(Z),G.pendingContext&&(G.context=G.pendingContext,G.pendingContext=null),$===null||$.child===null)b$(Z)?(E3(),v8(Z)):$===null||$.memoizedState.isDehydrated&&(Z.flags&256)===0||(Z.flags|=1024,V3());return H1(Z),null;case 26:var{type:N,memoizedState:B}=Z;return $===null?(v8(Z),B!==null?(H1(Z),JM(Z,B)):(H1(Z),VX(Z,N,null,X,G))):B?B!==$.memoizedState?(v8(Z),H1(Z),JM(Z,B)):(H1(Z),Z.flags&=-16777217):($=$.memoizedProps,$!==X&&v8(Z),H1(Z),VX(Z,N,$,X,G)),null;case 27:if(k0(Z),G=C0(D6.current),N=Z.type,$!==null&&Z.stateNode!=null)$.memoizedProps!==X&&v8(Z);else{if(!X){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 H1(Z),null}$=K0(),b$(Z)?rK(Z,$):($=IH(N,X,G,$,!0),Z.stateNode=$,v8(Z))}return H1(Z),null;case 5:if(k0(Z),N=Z.type,$!==null&&Z.stateNode!=null)$.memoizedProps!==X&&v8(Z);else{if(!X){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 H1(Z),null}var W=K0();if(b$(Z))rK(Z,W);else{switch(B=C0(D6.current),Y3(N,W.ancestorInfo),W=W.context,B=PG(B),W){case A9:B=B.createElementNS($9,N);break;case vJ:B=B.createElementNS(mG,N);break;default:switch(N){case"svg":B=B.createElementNS($9,N);break;case"math":B=B.createElementNS(mG,N);break;case"script":B=B.createElement("div"),B.innerHTML="<script></script>",B=B.removeChild(B.firstChild);break;case"select":B=typeof X.is==="string"?B.createElement("select",{is:X.is}):B.createElement("select"),X.multiple?B.multiple=!0:X.size&&(B.size=X.size);break;default:B=typeof X.is==="string"?B.createElement(N,{is:X.is}):B.createElement(N),N.indexOf("-")===-1&&(N!==N.toLowerCase()&&console.error("<%s /> is using incorrect casing. Use PascalCase for React components, or lowercase for HTML elements.",N),Object.prototype.toString.call(B)!=="[object HTMLUnknownElement]"||D4.call(MR,N)||(MR[N]=!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.",N)))}}B[G5]=Z,B[w5]=X;$:for(W=Z.child;W!==null;){if(W.tag===5||W.tag===6)B.appendChild(W.stateNode);else if(W.tag!==4&&W.tag!==27&&W.child!==null){W.child.return=W,W=W.child;continue}if(W===Z)break $;for(;W.sibling===null;){if(W.return===null||W.return===Z)break $;W=W.return}W.sibling.return=W.return,W=W.sibling}Z.stateNode=B;$:switch(Q5(B,N,X),N){case"button":case"input":case"select":case"textarea":X=!!X.autoFocus;break $;case"img":X=!0;break $;default:X=!1}X&&v8(Z)}}return H1(Z),VX(Z,Z.type,$===null?null:$.memoizedProps,Z.pendingProps,G),null;case 6:if($&&Z.stateNode!=null)$.memoizedProps!==X&&v8(Z);else{if(typeof X!=="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($=C0(D6.current),G=K0(),b$(Z)){if($=Z.stateNode,G=Z.memoizedProps,N=!B8,X=null,B=J5,B!==null)switch(B.tag){case 3:N&&(N=PH($,G,X),N!==null&&(S2(Z,0).serverProps=N));break;case 27:case 5:X=B.memoizedProps,N&&(N=PH($,G,X),N!==null&&(S2(Z,0).serverProps=N))}$[G5]=Z,$=$.nodeValue===G||X!==null&&X.suppressHydrationWarning===!0||NH($.nodeValue,G)?!0:!1,$||R6(Z,!0)}else N=G.ancestorInfo.current,N!=null&&jQ(X,N.tag,G.ancestorInfo.implicitRootScope),$=PG($).createTextNode(X),$[G5]=Z,Z.stateNode=$}return H1(Z),null;case 31:if(G=Z.memoizedState,$===null||$.memoizedState!==null){if(X=b$(Z),G!==null){if($===null){if(!X)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.");$[G5]=Z,H1(Z),(Z.mode&j0)!==z0&&G!==null&&($=Z.child,$!==null&&(Z.treeBaseDuration-=$.treeBaseDuration))}else E3(),v2(),(Z.flags&128)===0&&(G=Z.memoizedState=null),Z.flags|=4,H1(Z),(Z.mode&j0)!==z0&&G!==null&&($=Z.child,$!==null&&(Z.treeBaseDuration-=$.treeBaseDuration));$=!1}else G=V3(),$!==null&&$.memoizedState!==null&&($.memoizedState.hydrationErrors=G),$=!0;if(!$){if(Z.flags&256)return n5(Z),Z;return n5(Z),null}if((Z.flags&128)!==0)throw Error("Client rendering an Activity suspended it again. This is a bug in React.")}return H1(Z),null;case 13:if(X=Z.memoizedState,$===null||$.memoizedState!==null&&$.memoizedState.dehydrated!==null){if(N=X,B=b$(Z),N!==null&&N.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[G5]=Z,H1(Z),(Z.mode&j0)!==z0&&N!==null&&(N=Z.child,N!==null&&(Z.treeBaseDuration-=N.treeBaseDuration))}else E3(),v2(),(Z.flags&128)===0&&(N=Z.memoizedState=null),Z.flags|=4,H1(Z),(Z.mode&j0)!==z0&&N!==null&&(N=Z.child,N!==null&&(Z.treeBaseDuration-=N.treeBaseDuration));N=!1}else N=V3(),$!==null&&$.memoizedState!==null&&($.memoizedState.hydrationErrors=N),N=!0;if(!N){if(Z.flags&256)return n5(Z),Z;return n5(Z),null}}if(n5(Z),(Z.flags&128)!==0)return Z.lanes=G,(Z.mode&j0)!==z0&&R7(Z),Z;return G=X!==null,$=$!==null&&$.memoizedState!==null,G&&(X=Z.child,N=null,X.alternate!==null&&X.alternate.memoizedState!==null&&X.alternate.memoizedState.cachePool!==null&&(N=X.alternate.memoizedState.cachePool.pool),B=null,X.memoizedState!==null&&X.memoizedState.cachePool!==null&&(B=X.memoizedState.cachePool.pool),B!==N&&(X.flags|=2048)),G!==$&&G&&(Z.child.flags|=8192),WG(Z,Z.updateQueue),H1(Z),(Z.mode&j0)!==z0&&G&&($=Z.child,$!==null&&(Z.treeBaseDuration-=$.treeBaseDuration)),null;case 4:return J0(Z),$===null&&xX(Z.stateNode.containerInfo),H1(Z),null;case 10:return j8(Z.type,Z),H1(Z),null;case 19:if(R0(v1,Z),X=Z.memoizedState,X===null)return H1(Z),null;if(N=(Z.flags&128)!==0,B=X.rendering,B===null)if(N)C7(X,!1);else{if(E1!==s8||$!==null&&($.flags&128)!==0)for($=Z.child;$!==null;){if(B=tQ($),B!==null){Z.flags|=128,C7(X,!1),$=B.updateQueue,Z.updateQueue=$,WG(Z,$),Z.subtreeFlags=0,$=G;for(G=Z.child;G!==null;)uK(G,$),G=G.sibling;return _0(v1,v1.current&T9|FZ,Z),p0&&D8(Z,X.treeForkCount),Z.child}$=$.sibling}X.tail!==null&&o1()>_J&&(Z.flags|=128,N=!0,C7(X,!1),Z.lanes=4194304)}else{if(!N)if($=tQ(B),$!==null){if(Z.flags|=128,N=!0,$=$.updateQueue,Z.updateQueue=$,WG(Z,$),C7(X,!0),X.tail===null&&X.tailMode==="hidden"&&!B.alternate&&!p0)return H1(Z),null}else 2*o1()-X.renderingStartTime>_J&&G!==536870912&&(Z.flags|=128,N=!0,C7(X,!1),Z.lanes=4194304);X.isBackwards?(B.sibling=Z.child,Z.child=B):($=X.last,$!==null?$.sibling=B:Z.child=B,X.last=B)}if(X.tail!==null)return $=X.tail,X.rendering=$,X.tail=$.sibling,X.renderingStartTime=o1(),$.sibling=null,G=v1.current,G=N?G&T9|FZ:G&T9,_0(v1,G,Z),p0&&D8(Z,X.treeForkCount),$;return H1(Z),null;case 22:case 23:return n5(Z),b3(Z),X=Z.memoizedState!==null,$!==null?$.memoizedState!==null!==X&&(Z.flags|=8192):X&&(Z.flags|=8192),X?(G&536870912)!==0&&(Z.flags&128)===0&&(H1(Z),Z.subtreeFlags&6&&(Z.flags|=8192)):H1(Z),G=Z.updateQueue,G!==null&&WG(Z,G.retryQueue),G=null,$!==null&&$.memoizedState!==null&&$.memoizedState.cachePool!==null&&(G=$.memoizedState.cachePool.pool),X=null,Z.memoizedState!==null&&Z.memoizedState.cachePool!==null&&(X=Z.memoizedState.cachePool.pool),X!==G&&(Z.flags|=2048),$!==null&&R0(n2,Z),null;case 24:return G=null,$!==null&&(G=$.memoizedState.cache),Z.memoizedState.cache!==G&&(Z.flags|=2048),j8(y1,Z),H1(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 ML($,Z){switch(L3(Z),Z.tag){case 1:return $=Z.flags,$&65536?(Z.flags=$&-65537|128,(Z.mode&j0)!==z0&&R7(Z),Z):null;case 3:return j8(y1,Z),J0(Z),$=Z.flags,($&65536)!==0&&($&128)===0?(Z.flags=$&-65537|128,Z):null;case 26:case 27:case 5:return k0(Z),null;case 31:if(Z.memoizedState!==null){if(n5(Z),Z.alternate===null)throw Error("Threw in newly mounted dehydrated component. This is likely a bug in React. Please file an issue.");v2()}return $=Z.flags,$&65536?(Z.flags=$&-65537|128,(Z.mode&j0)!==z0&&R7(Z),Z):null;case 13:if(n5(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.");v2()}return $=Z.flags,$&65536?(Z.flags=$&-65537|128,(Z.mode&j0)!==z0&&R7(Z),Z):null;case 19:return R0(v1,Z),null;case 4:return J0(Z),null;case 10:return j8(Z.type,Z),null;case 22:case 23:return n5(Z),b3(Z),$!==null&&R0(n2,Z),$=Z.flags,$&65536?(Z.flags=$&-65537|128,(Z.mode&j0)!==z0&&R7(Z),Z):null;case 24:return j8(y1,Z),null;case 25:return null;default:return null}}function qM($,Z){switch(L3(Z),Z.tag){case 3:j8(y1,Z),J0(Z);break;case 26:case 27:case 5:k0(Z);break;case 4:J0(Z);break;case 31:Z.memoizedState!==null&&n5(Z);break;case 13:n5(Z);break;case 19:R0(v1,Z);break;case 10:j8(Z.type,Z);break;case 22:case 23:n5(Z),b3(Z),$!==null&&R0(n2,Z);break;case 24:j8(y1,Z)}}function t4($){return($.mode&j0)!==z0}function XM($,Z){t4($)?(i4(),I7(Z,$),a4()):I7(Z,$)}function EX($,Z,G){t4($)?(i4(),u$(G,$,Z),a4()):u$(G,$,Z)}function I7($,Z){try{var G=Z.updateQueue,X=G!==null?G.lastEffect:null;if(X!==null){var N=X.next;G=N;do{if((G.tag&$)===$&&(X=void 0,($&L5)!==UJ&&(O9=!0),X=G0(Z,fE,G),($&L5)!==UJ&&(O9=!1),X!==void 0&&typeof X!=="function")){var B=void 0;B=(G.tag&Q4)!==0?"useLayoutEffect":(G.tag&L5)!==0?"useInsertionEffect":"useEffect";var W=void 0;W=X===null?" You returned null. If your effect does not require clean up, return undefined (or nothing).":typeof X.then==="function"?`
|
|
137
|
+
`+W:"",w!==null?`
|
|
138
|
+
`+w:"",_!==null?`
|
|
139
|
+
`+_:""))}}B=Z.stateNode,W=i(G)||"Component",B.render||(G.prototype&&typeof G.prototype.render==="function"?console.error("No `render` method found on the %s instance: did you accidentally return an object from the constructor?",W):console.error("No `render` method found on the %s instance: you may have forgotten to define `render`.",W)),!B.getInitialState||B.getInitialState.isReactClassApproved||B.state||console.error("getInitialState was defined on %s, a plain JavaScript class. This is only supported for classes created using React.createClass. Did you mean to define a state property instead?",W),B.getDefaultProps&&!B.getDefaultProps.isReactClassApproved&&console.error("getDefaultProps was defined on %s, a plain JavaScript class. This is only supported for classes created using React.createClass. Use a static property to define defaultProps instead.",W),B.contextType&&console.error("contextType was defined as an instance property on %s. Use a static property to define contextType instead.",W),G.childContextTypes&&!gW.has(G)&&(gW.add(G),console.error("%s uses the legacy childContextTypes API which was removed in React 19. Use React.createContext() instead. (https://react.dev/link/legacy-context)",W)),G.contextTypes&&!yW.has(G)&&(yW.add(G),console.error("%s uses the legacy contextTypes API which was removed in React 19. Use React.createContext() with static contextType instead. (https://react.dev/link/legacy-context)",W)),typeof B.componentShouldUpdate==="function"&&console.error("%s has a method called componentShouldUpdate(). Did you mean shouldComponentUpdate()? The name is phrased as a question because the function is expected to return a value.",W),G.prototype&&G.prototype.isPureReactComponent&&typeof B.shouldComponentUpdate<"u"&&console.error("%s has a method called shouldComponentUpdate(). shouldComponentUpdate should not be used when extending React.PureComponent. Please extend React.Component if shouldComponentUpdate is used.",i(G)||"A pure component"),typeof B.componentDidUnmount==="function"&&console.error("%s has a method called componentDidUnmount(). But there is no such lifecycle method. Did you mean componentWillUnmount()?",W),typeof B.componentDidReceiveProps==="function"&&console.error("%s has a method called componentDidReceiveProps(). But there is no such lifecycle method. If you meant to update the state in response to changing props, use componentWillReceiveProps(). If you meant to fetch data or run side-effects or mutations after React has updated the UI, use componentDidUpdate().",W),typeof B.componentWillRecieveProps==="function"&&console.error("%s has a method called componentWillRecieveProps(). Did you mean componentWillReceiveProps()?",W),typeof B.UNSAFE_componentWillRecieveProps==="function"&&console.error("%s has a method called UNSAFE_componentWillRecieveProps(). Did you mean UNSAFE_componentWillReceiveProps()?",W),w=B.props!==X,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.",W),B.defaultProps&&console.error("Setting defaultProps as an instance property on %s is not supported and will be ignored. Instead, define defaultProps as a static property on %s.",W,W),typeof B.getSnapshotBeforeUpdate!=="function"||typeof B.componentDidUpdate==="function"||vW.has(G)||(vW.add(G),console.error("%s: getSnapshotBeforeUpdate() should be used with componentDidUpdate(). This component defines getSnapshotBeforeUpdate() only.",i(G))),typeof B.getDerivedStateFromProps==="function"&&console.error("%s: getDerivedStateFromProps() is defined as an instance method and will be ignored. Instead, declare it as a static method.",W),typeof B.getDerivedStateFromError==="function"&&console.error("%s: getDerivedStateFromError() is defined as an instance method and will be ignored. Instead, declare it as a static method.",W),typeof G.getSnapshotBeforeUpdate==="function"&&console.error("%s: getSnapshotBeforeUpdate() is defined as a static method and will be ignored. Instead, declare it as an instance method.",W),(w=B.state)&&(typeof w!=="object"||c1(w))&&console.error("%s.state: must be set to an object or null",W),typeof B.getChildContext==="function"&&typeof G.childContextTypes!=="object"&&console.error("%s.getChildContext(): childContextTypes must be defined in order to use getChildContext().",W),B=Z.stateNode,B.props=X,B.state=Z.memoizedState,B.refs={},k3(Z),W=G.contextType,B.context=typeof W==="object"&&W!==null?_1(W):b6,B.state===X&&(W=i(G)||"Component",bW.has(W)||(bW.add(W),console.error("%s: It is not recommended to assign props directly to state because updates to props won't be reflected in state. In most cases, it is better to use props directly.",W))),Z.mode&M5&&S4.recordLegacyContextWarning(Z,B),S4.recordUnsafeLifecycleWarnings(Z,B),B.state=Z.memoizedState,W=G.getDerivedStateFromProps,typeof W==="function"&&(BX(Z,G,W,X),B.state=Z.memoizedState),typeof G.getDerivedStateFromProps==="function"||typeof B.getSnapshotBeforeUpdate==="function"||typeof B.UNSAFE_componentWillMount!=="function"&&typeof B.componentWillMount!=="function"||(W=B.state,typeof B.componentWillMount==="function"&&B.componentWillMount(),typeof B.UNSAFE_componentWillMount==="function"&&B.UNSAFE_componentWillMount(),W!==B.state&&(console.error("%s.componentWillMount(): Assigning directly to this.state is deprecated (except inside a component's constructor). Use setState instead.",d(Z)||"Component"),qU.enqueueReplaceState(B,B.state,null)),_7(Z,X,B,N),z7(),B.state=Z.memoizedState),typeof B.componentDidMount==="function"&&(Z.flags|=4194308),(Z.mode&A4)!==_0&&(Z.flags|=134217728),B=!0}else if($===null){B=Z.stateNode;var k=Z.memoizedProps;w=h2(G,k),B.props=w;var b=B.context;_=G.contextType,W=b6,typeof _==="object"&&_!==null&&(W=_1(_)),V=G.getDerivedStateFromProps,_=typeof V==="function"||typeof B.getSnapshotBeforeUpdate==="function",k=Z.pendingProps!==k,_||typeof B.UNSAFE_componentWillReceiveProps!=="function"&&typeof B.componentWillReceiveProps!=="function"||(k||b!==W)&&cB(Z,B,X,W),m6=!1;var D=Z.memoizedState;B.state=D,_7(Z,X,B,N),z7(),b=Z.memoizedState,k||D!==b||m6?(typeof V==="function"&&(BX(Z,G,V,X),b=Z.memoizedState),(w=m6||pB(Z,G,w,X,D,b,W))?(_||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&A4)!==_0&&(Z.flags|=134217728)):(typeof B.componentDidMount==="function"&&(Z.flags|=4194308),(Z.mode&A4)!==_0&&(Z.flags|=134217728),Z.memoizedProps=X,Z.memoizedState=b),B.props=X,B.state=b,B.context=W,B=w):(typeof B.componentDidMount==="function"&&(Z.flags|=4194308),(Z.mode&A4)!==_0&&(Z.flags|=134217728),B=!1)}else{B=Z.stateNode,b3($,Z),W=Z.memoizedProps,_=h2(G,W),B.props=_,V=Z.pendingProps,D=B.context,b=G.contextType,w=b6,typeof b==="object"&&b!==null&&(w=_1(b)),k=G.getDerivedStateFromProps,(b=typeof k==="function"||typeof B.getSnapshotBeforeUpdate==="function")||typeof B.UNSAFE_componentWillReceiveProps!=="function"&&typeof B.componentWillReceiveProps!=="function"||(W!==V||D!==w)&&cB(Z,B,X,w),m6=!1,D=Z.memoizedState,B.state=D,_7(Z,X,B,N),z7();var y=Z.memoizedState;W!==V||D!==y||m6||$!==null&&$.dependencies!==null&&mQ($.dependencies)?(typeof k==="function"&&(BX(Z,G,k,X),y=Z.memoizedState),(_=m6||pB(Z,G,_,X,D,y,w)||$!==null&&$.dependencies!==null&&mQ($.dependencies))?(b||typeof B.UNSAFE_componentWillUpdate!=="function"&&typeof B.componentWillUpdate!=="function"||(typeof B.componentWillUpdate==="function"&&B.componentWillUpdate(X,y,w),typeof B.UNSAFE_componentWillUpdate==="function"&&B.UNSAFE_componentWillUpdate(X,y,w)),typeof B.componentDidUpdate==="function"&&(Z.flags|=4),typeof B.getSnapshotBeforeUpdate==="function"&&(Z.flags|=1024)):(typeof B.componentDidUpdate!=="function"||W===$.memoizedProps&&D===$.memoizedState||(Z.flags|=4),typeof B.getSnapshotBeforeUpdate!=="function"||W===$.memoizedProps&&D===$.memoizedState||(Z.flags|=1024),Z.memoizedProps=X,Z.memoizedState=y),B.props=X,B.state=y,B.context=w,B=_):(typeof B.componentDidUpdate!=="function"||W===$.memoizedProps&&D===$.memoizedState||(Z.flags|=4),typeof B.getSnapshotBeforeUpdate!=="function"||W===$.memoizedProps&&D===$.memoizedState||(Z.flags|=1024),B=!1)}if(w=B,MG($,Z),W=(Z.flags&128)!==0,w||W){if(w=Z.stateNode,O$(Z),W&&typeof G.getDerivedStateFromError!=="function")G=null,_5=-1;else if(G=qW(w),Z.mode&M5){H1(!0);try{qW(w)}finally{H1(!1)}}Z.flags|=1,$!==null&&W?(Z.child=i2(Z,$.child,null,N),Z.child=i2(Z,null,G,N)):Z5($,Z,G,N),Z.memoizedState=w.state,$=Z.child}else $=S8($,Z,N);return N=Z.stateNode,B&&N.props!==X&&(V9||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"),V9=!0),$}function GH($,Z,G,X){return v2(),Z.flags|=256,Z5($,Z,G,X),Z.child}function wX($,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",pW[$]||(console.error("%s: Function components do not support getDerivedStateFromProps.",$),pW[$]=!0)),typeof Z.contextType==="object"&&Z.contextType!==null&&(Z=i(Z)||"Unknown",mW[Z]||(console.error("%s: Function components do not support contextType.",Z),mW[Z]=!0))}function RX($){return{baseLanes:$,cachePool:ZB()}}function TX($,Z,G){return $=$!==null?$.childLanes&~G:0,Z&&($|=v5),$}function JH($,Z,G){var X,N=Z.pendingProps;K(Z)&&(Z.flags|=128);var B=!1,W=(Z.flags&128)!==0;if((X=W)||(X=$!==null&&$.memoizedState===null?!1:(v1.current&FZ)!==0),X&&(B=!0,Z.flags&=-129),X=(Z.flags&32)!==0,Z.flags&=-33,$===null){if(p0){if(B?L6(Z):V6(Z),($=R1)?(G=CM($,F4),G=G!==null&&G.data!==q$?G:null,G!==null&&(X={dehydrated:G,treeContext:rK(),retryLane:536870912,hydrationErrors:null},Z.memoizedState=X,X=cK(G),X.return=Z,Z.child=X,J5=Z,R1=null)):G=null,G===null)throw xQ(Z,$),w6(Z);return iX(G)?Z.lanes=32:Z.lanes=536870912,null}var w=N.children;if(N=N.fallback,B){V6(Z);var _=Z.mode;return w=FG({mode:"hidden",children:w},_),N=A2(N,_,G,null),w.return=Z,N.return=Z,w.sibling=N,Z.child=w,N=Z.child,N.memoizedState=RX(G),N.childLanes=TX($,X,G),Z.memoizedState=UU,P7(null,N)}return L6(Z),zX(Z,w)}var V=$.memoizedState;if(V!==null){var k=V.dehydrated;if(k!==null){if(W)Z.flags&256?(L6(Z),Z.flags&=-257,Z=_X($,Z,G)):Z.memoizedState!==null?(V6(Z),Z.child=$.child,Z.flags|=128,Z=null):(V6(Z),w=N.fallback,_=Z.mode,N=FG({mode:"visible",children:N.children},_),w=A2(w,_,G,null),w.flags|=2,N.return=Z,w.return=Z,N.sibling=w,Z.child=N,i2(Z,$.child,null,G),N=Z.child,N.memoizedState=RX(G),N.childLanes=TX($,X,G),Z.memoizedState=UU,Z=P7(null,N));else if(L6(Z),nK(),(G&536870912)!==0&&zG(Z),iX(k)){if(X=k.nextSibling&&k.nextSibling.dataset,X){w=X.dgst;var b=X.msg;_=X.stck;var D=X.cstck}B=b,X=w,N=_,k=D,w=B,_=k,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=N||"",w.digest=X,X=_===void 0?null:_,N={value:w,source:null,stack:X},typeof X==="string"&&mY.set(w,N),M7(N),Z=_X($,Z,G)}else if(x1||f$($,Z,G,!1),X=(G&$.childLanes)!==0,x1||X){if(X=K1,X!==null&&(N=P2(X,G),N!==0&&N!==V.retryLane))throw V.retryLane=N,B5($,N),C1(X,$,N),YU;aX(k)||_G(),Z=_X($,Z,G)}else aX(k)?(Z.flags|=192,Z.child=$.child,Z=null):($=V.treeContext,R1=a5(k.nextSibling),J5=Z,p0=!0,f6=null,B8=!1,$4=null,F4=!1,$!==null&&sK(Z,$),Z=zX(Z,N.children),Z.flags|=4096);return Z}}if(B)return V6(Z),w=N.fallback,_=Z.mode,D=$.child,k=D.sibling,N=O8(D,{mode:"hidden",children:N.children}),N.subtreeFlags=D.subtreeFlags&65011712,k!==null?w=O8(k,w):(w=A2(w,_,G,null),w.flags|=2),w.return=Z,N.return=Z,N.sibling=w,Z.child=N,P7(null,N),N=Z.child,w=$.child.memoizedState,w===null?w=RX(G):(_=w.cachePool,_!==null?(D=y1._currentValue,_=_.parent!==D?{parent:D,pool:D}:_):_=ZB(),w={baseLanes:w.baseLanes|G,cachePool:_}),N.memoizedState=w,N.childLanes=TX($,X,G),Z.memoizedState=UU,P7($.child,N);return V!==null&&(G&62914560)===G&&(G&$.lanes)!==0&&zG(Z),L6(Z),G=$.child,$=G.sibling,G=O8(G,{mode:"visible",children:N.children}),G.return=Z,G.sibling=null,$!==null&&(X=Z.deletions,X===null?(Z.deletions=[$],Z.flags|=16):X.push($)),Z.child=G,Z.memoizedState=null,G}function zX($,Z){return Z=FG({mode:"visible",children:Z},$.mode),Z.return=$,$.child=Z}function FG($,Z){return $=L(22,$,null,Z),$.lanes=0,$}function _X($,Z,G){return i2(Z,$.child,null,G),$=zX(Z,Z.pendingProps.children),$.flags|=2,Z.memoizedState=null,$}function qH($,Z,G){$.lanes|=Z;var X=$.alternate;X!==null&&(X.lanes|=Z),I3($.return,Z,G)}function LX($,Z,G,X,N,B){var W=$.memoizedState;W===null?$.memoizedState={isBackwards:Z,rendering:null,renderingStartTime:0,last:X,tail:G,tailMode:N,treeForkCount:B}:(W.isBackwards=Z,W.rendering=null,W.renderingStartTime=0,W.last=X,W.tail=G,W.tailMode=N,W.treeForkCount=B)}function XH($,Z,G){var X=Z.pendingProps,N=X.revealOrder,B=X.tail,W=X.children,w=v1.current;if((X=(w&FZ)!==0)?(w=w&T9|FZ,Z.flags|=128):w&=T9,z0(v1,w,Z),w=N==null?"null":N,N!=="forwards"&&N!=="unstable_legacy-backwards"&&N!=="together"&&N!=="independent"&&!cW[w])if(cW[w]=!0,N==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(N==="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 N==="string")switch(N.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.',N,N.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.',N,N.toLowerCase());break;default:console.error('"%s" is not a supported revealOrder on <SuspenseList />. Did you mean "independent", "together", "forwards" or "backwards"?',N)}else console.error('%s is not a supported value for revealOrder on <SuspenseList />. Did you mean "independent", "together", "forwards" or "backwards"?',N);if(w=B==null?"null":B,!HJ[w])if(B==null){if(N==="forwards"||N==="backwards"||N==="unstable_legacy-backwards")HJ[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"?(HJ[w]=!0,console.error('"%s" is not a supported value for tail on <SuspenseList />. Did you mean "visible", "collapsed" or "hidden"?',B)):N!=="forwards"&&N!=="backwards"&&N!=="unstable_legacy-backwards"&&(HJ[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((N==="forwards"||N==="backwards"||N==="unstable_legacy-backwards")&&W!==void 0&&W!==null&&W!==!1)if(c1(W)){for(w=0;w<W.length;w++)if(!BB(W[w],w))break $}else if(w=p(W),typeof w==="function"){if(w=w.call(W))for(var _=w.next(),V=0;!_.done;_=w.next()){if(!BB(_.value,V))break $;V++}}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?',N);if(Z5($,Z,W,G),p0?(W6(),W=e7):W=0,!X&&$!==null&&($.flags&128)!==0)$:for($=Z.child;$!==null;){if($.tag===13)$.memoizedState!==null&&qH($,G,Z);else if($.tag===19)qH($,G,Z);else if($.child!==null){$.child.return=$,$=$.child;continue}if($===Z)break $;for(;$.sibling===null;){if($.return===null||$.return===Z)break $;$=$.return}$.sibling.return=$.return,$=$.sibling}switch(N){case"forwards":G=Z.child;for(N=null;G!==null;)$=G.alternate,$!==null&&tQ($)===null&&(N=G),G=G.sibling;G=N,G===null?(N=Z.child,Z.child=null):(N=G.sibling,G.sibling=null),LX(Z,!1,N,G,B,W);break;case"backwards":case"unstable_legacy-backwards":G=null,N=Z.child;for(Z.child=null;N!==null;){if($=N.alternate,$!==null&&tQ($)===null){Z.child=N;break}$=N.sibling,N.sibling=G,G=N,N=$}LX(Z,!0,G,null,B,W);break;case"together":LX(Z,!1,null,null,void 0,W);break;default:Z.memoizedState=null}return Z.child}function S8($,Z,G){if($!==null&&(Z.dependencies=$.dependencies),_5=-1,c6|=Z.lanes,(G&Z.childLanes)===0)if($!==null){if(f$($,Z,G,!1),(G&Z.childLanes)===0)return null}else return null;if($!==null&&Z.child!==$.child)throw Error("Resuming work not yet implemented.");if(Z.child!==null){$=Z.child,G=O8($,$.pendingProps),Z.child=G;for(G.return=Z;$.sibling!==null;)$=$.sibling,G=G.sibling=O8($,$.pendingProps),G.return=Z;G.sibling=null}return Z.child}function VX($,Z){if(($.lanes&Z)!==0)return!0;return $=$.dependencies,$!==null&&mQ($)?!0:!1}function WL($,Z,G){switch(Z.tag){case 3:l(Z,Z.stateNode.containerInfo),R6(Z,y1,$.memoizedState.cache),v2();break;case 27:case 5:d0(Z);break;case 4:l(Z,Z.stateNode.containerInfo);break;case 10:R6(Z,Z.type,Z.memoizedProps.value);break;case 12:(G&Z.childLanes)!==0&&(Z.flags|=4),Z.flags|=2048;var X=Z.stateNode;X.effectDuration=-0,X.passiveEffectDuration=-0;break;case 31:if(Z.memoizedState!==null)return Z.flags|=128,g3(Z),null;break;case 13:if(X=Z.memoizedState,X!==null){if(X.dehydrated!==null)return L6(Z),Z.flags|=128,null;if((G&Z.child.childLanes)!==0)return JH($,Z,G);return L6(Z),$=S8($,Z,G),$!==null?$.sibling:null}L6(Z);break;case 19:var N=($.flags&128)!==0;if(X=(G&Z.childLanes)!==0,X||(f$($,Z,G,!1),X=(G&Z.childLanes)!==0),N){if(X)return XH($,Z,G);Z.flags|=128}if(N=Z.memoizedState,N!==null&&(N.rendering=null,N.tail=null,N.lastEffect=null),z0(v1,v1.current,Z),X)break;else return null;case 22:return Z.lanes=0,tB($,Z,G,Z.pendingProps);case 24:R6(Z,y1,$.memoizedState.cache)}return S8($,Z,G)}function EX($,Z,G){if(Z._debugNeedsRemount&&$!==null){G=z3(Z.type,Z.key,Z.pendingProps,Z._debugOwner||null,Z.mode,Z.lanes),G._debugStack=Z._debugStack,G._debugTask=Z._debugTask;var X=Z.return;if(X===null)throw Error("Cannot swap the root fiber.");if($.alternate=null,Z.alternate=null,G.index=Z.index,G.sibling=Z.sibling,G.return=Z.return,G.ref=Z.ref,G._debugInfo=Z._debugInfo,Z===X.child)X.child=G;else{var N=X.child;if(N===null)throw Error("Expected parent to have a child.");for(;N.sibling!==Z;)if(N=N.sibling,N===null)throw Error("Expected to find the previous sibling.");N.sibling=G}return Z=X.deletions,Z===null?(X.deletions=[$],X.flags|=16):Z.push($),G.flags|=2,G}if($!==null)if($.memoizedProps!==Z.pendingProps||Z.type!==$.type)x1=!0;else{if(!VX($,G)&&(Z.flags&128)===0)return x1=!1,WL($,Z,G);x1=($.flags&131072)!==0?!0:!1}else{if(x1=!1,X=p0)W6(),X=(Z.flags&1048576)!==0;X&&(X=Z.index,W6(),lK(Z,e7,X))}switch(Z.lanes=0,Z.tag){case 16:$:if(X=Z.pendingProps,$=T6(Z.elementType),Z.type=$,typeof $==="function")T3($)?(X=h2($,X),Z.tag=1,Z.type=$=j2($),Z=QH(null,Z,$,X,G)):(Z.tag=0,wX(Z,$),Z.type=$=j2($),Z=WX(null,Z,$,X,G));else{if($!==void 0&&$!==null){if(N=$.$$typeof,N===u7){Z.tag=11,Z.type=$=R3($),Z=oB(null,Z,$,X,G);break $}else if(N===bG){Z.tag=14,Z=aB(null,Z,$,X,G);break $}}throw Z="",$!==null&&typeof $==="object"&&$.$$typeof===i5&&(Z=" Did you wrap a component in React.lazy() more than once?"),G=i($)||$,Error("Element type is invalid. Received a promise that resolves to: "+G+". Lazy element type must resolve to a class or function."+Z)}return Z;case 0:return WX($,Z,Z.type,Z.pendingProps,G);case 1:return X=Z.type,N=h2(X,Z.pendingProps),QH($,Z,X,N,G);case 3:$:{if(l(Z,Z.stateNode.containerInfo),$===null)throw Error("Should have a current fiber. This is a bug in React.");X=Z.pendingProps;var B=Z.memoizedState;N=B.element,b3($,Z),_7(Z,X,null,G);var W=Z.memoizedState;if(X=W.cache,R6(Z,y1,X),X!==B.cache&&O3(Z,[y1],G,!0),z7(),X=W.element,B.isDehydrated)if(B={element:X,isDehydrated:!1,cache:W.cache},Z.updateQueue.baseState=B,Z.memoizedState=B,Z.flags&256){Z=GH($,Z,X,G);break $}else if(X!==N){N=l5(Error("This root received an early update, before anything was able hydrate. Switched the entire root to client rendering."),Z),M7(N),Z=GH($,Z,X,G);break $}else{switch($=Z.stateNode.containerInfo,$.nodeType){case 9:$=$.body;break;default:$=$.nodeName==="HTML"?$.ownerDocument.body:$}R1=a5($.firstChild),J5=Z,p0=!0,f6=null,B8=!1,$4=null,F4=!0,G=zW(Z,null,X,G);for(Z.child=G;G;)G.flags=G.flags&-3|4096,G=G.sibling}else{if(v2(),X===N){Z=S8($,Z,G);break $}Z5($,Z,X,G)}Z=Z.child}return Z;case 26:return MG($,Z),$===null?(G=SM(Z.type,null,Z.pendingProps,null))?Z.memoizedState=G:p0||(G=Z.type,$=Z.pendingProps,X=C0(D6.current),X=PG(X).createElement(G),X[G5]=Z,X[R5]=$,Q5(X,G,$),F0(X),Z.stateNode=X):Z.memoizedState=SM(Z.type,$.memoizedProps,Z.pendingProps,$.memoizedState),null;case 27:return d0(Z),$===null&&p0&&(X=C0(D6.current),N=K0(),X=Z.stateNode=jM(Z.type,Z.pendingProps,X,N,!1),B8||(N=RM(X,Z.type,Z.pendingProps,N),N!==null&&(S2(Z,0).serverProps=N)),J5=Z,F4=!0,N=R1,I6(Z.type)?(SU=N,R1=a5(X.firstChild)):R1=N),Z5($,Z,Z.pendingProps.children,G),MG($,Z),$===null&&(Z.flags|=4194304),Z.child;case 5:return $===null&&p0&&(B=K0(),X=N3(Z.type,B.ancestorInfo),N=R1,(W=!N)||(W=GV(N,Z.type,Z.pendingProps,F4),W!==null?(Z.stateNode=W,B8||(B=RM(W,Z.type,Z.pendingProps,B),B!==null&&(S2(Z,0).serverProps=B)),J5=Z,R1=a5(W.firstChild),F4=!1,B=!0):B=!1,W=!B),W&&(X&&xQ(Z,N),w6(Z))),d0(Z),N=Z.type,B=Z.pendingProps,W=$!==null?$.memoizedProps:null,X=B.children,nX(N,B)?X=null:W!==null&&nX(N,W)&&(Z.flags|=32),Z.memoizedState!==null&&(N=x3($,Z,YL,null,null,G),vZ._currentValue=N),MG($,Z),Z5($,Z,X,G),Z.child;case 6:return $===null&&p0&&(G=Z.pendingProps,$=K0(),X=$.ancestorInfo.current,G=X!=null?jQ(G,X.tag,$.ancestorInfo.implicitRootScope):!0,$=R1,(X=!$)||(X=JV($,Z.pendingProps,F4),X!==null?(Z.stateNode=X,J5=Z,R1=null,X=!0):X=!1,X=!X),X&&(G&&xQ(Z,$),w6(Z))),null;case 13:return JH($,Z,G);case 4:return l(Z,Z.stateNode.containerInfo),X=Z.pendingProps,$===null?Z.child=i2(Z,null,X,G):Z5($,Z,X,G),Z.child;case 11:return oB($,Z,Z.type,Z.pendingProps,G);case 7:return Z5($,Z,Z.pendingProps,G),Z.child;case 8:return Z5($,Z,Z.pendingProps.children,G),Z.child;case 12:return Z.flags|=4,Z.flags|=2048,X=Z.stateNode,X.effectDuration=-0,X.passiveEffectDuration=-0,Z5($,Z,Z.pendingProps.children,G),Z.child;case 10:return X=Z.type,N=Z.pendingProps,B=N.value,"value"in N||lW||(lW=!0,console.error("The `value` prop is required for the `<Context.Provider>`. Did you misspell it or forget to pass it?")),R6(Z,X,B),Z5($,Z,N.children,G),Z.child;case 9:return N=Z.type._context,X=Z.pendingProps.children,typeof X!=="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."),k2(Z),N=_1(N),X=oY(X,N,void 0),Z.flags|=1,Z5($,Z,X,G),Z.child;case 14:return aB($,Z,Z.type,Z.pendingProps,G);case 15:return iB($,Z,Z.type,Z.pendingProps,G);case 19:return XH($,Z,G);case 31:return FL($,Z,G);case 22:return tB($,Z,G,Z.pendingProps);case 24:return k2(Z),X=_1(y1),$===null?(N=S3(),N===null&&(N=K1,B=D3(),N.pooledCache=B,b2(B),B!==null&&(N.pooledCacheLanes|=G),N=B),Z.memoizedState={parent:X,cache:N},k3(Z),R6(Z,y1,N)):(($.lanes&G)!==0&&(b3($,Z),_7(Z,null,null,G),z7()),N=$.memoizedState,B=Z.memoizedState,N.parent!==X?(N={parent:X,cache:X},Z.memoizedState=N,Z.lanes===0&&(Z.memoizedState=Z.updateQueue.baseState=N),R6(Z,y1,X)):(X=B.cache,R6(Z,y1,X),X!==N.cache&&O3(Z,[y1],G,!0))),Z5($,Z,Z.pendingProps.children,G),Z.child;case 29:throw Z.pendingProps}throw Error("Unknown unit of work tag ("+Z.tag+"). This error is likely caused by a bug in React. Please file an issue.")}function v8($){$.flags|=4}function PX($,Z,G,X,N){if(Z=($.mode&fE)!==_0)Z=!1;if(Z){if($.flags|=16777216,(N&335544128)===N)if($.stateNode.complete)$.flags|=8192;else if(xH())$.flags|=8192;else throw a2=XJ,iY}else $.flags&=-16777217}function YH($,Z){if(Z.type!=="stylesheet"||(Z.state.loading&z4)!==U$)$.flags&=-16777217;else if($.flags|=16777216,!yM(Z))if(xH())$.flags|=8192;else throw a2=XJ,iY}function WG($,Z){Z!==null&&($.flags|=4),$.flags&16384&&(Z=$.tag!==22?j$():536870912,$.lanes|=Z,Q$|=Z)}function C7($,Z){if(!p0)switch($.tailMode){case"hidden":Z=$.tail;for(var G=null;Z!==null;)Z.alternate!==null&&(G=Z),Z=Z.sibling;G===null?$.tail=null:G.sibling=null;break;case"collapsed":G=$.tail;for(var X=null;G!==null;)G.alternate!==null&&(X=G),G=G.sibling;X===null?Z||$.tail===null?$.tail=null:$.tail.sibling=null:X.sibling=null}}function M1($){var Z=$.alternate!==null&&$.alternate.child===$.child,G=0,X=0;if(Z)if(($.mode&j0)!==_0){for(var{selfBaseDuration:N,child:B}=$;B!==null;)G|=B.lanes|B.childLanes,X|=B.subtreeFlags&65011712,X|=B.flags&65011712,N+=B.treeBaseDuration,B=B.sibling;$.treeBaseDuration=N}else for(N=$.child;N!==null;)G|=N.lanes|N.childLanes,X|=N.subtreeFlags&65011712,X|=N.flags&65011712,N.return=$,N=N.sibling;else if(($.mode&j0)!==_0){N=$.actualDuration,B=$.selfBaseDuration;for(var W=$.child;W!==null;)G|=W.lanes|W.childLanes,X|=W.subtreeFlags,X|=W.flags,N+=W.actualDuration,B+=W.treeBaseDuration,W=W.sibling;$.actualDuration=N,$.treeBaseDuration=B}else for(N=$.child;N!==null;)G|=N.lanes|N.childLanes,X|=N.subtreeFlags,X|=N.flags,N.return=$,N=N.sibling;return $.subtreeFlags|=X,$.childLanes=G,Z}function wL($,Z,G){var X=Z.pendingProps;switch(E3(Z),Z.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return M1(Z),null;case 1:return M1(Z),null;case 3:if(G=Z.stateNode,X=null,$!==null&&(X=$.memoizedState.cache),Z.memoizedState.cache!==X&&(Z.flags|=2048),j8(y1,Z),J0(Z),G.pendingContext&&(G.context=G.pendingContext,G.pendingContext=null),$===null||$.child===null)b$(Z)?(C3(),v8(Z)):$===null||$.memoizedState.isDehydrated&&(Z.flags&256)===0||(Z.flags|=1024,P3());return M1(Z),null;case 26:var{type:N,memoizedState:B}=Z;return $===null?(v8(Z),B!==null?(M1(Z),YH(Z,B)):(M1(Z),PX(Z,N,null,X,G))):B?B!==$.memoizedState?(v8(Z),M1(Z),YH(Z,B)):(M1(Z),Z.flags&=-16777217):($=$.memoizedProps,$!==X&&v8(Z),M1(Z),PX(Z,N,$,X,G)),null;case 27:if(k0(Z),G=C0(D6.current),N=Z.type,$!==null&&Z.stateNode!=null)$.memoizedProps!==X&&v8(Z);else{if(!X){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 M1(Z),null}$=K0(),b$(Z)?oK(Z,$):($=jM(N,X,G,$,!0),Z.stateNode=$,v8(Z))}return M1(Z),null;case 5:if(k0(Z),N=Z.type,$!==null&&Z.stateNode!=null)$.memoizedProps!==X&&v8(Z);else{if(!X){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 M1(Z),null}var W=K0();if(b$(Z))oK(Z,W);else{switch(B=C0(D6.current),N3(N,W.ancestorInfo),W=W.context,B=PG(B),W){case A9:B=B.createElementNS($9,N);break;case vJ:B=B.createElementNS(mG,N);break;default:switch(N){case"svg":B=B.createElementNS($9,N);break;case"math":B=B.createElementNS(mG,N);break;case"script":B=B.createElement("div"),B.innerHTML="<script></script>",B=B.removeChild(B.firstChild);break;case"select":B=typeof X.is==="string"?B.createElement("select",{is:X.is}):B.createElement("select"),X.multiple?B.multiple=!0:X.size&&(B.size=X.size);break;default:B=typeof X.is==="string"?B.createElement(N,{is:X.is}):B.createElement(N),N.indexOf("-")===-1&&(N!==N.toLowerCase()&&console.error("<%s /> is using incorrect casing. Use PascalCase for React components, or lowercase for HTML elements.",N),Object.prototype.toString.call(B)!=="[object HTMLUnknownElement]"||D4.call(Ww,N)||(Ww[N]=!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.",N)))}}B[G5]=Z,B[R5]=X;$:for(W=Z.child;W!==null;){if(W.tag===5||W.tag===6)B.appendChild(W.stateNode);else if(W.tag!==4&&W.tag!==27&&W.child!==null){W.child.return=W,W=W.child;continue}if(W===Z)break $;for(;W.sibling===null;){if(W.return===null||W.return===Z)break $;W=W.return}W.sibling.return=W.return,W=W.sibling}Z.stateNode=B;$:switch(Q5(B,N,X),N){case"button":case"input":case"select":case"textarea":X=!!X.autoFocus;break $;case"img":X=!0;break $;default:X=!1}X&&v8(Z)}}return M1(Z),PX(Z,Z.type,$===null?null:$.memoizedProps,Z.pendingProps,G),null;case 6:if($&&Z.stateNode!=null)$.memoizedProps!==X&&v8(Z);else{if(typeof X!=="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($=C0(D6.current),G=K0(),b$(Z)){if($=Z.stateNode,G=Z.memoizedProps,N=!B8,X=null,B=J5,B!==null)switch(B.tag){case 3:N&&(N=OM($,G,X),N!==null&&(S2(Z,0).serverProps=N));break;case 27:case 5:X=B.memoizedProps,N&&(N=OM($,G,X),N!==null&&(S2(Z,0).serverProps=N))}$[G5]=Z,$=$.nodeValue===G||X!==null&&X.suppressHydrationWarning===!0||HM($.nodeValue,G)?!0:!1,$||w6(Z,!0)}else N=G.ancestorInfo.current,N!=null&&jQ(X,N.tag,G.ancestorInfo.implicitRootScope),$=PG($).createTextNode(X),$[G5]=Z,Z.stateNode=$}return M1(Z),null;case 31:if(G=Z.memoizedState,$===null||$.memoizedState!==null){if(X=b$(Z),G!==null){if($===null){if(!X)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.");$[G5]=Z,M1(Z),(Z.mode&j0)!==_0&&G!==null&&($=Z.child,$!==null&&(Z.treeBaseDuration-=$.treeBaseDuration))}else C3(),v2(),(Z.flags&128)===0&&(G=Z.memoizedState=null),Z.flags|=4,M1(Z),(Z.mode&j0)!==_0&&G!==null&&($=Z.child,$!==null&&(Z.treeBaseDuration-=$.treeBaseDuration));$=!1}else G=P3(),$!==null&&$.memoizedState!==null&&($.memoizedState.hydrationErrors=G),$=!0;if(!$){if(Z.flags&256)return n5(Z),Z;return n5(Z),null}if((Z.flags&128)!==0)throw Error("Client rendering an Activity suspended it again. This is a bug in React.")}return M1(Z),null;case 13:if(X=Z.memoizedState,$===null||$.memoizedState!==null&&$.memoizedState.dehydrated!==null){if(N=X,B=b$(Z),N!==null&&N.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[G5]=Z,M1(Z),(Z.mode&j0)!==_0&&N!==null&&(N=Z.child,N!==null&&(Z.treeBaseDuration-=N.treeBaseDuration))}else C3(),v2(),(Z.flags&128)===0&&(N=Z.memoizedState=null),Z.flags|=4,M1(Z),(Z.mode&j0)!==_0&&N!==null&&(N=Z.child,N!==null&&(Z.treeBaseDuration-=N.treeBaseDuration));N=!1}else N=P3(),$!==null&&$.memoizedState!==null&&($.memoizedState.hydrationErrors=N),N=!0;if(!N){if(Z.flags&256)return n5(Z),Z;return n5(Z),null}}if(n5(Z),(Z.flags&128)!==0)return Z.lanes=G,(Z.mode&j0)!==_0&&w7(Z),Z;return G=X!==null,$=$!==null&&$.memoizedState!==null,G&&(X=Z.child,N=null,X.alternate!==null&&X.alternate.memoizedState!==null&&X.alternate.memoizedState.cachePool!==null&&(N=X.alternate.memoizedState.cachePool.pool),B=null,X.memoizedState!==null&&X.memoizedState.cachePool!==null&&(B=X.memoizedState.cachePool.pool),B!==N&&(X.flags|=2048)),G!==$&&G&&(Z.child.flags|=8192),WG(Z,Z.updateQueue),M1(Z),(Z.mode&j0)!==_0&&G&&($=Z.child,$!==null&&(Z.treeBaseDuration-=$.treeBaseDuration)),null;case 4:return J0(Z),$===null&&mX(Z.stateNode.containerInfo),M1(Z),null;case 10:return j8(Z.type,Z),M1(Z),null;case 19:if(w0(v1,Z),X=Z.memoizedState,X===null)return M1(Z),null;if(N=(Z.flags&128)!==0,B=X.rendering,B===null)if(N)C7(X,!1);else{if(E1!==s8||$!==null&&($.flags&128)!==0)for($=Z.child;$!==null;){if(B=tQ($),B!==null){Z.flags|=128,C7(X,!1),$=B.updateQueue,Z.updateQueue=$,WG(Z,$),Z.subtreeFlags=0,$=G;for(G=Z.child;G!==null;)pK(G,$),G=G.sibling;return z0(v1,v1.current&T9|FZ,Z),p0&&D8(Z,X.treeForkCount),Z.child}$=$.sibling}X.tail!==null&&o1()>zJ&&(Z.flags|=128,N=!0,C7(X,!1),Z.lanes=4194304)}else{if(!N)if($=tQ(B),$!==null){if(Z.flags|=128,N=!0,$=$.updateQueue,Z.updateQueue=$,WG(Z,$),C7(X,!0),X.tail===null&&X.tailMode==="hidden"&&!B.alternate&&!p0)return M1(Z),null}else 2*o1()-X.renderingStartTime>zJ&&G!==536870912&&(Z.flags|=128,N=!0,C7(X,!1),Z.lanes=4194304);X.isBackwards?(B.sibling=Z.child,Z.child=B):($=X.last,$!==null?$.sibling=B:Z.child=B,X.last=B)}if(X.tail!==null)return $=X.tail,X.rendering=$,X.tail=$.sibling,X.renderingStartTime=o1(),$.sibling=null,G=v1.current,G=N?G&T9|FZ:G&T9,z0(v1,G,Z),p0&&D8(Z,X.treeForkCount),$;return M1(Z),null;case 22:case 23:return n5(Z),y3(Z),X=Z.memoizedState!==null,$!==null?$.memoizedState!==null!==X&&(Z.flags|=8192):X&&(Z.flags|=8192),X?(G&536870912)!==0&&(Z.flags&128)===0&&(M1(Z),Z.subtreeFlags&6&&(Z.flags|=8192)):M1(Z),G=Z.updateQueue,G!==null&&WG(Z,G.retryQueue),G=null,$!==null&&$.memoizedState!==null&&$.memoizedState.cachePool!==null&&(G=$.memoizedState.cachePool.pool),X=null,Z.memoizedState!==null&&Z.memoizedState.cachePool!==null&&(X=Z.memoizedState.cachePool.pool),X!==G&&(Z.flags|=2048),$!==null&&w0(n2,Z),null;case 24:return G=null,$!==null&&(G=$.memoizedState.cache),Z.memoizedState.cache!==G&&(Z.flags|=2048),j8(y1,Z),M1(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 RL($,Z){switch(E3(Z),Z.tag){case 1:return $=Z.flags,$&65536?(Z.flags=$&-65537|128,(Z.mode&j0)!==_0&&w7(Z),Z):null;case 3:return j8(y1,Z),J0(Z),$=Z.flags,($&65536)!==0&&($&128)===0?(Z.flags=$&-65537|128,Z):null;case 26:case 27:case 5:return k0(Z),null;case 31:if(Z.memoizedState!==null){if(n5(Z),Z.alternate===null)throw Error("Threw in newly mounted dehydrated component. This is likely a bug in React. Please file an issue.");v2()}return $=Z.flags,$&65536?(Z.flags=$&-65537|128,(Z.mode&j0)!==_0&&w7(Z),Z):null;case 13:if(n5(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.");v2()}return $=Z.flags,$&65536?(Z.flags=$&-65537|128,(Z.mode&j0)!==_0&&w7(Z),Z):null;case 19:return w0(v1,Z),null;case 4:return J0(Z),null;case 10:return j8(Z.type,Z),null;case 22:case 23:return n5(Z),y3(Z),$!==null&&w0(n2,Z),$=Z.flags,$&65536?(Z.flags=$&-65537|128,(Z.mode&j0)!==_0&&w7(Z),Z):null;case 24:return j8(y1,Z),null;case 25:return null;default:return null}}function UH($,Z){switch(E3(Z),Z.tag){case 3:j8(y1,Z),J0(Z);break;case 26:case 27:case 5:k0(Z);break;case 4:J0(Z);break;case 31:Z.memoizedState!==null&&n5(Z);break;case 13:n5(Z);break;case 19:w0(v1,Z);break;case 10:j8(Z.type,Z);break;case 22:case 23:n5(Z),y3(Z),$!==null&&w0(n2,Z);break;case 24:j8(y1,Z)}}function t4($){return($.mode&j0)!==_0}function NH($,Z){t4($)?(i4(),I7(Z,$),a4()):I7(Z,$)}function CX($,Z,G){t4($)?(i4(),u$(G,$,Z),a4()):u$(G,$,Z)}function I7($,Z){try{var G=Z.updateQueue,X=G!==null?G.lastEffect:null;if(X!==null){var N=X.next;G=N;do{if((G.tag&$)===$&&(X=void 0,($&L5)!==UJ&&(O9=!0),X=G0(Z,uE,G),($&L5)!==UJ&&(O9=!1),X!==void 0&&typeof X!=="function")){var B=void 0;B=(G.tag&Q4)!==0?"useLayoutEffect":(G.tag&L5)!==0?"useInsertionEffect":"useEffect";var W=void 0;W=X===null?" You returned null. If your effect does not require clean up, return undefined (or nothing).":typeof X.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: "+X,G0(Z,function(R,z){console.error("%s must not return anything besides a function, which is used for clean-up.%s",R,z)},B,W)}G=G.next}while(G!==N)}}catch(R){$1(Z,Z.return,R)}}function u$($,Z,G){try{var X=Z.updateQueue,N=X!==null?X.lastEffect:null;if(N!==null){var B=N.next;X=B;do{if((X.tag&$)===$){var W=X.inst,R=W.destroy;R!==void 0&&(W.destroy=void 0,($&L5)!==UJ&&(O9=!0),N=Z,G0(N,yE,N,G,R),($&L5)!==UJ&&(O9=!1))}X=X.next}while(X!==B)}}catch(z){$1(Z,Z.return,z)}}function YM($,Z){t4($)?(i4(),I7(Z,$),a4()):I7(Z,$)}function PX($,Z,G){t4($)?(i4(),u$(G,$,Z),a4()):u$(G,$,Z)}function UM($){var Z=$.updateQueue;if(Z!==null){var G=$.stateNode;$.type.defaultProps||"ref"in $.memoizedProps||V9||(G.props!==$.memoizedProps&&console.error("Expected %s props to match memoized props before processing the update queue. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.",d($)||"instance"),G.state!==$.memoizedState&&console.error("Expected %s state to match memoized state before processing the update queue. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue.",d($)||"instance"));try{G0($,KB,Z,G)}catch(X){$1($,$.return,X)}}}function HL($,Z,G){return $.getSnapshotBeforeUpdate(Z,G)}function FL($,Z){var{memoizedProps:G,memoizedState:X}=Z;Z=$.stateNode,$.type.defaultProps||"ref"in $.memoizedProps||V9||(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 N=h2($.type,G),B=G0($,HL,Z,N,X);G=pW,B!==void 0||G.has($.type)||(G.add($.type),G0($,function(){console.error("%s.getSnapshotBeforeUpdate(): A snapshot value (or null) must be returned. You have returned undefined.",d($))})),Z.__reactInternalSnapshotBeforeUpdate=B}catch(W){$1($,$.return,W)}}function NM($,Z,G){G.props=h2($.type,$.memoizedProps),G.state=$.memoizedState,t4($)?(i4(),G0($,UW,$,Z,G),a4()):G0($,UW,$,Z,G)}function WL($){var Z=$.ref;if(Z!==null){switch($.tag){case 26:case 27:case 5:var G=$.stateNode;break;case 30:G=$.stateNode;break;default:G=$.stateNode}if(typeof Z==="function")if(t4($))try{i4(),$.refCleanup=Z(G)}finally{a4()}else $.refCleanup=Z(G);else typeof Z==="string"?console.error("String refs are no longer supported."):Z.hasOwnProperty("current")||console.error("Unexpected ref object provided for %s. Use either a ref-setter function or React.createRef().",d($)),Z.current=G}}function O7($,Z){try{G0($,WL,$)}catch(G){$1($,Z,G)}}function e4($,Z){var{ref:G,refCleanup:X}=$;if(G!==null)if(typeof X==="function")try{if(t4($))try{i4(),G0($,X)}finally{a4($)}else G0($,X)}catch(N){$1($,Z,N)}finally{$.refCleanup=null,$=$.alternate,$!=null&&($.refCleanup=null)}else if(typeof G==="function")try{if(t4($))try{i4(),G0($,G,null)}finally{a4($)}else G0($,G,null)}catch(N){$1($,Z,N)}else G.current=null}function KM($,Z,G,X){var N=$.memoizedProps,B=N.id,W=N.onCommit;N=N.onRender,Z=Z===null?"mount":"update",QJ&&(Z="nested-update"),typeof N==="function"&&N(B,Z,$.actualDuration,$.treeBaseDuration,$.actualStartTime,G),typeof W==="function"&&W(B,Z,X,G)}function RL($,Z,G,X){var N=$.memoizedProps;$=N.id,N=N.onPostCommit,Z=Z===null?"mount":"update",QJ&&(Z="nested-update"),typeof N==="function"&&N($,Z,X,G)}function BM($){var{type:Z,memoizedProps:G,stateNode:X}=$;try{G0($,uL,X,Z,G,$)}catch(N){$1($,$.return,N)}}function CX($,Z,G){try{G0($,dL,$.stateNode,$.type,G,Z,$)}catch(X){$1($,$.return,X)}}function MM($){return $.tag===5||$.tag===3||$.tag===26||$.tag===27&&I6($.type)||$.tag===4}function IX($){$:for(;;){for(;$.sibling===null;){if($.return===null||MM($.return))return null;$=$.return}$.sibling.return=$.return;for($=$.sibling;$.tag!==5&&$.tag!==6&&$.tag!==18;){if($.tag===27&&I6($.type))continue $;if($.flags&2)continue $;if($.child===null||$.tag===4)continue $;else $.child.return=$,$=$.child}if(!($.flags&2))return $.stateNode}}function OX($,Z,G){var X=$.tag;if(X===5||X===6)$=$.stateNode,Z?(_H(G),(G.nodeType===9?G.body:G.nodeName==="HTML"?G.ownerDocument.body:G).insertBefore($,Z)):(_H(G),Z=G.nodeType===9?G.body:G.nodeName==="HTML"?G.ownerDocument.body:G,Z.appendChild($),G=G._reactRootContainer,G!==null&&G!==void 0||Z.onclick!==null||(Z.onclick=I8));else if(X!==4&&(X===27&&I6($.type)&&(G=$.stateNode,Z=null),$=$.child,$!==null))for(OX($,Z,G),$=$.sibling;$!==null;)OX($,Z,G),$=$.sibling}function RG($,Z,G){var X=$.tag;if(X===5||X===6)$=$.stateNode,Z?G.insertBefore($,Z):G.appendChild($);else if(X!==4&&(X===27&&I6($.type)&&(G=$.stateNode),$=$.child,$!==null))for(RG($,Z,G),$=$.sibling;$!==null;)RG($,Z,G),$=$.sibling}function wL($){for(var Z,G=$.return;G!==null;){if(MM(G)){Z=G;break}G=G.return}if(Z==null)throw Error("Expected to find a host parent. This error is likely caused by a bug in React. Please file an issue.");switch(Z.tag){case 27:Z=Z.stateNode,G=IX($),RG($,G,Z);break;case 5:G=Z.stateNode,Z.flags&32&&(TH(G),Z.flags&=-33),Z=IX($),RG($,Z,G);break;case 3:case 4:Z=Z.stateNode.containerInfo,G=IX($),OX($,G,Z);break;default:throw Error("Invalid host parent fiber. This error is likely caused by a bug in React. Please file an issue.")}}function HM($){var{stateNode:Z,memoizedProps:G}=$;try{G0($,JV,$.type,G,Z,$)}catch(X){$1($,$.return,X)}}function FM($,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 TL($,Z){if($=$.containerInfo,IU=yJ,$=AK($),K3($)){if("selectionStart"in $)var G={start:$.selectionStart,end:$.selectionEnd};else $:{G=(G=$.ownerDocument)&&G.defaultView||window;var X=G.getSelection&&G.getSelection();if(X&&X.rangeCount!==0){G=X.anchorNode;var{anchorOffset:N,focusNode:B}=X;X=X.focusOffset;try{G.nodeType,B.nodeType}catch(t){G=null;break $}var W=0,R=-1,z=-1,V=0,k=0,b=$,D=null;Z:for(;;){for(var y;;){if(b!==G||N!==0&&b.nodeType!==3||(R=W+N),b!==B||X!==0&&b.nodeType!==3||(z=W+X),b.nodeType===3&&(W+=b.nodeValue.length),(y=b.firstChild)===null)break;D=b,b=y}for(;;){if(b===$)break Z;if(D===G&&++V===N&&(R=W),D===B&&++k===X&&(z=W),(y=b.nextSibling)!==null)break;b=D,D=b.parentNode}b=y}G=R===-1||z===-1?null:{start:R,end:z}}else G=null}G=G||{start:0,end:0}}else G=null;OU={focusedElem:$,selectionRange:G},yJ=!1;for(i1=Z;i1!==null;)if(Z=i1,$=Z.child,(Z.subtreeFlags&1028)!==0&&$!==null)$.return=Z,i1=$;else for(;i1!==null;){switch($=Z=i1,G=$.alternate,N=$.flags,$.tag){case 0:if((N&4)!==0&&($=$.updateQueue,$=$!==null?$.events:null,$!==null))for(G=0;G<$.length;G++)N=$[G],N.ref.impl=N.nextImpl;break;case 11:case 15:break;case 1:(N&1024)!==0&&G!==null&&FL($,G);break;case 3:if((N&1024)!==0){if($=$.stateNode.containerInfo,G=$.nodeType,G===9)sX($);else if(G===1)switch($.nodeName){case"HEAD":case"HTML":case"BODY":sX($);break;default:$.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((N&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,i1=$;break}i1=Z.return}}function WM($,Z,G){var X=r5(),N=r4(),B=n4(),W=o4(),R=G.flags;switch(G.tag){case 0:case 11:case 15:$8($,G),R&4&&XM(G,Q4|w4);break;case 1:if($8($,G),R&4)if($=G.stateNode,Z===null)G.type.defaultProps||"ref"in G.memoizedProps||V9||($.props!==G.memoizedProps&&console.error("Expected %s props to match memoized props before componentDidMount. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.",d(G)||"instance"),$.state!==G.memoizedState&&console.error("Expected %s state to match memoized state before componentDidMount. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue.",d(G)||"instance")),t4(G)?(i4(),G0(G,nY,G,$),a4()):G0(G,nY,G,$);else{var z=h2(G.type,Z.memoizedProps);Z=Z.memoizedState,G.type.defaultProps||"ref"in G.memoizedProps||V9||($.props!==G.memoizedProps&&console.error("Expected %s props to match memoized props before componentDidUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.",d(G)||"instance"),$.state!==G.memoizedState&&console.error("Expected %s state to match memoized state before componentDidUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue.",d(G)||"instance")),t4(G)?(i4(),G0(G,qW,G,$,z,Z,$.__reactInternalSnapshotBeforeUpdate),a4()):G0(G,qW,G,$,z,Z,$.__reactInternalSnapshotBeforeUpdate)}R&64&&UM(G),R&512&&O7(G,G.return);break;case 3:if(Z=A8(),$8($,G),R&64&&(R=G.updateQueue,R!==null)){if(z=null,G.child!==null)switch(G.child.tag){case 27:case 5:z=G.child.stateNode;break;case 1:z=G.child.stateNode}try{G0(G,KB,R,z)}catch(k){$1(G,G.return,k)}}$.effectDuration+=pQ(Z);break;case 27:Z===null&&R&4&&HM(G);case 26:case 5:if($8($,G),Z===null){if(R&4)BM(G);else if(R&64){$=G.type,Z=G.memoizedProps,z=G.stateNode;try{G0(G,mL,z,$,Z,G)}catch(k){$1(G,G.return,k)}}}R&512&&O7(G,G.return);break;case 12:if(R&4){R=A8(),$8($,G),$=G.stateNode,$.effectDuration+=W7(R);try{G0(G,KM,G,Z,y6,$.effectDuration)}catch(k){$1(G,G.return,k)}}else $8($,G);break;case 31:$8($,G),R&4&&TM($,G);break;case 13:$8($,G),R&4&&_M($,G),R&64&&($=G.memoizedState,$!==null&&($=$.dehydrated,$!==null&&(R=OL.bind(null,G),$V($,R))));break;case 22:if(R=G.memoizedState!==null||r8,!R){Z=Z!==null&&Z.memoizedState!==null||u1,z=r8;var V=u1;r8=R,(u1=Z)&&!V?(Z8($,G,(G.subtreeFlags&8772)!==0),(G.mode&j0)!==z0&&0<=W0&&0<=T0&&0.05<T0-W0&&kQ(G,W0,T0)):$8($,G),r8=z,u1=V}break;case 30:break;default:$8($,G)}(G.mode&j0)!==z0&&0<=W0&&0<=T0&&((I1||0.05<V1)&&c4(G,W0,T0,V1,L1),G.alternate===null&&G.return!==null&&G.return.alternate!==null&&0.05<T0-W0&&(FM(G.return.alternate,G.return)||p4(G,W0,T0,"Mount"))),s5(X),s4(N),L1=B,I1=W}function RM($){var Z=$.alternate;Z!==null&&($.alternate=null,RM(Z)),$.child=null,$.deletions=null,$.sibling=null,$.tag===5&&(Z=$.stateNode,Z!==null&&e(Z)),$.stateNode=null,$._debugOwner=null,$.return=null,$.dependencies=null,$.memoizedProps=null,$.memoizedState=null,$.pendingProps=null,$.stateNode=null,$.updateQueue=null}function k8($,Z,G){for(G=G.child;G!==null;)wM($,Z,G),G=G.sibling}function wM($,Z,G){if(M5&&typeof M5.onCommitFiberUnmount==="function")try{M5.onCommitFiberUnmount(t$,G)}catch(V){Y8||(Y8=!0,console.error("React instrumentation encountered an error: %o",V))}var X=r5(),N=r4(),B=n4(),W=o4();switch(G.tag){case 26:u1||e4(G,Z),k8($,Z,G),G.memoizedState?G.memoizedState.count--:G.stateNode&&($=G.stateNode,$.parentNode.removeChild($));break;case 27:u1||e4(G,Z);var R=m1,z=A5;I6(G.type)&&(m1=G.stateNode,A5=!1),k8($,Z,G),G0(G,y7,G.stateNode),m1=R,A5=z;break;case 5:u1||e4(G,Z);case 6:if(R=m1,z=A5,m1=null,k8($,Z,G),m1=R,A5=z,m1!==null)if(A5)try{G0(G,lL,m1,G.stateNode)}catch(V){$1(G,Z,V)}else try{G0(G,cL,m1,G.stateNode)}catch(V){$1(G,Z,V)}break;case 18:m1!==null&&(A5?($=m1,zH($.nodeType===9?$.body:$.nodeName==="HTML"?$.ownerDocument.body:$,G.stateNode),n$($)):zH(m1,G.stateNode));break;case 4:R=m1,z=A5,m1=G.stateNode.containerInfo,A5=!0,k8($,Z,G),m1=R,A5=z;break;case 0:case 11:case 14:case 15:u$(L5,G,Z),u1||EX(G,Z,Q4),k8($,Z,G);break;case 1:u1||(e4(G,Z),R=G.stateNode,typeof R.componentWillUnmount==="function"&&NM(G,Z,R)),k8($,Z,G);break;case 21:k8($,Z,G);break;case 22:u1=(R=u1)||G.memoizedState!==null,k8($,Z,G),u1=R;break;default:k8($,Z,G)}(G.mode&j0)!==z0&&0<=W0&&0<=T0&&(I1||0.05<V1)&&c4(G,W0,T0,V1,L1),s5(X),s4(N),L1=B,I1=W}function TM($,Z){if(Z.memoizedState===null&&($=Z.alternate,$!==null&&($=$.memoizedState,$!==null))){$=$.dehydrated;try{G0(Z,QV,$)}catch(G){$1(Z,Z.return,G)}}}function _M($,Z){if(Z.memoizedState===null&&($=Z.alternate,$!==null&&($=$.memoizedState,$!==null&&($=$.dehydrated,$!==null))))try{G0(Z,GV,$)}catch(G){$1(Z,Z.return,G)}}function _L($){switch($.tag){case 31:case 13:case 19:var Z=$.stateNode;return Z===null&&(Z=$.stateNode=new cW),Z;case 22:return $=$.stateNode,Z=$._retryCache,Z===null&&(Z=$._retryCache=new cW),Z;default:throw Error("Unexpected Suspense handler tag ("+$.tag+"). This is a bug in React.")}}function wG($,Z){var G=_L($);Z.forEach(function(X){if(!G.has(X)){if(G.add(X),U8)if(E9!==null&&P9!==null)S7(P9,E9);else throw Error("Expected finished root and lanes to be set. This is a bug in React.");var N=DL.bind(null,$,X);X.then(N,N)}})}function D5($,Z){var G=Z.deletions;if(G!==null)for(var X=0;X<G.length;X++){var N=$,B=Z,W=G[X],R=r5(),z=B;$:for(;z!==null;){switch(z.tag){case 27:if(I6(z.type)){m1=z.stateNode,A5=!1;break $}break;case 5:m1=z.stateNode,A5=!1;break $;case 3:case 4:m1=z.stateNode.containerInfo,A5=!0;break $}z=z.return}if(m1===null)throw Error("Expected to find a host parent. This error is likely caused by a bug in React. Please file an issue.");wM(N,B,W),m1=null,A5=!1,(W.mode&j0)!==z0&&0<=W0&&0<=T0&&0.05<T0-W0&&p4(W,W0,T0,"Unmount"),s5(R),N=W,B=N.alternate,B!==null&&(B.return=null),N.return=null}if(Z.subtreeFlags&13886)for(Z=Z.child;Z!==null;)zM(Z,$),Z=Z.sibling}function zM($,Z){var G=r5(),X=r4(),N=n4(),B=o4(),W=$.alternate,R=$.flags;switch($.tag){case 0:case 11:case 14:case 15:D5(Z,$),j5($),R&4&&(u$(L5|w4,$,$.return),I7(L5|w4,$),EX($,$.return,Q4|w4));break;case 1:if(D5(Z,$),j5($),R&512&&(u1||W===null||e4(W,W.return)),R&64&&r8&&(R=$.updateQueue,R!==null&&(W=R.callbacks,W!==null))){var z=R.shared.hiddenCallbacks;R.shared.hiddenCallbacks=z===null?W:z.concat(W)}break;case 26:if(z=k4,D5(Z,$),j5($),R&512&&(u1||W===null||e4(W,W.return)),R&4){var V=W!==null?W.memoizedState:null;if(R=$.memoizedState,W===null)if(R===null)if($.stateNode===null){$:{R=$.type,W=$.memoizedProps,z=z.ownerDocument||z;Z:switch(R){case"title":if(V=z.getElementsByTagName("title")[0],!V||V[p7]||V[G5]||V.namespaceURI===$9||V.hasAttribute("itemprop"))V=z.createElement(R),z.head.insertBefore(V,z.querySelector("head > title"));Q5(V,R,W),V[G5]=$,F0(V),R=V;break $;case"link":var k=SH("link","href",z).get(R+(W.href||""));if(k){for(var b=0;b<k.length;b++)if(V=k[b],V.getAttribute("href")===(W.href==null||W.href===""?null:W.href)&&V.getAttribute("rel")===(W.rel==null?null:W.rel)&&V.getAttribute("title")===(W.title==null?null:W.title)&&V.getAttribute("crossorigin")===(W.crossOrigin==null?null:W.crossOrigin)){k.splice(b,1);break Z}}V=z.createElement(R),Q5(V,R,W),z.head.appendChild(V);break;case"meta":if(k=SH("meta","content",z).get(R+(W.content||""))){for(b=0;b<k.length;b++)if(V=k[b],Y1(W.content,"content"),V.getAttribute("content")===(W.content==null?null:""+W.content)&&V.getAttribute("name")===(W.name==null?null:W.name)&&V.getAttribute("property")===(W.property==null?null:W.property)&&V.getAttribute("http-equiv")===(W.httpEquiv==null?null:W.httpEquiv)&&V.getAttribute("charset")===(W.charSet==null?null:W.charSet)){k.splice(b,1);break Z}}V=z.createElement(R),Q5(V,R,W),z.head.appendChild(V);break;default:throw Error('getNodesForType encountered a type it did not expect: "'+R+'". This is a bug in React.')}V[G5]=$,F0(V),R=V}$.stateNode=R}else vH(z,$.type,$.stateNode);else $.stateNode=AH(z,R,$.memoizedProps);else V!==R?(V===null?W.stateNode!==null&&(W=W.stateNode,W.parentNode.removeChild(W)):V.count--,R===null?vH(z,$.type,$.stateNode):AH(z,R,$.memoizedProps)):R===null&&$.stateNode!==null&&CX($,$.memoizedProps,W.memoizedProps)}break;case 27:D5(Z,$),j5($),R&512&&(u1||W===null||e4(W,W.return)),W!==null&&R&4&&CX($,$.memoizedProps,W.memoizedProps);break;case 5:if(D5(Z,$),j5($),R&512&&(u1||W===null||e4(W,W.return)),$.flags&32){z=$.stateNode;try{G0($,TH,z)}catch(Z0){$1($,$.return,Z0)}}R&4&&$.stateNode!=null&&(z=$.memoizedProps,CX($,z,W!==null?W.memoizedProps:z)),R&1024&&(YU=!0,$.type!=="form"&&console.error("Unexpected host component type. Expected a form. This is a bug in React."));break;case 6:if(D5(Z,$),j5($),R&4){if($.stateNode===null)throw Error("This should have a text node initialized. This error is likely caused by a bug in React. Please file an issue.");R=$.memoizedProps,W=W!==null?W.memoizedProps:R,z=$.stateNode;try{G0($,pL,z,W,R)}catch(Z0){$1($,$.return,Z0)}}break;case 3:if(z=A8(),kJ=null,V=k4,k4=CG(Z.containerInfo),D5(Z,$),k4=V,j5($),R&4&&W!==null&&W.memoizedState.isDehydrated)try{G0($,ZV,Z.containerInfo)}catch(Z0){$1($,$.return,Z0)}YU&&(YU=!1,LM($)),Z.effectDuration+=pQ(z);break;case 4:R=k4,k4=CG($.stateNode.containerInfo),D5(Z,$),j5($),k4=R;break;case 12:R=A8(),D5(Z,$),j5($),$.stateNode.effectDuration+=W7(R);break;case 31:D5(Z,$),j5($),R&4&&(R=$.updateQueue,R!==null&&($.updateQueue=null,wG($,R)));break;case 13:D5(Z,$),j5($),$.child.flags&8192&&$.memoizedState!==null!==(W!==null&&W.memoizedState!==null)&&(TJ=o1()),R&4&&(R=$.updateQueue,R!==null&&($.updateQueue=null,wG($,R)));break;case 22:z=$.memoizedState!==null;var D=W!==null&&W.memoizedState!==null,y=r8,t=u1;if(r8=y||z,u1=t||D,D5(Z,$),u1=t,r8=y,D&&!z&&!y&&!t&&($.mode&j0)!==z0&&0<=W0&&0<=T0&&0.05<T0-W0&&kQ($,W0,T0),j5($),R&8192)$:for(Z=$.stateNode,Z._visibility=z?Z._visibility&~t7:Z._visibility|t7,!z||W===null||D||r8||u1||(x2($),($.mode&j0)!==z0&&0<=W0&&0<=T0&&0.05<T0-W0&&p4($,W0,T0,"Disconnect")),W=null,Z=$;;){if(Z.tag===5||Z.tag===26){if(W===null){D=W=Z;try{V=D.stateNode,z?G0(D,sL,V):G0(D,aL,D.stateNode,D.memoizedProps)}catch(Z0){$1(D,D.return,Z0)}}}else if(Z.tag===6){if(W===null){D=Z;try{k=D.stateNode,z?G0(D,nL,k):G0(D,iL,k,D.memoizedProps)}catch(Z0){$1(D,D.return,Z0)}}}else if(Z.tag===18){if(W===null){D=Z;try{b=D.stateNode,z?G0(D,rL,b):G0(D,oL,D.stateNode)}catch(Z0){$1(D,D.return,Z0)}}}else if((Z.tag!==22&&Z.tag!==23||Z.memoizedState===null||Z===$)&&Z.child!==null){Z.child.return=Z,Z=Z.child;continue}if(Z===$)break $;for(;Z.sibling===null;){if(Z.return===null||Z.return===$)break $;W===Z&&(W=null),Z=Z.return}W===Z&&(W=null),Z.sibling.return=Z.return,Z=Z.sibling}R&4&&(R=$.updateQueue,R!==null&&(W=R.retryQueue,W!==null&&(R.retryQueue=null,wG($,W))));break;case 19:D5(Z,$),j5($),R&4&&(R=$.updateQueue,R!==null&&($.updateQueue=null,wG($,R)));break;case 30:break;case 21:break;default:D5(Z,$),j5($)}($.mode&j0)!==z0&&0<=W0&&0<=T0&&((I1||0.05<V1)&&c4($,W0,T0,V1,L1),$.alternate===null&&$.return!==null&&$.return.alternate!==null&&0.05<T0-W0&&(FM($.return.alternate,$.return)||p4($,W0,T0,"Mount"))),s5(G),s4(X),L1=N,I1=B}function j5($){var Z=$.flags;if(Z&2){try{G0($,wL,$)}catch(G){$1($,$.return,G)}$.flags&=-3}Z&4096&&($.flags&=-4097)}function LM($){if($.subtreeFlags&1024)for($=$.child;$!==null;){var Z=$;LM(Z),Z.tag===5&&Z.flags&1024&&Z.stateNode.reset(),$=$.sibling}}function $8($,Z){if(Z.subtreeFlags&8772)for(Z=Z.child;Z!==null;)WM($,Z.alternate,Z),Z=Z.sibling}function VM($){var Z=r5(),G=r4(),X=n4(),N=o4();switch($.tag){case 0:case 11:case 14:case 15:EX($,$.return,Q4),x2($);break;case 1:e4($,$.return);var B=$.stateNode;typeof B.componentWillUnmount==="function"&&NM($,$.return,B),x2($);break;case 27:G0($,y7,$.stateNode);case 26:case 5:e4($,$.return),x2($);break;case 22:$.memoizedState===null&&x2($);break;case 30:x2($);break;default:x2($)}($.mode&j0)!==z0&&0<=W0&&0<=T0&&(I1||0.05<V1)&&c4($,W0,T0,V1,L1),s5(Z),s4(G),L1=X,I1=N}function x2($){for($=$.child;$!==null;)VM($),$=$.sibling}function EM($,Z,G,X){var N=r5(),B=r4(),W=n4(),R=o4(),z=G.flags;switch(G.tag){case 0:case 11:case 15:Z8($,G,X),XM(G,Q4);break;case 1:if(Z8($,G,X),Z=G.stateNode,typeof Z.componentDidMount==="function"&&G0(G,nY,G,Z),Z=G.updateQueue,Z!==null){$=G.stateNode;try{G0(G,ZL,Z,$)}catch(V){$1(G,G.return,V)}}X&&z&64&&UM(G),O7(G,G.return);break;case 27:HM(G);case 26:case 5:Z8($,G,X),X&&Z===null&&z&4&&BM(G),O7(G,G.return);break;case 12:if(X&&z&4){z=A8(),Z8($,G,X),X=G.stateNode,X.effectDuration+=W7(z);try{G0(G,KM,G,Z,y6,X.effectDuration)}catch(V){$1(G,G.return,V)}}else Z8($,G,X);break;case 31:Z8($,G,X),X&&z&4&&TM($,G);break;case 13:Z8($,G,X),X&&z&4&&_M($,G);break;case 22:G.memoizedState===null&&Z8($,G,X),O7(G,G.return);break;case 30:break;default:Z8($,G,X)}(G.mode&j0)!==z0&&0<=W0&&0<=T0&&(I1||0.05<V1)&&c4(G,W0,T0,V1,L1),s5(N),s4(B),L1=W,I1=R}function Z8($,Z,G){G=G&&(Z.subtreeFlags&8772)!==0;for(Z=Z.child;Z!==null;)EM($,Z.alternate,Z,G),Z=Z.sibling}function DX($,Z){var G=null;$!==null&&$.memoizedState!==null&&$.memoizedState.cachePool!==null&&(G=$.memoizedState.cachePool.pool),$=null,Z.memoizedState!==null&&Z.memoizedState.cachePool!==null&&($=Z.memoizedState.cachePool.pool),$!==G&&($!=null&&b2($),G!=null&&F7(G))}function jX($,Z){$=null,Z.alternate!==null&&($=Z.alternate.memoizedState.cache),Z=Z.memoizedState.cache,Z!==$&&(b2(Z),$!=null&&F7($))}function O4($,Z,G,X,N){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;PM($,Z,G,X,B!==null?B.actualStartTime:N),Z=B}}function PM($,Z,G,X,N){var B=r5(),W=r4(),R=n4(),z=o4(),V=v6,k=Z.flags;switch(Z.tag){case 0:case 11:case 15:(Z.mode&j0)!==z0&&0<Z.actualStartTime&&(Z.flags&1)!==0&&bQ(Z,Z.actualStartTime,N,l1,G),O4($,Z,G,X,N),k&2048&&YM(Z,V5|w4);break;case 1:(Z.mode&j0)!==z0&&0<Z.actualStartTime&&((Z.flags&128)!==0?M3(Z,Z.actualStartTime,N,[]):(Z.flags&1)!==0&&bQ(Z,Z.actualStartTime,N,l1,G)),O4($,Z,G,X,N);break;case 3:var b=A8(),D=l1;l1=Z.alternate!==null&&Z.alternate.memoizedState.isDehydrated&&(Z.flags&256)===0,O4($,Z,G,X,N),l1=D,k&2048&&(G=null,Z.alternate!==null&&(G=Z.alternate.memoizedState.cache),X=Z.memoizedState.cache,X!==G&&(b2(X),G!=null&&F7(G))),$.passiveEffectDuration+=pQ(b);break;case 12:if(k&2048){k=A8(),O4($,Z,G,X,N),$=Z.stateNode,$.passiveEffectDuration+=W7(k);try{G0(Z,RL,Z,Z.alternate,y6,$.passiveEffectDuration)}catch(y){$1(Z,Z.return,y)}}else O4($,Z,G,X,N);break;case 31:k=l1,b=Z.alternate!==null?Z.alternate.memoizedState:null,D=Z.memoizedState,b!==null&&D===null?(D=Z.deletions,D!==null&&0<D.length&&D[0].tag===18?(l1=!1,b=b.hydrationErrors,b!==null&&M3(Z,Z.actualStartTime,N,b)):l1=!0):l1=!1,O4($,Z,G,X,N),l1=k;break;case 13:k=l1,b=Z.alternate!==null?Z.alternate.memoizedState:null,D=Z.memoizedState,b===null||b.dehydrated===null||D!==null&&D.dehydrated!==null?l1=!1:(D=Z.deletions,D!==null&&0<D.length&&D[0].tag===18?(l1=!1,b=b.hydrationErrors,b!==null&&M3(Z,Z.actualStartTime,N,b)):l1=!0),O4($,Z,G,X,N),l1=k;break;case 23:break;case 22:D=Z.stateNode,b=Z.alternate,Z.memoizedState!==null?D._visibility&y8?O4($,Z,G,X,N):D7($,Z,G,X,N):D._visibility&y8?O4($,Z,G,X,N):(D._visibility|=y8,m$($,Z,G,X,(Z.subtreeFlags&10256)!==0||Z.actualDuration!==0&&(Z.alternate===null||Z.alternate.child!==Z.child),N),(Z.mode&j0)===z0||l1||($=Z.actualStartTime,0<=$&&0.05<N-$&&kQ(Z,$,N),0<=W0&&0<=T0&&0.05<T0-W0&&kQ(Z,W0,T0))),k&2048&&DX(b,Z);break;case 24:O4($,Z,G,X,N),k&2048&&jX(Z.alternate,Z);break;default:O4($,Z,G,X,N)}if((Z.mode&j0)!==z0){if($=!l1&&Z.alternate===null&&Z.return!==null&&Z.return.alternate!==null)G=Z.actualStartTime,0<=G&&0.05<N-G&&p4(Z,G,N,"Mount");0<=W0&&0<=T0&&((I1||0.05<V1)&&c4(Z,W0,T0,V1,L1),$&&0.05<T0-W0&&p4(Z,W0,T0,"Mount"))}s5(B),s4(W),L1=R,I1=z,v6=V}function m$($,Z,G,X,N,B){N=N&&((Z.subtreeFlags&10256)!==0||Z.actualDuration!==0&&(Z.alternate===null||Z.alternate.child!==Z.child));for(Z=Z.child;Z!==null;){var W=Z.sibling;CM($,Z,G,X,N,W!==null?W.actualStartTime:B),Z=W}}function CM($,Z,G,X,N,B){var W=r5(),R=r4(),z=n4(),V=o4(),k=v6;N&&(Z.mode&j0)!==z0&&0<Z.actualStartTime&&(Z.flags&1)!==0&&bQ(Z,Z.actualStartTime,B,l1,G);var b=Z.flags;switch(Z.tag){case 0:case 11:case 15:m$($,Z,G,X,N,B),YM(Z,V5);break;case 23:break;case 22:var D=Z.stateNode;Z.memoizedState!==null?D._visibility&y8?m$($,Z,G,X,N,B):D7($,Z,G,X,B):(D._visibility|=y8,m$($,Z,G,X,N,B)),N&&b&2048&&DX(Z.alternate,Z);break;case 24:m$($,Z,G,X,N,B),N&&b&2048&&jX(Z.alternate,Z);break;default:m$($,Z,G,X,N,B)}(Z.mode&j0)!==z0&&0<=W0&&0<=T0&&(I1||0.05<V1)&&c4(Z,W0,T0,V1,L1),s5(W),s4(R),L1=z,I1=V,v6=k}function D7($,Z,G,X,N){if(Z.subtreeFlags&10256||Z.actualDuration!==0&&(Z.alternate===null||Z.alternate.child!==Z.child))for(var B=Z.child;B!==null;){Z=B.sibling;var W=$,R=G,z=X,V=Z!==null?Z.actualStartTime:N,k=v6;(B.mode&j0)!==z0&&0<B.actualStartTime&&(B.flags&1)!==0&&bQ(B,B.actualStartTime,V,l1,R);var b=B.flags;switch(B.tag){case 22:D7(W,B,R,z,V),b&2048&&DX(B.alternate,B);break;case 24:D7(W,B,R,z,V),b&2048&&jX(B.alternate,B);break;default:D7(W,B,R,z,V)}v6=k,B=Z}}function d$($,Z,G){if($.subtreeFlags&TZ)for($=$.child;$!==null;)IM($,Z,G),$=$.sibling}function IM($,Z,G){switch($.tag){case 26:d$($,Z,G),$.flags&TZ&&$.memoizedState!==null&&YV(G,k4,$.memoizedState,$.memoizedProps);break;case 5:d$($,Z,G);break;case 3:case 4:var X=k4;k4=CG($.stateNode.containerInfo),d$($,Z,G),k4=X;break;case 22:$.memoizedState===null&&(X=$.alternate,X!==null&&X.memoizedState!==null?(X=TZ,TZ=16777216,d$($,Z,G),TZ=X):d$($,Z,G));break;default:d$($,Z,G)}}function OM($){var Z=$.alternate;if(Z!==null&&($=Z.child,$!==null)){Z.child=null;do Z=$.sibling,$.sibling=null,$=Z;while($!==null)}}function j7($){var Z=$.deletions;if(($.flags&16)!==0){if(Z!==null)for(var G=0;G<Z.length;G++){var X=Z[G],N=r5();i1=X,AM(X,$),(X.mode&j0)!==z0&&0<=W0&&0<=T0&&0.05<T0-W0&&p4(X,W0,T0,"Unmount"),s5(N)}OM($)}if($.subtreeFlags&10256)for($=$.child;$!==null;)DM($),$=$.sibling}function DM($){var Z=r5(),G=r4(),X=n4(),N=o4();switch($.tag){case 0:case 11:case 15:j7($),$.flags&2048&&PX($,$.return,V5|w4);break;case 3:var B=A8();j7($),$.stateNode.passiveEffectDuration+=pQ(B);break;case 12:B=A8(),j7($),$.stateNode.passiveEffectDuration+=W7(B);break;case 22:B=$.stateNode,$.memoizedState!==null&&B._visibility&y8&&($.return===null||$.return.tag!==13)?(B._visibility&=~y8,TG($),($.mode&j0)!==z0&&0<=W0&&0<=T0&&0.05<T0-W0&&p4($,W0,T0,"Disconnect")):j7($);break;default:j7($)}($.mode&j0)!==z0&&0<=W0&&0<=T0&&(I1||0.05<V1)&&c4($,W0,T0,V1,L1),s5(Z),s4(G),I1=N,L1=X}function TG($){var Z=$.deletions;if(($.flags&16)!==0){if(Z!==null)for(var G=0;G<Z.length;G++){var X=Z[G],N=r5();i1=X,AM(X,$),(X.mode&j0)!==z0&&0<=W0&&0<=T0&&0.05<T0-W0&&p4(X,W0,T0,"Unmount"),s5(N)}OM($)}for($=$.child;$!==null;)jM($),$=$.sibling}function jM($){var Z=r5(),G=r4(),X=n4(),N=o4();switch($.tag){case 0:case 11:case 15:PX($,$.return,V5),TG($);break;case 22:var B=$.stateNode;B._visibility&y8&&(B._visibility&=~y8,TG($));break;default:TG($)}($.mode&j0)!==z0&&0<=W0&&0<=T0&&(I1||0.05<V1)&&c4($,W0,T0,V1,L1),s5(Z),s4(G),I1=N,L1=X}function AM($,Z){for(;i1!==null;){var G=i1,X=G,N=Z,B=r5(),W=r4(),R=n4(),z=o4();switch(X.tag){case 0:case 11:case 15:PX(X,N,V5);break;case 23:case 22:X.memoizedState!==null&&X.memoizedState.cachePool!==null&&(N=X.memoizedState.cachePool.pool,N!=null&&b2(N));break;case 24:F7(X.memoizedState.cache)}if((X.mode&j0)!==z0&&0<=W0&&0<=T0&&(I1||0.05<V1)&&c4(X,W0,T0,V1,L1),s5(B),s4(W),I1=z,L1=R,X=G.child,X!==null)X.return=G,i1=X;else $:for(G=$;i1!==null;){if(X=i1,B=X.sibling,W=X.return,RM(X),X===G){i1=null;break $}if(B!==null){B.return=W,i1=B;break $}i1=W}}}function zL(){mE.forEach(function($){return $()})}function SM(){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 o5($){if((o0&r1)!==t1&&S0!==0)return S0&-S0;var Z=x.T;return Z!==null?(Z._updatedFibers||(Z._updatedFibers=new Set),Z._updatedFibers.add($),gX()):f()}function vM(){if(v5===0)if((S0&536870912)===0||p0){var $=gG;gG<<=1,(gG&3932160)===0&&(gG=262144),v5=$}else v5=536870912;return $=Z4.current,$!==null&&($.flags|=32),v5}function C1($,Z,G){if(O9&&console.error("useInsertionEffect must not schedule updates."),TU&&(VJ=!0),$===K1&&(q1===$$||q1===Z$)||$.cancelPendingCommit!==null)c$($,0),P6($,S0,v5,!1);if(M6($,G),(o0&r1)!==t1&&$===K1){if(X8)switch(Z.tag){case 0:case 11:case 15:$=v0&&d(v0)||"Unknown",qR.has($)||(qR.add($),Z=d(Z)||"Unknown",console.error("Cannot update a component (`%s`) while rendering a different component (`%s`). To locate the bad setState() call inside `%s`, follow the stack trace as described in https://react.dev/link/setstate-in-render",Z,$,$));break;case 1:JR||(console.error("Cannot update during an existing state transition (such as within `render`). Render methods should be a pure function of props and state."),JR=!0)}}else U8&&G7($,Z,G),AL(Z),$===K1&&((o0&r1)===t1&&(l6|=G),E1===d6&&P6($,S0,v5,!1)),Q8($)}function kM($,Z,G){if((o0&(r1|G4))!==t1)throw Error("Should not already be working.");if(S0!==0&&v0!==null){var X=v0,N=o1();switch(iF){case LZ:case $$:var B=JZ;R1&&((X=X._debugTask)?X.run(console.timeStamp.bind(console,"Suspended",B,N,N4,void 0,"primary-light")):console.timeStamp("Suspended",B,N,N4,void 0,"primary-light"));break;case Z$:B=JZ,R1&&((X=X._debugTask)?X.run(console.timeStamp.bind(console,"Action",B,N,N4,void 0,"primary-light")):console.timeStamp("Action",B,N,N4,void 0,"primary-light"));break;default:R1&&(X=N-JZ,3>X||console.timeStamp("Blocked",JZ,N,N4,void 0,5>X?"primary-light":10>X?"primary":100>X?"primary-dark":"error"))}}B=(G=!G&&(Z&127)===0&&(Z&$.expiredLanes)===0||L2($,Z))?VL($,Z):SX($,Z,!0);var W=G;do{if(B===s8){C9&&!G&&P6($,Z,0,!1),Z=q1,JZ=g1(),iF=Z;break}else{if(X=o1(),N=$.current.alternate,W&&!LL(N)){c5(Z),N=a1,B=X,!R1||B<=N||(S1?S1.run(console.timeStamp.bind(console,"Teared Render",N,B,u0,g0,"error")):console.timeStamp("Teared Render",N,B,u0,g0,"error")),u2(Z,X),B=SX($,Z,!1),W=!1;continue}if(B===e2){if(W=Z,$.errorRecoveryDisabledLanes&W)var R=0;else R=$.pendingLanes&-536870913,R=R!==0?R:R&536870912?536870912:0;if(R!==0){c5(Z),H3(a1,X,Z,S1),u2(Z,X),Z=R;$:{X=$,B=W,W=EZ;var z=X.current.memoizedState.isDehydrated;if(z&&(c$(X,R).flags|=256),R=SX(X,R,!1),R!==e2){if(KU&&!z){X.errorRecoveryDisabledLanes|=B,l6|=B,B=d6;break $}X=E5,E5=W,X!==null&&(E5===null?E5=X:E5.push.apply(E5,X))}B=R}if(W=!1,B!==e2)continue;else X=o1()}}if(B===zZ){c5(Z),H3(a1,X,Z,S1),u2(Z,X),c$($,0),P6($,Z,0,!0);break}$:{switch(G=$,B){case s8:case zZ:throw Error("Root did not complete. This is a bug in React.");case d6:if((Z&4194048)!==Z)break;case FJ:c5(Z),kK(a1,X,Z,S1),u2(Z,X),N=Z,(N&127)!==0?eG=X:(N&4194048)!==0&&($J=X),P6(G,Z,v5,!p6);break $;case e2:E5=null;break;case HJ:case lW:break;default:throw Error("Unknown root exit status.")}if(x.actQueue!==null)vX(G,N,Z,E5,PZ,wJ,v5,l6,Q$,B,null,null,a1,X);else{if((Z&62914560)===Z&&(W=TJ+nW-o1(),10<W)){if(P6(G,Z,v5,!p6),z2(G,0,!0)!==0)break $;b4=Z,G.timeoutHandle=HR(bM.bind(null,G,N,E5,PZ,wJ,Z,v5,l6,Q$,p6,B,"Throttled",a1,X),W);break $}bM(G,N,E5,PZ,wJ,Z,v5,l6,Q$,p6,B,null,a1,X)}}}break}while(1);Q8($)}function bM($,Z,G,X,N,B,W,R,z,V,k,b,D,y){$.timeoutHandle=Y$;var t=Z.subtreeFlags,Z0=null;if(t&8192||(t&16785408)===16785408){if(Z0={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:I8},IM(Z,B,Z0),t=(B&62914560)===B?TJ-o1():(B&4194048)===B?sW-o1():0,t=UV(Z0,t),t!==null){b4=B,$.cancelPendingCommit=t(vX.bind(null,$,Z,B,G,X,N,W,R,z,k,Z0,Z0.waitingForViewTransition?"Waiting for the previous Animation":0<Z0.count?0<Z0.imgCount?"Suspended on CSS and Images":"Suspended on CSS":Z0.imgCount===1?"Suspended on an Image":0<Z0.imgCount?"Suspended on Images":null,D,y)),P6($,B,W,!V);return}}vX($,Z,B,G,X,N,W,R,z,k,Z0,b,D,y)}function LL($){for(var Z=$;;){var G=Z.tag;if((G===0||G===11||G===15)&&Z.flags&16384&&(G=Z.updateQueue,G!==null&&(G=G.stores,G!==null)))for(var X=0;X<G.length;X++){var N=G[X],B=N.getSnapshot;N=N.value;try{if(!_5(B(),N))return!1}catch(W){return!1}}if(G=Z.child,Z.subtreeFlags&16384&&G!==null)G.return=Z,Z=G;else{if(Z===$)break;for(;Z.sibling===null;){if(Z.return===null||Z.return===$)return!0;Z=Z.return}Z.sibling.return=Z.return,Z=Z.sibling}}return!0}function P6($,Z,G,X){Z&=~BU,Z&=~l6,$.suspendedLanes|=Z,$.pingedLanes&=~Z,X&&($.warmLanes|=Z),X=$.expirationTimes;for(var N=Z;0<N;){var B=31-R5(N),W=1<<B;X[B]=-1,N&=~W}G!==0&&V2($,G,Z)}function p$(){return(o0&(r1|G4))===t1?(v7(0,!1),!1):!0}function AX(){if(v0!==null){if(q1===S5)var $=v0.return;else $=v0,uQ(),m3($),R9=null,HZ=0,$=v0;for(;$!==null;)qM($.alternate,$),$=$.return;v0=null}}function u2($,Z){($&127)!==0&&(g6=Z),($&4194048)!==0&&(H8=Z),($&62914560)!==0&&(oF=Z),($&2080374784)!==0&&(aF=Z)}function c$($,Z){R1&&(console.timeStamp("Blocking Track",0.003,0.003,"Blocking",g0,"primary-light"),console.timeStamp("Transition Track",0.003,0.003,"Transition",g0,"primary-light"),console.timeStamp("Suspense Track",0.003,0.003,"Suspense",g0,"primary-light"),console.timeStamp("Idle Track",0.003,0.003,"Idle",g0,"primary-light"));var G=a1;if(a1=g1(),S0!==0&&0<G){if(c5(S0),E1===HJ||E1===d6)kK(G,a1,Z,S1);else{var X=a1,N=S1;if(R1&&!(X<=G)){var B=(Z&738197653)===Z?"tertiary-dark":"primary-dark",W=(Z&536870912)===Z?"Prewarm":(Z&201326741)===Z?"Interrupted Hydration":"Interrupted Render";N?N.run(console.timeStamp.bind(console,W,G,X,u0,g0,B)):console.timeStamp(W,G,X,u0,g0,B)}}u2(S0,a1)}if(G=S1,S1=null,(Z&127)!==0){S1=ZZ,N=0<=M8&&M8<g6?g6:M8,X=0<=l2&&l2<g6?g6:l2,B=0<=X?X:0<=N?N:a1,0<=eG?(c5(2),bK(eG,B,Z,G)):(ZJ&127)!==0&&(c5(2),M7(g6,B,d8)),G=N;var R=X,z=QZ,V=0<H9,k=h6===$Z,b=h6===tG;if(N=a1,X=ZZ,B=pY,W=cY,R1){if(u0="Blocking",0<G?G>N&&(G=N):G=N,0<R?R>G&&(R=G):R=G,z!==null&&G>R){var D=V?"secondary-light":"warning";X?X.run(console.timeStamp.bind(console,V?"Consecutive":"Event: "+z,R,G,u0,g0,D)):console.timeStamp(V?"Consecutive":"Event: "+z,R,G,u0,g0,D)}N>G&&(R=k?"error":(Z&738197653)===Z?"tertiary-light":"primary-light",k=b?"Promise Resolved":k?"Cascading Update":5<N-G?"Update Blocked":"Update",b=[],W!=null&&b.push(["Component name",W]),B!=null&&b.push(["Method name",B]),G={start:G,end:N,detail:{devtools:{properties:b,track:u0,trackGroup:g0,color:R}}},X?X.run(performance.measure.bind(performance,k,G)):performance.measure(k,G))}M8=-1.1,h6=0,cY=pY=null,eG=-1.1,H9=l2,l2=-1.1,g6=g1()}if((Z&4194048)!==0&&(S1=GZ,N=0<=m8&&m8<H8?H8:m8,G=0<=W4&&W4<H8?H8:W4,X=0<=x6&&x6<H8?H8:x6,B=0<=X?X:0<=G?G:a1,0<=$J?(c5(256),bK($J,B,Z,S1)):(ZJ&4194048)!==0&&(c5(256),M7(H8,B,d8)),b=X,R=r2,z=0<u6,V=lY===tG,B=a1,X=GZ,W=sF,k=nF,R1&&(u0="Transition",0<G?G>B&&(G=B):G=B,0<N?N>G&&(N=G):N=G,0<b?b>N&&(b=N):b=N,N>b&&R!==null&&(D=z?"secondary-light":"warning",X?X.run(console.timeStamp.bind(console,z?"Consecutive":"Event: "+R,b,N,u0,g0,D)):console.timeStamp(z?"Consecutive":"Event: "+R,b,N,u0,g0,D)),G>N&&(X?X.run(console.timeStamp.bind(console,"Action",N,G,u0,g0,"primary-dark")):console.timeStamp("Action",N,G,u0,g0,"primary-dark")),B>G&&(N=V?"Promise Resolved":5<B-G?"Update Blocked":"Update",b=[],k!=null&&b.push(["Component name",k]),W!=null&&b.push(["Method name",W]),G={start:G,end:B,detail:{devtools:{properties:b,track:u0,trackGroup:g0,color:"primary-light"}}},X?X.run(performance.measure.bind(performance,N,G)):performance.measure(N,G))),W4=m8=-1.1,lY=0,$J=-1.1,u6=x6,x6=-1.1,H8=g1()),(Z&62914560)!==0&&(ZJ&62914560)!==0&&(c5(4194304),M7(oF,a1,d8)),(Z&2080374784)!==0&&(ZJ&2080374784)!==0&&(c5(268435456),M7(aF,a1,d8)),G=$.timeoutHandle,G!==Y$&&($.timeoutHandle=Y$,$P(G)),G=$.cancelPendingCommit,G!==null&&($.cancelPendingCommit=null,G()),b4=0,AX(),K1=$,v0=G=O8($.current,null),S0=Z,q1=S5,J4=null,p6=!1,C9=L2($,Z),KU=!1,E1=s8,Q$=v5=BU=l6=c6=0,E5=EZ=null,wJ=!1,(Z&8)!==0&&(Z|=Z&32),X=$.entangledLanes,X!==0)for($=$.entanglements,X&=Z;0<X;)N=31-R5(X),B=1<<N,Z|=$[N],X&=~B;return W8=Z,fQ(),$=mF(),1000<$-uF&&(x.recentlyCreatedOwnerStacks=0,uF=$),S4.discardPendingWarnings(),G}function fM($,Z){L0=null,x.H=wZ,x.getCurrentStack=null,X8=!1,t5=null,Z===W9||Z===qJ?(Z=QB(),q1=LZ):Z===oY?(Z=QB(),q1=rW):q1=Z===qU?NU:Z!==null&&typeof Z==="object"&&typeof Z.then==="function"?VZ:WJ,J4=Z;var G=v0;G===null?(E1=zZ,BG($,l5(Z,$.current))):G.mode&j0&&D3(G)}function yM(){var $=Z4.current;return $===null?!0:(S0&4194048)===S0?R4===null?!0:!1:(S0&62914560)===S0||(S0&536870912)!==0?$===R4:!1}function gM(){var $=x.H;return x.H=wZ,$===null?wZ:$}function hM(){var $=x.A;return x.A=uE,$}function _G($){S1===null&&(S1=$._debugTask==null?null:$._debugTask)}function zG(){E1=d6,p6||(S0&4194048)!==S0&&Z4.current!==null||(C9=!0),(c6&134217727)===0&&(l6&134217727)===0||K1===null||P6(K1,S0,v5,!1)}function SX($,Z,G){var X=o0;o0|=r1;var N=gM(),B=hM();if(K1!==$||S0!==Z){if(U8){var W=$.memoizedUpdaters;0<W.size&&(S7($,S0),W.clear()),H6($,Z)}PZ=null,c$($,Z)}Z=!1,W=E1;$:do try{if(q1!==S5&&v0!==null){var R=v0,z=J4;switch(q1){case NU:AX(),W=FJ;break $;case LZ:case $$:case Z$:case VZ:Z4.current===null&&(Z=!0);var V=q1;if(q1=S5,J4=null,l$($,R,z,V),G&&C9){W=s8;break $}break;default:V=q1,q1=S5,J4=null,l$($,R,z,V)}}xM(),W=E1;break}catch(k){fM($,k)}while(1);return Z&&$.shellSuspendCounter++,uQ(),o0=X,x.H=N,x.A=B,v0===null&&(K1=null,S0=0,fQ()),W}function xM(){for(;v0!==null;)uM(v0)}function VL($,Z){var G=o0;o0|=r1;var X=gM(),N=hM();if(K1!==$||S0!==Z){if(U8){var B=$.memoizedUpdaters;0<B.size&&(S7($,S0),B.clear()),H6($,Z)}PZ=null,_J=o1()+oW,c$($,Z)}else C9=L2($,Z);$:do try{if(q1!==S5&&v0!==null)Z:switch(Z=v0,B=J4,q1){case WJ:q1=S5,J4=null,l$($,Z,B,WJ);break;case $$:case Z$:if($B(B)){q1=S5,J4=null,mM(Z);break}Z=function(){q1!==$$&&q1!==Z$||K1!==$||(q1=RJ),Q8($)},B.then(Z,Z);break $;case LZ:q1=RJ;break $;case rW:q1=UU;break $;case RJ:$B(B)?(q1=S5,J4=null,mM(Z)):(q1=S5,J4=null,l$($,Z,B,RJ));break;case UU:var W=null;switch(v0.tag){case 26:W=v0.memoizedState;case 5:case 27:var R=v0;if(W?kH(W):R.stateNode.complete){q1=S5,J4=null;var z=R.sibling;if(z!==null)v0=z;else{var V=R.return;V!==null?(v0=V,LG(V)):v0=null}break Z}break;default:console.error("Unexpected type of fiber triggered a suspensey commit. This is a bug in React.")}q1=S5,J4=null,l$($,Z,B,UU);break;case VZ:q1=S5,J4=null,l$($,Z,B,VZ);break;case NU:AX(),E1=FJ;break $;default:throw Error("Unexpected SuspendedReason. This is a bug in React.")}x.actQueue!==null?xM():EL();break}catch(k){fM($,k)}while(1);if(uQ(),x.H=X,x.A=N,o0=G,v0!==null)return s8;return K1=null,S0=0,fQ(),E1}function EL(){for(;v0!==null&&!LV();)uM(v0)}function uM($){var Z=$.alternate;($.mode&j0)!==z0?(O3($),Z=G0($,LX,Z,$,W8),D3($)):Z=G0($,LX,Z,$,W8),$.memoizedProps=$.pendingProps,Z===null?LG($):v0=Z}function mM($){var Z=G0($,PL,$);$.memoizedProps=$.pendingProps,Z===null?LG($):v0=Z}function PL($){var Z=$.alternate,G=($.mode&j0)!==z0;switch(G&&O3($),$.tag){case 15:case 0:Z=tB(Z,$,$.pendingProps,$.type,void 0,S0);break;case 11:Z=tB(Z,$,$.pendingProps,$.type.render,$.ref,S0);break;case 5:m3($);default:qM(Z,$),$=v0=uK($,W8),Z=LX(Z,$,W8)}return G&&D3($),Z}function l$($,Z,G,X){uQ(),m3(Z),R9=null,HZ=0;var N=Z.return;try{if(UL($,N,Z,G,S0)){E1=zZ,BG($,l5(G,$.current)),v0=null;return}}catch(B){if(N!==null)throw v0=N,B;E1=zZ,BG($,l5(G,$.current)),v0=null;return}if(Z.flags&32768){if(p0||X===WJ)$=!0;else if(C9||(S0&536870912)!==0)$=!1;else if(p6=$=!0,X===$$||X===Z$||X===LZ||X===VZ)X=Z4.current,X!==null&&X.tag===13&&(X.flags|=16384);dM(Z,$)}else LG(Z)}function LG($){var Z=$;do{if((Z.flags&32768)!==0){dM(Z,p6);return}var G=Z.alternate;if($=Z.return,O3(Z),G=G0(Z,BL,G,Z,W8),(Z.mode&j0)!==z0&&oK(Z),G!==null){v0=G;return}if(Z=Z.sibling,Z!==null){v0=Z;return}v0=Z=$}while(Z!==null);E1===s8&&(E1=lW)}function dM($,Z){do{var G=ML($.alternate,$);if(G!==null){G.flags&=32767,v0=G;return}if(($.mode&j0)!==z0){oK($),G=$.actualDuration;for(var X=$.child;X!==null;)G+=X.actualDuration,X=X.sibling;$.actualDuration=G}if(G=$.return,G!==null&&(G.flags|=32768,G.subtreeFlags=0,G.deletions=null),!Z&&($=$.sibling,$!==null)){v0=$;return}v0=$=G}while($!==null);E1=FJ,v0=null}function vX($,Z,G,X,N,B,W,R,z,V,k,b,D,y){$.cancelPendingCommit=null;do A7();while(d1!==s6);if(S4.flushLegacyContextWarning(),S4.flushPendingUnsafeLifecycleWarnings(),(o0&(r1|G4))!==t1)throw Error("Should not already be working.");if(c5(G),V===e2?H3(D,y,G,S1):X!==null?oz(D,y,G,X,Z!==null&&Z.alternate!==null&&Z.alternate.memoizedState.isDehydrated&&(Z.flags&256)!==0,S1):nz(D,y,G,S1),Z!==null){if(G===0&&console.error("finishedLanes should not be empty during a commit. This is a bug in React."),Z===$.current)throw Error("Cannot commit the same tree as before. This error is likely caused by a bug in React. Please file an issue.");if(B=Z.lanes|Z.childLanes,B|=hY,PQ($,G,B,W,R,z),$===K1&&(v0=K1=null,S0=0),I9=Z,n6=$,b4=G,FU=B,RU=N,ZR=X,WU=y,QR=b,f4=zJ,GR=null,Z.actualDuration!==0||(Z.subtreeFlags&10256)!==0||(Z.flags&10256)!==0?($.callbackNode=null,$.callbackPriority=0,jL(i$,function(){return AZ=window.event,f4===zJ&&(f4=HU),sM(),null})):($.callbackNode=null,$.callbackPriority=0),u8=null,y6=g1(),b!==null&&az(y,y6,b,S1),X=(Z.flags&13878)!==0,(Z.subtreeFlags&13878)!==0||X){X=x.T,x.T=null,N=Z1.p,Z1.p=e5,W=o0,o0|=G4;try{TL($,Z,G)}finally{o0=W,Z1.p=N,x.T=X}}d1=iW,pM(),cM(),lM()}}function pM(){if(d1===iW){d1=s6;var $=n6,Z=I9,G=b4,X=(Z.flags&13878)!==0;if((Z.subtreeFlags&13878)!==0||X){X=x.T,x.T=null;var N=Z1.p;Z1.p=e5;var B=o0;o0|=G4;try{E9=G,P9=$,cQ(),zM(Z,$),P9=E9=null,G=OU;var W=AK($.containerInfo),R=G.focusedElem,z=G.selectionRange;if(W!==R&&R&&R.ownerDocument&&jK(R.ownerDocument.documentElement,R)){if(z!==null&&K3(R)){var{start:V,end:k}=z;if(k===void 0&&(k=V),"selectionStart"in R)R.selectionStart=V,R.selectionEnd=Math.min(k,R.value.length);else{var b=R.ownerDocument||document,D=b&&b.defaultView||window;if(D.getSelection){var y=D.getSelection(),t=R.textContent.length,Z0=Math.min(z.start,t),F1=z.end===void 0?Z0:Math.min(z.end,t);!y.extend&&Z0>F1&&(W=F1,F1=Z0,Z0=W);var l0=DK(R,Z0),I=DK(R,F1);if(l0&&I&&(y.rangeCount!==1||y.anchorNode!==l0.node||y.anchorOffset!==l0.offset||y.focusNode!==I.node||y.focusOffset!==I.offset)){var j=b.createRange();j.setStart(l0.node,l0.offset),y.removeAllRanges(),Z0>F1?(y.addRange(j),y.extend(I.node,I.offset)):(j.setEnd(I.node,I.offset),y.addRange(j))}}}}b=[];for(y=R;y=y.parentNode;)y.nodeType===1&&b.push({element:y,left:y.scrollLeft,top:y.scrollTop});typeof R.focus==="function"&&R.focus();for(R=0;R<b.length;R++){var v=b[R];v.element.scrollLeft=v.left,v.element.scrollTop=v.top}}yJ=!!IU,OU=IU=null}finally{o0=B,Z1.p=N,x.T=X}}$.current=Z,d1=tW}}function cM(){if(d1===tW){d1=s6;var $=GR;if($!==null){y6=g1();var Z=x8,G=y6;!R1||G<=Z||(d8?d8.run(console.timeStamp.bind(console,$,Z,G,u0,g0,"secondary-light")):console.timeStamp($,Z,G,u0,g0,"secondary-light"))}$=n6,Z=I9,G=b4;var X=(Z.flags&8772)!==0;if((Z.subtreeFlags&8772)!==0||X){X=x.T,x.T=null;var N=Z1.p;Z1.p=e5;var B=o0;o0|=G4;try{E9=G,P9=$,cQ(),WM($,Z.alternate,Z),P9=E9=null}finally{o0=B,Z1.p=N,x.T=X}}$=WU,Z=QR,x8=g1(),$=Z===null?$:y6,Z=x8,G=f4===MU,X=S1,u8!==null?fK($,Z,u8,!1,X):!R1||Z<=$||(X?X.run(console.timeStamp.bind(console,G?"Commit Interrupted View Transition":"Commit",$,Z,u0,g0,G?"error":"secondary-dark")):console.timeStamp(G?"Commit Interrupted View Transition":"Commit",$,Z,u0,g0,G?"error":"secondary-dark")),d1=eW}}function lM(){if(d1===$R||d1===eW){if(d1===$R){var $=x8;x8=g1();var Z=x8,G=f4===MU;!R1||Z<=$||(d8?d8.run(console.timeStamp.bind(console,G?"Interrupted View Transition":"Starting Animation",$,Z,u0,g0,G?"error":"secondary-light")):console.timeStamp(G?"Interrupted View Transition":"Starting Animation",$,Z,u0,g0,G?" error":"secondary-light")),f4!==MU&&(f4=aW)}d1=s6,VV(),$=n6;var X=I9;Z=b4,G=ZR;var N=X.actualDuration!==0||(X.subtreeFlags&10256)!==0||(X.flags&10256)!==0;N?d1=LJ:(d1=s6,I9=n6=null,rM($,$.pendingLanes),G$=0,IZ=null);var B=$.pendingLanes;if(B===0&&(r6=null),N||iM($),B=E(Z),X=X.stateNode,M5&&typeof M5.onCommitFiberRoot==="function")try{var W=(X.current.flags&128)===128;switch(B){case e5:var R=RY;break;case j4:R=wY;break;case N8:R=i$;break;case xG:R=TY;break;default:R=i$}M5.onCommitFiberRoot(t$,X,R,W)}catch(b){Y8||(Y8=!0,console.error("React instrumentation encountered an error: %o",b))}if(U8&&$.memoizedUpdaters.clear(),zL(),G!==null){W=x.T,R=Z1.p,Z1.p=e5,x.T=null;try{var z=$.onRecoverableError;for(X=0;X<G.length;X++){var V=G[X],k=CL(V.stack);G0(V.source,z,V.value,k)}}finally{x.T=W,Z1.p=R}}(b4&3)!==0&&A7(),Q8($),B=$.pendingLanes,(Z&261930)!==0&&(B&42)!==0?(GJ=!0,$===wU?CZ++:(CZ=0,wU=$)):CZ=0,N||u2(Z,x8),v7(0,!1)}}function CL($){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 rM($,Z){($.pooledCacheLanes&=Z)===0&&(Z=$.pooledCache,Z!=null&&($.pooledCache=null,F7(Z)))}function A7(){return pM(),cM(),lM(),sM()}function sM(){if(d1!==LJ)return!1;var $=n6,Z=FU;FU=0;var G=E(b4),X=N8===0||N8>G?N8:G;G=x.T;var N=Z1.p;try{Z1.p=X,x.T=null;var B=RU;RU=null,X=n6;var W=b4;if(d1=s6,I9=n6=null,b4=0,(o0&(r1|G4))!==t1)throw Error("Cannot flush passive effects while already rendering.");c5(W),TU=!0,VJ=!1;var R=0;if(u8=null,R=o1(),f4===aW)M7(x8,R,d8);else{var z=x8,V=R,k=f4===HU;!R1||V<=z||(S1?S1.run(console.timeStamp.bind(console,k?"Waiting for Paint":"Waiting",z,V,u0,g0,"secondary-light")):console.timeStamp(k?"Waiting for Paint":"Waiting",z,V,u0,g0,"secondary-light"))}z=o0,o0|=G4;var b=X.current;cQ(),DM(b);var D=X.current;b=WU,cQ(),PM(X,D,W,B,b),iM(X),o0=z;var y=o1();if(D=R,b=S1,u8!==null?fK(D,y,u8,!0,b):!R1||y<=D||(b?b.run(console.timeStamp.bind(console,"Remaining Effects",D,y,u0,g0,"secondary-dark")):console.timeStamp("Remaining Effects",D,y,u0,g0,"secondary-dark")),u2(W,y),v7(0,!1),VJ?X===IZ?G$++:(G$=0,IZ=X):G$=0,VJ=TU=!1,M5&&typeof M5.onPostCommitFiberRoot==="function")try{M5.onPostCommitFiberRoot(t$,X)}catch(Z0){Y8||(Y8=!0,console.error("React instrumentation encountered an error: %o",Z0))}var t=X.current.stateNode;return t.effectDuration=0,t.passiveEffectDuration=0,!0}finally{Z1.p=N,x.T=G,rM($,Z)}}function nM($,Z,G){Z=l5(G,Z),aK(Z),Z=KX($.stateNode,Z,2),$=z6($,Z,2),$!==null&&(M6($,2),Q8($))}function $1($,Z,G){if(O9=!1,$.tag===3)nM($,$,G);else{for(;Z!==null;){if(Z.tag===3){nM(Z,$,G);return}if(Z.tag===1){var X=Z.stateNode;if(typeof Z.type.getDerivedStateFromError==="function"||typeof X.componentDidCatch==="function"&&(r6===null||!r6.has(X))){$=l5(G,$),aK($),G=BX(2),X=z6(Z,G,2),X!==null&&(MX(G,X,Z,$),M6(X,2),Q8(X));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: "+X,G0(Z,function(w,_){console.error("%s must not return anything besides a function, which is used for clean-up.%s",w,_)},B,W)}G=G.next}while(G!==N)}}catch(w){$1(Z,Z.return,w)}}function u$($,Z,G){try{var X=Z.updateQueue,N=X!==null?X.lastEffect:null;if(N!==null){var B=N.next;X=B;do{if((X.tag&$)===$){var W=X.inst,w=W.destroy;w!==void 0&&(W.destroy=void 0,($&L5)!==UJ&&(O9=!0),N=Z,G0(N,mE,N,G,w),($&L5)!==UJ&&(O9=!1))}X=X.next}while(X!==B)}}catch(_){$1(Z,Z.return,_)}}function KH($,Z){t4($)?(i4(),I7(Z,$),a4()):I7(Z,$)}function IX($,Z,G){t4($)?(i4(),u$(G,$,Z),a4()):u$(G,$,Z)}function BH($){var Z=$.updateQueue;if(Z!==null){var G=$.stateNode;$.type.defaultProps||"ref"in $.memoizedProps||V9||(G.props!==$.memoizedProps&&console.error("Expected %s props to match memoized props before processing the update queue. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.",d($)||"instance"),G.state!==$.memoizedState&&console.error("Expected %s state to match memoized state before processing the update queue. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue.",d($)||"instance"));try{G0($,MB,Z,G)}catch(X){$1($,$.return,X)}}}function TL($,Z,G){return $.getSnapshotBeforeUpdate(Z,G)}function zL($,Z){var{memoizedProps:G,memoizedState:X}=Z;Z=$.stateNode,$.type.defaultProps||"ref"in $.memoizedProps||V9||(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 N=h2($.type,G),B=G0($,TL,Z,N,X);G=rW,B!==void 0||G.has($.type)||(G.add($.type),G0($,function(){console.error("%s.getSnapshotBeforeUpdate(): A snapshot value (or null) must be returned. You have returned undefined.",d($))})),Z.__reactInternalSnapshotBeforeUpdate=B}catch(W){$1($,$.return,W)}}function HH($,Z,G){G.props=h2($.type,$.memoizedProps),G.state=$.memoizedState,t4($)?(i4(),G0($,BW,$,Z,G),a4()):G0($,BW,$,Z,G)}function _L($){var Z=$.ref;if(Z!==null){switch($.tag){case 26:case 27:case 5:var G=$.stateNode;break;case 30:G=$.stateNode;break;default:G=$.stateNode}if(typeof Z==="function")if(t4($))try{i4(),$.refCleanup=Z(G)}finally{a4()}else $.refCleanup=Z(G);else typeof Z==="string"?console.error("String refs are no longer supported."):Z.hasOwnProperty("current")||console.error("Unexpected ref object provided for %s. Use either a ref-setter function or React.createRef().",d($)),Z.current=G}}function O7($,Z){try{G0($,_L,$)}catch(G){$1($,Z,G)}}function e4($,Z){var{ref:G,refCleanup:X}=$;if(G!==null)if(typeof X==="function")try{if(t4($))try{i4(),G0($,X)}finally{a4($)}else G0($,X)}catch(N){$1($,Z,N)}finally{$.refCleanup=null,$=$.alternate,$!=null&&($.refCleanup=null)}else if(typeof G==="function")try{if(t4($))try{i4(),G0($,G,null)}finally{a4($)}else G0($,G,null)}catch(N){$1($,Z,N)}else G.current=null}function MH($,Z,G,X){var N=$.memoizedProps,B=N.id,W=N.onCommit;N=N.onRender,Z=Z===null?"mount":"update",QJ&&(Z="nested-update"),typeof N==="function"&&N(B,Z,$.actualDuration,$.treeBaseDuration,$.actualStartTime,G),typeof W==="function"&&W(B,Z,X,G)}function LL($,Z,G,X){var N=$.memoizedProps;$=N.id,N=N.onPostCommit,Z=Z===null?"mount":"update",QJ&&(Z="nested-update"),typeof N==="function"&&N($,Z,X,G)}function FH($){var{type:Z,memoizedProps:G,stateNode:X}=$;try{G0($,lL,X,Z,G,$)}catch(N){$1($,$.return,N)}}function OX($,Z,G){try{G0($,sL,$.stateNode,$.type,G,Z,$)}catch(X){$1($,$.return,X)}}function WH($){return $.tag===5||$.tag===3||$.tag===26||$.tag===27&&I6($.type)||$.tag===4}function DX($){$:for(;;){for(;$.sibling===null;){if($.return===null||WH($.return))return null;$=$.return}$.sibling.return=$.return;for($=$.sibling;$.tag!==5&&$.tag!==6&&$.tag!==18;){if($.tag===27&&I6($.type))continue $;if($.flags&2)continue $;if($.child===null||$.tag===4)continue $;else $.child.return=$,$=$.child}if(!($.flags&2))return $.stateNode}}function jX($,Z,G){var X=$.tag;if(X===5||X===6)$=$.stateNode,Z?(VM(G),(G.nodeType===9?G.body:G.nodeName==="HTML"?G.ownerDocument.body:G).insertBefore($,Z)):(VM(G),Z=G.nodeType===9?G.body:G.nodeName==="HTML"?G.ownerDocument.body:G,Z.appendChild($),G=G._reactRootContainer,G!==null&&G!==void 0||Z.onclick!==null||(Z.onclick=I8));else if(X!==4&&(X===27&&I6($.type)&&(G=$.stateNode,Z=null),$=$.child,$!==null))for(jX($,Z,G),$=$.sibling;$!==null;)jX($,Z,G),$=$.sibling}function wG($,Z,G){var X=$.tag;if(X===5||X===6)$=$.stateNode,Z?G.insertBefore($,Z):G.appendChild($);else if(X!==4&&(X===27&&I6($.type)&&(G=$.stateNode),$=$.child,$!==null))for(wG($,Z,G),$=$.sibling;$!==null;)wG($,Z,G),$=$.sibling}function VL($){for(var Z,G=$.return;G!==null;){if(WH(G)){Z=G;break}G=G.return}if(Z==null)throw Error("Expected to find a host parent. This error is likely caused by a bug in React. Please file an issue.");switch(Z.tag){case 27:Z=Z.stateNode,G=DX($),wG($,G,Z);break;case 5:G=Z.stateNode,Z.flags&32&&(LM(G),Z.flags&=-33),Z=DX($),wG($,Z,G);break;case 3:case 4:Z=Z.stateNode.containerInfo,G=DX($),jX($,G,Z);break;default:throw Error("Invalid host parent fiber. This error is likely caused by a bug in React. Please file an issue.")}}function wH($){var{stateNode:Z,memoizedProps:G}=$;try{G0($,NV,$.type,G,Z,$)}catch(X){$1($,$.return,X)}}function RH($,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 EL($,Z){if($=$.containerInfo,DU=yJ,$=kK($),H3($)){if("selectionStart"in $)var G={start:$.selectionStart,end:$.selectionEnd};else $:{G=(G=$.ownerDocument)&&G.defaultView||window;var X=G.getSelection&&G.getSelection();if(X&&X.rangeCount!==0){G=X.anchorNode;var{anchorOffset:N,focusNode:B}=X;X=X.focusOffset;try{G.nodeType,B.nodeType}catch(t){G=null;break $}var W=0,w=-1,_=-1,V=0,k=0,b=$,D=null;Z:for(;;){for(var y;;){if(b!==G||N!==0&&b.nodeType!==3||(w=W+N),b!==B||X!==0&&b.nodeType!==3||(_=W+X),b.nodeType===3&&(W+=b.nodeValue.length),(y=b.firstChild)===null)break;D=b,b=y}for(;;){if(b===$)break Z;if(D===G&&++V===N&&(w=W),D===B&&++k===X&&(_=W),(y=b.nextSibling)!==null)break;b=D,D=b.parentNode}b=y}G=w===-1||_===-1?null:{start:w,end:_}}else G=null}G=G||{start:0,end:0}}else G=null;jU={focusedElem:$,selectionRange:G},yJ=!1;for(i1=Z;i1!==null;)if(Z=i1,$=Z.child,(Z.subtreeFlags&1028)!==0&&$!==null)$.return=Z,i1=$;else for(;i1!==null;){switch($=Z=i1,G=$.alternate,N=$.flags,$.tag){case 0:if((N&4)!==0&&($=$.updateQueue,$=$!==null?$.events:null,$!==null))for(G=0;G<$.length;G++)N=$[G],N.ref.impl=N.nextImpl;break;case 11:case 15:break;case 1:(N&1024)!==0&&G!==null&&zL($,G);break;case 3:if((N&1024)!==0){if($=$.stateNode.containerInfo,G=$.nodeType,G===9)oX($);else if(G===1)switch($.nodeName){case"HEAD":case"HTML":case"BODY":oX($);break;default:$.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((N&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,i1=$;break}i1=Z.return}}function TH($,Z,G){var X=r5(),N=r4(),B=n4(),W=o4(),w=G.flags;switch(G.tag){case 0:case 11:case 15:$8($,G),w&4&&NH(G,Q4|R4);break;case 1:if($8($,G),w&4)if($=G.stateNode,Z===null)G.type.defaultProps||"ref"in G.memoizedProps||V9||($.props!==G.memoizedProps&&console.error("Expected %s props to match memoized props before componentDidMount. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.",d(G)||"instance"),$.state!==G.memoizedState&&console.error("Expected %s state to match memoized state before componentDidMount. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue.",d(G)||"instance")),t4(G)?(i4(),G0(G,aY,G,$),a4()):G0(G,aY,G,$);else{var _=h2(G.type,Z.memoizedProps);Z=Z.memoizedState,G.type.defaultProps||"ref"in G.memoizedProps||V9||($.props!==G.memoizedProps&&console.error("Expected %s props to match memoized props before componentDidUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.",d(G)||"instance"),$.state!==G.memoizedState&&console.error("Expected %s state to match memoized state before componentDidUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue.",d(G)||"instance")),t4(G)?(i4(),G0(G,UW,G,$,_,Z,$.__reactInternalSnapshotBeforeUpdate),a4()):G0(G,UW,G,$,_,Z,$.__reactInternalSnapshotBeforeUpdate)}w&64&&BH(G),w&512&&O7(G,G.return);break;case 3:if(Z=A8(),$8($,G),w&64&&(w=G.updateQueue,w!==null)){if(_=null,G.child!==null)switch(G.child.tag){case 27:case 5:_=G.child.stateNode;break;case 1:_=G.child.stateNode}try{G0(G,MB,w,_)}catch(k){$1(G,G.return,k)}}$.effectDuration+=pQ(Z);break;case 27:Z===null&&w&4&&wH(G);case 26:case 5:if($8($,G),Z===null){if(w&4)FH(G);else if(w&64){$=G.type,Z=G.memoizedProps,_=G.stateNode;try{G0(G,rL,_,$,Z,G)}catch(k){$1(G,G.return,k)}}}w&512&&O7(G,G.return);break;case 12:if(w&4){w=A8(),$8($,G),$=G.stateNode,$.effectDuration+=W7(w);try{G0(G,MH,G,Z,y6,$.effectDuration)}catch(k){$1(G,G.return,k)}}else $8($,G);break;case 31:$8($,G),w&4&&LH($,G);break;case 13:$8($,G),w&4&&VH($,G),w&64&&($=G.memoizedState,$!==null&&($=$.dehydrated,$!==null&&(w=vL.bind(null,G),qV($,w))));break;case 22:if(w=G.memoizedState!==null||r8,!w){Z=Z!==null&&Z.memoizedState!==null||u1,_=r8;var V=u1;r8=w,(u1=Z)&&!V?(Z8($,G,(G.subtreeFlags&8772)!==0),(G.mode&j0)!==_0&&0<=W0&&0<=T0&&0.05<T0-W0&&kQ(G,W0,T0)):$8($,G),r8=_,u1=V}break;case 30:break;default:$8($,G)}(G.mode&j0)!==_0&&0<=W0&&0<=T0&&((I1||0.05<V1)&&c4(G,W0,T0,V1,L1),G.alternate===null&&G.return!==null&&G.return.alternate!==null&&0.05<T0-W0&&(RH(G.return.alternate,G.return)||p4(G,W0,T0,"Mount"))),s5(X),s4(N),L1=B,I1=W}function zH($){var Z=$.alternate;Z!==null&&($.alternate=null,zH(Z)),$.child=null,$.deletions=null,$.sibling=null,$.tag===5&&(Z=$.stateNode,Z!==null&&e(Z)),$.stateNode=null,$._debugOwner=null,$.return=null,$.dependencies=null,$.memoizedProps=null,$.memoizedState=null,$.pendingProps=null,$.stateNode=null,$.updateQueue=null}function k8($,Z,G){for(G=G.child;G!==null;)_H($,Z,G),G=G.sibling}function _H($,Z,G){if(H5&&typeof H5.onCommitFiberUnmount==="function")try{H5.onCommitFiberUnmount(t$,G)}catch(V){Y8||(Y8=!0,console.error("React instrumentation encountered an error: %o",V))}var X=r5(),N=r4(),B=n4(),W=o4();switch(G.tag){case 26:u1||e4(G,Z),k8($,Z,G),G.memoizedState?G.memoizedState.count--:G.stateNode&&($=G.stateNode,$.parentNode.removeChild($));break;case 27:u1||e4(G,Z);var w=m1,_=A5;I6(G.type)&&(m1=G.stateNode,A5=!1),k8($,Z,G),G0(G,y7,G.stateNode),m1=w,A5=_;break;case 5:u1||e4(G,Z);case 6:if(w=m1,_=A5,m1=null,k8($,Z,G),m1=w,A5=_,m1!==null)if(A5)try{G0(G,aL,m1,G.stateNode)}catch(V){$1(G,Z,V)}else try{G0(G,oL,m1,G.stateNode)}catch(V){$1(G,Z,V)}break;case 18:m1!==null&&(A5?($=m1,EM($.nodeType===9?$.body:$.nodeName==="HTML"?$.ownerDocument.body:$,G.stateNode),n$($)):EM(m1,G.stateNode));break;case 4:w=m1,_=A5,m1=G.stateNode.containerInfo,A5=!0,k8($,Z,G),m1=w,A5=_;break;case 0:case 11:case 14:case 15:u$(L5,G,Z),u1||CX(G,Z,Q4),k8($,Z,G);break;case 1:u1||(e4(G,Z),w=G.stateNode,typeof w.componentWillUnmount==="function"&&HH(G,Z,w)),k8($,Z,G);break;case 21:k8($,Z,G);break;case 22:u1=(w=u1)||G.memoizedState!==null,k8($,Z,G),u1=w;break;default:k8($,Z,G)}(G.mode&j0)!==_0&&0<=W0&&0<=T0&&(I1||0.05<V1)&&c4(G,W0,T0,V1,L1),s5(X),s4(N),L1=B,I1=W}function LH($,Z){if(Z.memoizedState===null&&($=Z.alternate,$!==null&&($=$.memoizedState,$!==null))){$=$.dehydrated;try{G0(Z,YV,$)}catch(G){$1(Z,Z.return,G)}}}function VH($,Z){if(Z.memoizedState===null&&($=Z.alternate,$!==null&&($=$.memoizedState,$!==null&&($=$.dehydrated,$!==null))))try{G0(Z,UV,$)}catch(G){$1(Z,Z.return,G)}}function PL($){switch($.tag){case 31:case 13:case 19:var Z=$.stateNode;return Z===null&&(Z=$.stateNode=new sW),Z;case 22:return $=$.stateNode,Z=$._retryCache,Z===null&&(Z=$._retryCache=new sW),Z;default:throw Error("Unexpected Suspense handler tag ("+$.tag+"). This is a bug in React.")}}function RG($,Z){var G=PL($);Z.forEach(function(X){if(!G.has(X)){if(G.add(X),U8)if(E9!==null&&P9!==null)S7(P9,E9);else throw Error("Expected finished root and lanes to be set. This is a bug in React.");var N=kL.bind(null,$,X);X.then(N,N)}})}function D5($,Z){var G=Z.deletions;if(G!==null)for(var X=0;X<G.length;X++){var N=$,B=Z,W=G[X],w=r5(),_=B;$:for(;_!==null;){switch(_.tag){case 27:if(I6(_.type)){m1=_.stateNode,A5=!1;break $}break;case 5:m1=_.stateNode,A5=!1;break $;case 3:case 4:m1=_.stateNode.containerInfo,A5=!0;break $}_=_.return}if(m1===null)throw Error("Expected to find a host parent. This error is likely caused by a bug in React. Please file an issue.");_H(N,B,W),m1=null,A5=!1,(W.mode&j0)!==_0&&0<=W0&&0<=T0&&0.05<T0-W0&&p4(W,W0,T0,"Unmount"),s5(w),N=W,B=N.alternate,B!==null&&(B.return=null),N.return=null}if(Z.subtreeFlags&13886)for(Z=Z.child;Z!==null;)EH(Z,$),Z=Z.sibling}function EH($,Z){var G=r5(),X=r4(),N=n4(),B=o4(),W=$.alternate,w=$.flags;switch($.tag){case 0:case 11:case 14:case 15:D5(Z,$),j5($),w&4&&(u$(L5|R4,$,$.return),I7(L5|R4,$),CX($,$.return,Q4|R4));break;case 1:if(D5(Z,$),j5($),w&512&&(u1||W===null||e4(W,W.return)),w&64&&r8&&(w=$.updateQueue,w!==null&&(W=w.callbacks,W!==null))){var _=w.shared.hiddenCallbacks;w.shared.hiddenCallbacks=_===null?W:_.concat(W)}break;case 26:if(_=k4,D5(Z,$),j5($),w&512&&(u1||W===null||e4(W,W.return)),w&4){var V=W!==null?W.memoizedState:null;if(w=$.memoizedState,W===null)if(w===null)if($.stateNode===null){$:{w=$.type,W=$.memoizedProps,_=_.ownerDocument||_;Z:switch(w){case"title":if(V=_.getElementsByTagName("title")[0],!V||V[p7]||V[G5]||V.namespaceURI===$9||V.hasAttribute("itemprop"))V=_.createElement(w),_.head.insertBefore(V,_.querySelector("head > title"));Q5(V,w,W),V[G5]=$,F0(V),w=V;break $;case"link":var k=bM("link","href",_).get(w+(W.href||""));if(k){for(var b=0;b<k.length;b++)if(V=k[b],V.getAttribute("href")===(W.href==null||W.href===""?null:W.href)&&V.getAttribute("rel")===(W.rel==null?null:W.rel)&&V.getAttribute("title")===(W.title==null?null:W.title)&&V.getAttribute("crossorigin")===(W.crossOrigin==null?null:W.crossOrigin)){k.splice(b,1);break Z}}V=_.createElement(w),Q5(V,w,W),_.head.appendChild(V);break;case"meta":if(k=bM("meta","content",_).get(w+(W.content||""))){for(b=0;b<k.length;b++)if(V=k[b],Y1(W.content,"content"),V.getAttribute("content")===(W.content==null?null:""+W.content)&&V.getAttribute("name")===(W.name==null?null:W.name)&&V.getAttribute("property")===(W.property==null?null:W.property)&&V.getAttribute("http-equiv")===(W.httpEquiv==null?null:W.httpEquiv)&&V.getAttribute("charset")===(W.charSet==null?null:W.charSet)){k.splice(b,1);break Z}}V=_.createElement(w),Q5(V,w,W),_.head.appendChild(V);break;default:throw Error('getNodesForType encountered a type it did not expect: "'+w+'". This is a bug in React.')}V[G5]=$,F0(V),w=V}$.stateNode=w}else fM(_,$.type,$.stateNode);else $.stateNode=kM(_,w,$.memoizedProps);else V!==w?(V===null?W.stateNode!==null&&(W=W.stateNode,W.parentNode.removeChild(W)):V.count--,w===null?fM(_,$.type,$.stateNode):kM(_,w,$.memoizedProps)):w===null&&$.stateNode!==null&&OX($,$.memoizedProps,W.memoizedProps)}break;case 27:D5(Z,$),j5($),w&512&&(u1||W===null||e4(W,W.return)),W!==null&&w&4&&OX($,$.memoizedProps,W.memoizedProps);break;case 5:if(D5(Z,$),j5($),w&512&&(u1||W===null||e4(W,W.return)),$.flags&32){_=$.stateNode;try{G0($,LM,_)}catch(Z0){$1($,$.return,Z0)}}w&4&&$.stateNode!=null&&(_=$.memoizedProps,OX($,_,W!==null?W.memoizedProps:_)),w&1024&&(NU=!0,$.type!=="form"&&console.error("Unexpected host component type. Expected a form. This is a bug in React."));break;case 6:if(D5(Z,$),j5($),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,W=W!==null?W.memoizedProps:w,_=$.stateNode;try{G0($,nL,_,W,w)}catch(Z0){$1($,$.return,Z0)}}break;case 3:if(_=A8(),kJ=null,V=k4,k4=CG(Z.containerInfo),D5(Z,$),k4=V,j5($),w&4&&W!==null&&W.memoizedState.isDehydrated)try{G0($,XV,Z.containerInfo)}catch(Z0){$1($,$.return,Z0)}NU&&(NU=!1,PH($)),Z.effectDuration+=pQ(_);break;case 4:w=k4,k4=CG($.stateNode.containerInfo),D5(Z,$),j5($),k4=w;break;case 12:w=A8(),D5(Z,$),j5($),$.stateNode.effectDuration+=W7(w);break;case 31:D5(Z,$),j5($),w&4&&(w=$.updateQueue,w!==null&&($.updateQueue=null,RG($,w)));break;case 13:D5(Z,$),j5($),$.child.flags&8192&&$.memoizedState!==null!==(W!==null&&W.memoizedState!==null)&&(TJ=o1()),w&4&&(w=$.updateQueue,w!==null&&($.updateQueue=null,RG($,w)));break;case 22:_=$.memoizedState!==null;var D=W!==null&&W.memoizedState!==null,y=r8,t=u1;if(r8=y||_,u1=t||D,D5(Z,$),u1=t,r8=y,D&&!_&&!y&&!t&&($.mode&j0)!==_0&&0<=W0&&0<=T0&&0.05<T0-W0&&kQ($,W0,T0),j5($),w&8192)$:for(Z=$.stateNode,Z._visibility=_?Z._visibility&~t7:Z._visibility|t7,!_||W===null||D||r8||u1||(x2($),($.mode&j0)!==_0&&0<=W0&&0<=T0&&0.05<T0-W0&&p4($,W0,T0,"Disconnect")),W=null,Z=$;;){if(Z.tag===5||Z.tag===26){if(W===null){D=W=Z;try{V=D.stateNode,_?G0(D,tL,V):G0(D,ZV,D.stateNode,D.memoizedProps)}catch(Z0){$1(D,D.return,Z0)}}}else if(Z.tag===6){if(W===null){D=Z;try{k=D.stateNode,_?G0(D,eL,k):G0(D,QV,k,D.memoizedProps)}catch(Z0){$1(D,D.return,Z0)}}}else if(Z.tag===18){if(W===null){D=Z;try{b=D.stateNode,_?G0(D,iL,b):G0(D,$V,D.stateNode)}catch(Z0){$1(D,D.return,Z0)}}}else if((Z.tag!==22&&Z.tag!==23||Z.memoizedState===null||Z===$)&&Z.child!==null){Z.child.return=Z,Z=Z.child;continue}if(Z===$)break $;for(;Z.sibling===null;){if(Z.return===null||Z.return===$)break $;W===Z&&(W=null),Z=Z.return}W===Z&&(W=null),Z.sibling.return=Z.return,Z=Z.sibling}w&4&&(w=$.updateQueue,w!==null&&(W=w.retryQueue,W!==null&&(w.retryQueue=null,RG($,W))));break;case 19:D5(Z,$),j5($),w&4&&(w=$.updateQueue,w!==null&&($.updateQueue=null,RG($,w)));break;case 30:break;case 21:break;default:D5(Z,$),j5($)}($.mode&j0)!==_0&&0<=W0&&0<=T0&&((I1||0.05<V1)&&c4($,W0,T0,V1,L1),$.alternate===null&&$.return!==null&&$.return.alternate!==null&&0.05<T0-W0&&(RH($.return.alternate,$.return)||p4($,W0,T0,"Mount"))),s5(G),s4(X),L1=N,I1=B}function j5($){var Z=$.flags;if(Z&2){try{G0($,VL,$)}catch(G){$1($,$.return,G)}$.flags&=-3}Z&4096&&($.flags&=-4097)}function PH($){if($.subtreeFlags&1024)for($=$.child;$!==null;){var Z=$;PH(Z),Z.tag===5&&Z.flags&1024&&Z.stateNode.reset(),$=$.sibling}}function $8($,Z){if(Z.subtreeFlags&8772)for(Z=Z.child;Z!==null;)TH($,Z.alternate,Z),Z=Z.sibling}function CH($){var Z=r5(),G=r4(),X=n4(),N=o4();switch($.tag){case 0:case 11:case 14:case 15:CX($,$.return,Q4),x2($);break;case 1:e4($,$.return);var B=$.stateNode;typeof B.componentWillUnmount==="function"&&HH($,$.return,B),x2($);break;case 27:G0($,y7,$.stateNode);case 26:case 5:e4($,$.return),x2($);break;case 22:$.memoizedState===null&&x2($);break;case 30:x2($);break;default:x2($)}($.mode&j0)!==_0&&0<=W0&&0<=T0&&(I1||0.05<V1)&&c4($,W0,T0,V1,L1),s5(Z),s4(G),L1=X,I1=N}function x2($){for($=$.child;$!==null;)CH($),$=$.sibling}function IH($,Z,G,X){var N=r5(),B=r4(),W=n4(),w=o4(),_=G.flags;switch(G.tag){case 0:case 11:case 15:Z8($,G,X),NH(G,Q4);break;case 1:if(Z8($,G,X),Z=G.stateNode,typeof Z.componentDidMount==="function"&&G0(G,aY,G,Z),Z=G.updateQueue,Z!==null){$=G.stateNode;try{G0(G,XL,Z,$)}catch(V){$1(G,G.return,V)}}X&&_&64&&BH(G),O7(G,G.return);break;case 27:wH(G);case 26:case 5:Z8($,G,X),X&&Z===null&&_&4&&FH(G),O7(G,G.return);break;case 12:if(X&&_&4){_=A8(),Z8($,G,X),X=G.stateNode,X.effectDuration+=W7(_);try{G0(G,MH,G,Z,y6,X.effectDuration)}catch(V){$1(G,G.return,V)}}else Z8($,G,X);break;case 31:Z8($,G,X),X&&_&4&&LH($,G);break;case 13:Z8($,G,X),X&&_&4&&VH($,G);break;case 22:G.memoizedState===null&&Z8($,G,X),O7(G,G.return);break;case 30:break;default:Z8($,G,X)}(G.mode&j0)!==_0&&0<=W0&&0<=T0&&(I1||0.05<V1)&&c4(G,W0,T0,V1,L1),s5(N),s4(B),L1=W,I1=w}function Z8($,Z,G){G=G&&(Z.subtreeFlags&8772)!==0;for(Z=Z.child;Z!==null;)IH($,Z.alternate,Z,G),Z=Z.sibling}function AX($,Z){var G=null;$!==null&&$.memoizedState!==null&&$.memoizedState.cachePool!==null&&(G=$.memoizedState.cachePool.pool),$=null,Z.memoizedState!==null&&Z.memoizedState.cachePool!==null&&($=Z.memoizedState.cachePool.pool),$!==G&&($!=null&&b2($),G!=null&&F7(G))}function SX($,Z){$=null,Z.alternate!==null&&($=Z.alternate.memoizedState.cache),Z=Z.memoizedState.cache,Z!==$&&(b2(Z),$!=null&&F7($))}function O4($,Z,G,X,N){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;OH($,Z,G,X,B!==null?B.actualStartTime:N),Z=B}}function OH($,Z,G,X,N){var B=r5(),W=r4(),w=n4(),_=o4(),V=v6,k=Z.flags;switch(Z.tag){case 0:case 11:case 15:(Z.mode&j0)!==_0&&0<Z.actualStartTime&&(Z.flags&1)!==0&&bQ(Z,Z.actualStartTime,N,l1,G),O4($,Z,G,X,N),k&2048&&KH(Z,V5|R4);break;case 1:(Z.mode&j0)!==_0&&0<Z.actualStartTime&&((Z.flags&128)!==0?F3(Z,Z.actualStartTime,N,[]):(Z.flags&1)!==0&&bQ(Z,Z.actualStartTime,N,l1,G)),O4($,Z,G,X,N);break;case 3:var b=A8(),D=l1;l1=Z.alternate!==null&&Z.alternate.memoizedState.isDehydrated&&(Z.flags&256)===0,O4($,Z,G,X,N),l1=D,k&2048&&(G=null,Z.alternate!==null&&(G=Z.alternate.memoizedState.cache),X=Z.memoizedState.cache,X!==G&&(b2(X),G!=null&&F7(G))),$.passiveEffectDuration+=pQ(b);break;case 12:if(k&2048){k=A8(),O4($,Z,G,X,N),$=Z.stateNode,$.passiveEffectDuration+=W7(k);try{G0(Z,LL,Z,Z.alternate,y6,$.passiveEffectDuration)}catch(y){$1(Z,Z.return,y)}}else O4($,Z,G,X,N);break;case 31:k=l1,b=Z.alternate!==null?Z.alternate.memoizedState:null,D=Z.memoizedState,b!==null&&D===null?(D=Z.deletions,D!==null&&0<D.length&&D[0].tag===18?(l1=!1,b=b.hydrationErrors,b!==null&&F3(Z,Z.actualStartTime,N,b)):l1=!0):l1=!1,O4($,Z,G,X,N),l1=k;break;case 13:k=l1,b=Z.alternate!==null?Z.alternate.memoizedState:null,D=Z.memoizedState,b===null||b.dehydrated===null||D!==null&&D.dehydrated!==null?l1=!1:(D=Z.deletions,D!==null&&0<D.length&&D[0].tag===18?(l1=!1,b=b.hydrationErrors,b!==null&&F3(Z,Z.actualStartTime,N,b)):l1=!0),O4($,Z,G,X,N),l1=k;break;case 23:break;case 22:D=Z.stateNode,b=Z.alternate,Z.memoizedState!==null?D._visibility&y8?O4($,Z,G,X,N):D7($,Z,G,X,N):D._visibility&y8?O4($,Z,G,X,N):(D._visibility|=y8,m$($,Z,G,X,(Z.subtreeFlags&10256)!==0||Z.actualDuration!==0&&(Z.alternate===null||Z.alternate.child!==Z.child),N),(Z.mode&j0)===_0||l1||($=Z.actualStartTime,0<=$&&0.05<N-$&&kQ(Z,$,N),0<=W0&&0<=T0&&0.05<T0-W0&&kQ(Z,W0,T0))),k&2048&&AX(b,Z);break;case 24:O4($,Z,G,X,N),k&2048&&SX(Z.alternate,Z);break;default:O4($,Z,G,X,N)}if((Z.mode&j0)!==_0){if($=!l1&&Z.alternate===null&&Z.return!==null&&Z.return.alternate!==null)G=Z.actualStartTime,0<=G&&0.05<N-G&&p4(Z,G,N,"Mount");0<=W0&&0<=T0&&((I1||0.05<V1)&&c4(Z,W0,T0,V1,L1),$&&0.05<T0-W0&&p4(Z,W0,T0,"Mount"))}s5(B),s4(W),L1=w,I1=_,v6=V}function m$($,Z,G,X,N,B){N=N&&((Z.subtreeFlags&10256)!==0||Z.actualDuration!==0&&(Z.alternate===null||Z.alternate.child!==Z.child));for(Z=Z.child;Z!==null;){var W=Z.sibling;DH($,Z,G,X,N,W!==null?W.actualStartTime:B),Z=W}}function DH($,Z,G,X,N,B){var W=r5(),w=r4(),_=n4(),V=o4(),k=v6;N&&(Z.mode&j0)!==_0&&0<Z.actualStartTime&&(Z.flags&1)!==0&&bQ(Z,Z.actualStartTime,B,l1,G);var b=Z.flags;switch(Z.tag){case 0:case 11:case 15:m$($,Z,G,X,N,B),KH(Z,V5);break;case 23:break;case 22:var D=Z.stateNode;Z.memoizedState!==null?D._visibility&y8?m$($,Z,G,X,N,B):D7($,Z,G,X,B):(D._visibility|=y8,m$($,Z,G,X,N,B)),N&&b&2048&&AX(Z.alternate,Z);break;case 24:m$($,Z,G,X,N,B),N&&b&2048&&SX(Z.alternate,Z);break;default:m$($,Z,G,X,N,B)}(Z.mode&j0)!==_0&&0<=W0&&0<=T0&&(I1||0.05<V1)&&c4(Z,W0,T0,V1,L1),s5(W),s4(w),L1=_,I1=V,v6=k}function D7($,Z,G,X,N){if(Z.subtreeFlags&10256||Z.actualDuration!==0&&(Z.alternate===null||Z.alternate.child!==Z.child))for(var B=Z.child;B!==null;){Z=B.sibling;var W=$,w=G,_=X,V=Z!==null?Z.actualStartTime:N,k=v6;(B.mode&j0)!==_0&&0<B.actualStartTime&&(B.flags&1)!==0&&bQ(B,B.actualStartTime,V,l1,w);var b=B.flags;switch(B.tag){case 22:D7(W,B,w,_,V),b&2048&&AX(B.alternate,B);break;case 24:D7(W,B,w,_,V),b&2048&&SX(B.alternate,B);break;default:D7(W,B,w,_,V)}v6=k,B=Z}}function d$($,Z,G){if($.subtreeFlags&TZ)for($=$.child;$!==null;)jH($,Z,G),$=$.sibling}function jH($,Z,G){switch($.tag){case 26:d$($,Z,G),$.flags&TZ&&$.memoizedState!==null&&HV(G,k4,$.memoizedState,$.memoizedProps);break;case 5:d$($,Z,G);break;case 3:case 4:var X=k4;k4=CG($.stateNode.containerInfo),d$($,Z,G),k4=X;break;case 22:$.memoizedState===null&&(X=$.alternate,X!==null&&X.memoizedState!==null?(X=TZ,TZ=16777216,d$($,Z,G),TZ=X):d$($,Z,G));break;default:d$($,Z,G)}}function AH($){var Z=$.alternate;if(Z!==null&&($=Z.child,$!==null)){Z.child=null;do Z=$.sibling,$.sibling=null,$=Z;while($!==null)}}function j7($){var Z=$.deletions;if(($.flags&16)!==0){if(Z!==null)for(var G=0;G<Z.length;G++){var X=Z[G],N=r5();i1=X,kH(X,$),(X.mode&j0)!==_0&&0<=W0&&0<=T0&&0.05<T0-W0&&p4(X,W0,T0,"Unmount"),s5(N)}AH($)}if($.subtreeFlags&10256)for($=$.child;$!==null;)SH($),$=$.sibling}function SH($){var Z=r5(),G=r4(),X=n4(),N=o4();switch($.tag){case 0:case 11:case 15:j7($),$.flags&2048&&IX($,$.return,V5|R4);break;case 3:var B=A8();j7($),$.stateNode.passiveEffectDuration+=pQ(B);break;case 12:B=A8(),j7($),$.stateNode.passiveEffectDuration+=W7(B);break;case 22:B=$.stateNode,$.memoizedState!==null&&B._visibility&y8&&($.return===null||$.return.tag!==13)?(B._visibility&=~y8,TG($),($.mode&j0)!==_0&&0<=W0&&0<=T0&&0.05<T0-W0&&p4($,W0,T0,"Disconnect")):j7($);break;default:j7($)}($.mode&j0)!==_0&&0<=W0&&0<=T0&&(I1||0.05<V1)&&c4($,W0,T0,V1,L1),s5(Z),s4(G),I1=N,L1=X}function TG($){var Z=$.deletions;if(($.flags&16)!==0){if(Z!==null)for(var G=0;G<Z.length;G++){var X=Z[G],N=r5();i1=X,kH(X,$),(X.mode&j0)!==_0&&0<=W0&&0<=T0&&0.05<T0-W0&&p4(X,W0,T0,"Unmount"),s5(N)}AH($)}for($=$.child;$!==null;)vH($),$=$.sibling}function vH($){var Z=r5(),G=r4(),X=n4(),N=o4();switch($.tag){case 0:case 11:case 15:IX($,$.return,V5),TG($);break;case 22:var B=$.stateNode;B._visibility&y8&&(B._visibility&=~y8,TG($));break;default:TG($)}($.mode&j0)!==_0&&0<=W0&&0<=T0&&(I1||0.05<V1)&&c4($,W0,T0,V1,L1),s5(Z),s4(G),I1=N,L1=X}function kH($,Z){for(;i1!==null;){var G=i1,X=G,N=Z,B=r5(),W=r4(),w=n4(),_=o4();switch(X.tag){case 0:case 11:case 15:IX(X,N,V5);break;case 23:case 22:X.memoizedState!==null&&X.memoizedState.cachePool!==null&&(N=X.memoizedState.cachePool.pool,N!=null&&b2(N));break;case 24:F7(X.memoizedState.cache)}if((X.mode&j0)!==_0&&0<=W0&&0<=T0&&(I1||0.05<V1)&&c4(X,W0,T0,V1,L1),s5(B),s4(W),I1=_,L1=w,X=G.child,X!==null)X.return=G,i1=X;else $:for(G=$;i1!==null;){if(X=i1,B=X.sibling,W=X.return,zH(X),X===G){i1=null;break $}if(B!==null){B.return=W,i1=B;break $}i1=W}}}function CL(){rE.forEach(function($){return $()})}function bH(){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 o5($){if((o0&r1)!==t1&&S0!==0)return S0&-S0;var Z=x.T;return Z!==null?(Z._updatedFibers||(Z._updatedFibers=new Set),Z._updatedFibers.add($),xX()):f()}function fH(){if(v5===0)if((S0&536870912)===0||p0){var $=gG;gG<<=1,(gG&3932160)===0&&(gG=262144),v5=$}else v5=536870912;return $=Z4.current,$!==null&&($.flags|=32),v5}function C1($,Z,G){if(O9&&console.error("useInsertionEffect must not schedule updates."),_U&&(VJ=!0),$===K1&&(q1===$$||q1===Z$)||$.cancelPendingCommit!==null)c$($,0),P6($,S0,v5,!1);if(H6($,G),(o0&r1)!==t1&&$===K1){if(X8)switch(Z.tag){case 0:case 11:case 15:$=v0&&d(v0)||"Unknown",Uw.has($)||(Uw.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:Yw||(console.error("Cannot update during an existing state transition (such as within `render`). Render methods should be a pure function of props and state."),Yw=!0)}}else U8&&G7($,Z,G),fL(Z),$===K1&&((o0&r1)===t1&&(l6|=G),E1===d6&&P6($,S0,v5,!1)),Q8($)}function yH($,Z,G){if((o0&(r1|G4))!==t1)throw Error("Should not already be working.");if(S0!==0&&v0!==null){var X=v0,N=o1();switch($W){case LZ:case $$:var B=JZ;w1&&((X=X._debugTask)?X.run(console.timeStamp.bind(console,"Suspended",B,N,N4,void 0,"primary-light")):console.timeStamp("Suspended",B,N,N4,void 0,"primary-light"));break;case Z$:B=JZ,w1&&((X=X._debugTask)?X.run(console.timeStamp.bind(console,"Action",B,N,N4,void 0,"primary-light")):console.timeStamp("Action",B,N,N4,void 0,"primary-light"));break;default:w1&&(X=N-JZ,3>X||console.timeStamp("Blocked",JZ,N,N4,void 0,5>X?"primary-light":10>X?"primary":100>X?"primary-dark":"error"))}}B=(G=!G&&(Z&127)===0&&(Z&$.expiredLanes)===0||L2($,Z))?OL($,Z):kX($,Z,!0);var W=G;do{if(B===s8){C9&&!G&&P6($,Z,0,!1),Z=q1,JZ=g1(),$W=Z;break}else{if(X=o1(),N=$.current.alternate,W&&!IL(N)){c5(Z),N=a1,B=X,!w1||B<=N||(S1?S1.run(console.timeStamp.bind(console,"Teared Render",N,B,u0,g0,"error")):console.timeStamp("Teared Render",N,B,u0,g0,"error")),u2(Z,X),B=kX($,Z,!1),W=!1;continue}if(B===e2){if(W=Z,$.errorRecoveryDisabledLanes&W)var w=0;else w=$.pendingLanes&-536870913,w=w!==0?w:w&536870912?536870912:0;if(w!==0){c5(Z),W3(a1,X,Z,S1),u2(Z,X),Z=w;$:{X=$,B=W,W=EZ;var _=X.current.memoizedState.isDehydrated;if(_&&(c$(X,w).flags|=256),w=kX(X,w,!1),w!==e2){if(HU&&!_){X.errorRecoveryDisabledLanes|=B,l6|=B,B=d6;break $}X=E5,E5=W,X!==null&&(E5===null?E5=X:E5.push.apply(E5,X))}B=w}if(W=!1,B!==e2)continue;else X=o1()}}if(B===_Z){c5(Z),W3(a1,X,Z,S1),u2(Z,X),c$($,0),P6($,Z,0,!0);break}$:{switch(G=$,B){case s8:case _Z:throw Error("Root did not complete. This is a bug in React.");case d6:if((Z&4194048)!==Z)break;case FJ:c5(Z),yK(a1,X,Z,S1),u2(Z,X),N=Z,(N&127)!==0?eG=X:(N&4194048)!==0&&($J=X),P6(G,Z,v5,!p6);break $;case e2:E5=null;break;case MJ:case nW:break;default:throw Error("Unknown root exit status.")}if(x.actQueue!==null)bX(G,N,Z,E5,PZ,RJ,v5,l6,Q$,B,null,null,a1,X);else{if((Z&62914560)===Z&&(W=TJ+iW-o1(),10<W)){if(P6(G,Z,v5,!p6),_2(G,0,!0)!==0)break $;b4=Z,G.timeoutHandle=ww(gH.bind(null,G,N,E5,PZ,RJ,Z,v5,l6,Q$,p6,B,"Throttled",a1,X),W);break $}gH(G,N,E5,PZ,RJ,Z,v5,l6,Q$,p6,B,null,a1,X)}}}break}while(1);Q8($)}function gH($,Z,G,X,N,B,W,w,_,V,k,b,D,y){$.timeoutHandle=Y$;var t=Z.subtreeFlags,Z0=null;if(t&8192||(t&16785408)===16785408){if(Z0={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:I8},jH(Z,B,Z0),t=(B&62914560)===B?TJ-o1():(B&4194048)===B?aW-o1():0,t=MV(Z0,t),t!==null){b4=B,$.cancelPendingCommit=t(bX.bind(null,$,Z,B,G,X,N,W,w,_,k,Z0,Z0.waitingForViewTransition?"Waiting for the previous Animation":0<Z0.count?0<Z0.imgCount?"Suspended on CSS and Images":"Suspended on CSS":Z0.imgCount===1?"Suspended on an Image":0<Z0.imgCount?"Suspended on Images":null,D,y)),P6($,B,W,!V);return}}bX($,Z,B,G,X,N,W,w,_,k,Z0,b,D,y)}function IL($){for(var Z=$;;){var G=Z.tag;if((G===0||G===11||G===15)&&Z.flags&16384&&(G=Z.updateQueue,G!==null&&(G=G.stores,G!==null)))for(var X=0;X<G.length;X++){var N=G[X],B=N.getSnapshot;N=N.value;try{if(!z5(B(),N))return!1}catch(W){return!1}}if(G=Z.child,Z.subtreeFlags&16384&&G!==null)G.return=Z,Z=G;else{if(Z===$)break;for(;Z.sibling===null;){if(Z.return===null||Z.return===$)return!0;Z=Z.return}Z.sibling.return=Z.return,Z=Z.sibling}}return!0}function P6($,Z,G,X){Z&=~MU,Z&=~l6,$.suspendedLanes|=Z,$.pingedLanes&=~Z,X&&($.warmLanes|=Z),X=$.expirationTimes;for(var N=Z;0<N;){var B=31-w5(N),W=1<<B;X[B]=-1,N&=~W}G!==0&&V2($,G,Z)}function p$(){return(o0&(r1|G4))===t1?(v7(0,!1),!1):!0}function vX(){if(v0!==null){if(q1===S5)var $=v0.return;else $=v0,uQ(),p3($),w9=null,MZ=0,$=v0;for(;$!==null;)UH($.alternate,$),$=$.return;v0=null}}function u2($,Z){($&127)!==0&&(g6=Z),($&4194048)!==0&&(M8=Z),($&62914560)!==0&&(tF=Z),($&2080374784)!==0&&(eF=Z)}function c$($,Z){w1&&(console.timeStamp("Blocking Track",0.003,0.003,"Blocking",g0,"primary-light"),console.timeStamp("Transition Track",0.003,0.003,"Transition",g0,"primary-light"),console.timeStamp("Suspense Track",0.003,0.003,"Suspense",g0,"primary-light"),console.timeStamp("Idle Track",0.003,0.003,"Idle",g0,"primary-light"));var G=a1;if(a1=g1(),S0!==0&&0<G){if(c5(S0),E1===MJ||E1===d6)yK(G,a1,Z,S1);else{var X=a1,N=S1;if(w1&&!(X<=G)){var B=(Z&738197653)===Z?"tertiary-dark":"primary-dark",W=(Z&536870912)===Z?"Prewarm":(Z&201326741)===Z?"Interrupted Hydration":"Interrupted Render";N?N.run(console.timeStamp.bind(console,W,G,X,u0,g0,B)):console.timeStamp(W,G,X,u0,g0,B)}}u2(S0,a1)}if(G=S1,S1=null,(Z&127)!==0){S1=ZZ,N=0<=H8&&H8<g6?g6:H8,X=0<=l2&&l2<g6?g6:l2,B=0<=X?X:0<=N?N:a1,0<=eG?(c5(2),gK(eG,B,Z,G)):(ZJ&127)!==0&&(c5(2),H7(g6,B,d8)),G=N;var w=X,_=QZ,V=0<M9,k=h6===$Z,b=h6===tG;if(N=a1,X=ZZ,B=lY,W=rY,w1){if(u0="Blocking",0<G?G>N&&(G=N):G=N,0<w?w>G&&(w=G):w=G,_!==null&&G>w){var D=V?"secondary-light":"warning";X?X.run(console.timeStamp.bind(console,V?"Consecutive":"Event: "+_,w,G,u0,g0,D)):console.timeStamp(V?"Consecutive":"Event: "+_,w,G,u0,g0,D)}N>G&&(w=k?"error":(Z&738197653)===Z?"tertiary-light":"primary-light",k=b?"Promise Resolved":k?"Cascading Update":5<N-G?"Update Blocked":"Update",b=[],W!=null&&b.push(["Component name",W]),B!=null&&b.push(["Method name",B]),G={start:G,end:N,detail:{devtools:{properties:b,track:u0,trackGroup:g0,color:w}}},X?X.run(performance.measure.bind(performance,k,G)):performance.measure(k,G))}H8=-1.1,h6=0,rY=lY=null,eG=-1.1,M9=l2,l2=-1.1,g6=g1()}if((Z&4194048)!==0&&(S1=GZ,N=0<=m8&&m8<M8?M8:m8,G=0<=W4&&W4<M8?M8:W4,X=0<=x6&&x6<M8?M8:x6,B=0<=X?X:0<=G?G:a1,0<=$J?(c5(256),gK($J,B,Z,S1)):(ZJ&4194048)!==0&&(c5(256),H7(M8,B,d8)),b=X,w=r2,_=0<u6,V=sY===tG,B=a1,X=GZ,W=aF,k=iF,w1&&(u0="Transition",0<G?G>B&&(G=B):G=B,0<N?N>G&&(N=G):N=G,0<b?b>N&&(b=N):b=N,N>b&&w!==null&&(D=_?"secondary-light":"warning",X?X.run(console.timeStamp.bind(console,_?"Consecutive":"Event: "+w,b,N,u0,g0,D)):console.timeStamp(_?"Consecutive":"Event: "+w,b,N,u0,g0,D)),G>N&&(X?X.run(console.timeStamp.bind(console,"Action",N,G,u0,g0,"primary-dark")):console.timeStamp("Action",N,G,u0,g0,"primary-dark")),B>G&&(N=V?"Promise Resolved":5<B-G?"Update Blocked":"Update",b=[],k!=null&&b.push(["Component name",k]),W!=null&&b.push(["Method name",W]),G={start:G,end:B,detail:{devtools:{properties:b,track:u0,trackGroup:g0,color:"primary-light"}}},X?X.run(performance.measure.bind(performance,N,G)):performance.measure(N,G))),W4=m8=-1.1,sY=0,$J=-1.1,u6=x6,x6=-1.1,M8=g1()),(Z&62914560)!==0&&(ZJ&62914560)!==0&&(c5(4194304),H7(tF,a1,d8)),(Z&2080374784)!==0&&(ZJ&2080374784)!==0&&(c5(268435456),H7(eF,a1,d8)),G=$.timeoutHandle,G!==Y$&&($.timeoutHandle=Y$,qP(G)),G=$.cancelPendingCommit,G!==null&&($.cancelPendingCommit=null,G()),b4=0,vX(),K1=$,v0=G=O8($.current,null),S0=Z,q1=S5,J4=null,p6=!1,C9=L2($,Z),HU=!1,E1=s8,Q$=v5=MU=l6=c6=0,E5=EZ=null,RJ=!1,(Z&8)!==0&&(Z|=Z&32),X=$.entangledLanes,X!==0)for($=$.entanglements,X&=Z;0<X;)N=31-w5(X),B=1<<N,Z|=$[N],X&=~B;return W8=Z,fQ(),$=cF(),1000<$-pF&&(x.recentlyCreatedOwnerStacks=0,pF=$),S4.discardPendingWarnings(),G}function hH($,Z){L0=null,x.H=RZ,x.getCurrentStack=null,X8=!1,t5=null,Z===W9||Z===qJ?(Z=qB(),q1=LZ):Z===iY?(Z=qB(),q1=oW):q1=Z===YU?BU:Z!==null&&typeof Z==="object"&&typeof Z.then==="function"?VZ:WJ,J4=Z;var G=v0;G===null?(E1=_Z,BG($,l5(Z,$.current))):G.mode&j0&&A3(G)}function xH(){var $=Z4.current;return $===null?!0:(S0&4194048)===S0?w4===null?!0:!1:(S0&62914560)===S0||(S0&536870912)!==0?$===w4:!1}function uH(){var $=x.H;return x.H=RZ,$===null?RZ:$}function mH(){var $=x.A;return x.A=lE,$}function zG($){S1===null&&(S1=$._debugTask==null?null:$._debugTask)}function _G(){E1=d6,p6||(S0&4194048)!==S0&&Z4.current!==null||(C9=!0),(c6&134217727)===0&&(l6&134217727)===0||K1===null||P6(K1,S0,v5,!1)}function kX($,Z,G){var X=o0;o0|=r1;var N=uH(),B=mH();if(K1!==$||S0!==Z){if(U8){var W=$.memoizedUpdaters;0<W.size&&(S7($,S0),W.clear()),M6($,Z)}PZ=null,c$($,Z)}Z=!1,W=E1;$:do try{if(q1!==S5&&v0!==null){var w=v0,_=J4;switch(q1){case BU:vX(),W=FJ;break $;case LZ:case $$:case Z$:case VZ:Z4.current===null&&(Z=!0);var V=q1;if(q1=S5,J4=null,l$($,w,_,V),G&&C9){W=s8;break $}break;default:V=q1,q1=S5,J4=null,l$($,w,_,V)}}dH(),W=E1;break}catch(k){hH($,k)}while(1);return Z&&$.shellSuspendCounter++,uQ(),o0=X,x.H=N,x.A=B,v0===null&&(K1=null,S0=0,fQ()),W}function dH(){for(;v0!==null;)pH(v0)}function OL($,Z){var G=o0;o0|=r1;var X=uH(),N=mH();if(K1!==$||S0!==Z){if(U8){var B=$.memoizedUpdaters;0<B.size&&(S7($,S0),B.clear()),M6($,Z)}PZ=null,zJ=o1()+tW,c$($,Z)}else C9=L2($,Z);$:do try{if(q1!==S5&&v0!==null)Z:switch(Z=v0,B=J4,q1){case WJ:q1=S5,J4=null,l$($,Z,B,WJ);break;case $$:case Z$:if(GB(B)){q1=S5,J4=null,cH(Z);break}Z=function(){q1!==$$&&q1!==Z$||K1!==$||(q1=wJ),Q8($)},B.then(Z,Z);break $;case LZ:q1=wJ;break $;case oW:q1=KU;break $;case wJ:GB(B)?(q1=S5,J4=null,cH(Z)):(q1=S5,J4=null,l$($,Z,B,wJ));break;case KU:var W=null;switch(v0.tag){case 26:W=v0.memoizedState;case 5:case 27:var w=v0;if(W?yM(W):w.stateNode.complete){q1=S5,J4=null;var _=w.sibling;if(_!==null)v0=_;else{var V=w.return;V!==null?(v0=V,LG(V)):v0=null}break Z}break;default:console.error("Unexpected type of fiber triggered a suspensey commit. This is a bug in React.")}q1=S5,J4=null,l$($,Z,B,KU);break;case VZ:q1=S5,J4=null,l$($,Z,B,VZ);break;case BU:vX(),E1=FJ;break $;default:throw Error("Unexpected SuspendedReason. This is a bug in React.")}x.actQueue!==null?dH():DL();break}catch(k){hH($,k)}while(1);if(uQ(),x.H=X,x.A=N,o0=G,v0!==null)return s8;return K1=null,S0=0,fQ(),E1}function DL(){for(;v0!==null&&!IV();)pH(v0)}function pH($){var Z=$.alternate;($.mode&j0)!==_0?(j3($),Z=G0($,EX,Z,$,W8),A3($)):Z=G0($,EX,Z,$,W8),$.memoizedProps=$.pendingProps,Z===null?LG($):v0=Z}function cH($){var Z=G0($,jL,$);$.memoizedProps=$.pendingProps,Z===null?LG($):v0=Z}function jL($){var Z=$.alternate,G=($.mode&j0)!==_0;switch(G&&j3($),$.tag){case 15:case 0:Z=ZH(Z,$,$.pendingProps,$.type,void 0,S0);break;case 11:Z=ZH(Z,$,$.pendingProps,$.type.render,$.ref,S0);break;case 5:p3($);default:UH(Z,$),$=v0=pK($,W8),Z=EX(Z,$,W8)}return G&&A3($),Z}function l$($,Z,G,X){uQ(),p3(Z),w9=null,MZ=0;var N=Z.return;try{if(ML($,N,Z,G,S0)){E1=_Z,BG($,l5(G,$.current)),v0=null;return}}catch(B){if(N!==null)throw v0=N,B;E1=_Z,BG($,l5(G,$.current)),v0=null;return}if(Z.flags&32768){if(p0||X===WJ)$=!0;else if(C9||(S0&536870912)!==0)$=!1;else if(p6=$=!0,X===$$||X===Z$||X===LZ||X===VZ)X=Z4.current,X!==null&&X.tag===13&&(X.flags|=16384);lH(Z,$)}else LG(Z)}function LG($){var Z=$;do{if((Z.flags&32768)!==0){lH(Z,p6);return}var G=Z.alternate;if($=Z.return,j3(Z),G=G0(Z,wL,G,Z,W8),(Z.mode&j0)!==_0&&tK(Z),G!==null){v0=G;return}if(Z=Z.sibling,Z!==null){v0=Z;return}v0=Z=$}while(Z!==null);E1===s8&&(E1=nW)}function lH($,Z){do{var G=RL($.alternate,$);if(G!==null){G.flags&=32767,v0=G;return}if(($.mode&j0)!==_0){tK($),G=$.actualDuration;for(var X=$.child;X!==null;)G+=X.actualDuration,X=X.sibling;$.actualDuration=G}if(G=$.return,G!==null&&(G.flags|=32768,G.subtreeFlags=0,G.deletions=null),!Z&&($=$.sibling,$!==null)){v0=$;return}v0=$=G}while($!==null);E1=FJ,v0=null}function bX($,Z,G,X,N,B,W,w,_,V,k,b,D,y){$.cancelPendingCommit=null;do A7();while(d1!==s6);if(S4.flushLegacyContextWarning(),S4.flushPendingUnsafeLifecycleWarnings(),(o0&(r1|G4))!==t1)throw Error("Should not already be working.");if(c5(G),V===e2?W3(D,y,G,S1):X!==null?$L(D,y,G,X,Z!==null&&Z.alternate!==null&&Z.alternate.memoizedState.isDehydrated&&(Z.flags&256)!==0,S1):e_(D,y,G,S1),Z!==null){if(G===0&&console.error("finishedLanes should not be empty during a commit. This is a bug in React."),Z===$.current)throw Error("Cannot commit the same tree as before. This error is likely caused by a bug in React. Please file an issue.");if(B=Z.lanes|Z.childLanes,B|=uY,PQ($,G,B,W,w,_),$===K1&&(v0=K1=null,S0=0),I9=Z,n6=$,b4=G,wU=B,TU=N,Jw=X,RU=y,qw=b,f4=_J,Xw=null,Z.actualDuration!==0||(Z.subtreeFlags&10256)!==0||(Z.flags&10256)!==0?($.callbackNode=null,$.callbackPriority=0,bL(i$,function(){return AZ=window.event,f4===_J&&(f4=WU),aH(),null})):($.callbackNode=null,$.callbackPriority=0),u8=null,y6=g1(),b!==null&&ZL(y,y6,b,S1),X=(Z.flags&13878)!==0,(Z.subtreeFlags&13878)!==0||X){X=x.T,x.T=null,N=Z1.p,Z1.p=e5,W=o0,o0|=G4;try{EL($,Z,G)}finally{o0=W,Z1.p=N,x.T=X}}d1=$w,rH(),sH(),nH()}}function rH(){if(d1===$w){d1=s6;var $=n6,Z=I9,G=b4,X=(Z.flags&13878)!==0;if((Z.subtreeFlags&13878)!==0||X){X=x.T,x.T=null;var N=Z1.p;Z1.p=e5;var B=o0;o0|=G4;try{E9=G,P9=$,cQ(),EH(Z,$),P9=E9=null,G=jU;var W=kK($.containerInfo),w=G.focusedElem,_=G.selectionRange;if(W!==w&&w&&w.ownerDocument&&vK(w.ownerDocument.documentElement,w)){if(_!==null&&H3(w)){var{start:V,end:k}=_;if(k===void 0&&(k=V),"selectionStart"in w)w.selectionStart=V,w.selectionEnd=Math.min(k,w.value.length);else{var b=w.ownerDocument||document,D=b&&b.defaultView||window;if(D.getSelection){var y=D.getSelection(),t=w.textContent.length,Z0=Math.min(_.start,t),F1=_.end===void 0?Z0:Math.min(_.end,t);!y.extend&&Z0>F1&&(W=F1,F1=Z0,Z0=W);var l0=SK(w,Z0),O=SK(w,F1);if(l0&&O&&(y.rangeCount!==1||y.anchorNode!==l0.node||y.anchorOffset!==l0.offset||y.focusNode!==O.node||y.focusOffset!==O.offset)){var j=b.createRange();j.setStart(l0.node,l0.offset),y.removeAllRanges(),Z0>F1?(y.addRange(j),y.extend(O.node,O.offset)):(j.setEnd(O.node,O.offset),y.addRange(j))}}}}b=[];for(y=w;y=y.parentNode;)y.nodeType===1&&b.push({element:y,left:y.scrollLeft,top:y.scrollTop});typeof w.focus==="function"&&w.focus();for(w=0;w<b.length;w++){var v=b[w];v.element.scrollLeft=v.left,v.element.scrollTop=v.top}}yJ=!!DU,jU=DU=null}finally{o0=B,Z1.p=N,x.T=X}}$.current=Z,d1=Zw}}function sH(){if(d1===Zw){d1=s6;var $=Xw;if($!==null){y6=g1();var Z=x8,G=y6;!w1||G<=Z||(d8?d8.run(console.timeStamp.bind(console,$,Z,G,u0,g0,"secondary-light")):console.timeStamp($,Z,G,u0,g0,"secondary-light"))}$=n6,Z=I9,G=b4;var X=(Z.flags&8772)!==0;if((Z.subtreeFlags&8772)!==0||X){X=x.T,x.T=null;var N=Z1.p;Z1.p=e5;var B=o0;o0|=G4;try{E9=G,P9=$,cQ(),TH($,Z.alternate,Z),P9=E9=null}finally{o0=B,Z1.p=N,x.T=X}}$=RU,Z=qw,x8=g1(),$=Z===null?$:y6,Z=x8,G=f4===FU,X=S1,u8!==null?hK($,Z,u8,!1,X):!w1||Z<=$||(X?X.run(console.timeStamp.bind(console,G?"Commit Interrupted View Transition":"Commit",$,Z,u0,g0,G?"error":"secondary-dark")):console.timeStamp(G?"Commit Interrupted View Transition":"Commit",$,Z,u0,g0,G?"error":"secondary-dark")),d1=Qw}}function nH(){if(d1===Gw||d1===Qw){if(d1===Gw){var $=x8;x8=g1();var Z=x8,G=f4===FU;!w1||Z<=$||(d8?d8.run(console.timeStamp.bind(console,G?"Interrupted View Transition":"Starting Animation",$,Z,u0,g0,G?"error":"secondary-light")):console.timeStamp(G?"Interrupted View Transition":"Starting Animation",$,Z,u0,g0,G?" error":"secondary-light")),f4!==FU&&(f4=eW)}d1=s6,OV(),$=n6;var X=I9;Z=b4,G=Jw;var N=X.actualDuration!==0||(X.subtreeFlags&10256)!==0||(X.flags&10256)!==0;N?d1=LJ:(d1=s6,I9=n6=null,oH($,$.pendingLanes),G$=0,IZ=null);var B=$.pendingLanes;if(B===0&&(r6=null),N||$M($),B=E(Z),X=X.stateNode,H5&&typeof H5.onCommitFiberRoot==="function")try{var W=(X.current.flags&128)===128;switch(B){case e5:var w=TY;break;case j4:w=zY;break;case N8:w=i$;break;case xG:w=_Y;break;default:w=i$}H5.onCommitFiberRoot(t$,X,w,W)}catch(b){Y8||(Y8=!0,console.error("React instrumentation encountered an error: %o",b))}if(U8&&$.memoizedUpdaters.clear(),CL(),G!==null){W=x.T,w=Z1.p,Z1.p=e5,x.T=null;try{var _=$.onRecoverableError;for(X=0;X<G.length;X++){var V=G[X],k=AL(V.stack);G0(V.source,_,V.value,k)}}finally{x.T=W,Z1.p=w}}(b4&3)!==0&&A7(),Q8($),B=$.pendingLanes,(Z&261930)!==0&&(B&42)!==0?(GJ=!0,$===zU?CZ++:(CZ=0,zU=$)):CZ=0,N||u2(Z,x8),v7(0,!1)}}function AL($){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 oH($,Z){($.pooledCacheLanes&=Z)===0&&(Z=$.pooledCache,Z!=null&&($.pooledCache=null,F7(Z)))}function A7(){return rH(),sH(),nH(),aH()}function aH(){if(d1!==LJ)return!1;var $=n6,Z=wU;wU=0;var G=E(b4),X=N8===0||N8>G?N8:G;G=x.T;var N=Z1.p;try{Z1.p=X,x.T=null;var B=TU;TU=null,X=n6;var W=b4;if(d1=s6,I9=n6=null,b4=0,(o0&(r1|G4))!==t1)throw Error("Cannot flush passive effects while already rendering.");c5(W),_U=!0,VJ=!1;var w=0;if(u8=null,w=o1(),f4===eW)H7(x8,w,d8);else{var _=x8,V=w,k=f4===WU;!w1||V<=_||(S1?S1.run(console.timeStamp.bind(console,k?"Waiting for Paint":"Waiting",_,V,u0,g0,"secondary-light")):console.timeStamp(k?"Waiting for Paint":"Waiting",_,V,u0,g0,"secondary-light"))}_=o0,o0|=G4;var b=X.current;cQ(),SH(b);var D=X.current;b=RU,cQ(),OH(X,D,W,B,b),$M(X),o0=_;var y=o1();if(D=w,b=S1,u8!==null?hK(D,y,u8,!0,b):!w1||y<=D||(b?b.run(console.timeStamp.bind(console,"Remaining Effects",D,y,u0,g0,"secondary-dark")):console.timeStamp("Remaining Effects",D,y,u0,g0,"secondary-dark")),u2(W,y),v7(0,!1),VJ?X===IZ?G$++:(G$=0,IZ=X):G$=0,VJ=_U=!1,H5&&typeof H5.onPostCommitFiberRoot==="function")try{H5.onPostCommitFiberRoot(t$,X)}catch(Z0){Y8||(Y8=!0,console.error("React instrumentation encountered an error: %o",Z0))}var t=X.current.stateNode;return t.effectDuration=0,t.passiveEffectDuration=0,!0}finally{Z1.p=N,x.T=G,oH($,Z)}}function iH($,Z,G){Z=l5(G,Z),eK(Z),Z=HX($.stateNode,Z,2),$=_6($,Z,2),$!==null&&(H6($,2),Q8($))}function $1($,Z,G){if(O9=!1,$.tag===3)iH($,$,G);else{for(;Z!==null;){if(Z.tag===3){iH(Z,$,G);return}if(Z.tag===1){var X=Z.stateNode;if(typeof Z.type.getDerivedStateFromError==="function"||typeof X.componentDidCatch==="function"&&(r6===null||!r6.has(X))){$=l5(G,$),eK($),G=MX(2),X=_6(Z,G,2),X!==null&&(FX(G,X,Z,$),H6(X,2),Q8(X));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`,G)}}function
|
|
157
|
+
%s`,G)}}function fX($,Z,G){var X=$.pingCache;if(X===null){X=$.pingCache=new sE;var N=new Set;X.set(Z,N)}else N=X.get(Z),N===void 0&&(N=new Set,X.set(Z,N));N.has(G)||(HU=!0,N.add(G),X=SL.bind(null,$,Z,G),U8&&S7($,G),Z.then(X,X))}function SL($,Z,G){var X=$.pingCache;X!==null&&X.delete(Z),$.pingedLanes|=$.suspendedLanes&G,$.warmLanes&=~G,(G&127)!==0?0>H8&&(g6=H8=g1(),ZZ=iG("Promise Resolved"),h6=tG):(G&4194048)!==0&&0>W4&&(M8=W4=g1(),GZ=iG("Promise Resolved"),sY=tG),bH()&&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`),K1===$&&(S0&G)===G&&(E1===d6||E1===
|
|
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`),K1===$&&(S0&G)===G&&(E1===d6||E1===MJ&&(S0&62914560)===S0&&o1()-TJ<iW?(o0&r1)===t1&&c$($,0):MU|=G,Q$===S0&&(Q$=0)),Q8($)}function tH($,Z){Z===0&&(Z=j$()),$=B5($,Z),$!==null&&(H6($,Z),Q8($))}function vL($){var Z=$.memoizedState,G=0;Z!==null&&(G=Z.retryLane),tH($,G)}function kL($,Z){var G=0;switch($.tag){case 31:case 13:var{stateNode:X,memoizedState:N}=$;N!==null&&(G=N.retryLane);break;case 19:X=$.stateNode;break;case 22:X=$.stateNode._retryCache;break;default:throw Error("Pinged unknown suspense boundary type. This is probably a bug in React.")}X!==null&&X.delete(Z),tH($,G)}function yX($,Z,G){if((Z.subtreeFlags&67117056)!==0)for(Z=Z.child;Z!==null;){var X=$,N=Z,B=N.type===kG;B=G||B,N.tag!==22?N.flags&67108864?B&&G0(N,eH,X,N):yX(X,N,B):N.memoizedState===null&&(B&&N.flags&8192?G0(N,eH,X,N):N.subtreeFlags&67108864&&G0(N,yX,X,N,B)),Z=Z.sibling}}function eH($,Z){H1(!0);try{CH(Z),vH(Z),IH($,Z.alternate,Z,!1),DH($,Z,0,null,!1,0)}finally{H1(!1)}}function $M($){var Z=!0;$.current.mode&(M5|A4)||(Z=!1),yX($,$.current,Z)}function ZM($){if((o0&r1)===t1){var Z=$.tag;if(Z===3||Z===1||Z===0||Z===11||Z===14||Z===15){if(Z=d($)||"ReactComponent",EJ!==null){if(EJ.has(Z))return;EJ.add(Z)}else EJ=new Set([Z]);G0($,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 S7($,Z){U8&&$.memoizedUpdaters.forEach(function(G){G7($,G,Z)})}function bL($,Z){var G=x.actQueue;return G!==null?(G.push(Z),aE):RY($,Z)}function fL($){bH()&&x.actQueue===null&&G0($,function(){console.error(`An update to %s inside a test was not wrapped in act(...).
|
|
167
167
|
|
|
168
168
|
When testing, code that causes React state updates should be wrapped into act(...):
|
|
169
169
|
|
|
@@ -172,86 +172,86 @@ act(() => {
|
|
|
172
172
|
});
|
|
173
173
|
/* assert on the output */
|
|
174
174
|
|
|
175
|
-
This ensures that you're testing the behavior the user would see in the browser. Learn more at https://react.dev/link/wrap-tests-with-act`,d($))})}function Q8($){$!==D9&&$.next===null&&(D9===null?PJ=D9=$:D9=D9.next=$),CJ=!0,x.actQueue!==null?zU||(zU=!0,QH()):_U||(_U=!0,QH())}function v7($,Z){if(!LU&&CJ){LU=!0;do{var G=!1;for(var X=PJ;X!==null;){if(!Z)if($!==0){var N=X.pendingLanes;if(N===0)var B=0;else{var{suspendedLanes:W,pingedLanes:R}=X;B=(1<<31-R5(42|$)+1)-1,B&=N&~(W&~R),B=B&201326741?B&201326741|1:B?B|2:0}B!==0&&(G=!0,ZH(X,B))}else B=S0,B=z2(X,X===K1?B:0,X.cancelPendingCommit!==null||X.timeoutHandle!==Y$),(B&3)===0||L2(X,B)||(G=!0,ZH(X,B));X=X.next}}while(G);LU=!1}}function SL(){AZ=window.event,fX()}function fX(){CJ=zU=_U=!1;var $=0;o6!==0&&hL()&&($=o6);for(var Z=o1(),G=null,X=PJ;X!==null;){var N=X.next,B=eM(X,Z);if(B===0)X.next=null,G===null?PJ=N:G.next=N,N===null&&(D9=G);else if(G=X,$!==0||(B&3)!==0)CJ=!0;X=N}d1!==s6&&d1!==LJ||v7($,!1),o6!==0&&(o6=0)}function eM($,Z){for(var{suspendedLanes:G,pingedLanes:X,expirationTimes:N}=$,B=$.pendingLanes&-62914561;0<B;){var W=31-R5(B),R=1<<W,z=N[W];if(z===-1){if((R&G)===0||(R&X)!==0)N[W]=eq(R,Z)}else z<=Z&&($.expiredLanes|=R);B&=~R}if(Z=K1,G=S0,G=z2($,$===Z?G:0,$.cancelPendingCommit!==null||$.timeoutHandle!==Y$),X=$.callbackNode,G===0||$===Z&&(q1===$$||q1===Z$)||$.cancelPendingCommit!==null)return X!==null&&yX(X),$.callbackNode=null,$.callbackPriority=0;if((G&3)===0||L2($,G)){if(Z=G&-G,Z!==$.callbackPriority||x.actQueue!==null&&X!==VU)yX(X);else return Z;switch(E(G)){case e5:case j4:G=wY;break;case N8:G=i$;break;case xG:G=TY;break;default:G=i$}return X=$H.bind(null,$),x.actQueue!==null?(x.actQueue.push(X),G=VU):G=WY(G,X),$.callbackPriority=Z,$.callbackNode=G,Z}return X!==null&&yX(X),$.callbackPriority=2,$.callbackNode=null,2}function $H($,Z){if(GJ=QJ=!1,AZ=window.event,d1!==s6&&d1!==LJ)return $.callbackNode=null,$.callbackPriority=0,null;var G=$.callbackNode;if(f4===zJ&&(f4=HU),A7()&&$.callbackNode!==G)return null;var X=S0;if(X=z2($,$===K1?X:0,$.cancelPendingCommit!==null||$.timeoutHandle!==Y$),X===0)return null;return kM($,X,Z),eM($,o1()),$.callbackNode!=null&&$.callbackNode===G?$H.bind(null,$):null}function ZH($,Z){if(A7())return null;QJ=GJ,GJ=!1,kM($,Z,!0)}function yX($){$!==VU&&$!==null&&zV($)}function QH(){x.actQueue!==null&&x.actQueue.push(function(){return fX(),null}),ZP(function(){(o0&(r1|G4))!==t1?WY(RY,SL):fX()})}function gX(){if(o6===0){var $=s2;$===0&&($=yG,yG<<=1,(yG&261888)===0&&(yG=256)),o6=$}return o6}function GH($){if($==null||typeof $==="symbol"||typeof $==="boolean")return null;if(typeof $==="function")return $;return Y1($,"action"),N7(""+$)}function JH($,Z){var G=Z.ownerDocument.createElement("input");return G.name=Z.name,G.value=Z.value,$.id&&G.setAttribute("form",$.id),Z.parentNode.insertBefore(G,Z),$=new FormData($),G.parentNode.removeChild(G),$}function vL($,Z,G,X,N){if(Z==="submit"&&G&&G.stateNode===N){var B=GH((N[w5]||null).action),W=X.submitter;W&&(Z=(Z=W[w5]||null)?GH(Z.formAction):W.getAttribute("formAction"),Z!==null&&(B=Z,W=null));var R=new cG("action","action",null,X,N);$.push({event:R,listeners:[{instance:null,listener:function(){if(X.defaultPrevented){if(o6!==0){var z=W?JH(N,W):new FormData(N),V={pending:!0,data:z,method:N.method,action:B};Object.freeze(V),GX(G,V,null,z)}}else typeof B==="function"&&(R.preventDefault(),z=W?JH(N,W):new FormData(N),V={pending:!0,data:z,method:N.method,action:B},Object.freeze(V),GX(G,V,B,z))},currentTarget:N}]})}}function VG($,Z,G){$.currentTarget=G;try{Z($)}catch(X){bY(X)}$.currentTarget=null}function qH($,Z){Z=(Z&4)!==0;for(var G=0;G<$.length;G++){var X=$[G];$:{var N=void 0,B=X.event;if(X=X.listeners,Z)for(var W=X.length-1;0<=W;W--){var R=X[W],z=R.instance,V=R.currentTarget;if(R=R.listener,z!==N&&B.isPropagationStopped())break $;z!==null?G0(z,VG,B,R,V):VG(B,R,V),N=z}else for(W=0;W<X.length;W++){if(R=X[W],z=R.instance,V=R.currentTarget,R=R.listener,z!==N&&B.isPropagationStopped())break $;z!==null?G0(z,VG,B,R,V):VG(B,R,V),N=z}}}}function c0($,Z){EU.has($)||console.error('Did not expect a listenToNonDelegatedEvent() call for "%s". This is a bug in React. Please file an issue.',$);var G=Z[_Y];G===void 0&&(G=Z[_Y]=new Set);var X=$+"__bubble";G.has(X)||(XH(Z,$,2,!1),G.add(X))}function hX($,Z,G){EU.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 X=0;Z&&(X|=4),XH(G,$,X,Z)}function xX($){if(!$[IJ]){$[IJ]=!0,QF.forEach(function(G){G!=="selectionchange"&&(EU.has(G)||hX(G,!1,$),hX(G,!0,$))});var Z=$.nodeType===9?$:$.ownerDocument;Z===null||Z[IJ]||(Z[IJ]=!0,hX("selectionchange",!1,Z))}}function XH($,Z,G,X){switch(xH(Z)){case e5:var N=MV;break;case j4:N=HV;break;default:N=ZY}G=N.bind(null,Z,G,$),N=void 0,!PY||Z!=="touchstart"&&Z!=="touchmove"&&Z!=="wheel"||(N=!0),X?N!==void 0?$.addEventListener(Z,G,{capture:!0,passive:N}):$.addEventListener(Z,G,!0):N!==void 0?$.addEventListener(Z,G,{passive:N}):$.addEventListener(Z,G,!1)}function uX($,Z,G,X,N){var B=X;if((Z&1)===0&&(Z&2)===0&&X!==null)$:for(;;){if(X===null)return;var W=X.tag;if(W===3||W===4){var R=X.stateNode.containerInfo;if(R===N)break;if(W===4)for(W=X.return;W!==null;){var z=W.tag;if((z===3||z===4)&&W.stateNode.containerInfo===N)return;W=W.return}for(;R!==null;){if(W=q0(R),W===null)return;if(z=W.tag,z===5||z===6||z===26||z===27){X=B=W;continue $}R=R.parentNode}}X=X.return}wK(function(){var V=B,k=U3(G),b=[];$:{var D=xF.get($);if(D!==void 0){var y=cG,t=$;switch($){case"keypress":if(AQ(G)===0)break $;case"keydown":case"keyup":y=YE;break;case"focusin":t="focus",y=DY;break;case"focusout":t="blur",y=DY;break;case"beforeblur":case"afterblur":y=DY;break;case"click":if(G.button===2)break $;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":y=CF;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":y=oV;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":y=KE;break;case fF:case yF:case gF:y=tV;break;case hF:y=ME;break;case"scroll":case"scrollend":y=sV;break;case"wheel":y=FE;break;case"copy":case"cut":case"paste":y=$E;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":y=OF;break;case"toggle":case"beforetoggle":y=RE}var Z0=(Z&4)!==0,F1=!Z0&&($==="scroll"||$==="scrollend"),l0=Z0?D!==null?D+"Capture":null:D;Z0=[];for(var I=V,j;I!==null;){var v=I;if(j=v.stateNode,v=v.tag,v!==5&&v!==26&&v!==27||j===null||l0===null||(v=K7(I,l0),v!=null&&Z0.push(k7(I,v,j))),F1)break;I=I.return}0<Z0.length&&(D=new y(D,t,null,G,k),b.push({event:D,listeners:Z0}))}}if((Z&7)===0){$:{if(D=$==="mouseover"||$==="pointerover",y=$==="mouseout"||$==="pointerout",D&&G!==c7&&(t=G.relatedTarget||G.fromElement)&&(q0(t)||t[A6]))break $;if(y||D){if(D=k.window===k?k:(D=k.ownerDocument)?D.defaultView||D.parentWindow:window,y){if(t=G.relatedTarget||G.toElement,y=V,t=t?q0(t):null,t!==null&&(F1=g(t),Z0=t.tag,t!==F1||Z0!==5&&Z0!==27&&Z0!==6))t=null}else y=null,t=V;if(y!==t){if(Z0=CF,v="onMouseLeave",l0="onMouseEnter",I="mouse",$==="pointerout"||$==="pointerover")Z0=OF,v="onPointerLeave",l0="onPointerEnter",I="pointer";if(F1=y==null?D:P0(y),j=t==null?D:P0(t),D=new Z0(v,I+"leave",y,G,k),D.target=F1,D.relatedTarget=j,v=null,q0(k)===V&&(Z0=new Z0(l0,I+"enter",t,G,k),Z0.target=j,Z0.relatedTarget=F1,v=Z0),F1=v,y&&t)Z:{Z0=kL,l0=y,I=t,j=0;for(v=l0;v;v=Z0(v))j++;v=0;for(var u=I;u;u=Z0(u))v++;for(;0<j-v;)l0=Z0(l0),j--;for(;0<v-j;)I=Z0(I),v--;for(;j--;){if(l0===I||I!==null&&l0===I.alternate){Z0=l0;break Z}l0=Z0(l0),I=Z0(I)}Z0=null}else Z0=null;y!==null&&YH(b,D,y,Z0,!1),t!==null&&F1!==null&&YH(b,F1,t,Z0,!0)}}}$:{if(D=V?P0(V):window,y=D.nodeName&&D.nodeName.toLowerCase(),y==="select"||y==="input"&&D.type==="file")var $0=PK;else if(VK(D))if(kF)$0=lz;else{$0=pz;var V0=dz}else y=D.nodeName,!y||y.toLowerCase()!=="input"||D.type!=="checkbox"&&D.type!=="radio"?V&&U7(V.elementType)&&($0=PK):$0=cz;if($0&&($0=$0($,V))){EK(b,$0,G,k);break $}V0&&V0($,D,V),$==="focusout"&&V&&D.type==="number"&&V.memoizedProps.value!=null&&Q3(D,"number",D.value)}switch(V0=V?P0(V):window,$){case"focusin":if(VK(V0)||V0.contentEditable==="true")q9=V0,AY=V,i7=null;break;case"focusout":i7=AY=q9=null;break;case"mousedown":SY=!0;break;case"contextmenu":case"mouseup":case"dragend":SY=!1,SK(b,G,k);break;case"selectionchange":if(zE)break;case"keydown":case"keyup":SK(b,G,k)}var H0;if(jY)$:{switch($){case"compositionstart":var U0="onCompositionStart";break $;case"compositionend":U0="onCompositionEnd";break $;case"compositionupdate":U0="onCompositionUpdate";break $}U0=void 0}else J9?zK($,G)&&(U0="onCompositionEnd"):$==="keydown"&&G.keyCode===DF&&(U0="onCompositionStart");if(U0&&(jF&&G.locale!=="ko"&&(J9||U0!=="onCompositionStart"?U0==="onCompositionEnd"&&J9&&(H0=TK()):(S6=k,CY=("value"in S6)?S6.value:S6.textContent,J9=!0)),V0=EG(V,U0),0<V0.length&&(U0=new IF(U0,$,null,G,k),b.push({event:U0,listeners:V0}),H0?U0.data=H0:(H0=LK(G),H0!==null&&(U0.data=H0)))),H0=TE?hz($,G):xz($,G))U0=EG(V,"onBeforeInput"),0<U0.length&&(V0=new QE("onBeforeInput","beforeinput",null,G,k),b.push({event:V0,listeners:U0}),V0.data=H0);vL(b,$,V,G,k)}qH(b,Z)})}function k7($,Z,G){return{instance:$,listener:Z,currentTarget:G}}function EG($,Z){for(var G=Z+"Capture",X=[];$!==null;){var N=$,B=N.stateNode;if(N=N.tag,N!==5&&N!==26&&N!==27||B===null||(N=K7($,G),N!=null&&X.unshift(k7($,N,B)),N=K7($,Z),N!=null&&X.push(k7($,N,B))),$.tag===3)return X;$=$.return}return[]}function kL($){if($===null)return null;do $=$.return;while($&&$.tag!==5&&$.tag!==27);return $?$:null}function YH($,Z,G,X,N){for(var B=Z._reactName,W=[];G!==null&&G!==X;){var R=G,z=R.alternate,V=R.stateNode;if(R=R.tag,z!==null&&z===X)break;R!==5&&R!==26&&R!==27||V===null||(z=V,N?(V=K7(G,B),V!=null&&W.unshift(k7(G,V,z))):N||(V=K7(G,B),V!=null&&W.push(k7(G,V,z)))),G=G.return}W.length!==0&&$.push({event:Z,listeners:W})}function mX($,Z){bz($,Z),$!=="input"&&$!=="textarea"&&$!=="select"||Z==null||Z.value!==null||EF||(EF=!0,$==="select"&&Z.multiple?console.error("`value` prop on `%s` should not be null. Consider using an empty array when `multiple` is set to `true` to clear the component or `undefined` for uncontrolled components.",$):console.error("`value` prop on `%s` should not be null. Consider using an empty string to clear the component or `undefined` for uncontrolled components.",$));var G={registrationNameDependencies:m2,possibleRegistrationNames:zY};U7($)||typeof Z.is==="string"||yz($,Z,G),Z.contentEditable&&!Z.suppressContentEditableWarning&&Z.children!=null&&console.error("A component is `contentEditable` and contains `children` managed by React. It is now your responsibility to guarantee that none of those nodes are unexpectedly modified or duplicated. This is probably not intentional.")}function n1($,Z,G,X){Z!==G&&(G=C6(G),C6(Z)!==G&&(X[$]=Z))}function bL($,Z,G){Z.forEach(function(X){G[KH(X)]=X==="style"?pX($):$.getAttribute(X)})}function G8($,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 UH($,Z){return $=$.namespaceURI===mG||$.namespaceURI===$9?$.ownerDocument.createElementNS($.namespaceURI,$.tagName):$.ownerDocument.createElement($.tagName),$.innerHTML=Z,$.innerHTML}function C6($){return B6($)&&(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.",_2($)),s1($)),(typeof $==="string"?$:""+$).replace(rE,`
|
|
176
|
-
`).replace(sE,"")}function NH($,Z){return Z=C6(Z),C6($)===Z?!0:!1}function U1($,Z,G,X,N,B){switch(G){case"children":if(typeof X==="string")jQ(X,Z,!1),Z==="body"||Z==="textarea"&&X===""||Y7($,X);else if(typeof X==="number"||typeof X==="bigint")jQ(""+X,Z,!1),Z!=="body"&&Y7($,""+X);break;case"className":IQ($,"class",X);break;case"tabIndex":IQ($,"tabindex",X);break;case"dir":case"role":case"viewBox":case"width":case"height":IQ($,G,X);break;case"style":FK($,X,B);break;case"data":if(Z!=="object"){IQ($,"data",X);break}case"src":case"href":if(X===""&&(Z!=="a"||G!=="href")){G==="src"?console.error('An empty string ("") was passed to the %s attribute. This may cause the browser to download the whole page again over the network. To fix this, either do not render the element at all or pass null to %s instead of an empty string.',G,G):console.error('An empty string ("") was passed to the %s attribute. To fix this, either do not render the element at all or pass null to %s instead of an empty string.',G,G),$.removeAttribute(G);break}if(X==null||typeof X==="function"||typeof X==="symbol"||typeof X==="boolean"){$.removeAttribute(G);break}Y1(X,G),X=N7(""+X),$.setAttribute(G,X);break;case"action":case"formAction":if(X!=null&&(Z==="form"?G==="formAction"?console.error("You can only pass the formAction prop to <input> or <button>. Use the action prop on <form>."):typeof X==="function"&&(N.encType==null&&N.method==null||jJ||(jJ=!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.")),N.target==null||DJ||(DJ=!0,console.error("Cannot specify a target for a form that specifies a function as the action. The function will always be executed in the same window."))):Z==="input"||Z==="button"?G==="action"?console.error("You can only pass the action prop to <form>. Use the formAction prop on <input> or <button>."):Z!=="input"||N.type==="submit"||N.type==="image"||OJ?Z!=="button"||N.type==null||N.type==="submit"||OJ?typeof X==="function"&&(N.name==null||UR||(UR=!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.')),N.formEncType==null&&N.formMethod==null||jJ||(jJ=!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.")),N.formTarget==null||DJ||(DJ=!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."))):(OJ=!0,console.error('A button can only specify a formAction along with type="submit" or no type.')):(OJ=!0,console.error('An input can only specify a formAction along with type="submit" or type="image".')):G==="action"?console.error("You can only pass the action prop to <form>."):console.error("You can only pass the formAction prop to <input> or <button>.")),typeof X==="function"){$.setAttribute(G,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof B==="function"&&(G==="formAction"?(Z!=="input"&&U1($,Z,"name",N.name,N,null),U1($,Z,"formEncType",N.formEncType,N,null),U1($,Z,"formMethod",N.formMethod,N,null),U1($,Z,"formTarget",N.formTarget,N,null)):(U1($,Z,"encType",N.encType,N,null),U1($,Z,"method",N.method,N,null),U1($,Z,"target",N.target,N,null)));if(X==null||typeof X==="symbol"||typeof X==="boolean"){$.removeAttribute(G);break}Y1(X,G),X=N7(""+X),$.setAttribute(G,X);break;case"onClick":X!=null&&(typeof X!=="function"&&G8(G,X),$.onclick=I8);break;case"onScroll":X!=null&&(typeof X!=="function"&&G8(G,X),c0("scroll",$));break;case"onScrollEnd":X!=null&&(typeof X!=="function"&&G8(G,X),c0("scrollend",$));break;case"dangerouslySetInnerHTML":if(X!=null){if(typeof X!=="object"||!("__html"in X))throw Error("`props.dangerouslySetInnerHTML` must be in the form `{__html: ...}`. Please visit https://react.dev/link/dangerously-set-inner-html for more information.");if(G=X.__html,G!=null){if(N.children!=null)throw Error("Can only set one of `children` or `props.dangerouslySetInnerHTML`.");$.innerHTML=G}}break;case"multiple":$.multiple=X&&typeof X!=="function"&&typeof X!=="symbol";break;case"muted":$.muted=X&&typeof X!=="function"&&typeof X!=="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(X==null||typeof X==="function"||typeof X==="boolean"||typeof X==="symbol"){$.removeAttribute("xlink:href");break}Y1(X,G),G=N7(""+X),$.setAttributeNS(J$,"xlink:href",G);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":X!=null&&typeof X!=="function"&&typeof X!=="symbol"?(Y1(X,G),$.setAttribute(G,""+X)):$.removeAttribute(G);break;case"inert":X!==""||AJ[G]||(AJ[G]=!0,console.error("Received an empty string for a boolean attribute `%s`. This will treat the attribute as if it were false. Either pass `false` to silence this warning, or pass `true` if you used an empty string in earlier versions of React to indicate this attribute is true.",G));case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":X&&typeof X!=="function"&&typeof X!=="symbol"?$.setAttribute(G,""):$.removeAttribute(G);break;case"capture":case"download":X===!0?$.setAttribute(G,""):X!==!1&&X!=null&&typeof X!=="function"&&typeof X!=="symbol"?(Y1(X,G),$.setAttribute(G,X)):$.removeAttribute(G);break;case"cols":case"rows":case"size":case"span":X!=null&&typeof X!=="function"&&typeof X!=="symbol"&&!isNaN(X)&&1<=X?(Y1(X,G),$.setAttribute(G,X)):$.removeAttribute(G);break;case"rowSpan":case"start":X==null||typeof X==="function"||typeof X==="symbol"||isNaN(X)?$.removeAttribute(G):(Y1(X,G),$.setAttribute(G,X));break;case"popover":c0("beforetoggle",$),c0("toggle",$),CQ($,"popover",X);break;case"xlinkActuate":C8($,J$,"xlink:actuate",X);break;case"xlinkArcrole":C8($,J$,"xlink:arcrole",X);break;case"xlinkRole":C8($,J$,"xlink:role",X);break;case"xlinkShow":C8($,J$,"xlink:show",X);break;case"xlinkTitle":C8($,J$,"xlink:title",X);break;case"xlinkType":C8($,J$,"xlink:type",X);break;case"xmlBase":C8($,PU,"xml:base",X);break;case"xmlLang":C8($,PU,"xml:lang",X);break;case"xmlSpace":C8($,PU,"xml:space",X);break;case"is":B!=null&&console.error('Cannot update the "is" prop after it has been initialized.'),CQ($,"is",X);break;case"innerText":case"textContent":break;case"popoverTarget":NR||X==null||typeof X!=="object"||(NR=!0,console.error("The `popoverTarget` prop expects the ID of an Element as a string. Received %s instead.",X));default:!(2<G.length)||G[0]!=="o"&&G[0]!=="O"||G[1]!=="n"&&G[1]!=="N"?(G=WK(G),CQ($,G,X)):m2.hasOwnProperty(G)&&X!=null&&typeof X!=="function"&&G8(G,X)}}function dX($,Z,G,X,N,B){switch(G){case"style":FK($,X,B);break;case"dangerouslySetInnerHTML":if(X!=null){if(typeof X!=="object"||!("__html"in X))throw Error("`props.dangerouslySetInnerHTML` must be in the form `{__html: ...}`. Please visit https://react.dev/link/dangerously-set-inner-html for more information.");if(G=X.__html,G!=null){if(N.children!=null)throw Error("Can only set one of `children` or `props.dangerouslySetInnerHTML`.");$.innerHTML=G}}break;case"children":typeof X==="string"?Y7($,X):(typeof X==="number"||typeof X==="bigint")&&Y7($,""+X);break;case"onScroll":X!=null&&(typeof X!=="function"&&G8(G,X),c0("scroll",$));break;case"onScrollEnd":X!=null&&(typeof X!=="function"&&G8(G,X),c0("scrollend",$));break;case"onClick":X!=null&&(typeof X!=="function"&&G8(G,X),$.onclick=I8);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(m2.hasOwnProperty(G))X!=null&&typeof X!=="function"&&G8(G,X);else $:{if(G[0]==="o"&&G[1]==="n"&&(N=G.endsWith("Capture"),Z=G.slice(2,N?G.length-7:void 0),B=$[w5]||null,B=B!=null?B[G]:null,typeof B==="function"&&$.removeEventListener(Z,B,N),typeof X==="function")){typeof B!=="function"&&B!==null&&(G in $?$[G]=null:$.hasAttribute(G)&&$.removeAttribute(G)),$.addEventListener(Z,X,N);break $}G in $?$[G]=X:X===!0?$.setAttribute(G,""):CQ($,G,X)}}}function Q5($,Z,G){switch(mX(Z,G),Z){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":c0("error",$),c0("load",$);var X=!1,N=!1,B;for(B in G)if(G.hasOwnProperty(B)){var W=G[B];if(W!=null)switch(B){case"src":X=!0;break;case"srcSet":N=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(Z+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");default:U1($,Z,B,W,G,null)}}N&&U1($,Z,"srcSet",G.srcSet,G,null),X&&U1($,Z,"src",G.src,G,null);return;case"input":F6("input",G),c0("invalid",$);var R=B=W=N=null,z=null,V=null;for(X in G)if(G.hasOwnProperty(X)){var k=G[X];if(k!=null)switch(X){case"name":N=k;break;case"type":W=k;break;case"checked":z=k;break;case"defaultChecked":V=k;break;case"value":B=k;break;case"defaultValue":R=k;break;case"children":case"dangerouslySetInnerHTML":if(k!=null)throw Error(Z+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");break;default:U1($,Z,X,k,G,null)}}tN($,G),eN($,B,R,z,V,W,N,!1);return;case"select":F6("select",G),c0("invalid",$),X=W=B=null;for(N in G)if(G.hasOwnProperty(N)&&(R=G[N],R!=null))switch(N){case"value":B=R;break;case"defaultValue":W=R;break;case"multiple":X=R;default:U1($,Z,N,R,G,null)}QK($,G),Z=B,G=W,$.multiple=!!X,Z!=null?S$($,!!X,Z,!1):G!=null&&S$($,!!X,G,!0);return;case"textarea":F6("textarea",G),c0("invalid",$),B=N=X=null;for(W in G)if(G.hasOwnProperty(W)&&(R=G[W],R!=null))switch(W){case"value":X=R;break;case"defaultValue":N=R;break;case"children":B=R;break;case"dangerouslySetInnerHTML":if(R!=null)throw Error("`dangerouslySetInnerHTML` does not make sense on <textarea>.");break;default:U1($,Z,W,R,G,null)}GK($,G),qK($,X,N,B);return;case"option":$K($,G);for(z in G)if(G.hasOwnProperty(z)&&(X=G[z],X!=null))switch(z){case"selected":$.selected=X&&typeof X!=="function"&&typeof X!=="symbol";break;default:U1($,Z,z,X,G,null)}return;case"dialog":c0("beforetoggle",$),c0("toggle",$),c0("cancel",$),c0("close",$);break;case"iframe":case"object":c0("load",$);break;case"video":case"audio":for(X=0;X<OZ.length;X++)c0(OZ[X],$);break;case"image":c0("error",$),c0("load",$);break;case"details":c0("toggle",$);break;case"embed":case"source":case"link":c0("error",$),c0("load",$);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(V in G)if(G.hasOwnProperty(V)&&(X=G[V],X!=null))switch(V){case"children":case"dangerouslySetInnerHTML":throw Error(Z+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");default:U1($,Z,V,X,G,null)}return;default:if(U7(Z)){for(k in G)G.hasOwnProperty(k)&&(X=G[k],X!==void 0&&dX($,Z,k,X,G,void 0));return}}for(R in G)G.hasOwnProperty(R)&&(X=G[R],X!=null&&U1($,Z,R,X,G,null))}function fL($,Z,G,X){switch(mX(Z,X),Z){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var N=null,B=null,W=null,R=null,z=null,V=null,k=null;for(y in G){var b=G[y];if(G.hasOwnProperty(y)&&b!=null)switch(y){case"checked":break;case"value":break;case"defaultValue":z=b;default:X.hasOwnProperty(y)||U1($,Z,y,null,X,b)}}for(var D in X){var y=X[D];if(b=G[D],X.hasOwnProperty(D)&&(y!=null||b!=null))switch(D){case"type":B=y;break;case"name":N=y;break;case"checked":V=y;break;case"defaultChecked":k=y;break;case"value":W=y;break;case"defaultValue":R=y;break;case"children":case"dangerouslySetInnerHTML":if(y!=null)throw Error(Z+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");break;default:y!==b&&U1($,Z,D,y,X,b)}}Z=G.type==="checkbox"||G.type==="radio"?G.checked!=null:G.value!=null,X=X.type==="checkbox"||X.type==="radio"?X.checked!=null:X.value!=null,Z||!X||YR||(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"),YR=!0),!Z||X||XR||(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"),XR=!0),Z3($,W,R,z,V,k,B,N);return;case"select":y=W=R=D=null;for(B in G)if(z=G[B],G.hasOwnProperty(B)&&z!=null)switch(B){case"value":break;case"multiple":y=z;default:X.hasOwnProperty(B)||U1($,Z,B,null,X,z)}for(N in X)if(B=X[N],z=G[N],X.hasOwnProperty(N)&&(B!=null||z!=null))switch(N){case"value":D=B;break;case"defaultValue":R=B;break;case"multiple":W=B;default:B!==z&&U1($,Z,N,B,X,z)}X=R,Z=W,G=y,D!=null?S$($,!!Z,D,!1):!!G!==!!Z&&(X!=null?S$($,!!Z,X,!0):S$($,!!Z,Z?[]:"",!1));return;case"textarea":y=D=null;for(R in G)if(N=G[R],G.hasOwnProperty(R)&&N!=null&&!X.hasOwnProperty(R))switch(R){case"value":break;case"children":break;default:U1($,Z,R,null,X,N)}for(W in X)if(N=X[W],B=G[W],X.hasOwnProperty(W)&&(N!=null||B!=null))switch(W){case"value":D=N;break;case"defaultValue":y=N;break;case"children":break;case"dangerouslySetInnerHTML":if(N!=null)throw Error("`dangerouslySetInnerHTML` does not make sense on <textarea>.");break;default:N!==B&&U1($,Z,W,N,X,B)}JK($,D,y);return;case"option":for(var t in G)if(D=G[t],G.hasOwnProperty(t)&&D!=null&&!X.hasOwnProperty(t))switch(t){case"selected":$.selected=!1;break;default:U1($,Z,t,null,X,D)}for(z in X)if(D=X[z],y=G[z],X.hasOwnProperty(z)&&D!==y&&(D!=null||y!=null))switch(z){case"selected":$.selected=D&&typeof D!=="function"&&typeof D!=="symbol";break;default:U1($,Z,z,D,X,y)}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 Z0 in G)D=G[Z0],G.hasOwnProperty(Z0)&&D!=null&&!X.hasOwnProperty(Z0)&&U1($,Z,Z0,null,X,D);for(V in X)if(D=X[V],y=G[V],X.hasOwnProperty(V)&&D!==y&&(D!=null||y!=null))switch(V){case"children":case"dangerouslySetInnerHTML":if(D!=null)throw Error(Z+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");break;default:U1($,Z,V,D,X,y)}return;default:if(U7(Z)){for(var F1 in G)D=G[F1],G.hasOwnProperty(F1)&&D!==void 0&&!X.hasOwnProperty(F1)&&dX($,Z,F1,void 0,X,D);for(k in X)D=X[k],y=G[k],!X.hasOwnProperty(k)||D===y||D===void 0&&y===void 0||dX($,Z,k,D,X,y);return}}for(var l0 in G)D=G[l0],G.hasOwnProperty(l0)&&D!=null&&!X.hasOwnProperty(l0)&&U1($,Z,l0,null,X,D);for(b in X)D=X[b],y=G[b],!X.hasOwnProperty(b)||D===y||D==null&&y==null||U1($,Z,b,D,X,y)}function KH($){switch($){case"class":return"className";case"for":return"htmlFor";default:return $}}function pX($){var Z={};$=$.style;for(var G=0;G<$.length;G++){var X=$[G];Z[X]=$.getPropertyValue(X)}return Z}function BH($,Z,G){if(Z!=null&&typeof Z!=="object")console.error("The `style` prop expects a mapping from style properties to values, not a string. For example, style={{marginRight: spacing + 'em'}} when using JSX.");else{var X,N=X="",B;for(B in Z)if(Z.hasOwnProperty(B)){var W=Z[B];W!=null&&typeof W!=="boolean"&&W!==""&&(B.indexOf("--")===0?(Q7(W,B),X+=N+B+":"+(""+W).trim()):typeof W!=="number"||W===0||LF.has(B)?(Q7(W,B),X+=N+B.replace(RF,"-$1").toLowerCase().replace(wF,"-ms-")+":"+(""+W).trim()):X+=N+B.replace(RF,"-$1").toLowerCase().replace(wF,"-ms-")+":"+W+"px",N=";")}X=X||null,Z=$.getAttribute("style"),Z!==X&&(X=C6(X),C6(Z)!==X&&(G.style=pX($)))}}function U4($,Z,G,X,N,B){if(N.delete(G),$=$.getAttribute(G),$===null)switch(typeof X){case"undefined":case"function":case"symbol":case"boolean":return}else if(X!=null)switch(typeof X){case"function":case"symbol":case"boolean":break;default:if(Y1(X,Z),$===""+X)return}n1(Z,$,X,B)}function MH($,Z,G,X,N,B){if(N.delete(G),$=$.getAttribute(G),$===null){switch(typeof X){case"function":case"symbol":return}if(!X)return}else switch(typeof X){case"function":case"symbol":break;default:if(X)return}n1(Z,$,X,B)}function cX($,Z,G,X,N,B){if(N.delete(G),$=$.getAttribute(G),$===null)switch(typeof X){case"undefined":case"function":case"symbol":return}else if(X!=null)switch(typeof X){case"function":case"symbol":break;default:if(Y1(X,G),$===""+X)return}n1(Z,$,X,B)}function HH($,Z,G,X,N,B){if(N.delete(G),$=$.getAttribute(G),$===null)switch(typeof X){case"undefined":case"function":case"symbol":case"boolean":return;default:if(isNaN(X))return}else if(X!=null)switch(typeof X){case"function":case"symbol":case"boolean":break;default:if(!isNaN(X)&&(Y1(X,Z),$===""+X))return}n1(Z,$,X,B)}function lX($,Z,G,X,N,B){if(N.delete(G),$=$.getAttribute(G),$===null)switch(typeof X){case"undefined":case"function":case"symbol":case"boolean":return}else if(X!=null)switch(typeof X){case"function":case"symbol":case"boolean":break;default:if(Y1(X,Z),G=N7(""+X),$===G)return}n1(Z,$,X,B)}function FH($,Z,G,X){for(var N={},B=new Set,W=$.attributes,R=0;R<W.length;R++)switch(W[R].name.toLowerCase()){case"value":break;case"checked":break;case"selected":break;default:B.add(W[R].name)}if(U7(Z)){for(var z in G)if(G.hasOwnProperty(z)){var V=G[z];if(V!=null){if(m2.hasOwnProperty(z))typeof V!=="function"&&G8(z,V);else if(G.suppressHydrationWarning!==!0)switch(z){case"children":typeof V!=="string"&&typeof V!=="number"||n1("children",$.textContent,V,N);continue;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":continue;case"dangerouslySetInnerHTML":W=$.innerHTML,V=V?V.__html:void 0,V!=null&&(V=UH($,V),n1(z,W,V,N));continue;case"style":B.delete(z),BH($,V,N);continue;case"offsetParent":case"offsetTop":case"offsetLeft":case"offsetWidth":case"offsetHeight":case"isContentEditable":case"outerText":case"outerHTML":B.delete(z.toLowerCase()),console.error("Assignment to read-only property will result in a no-op: `%s`",z);continue;case"className":B.delete("class"),W=oN($,"class",V),n1("className",W,V,N);continue;default:X.context===n8&&Z!=="svg"&&Z!=="math"?B.delete(z.toLowerCase()):B.delete(z),W=oN($,z,V),n1(z,W,V,N)}}}}else for(V in G)if(G.hasOwnProperty(V)&&(z=G[V],z!=null)){if(m2.hasOwnProperty(V))typeof z!=="function"&&G8(V,z);else if(G.suppressHydrationWarning!==!0)switch(V){case"children":typeof z!=="string"&&typeof z!=="number"||n1("children",$.textContent,z,N);continue;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"value":case"checked":case"selected":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":continue;case"dangerouslySetInnerHTML":W=$.innerHTML,z=z?z.__html:void 0,z!=null&&(z=UH($,z),W!==z&&(N[V]={__html:W}));continue;case"className":U4($,V,"class",z,B,N);continue;case"tabIndex":U4($,V,"tabindex",z,B,N);continue;case"style":B.delete(V),BH($,z,N);continue;case"multiple":B.delete(V),n1(V,$.multiple,z,N);continue;case"muted":B.delete(V),n1(V,$.muted,z,N);continue;case"autoFocus":B.delete("autofocus"),n1(V,$.autofocus,z,N);continue;case"data":if(Z!=="object"){B.delete(V),W=$.getAttribute("data"),n1(V,W,z,N);continue}case"src":case"href":if(!(z!==""||Z==="a"&&V==="href"||Z==="object"&&V==="data")){V==="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.',V,V):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.',V,V);continue}lX($,V,V,z,B,N);continue;case"action":case"formAction":if(W=$.getAttribute(V),typeof z==="function"){B.delete(V.toLowerCase()),V==="formAction"?(B.delete("name"),B.delete("formenctype"),B.delete("formmethod"),B.delete("formtarget")):(B.delete("enctype"),B.delete("method"),B.delete("target"));continue}else if(W===nE){B.delete(V.toLowerCase()),n1(V,"function",z,N);continue}lX($,V,V.toLowerCase(),z,B,N);continue;case"xlinkHref":lX($,V,"xlink:href",z,B,N);continue;case"contentEditable":cX($,V,"contenteditable",z,B,N);continue;case"spellCheck":cX($,V,"spellcheck",z,B,N);continue;case"draggable":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":cX($,V,V,z,B,N);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":MH($,V,V.toLowerCase(),z,B,N);continue;case"capture":case"download":$:{R=$;var k=W=V,b=N;if(B.delete(k),R=R.getAttribute(k),R===null)switch(typeof z){case"undefined":case"function":case"symbol":break $;default:if(z===!1)break $}else if(z!=null)switch(typeof z){case"function":case"symbol":break;case"boolean":if(z===!0&&R==="")break $;break;default:if(Y1(z,W),R===""+z)break $}n1(W,R,z,b)}continue;case"cols":case"rows":case"size":case"span":$:{if(R=$,k=W=V,b=N,B.delete(k),R=R.getAttribute(k),R===null)switch(typeof z){case"undefined":case"function":case"symbol":case"boolean":break $;default:if(isNaN(z)||1>z)break $}else if(z!=null)switch(typeof z){case"function":case"symbol":case"boolean":break;default:if(!(isNaN(z)||1>z)&&(Y1(z,W),R===""+z))break $}n1(W,R,z,b)}continue;case"rowSpan":HH($,V,"rowspan",z,B,N);continue;case"start":HH($,V,V,z,B,N);continue;case"xHeight":U4($,V,"x-height",z,B,N);continue;case"xlinkActuate":U4($,V,"xlink:actuate",z,B,N);continue;case"xlinkArcrole":U4($,V,"xlink:arcrole",z,B,N);continue;case"xlinkRole":U4($,V,"xlink:role",z,B,N);continue;case"xlinkShow":U4($,V,"xlink:show",z,B,N);continue;case"xlinkTitle":U4($,V,"xlink:title",z,B,N);continue;case"xlinkType":U4($,V,"xlink:type",z,B,N);continue;case"xmlBase":U4($,V,"xml:base",z,B,N);continue;case"xmlLang":U4($,V,"xml:lang",z,B,N);continue;case"xmlSpace":U4($,V,"xml:space",z,B,N);continue;case"inert":z!==""||AJ[V]||(AJ[V]=!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.",V)),MH($,V,V,z,B,N);continue;default:if(!(2<V.length)||V[0]!=="o"&&V[0]!=="O"||V[1]!=="n"&&V[1]!=="N"){R=WK(V),W=!1,X.context===n8&&Z!=="svg"&&Z!=="math"?B.delete(R.toLowerCase()):(k=V.toLowerCase(),k=dG.hasOwnProperty(k)?dG[k]||null:null,k!==null&&k!==V&&(W=!0,B.delete(k)),B.delete(R));$:if(k=$,b=R,R=z,J7(b))if(k.hasAttribute(b))k=k.getAttribute(b),Y1(R,b),R=k===""+R?R:k;else{switch(typeof R){case"function":case"symbol":break $;case"boolean":if(k=b.toLowerCase().slice(0,5),k!=="data-"&&k!=="aria-")break $}R=R===void 0?void 0:null}else R=void 0;W||n1(V,R,z,N)}}}return 0<B.size&&G.suppressHydrationWarning!==!0&&bL($,B,N),Object.keys(N).length===0?null:N}function yL($,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 WH($){switch($){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function gL(){if(typeof performance.getEntriesByType==="function"){for(var $=0,Z=0,G=performance.getEntriesByType("resource"),X=0;X<G.length;X++){var N=G[X],B=N.transferSize,W=N.initiatorType,R=N.duration;if(B&&R&&WH(W)){W=0,R=N.responseEnd;for(X+=1;X<G.length;X++){var z=G[X],V=z.startTime;if(V>R)break;var{transferSize:k,initiatorType:b}=z;k&&WH(b)&&(z=z.responseEnd,W+=k*(z<R?1:(R-V)/(z-V)))}if(--X,Z+=8*(B+W)/(N.duration/1000),$++,10<$)break}}if(0<$)return Z/$/1e6}return navigator.connection&&($=navigator.connection.downlink,typeof $==="number")?$:5}function PG($){return $.nodeType===9?$:$.ownerDocument}function RH($){switch($){case $9:return A9;case mG:return vJ;default:return n8}}function wH($,Z){if($===n8)switch(Z){case"svg":return A9;case"math":return vJ;default:return n8}return $===A9&&Z==="foreignObject"?n8:$}function rX($,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 hL(){var $=window.event;if($&&$.type==="popstate"){if($===DU)return!1;return DU=$,!0}return DU=null,!1}function b7(){var $=window.event;return $&&$!==AZ?$.type:null}function f7(){var $=window.event;return $&&$!==AZ?$.timeStamp:-1.1}function xL($){setTimeout(function(){throw $})}function uL($,Z,G){switch(Z){case"button":case"input":case"select":case"textarea":G.autoFocus&&$.focus();break;case"img":G.src?$.src=G.src:G.srcSet&&($.srcset=G.srcSet)}}function mL(){}function dL($,Z,G,X){fL($,Z,G,X),$[w5]=X}function TH($){Y7($,"")}function pL($,Z,G){$.nodeValue=G}function _H($){if(!$.__reactWarnedAboutChildrenConflict){var Z=$[w5]||null;if(Z!==null){var G=E0($);G!==null&&(typeof Z.children==="string"||typeof Z.children==="number"?($.__reactWarnedAboutChildrenConflict=!0,G0(G,function(){console.error('Cannot use a ref on a React element as a container to `createRoot` or `createPortal` if that element also sets "children" text content using React. It should be a leaf with no children. Otherwise it\'s ambiguous which children should be used.')})):Z.dangerouslySetInnerHTML!=null&&($.__reactWarnedAboutChildrenConflict=!0,G0(G,function(){console.error('Cannot use a ref on a React element as a container to `createRoot` or `createPortal` if that element also sets "dangerouslySetInnerHTML" using React. It should be a leaf with no children. Otherwise it\'s ambiguous which children should be used.')})))}}}function I6($){return $==="head"}function cL($,Z){$.removeChild(Z)}function lL($,Z){($.nodeType===9?$.body:$.nodeName==="HTML"?$.ownerDocument.body:$).removeChild(Z)}function zH($,Z){var G=Z,X=0;do{var N=G.nextSibling;if($.removeChild(G),N&&N.nodeType===8)if(G=N.data,G===jZ||G===SJ){if(X===0){$.removeChild(N),n$(Z);return}X--}else if(G===DZ||G===a6||G===X$||G===j9||G===q$)X++;else if(G===aE)y7($.ownerDocument.documentElement);else if(G===tE){G=$.ownerDocument.head,y7(G);for(var B=G.firstChild;B;){var{nextSibling:W,nodeName:R}=B;B[p7]||R==="SCRIPT"||R==="STYLE"||R==="LINK"&&B.rel.toLowerCase()==="stylesheet"||G.removeChild(B),B=W}}else G===iE&&y7($.ownerDocument.body);G=N}while(G);n$(Z)}function LH($,Z){var G=$;$=0;do{var X=G.nextSibling;if(G.nodeType===1?Z?(G._stashedDisplay=G.style.display,G.style.display="none"):(G.style.display=G._stashedDisplay||"",G.getAttribute("style")===""&&G.removeAttribute("style")):G.nodeType===3&&(Z?(G._stashedText=G.nodeValue,G.nodeValue=""):G.nodeValue=G._stashedText||""),X&&X.nodeType===8)if(G=X.data,G===jZ)if($===0)break;else $--;else G!==DZ&&G!==a6&&G!==X$&&G!==j9||$++;G=X}while(G)}function rL($){LH($,!0)}function sL($){$=$.style,typeof $.setProperty==="function"?$.setProperty("display","none","important"):$.display="none"}function nL($){$.nodeValue=""}function oL($){LH($,!1)}function aL($,Z){Z=Z[eE],Z=Z!==void 0&&Z!==null&&Z.hasOwnProperty("display")?Z.display:null,$.style.display=Z==null||typeof Z==="boolean"?"":(""+Z).trim()}function iL($,Z){$.nodeValue=Z}function sX($){var Z=$.firstChild;Z&&Z.nodeType===10&&(Z=Z.nextSibling);for(;Z;){var G=Z;switch(Z=Z.nextSibling,G.nodeName){case"HTML":case"HEAD":case"BODY":sX(G),e(G);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(G.rel.toLowerCase()==="stylesheet")continue}$.removeChild(G)}}function tL($,Z,G,X){for(;$.nodeType===1;){var N=G;if($.nodeName.toLowerCase()!==Z.toLowerCase()){if(!X&&($.nodeName!=="INPUT"||$.type!=="hidden"))break}else if(!X)if(Z==="input"&&$.type==="hidden"){Y1(N.name,"name");var B=N.name==null?null:""+N.name;if(N.type==="hidden"&&$.getAttribute("name")===B)return $}else return $;else if(!$[p7])switch(Z){case"meta":if(!$.hasAttribute("itemprop"))break;return $;case"link":if(B=$.getAttribute("rel"),B==="stylesheet"&&$.hasAttribute("data-precedence"))break;else if(B!==N.rel||$.getAttribute("href")!==(N.href==null||N.href===""?null:N.href)||$.getAttribute("crossorigin")!==(N.crossOrigin==null?null:N.crossOrigin)||$.getAttribute("title")!==(N.title==null?null:N.title))break;return $;case"style":if($.hasAttribute("data-precedence"))break;return $;case"script":if(B=$.getAttribute("src"),(B!==(N.src==null?null:N.src)||$.getAttribute("type")!==(N.type==null?null:N.type)||$.getAttribute("crossorigin")!==(N.crossOrigin==null?null:N.crossOrigin))&&B&&$.hasAttribute("async")&&!$.hasAttribute("itemprop"))break;return $;default:return $}if($=a5($.nextSibling),$===null)break}return null}function eL($,Z,G){if(Z==="")return null;for(;$.nodeType!==3;){if(($.nodeType!==1||$.nodeName!=="INPUT"||$.type!=="hidden")&&!G)return null;if($=a5($.nextSibling),$===null)return null}return $}function VH($,Z){for(;$.nodeType!==8;){if(($.nodeType!==1||$.nodeName!=="INPUT"||$.type!=="hidden")&&!Z)return null;if($=a5($.nextSibling),$===null)return null}return $}function nX($){return $.data===a6||$.data===X$}function oX($){return $.data===j9||$.data===a6&&$.ownerDocument.readyState!==BR}function $V($,Z){var G=$.ownerDocument;if($.data===X$)$._reactRetry=Z;else if($.data!==a6||G.readyState!==BR)Z();else{var X=function(){Z(),G.removeEventListener("DOMContentLoaded",X)};G.addEventListener("DOMContentLoaded",X),$._reactRetry=X}}function a5($){for(;$!=null;$=$.nextSibling){var Z=$.nodeType;if(Z===1||Z===3)break;if(Z===8){if(Z=$.data,Z===DZ||Z===j9||Z===a6||Z===X$||Z===q$||Z===CU||Z===KR)break;if(Z===jZ||Z===SJ)return null}}return $}function EH($){if($.nodeType===1){for(var Z=$.nodeName.toLowerCase(),G={},X=$.attributes,N=0;N<X.length;N++){var B=X[N];G[KH(B.name)]=B.name.toLowerCase()==="style"?pX($):B.value}return{type:Z,props:G}}return $.nodeType===8?$.data===q$?{type:"Activity",props:{}}:{type:"Suspense",props:{}}:$.nodeValue}function PH($,Z,G){return G===null||G[oE]!==!0?($.nodeValue===Z?$=null:(Z=C6(Z),$=C6($.nodeValue)===Z?null:$.nodeValue),$):null}function aX($){$=$.nextSibling;for(var Z=0;$;){if($.nodeType===8){var G=$.data;if(G===jZ||G===SJ){if(Z===0)return a5($.nextSibling);Z--}else G!==DZ&&G!==j9&&G!==a6&&G!==X$&&G!==q$||Z++}$=$.nextSibling}return null}function CH($){$=$.previousSibling;for(var Z=0;$;){if($.nodeType===8){var G=$.data;if(G===DZ||G===j9||G===a6||G===X$||G===q$){if(Z===0)return $;Z--}else G!==jZ&&G!==SJ||Z++}$=$.previousSibling}return null}function ZV($){n$($)}function QV($){n$($)}function GV($){n$($)}function IH($,Z,G,X,N){switch(N&&Y3($,X.ancestorInfo),Z=PG(G),$){case"html":if($=Z.documentElement,!$)throw Error("React expected an <html> element (document.documentElement) to exist in the Document but one was not found. React never removes the documentElement for any Document it renders into so the cause is likely in some other script running on this page.");return $;case"head":if($=Z.head,!$)throw Error("React expected a <head> element (document.head) to exist in the Document but one was not found. React never removes the head for any Document it renders into so the cause is likely in some other script running on this page.");return $;case"body":if($=Z.body,!$)throw Error("React expected a <body> element (document.body) to exist in the Document but one was not found. React never removes the body for any Document it renders into so the cause is likely in some other script running on this page.");return $;default:throw Error("resolveSingletonInstance was called with an element type that is not supported. This is a bug in React.")}}function JV($,Z,G,X){if(!G[A6]&&E0(G)){var N=G.tagName.toLowerCase();console.error("You are mounting a new %s component when a previous one has not first unmounted. It is an error to render more than one %s component at a time and attributes and children of these components will likely fail in unpredictable ways. Please only render a single instance of <%s> and if you need to mount a new one, ensure any previous ones have unmounted first.",N,N,N)}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(N=G.attributes;N.length;)G.removeAttributeNode(N[0]);Q5(G,$,Z),G[G5]=X,G[w5]=Z}function y7($){for(var Z=$.attributes;Z.length;)$.removeAttributeNode(Z[0]);e($)}function CG($){return typeof $.getRootNode==="function"?$.getRootNode():$.nodeType===9?$:$.ownerDocument}function OH($,Z,G){var X=S9;if(X&&typeof Z==="string"&&Z){var N=Y4(Z);N='link[rel="'+$+'"][href="'+N+'"]',typeof G==="string"&&(N+='[crossorigin="'+G+'"]'),wR.has(N)||(wR.add(N),$={rel:$,crossOrigin:G,href:Z},X.querySelector(N)===null&&(Z=X.createElement("link"),Q5(Z,"link",$),F0(Z),X.head.appendChild(Z)))}}function DH($,Z,G,X){var N=(N=D6.current)?CG(N):null;if(!N)throw Error('"resourceRoot" was expected to exist. This is a bug in React.');switch($){case"meta":case"title":return null;case"style":return typeof G.precedence==="string"&&typeof G.href==="string"?(G=r$(G.href),Z=a0(N).hoistableStyles,X=Z.get(G),X||(X={type:"style",instance:null,count:0,state:null},Z.set(G,X)),X):{type:"void",instance:null,count:0,state:null};case"link":if(G.rel==="stylesheet"&&typeof G.href==="string"&&typeof G.precedence==="string"){$=r$(G.href);var B=a0(N).hoistableStyles,W=B.get($);if(!W&&(N=N.ownerDocument||N,W={type:"stylesheet",instance:null,count:0,state:{loading:U$,preload:null}},B.set($,W),(B=N.querySelector(g7($)))&&!B._p&&(W.instance=B,W.state.loading=SZ|_4),!z4.has($))){var R={rel:"preload",as:"style",href:G.href,crossOrigin:G.crossOrigin,integrity:G.integrity,media:G.media,hrefLang:G.hrefLang,referrerPolicy:G.referrerPolicy};z4.set($,R),B||qV(N,$,R,W.state)}if(Z&&X===null)throw G=`
|
|
175
|
+
This ensures that you're testing the behavior the user would see in the browser. Learn more at https://react.dev/link/wrap-tests-with-act`,d($))})}function Q8($){$!==D9&&$.next===null&&(D9===null?PJ=D9=$:D9=D9.next=$),CJ=!0,x.actQueue!==null?VU||(VU=!0,qM()):LU||(LU=!0,qM())}function v7($,Z){if(!EU&&CJ){EU=!0;do{var G=!1;for(var X=PJ;X!==null;){if(!Z)if($!==0){var N=X.pendingLanes;if(N===0)var B=0;else{var{suspendedLanes:W,pingedLanes:w}=X;B=(1<<31-w5(42|$)+1)-1,B&=N&~(W&~w),B=B&201326741?B&201326741|1:B?B|2:0}B!==0&&(G=!0,JM(X,B))}else B=S0,B=_2(X,X===K1?B:0,X.cancelPendingCommit!==null||X.timeoutHandle!==Y$),(B&3)===0||L2(X,B)||(G=!0,JM(X,B));X=X.next}}while(G);EU=!1}}function yL(){AZ=window.event,gX()}function gX(){CJ=VU=LU=!1;var $=0;o6!==0&&pL()&&($=o6);for(var Z=o1(),G=null,X=PJ;X!==null;){var N=X.next,B=QM(X,Z);if(B===0)X.next=null,G===null?PJ=N:G.next=N,N===null&&(D9=G);else if(G=X,$!==0||(B&3)!==0)CJ=!0;X=N}d1!==s6&&d1!==LJ||v7($,!1),o6!==0&&(o6=0)}function QM($,Z){for(var{suspendedLanes:G,pingedLanes:X,expirationTimes:N}=$,B=$.pendingLanes&-62914561;0<B;){var W=31-w5(B),w=1<<W,_=N[W];if(_===-1){if((w&G)===0||(w&X)!==0)N[W]=Z3(w,Z)}else _<=Z&&($.expiredLanes|=w);B&=~w}if(Z=K1,G=S0,G=_2($,$===Z?G:0,$.cancelPendingCommit!==null||$.timeoutHandle!==Y$),X=$.callbackNode,G===0||$===Z&&(q1===$$||q1===Z$)||$.cancelPendingCommit!==null)return X!==null&&hX(X),$.callbackNode=null,$.callbackPriority=0;if((G&3)===0||L2($,G)){if(Z=G&-G,Z!==$.callbackPriority||x.actQueue!==null&&X!==PU)hX(X);else return Z;switch(E(G)){case e5:case j4:G=zY;break;case N8:G=i$;break;case xG:G=_Y;break;default:G=i$}return X=GM.bind(null,$),x.actQueue!==null?(x.actQueue.push(X),G=PU):G=RY(G,X),$.callbackPriority=Z,$.callbackNode=G,Z}return X!==null&&hX(X),$.callbackPriority=2,$.callbackNode=null,2}function GM($,Z){if(GJ=QJ=!1,AZ=window.event,d1!==s6&&d1!==LJ)return $.callbackNode=null,$.callbackPriority=0,null;var G=$.callbackNode;if(f4===_J&&(f4=WU),A7()&&$.callbackNode!==G)return null;var X=S0;if(X=_2($,$===K1?X:0,$.cancelPendingCommit!==null||$.timeoutHandle!==Y$),X===0)return null;return yH($,X,Z),QM($,o1()),$.callbackNode!=null&&$.callbackNode===G?GM.bind(null,$):null}function JM($,Z){if(A7())return null;QJ=GJ,GJ=!1,yH($,Z,!0)}function hX($){$!==PU&&$!==null&&CV($)}function qM(){x.actQueue!==null&&x.actQueue.push(function(){return gX(),null}),XP(function(){(o0&(r1|G4))!==t1?RY(TY,yL):gX()})}function xX(){if(o6===0){var $=s2;$===0&&($=yG,yG<<=1,(yG&261888)===0&&(yG=256)),o6=$}return o6}function XM($){if($==null||typeof $==="symbol"||typeof $==="boolean")return null;if(typeof $==="function")return $;return Y1($,"action"),N7(""+$)}function YM($,Z){var G=Z.ownerDocument.createElement("input");return G.name=Z.name,G.value=Z.value,$.id&&G.setAttribute("form",$.id),Z.parentNode.insertBefore(G,Z),$=new FormData($),G.parentNode.removeChild(G),$}function gL($,Z,G,X,N){if(Z==="submit"&&G&&G.stateNode===N){var B=XM((N[R5]||null).action),W=X.submitter;W&&(Z=(Z=W[R5]||null)?XM(Z.formAction):W.getAttribute("formAction"),Z!==null&&(B=Z,W=null));var w=new cG("action","action",null,X,N);$.push({event:w,listeners:[{instance:null,listener:function(){if(X.defaultPrevented){if(o6!==0){var _=W?YM(N,W):new FormData(N),V={pending:!0,data:_,method:N.method,action:B};Object.freeze(V),qX(G,V,null,_)}}else typeof B==="function"&&(w.preventDefault(),_=W?YM(N,W):new FormData(N),V={pending:!0,data:_,method:N.method,action:B},Object.freeze(V),qX(G,V,B,_))},currentTarget:N}]})}}function VG($,Z,G){$.currentTarget=G;try{Z($)}catch(X){yY(X)}$.currentTarget=null}function UM($,Z){Z=(Z&4)!==0;for(var G=0;G<$.length;G++){var X=$[G];$:{var N=void 0,B=X.event;if(X=X.listeners,Z)for(var W=X.length-1;0<=W;W--){var w=X[W],_=w.instance,V=w.currentTarget;if(w=w.listener,_!==N&&B.isPropagationStopped())break $;_!==null?G0(_,VG,B,w,V):VG(B,w,V),N=_}else for(W=0;W<X.length;W++){if(w=X[W],_=w.instance,V=w.currentTarget,w=w.listener,_!==N&&B.isPropagationStopped())break $;_!==null?G0(_,VG,B,w,V):VG(B,w,V),N=_}}}}function c0($,Z){CU.has($)||console.error('Did not expect a listenToNonDelegatedEvent() call for "%s". This is a bug in React. Please file an issue.',$);var G=Z[LY];G===void 0&&(G=Z[LY]=new Set);var X=$+"__bubble";G.has(X)||(NM(Z,$,2,!1),G.add(X))}function uX($,Z,G){CU.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 X=0;Z&&(X|=4),NM(G,$,X,Z)}function mX($){if(!$[IJ]){$[IJ]=!0,qF.forEach(function(G){G!=="selectionchange"&&(CU.has(G)||uX(G,!1,$),uX(G,!0,$))});var Z=$.nodeType===9?$:$.ownerDocument;Z===null||Z[IJ]||(Z[IJ]=!0,uX("selectionchange",!1,Z))}}function NM($,Z,G,X){switch(dM(Z)){case e5:var N=RV;break;case j4:N=TV;break;default:N=GY}G=N.bind(null,Z,G,$),N=void 0,!IY||Z!=="touchstart"&&Z!=="touchmove"&&Z!=="wheel"||(N=!0),X?N!==void 0?$.addEventListener(Z,G,{capture:!0,passive:N}):$.addEventListener(Z,G,!0):N!==void 0?$.addEventListener(Z,G,{passive:N}):$.addEventListener(Z,G,!1)}function dX($,Z,G,X,N){var B=X;if((Z&1)===0&&(Z&2)===0&&X!==null)$:for(;;){if(X===null)return;var W=X.tag;if(W===3||W===4){var w=X.stateNode.containerInfo;if(w===N)break;if(W===4)for(W=X.return;W!==null;){var _=W.tag;if((_===3||_===4)&&W.stateNode.containerInfo===N)return;W=W.return}for(;w!==null;){if(W=q0(w),W===null)return;if(_=W.tag,_===5||_===6||_===26||_===27){X=B=W;continue $}w=w.parentNode}}X=X.return}_K(function(){var V=B,k=K3(G),b=[];$:{var D=dF.get($);if(D!==void 0){var y=cG,t=$;switch($){case"keypress":if(AQ(G)===0)break $;case"keydown":case"keyup":y=HE;break;case"focusin":t="focus",y=AY;break;case"focusout":t="blur",y=AY;break;case"beforeblur":case"afterblur":y=AY;break;case"click":if(G.button===2)break $;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":y=DF;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":y=$E;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":y=WE;break;case hF:case xF:case uF:y=GE;break;case mF:y=RE;break;case"scroll":case"scrollend":y=tV;break;case"wheel":y=zE;break;case"copy":case"cut":case"paste":y=qE;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":y=AF;break;case"toggle":case"beforetoggle":y=LE}var Z0=(Z&4)!==0,F1=!Z0&&($==="scroll"||$==="scrollend"),l0=Z0?D!==null?D+"Capture":null:D;Z0=[];for(var O=V,j;O!==null;){var v=O;if(j=v.stateNode,v=v.tag,v!==5&&v!==26&&v!==27||j===null||l0===null||(v=K7(O,l0),v!=null&&Z0.push(k7(O,v,j))),F1)break;O=O.return}0<Z0.length&&(D=new y(D,t,null,G,k),b.push({event:D,listeners:Z0}))}}if((Z&7)===0){$:{if(D=$==="mouseover"||$==="pointerover",y=$==="mouseout"||$==="pointerout",D&&G!==c7&&(t=G.relatedTarget||G.fromElement)&&(q0(t)||t[A6]))break $;if(y||D){if(D=k.window===k?k:(D=k.ownerDocument)?D.defaultView||D.parentWindow:window,y){if(t=G.relatedTarget||G.toElement,y=V,t=t?q0(t):null,t!==null&&(F1=g(t),Z0=t.tag,t!==F1||Z0!==5&&Z0!==27&&Z0!==6))t=null}else y=null,t=V;if(y!==t){if(Z0=DF,v="onMouseLeave",l0="onMouseEnter",O="mouse",$==="pointerout"||$==="pointerover")Z0=AF,v="onPointerLeave",l0="onPointerEnter",O="pointer";if(F1=y==null?D:P0(y),j=t==null?D:P0(t),D=new Z0(v,O+"leave",y,G,k),D.target=F1,D.relatedTarget=j,v=null,q0(k)===V&&(Z0=new Z0(l0,O+"enter",t,G,k),Z0.target=j,Z0.relatedTarget=F1,v=Z0),F1=v,y&&t)Z:{Z0=hL,l0=y,O=t,j=0;for(v=l0;v;v=Z0(v))j++;v=0;for(var u=O;u;u=Z0(u))v++;for(;0<j-v;)l0=Z0(l0),j--;for(;0<v-j;)O=Z0(O),v--;for(;j--;){if(l0===O||O!==null&&l0===O.alternate){Z0=l0;break Z}l0=Z0(l0),O=Z0(O)}Z0=null}else Z0=null;y!==null&&KM(b,D,y,Z0,!1),t!==null&&F1!==null&&KM(b,F1,t,Z0,!0)}}}$:{if(D=V?P0(V):window,y=D.nodeName&&D.nodeName.toLowerCase(),y==="select"||y==="input"&&D.type==="file")var $0=OK;else if(CK(D))if(yF)$0=a_;else{$0=n_;var V0=s_}else y=D.nodeName,!y||y.toLowerCase()!=="input"||D.type!=="checkbox"&&D.type!=="radio"?V&&U7(V.elementType)&&($0=OK):$0=o_;if($0&&($0=$0($,V))){IK(b,$0,G,k);break $}V0&&V0($,D,V),$==="focusout"&&V&&D.type==="number"&&V.memoizedProps.value!=null&&J3(D,"number",D.value)}switch(V0=V?P0(V):window,$){case"focusin":if(CK(V0)||V0.contentEditable==="true")q9=V0,vY=V,i7=null;break;case"focusout":i7=vY=q9=null;break;case"mousedown":kY=!0;break;case"contextmenu":case"mouseup":case"dragend":kY=!1,bK(b,G,k);break;case"selectionchange":if(CE)break;case"keydown":case"keyup":bK(b,G,k)}var M0;if(SY)$:{switch($){case"compositionstart":var U0="onCompositionStart";break $;case"compositionend":U0="onCompositionEnd";break $;case"compositionupdate":U0="onCompositionUpdate";break $}U0=void 0}else J9?EK($,G)&&(U0="onCompositionEnd"):$==="keydown"&&G.keyCode===SF&&(U0="onCompositionStart");if(U0&&(vF&&G.locale!=="ko"&&(J9||U0!=="onCompositionStart"?U0==="onCompositionEnd"&&J9&&(M0=LK()):(S6=k,OY=("value"in S6)?S6.value:S6.textContent,J9=!0)),V0=EG(V,U0),0<V0.length&&(U0=new jF(U0,$,null,G,k),b.push({event:U0,listeners:V0}),M0?U0.data=M0:(M0=PK(G),M0!==null&&(U0.data=M0)))),M0=EE?p_($,G):c_($,G))U0=EG(V,"onBeforeInput"),0<U0.length&&(V0=new YE("onBeforeInput","beforeinput",null,G,k),b.push({event:V0,listeners:U0}),V0.data=M0);gL(b,$,V,G,k)}UM(b,Z)})}function k7($,Z,G){return{instance:$,listener:Z,currentTarget:G}}function EG($,Z){for(var G=Z+"Capture",X=[];$!==null;){var N=$,B=N.stateNode;if(N=N.tag,N!==5&&N!==26&&N!==27||B===null||(N=K7($,G),N!=null&&X.unshift(k7($,N,B)),N=K7($,Z),N!=null&&X.push(k7($,N,B))),$.tag===3)return X;$=$.return}return[]}function hL($){if($===null)return null;do $=$.return;while($&&$.tag!==5&&$.tag!==27);return $?$:null}function KM($,Z,G,X,N){for(var B=Z._reactName,W=[];G!==null&&G!==X;){var w=G,_=w.alternate,V=w.stateNode;if(w=w.tag,_!==null&&_===X)break;w!==5&&w!==26&&w!==27||V===null||(_=V,N?(V=K7(G,B),V!=null&&W.unshift(k7(G,V,_))):N||(V=K7(G,B),V!=null&&W.push(k7(G,V,_)))),G=G.return}W.length!==0&&$.push({event:Z,listeners:W})}function pX($,Z){x_($,Z),$!=="input"&&$!=="textarea"&&$!=="select"||Z==null||Z.value!==null||IF||(IF=!0,$==="select"&&Z.multiple?console.error("`value` prop on `%s` should not be null. Consider using an empty array when `multiple` is set to `true` to clear the component or `undefined` for uncontrolled components.",$):console.error("`value` prop on `%s` should not be null. Consider using an empty string to clear the component or `undefined` for uncontrolled components.",$));var G={registrationNameDependencies:m2,possibleRegistrationNames:VY};U7($)||typeof Z.is==="string"||m_($,Z,G),Z.contentEditable&&!Z.suppressContentEditableWarning&&Z.children!=null&&console.error("A component is `contentEditable` and contains `children` managed by React. It is now your responsibility to guarantee that none of those nodes are unexpectedly modified or duplicated. This is probably not intentional.")}function n1($,Z,G,X){Z!==G&&(G=C6(G),C6(Z)!==G&&(X[$]=Z))}function xL($,Z,G){Z.forEach(function(X){G[MM(X)]=X==="style"?lX($):$.getAttribute(X)})}function G8($,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 BM($,Z){return $=$.namespaceURI===mG||$.namespaceURI===$9?$.ownerDocument.createElementNS($.namespaceURI,$.tagName):$.ownerDocument.createElement($.tagName),$.innerHTML=Z,$.innerHTML}function C6($){return B6($)&&(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.",z2($)),s1($)),(typeof $==="string"?$:""+$).replace(iE,`
|
|
176
|
+
`).replace(tE,"")}function HM($,Z){return Z=C6(Z),C6($)===Z?!0:!1}function U1($,Z,G,X,N,B){switch(G){case"children":if(typeof X==="string")jQ(X,Z,!1),Z==="body"||Z==="textarea"&&X===""||Y7($,X);else if(typeof X==="number"||typeof X==="bigint")jQ(""+X,Z,!1),Z!=="body"&&Y7($,""+X);break;case"className":IQ($,"class",X);break;case"tabIndex":IQ($,"tabindex",X);break;case"dir":case"role":case"viewBox":case"width":case"height":IQ($,G,X);break;case"style":RK($,X,B);break;case"data":if(Z!=="object"){IQ($,"data",X);break}case"src":case"href":if(X===""&&(Z!=="a"||G!=="href")){G==="src"?console.error('An empty string ("") was passed to the %s attribute. This may cause the browser to download the whole page again over the network. To fix this, either do not render the element at all or pass null to %s instead of an empty string.',G,G):console.error('An empty string ("") was passed to the %s attribute. To fix this, either do not render the element at all or pass null to %s instead of an empty string.',G,G),$.removeAttribute(G);break}if(X==null||typeof X==="function"||typeof X==="symbol"||typeof X==="boolean"){$.removeAttribute(G);break}Y1(X,G),X=N7(""+X),$.setAttribute(G,X);break;case"action":case"formAction":if(X!=null&&(Z==="form"?G==="formAction"?console.error("You can only pass the formAction prop to <input> or <button>. Use the action prop on <form>."):typeof X==="function"&&(N.encType==null&&N.method==null||jJ||(jJ=!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.")),N.target==null||DJ||(DJ=!0,console.error("Cannot specify a target for a form that specifies a function as the action. The function will always be executed in the same window."))):Z==="input"||Z==="button"?G==="action"?console.error("You can only pass the action prop to <form>. Use the formAction prop on <input> or <button>."):Z!=="input"||N.type==="submit"||N.type==="image"||OJ?Z!=="button"||N.type==null||N.type==="submit"||OJ?typeof X==="function"&&(N.name==null||Bw||(Bw=!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.')),N.formEncType==null&&N.formMethod==null||jJ||(jJ=!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.")),N.formTarget==null||DJ||(DJ=!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."))):(OJ=!0,console.error('A button can only specify a formAction along with type="submit" or no type.')):(OJ=!0,console.error('An input can only specify a formAction along with type="submit" or type="image".')):G==="action"?console.error("You can only pass the action prop to <form>."):console.error("You can only pass the formAction prop to <input> or <button>.")),typeof X==="function"){$.setAttribute(G,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof B==="function"&&(G==="formAction"?(Z!=="input"&&U1($,Z,"name",N.name,N,null),U1($,Z,"formEncType",N.formEncType,N,null),U1($,Z,"formMethod",N.formMethod,N,null),U1($,Z,"formTarget",N.formTarget,N,null)):(U1($,Z,"encType",N.encType,N,null),U1($,Z,"method",N.method,N,null),U1($,Z,"target",N.target,N,null)));if(X==null||typeof X==="symbol"||typeof X==="boolean"){$.removeAttribute(G);break}Y1(X,G),X=N7(""+X),$.setAttribute(G,X);break;case"onClick":X!=null&&(typeof X!=="function"&&G8(G,X),$.onclick=I8);break;case"onScroll":X!=null&&(typeof X!=="function"&&G8(G,X),c0("scroll",$));break;case"onScrollEnd":X!=null&&(typeof X!=="function"&&G8(G,X),c0("scrollend",$));break;case"dangerouslySetInnerHTML":if(X!=null){if(typeof X!=="object"||!("__html"in X))throw Error("`props.dangerouslySetInnerHTML` must be in the form `{__html: ...}`. Please visit https://react.dev/link/dangerously-set-inner-html for more information.");if(G=X.__html,G!=null){if(N.children!=null)throw Error("Can only set one of `children` or `props.dangerouslySetInnerHTML`.");$.innerHTML=G}}break;case"multiple":$.multiple=X&&typeof X!=="function"&&typeof X!=="symbol";break;case"muted":$.muted=X&&typeof X!=="function"&&typeof X!=="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(X==null||typeof X==="function"||typeof X==="boolean"||typeof X==="symbol"){$.removeAttribute("xlink:href");break}Y1(X,G),G=N7(""+X),$.setAttributeNS(J$,"xlink:href",G);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":X!=null&&typeof X!=="function"&&typeof X!=="symbol"?(Y1(X,G),$.setAttribute(G,""+X)):$.removeAttribute(G);break;case"inert":X!==""||AJ[G]||(AJ[G]=!0,console.error("Received an empty string for a boolean attribute `%s`. This will treat the attribute as if it were false. Either pass `false` to silence this warning, or pass `true` if you used an empty string in earlier versions of React to indicate this attribute is true.",G));case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":X&&typeof X!=="function"&&typeof X!=="symbol"?$.setAttribute(G,""):$.removeAttribute(G);break;case"capture":case"download":X===!0?$.setAttribute(G,""):X!==!1&&X!=null&&typeof X!=="function"&&typeof X!=="symbol"?(Y1(X,G),$.setAttribute(G,X)):$.removeAttribute(G);break;case"cols":case"rows":case"size":case"span":X!=null&&typeof X!=="function"&&typeof X!=="symbol"&&!isNaN(X)&&1<=X?(Y1(X,G),$.setAttribute(G,X)):$.removeAttribute(G);break;case"rowSpan":case"start":X==null||typeof X==="function"||typeof X==="symbol"||isNaN(X)?$.removeAttribute(G):(Y1(X,G),$.setAttribute(G,X));break;case"popover":c0("beforetoggle",$),c0("toggle",$),CQ($,"popover",X);break;case"xlinkActuate":C8($,J$,"xlink:actuate",X);break;case"xlinkArcrole":C8($,J$,"xlink:arcrole",X);break;case"xlinkRole":C8($,J$,"xlink:role",X);break;case"xlinkShow":C8($,J$,"xlink:show",X);break;case"xlinkTitle":C8($,J$,"xlink:title",X);break;case"xlinkType":C8($,J$,"xlink:type",X);break;case"xmlBase":C8($,IU,"xml:base",X);break;case"xmlLang":C8($,IU,"xml:lang",X);break;case"xmlSpace":C8($,IU,"xml:space",X);break;case"is":B!=null&&console.error('Cannot update the "is" prop after it has been initialized.'),CQ($,"is",X);break;case"innerText":case"textContent":break;case"popoverTarget":Hw||X==null||typeof X!=="object"||(Hw=!0,console.error("The `popoverTarget` prop expects the ID of an Element as a string. Received %s instead.",X));default:!(2<G.length)||G[0]!=="o"&&G[0]!=="O"||G[1]!=="n"&&G[1]!=="N"?(G=TK(G),CQ($,G,X)):m2.hasOwnProperty(G)&&X!=null&&typeof X!=="function"&&G8(G,X)}}function cX($,Z,G,X,N,B){switch(G){case"style":RK($,X,B);break;case"dangerouslySetInnerHTML":if(X!=null){if(typeof X!=="object"||!("__html"in X))throw Error("`props.dangerouslySetInnerHTML` must be in the form `{__html: ...}`. Please visit https://react.dev/link/dangerously-set-inner-html for more information.");if(G=X.__html,G!=null){if(N.children!=null)throw Error("Can only set one of `children` or `props.dangerouslySetInnerHTML`.");$.innerHTML=G}}break;case"children":typeof X==="string"?Y7($,X):(typeof X==="number"||typeof X==="bigint")&&Y7($,""+X);break;case"onScroll":X!=null&&(typeof X!=="function"&&G8(G,X),c0("scroll",$));break;case"onScrollEnd":X!=null&&(typeof X!=="function"&&G8(G,X),c0("scrollend",$));break;case"onClick":X!=null&&(typeof X!=="function"&&G8(G,X),$.onclick=I8);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(m2.hasOwnProperty(G))X!=null&&typeof X!=="function"&&G8(G,X);else $:{if(G[0]==="o"&&G[1]==="n"&&(N=G.endsWith("Capture"),Z=G.slice(2,N?G.length-7:void 0),B=$[R5]||null,B=B!=null?B[G]:null,typeof B==="function"&&$.removeEventListener(Z,B,N),typeof X==="function")){typeof B!=="function"&&B!==null&&(G in $?$[G]=null:$.hasAttribute(G)&&$.removeAttribute(G)),$.addEventListener(Z,X,N);break $}G in $?$[G]=X:X===!0?$.setAttribute(G,""):CQ($,G,X)}}}function Q5($,Z,G){switch(pX(Z,G),Z){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":c0("error",$),c0("load",$);var X=!1,N=!1,B;for(B in G)if(G.hasOwnProperty(B)){var W=G[B];if(W!=null)switch(B){case"src":X=!0;break;case"srcSet":N=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(Z+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");default:U1($,Z,B,W,G,null)}}N&&U1($,Z,"srcSet",G.srcSet,G,null),X&&U1($,Z,"src",G.src,G,null);return;case"input":F6("input",G),c0("invalid",$);var w=B=W=N=null,_=null,V=null;for(X in G)if(G.hasOwnProperty(X)){var k=G[X];if(k!=null)switch(X){case"name":N=k;break;case"type":W=k;break;case"checked":_=k;break;case"defaultChecked":V=k;break;case"value":B=k;break;case"defaultValue":w=k;break;case"children":case"dangerouslySetInnerHTML":if(k!=null)throw Error(Z+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");break;default:U1($,Z,X,k,G,null)}}ZK($,G),QK($,B,w,_,V,W,N,!1);return;case"select":F6("select",G),c0("invalid",$),X=W=B=null;for(N in G)if(G.hasOwnProperty(N)&&(w=G[N],w!=null))switch(N){case"value":B=w;break;case"defaultValue":W=w;break;case"multiple":X=w;default:U1($,Z,N,w,G,null)}qK($,G),Z=B,G=W,$.multiple=!!X,Z!=null?S$($,!!X,Z,!1):G!=null&&S$($,!!X,G,!0);return;case"textarea":F6("textarea",G),c0("invalid",$),B=N=X=null;for(W in G)if(G.hasOwnProperty(W)&&(w=G[W],w!=null))switch(W){case"value":X=w;break;case"defaultValue":N=w;break;case"children":B=w;break;case"dangerouslySetInnerHTML":if(w!=null)throw Error("`dangerouslySetInnerHTML` does not make sense on <textarea>.");break;default:U1($,Z,W,w,G,null)}XK($,G),UK($,X,N,B);return;case"option":GK($,G);for(_ in G)if(G.hasOwnProperty(_)&&(X=G[_],X!=null))switch(_){case"selected":$.selected=X&&typeof X!=="function"&&typeof X!=="symbol";break;default:U1($,Z,_,X,G,null)}return;case"dialog":c0("beforetoggle",$),c0("toggle",$),c0("cancel",$),c0("close",$);break;case"iframe":case"object":c0("load",$);break;case"video":case"audio":for(X=0;X<OZ.length;X++)c0(OZ[X],$);break;case"image":c0("error",$),c0("load",$);break;case"details":c0("toggle",$);break;case"embed":case"source":case"link":c0("error",$),c0("load",$);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(V in G)if(G.hasOwnProperty(V)&&(X=G[V],X!=null))switch(V){case"children":case"dangerouslySetInnerHTML":throw Error(Z+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");default:U1($,Z,V,X,G,null)}return;default:if(U7(Z)){for(k in G)G.hasOwnProperty(k)&&(X=G[k],X!==void 0&&cX($,Z,k,X,G,void 0));return}}for(w in G)G.hasOwnProperty(w)&&(X=G[w],X!=null&&U1($,Z,w,X,G,null))}function uL($,Z,G,X){switch(pX(Z,X),Z){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var N=null,B=null,W=null,w=null,_=null,V=null,k=null;for(y in G){var b=G[y];if(G.hasOwnProperty(y)&&b!=null)switch(y){case"checked":break;case"value":break;case"defaultValue":_=b;default:X.hasOwnProperty(y)||U1($,Z,y,null,X,b)}}for(var D in X){var y=X[D];if(b=G[D],X.hasOwnProperty(D)&&(y!=null||b!=null))switch(D){case"type":B=y;break;case"name":N=y;break;case"checked":V=y;break;case"defaultChecked":k=y;break;case"value":W=y;break;case"defaultValue":w=y;break;case"children":case"dangerouslySetInnerHTML":if(y!=null)throw Error(Z+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");break;default:y!==b&&U1($,Z,D,y,X,b)}}Z=G.type==="checkbox"||G.type==="radio"?G.checked!=null:G.value!=null,X=X.type==="checkbox"||X.type==="radio"?X.checked!=null:X.value!=null,Z||!X||Kw||(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"),Kw=!0),!Z||X||Nw||(console.error("A component is changing a controlled input to be uncontrolled. This is likely caused by the value changing from a defined to undefined, which should not happen. Decide between using a controlled or uncontrolled input element for the lifetime of the component. More info: https://react.dev/link/controlled-components"),Nw=!0),G3($,W,w,_,V,k,B,N);return;case"select":y=W=w=D=null;for(B in G)if(_=G[B],G.hasOwnProperty(B)&&_!=null)switch(B){case"value":break;case"multiple":y=_;default:X.hasOwnProperty(B)||U1($,Z,B,null,X,_)}for(N in X)if(B=X[N],_=G[N],X.hasOwnProperty(N)&&(B!=null||_!=null))switch(N){case"value":D=B;break;case"defaultValue":w=B;break;case"multiple":W=B;default:B!==_&&U1($,Z,N,B,X,_)}X=w,Z=W,G=y,D!=null?S$($,!!Z,D,!1):!!G!==!!Z&&(X!=null?S$($,!!Z,X,!0):S$($,!!Z,Z?[]:"",!1));return;case"textarea":y=D=null;for(w in G)if(N=G[w],G.hasOwnProperty(w)&&N!=null&&!X.hasOwnProperty(w))switch(w){case"value":break;case"children":break;default:U1($,Z,w,null,X,N)}for(W in X)if(N=X[W],B=G[W],X.hasOwnProperty(W)&&(N!=null||B!=null))switch(W){case"value":D=N;break;case"defaultValue":y=N;break;case"children":break;case"dangerouslySetInnerHTML":if(N!=null)throw Error("`dangerouslySetInnerHTML` does not make sense on <textarea>.");break;default:N!==B&&U1($,Z,W,N,X,B)}YK($,D,y);return;case"option":for(var t in G)if(D=G[t],G.hasOwnProperty(t)&&D!=null&&!X.hasOwnProperty(t))switch(t){case"selected":$.selected=!1;break;default:U1($,Z,t,null,X,D)}for(_ in X)if(D=X[_],y=G[_],X.hasOwnProperty(_)&&D!==y&&(D!=null||y!=null))switch(_){case"selected":$.selected=D&&typeof D!=="function"&&typeof D!=="symbol";break;default:U1($,Z,_,D,X,y)}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 Z0 in G)D=G[Z0],G.hasOwnProperty(Z0)&&D!=null&&!X.hasOwnProperty(Z0)&&U1($,Z,Z0,null,X,D);for(V in X)if(D=X[V],y=G[V],X.hasOwnProperty(V)&&D!==y&&(D!=null||y!=null))switch(V){case"children":case"dangerouslySetInnerHTML":if(D!=null)throw Error(Z+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");break;default:U1($,Z,V,D,X,y)}return;default:if(U7(Z)){for(var F1 in G)D=G[F1],G.hasOwnProperty(F1)&&D!==void 0&&!X.hasOwnProperty(F1)&&cX($,Z,F1,void 0,X,D);for(k in X)D=X[k],y=G[k],!X.hasOwnProperty(k)||D===y||D===void 0&&y===void 0||cX($,Z,k,D,X,y);return}}for(var l0 in G)D=G[l0],G.hasOwnProperty(l0)&&D!=null&&!X.hasOwnProperty(l0)&&U1($,Z,l0,null,X,D);for(b in X)D=X[b],y=G[b],!X.hasOwnProperty(b)||D===y||D==null&&y==null||U1($,Z,b,D,X,y)}function MM($){switch($){case"class":return"className";case"for":return"htmlFor";default:return $}}function lX($){var Z={};$=$.style;for(var G=0;G<$.length;G++){var X=$[G];Z[X]=$.getPropertyValue(X)}return Z}function FM($,Z,G){if(Z!=null&&typeof Z!=="object")console.error("The `style` prop expects a mapping from style properties to values, not a string. For example, style={{marginRight: spacing + 'em'}} when using JSX.");else{var X,N=X="",B;for(B in Z)if(Z.hasOwnProperty(B)){var W=Z[B];W!=null&&typeof W!=="boolean"&&W!==""&&(B.indexOf("--")===0?(Q7(W,B),X+=N+B+":"+(""+W).trim()):typeof W!=="number"||W===0||PF.has(B)?(Q7(W,B),X+=N+B.replace(zF,"-$1").toLowerCase().replace(_F,"-ms-")+":"+(""+W).trim()):X+=N+B.replace(zF,"-$1").toLowerCase().replace(_F,"-ms-")+":"+W+"px",N=";")}X=X||null,Z=$.getAttribute("style"),Z!==X&&(X=C6(X),C6(Z)!==X&&(G.style=lX($)))}}function U4($,Z,G,X,N,B){if(N.delete(G),$=$.getAttribute(G),$===null)switch(typeof X){case"undefined":case"function":case"symbol":case"boolean":return}else if(X!=null)switch(typeof X){case"function":case"symbol":case"boolean":break;default:if(Y1(X,Z),$===""+X)return}n1(Z,$,X,B)}function WM($,Z,G,X,N,B){if(N.delete(G),$=$.getAttribute(G),$===null){switch(typeof X){case"function":case"symbol":return}if(!X)return}else switch(typeof X){case"function":case"symbol":break;default:if(X)return}n1(Z,$,X,B)}function rX($,Z,G,X,N,B){if(N.delete(G),$=$.getAttribute(G),$===null)switch(typeof X){case"undefined":case"function":case"symbol":return}else if(X!=null)switch(typeof X){case"function":case"symbol":break;default:if(Y1(X,G),$===""+X)return}n1(Z,$,X,B)}function wM($,Z,G,X,N,B){if(N.delete(G),$=$.getAttribute(G),$===null)switch(typeof X){case"undefined":case"function":case"symbol":case"boolean":return;default:if(isNaN(X))return}else if(X!=null)switch(typeof X){case"function":case"symbol":case"boolean":break;default:if(!isNaN(X)&&(Y1(X,Z),$===""+X))return}n1(Z,$,X,B)}function sX($,Z,G,X,N,B){if(N.delete(G),$=$.getAttribute(G),$===null)switch(typeof X){case"undefined":case"function":case"symbol":case"boolean":return}else if(X!=null)switch(typeof X){case"function":case"symbol":case"boolean":break;default:if(Y1(X,Z),G=N7(""+X),$===G)return}n1(Z,$,X,B)}function RM($,Z,G,X){for(var N={},B=new Set,W=$.attributes,w=0;w<W.length;w++)switch(W[w].name.toLowerCase()){case"value":break;case"checked":break;case"selected":break;default:B.add(W[w].name)}if(U7(Z)){for(var _ in G)if(G.hasOwnProperty(_)){var V=G[_];if(V!=null){if(m2.hasOwnProperty(_))typeof V!=="function"&&G8(_,V);else if(G.suppressHydrationWarning!==!0)switch(_){case"children":typeof V!=="string"&&typeof V!=="number"||n1("children",$.textContent,V,N);continue;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":continue;case"dangerouslySetInnerHTML":W=$.innerHTML,V=V?V.__html:void 0,V!=null&&(V=BM($,V),n1(_,W,V,N));continue;case"style":B.delete(_),FM($,V,N);continue;case"offsetParent":case"offsetTop":case"offsetLeft":case"offsetWidth":case"offsetHeight":case"isContentEditable":case"outerText":case"outerHTML":B.delete(_.toLowerCase()),console.error("Assignment to read-only property will result in a no-op: `%s`",_);continue;case"className":B.delete("class"),W=tN($,"class",V),n1("className",W,V,N);continue;default:X.context===n8&&Z!=="svg"&&Z!=="math"?B.delete(_.toLowerCase()):B.delete(_),W=tN($,_,V),n1(_,W,V,N)}}}}else for(V in G)if(G.hasOwnProperty(V)&&(_=G[V],_!=null)){if(m2.hasOwnProperty(V))typeof _!=="function"&&G8(V,_);else if(G.suppressHydrationWarning!==!0)switch(V){case"children":typeof _!=="string"&&typeof _!=="number"||n1("children",$.textContent,_,N);continue;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"value":case"checked":case"selected":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":continue;case"dangerouslySetInnerHTML":W=$.innerHTML,_=_?_.__html:void 0,_!=null&&(_=BM($,_),W!==_&&(N[V]={__html:W}));continue;case"className":U4($,V,"class",_,B,N);continue;case"tabIndex":U4($,V,"tabindex",_,B,N);continue;case"style":B.delete(V),FM($,_,N);continue;case"multiple":B.delete(V),n1(V,$.multiple,_,N);continue;case"muted":B.delete(V),n1(V,$.muted,_,N);continue;case"autoFocus":B.delete("autofocus"),n1(V,$.autofocus,_,N);continue;case"data":if(Z!=="object"){B.delete(V),W=$.getAttribute("data"),n1(V,W,_,N);continue}case"src":case"href":if(!(_!==""||Z==="a"&&V==="href"||Z==="object"&&V==="data")){V==="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.',V,V):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.',V,V);continue}sX($,V,V,_,B,N);continue;case"action":case"formAction":if(W=$.getAttribute(V),typeof _==="function"){B.delete(V.toLowerCase()),V==="formAction"?(B.delete("name"),B.delete("formenctype"),B.delete("formmethod"),B.delete("formtarget")):(B.delete("enctype"),B.delete("method"),B.delete("target"));continue}else if(W===eE){B.delete(V.toLowerCase()),n1(V,"function",_,N);continue}sX($,V,V.toLowerCase(),_,B,N);continue;case"xlinkHref":sX($,V,"xlink:href",_,B,N);continue;case"contentEditable":rX($,V,"contenteditable",_,B,N);continue;case"spellCheck":rX($,V,"spellcheck",_,B,N);continue;case"draggable":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":rX($,V,V,_,B,N);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":WM($,V,V.toLowerCase(),_,B,N);continue;case"capture":case"download":$:{w=$;var k=W=V,b=N;if(B.delete(k),w=w.getAttribute(k),w===null)switch(typeof _){case"undefined":case"function":case"symbol":break $;default:if(_===!1)break $}else if(_!=null)switch(typeof _){case"function":case"symbol":break;case"boolean":if(_===!0&&w==="")break $;break;default:if(Y1(_,W),w===""+_)break $}n1(W,w,_,b)}continue;case"cols":case"rows":case"size":case"span":$:{if(w=$,k=W=V,b=N,B.delete(k),w=w.getAttribute(k),w===null)switch(typeof _){case"undefined":case"function":case"symbol":case"boolean":break $;default:if(isNaN(_)||1>_)break $}else if(_!=null)switch(typeof _){case"function":case"symbol":case"boolean":break;default:if(!(isNaN(_)||1>_)&&(Y1(_,W),w===""+_))break $}n1(W,w,_,b)}continue;case"rowSpan":wM($,V,"rowspan",_,B,N);continue;case"start":wM($,V,V,_,B,N);continue;case"xHeight":U4($,V,"x-height",_,B,N);continue;case"xlinkActuate":U4($,V,"xlink:actuate",_,B,N);continue;case"xlinkArcrole":U4($,V,"xlink:arcrole",_,B,N);continue;case"xlinkRole":U4($,V,"xlink:role",_,B,N);continue;case"xlinkShow":U4($,V,"xlink:show",_,B,N);continue;case"xlinkTitle":U4($,V,"xlink:title",_,B,N);continue;case"xlinkType":U4($,V,"xlink:type",_,B,N);continue;case"xmlBase":U4($,V,"xml:base",_,B,N);continue;case"xmlLang":U4($,V,"xml:lang",_,B,N);continue;case"xmlSpace":U4($,V,"xml:space",_,B,N);continue;case"inert":_!==""||AJ[V]||(AJ[V]=!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.",V)),WM($,V,V,_,B,N);continue;default:if(!(2<V.length)||V[0]!=="o"&&V[0]!=="O"||V[1]!=="n"&&V[1]!=="N"){w=TK(V),W=!1,X.context===n8&&Z!=="svg"&&Z!=="math"?B.delete(w.toLowerCase()):(k=V.toLowerCase(),k=dG.hasOwnProperty(k)?dG[k]||null:null,k!==null&&k!==V&&(W=!0,B.delete(k)),B.delete(w));$:if(k=$,b=w,w=_,J7(b))if(k.hasAttribute(b))k=k.getAttribute(b),Y1(w,b),w=k===""+w?w:k;else{switch(typeof w){case"function":case"symbol":break $;case"boolean":if(k=b.toLowerCase().slice(0,5),k!=="data-"&&k!=="aria-")break $}w=w===void 0?void 0:null}else w=void 0;W||n1(V,w,_,N)}}}return 0<B.size&&G.suppressHydrationWarning!==!0&&xL($,B,N),Object.keys(N).length===0?null:N}function mL($,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 TM($){switch($){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function dL(){if(typeof performance.getEntriesByType==="function"){for(var $=0,Z=0,G=performance.getEntriesByType("resource"),X=0;X<G.length;X++){var N=G[X],B=N.transferSize,W=N.initiatorType,w=N.duration;if(B&&w&&TM(W)){W=0,w=N.responseEnd;for(X+=1;X<G.length;X++){var _=G[X],V=_.startTime;if(V>w)break;var{transferSize:k,initiatorType:b}=_;k&&TM(b)&&(_=_.responseEnd,W+=k*(_<w?1:(w-V)/(_-V)))}if(--X,Z+=8*(B+W)/(N.duration/1000),$++,10<$)break}}if(0<$)return Z/$/1e6}return navigator.connection&&($=navigator.connection.downlink,typeof $==="number")?$:5}function PG($){return $.nodeType===9?$:$.ownerDocument}function zM($){switch($){case $9:return A9;case mG:return vJ;default:return n8}}function _M($,Z){if($===n8)switch(Z){case"svg":return A9;case"math":return vJ;default:return n8}return $===A9&&Z==="foreignObject"?n8:$}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 pL(){var $=window.event;if($&&$.type==="popstate"){if($===AU)return!1;return AU=$,!0}return AU=null,!1}function b7(){var $=window.event;return $&&$!==AZ?$.type:null}function f7(){var $=window.event;return $&&$!==AZ?$.timeStamp:-1.1}function cL($){setTimeout(function(){throw $})}function lL($,Z,G){switch(Z){case"button":case"input":case"select":case"textarea":G.autoFocus&&$.focus();break;case"img":G.src?$.src=G.src:G.srcSet&&($.srcset=G.srcSet)}}function rL(){}function sL($,Z,G,X){uL($,Z,G,X),$[R5]=X}function LM($){Y7($,"")}function nL($,Z,G){$.nodeValue=G}function VM($){if(!$.__reactWarnedAboutChildrenConflict){var Z=$[R5]||null;if(Z!==null){var G=E0($);G!==null&&(typeof Z.children==="string"||typeof Z.children==="number"?($.__reactWarnedAboutChildrenConflict=!0,G0(G,function(){console.error('Cannot use a ref on a React element as a container to `createRoot` or `createPortal` if that element also sets "children" text content using React. It should be a leaf with no children. Otherwise it\'s ambiguous which children should be used.')})):Z.dangerouslySetInnerHTML!=null&&($.__reactWarnedAboutChildrenConflict=!0,G0(G,function(){console.error('Cannot use a ref on a React element as a container to `createRoot` or `createPortal` if that element also sets "dangerouslySetInnerHTML" using React. It should be a leaf with no children. Otherwise it\'s ambiguous which children should be used.')})))}}}function I6($){return $==="head"}function oL($,Z){$.removeChild(Z)}function aL($,Z){($.nodeType===9?$.body:$.nodeName==="HTML"?$.ownerDocument.body:$).removeChild(Z)}function EM($,Z){var G=Z,X=0;do{var N=G.nextSibling;if($.removeChild(G),N&&N.nodeType===8)if(G=N.data,G===jZ||G===SJ){if(X===0){$.removeChild(N),n$(Z);return}X--}else if(G===DZ||G===a6||G===X$||G===j9||G===q$)X++;else if(G===ZP)y7($.ownerDocument.documentElement);else if(G===GP){G=$.ownerDocument.head,y7(G);for(var B=G.firstChild;B;){var{nextSibling:W,nodeName:w}=B;B[p7]||w==="SCRIPT"||w==="STYLE"||w==="LINK"&&B.rel.toLowerCase()==="stylesheet"||G.removeChild(B),B=W}}else G===QP&&y7($.ownerDocument.body);G=N}while(G);n$(Z)}function PM($,Z){var G=$;$=0;do{var X=G.nextSibling;if(G.nodeType===1?Z?(G._stashedDisplay=G.style.display,G.style.display="none"):(G.style.display=G._stashedDisplay||"",G.getAttribute("style")===""&&G.removeAttribute("style")):G.nodeType===3&&(Z?(G._stashedText=G.nodeValue,G.nodeValue=""):G.nodeValue=G._stashedText||""),X&&X.nodeType===8)if(G=X.data,G===jZ)if($===0)break;else $--;else G!==DZ&&G!==a6&&G!==X$&&G!==j9||$++;G=X}while(G)}function iL($){PM($,!0)}function tL($){$=$.style,typeof $.setProperty==="function"?$.setProperty("display","none","important"):$.display="none"}function eL($){$.nodeValue=""}function $V($){PM($,!1)}function ZV($,Z){Z=Z[JP],Z=Z!==void 0&&Z!==null&&Z.hasOwnProperty("display")?Z.display:null,$.style.display=Z==null||typeof Z==="boolean"?"":(""+Z).trim()}function QV($,Z){$.nodeValue=Z}function oX($){var Z=$.firstChild;Z&&Z.nodeType===10&&(Z=Z.nextSibling);for(;Z;){var G=Z;switch(Z=Z.nextSibling,G.nodeName){case"HTML":case"HEAD":case"BODY":oX(G),e(G);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(G.rel.toLowerCase()==="stylesheet")continue}$.removeChild(G)}}function GV($,Z,G,X){for(;$.nodeType===1;){var N=G;if($.nodeName.toLowerCase()!==Z.toLowerCase()){if(!X&&($.nodeName!=="INPUT"||$.type!=="hidden"))break}else if(!X)if(Z==="input"&&$.type==="hidden"){Y1(N.name,"name");var B=N.name==null?null:""+N.name;if(N.type==="hidden"&&$.getAttribute("name")===B)return $}else return $;else if(!$[p7])switch(Z){case"meta":if(!$.hasAttribute("itemprop"))break;return $;case"link":if(B=$.getAttribute("rel"),B==="stylesheet"&&$.hasAttribute("data-precedence"))break;else if(B!==N.rel||$.getAttribute("href")!==(N.href==null||N.href===""?null:N.href)||$.getAttribute("crossorigin")!==(N.crossOrigin==null?null:N.crossOrigin)||$.getAttribute("title")!==(N.title==null?null:N.title))break;return $;case"style":if($.hasAttribute("data-precedence"))break;return $;case"script":if(B=$.getAttribute("src"),(B!==(N.src==null?null:N.src)||$.getAttribute("type")!==(N.type==null?null:N.type)||$.getAttribute("crossorigin")!==(N.crossOrigin==null?null:N.crossOrigin))&&B&&$.hasAttribute("async")&&!$.hasAttribute("itemprop"))break;return $;default:return $}if($=a5($.nextSibling),$===null)break}return null}function JV($,Z,G){if(Z==="")return null;for(;$.nodeType!==3;){if(($.nodeType!==1||$.nodeName!=="INPUT"||$.type!=="hidden")&&!G)return null;if($=a5($.nextSibling),$===null)return null}return $}function CM($,Z){for(;$.nodeType!==8;){if(($.nodeType!==1||$.nodeName!=="INPUT"||$.type!=="hidden")&&!Z)return null;if($=a5($.nextSibling),$===null)return null}return $}function aX($){return $.data===a6||$.data===X$}function iX($){return $.data===j9||$.data===a6&&$.ownerDocument.readyState!==Fw}function qV($,Z){var G=$.ownerDocument;if($.data===X$)$._reactRetry=Z;else if($.data!==a6||G.readyState!==Fw)Z();else{var X=function(){Z(),G.removeEventListener("DOMContentLoaded",X)};G.addEventListener("DOMContentLoaded",X),$._reactRetry=X}}function a5($){for(;$!=null;$=$.nextSibling){var Z=$.nodeType;if(Z===1||Z===3)break;if(Z===8){if(Z=$.data,Z===DZ||Z===j9||Z===a6||Z===X$||Z===q$||Z===OU||Z===Mw)break;if(Z===jZ||Z===SJ)return null}}return $}function IM($){if($.nodeType===1){for(var Z=$.nodeName.toLowerCase(),G={},X=$.attributes,N=0;N<X.length;N++){var B=X[N];G[MM(B.name)]=B.name.toLowerCase()==="style"?lX($):B.value}return{type:Z,props:G}}return $.nodeType===8?$.data===q$?{type:"Activity",props:{}}:{type:"Suspense",props:{}}:$.nodeValue}function OM($,Z,G){return G===null||G[$P]!==!0?($.nodeValue===Z?$=null:(Z=C6(Z),$=C6($.nodeValue)===Z?null:$.nodeValue),$):null}function tX($){$=$.nextSibling;for(var Z=0;$;){if($.nodeType===8){var G=$.data;if(G===jZ||G===SJ){if(Z===0)return a5($.nextSibling);Z--}else G!==DZ&&G!==j9&&G!==a6&&G!==X$&&G!==q$||Z++}$=$.nextSibling}return null}function DM($){$=$.previousSibling;for(var Z=0;$;){if($.nodeType===8){var G=$.data;if(G===DZ||G===j9||G===a6||G===X$||G===q$){if(Z===0)return $;Z--}else G!==jZ&&G!==SJ||Z++}$=$.previousSibling}return null}function XV($){n$($)}function YV($){n$($)}function UV($){n$($)}function jM($,Z,G,X,N){switch(N&&N3($,X.ancestorInfo),Z=PG(G),$){case"html":if($=Z.documentElement,!$)throw Error("React expected an <html> element (document.documentElement) to exist in the Document but one was not found. React never removes the documentElement for any Document it renders into so the cause is likely in some other script running on this page.");return $;case"head":if($=Z.head,!$)throw Error("React expected a <head> element (document.head) to exist in the Document but one was not found. React never removes the head for any Document it renders into so the cause is likely in some other script running on this page.");return $;case"body":if($=Z.body,!$)throw Error("React expected a <body> element (document.body) to exist in the Document but one was not found. React never removes the body for any Document it renders into so the cause is likely in some other script running on this page.");return $;default:throw Error("resolveSingletonInstance was called with an element type that is not supported. This is a bug in React.")}}function NV($,Z,G,X){if(!G[A6]&&E0(G)){var N=G.tagName.toLowerCase();console.error("You are mounting a new %s component when a previous one has not first unmounted. It is an error to render more than one %s component at a time and attributes and children of these components will likely fail in unpredictable ways. Please only render a single instance of <%s> and if you need to mount a new one, ensure any previous ones have unmounted first.",N,N,N)}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(N=G.attributes;N.length;)G.removeAttributeNode(N[0]);Q5(G,$,Z),G[G5]=X,G[R5]=Z}function y7($){for(var Z=$.attributes;Z.length;)$.removeAttributeNode(Z[0]);e($)}function CG($){return typeof $.getRootNode==="function"?$.getRootNode():$.nodeType===9?$:$.ownerDocument}function AM($,Z,G){var X=S9;if(X&&typeof Z==="string"&&Z){var N=Y4(Z);N='link[rel="'+$+'"][href="'+N+'"]',typeof G==="string"&&(N+='[crossorigin="'+G+'"]'),_w.has(N)||(_w.add(N),$={rel:$,crossOrigin:G,href:Z},X.querySelector(N)===null&&(Z=X.createElement("link"),Q5(Z,"link",$),F0(Z),X.head.appendChild(Z)))}}function SM($,Z,G,X){var N=(N=D6.current)?CG(N):null;if(!N)throw Error('"resourceRoot" was expected to exist. This is a bug in React.');switch($){case"meta":case"title":return null;case"style":return typeof G.precedence==="string"&&typeof G.href==="string"?(G=r$(G.href),Z=a0(N).hoistableStyles,X=Z.get(G),X||(X={type:"style",instance:null,count:0,state:null},Z.set(G,X)),X):{type:"void",instance:null,count:0,state:null};case"link":if(G.rel==="stylesheet"&&typeof G.href==="string"&&typeof G.precedence==="string"){$=r$(G.href);var B=a0(N).hoistableStyles,W=B.get($);if(!W&&(N=N.ownerDocument||N,W={type:"stylesheet",instance:null,count:0,state:{loading:U$,preload:null}},B.set($,W),(B=N.querySelector(g7($)))&&!B._p&&(W.instance=B,W.state.loading=SZ|z4),!_4.has($))){var w={rel:"preload",as:"style",href:G.href,crossOrigin:G.crossOrigin,integrity:G.integrity,media:G.media,hrefLang:G.hrefLang,referrerPolicy:G.referrerPolicy};_4.set($,w),B||KV(N,$,w,W.state)}if(Z&&X===null)throw G=`
|
|
177
177
|
|
|
178
178
|
- `+IG(Z)+`
|
|
179
179
|
+ `+IG(G),Error("Expected <link> not to update to be updated to a stylesheet with precedence. Check the `rel`, `href`, and `precedence` props of this component. Alternatively, check whether two different <link> components render in the same slot or share the same key."+G);return W}if(Z&&X!==null)throw G=`
|
|
180
180
|
|
|
181
181
|
- `+IG(Z)+`
|
|
182
|
-
+ `+IG(G),Error("Expected stylesheet with precedence to not be updated to a different kind of <link>. Check the `rel`, `href`, and `precedence` props of this component. Alternatively, check whether two different <link> components render in the same slot or share the same key."+G);return null;case"script":return Z=G.async,G=G.src,typeof G==="string"&&Z&&typeof Z!=="function"&&typeof Z!=="symbol"?(G=s$(G),Z=a0(N).hoistableScripts,X=Z.get(G),X||(X={type:"script",instance:null,count:0,state:null},Z.set(G,X)),X):{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 IG($){var Z=0,G="<link";return typeof $.rel==="string"?(Z++,G+=' rel="'+$.rel+'"'):D4.call($,"rel")&&(Z++,G+=' rel="'+($.rel===null?"null":"invalid type "+typeof $.rel)+'"'),typeof $.href==="string"?(Z++,G+=' href="'+$.href+'"'):D4.call($,"href")&&(Z++,G+=' href="'+($.href===null?"null":"invalid type "+typeof $.href)+'"'),typeof $.precedence==="string"?(Z++,G+=' precedence="'+$.precedence+'"'):D4.call($,"precedence")&&(Z++,G+=" precedence={"+($.precedence===null?"null":"invalid type "+typeof $.precedence)+"}"),Object.getOwnPropertyNames($).length>Z&&(G+=" ..."),G+" />"}function r$($){return'href="'+Y4($)+'"'}function g7($){return'link[rel="stylesheet"]['+$+"]"}function jH($){return y0({},$,{"data-precedence":$.precedence,precedence:null})}function qV($,Z,G,X){$.querySelector('link[rel="preload"][as="style"]['+Z+"]")?X.loading=SZ:(Z=$.createElement("link"),X.preload=Z,Z.addEventListener("load",function(){return X.loading|=SZ}),Z.addEventListener("error",function(){return X.loading|=WR}),Q5(Z,"link",G),F0(Z),$.head.appendChild(Z))}function s$($){return'[src="'+Y4($)+'"]'}function h7($){return"script[async]"+$}function AH($,Z,G){if(Z.count++,Z.instance===null)switch(Z.type){case"style":var X=$.querySelector('style[data-href~="'+Y4(G.href)+'"]');if(X)return Z.instance=X,F0(X),X;var N=y0({},G,{"data-href":G.href,"data-precedence":G.precedence,href:null,precedence:null});return X=($.ownerDocument||$).createElement("style"),F0(X),Q5(X,"style",N),OG(X,G.precedence,$),Z.instance=X;case"stylesheet":N=r$(G.href);var B=$.querySelector(g7(N));if(B)return Z.state.loading|=_4,Z.instance=B,F0(B),B;X=jH(G),(N=z4.get(N))&&iX(X,N),B=($.ownerDocument||$).createElement("link"),F0(B);var W=B;return W._p=new Promise(function(R,z){W.onload=R,W.onerror=z}),Q5(B,"link",X),Z.state.loading|=_4,OG(B,G.precedence,$),Z.instance=B;case"script":if(B=s$(G.src),N=$.querySelector(h7(B)))return Z.instance=N,F0(N),N;if(X=G,N=z4.get(B))X=y0({},G),tX(X,N);return $=$.ownerDocument||$,N=$.createElement("script"),F0(N),Q5(N,"link",X),$.head.appendChild(N),Z.instance=N;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&_4)===U$&&(X=Z.instance,Z.state.loading|=_4,OG(X,G.precedence,$));return Z.instance}function OG($,Z,G){for(var X=G.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),N=X.length?X[X.length-1]:null,B=N,W=0;W<X.length;W++){var R=X[W];if(R.dataset.precedence===Z)B=R;else if(B!==N)break}B?B.parentNode.insertBefore($,B.nextSibling):(Z=G.nodeType===9?G.head:G,Z.insertBefore($,Z.firstChild))}function iX($,Z){$.crossOrigin==null&&($.crossOrigin=Z.crossOrigin),$.referrerPolicy==null&&($.referrerPolicy=Z.referrerPolicy),$.title==null&&($.title=Z.title)}function tX($,Z){$.crossOrigin==null&&($.crossOrigin=Z.crossOrigin),$.referrerPolicy==null&&($.referrerPolicy=Z.referrerPolicy),$.integrity==null&&($.integrity=Z.integrity)}function SH($,Z,G){if(kJ===null){var X=new Map,N=kJ=new Map;N.set(G,X)}else N=kJ,X=N.get(G),X||(X=new Map,N.set(G,X));if(X.has($))return X;X.set($,null),G=G.getElementsByTagName($);for(N=0;N<G.length;N++){var B=G[N];if(!(B[p7]||B[G5]||$==="link"&&B.getAttribute("rel")==="stylesheet")&&B.namespaceURI!==$9){var W=B.getAttribute(Z)||"";W=$+W;var R=X.get(W);R?R.push(B):X.set(W,[B])}}return X}function vH($,Z,G){$=$.ownerDocument||$,$.head.insertBefore(G,Z==="title"?$.querySelector("head > title"):null)}function XV($,Z,G){var X=!G.ancestorInfo.containerTagInScope;if(G.context===A9||Z.itemProp!=null)return!X||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===""){X&&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:N,disabled:B}=Z;G=[],Z.onLoad&&G.push("`onLoad`"),N&&G.push("`onError`"),B!=null&&G.push("`disabled`"),N=yL(G,"and"),N+=G.length===1?" prop":" props",B=G.length===1?"an "+N:"the "+N,G.length&&console.error('React encountered a <link rel="stylesheet" href="%s" ... /> with a `precedence` prop that also included %s. The presence of loading and error handlers indicates an intent to manage the stylesheet loading state from your from your Component code and React will not hoist or deduplicate this stylesheet. If your intent was to have React hoist and deduplciate this stylesheet using the `precedence` prop remove the %s, otherwise remove the `precedence` prop.',$,B,N)}X&&(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"&&X&&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"){X&&($?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":X&&console.error("Cannot render <%s> outside the main document. Try moving it into the root <head> tag.",$)}return!1}function kH($){return $.type==="stylesheet"&&($.state.loading&RR)===U$?!1:!0}function YV($,Z,G,X){if(G.type==="stylesheet"&&(typeof X.media!=="string"||matchMedia(X.media).matches!==!1)&&(G.state.loading&_4)===U$){if(G.instance===null){var N=r$(X.href),B=Z.querySelector(g7(N));if(B){Z=B._p,Z!==null&&typeof Z==="object"&&typeof Z.then==="function"&&($.count++,$=DG.bind($),Z.then($,$)),G.state.loading|=_4,G.instance=B,F0(B);return}B=Z.ownerDocument||Z,X=jH(X),(N=z4.get(N))&&iX(X,N),B=B.createElement("link"),F0(B);var W=B;W._p=new Promise(function(R,z){W.onload=R,W.onerror=z}),Q5(B,"link",X),G.instance=B}$.stylesheets===null&&($.stylesheets=new Map),$.stylesheets.set(G,Z),(Z=G.state.preload)&&(G.state.loading&RR)===U$&&($.count++,G=DG.bind($),Z.addEventListener("load",G),Z.addEventListener("error",G))}}function UV($,Z){return $.stylesheets&&$.count===0&&jG($,$.stylesheets),0<$.count||0<$.imgCount?function(G){var X=setTimeout(function(){if($.stylesheets&&jG($,$.stylesheets),$.unsuspend){var B=$.unsuspend;$.unsuspend=null,B()}},QP+Z);0<$.imgBytes&&AU===0&&(AU=125*gL()*JP);var N=setTimeout(function(){if($.waitingForImages=!1,$.count===0&&($.stylesheets&&jG($,$.stylesheets),$.unsuspend)){var B=$.unsuspend;$.unsuspend=null,B()}},($.imgBytes>AU?50:GP)+Z);return $.unsuspend=G,function(){$.unsuspend=null,clearTimeout(X),clearTimeout(N)}}:null}function DG(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)jG(this,this.stylesheets);else if(this.unsuspend){var $=this.unsuspend;this.unsuspend=null,$()}}}function jG($,Z){$.stylesheets=null,$.unsuspend!==null&&($.count++,bJ=new Map,Z.forEach(NV,$),bJ=null,DG.call($))}function NV($,Z){if(!(Z.state.loading&_4)){var G=bJ.get($);if(G)var X=G.get(SU);else{G=new Map,bJ.set($,G);for(var N=$.querySelectorAll("link[data-precedence],style[data-precedence]"),B=0;B<N.length;B++){var W=N[B];if(W.nodeName==="LINK"||W.getAttribute("media")!=="not all")G.set(W.dataset.precedence,W),X=W}X&&G.set(SU,X)}N=Z.instance,W=N.getAttribute("data-precedence"),B=G.get(W)||X,B===X&&G.set(SU,N),G.set(W,N),this.count++,X=DG.bind(this),N.addEventListener("load",X),N.addEventListener("error",X),B?B.parentNode.insertBefore(N,B.nextSibling):($=$.nodeType===9?$.head:$,$.insertBefore(N,$.firstChild)),Z.state.loading|=_4}}function KV($,Z,G,X,N,B,W,R,z){this.tag=1,this.containerInfo=$,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=Y$,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=A$(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=A$(0),this.hiddenUpdates=A$(null),this.identifierPrefix=X,this.onUncaughtError=N,this.onCaughtError=B,this.onRecoverableError=W,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=z,this.incompleteTransitions=new Map,this.passiveEffectDuration=this.effectDuration=-0,this.memoizedUpdaters=new Set,$=this.pendingUpdatersLaneMap=[];for(Z=0;31>Z;Z++)$.push(new Set);this._debugRootType=G?"hydrateRoot()":"createRoot()"}function bH($,Z,G,X,N,B,W,R,z,V,k,b){return $=new KV($,Z,G,W,z,V,k,b,R),Z=jE,B===!0&&(Z|=H5|A4),Z|=j0,B=L(3,null,null,Z),$.current=B,B.stateNode=$,Z=I3(),b2(Z),$.pooledCache=Z,b2(Z),B.memoizedState={element:X,isDehydrated:G,cache:Z},S3(B),$}function fH($){if(!$)return b6;return $=b6,$}function eX($,Z,G,X,N,B){if(M5&&typeof M5.onScheduleFiberRoot==="function")try{M5.onScheduleFiberRoot(t$,X,G)}catch(W){Y8||(Y8=!0,console.error("React instrumentation encountered an error: %o",W))}N=fH(N),X.context===null?X.context=N:X.pendingContext=N,X8&&t5!==null&&!LR&&(LR=!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
|
+
+ `+IG(G),Error("Expected stylesheet with precedence to not be updated to a different kind of <link>. Check the `rel`, `href`, and `precedence` props of this component. Alternatively, check whether two different <link> components render in the same slot or share the same key."+G);return null;case"script":return Z=G.async,G=G.src,typeof G==="string"&&Z&&typeof Z!=="function"&&typeof Z!=="symbol"?(G=s$(G),Z=a0(N).hoistableScripts,X=Z.get(G),X||(X={type:"script",instance:null,count:0,state:null},Z.set(G,X)),X):{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 IG($){var Z=0,G="<link";return typeof $.rel==="string"?(Z++,G+=' rel="'+$.rel+'"'):D4.call($,"rel")&&(Z++,G+=' rel="'+($.rel===null?"null":"invalid type "+typeof $.rel)+'"'),typeof $.href==="string"?(Z++,G+=' href="'+$.href+'"'):D4.call($,"href")&&(Z++,G+=' href="'+($.href===null?"null":"invalid type "+typeof $.href)+'"'),typeof $.precedence==="string"?(Z++,G+=' precedence="'+$.precedence+'"'):D4.call($,"precedence")&&(Z++,G+=" precedence={"+($.precedence===null?"null":"invalid type "+typeof $.precedence)+"}"),Object.getOwnPropertyNames($).length>Z&&(G+=" ..."),G+" />"}function r$($){return'href="'+Y4($)+'"'}function g7($){return'link[rel="stylesheet"]['+$+"]"}function vM($){return y0({},$,{"data-precedence":$.precedence,precedence:null})}function KV($,Z,G,X){$.querySelector('link[rel="preload"][as="style"]['+Z+"]")?X.loading=SZ:(Z=$.createElement("link"),X.preload=Z,Z.addEventListener("load",function(){return X.loading|=SZ}),Z.addEventListener("error",function(){return X.loading|=Tw}),Q5(Z,"link",G),F0(Z),$.head.appendChild(Z))}function s$($){return'[src="'+Y4($)+'"]'}function h7($){return"script[async]"+$}function kM($,Z,G){if(Z.count++,Z.instance===null)switch(Z.type){case"style":var X=$.querySelector('style[data-href~="'+Y4(G.href)+'"]');if(X)return Z.instance=X,F0(X),X;var N=y0({},G,{"data-href":G.href,"data-precedence":G.precedence,href:null,precedence:null});return X=($.ownerDocument||$).createElement("style"),F0(X),Q5(X,"style",N),OG(X,G.precedence,$),Z.instance=X;case"stylesheet":N=r$(G.href);var B=$.querySelector(g7(N));if(B)return Z.state.loading|=z4,Z.instance=B,F0(B),B;X=vM(G),(N=_4.get(N))&&eX(X,N),B=($.ownerDocument||$).createElement("link"),F0(B);var W=B;return W._p=new Promise(function(w,_){W.onload=w,W.onerror=_}),Q5(B,"link",X),Z.state.loading|=z4,OG(B,G.precedence,$),Z.instance=B;case"script":if(B=s$(G.src),N=$.querySelector(h7(B)))return Z.instance=N,F0(N),N;if(X=G,N=_4.get(B))X=y0({},G),$Y(X,N);return $=$.ownerDocument||$,N=$.createElement("script"),F0(N),Q5(N,"link",X),$.head.appendChild(N),Z.instance=N;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&z4)===U$&&(X=Z.instance,Z.state.loading|=z4,OG(X,G.precedence,$));return Z.instance}function OG($,Z,G){for(var X=G.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),N=X.length?X[X.length-1]:null,B=N,W=0;W<X.length;W++){var w=X[W];if(w.dataset.precedence===Z)B=w;else if(B!==N)break}B?B.parentNode.insertBefore($,B.nextSibling):(Z=G.nodeType===9?G.head:G,Z.insertBefore($,Z.firstChild))}function eX($,Z){$.crossOrigin==null&&($.crossOrigin=Z.crossOrigin),$.referrerPolicy==null&&($.referrerPolicy=Z.referrerPolicy),$.title==null&&($.title=Z.title)}function $Y($,Z){$.crossOrigin==null&&($.crossOrigin=Z.crossOrigin),$.referrerPolicy==null&&($.referrerPolicy=Z.referrerPolicy),$.integrity==null&&($.integrity=Z.integrity)}function bM($,Z,G){if(kJ===null){var X=new Map,N=kJ=new Map;N.set(G,X)}else N=kJ,X=N.get(G),X||(X=new Map,N.set(G,X));if(X.has($))return X;X.set($,null),G=G.getElementsByTagName($);for(N=0;N<G.length;N++){var B=G[N];if(!(B[p7]||B[G5]||$==="link"&&B.getAttribute("rel")==="stylesheet")&&B.namespaceURI!==$9){var W=B.getAttribute(Z)||"";W=$+W;var w=X.get(W);w?w.push(B):X.set(W,[B])}}return X}function fM($,Z,G){$=$.ownerDocument||$,$.head.insertBefore(G,Z==="title"?$.querySelector("head > title"):null)}function BV($,Z,G){var X=!G.ancestorInfo.containerTagInScope;if(G.context===A9||Z.itemProp!=null)return!X||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===""){X&&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:N,disabled:B}=Z;G=[],Z.onLoad&&G.push("`onLoad`"),N&&G.push("`onError`"),B!=null&&G.push("`disabled`"),N=mL(G,"and"),N+=G.length===1?" prop":" props",B=G.length===1?"an "+N:"the "+N,G.length&&console.error('React encountered a <link rel="stylesheet" href="%s" ... /> with a `precedence` prop that also included %s. The presence of loading and error handlers indicates an intent to manage the stylesheet loading state from your from your Component code and React will not hoist or deduplicate this stylesheet. If your intent was to have React hoist and deduplciate this stylesheet using the `precedence` prop remove the %s, otherwise remove the `precedence` prop.',$,B,N)}X&&(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"&&X&&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"){X&&($?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":X&&console.error("Cannot render <%s> outside the main document. Try moving it into the root <head> tag.",$)}return!1}function yM($){return $.type==="stylesheet"&&($.state.loading&zw)===U$?!1:!0}function HV($,Z,G,X){if(G.type==="stylesheet"&&(typeof X.media!=="string"||matchMedia(X.media).matches!==!1)&&(G.state.loading&z4)===U$){if(G.instance===null){var N=r$(X.href),B=Z.querySelector(g7(N));if(B){Z=B._p,Z!==null&&typeof Z==="object"&&typeof Z.then==="function"&&($.count++,$=DG.bind($),Z.then($,$)),G.state.loading|=z4,G.instance=B,F0(B);return}B=Z.ownerDocument||Z,X=vM(X),(N=_4.get(N))&&eX(X,N),B=B.createElement("link"),F0(B);var W=B;W._p=new Promise(function(w,_){W.onload=w,W.onerror=_}),Q5(B,"link",X),G.instance=B}$.stylesheets===null&&($.stylesheets=new Map),$.stylesheets.set(G,Z),(Z=G.state.preload)&&(G.state.loading&zw)===U$&&($.count++,G=DG.bind($),Z.addEventListener("load",G),Z.addEventListener("error",G))}}function MV($,Z){return $.stylesheets&&$.count===0&&jG($,$.stylesheets),0<$.count||0<$.imgCount?function(G){var X=setTimeout(function(){if($.stylesheets&&jG($,$.stylesheets),$.unsuspend){var B=$.unsuspend;$.unsuspend=null,B()}},YP+Z);0<$.imgBytes&&vU===0&&(vU=125*dL()*NP);var N=setTimeout(function(){if($.waitingForImages=!1,$.count===0&&($.stylesheets&&jG($,$.stylesheets),$.unsuspend)){var B=$.unsuspend;$.unsuspend=null,B()}},($.imgBytes>vU?50:UP)+Z);return $.unsuspend=G,function(){$.unsuspend=null,clearTimeout(X),clearTimeout(N)}}:null}function DG(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)jG(this,this.stylesheets);else if(this.unsuspend){var $=this.unsuspend;this.unsuspend=null,$()}}}function jG($,Z){$.stylesheets=null,$.unsuspend!==null&&($.count++,bJ=new Map,Z.forEach(FV,$),bJ=null,DG.call($))}function FV($,Z){if(!(Z.state.loading&z4)){var G=bJ.get($);if(G)var X=G.get(kU);else{G=new Map,bJ.set($,G);for(var N=$.querySelectorAll("link[data-precedence],style[data-precedence]"),B=0;B<N.length;B++){var W=N[B];if(W.nodeName==="LINK"||W.getAttribute("media")!=="not all")G.set(W.dataset.precedence,W),X=W}X&&G.set(kU,X)}N=Z.instance,W=N.getAttribute("data-precedence"),B=G.get(W)||X,B===X&&G.set(kU,N),G.set(W,N),this.count++,X=DG.bind(this),N.addEventListener("load",X),N.addEventListener("error",X),B?B.parentNode.insertBefore(N,B.nextSibling):($=$.nodeType===9?$.head:$,$.insertBefore(N,$.firstChild)),Z.state.loading|=z4}}function WV($,Z,G,X,N,B,W,w,_){this.tag=1,this.containerInfo=$,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=Y$,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=A$(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=A$(0),this.hiddenUpdates=A$(null),this.identifierPrefix=X,this.onUncaughtError=N,this.onCaughtError=B,this.onRecoverableError=W,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=_,this.incompleteTransitions=new Map,this.passiveEffectDuration=this.effectDuration=-0,this.memoizedUpdaters=new Set,$=this.pendingUpdatersLaneMap=[];for(Z=0;31>Z;Z++)$.push(new Set);this._debugRootType=G?"hydrateRoot()":"createRoot()"}function gM($,Z,G,X,N,B,W,w,_,V,k,b){return $=new WV($,Z,G,W,_,V,k,b,w),Z=bE,B===!0&&(Z|=M5|A4),Z|=j0,B=L(3,null,null,Z),$.current=B,B.stateNode=$,Z=D3(),b2(Z),$.pooledCache=Z,b2(Z),B.memoizedState={element:X,isDehydrated:G,cache:Z},k3(B),$}function hM($){if(!$)return b6;return $=b6,$}function ZY($,Z,G,X,N,B){if(H5&&typeof H5.onScheduleFiberRoot==="function")try{H5.onScheduleFiberRoot(t$,X,G)}catch(W){Y8||(Y8=!0,console.error("React instrumentation encountered an error: %o",W))}N=hM(N),X.context===null?X.context=N:X.pendingContext=N,X8&&t5!==null&&!Pw&&(Pw=!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(t5)||"Unknown")),X=_6(Z),X.payload={element:G},B=B===void 0?null:B,B!==null&&(typeof B!=="function"&&console.error("Expected the last optional `callback` argument to be a function. Instead received: %s.",B),X.callback=B),G=z6($,X,Z),G!==null&&(l4(Z,"root.render()",null),C1(G,$,Z),T7(G,$,Z))}function yH($,Z){if($=$.memoizedState,$!==null&&$.dehydrated!==null){var G=$.retryLane;$.retryLane=G!==0&&G<Z?G:Z}}function $Y($,Z){yH($,Z),($=$.alternate)&&yH($,Z)}function gH($){if($.tag===13||$.tag===31){var Z=B5($,67108864);Z!==null&&C1(Z,$,67108864),$Y($,67108864)}}function hH($){if($.tag===13||$.tag===31){var Z=o5($);Z=C2(Z);var G=B5($,Z);G!==null&&C1(G,$,Z),$Y($,Z)}}function BV(){return t5}function MV($,Z,G,X){var N=x.T;x.T=null;var B=Z1.p;try{Z1.p=e5,ZY($,Z,G,X)}finally{Z1.p=B,x.T=N}}function HV($,Z,G,X){var N=x.T;x.T=null;var B=Z1.p;try{Z1.p=j4,ZY($,Z,G,X)}finally{Z1.p=B,x.T=N}}function ZY($,Z,G,X){if(yJ){var N=QY(X);if(N===null)uX($,Z,X,gJ,G),uH($,X);else if(FV(N,$,Z,G,X))X.stopPropagation();else if(uH($,X),Z&4&&-1<XP.indexOf($)){for(;N!==null;){var B=E0(N);if(B!==null)switch(B.tag){case 3:if(B=B.stateNode,B.current.memoizedState.isDehydrated){var W=m4(B.pendingLanes);if(W!==0){var R=B;R.pendingLanes|=2;for(R.entangledLanes|=2;W;){var z=1<<31-R5(W);R.entanglements[1]|=z,W&=~z}Q8(B),(o0&(r1|G4))===t1&&(_J=o1()+oW,v7(0,!1))}}break;case 31:case 13:R=B5(B,2),R!==null&&C1(R,B,2),p$(),$Y(B,2)}if(B=QY(X),B===null&&uX($,Z,X,gJ,G),B===N)break;N=B}N!==null&&X.stopPropagation()}else uX($,Z,X,null,G)}}function QY($){return $=U3($),GY($)}function GY($){if(gJ=null,$=q0($),$!==null){var Z=g($);if(Z===null)$=null;else{var G=Z.tag;if(G===13){if($=m(Z),$!==null)return $;$=null}else if(G===31){if($=o(Z),$!==null)return $;$=null}else if(G===3){if(Z.stateNode.current.memoizedState.isDehydrated)return Z.tag===3?Z.stateNode.containerInfo:null;$=null}else Z!==$&&($=null)}}return gJ=$,null}function xH($){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 e5;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(EV()){case RY:return e5;case wY:return j4;case i$:case PV:return N8;case TY:return xG;default:return N8}default:return N8}}function uH($,Z){switch($){case"focusin":case"focusout":i6=null;break;case"dragenter":case"dragleave":t6=null;break;case"mouseover":case"mouseout":e6=null;break;case"pointerover":case"pointerout":kZ.delete(Z.pointerId);break;case"gotpointercapture":case"lostpointercapture":bZ.delete(Z.pointerId)}}function x7($,Z,G,X,N,B){if($===null||$.nativeEvent!==B)return $={blockedOn:Z,domEventName:G,eventSystemFlags:X,nativeEvent:B,targetContainers:[N]},Z!==null&&(Z=E0(Z),Z!==null&&gH(Z)),$;return $.eventSystemFlags|=X,Z=$.targetContainers,N!==null&&Z.indexOf(N)===-1&&Z.push(N),$}function FV($,Z,G,X,N){switch(Z){case"focusin":return i6=x7(i6,$,Z,G,X,N),!0;case"dragenter":return t6=x7(t6,$,Z,G,X,N),!0;case"mouseover":return e6=x7(e6,$,Z,G,X,N),!0;case"pointerover":var B=N.pointerId;return kZ.set(B,x7(kZ.get(B)||null,$,Z,G,X,N)),!0;case"gotpointercapture":return B=N.pointerId,bZ.set(B,x7(bZ.get(B)||null,$,Z,G,X,N)),!0}return!1}function mH($){var Z=q0($.target);if(Z!==null){var G=g(Z);if(G!==null){if(Z=G.tag,Z===13){if(Z=m(G),Z!==null){$.blockedOn=Z,r($.priority,function(){hH(G)});return}}else if(Z===31){if(Z=o(G),Z!==null){$.blockedOn=Z,r($.priority,function(){hH(G)});return}}else if(Z===3&&G.stateNode.current.memoizedState.isDehydrated){$.blockedOn=G.tag===3?G.stateNode.containerInfo:null;return}}}$.blockedOn=null}function AG($){if($.blockedOn!==null)return!1;for(var Z=$.targetContainers;0<Z.length;){var G=QY($.nativeEvent);if(G===null){G=$.nativeEvent;var X=new G.constructor(G.type,G),N=X;c7!==null&&console.error("Expected currently replaying event to be null. This error is likely caused by a bug in React. Please file an issue."),c7=N,G.target.dispatchEvent(X),c7===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."),c7=null}else return Z=E0(G),Z!==null&&gH(Z),$.blockedOn=G,!1;Z.shift()}return!0}function dH($,Z,G){AG($)&&G.delete(Z)}function WV(){vU=!1,i6!==null&&AG(i6)&&(i6=null),t6!==null&&AG(t6)&&(t6=null),e6!==null&&AG(e6)&&(e6=null),kZ.forEach(dH),bZ.forEach(dH)}function SG($,Z){$.blockedOn===Z&&($.blockedOn=null,vU||(vU=!0,i0.unstable_scheduleCallback(i0.unstable_NormalPriority,WV)))}function pH($){hJ!==$&&(hJ=$,i0.unstable_scheduleCallback(i0.unstable_NormalPriority,function(){hJ===$&&(hJ=null);for(var Z=0;Z<$.length;Z+=3){var G=$[Z],X=$[Z+1],N=$[Z+2];if(typeof X!=="function")if(GY(X||G)===null)continue;else break;var B=E0(G);B!==null&&($.splice(Z,3),Z-=3,G={pending:!0,data:N,method:G.method,action:X},Object.freeze(G),GX(B,G,X,N))}}))}function n$($){function Z(z){return SG(z,$)}i6!==null&&SG(i6,$),t6!==null&&SG(t6,$),e6!==null&&SG(e6,$),kZ.forEach(Z),bZ.forEach(Z);for(var G=0;G<$2.length;G++){var X=$2[G];X.blockedOn===$&&(X.blockedOn=null)}for(;0<$2.length&&(G=$2[0],G.blockedOn===null);)mH(G),G.blockedOn===null&&$2.shift();if(G=($.ownerDocument||$).$$reactFormReplay,G!=null)for(X=0;X<G.length;X+=3){var N=G[X],B=G[X+1],W=N[w5]||null;if(typeof B==="function")W||pH(G);else if(W){var R=null;if(B&&B.hasAttribute("formAction")){if(N=B,W=B[w5]||null)R=W.formAction;else if(GY(N)!==null)continue}else R=W.action;typeof R==="function"?G[X+1]=R:(G.splice(X,3),X-=3),pH(G)}}}function cH(){function $(B){B.canIntercept&&B.info==="react-transition"&&B.intercept({handler:function(){return new Promise(function(W){return N=W})},focusReset:"manual",scroll:"manual"})}function Z(){N!==null&&(N(),N=null),X||setTimeout(G,20)}function G(){if(!X&&!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 X=!1,N=null;return navigation.addEventListener("navigate",$),navigation.addEventListener("navigatesuccess",Z),navigation.addEventListener("navigateerror",Z),setTimeout(G,100),function(){X=!0,navigation.removeEventListener("navigate",$),navigation.removeEventListener("navigatesuccess",Z),navigation.removeEventListener("navigateerror",Z),N!==null&&(N(),N=null)}}}function JY($){this._internalRoot=$}function vG($){this._internalRoot=$}function lH($){$[A6]&&($._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 y0=Object.assign,RV=Symbol.for("react.element"),J8=Symbol.for("react.transitional.element"),o$=Symbol.for("react.portal"),a$=Symbol.for("react.fragment"),kG=Symbol.for("react.strict_mode"),qY=Symbol.for("react.profiler"),XY=Symbol.for("react.consumer"),q8=Symbol.for("react.context"),u7=Symbol.for("react.forward_ref"),YY=Symbol.for("react.suspense"),UY=Symbol.for("react.suspense_list"),bG=Symbol.for("react.memo"),i5=Symbol.for("react.lazy"),NY=Symbol.for("react.activity"),wV=Symbol.for("react.memo_cache_sentinel"),rH=Symbol.iterator,TV=Symbol.for("react.client.reference"),c1=Array.isArray,x=v9.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Z1=bU.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,_V=Object.freeze({pending:!1,data:null,method:null,action:null}),KY=[],BY=[],b8=-1,O6=N0(null),m7=N0(null),D6=N0(null),fG=N0(null),d7=0,sH,nH,oH,aH,iH,tH,eH;S.__reactDisabledLog=!0;var MY,$F,HY=!1,FY=new(typeof WeakMap==="function"?WeakMap:Map),t5=null,X8=!1,D4=Object.prototype.hasOwnProperty,WY=i0.unstable_scheduleCallback,zV=i0.unstable_cancelCallback,LV=i0.unstable_shouldYield,VV=i0.unstable_requestPaint,o1=i0.unstable_now,EV=i0.unstable_getCurrentPriorityLevel,RY=i0.unstable_ImmediatePriority,wY=i0.unstable_UserBlockingPriority,i$=i0.unstable_NormalPriority,PV=i0.unstable_LowPriority,TY=i0.unstable_IdlePriority,CV=i0.log,IV=i0.unstable_setDisableYieldValue,t$=null,M5=null,Y8=!1,U8=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u",R5=Math.clz32?Math.clz32:EQ,OV=Math.log,DV=Math.LN2,yG=256,gG=262144,hG=4194304,e5=2,j4=8,N8=32,xG=268435456,j6=Math.random().toString(36).slice(2),G5="__reactFiber$"+j6,w5="__reactProps$"+j6,A6="__reactContainer$"+j6,_Y="__reactEvents$"+j6,jV="__reactListeners$"+j6,AV="__reactHandles$"+j6,ZF="__reactResources$"+j6,p7="__reactMarker$"+j6,QF=new Set,m2={},zY={},SV={button:!0,checkbox:!0,image:!0,hidden:!0,radio:!0,reset:!0,submit:!0},vV=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]*$"),GF={},JF={},kV=/[\n"\\]/g,qF=!1,XF=!1,YF=!1,UF=!1,NF=!1,KF=!1,BF=["value","defaultValue"],MF=!1,HF=/["'&<>\n\t]|^\s|\s$/,bV="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(" "),FF="applet caption html table td th marquee object template foreignObject desc title".split(" "),fV=FF.concat(["button"]),yV="dd dt li option optgroup p rp rt".split(" "),WF={current:null,formTag:null,aTagInScope:null,buttonTagInScope:null,nobrTagInScope:null,pTagInButtonScope:null,listItemTagAutoclosing:null,dlItemTagAutoclosing:null,containerTagInScope:null,implicitRootScope:!1},uG={},LY={animation:"animationDelay animationDirection animationDuration animationFillMode animationIterationCount animationName animationPlayState animationTimingFunction".split(" "),background:"backgroundAttachment backgroundClip backgroundColor backgroundImage backgroundOrigin backgroundPositionX backgroundPositionY backgroundRepeat backgroundSize".split(" "),backgroundPosition:["backgroundPositionX","backgroundPositionY"],border:"borderBottomColor borderBottomStyle borderBottomWidth borderImageOutset borderImageRepeat borderImageSlice borderImageSource borderImageWidth borderLeftColor borderLeftStyle borderLeftWidth borderRightColor borderRightStyle borderRightWidth borderTopColor borderTopStyle borderTopWidth".split(" "),borderBlockEnd:["borderBlockEndColor","borderBlockEndStyle","borderBlockEndWidth"],borderBlockStart:["borderBlockStartColor","borderBlockStartStyle","borderBlockStartWidth"],borderBottom:["borderBottomColor","borderBottomStyle","borderBottomWidth"],borderColor:["borderBottomColor","borderLeftColor","borderRightColor","borderTopColor"],borderImage:["borderImageOutset","borderImageRepeat","borderImageSlice","borderImageSource","borderImageWidth"],borderInlineEnd:["borderInlineEndColor","borderInlineEndStyle","borderInlineEndWidth"],borderInlineStart:["borderInlineStartColor","borderInlineStartStyle","borderInlineStartWidth"],borderLeft:["borderLeftColor","borderLeftStyle","borderLeftWidth"],borderRadius:["borderBottomLeftRadius","borderBottomRightRadius","borderTopLeftRadius","borderTopRightRadius"],borderRight:["borderRightColor","borderRightStyle","borderRightWidth"],borderStyle:["borderBottomStyle","borderLeftStyle","borderRightStyle","borderTopStyle"],borderTop:["borderTopColor","borderTopStyle","borderTopWidth"],borderWidth:["borderBottomWidth","borderLeftWidth","borderRightWidth","borderTopWidth"],columnRule:["columnRuleColor","columnRuleStyle","columnRuleWidth"],columns:["columnCount","columnWidth"],flex:["flexBasis","flexGrow","flexShrink"],flexFlow:["flexDirection","flexWrap"],font:"fontFamily fontFeatureSettings fontKerning fontLanguageOverride fontSize fontSizeAdjust fontStretch fontStyle fontVariant fontVariantAlternates fontVariantCaps fontVariantEastAsian fontVariantLigatures fontVariantNumeric fontVariantPosition fontWeight lineHeight".split(" "),fontVariant:"fontVariantAlternates fontVariantCaps fontVariantEastAsian fontVariantLigatures fontVariantNumeric fontVariantPosition".split(" "),gap:["columnGap","rowGap"],grid:"gridAutoColumns gridAutoFlow gridAutoRows gridTemplateAreas gridTemplateColumns gridTemplateRows".split(" "),gridArea:["gridColumnEnd","gridColumnStart","gridRowEnd","gridRowStart"],gridColumn:["gridColumnEnd","gridColumnStart"],gridColumnGap:["columnGap"],gridGap:["columnGap","rowGap"],gridRow:["gridRowEnd","gridRowStart"],gridRowGap:["rowGap"],gridTemplate:["gridTemplateAreas","gridTemplateColumns","gridTemplateRows"],listStyle:["listStyleImage","listStylePosition","listStyleType"],margin:["marginBottom","marginLeft","marginRight","marginTop"],marker:["markerEnd","markerMid","markerStart"],mask:"maskClip maskComposite maskImage maskMode maskOrigin maskPositionX maskPositionY maskRepeat maskSize".split(" "),maskPosition:["maskPositionX","maskPositionY"],outline:["outlineColor","outlineStyle","outlineWidth"],overflow:["overflowX","overflowY"],padding:["paddingBottom","paddingLeft","paddingRight","paddingTop"],placeContent:["alignContent","justifyContent"],placeItems:["alignItems","justifyItems"],placeSelf:["alignSelf","justifySelf"],textDecoration:["textDecorationColor","textDecorationLine","textDecorationStyle"],textEmphasis:["textEmphasisColor","textEmphasisStyle"],transition:["transitionDelay","transitionDuration","transitionProperty","transitionTimingFunction"],wordWrap:["overflowWrap"]},RF=/([A-Z])/g,wF=/^ms-/,gV=/^(?:webkit|moz|o)[A-Z]/,hV=/^-ms-/,xV=/-(.)/g,TF=/;\s*$/,e$={},VY={},_F=!1,zF=!1,LF=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(" ")),mG="http://www.w3.org/1998/Math/MathML",$9="http://www.w3.org/2000/svg",uV=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"]]),dG={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"},VF={"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},Z9={},mV=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]*$"),dV=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]*$"),EF=!1,T5={},PF=/^on./,pV=/^on[^A-Z]/,cV=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]*$"),lV=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]*$"),rV=/^[\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,c7=null,Q9=null,G9=null,EY=!1,K8=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),PY=!1;if(K8)try{var l7={};Object.defineProperty(l7,"passive",{get:function(){PY=!0}}),window.addEventListener("test",l7,l7),window.removeEventListener("test",l7,l7)}catch($){PY=!1}var S6=null,CY=null,pG=null,d2={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function($){return $.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},cG=I5(d2),r7=y0({},d2,{view:0,detail:0}),sV=I5(r7),IY,OY,s7,lG=y0({},r7,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:N3,button:0,buttons:0,relatedTarget:function($){return $.relatedTarget===void 0?$.fromElement===$.srcElement?$.toElement:$.fromElement:$.relatedTarget},movementX:function($){if("movementX"in $)return $.movementX;return $!==s7&&(s7&&$.type==="mousemove"?(IY=$.screenX-s7.screenX,OY=$.screenY-s7.screenY):OY=IY=0,s7=$),IY},movementY:function($){return"movementY"in $?$.movementY:OY}}),CF=I5(lG),nV=y0({},lG,{dataTransfer:0}),oV=I5(nV),aV=y0({},r7,{relatedTarget:0}),DY=I5(aV),iV=y0({},d2,{animationName:0,elapsedTime:0,pseudoElement:0}),tV=I5(iV),eV=y0({},d2,{clipboardData:function($){return"clipboardData"in $?$.clipboardData:window.clipboardData}}),$E=I5(eV),ZE=y0({},d2,{data:0}),IF=I5(ZE),QE=IF,GE={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},JE={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"},qE={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"},XE=y0({},r7,{key:function($){if($.key){var Z=GE[$.key]||$.key;if(Z!=="Unidentified")return Z}return $.type==="keypress"?($=AQ($),$===13?"Enter":String.fromCharCode($)):$.type==="keydown"||$.type==="keyup"?JE[$.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:N3,charCode:function($){return $.type==="keypress"?AQ($):0},keyCode:function($){return $.type==="keydown"||$.type==="keyup"?$.keyCode:0},which:function($){return $.type==="keypress"?AQ($):$.type==="keydown"||$.type==="keyup"?$.keyCode:0}}),YE=I5(XE),UE=y0({},lG,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),OF=I5(UE),NE=y0({},r7,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:N3}),KE=I5(NE),BE=y0({},d2,{propertyName:0,elapsedTime:0,pseudoElement:0}),ME=I5(BE),HE=y0({},lG,{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}),FE=I5(HE),WE=y0({},d2,{newState:0,oldState:0}),RE=I5(WE),wE=[9,13,27,32],DF=229,jY=K8&&"CompositionEvent"in window,n7=null;K8&&"documentMode"in document&&(n7=document.documentMode);var TE=K8&&"TextEvent"in window&&!n7,jF=K8&&(!jY||n7&&8<n7&&11>=n7),AF=32,SF=String.fromCharCode(AF),vF=!1,J9=!1,_E={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},o7=null,a7=null,kF=!1;K8&&(kF=uz("input")&&(!document.documentMode||9<document.documentMode));var _5=typeof Object.is==="function"?Object.is:rz,zE=K8&&"documentMode"in document&&11>=document.documentMode,q9=null,AY=null,i7=null,SY=!1,X9={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")},vY={},bF={};K8&&(bF=document.createElement("div").style,("AnimationEvent"in window)||(delete X9.animationend.animation,delete X9.animationiteration.animation,delete X9.animationstart.animation),("TransitionEvent"in window)||delete X9.transitionend.transition);var fF=D2("animationend"),yF=D2("animationiteration"),gF=D2("animationstart"),LE=D2("transitionrun"),VE=D2("transitionstart"),EE=D2("transitioncancel"),hF=D2("transitionend"),xF=new Map,kY="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(" ");kY.push("scrollEnd");var uF=0;if(typeof performance==="object"&&typeof performance.now==="function")var PE=performance,mF=function(){return PE.now()};else{var CE=Date;mF=function(){return CE.now()}}var bY=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($)},IE="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.",rG=0,fY=1,yY=2,gY=3,sG="– ",nG="+ ",dF=" ",R1=typeof console<"u"&&typeof console.timeStamp==="function"&&typeof performance<"u"&&typeof performance.measure==="function",N4="Components ⚛",g0="Scheduler ⚛",u0="Blocking",v6=!1,f8={color:"primary",properties:null,tooltipText:"",track:N4},k6={start:-0,end:-0,detail:{devtools:f8}},OE=["Changed Props",""],pF="This component received deeply equal props. It might benefit from useMemo or the React Compiler in its owner.",DE=["Changed Props",pF],t7=1,y8=2,K4=[],Y9=0,hY=0,b6={};Object.freeze(b6);var B4=null,U9=null,z0=0,jE=1,j0=2,H5=8,A4=16,AE=32,cF=!1;try{var lF=Object.preventExtensions({})}catch($){cF=!0}var xY=new WeakMap,N9=[],K9=0,oG=null,e7=0,M4=[],H4=0,p2=null,g8=1,h8="",J5=null,w1=null,p0=!1,B8=!1,$4=null,f6=null,F4=!1,uY=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."),mY=N0(null),dY=N0(null),rF={},aG=null,B9=null,M9=!1,SE=typeof AbortController<"u"?AbortController:function(){var $=[],Z=this.signal={aborted:!1,addEventListener:function(G,X){$.push(X)}};this.abort=function(){Z.aborted=!0,$.forEach(function(G){return G()})}},vE=i0.unstable_scheduleCallback,kE=i0.unstable_NormalPriority,y1={$$typeof:q8,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0,_currentRenderer:null,_currentRenderer2:null},g1=i0.unstable_now,iG=console.createTask?console.createTask:function(){return null},$Z=1,tG=2,a1=-0,y6=-0,x8=-0,u8=null,z5=-1.1,c2=-0,V1=-0,W0=-1.1,T0=-1.1,L1=null,I1=!1,g6=-0,M8=-1.1,ZZ=null,h6=0,pY=null,cY=null,l2=-1.1,QZ=null,H9=-1.1,eG=-1.1,H8=-0,m8=-1.1,W4=-1.1,lY=0,GZ=null,sF=null,nF=null,x6=-1.1,r2=null,u6=-1.1,$J=-1.1,oF=-0,aF=-0,ZJ=0,d8=null,iF=0,JZ=-1.1,QJ=!1,GJ=!1,qZ=null,rY=0,s2=0,F9=null,tF=x.S;x.S=function($,Z){if(sW=o1(),typeof Z==="object"&&Z!==null&&typeof Z.then==="function"){if(0>m8&&0>W4){m8=g1();var G=f7(),X=b7();if(G!==u6||X!==r2)u6=-1.1;x6=G,r2=X}ez($,Z)}tF!==null&&tF($,Z)};var n2=N0(null),S4={recordUnsafeLifecycleWarnings:function(){},flushPendingUnsafeLifecycleWarnings:function(){},recordLegacyContextWarning:function(){},flushLegacyContextWarning:function(){},discardPendingWarnings:function(){}},XZ=[],YZ=[],UZ=[],NZ=[],KZ=[],BZ=[],o2=new Set;S4.recordUnsafeLifecycleWarnings=function($,Z){o2.has($.type)||(typeof Z.componentWillMount==="function"&&Z.componentWillMount.__suppressDeprecationWarning!==!0&&XZ.push($),$.mode&H5&&typeof Z.UNSAFE_componentWillMount==="function"&&YZ.push($),typeof Z.componentWillReceiveProps==="function"&&Z.componentWillReceiveProps.__suppressDeprecationWarning!==!0&&UZ.push($),$.mode&H5&&typeof Z.UNSAFE_componentWillReceiveProps==="function"&&NZ.push($),typeof Z.componentWillUpdate==="function"&&Z.componentWillUpdate.__suppressDeprecationWarning!==!0&&KZ.push($),$.mode&H5&&typeof Z.UNSAFE_componentWillUpdate==="function"&&BZ.push($))},S4.flushPendingUnsafeLifecycleWarnings=function(){var $=new Set;0<XZ.length&&(XZ.forEach(function(R){$.add(d(R)||"Component"),o2.add(R.type)}),XZ=[]);var Z=new Set;0<YZ.length&&(YZ.forEach(function(R){Z.add(d(R)||"Component"),o2.add(R.type)}),YZ=[]);var G=new Set;0<UZ.length&&(UZ.forEach(function(R){G.add(d(R)||"Component"),o2.add(R.type)}),UZ=[]);var X=new Set;0<NZ.length&&(NZ.forEach(function(R){X.add(d(R)||"Component"),o2.add(R.type)}),NZ=[]);var N=new Set;0<KZ.length&&(KZ.forEach(function(R){N.add(d(R)||"Component"),o2.add(R.type)}),KZ=[]);var B=new Set;if(0<BZ.length&&(BZ.forEach(function(R){B.add(d(R)||"Component"),o2.add(R.type)}),BZ=[]),0<Z.size){var W=_(Z);console.error(`Using UNSAFE_componentWillMount in strict mode is not recommended and may indicate bugs in your code. See https://react.dev/link/unsafe-component-lifecycles for details.
|
|
184
|
+
Check the render method of %s.`,d(t5)||"Unknown")),X=z6(Z),X.payload={element:G},B=B===void 0?null:B,B!==null&&(typeof B!=="function"&&console.error("Expected the last optional `callback` argument to be a function. Instead received: %s.",B),X.callback=B),G=_6($,X,Z),G!==null&&(l4(Z,"root.render()",null),C1(G,$,Z),T7(G,$,Z))}function xM($,Z){if($=$.memoizedState,$!==null&&$.dehydrated!==null){var G=$.retryLane;$.retryLane=G!==0&&G<Z?G:Z}}function QY($,Z){xM($,Z),($=$.alternate)&&xM($,Z)}function uM($){if($.tag===13||$.tag===31){var Z=B5($,67108864);Z!==null&&C1(Z,$,67108864),QY($,67108864)}}function mM($){if($.tag===13||$.tag===31){var Z=o5($);Z=C2(Z);var G=B5($,Z);G!==null&&C1(G,$,Z),QY($,Z)}}function wV(){return t5}function RV($,Z,G,X){var N=x.T;x.T=null;var B=Z1.p;try{Z1.p=e5,GY($,Z,G,X)}finally{Z1.p=B,x.T=N}}function TV($,Z,G,X){var N=x.T;x.T=null;var B=Z1.p;try{Z1.p=j4,GY($,Z,G,X)}finally{Z1.p=B,x.T=N}}function GY($,Z,G,X){if(yJ){var N=JY(X);if(N===null)dX($,Z,X,gJ,G),pM($,X);else if(zV(N,$,Z,G,X))X.stopPropagation();else if(pM($,X),Z&4&&-1<BP.indexOf($)){for(;N!==null;){var B=E0(N);if(B!==null)switch(B.tag){case 3:if(B=B.stateNode,B.current.memoizedState.isDehydrated){var W=m4(B.pendingLanes);if(W!==0){var w=B;w.pendingLanes|=2;for(w.entangledLanes|=2;W;){var _=1<<31-w5(W);w.entanglements[1]|=_,W&=~_}Q8(B),(o0&(r1|G4))===t1&&(zJ=o1()+tW,v7(0,!1))}}break;case 31:case 13:w=B5(B,2),w!==null&&C1(w,B,2),p$(),QY(B,2)}if(B=JY(X),B===null&&dX($,Z,X,gJ,G),B===N)break;N=B}N!==null&&X.stopPropagation()}else dX($,Z,X,null,G)}}function JY($){return $=K3($),qY($)}function qY($){if(gJ=null,$=q0($),$!==null){var Z=g($);if(Z===null)$=null;else{var G=Z.tag;if(G===13){if($=m(Z),$!==null)return $;$=null}else if(G===31){if($=o(Z),$!==null)return $;$=null}else if(G===3){if(Z.stateNode.current.memoizedState.isDehydrated)return Z.tag===3?Z.stateNode.containerInfo:null;$=null}else Z!==$&&($=null)}}return gJ=$,null}function dM($){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 e5;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(DV()){case TY:return e5;case zY:return j4;case i$:case jV:return N8;case _Y:return xG;default:return N8}default:return N8}}function pM($,Z){switch($){case"focusin":case"focusout":i6=null;break;case"dragenter":case"dragleave":t6=null;break;case"mouseover":case"mouseout":e6=null;break;case"pointerover":case"pointerout":kZ.delete(Z.pointerId);break;case"gotpointercapture":case"lostpointercapture":bZ.delete(Z.pointerId)}}function x7($,Z,G,X,N,B){if($===null||$.nativeEvent!==B)return $={blockedOn:Z,domEventName:G,eventSystemFlags:X,nativeEvent:B,targetContainers:[N]},Z!==null&&(Z=E0(Z),Z!==null&&uM(Z)),$;return $.eventSystemFlags|=X,Z=$.targetContainers,N!==null&&Z.indexOf(N)===-1&&Z.push(N),$}function zV($,Z,G,X,N){switch(Z){case"focusin":return i6=x7(i6,$,Z,G,X,N),!0;case"dragenter":return t6=x7(t6,$,Z,G,X,N),!0;case"mouseover":return e6=x7(e6,$,Z,G,X,N),!0;case"pointerover":var B=N.pointerId;return kZ.set(B,x7(kZ.get(B)||null,$,Z,G,X,N)),!0;case"gotpointercapture":return B=N.pointerId,bZ.set(B,x7(bZ.get(B)||null,$,Z,G,X,N)),!0}return!1}function cM($){var Z=q0($.target);if(Z!==null){var G=g(Z);if(G!==null){if(Z=G.tag,Z===13){if(Z=m(G),Z!==null){$.blockedOn=Z,r($.priority,function(){mM(G)});return}}else if(Z===31){if(Z=o(G),Z!==null){$.blockedOn=Z,r($.priority,function(){mM(G)});return}}else if(Z===3&&G.stateNode.current.memoizedState.isDehydrated){$.blockedOn=G.tag===3?G.stateNode.containerInfo:null;return}}}$.blockedOn=null}function AG($){if($.blockedOn!==null)return!1;for(var Z=$.targetContainers;0<Z.length;){var G=JY($.nativeEvent);if(G===null){G=$.nativeEvent;var X=new G.constructor(G.type,G),N=X;c7!==null&&console.error("Expected currently replaying event to be null. This error is likely caused by a bug in React. Please file an issue."),c7=N,G.target.dispatchEvent(X),c7===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."),c7=null}else return Z=E0(G),Z!==null&&uM(Z),$.blockedOn=G,!1;Z.shift()}return!0}function lM($,Z,G){AG($)&&G.delete(Z)}function _V(){bU=!1,i6!==null&&AG(i6)&&(i6=null),t6!==null&&AG(t6)&&(t6=null),e6!==null&&AG(e6)&&(e6=null),kZ.forEach(lM),bZ.forEach(lM)}function SG($,Z){$.blockedOn===Z&&($.blockedOn=null,bU||(bU=!0,i0.unstable_scheduleCallback(i0.unstable_NormalPriority,_V)))}function rM($){hJ!==$&&(hJ=$,i0.unstable_scheduleCallback(i0.unstable_NormalPriority,function(){hJ===$&&(hJ=null);for(var Z=0;Z<$.length;Z+=3){var G=$[Z],X=$[Z+1],N=$[Z+2];if(typeof X!=="function")if(qY(X||G)===null)continue;else break;var B=E0(G);B!==null&&($.splice(Z,3),Z-=3,G={pending:!0,data:N,method:G.method,action:X},Object.freeze(G),qX(B,G,X,N))}}))}function n$($){function Z(_){return SG(_,$)}i6!==null&&SG(i6,$),t6!==null&&SG(t6,$),e6!==null&&SG(e6,$),kZ.forEach(Z),bZ.forEach(Z);for(var G=0;G<$2.length;G++){var X=$2[G];X.blockedOn===$&&(X.blockedOn=null)}for(;0<$2.length&&(G=$2[0],G.blockedOn===null);)cM(G),G.blockedOn===null&&$2.shift();if(G=($.ownerDocument||$).$$reactFormReplay,G!=null)for(X=0;X<G.length;X+=3){var N=G[X],B=G[X+1],W=N[R5]||null;if(typeof B==="function")W||rM(G);else if(W){var w=null;if(B&&B.hasAttribute("formAction")){if(N=B,W=B[R5]||null)w=W.formAction;else if(qY(N)!==null)continue}else w=W.action;typeof w==="function"?G[X+1]=w:(G.splice(X,3),X-=3),rM(G)}}}function sM(){function $(B){B.canIntercept&&B.info==="react-transition"&&B.intercept({handler:function(){return new Promise(function(W){return N=W})},focusReset:"manual",scroll:"manual"})}function Z(){N!==null&&(N(),N=null),X||setTimeout(G,20)}function G(){if(!X&&!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 X=!1,N=null;return navigation.addEventListener("navigate",$),navigation.addEventListener("navigatesuccess",Z),navigation.addEventListener("navigateerror",Z),setTimeout(G,100),function(){X=!0,navigation.removeEventListener("navigate",$),navigation.removeEventListener("navigatesuccess",Z),navigation.removeEventListener("navigateerror",Z),N!==null&&(N(),N=null)}}}function XY($){this._internalRoot=$}function vG($){this._internalRoot=$}function nM($){$[A6]&&($._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 y0=Object.assign,LV=Symbol.for("react.element"),J8=Symbol.for("react.transitional.element"),o$=Symbol.for("react.portal"),a$=Symbol.for("react.fragment"),kG=Symbol.for("react.strict_mode"),YY=Symbol.for("react.profiler"),UY=Symbol.for("react.consumer"),q8=Symbol.for("react.context"),u7=Symbol.for("react.forward_ref"),NY=Symbol.for("react.suspense"),KY=Symbol.for("react.suspense_list"),bG=Symbol.for("react.memo"),i5=Symbol.for("react.lazy"),BY=Symbol.for("react.activity"),VV=Symbol.for("react.memo_cache_sentinel"),oM=Symbol.iterator,EV=Symbol.for("react.client.reference"),c1=Array.isArray,x=v9.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Z1=yU.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,PV=Object.freeze({pending:!1,data:null,method:null,action:null}),HY=[],MY=[],b8=-1,O6=N0(null),m7=N0(null),D6=N0(null),fG=N0(null),d7=0,aM,iM,tM,eM,$F,ZF,QF;S.__reactDisabledLog=!0;var FY,GF,WY=!1,wY=new(typeof WeakMap==="function"?WeakMap:Map),t5=null,X8=!1,D4=Object.prototype.hasOwnProperty,RY=i0.unstable_scheduleCallback,CV=i0.unstable_cancelCallback,IV=i0.unstable_shouldYield,OV=i0.unstable_requestPaint,o1=i0.unstable_now,DV=i0.unstable_getCurrentPriorityLevel,TY=i0.unstable_ImmediatePriority,zY=i0.unstable_UserBlockingPriority,i$=i0.unstable_NormalPriority,jV=i0.unstable_LowPriority,_Y=i0.unstable_IdlePriority,AV=i0.log,SV=i0.unstable_setDisableYieldValue,t$=null,H5=null,Y8=!1,U8=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u",w5=Math.clz32?Math.clz32:EQ,vV=Math.log,kV=Math.LN2,yG=256,gG=262144,hG=4194304,e5=2,j4=8,N8=32,xG=268435456,j6=Math.random().toString(36).slice(2),G5="__reactFiber$"+j6,R5="__reactProps$"+j6,A6="__reactContainer$"+j6,LY="__reactEvents$"+j6,bV="__reactListeners$"+j6,fV="__reactHandles$"+j6,JF="__reactResources$"+j6,p7="__reactMarker$"+j6,qF=new Set,m2={},VY={},yV={button:!0,checkbox:!0,image:!0,hidden:!0,radio:!0,reset:!0,submit:!0},gV=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]*$"),XF={},YF={},hV=/[\n"\\]/g,UF=!1,NF=!1,KF=!1,BF=!1,HF=!1,MF=!1,FF=["value","defaultValue"],WF=!1,wF=/["'&<>\n\t]|^\s|\s$/,xV="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(" "),RF="applet caption html table td th marquee object template foreignObject desc title".split(" "),uV=RF.concat(["button"]),mV="dd dt li option optgroup p rp rt".split(" "),TF={current:null,formTag:null,aTagInScope:null,buttonTagInScope:null,nobrTagInScope:null,pTagInButtonScope:null,listItemTagAutoclosing:null,dlItemTagAutoclosing:null,containerTagInScope:null,implicitRootScope:!1},uG={},EY={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"]},zF=/([A-Z])/g,_F=/^ms-/,dV=/^(?:webkit|moz|o)[A-Z]/,pV=/^-ms-/,cV=/-(.)/g,LF=/;\s*$/,e$={},PY={},VF=!1,EF=!1,PF=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(" ")),mG="http://www.w3.org/1998/Math/MathML",$9="http://www.w3.org/2000/svg",lV=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"]]),dG={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"},CF={"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},Z9={},rV=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]*$"),sV=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]*$"),IF=!1,T5={},OF=/^on./,nV=/^on[^A-Z]/,oV=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]*$"),aV=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]*$"),iV=/^[\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,c7=null,Q9=null,G9=null,CY=!1,K8=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),IY=!1;if(K8)try{var l7={};Object.defineProperty(l7,"passive",{get:function(){IY=!0}}),window.addEventListener("test",l7,l7),window.removeEventListener("test",l7,l7)}catch($){IY=!1}var S6=null,OY=null,pG=null,d2={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function($){return $.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},cG=I5(d2),r7=y0({},d2,{view:0,detail:0}),tV=I5(r7),DY,jY,s7,lG=y0({},r7,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:B3,button:0,buttons:0,relatedTarget:function($){return $.relatedTarget===void 0?$.fromElement===$.srcElement?$.toElement:$.fromElement:$.relatedTarget},movementX:function($){if("movementX"in $)return $.movementX;return $!==s7&&(s7&&$.type==="mousemove"?(DY=$.screenX-s7.screenX,jY=$.screenY-s7.screenY):jY=DY=0,s7=$),DY},movementY:function($){return"movementY"in $?$.movementY:jY}}),DF=I5(lG),eV=y0({},lG,{dataTransfer:0}),$E=I5(eV),ZE=y0({},r7,{relatedTarget:0}),AY=I5(ZE),QE=y0({},d2,{animationName:0,elapsedTime:0,pseudoElement:0}),GE=I5(QE),JE=y0({},d2,{clipboardData:function($){return"clipboardData"in $?$.clipboardData:window.clipboardData}}),qE=I5(JE),XE=y0({},d2,{data:0}),jF=I5(XE),YE=jF,UE={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},NE={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"},KE={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"},BE=y0({},r7,{key:function($){if($.key){var Z=UE[$.key]||$.key;if(Z!=="Unidentified")return Z}return $.type==="keypress"?($=AQ($),$===13?"Enter":String.fromCharCode($)):$.type==="keydown"||$.type==="keyup"?NE[$.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:B3,charCode:function($){return $.type==="keypress"?AQ($):0},keyCode:function($){return $.type==="keydown"||$.type==="keyup"?$.keyCode:0},which:function($){return $.type==="keypress"?AQ($):$.type==="keydown"||$.type==="keyup"?$.keyCode:0}}),HE=I5(BE),ME=y0({},lG,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),AF=I5(ME),FE=y0({},r7,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:B3}),WE=I5(FE),wE=y0({},d2,{propertyName:0,elapsedTime:0,pseudoElement:0}),RE=I5(wE),TE=y0({},lG,{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}),zE=I5(TE),_E=y0({},d2,{newState:0,oldState:0}),LE=I5(_E),VE=[9,13,27,32],SF=229,SY=K8&&"CompositionEvent"in window,n7=null;K8&&"documentMode"in document&&(n7=document.documentMode);var EE=K8&&"TextEvent"in window&&!n7,vF=K8&&(!SY||n7&&8<n7&&11>=n7),kF=32,bF=String.fromCharCode(kF),fF=!1,J9=!1,PE={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},o7=null,a7=null,yF=!1;K8&&(yF=l_("input")&&(!document.documentMode||9<document.documentMode));var z5=typeof Object.is==="function"?Object.is:i_,CE=K8&&"documentMode"in document&&11>=document.documentMode,q9=null,vY=null,i7=null,kY=!1,X9={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")},bY={},gF={};K8&&(gF=document.createElement("div").style,("AnimationEvent"in window)||(delete X9.animationend.animation,delete X9.animationiteration.animation,delete X9.animationstart.animation),("TransitionEvent"in window)||delete X9.transitionend.transition);var hF=D2("animationend"),xF=D2("animationiteration"),uF=D2("animationstart"),IE=D2("transitionrun"),OE=D2("transitionstart"),DE=D2("transitioncancel"),mF=D2("transitionend"),dF=new Map,fY="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(" ");fY.push("scrollEnd");var pF=0;if(typeof performance==="object"&&typeof performance.now==="function")var jE=performance,cF=function(){return jE.now()};else{var AE=Date;cF=function(){return AE.now()}}var yY=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($)},SE="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.",rG=0,gY=1,hY=2,xY=3,sG="– ",nG="+ ",lF=" ",w1=typeof console<"u"&&typeof console.timeStamp==="function"&&typeof performance<"u"&&typeof performance.measure==="function",N4="Components ⚛",g0="Scheduler ⚛",u0="Blocking",v6=!1,f8={color:"primary",properties:null,tooltipText:"",track:N4},k6={start:-0,end:-0,detail:{devtools:f8}},vE=["Changed Props",""],rF="This component received deeply equal props. It might benefit from useMemo or the React Compiler in its owner.",kE=["Changed Props",rF],t7=1,y8=2,K4=[],Y9=0,uY=0,b6={};Object.freeze(b6);var B4=null,U9=null,_0=0,bE=1,j0=2,M5=8,A4=16,fE=32,sF=!1;try{var nF=Object.preventExtensions({})}catch($){sF=!0}var mY=new WeakMap,N9=[],K9=0,oG=null,e7=0,H4=[],M4=0,p2=null,g8=1,h8="",J5=null,R1=null,p0=!1,B8=!1,$4=null,f6=null,F4=!1,dY=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."),pY=N0(null),cY=N0(null),oF={},aG=null,B9=null,H9=!1,yE=typeof AbortController<"u"?AbortController:function(){var $=[],Z=this.signal={aborted:!1,addEventListener:function(G,X){$.push(X)}};this.abort=function(){Z.aborted=!0,$.forEach(function(G){return G()})}},gE=i0.unstable_scheduleCallback,hE=i0.unstable_NormalPriority,y1={$$typeof:q8,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0,_currentRenderer:null,_currentRenderer2:null},g1=i0.unstable_now,iG=console.createTask?console.createTask:function(){return null},$Z=1,tG=2,a1=-0,y6=-0,x8=-0,u8=null,_5=-1.1,c2=-0,V1=-0,W0=-1.1,T0=-1.1,L1=null,I1=!1,g6=-0,H8=-1.1,ZZ=null,h6=0,lY=null,rY=null,l2=-1.1,QZ=null,M9=-1.1,eG=-1.1,M8=-0,m8=-1.1,W4=-1.1,sY=0,GZ=null,aF=null,iF=null,x6=-1.1,r2=null,u6=-1.1,$J=-1.1,tF=-0,eF=-0,ZJ=0,d8=null,$W=0,JZ=-1.1,QJ=!1,GJ=!1,qZ=null,nY=0,s2=0,F9=null,ZW=x.S;x.S=function($,Z){if(aW=o1(),typeof Z==="object"&&Z!==null&&typeof Z.then==="function"){if(0>m8&&0>W4){m8=g1();var G=f7(),X=b7();if(G!==u6||X!==r2)u6=-1.1;x6=G,r2=X}JL($,Z)}ZW!==null&&ZW($,Z)};var n2=N0(null),S4={recordUnsafeLifecycleWarnings:function(){},flushPendingUnsafeLifecycleWarnings:function(){},recordLegacyContextWarning:function(){},flushLegacyContextWarning:function(){},discardPendingWarnings:function(){}},XZ=[],YZ=[],UZ=[],NZ=[],KZ=[],BZ=[],o2=new Set;S4.recordUnsafeLifecycleWarnings=function($,Z){o2.has($.type)||(typeof Z.componentWillMount==="function"&&Z.componentWillMount.__suppressDeprecationWarning!==!0&&XZ.push($),$.mode&M5&&typeof Z.UNSAFE_componentWillMount==="function"&&YZ.push($),typeof Z.componentWillReceiveProps==="function"&&Z.componentWillReceiveProps.__suppressDeprecationWarning!==!0&&UZ.push($),$.mode&M5&&typeof Z.UNSAFE_componentWillReceiveProps==="function"&&NZ.push($),typeof Z.componentWillUpdate==="function"&&Z.componentWillUpdate.__suppressDeprecationWarning!==!0&&KZ.push($),$.mode&M5&&typeof Z.UNSAFE_componentWillUpdate==="function"&&BZ.push($))},S4.flushPendingUnsafeLifecycleWarnings=function(){var $=new Set;0<XZ.length&&(XZ.forEach(function(w){$.add(d(w)||"Component"),o2.add(w.type)}),XZ=[]);var Z=new Set;0<YZ.length&&(YZ.forEach(function(w){Z.add(d(w)||"Component"),o2.add(w.type)}),YZ=[]);var G=new Set;0<UZ.length&&(UZ.forEach(function(w){G.add(d(w)||"Component"),o2.add(w.type)}),UZ=[]);var X=new Set;0<NZ.length&&(NZ.forEach(function(w){X.add(d(w)||"Component"),o2.add(w.type)}),NZ=[]);var N=new Set;0<KZ.length&&(KZ.forEach(function(w){N.add(d(w)||"Component"),o2.add(w.type)}),KZ=[]);var B=new Set;if(0<BZ.length&&(BZ.forEach(function(w){B.add(d(w)||"Component"),o2.add(w.type)}),BZ=[]),0<Z.size){var W=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
|
|
|
188
|
-
Please update the following components: %s`,W)}0<X.size&&(W=
|
|
188
|
+
Please update the following components: %s`,W)}0<X.size&&(W=z(X),console.error(`Using UNSAFE_componentWillReceiveProps in strict mode is not recommended and may indicate bugs in your code. See https://react.dev/link/unsafe-component-lifecycles for details.
|
|
189
189
|
|
|
190
190
|
* Move data fetching code or side effects to componentDidUpdate.
|
|
191
191
|
* If you're updating state whenever props change, refactor your code to use memoization techniques or move it to static getDerivedStateFromProps. Learn more at: https://react.dev/link/derived-state
|
|
192
192
|
|
|
193
|
-
Please update the following components: %s`,W)),0<B.size&&(W=
|
|
193
|
+
Please update the following components: %s`,W)),0<B.size&&(W=z(B),console.error(`Using UNSAFE_componentWillUpdate in strict mode is not recommended and may indicate bugs in your code. See https://react.dev/link/unsafe-component-lifecycles for details.
|
|
194
194
|
|
|
195
195
|
* Move data fetching code or side effects to componentDidUpdate.
|
|
196
196
|
|
|
197
|
-
Please update the following components: %s`,W)),0<$.size&&(W=
|
|
197
|
+
Please update the following components: %s`,W)),0<$.size&&(W=z($),console.warn(`componentWillMount has been renamed, and is not recommended for use. See https://react.dev/link/unsafe-component-lifecycles for details.
|
|
198
198
|
|
|
199
199
|
* Move code with side effects to componentDidMount, and set initial state in the constructor.
|
|
200
200
|
* Rename componentWillMount to UNSAFE_componentWillMount to suppress this warning in non-strict mode. In React 18.x, only the UNSAFE_ name will work. To rename all deprecated lifecycles to their new names, you can run \`npx react-codemod rename-unsafe-lifecycles\` in your project source folder.
|
|
201
201
|
|
|
202
|
-
Please update the following components: %s`,W)),0<G.size&&(W=
|
|
202
|
+
Please update the following components: %s`,W)),0<G.size&&(W=z(G),console.warn(`componentWillReceiveProps has been renamed, and is not recommended for use. See https://react.dev/link/unsafe-component-lifecycles for details.
|
|
203
203
|
|
|
204
204
|
* Move data fetching code or side effects to componentDidUpdate.
|
|
205
205
|
* If you're updating state whenever props change, refactor your code to use memoization techniques or move it to static getDerivedStateFromProps. Learn more at: https://react.dev/link/derived-state
|
|
206
206
|
* Rename componentWillReceiveProps to UNSAFE_componentWillReceiveProps to suppress this warning in non-strict mode. In React 18.x, only the UNSAFE_ name will work. To rename all deprecated lifecycles to their new names, you can run \`npx react-codemod rename-unsafe-lifecycles\` in your project source folder.
|
|
207
207
|
|
|
208
|
-
Please update the following components: %s`,W)),0<N.size&&(W=
|
|
208
|
+
Please update the following components: %s`,W)),0<N.size&&(W=z(N),console.warn(`componentWillUpdate has been renamed, and is not recommended for use. See https://react.dev/link/unsafe-component-lifecycles for details.
|
|
209
209
|
|
|
210
210
|
* Move data fetching code or side effects to componentDidUpdate.
|
|
211
211
|
* Rename componentWillUpdate to UNSAFE_componentWillUpdate to suppress this warning in non-strict mode. In React 18.x, only the UNSAFE_ name will work. To rename all deprecated lifecycles to their new names, you can run \`npx react-codemod rename-unsafe-lifecycles\` in your project source folder.
|
|
212
212
|
|
|
213
|
-
Please update the following components: %s`,W))};var JJ=new Map,
|
|
213
|
+
Please update the following components: %s`,W))};var JJ=new Map,QW=new Set;S4.recordLegacyContextWarning=function($,Z){var G=null;for(var X=$;X!==null;)X.mode&M5&&(G=X),X=X.return;G===null?console.error("Expected to find a StrictMode component in a strict mode tree. This error is likely caused by a bug in React. Please file an issue."):!QW.has($.type)&&(X=JJ.get(G),$.type.contextTypes!=null||$.type.childContextTypes!=null||Z!==null&&typeof Z.getChildContext==="function")&&(X===void 0&&(X=[],JJ.set(G,X)),X.push($))},S4.flushLegacyContextWarning=function(){JJ.forEach(function($){if($.length!==0){var Z=$[0],G=new Set;$.forEach(function(N){G.add(d(N)||"Component"),QW.add(N.type)});var X=z(G);G0(Z,function(){console.error(`Legacy context API has been detected within a strict-mode tree.
|
|
214
214
|
|
|
215
215
|
The old API will be supported in all 16.x releases, but applications using it should migrate to the new version.
|
|
216
216
|
|
|
217
217
|
Please update the following components: %s
|
|
218
218
|
|
|
219
|
-
Learn more about this warning here: https://react.dev/link/legacy-context`,X)})}})},S4.discardPendingWarnings=function(){XZ=[],YZ=[],UZ=[],NZ=[],KZ=[],BZ=[],JJ=new Map};var
|
|
219
|
+
Learn more about this warning here: https://react.dev/link/legacy-context`,X)})}})},S4.discardPendingWarnings=function(){XZ=[],YZ=[],UZ=[],NZ=[],KZ=[],BZ=[],JJ=new Map};var GW={react_stack_bottom_frame:function($,Z,G){var X=X8;X8=!0;try{return $(Z,G)}finally{X8=X}}},oY=GW.react_stack_bottom_frame.bind(GW),JW={react_stack_bottom_frame:function($){var Z=X8;X8=!0;try{return $.render()}finally{X8=Z}}},qW=JW.react_stack_bottom_frame.bind(JW),XW={react_stack_bottom_frame:function($,Z){try{Z.componentDidMount()}catch(G){$1($,$.return,G)}}},aY=XW.react_stack_bottom_frame.bind(XW),YW={react_stack_bottom_frame:function($,Z,G,X,N){try{Z.componentDidUpdate(G,X,N)}catch(B){$1($,$.return,B)}}},UW=YW.react_stack_bottom_frame.bind(YW),NW={react_stack_bottom_frame:function($,Z){var G=Z.stack;$.componentDidCatch(Z.value,{componentStack:G!==null?G:""})}},xE=NW.react_stack_bottom_frame.bind(NW),KW={react_stack_bottom_frame:function($,Z,G){try{G.componentWillUnmount()}catch(X){$1($,Z,X)}}},BW=KW.react_stack_bottom_frame.bind(KW),HW={react_stack_bottom_frame:function($){var Z=$.create;return $=$.inst,Z=Z(),$.destroy=Z}},uE=HW.react_stack_bottom_frame.bind(HW),MW={react_stack_bottom_frame:function($,Z,G){try{G()}catch(X){$1($,Z,X)}}},mE=MW.react_stack_bottom_frame.bind(MW),FW={react_stack_bottom_frame:function($){var Z=$._init;return Z($._payload)}},dE=FW.react_stack_bottom_frame.bind(FW),W9=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`."),iY=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."),qJ=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."),XJ={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.')}},a2=null,HZ=!1,w9=null,MZ=0,A0=null,tY,WW=tY=!1,wW={},RW={},TW={};T=function($,Z,G){if(G!==null&&typeof G==="object"&&G._store&&(!G._store.validated&&G.key==null||G._store.validated===2)){if(typeof G._store!=="object")throw Error("React Component in warnForMissingKey should have a _store. This error is likely caused by a bug in React. Please file an issue.");G._store.validated=1;var X=d($),N=X||"null";if(!wW[N]){wW[N]=!0,G=G._owner,$=$._debugOwner;var B="";$&&typeof $.tag==="number"&&(N=d($))&&(B=`
|
|
220
220
|
|
|
221
221
|
Check the render method of \``+N+"`."),B||X&&(B=`
|
|
222
222
|
|
|
223
|
-
Check the top-level render call using <`+X+">.");var W="";G!=null&&$!==G&&(X=null,typeof G.tag==="number"?X=d(G):typeof G.name==="string"&&(X=G.name),X&&(W=" It was passed a child from "+X+".")),G0(Z,function(){console.error('Each child in a list should have a unique "key" prop.%s%s See https://react.dev/link/warning-keys for more information.',B,W)})}}};var i2=YB(!0),RW=YB(!1),wW=0,TW=1,_W=2,iY=3,m6=!1,zW=!1,tY=null,eY=!1,w9=N0(null),YJ=N0(0),Z4=N0(null),R4=null,T9=1,FZ=2,v1=N0(0),UJ=0,w4=1,L5=2,Q4=4,V5=8,_9,LW=new Set,VW=new Set,$U=new Set,EW=new Set,p8=0,L0=null,N1=null,h1=null,NJ=!1,z9=!1,t2=!1,KJ=0,WZ=0,c8=null,hE=0,xE=25,h=null,T4=null,l8=-1,RZ=!1,wZ={readContext:z1,use:E6,useCallback:A1,useContext:A1,useEffect:A1,useImperativeHandle:A1,useLayoutEffect:A1,useInsertionEffect:A1,useMemo:A1,useReducer:A1,useRef:A1,useState:A1,useDebugValue:A1,useDeferredValue:A1,useTransition:A1,useSyncExternalStore:A1,useId:A1,useHostTransitionStatus:A1,useFormState:A1,useActionState:A1,useOptimistic:A1,useMemoCache:A1,useCacheRefresh:A1};wZ.useEffectEvent=A1;var ZU=null,PW=null,QU=null,CW=null,F8=null,v4=null,BJ=null;ZU={readContext:function($){return z1($)},use:E6,useCallback:function($,Z){return h="useCallback",f0(),y$(Z),e3($,Z)},useContext:function($){return h="useContext",f0(),z1($)},useEffect:function($,Z){return h="useEffect",f0(),y$(Z),JG($,Z)},useImperativeHandle:function($,Z,G){return h="useImperativeHandle",f0(),y$(G),t3($,Z,G)},useInsertionEffect:function($,Z){h="useInsertionEffect",f0(),y$(Z),y2(4,L5,$,Z)},useLayoutEffect:function($,Z){return h="useLayoutEffect",f0(),y$(Z),i3($,Z)},useMemo:function($,Z){h="useMemo",f0(),y$(Z);var G=x.H;x.H=F8;try{return $X($,Z)}finally{x.H=G}},useReducer:function($,Z,G){h="useReducer",f0();var X=x.H;x.H=F8;try{return d3($,Z,G)}finally{x.H=X}},useRef:function($){return h="useRef",f0(),o3($)},useState:function($){h="useState",f0();var Z=x.H;x.H=F8;try{return r3($)}finally{x.H=Z}},useDebugValue:function(){h="useDebugValue",f0()},useDeferredValue:function($,Z){return h="useDeferredValue",f0(),ZX($,Z)},useTransition:function(){return h="useTransition",f0(),JX()},useSyncExternalStore:function($,Z,G){return h="useSyncExternalStore",f0(),c3($,Z,G)},useId:function(){return h="useId",f0(),qX()},useFormState:function($,Z){return h="useFormState",f0(),eQ(),h$($,Z)},useActionState:function($,Z){return h="useActionState",f0(),h$($,Z)},useOptimistic:function($){return h="useOptimistic",f0(),s3($)},useHostTransitionStatus:g2,useMemoCache:f2,useCacheRefresh:function(){return h="useCacheRefresh",f0(),XX()},useEffectEvent:function($){return h="useEffectEvent",f0(),a3($)}},PW={readContext:function($){return z1($)},use:E6,useCallback:function($,Z){return h="useCallback",c(),e3($,Z)},useContext:function($){return h="useContext",c(),z1($)},useEffect:function($,Z){return h="useEffect",c(),JG($,Z)},useImperativeHandle:function($,Z,G){return h="useImperativeHandle",c(),t3($,Z,G)},useInsertionEffect:function($,Z){h="useInsertionEffect",c(),y2(4,L5,$,Z)},useLayoutEffect:function($,Z){return h="useLayoutEffect",c(),i3($,Z)},useMemo:function($,Z){h="useMemo",c();var G=x.H;x.H=F8;try{return $X($,Z)}finally{x.H=G}},useReducer:function($,Z,G){h="useReducer",c();var X=x.H;x.H=F8;try{return d3($,Z,G)}finally{x.H=X}},useRef:function($){return h="useRef",c(),o3($)},useState:function($){h="useState",c();var Z=x.H;x.H=F8;try{return r3($)}finally{x.H=Z}},useDebugValue:function(){h="useDebugValue",c()},useDeferredValue:function($,Z){return h="useDeferredValue",c(),ZX($,Z)},useTransition:function(){return h="useTransition",c(),JX()},useSyncExternalStore:function($,Z,G){return h="useSyncExternalStore",c(),c3($,Z,G)},useId:function(){return h="useId",c(),qX()},useActionState:function($,Z){return h="useActionState",c(),h$($,Z)},useFormState:function($,Z){return h="useFormState",c(),eQ(),h$($,Z)},useOptimistic:function($){return h="useOptimistic",c(),s3($)},useHostTransitionStatus:g2,useMemoCache:f2,useCacheRefresh:function(){return h="useCacheRefresh",c(),XX()},useEffectEvent:function($){return h="useEffectEvent",c(),a3($)}},QU={readContext:function($){return z1($)},use:E6,useCallback:function($,Z){return h="useCallback",c(),YG($,Z)},useContext:function($){return h="useContext",c(),z1($)},useEffect:function($,Z){h="useEffect",c(),O5(2048,V5,$,Z)},useImperativeHandle:function($,Z,G){return h="useImperativeHandle",c(),XG($,Z,G)},useInsertionEffect:function($,Z){return h="useInsertionEffect",c(),O5(4,L5,$,Z)},useLayoutEffect:function($,Z){return h="useLayoutEffect",c(),O5(4,Q4,$,Z)},useMemo:function($,Z){h="useMemo",c();var G=x.H;x.H=v4;try{return UG($,Z)}finally{x.H=G}},useReducer:function($,Z,G){h="useReducer",c();var X=x.H;x.H=v4;try{return g$($,Z,G)}finally{x.H=X}},useRef:function(){return h="useRef",c(),J1().memoizedState},useState:function(){h="useState",c();var $=x.H;x.H=v4;try{return g$(I4)}finally{x.H=$}},useDebugValue:function(){h="useDebugValue",c()},useDeferredValue:function($,Z){return h="useDeferredValue",c(),jB($,Z)},useTransition:function(){return h="useTransition",c(),fB()},useSyncExternalStore:function($,Z,G){return h="useSyncExternalStore",c(),ZG($,Z,G)},useId:function(){return h="useId",c(),J1().memoizedState},useFormState:function($){return h="useFormState",c(),eQ(),QG($)},useActionState:function($){return h="useActionState",c(),QG($)},useOptimistic:function($,Z){return h="useOptimistic",c(),_B($,Z)},useHostTransitionStatus:g2,useMemoCache:f2,useCacheRefresh:function(){return h="useCacheRefresh",c(),J1().memoizedState},useEffectEvent:function($){return h="useEffectEvent",c(),qG($)}},CW={readContext:function($){return z1($)},use:E6,useCallback:function($,Z){return h="useCallback",c(),YG($,Z)},useContext:function($){return h="useContext",c(),z1($)},useEffect:function($,Z){h="useEffect",c(),O5(2048,V5,$,Z)},useImperativeHandle:function($,Z,G){return h="useImperativeHandle",c(),XG($,Z,G)},useInsertionEffect:function($,Z){return h="useInsertionEffect",c(),O5(4,L5,$,Z)},useLayoutEffect:function($,Z){return h="useLayoutEffect",c(),O5(4,Q4,$,Z)},useMemo:function($,Z){h="useMemo",c();var G=x.H;x.H=BJ;try{return UG($,Z)}finally{x.H=G}},useReducer:function($,Z,G){h="useReducer",c();var X=x.H;x.H=BJ;try{return V7($,Z,G)}finally{x.H=X}},useRef:function(){return h="useRef",c(),J1().memoizedState},useState:function(){h="useState",c();var $=x.H;x.H=BJ;try{return V7(I4)}finally{x.H=$}},useDebugValue:function(){h="useDebugValue",c()},useDeferredValue:function($,Z){return h="useDeferredValue",c(),AB($,Z)},useTransition:function(){return h="useTransition",c(),yB()},useSyncExternalStore:function($,Z,G){return h="useSyncExternalStore",c(),ZG($,Z,G)},useId:function(){return h="useId",c(),J1().memoizedState},useFormState:function($){return h="useFormState",c(),eQ(),GG($)},useActionState:function($){return h="useActionState",c(),GG($)},useOptimistic:function($,Z){return h="useOptimistic",c(),LB($,Z)},useHostTransitionStatus:g2,useMemoCache:f2,useCacheRefresh:function(){return h="useCacheRefresh",c(),J1().memoizedState},useEffectEvent:function($){return h="useEffectEvent",c(),qG($)}},F8={readContext:function($){return F(),z1($)},use:function($){return H(),E6($)},useCallback:function($,Z){return h="useCallback",H(),f0(),e3($,Z)},useContext:function($){return h="useContext",H(),f0(),z1($)},useEffect:function($,Z){return h="useEffect",H(),f0(),JG($,Z)},useImperativeHandle:function($,Z,G){return h="useImperativeHandle",H(),f0(),t3($,Z,G)},useInsertionEffect:function($,Z){h="useInsertionEffect",H(),f0(),y2(4,L5,$,Z)},useLayoutEffect:function($,Z){return h="useLayoutEffect",H(),f0(),i3($,Z)},useMemo:function($,Z){h="useMemo",H(),f0();var G=x.H;x.H=F8;try{return $X($,Z)}finally{x.H=G}},useReducer:function($,Z,G){h="useReducer",H(),f0();var X=x.H;x.H=F8;try{return d3($,Z,G)}finally{x.H=X}},useRef:function($){return h="useRef",H(),f0(),o3($)},useState:function($){h="useState",H(),f0();var Z=x.H;x.H=F8;try{return r3($)}finally{x.H=Z}},useDebugValue:function(){h="useDebugValue",H(),f0()},useDeferredValue:function($,Z){return h="useDeferredValue",H(),f0(),ZX($,Z)},useTransition:function(){return h="useTransition",H(),f0(),JX()},useSyncExternalStore:function($,Z,G){return h="useSyncExternalStore",H(),f0(),c3($,Z,G)},useId:function(){return h="useId",H(),f0(),qX()},useFormState:function($,Z){return h="useFormState",H(),f0(),h$($,Z)},useActionState:function($,Z){return h="useActionState",H(),f0(),h$($,Z)},useOptimistic:function($){return h="useOptimistic",H(),f0(),s3($)},useMemoCache:function($){return H(),f2($)},useHostTransitionStatus:g2,useCacheRefresh:function(){return h="useCacheRefresh",f0(),XX()},useEffectEvent:function($){return h="useEffectEvent",H(),f0(),a3($)}},v4={readContext:function($){return F(),z1($)},use:function($){return H(),E6($)},useCallback:function($,Z){return h="useCallback",H(),c(),YG($,Z)},useContext:function($){return h="useContext",H(),c(),z1($)},useEffect:function($,Z){h="useEffect",H(),c(),O5(2048,V5,$,Z)},useImperativeHandle:function($,Z,G){return h="useImperativeHandle",H(),c(),XG($,Z,G)},useInsertionEffect:function($,Z){return h="useInsertionEffect",H(),c(),O5(4,L5,$,Z)},useLayoutEffect:function($,Z){return h="useLayoutEffect",H(),c(),O5(4,Q4,$,Z)},useMemo:function($,Z){h="useMemo",H(),c();var G=x.H;x.H=v4;try{return UG($,Z)}finally{x.H=G}},useReducer:function($,Z,G){h="useReducer",H(),c();var X=x.H;x.H=v4;try{return g$($,Z,G)}finally{x.H=X}},useRef:function(){return h="useRef",H(),c(),J1().memoizedState},useState:function(){h="useState",H(),c();var $=x.H;x.H=v4;try{return g$(I4)}finally{x.H=$}},useDebugValue:function(){h="useDebugValue",H(),c()},useDeferredValue:function($,Z){return h="useDeferredValue",H(),c(),jB($,Z)},useTransition:function(){return h="useTransition",H(),c(),fB()},useSyncExternalStore:function($,Z,G){return h="useSyncExternalStore",H(),c(),ZG($,Z,G)},useId:function(){return h="useId",H(),c(),J1().memoizedState},useFormState:function($){return h="useFormState",H(),c(),QG($)},useActionState:function($){return h="useActionState",H(),c(),QG($)},useOptimistic:function($,Z){return h="useOptimistic",H(),c(),_B($,Z)},useMemoCache:function($){return H(),f2($)},useHostTransitionStatus:g2,useCacheRefresh:function(){return h="useCacheRefresh",c(),J1().memoizedState},useEffectEvent:function($){return h="useEffectEvent",H(),c(),qG($)}},BJ={readContext:function($){return F(),z1($)},use:function($){return H(),E6($)},useCallback:function($,Z){return h="useCallback",H(),c(),YG($,Z)},useContext:function($){return h="useContext",H(),c(),z1($)},useEffect:function($,Z){h="useEffect",H(),c(),O5(2048,V5,$,Z)},useImperativeHandle:function($,Z,G){return h="useImperativeHandle",H(),c(),XG($,Z,G)},useInsertionEffect:function($,Z){return h="useInsertionEffect",H(),c(),O5(4,L5,$,Z)},useLayoutEffect:function($,Z){return h="useLayoutEffect",H(),c(),O5(4,Q4,$,Z)},useMemo:function($,Z){h="useMemo",H(),c();var G=x.H;x.H=v4;try{return UG($,Z)}finally{x.H=G}},useReducer:function($,Z,G){h="useReducer",H(),c();var X=x.H;x.H=v4;try{return V7($,Z,G)}finally{x.H=X}},useRef:function(){return h="useRef",H(),c(),J1().memoizedState},useState:function(){h="useState",H(),c();var $=x.H;x.H=v4;try{return V7(I4)}finally{x.H=$}},useDebugValue:function(){h="useDebugValue",H(),c()},useDeferredValue:function($,Z){return h="useDeferredValue",H(),c(),AB($,Z)},useTransition:function(){return h="useTransition",H(),c(),yB()},useSyncExternalStore:function($,Z,G){return h="useSyncExternalStore",H(),c(),ZG($,Z,G)},useId:function(){return h="useId",H(),c(),J1().memoizedState},useFormState:function($){return h="useFormState",H(),c(),GG($)},useActionState:function($){return h="useActionState",H(),c(),GG($)},useOptimistic:function($,Z){return h="useOptimistic",H(),c(),LB($,Z)},useMemoCache:function($){return H(),f2($)},useHostTransitionStatus:g2,useCacheRefresh:function(){return h="useCacheRefresh",c(),J1().memoizedState},useEffectEvent:function($){return h="useEffectEvent",H(),c(),qG($)}};var IW={},OW=new Set,DW=new Set,jW=new Set,AW=new Set,SW=new Set,vW=new Set,kW=new Set,bW=new Set,fW=new Set,yW=new Set;Object.freeze(IW);var GU={enqueueSetState:function($,Z,G){$=$._reactInternals;var X=o5($),N=_6(X);N.payload=Z,G!==void 0&&G!==null&&(UX(G),N.callback=G),Z=z6($,N,X),Z!==null&&(l4(X,"this.setState()",$),C1(Z,$,X),T7(Z,$,X))},enqueueReplaceState:function($,Z,G){$=$._reactInternals;var X=o5($),N=_6(X);N.tag=TW,N.payload=Z,G!==void 0&&G!==null&&(UX(G),N.callback=G),Z=z6($,N,X),Z!==null&&(l4(X,"this.replaceState()",$),C1(Z,$,X),T7(Z,$,X))},enqueueForceUpdate:function($,Z){$=$._reactInternals;var G=o5($),X=_6(G);X.tag=_W,Z!==void 0&&Z!==null&&(UX(Z),X.callback=Z),Z=z6($,X,G),Z!==null&&(l4(G,"this.forceUpdate()",$),C1(Z,$,G),T7(Z,$,G))}},L9=null,JU=null,qU=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."),x1=!1,gW={},hW={},xW={},uW={},V9=!1,mW={},MJ={},XU={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null},dW=!1,pW=null;pW=new Set;var r8=!1,u1=!1,YU=!1,cW=typeof WeakSet==="function"?WeakSet:Set,i1=null,E9=null,P9=null,m1=null,A5=!1,k4=null,l1=!1,TZ=8192,uE={getCacheForType:function($){var Z=z1(y1),G=Z.data.get($);return G===void 0&&(G=$(),Z.data.set($,G)),G},cacheSignal:function(){return z1(y1).controller.signal},getOwner:function(){return t5}};if(typeof Symbol==="function"&&Symbol.for){var _Z=Symbol.for;_Z("selector.component"),_Z("selector.has_pseudo_class"),_Z("selector.role"),_Z("selector.test_id"),_Z("selector.text")}var mE=[],dE=typeof WeakMap==="function"?WeakMap:Map,t1=0,r1=2,G4=4,s8=0,zZ=1,e2=2,HJ=3,d6=4,FJ=6,lW=5,o0=t1,K1=null,v0=null,S0=0,S5=0,WJ=1,$$=2,LZ=3,rW=4,UU=5,VZ=6,RJ=7,NU=8,Z$=9,q1=S5,J4=null,p6=!1,C9=!1,KU=!1,W8=0,E1=s8,c6=0,l6=0,BU=0,v5=0,Q$=0,EZ=null,E5=null,wJ=!1,TJ=0,sW=0,nW=300,_J=1/0,oW=500,PZ=null,S1=null,r6=null,zJ=0,MU=1,HU=2,aW=3,s6=0,iW=1,tW=2,eW=3,$R=4,LJ=5,d1=0,n6=null,I9=null,b4=0,FU=0,WU=-0,RU=null,ZR=null,QR=null,f4=zJ,GR=null,pE=50,CZ=0,wU=null,TU=!1,VJ=!1,cE=50,G$=0,IZ=null,O9=!1,EJ=null,JR=!1,qR=new Set,lE={},PJ=null,D9=null,_U=!1,zU=!1,CJ=!1,LU=!1,o6=0,VU={};(function(){for(var $=0;$<kY.length;$++){var Z=kY[$],G=Z.toLowerCase();Z=Z[0].toUpperCase()+Z.slice(1),C4(G,"on"+Z)}C4(fF,"onAnimationEnd"),C4(yF,"onAnimationIteration"),C4(gF,"onAnimationStart"),C4("dblclick","onDoubleClick"),C4("focusin","onFocus"),C4("focusout","onBlur"),C4(LE,"onTransitionRun"),C4(VE,"onTransitionStart"),C4(EE,"onTransitionCancel"),C4(hF,"onTransitionEnd")})(),d5("onMouseEnter",["mouseout","mouseover"]),d5("onMouseLeave",["mouseout","mouseover"]),d5("onPointerEnter",["pointerout","pointerover"]),d5("onPointerLeave",["pointerout","pointerover"]),K5("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),K5("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),K5("onBeforeInput",["compositionend","keypress","textInput","paste"]),K5("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),K5("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),K5("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var OZ="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(" "),EU=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(OZ)),IJ="_reactListening"+Math.random().toString(36).slice(2),XR=!1,YR=!1,OJ=!1,UR=!1,DJ=!1,jJ=!1,NR=!1,AJ={},rE=/\r\n?/g,sE=/\u0000|\uFFFD/g,J$="http://www.w3.org/1999/xlink",PU="http://www.w3.org/XML/1998/namespace",nE="javascript:throw new Error('React form unexpectedly submitted.')",oE="suppressHydrationWarning",q$="&",SJ="/&",DZ="$",jZ="/$",a6="$?",X$="$~",j9="$!",aE="html",iE="body",tE="head",CU="F!",KR="F",BR="loading",eE="style",n8=0,A9=1,vJ=2,IU=null,OU=null,MR={dialog:!0,webview:!0},DU=null,AZ=void 0,HR=typeof setTimeout==="function"?setTimeout:void 0,$P=typeof clearTimeout==="function"?clearTimeout:void 0,Y$=-1,FR=typeof Promise==="function"?Promise:void 0,ZP=typeof queueMicrotask==="function"?queueMicrotask:typeof FR<"u"?function($){return FR.resolve(null).then($).catch(xL)}:HR,jU=null,U$=0,SZ=1,WR=2,RR=3,_4=4,z4=new Map,wR=new Set,o8=Z1.d;Z1.d={f:function(){var $=o8.f(),Z=p$();return $||Z},r:function($){var Z=E0($);Z!==null&&Z.tag===5&&Z.type==="form"?bB(Z):o8.r($)},D:function($){o8.D($),OH("dns-prefetch",$,null)},C:function($,Z){o8.C($,Z),OH("preconnect",$,Z)},L:function($,Z,G){o8.L($,Z,G);var X=S9;if(X&&$&&Z){var N='link[rel="preload"][as="'+Y4(Z)+'"]';Z==="image"?G&&G.imageSrcSet?(N+='[imagesrcset="'+Y4(G.imageSrcSet)+'"]',typeof G.imageSizes==="string"&&(N+='[imagesizes="'+Y4(G.imageSizes)+'"]')):N+='[href="'+Y4($)+'"]':N+='[href="'+Y4($)+'"]';var B=N;switch(Z){case"style":B=r$($);break;case"script":B=s$($)}z4.has(B)||($=y0({rel:"preload",href:Z==="image"&&G&&G.imageSrcSet?void 0:$,as:Z},G),z4.set(B,$),X.querySelector(N)!==null||Z==="style"&&X.querySelector(g7(B))||Z==="script"&&X.querySelector(h7(B))||(Z=X.createElement("link"),Q5(Z,"link",$),F0(Z),X.head.appendChild(Z)))}},m:function($,Z){o8.m($,Z);var G=S9;if(G&&$){var X=Z&&typeof Z.as==="string"?Z.as:"script",N='link[rel="modulepreload"][as="'+Y4(X)+'"][href="'+Y4($)+'"]',B=N;switch(X){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":B=s$($)}if(!z4.has(B)&&($=y0({rel:"modulepreload",href:$},Z),z4.set(B,$),G.querySelector(N)===null)){switch(X){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(G.querySelector(h7(B)))return}X=G.createElement("link"),Q5(X,"link",$),F0(X),G.head.appendChild(X)}}},X:function($,Z){o8.X($,Z);var G=S9;if(G&&$){var X=a0(G).hoistableScripts,N=s$($),B=X.get(N);B||(B=G.querySelector(h7(N)),B||($=y0({src:$,async:!0},Z),(Z=z4.get(N))&&tX($,Z),B=G.createElement("script"),F0(B),Q5(B,"link",$),G.head.appendChild(B)),B={type:"script",instance:B,count:1,state:null},X.set(N,B))}},S:function($,Z,G){o8.S($,Z,G);var X=S9;if(X&&$){var N=a0(X).hoistableStyles,B=r$($);Z=Z||"default";var W=N.get(B);if(!W){var R={loading:U$,preload:null};if(W=X.querySelector(g7(B)))R.loading=SZ|_4;else{$=y0({rel:"stylesheet",href:$,"data-precedence":Z},G),(G=z4.get(B))&&iX($,G);var z=W=X.createElement("link");F0(z),Q5(z,"link",$),z._p=new Promise(function(V,k){z.onload=V,z.onerror=k}),z.addEventListener("load",function(){R.loading|=SZ}),z.addEventListener("error",function(){R.loading|=WR}),R.loading|=_4,OG(W,Z,X)}W={type:"stylesheet",instance:W,count:1,state:R},N.set(B,W)}}},M:function($,Z){o8.M($,Z);var G=S9;if(G&&$){var X=a0(G).hoistableScripts,N=s$($),B=X.get(N);B||(B=G.querySelector(h7(N)),B||($=y0({src:$,async:!0,type:"module"},Z),(Z=z4.get(N))&&tX($,Z),B=G.createElement("script"),F0(B),Q5(B,"link",$),G.head.appendChild(B)),B={type:"script",instance:B,count:1,state:null},X.set(N,B))}}};var S9=typeof document>"u"?null:document,kJ=null,QP=60000,GP=800,JP=500,AU=0,SU=null,bJ=null,N$=_V,vZ={$$typeof:q8,Provider:null,Consumer:null,_currentValue:N$,_currentValue2:N$,_threadCount:0},TR="%c%s%c",_R="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",zR="",fJ=" ",qP=Function.prototype.bind,LR=!1,VR=null,ER=null,PR=null,CR=null,IR=null,OR=null,DR=null,jR=null,AR=null,SR=null;VR=function($,Z,G,X){Z=Q($,Z),Z!==null&&(G=J(Z.memoizedState,G,0,X),Z.memoizedState=G,Z.baseState=G,$.memoizedProps=y0({},$.memoizedProps),G=B5($,2),G!==null&&C1(G,$,2))},ER=function($,Z,G){Z=Q($,Z),Z!==null&&(G=U(Z.memoizedState,G,0),Z.memoizedState=G,Z.baseState=G,$.memoizedProps=y0({},$.memoizedProps),G=B5($,2),G!==null&&C1(G,$,2))},PR=function($,Z,G,X){Z=Q($,Z),Z!==null&&(G=q(Z.memoizedState,G,X),Z.memoizedState=G,Z.baseState=G,$.memoizedProps=y0({},$.memoizedProps),G=B5($,2),G!==null&&C1(G,$,2))},CR=function($,Z,G){$.pendingProps=J($.memoizedProps,Z,0,G),$.alternate&&($.alternate.pendingProps=$.pendingProps),Z=B5($,2),Z!==null&&C1(Z,$,2)},IR=function($,Z){$.pendingProps=U($.memoizedProps,Z,0),$.alternate&&($.alternate.pendingProps=$.pendingProps),Z=B5($,2),Z!==null&&C1(Z,$,2)},OR=function($,Z,G){$.pendingProps=q($.memoizedProps,Z,G),$.alternate&&($.alternate.pendingProps=$.pendingProps),Z=B5($,2),Z!==null&&C1(Z,$,2)},DR=function($){var Z=B5($,2);Z!==null&&C1(Z,$,2)},jR=function($){var Z=j$(),G=B5($,Z);G!==null&&C1(G,$,Z)},AR=function($){M=$},SR=function($){K=$};var yJ=!0,gJ=null,vU=!1,i6=null,t6=null,e6=null,kZ=new Map,bZ=new Map,$2=[],XP="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(" "),hJ=null;if(vG.prototype.render=JY.prototype.render=function($){var Z=this._internalRoot;if(Z===null)throw Error("Cannot update an unmounted root.");var G=arguments;typeof G[1]==="function"?console.error("does not support the second callback argument. To execute a side effect after rendering, declare it in a component body with useEffect()."):C(G[1])?console.error("You passed a container to the second argument of root.render(...). You don't need to pass it again since you already passed it to create the root."):typeof G[1]<"u"&&console.error("You passed a second argument to root.render(...) but it only accepts one argument."),G=$;var X=Z.current,N=o5(X);eX(X,N,G,Z,null,null)},vG.prototype.unmount=JY.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;(o0&(r1|G4))!==t1&&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."),eX($.current,2,null,$,null,null),p$(),Z[A6]=null}},vG.prototype.unstable_scheduleHydration=function($){if($){var Z=f();$={blockedOn:null,target:$,priority:Z};for(var G=0;G<$2.length&&Z!==0&&Z<$2[G].priority;G++);$2.splice(G,0,$),G===0&&mH($)}},function(){var $=v9.version;if($!=="19.2.5")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 <`+X+">.");var W="";G!=null&&$!==G&&(X=null,typeof G.tag==="number"?X=d(G):typeof G.name==="string"&&(X=G.name),X&&(W=" It was passed a child from "+X+".")),G0(Z,function(){console.error('Each child in a list should have a unique "key" prop.%s%s See https://react.dev/link/warning-keys for more information.',B,W)})}}};var i2=KB(!0),zW=KB(!1),_W=0,LW=1,VW=2,eY=3,m6=!1,EW=!1,$U=null,ZU=!1,R9=N0(null),YJ=N0(0),Z4=N0(null),w4=null,T9=1,FZ=2,v1=N0(0),UJ=0,R4=1,L5=2,Q4=4,V5=8,z9,PW=new Set,CW=new Set,QU=new Set,IW=new Set,p8=0,L0=null,N1=null,h1=null,NJ=!1,_9=!1,t2=!1,KJ=0,WZ=0,c8=null,pE=0,cE=25,h=null,T4=null,l8=-1,wZ=!1,RZ={readContext:_1,use:E6,useCallback:A1,useContext:A1,useEffect:A1,useImperativeHandle:A1,useLayoutEffect:A1,useInsertionEffect:A1,useMemo:A1,useReducer:A1,useRef:A1,useState:A1,useDebugValue:A1,useDeferredValue:A1,useTransition:A1,useSyncExternalStore:A1,useId:A1,useHostTransitionStatus:A1,useFormState:A1,useActionState:A1,useOptimistic:A1,useMemoCache:A1,useCacheRefresh:A1};RZ.useEffectEvent=A1;var GU=null,OW=null,JU=null,DW=null,F8=null,v4=null,BJ=null;GU={readContext:function($){return _1($)},use:E6,useCallback:function($,Z){return h="useCallback",f0(),y$(Z),ZX($,Z)},useContext:function($){return h="useContext",f0(),_1($)},useEffect:function($,Z){return h="useEffect",f0(),y$(Z),JG($,Z)},useImperativeHandle:function($,Z,G){return h="useImperativeHandle",f0(),y$(G),$X($,Z,G)},useInsertionEffect:function($,Z){h="useInsertionEffect",f0(),y$(Z),y2(4,L5,$,Z)},useLayoutEffect:function($,Z){return h="useLayoutEffect",f0(),y$(Z),e3($,Z)},useMemo:function($,Z){h="useMemo",f0(),y$(Z);var G=x.H;x.H=F8;try{return QX($,Z)}finally{x.H=G}},useReducer:function($,Z,G){h="useReducer",f0();var X=x.H;x.H=F8;try{return c3($,Z,G)}finally{x.H=X}},useRef:function($){return h="useRef",f0(),i3($)},useState:function($){h="useState",f0();var Z=x.H;x.H=F8;try{return n3($)}finally{x.H=Z}},useDebugValue:function(){h="useDebugValue",f0()},useDeferredValue:function($,Z){return h="useDeferredValue",f0(),GX($,Z)},useTransition:function(){return h="useTransition",f0(),XX()},useSyncExternalStore:function($,Z,G){return h="useSyncExternalStore",f0(),r3($,Z,G)},useId:function(){return h="useId",f0(),YX()},useFormState:function($,Z){return h="useFormState",f0(),eQ(),h$($,Z)},useActionState:function($,Z){return h="useActionState",f0(),h$($,Z)},useOptimistic:function($){return h="useOptimistic",f0(),o3($)},useHostTransitionStatus:g2,useMemoCache:f2,useCacheRefresh:function(){return h="useCacheRefresh",f0(),UX()},useEffectEvent:function($){return h="useEffectEvent",f0(),t3($)}},OW={readContext:function($){return _1($)},use:E6,useCallback:function($,Z){return h="useCallback",c(),ZX($,Z)},useContext:function($){return h="useContext",c(),_1($)},useEffect:function($,Z){return h="useEffect",c(),JG($,Z)},useImperativeHandle:function($,Z,G){return h="useImperativeHandle",c(),$X($,Z,G)},useInsertionEffect:function($,Z){h="useInsertionEffect",c(),y2(4,L5,$,Z)},useLayoutEffect:function($,Z){return h="useLayoutEffect",c(),e3($,Z)},useMemo:function($,Z){h="useMemo",c();var G=x.H;x.H=F8;try{return QX($,Z)}finally{x.H=G}},useReducer:function($,Z,G){h="useReducer",c();var X=x.H;x.H=F8;try{return c3($,Z,G)}finally{x.H=X}},useRef:function($){return h="useRef",c(),i3($)},useState:function($){h="useState",c();var Z=x.H;x.H=F8;try{return n3($)}finally{x.H=Z}},useDebugValue:function(){h="useDebugValue",c()},useDeferredValue:function($,Z){return h="useDeferredValue",c(),GX($,Z)},useTransition:function(){return h="useTransition",c(),XX()},useSyncExternalStore:function($,Z,G){return h="useSyncExternalStore",c(),r3($,Z,G)},useId:function(){return h="useId",c(),YX()},useActionState:function($,Z){return h="useActionState",c(),h$($,Z)},useFormState:function($,Z){return h="useFormState",c(),eQ(),h$($,Z)},useOptimistic:function($){return h="useOptimistic",c(),o3($)},useHostTransitionStatus:g2,useMemoCache:f2,useCacheRefresh:function(){return h="useCacheRefresh",c(),UX()},useEffectEvent:function($){return h="useEffectEvent",c(),t3($)}},JU={readContext:function($){return _1($)},use:E6,useCallback:function($,Z){return h="useCallback",c(),YG($,Z)},useContext:function($){return h="useContext",c(),_1($)},useEffect:function($,Z){h="useEffect",c(),O5(2048,V5,$,Z)},useImperativeHandle:function($,Z,G){return h="useImperativeHandle",c(),XG($,Z,G)},useInsertionEffect:function($,Z){return h="useInsertionEffect",c(),O5(4,L5,$,Z)},useLayoutEffect:function($,Z){return h="useLayoutEffect",c(),O5(4,Q4,$,Z)},useMemo:function($,Z){h="useMemo",c();var G=x.H;x.H=v4;try{return UG($,Z)}finally{x.H=G}},useReducer:function($,Z,G){h="useReducer",c();var X=x.H;x.H=v4;try{return g$($,Z,G)}finally{x.H=X}},useRef:function(){return h="useRef",c(),J1().memoizedState},useState:function(){h="useState",c();var $=x.H;x.H=v4;try{return g$(I4)}finally{x.H=$}},useDebugValue:function(){h="useDebugValue",c()},useDeferredValue:function($,Z){return h="useDeferredValue",c(),vB($,Z)},useTransition:function(){return h="useTransition",c(),hB()},useSyncExternalStore:function($,Z,G){return h="useSyncExternalStore",c(),ZG($,Z,G)},useId:function(){return h="useId",c(),J1().memoizedState},useFormState:function($){return h="useFormState",c(),eQ(),QG($)},useActionState:function($){return h="useActionState",c(),QG($)},useOptimistic:function($,Z){return h="useOptimistic",c(),VB($,Z)},useHostTransitionStatus:g2,useMemoCache:f2,useCacheRefresh:function(){return h="useCacheRefresh",c(),J1().memoizedState},useEffectEvent:function($){return h="useEffectEvent",c(),qG($)}},DW={readContext:function($){return _1($)},use:E6,useCallback:function($,Z){return h="useCallback",c(),YG($,Z)},useContext:function($){return h="useContext",c(),_1($)},useEffect:function($,Z){h="useEffect",c(),O5(2048,V5,$,Z)},useImperativeHandle:function($,Z,G){return h="useImperativeHandle",c(),XG($,Z,G)},useInsertionEffect:function($,Z){return h="useInsertionEffect",c(),O5(4,L5,$,Z)},useLayoutEffect:function($,Z){return h="useLayoutEffect",c(),O5(4,Q4,$,Z)},useMemo:function($,Z){h="useMemo",c();var G=x.H;x.H=BJ;try{return UG($,Z)}finally{x.H=G}},useReducer:function($,Z,G){h="useReducer",c();var X=x.H;x.H=BJ;try{return V7($,Z,G)}finally{x.H=X}},useRef:function(){return h="useRef",c(),J1().memoizedState},useState:function(){h="useState",c();var $=x.H;x.H=BJ;try{return V7(I4)}finally{x.H=$}},useDebugValue:function(){h="useDebugValue",c()},useDeferredValue:function($,Z){return h="useDeferredValue",c(),kB($,Z)},useTransition:function(){return h="useTransition",c(),xB()},useSyncExternalStore:function($,Z,G){return h="useSyncExternalStore",c(),ZG($,Z,G)},useId:function(){return h="useId",c(),J1().memoizedState},useFormState:function($){return h="useFormState",c(),eQ(),GG($)},useActionState:function($){return h="useActionState",c(),GG($)},useOptimistic:function($,Z){return h="useOptimistic",c(),PB($,Z)},useHostTransitionStatus:g2,useMemoCache:f2,useCacheRefresh:function(){return h="useCacheRefresh",c(),J1().memoizedState},useEffectEvent:function($){return h="useEffectEvent",c(),qG($)}},F8={readContext:function($){return F(),_1($)},use:function($){return M(),E6($)},useCallback:function($,Z){return h="useCallback",M(),f0(),ZX($,Z)},useContext:function($){return h="useContext",M(),f0(),_1($)},useEffect:function($,Z){return h="useEffect",M(),f0(),JG($,Z)},useImperativeHandle:function($,Z,G){return h="useImperativeHandle",M(),f0(),$X($,Z,G)},useInsertionEffect:function($,Z){h="useInsertionEffect",M(),f0(),y2(4,L5,$,Z)},useLayoutEffect:function($,Z){return h="useLayoutEffect",M(),f0(),e3($,Z)},useMemo:function($,Z){h="useMemo",M(),f0();var G=x.H;x.H=F8;try{return QX($,Z)}finally{x.H=G}},useReducer:function($,Z,G){h="useReducer",M(),f0();var X=x.H;x.H=F8;try{return c3($,Z,G)}finally{x.H=X}},useRef:function($){return h="useRef",M(),f0(),i3($)},useState:function($){h="useState",M(),f0();var Z=x.H;x.H=F8;try{return n3($)}finally{x.H=Z}},useDebugValue:function(){h="useDebugValue",M(),f0()},useDeferredValue:function($,Z){return h="useDeferredValue",M(),f0(),GX($,Z)},useTransition:function(){return h="useTransition",M(),f0(),XX()},useSyncExternalStore:function($,Z,G){return h="useSyncExternalStore",M(),f0(),r3($,Z,G)},useId:function(){return h="useId",M(),f0(),YX()},useFormState:function($,Z){return h="useFormState",M(),f0(),h$($,Z)},useActionState:function($,Z){return h="useActionState",M(),f0(),h$($,Z)},useOptimistic:function($){return h="useOptimistic",M(),f0(),o3($)},useMemoCache:function($){return M(),f2($)},useHostTransitionStatus:g2,useCacheRefresh:function(){return h="useCacheRefresh",f0(),UX()},useEffectEvent:function($){return h="useEffectEvent",M(),f0(),t3($)}},v4={readContext:function($){return F(),_1($)},use:function($){return M(),E6($)},useCallback:function($,Z){return h="useCallback",M(),c(),YG($,Z)},useContext:function($){return h="useContext",M(),c(),_1($)},useEffect:function($,Z){h="useEffect",M(),c(),O5(2048,V5,$,Z)},useImperativeHandle:function($,Z,G){return h="useImperativeHandle",M(),c(),XG($,Z,G)},useInsertionEffect:function($,Z){return h="useInsertionEffect",M(),c(),O5(4,L5,$,Z)},useLayoutEffect:function($,Z){return h="useLayoutEffect",M(),c(),O5(4,Q4,$,Z)},useMemo:function($,Z){h="useMemo",M(),c();var G=x.H;x.H=v4;try{return UG($,Z)}finally{x.H=G}},useReducer:function($,Z,G){h="useReducer",M(),c();var X=x.H;x.H=v4;try{return g$($,Z,G)}finally{x.H=X}},useRef:function(){return h="useRef",M(),c(),J1().memoizedState},useState:function(){h="useState",M(),c();var $=x.H;x.H=v4;try{return g$(I4)}finally{x.H=$}},useDebugValue:function(){h="useDebugValue",M(),c()},useDeferredValue:function($,Z){return h="useDeferredValue",M(),c(),vB($,Z)},useTransition:function(){return h="useTransition",M(),c(),hB()},useSyncExternalStore:function($,Z,G){return h="useSyncExternalStore",M(),c(),ZG($,Z,G)},useId:function(){return h="useId",M(),c(),J1().memoizedState},useFormState:function($){return h="useFormState",M(),c(),QG($)},useActionState:function($){return h="useActionState",M(),c(),QG($)},useOptimistic:function($,Z){return h="useOptimistic",M(),c(),VB($,Z)},useMemoCache:function($){return M(),f2($)},useHostTransitionStatus:g2,useCacheRefresh:function(){return h="useCacheRefresh",c(),J1().memoizedState},useEffectEvent:function($){return h="useEffectEvent",M(),c(),qG($)}},BJ={readContext:function($){return F(),_1($)},use:function($){return M(),E6($)},useCallback:function($,Z){return h="useCallback",M(),c(),YG($,Z)},useContext:function($){return h="useContext",M(),c(),_1($)},useEffect:function($,Z){h="useEffect",M(),c(),O5(2048,V5,$,Z)},useImperativeHandle:function($,Z,G){return h="useImperativeHandle",M(),c(),XG($,Z,G)},useInsertionEffect:function($,Z){return h="useInsertionEffect",M(),c(),O5(4,L5,$,Z)},useLayoutEffect:function($,Z){return h="useLayoutEffect",M(),c(),O5(4,Q4,$,Z)},useMemo:function($,Z){h="useMemo",M(),c();var G=x.H;x.H=v4;try{return UG($,Z)}finally{x.H=G}},useReducer:function($,Z,G){h="useReducer",M(),c();var X=x.H;x.H=v4;try{return V7($,Z,G)}finally{x.H=X}},useRef:function(){return h="useRef",M(),c(),J1().memoizedState},useState:function(){h="useState",M(),c();var $=x.H;x.H=v4;try{return V7(I4)}finally{x.H=$}},useDebugValue:function(){h="useDebugValue",M(),c()},useDeferredValue:function($,Z){return h="useDeferredValue",M(),c(),kB($,Z)},useTransition:function(){return h="useTransition",M(),c(),xB()},useSyncExternalStore:function($,Z,G){return h="useSyncExternalStore",M(),c(),ZG($,Z,G)},useId:function(){return h="useId",M(),c(),J1().memoizedState},useFormState:function($){return h="useFormState",M(),c(),GG($)},useActionState:function($){return h="useActionState",M(),c(),GG($)},useOptimistic:function($,Z){return h="useOptimistic",M(),c(),PB($,Z)},useMemoCache:function($){return M(),f2($)},useHostTransitionStatus:g2,useCacheRefresh:function(){return h="useCacheRefresh",c(),J1().memoizedState},useEffectEvent:function($){return h="useEffectEvent",M(),c(),qG($)}};var jW={},AW=new Set,SW=new Set,vW=new Set,kW=new Set,bW=new Set,fW=new Set,yW=new Set,gW=new Set,hW=new Set,xW=new Set;Object.freeze(jW);var qU={enqueueSetState:function($,Z,G){$=$._reactInternals;var X=o5($),N=z6(X);N.payload=Z,G!==void 0&&G!==null&&(KX(G),N.callback=G),Z=_6($,N,X),Z!==null&&(l4(X,"this.setState()",$),C1(Z,$,X),T7(Z,$,X))},enqueueReplaceState:function($,Z,G){$=$._reactInternals;var X=o5($),N=z6(X);N.tag=LW,N.payload=Z,G!==void 0&&G!==null&&(KX(G),N.callback=G),Z=_6($,N,X),Z!==null&&(l4(X,"this.replaceState()",$),C1(Z,$,X),T7(Z,$,X))},enqueueForceUpdate:function($,Z){$=$._reactInternals;var G=o5($),X=z6(G);X.tag=VW,Z!==void 0&&Z!==null&&(KX(Z),X.callback=Z),Z=_6($,X,G),Z!==null&&(l4(G,"this.forceUpdate()",$),C1(Z,$,G),T7(Z,$,G))}},L9=null,XU=null,YU=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."),x1=!1,uW={},mW={},dW={},pW={},V9=!1,cW={},HJ={},UU={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null},lW=!1,rW=null;rW=new Set;var r8=!1,u1=!1,NU=!1,sW=typeof WeakSet==="function"?WeakSet:Set,i1=null,E9=null,P9=null,m1=null,A5=!1,k4=null,l1=!1,TZ=8192,lE={getCacheForType:function($){var Z=_1(y1),G=Z.data.get($);return G===void 0&&(G=$(),Z.data.set($,G)),G},cacheSignal:function(){return _1(y1).controller.signal},getOwner:function(){return t5}};if(typeof Symbol==="function"&&Symbol.for){var zZ=Symbol.for;zZ("selector.component"),zZ("selector.has_pseudo_class"),zZ("selector.role"),zZ("selector.test_id"),zZ("selector.text")}var rE=[],sE=typeof WeakMap==="function"?WeakMap:Map,t1=0,r1=2,G4=4,s8=0,_Z=1,e2=2,MJ=3,d6=4,FJ=6,nW=5,o0=t1,K1=null,v0=null,S0=0,S5=0,WJ=1,$$=2,LZ=3,oW=4,KU=5,VZ=6,wJ=7,BU=8,Z$=9,q1=S5,J4=null,p6=!1,C9=!1,HU=!1,W8=0,E1=s8,c6=0,l6=0,MU=0,v5=0,Q$=0,EZ=null,E5=null,RJ=!1,TJ=0,aW=0,iW=300,zJ=1/0,tW=500,PZ=null,S1=null,r6=null,_J=0,FU=1,WU=2,eW=3,s6=0,$w=1,Zw=2,Qw=3,Gw=4,LJ=5,d1=0,n6=null,I9=null,b4=0,wU=0,RU=-0,TU=null,Jw=null,qw=null,f4=_J,Xw=null,nE=50,CZ=0,zU=null,_U=!1,VJ=!1,oE=50,G$=0,IZ=null,O9=!1,EJ=null,Yw=!1,Uw=new Set,aE={},PJ=null,D9=null,LU=!1,VU=!1,CJ=!1,EU=!1,o6=0,PU={};(function(){for(var $=0;$<fY.length;$++){var Z=fY[$],G=Z.toLowerCase();Z=Z[0].toUpperCase()+Z.slice(1),C4(G,"on"+Z)}C4(hF,"onAnimationEnd"),C4(xF,"onAnimationIteration"),C4(uF,"onAnimationStart"),C4("dblclick","onDoubleClick"),C4("focusin","onFocus"),C4("focusout","onBlur"),C4(IE,"onTransitionRun"),C4(OE,"onTransitionStart"),C4(DE,"onTransitionCancel"),C4(mF,"onTransitionEnd")})(),d5("onMouseEnter",["mouseout","mouseover"]),d5("onMouseLeave",["mouseout","mouseover"]),d5("onPointerEnter",["pointerout","pointerover"]),d5("onPointerLeave",["pointerout","pointerover"]),K5("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),K5("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),K5("onBeforeInput",["compositionend","keypress","textInput","paste"]),K5("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),K5("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),K5("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var OZ="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(" "),CU=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(OZ)),IJ="_reactListening"+Math.random().toString(36).slice(2),Nw=!1,Kw=!1,OJ=!1,Bw=!1,DJ=!1,jJ=!1,Hw=!1,AJ={},iE=/\r\n?/g,tE=/\u0000|\uFFFD/g,J$="http://www.w3.org/1999/xlink",IU="http://www.w3.org/XML/1998/namespace",eE="javascript:throw new Error('React form unexpectedly submitted.')",$P="suppressHydrationWarning",q$="&",SJ="/&",DZ="$",jZ="/$",a6="$?",X$="$~",j9="$!",ZP="html",QP="body",GP="head",OU="F!",Mw="F",Fw="loading",JP="style",n8=0,A9=1,vJ=2,DU=null,jU=null,Ww={dialog:!0,webview:!0},AU=null,AZ=void 0,ww=typeof setTimeout==="function"?setTimeout:void 0,qP=typeof clearTimeout==="function"?clearTimeout:void 0,Y$=-1,Rw=typeof Promise==="function"?Promise:void 0,XP=typeof queueMicrotask==="function"?queueMicrotask:typeof Rw<"u"?function($){return Rw.resolve(null).then($).catch(cL)}:ww,SU=null,U$=0,SZ=1,Tw=2,zw=3,z4=4,_4=new Map,_w=new Set,o8=Z1.d;Z1.d={f:function(){var $=o8.f(),Z=p$();return $||Z},r:function($){var Z=E0($);Z!==null&&Z.tag===5&&Z.type==="form"?gB(Z):o8.r($)},D:function($){o8.D($),AM("dns-prefetch",$,null)},C:function($,Z){o8.C($,Z),AM("preconnect",$,Z)},L:function($,Z,G){o8.L($,Z,G);var X=S9;if(X&&$&&Z){var N='link[rel="preload"][as="'+Y4(Z)+'"]';Z==="image"?G&&G.imageSrcSet?(N+='[imagesrcset="'+Y4(G.imageSrcSet)+'"]',typeof G.imageSizes==="string"&&(N+='[imagesizes="'+Y4(G.imageSizes)+'"]')):N+='[href="'+Y4($)+'"]':N+='[href="'+Y4($)+'"]';var B=N;switch(Z){case"style":B=r$($);break;case"script":B=s$($)}_4.has(B)||($=y0({rel:"preload",href:Z==="image"&&G&&G.imageSrcSet?void 0:$,as:Z},G),_4.set(B,$),X.querySelector(N)!==null||Z==="style"&&X.querySelector(g7(B))||Z==="script"&&X.querySelector(h7(B))||(Z=X.createElement("link"),Q5(Z,"link",$),F0(Z),X.head.appendChild(Z)))}},m:function($,Z){o8.m($,Z);var G=S9;if(G&&$){var X=Z&&typeof Z.as==="string"?Z.as:"script",N='link[rel="modulepreload"][as="'+Y4(X)+'"][href="'+Y4($)+'"]',B=N;switch(X){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":B=s$($)}if(!_4.has(B)&&($=y0({rel:"modulepreload",href:$},Z),_4.set(B,$),G.querySelector(N)===null)){switch(X){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(G.querySelector(h7(B)))return}X=G.createElement("link"),Q5(X,"link",$),F0(X),G.head.appendChild(X)}}},X:function($,Z){o8.X($,Z);var G=S9;if(G&&$){var X=a0(G).hoistableScripts,N=s$($),B=X.get(N);B||(B=G.querySelector(h7(N)),B||($=y0({src:$,async:!0},Z),(Z=_4.get(N))&&$Y($,Z),B=G.createElement("script"),F0(B),Q5(B,"link",$),G.head.appendChild(B)),B={type:"script",instance:B,count:1,state:null},X.set(N,B))}},S:function($,Z,G){o8.S($,Z,G);var X=S9;if(X&&$){var N=a0(X).hoistableStyles,B=r$($);Z=Z||"default";var W=N.get(B);if(!W){var w={loading:U$,preload:null};if(W=X.querySelector(g7(B)))w.loading=SZ|z4;else{$=y0({rel:"stylesheet",href:$,"data-precedence":Z},G),(G=_4.get(B))&&eX($,G);var _=W=X.createElement("link");F0(_),Q5(_,"link",$),_._p=new Promise(function(V,k){_.onload=V,_.onerror=k}),_.addEventListener("load",function(){w.loading|=SZ}),_.addEventListener("error",function(){w.loading|=Tw}),w.loading|=z4,OG(W,Z,X)}W={type:"stylesheet",instance:W,count:1,state:w},N.set(B,W)}}},M:function($,Z){o8.M($,Z);var G=S9;if(G&&$){var X=a0(G).hoistableScripts,N=s$($),B=X.get(N);B||(B=G.querySelector(h7(N)),B||($=y0({src:$,async:!0,type:"module"},Z),(Z=_4.get(N))&&$Y($,Z),B=G.createElement("script"),F0(B),Q5(B,"link",$),G.head.appendChild(B)),B={type:"script",instance:B,count:1,state:null},X.set(N,B))}}};var S9=typeof document>"u"?null:document,kJ=null,YP=60000,UP=800,NP=500,vU=0,kU=null,bJ=null,N$=PV,vZ={$$typeof:q8,Provider:null,Consumer:null,_currentValue:N$,_currentValue2:N$,_threadCount:0},Lw="%c%s%c",Vw="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",Ew="",fJ=" ",KP=Function.prototype.bind,Pw=!1,Cw=null,Iw=null,Ow=null,Dw=null,jw=null,Aw=null,Sw=null,vw=null,kw=null,bw=null;Cw=function($,Z,G,X){Z=Q($,Z),Z!==null&&(G=J(Z.memoizedState,G,0,X),Z.memoizedState=G,Z.baseState=G,$.memoizedProps=y0({},$.memoizedProps),G=B5($,2),G!==null&&C1(G,$,2))},Iw=function($,Z,G){Z=Q($,Z),Z!==null&&(G=U(Z.memoizedState,G,0),Z.memoizedState=G,Z.baseState=G,$.memoizedProps=y0({},$.memoizedProps),G=B5($,2),G!==null&&C1(G,$,2))},Ow=function($,Z,G,X){Z=Q($,Z),Z!==null&&(G=q(Z.memoizedState,G,X),Z.memoizedState=G,Z.baseState=G,$.memoizedProps=y0({},$.memoizedProps),G=B5($,2),G!==null&&C1(G,$,2))},Dw=function($,Z,G){$.pendingProps=J($.memoizedProps,Z,0,G),$.alternate&&($.alternate.pendingProps=$.pendingProps),Z=B5($,2),Z!==null&&C1(Z,$,2)},jw=function($,Z){$.pendingProps=U($.memoizedProps,Z,0),$.alternate&&($.alternate.pendingProps=$.pendingProps),Z=B5($,2),Z!==null&&C1(Z,$,2)},Aw=function($,Z,G){$.pendingProps=q($.memoizedProps,Z,G),$.alternate&&($.alternate.pendingProps=$.pendingProps),Z=B5($,2),Z!==null&&C1(Z,$,2)},Sw=function($){var Z=B5($,2);Z!==null&&C1(Z,$,2)},vw=function($){var Z=j$(),G=B5($,Z);G!==null&&C1(G,$,Z)},kw=function($){H=$},bw=function($){K=$};var yJ=!0,gJ=null,bU=!1,i6=null,t6=null,e6=null,kZ=new Map,bZ=new Map,$2=[],BP="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(" "),hJ=null;if(vG.prototype.render=XY.prototype.render=function($){var Z=this._internalRoot;if(Z===null)throw Error("Cannot update an unmounted root.");var G=arguments;typeof G[1]==="function"?console.error("does not support the second callback argument. To execute a side effect after rendering, declare it in a component body with useEffect()."):C(G[1])?console.error("You passed a container to the second argument of root.render(...). You don't need to pass it again since you already passed it to create the root."):typeof G[1]<"u"&&console.error("You passed a second argument to root.render(...) but it only accepts one argument."),G=$;var X=Z.current,N=o5(X);ZY(X,N,G,Z,null,null)},vG.prototype.unmount=XY.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;(o0&(r1|G4))!==t1&&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."),ZY($.current,2,null,$,null,null),p$(),Z[A6]=null}},vG.prototype.unstable_scheduleHydration=function($){if($){var Z=f();$={blockedOn:null,target:$,priority:Z};for(var G=0;G<$2.length&&Z!==0&&Z<$2[G].priority;G++);$2.splice(G,0,$),G===0&&cM($)}},function(){var $=v9.version;if($!=="19.2.5")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.5
|
|
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"),Z1.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 $=s(Z),$=$!==null?Q0($):null,$=$===null?null:$.stateNode,$},!function(){var $={bundleType:1,version:"19.2.5",rendererPackageName:"react-dom",currentDispatcherRef:x,reconcilerVersion:"19.2.5"};return $.overrideHookState=
|
|
227
|
-
You might need to use a local HTTP server (instead of file://): https://react.dev/link/react-devtools-faq`:""),"font-weight:bold")}
|
|
226
|
+
Learn more: https://react.dev/warnings/version-mismatch`))}(),typeof Map==="function"&&Map.prototype!=null&&typeof Map.prototype.forEach==="function"&&typeof Set==="function"&&Set.prototype!=null&&typeof Set.prototype.clear==="function"&&typeof Set.prototype.forEach==="function"||console.error("React depends on Map and Set built-in types. Make sure that you load a polyfill in older browsers. https://react.dev/link/react-polyfills"),Z1.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 $=s(Z),$=$!==null?Q0($):null,$=$===null?null:$.stateNode,$},!function(){var $={bundleType:1,version:"19.2.5",rendererPackageName:"react-dom",currentDispatcherRef:x,reconcilerVersion:"19.2.5"};return $.overrideHookState=Cw,$.overrideHookStateDeletePath=Iw,$.overrideHookStateRenamePath=Ow,$.overrideProps=Dw,$.overridePropsDeletePath=jw,$.overridePropsRenamePath=Aw,$.scheduleUpdate=Sw,$.scheduleRetry=vw,$.setErrorHandler=kw,$.setSuspenseHandler=bw,$.scheduleRefresh=I,$.scheduleRoot=P,$.setRefreshHandler=A,$.getCurrentFiber=wV,D$($)}()&&K8&&window.top===window.self&&(-1<navigator.userAgent.indexOf("Chrome")&&navigator.userAgent.indexOf("Edge")===-1||-1<navigator.userAgent.indexOf("Firefox"))){var fw=window.location.protocol;/^(https?|file):$/.test(fw)&&console.info("%cDownload the React DevTools for a better development experience: https://react.dev/link/react-devtools"+(fw==="file:"?`
|
|
227
|
+
You might need to use a local HTTP server (instead of file://): https://react.dev/link/react-devtools-faq`:""),"font-weight:bold")}PP.createRoot=function($,Z){if(!C($))throw Error("Target container is not a DOM element.");nM($);var G=!1,X="",N=lB,B=rB,W=sB;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===J8&&console.error(`You passed a JSX element to createRoot. You probably meant to call root.render instead. Example usage:
|
|
228
228
|
|
|
229
229
|
let root = createRoot(domContainer);
|
|
230
|
-
root.render(<App />);`),Z.unstable_strictMode===!0&&(G=!0),Z.identifierPrefix!==void 0&&(X=Z.identifierPrefix),Z.onUncaughtError!==void 0&&(N=Z.onUncaughtError),Z.onCaughtError!==void 0&&(B=Z.onCaughtError),Z.onRecoverableError!==void 0&&(W=Z.onRecoverableError)),Z=
|
|
230
|
+
root.render(<App />);`),Z.unstable_strictMode===!0&&(G=!0),Z.identifierPrefix!==void 0&&(X=Z.identifierPrefix),Z.onUncaughtError!==void 0&&(N=Z.onUncaughtError),Z.onCaughtError!==void 0&&(B=Z.onCaughtError),Z.onRecoverableError!==void 0&&(W=Z.onRecoverableError)),Z=gM($,1,!1,null,null,G,X,null,N,B,W,sM),$[A6]=Z.current,mX($),new XY(Z)},PP.hydrateRoot=function($,Z,G){if(!C($))throw Error("Target container is not a DOM element.");nM($),Z===void 0&&console.error("Must provide initial children as second argument to hydrateRoot. Example usage: hydrateRoot(domContainer, <App />)");var X=!1,N="",B=lB,W=rB,w=sB,_=null;return G!==null&&G!==void 0&&(G.unstable_strictMode===!0&&(X=!0),G.identifierPrefix!==void 0&&(N=G.identifierPrefix),G.onUncaughtError!==void 0&&(B=G.onUncaughtError),G.onCaughtError!==void 0&&(W=G.onCaughtError),G.onRecoverableError!==void 0&&(w=G.onRecoverableError),G.formState!==void 0&&(_=G.formState)),Z=gM($,1,!0,Z,G!=null?G:null,X,N,_,B,W,w,sM),Z.context=hM(null),G=Z.current,X=o5(G),X=C2(X),N=z6(X),N.callback=null,_6(G,N,X),l4(X,"hydrateRoot()",null),G=X,Z.current.lanes=G,H6(Z,G),Q8(Z),$[A6]=Z.current,mX($),new vG(Z)},PP.version="19.2.5",typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop==="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()});var pw=Z2((lS,dw)=>{var CP=R0(mw());dw.exports=CP});var Fz=Z2((bD)=>{var z$=R0(e1());(function(){function Q(S){if(S==null)return null;if(typeof S==="function")return S.$$typeof===d?null:S.displayName||S.name||null;if(typeof S==="string")return S;switch(S){case A:return"Fragment";case g:return"Profiler";case C:return"StrictMode";case s:return"Suspense";case Q0:return"SuspenseList";case Y0:return"Activity"}if(typeof S==="object")switch(typeof S.tag==="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),S.$$typeof){case I:return"Portal";case o:return S.displayName||"Context";case m:return(S._context.displayName||"Context")+".Consumer";case a:var n=S.render;return S=S.displayName,S||(S=n.displayName||n.name||"",S=S!==""?"ForwardRef("+S+")":"ForwardRef"),S;case p:return n=S.displayName||null,n!==null?n:Q(S.type)||"Memo";case i:n=S._payload,S=S._init;try{return Q(S(n))}catch(B0){}}return null}function J(S){return""+S}function q(S){try{J(S);var n=!1}catch(b0){n=!0}if(n){n=console;var B0=n.error,H0=typeof Symbol==="function"&&Symbol.toStringTag&&S[Symbol.toStringTag]||S.constructor.name||"Object";return B0.call(n,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",H0),J(S)}}function Y(S){if(S===A)return"<>";if(typeof S==="object"&&S!==null&&S.$$typeof===i)return"<...>";try{var n=Q(S);return n?"<"+n+">":"<...>"}catch(B0){return"<...>"}}function U(){var S=N0.A;return S===null?null:S.getOwner()}function K(){return Error("react-stack-top-frame")}function H(S){if(w0.call(S,"key")){var n=Object.getOwnPropertyDescriptor(S,"key").get;if(n&&n.isReactWarning)return!1}return S.key!==void 0}function M(S,n){function B0(){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)",n))}B0.isReactWarning=!0,Object.defineProperty(S,"key",{get:B0,configurable:!0})}function F(){var S=Q(this.type);return J0[S]||(J0[S]=!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.")),S=this.props.ref,S!==void 0?S:null}function R(S,n,B0,H0,b0,j1){var I0=B0.ref;return S={$$typeof:P,type:S,key:n,props:B0,_owner:H0},(I0!==void 0?I0:null)!==null?Object.defineProperty(S,"ref",{enumerable:!1,get:F}):Object.defineProperty(S,"ref",{enumerable:!1,value:null}),S._store={},Object.defineProperty(S._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(S,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(S,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:b0}),Object.defineProperty(S,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:j1}),Object.freeze&&(Object.freeze(S.props),Object.freeze(S)),S}function T(S,n,B0,H0,b0,j1){var I0=n.children;if(I0!==void 0)if(H0)if(z0(I0)){for(H0=0;H0<I0.length;H0++)z(I0[H0]);Object.freeze&&Object.freeze(I0)}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 z(I0);if(w0.call(n,"key")){I0=Q(S);var f1=Object.keys(n).filter(function(P4){return P4!=="key"});H0=0<f1.length?"{key: someKey, "+f1.join(": ..., ")+": ...}":"{key: someKey}",k0[I0+H0]||(f1=0<f1.length?"{"+f1.join(": ..., ")+": ...}":"{}",console.error(`A props object containing a "key" prop is being spread into JSX:
|
|
231
231
|
let props = %s;
|
|
232
232
|
<%s {...props} />
|
|
233
233
|
React keys must be passed directly to JSX without using spread:
|
|
234
234
|
let props = %s;
|
|
235
|
-
<%s key={someKey} {...props} />`,
|
|
235
|
+
<%s key={someKey} {...props} />`,H0,I0,f1,I0),k0[I0+H0]=!0)}if(I0=null,B0!==void 0&&(q(B0),I0=""+B0),H(n)&&(q(n.key),I0=""+n.key),"key"in n){B0={};for(var N5 in n)N5!=="key"&&(B0[N5]=n[N5])}else B0=n;return I0&&M(B0,typeof S==="function"?S.displayName||S.name||"Unknown":S),R(S,I0,B0,U(),b0,j1)}function z(S){L(S)?S._store&&(S._store.validated=1):typeof S==="object"&&S!==null&&S.$$typeof===i&&(S._payload.status==="fulfilled"?L(S._payload.value)&&S._payload.value._store&&(S._payload.value._store.validated=1):S._store&&(S._store.validated=1))}function L(S){return typeof S==="object"&&S!==null&&S.$$typeof===P}var P=Symbol.for("react.transitional.element"),I=Symbol.for("react.portal"),A=Symbol.for("react.fragment"),C=Symbol.for("react.strict_mode"),g=Symbol.for("react.profiler"),m=Symbol.for("react.consumer"),o=Symbol.for("react.context"),a=Symbol.for("react.forward_ref"),s=Symbol.for("react.suspense"),Q0=Symbol.for("react.suspense_list"),p=Symbol.for("react.memo"),i=Symbol.for("react.lazy"),Y0=Symbol.for("react.activity"),d=Symbol.for("react.client.reference"),N0=z$.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,w0=Object.prototype.hasOwnProperty,z0=Array.isArray,C0=console.createTask?console.createTask:function(){return null};z$={react_stack_bottom_frame:function(S){return S()}};var l,J0={},K0=z$.react_stack_bottom_frame.bind(z$,K)(),d0=C0(Y(K)),k0={};bD.Fragment=A,bD.jsx=function(S,n,B0){var H0=1e4>N0.recentlyCreatedOwnerStacks++;return T(S,n,B0,!1,H0?Error("react-stack-top-frame"):K0,H0?C0(Y(S)):d0)},bD.jsxs=function(S,n,B0){var H0=1e4>N0.recentlyCreatedOwnerStacks++;return T(S,n,B0,!0,H0?Error("react-stack-top-frame"):K0,H0?C0(Y(S)):d0)}})()});var G1=Z2((Cj)=>{var V$=R0(e1());(function(){function Q(S){if(S==null)return null;if(typeof S==="function")return S.$$typeof===d?null:S.displayName||S.name||null;if(typeof S==="string")return S;switch(S){case A:return"Fragment";case g:return"Profiler";case C:return"StrictMode";case s:return"Suspense";case Q0:return"SuspenseList";case Y0:return"Activity"}if(typeof S==="object")switch(typeof S.tag==="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),S.$$typeof){case I:return"Portal";case o:return S.displayName||"Context";case m:return(S._context.displayName||"Context")+".Consumer";case a:var n=S.render;return S=S.displayName,S||(S=n.displayName||n.name||"",S=S!==""?"ForwardRef("+S+")":"ForwardRef"),S;case p:return n=S.displayName||null,n!==null?n:Q(S.type)||"Memo";case i:n=S._payload,S=S._init;try{return Q(S(n))}catch(B0){}}return null}function J(S){return""+S}function q(S){try{J(S);var n=!1}catch(b0){n=!0}if(n){n=console;var B0=n.error,H0=typeof Symbol==="function"&&Symbol.toStringTag&&S[Symbol.toStringTag]||S.constructor.name||"Object";return B0.call(n,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",H0),J(S)}}function Y(S){if(S===A)return"<>";if(typeof S==="object"&&S!==null&&S.$$typeof===i)return"<...>";try{var n=Q(S);return n?"<"+n+">":"<...>"}catch(B0){return"<...>"}}function U(){var S=N0.A;return S===null?null:S.getOwner()}function K(){return Error("react-stack-top-frame")}function H(S){if(w0.call(S,"key")){var n=Object.getOwnPropertyDescriptor(S,"key").get;if(n&&n.isReactWarning)return!1}return S.key!==void 0}function M(S,n){function B0(){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)",n))}B0.isReactWarning=!0,Object.defineProperty(S,"key",{get:B0,configurable:!0})}function F(){var S=Q(this.type);return J0[S]||(J0[S]=!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.")),S=this.props.ref,S!==void 0?S:null}function R(S,n,B0,H0,b0,j1){var I0=B0.ref;return S={$$typeof:P,type:S,key:n,props:B0,_owner:H0},(I0!==void 0?I0:null)!==null?Object.defineProperty(S,"ref",{enumerable:!1,get:F}):Object.defineProperty(S,"ref",{enumerable:!1,value:null}),S._store={},Object.defineProperty(S._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(S,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(S,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:b0}),Object.defineProperty(S,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:j1}),Object.freeze&&(Object.freeze(S.props),Object.freeze(S)),S}function T(S,n,B0,H0,b0,j1){var I0=n.children;if(I0!==void 0)if(H0)if(z0(I0)){for(H0=0;H0<I0.length;H0++)z(I0[H0]);Object.freeze&&Object.freeze(I0)}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 z(I0);if(w0.call(n,"key")){I0=Q(S);var f1=Object.keys(n).filter(function(P4){return P4!=="key"});H0=0<f1.length?"{key: someKey, "+f1.join(": ..., ")+": ...}":"{key: someKey}",k0[I0+H0]||(f1=0<f1.length?"{"+f1.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} />`,
|
|
240
|
+
<%s key={someKey} {...props} />`,H0,I0,f1,I0),k0[I0+H0]=!0)}if(I0=null,B0!==void 0&&(q(B0),I0=""+B0),H(n)&&(q(n.key),I0=""+n.key),"key"in n){B0={};for(var N5 in n)N5!=="key"&&(B0[N5]=n[N5])}else B0=n;return I0&&M(B0,typeof S==="function"?S.displayName||S.name||"Unknown":S),R(S,I0,B0,U(),b0,j1)}function z(S){L(S)?S._store&&(S._store.validated=1):typeof S==="object"&&S!==null&&S.$$typeof===i&&(S._payload.status==="fulfilled"?L(S._payload.value)&&S._payload.value._store&&(S._payload.value._store.validated=1):S._store&&(S._store.validated=1))}function L(S){return typeof S==="object"&&S!==null&&S.$$typeof===P}var P=Symbol.for("react.transitional.element"),I=Symbol.for("react.portal"),A=Symbol.for("react.fragment"),C=Symbol.for("react.strict_mode"),g=Symbol.for("react.profiler"),m=Symbol.for("react.consumer"),o=Symbol.for("react.context"),a=Symbol.for("react.forward_ref"),s=Symbol.for("react.suspense"),Q0=Symbol.for("react.suspense_list"),p=Symbol.for("react.memo"),i=Symbol.for("react.lazy"),Y0=Symbol.for("react.activity"),d=Symbol.for("react.client.reference"),N0=V$.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,w0=Object.prototype.hasOwnProperty,z0=Array.isArray,C0=console.createTask?console.createTask:function(){return null};V$={react_stack_bottom_frame:function(S){return S()}};var l,J0={},K0=V$.react_stack_bottom_frame.bind(V$,K)(),d0=C0(Y(K)),k0={};Cj.Fragment=A,Cj.jsxDEV=function(S,n,B0,H0){var b0=1e4>N0.recentlyCreatedOwnerStacks++;return T(S,n,B0,H0,b0?Error("react-stack-top-frame"):K0,b0?C0(Y(S)):d0)}})()});var S_=R0(pw(),1);var U5=R0(e1(),1);async function cw(Q="24h"){let J=await fetch(`/api/stats/overview?range=${encodeURIComponent(Q)}`);if(!J.ok)throw Error("Failed to fetch overview stats");return J.json()}async function lw(Q="24h"){let J=await fetch(`/api/stats/model-dashboard?range=${encodeURIComponent(Q)}`);if(!J.ok)throw Error("Failed to fetch model stats");return J.json()}async function rw(Q="24h"){let J=await fetch(`/api/stats/costs?range=${encodeURIComponent(Q)}`);if(!J.ok)throw Error("Failed to fetch cost stats");return J.json()}async function sw(Q=50){let J=await fetch(`/api/stats/recent?limit=${Q}`);if(!J.ok)throw Error("Failed to fetch recent requests");return J.json()}async function nw(Q=50){let J=await fetch(`/api/stats/errors?limit=${Q}`);if(!J.ok)throw Error("Failed to fetch recent errors");return J.json()}async function ow(Q){let J=await fetch(`/api/request/${Q}`);if(!J.ok)throw Error("Failed to fetch request details");return J.json()}async function aw(){let Q=await fetch("/api/sync");if(!Q.ok)throw Error("Failed to sync");return Q.json()}async function iw(Q="24h"){let J=await fetch(`/api/stats/behavior?range=${encodeURIComponent(Q)}`);if(!J.ok)throw Error("Failed to fetch behavior stats");return J.json()}/*!
|
|
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 yZ(Q){return Q+0.5|0}var Q2=(Q,J,q)=>Math.max(Math.min(Q,q),J);function fZ(Q){return Q2(yZ(Q*2.55),0,255)}function G2(Q){return Q2(yZ(Q*255),0,255)}function i8(Q){return Q2(yZ(Q/2.55)/100,0,1)}function
|
|
245
|
+
*/function yZ(Q){return Q+0.5|0}var Q2=(Q,J,q)=>Math.max(Math.min(Q,q),J);function fZ(Q){return Q2(yZ(Q*2.55),0,255)}function G2(Q){return Q2(yZ(Q*255),0,255)}function i8(Q){return Q2(yZ(Q/2.55)/100,0,1)}function tw(Q){return Q2(yZ(Q*100),0,100)}var L4={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},hU=[..."0123456789ABCDEF"],IP=(Q)=>hU[Q&15],OP=(Q)=>hU[(Q&240)>>4]+hU[Q&15],uJ=(Q)=>(Q&240)>>4===(Q&15),DP=(Q)=>uJ(Q.r)&&uJ(Q.g)&&uJ(Q.b)&&uJ(Q.a);function jP(Q){var J=Q.length,q;if(Q[0]==="#"){if(J===4||J===5)q={r:255&L4[Q[1]]*17,g:255&L4[Q[2]]*17,b:255&L4[Q[3]]*17,a:J===5?L4[Q[4]]*17:255};else if(J===7||J===9)q={r:L4[Q[1]]<<4|L4[Q[2]],g:L4[Q[3]]<<4|L4[Q[4]],b:L4[Q[5]]<<4|L4[Q[6]],a:J===9?L4[Q[7]]<<4|L4[Q[8]]:255}}return q}var AP=(Q,J)=>Q<255?J(Q):"";function SP(Q){var J=DP(Q)?IP:OP;return Q?"#"+J(Q.r)+J(Q.g)+J(Q.b)+AP(Q.a,J):void 0}var vP=/^(hsla?|hwb|hsv)\(\s*([-+.e\d]+)(?:deg)?[\s,]+([-+.e\d]+)%[\s,]+([-+.e\d]+)%(?:[\s,]+([-+.e\d]+)(%)?)?\s*\)$/;function QR(Q,J,q){let Y=J*Math.min(q,1-q),U=(K,H=(K+Q/30)%12)=>q-Y*Math.max(Math.min(H-3,9-H,1),-1);return[U(0),U(8),U(4)]}function kP(Q,J,q){let Y=(U,K=(U+Q/60)%6)=>q-q*J*Math.max(Math.min(K,4-K,1),0);return[Y(5),Y(3),Y(1)]}function bP(Q,J,q){let Y=QR(Q,1,0.5),U;if(J+q>1)U=1/(J+q),J*=U,q*=U;for(U=0;U<3;U++)Y[U]*=1-J-q,Y[U]+=J;return Y}function fP(Q,J,q,Y,U){if(Q===U)return(J-q)/Y+(J<q?6:0);if(J===U)return(q-Q)/Y+2;return(Q-J)/Y+4}function xU(Q){let q=Q.r/255,Y=Q.g/255,U=Q.b/255,K=Math.max(q,Y,U),H=Math.min(q,Y,U),M=(K+H)/2,F,R,T;if(K!==H)T=K-H,R=M>0.5?T/(2-K-H):T/(K+H),F=fP(q,Y,U,T,K),F=F*60+0.5;return[F|0,R||0,M]}function uU(Q,J,q,Y){return(Array.isArray(J)?Q(J[0],J[1],J[2]):Q(J,q,Y)).map(G2)}function mU(Q,J,q){return uU(QR,Q,J,q)}function yP(Q,J,q){return uU(bP,Q,J,q)}function gP(Q,J,q){return uU(kP,Q,J,q)}function GR(Q){return(Q%360+360)%360}function hP(Q){let J=vP.exec(Q),q=255,Y;if(!J)return;if(J[5]!==Y)q=J[6]?fZ(+J[5]):G2(+J[5]);let U=GR(+J[2]),K=+J[3]/100,H=+J[4]/100;if(J[1]==="hwb")Y=yP(U,K,H);else if(J[1]==="hsv")Y=gP(U,K,H);else Y=mU(U,K,H);return{r:Y[0],g:Y[1],b:Y[2],a:q}}function xP(Q,J){var q=xU(Q);q[0]=GR(q[0]+J),q=mU(q),Q.r=q[0],Q.g=q[1],Q.b=q[2]}function uP(Q){if(!Q)return;let J=xU(Q),q=J[0],Y=tw(J[1]),U=tw(J[2]);return Q.a<255?`hsla(${q}, ${Y}%, ${U}%, ${i8(Q.a)})`:`hsl(${q}, ${Y}%, ${U}%)`}var ew={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"},$R={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 mP(){let Q={},J=Object.keys($R),q=Object.keys(ew),Y,U,K,H,M;for(Y=0;Y<J.length;Y++){H=M=J[Y];for(U=0;U<q.length;U++)K=q[U],M=M.replace(K,ew[K]);K=parseInt($R[H],16),Q[M]=[K>>16&255,K>>8&255,K&255]}return Q}var mJ;function dP(Q){if(!mJ)mJ=mP(),mJ.transparent=[0,0,0,0];let J=mJ[Q.toLowerCase()];return J&&{r:J[0],g:J[1],b:J[2],a:J.length===4?J[3]:255}}var pP=/^rgba?\(\s*([-+.\d]+)(%)?[\s,]+([-+.e\d]+)(%)?[\s,]+([-+.e\d]+)(%)?(?:[\s,/]+([-+.e\d]+)(%)?)?\s*\)$/;function cP(Q){let J=pP.exec(Q),q=255,Y,U,K;if(!J)return;if(J[7]!==Y){let H=+J[7];q=J[8]?fZ(H):Q2(H*255,0,255)}return Y=+J[1],U=+J[3],K=+J[5],Y=255&(J[2]?fZ(Y):Q2(Y,0,255)),U=255&(J[4]?fZ(U):Q2(U,0,255)),K=255&(J[6]?fZ(K):Q2(K,0,255)),{r:Y,g:U,b:K,a:q}}function lP(Q){return Q&&(Q.a<255?`rgba(${Q.r}, ${Q.g}, ${Q.b}, ${i8(Q.a)})`:`rgb(${Q.r}, ${Q.g}, ${Q.b})`)}var gU=(Q)=>Q<=0.0031308?Q*12.92:Math.pow(Q,0.4166666666666667)*1.055-0.055,k9=(Q)=>Q<=0.04045?Q/12.92:Math.pow((Q+0.055)/1.055,2.4);function rP(Q,J,q){let Y=k9(i8(Q.r)),U=k9(i8(Q.g)),K=k9(i8(Q.b));return{r:G2(gU(Y+q*(k9(i8(J.r))-Y))),g:G2(gU(U+q*(k9(i8(J.g))-U))),b:G2(gU(K+q*(k9(i8(J.b))-K))),a:Q.a+q*(J.a-Q.a)}}function dJ(Q,J,q){if(Q){let Y=xU(Q);Y[J]=Math.max(0,Math.min(Y[J]+Y[J]*q,J===0?360:1)),Y=mU(Y),Q.r=Y[0],Q.g=Y[1],Q.b=Y[2]}}function JR(Q,J){return Q?Object.assign(J||{},Q):Q}function ZR(Q){var J={r:0,g:0,b:0,a:255};if(Array.isArray(Q)){if(Q.length>=3){if(J={r:Q[0],g:Q[1],b:Q[2],a:255},Q.length>3)J.a=G2(Q[3])}}else J=JR(Q,{r:0,g:0,b:0,a:1}),J.a=G2(J.a);return J}function sP(Q){if(Q.charAt(0)==="r")return cP(Q);return hP(Q)}class b9{constructor(Q){if(Q instanceof b9)return Q;let J=typeof Q,q;if(J==="object")q=ZR(Q);else if(J==="string")q=jP(Q)||dP(Q)||sP(Q);this._rgb=q,this._valid=!!q}get valid(){return this._valid}get rgb(){var Q=JR(this._rgb);if(Q)Q.a=i8(Q.a);return Q}set rgb(Q){this._rgb=ZR(Q)}rgbString(){return this._valid?lP(this._rgb):void 0}hexString(){return this._valid?SP(this._rgb):void 0}hslString(){return this._valid?uP(this._rgb):void 0}mix(Q,J){if(Q){let q=this.rgb,Y=Q.rgb,U,K=J===U?0.5:J,H=2*K-1,M=q.a-Y.a,F=((H*M===-1?H:(H+M)/(1+H*M))+1)/2;U=1-F,q.r=255&F*q.r+U*Y.r+0.5,q.g=255&F*q.g+U*Y.g+0.5,q.b=255&F*q.b+U*Y.b+0.5,q.a=K*q.a+(1-K)*Y.a,this.rgb=q}return this}interpolate(Q,J){if(Q)this._rgb=rP(this._rgb,Q._rgb,J);return this}clone(){return new b9(this.rgb)}alpha(Q){return this._rgb.a=G2(Q),this}clearer(Q){let J=this._rgb;return J.a*=1-Q,this}greyscale(){let Q=this._rgb,J=yZ(Q.r*0.3+Q.g*0.59+Q.b*0.11);return Q.r=Q.g=Q.b=J,this}opaquer(Q){let J=this._rgb;return J.a*=1+Q,this}negate(){let Q=this._rgb;return Q.r=255-Q.r,Q.g=255-Q.g,Q.b=255-Q.b,this}lighten(Q){return dJ(this._rgb,2,Q),this}darken(Q){return dJ(this._rgb,2,-Q),this}saturate(Q){return dJ(this._rgb,1,Q),this}desaturate(Q){return dJ(this._rgb,1,-Q),this}rotate(Q){return xP(this._rgb,Q),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 w8(){}var Mw=(()=>{let Q=0;return()=>Q++})();function t0(Q){return Q===null||Q===void 0}function _1(Q){if(Array.isArray&&Array.isArray(Q))return!0;let J=Object.prototype.toString.call(Q);if(J.slice(0,7)==="[object"&&J.slice(-6)==="Array]")return!0;return!1}function n0(Q){return Q!==null&&Object.prototype.toString.call(Q)==="[object Object]"}function O1(Q){return(typeof Q==="number"||Q instanceof Number)&&isFinite(+Q)}function g5(Q,J){return O1(Q)?Q:J}function h0(Q,J){return typeof Q>"u"?J:Q}var Hw=(Q,J)=>typeof Q==="string"&&Q.endsWith("%")?parseFloat(Q)/100*J:+Q;function W1(Q,J,q){if(Q&&typeof Q.call==="function")return Q.apply(q,J)}function X1(Q,J,q,Y){let U,K,M;if(_1(Q))if(K=Q.length,Y)for(U=K-1;U>=0;U--)J.call(q,Q[U],U);else for(U=0;U<K;U++)J.call(q,Q[U],U);else if(n0(Q)){M=Object.keys(Q),K=M.length;for(U=0;U<K;U++)J.call(q,Q[M[U]],M[U])}}function xZ(Q,J){let q,Y,U,K;if(!Q||!J||Q.length!==J.length)return!1;for(q=0,Y=Q.length;q<Y;++q)if(U=Q[q],K=J[q],U.datasetIndex!==K.datasetIndex||U.index!==K.index)return!1;return!0}function rJ(Q){if(_1(Q))return Q.map(rJ);if(n0(Q)){let J=Object.create(null),q=Object.keys(Q),Y=q.length,U=0;for(;U<Y;++U)J[q[U]]=rJ(Q[q[U]]);return J}return Q}function Fw(Q){return["__proto__","prototype","constructor"].indexOf(Q)===-1}function pP(Q,J,q,Y){if(!Fw(Q))return;let U=J[Q],K=q[Q];if(n0(U)&&n0(K))y9(U,K,Y);else J[Q]=rJ(K)}function y9(Q,J,q){let Y=_1(J)?J:[J],U=Y.length;if(!n0(Q))return Q;q=q||{};let K=q.merger||pP,M;for(let H=0;H<U;++H){if(M=Y[H],!n0(M))continue;let F=Object.keys(M);for(let w=0,T=F.length;w<T;++w)K(F[w],Q,M,q)}return Q}function h9(Q,J){return y9(Q,J,{merger:cP})}function cP(Q,J,q){if(!Fw(Q))return;let Y=J[Q],U=q[Q];if(n0(Y)&&n0(U))h9(Y,U);else if(!Object.prototype.hasOwnProperty.call(J,Q))J[Q]=rJ(U)}var Qw={"":(Q)=>Q,x:(Q)=>Q.x,y:(Q)=>Q.y};function lP(Q){let J=Q.split("."),q=[],Y="";for(let U of J)if(Y+=U,Y.endsWith("\\"))Y=Y.slice(0,-1)+".";else q.push(Y),Y="";return q}function rP(Q){let J=lP(Q);return(q)=>{for(let Y of J){if(Y==="")break;q=q&&q[Y]}return q}}function F$(Q,J){return(Qw[J]||(Qw[J]=rP(J)))(Q)}function aJ(Q){return Q.charAt(0).toUpperCase()+Q.slice(1)}var x9=(Q)=>typeof Q<"u",t8=(Q)=>typeof Q==="function",dU=(Q,J)=>{if(Q.size!==J.size)return!1;for(let q of Q)if(!J.has(q))return!1;return!0};function Ww(Q){return Q.type==="mouseup"||Q.type==="click"||Q.type==="contextmenu"}var b1=Math.PI,f5=2*b1,sP=f5+b1,sJ=Number.POSITIVE_INFINITY,nP=b1/180,b5=b1/2,B$=b1/4,Gw=b1*2/3,e8=Math.log10,y4=Math.sign;function u9(Q,J,q){return Math.abs(Q-J)<q}function pU(Q){let J=Math.round(Q);Q=u9(Q,J,Q/1000)?J:Q;let q=Math.pow(10,Math.floor(e8(Q))),Y=Q/q;return(Y<=1?1:Y<=2?2:Y<=5?5:10)*q}function Rw(Q){let J=[],q=Math.sqrt(Q),Y;for(Y=1;Y<q;Y++)if(Q%Y===0)J.push(Y),J.push(Q/Y);if(q===(q|0))J.push(q);return J.sort((U,K)=>U-K).pop(),J}function oP(Q){return typeof Q==="symbol"||typeof Q==="object"&&Q!==null&&!((Symbol.toPrimitive in Q)||("toString"in Q)||("valueOf"in Q))}function m9(Q){return!oP(Q)&&!isNaN(parseFloat(Q))&&isFinite(Q)}function ww(Q,J){let q=Math.round(Q);return q-J<=Q&&q+J>=Q}function cU(Q,J,q){let Y,U,K;for(Y=0,U=Q.length;Y<U;Y++)if(K=Q[Y][q],!isNaN(K))J.min=Math.min(J.min,K),J.max=Math.max(J.max,K)}function $6(Q){return Q*(b1/180)}function iJ(Q){return Q*(180/b1)}function lU(Q){if(!O1(Q))return;let J=1,q=0;while(Math.round(Q*J)/J!==Q)J*=10,q++;return q}function Tw(Q,J){let q=J.x-Q.x,Y=J.y-Q.y,U=Math.sqrt(q*q+Y*Y),K=Math.atan2(Y,q);if(K<-0.5*b1)K+=f5;return{angle:K,distance:U}}function nJ(Q,J){return Math.sqrt(Math.pow(J.x-Q.x,2)+Math.pow(J.y-Q.y,2))}function aP(Q,J){return(Q-J+sP)%f5-b1}function k5(Q){return(Q%f5+f5)%f5}function rU(Q,J,q,Y){let U=k5(Q),K=k5(J),M=k5(q),H=k5(K-U),F=k5(M-U),w=k5(U-K),T=k5(U-M);return U===K||U===M||Y&&K===M||H>F&&w<T}function y5(Q,J,q){return Math.max(J,Math.min(q,Q))}function _w(Q){return y5(Q,-32768,32767)}function Z6(Q,J,q,Y=0.000001){return Q>=Math.min(J,q)-Y&&Q<=Math.max(J,q)+Y}function tJ(Q,J,q){q=q||((M)=>Q[M]<J);let Y=Q.length-1,U=0,K;while(Y-U>1)if(K=U+Y>>1,q(K))U=K;else Y=K;return{lo:U,hi:Y}}var q2=(Q,J,q,Y)=>tJ(Q,q,Y?(U)=>{let K=Q[U][J];return K<q||K===q&&Q[U+1][J]===q}:(U)=>Q[U][J]<q),zw=(Q,J,q)=>tJ(Q,q,(Y)=>Q[Y][J]>=q);function Lw(Q,J,q){let Y=0,U=Q.length;while(Y<U&&Q[Y]<J)Y++;while(U>Y&&Q[U-1]>q)U--;return Y>0||U<Q.length?Q.slice(Y,U):Q}var Vw=["push","pop","shift","splice","unshift"];function Ew(Q,J){if(Q._chartjs){Q._chartjs.listeners.push(J);return}Object.defineProperty(Q,"_chartjs",{configurable:!0,enumerable:!1,value:{listeners:[J]}}),Vw.forEach((q)=>{let Y="_onData"+aJ(q),U=Q[q];Object.defineProperty(Q,q,{configurable:!0,enumerable:!1,value(...K){let M=U.apply(this,K);return Q._chartjs.listeners.forEach((H)=>{if(typeof H[Y]==="function")H[Y](...K)}),M}})})}function sU(Q,J){let q=Q._chartjs;if(!q)return;let Y=q.listeners,U=Y.indexOf(J);if(U!==-1)Y.splice(U,1);if(Y.length>0)return;Vw.forEach((K)=>{delete Q[K]}),delete Q._chartjs}function nU(Q){let J=new Set(Q);if(J.size===Q.length)return Q;return Array.from(J)}var oU=function(){if(typeof window>"u")return function(Q){return Q()};return window.requestAnimationFrame}();function aU(Q,J){let q=[],Y=!1;return function(...U){if(q=U,!Y)Y=!0,oU.call(window,()=>{Y=!1,Q.apply(J,q)})}}function Pw(Q,J){let q;return function(...Y){if(J)clearTimeout(q),q=setTimeout(Q,J,Y);else Q.apply(this,Y);return J}}var eJ=(Q)=>Q==="start"?"left":Q==="end"?"right":"center",q5=(Q,J,q)=>Q==="start"?J:Q==="end"?q:(J+q)/2,Cw=(Q,J,q,Y)=>{return Q===(Y?"left":"right")?q:Q==="center"?(J+q)/2:J};function Iw(Q,J,q){let Y=J.length,U=0,K=Y;if(Q._sorted){let{iScale:M,vScale:H,_parsed:F}=Q,w=Q.dataset?Q.dataset.options?Q.dataset.options.spanGaps:null:null,T=M.axis,{min:_,max:L,minDefined:P,maxDefined:O}=M.getUserBounds();if(P){if(U=Math.min(q2(F,T,_).lo,q?Y:q2(J,T,M.getPixelForValue(_)).lo),w){let A=F.slice(0,U+1).reverse().findIndex((C)=>!t0(C[H.axis]));U-=Math.max(0,A)}U=y5(U,0,Y-1)}if(O){let A=Math.max(q2(F,M.axis,L,!0).hi+1,q?0:q2(J,T,M.getPixelForValue(L),!0).hi+1);if(w){let C=F.slice(A-1).findIndex((g)=>!t0(g[H.axis]));A+=Math.max(0,C)}K=y5(A,U,Y)-U}else K=Y-U}return{start:U,count:K}}function Ow(Q){let{xScale:J,yScale:q,_scaleRanges:Y}=Q,U={xmin:J.min,xmax:J.max,ymin:q.min,ymax:q.max};if(!Y)return Q._scaleRanges=U,!0;let K=Y.xmin!==J.min||Y.xmax!==J.max||Y.ymin!==q.min||Y.ymax!==q.max;return Object.assign(Y,U),K}var pJ=(Q)=>Q===0||Q===1,Jw=(Q,J,q)=>-(Math.pow(2,10*(Q-=1))*Math.sin((Q-J)*f5/q)),qw=(Q,J,q)=>Math.pow(2,-10*Q)*Math.sin((Q-J)*f5/q)+1,f9={linear:(Q)=>Q,easeInQuad:(Q)=>Q*Q,easeOutQuad:(Q)=>-Q*(Q-2),easeInOutQuad:(Q)=>(Q/=0.5)<1?0.5*Q*Q:-0.5*(--Q*(Q-2)-1),easeInCubic:(Q)=>Q*Q*Q,easeOutCubic:(Q)=>(Q-=1)*Q*Q+1,easeInOutCubic:(Q)=>(Q/=0.5)<1?0.5*Q*Q*Q:0.5*((Q-=2)*Q*Q+2),easeInQuart:(Q)=>Q*Q*Q*Q,easeOutQuart:(Q)=>-((Q-=1)*Q*Q*Q-1),easeInOutQuart:(Q)=>(Q/=0.5)<1?0.5*Q*Q*Q*Q:-0.5*((Q-=2)*Q*Q*Q-2),easeInQuint:(Q)=>Q*Q*Q*Q*Q,easeOutQuint:(Q)=>(Q-=1)*Q*Q*Q*Q+1,easeInOutQuint:(Q)=>(Q/=0.5)<1?0.5*Q*Q*Q*Q*Q:0.5*((Q-=2)*Q*Q*Q*Q+2),easeInSine:(Q)=>-Math.cos(Q*b5)+1,easeOutSine:(Q)=>Math.sin(Q*b5),easeInOutSine:(Q)=>-0.5*(Math.cos(b1*Q)-1),easeInExpo:(Q)=>Q===0?0:Math.pow(2,10*(Q-1)),easeOutExpo:(Q)=>Q===1?1:-Math.pow(2,-10*Q)+1,easeInOutExpo:(Q)=>pJ(Q)?Q:Q<0.5?0.5*Math.pow(2,10*(Q*2-1)):0.5*(-Math.pow(2,-10*(Q*2-1))+2),easeInCirc:(Q)=>Q>=1?Q:-(Math.sqrt(1-Q*Q)-1),easeOutCirc:(Q)=>Math.sqrt(1-(Q-=1)*Q),easeInOutCirc:(Q)=>(Q/=0.5)<1?-0.5*(Math.sqrt(1-Q*Q)-1):0.5*(Math.sqrt(1-(Q-=2)*Q)+1),easeInElastic:(Q)=>pJ(Q)?Q:Jw(Q,0.075,0.3),easeOutElastic:(Q)=>pJ(Q)?Q:qw(Q,0.075,0.3),easeInOutElastic(Q){return pJ(Q)?Q:Q<0.5?0.5*Jw(Q*2,0.1125,0.45):0.5+0.5*qw(Q*2-1,0.1125,0.45)},easeInBack(Q){return Q*Q*(2.70158*Q-1.70158)},easeOutBack(Q){return(Q-=1)*Q*(2.70158*Q+1.70158)+1},easeInOutBack(Q){let J=1.70158;if((Q/=0.5)<1)return 0.5*(Q*Q*(((J*=1.525)+1)*Q-J));return 0.5*((Q-=2)*Q*(((J*=1.525)+1)*Q+J)+2)},easeInBounce:(Q)=>1-f9.easeOutBounce(1-Q),easeOutBounce(Q){if(Q<0.36363636363636365)return 7.5625*Q*Q;if(Q<0.7272727272727273)return 7.5625*(Q-=0.5454545454545454)*Q+0.75;if(Q<0.9090909090909091)return 7.5625*(Q-=0.8181818181818182)*Q+0.9375;return 7.5625*(Q-=0.9545454545454546)*Q+0.984375},easeInOutBounce:(Q)=>Q<0.5?f9.easeInBounce(Q*2)*0.5:f9.easeOutBounce(Q*2-1)*0.5+0.5};function iU(Q){if(Q&&typeof Q==="object"){let J=Q.toString();return J==="[object CanvasPattern]"||J==="[object CanvasGradient]"}return!1}function tU(Q){return iU(Q)?Q:new b9(Q)}function uU(Q){return iU(Q)?Q:new b9(Q).saturate(0.5).darken(0.1).hexString()}var iP=["x","y","borderWidth","radius","tension"],tP=["color","borderColor","backgroundColor"];function eP(Q){Q.set("animation",{delay:void 0,duration:1000,easing:"easeOutQuart",fn:void 0,from:void 0,loop:void 0,to:void 0,type:void 0}),Q.describe("animation",{_fallback:!1,_indexable:!1,_scriptable:(J)=>J!=="onProgress"&&J!=="onComplete"&&J!=="fn"}),Q.set("animations",{colors:{type:"color",properties:tP},numbers:{type:"number",properties:iP}}),Q.describe("animations",{_fallback:"animation"}),Q.set("transitions",{active:{animation:{duration:400}},resize:{animation:{duration:0}},show:{animations:{colors:{from:"transparent"},visible:{type:"boolean",duration:0}}},hide:{animations:{colors:{to:"transparent"},visible:{type:"boolean",easing:"linear",fn:(J)=>J|0}}}})}function $C(Q){Q.set("layout",{autoPadding:!0,padding:{top:0,right:0,bottom:0,left:0}})}var Xw=new Map;function ZC(Q,J){J=J||{};let q=Q+JSON.stringify(J),Y=Xw.get(q);if(!Y)Y=new Intl.NumberFormat(Q,J),Xw.set(q,Y);return Y}function $q(Q,J,q){return ZC(J,q).format(Q)}var Dw={values(Q){return _1(Q)?Q:""+Q},numeric(Q,J,q){if(Q===0)return"0";let Y=this.chart.options.locale,U,K=Q;if(q.length>1){let w=Math.max(Math.abs(q[0].value),Math.abs(q[q.length-1].value));if(w<0.0001||w>1000000000000000)U="scientific";K=QC(Q,q)}let M=e8(Math.abs(K)),H=isNaN(M)?1:Math.max(Math.min(-1*Math.floor(M),20),0),F={notation:U,minimumFractionDigits:H,maximumFractionDigits:H};return Object.assign(F,this.options.ticks.format),$q(Q,Y,F)},logarithmic(Q,J,q){if(Q===0)return"0";let Y=q[J].significand||Q/Math.pow(10,Math.floor(e8(Q)));if([1,2,3,5,10,15].includes(Y)||J>0.8*q.length)return Dw.numeric.call(this,Q,J,q);return""}};function QC(Q,J){let q=J.length>3?J[2].value-J[1].value:J[1].value-J[0].value;if(Math.abs(q)>=1&&Q!==Math.floor(Q))q=Q-Math.floor(Q);return q}var uZ={formatters:Dw};function GC(Q){Q.set("scale",{display:!0,offset:!1,reverse:!1,beginAtZero:!1,bounds:"ticks",clip:!0,grace:0,grid:{display:!0,lineWidth:1,drawOnChartArea:!0,drawTicks:!0,tickLength:8,tickWidth:(J,q)=>q.lineWidth,tickColor:(J,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:uZ.formatters.values,minor:{},major:{},align:"center",crossAlign:"near",showLabelBackdrop:!1,backdropColor:"rgba(255, 255, 255, 0.75)",backdropPadding:2}}),Q.route("scale.ticks","color","","color"),Q.route("scale.grid","color","","borderColor"),Q.route("scale.border","color","","borderColor"),Q.route("scale.title","color","","color"),Q.describe("scale",{_fallback:!1,_scriptable:(J)=>!J.startsWith("before")&&!J.startsWith("after")&&J!=="callback"&&J!=="parser",_indexable:(J)=>J!=="borderDash"&&J!=="tickBorderDash"&&J!=="dash"}),Q.describe("scales",{_fallback:"scale"}),Q.describe("scale.ticks",{_scriptable:(J)=>J!=="backdropPadding"&&J!=="callback",_indexable:(J)=>J!=="backdropPadding"})}var Y2=Object.create(null),Zq=Object.create(null);function gZ(Q,J){if(!J)return Q;let q=J.split(".");for(let Y=0,U=q.length;Y<U;++Y){let K=q[Y];Q=Q[K]||(Q[K]=Object.create(null))}return Q}function mU(Q,J,q){if(typeof J==="string")return y9(gZ(Q,J),q);return y9(gZ(Q,""),J)}class jw{constructor(Q,J){this.animation=void 0,this.backgroundColor="rgba(0,0,0,0.1)",this.borderColor="rgba(0,0,0,0.1)",this.color="#666",this.datasets={},this.devicePixelRatio=(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,Y)=>uU(Y.backgroundColor),this.hoverBorderColor=(q,Y)=>uU(Y.borderColor),this.hoverColor=(q,Y)=>uU(Y.color),this.indexAxis="x",this.interaction={mode:"nearest",intersect:!0,includeInvisible:!1},this.maintainAspectRatio=!0,this.onHover=null,this.onClick=null,this.parsing=!0,this.plugins={},this.responsive=!0,this.scale=void 0,this.scales={},this.showLine=!0,this.drawActiveElementsOnTop=!0,this.describe(Q),this.apply(J)}set(Q,J){return mU(this,Q,J)}get(Q){return gZ(this,Q)}describe(Q,J){return mU(Zq,Q,J)}override(Q,J){return mU(Y2,Q,J)}route(Q,J,q,Y){let U=gZ(this,Q),K=gZ(this,q),M="_"+J;Object.defineProperties(U,{[M]:{value:U[J],writable:!0},[J]:{enumerable:!0,get(){let H=this[M],F=K[Y];if(n0(H))return Object.assign({},F,H);return h0(H,F)},set(H){this[M]=H}}})}apply(Q){Q.forEach((J)=>J(this))}}var D1=new jw({_scriptable:(Q)=>!Q.startsWith("on"),_indexable:(Q)=>Q!=="events",hover:{_fallback:"interaction"},interaction:{_scriptable:!1,_indexable:!1}},[eP,$C,GC]);function JC(Q){if(!Q||t0(Q.size)||t0(Q.family))return null;return(Q.style?Q.style+" ":"")+(Q.weight?Q.weight+" ":"")+Q.size+"px "+Q.family}function hZ(Q,J,q,Y,U){let K=J[U];if(!K)K=J[U]=Q.measureText(U).width,q.push(U);if(K>Y)Y=K;return Y}function Aw(Q,J,q,Y){Y=Y||{};let U=Y.data=Y.data||{},K=Y.garbageCollect=Y.garbageCollect||[];if(Y.font!==J)U=Y.data={},K=Y.garbageCollect=[],Y.font=J;Q.save(),Q.font=J;let M=0,H=q.length,F,w,T,_,L;for(F=0;F<H;F++)if(_=q[F],_!==void 0&&_!==null&&!_1(_))M=hZ(Q,U,K,M,_);else if(_1(_)){for(w=0,T=_.length;w<T;w++)if(L=_[w],L!==void 0&&L!==null&&!_1(L))M=hZ(Q,U,K,M,L)}Q.restore();let P=K.length/2;if(P>q.length){for(F=0;F<P;F++)delete U[K[F]];K.splice(0,P)}return M}function U2(Q,J,q){let Y=Q.currentDevicePixelRatio,U=q!==0?Math.max(q/2,0.5):0;return Math.round((J-U)*Y)/Y+U}function eU(Q,J){if(!J&&!Q)return;J=J||Q.getContext("2d"),J.save(),J.resetTransform(),J.clearRect(0,0,Q.width,Q.height),J.restore()}function Qq(Q,J,q,Y){$N(Q,J,q,Y,null)}function $N(Q,J,q,Y,U){let K,M,H,F,w,T,_,L,P=J.pointStyle,O=J.rotation,A=J.radius,C=(O||0)*nP;if(P&&typeof P==="object"){if(K=P.toString(),K==="[object HTMLImageElement]"||K==="[object HTMLCanvasElement]"){Q.save(),Q.translate(q,Y),Q.rotate(C),Q.drawImage(P,-P.width/2,-P.height/2,P.width,P.height),Q.restore();return}}if(isNaN(A)||A<=0)return;switch(Q.beginPath(),P){default:if(U)Q.ellipse(q,Y,U/2,A,0,0,f5);else Q.arc(q,Y,A,0,f5);Q.closePath();break;case"triangle":T=U?U/2:A,Q.moveTo(q+Math.sin(C)*T,Y-Math.cos(C)*A),C+=Gw,Q.lineTo(q+Math.sin(C)*T,Y-Math.cos(C)*A),C+=Gw,Q.lineTo(q+Math.sin(C)*T,Y-Math.cos(C)*A),Q.closePath();break;case"rectRounded":w=A*0.516,F=A-w,M=Math.cos(C+B$)*F,_=Math.cos(C+B$)*(U?U/2-w:F),H=Math.sin(C+B$)*F,L=Math.sin(C+B$)*(U?U/2-w:F),Q.arc(q-_,Y-H,w,C-b1,C-b5),Q.arc(q+L,Y-M,w,C-b5,C),Q.arc(q+_,Y+H,w,C,C+b5),Q.arc(q-L,Y+M,w,C+b5,C+b1),Q.closePath();break;case"rect":if(!O){F=Math.SQRT1_2*A,T=U?U/2:F,Q.rect(q-T,Y-F,2*T,2*F);break}C+=B$;case"rectRot":_=Math.cos(C)*(U?U/2:A),M=Math.cos(C)*A,H=Math.sin(C)*A,L=Math.sin(C)*(U?U/2:A),Q.moveTo(q-_,Y-H),Q.lineTo(q+L,Y-M),Q.lineTo(q+_,Y+H),Q.lineTo(q-L,Y+M),Q.closePath();break;case"crossRot":C+=B$;case"cross":_=Math.cos(C)*(U?U/2:A),M=Math.cos(C)*A,H=Math.sin(C)*A,L=Math.sin(C)*(U?U/2:A),Q.moveTo(q-_,Y-H),Q.lineTo(q+_,Y+H),Q.moveTo(q+L,Y-M),Q.lineTo(q-L,Y+M);break;case"star":_=Math.cos(C)*(U?U/2:A),M=Math.cos(C)*A,H=Math.sin(C)*A,L=Math.sin(C)*(U?U/2:A),Q.moveTo(q-_,Y-H),Q.lineTo(q+_,Y+H),Q.moveTo(q+L,Y-M),Q.lineTo(q-L,Y+M),C+=B$,_=Math.cos(C)*(U?U/2:A),M=Math.cos(C)*A,H=Math.sin(C)*A,L=Math.sin(C)*(U?U/2:A),Q.moveTo(q-_,Y-H),Q.lineTo(q+_,Y+H),Q.moveTo(q+L,Y-M),Q.lineTo(q-L,Y+M);break;case"line":M=U?U/2:Math.cos(C)*A,H=Math.sin(C)*A,Q.moveTo(q-M,Y-H),Q.lineTo(q+M,Y+H);break;case"dash":Q.moveTo(q,Y),Q.lineTo(q+Math.cos(C)*(U?U/2:A),Y+Math.sin(C)*A);break;case!1:Q.closePath();break}if(Q.fill(),J.borderWidth>0)Q.stroke()}function R8(Q,J,q){return q=q||0.5,!J||Q&&Q.x>J.left-q&&Q.x<J.right+q&&Q.y>J.top-q&&Q.y<J.bottom+q}function mZ(Q,J){Q.save(),Q.beginPath(),Q.rect(J.left,J.top,J.right-J.left,J.bottom-J.top),Q.clip()}function dZ(Q){Q.restore()}function Sw(Q,J,q,Y,U){if(!J)return Q.lineTo(q.x,q.y);if(U==="middle"){let K=(J.x+q.x)/2;Q.lineTo(K,J.y),Q.lineTo(K,q.y)}else if(U==="after"!==!!Y)Q.lineTo(J.x,q.y);else Q.lineTo(q.x,J.y);Q.lineTo(q.x,q.y)}function vw(Q,J,q,Y){if(!J)return Q.lineTo(q.x,q.y);Q.bezierCurveTo(Y?J.cp1x:J.cp2x,Y?J.cp1y:J.cp2y,Y?q.cp2x:q.cp1x,Y?q.cp2y:q.cp1y,q.x,q.y)}function qC(Q,J){if(J.translation)Q.translate(J.translation[0],J.translation[1]);if(!t0(J.rotation))Q.rotate(J.rotation);if(J.color)Q.fillStyle=J.color;if(J.textAlign)Q.textAlign=J.textAlign;if(J.textBaseline)Q.textBaseline=J.textBaseline}function XC(Q,J,q,Y,U){if(U.strikethrough||U.underline){let K=Q.measureText(Y),M=J-K.actualBoundingBoxLeft,H=J+K.actualBoundingBoxRight,F=q-K.actualBoundingBoxAscent,w=q+K.actualBoundingBoxDescent,T=U.strikethrough?(F+w)/2:w;Q.strokeStyle=Q.fillStyle,Q.beginPath(),Q.lineWidth=U.decorationWidth||2,Q.moveTo(M,T),Q.lineTo(H,T),Q.stroke()}}function YC(Q,J){let q=Q.fillStyle;Q.fillStyle=J.color,Q.fillRect(J.left,J.top,J.width,J.height),Q.fillStyle=q}function N2(Q,J,q,Y,U,K={}){let M=_1(J)?J:[J],H=K.strokeWidth>0&&K.strokeColor!=="",F,w;Q.save(),Q.font=U.string,qC(Q,K);for(F=0;F<M.length;++F){if(w=M[F],K.backdrop)YC(Q,K.backdrop);if(H){if(K.strokeColor)Q.strokeStyle=K.strokeColor;if(!t0(K.strokeWidth))Q.lineWidth=K.strokeWidth;Q.strokeText(w,q,Y,K.maxWidth)}Q.fillText(w,q,Y,K.maxWidth),XC(Q,q,Y,w,K),Y+=Number(U.lineHeight)}Q.restore()}function d9(Q,J){let{x:q,y:Y,w:U,h:K,radius:M}=J;Q.arc(q+M.topLeft,Y+M.topLeft,M.topLeft,1.5*b1,b1,!0),Q.lineTo(q,Y+K-M.bottomLeft),Q.arc(q+M.bottomLeft,Y+K-M.bottomLeft,M.bottomLeft,b1,b5,!0),Q.lineTo(q+U-M.bottomRight,Y+K),Q.arc(q+U-M.bottomRight,Y+K-M.bottomRight,M.bottomRight,b5,0,!0),Q.lineTo(q+U,Y+M.topRight),Q.arc(q+U-M.topRight,Y+M.topRight,M.topRight,0,-b5,!0),Q.lineTo(q+M.topLeft,Y)}var UC=/^(normal|(\d+(?:\.\d+)?)(px|em|%)?)$/,NC=/^(normal|italic|initial|inherit|unset|(oblique( -?[0-9]?[0-9]deg)?))$/;function KC(Q,J){let q=(""+Q).match(UC);if(!q||q[1]==="normal")return J*1.2;switch(Q=+q[2],q[3]){case"px":return Q;case"%":Q/=100;break}return J*Q}var BC=(Q)=>+Q||0;function ZN(Q,J){let q={},Y=n0(J),U=Y?Object.keys(J):J,K=n0(Q)?Y?(M)=>h0(Q[M],Q[J[M]]):(M)=>Q[M]:()=>Q;for(let M of U)q[M]=BC(K(M));return q}function QN(Q){return ZN(Q,{top:"y",right:"x",bottom:"y",left:"x"})}function K2(Q){return ZN(Q,["topLeft","topRight","bottomLeft","bottomRight"])}function X5(Q){let J=QN(Q);return J.width=J.left+J.right,J.height=J.top+J.bottom,J}function p1(Q,J){Q=Q||{},J=J||D1.font;let q=h0(Q.size,J.size);if(typeof q==="string")q=parseInt(q,10);let Y=h0(Q.style,J.style);if(Y&&!(""+Y).match(NC))console.warn('Invalid font style specified: "'+Y+'"'),Y=void 0;let U={family:h0(Q.family,J.family),lineHeight:KC(h0(Q.lineHeight,J.lineHeight),q),size:q,style:Y,weight:h0(Q.weight,J.weight),string:""};return U.string=JC(U),U}function pZ(Q,J,q,Y){let U=!0,K,M,H;for(K=0,M=Q.length;K<M;++K){if(H=Q[K],H===void 0)continue;if(J!==void 0&&typeof H==="function")H=H(J),U=!1;if(q!==void 0&&_1(H))H=H[q%H.length],U=!1;if(H!==void 0){if(Y&&!U)Y.cacheable=!1;return H}}}function kw(Q,J,q){let{min:Y,max:U}=Q,K=Hw(J,(U-Y)/2),M=(H,F)=>q&&H===0?0:H+F;return{min:M(Y,-Math.abs(K)),max:M(U,K)}}function Q6(Q,J){return Object.assign(Object.create(Q),J)}function Gq(Q,J=[""],q,Y,U=()=>Q[0]){let K=q||Q;if(typeof Y>"u")Y=yw("_fallback",Q);let M={[Symbol.toStringTag]:"Object",_cacheable:!0,_scopes:Q,_rootScopes:K,_fallback:Y,_getTarget:U,override:(H)=>Gq([H,...Q],J,K,Y)};return new Proxy(M,{deleteProperty(H,F){return delete H[F],delete H._keys,delete Q[0][F],!0},get(H,F){return bw(H,F,()=>_C(F,J,Q,H))},getOwnPropertyDescriptor(H,F){return Reflect.getOwnPropertyDescriptor(H._scopes[0],F)},getPrototypeOf(){return Reflect.getPrototypeOf(Q[0])},has(H,F){return Uw(H).includes(F)},ownKeys(H){return Uw(H)},set(H,F,w){let T=H._storage||(H._storage=U());return H[F]=T[F]=w,delete H._keys,!0}})}function H$(Q,J,q,Y){let U={_cacheable:!1,_proxy:Q,_context:J,_subProxy:q,_stack:new Set,_descriptors:GN(Q,Y),setContext:(K)=>H$(Q,K,q,Y),override:(K)=>H$(Q.override(K),J,q,Y)};return new Proxy(U,{deleteProperty(K,M){return delete K[M],delete Q[M],!0},get(K,M,H){return bw(K,M,()=>HC(K,M,H))},getOwnPropertyDescriptor(K,M){return K._descriptors.allKeys?Reflect.has(Q,M)?{enumerable:!0,configurable:!0}:void 0:Reflect.getOwnPropertyDescriptor(Q,M)},getPrototypeOf(){return Reflect.getPrototypeOf(Q)},has(K,M){return Reflect.has(Q,M)},ownKeys(){return Reflect.ownKeys(Q)},set(K,M,H){return Q[M]=H,delete K[M],!0}})}function GN(Q,J={scriptable:!0,indexable:!0}){let{_scriptable:q=J.scriptable,_indexable:Y=J.indexable,_allKeys:U=J.allKeys}=Q;return{allKeys:U,scriptable:q,indexable:Y,isScriptable:t8(q)?q:()=>q,isIndexable:t8(Y)?Y:()=>Y}}var MC=(Q,J)=>Q?Q+aJ(J):J,JN=(Q,J)=>n0(J)&&Q!=="adapters"&&(Object.getPrototypeOf(J)===null||J.constructor===Object);function bw(Q,J,q){if(Object.prototype.hasOwnProperty.call(Q,J)||J==="constructor")return Q[J];let Y=q();return Q[J]=Y,Y}function HC(Q,J,q){let{_proxy:Y,_context:U,_subProxy:K,_descriptors:M}=Q,H=Y[J];if(t8(H)&&M.isScriptable(J))H=FC(J,H,Q,q);if(_1(H)&&H.length)H=WC(J,H,Q,M.isIndexable);if(JN(J,H))H=H$(H,U,K&&K[J],M);return H}function FC(Q,J,q,Y){let{_proxy:U,_context:K,_subProxy:M,_stack:H}=q;if(H.has(Q))throw Error("Recursion detected: "+Array.from(H).join("->")+"->"+Q);H.add(Q);let F=J(K,M||Y);if(H.delete(Q),JN(Q,F))F=qN(U._scopes,U,Q,F);return F}function WC(Q,J,q,Y){let{_proxy:U,_context:K,_subProxy:M,_descriptors:H}=q;if(typeof K.index<"u"&&Y(Q))return J[K.index%J.length];else if(n0(J[0])){let F=J,w=U._scopes.filter((T)=>T!==F);J=[];for(let T of F){let _=qN(w,U,Q,T);J.push(H$(_,K,M&&M[Q],H))}}return J}function fw(Q,J,q){return t8(Q)?Q(J,q):Q}var RC=(Q,J)=>Q===!0?J:typeof Q==="string"?F$(J,Q):void 0;function wC(Q,J,q,Y,U){for(let K of J){let M=RC(q,K);if(M){Q.add(M);let H=fw(M._fallback,q,U);if(typeof H<"u"&&H!==q&&H!==Y)return H}else if(M===!1&&typeof Y<"u"&&q!==Y)return null}return!1}function qN(Q,J,q,Y){let U=J._rootScopes,K=fw(J._fallback,q,Y),M=[...Q,...U],H=new Set;H.add(Y);let F=Yw(H,M,q,K||q,Y);if(F===null)return!1;if(typeof K<"u"&&K!==q){if(F=Yw(H,M,K,F,Y),F===null)return!1}return Gq(Array.from(H),[""],U,K,()=>TC(J,q,Y))}function Yw(Q,J,q,Y,U){while(q)q=wC(Q,J,q,Y,U);return q}function TC(Q,J,q){let Y=Q._getTarget();if(!(J in Y))Y[J]={};let U=Y[J];if(_1(U)&&n0(q))return q;return U||{}}function _C(Q,J,q,Y){let U;for(let K of J)if(U=yw(MC(K,Q),q),typeof U<"u")return JN(Q,U)?qN(q,Y,Q,U):U}function yw(Q,J){for(let q of J){if(!q)continue;let Y=q[Q];if(typeof Y<"u")return Y}}function Uw(Q){let J=Q._keys;if(!J)J=Q._keys=zC(Q._scopes);return J}function zC(Q){let J=new Set;for(let q of Q)for(let Y of Object.keys(q).filter((U)=>!U.startsWith("_")))J.add(Y);return Array.from(J)}var LC=Number.EPSILON||0.00000000000001,g9=(Q,J)=>J<Q.length&&!Q[J].skip&&Q[J],gw=(Q)=>Q==="x"?"y":"x";function VC(Q,J,q,Y){let U=Q.skip?J:Q,K=J,M=q.skip?J:q,H=nJ(K,U),F=nJ(M,K),w=H/(H+F),T=F/(H+F);w=isNaN(w)?0:w,T=isNaN(T)?0:T;let _=Y*w,L=Y*T;return{previous:{x:K.x-_*(M.x-U.x),y:K.y-_*(M.y-U.y)},next:{x:K.x+L*(M.x-U.x),y:K.y+L*(M.y-U.y)}}}function EC(Q,J,q){let Y=Q.length,U,K,M,H,F,w=g9(Q,0);for(let T=0;T<Y-1;++T){if(F=w,w=g9(Q,T+1),!F||!w)continue;if(u9(J[T],0,LC)){q[T]=q[T+1]=0;continue}if(U=q[T]/J[T],K=q[T+1]/J[T],H=Math.pow(U,2)+Math.pow(K,2),H<=9)continue;M=3/Math.sqrt(H),q[T]=U*M*J[T],q[T+1]=K*M*J[T]}}function PC(Q,J,q="x"){let Y=gw(q),U=Q.length,K,M,H,F=g9(Q,0);for(let w=0;w<U;++w){if(M=H,H=F,F=g9(Q,w+1),!H)continue;let T=H[q],_=H[Y];if(M)K=(T-M[q])/3,H[`cp1${q}`]=T-K,H[`cp1${Y}`]=_-K*J[w];if(F)K=(F[q]-T)/3,H[`cp2${q}`]=T+K,H[`cp2${Y}`]=_+K*J[w]}}function CC(Q,J="x"){let q=gw(J),Y=Q.length,U=Array(Y).fill(0),K=Array(Y),M,H,F,w=g9(Q,0);for(M=0;M<Y;++M){if(H=F,F=w,w=g9(Q,M+1),!F)continue;if(w){let T=w[J]-F[J];U[M]=T!==0?(w[q]-F[q])/T:0}K[M]=!H?U[M]:!w?U[M-1]:y4(U[M-1])!==y4(U[M])?0:(U[M-1]+U[M])/2}EC(Q,U,K),PC(Q,K,J)}function cJ(Q,J,q){return Math.max(Math.min(Q,q),J)}function IC(Q,J){let q,Y,U,K,M,H=R8(Q[0],J);for(q=0,Y=Q.length;q<Y;++q){if(M=K,K=H,H=q<Y-1&&R8(Q[q+1],J),!K)continue;if(U=Q[q],M)U.cp1x=cJ(U.cp1x,J.left,J.right),U.cp1y=cJ(U.cp1y,J.top,J.bottom);if(H)U.cp2x=cJ(U.cp2x,J.left,J.right),U.cp2y=cJ(U.cp2y,J.top,J.bottom)}}function hw(Q,J,q,Y,U){let K,M,H,F;if(J.spanGaps)Q=Q.filter((w)=>!w.skip);if(J.cubicInterpolationMode==="monotone")CC(Q,U);else{let w=Y?Q[Q.length-1]:Q[0];for(K=0,M=Q.length;K<M;++K)H=Q[K],F=VC(w,H,Q[Math.min(K+1,M-(Y?0:1))%M],J.tension),H.cp1x=F.previous.x,H.cp1y=F.previous.y,H.cp2x=F.next.x,H.cp2y=F.next.y,w=H}if(J.capBezierPoints)IC(Q,q)}function Jq(){return typeof window<"u"&&typeof document<"u"}function qq(Q){let J=Q.parentNode;if(J&&J.toString()==="[object ShadowRoot]")J=J.host;return J}function oJ(Q,J,q){let Y;if(typeof Q==="string"){if(Y=parseInt(Q,10),Q.indexOf("%")!==-1)Y=Y/100*J.parentNode[q]}else Y=Q;return Y}var Xq=(Q)=>Q.ownerDocument.defaultView.getComputedStyle(Q,null);function OC(Q,J){return Xq(Q).getPropertyValue(J)}var DC=["top","right","bottom","left"];function M$(Q,J,q){let Y={};q=q?"-"+q:"";for(let U=0;U<4;U++){let K=DC[U];Y[K]=parseFloat(Q[J+"-"+K+q])||0}return Y.width=Y.left+Y.right,Y.height=Y.top+Y.bottom,Y}var jC=(Q,J,q)=>(Q>0||J>0)&&(!q||!q.shadowRoot);function AC(Q,J){let q=Q.touches,Y=q&&q.length?q[0]:Q,{offsetX:U,offsetY:K}=Y,M=!1,H,F;if(jC(U,K,Q.target))H=U,F=K;else{let w=J.getBoundingClientRect();H=Y.clientX-w.left,F=Y.clientY-w.top,M=!0}return{x:H,y:F,box:M}}function B2(Q,J){if("native"in Q)return Q;let{canvas:q,currentDevicePixelRatio:Y}=J,U=Xq(q),K=U.boxSizing==="border-box",M=M$(U,"padding"),H=M$(U,"border","width"),{x:F,y:w,box:T}=AC(Q,q),_=M.left+(T&&H.left),L=M.top+(T&&H.top),{width:P,height:O}=J;if(K)P-=M.width+H.width,O-=M.height+H.height;return{x:Math.round((F-_)/P*q.width/Y),y:Math.round((w-L)/O*q.height/Y)}}function SC(Q,J,q){let Y,U;if(J===void 0||q===void 0){let K=Q&&qq(Q);if(!K)J=Q.clientWidth,q=Q.clientHeight;else{let M=K.getBoundingClientRect(),H=Xq(K),F=M$(H,"border","width"),w=M$(H,"padding");J=M.width-w.width-F.width,q=M.height-w.height-F.height,Y=oJ(H.maxWidth,K,"clientWidth"),U=oJ(H.maxHeight,K,"clientHeight")}}return{width:J,height:q,maxWidth:Y||sJ,maxHeight:U||sJ}}var X2=(Q)=>Math.round(Q*10)/10;function xw(Q,J,q,Y){let U=Xq(Q),K=M$(U,"margin"),M=oJ(U.maxWidth,Q,"clientWidth")||sJ,H=oJ(U.maxHeight,Q,"clientHeight")||sJ,F=SC(Q,J,q),{width:w,height:T}=F;if(U.boxSizing==="content-box"){let L=M$(U,"border","width"),P=M$(U,"padding");w-=P.width+L.width,T-=P.height+L.height}if(w=Math.max(0,w-K.width),T=Math.max(0,Y?w/Y:T-K.height),w=X2(Math.min(w,M,F.maxWidth)),T=X2(Math.min(T,H,F.maxHeight)),w&&!T)T=X2(w/2);if((J!==void 0||q!==void 0)&&Y&&F.height&&T>F.height)T=F.height,w=X2(Math.floor(T*Y));return{width:w,height:T}}function XN(Q,J,q){let Y=J||1,U=X2(Q.height*Y),K=X2(Q.width*Y);Q.height=X2(Q.height),Q.width=X2(Q.width);let M=Q.canvas;if(M.style&&(q||!M.style.height&&!M.style.width))M.style.height=`${Q.height}px`,M.style.width=`${Q.width}px`;if(Q.currentDevicePixelRatio!==Y||M.height!==U||M.width!==K)return Q.currentDevicePixelRatio=Y,M.height=U,M.width=K,Q.ctx.setTransform(Y,0,0,Y,0,0),!0;return!1}var uw=function(){let Q=!1;try{let J={get passive(){return Q=!0,!1}};if(Jq())window.addEventListener("test",null,J),window.removeEventListener("test",null,J)}catch(J){}return Q}();function YN(Q,J){let q=OC(Q,J),Y=q&&q.match(/^(\d+)(\.\d+)?px$/);return Y?+Y[1]:void 0}function J2(Q,J,q,Y){return{x:Q.x+q*(J.x-Q.x),y:Q.y+q*(J.y-Q.y)}}function mw(Q,J,q,Y){return{x:Q.x+q*(J.x-Q.x),y:Y==="middle"?q<0.5?Q.y:J.y:Y==="after"?q<1?Q.y:J.y:q>0?J.y:Q.y}}function dw(Q,J,q,Y){let U={x:Q.cp2x,y:Q.cp2y},K={x:J.cp1x,y:J.cp1y},M=J2(Q,U,q),H=J2(U,K,q),F=J2(K,J,q),w=J2(M,H,q),T=J2(H,F,q);return J2(w,T,q)}var vC=function(Q,J){return{x(q){return Q+Q+J-q},setWidth(q){J=q},textAlign(q){if(q==="center")return q;return q==="right"?"left":"right"},xPlus(q,Y){return q-Y},leftForLtr(q,Y){return q-Y}}},kC=function(){return{x(Q){return Q},setWidth(Q){},textAlign(Q){return Q},xPlus(Q,J){return Q+J},leftForLtr(Q,J){return Q}}};function W$(Q,J,q){return Q?vC(J,q):kC()}function UN(Q,J){let q,Y;if(J==="ltr"||J==="rtl")q=Q.canvas.style,Y=[q.getPropertyValue("direction"),q.getPropertyPriority("direction")],q.setProperty("direction",J,"important"),Q.prevTextDirection=Y}function NN(Q,J){if(J!==void 0)delete Q.prevTextDirection,Q.canvas.style.setProperty("direction",J[0],J[1])}function pw(Q){if(Q==="angle")return{between:rU,compare:aP,normalize:k5};return{between:Z6,compare:(J,q)=>J-q,normalize:(J)=>J}}function Nw({start:Q,end:J,count:q,loop:Y,style:U}){return{start:Q%q,end:J%q,loop:Y&&(J-Q+1)%q===0,style:U}}function bC(Q,J,q){let{property:Y,start:U,end:K}=q,{between:M,normalize:H}=pw(Y),F=J.length,{start:w,end:T,loop:_}=Q,L,P;if(_){w+=F,T+=F;for(L=0,P=F;L<P;++L){if(!M(H(J[w%F][Y]),U,K))break;w--,T--}w%=F,T%=F}if(T<w)T+=F;return{start:w,end:T,loop:_,style:Q.style}}function KN(Q,J,q){if(!q)return[Q];let{property:Y,start:U,end:K}=q,M=J.length,{compare:H,between:F,normalize:w}=pw(Y),{start:T,end:_,loop:L,style:P}=bC(Q,J,q),O=[],A=!1,C=null,g,m,o,a=()=>F(U,o,g)&&H(U,o)!==0,s=()=>H(K,g)===0||F(K,o,g),Q0=()=>A||a(),p=()=>!A||s();for(let i=T,Y0=T;i<=_;++i){if(m=J[i%M],m.skip)continue;if(g=w(m[Y]),g===o)continue;if(A=F(g,U,K),C===null&&Q0())C=H(g,U)===0?i:Y0;if(C!==null&&p())O.push(Nw({start:C,end:i,loop:L,count:M,style:P})),C=null;Y0=i,o=g}if(C!==null)O.push(Nw({start:C,end:_,loop:L,count:M,style:P}));return O}function BN(Q,J){let q=[],Y=Q.segments;for(let U=0;U<Y.length;U++){let K=KN(Y[U],Q.points,J);if(K.length)q.push(...K)}return q}function fC(Q,J,q,Y){let U=0,K=J-1;if(q&&!Y)while(U<J&&!Q[U].skip)U++;while(U<J&&Q[U].skip)U++;if(U%=J,q)K+=U;while(K>U&&Q[K%J].skip)K--;return K%=J,{start:U,end:K}}function yC(Q,J,q,Y){let U=Q.length,K=[],M=J,H=Q[J],F;for(F=J+1;F<=q;++F){let w=Q[F%U];if(w.skip||w.stop){if(!H.skip)Y=!1,K.push({start:J%U,end:(F-1)%U,loop:Y}),J=M=w.stop?F:null}else if(M=F,H.skip)J=F;H=w}if(M!==null)K.push({start:J%U,end:M%U,loop:Y});return K}function cw(Q,J){let q=Q.points,Y=Q.options.spanGaps,U=q.length;if(!U)return[];let K=!!Q._loop,{start:M,end:H}=fC(q,U,K,Y);if(Y===!0)return Kw(Q,[{start:M,end:H,loop:K}],q,J);let F=H<M?H+U:H,w=!!Q._fullLoop&&M===0&&H===U-1;return Kw(Q,yC(q,M,F,w),q,J)}function Kw(Q,J,q,Y){if(!Y||!Y.setContext||!q)return J;return gC(Q,J,q,Y)}function gC(Q,J,q,Y){let U=Q._chart.getContext(),K=Bw(Q.options),{_datasetIndex:M,options:{spanGaps:H}}=Q,F=q.length,w=[],T=K,_=J[0].start,L=_;function P(O,A,C,g){let m=H?-1:1;if(O===A)return;O+=F;while(q[O%F].skip)O-=m;while(q[A%F].skip)A+=m;if(O%F!==A%F)w.push({start:O%F,end:A%F,loop:C,style:g}),T=g,_=A%F}for(let O of J){_=H?_:O.start;let A=q[_%F],C;for(L=_+1;L<=O.end;L++){let g=q[L%F];if(C=Bw(Y.setContext(Q6(U,{type:"segment",p0:A,p1:g,p0DataIndex:(L-1)%F,p1DataIndex:L%F,datasetIndex:M}))),hC(C,T))P(_,L-1,O.loop,T);A=g,T=C}if(_<L-1)P(_,L-1,O.loop,T)}return w}function Bw(Q){return{backgroundColor:Q.backgroundColor,borderCapStyle:Q.borderCapStyle,borderDash:Q.borderDash,borderDashOffset:Q.borderDashOffset,borderJoinStyle:Q.borderJoinStyle,borderWidth:Q.borderWidth,borderColor:Q.borderColor}}function hC(Q,J){if(!J)return!1;let q=[],Y=function(U,K){if(!iU(K))return K;if(!q.includes(K))q.push(K);return q.indexOf(K)};return JSON.stringify(Q,Y)!==JSON.stringify(J,Y)}function lJ(Q,J,q){return Q.options.clip?Q[q]:J[q]}function xC(Q,J){let{xScale:q,yScale:Y}=Q;if(q&&Y)return{left:lJ(q,J,"left"),right:lJ(q,J,"right"),top:lJ(Y,J,"top"),bottom:lJ(Y,J,"bottom")};return J}function MN(Q,J){let q=J._clip;if(q.disabled)return!1;let Y=xC(J,Q.chartArea);return{left:q.left===!1?0:Y.left-(q.left===!0?0:q.left),right:q.right===!1?Q.width:Y.right+(q.right===!0?0:q.right),top:q.top===!1?0:Y.top-(q.top===!0?0:q.top),bottom:q.bottom===!1?Q.height:Y.bottom+(q.bottom===!0?0:q.bottom)}}/*!
|
|
250
|
+
*/function R8(){}var WR=(()=>{let Q=0;return()=>Q++})();function t0(Q){return Q===null||Q===void 0}function z1(Q){if(Array.isArray&&Array.isArray(Q))return!0;let J=Object.prototype.toString.call(Q);if(J.slice(0,7)==="[object"&&J.slice(-6)==="Array]")return!0;return!1}function n0(Q){return Q!==null&&Object.prototype.toString.call(Q)==="[object Object]"}function O1(Q){return(typeof Q==="number"||Q instanceof Number)&&isFinite(+Q)}function g5(Q,J){return O1(Q)?Q:J}function h0(Q,J){return typeof Q>"u"?J:Q}var wR=(Q,J)=>typeof Q==="string"&&Q.endsWith("%")?parseFloat(Q)/100*J:+Q;function W1(Q,J,q){if(Q&&typeof Q.call==="function")return Q.apply(q,J)}function X1(Q,J,q,Y){let U,K,H;if(z1(Q))if(K=Q.length,Y)for(U=K-1;U>=0;U--)J.call(q,Q[U],U);else for(U=0;U<K;U++)J.call(q,Q[U],U);else if(n0(Q)){H=Object.keys(Q),K=H.length;for(U=0;U<K;U++)J.call(q,Q[H[U]],H[U])}}function xZ(Q,J){let q,Y,U,K;if(!Q||!J||Q.length!==J.length)return!1;for(q=0,Y=Q.length;q<Y;++q)if(U=Q[q],K=J[q],U.datasetIndex!==K.datasetIndex||U.index!==K.index)return!1;return!0}function rJ(Q){if(z1(Q))return Q.map(rJ);if(n0(Q)){let J=Object.create(null),q=Object.keys(Q),Y=q.length,U=0;for(;U<Y;++U)J[q[U]]=rJ(Q[q[U]]);return J}return Q}function RR(Q){return["__proto__","prototype","constructor"].indexOf(Q)===-1}function nP(Q,J,q,Y){if(!RR(Q))return;let U=J[Q],K=q[Q];if(n0(U)&&n0(K))y9(U,K,Y);else J[Q]=rJ(K)}function y9(Q,J,q){let Y=z1(J)?J:[J],U=Y.length;if(!n0(Q))return Q;q=q||{};let K=q.merger||nP,H;for(let M=0;M<U;++M){if(H=Y[M],!n0(H))continue;let F=Object.keys(H);for(let R=0,T=F.length;R<T;++R)K(F[R],Q,H,q)}return Q}function h9(Q,J){return y9(Q,J,{merger:oP})}function oP(Q,J,q){if(!RR(Q))return;let Y=J[Q],U=q[Q];if(n0(Y)&&n0(U))h9(Y,U);else if(!Object.prototype.hasOwnProperty.call(J,Q))J[Q]=rJ(U)}var qR={"":(Q)=>Q,x:(Q)=>Q.x,y:(Q)=>Q.y};function aP(Q){let J=Q.split("."),q=[],Y="";for(let U of J)if(Y+=U,Y.endsWith("\\"))Y=Y.slice(0,-1)+".";else q.push(Y),Y="";return q}function iP(Q){let J=aP(Q);return(q)=>{for(let Y of J){if(Y==="")break;q=q&&q[Y]}return q}}function F$(Q,J){return(qR[J]||(qR[J]=iP(J)))(Q)}function aJ(Q){return Q.charAt(0).toUpperCase()+Q.slice(1)}var x9=(Q)=>typeof Q<"u",t8=(Q)=>typeof Q==="function",cU=(Q,J)=>{if(Q.size!==J.size)return!1;for(let q of Q)if(!J.has(q))return!1;return!0};function TR(Q){return Q.type==="mouseup"||Q.type==="click"||Q.type==="contextmenu"}var b1=Math.PI,f5=2*b1,tP=f5+b1,sJ=Number.POSITIVE_INFINITY,eP=b1/180,b5=b1/2,B$=b1/4,XR=b1*2/3,e8=Math.log10,y4=Math.sign;function u9(Q,J,q){return Math.abs(Q-J)<q}function lU(Q){let J=Math.round(Q);Q=u9(Q,J,Q/1000)?J:Q;let q=Math.pow(10,Math.floor(e8(Q))),Y=Q/q;return(Y<=1?1:Y<=2?2:Y<=5?5:10)*q}function zR(Q){let J=[],q=Math.sqrt(Q),Y;for(Y=1;Y<q;Y++)if(Q%Y===0)J.push(Y),J.push(Q/Y);if(q===(q|0))J.push(q);return J.sort((U,K)=>U-K).pop(),J}function $C(Q){return typeof Q==="symbol"||typeof Q==="object"&&Q!==null&&!((Symbol.toPrimitive in Q)||("toString"in Q)||("valueOf"in Q))}function m9(Q){return!$C(Q)&&!isNaN(parseFloat(Q))&&isFinite(Q)}function _R(Q,J){let q=Math.round(Q);return q-J<=Q&&q+J>=Q}function rU(Q,J,q){let Y,U,K;for(Y=0,U=Q.length;Y<U;Y++)if(K=Q[Y][q],!isNaN(K))J.min=Math.min(J.min,K),J.max=Math.max(J.max,K)}function $6(Q){return Q*(b1/180)}function iJ(Q){return Q*(180/b1)}function sU(Q){if(!O1(Q))return;let J=1,q=0;while(Math.round(Q*J)/J!==Q)J*=10,q++;return q}function LR(Q,J){let q=J.x-Q.x,Y=J.y-Q.y,U=Math.sqrt(q*q+Y*Y),K=Math.atan2(Y,q);if(K<-0.5*b1)K+=f5;return{angle:K,distance:U}}function nJ(Q,J){return Math.sqrt(Math.pow(J.x-Q.x,2)+Math.pow(J.y-Q.y,2))}function ZC(Q,J){return(Q-J+tP)%f5-b1}function k5(Q){return(Q%f5+f5)%f5}function nU(Q,J,q,Y){let U=k5(Q),K=k5(J),H=k5(q),M=k5(K-U),F=k5(H-U),R=k5(U-K),T=k5(U-H);return U===K||U===H||Y&&K===H||M>F&&R<T}function y5(Q,J,q){return Math.max(J,Math.min(q,Q))}function VR(Q){return y5(Q,-32768,32767)}function Z6(Q,J,q,Y=0.000001){return Q>=Math.min(J,q)-Y&&Q<=Math.max(J,q)+Y}function tJ(Q,J,q){q=q||((H)=>Q[H]<J);let Y=Q.length-1,U=0,K;while(Y-U>1)if(K=U+Y>>1,q(K))U=K;else Y=K;return{lo:U,hi:Y}}var q2=(Q,J,q,Y)=>tJ(Q,q,Y?(U)=>{let K=Q[U][J];return K<q||K===q&&Q[U+1][J]===q}:(U)=>Q[U][J]<q),ER=(Q,J,q)=>tJ(Q,q,(Y)=>Q[Y][J]>=q);function PR(Q,J,q){let Y=0,U=Q.length;while(Y<U&&Q[Y]<J)Y++;while(U>Y&&Q[U-1]>q)U--;return Y>0||U<Q.length?Q.slice(Y,U):Q}var CR=["push","pop","shift","splice","unshift"];function IR(Q,J){if(Q._chartjs){Q._chartjs.listeners.push(J);return}Object.defineProperty(Q,"_chartjs",{configurable:!0,enumerable:!1,value:{listeners:[J]}}),CR.forEach((q)=>{let Y="_onData"+aJ(q),U=Q[q];Object.defineProperty(Q,q,{configurable:!0,enumerable:!1,value(...K){let H=U.apply(this,K);return Q._chartjs.listeners.forEach((M)=>{if(typeof M[Y]==="function")M[Y](...K)}),H}})})}function oU(Q,J){let q=Q._chartjs;if(!q)return;let Y=q.listeners,U=Y.indexOf(J);if(U!==-1)Y.splice(U,1);if(Y.length>0)return;CR.forEach((K)=>{delete Q[K]}),delete Q._chartjs}function aU(Q){let J=new Set(Q);if(J.size===Q.length)return Q;return Array.from(J)}var iU=function(){if(typeof window>"u")return function(Q){return Q()};return window.requestAnimationFrame}();function tU(Q,J){let q=[],Y=!1;return function(...U){if(q=U,!Y)Y=!0,iU.call(window,()=>{Y=!1,Q.apply(J,q)})}}function OR(Q,J){let q;return function(...Y){if(J)clearTimeout(q),q=setTimeout(Q,J,Y);else Q.apply(this,Y);return J}}var eJ=(Q)=>Q==="start"?"left":Q==="end"?"right":"center",q5=(Q,J,q)=>Q==="start"?J:Q==="end"?q:(J+q)/2,DR=(Q,J,q,Y)=>{return Q===(Y?"left":"right")?q:Q==="center"?(J+q)/2:J};function jR(Q,J,q){let Y=J.length,U=0,K=Y;if(Q._sorted){let{iScale:H,vScale:M,_parsed:F}=Q,R=Q.dataset?Q.dataset.options?Q.dataset.options.spanGaps:null:null,T=H.axis,{min:z,max:L,minDefined:P,maxDefined:I}=H.getUserBounds();if(P){if(U=Math.min(q2(F,T,z).lo,q?Y:q2(J,T,H.getPixelForValue(z)).lo),R){let A=F.slice(0,U+1).reverse().findIndex((C)=>!t0(C[M.axis]));U-=Math.max(0,A)}U=y5(U,0,Y-1)}if(I){let A=Math.max(q2(F,H.axis,L,!0).hi+1,q?0:q2(J,T,H.getPixelForValue(L),!0).hi+1);if(R){let C=F.slice(A-1).findIndex((g)=>!t0(g[M.axis]));A+=Math.max(0,C)}K=y5(A,U,Y)-U}else K=Y-U}return{start:U,count:K}}function AR(Q){let{xScale:J,yScale:q,_scaleRanges:Y}=Q,U={xmin:J.min,xmax:J.max,ymin:q.min,ymax:q.max};if(!Y)return Q._scaleRanges=U,!0;let K=Y.xmin!==J.min||Y.xmax!==J.max||Y.ymin!==q.min||Y.ymax!==q.max;return Object.assign(Y,U),K}var pJ=(Q)=>Q===0||Q===1,YR=(Q,J,q)=>-(Math.pow(2,10*(Q-=1))*Math.sin((Q-J)*f5/q)),UR=(Q,J,q)=>Math.pow(2,-10*Q)*Math.sin((Q-J)*f5/q)+1,f9={linear:(Q)=>Q,easeInQuad:(Q)=>Q*Q,easeOutQuad:(Q)=>-Q*(Q-2),easeInOutQuad:(Q)=>(Q/=0.5)<1?0.5*Q*Q:-0.5*(--Q*(Q-2)-1),easeInCubic:(Q)=>Q*Q*Q,easeOutCubic:(Q)=>(Q-=1)*Q*Q+1,easeInOutCubic:(Q)=>(Q/=0.5)<1?0.5*Q*Q*Q:0.5*((Q-=2)*Q*Q+2),easeInQuart:(Q)=>Q*Q*Q*Q,easeOutQuart:(Q)=>-((Q-=1)*Q*Q*Q-1),easeInOutQuart:(Q)=>(Q/=0.5)<1?0.5*Q*Q*Q*Q:-0.5*((Q-=2)*Q*Q*Q-2),easeInQuint:(Q)=>Q*Q*Q*Q*Q,easeOutQuint:(Q)=>(Q-=1)*Q*Q*Q*Q+1,easeInOutQuint:(Q)=>(Q/=0.5)<1?0.5*Q*Q*Q*Q*Q:0.5*((Q-=2)*Q*Q*Q*Q+2),easeInSine:(Q)=>-Math.cos(Q*b5)+1,easeOutSine:(Q)=>Math.sin(Q*b5),easeInOutSine:(Q)=>-0.5*(Math.cos(b1*Q)-1),easeInExpo:(Q)=>Q===0?0:Math.pow(2,10*(Q-1)),easeOutExpo:(Q)=>Q===1?1:-Math.pow(2,-10*Q)+1,easeInOutExpo:(Q)=>pJ(Q)?Q:Q<0.5?0.5*Math.pow(2,10*(Q*2-1)):0.5*(-Math.pow(2,-10*(Q*2-1))+2),easeInCirc:(Q)=>Q>=1?Q:-(Math.sqrt(1-Q*Q)-1),easeOutCirc:(Q)=>Math.sqrt(1-(Q-=1)*Q),easeInOutCirc:(Q)=>(Q/=0.5)<1?-0.5*(Math.sqrt(1-Q*Q)-1):0.5*(Math.sqrt(1-(Q-=2)*Q)+1),easeInElastic:(Q)=>pJ(Q)?Q:YR(Q,0.075,0.3),easeOutElastic:(Q)=>pJ(Q)?Q:UR(Q,0.075,0.3),easeInOutElastic(Q){return pJ(Q)?Q:Q<0.5?0.5*YR(Q*2,0.1125,0.45):0.5+0.5*UR(Q*2-1,0.1125,0.45)},easeInBack(Q){return Q*Q*(2.70158*Q-1.70158)},easeOutBack(Q){return(Q-=1)*Q*(2.70158*Q+1.70158)+1},easeInOutBack(Q){let J=1.70158;if((Q/=0.5)<1)return 0.5*(Q*Q*(((J*=1.525)+1)*Q-J));return 0.5*((Q-=2)*Q*(((J*=1.525)+1)*Q+J)+2)},easeInBounce:(Q)=>1-f9.easeOutBounce(1-Q),easeOutBounce(Q){if(Q<0.36363636363636365)return 7.5625*Q*Q;if(Q<0.7272727272727273)return 7.5625*(Q-=0.5454545454545454)*Q+0.75;if(Q<0.9090909090909091)return 7.5625*(Q-=0.8181818181818182)*Q+0.9375;return 7.5625*(Q-=0.9545454545454546)*Q+0.984375},easeInOutBounce:(Q)=>Q<0.5?f9.easeInBounce(Q*2)*0.5:f9.easeOutBounce(Q*2-1)*0.5+0.5};function eU(Q){if(Q&&typeof Q==="object"){let J=Q.toString();return J==="[object CanvasPattern]"||J==="[object CanvasGradient]"}return!1}function $N(Q){return eU(Q)?Q:new b9(Q)}function dU(Q){return eU(Q)?Q:new b9(Q).saturate(0.5).darken(0.1).hexString()}var QC=["x","y","borderWidth","radius","tension"],GC=["color","borderColor","backgroundColor"];function JC(Q){Q.set("animation",{delay:void 0,duration:1000,easing:"easeOutQuart",fn:void 0,from:void 0,loop:void 0,to:void 0,type:void 0}),Q.describe("animation",{_fallback:!1,_indexable:!1,_scriptable:(J)=>J!=="onProgress"&&J!=="onComplete"&&J!=="fn"}),Q.set("animations",{colors:{type:"color",properties:GC},numbers:{type:"number",properties:QC}}),Q.describe("animations",{_fallback:"animation"}),Q.set("transitions",{active:{animation:{duration:400}},resize:{animation:{duration:0}},show:{animations:{colors:{from:"transparent"},visible:{type:"boolean",duration:0}}},hide:{animations:{colors:{to:"transparent"},visible:{type:"boolean",easing:"linear",fn:(J)=>J|0}}}})}function qC(Q){Q.set("layout",{autoPadding:!0,padding:{top:0,right:0,bottom:0,left:0}})}var NR=new Map;function XC(Q,J){J=J||{};let q=Q+JSON.stringify(J),Y=NR.get(q);if(!Y)Y=new Intl.NumberFormat(Q,J),NR.set(q,Y);return Y}function $q(Q,J,q){return XC(J,q).format(Q)}var SR={values(Q){return z1(Q)?Q:""+Q},numeric(Q,J,q){if(Q===0)return"0";let Y=this.chart.options.locale,U,K=Q;if(q.length>1){let R=Math.max(Math.abs(q[0].value),Math.abs(q[q.length-1].value));if(R<0.0001||R>1000000000000000)U="scientific";K=YC(Q,q)}let H=e8(Math.abs(K)),M=isNaN(H)?1:Math.max(Math.min(-1*Math.floor(H),20),0),F={notation:U,minimumFractionDigits:M,maximumFractionDigits:M};return Object.assign(F,this.options.ticks.format),$q(Q,Y,F)},logarithmic(Q,J,q){if(Q===0)return"0";let Y=q[J].significand||Q/Math.pow(10,Math.floor(e8(Q)));if([1,2,3,5,10,15].includes(Y)||J>0.8*q.length)return SR.numeric.call(this,Q,J,q);return""}};function YC(Q,J){let q=J.length>3?J[2].value-J[1].value:J[1].value-J[0].value;if(Math.abs(q)>=1&&Q!==Math.floor(Q))q=Q-Math.floor(Q);return q}var uZ={formatters:SR};function UC(Q){Q.set("scale",{display:!0,offset:!1,reverse:!1,beginAtZero:!1,bounds:"ticks",clip:!0,grace:0,grid:{display:!0,lineWidth:1,drawOnChartArea:!0,drawTicks:!0,tickLength:8,tickWidth:(J,q)=>q.lineWidth,tickColor:(J,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:uZ.formatters.values,minor:{},major:{},align:"center",crossAlign:"near",showLabelBackdrop:!1,backdropColor:"rgba(255, 255, 255, 0.75)",backdropPadding:2}}),Q.route("scale.ticks","color","","color"),Q.route("scale.grid","color","","borderColor"),Q.route("scale.border","color","","borderColor"),Q.route("scale.title","color","","color"),Q.describe("scale",{_fallback:!1,_scriptable:(J)=>!J.startsWith("before")&&!J.startsWith("after")&&J!=="callback"&&J!=="parser",_indexable:(J)=>J!=="borderDash"&&J!=="tickBorderDash"&&J!=="dash"}),Q.describe("scales",{_fallback:"scale"}),Q.describe("scale.ticks",{_scriptable:(J)=>J!=="backdropPadding"&&J!=="callback",_indexable:(J)=>J!=="backdropPadding"})}var Y2=Object.create(null),Zq=Object.create(null);function gZ(Q,J){if(!J)return Q;let q=J.split(".");for(let Y=0,U=q.length;Y<U;++Y){let K=q[Y];Q=Q[K]||(Q[K]=Object.create(null))}return Q}function pU(Q,J,q){if(typeof J==="string")return y9(gZ(Q,J),q);return y9(gZ(Q,""),J)}class vR{constructor(Q,J){this.animation=void 0,this.backgroundColor="rgba(0,0,0,0.1)",this.borderColor="rgba(0,0,0,0.1)",this.color="#666",this.datasets={},this.devicePixelRatio=(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,Y)=>dU(Y.backgroundColor),this.hoverBorderColor=(q,Y)=>dU(Y.borderColor),this.hoverColor=(q,Y)=>dU(Y.color),this.indexAxis="x",this.interaction={mode:"nearest",intersect:!0,includeInvisible:!1},this.maintainAspectRatio=!0,this.onHover=null,this.onClick=null,this.parsing=!0,this.plugins={},this.responsive=!0,this.scale=void 0,this.scales={},this.showLine=!0,this.drawActiveElementsOnTop=!0,this.describe(Q),this.apply(J)}set(Q,J){return pU(this,Q,J)}get(Q){return gZ(this,Q)}describe(Q,J){return pU(Zq,Q,J)}override(Q,J){return pU(Y2,Q,J)}route(Q,J,q,Y){let U=gZ(this,Q),K=gZ(this,q),H="_"+J;Object.defineProperties(U,{[H]:{value:U[J],writable:!0},[J]:{enumerable:!0,get(){let M=this[H],F=K[Y];if(n0(M))return Object.assign({},F,M);return h0(M,F)},set(M){this[H]=M}}})}apply(Q){Q.forEach((J)=>J(this))}}var D1=new vR({_scriptable:(Q)=>!Q.startsWith("on"),_indexable:(Q)=>Q!=="events",hover:{_fallback:"interaction"},interaction:{_scriptable:!1,_indexable:!1}},[JC,qC,UC]);function NC(Q){if(!Q||t0(Q.size)||t0(Q.family))return null;return(Q.style?Q.style+" ":"")+(Q.weight?Q.weight+" ":"")+Q.size+"px "+Q.family}function hZ(Q,J,q,Y,U){let K=J[U];if(!K)K=J[U]=Q.measureText(U).width,q.push(U);if(K>Y)Y=K;return Y}function kR(Q,J,q,Y){Y=Y||{};let U=Y.data=Y.data||{},K=Y.garbageCollect=Y.garbageCollect||[];if(Y.font!==J)U=Y.data={},K=Y.garbageCollect=[],Y.font=J;Q.save(),Q.font=J;let H=0,M=q.length,F,R,T,z,L;for(F=0;F<M;F++)if(z=q[F],z!==void 0&&z!==null&&!z1(z))H=hZ(Q,U,K,H,z);else if(z1(z)){for(R=0,T=z.length;R<T;R++)if(L=z[R],L!==void 0&&L!==null&&!z1(L))H=hZ(Q,U,K,H,L)}Q.restore();let P=K.length/2;if(P>q.length){for(F=0;F<P;F++)delete U[K[F]];K.splice(0,P)}return H}function U2(Q,J,q){let Y=Q.currentDevicePixelRatio,U=q!==0?Math.max(q/2,0.5):0;return Math.round((J-U)*Y)/Y+U}function ZN(Q,J){if(!J&&!Q)return;J=J||Q.getContext("2d"),J.save(),J.resetTransform(),J.clearRect(0,0,Q.width,Q.height),J.restore()}function Qq(Q,J,q,Y){QN(Q,J,q,Y,null)}function QN(Q,J,q,Y,U){let K,H,M,F,R,T,z,L,P=J.pointStyle,I=J.rotation,A=J.radius,C=(I||0)*eP;if(P&&typeof P==="object"){if(K=P.toString(),K==="[object HTMLImageElement]"||K==="[object HTMLCanvasElement]"){Q.save(),Q.translate(q,Y),Q.rotate(C),Q.drawImage(P,-P.width/2,-P.height/2,P.width,P.height),Q.restore();return}}if(isNaN(A)||A<=0)return;switch(Q.beginPath(),P){default:if(U)Q.ellipse(q,Y,U/2,A,0,0,f5);else Q.arc(q,Y,A,0,f5);Q.closePath();break;case"triangle":T=U?U/2:A,Q.moveTo(q+Math.sin(C)*T,Y-Math.cos(C)*A),C+=XR,Q.lineTo(q+Math.sin(C)*T,Y-Math.cos(C)*A),C+=XR,Q.lineTo(q+Math.sin(C)*T,Y-Math.cos(C)*A),Q.closePath();break;case"rectRounded":R=A*0.516,F=A-R,H=Math.cos(C+B$)*F,z=Math.cos(C+B$)*(U?U/2-R:F),M=Math.sin(C+B$)*F,L=Math.sin(C+B$)*(U?U/2-R:F),Q.arc(q-z,Y-M,R,C-b1,C-b5),Q.arc(q+L,Y-H,R,C-b5,C),Q.arc(q+z,Y+M,R,C,C+b5),Q.arc(q-L,Y+H,R,C+b5,C+b1),Q.closePath();break;case"rect":if(!I){F=Math.SQRT1_2*A,T=U?U/2:F,Q.rect(q-T,Y-F,2*T,2*F);break}C+=B$;case"rectRot":z=Math.cos(C)*(U?U/2:A),H=Math.cos(C)*A,M=Math.sin(C)*A,L=Math.sin(C)*(U?U/2:A),Q.moveTo(q-z,Y-M),Q.lineTo(q+L,Y-H),Q.lineTo(q+z,Y+M),Q.lineTo(q-L,Y+H),Q.closePath();break;case"crossRot":C+=B$;case"cross":z=Math.cos(C)*(U?U/2:A),H=Math.cos(C)*A,M=Math.sin(C)*A,L=Math.sin(C)*(U?U/2:A),Q.moveTo(q-z,Y-M),Q.lineTo(q+z,Y+M),Q.moveTo(q+L,Y-H),Q.lineTo(q-L,Y+H);break;case"star":z=Math.cos(C)*(U?U/2:A),H=Math.cos(C)*A,M=Math.sin(C)*A,L=Math.sin(C)*(U?U/2:A),Q.moveTo(q-z,Y-M),Q.lineTo(q+z,Y+M),Q.moveTo(q+L,Y-H),Q.lineTo(q-L,Y+H),C+=B$,z=Math.cos(C)*(U?U/2:A),H=Math.cos(C)*A,M=Math.sin(C)*A,L=Math.sin(C)*(U?U/2:A),Q.moveTo(q-z,Y-M),Q.lineTo(q+z,Y+M),Q.moveTo(q+L,Y-H),Q.lineTo(q-L,Y+H);break;case"line":H=U?U/2:Math.cos(C)*A,M=Math.sin(C)*A,Q.moveTo(q-H,Y-M),Q.lineTo(q+H,Y+M);break;case"dash":Q.moveTo(q,Y),Q.lineTo(q+Math.cos(C)*(U?U/2:A),Y+Math.sin(C)*A);break;case!1:Q.closePath();break}if(Q.fill(),J.borderWidth>0)Q.stroke()}function w8(Q,J,q){return q=q||0.5,!J||Q&&Q.x>J.left-q&&Q.x<J.right+q&&Q.y>J.top-q&&Q.y<J.bottom+q}function mZ(Q,J){Q.save(),Q.beginPath(),Q.rect(J.left,J.top,J.right-J.left,J.bottom-J.top),Q.clip()}function dZ(Q){Q.restore()}function bR(Q,J,q,Y,U){if(!J)return Q.lineTo(q.x,q.y);if(U==="middle"){let K=(J.x+q.x)/2;Q.lineTo(K,J.y),Q.lineTo(K,q.y)}else if(U==="after"!==!!Y)Q.lineTo(J.x,q.y);else Q.lineTo(q.x,J.y);Q.lineTo(q.x,q.y)}function fR(Q,J,q,Y){if(!J)return Q.lineTo(q.x,q.y);Q.bezierCurveTo(Y?J.cp1x:J.cp2x,Y?J.cp1y:J.cp2y,Y?q.cp2x:q.cp1x,Y?q.cp2y:q.cp1y,q.x,q.y)}function KC(Q,J){if(J.translation)Q.translate(J.translation[0],J.translation[1]);if(!t0(J.rotation))Q.rotate(J.rotation);if(J.color)Q.fillStyle=J.color;if(J.textAlign)Q.textAlign=J.textAlign;if(J.textBaseline)Q.textBaseline=J.textBaseline}function BC(Q,J,q,Y,U){if(U.strikethrough||U.underline){let K=Q.measureText(Y),H=J-K.actualBoundingBoxLeft,M=J+K.actualBoundingBoxRight,F=q-K.actualBoundingBoxAscent,R=q+K.actualBoundingBoxDescent,T=U.strikethrough?(F+R)/2:R;Q.strokeStyle=Q.fillStyle,Q.beginPath(),Q.lineWidth=U.decorationWidth||2,Q.moveTo(H,T),Q.lineTo(M,T),Q.stroke()}}function HC(Q,J){let q=Q.fillStyle;Q.fillStyle=J.color,Q.fillRect(J.left,J.top,J.width,J.height),Q.fillStyle=q}function N2(Q,J,q,Y,U,K={}){let H=z1(J)?J:[J],M=K.strokeWidth>0&&K.strokeColor!=="",F,R;Q.save(),Q.font=U.string,KC(Q,K);for(F=0;F<H.length;++F){if(R=H[F],K.backdrop)HC(Q,K.backdrop);if(M){if(K.strokeColor)Q.strokeStyle=K.strokeColor;if(!t0(K.strokeWidth))Q.lineWidth=K.strokeWidth;Q.strokeText(R,q,Y,K.maxWidth)}Q.fillText(R,q,Y,K.maxWidth),BC(Q,q,Y,R,K),Y+=Number(U.lineHeight)}Q.restore()}function d9(Q,J){let{x:q,y:Y,w:U,h:K,radius:H}=J;Q.arc(q+H.topLeft,Y+H.topLeft,H.topLeft,1.5*b1,b1,!0),Q.lineTo(q,Y+K-H.bottomLeft),Q.arc(q+H.bottomLeft,Y+K-H.bottomLeft,H.bottomLeft,b1,b5,!0),Q.lineTo(q+U-H.bottomRight,Y+K),Q.arc(q+U-H.bottomRight,Y+K-H.bottomRight,H.bottomRight,b5,0,!0),Q.lineTo(q+U,Y+H.topRight),Q.arc(q+U-H.topRight,Y+H.topRight,H.topRight,0,-b5,!0),Q.lineTo(q+H.topLeft,Y)}var MC=/^(normal|(\d+(?:\.\d+)?)(px|em|%)?)$/,FC=/^(normal|italic|initial|inherit|unset|(oblique( -?[0-9]?[0-9]deg)?))$/;function WC(Q,J){let q=(""+Q).match(MC);if(!q||q[1]==="normal")return J*1.2;switch(Q=+q[2],q[3]){case"px":return Q;case"%":Q/=100;break}return J*Q}var wC=(Q)=>+Q||0;function GN(Q,J){let q={},Y=n0(J),U=Y?Object.keys(J):J,K=n0(Q)?Y?(H)=>h0(Q[H],Q[J[H]]):(H)=>Q[H]:()=>Q;for(let H of U)q[H]=wC(K(H));return q}function JN(Q){return GN(Q,{top:"y",right:"x",bottom:"y",left:"x"})}function K2(Q){return GN(Q,["topLeft","topRight","bottomLeft","bottomRight"])}function X5(Q){let J=JN(Q);return J.width=J.left+J.right,J.height=J.top+J.bottom,J}function p1(Q,J){Q=Q||{},J=J||D1.font;let q=h0(Q.size,J.size);if(typeof q==="string")q=parseInt(q,10);let Y=h0(Q.style,J.style);if(Y&&!(""+Y).match(FC))console.warn('Invalid font style specified: "'+Y+'"'),Y=void 0;let U={family:h0(Q.family,J.family),lineHeight:WC(h0(Q.lineHeight,J.lineHeight),q),size:q,style:Y,weight:h0(Q.weight,J.weight),string:""};return U.string=NC(U),U}function pZ(Q,J,q,Y){let U=!0,K,H,M;for(K=0,H=Q.length;K<H;++K){if(M=Q[K],M===void 0)continue;if(J!==void 0&&typeof M==="function")M=M(J),U=!1;if(q!==void 0&&z1(M))M=M[q%M.length],U=!1;if(M!==void 0){if(Y&&!U)Y.cacheable=!1;return M}}}function yR(Q,J,q){let{min:Y,max:U}=Q,K=wR(J,(U-Y)/2),H=(M,F)=>q&&M===0?0:M+F;return{min:H(Y,-Math.abs(K)),max:H(U,K)}}function Q6(Q,J){return Object.assign(Object.create(Q),J)}function Gq(Q,J=[""],q,Y,U=()=>Q[0]){let K=q||Q;if(typeof Y>"u")Y=xR("_fallback",Q);let H={[Symbol.toStringTag]:"Object",_cacheable:!0,_scopes:Q,_rootScopes:K,_fallback:Y,_getTarget:U,override:(M)=>Gq([M,...Q],J,K,Y)};return new Proxy(H,{deleteProperty(M,F){return delete M[F],delete M._keys,delete Q[0][F],!0},get(M,F){return gR(M,F,()=>PC(F,J,Q,M))},getOwnPropertyDescriptor(M,F){return Reflect.getOwnPropertyDescriptor(M._scopes[0],F)},getPrototypeOf(){return Reflect.getPrototypeOf(Q[0])},has(M,F){return BR(M).includes(F)},ownKeys(M){return BR(M)},set(M,F,R){let T=M._storage||(M._storage=U());return M[F]=T[F]=R,delete M._keys,!0}})}function M$(Q,J,q,Y){let U={_cacheable:!1,_proxy:Q,_context:J,_subProxy:q,_stack:new Set,_descriptors:qN(Q,Y),setContext:(K)=>M$(Q,K,q,Y),override:(K)=>M$(Q.override(K),J,q,Y)};return new Proxy(U,{deleteProperty(K,H){return delete K[H],delete Q[H],!0},get(K,H,M){return gR(K,H,()=>TC(K,H,M))},getOwnPropertyDescriptor(K,H){return K._descriptors.allKeys?Reflect.has(Q,H)?{enumerable:!0,configurable:!0}:void 0:Reflect.getOwnPropertyDescriptor(Q,H)},getPrototypeOf(){return Reflect.getPrototypeOf(Q)},has(K,H){return Reflect.has(Q,H)},ownKeys(){return Reflect.ownKeys(Q)},set(K,H,M){return Q[H]=M,delete K[H],!0}})}function qN(Q,J={scriptable:!0,indexable:!0}){let{_scriptable:q=J.scriptable,_indexable:Y=J.indexable,_allKeys:U=J.allKeys}=Q;return{allKeys:U,scriptable:q,indexable:Y,isScriptable:t8(q)?q:()=>q,isIndexable:t8(Y)?Y:()=>Y}}var RC=(Q,J)=>Q?Q+aJ(J):J,XN=(Q,J)=>n0(J)&&Q!=="adapters"&&(Object.getPrototypeOf(J)===null||J.constructor===Object);function gR(Q,J,q){if(Object.prototype.hasOwnProperty.call(Q,J)||J==="constructor")return Q[J];let Y=q();return Q[J]=Y,Y}function TC(Q,J,q){let{_proxy:Y,_context:U,_subProxy:K,_descriptors:H}=Q,M=Y[J];if(t8(M)&&H.isScriptable(J))M=zC(J,M,Q,q);if(z1(M)&&M.length)M=_C(J,M,Q,H.isIndexable);if(XN(J,M))M=M$(M,U,K&&K[J],H);return M}function zC(Q,J,q,Y){let{_proxy:U,_context:K,_subProxy:H,_stack:M}=q;if(M.has(Q))throw Error("Recursion detected: "+Array.from(M).join("->")+"->"+Q);M.add(Q);let F=J(K,H||Y);if(M.delete(Q),XN(Q,F))F=YN(U._scopes,U,Q,F);return F}function _C(Q,J,q,Y){let{_proxy:U,_context:K,_subProxy:H,_descriptors:M}=q;if(typeof K.index<"u"&&Y(Q))return J[K.index%J.length];else if(n0(J[0])){let F=J,R=U._scopes.filter((T)=>T!==F);J=[];for(let T of F){let z=YN(R,U,Q,T);J.push(M$(z,K,H&&H[Q],M))}}return J}function hR(Q,J,q){return t8(Q)?Q(J,q):Q}var LC=(Q,J)=>Q===!0?J:typeof Q==="string"?F$(J,Q):void 0;function VC(Q,J,q,Y,U){for(let K of J){let H=LC(q,K);if(H){Q.add(H);let M=hR(H._fallback,q,U);if(typeof M<"u"&&M!==q&&M!==Y)return M}else if(H===!1&&typeof Y<"u"&&q!==Y)return null}return!1}function YN(Q,J,q,Y){let U=J._rootScopes,K=hR(J._fallback,q,Y),H=[...Q,...U],M=new Set;M.add(Y);let F=KR(M,H,q,K||q,Y);if(F===null)return!1;if(typeof K<"u"&&K!==q){if(F=KR(M,H,K,F,Y),F===null)return!1}return Gq(Array.from(M),[""],U,K,()=>EC(J,q,Y))}function KR(Q,J,q,Y,U){while(q)q=VC(Q,J,q,Y,U);return q}function EC(Q,J,q){let Y=Q._getTarget();if(!(J in Y))Y[J]={};let U=Y[J];if(z1(U)&&n0(q))return q;return U||{}}function PC(Q,J,q,Y){let U;for(let K of J)if(U=xR(RC(K,Q),q),typeof U<"u")return XN(Q,U)?YN(q,Y,Q,U):U}function xR(Q,J){for(let q of J){if(!q)continue;let Y=q[Q];if(typeof Y<"u")return Y}}function BR(Q){let J=Q._keys;if(!J)J=Q._keys=CC(Q._scopes);return J}function CC(Q){let J=new Set;for(let q of Q)for(let Y of Object.keys(q).filter((U)=>!U.startsWith("_")))J.add(Y);return Array.from(J)}var IC=Number.EPSILON||0.00000000000001,g9=(Q,J)=>J<Q.length&&!Q[J].skip&&Q[J],uR=(Q)=>Q==="x"?"y":"x";function OC(Q,J,q,Y){let U=Q.skip?J:Q,K=J,H=q.skip?J:q,M=nJ(K,U),F=nJ(H,K),R=M/(M+F),T=F/(M+F);R=isNaN(R)?0:R,T=isNaN(T)?0:T;let z=Y*R,L=Y*T;return{previous:{x:K.x-z*(H.x-U.x),y:K.y-z*(H.y-U.y)},next:{x:K.x+L*(H.x-U.x),y:K.y+L*(H.y-U.y)}}}function DC(Q,J,q){let Y=Q.length,U,K,H,M,F,R=g9(Q,0);for(let T=0;T<Y-1;++T){if(F=R,R=g9(Q,T+1),!F||!R)continue;if(u9(J[T],0,IC)){q[T]=q[T+1]=0;continue}if(U=q[T]/J[T],K=q[T+1]/J[T],M=Math.pow(U,2)+Math.pow(K,2),M<=9)continue;H=3/Math.sqrt(M),q[T]=U*H*J[T],q[T+1]=K*H*J[T]}}function jC(Q,J,q="x"){let Y=uR(q),U=Q.length,K,H,M,F=g9(Q,0);for(let R=0;R<U;++R){if(H=M,M=F,F=g9(Q,R+1),!M)continue;let T=M[q],z=M[Y];if(H)K=(T-H[q])/3,M[`cp1${q}`]=T-K,M[`cp1${Y}`]=z-K*J[R];if(F)K=(F[q]-T)/3,M[`cp2${q}`]=T+K,M[`cp2${Y}`]=z+K*J[R]}}function AC(Q,J="x"){let q=uR(J),Y=Q.length,U=Array(Y).fill(0),K=Array(Y),H,M,F,R=g9(Q,0);for(H=0;H<Y;++H){if(M=F,F=R,R=g9(Q,H+1),!F)continue;if(R){let T=R[J]-F[J];U[H]=T!==0?(R[q]-F[q])/T:0}K[H]=!M?U[H]:!R?U[H-1]:y4(U[H-1])!==y4(U[H])?0:(U[H-1]+U[H])/2}DC(Q,U,K),jC(Q,K,J)}function cJ(Q,J,q){return Math.max(Math.min(Q,q),J)}function SC(Q,J){let q,Y,U,K,H,M=w8(Q[0],J);for(q=0,Y=Q.length;q<Y;++q){if(H=K,K=M,M=q<Y-1&&w8(Q[q+1],J),!K)continue;if(U=Q[q],H)U.cp1x=cJ(U.cp1x,J.left,J.right),U.cp1y=cJ(U.cp1y,J.top,J.bottom);if(M)U.cp2x=cJ(U.cp2x,J.left,J.right),U.cp2y=cJ(U.cp2y,J.top,J.bottom)}}function mR(Q,J,q,Y,U){let K,H,M,F;if(J.spanGaps)Q=Q.filter((R)=>!R.skip);if(J.cubicInterpolationMode==="monotone")AC(Q,U);else{let R=Y?Q[Q.length-1]:Q[0];for(K=0,H=Q.length;K<H;++K)M=Q[K],F=OC(R,M,Q[Math.min(K+1,H-(Y?0:1))%H],J.tension),M.cp1x=F.previous.x,M.cp1y=F.previous.y,M.cp2x=F.next.x,M.cp2y=F.next.y,R=M}if(J.capBezierPoints)SC(Q,q)}function Jq(){return typeof window<"u"&&typeof document<"u"}function qq(Q){let J=Q.parentNode;if(J&&J.toString()==="[object ShadowRoot]")J=J.host;return J}function oJ(Q,J,q){let Y;if(typeof Q==="string"){if(Y=parseInt(Q,10),Q.indexOf("%")!==-1)Y=Y/100*J.parentNode[q]}else Y=Q;return Y}var Xq=(Q)=>Q.ownerDocument.defaultView.getComputedStyle(Q,null);function vC(Q,J){return Xq(Q).getPropertyValue(J)}var kC=["top","right","bottom","left"];function H$(Q,J,q){let Y={};q=q?"-"+q:"";for(let U=0;U<4;U++){let K=kC[U];Y[K]=parseFloat(Q[J+"-"+K+q])||0}return Y.width=Y.left+Y.right,Y.height=Y.top+Y.bottom,Y}var bC=(Q,J,q)=>(Q>0||J>0)&&(!q||!q.shadowRoot);function fC(Q,J){let q=Q.touches,Y=q&&q.length?q[0]:Q,{offsetX:U,offsetY:K}=Y,H=!1,M,F;if(bC(U,K,Q.target))M=U,F=K;else{let R=J.getBoundingClientRect();M=Y.clientX-R.left,F=Y.clientY-R.top,H=!0}return{x:M,y:F,box:H}}function B2(Q,J){if("native"in Q)return Q;let{canvas:q,currentDevicePixelRatio:Y}=J,U=Xq(q),K=U.boxSizing==="border-box",H=H$(U,"padding"),M=H$(U,"border","width"),{x:F,y:R,box:T}=fC(Q,q),z=H.left+(T&&M.left),L=H.top+(T&&M.top),{width:P,height:I}=J;if(K)P-=H.width+M.width,I-=H.height+M.height;return{x:Math.round((F-z)/P*q.width/Y),y:Math.round((R-L)/I*q.height/Y)}}function yC(Q,J,q){let Y,U;if(J===void 0||q===void 0){let K=Q&&qq(Q);if(!K)J=Q.clientWidth,q=Q.clientHeight;else{let H=K.getBoundingClientRect(),M=Xq(K),F=H$(M,"border","width"),R=H$(M,"padding");J=H.width-R.width-F.width,q=H.height-R.height-F.height,Y=oJ(M.maxWidth,K,"clientWidth"),U=oJ(M.maxHeight,K,"clientHeight")}}return{width:J,height:q,maxWidth:Y||sJ,maxHeight:U||sJ}}var X2=(Q)=>Math.round(Q*10)/10;function dR(Q,J,q,Y){let U=Xq(Q),K=H$(U,"margin"),H=oJ(U.maxWidth,Q,"clientWidth")||sJ,M=oJ(U.maxHeight,Q,"clientHeight")||sJ,F=yC(Q,J,q),{width:R,height:T}=F;if(U.boxSizing==="content-box"){let L=H$(U,"border","width"),P=H$(U,"padding");R-=P.width+L.width,T-=P.height+L.height}if(R=Math.max(0,R-K.width),T=Math.max(0,Y?R/Y:T-K.height),R=X2(Math.min(R,H,F.maxWidth)),T=X2(Math.min(T,M,F.maxHeight)),R&&!T)T=X2(R/2);if((J!==void 0||q!==void 0)&&Y&&F.height&&T>F.height)T=F.height,R=X2(Math.floor(T*Y));return{width:R,height:T}}function UN(Q,J,q){let Y=J||1,U=X2(Q.height*Y),K=X2(Q.width*Y);Q.height=X2(Q.height),Q.width=X2(Q.width);let H=Q.canvas;if(H.style&&(q||!H.style.height&&!H.style.width))H.style.height=`${Q.height}px`,H.style.width=`${Q.width}px`;if(Q.currentDevicePixelRatio!==Y||H.height!==U||H.width!==K)return Q.currentDevicePixelRatio=Y,H.height=U,H.width=K,Q.ctx.setTransform(Y,0,0,Y,0,0),!0;return!1}var pR=function(){let Q=!1;try{let J={get passive(){return Q=!0,!1}};if(Jq())window.addEventListener("test",null,J),window.removeEventListener("test",null,J)}catch(J){}return Q}();function NN(Q,J){let q=vC(Q,J),Y=q&&q.match(/^(\d+)(\.\d+)?px$/);return Y?+Y[1]:void 0}function J2(Q,J,q,Y){return{x:Q.x+q*(J.x-Q.x),y:Q.y+q*(J.y-Q.y)}}function cR(Q,J,q,Y){return{x:Q.x+q*(J.x-Q.x),y:Y==="middle"?q<0.5?Q.y:J.y:Y==="after"?q<1?Q.y:J.y:q>0?J.y:Q.y}}function lR(Q,J,q,Y){let U={x:Q.cp2x,y:Q.cp2y},K={x:J.cp1x,y:J.cp1y},H=J2(Q,U,q),M=J2(U,K,q),F=J2(K,J,q),R=J2(H,M,q),T=J2(M,F,q);return J2(R,T,q)}var gC=function(Q,J){return{x(q){return Q+Q+J-q},setWidth(q){J=q},textAlign(q){if(q==="center")return q;return q==="right"?"left":"right"},xPlus(q,Y){return q-Y},leftForLtr(q,Y){return q-Y}}},hC=function(){return{x(Q){return Q},setWidth(Q){},textAlign(Q){return Q},xPlus(Q,J){return Q+J},leftForLtr(Q,J){return Q}}};function W$(Q,J,q){return Q?gC(J,q):hC()}function KN(Q,J){let q,Y;if(J==="ltr"||J==="rtl")q=Q.canvas.style,Y=[q.getPropertyValue("direction"),q.getPropertyPriority("direction")],q.setProperty("direction",J,"important"),Q.prevTextDirection=Y}function BN(Q,J){if(J!==void 0)delete Q.prevTextDirection,Q.canvas.style.setProperty("direction",J[0],J[1])}function rR(Q){if(Q==="angle")return{between:nU,compare:ZC,normalize:k5};return{between:Z6,compare:(J,q)=>J-q,normalize:(J)=>J}}function HR({start:Q,end:J,count:q,loop:Y,style:U}){return{start:Q%q,end:J%q,loop:Y&&(J-Q+1)%q===0,style:U}}function xC(Q,J,q){let{property:Y,start:U,end:K}=q,{between:H,normalize:M}=rR(Y),F=J.length,{start:R,end:T,loop:z}=Q,L,P;if(z){R+=F,T+=F;for(L=0,P=F;L<P;++L){if(!H(M(J[R%F][Y]),U,K))break;R--,T--}R%=F,T%=F}if(T<R)T+=F;return{start:R,end:T,loop:z,style:Q.style}}function HN(Q,J,q){if(!q)return[Q];let{property:Y,start:U,end:K}=q,H=J.length,{compare:M,between:F,normalize:R}=rR(Y),{start:T,end:z,loop:L,style:P}=xC(Q,J,q),I=[],A=!1,C=null,g,m,o,a=()=>F(U,o,g)&&M(U,o)!==0,s=()=>M(K,g)===0||F(K,o,g),Q0=()=>A||a(),p=()=>!A||s();for(let i=T,Y0=T;i<=z;++i){if(m=J[i%H],m.skip)continue;if(g=R(m[Y]),g===o)continue;if(A=F(g,U,K),C===null&&Q0())C=M(g,U)===0?i:Y0;if(C!==null&&p())I.push(HR({start:C,end:i,loop:L,count:H,style:P})),C=null;Y0=i,o=g}if(C!==null)I.push(HR({start:C,end:z,loop:L,count:H,style:P}));return I}function MN(Q,J){let q=[],Y=Q.segments;for(let U=0;U<Y.length;U++){let K=HN(Y[U],Q.points,J);if(K.length)q.push(...K)}return q}function uC(Q,J,q,Y){let U=0,K=J-1;if(q&&!Y)while(U<J&&!Q[U].skip)U++;while(U<J&&Q[U].skip)U++;if(U%=J,q)K+=U;while(K>U&&Q[K%J].skip)K--;return K%=J,{start:U,end:K}}function mC(Q,J,q,Y){let U=Q.length,K=[],H=J,M=Q[J],F;for(F=J+1;F<=q;++F){let R=Q[F%U];if(R.skip||R.stop){if(!M.skip)Y=!1,K.push({start:J%U,end:(F-1)%U,loop:Y}),J=H=R.stop?F:null}else if(H=F,M.skip)J=F;M=R}if(H!==null)K.push({start:J%U,end:H%U,loop:Y});return K}function sR(Q,J){let q=Q.points,Y=Q.options.spanGaps,U=q.length;if(!U)return[];let K=!!Q._loop,{start:H,end:M}=uC(q,U,K,Y);if(Y===!0)return MR(Q,[{start:H,end:M,loop:K}],q,J);let F=M<H?M+U:M,R=!!Q._fullLoop&&H===0&&M===U-1;return MR(Q,mC(q,H,F,R),q,J)}function MR(Q,J,q,Y){if(!Y||!Y.setContext||!q)return J;return dC(Q,J,q,Y)}function dC(Q,J,q,Y){let U=Q._chart.getContext(),K=FR(Q.options),{_datasetIndex:H,options:{spanGaps:M}}=Q,F=q.length,R=[],T=K,z=J[0].start,L=z;function P(I,A,C,g){let m=M?-1:1;if(I===A)return;I+=F;while(q[I%F].skip)I-=m;while(q[A%F].skip)A+=m;if(I%F!==A%F)R.push({start:I%F,end:A%F,loop:C,style:g}),T=g,z=A%F}for(let I of J){z=M?z:I.start;let A=q[z%F],C;for(L=z+1;L<=I.end;L++){let g=q[L%F];if(C=FR(Y.setContext(Q6(U,{type:"segment",p0:A,p1:g,p0DataIndex:(L-1)%F,p1DataIndex:L%F,datasetIndex:H}))),pC(C,T))P(z,L-1,I.loop,T);A=g,T=C}if(z<L-1)P(z,L-1,I.loop,T)}return R}function FR(Q){return{backgroundColor:Q.backgroundColor,borderCapStyle:Q.borderCapStyle,borderDash:Q.borderDash,borderDashOffset:Q.borderDashOffset,borderJoinStyle:Q.borderJoinStyle,borderWidth:Q.borderWidth,borderColor:Q.borderColor}}function pC(Q,J){if(!J)return!1;let q=[],Y=function(U,K){if(!eU(K))return K;if(!q.includes(K))q.push(K);return q.indexOf(K)};return JSON.stringify(Q,Y)!==JSON.stringify(J,Y)}function lJ(Q,J,q){return Q.options.clip?Q[q]:J[q]}function cC(Q,J){let{xScale:q,yScale:Y}=Q;if(q&&Y)return{left:lJ(q,J,"left"),right:lJ(q,J,"right"),top:lJ(Y,J,"top"),bottom:lJ(Y,J,"bottom")};return J}function FN(Q,J){let q=J._clip;if(q.disabled)return!1;let Y=cC(J,Q.chartArea);return{left:q.left===!1?0:Y.left-(q.left===!0?0:q.left),right:q.right===!1?Q.width:Y.right+(q.right===!0?0:q.right),top:q.top===!1?0:Y.top-(q.top===!0?0:q.top),bottom:q.bottom===!1?Q.height:Y.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 mT{constructor(){this._request=null,this._charts=new Map,this._running=!1,this._lastDate=void 0}_notify(Q,J,q,Y){let U=J.listeners[Y],K=J.duration;U.forEach((M)=>M({chart:Q,initial:J.initial,numSteps:K,currentStep:Math.min(q-J.start,K)}))}_refresh(){if(this._request)return;this._running=!0,this._request=oU.call(window,()=>{if(this._update(),this._request=null,this._running)this._refresh()})}_update(Q=Date.now()){let J=0;if(this._charts.forEach((q,Y)=>{if(!q.running||!q.items.length)return;let U=q.items,K=U.length-1,M=!1,H;for(;K>=0;--K)if(H=U[K],H._active){if(H._total>q.duration)q.duration=H._total;H.tick(Q),M=!0}else U[K]=U[U.length-1],U.pop();if(M)Y.draw(),this._notify(Y,q,Q,"progress");if(!U.length)q.running=!1,this._notify(Y,q,Q,"complete"),q.initial=!1;J+=U.length}),this._lastDate=Q,J===0)this._running=!1}_getAnims(Q){let J=this._charts,q=J.get(Q);if(!q)q={running:!1,initial:!0,items:[],listeners:{complete:[],progress:[]}},J.set(Q,q);return q}listen(Q,J,q){this._getAnims(Q).listeners[J].push(q)}add(Q,J){if(!J||!J.length)return;this._getAnims(Q).items.push(...J)}has(Q){return this._getAnims(Q).items.length>0}start(Q){let J=this._charts.get(Q);if(!J)return;J.running=!0,J.start=Date.now(),J.duration=J.items.reduce((q,Y)=>Math.max(q,Y._duration),0),this._refresh()}running(Q){if(!this._running)return!1;let J=this._charts.get(Q);if(!J||!J.running||!J.items.length)return!1;return!0}stop(Q){let J=this._charts.get(Q);if(!J||!J.items.length)return;let q=J.items,Y=q.length-1;for(;Y>=0;--Y)q[Y].cancel();J.items=[],this._notify(Q,J,Date.now(),"complete")}remove(Q){return this._charts.delete(Q)}}var G6=new mT,lw="transparent",uC={boolean(Q,J,q){return q>0.5?J:Q},color(Q,J,q){let Y=tU(Q||lw),U=Y.valid&&tU(J||lw);return U&&U.valid?U.mix(Y,q).hexString():J},number(Q,J,q){return Q+(J-Q)*q}};class dT{constructor(Q,J,q,Y){let U=J[q];Y=pZ([Q.to,Y,U,Q.from]);let K=pZ([Q.from,U,Y]);this._active=!0,this._fn=Q.fn||uC[Q.type||typeof K],this._easing=f9[Q.easing]||f9.linear,this._start=Math.floor(Date.now()+(Q.delay||0)),this._duration=this._total=Math.floor(Q.duration),this._loop=!!Q.loop,this._target=J,this._prop=q,this._from=K,this._to=Y,this._promises=void 0}active(){return this._active}update(Q,J,q){if(this._active){this._notify(!1);let Y=this._target[this._prop],U=q-this._start,K=this._duration-U;this._start=q,this._duration=Math.floor(Math.max(K,Q.duration)),this._total+=U,this._loop=!!Q.loop,this._to=pZ([Q.to,J,Y,Q.from]),this._from=pZ([Q.from,Y,J])}}cancel(){if(this._active)this.tick(Date.now()),this._active=!1,this._notify(!1)}tick(Q){let J=Q-this._start,q=this._duration,Y=this._prop,U=this._from,K=this._loop,M=this._to,H;if(this._active=U!==M&&(K||J<q),!this._active){this._target[Y]=M,this._notify(!0);return}if(J<0){this._target[Y]=U;return}H=J/q%2,H=K&&H>1?2-H:H,H=this._easing(Math.min(1,Math.max(0,H))),this._target[Y]=this._fn(U,M,H)}wait(){let Q=this._promises||(this._promises=[]);return new Promise((J,q)=>{Q.push({res:J,rej:q})})}_notify(Q){let J=Q?"res":"rej",q=this._promises||[];for(let Y=0;Y<q.length;Y++)q[Y][J]()}}class vN{constructor(Q,J){this._chart=Q,this._properties=new Map,this.configure(J)}configure(Q){if(!n0(Q))return;let J=Object.keys(D1.animation),q=this._properties;Object.getOwnPropertyNames(Q).forEach((Y)=>{let U=Q[Y];if(!n0(U))return;let K={};for(let M of J)K[M]=U[M];(_1(U.properties)&&U.properties||[Y]).forEach((M)=>{if(M===Y||!q.has(M))q.set(M,K)})})}_animateOptions(Q,J){let q=J.options,Y=dC(Q,q);if(!Y)return[];let U=this._createAnimations(Y,q);if(q.$shared)mC(Q.options.$animations,q).then(()=>{Q.options=q},()=>{});return U}_createAnimations(Q,J){let q=this._properties,Y=[],U=Q.$animations||(Q.$animations={}),K=Object.keys(J),M=Date.now(),H;for(H=K.length-1;H>=0;--H){let F=K[H];if(F.charAt(0)==="$")continue;if(F==="options"){Y.push(...this._animateOptions(Q,J));continue}let w=J[F],T=U[F],_=q.get(F);if(T)if(_&&T.active()){T.update(_,w,M);continue}else T.cancel();if(!_||!_.duration){Q[F]=w;continue}U[F]=T=new dT(_,Q,F,w),Y.push(T)}return Y}update(Q,J){if(this._properties.size===0){Object.assign(Q,J);return}let q=this._createAnimations(Q,J);if(q.length)return G6.add(this._chart,q),!0}}function mC(Q,J){let q=[],Y=Object.keys(J);for(let U=0;U<Y.length;U++){let K=Q[Y[U]];if(K&&K.active())q.push(K.wait())}return Promise.all(q)}function dC(Q,J){if(!J)return;let q=Q.options;if(!q){Q.options=J;return}if(q.$shared)Q.options=q=Object.assign({},q,{$shared:!1,$animations:{}});return q}function rw(Q,J){let q=Q&&Q.options||{},Y=q.reverse,U=q.min===void 0?J:0,K=q.max===void 0?J:0;return{start:Y?K:U,end:Y?U:K}}function pC(Q,J,q){if(q===!1)return!1;let Y=rw(Q,q),U=rw(J,q);return{top:U.end,right:Y.end,bottom:U.start,left:Y.start}}function cC(Q){let J,q,Y,U;if(n0(Q))J=Q.top,q=Q.right,Y=Q.bottom,U=Q.left;else J=q=Y=U=Q;return{top:J,right:q,bottom:Y,left:U,disabled:Q===!1}}function pT(Q,J){let q=[],Y=Q._getSortedDatasetMetas(J),U,K;for(U=0,K=Y.length;U<K;++U)q.push(Y[U].index);return q}function sw(Q,J,q,Y={}){let U=Q.keys,K=Y.mode==="single",M,H,F,w;if(J===null)return;let T=!1;for(M=0,H=U.length;M<H;++M){if(F=+U[M],F===q){if(T=!0,Y.all)continue;break}if(w=Q.values[F],O1(w)&&(K||J===0||y4(J)===y4(w)))J+=w}if(!T&&!Y.all)return 0;return J}function lC(Q,J){let{iScale:q,vScale:Y}=J,U=q.axis==="x"?"x":"y",K=Y.axis==="x"?"x":"y",M=Object.keys(Q),H=Array(M.length),F,w,T;for(F=0,w=M.length;F<w;++F)T=M[F],H[F]={[U]:T,[K]:Q[T]};return H}function HN(Q,J){let q=Q&&Q.options.stacked;return q||q===void 0&&J.stack!==void 0}function rC(Q,J,q){return`${Q.id}.${J.id}.${q.stack||q.type}`}function sC(Q){let{min:J,max:q,minDefined:Y,maxDefined:U}=Q.getUserBounds();return{min:Y?J:Number.NEGATIVE_INFINITY,max:U?q:Number.POSITIVE_INFINITY}}function nC(Q,J,q){let Y=Q[J]||(Q[J]={});return Y[q]||(Y[q]={})}function nw(Q,J,q,Y){for(let U of J.getMatchingVisibleMetas(Y).reverse()){let K=Q[U.index];if(q&&K>0||!q&&K<0)return U.index}return null}function ow(Q,J){let{chart:q,_cachedMeta:Y}=Q,U=q._stacks||(q._stacks={}),{iScale:K,vScale:M,index:H}=Y,F=K.axis,w=M.axis,T=rC(K,M,Y),_=J.length,L;for(let P=0;P<_;++P){let O=J[P],{[F]:A,[w]:C}=O,g=O._stacks||(O._stacks={});L=g[w]=nC(U,T,A),L[H]=C,L._top=nw(L,M,!0,Y.type),L._bottom=nw(L,M,!1,Y.type);let m=L._visualValues||(L._visualValues={});m[H]=C}}function FN(Q,J){let q=Q.scales;return Object.keys(q).filter((Y)=>q[Y].axis===J).shift()}function oC(Q,J){return Q6(Q,{active:!1,dataset:void 0,datasetIndex:J,index:J,mode:"default",type:"dataset"})}function aC(Q,J,q){return Q6(Q,{active:!1,dataIndex:J,parsed:void 0,raw:void 0,element:q,index:J,mode:"default",type:"data"})}function cZ(Q,J){let q=Q.controller.index,Y=Q.vScale&&Q.vScale.axis;if(!Y)return;J=J||Q._parsed;for(let U of J){let K=U._stacks;if(!K||K[Y]===void 0||K[Y][q]===void 0)return;if(delete K[Y][q],K[Y]._visualValues!==void 0&&K[Y]._visualValues[q]!==void 0)delete K[Y]._visualValues[q]}}var WN=(Q)=>Q==="reset"||Q==="none",aw=(Q,J)=>J?Q:Object.assign({},Q),iC=(Q,J,q)=>Q&&!J.hidden&&J._stacked&&{keys:pT(q,!0),values:null};class Wq{static defaults={};static datasetElementType=null;static dataElementType=null;constructor(Q,J){this.chart=Q,this._ctx=Q.ctx,this.index=J,this._cachedDataOpts={},this._cachedMeta=this.getMeta(),this._type=this._cachedMeta.type,this.options=void 0,this._parsing=!1,this._data=void 0,this._objectData=void 0,this._sharedOptions=void 0,this._drawStart=void 0,this._drawCount=void 0,this.enableOptionSharing=!1,this.supportsDecimation=!1,this.$context=void 0,this._syncList=[],this.datasetElementType=new.target.datasetElementType,this.dataElementType=new.target.dataElementType,this.initialize()}initialize(){let Q=this._cachedMeta;if(this.configure(),this.linkScales(),Q._stacked=HN(Q.vScale,Q),this.addElements(),this.options.fill&&!this.chart.isPluginEnabled("filler"))console.warn("Tried to use the 'fill' option without the 'Filler' plugin enabled. Please import and register the 'Filler' plugin and make sure it is not disabled in the options")}updateIndex(Q){if(this.index!==Q)cZ(this._cachedMeta);this.index=Q}linkScales(){let Q=this.chart,J=this._cachedMeta,q=this.getDataset(),Y=(T,_,L,P)=>T==="x"?_:T==="r"?P:L,U=J.xAxisID=h0(q.xAxisID,FN(Q,"x")),K=J.yAxisID=h0(q.yAxisID,FN(Q,"y")),M=J.rAxisID=h0(q.rAxisID,FN(Q,"r")),H=J.indexAxis,F=J.iAxisID=Y(H,U,K,M),w=J.vAxisID=Y(H,K,U,M);J.xScale=this.getScaleForId(U),J.yScale=this.getScaleForId(K),J.rScale=this.getScaleForId(M),J.iScale=this.getScaleForId(F),J.vScale=this.getScaleForId(w)}getDataset(){return this.chart.data.datasets[this.index]}getMeta(){return this.chart.getDatasetMeta(this.index)}getScaleForId(Q){return this.chart.scales[Q]}_getOtherScale(Q){let J=this._cachedMeta;return Q===J.iScale?J.vScale:J.iScale}reset(){this._update("reset")}_destroy(){let Q=this._cachedMeta;if(this._data)sU(this._data,this);if(Q._stacked)cZ(Q)}_dataCheck(){let Q=this.getDataset(),J=Q.data||(Q.data=[]),q=this._data;if(n0(J)){let Y=this._cachedMeta;this._data=lC(J,Y)}else if(q!==J){if(q){sU(q,this);let Y=this._cachedMeta;cZ(Y),Y._parsed=[]}if(J&&Object.isExtensible(J))Ew(J,this);this._syncList=[],this._data=J}}addElements(){let Q=this._cachedMeta;if(this._dataCheck(),this.datasetElementType)Q.dataset=new this.datasetElementType}buildOrUpdateElements(Q){let J=this._cachedMeta,q=this.getDataset(),Y=!1;this._dataCheck();let U=J._stacked;if(J._stacked=HN(J.vScale,J),J.stack!==q.stack)Y=!0,cZ(J),J.stack=q.stack;if(this._resyncElements(Q),Y||U!==J._stacked)ow(this,J._parsed),J._stacked=HN(J.vScale,J)}configure(){let Q=this.chart.config,J=Q.datasetScopeKeys(this._type),q=Q.getOptionScopes(this.getDataset(),J,!0);this.options=Q.createResolver(q,this.getContext()),this._parsing=this.options.parsing,this._cachedDataOpts={}}parse(Q,J){let{_cachedMeta:q,_data:Y}=this,{iScale:U,_stacked:K}=q,M=U.axis,H=Q===0&&J===Y.length?!0:q._sorted,F=Q>0&&q._parsed[Q-1],w,T,_;if(this._parsing===!1)q._parsed=Y,q._sorted=!0,_=Y;else{if(_1(Y[Q]))_=this.parseArrayData(q,Y,Q,J);else if(n0(Y[Q]))_=this.parseObjectData(q,Y,Q,J);else _=this.parsePrimitiveData(q,Y,Q,J);let L=()=>T[M]===null||F&&T[M]<F[M];for(w=0;w<J;++w)if(q._parsed[w+Q]=T=_[w],H){if(L())H=!1;F=T}q._sorted=H}if(K)ow(this,_)}parsePrimitiveData(Q,J,q,Y){let{iScale:U,vScale:K}=Q,M=U.axis,H=K.axis,F=U.getLabels(),w=U===K,T=Array(Y),_,L,P;for(_=0,L=Y;_<L;++_)P=_+q,T[_]={[M]:w||U.parse(F[P],P),[H]:K.parse(J[P],P)};return T}parseArrayData(Q,J,q,Y){let{xScale:U,yScale:K}=Q,M=Array(Y),H,F,w,T;for(H=0,F=Y;H<F;++H)w=H+q,T=J[w],M[H]={x:U.parse(T[0],w),y:K.parse(T[1],w)};return M}parseObjectData(Q,J,q,Y){let{xScale:U,yScale:K}=Q,{xAxisKey:M="x",yAxisKey:H="y"}=this._parsing,F=Array(Y),w,T,_,L;for(w=0,T=Y;w<T;++w)_=w+q,L=J[_],F[w]={x:U.parse(F$(L,M),_),y:K.parse(F$(L,H),_)};return F}getParsed(Q){return this._cachedMeta._parsed[Q]}getDataElement(Q){return this._cachedMeta.data[Q]}applyStack(Q,J,q){let Y=this.chart,U=this._cachedMeta,K=J[Q.axis],M={keys:pT(Y,!0),values:J._stacks[Q.axis]._visualValues};return sw(M,K,U.index,{mode:q})}updateRangeFromParsed(Q,J,q,Y){let U=q[J.axis],K=U===null?NaN:U,M=Y&&q._stacks[J.axis];if(Y&&M)Y.values=M,K=sw(Y,U,this._cachedMeta.index);Q.min=Math.min(Q.min,K),Q.max=Math.max(Q.max,K)}getMinMax(Q,J){let q=this._cachedMeta,Y=q._parsed,U=q._sorted&&Q===q.iScale,K=Y.length,M=this._getOtherScale(Q),H=iC(J,q,this.chart),F={min:Number.POSITIVE_INFINITY,max:Number.NEGATIVE_INFINITY},{min:w,max:T}=sC(M),_,L;function P(){L=Y[_];let O=L[M.axis];return!O1(L[Q.axis])||w>O||T<O}for(_=0;_<K;++_){if(P())continue;if(this.updateRangeFromParsed(F,Q,L,H),U)break}if(U)for(_=K-1;_>=0;--_){if(P())continue;this.updateRangeFromParsed(F,Q,L,H);break}return F}getAllParsedValues(Q){let J=this._cachedMeta._parsed,q=[],Y,U,K;for(Y=0,U=J.length;Y<U;++Y)if(K=J[Y][Q.axis],O1(K))q.push(K);return q}getMaxOverflow(){return!1}getLabelAndValue(Q){let J=this._cachedMeta,q=J.iScale,Y=J.vScale,U=this.getParsed(Q);return{label:q?""+q.getLabelForValue(U[q.axis]):"",value:Y?""+Y.getLabelForValue(U[Y.axis]):""}}_update(Q){let J=this._cachedMeta;this.update(Q||"default"),J._clip=cC(h0(this.options.clip,pC(J.xScale,J.yScale,this.getMaxOverflow())))}update(Q){}draw(){let Q=this._ctx,J=this.chart,q=this._cachedMeta,Y=q.data||[],U=J.chartArea,K=[],M=this._drawStart||0,H=this._drawCount||Y.length-M,F=this.options.drawActiveElementsOnTop,w;if(q.dataset)q.dataset.draw(Q,U,M,H);for(w=M;w<M+H;++w){let T=Y[w];if(T.hidden)continue;if(T.active&&F)K.push(T);else T.draw(Q,U)}for(w=0;w<K.length;++w)K[w].draw(Q,U)}getStyle(Q,J){let q=J?"active":"default";return Q===void 0&&this._cachedMeta.dataset?this.resolveDatasetElementOptions(q):this.resolveDataElementOptions(Q||0,q)}getContext(Q,J,q){let Y=this.getDataset(),U;if(Q>=0&&Q<this._cachedMeta.data.length){let K=this._cachedMeta.data[Q];U=K.$context||(K.$context=aC(this.getContext(),Q,K)),U.parsed=this.getParsed(Q),U.raw=Y.data[Q],U.index=U.dataIndex=Q}else U=this.$context||(this.$context=oC(this.chart.getContext(),this.index)),U.dataset=Y,U.index=U.datasetIndex=this.index;return U.active=!!J,U.mode=q,U}resolveDatasetElementOptions(Q){return this._resolveElementOptions(this.datasetElementType.id,Q)}resolveDataElementOptions(Q,J){return this._resolveElementOptions(this.dataElementType.id,J,Q)}_resolveElementOptions(Q,J="default",q){let Y=J==="active",U=this._cachedDataOpts,K=Q+"-"+J,M=U[K],H=this.enableOptionSharing&&x9(q);if(M)return aw(M,H);let F=this.chart.config,w=F.datasetElementScopeKeys(this._type,Q),T=Y?[`${Q}Hover`,"hover",Q,""]:[Q,""],_=F.getOptionScopes(this.getDataset(),w),L=Object.keys(D1.elements[Q]),P=()=>this.getContext(q,Y,J),O=F.resolveNamedOptions(_,L,P,T);if(O.$shared)O.$shared=H,U[K]=Object.freeze(aw(O,H));return O}_resolveAnimations(Q,J,q){let Y=this.chart,U=this._cachedDataOpts,K=`animation-${J}`,M=U[K];if(M)return M;let H;if(Y.options.animation!==!1){let w=this.chart.config,T=w.datasetAnimationScopeKeys(this._type,J),_=w.getOptionScopes(this.getDataset(),T);H=w.createResolver(_,this.getContext(Q,q,J))}let F=new vN(Y,H&&H.animations);if(H&&H._cacheable)U[K]=Object.freeze(F);return F}getSharedOptions(Q){if(!Q.$shared)return;return this._sharedOptions||(this._sharedOptions=Object.assign({},Q))}includeOptions(Q,J){return!J||WN(Q)||this.chart._animationsDisabled}_getSharedOptions(Q,J){let q=this.resolveDataElementOptions(Q,J),Y=this._sharedOptions,U=this.getSharedOptions(q),K=this.includeOptions(J,U)||U!==Y;return this.updateSharedOptions(U,J,q),{sharedOptions:U,includeOptions:K}}updateElement(Q,J,q,Y){if(WN(Y))Object.assign(Q,q);else this._resolveAnimations(J,Y).update(Q,q)}updateSharedOptions(Q,J,q){if(Q&&!WN(J))this._resolveAnimations(void 0,J).update(Q,q)}_setStyle(Q,J,q,Y){Q.active=Y;let U=this.getStyle(J,Y);this._resolveAnimations(J,q,Y).update(Q,{options:!Y&&this.getSharedOptions(U)||U})}removeHoverStyle(Q,J,q){this._setStyle(Q,q,"active",!1)}setHoverStyle(Q,J,q){this._setStyle(Q,q,"active",!0)}_removeDatasetHoverStyle(){let Q=this._cachedMeta.dataset;if(Q)this._setStyle(Q,void 0,"active",!1)}_setDatasetHoverStyle(){let Q=this._cachedMeta.dataset;if(Q)this._setStyle(Q,void 0,"active",!0)}_resyncElements(Q){let J=this._data,q=this._cachedMeta.data;for(let[M,H,F]of this._syncList)this[M](H,F);this._syncList=[];let Y=q.length,U=J.length,K=Math.min(U,Y);if(K)this.parse(0,K);if(U>Y)this._insertElements(Y,U-Y,Q);else if(U<Y)this._removeElements(U,Y-U)}_insertElements(Q,J,q=!0){let Y=this._cachedMeta,U=Y.data,K=Q+J,M,H=(F)=>{F.length+=J;for(M=F.length-1;M>=K;M--)F[M]=F[M-J]};H(U);for(M=Q;M<K;++M)U[M]=new this.dataElementType;if(this._parsing)H(Y._parsed);if(this.parse(Q,J),q)this.updateElements(U,Q,J,"reset")}updateElements(Q,J,q,Y){}_removeElements(Q,J){let q=this._cachedMeta;if(this._parsing){let Y=q._parsed.splice(Q,J);if(q._stacked)cZ(q,Y)}q.data.splice(Q,J)}_sync(Q){if(this._parsing)this._syncList.push(Q);else{let[J,q,Y]=Q;this[J](q,Y)}this.chart._dataChanges.push([this.index,...Q])}_onDataPush(){let Q=arguments.length;this._sync(["_insertElements",this.getDataset().data.length-Q,Q])}_onDataPop(){this._sync(["_removeElements",this._cachedMeta.data.length-1,1])}_onDataShift(){this._sync(["_removeElements",0,1])}_onDataSplice(Q,J){if(J)this._sync(["_removeElements",Q,J]);let q=arguments.length-2;if(q)this._sync(["_insertElements",Q,q])}_onDataUnshift(){this._sync(["_insertElements",0,arguments.length])}}function tC(Q,J){if(!Q._cache.$bar){let q=Q.getMatchingVisibleMetas(J),Y=[];for(let U=0,K=q.length;U<K;U++)Y=Y.concat(q[U].controller.getAllParsedValues(Q));Q._cache.$bar=nU(Y.sort((U,K)=>U-K))}return Q._cache.$bar}function eC(Q){let J=Q.iScale,q=tC(J,Q.type),Y=J._length,U,K,M,H,F=()=>{if(M===32767||M===-32768)return;if(x9(H))Y=Math.min(Y,Math.abs(M-H)||Y);H=M};for(U=0,K=q.length;U<K;++U)M=J.getPixelForValue(q[U]),F();H=void 0;for(U=0,K=J.ticks.length;U<K;++U)M=J.getPixelForTick(U),F();return Y}function $I(Q,J,q,Y){let U=q.barThickness,K,M;if(t0(U))K=J.min*q.categoryPercentage,M=q.barPercentage;else K=U*Y,M=1;return{chunk:K/Y,ratio:M,start:J.pixels[Q]-K/2}}function ZI(Q,J,q,Y){let U=J.pixels,K=U[Q],M=Q>0?U[Q-1]:null,H=Q<U.length-1?U[Q+1]:null,F=q.categoryPercentage;if(M===null)M=K-(H===null?J.end-J.start:H-K);if(H===null)H=K+K-M;let w=K-(K-Math.min(M,H))/2*F;return{chunk:Math.abs(H-M)/2*F/Y,ratio:q.barPercentage,start:w}}function QI(Q,J,q,Y){let U=q.parse(Q[0],Y),K=q.parse(Q[1],Y),M=Math.min(U,K),H=Math.max(U,K),F=M,w=H;if(Math.abs(M)>Math.abs(H))F=H,w=M;J[q.axis]=w,J._custom={barStart:F,barEnd:w,start:U,end:K,min:M,max:H}}function cT(Q,J,q,Y){if(_1(Q))QI(Q,J,q,Y);else J[q.axis]=q.parse(Q,Y);return J}function iw(Q,J,q,Y){let{iScale:U,vScale:K}=Q,M=U.getLabels(),H=U===K,F=[],w,T,_,L;for(w=q,T=q+Y;w<T;++w)L=J[w],_={},_[U.axis]=H||U.parse(M[w],w),F.push(cT(L,_,K,w));return F}function RN(Q){return Q&&Q.barStart!==void 0&&Q.barEnd!==void 0}function GI(Q,J,q){if(Q!==0)return y4(Q);return(J.isHorizontal()?1:-1)*(J.min>=q?1:-1)}function JI(Q){let J,q,Y,U,K;if(Q.horizontal)J=Q.base>Q.x,q="left",Y="right";else J=Q.base<Q.y,q="bottom",Y="top";if(J)U="end",K="start";else U="start",K="end";return{start:q,end:Y,reverse:J,top:U,bottom:K}}function qI(Q,J,q,Y){let U=J.borderSkipped,K={};if(!U){Q.borderSkipped=K;return}if(U===!0){Q.borderSkipped={top:!0,right:!0,bottom:!0,left:!0};return}let{start:M,end:H,reverse:F,top:w,bottom:T}=JI(Q);if(U==="middle"&&q)if(Q.enableBorderRadius=!0,(q._top||0)===Y)U=w;else if((q._bottom||0)===Y)U=T;else K[tw(T,M,H,F)]=!0,U=w;K[tw(U,M,H,F)]=!0,Q.borderSkipped=K}function tw(Q,J,q,Y){if(Y)Q=XI(Q,J,q),Q=ew(Q,q,J);else Q=ew(Q,J,q);return Q}function XI(Q,J,q){return Q===J?q:Q===q?J:Q}function ew(Q,J,q){return Q==="start"?J:Q==="end"?q:Q}function YI(Q,{inflateAmount:J},q){Q.inflateAmount=J==="auto"?q===1?0.33:0:J}class kN extends Wq{static id="bar";static defaults={datasetElementType:!1,dataElementType:"bar",categoryPercentage:0.8,barPercentage:0.9,grouped:!0,animations:{numbers:{type:"number",properties:["x","y","base","width","height"]}}};static overrides={scales:{_index_:{type:"category",offset:!0,grid:{offset:!0}},_value_:{type:"linear",beginAtZero:!0}}};parsePrimitiveData(Q,J,q,Y){return iw(Q,J,q,Y)}parseArrayData(Q,J,q,Y){return iw(Q,J,q,Y)}parseObjectData(Q,J,q,Y){let{iScale:U,vScale:K}=Q,{xAxisKey:M="x",yAxisKey:H="y"}=this._parsing,F=U.axis==="x"?M:H,w=K.axis==="x"?M:H,T=[],_,L,P,O;for(_=q,L=q+Y;_<L;++_)O=J[_],P={},P[U.axis]=U.parse(F$(O,F),_),T.push(cT(F$(O,w),P,K,_));return T}updateRangeFromParsed(Q,J,q,Y){super.updateRangeFromParsed(Q,J,q,Y);let U=q._custom;if(U&&J===this._cachedMeta.vScale)Q.min=Math.min(Q.min,U.min),Q.max=Math.max(Q.max,U.max)}getMaxOverflow(){return 0}getLabelAndValue(Q){let J=this._cachedMeta,{iScale:q,vScale:Y}=J,U=this.getParsed(Q),K=U._custom,M=RN(K)?"["+K.start+", "+K.end+"]":""+Y.getLabelForValue(U[Y.axis]);return{label:""+q.getLabelForValue(U[q.axis]),value:M}}initialize(){this.enableOptionSharing=!0,super.initialize();let Q=this._cachedMeta;Q.stack=this.getDataset().stack}update(Q){let J=this._cachedMeta;this.updateElements(J.data,0,J.data.length,Q)}updateElements(Q,J,q,Y){let U=Y==="reset",{index:K,_cachedMeta:{vScale:M}}=this,H=M.getBasePixel(),F=M.isHorizontal(),w=this._getRuler(),{sharedOptions:T,includeOptions:_}=this._getSharedOptions(J,Y);for(let L=J;L<J+q;L++){let P=this.getParsed(L),O=U||t0(P[M.axis])?{base:H,head:H}:this._calculateBarValuePixels(L),A=this._calculateBarIndexPixels(L,w),C=(P._stacks||{})[M.axis],g={horizontal:F,base:O.base,enableBorderRadius:!C||RN(P._custom)||K===C._top||K===C._bottom,x:F?O.head:A.center,y:F?A.center:O.head,height:F?A.size:Math.abs(O.size),width:F?Math.abs(O.size):A.size};if(_)g.options=T||this.resolveDataElementOptions(L,Q[L].active?"active":Y);let m=g.options||Q[L].options;qI(g,m,C,K),YI(g,m,w.ratio),this.updateElement(Q[L],L,g,Y)}}_getStacks(Q,J){let{iScale:q}=this._cachedMeta,Y=q.getMatchingVisibleMetas(this._type).filter((w)=>w.controller.options.grouped),U=q.options.stacked,K=[],M=this._cachedMeta.controller.getParsed(J),H=M&&M[q.axis],F=(w)=>{let T=w._parsed.find((L)=>L[q.axis]===H),_=T&&T[w.vScale.axis];if(t0(_)||isNaN(_))return!0};for(let w of Y){if(J!==void 0&&F(w))continue;if(U===!1||K.indexOf(w.stack)===-1||U===void 0&&w.stack===void 0)K.push(w.stack);if(w.index===Q)break}if(!K.length)K.push(void 0);return K}_getStackCount(Q){return this._getStacks(void 0,Q).length}_getAxisCount(){return this._getAxis().length}getFirstScaleIdForIndexAxis(){let Q=this.chart.scales,J=this.chart.options.indexAxis;return Object.keys(Q).filter((q)=>Q[q].axis===J).shift()}_getAxis(){let Q={},J=this.getFirstScaleIdForIndexAxis();for(let q of this.chart.data.datasets)Q[h0(this.chart.options.indexAxis==="x"?q.xAxisID:q.yAxisID,J)]=!0;return Object.keys(Q)}_getStackIndex(Q,J,q){let Y=this._getStacks(Q,q),U=J!==void 0?Y.indexOf(J):-1;return U===-1?Y.length-1:U}_getRuler(){let Q=this.options,J=this._cachedMeta,q=J.iScale,Y=[],U,K;for(U=0,K=J.data.length;U<K;++U)Y.push(q.getPixelForValue(this.getParsed(U)[q.axis],U));let M=Q.barThickness;return{min:M||eC(J),pixels:Y,start:q._startPixel,end:q._endPixel,stackCount:this._getStackCount(),scale:q,grouped:Q.grouped,ratio:M?1:Q.categoryPercentage*Q.barPercentage}}_calculateBarValuePixels(Q){let{_cachedMeta:{vScale:J,_stacked:q,index:Y},options:{base:U,minBarLength:K}}=this,M=U||0,H=this.getParsed(Q),F=H._custom,w=RN(F),T=H[J.axis],_=0,L=q?this.applyStack(J,H,q):T,P,O;if(L!==T)_=L-T,L=T;if(w){if(T=F.barStart,L=F.barEnd-F.barStart,T!==0&&y4(T)!==y4(F.barEnd))_=0;_+=T}let A=!t0(U)&&!w?U:_,C=J.getPixelForValue(A);if(this.chart.getDataVisibility(Q))P=J.getPixelForValue(_+L);else P=C;if(O=P-C,Math.abs(O)<K){if(O=GI(O,J,M)*K,T===M)C-=O/2;let g=J.getPixelForDecimal(0),m=J.getPixelForDecimal(1),o=Math.min(g,m),a=Math.max(g,m);if(C=Math.max(Math.min(C,a),o),P=C+O,q&&!w)H._stacks[J.axis]._visualValues[Y]=J.getValueForPixel(P)-J.getValueForPixel(C)}if(C===J.getPixelForValue(M)){let g=y4(O)*J.getLineWidthForValue(M)/2;C+=g,O-=g}return{size:O,base:C,head:P,center:P+O/2}}_calculateBarIndexPixels(Q,J){let q=J.scale,Y=this.options,U=Y.skipNull,K=h0(Y.maxBarThickness,1/0),M,H,F=this._getAxisCount();if(J.grouped){let w=U?this._getStackCount(Q):J.stackCount,T=Y.barThickness==="flex"?ZI(Q,J,Y,w*F):$I(Q,J,Y,w*F),_=this.chart.options.indexAxis==="x"?this.getDataset().xAxisID:this.getDataset().yAxisID,L=this._getAxis().indexOf(h0(_,this.getFirstScaleIdForIndexAxis())),P=this._getStackIndex(this.index,this._cachedMeta.stack,U?Q:void 0)+L;M=T.start+T.chunk*P+T.chunk/2,H=Math.min(K,T.chunk*T.ratio)}else M=q.getPixelForValue(this.getParsed(Q)[q.axis],Q),H=Math.min(K,J.min*J.ratio);return{base:M-H/2,head:M+H/2,center:M,size:H}}draw(){let Q=this._cachedMeta,J=Q.vScale,q=Q.data,Y=q.length,U=0;for(;U<Y;++U)if(this.getParsed(U)[J.axis]!==null&&!q[U].hidden)q[U].draw(this._ctx)}}class bN extends Wq{static id="line";static defaults={datasetElementType:"line",dataElementType:"point",showLine:!0,spanGaps:!1};static overrides={scales:{_index_:{type:"category"},_value_:{type:"linear"}}};initialize(){this.enableOptionSharing=!0,this.supportsDecimation=!0,super.initialize()}update(Q){let J=this._cachedMeta,{dataset:q,data:Y=[],_dataset:U}=J,K=this.chart._animationsDisabled,{start:M,count:H}=Iw(J,Y,K);if(this._drawStart=M,this._drawCount=H,Ow(J))M=0,H=Y.length;q._chart=this.chart,q._datasetIndex=this.index,q._decimated=!!U._decimated,q.points=Y;let F=this.resolveDatasetElementOptions(Q);if(!this.options.showLine)F.borderWidth=0;F.segment=this.options.segment,this.updateElement(q,void 0,{animated:!K,options:F},Q),this.updateElements(Y,M,H,Q)}updateElements(Q,J,q,Y){let U=Y==="reset",{iScale:K,vScale:M,_stacked:H,_dataset:F}=this._cachedMeta,{sharedOptions:w,includeOptions:T}=this._getSharedOptions(J,Y),_=K.axis,L=M.axis,{spanGaps:P,segment:O}=this.options,A=m9(P)?P:Number.POSITIVE_INFINITY,C=this.chart._animationsDisabled||U||Y==="none",g=J+q,m=Q.length,o=J>0&&this.getParsed(J-1);for(let a=0;a<m;++a){let s=Q[a],Q0=C?s:{};if(a<J||a>=g){Q0.skip=!0;continue}let p=this.getParsed(a),i=t0(p[L]),Y0=Q0[_]=K.getPixelForValue(p[_],a),d=Q0[L]=U||i?M.getBasePixel():M.getPixelForValue(H?this.applyStack(M,p,H):p[L],a);if(Q0.skip=isNaN(Y0)||isNaN(d)||i,Q0.stop=a>0&&Math.abs(p[_]-o[_])>A,O)Q0.parsed=p,Q0.raw=F.data[a];if(T)Q0.options=w||this.resolveDataElementOptions(a,s.active?"active":Y);if(!C)this.updateElement(s,a,Q0,Y);o=p}}getMaxOverflow(){let Q=this._cachedMeta,J=Q.dataset,q=J.options&&J.options.borderWidth||0,Y=Q.data||[];if(!Y.length)return q;let U=Y[0].size(this.resolveDataElementOptions(0)),K=Y[Y.length-1].size(this.resolveDataElementOptions(Y.length-1));return Math.max(q,U,K)/2}draw(){let Q=this._cachedMeta;Q.dataset.updateControlPoints(this.chart.chartArea,Q.iScale.axis),super.draw()}}function R$(){throw Error("This method is not implemented: Check that a complete date adapter is provided.")}class fN{static override(Q){Object.assign(fN.prototype,Q)}options;constructor(Q){this.options=Q||{}}init(){}formats(){return R$()}parse(){return R$()}format(){return R$()}add(){return R$()}diff(){return R$()}startOf(){return R$()}endOf(){return R$()}}var UI={_date:fN};function NI(Q,J,q,Y){let{controller:U,data:K,_sorted:M}=Q,H=U._cachedMeta.iScale,F=Q.dataset?Q.dataset.options?Q.dataset.options.spanGaps:null:null;if(H&&J===H.axis&&J!=="r"&&M&&K.length){let w=H._reversePixels?zw:q2;if(!Y){let T=w(K,J,q);if(F){let{vScale:_}=U._cachedMeta,{_parsed:L}=Q,P=L.slice(0,T.lo+1).reverse().findIndex((A)=>!t0(A[_.axis]));T.lo-=Math.max(0,P);let O=L.slice(T.hi).findIndex((A)=>!t0(A[_.axis]));T.hi+=Math.max(0,O)}return T}else if(U._sharedOptions){let T=K[0],_=typeof T.getRange==="function"&&T.getRange(J);if(_){let L=w(K,J,q-_),P=w(K,J,q+_);return{lo:L.lo,hi:P.hi}}}}return{lo:0,hi:K.length-1}}function ZQ(Q,J,q,Y,U){let K=Q.getSortedVisibleDatasetMetas(),M=q[J];for(let H=0,F=K.length;H<F;++H){let{index:w,data:T}=K[H],{lo:_,hi:L}=NI(K[H],J,M,U);for(let P=_;P<=L;++P){let O=T[P];if(!O.skip)Y(O,w,P)}}}function KI(Q){let J=Q.indexOf("x")!==-1,q=Q.indexOf("y")!==-1;return function(Y,U){let K=J?Math.abs(Y.x-U.x):0,M=q?Math.abs(Y.y-U.y):0;return Math.sqrt(Math.pow(K,2)+Math.pow(M,2))}}function wN(Q,J,q,Y,U){let K=[];if(!U&&!Q.isPointInArea(J))return K;return ZQ(Q,q,J,function(H,F,w){if(!U&&!R8(H,Q.chartArea,0))return;if(H.inRange(J.x,J.y,Y))K.push({element:H,datasetIndex:F,index:w})},!0),K}function BI(Q,J,q,Y){let U=[];function K(M,H,F){let{startAngle:w,endAngle:T}=M.getProps(["startAngle","endAngle"],Y),{angle:_}=Tw(M,{x:J.x,y:J.y});if(rU(_,w,T))U.push({element:M,datasetIndex:H,index:F})}return ZQ(Q,q,J,K),U}function MI(Q,J,q,Y,U,K){let M=[],H=KI(q),F=Number.POSITIVE_INFINITY;function w(T,_,L){let P=T.inRange(J.x,J.y,U);if(Y&&!P)return;let O=T.getCenterPoint(U);if(!(!!K||Q.isPointInArea(O))&&!P)return;let C=H(J,O);if(C<F)M=[{element:T,datasetIndex:_,index:L}],F=C;else if(C===F)M.push({element:T,datasetIndex:_,index:L})}return ZQ(Q,q,J,w),M}function TN(Q,J,q,Y,U,K){if(!K&&!Q.isPointInArea(J))return[];return q==="r"&&!Y?BI(Q,J,q,U):MI(Q,J,q,Y,U,K)}function $T(Q,J,q,Y,U){let K=[],M=q==="x"?"inXRange":"inYRange",H=!1;if(ZQ(Q,q,J,(F,w,T)=>{if(F[M]&&F[M](J[q],U))K.push({element:F,datasetIndex:w,index:T}),H=H||F.inRange(J.x,J.y,U)}),Y&&!H)return[];return K}var HI={evaluateInteractionItems:ZQ,modes:{index(Q,J,q,Y){let U=B2(J,Q),K=q.axis||"x",M=q.includeInvisible||!1,H=q.intersect?wN(Q,U,K,Y,M):TN(Q,U,K,!1,Y,M),F=[];if(!H.length)return[];return Q.getSortedVisibleDatasetMetas().forEach((w)=>{let T=H[0].index,_=w.data[T];if(_&&!_.skip)F.push({element:_,datasetIndex:w.index,index:T})}),F},dataset(Q,J,q,Y){let U=B2(J,Q),K=q.axis||"xy",M=q.includeInvisible||!1,H=q.intersect?wN(Q,U,K,Y,M):TN(Q,U,K,!1,Y,M);if(H.length>0){let F=H[0].datasetIndex,w=Q.getDatasetMeta(F).data;H=[];for(let T=0;T<w.length;++T)H.push({element:w[T],datasetIndex:F,index:T})}return H},point(Q,J,q,Y){let U=B2(J,Q),K=q.axis||"xy",M=q.includeInvisible||!1;return wN(Q,U,K,Y,M)},nearest(Q,J,q,Y){let U=B2(J,Q),K=q.axis||"xy",M=q.includeInvisible||!1;return TN(Q,U,K,q.intersect,Y,M)},x(Q,J,q,Y){let U=B2(J,Q);return $T(Q,U,"x",q.intersect,Y)},y(Q,J,q,Y){let U=B2(J,Q);return $T(Q,U,"y",q.intersect,Y)}}},lT=["left","top","right","bottom"];function lZ(Q,J){return Q.filter((q)=>q.pos===J)}function ZT(Q,J){return Q.filter((q)=>lT.indexOf(q.pos)===-1&&q.box.axis===J)}function rZ(Q,J){return Q.sort((q,Y)=>{let U=J?Y:q,K=J?q:Y;return U.weight===K.weight?U.index-K.index:U.weight-K.weight})}function FI(Q){let J=[],q,Y,U,K,M,H;for(q=0,Y=(Q||[]).length;q<Y;++q)U=Q[q],{position:K,options:{stack:M,stackWeight:H=1}}=U,J.push({index:q,box:U,pos:K,horizontal:U.isHorizontal(),weight:U.weight,stack:M&&K+M,stackWeight:H});return J}function WI(Q){let J={};for(let q of Q){let{stack:Y,pos:U,stackWeight:K}=q;if(!Y||!lT.includes(U))continue;let M=J[Y]||(J[Y]={count:0,placed:0,weight:0,size:0});M.count++,M.weight+=K}return J}function RI(Q,J){let q=WI(Q),{vBoxMaxWidth:Y,hBoxMaxHeight:U}=J,K,M,H;for(K=0,M=Q.length;K<M;++K){H=Q[K];let{fullSize:F}=H.box,w=q[H.stack],T=w&&H.stackWeight/w.weight;if(H.horizontal)H.width=T?T*Y:F&&J.availableWidth,H.height=U;else H.width=Y,H.height=T?T*U:F&&J.availableHeight}return q}function wI(Q){let J=FI(Q),q=rZ(J.filter((w)=>w.box.fullSize),!0),Y=rZ(lZ(J,"left"),!0),U=rZ(lZ(J,"right")),K=rZ(lZ(J,"top"),!0),M=rZ(lZ(J,"bottom")),H=ZT(J,"x"),F=ZT(J,"y");return{fullSize:q,leftAndTop:Y.concat(K),rightAndBottom:U.concat(F).concat(M).concat(H),chartArea:lZ(J,"chartArea"),vertical:Y.concat(U).concat(F),horizontal:K.concat(M).concat(H)}}function QT(Q,J,q,Y){return Math.max(Q[q],J[q])+Math.max(Q[Y],J[Y])}function rT(Q,J){Q.top=Math.max(Q.top,J.top),Q.left=Math.max(Q.left,J.left),Q.bottom=Math.max(Q.bottom,J.bottom),Q.right=Math.max(Q.right,J.right)}function TI(Q,J,q,Y){let{pos:U,box:K}=q,M=Q.maxPadding;if(!n0(U)){if(q.size)Q[U]-=q.size;let _=Y[q.stack]||{size:0,count:1};_.size=Math.max(_.size,q.horizontal?K.height:K.width),q.size=_.size/_.count,Q[U]+=q.size}if(K.getPadding)rT(M,K.getPadding());let H=Math.max(0,J.outerWidth-QT(M,Q,"left","right")),F=Math.max(0,J.outerHeight-QT(M,Q,"top","bottom")),w=H!==Q.w,T=F!==Q.h;return Q.w=H,Q.h=F,q.horizontal?{same:w,other:T}:{same:T,other:w}}function _I(Q){let J=Q.maxPadding;function q(Y){let U=Math.max(J[Y]-Q[Y],0);return Q[Y]+=U,U}Q.y+=q("top"),Q.x+=q("left"),q("right"),q("bottom")}function zI(Q,J){let q=J.maxPadding;function Y(U){let K={left:0,top:0,right:0,bottom:0};return U.forEach((M)=>{K[M]=Math.max(J[M],q[M])}),K}return Q?Y(["left","right"]):Y(["top","bottom"])}function oZ(Q,J,q,Y){let U=[],K,M,H,F,w,T;for(K=0,M=Q.length,w=0;K<M;++K){H=Q[K],F=H.box,F.update(H.width||J.w,H.height||J.h,zI(H.horizontal,J));let{same:_,other:L}=TI(J,q,H,Y);if(w|=_&&U.length,T=T||L,!F.fullSize)U.push(H)}return w&&oZ(U,J,q,Y)||T}function Yq(Q,J,q,Y,U){Q.top=q,Q.left=J,Q.right=J+Y,Q.bottom=q+U,Q.width=Y,Q.height=U}function GT(Q,J,q,Y){let U=q.padding,{x:K,y:M}=J;for(let H of Q){let F=H.box,w=Y[H.stack]||{count:1,placed:0,weight:1},T=H.stackWeight/w.weight||1;if(H.horizontal){let _=J.w*T,L=w.size||F.height;if(x9(w.start))M=w.start;if(F.fullSize)Yq(F,U.left,M,q.outerWidth-U.right-U.left,L);else Yq(F,J.left+w.placed,M,_,L);w.start=M,w.placed+=_,M=F.bottom}else{let _=J.h*T,L=w.size||F.width;if(x9(w.start))K=w.start;if(F.fullSize)Yq(F,K,U.top,L,q.outerHeight-U.bottom-U.top);else Yq(F,K,J.top+w.placed,L,_);w.start=K,w.placed+=_,K=F.right}}J.x=K,J.y=M}var V4={addBox(Q,J){if(!Q.boxes)Q.boxes=[];J.fullSize=J.fullSize||!1,J.position=J.position||"top",J.weight=J.weight||0,J._layers=J._layers||function(){return[{z:0,draw(q){J.draw(q)}}]},Q.boxes.push(J)},removeBox(Q,J){let q=Q.boxes?Q.boxes.indexOf(J):-1;if(q!==-1)Q.boxes.splice(q,1)},configure(Q,J,q){J.fullSize=q.fullSize,J.position=q.position,J.weight=q.weight},update(Q,J,q,Y){if(!Q)return;let U=X5(Q.options.layout.padding),K=Math.max(J-U.width,0),M=Math.max(q-U.height,0),H=wI(Q.boxes),F=H.vertical,w=H.horizontal;X1(Q.boxes,(A)=>{if(typeof A.beforeLayout==="function")A.beforeLayout()});let T=F.reduce((A,C)=>C.box.options&&C.box.options.display===!1?A:A+1,0)||1,_=Object.freeze({outerWidth:J,outerHeight:q,padding:U,availableWidth:K,availableHeight:M,vBoxMaxWidth:K/2/T,hBoxMaxHeight:M/2}),L=Object.assign({},U);rT(L,X5(Y));let P=Object.assign({maxPadding:L,w:K,h:M,x:U.left,y:U.top},U),O=RI(F.concat(w),_);if(oZ(H.fullSize,P,_,O),oZ(F,P,_,O),oZ(w,P,_,O))oZ(F,P,_,O);_I(P),GT(H.leftAndTop,P,_,O),P.x+=P.w,P.y+=P.h,GT(H.rightAndBottom,P,_,O),Q.chartArea={left:P.left,top:P.top,right:P.left+P.w,bottom:P.top+P.h,height:P.h,width:P.w},X1(H.chartArea,(A)=>{let C=A.box;Object.assign(C,Q.chartArea),C.update(P.w,P.h,{left:0,top:0,right:0,bottom:0})})}};class yN{acquireContext(Q,J){}releaseContext(Q){return!1}addEventListener(Q,J,q){}removeEventListener(Q,J,q){}getDevicePixelRatio(){return 1}getMaximumSize(Q,J,q,Y){return J=Math.max(0,J||Q.width),q=q||Q.height,{width:J,height:Math.max(0,Y?Math.floor(J/Y):q)}}isAttached(Q){return!0}updateConfig(Q){}}class sT extends yN{acquireContext(Q){return Q&&Q.getContext&&Q.getContext("2d")||null}updateConfig(Q){Q.options.animation=!1}}var Mq="$chartjs",LI={touchstart:"mousedown",touchmove:"mousemove",touchend:"mouseup",pointerenter:"mouseenter",pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointerleave:"mouseout",pointerout:"mouseout"},JT=(Q)=>Q===null||Q==="";function VI(Q,J){let q=Q.style,Y=Q.getAttribute("height"),U=Q.getAttribute("width");if(Q[Mq]={initial:{height:Y,width:U,style:{display:q.display,height:q.height,width:q.width}}},q.display=q.display||"block",q.boxSizing=q.boxSizing||"border-box",JT(U)){let K=YN(Q,"width");if(K!==void 0)Q.width=K}if(JT(Y))if(Q.style.height==="")Q.height=Q.width/(J||2);else{let K=YN(Q,"height");if(K!==void 0)Q.height=K}return Q}var nT=uw?{passive:!0}:!1;function EI(Q,J,q){if(Q)Q.addEventListener(J,q,nT)}function PI(Q,J,q){if(Q&&Q.canvas)Q.canvas.removeEventListener(J,q,nT)}function CI(Q,J){let q=LI[Q.type]||Q.type,{x:Y,y:U}=B2(Q,J);return{type:q,chart:J,native:Q,x:Y!==void 0?Y:null,y:U!==void 0?U:null}}function Fq(Q,J){for(let q of Q)if(q===J||q.contains(J))return!0}function II(Q,J,q){let Y=Q.canvas,U=new MutationObserver((K)=>{let M=!1;for(let H of K)M=M||Fq(H.addedNodes,Y),M=M&&!Fq(H.removedNodes,Y);if(M)q()});return U.observe(document,{childList:!0,subtree:!0}),U}function OI(Q,J,q){let Y=Q.canvas,U=new MutationObserver((K)=>{let M=!1;for(let H of K)M=M||Fq(H.removedNodes,Y),M=M&&!Fq(H.addedNodes,Y);if(M)q()});return U.observe(document,{childList:!0,subtree:!0}),U}var tZ=new Map,qT=0;function oT(){let Q=window.devicePixelRatio;if(Q===qT)return;qT=Q,tZ.forEach((J,q)=>{if(q.currentDevicePixelRatio!==Q)J()})}function DI(Q,J){if(!tZ.size)window.addEventListener("resize",oT);tZ.set(Q,J)}function jI(Q){if(tZ.delete(Q),!tZ.size)window.removeEventListener("resize",oT)}function AI(Q,J,q){let Y=Q.canvas,U=Y&&qq(Y);if(!U)return;let K=aU((H,F)=>{let w=U.clientWidth;if(q(H,F),w<U.clientWidth)q()},window),M=new ResizeObserver((H)=>{let F=H[0],w=F.contentRect.width,T=F.contentRect.height;if(w===0&&T===0)return;K(w,T)});return M.observe(U),DI(Q,K),M}function _N(Q,J,q){if(q)q.disconnect();if(J==="resize")jI(Q)}function SI(Q,J,q){let Y=Q.canvas,U=aU((K)=>{if(Q.ctx!==null)q(CI(K,Q))},Q);return EI(Y,J,U),U}class aT extends yN{acquireContext(Q,J){let q=Q&&Q.getContext&&Q.getContext("2d");if(q&&q.canvas===Q)return VI(Q,J),q;return null}releaseContext(Q){let J=Q.canvas;if(!J[Mq])return!1;let q=J[Mq].initial;["height","width"].forEach((U)=>{let K=q[U];if(t0(K))J.removeAttribute(U);else J.setAttribute(U,K)});let Y=q.style||{};return Object.keys(Y).forEach((U)=>{J.style[U]=Y[U]}),J.width=J.width,delete J[Mq],!0}addEventListener(Q,J,q){this.removeEventListener(Q,J);let Y=Q.$proxies||(Q.$proxies={}),K={attach:II,detach:OI,resize:AI}[J]||SI;Y[J]=K(Q,J,q)}removeEventListener(Q,J){let q=Q.$proxies||(Q.$proxies={}),Y=q[J];if(!Y)return;({attach:_N,detach:_N,resize:_N}[J]||PI)(Q,J,Y),q[J]=void 0}getDevicePixelRatio(){return window.devicePixelRatio}getMaximumSize(Q,J,q,Y){return xw(Q,J,q,Y)}isAttached(Q){let J=Q&&qq(Q);return!!(J&&J.isConnected)}}function vI(Q){if(!Jq()||typeof OffscreenCanvas<"u"&&Q instanceof OffscreenCanvas)return sT;return aT}class q6{static defaults={};static defaultRoutes=void 0;x;y;active=!1;options;$animations;tooltipPosition(Q){let{x:J,y:q}=this.getProps(["x","y"],Q);return{x:J,y:q}}hasValue(){return m9(this.x)&&m9(this.y)}getProps(Q,J){let q=this.$animations;if(!J||!q)return this;let Y={};return Q.forEach((U)=>{Y[U]=q[U]&&q[U].active()?q[U]._to:this[U]}),Y}}function kI(Q,J){let q=Q.options.ticks,Y=bI(Q),U=Math.min(q.maxTicksLimit||Y,Y),K=q.major.enabled?yI(J):[],M=K.length,H=K[0],F=K[M-1],w=[];if(M>U)return gI(J,w,K,M/U),w;let T=fI(K,J,U);if(M>0){let _,L,P=M>1?Math.round((F-H)/(M-1)):null;Uq(J,w,T,t0(P)?0:H-P,H);for(_=0,L=M-1;_<L;_++)Uq(J,w,T,K[_],K[_+1]);return Uq(J,w,T,F,t0(P)?J.length:F+P),w}return Uq(J,w,T),w}function bI(Q){let J=Q.options.offset,q=Q._tickSize(),Y=Q._length/q+(J?0:1),U=Q._maxLength/q;return Math.floor(Math.min(Y,U))}function fI(Q,J,q){let Y=hI(Q),U=J.length/q;if(!Y)return Math.max(U,1);let K=Rw(Y);for(let M=0,H=K.length-1;M<H;M++){let F=K[M];if(F>U)return F}return Math.max(U,1)}function yI(Q){let J=[],q,Y;for(q=0,Y=Q.length;q<Y;q++)if(Q[q].major)J.push(q);return J}function gI(Q,J,q,Y){let U=0,K=q[0],M;Y=Math.ceil(Y);for(M=0;M<Q.length;M++)if(M===K)J.push(Q[M]),U++,K=q[U*Y]}function Uq(Q,J,q,Y,U){let K=h0(Y,0),M=Math.min(h0(U,Q.length),Q.length),H=0,F,w,T;if(q=Math.ceil(q),U)F=U-Y,q=F/Math.floor(F/q);T=K;while(T<0)H++,T=Math.round(K+H*q);for(w=Math.max(K,0);w<M;w++)if(w===T)J.push(Q[w]),H++,T=Math.round(K+H*q)}function hI(Q){let J=Q.length,q,Y;if(J<2)return!1;for(Y=Q[0],q=1;q<J;++q)if(Q[q]-Q[q-1]!==Y)return!1;return Y}var xI=(Q)=>Q==="left"?"right":Q==="right"?"left":Q,XT=(Q,J,q)=>J==="top"||J==="left"?Q[J]+q:Q[J]-q,YT=(Q,J)=>Math.min(J||Q,Q);function UT(Q,J){let q=[],Y=Q.length/J,U=Q.length,K=0;for(;K<U;K+=Y)q.push(Q[Math.floor(K)]);return q}function uI(Q,J,q){let Y=Q.ticks.length,U=Math.min(J,Y-1),K=Q._startPixel,M=Q._endPixel,H=0.000001,F=Q.getPixelForTick(U),w;if(q){if(Y===1)w=Math.max(F-K,M-F);else if(J===0)w=(Q.getPixelForTick(1)-F)/2;else w=(F-Q.getPixelForTick(U-1))/2;if(F+=U<J?w:-w,F<K-0.000001||F>M+0.000001)return}return F}function mI(Q,J){X1(Q,(q)=>{let Y=q.gc,U=Y.length/2,K;if(U>J){for(K=0;K<U;++K)delete q.data[Y[K]];Y.splice(0,U)}})}function sZ(Q){return Q.drawTicks?Q.tickLength:0}function NT(Q,J){if(!Q.display)return 0;let q=p1(Q.font,J),Y=X5(Q.padding);return(_1(Q.text)?Q.text.length:1)*q.lineHeight+Y.height}function dI(Q,J){return Q6(Q,{scale:J,type:"scale"})}function pI(Q,J,q){return Q6(Q,{tick:q,index:J,type:"tick"})}function cI(Q,J,q){let Y=eJ(Q);if(q&&J!=="right"||!q&&J==="right")Y=xI(Y);return Y}function lI(Q,J,q,Y){let{top:U,left:K,bottom:M,right:H,chart:F}=Q,{chartArea:w,scales:T}=F,_=0,L,P,O,A=M-U,C=H-K;if(Q.isHorizontal()){if(P=q5(Y,K,H),n0(q)){let g=Object.keys(q)[0],m=q[g];O=T[g].getPixelForValue(m)+A-J}else if(q==="center")O=(w.bottom+w.top)/2+A-J;else O=XT(Q,q,J);L=H-K}else{if(n0(q)){let g=Object.keys(q)[0],m=q[g];P=T[g].getPixelForValue(m)-C+J}else if(q==="center")P=(w.left+w.right)/2-C+J;else P=XT(Q,q,J);O=q5(Y,M,U),_=q==="left"?-b5:b5}return{titleX:P,titleY:O,maxWidth:L,rotation:_}}class T$ extends q6{constructor(Q){super();this.id=Q.id,this.type=Q.type,this.options=void 0,this.ctx=Q.ctx,this.chart=Q.chart,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.width=void 0,this.height=void 0,this._margins={left:0,right:0,top:0,bottom:0},this.maxWidth=void 0,this.maxHeight=void 0,this.paddingTop=void 0,this.paddingBottom=void 0,this.paddingLeft=void 0,this.paddingRight=void 0,this.axis=void 0,this.labelRotation=void 0,this.min=void 0,this.max=void 0,this._range=void 0,this.ticks=[],this._gridLineItems=null,this._labelItems=null,this._labelSizes=null,this._length=0,this._maxLength=0,this._longestTextCache={},this._startPixel=void 0,this._endPixel=void 0,this._reversePixels=!1,this._userMax=void 0,this._userMin=void 0,this._suggestedMax=void 0,this._suggestedMin=void 0,this._ticksLength=0,this._borderValue=0,this._cache={},this._dataLimitsCached=!1,this.$context=void 0}init(Q){this.options=Q.setContext(this.getContext()),this.axis=Q.axis,this._userMin=this.parse(Q.min),this._userMax=this.parse(Q.max),this._suggestedMin=this.parse(Q.suggestedMin),this._suggestedMax=this.parse(Q.suggestedMax)}parse(Q,J){return Q}getUserBounds(){let{_userMin:Q,_userMax:J,_suggestedMin:q,_suggestedMax:Y}=this;return Q=g5(Q,Number.POSITIVE_INFINITY),J=g5(J,Number.NEGATIVE_INFINITY),q=g5(q,Number.POSITIVE_INFINITY),Y=g5(Y,Number.NEGATIVE_INFINITY),{min:g5(Q,q),max:g5(J,Y),minDefined:O1(Q),maxDefined:O1(J)}}getMinMax(Q){let{min:J,max:q,minDefined:Y,maxDefined:U}=this.getUserBounds(),K;if(Y&&U)return{min:J,max:q};let M=this.getMatchingVisibleMetas();for(let H=0,F=M.length;H<F;++H){if(K=M[H].controller.getMinMax(this,Q),!Y)J=Math.min(J,K.min);if(!U)q=Math.max(q,K.max)}return J=U&&J>q?q:J,q=Y&&J>q?J:q,{min:g5(J,g5(q,J)),max:g5(q,g5(J,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 Q=this.chart.data;return this.options.labels||(this.isHorizontal()?Q.xLabels:Q.yLabels)||Q.labels||[]}getLabelItems(Q=this.chart.chartArea){return this._labelItems||(this._labelItems=this._computeLabelItems(Q))}beforeLayout(){this._cache={},this._dataLimitsCached=!1}beforeUpdate(){W1(this.options.beforeUpdate,[this])}update(Q,J,q){let{beginAtZero:Y,grace:U,ticks:K}=this.options,M=K.sampleSize;if(this.beforeUpdate(),this.maxWidth=Q,this.maxHeight=J,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=kw(this,U,Y),this._dataLimitsCached=!0;this.beforeBuildTicks(),this.ticks=this.buildTicks()||[],this.afterBuildTicks();let H=M<this.ticks.length;if(this._convertTicksToLabels(H?UT(this.ticks,M):this.ticks),this.configure(),this.beforeCalculateLabelRotation(),this.calculateLabelRotation(),this.afterCalculateLabelRotation(),K.display&&(K.autoSkip||K.source==="auto"))this.ticks=kI(this,this.ticks),this._labelSizes=null,this.afterAutoSkip();if(H)this._convertTicksToLabels(this.ticks);this.beforeFit(),this.fit(),this.afterFit(),this.afterUpdate()}configure(){let Q=this.options.reverse,J,q;if(this.isHorizontal())J=this.left,q=this.right;else J=this.top,q=this.bottom,Q=!Q;this._startPixel=J,this._endPixel=q,this._reversePixels=Q,this._length=q-J,this._alignToPixels=this.options.alignToPixels}afterUpdate(){W1(this.options.afterUpdate,[this])}beforeSetDimensions(){W1(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(){W1(this.options.afterSetDimensions,[this])}_callHooks(Q){this.chart.notifyPlugins(Q,this.getContext()),W1(this.options[Q],[this])}beforeDataLimits(){this._callHooks("beforeDataLimits")}determineDataLimits(){}afterDataLimits(){this._callHooks("afterDataLimits")}beforeBuildTicks(){this._callHooks("beforeBuildTicks")}buildTicks(){return[]}afterBuildTicks(){this._callHooks("afterBuildTicks")}beforeTickToLabelConversion(){W1(this.options.beforeTickToLabelConversion,[this])}generateTickLabels(Q){let J=this.options.ticks,q,Y,U;for(q=0,Y=Q.length;q<Y;q++)U=Q[q],U.label=W1(J.callback,[U.value,q,Q],this)}afterTickToLabelConversion(){W1(this.options.afterTickToLabelConversion,[this])}beforeCalculateLabelRotation(){W1(this.options.beforeCalculateLabelRotation,[this])}calculateLabelRotation(){let Q=this.options,J=Q.ticks,q=YT(this.ticks.length,Q.ticks.maxTicksLimit),Y=J.minRotation||0,U=J.maxRotation,K=Y,M,H,F;if(!this._isVisible()||!J.display||Y>=U||q<=1||!this.isHorizontal()){this.labelRotation=Y;return}let w=this._getLabelSizes(),T=w.widest.width,_=w.highest.height,L=y5(this.chart.width-T,0,this.maxWidth);if(M=Q.offset?this.maxWidth/q:L/(q-1),T+6>M)M=L/(q-(Q.offset?0.5:1)),H=this.maxHeight-sZ(Q.grid)-J.padding-NT(Q.title,this.chart.options.font),F=Math.sqrt(T*T+_*_),K=iJ(Math.min(Math.asin(y5((w.highest.height+6)/M,-1,1)),Math.asin(y5(H/F,-1,1))-Math.asin(y5(_/F,-1,1)))),K=Math.max(Y,Math.min(U,K));this.labelRotation=K}afterCalculateLabelRotation(){W1(this.options.afterCalculateLabelRotation,[this])}afterAutoSkip(){}beforeFit(){W1(this.options.beforeFit,[this])}fit(){let Q={width:0,height:0},{chart:J,options:{ticks:q,title:Y,grid:U}}=this,K=this._isVisible(),M=this.isHorizontal();if(K){let H=NT(Y,J.options.font);if(M)Q.width=this.maxWidth,Q.height=sZ(U)+H;else Q.height=this.maxHeight,Q.width=sZ(U)+H;if(q.display&&this.ticks.length){let{first:F,last:w,widest:T,highest:_}=this._getLabelSizes(),L=q.padding*2,P=$6(this.labelRotation),O=Math.cos(P),A=Math.sin(P);if(M){let C=q.mirror?0:A*T.width+O*_.height;Q.height=Math.min(this.maxHeight,Q.height+C+L)}else{let C=q.mirror?0:O*T.width+A*_.height;Q.width=Math.min(this.maxWidth,Q.width+C+L)}this._calculatePadding(F,w,A,O)}}if(this._handleMargins(),M)this.width=this._length=J.width-this._margins.left-this._margins.right,this.height=Q.height;else this.width=Q.width,this.height=this._length=J.height-this._margins.top-this._margins.bottom}_calculatePadding(Q,J,q,Y){let{ticks:{align:U,padding:K},position:M}=this.options,H=this.labelRotation!==0,F=M!=="top"&&this.axis==="x";if(this.isHorizontal()){let w=this.getPixelForTick(0)-this.left,T=this.right-this.getPixelForTick(this.ticks.length-1),_=0,L=0;if(H)if(F)_=Y*Q.width,L=q*J.height;else _=q*Q.height,L=Y*J.width;else if(U==="start")L=J.width;else if(U==="end")_=Q.width;else if(U!=="inner")_=Q.width/2,L=J.width/2;this.paddingLeft=Math.max((_-w+K)*this.width/(this.width-w),0),this.paddingRight=Math.max((L-T+K)*this.width/(this.width-T),0)}else{let w=J.height/2,T=Q.height/2;if(U==="start")w=0,T=Q.height;else if(U==="end")w=J.height,T=0;this.paddingTop=w+K,this.paddingBottom=T+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(){W1(this.options.afterFit,[this])}isHorizontal(){let{axis:Q,position:J}=this.options;return J==="top"||J==="bottom"||Q==="x"}isFullSize(){return this.options.fullSize}_convertTicksToLabels(Q){this.beforeTickToLabelConversion(),this.generateTickLabels(Q);let J,q;for(J=0,q=Q.length;J<q;J++)if(t0(Q[J].label))Q.splice(J,1),q--,J--;this.afterTickToLabelConversion()}_getLabelSizes(){let Q=this._labelSizes;if(!Q){let J=this.options.ticks.sampleSize,q=this.ticks;if(J<q.length)q=UT(q,J);this._labelSizes=Q=this._computeLabelSizes(q,q.length,this.options.ticks.maxTicksLimit)}return Q}_computeLabelSizes(Q,J,q){let{ctx:Y,_longestTextCache:U}=this,K=[],M=[],H=Math.floor(J/YT(J,q)),F=0,w=0,T,_,L,P,O,A,C,g,m,o,a;for(T=0;T<J;T+=H){if(P=Q[T].label,O=this._resolveTickFontOptions(T),Y.font=A=O.string,C=U[A]=U[A]||{data:{},gc:[]},g=O.lineHeight,m=o=0,!t0(P)&&!_1(P))m=hZ(Y,C.data,C.gc,m,P),o=g;else if(_1(P)){for(_=0,L=P.length;_<L;++_)if(a=P[_],!t0(a)&&!_1(a))m=hZ(Y,C.data,C.gc,m,a),o+=g}K.push(m),M.push(o),F=Math.max(m,F),w=Math.max(o,w)}mI(U,J);let s=K.indexOf(F),Q0=M.indexOf(w),p=(i)=>({width:K[i]||0,height:M[i]||0});return{first:p(0),last:p(J-1),widest:p(s),highest:p(Q0),widths:K,heights:M}}getLabelForValue(Q){return Q}getPixelForValue(Q,J){return NaN}getValueForPixel(Q){}getPixelForTick(Q){let J=this.ticks;if(Q<0||Q>J.length-1)return null;return this.getPixelForValue(J[Q].value)}getPixelForDecimal(Q){if(this._reversePixels)Q=1-Q;let J=this._startPixel+Q*this._length;return _w(this._alignToPixels?U2(this.chart,J,0):J)}getDecimalForPixel(Q){let J=(Q-this._startPixel)/this._length;return this._reversePixels?1-J:J}getBasePixel(){return this.getPixelForValue(this.getBaseValue())}getBaseValue(){let{min:Q,max:J}=this;return Q<0&&J<0?J:Q>0&&J>0?Q:0}getContext(Q){let J=this.ticks||[];if(Q>=0&&Q<J.length){let q=J[Q];return q.$context||(q.$context=pI(this.getContext(),Q,q))}return this.$context||(this.$context=dI(this.chart.getContext(),this))}_tickSize(){let Q=this.options.ticks,J=$6(this.labelRotation),q=Math.abs(Math.cos(J)),Y=Math.abs(Math.sin(J)),U=this._getLabelSizes(),K=Q.autoSkipPadding||0,M=U?U.widest.width+K:0,H=U?U.highest.height+K:0;return this.isHorizontal()?H*q>M*Y?M/q:H/Y:H*Y<M*q?H/q:M/Y}_isVisible(){let Q=this.options.display;if(Q!=="auto")return!!Q;return this.getMatchingVisibleMetas().length>0}_computeGridLineItems(Q){let J=this.axis,q=this.chart,Y=this.options,{grid:U,position:K,border:M}=Y,H=U.offset,F=this.isHorizontal(),T=this.ticks.length+(H?1:0),_=sZ(U),L=[],P=M.setContext(this.getContext()),O=P.display?P.width:0,A=O/2,C=function(l){return U2(q,l,O)},g,m,o,a,s,Q0,p,i,Y0,d,N0,R0;if(K==="top")g=C(this.bottom),Q0=this.bottom-_,i=g-A,d=C(Q.top)+A,R0=Q.bottom;else if(K==="bottom")g=C(this.top),d=Q.top,R0=C(Q.bottom)-A,Q0=g+A,i=this.top+_;else if(K==="left")g=C(this.right),s=this.right-_,p=g-A,Y0=C(Q.left)+A,N0=Q.right;else if(K==="right")g=C(this.left),Y0=Q.left,N0=C(Q.right)-A,s=g+A,p=this.left+_;else if(J==="x"){if(K==="center")g=C((Q.top+Q.bottom)/2+0.5);else if(n0(K)){let l=Object.keys(K)[0],J0=K[l];g=C(this.chart.scales[l].getPixelForValue(J0))}d=Q.top,R0=Q.bottom,Q0=g+A,i=Q0+_}else if(J==="y"){if(K==="center")g=C((Q.left+Q.right)/2);else if(n0(K)){let l=Object.keys(K)[0],J0=K[l];g=C(this.chart.scales[l].getPixelForValue(J0))}s=g-A,p=s-_,Y0=Q.left,N0=Q.right}let _0=h0(Y.ticks.maxTicksLimit,T),C0=Math.max(1,Math.ceil(T/_0));for(m=0;m<T;m+=C0){let l=this.getContext(m),J0=U.setContext(l),K0=M.setContext(l),d0=J0.lineWidth,k0=J0.color,S=K0.dash||[],n=K0.dashOffset,B0=J0.tickWidth,M0=J0.tickColor,b0=J0.tickBorderDash||[],j1=J0.tickBorderDashOffset;if(o=uI(this,m,H),o===void 0)continue;if(a=U2(q,o,d0),F)s=p=Y0=N0=a;else Q0=i=d=R0=a;L.push({tx1:s,ty1:Q0,tx2:p,ty2:i,x1:Y0,y1:d,x2:N0,y2:R0,width:d0,color:k0,borderDash:S,borderDashOffset:n,tickWidth:B0,tickColor:M0,tickBorderDash:b0,tickBorderDashOffset:j1})}return this._ticksLength=T,this._borderValue=g,L}_computeLabelItems(Q){let J=this.axis,q=this.options,{position:Y,ticks:U}=q,K=this.isHorizontal(),M=this.ticks,{align:H,crossAlign:F,padding:w,mirror:T}=U,_=sZ(q.grid),L=_+w,P=T?-w:L,O=-$6(this.labelRotation),A=[],C,g,m,o,a,s,Q0,p,i,Y0,d,N0,R0="middle";if(Y==="top")s=this.bottom-P,Q0=this._getXAxisLabelAlignment();else if(Y==="bottom")s=this.top+P,Q0=this._getXAxisLabelAlignment();else if(Y==="left"){let C0=this._getYAxisLabelAlignment(_);Q0=C0.textAlign,a=C0.x}else if(Y==="right"){let C0=this._getYAxisLabelAlignment(_);Q0=C0.textAlign,a=C0.x}else if(J==="x"){if(Y==="center")s=(Q.top+Q.bottom)/2+L;else if(n0(Y)){let C0=Object.keys(Y)[0],l=Y[C0];s=this.chart.scales[C0].getPixelForValue(l)+L}Q0=this._getXAxisLabelAlignment()}else if(J==="y"){if(Y==="center")a=(Q.left+Q.right)/2-L;else if(n0(Y)){let C0=Object.keys(Y)[0],l=Y[C0];a=this.chart.scales[C0].getPixelForValue(l)}Q0=this._getYAxisLabelAlignment(_).textAlign}if(J==="y"){if(H==="start")R0="top";else if(H==="end")R0="bottom"}let _0=this._getLabelSizes();for(C=0,g=M.length;C<g;++C){m=M[C],o=m.label;let C0=U.setContext(this.getContext(C));p=this.getPixelForTick(C)+U.labelOffset,i=this._resolveTickFontOptions(C),Y0=i.lineHeight,d=_1(o)?o.length:1;let l=d/2,J0=C0.color,K0=C0.textStrokeColor,d0=C0.textStrokeWidth,k0=Q0;if(K){if(a=p,Q0==="inner")if(C===g-1)k0=!this.options.reverse?"right":"left";else if(C===0)k0=!this.options.reverse?"left":"right";else k0="center";if(Y==="top")if(F==="near"||O!==0)N0=-d*Y0+Y0/2;else if(F==="center")N0=-_0.highest.height/2-l*Y0+Y0;else N0=-_0.highest.height+Y0/2;else if(F==="near"||O!==0)N0=Y0/2;else if(F==="center")N0=_0.highest.height/2-l*Y0;else N0=_0.highest.height-d*Y0;if(T)N0*=-1;if(O!==0&&!C0.showLabelBackdrop)a+=Y0/2*Math.sin(O)}else s=p,N0=(1-d)*Y0/2;let S;if(C0.showLabelBackdrop){let n=X5(C0.backdropPadding),B0=_0.heights[C],M0=_0.widths[C],b0=N0-n.top,j1=0-n.left;switch(R0){case"middle":b0-=B0/2;break;case"bottom":b0-=B0;break}switch(Q0){case"center":j1-=M0/2;break;case"right":j1-=M0;break;case"inner":if(C===g-1)j1-=M0;else if(C>0)j1-=M0/2;break}S={left:j1,top:b0,width:M0+n.width,height:B0+n.height,color:C0.backdropColor}}A.push({label:o,font:i,textOffset:N0,options:{rotation:O,color:J0,strokeColor:K0,strokeWidth:d0,textAlign:k0,textBaseline:R0,translation:[a,s],backdrop:S}})}return A}_getXAxisLabelAlignment(){let{position:Q,ticks:J}=this.options;if(-$6(this.labelRotation))return Q==="top"?"left":"right";let Y="center";if(J.align==="start")Y="left";else if(J.align==="end")Y="right";else if(J.align==="inner")Y="inner";return Y}_getYAxisLabelAlignment(Q){let{position:J,ticks:{crossAlign:q,mirror:Y,padding:U}}=this.options,K=this._getLabelSizes(),M=Q+U,H=K.widest.width,F,w;if(J==="left")if(Y)if(w=this.right+U,q==="near")F="left";else if(q==="center")F="center",w+=H/2;else F="right",w+=H;else if(w=this.right-M,q==="near")F="right";else if(q==="center")F="center",w-=H/2;else F="left",w=this.left;else if(J==="right")if(Y)if(w=this.left+U,q==="near")F="right";else if(q==="center")F="center",w-=H/2;else F="left",w-=H;else if(w=this.left+M,q==="near")F="left";else if(q==="center")F="center",w+=H/2;else F="right",w=this.right;else F="right";return{textAlign:F,x:w}}_computeLabelArea(){if(this.options.ticks.mirror)return;let Q=this.chart,J=this.options.position;if(J==="left"||J==="right")return{top:0,left:this.left,bottom:Q.height,right:this.right};if(J==="top"||J==="bottom")return{top:this.top,left:0,bottom:this.bottom,right:Q.width}}drawBackground(){let{ctx:Q,options:{backgroundColor:J},left:q,top:Y,width:U,height:K}=this;if(J)Q.save(),Q.fillStyle=J,Q.fillRect(q,Y,U,K),Q.restore()}getLineWidthForValue(Q){let J=this.options.grid;if(!this._isVisible()||!J.display)return 0;let Y=this.ticks.findIndex((U)=>U.value===Q);if(Y>=0)return J.setContext(this.getContext(Y)).lineWidth;return 0}drawGrid(Q){let J=this.options.grid,q=this.ctx,Y=this._gridLineItems||(this._gridLineItems=this._computeGridLineItems(Q)),U,K,M=(H,F,w)=>{if(!w.width||!w.color)return;q.save(),q.lineWidth=w.width,q.strokeStyle=w.color,q.setLineDash(w.borderDash||[]),q.lineDashOffset=w.borderDashOffset,q.beginPath(),q.moveTo(H.x,H.y),q.lineTo(F.x,F.y),q.stroke(),q.restore()};if(J.display)for(U=0,K=Y.length;U<K;++U){let H=Y[U];if(J.drawOnChartArea)M({x:H.x1,y:H.y1},{x:H.x2,y:H.y2},H);if(J.drawTicks)M({x:H.tx1,y:H.ty1},{x:H.tx2,y:H.ty2},{color:H.tickColor,width:H.tickWidth,borderDash:H.tickBorderDash,borderDashOffset:H.tickBorderDashOffset})}}drawBorder(){let{chart:Q,ctx:J,options:{border:q,grid:Y}}=this,U=q.setContext(this.getContext()),K=q.display?U.width:0;if(!K)return;let M=Y.setContext(this.getContext(0)).lineWidth,H=this._borderValue,F,w,T,_;if(this.isHorizontal())F=U2(Q,this.left,K)-K/2,w=U2(Q,this.right,M)+M/2,T=_=H;else T=U2(Q,this.top,K)-K/2,_=U2(Q,this.bottom,M)+M/2,F=w=H;J.save(),J.lineWidth=U.width,J.strokeStyle=U.color,J.beginPath(),J.moveTo(F,T),J.lineTo(w,_),J.stroke(),J.restore()}drawLabels(Q){if(!this.options.ticks.display)return;let q=this.ctx,Y=this._computeLabelArea();if(Y)mZ(q,Y);let U=this.getLabelItems(Q);for(let K of U){let{options:M,font:H,label:F,textOffset:w}=K;N2(q,F,0,w,H,M)}if(Y)dZ(q)}drawTitle(){let{ctx:Q,options:{position:J,title:q,reverse:Y}}=this;if(!q.display)return;let U=p1(q.font),K=X5(q.padding),M=q.align,H=U.lineHeight/2;if(J==="bottom"||J==="center"||n0(J)){if(H+=K.bottom,_1(q.text))H+=U.lineHeight*(q.text.length-1)}else H+=K.top;let{titleX:F,titleY:w,maxWidth:T,rotation:_}=lI(this,H,J,M);N2(Q,q.text,0,0,U,{color:q.color,maxWidth:T,rotation:_,textAlign:cI(M,J,Y),textBaseline:"middle",translation:[F,w]})}draw(Q){if(!this._isVisible())return;this.drawBackground(),this.drawGrid(Q),this.drawBorder(),this.drawTitle(),this.drawLabels(Q)}_layers(){let Q=this.options,J=Q.ticks&&Q.ticks.z||0,q=h0(Q.grid&&Q.grid.z,-1),Y=h0(Q.border&&Q.border.z,0);if(!this._isVisible()||this.draw!==T$.prototype.draw)return[{z:J,draw:(U)=>{this.draw(U)}}];return[{z:q,draw:(U)=>{this.drawBackground(),this.drawGrid(U),this.drawTitle()}},{z:Y,draw:()=>{this.drawBorder()}},{z:J,draw:(U)=>{this.drawLabels(U)}}]}getMatchingVisibleMetas(Q){let J=this.chart.getSortedVisibleDatasetMetas(),q=this.axis+"AxisID",Y=[],U,K;for(U=0,K=J.length;U<K;++U){let M=J[U];if(M[q]===this.id&&(!Q||M.type===Q))Y.push(M)}return Y}_resolveTickFontOptions(Q){let J=this.options.ticks.setContext(this.getContext(Q));return p1(J.font)}_maxDigits(){let Q=this._resolveTickFontOptions(0).lineHeight;return(this.isHorizontal()?this.width:this.height)/Q}}class aZ{constructor(Q,J,q){this.type=Q,this.scope=J,this.override=q,this.items=Object.create(null)}isForType(Q){return Object.prototype.isPrototypeOf.call(this.type.prototype,Q.prototype)}register(Q){let J=Object.getPrototypeOf(Q),q;if(nI(J))q=this.register(J);let Y=this.items,U=Q.id,K=this.scope+"."+U;if(!U)throw Error("class does not have id: "+Q);if(U in Y)return K;if(Y[U]=Q,rI(Q,K,q),this.override)D1.override(Q.id,Q.overrides);return K}get(Q){return this.items[Q]}unregister(Q){let J=this.items,q=Q.id,Y=this.scope;if(q in J)delete J[q];if(Y&&q in D1[Y]){if(delete D1[Y][q],this.override)delete Y2[q]}}}function rI(Q,J,q){let Y=y9(Object.create(null),[q?D1.get(q):{},D1.get(J),Q.defaults]);if(D1.set(J,Y),Q.defaultRoutes)sI(J,Q.defaultRoutes);if(Q.descriptors)D1.describe(J,Q.descriptors)}function sI(Q,J){Object.keys(J).forEach((q)=>{let Y=q.split("."),U=Y.pop(),K=[Q].concat(Y).join("."),M=J[q].split("."),H=M.pop(),F=M.join(".");D1.route(K,U,F,H)})}function nI(Q){return"id"in Q&&"defaults"in Q}class iT{constructor(){this.controllers=new aZ(Wq,"datasets",!0),this.elements=new aZ(q6,"elements"),this.plugins=new aZ(Object,"plugins"),this.scales=new aZ(T$,"scales"),this._typedRegistries=[this.controllers,this.scales,this.elements]}add(...Q){this._each("register",Q)}remove(...Q){this._each("unregister",Q)}addControllers(...Q){this._each("register",Q,this.controllers)}addElements(...Q){this._each("register",Q,this.elements)}addPlugins(...Q){this._each("register",Q,this.plugins)}addScales(...Q){this._each("register",Q,this.scales)}getController(Q){return this._get(Q,this.controllers,"controller")}getElement(Q){return this._get(Q,this.elements,"element")}getPlugin(Q){return this._get(Q,this.plugins,"plugin")}getScale(Q){return this._get(Q,this.scales,"scale")}removeControllers(...Q){this._each("unregister",Q,this.controllers)}removeElements(...Q){this._each("unregister",Q,this.elements)}removePlugins(...Q){this._each("unregister",Q,this.plugins)}removeScales(...Q){this._each("unregister",Q,this.scales)}_each(Q,J,q){[...J].forEach((Y)=>{let U=q||this._getRegistryForType(Y);if(q||U.isForType(Y)||U===this.plugins&&Y.id)this._exec(Q,U,Y);else X1(Y,(K)=>{let M=q||this._getRegistryForType(K);this._exec(Q,M,K)})})}_exec(Q,J,q){let Y=aJ(Q);W1(q["before"+Y],[],q),J[Q](q),W1(q["after"+Y],[],q)}_getRegistryForType(Q){for(let J=0;J<this._typedRegistries.length;J++){let q=this._typedRegistries[J];if(q.isForType(Q))return q}return this.plugins}_get(Q,J,q){let Y=J.get(Q);if(Y===void 0)throw Error('"'+Q+'" is not a registered '+q+".");return Y}}var _8=new iT;class tT{constructor(){this._init=void 0}notify(Q,J,q,Y){if(J==="beforeInit")this._init=this._createDescriptors(Q,!0),this._notify(this._init,Q,"install");if(this._init===void 0)return;let U=Y?this._descriptors(Q).filter(Y):this._descriptors(Q),K=this._notify(U,Q,J,q);if(J==="afterDestroy")this._notify(U,Q,"stop"),this._notify(this._init,Q,"uninstall"),this._init=void 0;return K}_notify(Q,J,q,Y){Y=Y||{};for(let U of Q){let K=U.plugin,M=K[q],H=[J,Y,U.options];if(W1(M,H,K)===!1&&Y.cancelable)return!1}return!0}invalidate(){if(!t0(this._cache))this._oldCache=this._cache,this._cache=void 0}_descriptors(Q){if(this._cache)return this._cache;let J=this._cache=this._createDescriptors(Q);return this._notifyStateChanges(Q),J}_createDescriptors(Q,J){let q=Q&&Q.config,Y=h0(q.options&&q.options.plugins,{}),U=oI(q);return Y===!1&&!J?[]:iI(Q,U,Y,J)}_notifyStateChanges(Q){let J=this._oldCache||[],q=this._cache,Y=(U,K)=>U.filter((M)=>!K.some((H)=>M.plugin.id===H.plugin.id));this._notify(Y(J,q),Q,"stop"),this._notify(Y(q,J),Q,"start")}}function oI(Q){let J={},q=[],Y=Object.keys(_8.plugins.items);for(let K=0;K<Y.length;K++)q.push(_8.getPlugin(Y[K]));let U=Q.plugins||[];for(let K=0;K<U.length;K++){let M=U[K];if(q.indexOf(M)===-1)q.push(M),J[M.id]=!0}return{plugins:q,localIds:J}}function aI(Q,J){if(!J&&Q===!1)return null;if(Q===!0)return{};return Q}function iI(Q,{plugins:J,localIds:q},Y,U){let K=[],M=Q.getContext();for(let H of J){let F=H.id,w=aI(Y[F],U);if(w===null)continue;K.push({plugin:H,options:tI(Q.config,{plugin:H,local:q[F]},w,M)})}return K}function tI(Q,{plugin:J,local:q},Y,U){let K=Q.pluginScopeKeys(J),M=Q.getOptionScopes(Y,K);if(q&&J.defaults)M.push(J.defaults);return Q.createResolver(M,U,[""],{scriptable:!1,indexable:!1,allKeys:!0})}function PN(Q,J){let q=D1.datasets[Q]||{};return((J.datasets||{})[Q]||{}).indexAxis||J.indexAxis||q.indexAxis||"x"}function eI(Q,J){let q=Q;if(Q==="_index_")q=J;else if(Q==="_value_")q=J==="x"?"y":"x";return q}function $O(Q,J){return Q===J?"_index_":"_value_"}function KT(Q){if(Q==="x"||Q==="y"||Q==="r")return Q}function ZO(Q){if(Q==="top"||Q==="bottom")return"x";if(Q==="left"||Q==="right")return"y"}function CN(Q,...J){if(KT(Q))return Q;for(let q of J){let Y=q.axis||ZO(q.position)||Q.length>1&&KT(Q[0].toLowerCase());if(Y)return Y}throw Error(`Cannot determine type of '${Q}' axis. Please provide 'axis' or 'position' option.`)}function BT(Q,J,q){if(q[J+"AxisID"]===Q)return{axis:J}}function QO(Q,J){if(J.data&&J.data.datasets){let q=J.data.datasets.filter((Y)=>Y.xAxisID===Q||Y.yAxisID===Q);if(q.length)return BT(Q,"x",q[0])||BT(Q,"y",q[0])}return{}}function GO(Q,J){let q=Y2[Q.type]||{scales:{}},Y=J.scales||{},U=PN(Q.type,J),K=Object.create(null);return Object.keys(Y).forEach((M)=>{let H=Y[M];if(!n0(H))return console.error(`Invalid scale configuration for scale: ${M}`);if(H._proxy)return console.warn(`Ignoring resolver passed as options for scale: ${M}`);let F=CN(M,H,QO(M,Q),D1.scales[H.type]),w=$O(F,U),T=q.scales||{};K[M]=h9(Object.create(null),[{axis:F},H,T[F],T[w]])}),Q.data.datasets.forEach((M)=>{let H=M.type||Q.type,F=M.indexAxis||PN(H,J),T=(Y2[H]||{}).scales||{};Object.keys(T).forEach((_)=>{let L=eI(_,F),P=M[L+"AxisID"]||L;K[P]=K[P]||Object.create(null),h9(K[P],[{axis:L},Y[P],T[_]])})}),Object.keys(K).forEach((M)=>{let H=K[M];h9(H,[D1.scales[H.type],D1.scale])}),K}function eT(Q){let J=Q.options||(Q.options={});J.plugins=h0(J.plugins,{}),J.scales=GO(Q,J)}function $_(Q){return Q=Q||{},Q.datasets=Q.datasets||[],Q.labels=Q.labels||[],Q}function JO(Q){return Q=Q||{},Q.data=$_(Q.data),eT(Q),Q}var MT=new Map,Z_=new Set;function Nq(Q,J){let q=MT.get(Q);if(!q)q=J(),MT.set(Q,q),Z_.add(q);return q}var nZ=(Q,J,q)=>{let Y=F$(J,q);if(Y!==void 0)Q.add(Y)};class Q_{constructor(Q){this._config=JO(Q),this._scopeCache=new Map,this._resolverCache=new Map}get platform(){return this._config.platform}get type(){return this._config.type}set type(Q){this._config.type=Q}get data(){return this._config.data}set data(Q){this._config.data=$_(Q)}get options(){return this._config.options}set options(Q){this._config.options=Q}get plugins(){return this._config.plugins}update(){let Q=this._config;this.clearCache(),eT(Q)}clearCache(){this._scopeCache.clear(),this._resolverCache.clear()}datasetScopeKeys(Q){return Nq(Q,()=>[[`datasets.${Q}`,""]])}datasetAnimationScopeKeys(Q,J){return Nq(`${Q}.transition.${J}`,()=>[[`datasets.${Q}.transitions.${J}`,`transitions.${J}`],[`datasets.${Q}`,""]])}datasetElementScopeKeys(Q,J){return Nq(`${Q}-${J}`,()=>[[`datasets.${Q}.elements.${J}`,`datasets.${Q}`,`elements.${J}`,""]])}pluginScopeKeys(Q){let J=Q.id,q=this.type;return Nq(`${q}-plugin-${J}`,()=>[[`plugins.${J}`,...Q.additionalOptionScopes||[]]])}_cachedScopes(Q,J){let q=this._scopeCache,Y=q.get(Q);if(!Y||J)Y=new Map,q.set(Q,Y);return Y}getOptionScopes(Q,J,q){let{options:Y,type:U}=this,K=this._cachedScopes(Q,q),M=K.get(J);if(M)return M;let H=new Set;J.forEach((w)=>{if(Q)H.add(Q),w.forEach((T)=>nZ(H,Q,T));w.forEach((T)=>nZ(H,Y,T)),w.forEach((T)=>nZ(H,Y2[U]||{},T)),w.forEach((T)=>nZ(H,D1,T)),w.forEach((T)=>nZ(H,Zq,T))});let F=Array.from(H);if(F.length===0)F.push(Object.create(null));if(Z_.has(J))K.set(J,F);return F}chartOptionScopes(){let{options:Q,type:J}=this;return[Q,Y2[J]||{},D1.datasets[J]||{},{type:J},D1,Zq]}resolveNamedOptions(Q,J,q,Y=[""]){let U={$shared:!0},{resolver:K,subPrefixes:M}=HT(this._resolverCache,Q,Y),H=K;if(XO(K,J)){U.$shared=!1,q=t8(q)?q():q;let F=this.createResolver(Q,q,M);H=H$(K,q,F)}for(let F of J)U[F]=H[F];return U}createResolver(Q,J,q=[""],Y){let{resolver:U}=HT(this._resolverCache,Q,q);return n0(J)?H$(U,J,void 0,Y):U}}function HT(Q,J,q){let Y=Q.get(J);if(!Y)Y=new Map,Q.set(J,Y);let U=q.join(),K=Y.get(U);if(!K)K={resolver:Gq(J,q),subPrefixes:q.filter((H)=>!H.toLowerCase().includes("hover"))},Y.set(U,K);return K}var qO=(Q)=>n0(Q)&&Object.getOwnPropertyNames(Q).some((J)=>t8(Q[J]));function XO(Q,J){let{isScriptable:q,isIndexable:Y}=GN(Q);for(let U of J){let K=q(U),M=Y(U),H=(M||K)&&Q[U];if(K&&(t8(H)||qO(H))||M&&_1(H))return!0}return!1}var YO="4.5.1",UO=["top","bottom","left","right","chartArea"];function FT(Q,J){return Q==="top"||Q==="bottom"||UO.indexOf(Q)===-1&&J==="x"}function WT(Q,J){return function(q,Y){return q[Q]===Y[Q]?q[J]-Y[J]:q[Q]-Y[Q]}}function RT(Q){let J=Q.chart,q=J.options.animation;J.notifyPlugins("afterRender"),W1(q&&q.onComplete,[Q],J)}function NO(Q){let J=Q.chart,q=J.options.animation;W1(q&&q.onProgress,[Q],J)}function G_(Q){if(Jq()&&typeof Q==="string")Q=document.getElementById(Q);else if(Q&&Q.length)Q=Q[0];if(Q&&Q.canvas)Q=Q.canvas;return Q}var Hq={},wT=(Q)=>{let J=G_(Q);return Object.values(Hq).filter((q)=>q.canvas===J).pop()};function KO(Q,J,q){let Y=Object.keys(Q);for(let U of Y){let K=+U;if(K>=J){let M=Q[U];if(delete Q[U],q>0||K>J)Q[K+q]=M}}}function BO(Q,J,q,Y){if(!q||Q.type==="mouseout")return null;if(Y)return J;return Q}class P5{static defaults=D1;static instances=Hq;static overrides=Y2;static registry=_8;static version=YO;static getChart=wT;static register(...Q){_8.add(...Q),TT()}static unregister(...Q){_8.remove(...Q),TT()}constructor(Q,J){let q=this.config=new Q_(J),Y=G_(Q),U=wT(Y);if(U)throw Error("Canvas is already in use. Chart with ID '"+U.id+"' must be destroyed before the canvas with ID '"+U.canvas.id+"' can be reused.");let K=q.createResolver(q.chartOptionScopes(),this.getContext());this.platform=new(q.platform||vI(Y)),this.platform.updateConfig(q);let M=this.platform.acquireContext(Y,K.aspectRatio),H=M&&M.canvas,F=H&&H.height,w=H&&H.width;if(this.id=Mw(),this.ctx=M,this.canvas=H,this.width=w,this.height=F,this._options=K,this._aspectRatio=this.aspectRatio,this._layers=[],this._metasets=[],this._stacks=void 0,this.boxes=[],this.currentDevicePixelRatio=void 0,this.chartArea=void 0,this._active=[],this._lastEvent=void 0,this._listeners={},this._responsiveListeners=void 0,this._sortedMetasets=[],this.scales={},this._plugins=new tT,this.$proxies={},this._hiddenIndices={},this.attached=!1,this._animationsDisabled=void 0,this.$context=void 0,this._doResize=Pw((T)=>this.update(T),K.resizeDelay||0),this._dataChanges=[],Hq[this.id]=this,!M||!H){console.error("Failed to create chart: can't acquire context from the given item");return}if(G6.listen(this,"complete",RT),G6.listen(this,"progress",NO),this._initialize(),this.attached)this.update()}get aspectRatio(){let{options:{aspectRatio:Q,maintainAspectRatio:J},width:q,height:Y,_aspectRatio:U}=this;if(!t0(Q))return Q;if(J&&U)return U;return Y?q/Y:null}get data(){return this.config.data}set data(Q){this.config.data=Q}get options(){return this._options}set options(Q){this.config.options=Q}get registry(){return _8}_initialize(){if(this.notifyPlugins("beforeInit"),this.options.responsive)this.resize();else XN(this,this.options.devicePixelRatio);return this.bindEvents(),this.notifyPlugins("afterInit"),this}clear(){return eU(this.canvas,this.ctx),this}stop(){return G6.stop(this),this}resize(Q,J){if(!G6.running(this))this._resize(Q,J);else this._resizeBeforeDraw={width:Q,height:J}}_resize(Q,J){let q=this.options,Y=this.canvas,U=q.maintainAspectRatio&&this.aspectRatio,K=this.platform.getMaximumSize(Y,Q,J,U),M=q.devicePixelRatio||this.platform.getDevicePixelRatio(),H=this.width?"resize":"attach";if(this.width=K.width,this.height=K.height,this._aspectRatio=this.aspectRatio,!XN(this,M,!0))return;if(this.notifyPlugins("resize",{size:K}),W1(q.onResize,[this,K],this),this.attached){if(this._doResize(H))this.render()}}ensureScalesHaveIDs(){let J=this.options.scales||{};X1(J,(q,Y)=>{q.id=Y})}buildOrUpdateScales(){let Q=this.options,J=Q.scales,q=this.scales,Y=Object.keys(q).reduce((K,M)=>{return K[M]=!1,K},{}),U=[];if(J)U=U.concat(Object.keys(J).map((K)=>{let M=J[K],H=CN(K,M),F=H==="r",w=H==="x";return{options:M,dposition:F?"chartArea":w?"bottom":"left",dtype:F?"radialLinear":w?"category":"linear"}}));X1(U,(K)=>{let M=K.options,H=M.id,F=CN(H,M),w=h0(M.type,K.dtype);if(M.position===void 0||FT(M.position,F)!==FT(K.dposition))M.position=K.dposition;Y[H]=!0;let T=null;if(H in q&&q[H].type===w)T=q[H];else T=new(_8.getScale(w))({id:H,type:w,ctx:this.ctx,chart:this}),q[T.id]=T;T.init(M,Q)}),X1(Y,(K,M)=>{if(!K)delete q[M]}),X1(q,(K)=>{V4.configure(this,K,K.options),V4.addBox(this,K)})}_updateMetasets(){let Q=this._metasets,J=this.data.datasets.length,q=Q.length;if(Q.sort((Y,U)=>Y.index-U.index),q>J){for(let Y=J;Y<q;++Y)this._destroyDatasetMeta(Y);Q.splice(J,q-J)}this._sortedMetasets=Q.slice(0).sort(WT("order","index"))}_removeUnreferencedMetasets(){let{_metasets:Q,data:{datasets:J}}=this;if(Q.length>J.length)delete this._stacks;Q.forEach((q,Y)=>{if(J.filter((U)=>U===q._dataset).length===0)this._destroyDatasetMeta(Y)})}buildOrUpdateControllers(){let Q=[],J=this.data.datasets,q,Y;this._removeUnreferencedMetasets();for(q=0,Y=J.length;q<Y;q++){let U=J[q],K=this.getDatasetMeta(q),M=U.type||this.config.type;if(K.type&&K.type!==M)this._destroyDatasetMeta(q),K=this.getDatasetMeta(q);if(K.type=M,K.indexAxis=U.indexAxis||PN(M,this.options),K.order=U.order||0,K.index=q,K.label=""+U.label,K.visible=this.isDatasetVisible(q),K.controller)K.controller.updateIndex(q),K.controller.linkScales();else{let H=_8.getController(M),{datasetElementType:F,dataElementType:w}=D1.datasets[M];Object.assign(H,{dataElementType:_8.getElement(w),datasetElementType:F&&_8.getElement(F)}),K.controller=new H(this,q),Q.push(K.controller)}}return this._updateMetasets(),Q}_resetElements(){X1(this.data.datasets,(Q,J)=>{this.getDatasetMeta(J).controller.reset()},this)}reset(){this._resetElements(),this.notifyPlugins("reset")}update(Q){let J=this.config;J.update();let q=this._options=J.createResolver(J.chartOptionScopes(),this.getContext()),Y=this._animationsDisabled=!q.animation;if(this._updateScales(),this._checkEventBindings(),this._updateHiddenIndices(),this._plugins.invalidate(),this.notifyPlugins("beforeUpdate",{mode:Q,cancelable:!0})===!1)return;let U=this.buildOrUpdateControllers();this.notifyPlugins("beforeElementsUpdate");let K=0;for(let F=0,w=this.data.datasets.length;F<w;F++){let{controller:T}=this.getDatasetMeta(F),_=!Y&&U.indexOf(T)===-1;T.buildOrUpdateElements(_),K=Math.max(+T.getMaxOverflow(),K)}if(K=this._minPadding=q.layout.autoPadding?K:0,this._updateLayout(K),!Y)X1(U,(F)=>{F.reset()});this._updateDatasets(Q),this.notifyPlugins("afterUpdate",{mode:Q}),this._layers.sort(WT("z","_idx"));let{_active:M,_lastEvent:H}=this;if(H)this._eventHandler(H,!0);else if(M.length)this._updateHoverStyles(M,M,!0);this.render()}_updateScales(){X1(this.scales,(Q)=>{V4.removeBox(this,Q)}),this.ensureScalesHaveIDs(),this.buildOrUpdateScales()}_checkEventBindings(){let Q=this.options,J=new Set(Object.keys(this._listeners)),q=new Set(Q.events);if(!dU(J,q)||!!this._responsiveListeners!==Q.responsive)this.unbindEvents(),this.bindEvents()}_updateHiddenIndices(){let{_hiddenIndices:Q}=this,J=this._getUniformDataChanges()||[];for(let{method:q,start:Y,count:U}of J){let K=q==="_removeElements"?-U:U;KO(Q,Y,K)}}_getUniformDataChanges(){let Q=this._dataChanges;if(!Q||!Q.length)return;this._dataChanges=[];let J=this.data.datasets.length,q=(U)=>new Set(Q.filter((K)=>K[0]===U).map((K,M)=>M+","+K.splice(1).join(","))),Y=q(0);for(let U=1;U<J;U++)if(!dU(Y,q(U)))return;return Array.from(Y).map((U)=>U.split(",")).map((U)=>({method:U[1],start:+U[2],count:+U[3]}))}_updateLayout(Q){if(this.notifyPlugins("beforeLayout",{cancelable:!0})===!1)return;V4.update(this,this.width,this.height,Q);let J=this.chartArea,q=J.width<=0||J.height<=0;this._layers=[],X1(this.boxes,(Y)=>{if(q&&Y.position==="chartArea")return;if(Y.configure)Y.configure();this._layers.push(...Y._layers())},this),this._layers.forEach((Y,U)=>{Y._idx=U}),this.notifyPlugins("afterLayout")}_updateDatasets(Q){if(this.notifyPlugins("beforeDatasetsUpdate",{mode:Q,cancelable:!0})===!1)return;for(let J=0,q=this.data.datasets.length;J<q;++J)this.getDatasetMeta(J).controller.configure();for(let J=0,q=this.data.datasets.length;J<q;++J)this._updateDataset(J,t8(Q)?Q({datasetIndex:J}):Q);this.notifyPlugins("afterDatasetsUpdate",{mode:Q})}_updateDataset(Q,J){let q=this.getDatasetMeta(Q),Y={meta:q,index:Q,mode:J,cancelable:!0};if(this.notifyPlugins("beforeDatasetUpdate",Y)===!1)return;q.controller._update(J),Y.cancelable=!1,this.notifyPlugins("afterDatasetUpdate",Y)}render(){if(this.notifyPlugins("beforeRender",{cancelable:!0})===!1)return;if(G6.has(this)){if(this.attached&&!G6.running(this))G6.start(this)}else this.draw(),RT({chart:this})}draw(){let Q;if(this._resizeBeforeDraw){let{width:q,height:Y}=this._resizeBeforeDraw;this._resizeBeforeDraw=null,this._resize(q,Y)}if(this.clear(),this.width<=0||this.height<=0)return;if(this.notifyPlugins("beforeDraw",{cancelable:!0})===!1)return;let J=this._layers;for(Q=0;Q<J.length&&J[Q].z<=0;++Q)J[Q].draw(this.chartArea);this._drawDatasets();for(;Q<J.length;++Q)J[Q].draw(this.chartArea);this.notifyPlugins("afterDraw")}_getSortedDatasetMetas(Q){let J=this._sortedMetasets,q=[],Y,U;for(Y=0,U=J.length;Y<U;++Y){let K=J[Y];if(!Q||K.visible)q.push(K)}return q}getSortedVisibleDatasetMetas(){return this._getSortedDatasetMetas(!0)}_drawDatasets(){if(this.notifyPlugins("beforeDatasetsDraw",{cancelable:!0})===!1)return;let Q=this.getSortedVisibleDatasetMetas();for(let J=Q.length-1;J>=0;--J)this._drawDataset(Q[J]);this.notifyPlugins("afterDatasetsDraw")}_drawDataset(Q){let J=this.ctx,q={meta:Q,index:Q.index,cancelable:!0},Y=MN(this,Q);if(this.notifyPlugins("beforeDatasetDraw",q)===!1)return;if(Y)mZ(J,Y);if(Q.controller.draw(),Y)dZ(J);q.cancelable=!1,this.notifyPlugins("afterDatasetDraw",q)}isPointInArea(Q){return R8(Q,this.chartArea,this._minPadding)}getElementsAtEventForMode(Q,J,q,Y){let U=HI.modes[J];if(typeof U==="function")return U(this,Q,q,Y);return[]}getDatasetMeta(Q){let J=this.data.datasets[Q],q=this._metasets,Y=q.filter((U)=>U&&U._dataset===J).pop();if(!Y)Y={type:null,data:[],dataset:null,controller:null,hidden:null,xAxisID:null,yAxisID:null,order:J&&J.order||0,index:Q,_dataset:J,_parsed:[],_sorted:!1},q.push(Y);return Y}getContext(){return this.$context||(this.$context=Q6(null,{chart:this,type:"chart"}))}getVisibleDatasetCount(){return this.getSortedVisibleDatasetMetas().length}isDatasetVisible(Q){let J=this.data.datasets[Q];if(!J)return!1;let q=this.getDatasetMeta(Q);return typeof q.hidden==="boolean"?!q.hidden:!J.hidden}setDatasetVisibility(Q,J){let q=this.getDatasetMeta(Q);q.hidden=!J}toggleDataVisibility(Q){this._hiddenIndices[Q]=!this._hiddenIndices[Q]}getDataVisibility(Q){return!this._hiddenIndices[Q]}_updateVisibility(Q,J,q){let Y=q?"show":"hide",U=this.getDatasetMeta(Q),K=U.controller._resolveAnimations(void 0,Y);if(x9(J))U.data[J].hidden=!q,this.update();else this.setDatasetVisibility(Q,q),K.update(U,{visible:q}),this.update((M)=>M.datasetIndex===Q?Y:void 0)}hide(Q,J){this._updateVisibility(Q,J,!1)}show(Q,J){this._updateVisibility(Q,J,!0)}_destroyDatasetMeta(Q){let J=this._metasets[Q];if(J&&J.controller)J.controller._destroy();delete this._metasets[Q]}_stop(){let Q,J;this.stop(),G6.remove(this);for(Q=0,J=this.data.datasets.length;Q<J;++Q)this._destroyDatasetMeta(Q)}destroy(){this.notifyPlugins("beforeDestroy");let{canvas:Q,ctx:J}=this;if(this._stop(),this.config.clearCache(),Q)this.unbindEvents(),eU(Q,J),this.platform.releaseContext(J),this.canvas=null,this.ctx=null;delete Hq[this.id],this.notifyPlugins("afterDestroy")}toBase64Image(...Q){return this.canvas.toDataURL(...Q)}bindEvents(){if(this.bindUserEvents(),this.options.responsive)this.bindResponsiveEvents();else this.attached=!0}bindUserEvents(){let Q=this._listeners,J=this.platform,q=(U,K)=>{J.addEventListener(this,U,K),Q[U]=K},Y=(U,K,M)=>{U.offsetX=K,U.offsetY=M,this._eventHandler(U)};X1(this.options.events,(U)=>q(U,Y))}bindResponsiveEvents(){if(!this._responsiveListeners)this._responsiveListeners={};let Q=this._responsiveListeners,J=this.platform,q=(H,F)=>{J.addEventListener(this,H,F),Q[H]=F},Y=(H,F)=>{if(Q[H])J.removeEventListener(this,H,F),delete Q[H]},U=(H,F)=>{if(this.canvas)this.resize(H,F)},K,M=()=>{Y("attach",M),this.attached=!0,this.resize(),q("resize",U),q("detach",K)};if(K=()=>{this.attached=!1,Y("resize",U),this._stop(),this._resize(0,0),q("attach",M)},J.isAttached(this.canvas))M();else K()}unbindEvents(){X1(this._listeners,(Q,J)=>{this.platform.removeEventListener(this,J,Q)}),this._listeners={},X1(this._responsiveListeners,(Q,J)=>{this.platform.removeEventListener(this,J,Q)}),this._responsiveListeners=void 0}updateHoverStyle(Q,J,q){let Y=q?"set":"remove",U,K,M,H;if(J==="dataset")U=this.getDatasetMeta(Q[0].datasetIndex),U.controller["_"+Y+"DatasetHoverStyle"]();for(M=0,H=Q.length;M<H;++M){K=Q[M];let F=K&&this.getDatasetMeta(K.datasetIndex).controller;if(F)F[Y+"HoverStyle"](K.element,K.datasetIndex,K.index)}}getActiveElements(){return this._active||[]}setActiveElements(Q){let J=this._active||[],q=Q.map(({datasetIndex:U,index:K})=>{let M=this.getDatasetMeta(U);if(!M)throw Error("No dataset found at index "+U);return{datasetIndex:U,element:M.data[K],index:K}});if(!xZ(q,J))this._active=q,this._lastEvent=null,this._updateHoverStyles(q,J)}notifyPlugins(Q,J,q){return this._plugins.notify(this,Q,J,q)}isPluginEnabled(Q){return this._plugins._cache.filter((J)=>J.plugin.id===Q).length===1}_updateHoverStyles(Q,J,q){let Y=this.options.hover,U=(H,F)=>H.filter((w)=>!F.some((T)=>w.datasetIndex===T.datasetIndex&&w.index===T.index)),K=U(J,Q),M=q?Q:U(Q,J);if(K.length)this.updateHoverStyle(K,Y.mode,!1);if(M.length&&Y.mode)this.updateHoverStyle(M,Y.mode,!0)}_eventHandler(Q,J){let q={event:Q,replay:J,cancelable:!0,inChartArea:this.isPointInArea(Q)},Y=(K)=>(K.options.events||this.options.events).includes(Q.native.type);if(this.notifyPlugins("beforeEvent",q,Y)===!1)return;let U=this._handleEvent(Q,J,q.inChartArea);if(q.cancelable=!1,this.notifyPlugins("afterEvent",q,Y),U||q.changed)this.render();return this}_handleEvent(Q,J,q){let{_active:Y=[],options:U}=this,K=J,M=this._getActiveElements(Q,Y,q,K),H=Ww(Q),F=BO(Q,this._lastEvent,q,H);if(q){if(this._lastEvent=null,W1(U.onHover,[Q,M,this],this),H)W1(U.onClick,[Q,M,this],this)}let w=!xZ(M,Y);if(w||J)this._active=M,this._updateHoverStyles(M,Y,J);return this._lastEvent=F,w}_getActiveElements(Q,J,q,Y){if(Q.type==="mouseout")return[];if(!q)return J;let U=this.options.hover;return this.getElementsAtEventForMode(Q,U.mode,U,Y)}}function TT(){return X1(P5.instances,(Q)=>Q._plugins.invalidate())}function J_(Q,J,q=J){Q.lineCap=h0(q.borderCapStyle,J.borderCapStyle),Q.setLineDash(h0(q.borderDash,J.borderDash)),Q.lineDashOffset=h0(q.borderDashOffset,J.borderDashOffset),Q.lineJoin=h0(q.borderJoinStyle,J.borderJoinStyle),Q.lineWidth=h0(q.borderWidth,J.borderWidth),Q.strokeStyle=h0(q.borderColor,J.borderColor)}function MO(Q,J,q){Q.lineTo(q.x,q.y)}function HO(Q){if(Q.stepped)return Sw;if(Q.tension||Q.cubicInterpolationMode==="monotone")return vw;return MO}function q_(Q,J,q={}){let Y=Q.length,{start:U=0,end:K=Y-1}=q,{start:M,end:H}=J,F=Math.max(U,M),w=Math.min(K,H),T=U<M&&K<M||U>H&&K>H;return{count:Y,start:F,loop:J.loop,ilen:w<F&&!T?Y+w-F:w-F}}function FO(Q,J,q,Y){let{points:U,options:K}=J,{count:M,start:H,loop:F,ilen:w}=q_(U,q,Y),T=HO(K),{move:_=!0,reverse:L}=Y||{},P,O,A;for(P=0;P<=w;++P){if(O=U[(H+(L?w-P:P))%M],O.skip)continue;else if(_)Q.moveTo(O.x,O.y),_=!1;else T(Q,A,O,L,K.stepped);A=O}if(F)O=U[(H+(L?w:0))%M],T(Q,A,O,L,K.stepped);return!!F}function WO(Q,J,q,Y){let U=J.points,{count:K,start:M,ilen:H}=q_(U,q,Y),{move:F=!0,reverse:w}=Y||{},T=0,_=0,L,P,O,A,C,g,m=(a)=>(M+(w?H-a:a))%K,o=()=>{if(A!==C)Q.lineTo(T,C),Q.lineTo(T,A),Q.lineTo(T,g)};if(F)P=U[m(0)],Q.moveTo(P.x,P.y);for(L=0;L<=H;++L){if(P=U[m(L)],P.skip)continue;let{x:a,y:s}=P,Q0=a|0;if(Q0===O){if(s<A)A=s;else if(s>C)C=s;T=(_*T+a)/++_}else o(),Q.lineTo(a,s),O=Q0,_=0,A=C=s;g=s}o()}function IN(Q){let J=Q.options,q=J.borderDash&&J.borderDash.length;return!Q._decimated&&!Q._loop&&!J.tension&&J.cubicInterpolationMode!=="monotone"&&!J.stepped&&!q?WO:FO}function RO(Q){if(Q.stepped)return mw;if(Q.tension||Q.cubicInterpolationMode==="monotone")return dw;return J2}function wO(Q,J,q,Y){let U=J._path;if(!U){if(U=J._path=new Path2D,J.path(U,q,Y))U.closePath()}J_(Q,J.options),Q.stroke(U)}function TO(Q,J,q,Y){let{segments:U,options:K}=J,M=IN(J);for(let H of U){if(J_(Q,K,H.style),Q.beginPath(),M(Q,J,H,{start:q,end:q+Y-1}))Q.closePath();Q.stroke()}}var _O=typeof Path2D==="function";function zO(Q,J,q,Y){if(_O&&!J.options.segment)wO(Q,J,q,Y);else TO(Q,J,q,Y)}class u5 extends q6{static id="line";static defaults={borderCapStyle:"butt",borderDash:[],borderDashOffset:0,borderJoinStyle:"miter",borderWidth:3,capBezierPoints:!0,cubicInterpolationMode:"default",fill:!1,spanGaps:!1,stepped:!1,tension:0};static defaultRoutes={backgroundColor:"backgroundColor",borderColor:"borderColor"};static descriptors={_scriptable:!0,_indexable:(Q)=>Q!=="borderDash"&&Q!=="fill"};constructor(Q){super();if(this.animated=!0,this.options=void 0,this._chart=void 0,this._loop=void 0,this._fullLoop=void 0,this._path=void 0,this._points=void 0,this._segments=void 0,this._decimated=!1,this._pointsUpdated=!1,this._datasetIndex=void 0,Q)Object.assign(this,Q)}updateControlPoints(Q,J){let q=this.options;if((q.tension||q.cubicInterpolationMode==="monotone")&&!q.stepped&&!this._pointsUpdated){let Y=q.spanGaps?this._loop:this._fullLoop;hw(this._points,q,Q,Y,J),this._pointsUpdated=!0}}set points(Q){this._points=Q,delete this._segments,delete this._path,this._pointsUpdated=!1}get points(){return this._points}get segments(){return this._segments||(this._segments=cw(this,this.options.segment))}first(){let Q=this.segments,J=this.points;return Q.length&&J[Q[0].start]}last(){let Q=this.segments,J=this.points,q=Q.length;return q&&J[Q[q-1].end]}interpolate(Q,J){let q=this.options,Y=Q[J],U=this.points,K=BN(this,{property:J,start:Y,end:Y});if(!K.length)return;let M=[],H=RO(q),F,w;for(F=0,w=K.length;F<w;++F){let{start:T,end:_}=K[F],L=U[T],P=U[_];if(L===P){M.push(L);continue}let O=Math.abs((Y-L[J])/(P[J]-L[J])),A=H(L,P,O,q.stepped);A[J]=Q[J],M.push(A)}return M.length===1?M[0]:M}pathSegment(Q,J,q){return IN(this)(Q,this,J,q)}path(Q,J,q){let Y=this.segments,U=IN(this),K=this._loop;J=J||0,q=q||this.points.length-J;for(let M of Y)K&=U(Q,this,M,{start:J,end:J+q-1});return!!K}draw(Q,J,q,Y){let U=this.options||{};if((this.points||[]).length&&U.borderWidth)Q.save(),zO(Q,this,q,Y),Q.restore();if(this.animated)this._pointsUpdated=!1,this._path=void 0}}function _T(Q,J,q,Y){let U=Q.options,{[q]:K}=Q.getProps([q],Y);return Math.abs(J-K)<U.radius+U.hitRadius}class g4 extends q6{static id="point";parsed;skip;stop;static defaults={borderWidth:1,hitRadius:1,hoverBorderWidth:1,hoverRadius:4,pointStyle:"circle",radius:3,rotation:0};static defaultRoutes={backgroundColor:"backgroundColor",borderColor:"borderColor"};constructor(Q){super();if(this.options=void 0,this.parsed=void 0,this.skip=void 0,this.stop=void 0,Q)Object.assign(this,Q)}inRange(Q,J,q){let Y=this.options,{x:U,y:K}=this.getProps(["x","y"],q);return Math.pow(Q-U,2)+Math.pow(J-K,2)<Math.pow(Y.hitRadius+Y.radius,2)}inXRange(Q,J){return _T(this,Q,"x",J)}inYRange(Q,J){return _T(this,Q,"y",J)}getCenterPoint(Q){let{x:J,y:q}=this.getProps(["x","y"],Q);return{x:J,y:q}}size(Q){Q=Q||this.options||{};let J=Q.radius||0;J=Math.max(J,J&&Q.hoverRadius||0);let q=J&&Q.borderWidth||0;return(J+q)*2}draw(Q,J){let q=this.options;if(this.skip||q.radius<0.1||!R8(this,J,this.size(q)/2))return;Q.strokeStyle=q.borderColor,Q.lineWidth=q.borderWidth,Q.fillStyle=q.backgroundColor,Qq(Q,q,this.x,this.y)}getRange(){let Q=this.options||{};return Q.radius+Q.hitRadius}}function X_(Q,J){let{x:q,y:Y,base:U,width:K,height:M}=Q.getProps(["x","y","base","width","height"],J),H,F,w,T,_;if(Q.horizontal)_=M/2,H=Math.min(q,U),F=Math.max(q,U),w=Y-_,T=Y+_;else _=K/2,H=q-_,F=q+_,w=Math.min(Y,U),T=Math.max(Y,U);return{left:H,top:w,right:F,bottom:T}}function M2(Q,J,q,Y){return Q?0:y5(J,q,Y)}function LO(Q,J,q){let Y=Q.options.borderWidth,U=Q.borderSkipped,K=QN(Y);return{t:M2(U.top,K.top,0,q),r:M2(U.right,K.right,0,J),b:M2(U.bottom,K.bottom,0,q),l:M2(U.left,K.left,0,J)}}function VO(Q,J,q){let{enableBorderRadius:Y}=Q.getProps(["enableBorderRadius"]),U=Q.options.borderRadius,K=K2(U),M=Math.min(J,q),H=Q.borderSkipped,F=Y||n0(U);return{topLeft:M2(!F||H.top||H.left,K.topLeft,0,M),topRight:M2(!F||H.top||H.right,K.topRight,0,M),bottomLeft:M2(!F||H.bottom||H.left,K.bottomLeft,0,M),bottomRight:M2(!F||H.bottom||H.right,K.bottomRight,0,M)}}function EO(Q){let J=X_(Q),q=J.right-J.left,Y=J.bottom-J.top,U=LO(Q,q/2,Y/2),K=VO(Q,q/2,Y/2);return{outer:{x:J.left,y:J.top,w:q,h:Y,radius:K},inner:{x:J.left+U.l,y:J.top+U.t,w:q-U.l-U.r,h:Y-U.t-U.b,radius:{topLeft:Math.max(0,K.topLeft-Math.max(U.t,U.l)),topRight:Math.max(0,K.topRight-Math.max(U.t,U.r)),bottomLeft:Math.max(0,K.bottomLeft-Math.max(U.b,U.l)),bottomRight:Math.max(0,K.bottomRight-Math.max(U.b,U.r))}}}}function zN(Q,J,q,Y){let U=J===null,K=q===null,H=Q&&!(U&&K)&&X_(Q,Y);return H&&(U||Z6(J,H.left,H.right))&&(K||Z6(q,H.top,H.bottom))}function PO(Q){return Q.topLeft||Q.topRight||Q.bottomLeft||Q.bottomRight}function CO(Q,J){Q.rect(J.x,J.y,J.w,J.h)}function LN(Q,J,q={}){let Y=Q.x!==q.x?-J:0,U=Q.y!==q.y?-J:0,K=(Q.x+Q.w!==q.x+q.w?J:0)-Y,M=(Q.y+Q.h!==q.y+q.h?J:0)-U;return{x:Q.x+Y,y:Q.y+U,w:Q.w+K,h:Q.h+M,radius:Q.radius}}class QQ extends q6{static id="bar";static defaults={borderSkipped:"start",borderWidth:0,borderRadius:0,inflateAmount:"auto",pointStyle:void 0};static defaultRoutes={backgroundColor:"backgroundColor",borderColor:"borderColor"};constructor(Q){super();if(this.options=void 0,this.horizontal=void 0,this.base=void 0,this.width=void 0,this.height=void 0,this.inflateAmount=void 0,Q)Object.assign(this,Q)}draw(Q){let{inflateAmount:J,options:{borderColor:q,backgroundColor:Y}}=this,{inner:U,outer:K}=EO(this),M=PO(K.radius)?d9:CO;if(Q.save(),K.w!==U.w||K.h!==U.h)Q.beginPath(),M(Q,LN(K,J,U)),Q.clip(),M(Q,LN(U,-J,K)),Q.fillStyle=q,Q.fill("evenodd");Q.beginPath(),M(Q,LN(U,J)),Q.fillStyle=Y,Q.fill(),Q.restore()}inRange(Q,J,q){return zN(this,Q,J,q)}inXRange(Q,J){return zN(this,Q,null,J)}inYRange(Q,J){return zN(this,null,Q,J)}getCenterPoint(Q){let{x:J,y:q,base:Y,horizontal:U}=this.getProps(["x","y","base","horizontal"],Q);return{x:U?(J+Y)/2:J,y:U?q:(q+Y)/2}}getRange(Q){return Q==="x"?this.width/2:this.height/2}}function IO(Q,J,q){let{segments:Y,points:U}=Q,K=J.points,M=[];for(let H of Y){let{start:F,end:w}=H;w=Rq(F,w,U);let T=ON(q,U[F],U[w],H.loop);if(!J.segments){M.push({source:H,target:T,start:U[F],end:U[w]});continue}let _=BN(J,T);for(let L of _){let P=ON(q,K[L.start],K[L.end],L.loop),O=KN(H,U,P);for(let A of O)M.push({source:A,target:L,start:{[q]:zT(T,P,"start",Math.max)},end:{[q]:zT(T,P,"end",Math.min)}})}}return M}function ON(Q,J,q,Y){if(Y)return;let U=J[Q],K=q[Q];if(Q==="angle")U=k5(U),K=k5(K);return{property:Q,start:U,end:K}}function OO(Q,J){let{x:q=null,y:Y=null}=Q||{},U=J.points,K=[];return J.segments.forEach(({start:M,end:H})=>{H=Rq(M,H,U);let F=U[M],w=U[H];if(Y!==null)K.push({x:F.x,y:Y}),K.push({x:w.x,y:Y});else if(q!==null)K.push({x:q,y:F.y}),K.push({x:q,y:w.y})}),K}function Rq(Q,J,q){for(;J>Q;J--){let Y=q[J];if(!isNaN(Y.x)&&!isNaN(Y.y))break}return J}function zT(Q,J,q,Y){if(Q&&J)return Y(Q[q],J[q]);return Q?Q[q]:J?J[q]:0}function Y_(Q,J){let q=[],Y=!1;if(_1(Q))Y=!0,q=Q;else q=OO(Q,J);return q.length?new u5({points:q,options:{tension:0},_loop:Y,_fullLoop:Y}):null}function LT(Q){return Q&&Q.fill!==!1}function DO(Q,J,q){let U=Q[J].fill,K=[J],M;if(!q)return U;while(U!==!1&&K.indexOf(U)===-1){if(!O1(U))return U;if(M=Q[U],!M)return!1;if(M.visible)return U;K.push(U),U=M.fill}return!1}function jO(Q,J,q){let Y=kO(Q);if(n0(Y))return isNaN(Y.value)?!1:Y;let U=parseFloat(Y);if(O1(U)&&Math.floor(U)===U)return AO(Y[0],J,U,q);return["origin","start","end","stack","shape"].indexOf(Y)>=0&&Y}function AO(Q,J,q,Y){if(Q==="-"||Q==="+")q=J+q;if(q===J||q<0||q>=Y)return!1;return q}function SO(Q,J){let q=null;if(Q==="start")q=J.bottom;else if(Q==="end")q=J.top;else if(n0(Q))q=J.getPixelForValue(Q.value);else if(J.getBasePixel)q=J.getBasePixel();return q}function vO(Q,J,q){let Y;if(Q==="start")Y=q;else if(Q==="end")Y=J.options.reverse?J.min:J.max;else if(n0(Q))Y=Q.value;else Y=J.getBaseValue();return Y}function kO(Q){let J=Q.options,q=J.fill,Y=h0(q&&q.target,q);if(Y===void 0)Y=!!J.backgroundColor;if(Y===!1||Y===null)return!1;if(Y===!0)return"origin";return Y}function bO(Q){let{scale:J,index:q,line:Y}=Q,U=[],K=Y.segments,M=Y.points,H=fO(J,q);H.push(Y_({x:null,y:J.bottom},Y));for(let F=0;F<K.length;F++){let w=K[F];for(let T=w.start;T<=w.end;T++)yO(U,M[T],H)}return new u5({points:U,options:{}})}function fO(Q,J){let q=[],Y=Q.getMatchingVisibleMetas("line");for(let U=0;U<Y.length;U++){let K=Y[U];if(K.index===J)break;if(!K.hidden)q.unshift(K.dataset)}return q}function yO(Q,J,q){let Y=[];for(let U=0;U<q.length;U++){let K=q[U],{first:M,last:H,point:F}=gO(K,J,"x");if(!F||M&&H)continue;if(M)Y.unshift(F);else if(Q.push(F),!H)break}Q.push(...Y)}function gO(Q,J,q){let Y=Q.interpolate(J,q);if(!Y)return{};let U=Y[q],K=Q.segments,M=Q.points,H=!1,F=!1;for(let w=0;w<K.length;w++){let T=K[w],_=M[T.start][q],L=M[T.end][q];if(Z6(U,_,L)){H=U===_,F=U===L;break}}return{first:H,last:F,point:Y}}class gN{constructor(Q){this.x=Q.x,this.y=Q.y,this.radius=Q.radius}pathSegment(Q,J,q){let{x:Y,y:U,radius:K}=this;return J=J||{start:0,end:f5},Q.arc(Y,U,K,J.end,J.start,!0),!q.bounds}interpolate(Q){let{x:J,y:q,radius:Y}=this,U=Q.angle;return{x:J+Math.cos(U)*Y,y:q+Math.sin(U)*Y,angle:U}}}function hO(Q){let{chart:J,fill:q,line:Y}=Q;if(O1(q))return xO(J,q);if(q==="stack")return bO(Q);if(q==="shape")return!0;let U=uO(Q);if(U instanceof gN)return U;return Y_(U,Y)}function xO(Q,J){let q=Q.getDatasetMeta(J);return q&&Q.isDatasetVisible(J)?q.dataset:null}function uO(Q){if((Q.scale||{}).getPointPositionForValue)return dO(Q);return mO(Q)}function mO(Q){let{scale:J={},fill:q}=Q,Y=SO(q,J);if(O1(Y)){let U=J.isHorizontal();return{x:U?Y:null,y:U?null:Y}}return null}function dO(Q){let{scale:J,fill:q}=Q,Y=J.options,U=J.getLabels().length,K=Y.reverse?J.max:J.min,M=vO(q,J,K),H=[];if(Y.grid.circular){let F=J.getPointPositionForValue(0,K);return new gN({x:F.x,y:F.y,radius:J.getDistanceFromCenterForValue(M)})}for(let F=0;F<U;++F)H.push(J.getPointPositionForValue(F,M));return H}function VN(Q,J,q){let Y=hO(J),{chart:U,index:K,line:M,scale:H,axis:F}=J,w=M.options,T=w.fill,_=w.backgroundColor,{above:L=_,below:P=_}=T||{},O=U.getDatasetMeta(K),A=MN(U,O);if(Y&&M.points.length)mZ(Q,q),pO(Q,{line:M,target:Y,above:L,below:P,area:q,scale:H,axis:F,clip:A}),dZ(Q)}function pO(Q,J){let{line:q,target:Y,above:U,below:K,area:M,scale:H,clip:F}=J,w=q._loop?"angle":J.axis;Q.save();let T=K;if(K!==U){if(w==="x")VT(Q,Y,M.top),EN(Q,{line:q,target:Y,color:U,scale:H,property:w,clip:F}),Q.restore(),Q.save(),VT(Q,Y,M.bottom);else if(w==="y")ET(Q,Y,M.left),EN(Q,{line:q,target:Y,color:K,scale:H,property:w,clip:F}),Q.restore(),Q.save(),ET(Q,Y,M.right),T=U}EN(Q,{line:q,target:Y,color:T,scale:H,property:w,clip:F}),Q.restore()}function VT(Q,J,q){let{segments:Y,points:U}=J,K=!0,M=!1;Q.beginPath();for(let H of Y){let{start:F,end:w}=H,T=U[F],_=U[Rq(F,w,U)];if(K)Q.moveTo(T.x,T.y),K=!1;else Q.lineTo(T.x,q),Q.lineTo(T.x,T.y);if(M=!!J.pathSegment(Q,H,{move:M}),M)Q.closePath();else Q.lineTo(_.x,q)}Q.lineTo(J.first().x,q),Q.closePath(),Q.clip()}function ET(Q,J,q){let{segments:Y,points:U}=J,K=!0,M=!1;Q.beginPath();for(let H of Y){let{start:F,end:w}=H,T=U[F],_=U[Rq(F,w,U)];if(K)Q.moveTo(T.x,T.y),K=!1;else Q.lineTo(q,T.y),Q.lineTo(T.x,T.y);if(M=!!J.pathSegment(Q,H,{move:M}),M)Q.closePath();else Q.lineTo(q,_.y)}Q.lineTo(q,J.first().y),Q.closePath(),Q.clip()}function EN(Q,J){let{line:q,target:Y,property:U,color:K,scale:M,clip:H}=J,F=IO(q,Y,U);for(let{source:w,target:T,start:_,end:L}of F){let{style:{backgroundColor:P=K}={}}=w,O=Y!==!0;Q.save(),Q.fillStyle=P,cO(Q,M,H,O&&ON(U,_,L)),Q.beginPath();let A=!!q.pathSegment(Q,w),C;if(O){if(A)Q.closePath();else PT(Q,Y,L,U);let g=!!Y.pathSegment(Q,T,{move:A,reverse:!0});if(C=A&&g,!C)PT(Q,Y,_,U)}Q.closePath(),Q.fill(C?"evenodd":"nonzero"),Q.restore()}}function cO(Q,J,q,Y){let U=J.chart.chartArea,{property:K,start:M,end:H}=Y||{};if(K==="x"||K==="y"){let F,w,T,_;if(K==="x")F=M,w=U.top,T=H,_=U.bottom;else F=U.left,w=M,T=U.right,_=H;if(Q.beginPath(),q)F=Math.max(F,q.left),T=Math.min(T,q.right),w=Math.max(w,q.top),_=Math.min(_,q.bottom);Q.rect(F,w,T-F,_-w),Q.clip()}}function PT(Q,J,q,Y){let U=J.interpolate(q,Y);if(U)Q.lineTo(U.x,U.y)}var p9={id:"filler",afterDatasetsUpdate(Q,J,q){let Y=(Q.data.datasets||[]).length,U=[],K,M,H,F;for(M=0;M<Y;++M){if(K=Q.getDatasetMeta(M),H=K.dataset,F=null,H&&H.options&&H instanceof u5)F={visible:Q.isDatasetVisible(M),index:M,fill:jO(H,M,Y),chart:Q,axis:K.controller.options.indexAxis,scale:K.vScale,line:H};K.$filler=F,U.push(F)}for(M=0;M<Y;++M){if(F=U[M],!F||F.fill===!1)continue;F.fill=DO(U,M,q.propagate)}},beforeDraw(Q,J,q){let Y=q.drawTime==="beforeDraw",U=Q.getSortedVisibleDatasetMetas(),K=Q.chartArea;for(let M=U.length-1;M>=0;--M){let H=U[M].$filler;if(!H)continue;if(H.line.updateControlPoints(K,H.axis),Y&&H.fill)VN(Q.ctx,H,K)}},beforeDatasetsDraw(Q,J,q){if(q.drawTime!=="beforeDatasetsDraw")return;let Y=Q.getSortedVisibleDatasetMetas();for(let U=Y.length-1;U>=0;--U){let K=Y[U].$filler;if(LT(K))VN(Q.ctx,K,Q.chartArea)}},beforeDatasetDraw(Q,J,q){let Y=J.meta.$filler;if(!LT(Y)||q.drawTime!=="beforeDatasetDraw")return;VN(Q.ctx,Y,Q.chartArea)},defaults:{propagate:!0,drawTime:"beforeDatasetDraw"}},CT=(Q,J)=>{let{boxHeight:q=J,boxWidth:Y=J}=Q;if(Q.usePointStyle)q=Math.min(q,J),Y=Q.pointStyleWidth||Math.min(Y,J);return{boxWidth:Y,boxHeight:q,itemHeight:Math.max(J,q)}},lO=(Q,J)=>Q!==null&&J!==null&&Q.datasetIndex===J.datasetIndex&&Q.index===J.index;class DN extends q6{constructor(Q){super();this._added=!1,this.legendHitBoxes=[],this._hoveredItem=null,this.doughnutMode=!1,this.chart=Q.chart,this.options=Q.options,this.ctx=Q.ctx,this.legendItems=void 0,this.columnSizes=void 0,this.lineWidths=void 0,this.maxHeight=void 0,this.maxWidth=void 0,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.height=void 0,this.width=void 0,this._margins=void 0,this.position=void 0,this.weight=void 0,this.fullSize=void 0}update(Q,J,q){this.maxWidth=Q,this.maxHeight=J,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 Q=this.options.labels||{},J=W1(Q.generateLabels,[this.chart],this)||[];if(Q.filter)J=J.filter((q)=>Q.filter(q,this.chart.data));if(Q.sort)J=J.sort((q,Y)=>Q.sort(q,Y,this.chart.data));if(this.options.reverse)J.reverse();this.legendItems=J}fit(){let{options:Q,ctx:J}=this;if(!Q.display){this.width=this.height=0;return}let q=Q.labels,Y=p1(q.font),U=Y.size,K=this._computeTitleHeight(),{boxWidth:M,itemHeight:H}=CT(q,U),F,w;if(J.font=Y.string,this.isHorizontal())F=this.maxWidth,w=this._fitRows(K,U,M,H)+10;else w=this.maxHeight,F=this._fitCols(K,Y,M,H)+10;this.width=Math.min(F,Q.maxWidth||this.maxWidth),this.height=Math.min(w,Q.maxHeight||this.maxHeight)}_fitRows(Q,J,q,Y){let{ctx:U,maxWidth:K,options:{labels:{padding:M}}}=this,H=this.legendHitBoxes=[],F=this.lineWidths=[0],w=Y+M,T=Q;U.textAlign="left",U.textBaseline="middle";let _=-1,L=-w;return this.legendItems.forEach((P,O)=>{let A=q+J/2+U.measureText(P.text).width;if(O===0||F[F.length-1]+A+2*M>K)T+=w,F[F.length-(O>0?0:1)]=0,L+=w,_++;H[O]={left:0,top:L,row:_,width:A,height:Y},F[F.length-1]+=A+M}),T}_fitCols(Q,J,q,Y){let{ctx:U,maxHeight:K,options:{labels:{padding:M}}}=this,H=this.legendHitBoxes=[],F=this.columnSizes=[],w=K-Q,T=M,_=0,L=0,P=0,O=0;return this.legendItems.forEach((A,C)=>{let{itemWidth:g,itemHeight:m}=rO(q,J,U,A,Y);if(C>0&&L+m+2*M>w)T+=_+M,F.push({width:_,height:L}),P+=_+M,O++,_=L=0;H[C]={left:P,top:L,col:O,width:g,height:m},_=Math.max(_,g),L+=m+M}),T+=_,F.push({width:_,height:L}),T}adjustHitBoxes(){if(!this.options.display)return;let Q=this._computeTitleHeight(),{legendHitBoxes:J,options:{align:q,labels:{padding:Y},rtl:U}}=this,K=W$(U,this.left,this.width);if(this.isHorizontal()){let M=0,H=q5(q,this.left+Y,this.right-this.lineWidths[M]);for(let F of J){if(M!==F.row)M=F.row,H=q5(q,this.left+Y,this.right-this.lineWidths[M]);F.top+=this.top+Q+Y,F.left=K.leftForLtr(K.x(H),F.width),H+=F.width+Y}}else{let M=0,H=q5(q,this.top+Q+Y,this.bottom-this.columnSizes[M].height);for(let F of J){if(F.col!==M)M=F.col,H=q5(q,this.top+Q+Y,this.bottom-this.columnSizes[M].height);F.top=H,F.left+=this.left+Y,F.left=K.leftForLtr(K.x(F.left),F.width),H+=F.height+Y}}}isHorizontal(){return this.options.position==="top"||this.options.position==="bottom"}draw(){if(this.options.display){let Q=this.ctx;mZ(Q,this),this._draw(),dZ(Q)}}_draw(){let{options:Q,columnSizes:J,lineWidths:q,ctx:Y}=this,{align:U,labels:K}=Q,M=D1.color,H=W$(Q.rtl,this.left,this.width),F=p1(K.font),{padding:w}=K,T=F.size,_=T/2,L;this.drawTitle(),Y.textAlign=H.textAlign("left"),Y.textBaseline="middle",Y.lineWidth=0.5,Y.font=F.string;let{boxWidth:P,boxHeight:O,itemHeight:A}=CT(K,T),C=function(s,Q0,p){if(isNaN(P)||P<=0||isNaN(O)||O<0)return;Y.save();let i=h0(p.lineWidth,1);if(Y.fillStyle=h0(p.fillStyle,M),Y.lineCap=h0(p.lineCap,"butt"),Y.lineDashOffset=h0(p.lineDashOffset,0),Y.lineJoin=h0(p.lineJoin,"miter"),Y.lineWidth=i,Y.strokeStyle=h0(p.strokeStyle,M),Y.setLineDash(h0(p.lineDash,[])),K.usePointStyle){let Y0={radius:O*Math.SQRT2/2,pointStyle:p.pointStyle,rotation:p.rotation,borderWidth:i},d=H.xPlus(s,P/2),N0=Q0+_;$N(Y,Y0,d,N0,K.pointStyleWidth&&P)}else{let Y0=Q0+Math.max((T-O)/2,0),d=H.leftForLtr(s,P),N0=K2(p.borderRadius);if(Y.beginPath(),Object.values(N0).some((R0)=>R0!==0))d9(Y,{x:d,y:Y0,w:P,h:O,radius:N0});else Y.rect(d,Y0,P,O);if(Y.fill(),i!==0)Y.stroke()}Y.restore()},g=function(s,Q0,p){N2(Y,p.text,s,Q0+A/2,F,{strikethrough:p.hidden,textAlign:H.textAlign(p.textAlign)})},m=this.isHorizontal(),o=this._computeTitleHeight();if(m)L={x:q5(U,this.left+w,this.right-q[0]),y:this.top+w+o,line:0};else L={x:this.left+w,y:q5(U,this.top+o+w,this.bottom-J[0].height),line:0};UN(this.ctx,Q.textDirection);let a=A+w;this.legendItems.forEach((s,Q0)=>{Y.strokeStyle=s.fontColor,Y.fillStyle=s.fontColor;let p=Y.measureText(s.text).width,i=H.textAlign(s.textAlign||(s.textAlign=K.textAlign)),Y0=P+_+p,d=L.x,N0=L.y;if(H.setWidth(this.width),m){if(Q0>0&&d+Y0+w>this.right)N0=L.y+=a,L.line++,d=L.x=q5(U,this.left+w,this.right-q[L.line])}else if(Q0>0&&N0+a>this.bottom)d=L.x=d+J[L.line].width+w,L.line++,N0=L.y=q5(U,this.top+o+w,this.bottom-J[L.line].height);let R0=H.x(d);if(C(R0,N0,s),d=Cw(i,d+P+_,m?d+Y0:this.right,Q.rtl),g(H.x(d),N0,s),m)L.x+=Y0+w;else if(typeof s.text!=="string"){let _0=F.lineHeight;L.y+=U_(s,_0)+w}else L.y+=a}),NN(this.ctx,Q.textDirection)}drawTitle(){let Q=this.options,J=Q.title,q=p1(J.font),Y=X5(J.padding);if(!J.display)return;let U=W$(Q.rtl,this.left,this.width),K=this.ctx,M=J.position,H=q.size/2,F=Y.top+H,w,T=this.left,_=this.width;if(this.isHorizontal())_=Math.max(...this.lineWidths),w=this.top+F,T=q5(Q.align,T,this.right-_);else{let P=this.columnSizes.reduce((O,A)=>Math.max(O,A.height),0);w=F+q5(Q.align,this.top,this.bottom-P-Q.labels.padding-this._computeTitleHeight())}let L=q5(M,T,T+_);K.textAlign=U.textAlign(eJ(M)),K.textBaseline="middle",K.strokeStyle=J.color,K.fillStyle=J.color,K.font=q.string,N2(K,J.text,L,w,q)}_computeTitleHeight(){let Q=this.options.title,J=p1(Q.font),q=X5(Q.padding);return Q.display?J.lineHeight+q.height:0}_getLegendItemAt(Q,J){let q,Y,U;if(Z6(Q,this.left,this.right)&&Z6(J,this.top,this.bottom)){U=this.legendHitBoxes;for(q=0;q<U.length;++q)if(Y=U[q],Z6(Q,Y.left,Y.left+Y.width)&&Z6(J,Y.top,Y.top+Y.height))return this.legendItems[q]}return null}handleEvent(Q){let J=this.options;if(!oO(Q.type,J))return;let q=this._getLegendItemAt(Q.x,Q.y);if(Q.type==="mousemove"||Q.type==="mouseout"){let Y=this._hoveredItem,U=lO(Y,q);if(Y&&!U)W1(J.onLeave,[Q,Y,this],this);if(this._hoveredItem=q,q&&!U)W1(J.onHover,[Q,q,this],this)}else if(q)W1(J.onClick,[Q,q,this],this)}}function rO(Q,J,q,Y,U){let K=sO(Y,Q,J,q),M=nO(U,Y,J.lineHeight);return{itemWidth:K,itemHeight:M}}function sO(Q,J,q,Y){let U=Q.text;if(U&&typeof U!=="string")U=U.reduce((K,M)=>K.length>M.length?K:M);return J+q.size/2+Y.measureText(U).width}function nO(Q,J,q){let Y=Q;if(typeof J.text!=="string")Y=U_(J,q);return Y}function U_(Q,J){let q=Q.text?Q.text.length:0;return J*q}function oO(Q,J){if((Q==="mousemove"||Q==="mouseout")&&(J.onHover||J.onLeave))return!0;if(J.onClick&&(Q==="click"||Q==="mouseup"))return!0;return!1}var z8={id:"legend",_element:DN,start(Q,J,q){let Y=Q.legend=new DN({ctx:Q.ctx,options:q,chart:Q});V4.configure(Q,Y,q),V4.addBox(Q,Y)},stop(Q){V4.removeBox(Q,Q.legend),delete Q.legend},beforeUpdate(Q,J,q){let Y=Q.legend;V4.configure(Q,Y,q),Y.options=q},afterUpdate(Q){let J=Q.legend;J.buildLabels(),J.adjustHitBoxes()},afterEvent(Q,J){if(!J.replay)Q.legend.handleEvent(J.event)},defaults:{display:!0,position:"top",align:"center",fullSize:!0,reverse:!1,weight:1000,onClick(Q,J,q){let Y=J.datasetIndex,U=q.chart;if(U.isDatasetVisible(Y))U.hide(Y),J.hidden=!0;else U.show(Y),J.hidden=!1},onHover:null,onLeave:null,labels:{color:(Q)=>Q.chart.options.color,boxWidth:40,padding:10,generateLabels(Q){let J=Q.data.datasets,{labels:{usePointStyle:q,pointStyle:Y,textAlign:U,color:K,useBorderRadius:M,borderRadius:H}}=Q.legend.options;return Q._getSortedDatasetMetas().map((F)=>{let w=F.controller.getStyle(q?0:void 0),T=X5(w.borderWidth);return{text:J[F.index].label,fillStyle:w.backgroundColor,fontColor:K,hidden:!F.visible,lineCap:w.borderCapStyle,lineDash:w.borderDash,lineDashOffset:w.borderDashOffset,lineJoin:w.borderJoinStyle,lineWidth:(T.width+T.height)/4,strokeStyle:w.borderColor,pointStyle:Y||w.pointStyle,rotation:w.rotation,textAlign:U||w.textAlign,borderRadius:M&&(H||w.borderRadius),datasetIndex:F.index}},this)}},title:{color:(Q)=>Q.chart.options.color,display:!1,position:"center",text:""}},descriptors:{_scriptable:(Q)=>!Q.startsWith("on"),labels:{_scriptable:(Q)=>!["generateLabels","filter","sort"].includes(Q)}}};class hN extends q6{constructor(Q){super();this.chart=Q.chart,this.options=Q.options,this.ctx=Q.ctx,this._padding=void 0,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.width=void 0,this.height=void 0,this.position=void 0,this.weight=void 0,this.fullSize=void 0}update(Q,J){let 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=Q,this.height=this.bottom=J;let Y=_1(q.text)?q.text.length:1;this._padding=X5(q.padding);let U=Y*p1(q.font).lineHeight+this._padding.height;if(this.isHorizontal())this.height=U;else this.width=U}isHorizontal(){let Q=this.options.position;return Q==="top"||Q==="bottom"}_drawArgs(Q){let{top:J,left:q,bottom:Y,right:U,options:K}=this,M=K.align,H=0,F,w,T;if(this.isHorizontal())w=q5(M,q,U),T=J+Q,F=U-q;else{if(K.position==="left")w=q+Q,T=q5(M,Y,J),H=b1*-0.5;else w=U-Q,T=q5(M,J,Y),H=b1*0.5;F=Y-J}return{titleX:w,titleY:T,maxWidth:F,rotation:H}}draw(){let Q=this.ctx,J=this.options;if(!J.display)return;let q=p1(J.font),U=q.lineHeight/2+this._padding.top,{titleX:K,titleY:M,maxWidth:H,rotation:F}=this._drawArgs(U);N2(Q,J.text,0,0,q,{color:J.color,maxWidth:H,rotation:F,textAlign:eJ(J.align),textBaseline:"middle",translation:[K,M]})}}function aO(Q,J){let q=new hN({ctx:Q.ctx,options:J,chart:Q});V4.configure(Q,q,J),V4.addBox(Q,q),Q.titleBlock=q}var L8={id:"title",_element:hN,start(Q,J,q){aO(Q,q)},stop(Q){let J=Q.titleBlock;V4.removeBox(Q,J),delete Q.titleBlock},beforeUpdate(Q,J,q){let Y=Q.titleBlock;V4.configure(Q,Y,q),Y.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 iZ={average(Q){if(!Q.length)return!1;let J,q,Y=new Set,U=0,K=0;for(J=0,q=Q.length;J<q;++J){let H=Q[J].element;if(H&&H.hasValue()){let F=H.tooltipPosition();Y.add(F.x),U+=F.y,++K}}if(K===0||Y.size===0)return!1;return{x:[...Y].reduce((H,F)=>H+F)/Y.size,y:U/K}},nearest(Q,J){if(!Q.length)return!1;let{x:q,y:Y}=J,U=Number.POSITIVE_INFINITY,K,M,H;for(K=0,M=Q.length;K<M;++K){let F=Q[K].element;if(F&&F.hasValue()){let w=F.getCenterPoint(),T=nJ(J,w);if(T<U)U=T,H=F}}if(H){let F=H.tooltipPosition();q=F.x,Y=F.y}return{x:q,y:Y}}};function T8(Q,J){if(J)if(_1(J))Array.prototype.push.apply(Q,J);else Q.push(J);return Q}function J6(Q){if((typeof Q==="string"||Q instanceof String)&&Q.indexOf(`
|
|
255
|
+
*/class cT{constructor(){this._request=null,this._charts=new Map,this._running=!1,this._lastDate=void 0}_notify(Q,J,q,Y){let U=J.listeners[Y],K=J.duration;U.forEach((H)=>H({chart:Q,initial:J.initial,numSteps:K,currentStep:Math.min(q-J.start,K)}))}_refresh(){if(this._request)return;this._running=!0,this._request=iU.call(window,()=>{if(this._update(),this._request=null,this._running)this._refresh()})}_update(Q=Date.now()){let J=0;if(this._charts.forEach((q,Y)=>{if(!q.running||!q.items.length)return;let U=q.items,K=U.length-1,H=!1,M;for(;K>=0;--K)if(M=U[K],M._active){if(M._total>q.duration)q.duration=M._total;M.tick(Q),H=!0}else U[K]=U[U.length-1],U.pop();if(H)Y.draw(),this._notify(Y,q,Q,"progress");if(!U.length)q.running=!1,this._notify(Y,q,Q,"complete"),q.initial=!1;J+=U.length}),this._lastDate=Q,J===0)this._running=!1}_getAnims(Q){let J=this._charts,q=J.get(Q);if(!q)q={running:!1,initial:!0,items:[],listeners:{complete:[],progress:[]}},J.set(Q,q);return q}listen(Q,J,q){this._getAnims(Q).listeners[J].push(q)}add(Q,J){if(!J||!J.length)return;this._getAnims(Q).items.push(...J)}has(Q){return this._getAnims(Q).items.length>0}start(Q){let J=this._charts.get(Q);if(!J)return;J.running=!0,J.start=Date.now(),J.duration=J.items.reduce((q,Y)=>Math.max(q,Y._duration),0),this._refresh()}running(Q){if(!this._running)return!1;let J=this._charts.get(Q);if(!J||!J.running||!J.items.length)return!1;return!0}stop(Q){let J=this._charts.get(Q);if(!J||!J.items.length)return;let q=J.items,Y=q.length-1;for(;Y>=0;--Y)q[Y].cancel();J.items=[],this._notify(Q,J,Date.now(),"complete")}remove(Q){return this._charts.delete(Q)}}var G6=new cT,nR="transparent",lC={boolean(Q,J,q){return q>0.5?J:Q},color(Q,J,q){let Y=$N(Q||nR),U=Y.valid&&$N(J||nR);return U&&U.valid?U.mix(Y,q).hexString():J},number(Q,J,q){return Q+(J-Q)*q}};class lT{constructor(Q,J,q,Y){let U=J[q];Y=pZ([Q.to,Y,U,Q.from]);let K=pZ([Q.from,U,Y]);this._active=!0,this._fn=Q.fn||lC[Q.type||typeof K],this._easing=f9[Q.easing]||f9.linear,this._start=Math.floor(Date.now()+(Q.delay||0)),this._duration=this._total=Math.floor(Q.duration),this._loop=!!Q.loop,this._target=J,this._prop=q,this._from=K,this._to=Y,this._promises=void 0}active(){return this._active}update(Q,J,q){if(this._active){this._notify(!1);let Y=this._target[this._prop],U=q-this._start,K=this._duration-U;this._start=q,this._duration=Math.floor(Math.max(K,Q.duration)),this._total+=U,this._loop=!!Q.loop,this._to=pZ([Q.to,J,Y,Q.from]),this._from=pZ([Q.from,Y,J])}}cancel(){if(this._active)this.tick(Date.now()),this._active=!1,this._notify(!1)}tick(Q){let J=Q-this._start,q=this._duration,Y=this._prop,U=this._from,K=this._loop,H=this._to,M;if(this._active=U!==H&&(K||J<q),!this._active){this._target[Y]=H,this._notify(!0);return}if(J<0){this._target[Y]=U;return}M=J/q%2,M=K&&M>1?2-M:M,M=this._easing(Math.min(1,Math.max(0,M))),this._target[Y]=this._fn(U,H,M)}wait(){let Q=this._promises||(this._promises=[]);return new Promise((J,q)=>{Q.push({res:J,rej:q})})}_notify(Q){let J=Q?"res":"rej",q=this._promises||[];for(let Y=0;Y<q.length;Y++)q[Y][J]()}}class bN{constructor(Q,J){this._chart=Q,this._properties=new Map,this.configure(J)}configure(Q){if(!n0(Q))return;let J=Object.keys(D1.animation),q=this._properties;Object.getOwnPropertyNames(Q).forEach((Y)=>{let U=Q[Y];if(!n0(U))return;let K={};for(let H of J)K[H]=U[H];(z1(U.properties)&&U.properties||[Y]).forEach((H)=>{if(H===Y||!q.has(H))q.set(H,K)})})}_animateOptions(Q,J){let q=J.options,Y=sC(Q,q);if(!Y)return[];let U=this._createAnimations(Y,q);if(q.$shared)rC(Q.options.$animations,q).then(()=>{Q.options=q},()=>{});return U}_createAnimations(Q,J){let q=this._properties,Y=[],U=Q.$animations||(Q.$animations={}),K=Object.keys(J),H=Date.now(),M;for(M=K.length-1;M>=0;--M){let F=K[M];if(F.charAt(0)==="$")continue;if(F==="options"){Y.push(...this._animateOptions(Q,J));continue}let R=J[F],T=U[F],z=q.get(F);if(T)if(z&&T.active()){T.update(z,R,H);continue}else T.cancel();if(!z||!z.duration){Q[F]=R;continue}U[F]=T=new lT(z,Q,F,R),Y.push(T)}return Y}update(Q,J){if(this._properties.size===0){Object.assign(Q,J);return}let q=this._createAnimations(Q,J);if(q.length)return G6.add(this._chart,q),!0}}function rC(Q,J){let q=[],Y=Object.keys(J);for(let U=0;U<Y.length;U++){let K=Q[Y[U]];if(K&&K.active())q.push(K.wait())}return Promise.all(q)}function sC(Q,J){if(!J)return;let q=Q.options;if(!q){Q.options=J;return}if(q.$shared)Q.options=q=Object.assign({},q,{$shared:!1,$animations:{}});return q}function oR(Q,J){let q=Q&&Q.options||{},Y=q.reverse,U=q.min===void 0?J:0,K=q.max===void 0?J:0;return{start:Y?K:U,end:Y?U:K}}function nC(Q,J,q){if(q===!1)return!1;let Y=oR(Q,q),U=oR(J,q);return{top:U.end,right:Y.end,bottom:U.start,left:Y.start}}function oC(Q){let J,q,Y,U;if(n0(Q))J=Q.top,q=Q.right,Y=Q.bottom,U=Q.left;else J=q=Y=U=Q;return{top:J,right:q,bottom:Y,left:U,disabled:Q===!1}}function rT(Q,J){let q=[],Y=Q._getSortedDatasetMetas(J),U,K;for(U=0,K=Y.length;U<K;++U)q.push(Y[U].index);return q}function aR(Q,J,q,Y={}){let U=Q.keys,K=Y.mode==="single",H,M,F,R;if(J===null)return;let T=!1;for(H=0,M=U.length;H<M;++H){if(F=+U[H],F===q){if(T=!0,Y.all)continue;break}if(R=Q.values[F],O1(R)&&(K||J===0||y4(J)===y4(R)))J+=R}if(!T&&!Y.all)return 0;return J}function aC(Q,J){let{iScale:q,vScale:Y}=J,U=q.axis==="x"?"x":"y",K=Y.axis==="x"?"x":"y",H=Object.keys(Q),M=Array(H.length),F,R,T;for(F=0,R=H.length;F<R;++F)T=H[F],M[F]={[U]:T,[K]:Q[T]};return M}function WN(Q,J){let q=Q&&Q.options.stacked;return q||q===void 0&&J.stack!==void 0}function iC(Q,J,q){return`${Q.id}.${J.id}.${q.stack||q.type}`}function tC(Q){let{min:J,max:q,minDefined:Y,maxDefined:U}=Q.getUserBounds();return{min:Y?J:Number.NEGATIVE_INFINITY,max:U?q:Number.POSITIVE_INFINITY}}function eC(Q,J,q){let Y=Q[J]||(Q[J]={});return Y[q]||(Y[q]={})}function iR(Q,J,q,Y){for(let U of J.getMatchingVisibleMetas(Y).reverse()){let K=Q[U.index];if(q&&K>0||!q&&K<0)return U.index}return null}function tR(Q,J){let{chart:q,_cachedMeta:Y}=Q,U=q._stacks||(q._stacks={}),{iScale:K,vScale:H,index:M}=Y,F=K.axis,R=H.axis,T=iC(K,H,Y),z=J.length,L;for(let P=0;P<z;++P){let I=J[P],{[F]:A,[R]:C}=I,g=I._stacks||(I._stacks={});L=g[R]=eC(U,T,A),L[M]=C,L._top=iR(L,H,!0,Y.type),L._bottom=iR(L,H,!1,Y.type);let m=L._visualValues||(L._visualValues={});m[M]=C}}function wN(Q,J){let q=Q.scales;return Object.keys(q).filter((Y)=>q[Y].axis===J).shift()}function $I(Q,J){return Q6(Q,{active:!1,dataset:void 0,datasetIndex:J,index:J,mode:"default",type:"dataset"})}function ZI(Q,J,q){return Q6(Q,{active:!1,dataIndex:J,parsed:void 0,raw:void 0,element:q,index:J,mode:"default",type:"data"})}function cZ(Q,J){let q=Q.controller.index,Y=Q.vScale&&Q.vScale.axis;if(!Y)return;J=J||Q._parsed;for(let U of J){let K=U._stacks;if(!K||K[Y]===void 0||K[Y][q]===void 0)return;if(delete K[Y][q],K[Y]._visualValues!==void 0&&K[Y]._visualValues[q]!==void 0)delete K[Y]._visualValues[q]}}var RN=(Q)=>Q==="reset"||Q==="none",eR=(Q,J)=>J?Q:Object.assign({},Q),QI=(Q,J,q)=>Q&&!J.hidden&&J._stacked&&{keys:rT(q,!0),values:null};class Wq{static defaults={};static datasetElementType=null;static dataElementType=null;constructor(Q,J){this.chart=Q,this._ctx=Q.ctx,this.index=J,this._cachedDataOpts={},this._cachedMeta=this.getMeta(),this._type=this._cachedMeta.type,this.options=void 0,this._parsing=!1,this._data=void 0,this._objectData=void 0,this._sharedOptions=void 0,this._drawStart=void 0,this._drawCount=void 0,this.enableOptionSharing=!1,this.supportsDecimation=!1,this.$context=void 0,this._syncList=[],this.datasetElementType=new.target.datasetElementType,this.dataElementType=new.target.dataElementType,this.initialize()}initialize(){let Q=this._cachedMeta;if(this.configure(),this.linkScales(),Q._stacked=WN(Q.vScale,Q),this.addElements(),this.options.fill&&!this.chart.isPluginEnabled("filler"))console.warn("Tried to use the 'fill' option without the 'Filler' plugin enabled. Please import and register the 'Filler' plugin and make sure it is not disabled in the options")}updateIndex(Q){if(this.index!==Q)cZ(this._cachedMeta);this.index=Q}linkScales(){let Q=this.chart,J=this._cachedMeta,q=this.getDataset(),Y=(T,z,L,P)=>T==="x"?z:T==="r"?P:L,U=J.xAxisID=h0(q.xAxisID,wN(Q,"x")),K=J.yAxisID=h0(q.yAxisID,wN(Q,"y")),H=J.rAxisID=h0(q.rAxisID,wN(Q,"r")),M=J.indexAxis,F=J.iAxisID=Y(M,U,K,H),R=J.vAxisID=Y(M,K,U,H);J.xScale=this.getScaleForId(U),J.yScale=this.getScaleForId(K),J.rScale=this.getScaleForId(H),J.iScale=this.getScaleForId(F),J.vScale=this.getScaleForId(R)}getDataset(){return this.chart.data.datasets[this.index]}getMeta(){return this.chart.getDatasetMeta(this.index)}getScaleForId(Q){return this.chart.scales[Q]}_getOtherScale(Q){let J=this._cachedMeta;return Q===J.iScale?J.vScale:J.iScale}reset(){this._update("reset")}_destroy(){let Q=this._cachedMeta;if(this._data)oU(this._data,this);if(Q._stacked)cZ(Q)}_dataCheck(){let Q=this.getDataset(),J=Q.data||(Q.data=[]),q=this._data;if(n0(J)){let Y=this._cachedMeta;this._data=aC(J,Y)}else if(q!==J){if(q){oU(q,this);let Y=this._cachedMeta;cZ(Y),Y._parsed=[]}if(J&&Object.isExtensible(J))IR(J,this);this._syncList=[],this._data=J}}addElements(){let Q=this._cachedMeta;if(this._dataCheck(),this.datasetElementType)Q.dataset=new this.datasetElementType}buildOrUpdateElements(Q){let J=this._cachedMeta,q=this.getDataset(),Y=!1;this._dataCheck();let U=J._stacked;if(J._stacked=WN(J.vScale,J),J.stack!==q.stack)Y=!0,cZ(J),J.stack=q.stack;if(this._resyncElements(Q),Y||U!==J._stacked)tR(this,J._parsed),J._stacked=WN(J.vScale,J)}configure(){let Q=this.chart.config,J=Q.datasetScopeKeys(this._type),q=Q.getOptionScopes(this.getDataset(),J,!0);this.options=Q.createResolver(q,this.getContext()),this._parsing=this.options.parsing,this._cachedDataOpts={}}parse(Q,J){let{_cachedMeta:q,_data:Y}=this,{iScale:U,_stacked:K}=q,H=U.axis,M=Q===0&&J===Y.length?!0:q._sorted,F=Q>0&&q._parsed[Q-1],R,T,z;if(this._parsing===!1)q._parsed=Y,q._sorted=!0,z=Y;else{if(z1(Y[Q]))z=this.parseArrayData(q,Y,Q,J);else if(n0(Y[Q]))z=this.parseObjectData(q,Y,Q,J);else z=this.parsePrimitiveData(q,Y,Q,J);let L=()=>T[H]===null||F&&T[H]<F[H];for(R=0;R<J;++R)if(q._parsed[R+Q]=T=z[R],M){if(L())M=!1;F=T}q._sorted=M}if(K)tR(this,z)}parsePrimitiveData(Q,J,q,Y){let{iScale:U,vScale:K}=Q,H=U.axis,M=K.axis,F=U.getLabels(),R=U===K,T=Array(Y),z,L,P;for(z=0,L=Y;z<L;++z)P=z+q,T[z]={[H]:R||U.parse(F[P],P),[M]:K.parse(J[P],P)};return T}parseArrayData(Q,J,q,Y){let{xScale:U,yScale:K}=Q,H=Array(Y),M,F,R,T;for(M=0,F=Y;M<F;++M)R=M+q,T=J[R],H[M]={x:U.parse(T[0],R),y:K.parse(T[1],R)};return H}parseObjectData(Q,J,q,Y){let{xScale:U,yScale:K}=Q,{xAxisKey:H="x",yAxisKey:M="y"}=this._parsing,F=Array(Y),R,T,z,L;for(R=0,T=Y;R<T;++R)z=R+q,L=J[z],F[R]={x:U.parse(F$(L,H),z),y:K.parse(F$(L,M),z)};return F}getParsed(Q){return this._cachedMeta._parsed[Q]}getDataElement(Q){return this._cachedMeta.data[Q]}applyStack(Q,J,q){let Y=this.chart,U=this._cachedMeta,K=J[Q.axis],H={keys:rT(Y,!0),values:J._stacks[Q.axis]._visualValues};return aR(H,K,U.index,{mode:q})}updateRangeFromParsed(Q,J,q,Y){let U=q[J.axis],K=U===null?NaN:U,H=Y&&q._stacks[J.axis];if(Y&&H)Y.values=H,K=aR(Y,U,this._cachedMeta.index);Q.min=Math.min(Q.min,K),Q.max=Math.max(Q.max,K)}getMinMax(Q,J){let q=this._cachedMeta,Y=q._parsed,U=q._sorted&&Q===q.iScale,K=Y.length,H=this._getOtherScale(Q),M=QI(J,q,this.chart),F={min:Number.POSITIVE_INFINITY,max:Number.NEGATIVE_INFINITY},{min:R,max:T}=tC(H),z,L;function P(){L=Y[z];let I=L[H.axis];return!O1(L[Q.axis])||R>I||T<I}for(z=0;z<K;++z){if(P())continue;if(this.updateRangeFromParsed(F,Q,L,M),U)break}if(U)for(z=K-1;z>=0;--z){if(P())continue;this.updateRangeFromParsed(F,Q,L,M);break}return F}getAllParsedValues(Q){let J=this._cachedMeta._parsed,q=[],Y,U,K;for(Y=0,U=J.length;Y<U;++Y)if(K=J[Y][Q.axis],O1(K))q.push(K);return q}getMaxOverflow(){return!1}getLabelAndValue(Q){let J=this._cachedMeta,q=J.iScale,Y=J.vScale,U=this.getParsed(Q);return{label:q?""+q.getLabelForValue(U[q.axis]):"",value:Y?""+Y.getLabelForValue(U[Y.axis]):""}}_update(Q){let J=this._cachedMeta;this.update(Q||"default"),J._clip=oC(h0(this.options.clip,nC(J.xScale,J.yScale,this.getMaxOverflow())))}update(Q){}draw(){let Q=this._ctx,J=this.chart,q=this._cachedMeta,Y=q.data||[],U=J.chartArea,K=[],H=this._drawStart||0,M=this._drawCount||Y.length-H,F=this.options.drawActiveElementsOnTop,R;if(q.dataset)q.dataset.draw(Q,U,H,M);for(R=H;R<H+M;++R){let T=Y[R];if(T.hidden)continue;if(T.active&&F)K.push(T);else T.draw(Q,U)}for(R=0;R<K.length;++R)K[R].draw(Q,U)}getStyle(Q,J){let q=J?"active":"default";return Q===void 0&&this._cachedMeta.dataset?this.resolveDatasetElementOptions(q):this.resolveDataElementOptions(Q||0,q)}getContext(Q,J,q){let Y=this.getDataset(),U;if(Q>=0&&Q<this._cachedMeta.data.length){let K=this._cachedMeta.data[Q];U=K.$context||(K.$context=ZI(this.getContext(),Q,K)),U.parsed=this.getParsed(Q),U.raw=Y.data[Q],U.index=U.dataIndex=Q}else U=this.$context||(this.$context=$I(this.chart.getContext(),this.index)),U.dataset=Y,U.index=U.datasetIndex=this.index;return U.active=!!J,U.mode=q,U}resolveDatasetElementOptions(Q){return this._resolveElementOptions(this.datasetElementType.id,Q)}resolveDataElementOptions(Q,J){return this._resolveElementOptions(this.dataElementType.id,J,Q)}_resolveElementOptions(Q,J="default",q){let Y=J==="active",U=this._cachedDataOpts,K=Q+"-"+J,H=U[K],M=this.enableOptionSharing&&x9(q);if(H)return eR(H,M);let F=this.chart.config,R=F.datasetElementScopeKeys(this._type,Q),T=Y?[`${Q}Hover`,"hover",Q,""]:[Q,""],z=F.getOptionScopes(this.getDataset(),R),L=Object.keys(D1.elements[Q]),P=()=>this.getContext(q,Y,J),I=F.resolveNamedOptions(z,L,P,T);if(I.$shared)I.$shared=M,U[K]=Object.freeze(eR(I,M));return I}_resolveAnimations(Q,J,q){let Y=this.chart,U=this._cachedDataOpts,K=`animation-${J}`,H=U[K];if(H)return H;let M;if(Y.options.animation!==!1){let R=this.chart.config,T=R.datasetAnimationScopeKeys(this._type,J),z=R.getOptionScopes(this.getDataset(),T);M=R.createResolver(z,this.getContext(Q,q,J))}let F=new bN(Y,M&&M.animations);if(M&&M._cacheable)U[K]=Object.freeze(F);return F}getSharedOptions(Q){if(!Q.$shared)return;return this._sharedOptions||(this._sharedOptions=Object.assign({},Q))}includeOptions(Q,J){return!J||RN(Q)||this.chart._animationsDisabled}_getSharedOptions(Q,J){let q=this.resolveDataElementOptions(Q,J),Y=this._sharedOptions,U=this.getSharedOptions(q),K=this.includeOptions(J,U)||U!==Y;return this.updateSharedOptions(U,J,q),{sharedOptions:U,includeOptions:K}}updateElement(Q,J,q,Y){if(RN(Y))Object.assign(Q,q);else this._resolveAnimations(J,Y).update(Q,q)}updateSharedOptions(Q,J,q){if(Q&&!RN(J))this._resolveAnimations(void 0,J).update(Q,q)}_setStyle(Q,J,q,Y){Q.active=Y;let U=this.getStyle(J,Y);this._resolveAnimations(J,q,Y).update(Q,{options:!Y&&this.getSharedOptions(U)||U})}removeHoverStyle(Q,J,q){this._setStyle(Q,q,"active",!1)}setHoverStyle(Q,J,q){this._setStyle(Q,q,"active",!0)}_removeDatasetHoverStyle(){let Q=this._cachedMeta.dataset;if(Q)this._setStyle(Q,void 0,"active",!1)}_setDatasetHoverStyle(){let Q=this._cachedMeta.dataset;if(Q)this._setStyle(Q,void 0,"active",!0)}_resyncElements(Q){let J=this._data,q=this._cachedMeta.data;for(let[H,M,F]of this._syncList)this[H](M,F);this._syncList=[];let Y=q.length,U=J.length,K=Math.min(U,Y);if(K)this.parse(0,K);if(U>Y)this._insertElements(Y,U-Y,Q);else if(U<Y)this._removeElements(U,Y-U)}_insertElements(Q,J,q=!0){let Y=this._cachedMeta,U=Y.data,K=Q+J,H,M=(F)=>{F.length+=J;for(H=F.length-1;H>=K;H--)F[H]=F[H-J]};M(U);for(H=Q;H<K;++H)U[H]=new this.dataElementType;if(this._parsing)M(Y._parsed);if(this.parse(Q,J),q)this.updateElements(U,Q,J,"reset")}updateElements(Q,J,q,Y){}_removeElements(Q,J){let q=this._cachedMeta;if(this._parsing){let Y=q._parsed.splice(Q,J);if(q._stacked)cZ(q,Y)}q.data.splice(Q,J)}_sync(Q){if(this._parsing)this._syncList.push(Q);else{let[J,q,Y]=Q;this[J](q,Y)}this.chart._dataChanges.push([this.index,...Q])}_onDataPush(){let Q=arguments.length;this._sync(["_insertElements",this.getDataset().data.length-Q,Q])}_onDataPop(){this._sync(["_removeElements",this._cachedMeta.data.length-1,1])}_onDataShift(){this._sync(["_removeElements",0,1])}_onDataSplice(Q,J){if(J)this._sync(["_removeElements",Q,J]);let q=arguments.length-2;if(q)this._sync(["_insertElements",Q,q])}_onDataUnshift(){this._sync(["_insertElements",0,arguments.length])}}function GI(Q,J){if(!Q._cache.$bar){let q=Q.getMatchingVisibleMetas(J),Y=[];for(let U=0,K=q.length;U<K;U++)Y=Y.concat(q[U].controller.getAllParsedValues(Q));Q._cache.$bar=aU(Y.sort((U,K)=>U-K))}return Q._cache.$bar}function JI(Q){let J=Q.iScale,q=GI(J,Q.type),Y=J._length,U,K,H,M,F=()=>{if(H===32767||H===-32768)return;if(x9(M))Y=Math.min(Y,Math.abs(H-M)||Y);M=H};for(U=0,K=q.length;U<K;++U)H=J.getPixelForValue(q[U]),F();M=void 0;for(U=0,K=J.ticks.length;U<K;++U)H=J.getPixelForTick(U),F();return Y}function qI(Q,J,q,Y){let U=q.barThickness,K,H;if(t0(U))K=J.min*q.categoryPercentage,H=q.barPercentage;else K=U*Y,H=1;return{chunk:K/Y,ratio:H,start:J.pixels[Q]-K/2}}function XI(Q,J,q,Y){let U=J.pixels,K=U[Q],H=Q>0?U[Q-1]:null,M=Q<U.length-1?U[Q+1]:null,F=q.categoryPercentage;if(H===null)H=K-(M===null?J.end-J.start:M-K);if(M===null)M=K+K-H;let R=K-(K-Math.min(H,M))/2*F;return{chunk:Math.abs(M-H)/2*F/Y,ratio:q.barPercentage,start:R}}function YI(Q,J,q,Y){let U=q.parse(Q[0],Y),K=q.parse(Q[1],Y),H=Math.min(U,K),M=Math.max(U,K),F=H,R=M;if(Math.abs(H)>Math.abs(M))F=M,R=H;J[q.axis]=R,J._custom={barStart:F,barEnd:R,start:U,end:K,min:H,max:M}}function sT(Q,J,q,Y){if(z1(Q))YI(Q,J,q,Y);else J[q.axis]=q.parse(Q,Y);return J}function $T(Q,J,q,Y){let{iScale:U,vScale:K}=Q,H=U.getLabels(),M=U===K,F=[],R,T,z,L;for(R=q,T=q+Y;R<T;++R)L=J[R],z={},z[U.axis]=M||U.parse(H[R],R),F.push(sT(L,z,K,R));return F}function TN(Q){return Q&&Q.barStart!==void 0&&Q.barEnd!==void 0}function UI(Q,J,q){if(Q!==0)return y4(Q);return(J.isHorizontal()?1:-1)*(J.min>=q?1:-1)}function NI(Q){let J,q,Y,U,K;if(Q.horizontal)J=Q.base>Q.x,q="left",Y="right";else J=Q.base<Q.y,q="bottom",Y="top";if(J)U="end",K="start";else U="start",K="end";return{start:q,end:Y,reverse:J,top:U,bottom:K}}function KI(Q,J,q,Y){let U=J.borderSkipped,K={};if(!U){Q.borderSkipped=K;return}if(U===!0){Q.borderSkipped={top:!0,right:!0,bottom:!0,left:!0};return}let{start:H,end:M,reverse:F,top:R,bottom:T}=NI(Q);if(U==="middle"&&q)if(Q.enableBorderRadius=!0,(q._top||0)===Y)U=R;else if((q._bottom||0)===Y)U=T;else K[ZT(T,H,M,F)]=!0,U=R;K[ZT(U,H,M,F)]=!0,Q.borderSkipped=K}function ZT(Q,J,q,Y){if(Y)Q=BI(Q,J,q),Q=QT(Q,q,J);else Q=QT(Q,J,q);return Q}function BI(Q,J,q){return Q===J?q:Q===q?J:Q}function QT(Q,J,q){return Q==="start"?J:Q==="end"?q:Q}function HI(Q,{inflateAmount:J},q){Q.inflateAmount=J==="auto"?q===1?0.33:0:J}class fN extends Wq{static id="bar";static defaults={datasetElementType:!1,dataElementType:"bar",categoryPercentage:0.8,barPercentage:0.9,grouped:!0,animations:{numbers:{type:"number",properties:["x","y","base","width","height"]}}};static overrides={scales:{_index_:{type:"category",offset:!0,grid:{offset:!0}},_value_:{type:"linear",beginAtZero:!0}}};parsePrimitiveData(Q,J,q,Y){return $T(Q,J,q,Y)}parseArrayData(Q,J,q,Y){return $T(Q,J,q,Y)}parseObjectData(Q,J,q,Y){let{iScale:U,vScale:K}=Q,{xAxisKey:H="x",yAxisKey:M="y"}=this._parsing,F=U.axis==="x"?H:M,R=K.axis==="x"?H:M,T=[],z,L,P,I;for(z=q,L=q+Y;z<L;++z)I=J[z],P={},P[U.axis]=U.parse(F$(I,F),z),T.push(sT(F$(I,R),P,K,z));return T}updateRangeFromParsed(Q,J,q,Y){super.updateRangeFromParsed(Q,J,q,Y);let U=q._custom;if(U&&J===this._cachedMeta.vScale)Q.min=Math.min(Q.min,U.min),Q.max=Math.max(Q.max,U.max)}getMaxOverflow(){return 0}getLabelAndValue(Q){let J=this._cachedMeta,{iScale:q,vScale:Y}=J,U=this.getParsed(Q),K=U._custom,H=TN(K)?"["+K.start+", "+K.end+"]":""+Y.getLabelForValue(U[Y.axis]);return{label:""+q.getLabelForValue(U[q.axis]),value:H}}initialize(){this.enableOptionSharing=!0,super.initialize();let Q=this._cachedMeta;Q.stack=this.getDataset().stack}update(Q){let J=this._cachedMeta;this.updateElements(J.data,0,J.data.length,Q)}updateElements(Q,J,q,Y){let U=Y==="reset",{index:K,_cachedMeta:{vScale:H}}=this,M=H.getBasePixel(),F=H.isHorizontal(),R=this._getRuler(),{sharedOptions:T,includeOptions:z}=this._getSharedOptions(J,Y);for(let L=J;L<J+q;L++){let P=this.getParsed(L),I=U||t0(P[H.axis])?{base:M,head:M}:this._calculateBarValuePixels(L),A=this._calculateBarIndexPixels(L,R),C=(P._stacks||{})[H.axis],g={horizontal:F,base:I.base,enableBorderRadius:!C||TN(P._custom)||K===C._top||K===C._bottom,x:F?I.head:A.center,y:F?A.center:I.head,height:F?A.size:Math.abs(I.size),width:F?Math.abs(I.size):A.size};if(z)g.options=T||this.resolveDataElementOptions(L,Q[L].active?"active":Y);let m=g.options||Q[L].options;KI(g,m,C,K),HI(g,m,R.ratio),this.updateElement(Q[L],L,g,Y)}}_getStacks(Q,J){let{iScale:q}=this._cachedMeta,Y=q.getMatchingVisibleMetas(this._type).filter((R)=>R.controller.options.grouped),U=q.options.stacked,K=[],H=this._cachedMeta.controller.getParsed(J),M=H&&H[q.axis],F=(R)=>{let T=R._parsed.find((L)=>L[q.axis]===M),z=T&&T[R.vScale.axis];if(t0(z)||isNaN(z))return!0};for(let R of Y){if(J!==void 0&&F(R))continue;if(U===!1||K.indexOf(R.stack)===-1||U===void 0&&R.stack===void 0)K.push(R.stack);if(R.index===Q)break}if(!K.length)K.push(void 0);return K}_getStackCount(Q){return this._getStacks(void 0,Q).length}_getAxisCount(){return this._getAxis().length}getFirstScaleIdForIndexAxis(){let Q=this.chart.scales,J=this.chart.options.indexAxis;return Object.keys(Q).filter((q)=>Q[q].axis===J).shift()}_getAxis(){let Q={},J=this.getFirstScaleIdForIndexAxis();for(let q of this.chart.data.datasets)Q[h0(this.chart.options.indexAxis==="x"?q.xAxisID:q.yAxisID,J)]=!0;return Object.keys(Q)}_getStackIndex(Q,J,q){let Y=this._getStacks(Q,q),U=J!==void 0?Y.indexOf(J):-1;return U===-1?Y.length-1:U}_getRuler(){let Q=this.options,J=this._cachedMeta,q=J.iScale,Y=[],U,K;for(U=0,K=J.data.length;U<K;++U)Y.push(q.getPixelForValue(this.getParsed(U)[q.axis],U));let H=Q.barThickness;return{min:H||JI(J),pixels:Y,start:q._startPixel,end:q._endPixel,stackCount:this._getStackCount(),scale:q,grouped:Q.grouped,ratio:H?1:Q.categoryPercentage*Q.barPercentage}}_calculateBarValuePixels(Q){let{_cachedMeta:{vScale:J,_stacked:q,index:Y},options:{base:U,minBarLength:K}}=this,H=U||0,M=this.getParsed(Q),F=M._custom,R=TN(F),T=M[J.axis],z=0,L=q?this.applyStack(J,M,q):T,P,I;if(L!==T)z=L-T,L=T;if(R){if(T=F.barStart,L=F.barEnd-F.barStart,T!==0&&y4(T)!==y4(F.barEnd))z=0;z+=T}let A=!t0(U)&&!R?U:z,C=J.getPixelForValue(A);if(this.chart.getDataVisibility(Q))P=J.getPixelForValue(z+L);else P=C;if(I=P-C,Math.abs(I)<K){if(I=UI(I,J,H)*K,T===H)C-=I/2;let g=J.getPixelForDecimal(0),m=J.getPixelForDecimal(1),o=Math.min(g,m),a=Math.max(g,m);if(C=Math.max(Math.min(C,a),o),P=C+I,q&&!R)M._stacks[J.axis]._visualValues[Y]=J.getValueForPixel(P)-J.getValueForPixel(C)}if(C===J.getPixelForValue(H)){let g=y4(I)*J.getLineWidthForValue(H)/2;C+=g,I-=g}return{size:I,base:C,head:P,center:P+I/2}}_calculateBarIndexPixels(Q,J){let q=J.scale,Y=this.options,U=Y.skipNull,K=h0(Y.maxBarThickness,1/0),H,M,F=this._getAxisCount();if(J.grouped){let R=U?this._getStackCount(Q):J.stackCount,T=Y.barThickness==="flex"?XI(Q,J,Y,R*F):qI(Q,J,Y,R*F),z=this.chart.options.indexAxis==="x"?this.getDataset().xAxisID:this.getDataset().yAxisID,L=this._getAxis().indexOf(h0(z,this.getFirstScaleIdForIndexAxis())),P=this._getStackIndex(this.index,this._cachedMeta.stack,U?Q:void 0)+L;H=T.start+T.chunk*P+T.chunk/2,M=Math.min(K,T.chunk*T.ratio)}else H=q.getPixelForValue(this.getParsed(Q)[q.axis],Q),M=Math.min(K,J.min*J.ratio);return{base:H-M/2,head:H+M/2,center:H,size:M}}draw(){let Q=this._cachedMeta,J=Q.vScale,q=Q.data,Y=q.length,U=0;for(;U<Y;++U)if(this.getParsed(U)[J.axis]!==null&&!q[U].hidden)q[U].draw(this._ctx)}}class yN extends Wq{static id="line";static defaults={datasetElementType:"line",dataElementType:"point",showLine:!0,spanGaps:!1};static overrides={scales:{_index_:{type:"category"},_value_:{type:"linear"}}};initialize(){this.enableOptionSharing=!0,this.supportsDecimation=!0,super.initialize()}update(Q){let J=this._cachedMeta,{dataset:q,data:Y=[],_dataset:U}=J,K=this.chart._animationsDisabled,{start:H,count:M}=jR(J,Y,K);if(this._drawStart=H,this._drawCount=M,AR(J))H=0,M=Y.length;q._chart=this.chart,q._datasetIndex=this.index,q._decimated=!!U._decimated,q.points=Y;let F=this.resolveDatasetElementOptions(Q);if(!this.options.showLine)F.borderWidth=0;F.segment=this.options.segment,this.updateElement(q,void 0,{animated:!K,options:F},Q),this.updateElements(Y,H,M,Q)}updateElements(Q,J,q,Y){let U=Y==="reset",{iScale:K,vScale:H,_stacked:M,_dataset:F}=this._cachedMeta,{sharedOptions:R,includeOptions:T}=this._getSharedOptions(J,Y),z=K.axis,L=H.axis,{spanGaps:P,segment:I}=this.options,A=m9(P)?P:Number.POSITIVE_INFINITY,C=this.chart._animationsDisabled||U||Y==="none",g=J+q,m=Q.length,o=J>0&&this.getParsed(J-1);for(let a=0;a<m;++a){let s=Q[a],Q0=C?s:{};if(a<J||a>=g){Q0.skip=!0;continue}let p=this.getParsed(a),i=t0(p[L]),Y0=Q0[z]=K.getPixelForValue(p[z],a),d=Q0[L]=U||i?H.getBasePixel():H.getPixelForValue(M?this.applyStack(H,p,M):p[L],a);if(Q0.skip=isNaN(Y0)||isNaN(d)||i,Q0.stop=a>0&&Math.abs(p[z]-o[z])>A,I)Q0.parsed=p,Q0.raw=F.data[a];if(T)Q0.options=R||this.resolveDataElementOptions(a,s.active?"active":Y);if(!C)this.updateElement(s,a,Q0,Y);o=p}}getMaxOverflow(){let Q=this._cachedMeta,J=Q.dataset,q=J.options&&J.options.borderWidth||0,Y=Q.data||[];if(!Y.length)return q;let U=Y[0].size(this.resolveDataElementOptions(0)),K=Y[Y.length-1].size(this.resolveDataElementOptions(Y.length-1));return Math.max(q,U,K)/2}draw(){let Q=this._cachedMeta;Q.dataset.updateControlPoints(this.chart.chartArea,Q.iScale.axis),super.draw()}}function w$(){throw Error("This method is not implemented: Check that a complete date adapter is provided.")}class gN{static override(Q){Object.assign(gN.prototype,Q)}options;constructor(Q){this.options=Q||{}}init(){}formats(){return w$()}parse(){return w$()}format(){return w$()}add(){return w$()}diff(){return w$()}startOf(){return w$()}endOf(){return w$()}}var MI={_date:gN};function FI(Q,J,q,Y){let{controller:U,data:K,_sorted:H}=Q,M=U._cachedMeta.iScale,F=Q.dataset?Q.dataset.options?Q.dataset.options.spanGaps:null:null;if(M&&J===M.axis&&J!=="r"&&H&&K.length){let R=M._reversePixels?ER:q2;if(!Y){let T=R(K,J,q);if(F){let{vScale:z}=U._cachedMeta,{_parsed:L}=Q,P=L.slice(0,T.lo+1).reverse().findIndex((A)=>!t0(A[z.axis]));T.lo-=Math.max(0,P);let I=L.slice(T.hi).findIndex((A)=>!t0(A[z.axis]));T.hi+=Math.max(0,I)}return T}else if(U._sharedOptions){let T=K[0],z=typeof T.getRange==="function"&&T.getRange(J);if(z){let L=R(K,J,q-z),P=R(K,J,q+z);return{lo:L.lo,hi:P.hi}}}}return{lo:0,hi:K.length-1}}function ZQ(Q,J,q,Y,U){let K=Q.getSortedVisibleDatasetMetas(),H=q[J];for(let M=0,F=K.length;M<F;++M){let{index:R,data:T}=K[M],{lo:z,hi:L}=FI(K[M],J,H,U);for(let P=z;P<=L;++P){let I=T[P];if(!I.skip)Y(I,R,P)}}}function WI(Q){let J=Q.indexOf("x")!==-1,q=Q.indexOf("y")!==-1;return function(Y,U){let K=J?Math.abs(Y.x-U.x):0,H=q?Math.abs(Y.y-U.y):0;return Math.sqrt(Math.pow(K,2)+Math.pow(H,2))}}function zN(Q,J,q,Y,U){let K=[];if(!U&&!Q.isPointInArea(J))return K;return ZQ(Q,q,J,function(M,F,R){if(!U&&!w8(M,Q.chartArea,0))return;if(M.inRange(J.x,J.y,Y))K.push({element:M,datasetIndex:F,index:R})},!0),K}function wI(Q,J,q,Y){let U=[];function K(H,M,F){let{startAngle:R,endAngle:T}=H.getProps(["startAngle","endAngle"],Y),{angle:z}=LR(H,{x:J.x,y:J.y});if(nU(z,R,T))U.push({element:H,datasetIndex:M,index:F})}return ZQ(Q,q,J,K),U}function RI(Q,J,q,Y,U,K){let H=[],M=WI(q),F=Number.POSITIVE_INFINITY;function R(T,z,L){let P=T.inRange(J.x,J.y,U);if(Y&&!P)return;let I=T.getCenterPoint(U);if(!(!!K||Q.isPointInArea(I))&&!P)return;let C=M(J,I);if(C<F)H=[{element:T,datasetIndex:z,index:L}],F=C;else if(C===F)H.push({element:T,datasetIndex:z,index:L})}return ZQ(Q,q,J,R),H}function _N(Q,J,q,Y,U,K){if(!K&&!Q.isPointInArea(J))return[];return q==="r"&&!Y?wI(Q,J,q,U):RI(Q,J,q,Y,U,K)}function GT(Q,J,q,Y,U){let K=[],H=q==="x"?"inXRange":"inYRange",M=!1;if(ZQ(Q,q,J,(F,R,T)=>{if(F[H]&&F[H](J[q],U))K.push({element:F,datasetIndex:R,index:T}),M=M||F.inRange(J.x,J.y,U)}),Y&&!M)return[];return K}var TI={evaluateInteractionItems:ZQ,modes:{index(Q,J,q,Y){let U=B2(J,Q),K=q.axis||"x",H=q.includeInvisible||!1,M=q.intersect?zN(Q,U,K,Y,H):_N(Q,U,K,!1,Y,H),F=[];if(!M.length)return[];return Q.getSortedVisibleDatasetMetas().forEach((R)=>{let T=M[0].index,z=R.data[T];if(z&&!z.skip)F.push({element:z,datasetIndex:R.index,index:T})}),F},dataset(Q,J,q,Y){let U=B2(J,Q),K=q.axis||"xy",H=q.includeInvisible||!1,M=q.intersect?zN(Q,U,K,Y,H):_N(Q,U,K,!1,Y,H);if(M.length>0){let F=M[0].datasetIndex,R=Q.getDatasetMeta(F).data;M=[];for(let T=0;T<R.length;++T)M.push({element:R[T],datasetIndex:F,index:T})}return M},point(Q,J,q,Y){let U=B2(J,Q),K=q.axis||"xy",H=q.includeInvisible||!1;return zN(Q,U,K,Y,H)},nearest(Q,J,q,Y){let U=B2(J,Q),K=q.axis||"xy",H=q.includeInvisible||!1;return _N(Q,U,K,q.intersect,Y,H)},x(Q,J,q,Y){let U=B2(J,Q);return GT(Q,U,"x",q.intersect,Y)},y(Q,J,q,Y){let U=B2(J,Q);return GT(Q,U,"y",q.intersect,Y)}}},nT=["left","top","right","bottom"];function lZ(Q,J){return Q.filter((q)=>q.pos===J)}function JT(Q,J){return Q.filter((q)=>nT.indexOf(q.pos)===-1&&q.box.axis===J)}function rZ(Q,J){return Q.sort((q,Y)=>{let U=J?Y:q,K=J?q:Y;return U.weight===K.weight?U.index-K.index:U.weight-K.weight})}function zI(Q){let J=[],q,Y,U,K,H,M;for(q=0,Y=(Q||[]).length;q<Y;++q)U=Q[q],{position:K,options:{stack:H,stackWeight:M=1}}=U,J.push({index:q,box:U,pos:K,horizontal:U.isHorizontal(),weight:U.weight,stack:H&&K+H,stackWeight:M});return J}function _I(Q){let J={};for(let q of Q){let{stack:Y,pos:U,stackWeight:K}=q;if(!Y||!nT.includes(U))continue;let H=J[Y]||(J[Y]={count:0,placed:0,weight:0,size:0});H.count++,H.weight+=K}return J}function LI(Q,J){let q=_I(Q),{vBoxMaxWidth:Y,hBoxMaxHeight:U}=J,K,H,M;for(K=0,H=Q.length;K<H;++K){M=Q[K];let{fullSize:F}=M.box,R=q[M.stack],T=R&&M.stackWeight/R.weight;if(M.horizontal)M.width=T?T*Y:F&&J.availableWidth,M.height=U;else M.width=Y,M.height=T?T*U:F&&J.availableHeight}return q}function VI(Q){let J=zI(Q),q=rZ(J.filter((R)=>R.box.fullSize),!0),Y=rZ(lZ(J,"left"),!0),U=rZ(lZ(J,"right")),K=rZ(lZ(J,"top"),!0),H=rZ(lZ(J,"bottom")),M=JT(J,"x"),F=JT(J,"y");return{fullSize:q,leftAndTop:Y.concat(K),rightAndBottom:U.concat(F).concat(H).concat(M),chartArea:lZ(J,"chartArea"),vertical:Y.concat(U).concat(F),horizontal:K.concat(H).concat(M)}}function qT(Q,J,q,Y){return Math.max(Q[q],J[q])+Math.max(Q[Y],J[Y])}function oT(Q,J){Q.top=Math.max(Q.top,J.top),Q.left=Math.max(Q.left,J.left),Q.bottom=Math.max(Q.bottom,J.bottom),Q.right=Math.max(Q.right,J.right)}function EI(Q,J,q,Y){let{pos:U,box:K}=q,H=Q.maxPadding;if(!n0(U)){if(q.size)Q[U]-=q.size;let z=Y[q.stack]||{size:0,count:1};z.size=Math.max(z.size,q.horizontal?K.height:K.width),q.size=z.size/z.count,Q[U]+=q.size}if(K.getPadding)oT(H,K.getPadding());let M=Math.max(0,J.outerWidth-qT(H,Q,"left","right")),F=Math.max(0,J.outerHeight-qT(H,Q,"top","bottom")),R=M!==Q.w,T=F!==Q.h;return Q.w=M,Q.h=F,q.horizontal?{same:R,other:T}:{same:T,other:R}}function PI(Q){let J=Q.maxPadding;function q(Y){let U=Math.max(J[Y]-Q[Y],0);return Q[Y]+=U,U}Q.y+=q("top"),Q.x+=q("left"),q("right"),q("bottom")}function CI(Q,J){let q=J.maxPadding;function Y(U){let K={left:0,top:0,right:0,bottom:0};return U.forEach((H)=>{K[H]=Math.max(J[H],q[H])}),K}return Q?Y(["left","right"]):Y(["top","bottom"])}function oZ(Q,J,q,Y){let U=[],K,H,M,F,R,T;for(K=0,H=Q.length,R=0;K<H;++K){M=Q[K],F=M.box,F.update(M.width||J.w,M.height||J.h,CI(M.horizontal,J));let{same:z,other:L}=EI(J,q,M,Y);if(R|=z&&U.length,T=T||L,!F.fullSize)U.push(M)}return R&&oZ(U,J,q,Y)||T}function Yq(Q,J,q,Y,U){Q.top=q,Q.left=J,Q.right=J+Y,Q.bottom=q+U,Q.width=Y,Q.height=U}function XT(Q,J,q,Y){let U=q.padding,{x:K,y:H}=J;for(let M of Q){let F=M.box,R=Y[M.stack]||{count:1,placed:0,weight:1},T=M.stackWeight/R.weight||1;if(M.horizontal){let z=J.w*T,L=R.size||F.height;if(x9(R.start))H=R.start;if(F.fullSize)Yq(F,U.left,H,q.outerWidth-U.right-U.left,L);else Yq(F,J.left+R.placed,H,z,L);R.start=H,R.placed+=z,H=F.bottom}else{let z=J.h*T,L=R.size||F.width;if(x9(R.start))K=R.start;if(F.fullSize)Yq(F,K,U.top,L,q.outerHeight-U.bottom-U.top);else Yq(F,K,J.top+R.placed,L,z);R.start=K,R.placed+=z,K=F.right}}J.x=K,J.y=H}var V4={addBox(Q,J){if(!Q.boxes)Q.boxes=[];J.fullSize=J.fullSize||!1,J.position=J.position||"top",J.weight=J.weight||0,J._layers=J._layers||function(){return[{z:0,draw(q){J.draw(q)}}]},Q.boxes.push(J)},removeBox(Q,J){let q=Q.boxes?Q.boxes.indexOf(J):-1;if(q!==-1)Q.boxes.splice(q,1)},configure(Q,J,q){J.fullSize=q.fullSize,J.position=q.position,J.weight=q.weight},update(Q,J,q,Y){if(!Q)return;let U=X5(Q.options.layout.padding),K=Math.max(J-U.width,0),H=Math.max(q-U.height,0),M=VI(Q.boxes),F=M.vertical,R=M.horizontal;X1(Q.boxes,(A)=>{if(typeof A.beforeLayout==="function")A.beforeLayout()});let T=F.reduce((A,C)=>C.box.options&&C.box.options.display===!1?A:A+1,0)||1,z=Object.freeze({outerWidth:J,outerHeight:q,padding:U,availableWidth:K,availableHeight:H,vBoxMaxWidth:K/2/T,hBoxMaxHeight:H/2}),L=Object.assign({},U);oT(L,X5(Y));let P=Object.assign({maxPadding:L,w:K,h:H,x:U.left,y:U.top},U),I=LI(F.concat(R),z);if(oZ(M.fullSize,P,z,I),oZ(F,P,z,I),oZ(R,P,z,I))oZ(F,P,z,I);PI(P),XT(M.leftAndTop,P,z,I),P.x+=P.w,P.y+=P.h,XT(M.rightAndBottom,P,z,I),Q.chartArea={left:P.left,top:P.top,right:P.left+P.w,bottom:P.top+P.h,height:P.h,width:P.w},X1(M.chartArea,(A)=>{let C=A.box;Object.assign(C,Q.chartArea),C.update(P.w,P.h,{left:0,top:0,right:0,bottom:0})})}};class hN{acquireContext(Q,J){}releaseContext(Q){return!1}addEventListener(Q,J,q){}removeEventListener(Q,J,q){}getDevicePixelRatio(){return 1}getMaximumSize(Q,J,q,Y){return J=Math.max(0,J||Q.width),q=q||Q.height,{width:J,height:Math.max(0,Y?Math.floor(J/Y):q)}}isAttached(Q){return!0}updateConfig(Q){}}class aT extends hN{acquireContext(Q){return Q&&Q.getContext&&Q.getContext("2d")||null}updateConfig(Q){Q.options.animation=!1}}var Hq="$chartjs",II={touchstart:"mousedown",touchmove:"mousemove",touchend:"mouseup",pointerenter:"mouseenter",pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointerleave:"mouseout",pointerout:"mouseout"},YT=(Q)=>Q===null||Q==="";function OI(Q,J){let q=Q.style,Y=Q.getAttribute("height"),U=Q.getAttribute("width");if(Q[Hq]={initial:{height:Y,width:U,style:{display:q.display,height:q.height,width:q.width}}},q.display=q.display||"block",q.boxSizing=q.boxSizing||"border-box",YT(U)){let K=NN(Q,"width");if(K!==void 0)Q.width=K}if(YT(Y))if(Q.style.height==="")Q.height=Q.width/(J||2);else{let K=NN(Q,"height");if(K!==void 0)Q.height=K}return Q}var iT=pR?{passive:!0}:!1;function DI(Q,J,q){if(Q)Q.addEventListener(J,q,iT)}function jI(Q,J,q){if(Q&&Q.canvas)Q.canvas.removeEventListener(J,q,iT)}function AI(Q,J){let q=II[Q.type]||Q.type,{x:Y,y:U}=B2(Q,J);return{type:q,chart:J,native:Q,x:Y!==void 0?Y:null,y:U!==void 0?U:null}}function Fq(Q,J){for(let q of Q)if(q===J||q.contains(J))return!0}function SI(Q,J,q){let Y=Q.canvas,U=new MutationObserver((K)=>{let H=!1;for(let M of K)H=H||Fq(M.addedNodes,Y),H=H&&!Fq(M.removedNodes,Y);if(H)q()});return U.observe(document,{childList:!0,subtree:!0}),U}function vI(Q,J,q){let Y=Q.canvas,U=new MutationObserver((K)=>{let H=!1;for(let M of K)H=H||Fq(M.removedNodes,Y),H=H&&!Fq(M.addedNodes,Y);if(H)q()});return U.observe(document,{childList:!0,subtree:!0}),U}var tZ=new Map,UT=0;function tT(){let Q=window.devicePixelRatio;if(Q===UT)return;UT=Q,tZ.forEach((J,q)=>{if(q.currentDevicePixelRatio!==Q)J()})}function kI(Q,J){if(!tZ.size)window.addEventListener("resize",tT);tZ.set(Q,J)}function bI(Q){if(tZ.delete(Q),!tZ.size)window.removeEventListener("resize",tT)}function fI(Q,J,q){let Y=Q.canvas,U=Y&&qq(Y);if(!U)return;let K=tU((M,F)=>{let R=U.clientWidth;if(q(M,F),R<U.clientWidth)q()},window),H=new ResizeObserver((M)=>{let F=M[0],R=F.contentRect.width,T=F.contentRect.height;if(R===0&&T===0)return;K(R,T)});return H.observe(U),kI(Q,K),H}function LN(Q,J,q){if(q)q.disconnect();if(J==="resize")bI(Q)}function yI(Q,J,q){let Y=Q.canvas,U=tU((K)=>{if(Q.ctx!==null)q(AI(K,Q))},Q);return DI(Y,J,U),U}class eT extends hN{acquireContext(Q,J){let q=Q&&Q.getContext&&Q.getContext("2d");if(q&&q.canvas===Q)return OI(Q,J),q;return null}releaseContext(Q){let J=Q.canvas;if(!J[Hq])return!1;let q=J[Hq].initial;["height","width"].forEach((U)=>{let K=q[U];if(t0(K))J.removeAttribute(U);else J.setAttribute(U,K)});let Y=q.style||{};return Object.keys(Y).forEach((U)=>{J.style[U]=Y[U]}),J.width=J.width,delete J[Hq],!0}addEventListener(Q,J,q){this.removeEventListener(Q,J);let Y=Q.$proxies||(Q.$proxies={}),K={attach:SI,detach:vI,resize:fI}[J]||yI;Y[J]=K(Q,J,q)}removeEventListener(Q,J){let q=Q.$proxies||(Q.$proxies={}),Y=q[J];if(!Y)return;({attach:LN,detach:LN,resize:LN}[J]||jI)(Q,J,Y),q[J]=void 0}getDevicePixelRatio(){return window.devicePixelRatio}getMaximumSize(Q,J,q,Y){return dR(Q,J,q,Y)}isAttached(Q){let J=Q&&qq(Q);return!!(J&&J.isConnected)}}function gI(Q){if(!Jq()||typeof OffscreenCanvas<"u"&&Q instanceof OffscreenCanvas)return aT;return eT}class q6{static defaults={};static defaultRoutes=void 0;x;y;active=!1;options;$animations;tooltipPosition(Q){let{x:J,y:q}=this.getProps(["x","y"],Q);return{x:J,y:q}}hasValue(){return m9(this.x)&&m9(this.y)}getProps(Q,J){let q=this.$animations;if(!J||!q)return this;let Y={};return Q.forEach((U)=>{Y[U]=q[U]&&q[U].active()?q[U]._to:this[U]}),Y}}function hI(Q,J){let q=Q.options.ticks,Y=xI(Q),U=Math.min(q.maxTicksLimit||Y,Y),K=q.major.enabled?mI(J):[],H=K.length,M=K[0],F=K[H-1],R=[];if(H>U)return dI(J,R,K,H/U),R;let T=uI(K,J,U);if(H>0){let z,L,P=H>1?Math.round((F-M)/(H-1)):null;Uq(J,R,T,t0(P)?0:M-P,M);for(z=0,L=H-1;z<L;z++)Uq(J,R,T,K[z],K[z+1]);return Uq(J,R,T,F,t0(P)?J.length:F+P),R}return Uq(J,R,T),R}function xI(Q){let J=Q.options.offset,q=Q._tickSize(),Y=Q._length/q+(J?0:1),U=Q._maxLength/q;return Math.floor(Math.min(Y,U))}function uI(Q,J,q){let Y=pI(Q),U=J.length/q;if(!Y)return Math.max(U,1);let K=zR(Y);for(let H=0,M=K.length-1;H<M;H++){let F=K[H];if(F>U)return F}return Math.max(U,1)}function mI(Q){let J=[],q,Y;for(q=0,Y=Q.length;q<Y;q++)if(Q[q].major)J.push(q);return J}function dI(Q,J,q,Y){let U=0,K=q[0],H;Y=Math.ceil(Y);for(H=0;H<Q.length;H++)if(H===K)J.push(Q[H]),U++,K=q[U*Y]}function Uq(Q,J,q,Y,U){let K=h0(Y,0),H=Math.min(h0(U,Q.length),Q.length),M=0,F,R,T;if(q=Math.ceil(q),U)F=U-Y,q=F/Math.floor(F/q);T=K;while(T<0)M++,T=Math.round(K+M*q);for(R=Math.max(K,0);R<H;R++)if(R===T)J.push(Q[R]),M++,T=Math.round(K+M*q)}function pI(Q){let J=Q.length,q,Y;if(J<2)return!1;for(Y=Q[0],q=1;q<J;++q)if(Q[q]-Q[q-1]!==Y)return!1;return Y}var cI=(Q)=>Q==="left"?"right":Q==="right"?"left":Q,NT=(Q,J,q)=>J==="top"||J==="left"?Q[J]+q:Q[J]-q,KT=(Q,J)=>Math.min(J||Q,Q);function BT(Q,J){let q=[],Y=Q.length/J,U=Q.length,K=0;for(;K<U;K+=Y)q.push(Q[Math.floor(K)]);return q}function lI(Q,J,q){let Y=Q.ticks.length,U=Math.min(J,Y-1),K=Q._startPixel,H=Q._endPixel,M=0.000001,F=Q.getPixelForTick(U),R;if(q){if(Y===1)R=Math.max(F-K,H-F);else if(J===0)R=(Q.getPixelForTick(1)-F)/2;else R=(F-Q.getPixelForTick(U-1))/2;if(F+=U<J?R:-R,F<K-0.000001||F>H+0.000001)return}return F}function rI(Q,J){X1(Q,(q)=>{let Y=q.gc,U=Y.length/2,K;if(U>J){for(K=0;K<U;++K)delete q.data[Y[K]];Y.splice(0,U)}})}function sZ(Q){return Q.drawTicks?Q.tickLength:0}function HT(Q,J){if(!Q.display)return 0;let q=p1(Q.font,J),Y=X5(Q.padding);return(z1(Q.text)?Q.text.length:1)*q.lineHeight+Y.height}function sI(Q,J){return Q6(Q,{scale:J,type:"scale"})}function nI(Q,J,q){return Q6(Q,{tick:q,index:J,type:"tick"})}function oI(Q,J,q){let Y=eJ(Q);if(q&&J!=="right"||!q&&J==="right")Y=cI(Y);return Y}function aI(Q,J,q,Y){let{top:U,left:K,bottom:H,right:M,chart:F}=Q,{chartArea:R,scales:T}=F,z=0,L,P,I,A=H-U,C=M-K;if(Q.isHorizontal()){if(P=q5(Y,K,M),n0(q)){let g=Object.keys(q)[0],m=q[g];I=T[g].getPixelForValue(m)+A-J}else if(q==="center")I=(R.bottom+R.top)/2+A-J;else I=NT(Q,q,J);L=M-K}else{if(n0(q)){let g=Object.keys(q)[0],m=q[g];P=T[g].getPixelForValue(m)-C+J}else if(q==="center")P=(R.left+R.right)/2-C+J;else P=NT(Q,q,J);I=q5(Y,H,U),z=q==="left"?-b5:b5}return{titleX:P,titleY:I,maxWidth:L,rotation:z}}class T$ extends q6{constructor(Q){super();this.id=Q.id,this.type=Q.type,this.options=void 0,this.ctx=Q.ctx,this.chart=Q.chart,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.width=void 0,this.height=void 0,this._margins={left:0,right:0,top:0,bottom:0},this.maxWidth=void 0,this.maxHeight=void 0,this.paddingTop=void 0,this.paddingBottom=void 0,this.paddingLeft=void 0,this.paddingRight=void 0,this.axis=void 0,this.labelRotation=void 0,this.min=void 0,this.max=void 0,this._range=void 0,this.ticks=[],this._gridLineItems=null,this._labelItems=null,this._labelSizes=null,this._length=0,this._maxLength=0,this._longestTextCache={},this._startPixel=void 0,this._endPixel=void 0,this._reversePixels=!1,this._userMax=void 0,this._userMin=void 0,this._suggestedMax=void 0,this._suggestedMin=void 0,this._ticksLength=0,this._borderValue=0,this._cache={},this._dataLimitsCached=!1,this.$context=void 0}init(Q){this.options=Q.setContext(this.getContext()),this.axis=Q.axis,this._userMin=this.parse(Q.min),this._userMax=this.parse(Q.max),this._suggestedMin=this.parse(Q.suggestedMin),this._suggestedMax=this.parse(Q.suggestedMax)}parse(Q,J){return Q}getUserBounds(){let{_userMin:Q,_userMax:J,_suggestedMin:q,_suggestedMax:Y}=this;return Q=g5(Q,Number.POSITIVE_INFINITY),J=g5(J,Number.NEGATIVE_INFINITY),q=g5(q,Number.POSITIVE_INFINITY),Y=g5(Y,Number.NEGATIVE_INFINITY),{min:g5(Q,q),max:g5(J,Y),minDefined:O1(Q),maxDefined:O1(J)}}getMinMax(Q){let{min:J,max:q,minDefined:Y,maxDefined:U}=this.getUserBounds(),K;if(Y&&U)return{min:J,max:q};let H=this.getMatchingVisibleMetas();for(let M=0,F=H.length;M<F;++M){if(K=H[M].controller.getMinMax(this,Q),!Y)J=Math.min(J,K.min);if(!U)q=Math.max(q,K.max)}return J=U&&J>q?q:J,q=Y&&J>q?J:q,{min:g5(J,g5(q,J)),max:g5(q,g5(J,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 Q=this.chart.data;return this.options.labels||(this.isHorizontal()?Q.xLabels:Q.yLabels)||Q.labels||[]}getLabelItems(Q=this.chart.chartArea){return this._labelItems||(this._labelItems=this._computeLabelItems(Q))}beforeLayout(){this._cache={},this._dataLimitsCached=!1}beforeUpdate(){W1(this.options.beforeUpdate,[this])}update(Q,J,q){let{beginAtZero:Y,grace:U,ticks:K}=this.options,H=K.sampleSize;if(this.beforeUpdate(),this.maxWidth=Q,this.maxHeight=J,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=yR(this,U,Y),this._dataLimitsCached=!0;this.beforeBuildTicks(),this.ticks=this.buildTicks()||[],this.afterBuildTicks();let M=H<this.ticks.length;if(this._convertTicksToLabels(M?BT(this.ticks,H):this.ticks),this.configure(),this.beforeCalculateLabelRotation(),this.calculateLabelRotation(),this.afterCalculateLabelRotation(),K.display&&(K.autoSkip||K.source==="auto"))this.ticks=hI(this,this.ticks),this._labelSizes=null,this.afterAutoSkip();if(M)this._convertTicksToLabels(this.ticks);this.beforeFit(),this.fit(),this.afterFit(),this.afterUpdate()}configure(){let Q=this.options.reverse,J,q;if(this.isHorizontal())J=this.left,q=this.right;else J=this.top,q=this.bottom,Q=!Q;this._startPixel=J,this._endPixel=q,this._reversePixels=Q,this._length=q-J,this._alignToPixels=this.options.alignToPixels}afterUpdate(){W1(this.options.afterUpdate,[this])}beforeSetDimensions(){W1(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(){W1(this.options.afterSetDimensions,[this])}_callHooks(Q){this.chart.notifyPlugins(Q,this.getContext()),W1(this.options[Q],[this])}beforeDataLimits(){this._callHooks("beforeDataLimits")}determineDataLimits(){}afterDataLimits(){this._callHooks("afterDataLimits")}beforeBuildTicks(){this._callHooks("beforeBuildTicks")}buildTicks(){return[]}afterBuildTicks(){this._callHooks("afterBuildTicks")}beforeTickToLabelConversion(){W1(this.options.beforeTickToLabelConversion,[this])}generateTickLabels(Q){let J=this.options.ticks,q,Y,U;for(q=0,Y=Q.length;q<Y;q++)U=Q[q],U.label=W1(J.callback,[U.value,q,Q],this)}afterTickToLabelConversion(){W1(this.options.afterTickToLabelConversion,[this])}beforeCalculateLabelRotation(){W1(this.options.beforeCalculateLabelRotation,[this])}calculateLabelRotation(){let Q=this.options,J=Q.ticks,q=KT(this.ticks.length,Q.ticks.maxTicksLimit),Y=J.minRotation||0,U=J.maxRotation,K=Y,H,M,F;if(!this._isVisible()||!J.display||Y>=U||q<=1||!this.isHorizontal()){this.labelRotation=Y;return}let R=this._getLabelSizes(),T=R.widest.width,z=R.highest.height,L=y5(this.chart.width-T,0,this.maxWidth);if(H=Q.offset?this.maxWidth/q:L/(q-1),T+6>H)H=L/(q-(Q.offset?0.5:1)),M=this.maxHeight-sZ(Q.grid)-J.padding-HT(Q.title,this.chart.options.font),F=Math.sqrt(T*T+z*z),K=iJ(Math.min(Math.asin(y5((R.highest.height+6)/H,-1,1)),Math.asin(y5(M/F,-1,1))-Math.asin(y5(z/F,-1,1)))),K=Math.max(Y,Math.min(U,K));this.labelRotation=K}afterCalculateLabelRotation(){W1(this.options.afterCalculateLabelRotation,[this])}afterAutoSkip(){}beforeFit(){W1(this.options.beforeFit,[this])}fit(){let Q={width:0,height:0},{chart:J,options:{ticks:q,title:Y,grid:U}}=this,K=this._isVisible(),H=this.isHorizontal();if(K){let M=HT(Y,J.options.font);if(H)Q.width=this.maxWidth,Q.height=sZ(U)+M;else Q.height=this.maxHeight,Q.width=sZ(U)+M;if(q.display&&this.ticks.length){let{first:F,last:R,widest:T,highest:z}=this._getLabelSizes(),L=q.padding*2,P=$6(this.labelRotation),I=Math.cos(P),A=Math.sin(P);if(H){let C=q.mirror?0:A*T.width+I*z.height;Q.height=Math.min(this.maxHeight,Q.height+C+L)}else{let C=q.mirror?0:I*T.width+A*z.height;Q.width=Math.min(this.maxWidth,Q.width+C+L)}this._calculatePadding(F,R,A,I)}}if(this._handleMargins(),H)this.width=this._length=J.width-this._margins.left-this._margins.right,this.height=Q.height;else this.width=Q.width,this.height=this._length=J.height-this._margins.top-this._margins.bottom}_calculatePadding(Q,J,q,Y){let{ticks:{align:U,padding:K},position:H}=this.options,M=this.labelRotation!==0,F=H!=="top"&&this.axis==="x";if(this.isHorizontal()){let R=this.getPixelForTick(0)-this.left,T=this.right-this.getPixelForTick(this.ticks.length-1),z=0,L=0;if(M)if(F)z=Y*Q.width,L=q*J.height;else z=q*Q.height,L=Y*J.width;else if(U==="start")L=J.width;else if(U==="end")z=Q.width;else if(U!=="inner")z=Q.width/2,L=J.width/2;this.paddingLeft=Math.max((z-R+K)*this.width/(this.width-R),0),this.paddingRight=Math.max((L-T+K)*this.width/(this.width-T),0)}else{let R=J.height/2,T=Q.height/2;if(U==="start")R=0,T=Q.height;else if(U==="end")R=J.height,T=0;this.paddingTop=R+K,this.paddingBottom=T+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(){W1(this.options.afterFit,[this])}isHorizontal(){let{axis:Q,position:J}=this.options;return J==="top"||J==="bottom"||Q==="x"}isFullSize(){return this.options.fullSize}_convertTicksToLabels(Q){this.beforeTickToLabelConversion(),this.generateTickLabels(Q);let J,q;for(J=0,q=Q.length;J<q;J++)if(t0(Q[J].label))Q.splice(J,1),q--,J--;this.afterTickToLabelConversion()}_getLabelSizes(){let Q=this._labelSizes;if(!Q){let J=this.options.ticks.sampleSize,q=this.ticks;if(J<q.length)q=BT(q,J);this._labelSizes=Q=this._computeLabelSizes(q,q.length,this.options.ticks.maxTicksLimit)}return Q}_computeLabelSizes(Q,J,q){let{ctx:Y,_longestTextCache:U}=this,K=[],H=[],M=Math.floor(J/KT(J,q)),F=0,R=0,T,z,L,P,I,A,C,g,m,o,a;for(T=0;T<J;T+=M){if(P=Q[T].label,I=this._resolveTickFontOptions(T),Y.font=A=I.string,C=U[A]=U[A]||{data:{},gc:[]},g=I.lineHeight,m=o=0,!t0(P)&&!z1(P))m=hZ(Y,C.data,C.gc,m,P),o=g;else if(z1(P)){for(z=0,L=P.length;z<L;++z)if(a=P[z],!t0(a)&&!z1(a))m=hZ(Y,C.data,C.gc,m,a),o+=g}K.push(m),H.push(o),F=Math.max(m,F),R=Math.max(o,R)}rI(U,J);let s=K.indexOf(F),Q0=H.indexOf(R),p=(i)=>({width:K[i]||0,height:H[i]||0});return{first:p(0),last:p(J-1),widest:p(s),highest:p(Q0),widths:K,heights:H}}getLabelForValue(Q){return Q}getPixelForValue(Q,J){return NaN}getValueForPixel(Q){}getPixelForTick(Q){let J=this.ticks;if(Q<0||Q>J.length-1)return null;return this.getPixelForValue(J[Q].value)}getPixelForDecimal(Q){if(this._reversePixels)Q=1-Q;let J=this._startPixel+Q*this._length;return VR(this._alignToPixels?U2(this.chart,J,0):J)}getDecimalForPixel(Q){let J=(Q-this._startPixel)/this._length;return this._reversePixels?1-J:J}getBasePixel(){return this.getPixelForValue(this.getBaseValue())}getBaseValue(){let{min:Q,max:J}=this;return Q<0&&J<0?J:Q>0&&J>0?Q:0}getContext(Q){let J=this.ticks||[];if(Q>=0&&Q<J.length){let q=J[Q];return q.$context||(q.$context=nI(this.getContext(),Q,q))}return this.$context||(this.$context=sI(this.chart.getContext(),this))}_tickSize(){let Q=this.options.ticks,J=$6(this.labelRotation),q=Math.abs(Math.cos(J)),Y=Math.abs(Math.sin(J)),U=this._getLabelSizes(),K=Q.autoSkipPadding||0,H=U?U.widest.width+K:0,M=U?U.highest.height+K:0;return this.isHorizontal()?M*q>H*Y?H/q:M/Y:M*Y<H*q?M/q:H/Y}_isVisible(){let Q=this.options.display;if(Q!=="auto")return!!Q;return this.getMatchingVisibleMetas().length>0}_computeGridLineItems(Q){let J=this.axis,q=this.chart,Y=this.options,{grid:U,position:K,border:H}=Y,M=U.offset,F=this.isHorizontal(),T=this.ticks.length+(M?1:0),z=sZ(U),L=[],P=H.setContext(this.getContext()),I=P.display?P.width:0,A=I/2,C=function(l){return U2(q,l,I)},g,m,o,a,s,Q0,p,i,Y0,d,N0,w0;if(K==="top")g=C(this.bottom),Q0=this.bottom-z,i=g-A,d=C(Q.top)+A,w0=Q.bottom;else if(K==="bottom")g=C(this.top),d=Q.top,w0=C(Q.bottom)-A,Q0=g+A,i=this.top+z;else if(K==="left")g=C(this.right),s=this.right-z,p=g-A,Y0=C(Q.left)+A,N0=Q.right;else if(K==="right")g=C(this.left),Y0=Q.left,N0=C(Q.right)-A,s=g+A,p=this.left+z;else if(J==="x"){if(K==="center")g=C((Q.top+Q.bottom)/2+0.5);else if(n0(K)){let l=Object.keys(K)[0],J0=K[l];g=C(this.chart.scales[l].getPixelForValue(J0))}d=Q.top,w0=Q.bottom,Q0=g+A,i=Q0+z}else if(J==="y"){if(K==="center")g=C((Q.left+Q.right)/2);else if(n0(K)){let l=Object.keys(K)[0],J0=K[l];g=C(this.chart.scales[l].getPixelForValue(J0))}s=g-A,p=s-z,Y0=Q.left,N0=Q.right}let z0=h0(Y.ticks.maxTicksLimit,T),C0=Math.max(1,Math.ceil(T/z0));for(m=0;m<T;m+=C0){let l=this.getContext(m),J0=U.setContext(l),K0=H.setContext(l),d0=J0.lineWidth,k0=J0.color,S=K0.dash||[],n=K0.dashOffset,B0=J0.tickWidth,H0=J0.tickColor,b0=J0.tickBorderDash||[],j1=J0.tickBorderDashOffset;if(o=lI(this,m,M),o===void 0)continue;if(a=U2(q,o,d0),F)s=p=Y0=N0=a;else Q0=i=d=w0=a;L.push({tx1:s,ty1:Q0,tx2:p,ty2:i,x1:Y0,y1:d,x2:N0,y2:w0,width:d0,color:k0,borderDash:S,borderDashOffset:n,tickWidth:B0,tickColor:H0,tickBorderDash:b0,tickBorderDashOffset:j1})}return this._ticksLength=T,this._borderValue=g,L}_computeLabelItems(Q){let J=this.axis,q=this.options,{position:Y,ticks:U}=q,K=this.isHorizontal(),H=this.ticks,{align:M,crossAlign:F,padding:R,mirror:T}=U,z=sZ(q.grid),L=z+R,P=T?-R:L,I=-$6(this.labelRotation),A=[],C,g,m,o,a,s,Q0,p,i,Y0,d,N0,w0="middle";if(Y==="top")s=this.bottom-P,Q0=this._getXAxisLabelAlignment();else if(Y==="bottom")s=this.top+P,Q0=this._getXAxisLabelAlignment();else if(Y==="left"){let C0=this._getYAxisLabelAlignment(z);Q0=C0.textAlign,a=C0.x}else if(Y==="right"){let C0=this._getYAxisLabelAlignment(z);Q0=C0.textAlign,a=C0.x}else if(J==="x"){if(Y==="center")s=(Q.top+Q.bottom)/2+L;else if(n0(Y)){let C0=Object.keys(Y)[0],l=Y[C0];s=this.chart.scales[C0].getPixelForValue(l)+L}Q0=this._getXAxisLabelAlignment()}else if(J==="y"){if(Y==="center")a=(Q.left+Q.right)/2-L;else if(n0(Y)){let C0=Object.keys(Y)[0],l=Y[C0];a=this.chart.scales[C0].getPixelForValue(l)}Q0=this._getYAxisLabelAlignment(z).textAlign}if(J==="y"){if(M==="start")w0="top";else if(M==="end")w0="bottom"}let z0=this._getLabelSizes();for(C=0,g=H.length;C<g;++C){m=H[C],o=m.label;let C0=U.setContext(this.getContext(C));p=this.getPixelForTick(C)+U.labelOffset,i=this._resolveTickFontOptions(C),Y0=i.lineHeight,d=z1(o)?o.length:1;let l=d/2,J0=C0.color,K0=C0.textStrokeColor,d0=C0.textStrokeWidth,k0=Q0;if(K){if(a=p,Q0==="inner")if(C===g-1)k0=!this.options.reverse?"right":"left";else if(C===0)k0=!this.options.reverse?"left":"right";else k0="center";if(Y==="top")if(F==="near"||I!==0)N0=-d*Y0+Y0/2;else if(F==="center")N0=-z0.highest.height/2-l*Y0+Y0;else N0=-z0.highest.height+Y0/2;else if(F==="near"||I!==0)N0=Y0/2;else if(F==="center")N0=z0.highest.height/2-l*Y0;else N0=z0.highest.height-d*Y0;if(T)N0*=-1;if(I!==0&&!C0.showLabelBackdrop)a+=Y0/2*Math.sin(I)}else s=p,N0=(1-d)*Y0/2;let S;if(C0.showLabelBackdrop){let n=X5(C0.backdropPadding),B0=z0.heights[C],H0=z0.widths[C],b0=N0-n.top,j1=0-n.left;switch(w0){case"middle":b0-=B0/2;break;case"bottom":b0-=B0;break}switch(Q0){case"center":j1-=H0/2;break;case"right":j1-=H0;break;case"inner":if(C===g-1)j1-=H0;else if(C>0)j1-=H0/2;break}S={left:j1,top:b0,width:H0+n.width,height:B0+n.height,color:C0.backdropColor}}A.push({label:o,font:i,textOffset:N0,options:{rotation:I,color:J0,strokeColor:K0,strokeWidth:d0,textAlign:k0,textBaseline:w0,translation:[a,s],backdrop:S}})}return A}_getXAxisLabelAlignment(){let{position:Q,ticks:J}=this.options;if(-$6(this.labelRotation))return Q==="top"?"left":"right";let Y="center";if(J.align==="start")Y="left";else if(J.align==="end")Y="right";else if(J.align==="inner")Y="inner";return Y}_getYAxisLabelAlignment(Q){let{position:J,ticks:{crossAlign:q,mirror:Y,padding:U}}=this.options,K=this._getLabelSizes(),H=Q+U,M=K.widest.width,F,R;if(J==="left")if(Y)if(R=this.right+U,q==="near")F="left";else if(q==="center")F="center",R+=M/2;else F="right",R+=M;else if(R=this.right-H,q==="near")F="right";else if(q==="center")F="center",R-=M/2;else F="left",R=this.left;else if(J==="right")if(Y)if(R=this.left+U,q==="near")F="right";else if(q==="center")F="center",R-=M/2;else F="left",R-=M;else if(R=this.left+H,q==="near")F="left";else if(q==="center")F="center",R+=M/2;else F="right",R=this.right;else F="right";return{textAlign:F,x:R}}_computeLabelArea(){if(this.options.ticks.mirror)return;let Q=this.chart,J=this.options.position;if(J==="left"||J==="right")return{top:0,left:this.left,bottom:Q.height,right:this.right};if(J==="top"||J==="bottom")return{top:this.top,left:0,bottom:this.bottom,right:Q.width}}drawBackground(){let{ctx:Q,options:{backgroundColor:J},left:q,top:Y,width:U,height:K}=this;if(J)Q.save(),Q.fillStyle=J,Q.fillRect(q,Y,U,K),Q.restore()}getLineWidthForValue(Q){let J=this.options.grid;if(!this._isVisible()||!J.display)return 0;let Y=this.ticks.findIndex((U)=>U.value===Q);if(Y>=0)return J.setContext(this.getContext(Y)).lineWidth;return 0}drawGrid(Q){let J=this.options.grid,q=this.ctx,Y=this._gridLineItems||(this._gridLineItems=this._computeGridLineItems(Q)),U,K,H=(M,F,R)=>{if(!R.width||!R.color)return;q.save(),q.lineWidth=R.width,q.strokeStyle=R.color,q.setLineDash(R.borderDash||[]),q.lineDashOffset=R.borderDashOffset,q.beginPath(),q.moveTo(M.x,M.y),q.lineTo(F.x,F.y),q.stroke(),q.restore()};if(J.display)for(U=0,K=Y.length;U<K;++U){let M=Y[U];if(J.drawOnChartArea)H({x:M.x1,y:M.y1},{x:M.x2,y:M.y2},M);if(J.drawTicks)H({x:M.tx1,y:M.ty1},{x:M.tx2,y:M.ty2},{color:M.tickColor,width:M.tickWidth,borderDash:M.tickBorderDash,borderDashOffset:M.tickBorderDashOffset})}}drawBorder(){let{chart:Q,ctx:J,options:{border:q,grid:Y}}=this,U=q.setContext(this.getContext()),K=q.display?U.width:0;if(!K)return;let H=Y.setContext(this.getContext(0)).lineWidth,M=this._borderValue,F,R,T,z;if(this.isHorizontal())F=U2(Q,this.left,K)-K/2,R=U2(Q,this.right,H)+H/2,T=z=M;else T=U2(Q,this.top,K)-K/2,z=U2(Q,this.bottom,H)+H/2,F=R=M;J.save(),J.lineWidth=U.width,J.strokeStyle=U.color,J.beginPath(),J.moveTo(F,T),J.lineTo(R,z),J.stroke(),J.restore()}drawLabels(Q){if(!this.options.ticks.display)return;let q=this.ctx,Y=this._computeLabelArea();if(Y)mZ(q,Y);let U=this.getLabelItems(Q);for(let K of U){let{options:H,font:M,label:F,textOffset:R}=K;N2(q,F,0,R,M,H)}if(Y)dZ(q)}drawTitle(){let{ctx:Q,options:{position:J,title:q,reverse:Y}}=this;if(!q.display)return;let U=p1(q.font),K=X5(q.padding),H=q.align,M=U.lineHeight/2;if(J==="bottom"||J==="center"||n0(J)){if(M+=K.bottom,z1(q.text))M+=U.lineHeight*(q.text.length-1)}else M+=K.top;let{titleX:F,titleY:R,maxWidth:T,rotation:z}=aI(this,M,J,H);N2(Q,q.text,0,0,U,{color:q.color,maxWidth:T,rotation:z,textAlign:oI(H,J,Y),textBaseline:"middle",translation:[F,R]})}draw(Q){if(!this._isVisible())return;this.drawBackground(),this.drawGrid(Q),this.drawBorder(),this.drawTitle(),this.drawLabels(Q)}_layers(){let Q=this.options,J=Q.ticks&&Q.ticks.z||0,q=h0(Q.grid&&Q.grid.z,-1),Y=h0(Q.border&&Q.border.z,0);if(!this._isVisible()||this.draw!==T$.prototype.draw)return[{z:J,draw:(U)=>{this.draw(U)}}];return[{z:q,draw:(U)=>{this.drawBackground(),this.drawGrid(U),this.drawTitle()}},{z:Y,draw:()=>{this.drawBorder()}},{z:J,draw:(U)=>{this.drawLabels(U)}}]}getMatchingVisibleMetas(Q){let J=this.chart.getSortedVisibleDatasetMetas(),q=this.axis+"AxisID",Y=[],U,K;for(U=0,K=J.length;U<K;++U){let H=J[U];if(H[q]===this.id&&(!Q||H.type===Q))Y.push(H)}return Y}_resolveTickFontOptions(Q){let J=this.options.ticks.setContext(this.getContext(Q));return p1(J.font)}_maxDigits(){let Q=this._resolveTickFontOptions(0).lineHeight;return(this.isHorizontal()?this.width:this.height)/Q}}class aZ{constructor(Q,J,q){this.type=Q,this.scope=J,this.override=q,this.items=Object.create(null)}isForType(Q){return Object.prototype.isPrototypeOf.call(this.type.prototype,Q.prototype)}register(Q){let J=Object.getPrototypeOf(Q),q;if(eI(J))q=this.register(J);let Y=this.items,U=Q.id,K=this.scope+"."+U;if(!U)throw Error("class does not have id: "+Q);if(U in Y)return K;if(Y[U]=Q,iI(Q,K,q),this.override)D1.override(Q.id,Q.overrides);return K}get(Q){return this.items[Q]}unregister(Q){let J=this.items,q=Q.id,Y=this.scope;if(q in J)delete J[q];if(Y&&q in D1[Y]){if(delete D1[Y][q],this.override)delete Y2[q]}}}function iI(Q,J,q){let Y=y9(Object.create(null),[q?D1.get(q):{},D1.get(J),Q.defaults]);if(D1.set(J,Y),Q.defaultRoutes)tI(J,Q.defaultRoutes);if(Q.descriptors)D1.describe(J,Q.descriptors)}function tI(Q,J){Object.keys(J).forEach((q)=>{let Y=q.split("."),U=Y.pop(),K=[Q].concat(Y).join("."),H=J[q].split("."),M=H.pop(),F=H.join(".");D1.route(K,U,F,M)})}function eI(Q){return"id"in Q&&"defaults"in Q}class $z{constructor(){this.controllers=new aZ(Wq,"datasets",!0),this.elements=new aZ(q6,"elements"),this.plugins=new aZ(Object,"plugins"),this.scales=new aZ(T$,"scales"),this._typedRegistries=[this.controllers,this.scales,this.elements]}add(...Q){this._each("register",Q)}remove(...Q){this._each("unregister",Q)}addControllers(...Q){this._each("register",Q,this.controllers)}addElements(...Q){this._each("register",Q,this.elements)}addPlugins(...Q){this._each("register",Q,this.plugins)}addScales(...Q){this._each("register",Q,this.scales)}getController(Q){return this._get(Q,this.controllers,"controller")}getElement(Q){return this._get(Q,this.elements,"element")}getPlugin(Q){return this._get(Q,this.plugins,"plugin")}getScale(Q){return this._get(Q,this.scales,"scale")}removeControllers(...Q){this._each("unregister",Q,this.controllers)}removeElements(...Q){this._each("unregister",Q,this.elements)}removePlugins(...Q){this._each("unregister",Q,this.plugins)}removeScales(...Q){this._each("unregister",Q,this.scales)}_each(Q,J,q){[...J].forEach((Y)=>{let U=q||this._getRegistryForType(Y);if(q||U.isForType(Y)||U===this.plugins&&Y.id)this._exec(Q,U,Y);else X1(Y,(K)=>{let H=q||this._getRegistryForType(K);this._exec(Q,H,K)})})}_exec(Q,J,q){let Y=aJ(Q);W1(q["before"+Y],[],q),J[Q](q),W1(q["after"+Y],[],q)}_getRegistryForType(Q){for(let J=0;J<this._typedRegistries.length;J++){let q=this._typedRegistries[J];if(q.isForType(Q))return q}return this.plugins}_get(Q,J,q){let Y=J.get(Q);if(Y===void 0)throw Error('"'+Q+'" is not a registered '+q+".");return Y}}var z8=new $z;class Zz{constructor(){this._init=void 0}notify(Q,J,q,Y){if(J==="beforeInit")this._init=this._createDescriptors(Q,!0),this._notify(this._init,Q,"install");if(this._init===void 0)return;let U=Y?this._descriptors(Q).filter(Y):this._descriptors(Q),K=this._notify(U,Q,J,q);if(J==="afterDestroy")this._notify(U,Q,"stop"),this._notify(this._init,Q,"uninstall"),this._init=void 0;return K}_notify(Q,J,q,Y){Y=Y||{};for(let U of Q){let K=U.plugin,H=K[q],M=[J,Y,U.options];if(W1(H,M,K)===!1&&Y.cancelable)return!1}return!0}invalidate(){if(!t0(this._cache))this._oldCache=this._cache,this._cache=void 0}_descriptors(Q){if(this._cache)return this._cache;let J=this._cache=this._createDescriptors(Q);return this._notifyStateChanges(Q),J}_createDescriptors(Q,J){let q=Q&&Q.config,Y=h0(q.options&&q.options.plugins,{}),U=$O(q);return Y===!1&&!J?[]:QO(Q,U,Y,J)}_notifyStateChanges(Q){let J=this._oldCache||[],q=this._cache,Y=(U,K)=>U.filter((H)=>!K.some((M)=>H.plugin.id===M.plugin.id));this._notify(Y(J,q),Q,"stop"),this._notify(Y(q,J),Q,"start")}}function $O(Q){let J={},q=[],Y=Object.keys(z8.plugins.items);for(let K=0;K<Y.length;K++)q.push(z8.getPlugin(Y[K]));let U=Q.plugins||[];for(let K=0;K<U.length;K++){let H=U[K];if(q.indexOf(H)===-1)q.push(H),J[H.id]=!0}return{plugins:q,localIds:J}}function ZO(Q,J){if(!J&&Q===!1)return null;if(Q===!0)return{};return Q}function QO(Q,{plugins:J,localIds:q},Y,U){let K=[],H=Q.getContext();for(let M of J){let F=M.id,R=ZO(Y[F],U);if(R===null)continue;K.push({plugin:M,options:GO(Q.config,{plugin:M,local:q[F]},R,H)})}return K}function GO(Q,{plugin:J,local:q},Y,U){let K=Q.pluginScopeKeys(J),H=Q.getOptionScopes(Y,K);if(q&&J.defaults)H.push(J.defaults);return Q.createResolver(H,U,[""],{scriptable:!1,indexable:!1,allKeys:!0})}function IN(Q,J){let q=D1.datasets[Q]||{};return((J.datasets||{})[Q]||{}).indexAxis||J.indexAxis||q.indexAxis||"x"}function JO(Q,J){let q=Q;if(Q==="_index_")q=J;else if(Q==="_value_")q=J==="x"?"y":"x";return q}function qO(Q,J){return Q===J?"_index_":"_value_"}function MT(Q){if(Q==="x"||Q==="y"||Q==="r")return Q}function XO(Q){if(Q==="top"||Q==="bottom")return"x";if(Q==="left"||Q==="right")return"y"}function ON(Q,...J){if(MT(Q))return Q;for(let q of J){let Y=q.axis||XO(q.position)||Q.length>1&&MT(Q[0].toLowerCase());if(Y)return Y}throw Error(`Cannot determine type of '${Q}' axis. Please provide 'axis' or 'position' option.`)}function FT(Q,J,q){if(q[J+"AxisID"]===Q)return{axis:J}}function YO(Q,J){if(J.data&&J.data.datasets){let q=J.data.datasets.filter((Y)=>Y.xAxisID===Q||Y.yAxisID===Q);if(q.length)return FT(Q,"x",q[0])||FT(Q,"y",q[0])}return{}}function UO(Q,J){let q=Y2[Q.type]||{scales:{}},Y=J.scales||{},U=IN(Q.type,J),K=Object.create(null);return Object.keys(Y).forEach((H)=>{let M=Y[H];if(!n0(M))return console.error(`Invalid scale configuration for scale: ${H}`);if(M._proxy)return console.warn(`Ignoring resolver passed as options for scale: ${H}`);let F=ON(H,M,YO(H,Q),D1.scales[M.type]),R=qO(F,U),T=q.scales||{};K[H]=h9(Object.create(null),[{axis:F},M,T[F],T[R]])}),Q.data.datasets.forEach((H)=>{let M=H.type||Q.type,F=H.indexAxis||IN(M,J),T=(Y2[M]||{}).scales||{};Object.keys(T).forEach((z)=>{let L=JO(z,F),P=H[L+"AxisID"]||L;K[P]=K[P]||Object.create(null),h9(K[P],[{axis:L},Y[P],T[z]])})}),Object.keys(K).forEach((H)=>{let M=K[H];h9(M,[D1.scales[M.type],D1.scale])}),K}function Qz(Q){let J=Q.options||(Q.options={});J.plugins=h0(J.plugins,{}),J.scales=UO(Q,J)}function Gz(Q){return Q=Q||{},Q.datasets=Q.datasets||[],Q.labels=Q.labels||[],Q}function NO(Q){return Q=Q||{},Q.data=Gz(Q.data),Qz(Q),Q}var WT=new Map,Jz=new Set;function Nq(Q,J){let q=WT.get(Q);if(!q)q=J(),WT.set(Q,q),Jz.add(q);return q}var nZ=(Q,J,q)=>{let Y=F$(J,q);if(Y!==void 0)Q.add(Y)};class qz{constructor(Q){this._config=NO(Q),this._scopeCache=new Map,this._resolverCache=new Map}get platform(){return this._config.platform}get type(){return this._config.type}set type(Q){this._config.type=Q}get data(){return this._config.data}set data(Q){this._config.data=Gz(Q)}get options(){return this._config.options}set options(Q){this._config.options=Q}get plugins(){return this._config.plugins}update(){let Q=this._config;this.clearCache(),Qz(Q)}clearCache(){this._scopeCache.clear(),this._resolverCache.clear()}datasetScopeKeys(Q){return Nq(Q,()=>[[`datasets.${Q}`,""]])}datasetAnimationScopeKeys(Q,J){return Nq(`${Q}.transition.${J}`,()=>[[`datasets.${Q}.transitions.${J}`,`transitions.${J}`],[`datasets.${Q}`,""]])}datasetElementScopeKeys(Q,J){return Nq(`${Q}-${J}`,()=>[[`datasets.${Q}.elements.${J}`,`datasets.${Q}`,`elements.${J}`,""]])}pluginScopeKeys(Q){let J=Q.id,q=this.type;return Nq(`${q}-plugin-${J}`,()=>[[`plugins.${J}`,...Q.additionalOptionScopes||[]]])}_cachedScopes(Q,J){let q=this._scopeCache,Y=q.get(Q);if(!Y||J)Y=new Map,q.set(Q,Y);return Y}getOptionScopes(Q,J,q){let{options:Y,type:U}=this,K=this._cachedScopes(Q,q),H=K.get(J);if(H)return H;let M=new Set;J.forEach((R)=>{if(Q)M.add(Q),R.forEach((T)=>nZ(M,Q,T));R.forEach((T)=>nZ(M,Y,T)),R.forEach((T)=>nZ(M,Y2[U]||{},T)),R.forEach((T)=>nZ(M,D1,T)),R.forEach((T)=>nZ(M,Zq,T))});let F=Array.from(M);if(F.length===0)F.push(Object.create(null));if(Jz.has(J))K.set(J,F);return F}chartOptionScopes(){let{options:Q,type:J}=this;return[Q,Y2[J]||{},D1.datasets[J]||{},{type:J},D1,Zq]}resolveNamedOptions(Q,J,q,Y=[""]){let U={$shared:!0},{resolver:K,subPrefixes:H}=wT(this._resolverCache,Q,Y),M=K;if(BO(K,J)){U.$shared=!1,q=t8(q)?q():q;let F=this.createResolver(Q,q,H);M=M$(K,q,F)}for(let F of J)U[F]=M[F];return U}createResolver(Q,J,q=[""],Y){let{resolver:U}=wT(this._resolverCache,Q,q);return n0(J)?M$(U,J,void 0,Y):U}}function wT(Q,J,q){let Y=Q.get(J);if(!Y)Y=new Map,Q.set(J,Y);let U=q.join(),K=Y.get(U);if(!K)K={resolver:Gq(J,q),subPrefixes:q.filter((M)=>!M.toLowerCase().includes("hover"))},Y.set(U,K);return K}var KO=(Q)=>n0(Q)&&Object.getOwnPropertyNames(Q).some((J)=>t8(Q[J]));function BO(Q,J){let{isScriptable:q,isIndexable:Y}=qN(Q);for(let U of J){let K=q(U),H=Y(U),M=(H||K)&&Q[U];if(K&&(t8(M)||KO(M))||H&&z1(M))return!0}return!1}var HO="4.5.1",MO=["top","bottom","left","right","chartArea"];function RT(Q,J){return Q==="top"||Q==="bottom"||MO.indexOf(Q)===-1&&J==="x"}function TT(Q,J){return function(q,Y){return q[Q]===Y[Q]?q[J]-Y[J]:q[Q]-Y[Q]}}function zT(Q){let J=Q.chart,q=J.options.animation;J.notifyPlugins("afterRender"),W1(q&&q.onComplete,[Q],J)}function FO(Q){let J=Q.chart,q=J.options.animation;W1(q&&q.onProgress,[Q],J)}function Xz(Q){if(Jq()&&typeof Q==="string")Q=document.getElementById(Q);else if(Q&&Q.length)Q=Q[0];if(Q&&Q.canvas)Q=Q.canvas;return Q}var Mq={},_T=(Q)=>{let J=Xz(Q);return Object.values(Mq).filter((q)=>q.canvas===J).pop()};function WO(Q,J,q){let Y=Object.keys(Q);for(let U of Y){let K=+U;if(K>=J){let H=Q[U];if(delete Q[U],q>0||K>J)Q[K+q]=H}}}function wO(Q,J,q,Y){if(!q||Q.type==="mouseout")return null;if(Y)return J;return Q}class P5{static defaults=D1;static instances=Mq;static overrides=Y2;static registry=z8;static version=HO;static getChart=_T;static register(...Q){z8.add(...Q),LT()}static unregister(...Q){z8.remove(...Q),LT()}constructor(Q,J){let q=this.config=new qz(J),Y=Xz(Q),U=_T(Y);if(U)throw Error("Canvas is already in use. Chart with ID '"+U.id+"' must be destroyed before the canvas with ID '"+U.canvas.id+"' can be reused.");let K=q.createResolver(q.chartOptionScopes(),this.getContext());this.platform=new(q.platform||gI(Y)),this.platform.updateConfig(q);let H=this.platform.acquireContext(Y,K.aspectRatio),M=H&&H.canvas,F=M&&M.height,R=M&&M.width;if(this.id=WR(),this.ctx=H,this.canvas=M,this.width=R,this.height=F,this._options=K,this._aspectRatio=this.aspectRatio,this._layers=[],this._metasets=[],this._stacks=void 0,this.boxes=[],this.currentDevicePixelRatio=void 0,this.chartArea=void 0,this._active=[],this._lastEvent=void 0,this._listeners={},this._responsiveListeners=void 0,this._sortedMetasets=[],this.scales={},this._plugins=new Zz,this.$proxies={},this._hiddenIndices={},this.attached=!1,this._animationsDisabled=void 0,this.$context=void 0,this._doResize=OR((T)=>this.update(T),K.resizeDelay||0),this._dataChanges=[],Mq[this.id]=this,!H||!M){console.error("Failed to create chart: can't acquire context from the given item");return}if(G6.listen(this,"complete",zT),G6.listen(this,"progress",FO),this._initialize(),this.attached)this.update()}get aspectRatio(){let{options:{aspectRatio:Q,maintainAspectRatio:J},width:q,height:Y,_aspectRatio:U}=this;if(!t0(Q))return Q;if(J&&U)return U;return Y?q/Y:null}get data(){return this.config.data}set data(Q){this.config.data=Q}get options(){return this._options}set options(Q){this.config.options=Q}get registry(){return z8}_initialize(){if(this.notifyPlugins("beforeInit"),this.options.responsive)this.resize();else UN(this,this.options.devicePixelRatio);return this.bindEvents(),this.notifyPlugins("afterInit"),this}clear(){return ZN(this.canvas,this.ctx),this}stop(){return G6.stop(this),this}resize(Q,J){if(!G6.running(this))this._resize(Q,J);else this._resizeBeforeDraw={width:Q,height:J}}_resize(Q,J){let q=this.options,Y=this.canvas,U=q.maintainAspectRatio&&this.aspectRatio,K=this.platform.getMaximumSize(Y,Q,J,U),H=q.devicePixelRatio||this.platform.getDevicePixelRatio(),M=this.width?"resize":"attach";if(this.width=K.width,this.height=K.height,this._aspectRatio=this.aspectRatio,!UN(this,H,!0))return;if(this.notifyPlugins("resize",{size:K}),W1(q.onResize,[this,K],this),this.attached){if(this._doResize(M))this.render()}}ensureScalesHaveIDs(){let J=this.options.scales||{};X1(J,(q,Y)=>{q.id=Y})}buildOrUpdateScales(){let Q=this.options,J=Q.scales,q=this.scales,Y=Object.keys(q).reduce((K,H)=>{return K[H]=!1,K},{}),U=[];if(J)U=U.concat(Object.keys(J).map((K)=>{let H=J[K],M=ON(K,H),F=M==="r",R=M==="x";return{options:H,dposition:F?"chartArea":R?"bottom":"left",dtype:F?"radialLinear":R?"category":"linear"}}));X1(U,(K)=>{let H=K.options,M=H.id,F=ON(M,H),R=h0(H.type,K.dtype);if(H.position===void 0||RT(H.position,F)!==RT(K.dposition))H.position=K.dposition;Y[M]=!0;let T=null;if(M in q&&q[M].type===R)T=q[M];else T=new(z8.getScale(R))({id:M,type:R,ctx:this.ctx,chart:this}),q[T.id]=T;T.init(H,Q)}),X1(Y,(K,H)=>{if(!K)delete q[H]}),X1(q,(K)=>{V4.configure(this,K,K.options),V4.addBox(this,K)})}_updateMetasets(){let Q=this._metasets,J=this.data.datasets.length,q=Q.length;if(Q.sort((Y,U)=>Y.index-U.index),q>J){for(let Y=J;Y<q;++Y)this._destroyDatasetMeta(Y);Q.splice(J,q-J)}this._sortedMetasets=Q.slice(0).sort(TT("order","index"))}_removeUnreferencedMetasets(){let{_metasets:Q,data:{datasets:J}}=this;if(Q.length>J.length)delete this._stacks;Q.forEach((q,Y)=>{if(J.filter((U)=>U===q._dataset).length===0)this._destroyDatasetMeta(Y)})}buildOrUpdateControllers(){let Q=[],J=this.data.datasets,q,Y;this._removeUnreferencedMetasets();for(q=0,Y=J.length;q<Y;q++){let U=J[q],K=this.getDatasetMeta(q),H=U.type||this.config.type;if(K.type&&K.type!==H)this._destroyDatasetMeta(q),K=this.getDatasetMeta(q);if(K.type=H,K.indexAxis=U.indexAxis||IN(H,this.options),K.order=U.order||0,K.index=q,K.label=""+U.label,K.visible=this.isDatasetVisible(q),K.controller)K.controller.updateIndex(q),K.controller.linkScales();else{let M=z8.getController(H),{datasetElementType:F,dataElementType:R}=D1.datasets[H];Object.assign(M,{dataElementType:z8.getElement(R),datasetElementType:F&&z8.getElement(F)}),K.controller=new M(this,q),Q.push(K.controller)}}return this._updateMetasets(),Q}_resetElements(){X1(this.data.datasets,(Q,J)=>{this.getDatasetMeta(J).controller.reset()},this)}reset(){this._resetElements(),this.notifyPlugins("reset")}update(Q){let J=this.config;J.update();let q=this._options=J.createResolver(J.chartOptionScopes(),this.getContext()),Y=this._animationsDisabled=!q.animation;if(this._updateScales(),this._checkEventBindings(),this._updateHiddenIndices(),this._plugins.invalidate(),this.notifyPlugins("beforeUpdate",{mode:Q,cancelable:!0})===!1)return;let U=this.buildOrUpdateControllers();this.notifyPlugins("beforeElementsUpdate");let K=0;for(let F=0,R=this.data.datasets.length;F<R;F++){let{controller:T}=this.getDatasetMeta(F),z=!Y&&U.indexOf(T)===-1;T.buildOrUpdateElements(z),K=Math.max(+T.getMaxOverflow(),K)}if(K=this._minPadding=q.layout.autoPadding?K:0,this._updateLayout(K),!Y)X1(U,(F)=>{F.reset()});this._updateDatasets(Q),this.notifyPlugins("afterUpdate",{mode:Q}),this._layers.sort(TT("z","_idx"));let{_active:H,_lastEvent:M}=this;if(M)this._eventHandler(M,!0);else if(H.length)this._updateHoverStyles(H,H,!0);this.render()}_updateScales(){X1(this.scales,(Q)=>{V4.removeBox(this,Q)}),this.ensureScalesHaveIDs(),this.buildOrUpdateScales()}_checkEventBindings(){let Q=this.options,J=new Set(Object.keys(this._listeners)),q=new Set(Q.events);if(!cU(J,q)||!!this._responsiveListeners!==Q.responsive)this.unbindEvents(),this.bindEvents()}_updateHiddenIndices(){let{_hiddenIndices:Q}=this,J=this._getUniformDataChanges()||[];for(let{method:q,start:Y,count:U}of J){let K=q==="_removeElements"?-U:U;WO(Q,Y,K)}}_getUniformDataChanges(){let Q=this._dataChanges;if(!Q||!Q.length)return;this._dataChanges=[];let J=this.data.datasets.length,q=(U)=>new Set(Q.filter((K)=>K[0]===U).map((K,H)=>H+","+K.splice(1).join(","))),Y=q(0);for(let U=1;U<J;U++)if(!cU(Y,q(U)))return;return Array.from(Y).map((U)=>U.split(",")).map((U)=>({method:U[1],start:+U[2],count:+U[3]}))}_updateLayout(Q){if(this.notifyPlugins("beforeLayout",{cancelable:!0})===!1)return;V4.update(this,this.width,this.height,Q);let J=this.chartArea,q=J.width<=0||J.height<=0;this._layers=[],X1(this.boxes,(Y)=>{if(q&&Y.position==="chartArea")return;if(Y.configure)Y.configure();this._layers.push(...Y._layers())},this),this._layers.forEach((Y,U)=>{Y._idx=U}),this.notifyPlugins("afterLayout")}_updateDatasets(Q){if(this.notifyPlugins("beforeDatasetsUpdate",{mode:Q,cancelable:!0})===!1)return;for(let J=0,q=this.data.datasets.length;J<q;++J)this.getDatasetMeta(J).controller.configure();for(let J=0,q=this.data.datasets.length;J<q;++J)this._updateDataset(J,t8(Q)?Q({datasetIndex:J}):Q);this.notifyPlugins("afterDatasetsUpdate",{mode:Q})}_updateDataset(Q,J){let q=this.getDatasetMeta(Q),Y={meta:q,index:Q,mode:J,cancelable:!0};if(this.notifyPlugins("beforeDatasetUpdate",Y)===!1)return;q.controller._update(J),Y.cancelable=!1,this.notifyPlugins("afterDatasetUpdate",Y)}render(){if(this.notifyPlugins("beforeRender",{cancelable:!0})===!1)return;if(G6.has(this)){if(this.attached&&!G6.running(this))G6.start(this)}else this.draw(),zT({chart:this})}draw(){let Q;if(this._resizeBeforeDraw){let{width:q,height:Y}=this._resizeBeforeDraw;this._resizeBeforeDraw=null,this._resize(q,Y)}if(this.clear(),this.width<=0||this.height<=0)return;if(this.notifyPlugins("beforeDraw",{cancelable:!0})===!1)return;let J=this._layers;for(Q=0;Q<J.length&&J[Q].z<=0;++Q)J[Q].draw(this.chartArea);this._drawDatasets();for(;Q<J.length;++Q)J[Q].draw(this.chartArea);this.notifyPlugins("afterDraw")}_getSortedDatasetMetas(Q){let J=this._sortedMetasets,q=[],Y,U;for(Y=0,U=J.length;Y<U;++Y){let K=J[Y];if(!Q||K.visible)q.push(K)}return q}getSortedVisibleDatasetMetas(){return this._getSortedDatasetMetas(!0)}_drawDatasets(){if(this.notifyPlugins("beforeDatasetsDraw",{cancelable:!0})===!1)return;let Q=this.getSortedVisibleDatasetMetas();for(let J=Q.length-1;J>=0;--J)this._drawDataset(Q[J]);this.notifyPlugins("afterDatasetsDraw")}_drawDataset(Q){let J=this.ctx,q={meta:Q,index:Q.index,cancelable:!0},Y=FN(this,Q);if(this.notifyPlugins("beforeDatasetDraw",q)===!1)return;if(Y)mZ(J,Y);if(Q.controller.draw(),Y)dZ(J);q.cancelable=!1,this.notifyPlugins("afterDatasetDraw",q)}isPointInArea(Q){return w8(Q,this.chartArea,this._minPadding)}getElementsAtEventForMode(Q,J,q,Y){let U=TI.modes[J];if(typeof U==="function")return U(this,Q,q,Y);return[]}getDatasetMeta(Q){let J=this.data.datasets[Q],q=this._metasets,Y=q.filter((U)=>U&&U._dataset===J).pop();if(!Y)Y={type:null,data:[],dataset:null,controller:null,hidden:null,xAxisID:null,yAxisID:null,order:J&&J.order||0,index:Q,_dataset:J,_parsed:[],_sorted:!1},q.push(Y);return Y}getContext(){return this.$context||(this.$context=Q6(null,{chart:this,type:"chart"}))}getVisibleDatasetCount(){return this.getSortedVisibleDatasetMetas().length}isDatasetVisible(Q){let J=this.data.datasets[Q];if(!J)return!1;let q=this.getDatasetMeta(Q);return typeof q.hidden==="boolean"?!q.hidden:!J.hidden}setDatasetVisibility(Q,J){let q=this.getDatasetMeta(Q);q.hidden=!J}toggleDataVisibility(Q){this._hiddenIndices[Q]=!this._hiddenIndices[Q]}getDataVisibility(Q){return!this._hiddenIndices[Q]}_updateVisibility(Q,J,q){let Y=q?"show":"hide",U=this.getDatasetMeta(Q),K=U.controller._resolveAnimations(void 0,Y);if(x9(J))U.data[J].hidden=!q,this.update();else this.setDatasetVisibility(Q,q),K.update(U,{visible:q}),this.update((H)=>H.datasetIndex===Q?Y:void 0)}hide(Q,J){this._updateVisibility(Q,J,!1)}show(Q,J){this._updateVisibility(Q,J,!0)}_destroyDatasetMeta(Q){let J=this._metasets[Q];if(J&&J.controller)J.controller._destroy();delete this._metasets[Q]}_stop(){let Q,J;this.stop(),G6.remove(this);for(Q=0,J=this.data.datasets.length;Q<J;++Q)this._destroyDatasetMeta(Q)}destroy(){this.notifyPlugins("beforeDestroy");let{canvas:Q,ctx:J}=this;if(this._stop(),this.config.clearCache(),Q)this.unbindEvents(),ZN(Q,J),this.platform.releaseContext(J),this.canvas=null,this.ctx=null;delete Mq[this.id],this.notifyPlugins("afterDestroy")}toBase64Image(...Q){return this.canvas.toDataURL(...Q)}bindEvents(){if(this.bindUserEvents(),this.options.responsive)this.bindResponsiveEvents();else this.attached=!0}bindUserEvents(){let Q=this._listeners,J=this.platform,q=(U,K)=>{J.addEventListener(this,U,K),Q[U]=K},Y=(U,K,H)=>{U.offsetX=K,U.offsetY=H,this._eventHandler(U)};X1(this.options.events,(U)=>q(U,Y))}bindResponsiveEvents(){if(!this._responsiveListeners)this._responsiveListeners={};let Q=this._responsiveListeners,J=this.platform,q=(M,F)=>{J.addEventListener(this,M,F),Q[M]=F},Y=(M,F)=>{if(Q[M])J.removeEventListener(this,M,F),delete Q[M]},U=(M,F)=>{if(this.canvas)this.resize(M,F)},K,H=()=>{Y("attach",H),this.attached=!0,this.resize(),q("resize",U),q("detach",K)};if(K=()=>{this.attached=!1,Y("resize",U),this._stop(),this._resize(0,0),q("attach",H)},J.isAttached(this.canvas))H();else K()}unbindEvents(){X1(this._listeners,(Q,J)=>{this.platform.removeEventListener(this,J,Q)}),this._listeners={},X1(this._responsiveListeners,(Q,J)=>{this.platform.removeEventListener(this,J,Q)}),this._responsiveListeners=void 0}updateHoverStyle(Q,J,q){let Y=q?"set":"remove",U,K,H,M;if(J==="dataset")U=this.getDatasetMeta(Q[0].datasetIndex),U.controller["_"+Y+"DatasetHoverStyle"]();for(H=0,M=Q.length;H<M;++H){K=Q[H];let F=K&&this.getDatasetMeta(K.datasetIndex).controller;if(F)F[Y+"HoverStyle"](K.element,K.datasetIndex,K.index)}}getActiveElements(){return this._active||[]}setActiveElements(Q){let J=this._active||[],q=Q.map(({datasetIndex:U,index:K})=>{let H=this.getDatasetMeta(U);if(!H)throw Error("No dataset found at index "+U);return{datasetIndex:U,element:H.data[K],index:K}});if(!xZ(q,J))this._active=q,this._lastEvent=null,this._updateHoverStyles(q,J)}notifyPlugins(Q,J,q){return this._plugins.notify(this,Q,J,q)}isPluginEnabled(Q){return this._plugins._cache.filter((J)=>J.plugin.id===Q).length===1}_updateHoverStyles(Q,J,q){let Y=this.options.hover,U=(M,F)=>M.filter((R)=>!F.some((T)=>R.datasetIndex===T.datasetIndex&&R.index===T.index)),K=U(J,Q),H=q?Q:U(Q,J);if(K.length)this.updateHoverStyle(K,Y.mode,!1);if(H.length&&Y.mode)this.updateHoverStyle(H,Y.mode,!0)}_eventHandler(Q,J){let q={event:Q,replay:J,cancelable:!0,inChartArea:this.isPointInArea(Q)},Y=(K)=>(K.options.events||this.options.events).includes(Q.native.type);if(this.notifyPlugins("beforeEvent",q,Y)===!1)return;let U=this._handleEvent(Q,J,q.inChartArea);if(q.cancelable=!1,this.notifyPlugins("afterEvent",q,Y),U||q.changed)this.render();return this}_handleEvent(Q,J,q){let{_active:Y=[],options:U}=this,K=J,H=this._getActiveElements(Q,Y,q,K),M=TR(Q),F=wO(Q,this._lastEvent,q,M);if(q){if(this._lastEvent=null,W1(U.onHover,[Q,H,this],this),M)W1(U.onClick,[Q,H,this],this)}let R=!xZ(H,Y);if(R||J)this._active=H,this._updateHoverStyles(H,Y,J);return this._lastEvent=F,R}_getActiveElements(Q,J,q,Y){if(Q.type==="mouseout")return[];if(!q)return J;let U=this.options.hover;return this.getElementsAtEventForMode(Q,U.mode,U,Y)}}function LT(){return X1(P5.instances,(Q)=>Q._plugins.invalidate())}function Yz(Q,J,q=J){Q.lineCap=h0(q.borderCapStyle,J.borderCapStyle),Q.setLineDash(h0(q.borderDash,J.borderDash)),Q.lineDashOffset=h0(q.borderDashOffset,J.borderDashOffset),Q.lineJoin=h0(q.borderJoinStyle,J.borderJoinStyle),Q.lineWidth=h0(q.borderWidth,J.borderWidth),Q.strokeStyle=h0(q.borderColor,J.borderColor)}function RO(Q,J,q){Q.lineTo(q.x,q.y)}function TO(Q){if(Q.stepped)return bR;if(Q.tension||Q.cubicInterpolationMode==="monotone")return fR;return RO}function Uz(Q,J,q={}){let Y=Q.length,{start:U=0,end:K=Y-1}=q,{start:H,end:M}=J,F=Math.max(U,H),R=Math.min(K,M),T=U<H&&K<H||U>M&&K>M;return{count:Y,start:F,loop:J.loop,ilen:R<F&&!T?Y+R-F:R-F}}function zO(Q,J,q,Y){let{points:U,options:K}=J,{count:H,start:M,loop:F,ilen:R}=Uz(U,q,Y),T=TO(K),{move:z=!0,reverse:L}=Y||{},P,I,A;for(P=0;P<=R;++P){if(I=U[(M+(L?R-P:P))%H],I.skip)continue;else if(z)Q.moveTo(I.x,I.y),z=!1;else T(Q,A,I,L,K.stepped);A=I}if(F)I=U[(M+(L?R:0))%H],T(Q,A,I,L,K.stepped);return!!F}function _O(Q,J,q,Y){let U=J.points,{count:K,start:H,ilen:M}=Uz(U,q,Y),{move:F=!0,reverse:R}=Y||{},T=0,z=0,L,P,I,A,C,g,m=(a)=>(H+(R?M-a:a))%K,o=()=>{if(A!==C)Q.lineTo(T,C),Q.lineTo(T,A),Q.lineTo(T,g)};if(F)P=U[m(0)],Q.moveTo(P.x,P.y);for(L=0;L<=M;++L){if(P=U[m(L)],P.skip)continue;let{x:a,y:s}=P,Q0=a|0;if(Q0===I){if(s<A)A=s;else if(s>C)C=s;T=(z*T+a)/++z}else o(),Q.lineTo(a,s),I=Q0,z=0,A=C=s;g=s}o()}function DN(Q){let J=Q.options,q=J.borderDash&&J.borderDash.length;return!Q._decimated&&!Q._loop&&!J.tension&&J.cubicInterpolationMode!=="monotone"&&!J.stepped&&!q?_O:zO}function LO(Q){if(Q.stepped)return cR;if(Q.tension||Q.cubicInterpolationMode==="monotone")return lR;return J2}function VO(Q,J,q,Y){let U=J._path;if(!U){if(U=J._path=new Path2D,J.path(U,q,Y))U.closePath()}Yz(Q,J.options),Q.stroke(U)}function EO(Q,J,q,Y){let{segments:U,options:K}=J,H=DN(J);for(let M of U){if(Yz(Q,K,M.style),Q.beginPath(),H(Q,J,M,{start:q,end:q+Y-1}))Q.closePath();Q.stroke()}}var PO=typeof Path2D==="function";function CO(Q,J,q,Y){if(PO&&!J.options.segment)VO(Q,J,q,Y);else EO(Q,J,q,Y)}class u5 extends q6{static id="line";static defaults={borderCapStyle:"butt",borderDash:[],borderDashOffset:0,borderJoinStyle:"miter",borderWidth:3,capBezierPoints:!0,cubicInterpolationMode:"default",fill:!1,spanGaps:!1,stepped:!1,tension:0};static defaultRoutes={backgroundColor:"backgroundColor",borderColor:"borderColor"};static descriptors={_scriptable:!0,_indexable:(Q)=>Q!=="borderDash"&&Q!=="fill"};constructor(Q){super();if(this.animated=!0,this.options=void 0,this._chart=void 0,this._loop=void 0,this._fullLoop=void 0,this._path=void 0,this._points=void 0,this._segments=void 0,this._decimated=!1,this._pointsUpdated=!1,this._datasetIndex=void 0,Q)Object.assign(this,Q)}updateControlPoints(Q,J){let q=this.options;if((q.tension||q.cubicInterpolationMode==="monotone")&&!q.stepped&&!this._pointsUpdated){let Y=q.spanGaps?this._loop:this._fullLoop;mR(this._points,q,Q,Y,J),this._pointsUpdated=!0}}set points(Q){this._points=Q,delete this._segments,delete this._path,this._pointsUpdated=!1}get points(){return this._points}get segments(){return this._segments||(this._segments=sR(this,this.options.segment))}first(){let Q=this.segments,J=this.points;return Q.length&&J[Q[0].start]}last(){let Q=this.segments,J=this.points,q=Q.length;return q&&J[Q[q-1].end]}interpolate(Q,J){let q=this.options,Y=Q[J],U=this.points,K=MN(this,{property:J,start:Y,end:Y});if(!K.length)return;let H=[],M=LO(q),F,R;for(F=0,R=K.length;F<R;++F){let{start:T,end:z}=K[F],L=U[T],P=U[z];if(L===P){H.push(L);continue}let I=Math.abs((Y-L[J])/(P[J]-L[J])),A=M(L,P,I,q.stepped);A[J]=Q[J],H.push(A)}return H.length===1?H[0]:H}pathSegment(Q,J,q){return DN(this)(Q,this,J,q)}path(Q,J,q){let Y=this.segments,U=DN(this),K=this._loop;J=J||0,q=q||this.points.length-J;for(let H of Y)K&=U(Q,this,H,{start:J,end:J+q-1});return!!K}draw(Q,J,q,Y){let U=this.options||{};if((this.points||[]).length&&U.borderWidth)Q.save(),CO(Q,this,q,Y),Q.restore();if(this.animated)this._pointsUpdated=!1,this._path=void 0}}function VT(Q,J,q,Y){let U=Q.options,{[q]:K}=Q.getProps([q],Y);return Math.abs(J-K)<U.radius+U.hitRadius}class g4 extends q6{static id="point";parsed;skip;stop;static defaults={borderWidth:1,hitRadius:1,hoverBorderWidth:1,hoverRadius:4,pointStyle:"circle",radius:3,rotation:0};static defaultRoutes={backgroundColor:"backgroundColor",borderColor:"borderColor"};constructor(Q){super();if(this.options=void 0,this.parsed=void 0,this.skip=void 0,this.stop=void 0,Q)Object.assign(this,Q)}inRange(Q,J,q){let Y=this.options,{x:U,y:K}=this.getProps(["x","y"],q);return Math.pow(Q-U,2)+Math.pow(J-K,2)<Math.pow(Y.hitRadius+Y.radius,2)}inXRange(Q,J){return VT(this,Q,"x",J)}inYRange(Q,J){return VT(this,Q,"y",J)}getCenterPoint(Q){let{x:J,y:q}=this.getProps(["x","y"],Q);return{x:J,y:q}}size(Q){Q=Q||this.options||{};let J=Q.radius||0;J=Math.max(J,J&&Q.hoverRadius||0);let q=J&&Q.borderWidth||0;return(J+q)*2}draw(Q,J){let q=this.options;if(this.skip||q.radius<0.1||!w8(this,J,this.size(q)/2))return;Q.strokeStyle=q.borderColor,Q.lineWidth=q.borderWidth,Q.fillStyle=q.backgroundColor,Qq(Q,q,this.x,this.y)}getRange(){let Q=this.options||{};return Q.radius+Q.hitRadius}}function Nz(Q,J){let{x:q,y:Y,base:U,width:K,height:H}=Q.getProps(["x","y","base","width","height"],J),M,F,R,T,z;if(Q.horizontal)z=H/2,M=Math.min(q,U),F=Math.max(q,U),R=Y-z,T=Y+z;else z=K/2,M=q-z,F=q+z,R=Math.min(Y,U),T=Math.max(Y,U);return{left:M,top:R,right:F,bottom:T}}function H2(Q,J,q,Y){return Q?0:y5(J,q,Y)}function IO(Q,J,q){let Y=Q.options.borderWidth,U=Q.borderSkipped,K=JN(Y);return{t:H2(U.top,K.top,0,q),r:H2(U.right,K.right,0,J),b:H2(U.bottom,K.bottom,0,q),l:H2(U.left,K.left,0,J)}}function OO(Q,J,q){let{enableBorderRadius:Y}=Q.getProps(["enableBorderRadius"]),U=Q.options.borderRadius,K=K2(U),H=Math.min(J,q),M=Q.borderSkipped,F=Y||n0(U);return{topLeft:H2(!F||M.top||M.left,K.topLeft,0,H),topRight:H2(!F||M.top||M.right,K.topRight,0,H),bottomLeft:H2(!F||M.bottom||M.left,K.bottomLeft,0,H),bottomRight:H2(!F||M.bottom||M.right,K.bottomRight,0,H)}}function DO(Q){let J=Nz(Q),q=J.right-J.left,Y=J.bottom-J.top,U=IO(Q,q/2,Y/2),K=OO(Q,q/2,Y/2);return{outer:{x:J.left,y:J.top,w:q,h:Y,radius:K},inner:{x:J.left+U.l,y:J.top+U.t,w:q-U.l-U.r,h:Y-U.t-U.b,radius:{topLeft:Math.max(0,K.topLeft-Math.max(U.t,U.l)),topRight:Math.max(0,K.topRight-Math.max(U.t,U.r)),bottomLeft:Math.max(0,K.bottomLeft-Math.max(U.b,U.l)),bottomRight:Math.max(0,K.bottomRight-Math.max(U.b,U.r))}}}}function VN(Q,J,q,Y){let U=J===null,K=q===null,M=Q&&!(U&&K)&&Nz(Q,Y);return M&&(U||Z6(J,M.left,M.right))&&(K||Z6(q,M.top,M.bottom))}function jO(Q){return Q.topLeft||Q.topRight||Q.bottomLeft||Q.bottomRight}function AO(Q,J){Q.rect(J.x,J.y,J.w,J.h)}function EN(Q,J,q={}){let Y=Q.x!==q.x?-J:0,U=Q.y!==q.y?-J:0,K=(Q.x+Q.w!==q.x+q.w?J:0)-Y,H=(Q.y+Q.h!==q.y+q.h?J:0)-U;return{x:Q.x+Y,y:Q.y+U,w:Q.w+K,h:Q.h+H,radius:Q.radius}}class QQ extends q6{static id="bar";static defaults={borderSkipped:"start",borderWidth:0,borderRadius:0,inflateAmount:"auto",pointStyle:void 0};static defaultRoutes={backgroundColor:"backgroundColor",borderColor:"borderColor"};constructor(Q){super();if(this.options=void 0,this.horizontal=void 0,this.base=void 0,this.width=void 0,this.height=void 0,this.inflateAmount=void 0,Q)Object.assign(this,Q)}draw(Q){let{inflateAmount:J,options:{borderColor:q,backgroundColor:Y}}=this,{inner:U,outer:K}=DO(this),H=jO(K.radius)?d9:AO;if(Q.save(),K.w!==U.w||K.h!==U.h)Q.beginPath(),H(Q,EN(K,J,U)),Q.clip(),H(Q,EN(U,-J,K)),Q.fillStyle=q,Q.fill("evenodd");Q.beginPath(),H(Q,EN(U,J)),Q.fillStyle=Y,Q.fill(),Q.restore()}inRange(Q,J,q){return VN(this,Q,J,q)}inXRange(Q,J){return VN(this,Q,null,J)}inYRange(Q,J){return VN(this,null,Q,J)}getCenterPoint(Q){let{x:J,y:q,base:Y,horizontal:U}=this.getProps(["x","y","base","horizontal"],Q);return{x:U?(J+Y)/2:J,y:U?q:(q+Y)/2}}getRange(Q){return Q==="x"?this.width/2:this.height/2}}function SO(Q,J,q){let{segments:Y,points:U}=Q,K=J.points,H=[];for(let M of Y){let{start:F,end:R}=M;R=wq(F,R,U);let T=jN(q,U[F],U[R],M.loop);if(!J.segments){H.push({source:M,target:T,start:U[F],end:U[R]});continue}let z=MN(J,T);for(let L of z){let P=jN(q,K[L.start],K[L.end],L.loop),I=HN(M,U,P);for(let A of I)H.push({source:A,target:L,start:{[q]:ET(T,P,"start",Math.max)},end:{[q]:ET(T,P,"end",Math.min)}})}}return H}function jN(Q,J,q,Y){if(Y)return;let U=J[Q],K=q[Q];if(Q==="angle")U=k5(U),K=k5(K);return{property:Q,start:U,end:K}}function vO(Q,J){let{x:q=null,y:Y=null}=Q||{},U=J.points,K=[];return J.segments.forEach(({start:H,end:M})=>{M=wq(H,M,U);let F=U[H],R=U[M];if(Y!==null)K.push({x:F.x,y:Y}),K.push({x:R.x,y:Y});else if(q!==null)K.push({x:q,y:F.y}),K.push({x:q,y:R.y})}),K}function wq(Q,J,q){for(;J>Q;J--){let Y=q[J];if(!isNaN(Y.x)&&!isNaN(Y.y))break}return J}function ET(Q,J,q,Y){if(Q&&J)return Y(Q[q],J[q]);return Q?Q[q]:J?J[q]:0}function Kz(Q,J){let q=[],Y=!1;if(z1(Q))Y=!0,q=Q;else q=vO(Q,J);return q.length?new u5({points:q,options:{tension:0},_loop:Y,_fullLoop:Y}):null}function PT(Q){return Q&&Q.fill!==!1}function kO(Q,J,q){let U=Q[J].fill,K=[J],H;if(!q)return U;while(U!==!1&&K.indexOf(U)===-1){if(!O1(U))return U;if(H=Q[U],!H)return!1;if(H.visible)return U;K.push(U),U=H.fill}return!1}function bO(Q,J,q){let Y=hO(Q);if(n0(Y))return isNaN(Y.value)?!1:Y;let U=parseFloat(Y);if(O1(U)&&Math.floor(U)===U)return fO(Y[0],J,U,q);return["origin","start","end","stack","shape"].indexOf(Y)>=0&&Y}function fO(Q,J,q,Y){if(Q==="-"||Q==="+")q=J+q;if(q===J||q<0||q>=Y)return!1;return q}function yO(Q,J){let q=null;if(Q==="start")q=J.bottom;else if(Q==="end")q=J.top;else if(n0(Q))q=J.getPixelForValue(Q.value);else if(J.getBasePixel)q=J.getBasePixel();return q}function gO(Q,J,q){let Y;if(Q==="start")Y=q;else if(Q==="end")Y=J.options.reverse?J.min:J.max;else if(n0(Q))Y=Q.value;else Y=J.getBaseValue();return Y}function hO(Q){let J=Q.options,q=J.fill,Y=h0(q&&q.target,q);if(Y===void 0)Y=!!J.backgroundColor;if(Y===!1||Y===null)return!1;if(Y===!0)return"origin";return Y}function xO(Q){let{scale:J,index:q,line:Y}=Q,U=[],K=Y.segments,H=Y.points,M=uO(J,q);M.push(Kz({x:null,y:J.bottom},Y));for(let F=0;F<K.length;F++){let R=K[F];for(let T=R.start;T<=R.end;T++)mO(U,H[T],M)}return new u5({points:U,options:{}})}function uO(Q,J){let q=[],Y=Q.getMatchingVisibleMetas("line");for(let U=0;U<Y.length;U++){let K=Y[U];if(K.index===J)break;if(!K.hidden)q.unshift(K.dataset)}return q}function mO(Q,J,q){let Y=[];for(let U=0;U<q.length;U++){let K=q[U],{first:H,last:M,point:F}=dO(K,J,"x");if(!F||H&&M)continue;if(H)Y.unshift(F);else if(Q.push(F),!M)break}Q.push(...Y)}function dO(Q,J,q){let Y=Q.interpolate(J,q);if(!Y)return{};let U=Y[q],K=Q.segments,H=Q.points,M=!1,F=!1;for(let R=0;R<K.length;R++){let T=K[R],z=H[T.start][q],L=H[T.end][q];if(Z6(U,z,L)){M=U===z,F=U===L;break}}return{first:M,last:F,point:Y}}class xN{constructor(Q){this.x=Q.x,this.y=Q.y,this.radius=Q.radius}pathSegment(Q,J,q){let{x:Y,y:U,radius:K}=this;return J=J||{start:0,end:f5},Q.arc(Y,U,K,J.end,J.start,!0),!q.bounds}interpolate(Q){let{x:J,y:q,radius:Y}=this,U=Q.angle;return{x:J+Math.cos(U)*Y,y:q+Math.sin(U)*Y,angle:U}}}function pO(Q){let{chart:J,fill:q,line:Y}=Q;if(O1(q))return cO(J,q);if(q==="stack")return xO(Q);if(q==="shape")return!0;let U=lO(Q);if(U instanceof xN)return U;return Kz(U,Y)}function cO(Q,J){let q=Q.getDatasetMeta(J);return q&&Q.isDatasetVisible(J)?q.dataset:null}function lO(Q){if((Q.scale||{}).getPointPositionForValue)return sO(Q);return rO(Q)}function rO(Q){let{scale:J={},fill:q}=Q,Y=yO(q,J);if(O1(Y)){let U=J.isHorizontal();return{x:U?Y:null,y:U?null:Y}}return null}function sO(Q){let{scale:J,fill:q}=Q,Y=J.options,U=J.getLabels().length,K=Y.reverse?J.max:J.min,H=gO(q,J,K),M=[];if(Y.grid.circular){let F=J.getPointPositionForValue(0,K);return new xN({x:F.x,y:F.y,radius:J.getDistanceFromCenterForValue(H)})}for(let F=0;F<U;++F)M.push(J.getPointPositionForValue(F,H));return M}function PN(Q,J,q){let Y=pO(J),{chart:U,index:K,line:H,scale:M,axis:F}=J,R=H.options,T=R.fill,z=R.backgroundColor,{above:L=z,below:P=z}=T||{},I=U.getDatasetMeta(K),A=FN(U,I);if(Y&&H.points.length)mZ(Q,q),nO(Q,{line:H,target:Y,above:L,below:P,area:q,scale:M,axis:F,clip:A}),dZ(Q)}function nO(Q,J){let{line:q,target:Y,above:U,below:K,area:H,scale:M,clip:F}=J,R=q._loop?"angle":J.axis;Q.save();let T=K;if(K!==U){if(R==="x")CT(Q,Y,H.top),CN(Q,{line:q,target:Y,color:U,scale:M,property:R,clip:F}),Q.restore(),Q.save(),CT(Q,Y,H.bottom);else if(R==="y")IT(Q,Y,H.left),CN(Q,{line:q,target:Y,color:K,scale:M,property:R,clip:F}),Q.restore(),Q.save(),IT(Q,Y,H.right),T=U}CN(Q,{line:q,target:Y,color:T,scale:M,property:R,clip:F}),Q.restore()}function CT(Q,J,q){let{segments:Y,points:U}=J,K=!0,H=!1;Q.beginPath();for(let M of Y){let{start:F,end:R}=M,T=U[F],z=U[wq(F,R,U)];if(K)Q.moveTo(T.x,T.y),K=!1;else Q.lineTo(T.x,q),Q.lineTo(T.x,T.y);if(H=!!J.pathSegment(Q,M,{move:H}),H)Q.closePath();else Q.lineTo(z.x,q)}Q.lineTo(J.first().x,q),Q.closePath(),Q.clip()}function IT(Q,J,q){let{segments:Y,points:U}=J,K=!0,H=!1;Q.beginPath();for(let M of Y){let{start:F,end:R}=M,T=U[F],z=U[wq(F,R,U)];if(K)Q.moveTo(T.x,T.y),K=!1;else Q.lineTo(q,T.y),Q.lineTo(T.x,T.y);if(H=!!J.pathSegment(Q,M,{move:H}),H)Q.closePath();else Q.lineTo(q,z.y)}Q.lineTo(q,J.first().y),Q.closePath(),Q.clip()}function CN(Q,J){let{line:q,target:Y,property:U,color:K,scale:H,clip:M}=J,F=SO(q,Y,U);for(let{source:R,target:T,start:z,end:L}of F){let{style:{backgroundColor:P=K}={}}=R,I=Y!==!0;Q.save(),Q.fillStyle=P,oO(Q,H,M,I&&jN(U,z,L)),Q.beginPath();let A=!!q.pathSegment(Q,R),C;if(I){if(A)Q.closePath();else OT(Q,Y,L,U);let g=!!Y.pathSegment(Q,T,{move:A,reverse:!0});if(C=A&&g,!C)OT(Q,Y,z,U)}Q.closePath(),Q.fill(C?"evenodd":"nonzero"),Q.restore()}}function oO(Q,J,q,Y){let U=J.chart.chartArea,{property:K,start:H,end:M}=Y||{};if(K==="x"||K==="y"){let F,R,T,z;if(K==="x")F=H,R=U.top,T=M,z=U.bottom;else F=U.left,R=H,T=U.right,z=M;if(Q.beginPath(),q)F=Math.max(F,q.left),T=Math.min(T,q.right),R=Math.max(R,q.top),z=Math.min(z,q.bottom);Q.rect(F,R,T-F,z-R),Q.clip()}}function OT(Q,J,q,Y){let U=J.interpolate(q,Y);if(U)Q.lineTo(U.x,U.y)}var p9={id:"filler",afterDatasetsUpdate(Q,J,q){let Y=(Q.data.datasets||[]).length,U=[],K,H,M,F;for(H=0;H<Y;++H){if(K=Q.getDatasetMeta(H),M=K.dataset,F=null,M&&M.options&&M instanceof u5)F={visible:Q.isDatasetVisible(H),index:H,fill:bO(M,H,Y),chart:Q,axis:K.controller.options.indexAxis,scale:K.vScale,line:M};K.$filler=F,U.push(F)}for(H=0;H<Y;++H){if(F=U[H],!F||F.fill===!1)continue;F.fill=kO(U,H,q.propagate)}},beforeDraw(Q,J,q){let Y=q.drawTime==="beforeDraw",U=Q.getSortedVisibleDatasetMetas(),K=Q.chartArea;for(let H=U.length-1;H>=0;--H){let M=U[H].$filler;if(!M)continue;if(M.line.updateControlPoints(K,M.axis),Y&&M.fill)PN(Q.ctx,M,K)}},beforeDatasetsDraw(Q,J,q){if(q.drawTime!=="beforeDatasetsDraw")return;let Y=Q.getSortedVisibleDatasetMetas();for(let U=Y.length-1;U>=0;--U){let K=Y[U].$filler;if(PT(K))PN(Q.ctx,K,Q.chartArea)}},beforeDatasetDraw(Q,J,q){let Y=J.meta.$filler;if(!PT(Y)||q.drawTime!=="beforeDatasetDraw")return;PN(Q.ctx,Y,Q.chartArea)},defaults:{propagate:!0,drawTime:"beforeDatasetDraw"}},DT=(Q,J)=>{let{boxHeight:q=J,boxWidth:Y=J}=Q;if(Q.usePointStyle)q=Math.min(q,J),Y=Q.pointStyleWidth||Math.min(Y,J);return{boxWidth:Y,boxHeight:q,itemHeight:Math.max(J,q)}},aO=(Q,J)=>Q!==null&&J!==null&&Q.datasetIndex===J.datasetIndex&&Q.index===J.index;class AN extends q6{constructor(Q){super();this._added=!1,this.legendHitBoxes=[],this._hoveredItem=null,this.doughnutMode=!1,this.chart=Q.chart,this.options=Q.options,this.ctx=Q.ctx,this.legendItems=void 0,this.columnSizes=void 0,this.lineWidths=void 0,this.maxHeight=void 0,this.maxWidth=void 0,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.height=void 0,this.width=void 0,this._margins=void 0,this.position=void 0,this.weight=void 0,this.fullSize=void 0}update(Q,J,q){this.maxWidth=Q,this.maxHeight=J,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 Q=this.options.labels||{},J=W1(Q.generateLabels,[this.chart],this)||[];if(Q.filter)J=J.filter((q)=>Q.filter(q,this.chart.data));if(Q.sort)J=J.sort((q,Y)=>Q.sort(q,Y,this.chart.data));if(this.options.reverse)J.reverse();this.legendItems=J}fit(){let{options:Q,ctx:J}=this;if(!Q.display){this.width=this.height=0;return}let q=Q.labels,Y=p1(q.font),U=Y.size,K=this._computeTitleHeight(),{boxWidth:H,itemHeight:M}=DT(q,U),F,R;if(J.font=Y.string,this.isHorizontal())F=this.maxWidth,R=this._fitRows(K,U,H,M)+10;else R=this.maxHeight,F=this._fitCols(K,Y,H,M)+10;this.width=Math.min(F,Q.maxWidth||this.maxWidth),this.height=Math.min(R,Q.maxHeight||this.maxHeight)}_fitRows(Q,J,q,Y){let{ctx:U,maxWidth:K,options:{labels:{padding:H}}}=this,M=this.legendHitBoxes=[],F=this.lineWidths=[0],R=Y+H,T=Q;U.textAlign="left",U.textBaseline="middle";let z=-1,L=-R;return this.legendItems.forEach((P,I)=>{let A=q+J/2+U.measureText(P.text).width;if(I===0||F[F.length-1]+A+2*H>K)T+=R,F[F.length-(I>0?0:1)]=0,L+=R,z++;M[I]={left:0,top:L,row:z,width:A,height:Y},F[F.length-1]+=A+H}),T}_fitCols(Q,J,q,Y){let{ctx:U,maxHeight:K,options:{labels:{padding:H}}}=this,M=this.legendHitBoxes=[],F=this.columnSizes=[],R=K-Q,T=H,z=0,L=0,P=0,I=0;return this.legendItems.forEach((A,C)=>{let{itemWidth:g,itemHeight:m}=iO(q,J,U,A,Y);if(C>0&&L+m+2*H>R)T+=z+H,F.push({width:z,height:L}),P+=z+H,I++,z=L=0;M[C]={left:P,top:L,col:I,width:g,height:m},z=Math.max(z,g),L+=m+H}),T+=z,F.push({width:z,height:L}),T}adjustHitBoxes(){if(!this.options.display)return;let Q=this._computeTitleHeight(),{legendHitBoxes:J,options:{align:q,labels:{padding:Y},rtl:U}}=this,K=W$(U,this.left,this.width);if(this.isHorizontal()){let H=0,M=q5(q,this.left+Y,this.right-this.lineWidths[H]);for(let F of J){if(H!==F.row)H=F.row,M=q5(q,this.left+Y,this.right-this.lineWidths[H]);F.top+=this.top+Q+Y,F.left=K.leftForLtr(K.x(M),F.width),M+=F.width+Y}}else{let H=0,M=q5(q,this.top+Q+Y,this.bottom-this.columnSizes[H].height);for(let F of J){if(F.col!==H)H=F.col,M=q5(q,this.top+Q+Y,this.bottom-this.columnSizes[H].height);F.top=M,F.left+=this.left+Y,F.left=K.leftForLtr(K.x(F.left),F.width),M+=F.height+Y}}}isHorizontal(){return this.options.position==="top"||this.options.position==="bottom"}draw(){if(this.options.display){let Q=this.ctx;mZ(Q,this),this._draw(),dZ(Q)}}_draw(){let{options:Q,columnSizes:J,lineWidths:q,ctx:Y}=this,{align:U,labels:K}=Q,H=D1.color,M=W$(Q.rtl,this.left,this.width),F=p1(K.font),{padding:R}=K,T=F.size,z=T/2,L;this.drawTitle(),Y.textAlign=M.textAlign("left"),Y.textBaseline="middle",Y.lineWidth=0.5,Y.font=F.string;let{boxWidth:P,boxHeight:I,itemHeight:A}=DT(K,T),C=function(s,Q0,p){if(isNaN(P)||P<=0||isNaN(I)||I<0)return;Y.save();let i=h0(p.lineWidth,1);if(Y.fillStyle=h0(p.fillStyle,H),Y.lineCap=h0(p.lineCap,"butt"),Y.lineDashOffset=h0(p.lineDashOffset,0),Y.lineJoin=h0(p.lineJoin,"miter"),Y.lineWidth=i,Y.strokeStyle=h0(p.strokeStyle,H),Y.setLineDash(h0(p.lineDash,[])),K.usePointStyle){let Y0={radius:I*Math.SQRT2/2,pointStyle:p.pointStyle,rotation:p.rotation,borderWidth:i},d=M.xPlus(s,P/2),N0=Q0+z;QN(Y,Y0,d,N0,K.pointStyleWidth&&P)}else{let Y0=Q0+Math.max((T-I)/2,0),d=M.leftForLtr(s,P),N0=K2(p.borderRadius);if(Y.beginPath(),Object.values(N0).some((w0)=>w0!==0))d9(Y,{x:d,y:Y0,w:P,h:I,radius:N0});else Y.rect(d,Y0,P,I);if(Y.fill(),i!==0)Y.stroke()}Y.restore()},g=function(s,Q0,p){N2(Y,p.text,s,Q0+A/2,F,{strikethrough:p.hidden,textAlign:M.textAlign(p.textAlign)})},m=this.isHorizontal(),o=this._computeTitleHeight();if(m)L={x:q5(U,this.left+R,this.right-q[0]),y:this.top+R+o,line:0};else L={x:this.left+R,y:q5(U,this.top+o+R,this.bottom-J[0].height),line:0};KN(this.ctx,Q.textDirection);let a=A+R;this.legendItems.forEach((s,Q0)=>{Y.strokeStyle=s.fontColor,Y.fillStyle=s.fontColor;let p=Y.measureText(s.text).width,i=M.textAlign(s.textAlign||(s.textAlign=K.textAlign)),Y0=P+z+p,d=L.x,N0=L.y;if(M.setWidth(this.width),m){if(Q0>0&&d+Y0+R>this.right)N0=L.y+=a,L.line++,d=L.x=q5(U,this.left+R,this.right-q[L.line])}else if(Q0>0&&N0+a>this.bottom)d=L.x=d+J[L.line].width+R,L.line++,N0=L.y=q5(U,this.top+o+R,this.bottom-J[L.line].height);let w0=M.x(d);if(C(w0,N0,s),d=DR(i,d+P+z,m?d+Y0:this.right,Q.rtl),g(M.x(d),N0,s),m)L.x+=Y0+R;else if(typeof s.text!=="string"){let z0=F.lineHeight;L.y+=Bz(s,z0)+R}else L.y+=a}),BN(this.ctx,Q.textDirection)}drawTitle(){let Q=this.options,J=Q.title,q=p1(J.font),Y=X5(J.padding);if(!J.display)return;let U=W$(Q.rtl,this.left,this.width),K=this.ctx,H=J.position,M=q.size/2,F=Y.top+M,R,T=this.left,z=this.width;if(this.isHorizontal())z=Math.max(...this.lineWidths),R=this.top+F,T=q5(Q.align,T,this.right-z);else{let P=this.columnSizes.reduce((I,A)=>Math.max(I,A.height),0);R=F+q5(Q.align,this.top,this.bottom-P-Q.labels.padding-this._computeTitleHeight())}let L=q5(H,T,T+z);K.textAlign=U.textAlign(eJ(H)),K.textBaseline="middle",K.strokeStyle=J.color,K.fillStyle=J.color,K.font=q.string,N2(K,J.text,L,R,q)}_computeTitleHeight(){let Q=this.options.title,J=p1(Q.font),q=X5(Q.padding);return Q.display?J.lineHeight+q.height:0}_getLegendItemAt(Q,J){let q,Y,U;if(Z6(Q,this.left,this.right)&&Z6(J,this.top,this.bottom)){U=this.legendHitBoxes;for(q=0;q<U.length;++q)if(Y=U[q],Z6(Q,Y.left,Y.left+Y.width)&&Z6(J,Y.top,Y.top+Y.height))return this.legendItems[q]}return null}handleEvent(Q){let J=this.options;if(!$D(Q.type,J))return;let q=this._getLegendItemAt(Q.x,Q.y);if(Q.type==="mousemove"||Q.type==="mouseout"){let Y=this._hoveredItem,U=aO(Y,q);if(Y&&!U)W1(J.onLeave,[Q,Y,this],this);if(this._hoveredItem=q,q&&!U)W1(J.onHover,[Q,q,this],this)}else if(q)W1(J.onClick,[Q,q,this],this)}}function iO(Q,J,q,Y,U){let K=tO(Y,Q,J,q),H=eO(U,Y,J.lineHeight);return{itemWidth:K,itemHeight:H}}function tO(Q,J,q,Y){let U=Q.text;if(U&&typeof U!=="string")U=U.reduce((K,H)=>K.length>H.length?K:H);return J+q.size/2+Y.measureText(U).width}function eO(Q,J,q){let Y=Q;if(typeof J.text!=="string")Y=Bz(J,q);return Y}function Bz(Q,J){let q=Q.text?Q.text.length:0;return J*q}function $D(Q,J){if((Q==="mousemove"||Q==="mouseout")&&(J.onHover||J.onLeave))return!0;if(J.onClick&&(Q==="click"||Q==="mouseup"))return!0;return!1}var _8={id:"legend",_element:AN,start(Q,J,q){let Y=Q.legend=new AN({ctx:Q.ctx,options:q,chart:Q});V4.configure(Q,Y,q),V4.addBox(Q,Y)},stop(Q){V4.removeBox(Q,Q.legend),delete Q.legend},beforeUpdate(Q,J,q){let Y=Q.legend;V4.configure(Q,Y,q),Y.options=q},afterUpdate(Q){let J=Q.legend;J.buildLabels(),J.adjustHitBoxes()},afterEvent(Q,J){if(!J.replay)Q.legend.handleEvent(J.event)},defaults:{display:!0,position:"top",align:"center",fullSize:!0,reverse:!1,weight:1000,onClick(Q,J,q){let Y=J.datasetIndex,U=q.chart;if(U.isDatasetVisible(Y))U.hide(Y),J.hidden=!0;else U.show(Y),J.hidden=!1},onHover:null,onLeave:null,labels:{color:(Q)=>Q.chart.options.color,boxWidth:40,padding:10,generateLabels(Q){let J=Q.data.datasets,{labels:{usePointStyle:q,pointStyle:Y,textAlign:U,color:K,useBorderRadius:H,borderRadius:M}}=Q.legend.options;return Q._getSortedDatasetMetas().map((F)=>{let R=F.controller.getStyle(q?0:void 0),T=X5(R.borderWidth);return{text:J[F.index].label,fillStyle:R.backgroundColor,fontColor:K,hidden:!F.visible,lineCap:R.borderCapStyle,lineDash:R.borderDash,lineDashOffset:R.borderDashOffset,lineJoin:R.borderJoinStyle,lineWidth:(T.width+T.height)/4,strokeStyle:R.borderColor,pointStyle:Y||R.pointStyle,rotation:R.rotation,textAlign:U||R.textAlign,borderRadius:H&&(M||R.borderRadius),datasetIndex:F.index}},this)}},title:{color:(Q)=>Q.chart.options.color,display:!1,position:"center",text:""}},descriptors:{_scriptable:(Q)=>!Q.startsWith("on"),labels:{_scriptable:(Q)=>!["generateLabels","filter","sort"].includes(Q)}}};class uN extends q6{constructor(Q){super();this.chart=Q.chart,this.options=Q.options,this.ctx=Q.ctx,this._padding=void 0,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.width=void 0,this.height=void 0,this.position=void 0,this.weight=void 0,this.fullSize=void 0}update(Q,J){let 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=Q,this.height=this.bottom=J;let Y=z1(q.text)?q.text.length:1;this._padding=X5(q.padding);let U=Y*p1(q.font).lineHeight+this._padding.height;if(this.isHorizontal())this.height=U;else this.width=U}isHorizontal(){let Q=this.options.position;return Q==="top"||Q==="bottom"}_drawArgs(Q){let{top:J,left:q,bottom:Y,right:U,options:K}=this,H=K.align,M=0,F,R,T;if(this.isHorizontal())R=q5(H,q,U),T=J+Q,F=U-q;else{if(K.position==="left")R=q+Q,T=q5(H,Y,J),M=b1*-0.5;else R=U-Q,T=q5(H,J,Y),M=b1*0.5;F=Y-J}return{titleX:R,titleY:T,maxWidth:F,rotation:M}}draw(){let Q=this.ctx,J=this.options;if(!J.display)return;let q=p1(J.font),U=q.lineHeight/2+this._padding.top,{titleX:K,titleY:H,maxWidth:M,rotation:F}=this._drawArgs(U);N2(Q,J.text,0,0,q,{color:J.color,maxWidth:M,rotation:F,textAlign:eJ(J.align),textBaseline:"middle",translation:[K,H]})}}function ZD(Q,J){let q=new uN({ctx:Q.ctx,options:J,chart:Q});V4.configure(Q,q,J),V4.addBox(Q,q),Q.titleBlock=q}var L8={id:"title",_element:uN,start(Q,J,q){ZD(Q,q)},stop(Q){let J=Q.titleBlock;V4.removeBox(Q,J),delete Q.titleBlock},beforeUpdate(Q,J,q){let Y=Q.titleBlock;V4.configure(Q,Y,q),Y.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 iZ={average(Q){if(!Q.length)return!1;let J,q,Y=new Set,U=0,K=0;for(J=0,q=Q.length;J<q;++J){let M=Q[J].element;if(M&&M.hasValue()){let F=M.tooltipPosition();Y.add(F.x),U+=F.y,++K}}if(K===0||Y.size===0)return!1;return{x:[...Y].reduce((M,F)=>M+F)/Y.size,y:U/K}},nearest(Q,J){if(!Q.length)return!1;let{x:q,y:Y}=J,U=Number.POSITIVE_INFINITY,K,H,M;for(K=0,H=Q.length;K<H;++K){let F=Q[K].element;if(F&&F.hasValue()){let R=F.getCenterPoint(),T=nJ(J,R);if(T<U)U=T,M=F}}if(M){let F=M.tooltipPosition();q=F.x,Y=F.y}return{x:q,y:Y}}};function T8(Q,J){if(J)if(z1(J))Array.prototype.push.apply(Q,J);else Q.push(J);return Q}function J6(Q){if((typeof Q==="string"||Q instanceof String)&&Q.indexOf(`
|
|
256
256
|
`)>-1)return Q.split(`
|
|
257
|
-
`);return Q}function iO(Q,J){let{element:q,datasetIndex:Y,index:U}=J,K=Q.getDatasetMeta(Y).controller,{label:M,value:H}=K.getLabelAndValue(U);return{chart:Q,label:M,parsed:K.getParsed(U),raw:Q.data.datasets[Y].data[U],formattedValue:H,dataset:K.getDataset(),dataIndex:U,datasetIndex:Y,element:q}}function IT(Q,J){let q=Q.chart.ctx,{body:Y,footer:U,title:K}=Q,{boxWidth:M,boxHeight:H}=J,F=p1(J.bodyFont),w=p1(J.titleFont),T=p1(J.footerFont),_=K.length,L=U.length,P=Y.length,O=X5(J.padding),A=O.height,C=0,g=Y.reduce((a,s)=>a+s.before.length+s.lines.length+s.after.length,0);if(g+=Q.beforeBody.length+Q.afterBody.length,_)A+=_*w.lineHeight+(_-1)*J.titleSpacing+J.titleMarginBottom;if(g){let a=J.displayColors?Math.max(H,F.lineHeight):F.lineHeight;A+=P*a+(g-P)*F.lineHeight+(g-1)*J.bodySpacing}if(L)A+=J.footerMarginTop+L*T.lineHeight+(L-1)*J.footerSpacing;let m=0,o=function(a){C=Math.max(C,q.measureText(a).width+m)};return q.save(),q.font=w.string,X1(Q.title,o),q.font=F.string,X1(Q.beforeBody.concat(Q.afterBody),o),m=J.displayColors?M+2+J.boxPadding:0,X1(Y,(a)=>{X1(a.before,o),X1(a.lines,o),X1(a.after,o)}),m=0,q.font=T.string,X1(Q.footer,o),q.restore(),C+=O.width,{width:C,height:A}}function tO(Q,J){let{y:q,height:Y}=J;if(q<Y/2)return"top";else if(q>Q.height-Y/2)return"bottom";return"center"}function eO(Q,J,q,Y){let{x:U,width:K}=Y,M=q.caretSize+q.caretPadding;if(Q==="left"&&U+K+M>J.width)return!0;if(Q==="right"&&U-K-M<0)return!0}function $D(Q,J,q,Y){let{x:U,width:K}=q,{width:M,chartArea:{left:H,right:F}}=Q,w="center";if(Y==="center")w=U<=(H+F)/2?"left":"right";else if(U<=K/2)w="left";else if(U>=M-K/2)w="right";if(eO(w,Q,J,q))w="center";return w}function OT(Q,J,q){let Y=q.yAlign||J.yAlign||tO(Q,q);return{xAlign:q.xAlign||J.xAlign||$D(Q,J,q,Y),yAlign:Y}}function ZD(Q,J){let{x:q,width:Y}=Q;if(J==="right")q-=Y;else if(J==="center")q-=Y/2;return q}function QD(Q,J,q){let{y:Y,height:U}=Q;if(J==="top")Y+=q;else if(J==="bottom")Y-=U+q;else Y-=U/2;return Y}function DT(Q,J,q,Y){let{caretSize:U,caretPadding:K,cornerRadius:M}=Q,{xAlign:H,yAlign:F}=q,w=U+K,{topLeft:T,topRight:_,bottomLeft:L,bottomRight:P}=K2(M),O=ZD(J,H),A=QD(J,F,w);if(F==="center"){if(H==="left")O+=w;else if(H==="right")O-=w}else if(H==="left")O-=Math.max(T,L)+U;else if(H==="right")O+=Math.max(_,P)+U;return{x:y5(O,0,Y.width-J.width),y:y5(A,0,Y.height-J.height)}}function Kq(Q,J,q){let Y=X5(q.padding);return J==="center"?Q.x+Q.width/2:J==="right"?Q.x+Q.width-Y.right:Q.x+Y.left}function jT(Q){return T8([],J6(Q))}function GD(Q,J,q){return Q6(Q,{tooltip:J,tooltipItems:q,type:"tooltip"})}function AT(Q,J){let q=J&&J.dataset&&J.dataset.tooltip&&J.dataset.tooltip.callbacks;return q?Q.override(q):Q}var N_={beforeTitle:w8,title(Q){if(Q.length>0){let J=Q[0],q=J.chart.data.labels,Y=q?q.length:0;if(this&&this.options&&this.options.mode==="dataset")return J.dataset.label||"";else if(J.label)return J.label;else if(Y>0&&J.dataIndex<Y)return q[J.dataIndex]}return""},afterTitle:w8,beforeBody:w8,beforeLabel:w8,label(Q){if(this&&this.options&&this.options.mode==="dataset")return Q.label+": "+Q.formattedValue||Q.formattedValue;let J=Q.dataset.label||"";if(J)J+=": ";let q=Q.formattedValue;if(!t0(q))J+=q;return J},labelColor(Q){let q=Q.chart.getDatasetMeta(Q.datasetIndex).controller.getStyle(Q.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(Q){let q=Q.chart.getDatasetMeta(Q.datasetIndex).controller.getStyle(Q.dataIndex);return{pointStyle:q.pointStyle,rotation:q.rotation}},afterLabel:w8,afterBody:w8,beforeFooter:w8,footer:w8,afterFooter:w8};function h5(Q,J,q,Y){let U=Q[J].call(q,Y);if(typeof U>"u")return N_[J].call(q,Y);return U}class jN extends q6{static positioners=iZ;constructor(Q){super();this.opacity=0,this._active=[],this._eventPosition=void 0,this._size=void 0,this._cachedAnimations=void 0,this._tooltipItems=[],this.$animations=void 0,this.$context=void 0,this.chart=Q.chart,this.options=Q.options,this.dataPoints=void 0,this.title=void 0,this.beforeBody=void 0,this.body=void 0,this.afterBody=void 0,this.footer=void 0,this.xAlign=void 0,this.yAlign=void 0,this.x=void 0,this.y=void 0,this.height=void 0,this.width=void 0,this.caretX=void 0,this.caretY=void 0,this.labelColors=void 0,this.labelPointStyles=void 0,this.labelTextColors=void 0}initialize(Q){this.options=Q,this._cachedAnimations=void 0,this.$context=void 0}_resolveAnimations(){let Q=this._cachedAnimations;if(Q)return Q;let J=this.chart,q=this.options.setContext(this.getContext()),Y=q.enabled&&J.options.animation&&q.animations,U=new vN(this.chart,Y);if(Y._cacheable)this._cachedAnimations=Object.freeze(U);return U}getContext(){return this.$context||(this.$context=GD(this.chart.getContext(),this,this._tooltipItems))}getTitle(Q,J){let{callbacks:q}=J,Y=h5(q,"beforeTitle",this,Q),U=h5(q,"title",this,Q),K=h5(q,"afterTitle",this,Q),M=[];return M=T8(M,J6(Y)),M=T8(M,J6(U)),M=T8(M,J6(K)),M}getBeforeBody(Q,J){return jT(h5(J.callbacks,"beforeBody",this,Q))}getBody(Q,J){let{callbacks:q}=J,Y=[];return X1(Q,(U)=>{let K={before:[],lines:[],after:[]},M=AT(q,U);T8(K.before,J6(h5(M,"beforeLabel",this,U))),T8(K.lines,h5(M,"label",this,U)),T8(K.after,J6(h5(M,"afterLabel",this,U))),Y.push(K)}),Y}getAfterBody(Q,J){return jT(h5(J.callbacks,"afterBody",this,Q))}getFooter(Q,J){let{callbacks:q}=J,Y=h5(q,"beforeFooter",this,Q),U=h5(q,"footer",this,Q),K=h5(q,"afterFooter",this,Q),M=[];return M=T8(M,J6(Y)),M=T8(M,J6(U)),M=T8(M,J6(K)),M}_createItems(Q){let J=this._active,q=this.chart.data,Y=[],U=[],K=[],M=[],H,F;for(H=0,F=J.length;H<F;++H)M.push(iO(this.chart,J[H]));if(Q.filter)M=M.filter((w,T,_)=>Q.filter(w,T,_,q));if(Q.itemSort)M=M.sort((w,T)=>Q.itemSort(w,T,q));return X1(M,(w)=>{let T=AT(Q.callbacks,w);Y.push(h5(T,"labelColor",this,w)),U.push(h5(T,"labelPointStyle",this,w)),K.push(h5(T,"labelTextColor",this,w))}),this.labelColors=Y,this.labelPointStyles=U,this.labelTextColors=K,this.dataPoints=M,M}update(Q,J){let q=this.options.setContext(this.getContext()),Y=this._active,U,K=[];if(!Y.length){if(this.opacity!==0)U={opacity:0}}else{let M=iZ[q.position].call(this,Y,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 H=this._size=IT(this,q),F=Object.assign({},M,H),w=OT(this.chart,q,F),T=DT(q,F,w,this.chart);this.xAlign=w.xAlign,this.yAlign=w.yAlign,U={opacity:1,x:T.x,y:T.y,width:H.width,height:H.height,caretX:M.x,caretY:M.y}}if(this._tooltipItems=K,this.$context=void 0,U)this._resolveAnimations().update(this,U);if(Q&&q.external)q.external.call(this,{chart:this.chart,tooltip:this,replay:J})}drawCaret(Q,J,q,Y){let U=this.getCaretPosition(Q,q,Y);J.lineTo(U.x1,U.y1),J.lineTo(U.x2,U.y2),J.lineTo(U.x3,U.y3)}getCaretPosition(Q,J,q){let{xAlign:Y,yAlign:U}=this,{caretSize:K,cornerRadius:M}=q,{topLeft:H,topRight:F,bottomLeft:w,bottomRight:T}=K2(M),{x:_,y:L}=Q,{width:P,height:O}=J,A,C,g,m,o,a;if(U==="center"){if(o=L+O/2,Y==="left")A=_,C=A-K,m=o+K,a=o-K;else A=_+P,C=A+K,m=o-K,a=o+K;g=A}else{if(Y==="left")C=_+Math.max(H,w)+K;else if(Y==="right")C=_+P-Math.max(F,T)-K;else C=this.caretX;if(U==="top")m=L,o=m-K,A=C-K,g=C+K;else m=L+O,o=m+K,A=C+K,g=C-K;a=m}return{x1:A,x2:C,x3:g,y1:m,y2:o,y3:a}}drawTitle(Q,J,q){let Y=this.title,U=Y.length,K,M,H;if(U){let F=W$(q.rtl,this.x,this.width);Q.x=Kq(this,q.titleAlign,q),J.textAlign=F.textAlign(q.titleAlign),J.textBaseline="middle",K=p1(q.titleFont),M=q.titleSpacing,J.fillStyle=q.titleColor,J.font=K.string;for(H=0;H<U;++H)if(J.fillText(Y[H],F.x(Q.x),Q.y+K.lineHeight/2),Q.y+=K.lineHeight+M,H+1===U)Q.y+=q.titleMarginBottom-M}}_drawColorBox(Q,J,q,Y,U){let K=this.labelColors[q],M=this.labelPointStyles[q],{boxHeight:H,boxWidth:F}=U,w=p1(U.bodyFont),T=Kq(this,"left",U),_=Y.x(T),L=H<w.lineHeight?(w.lineHeight-H)/2:0,P=J.y+L;if(U.usePointStyle){let O={radius:Math.min(F,H)/2,pointStyle:M.pointStyle,rotation:M.rotation,borderWidth:1},A=Y.leftForLtr(_,F)+F/2,C=P+H/2;Q.strokeStyle=U.multiKeyBackground,Q.fillStyle=U.multiKeyBackground,Qq(Q,O,A,C),Q.strokeStyle=K.borderColor,Q.fillStyle=K.backgroundColor,Qq(Q,O,A,C)}else{Q.lineWidth=n0(K.borderWidth)?Math.max(...Object.values(K.borderWidth)):K.borderWidth||1,Q.strokeStyle=K.borderColor,Q.setLineDash(K.borderDash||[]),Q.lineDashOffset=K.borderDashOffset||0;let O=Y.leftForLtr(_,F),A=Y.leftForLtr(Y.xPlus(_,1),F-2),C=K2(K.borderRadius);if(Object.values(C).some((g)=>g!==0))Q.beginPath(),Q.fillStyle=U.multiKeyBackground,d9(Q,{x:O,y:P,w:F,h:H,radius:C}),Q.fill(),Q.stroke(),Q.fillStyle=K.backgroundColor,Q.beginPath(),d9(Q,{x:A,y:P+1,w:F-2,h:H-2,radius:C}),Q.fill();else Q.fillStyle=U.multiKeyBackground,Q.fillRect(O,P,F,H),Q.strokeRect(O,P,F,H),Q.fillStyle=K.backgroundColor,Q.fillRect(A,P+1,F-2,H-2)}Q.fillStyle=this.labelTextColors[q]}drawBody(Q,J,q){let{body:Y}=this,{bodySpacing:U,bodyAlign:K,displayColors:M,boxHeight:H,boxWidth:F,boxPadding:w}=q,T=p1(q.bodyFont),_=T.lineHeight,L=0,P=W$(q.rtl,this.x,this.width),O=function(p){J.fillText(p,P.x(Q.x+L),Q.y+_/2),Q.y+=_+U},A=P.textAlign(K),C,g,m,o,a,s,Q0;J.textAlign=K,J.textBaseline="middle",J.font=T.string,Q.x=Kq(this,A,q),J.fillStyle=q.bodyColor,X1(this.beforeBody,O),L=M&&A!=="right"?K==="center"?F/2+w:F+2+w:0;for(o=0,s=Y.length;o<s;++o){if(C=Y[o],g=this.labelTextColors[o],J.fillStyle=g,X1(C.before,O),m=C.lines,M&&m.length)this._drawColorBox(J,Q,o,P,q),_=Math.max(T.lineHeight,H);for(a=0,Q0=m.length;a<Q0;++a)O(m[a]),_=T.lineHeight;X1(C.after,O)}L=0,_=T.lineHeight,X1(this.afterBody,O),Q.y-=U}drawFooter(Q,J,q){let Y=this.footer,U=Y.length,K,M;if(U){let H=W$(q.rtl,this.x,this.width);Q.x=Kq(this,q.footerAlign,q),Q.y+=q.footerMarginTop,J.textAlign=H.textAlign(q.footerAlign),J.textBaseline="middle",K=p1(q.footerFont),J.fillStyle=q.footerColor,J.font=K.string;for(M=0;M<U;++M)J.fillText(Y[M],H.x(Q.x),Q.y+K.lineHeight/2),Q.y+=K.lineHeight+q.footerSpacing}}drawBackground(Q,J,q,Y){let{xAlign:U,yAlign:K}=this,{x:M,y:H}=Q,{width:F,height:w}=q,{topLeft:T,topRight:_,bottomLeft:L,bottomRight:P}=K2(Y.cornerRadius);if(J.fillStyle=Y.backgroundColor,J.strokeStyle=Y.borderColor,J.lineWidth=Y.borderWidth,J.beginPath(),J.moveTo(M+T,H),K==="top")this.drawCaret(Q,J,q,Y);if(J.lineTo(M+F-_,H),J.quadraticCurveTo(M+F,H,M+F,H+_),K==="center"&&U==="right")this.drawCaret(Q,J,q,Y);if(J.lineTo(M+F,H+w-P),J.quadraticCurveTo(M+F,H+w,M+F-P,H+w),K==="bottom")this.drawCaret(Q,J,q,Y);if(J.lineTo(M+L,H+w),J.quadraticCurveTo(M,H+w,M,H+w-L),K==="center"&&U==="left")this.drawCaret(Q,J,q,Y);if(J.lineTo(M,H+T),J.quadraticCurveTo(M,H,M+T,H),J.closePath(),J.fill(),Y.borderWidth>0)J.stroke()}_updateAnimationTarget(Q){let J=this.chart,q=this.$animations,Y=q&&q.x,U=q&&q.y;if(Y||U){let K=iZ[Q.position].call(this,this._active,this._eventPosition);if(!K)return;let M=this._size=IT(this,Q),H=Object.assign({},K,this._size),F=OT(J,Q,H),w=DT(Q,H,F,J);if(Y._to!==w.x||U._to!==w.y)this.xAlign=F.xAlign,this.yAlign=F.yAlign,this.width=M.width,this.height=M.height,this.caretX=K.x,this.caretY=K.y,this._resolveAnimations().update(this,w)}}_willRender(){return!!this.opacity}draw(Q){let J=this.options.setContext(this.getContext()),q=this.opacity;if(!q)return;this._updateAnimationTarget(J);let Y={width:this.width,height:this.height},U={x:this.x,y:this.y};q=Math.abs(q)<0.001?0:q;let K=X5(J.padding),M=this.title.length||this.beforeBody.length||this.body.length||this.afterBody.length||this.footer.length;if(J.enabled&&M)Q.save(),Q.globalAlpha=q,this.drawBackground(U,Q,Y,J),UN(Q,J.textDirection),U.y+=K.top,this.drawTitle(U,Q,J),this.drawBody(U,Q,J),this.drawFooter(U,Q,J),NN(Q,J.textDirection),Q.restore()}getActiveElements(){return this._active||[]}setActiveElements(Q,J){let q=this._active,Y=Q.map(({datasetIndex:M,index:H})=>{let F=this.chart.getDatasetMeta(M);if(!F)throw Error("Cannot find a dataset at index "+M);return{datasetIndex:M,element:F.data[H],index:H}}),U=!xZ(q,Y),K=this._positionChanged(Y,J);if(U||K)this._active=Y,this._eventPosition=J,this._ignoreReplayEvents=!0,this.update(!0)}handleEvent(Q,J,q=!0){if(J&&this._ignoreReplayEvents)return!1;this._ignoreReplayEvents=!1;let Y=this.options,U=this._active||[],K=this._getActiveElements(Q,U,J,q),M=this._positionChanged(K,Q),H=J||!xZ(K,U)||M;if(H){if(this._active=K,Y.enabled||Y.external)this._eventPosition={x:Q.x,y:Q.y},this.update(!0,J)}return H}_getActiveElements(Q,J,q,Y){let U=this.options;if(Q.type==="mouseout")return[];if(!Y)return J.filter((M)=>this.chart.data.datasets[M.datasetIndex]&&this.chart.getDatasetMeta(M.datasetIndex).controller.getParsed(M.index)!==void 0);let K=this.chart.getElementsAtEventForMode(Q,U.mode,U,q);if(U.reverse)K.reverse();return K}_positionChanged(Q,J){let{caretX:q,caretY:Y,options:U}=this,K=iZ[U.position].call(this,Q,J);return K!==!1&&(q!==K.x||Y!==K.y)}}var V8={id:"tooltip",_element:jN,positioners:iZ,afterInit(Q,J,q){if(q)Q.tooltip=new jN({chart:Q,options:q})},beforeUpdate(Q,J,q){if(Q.tooltip)Q.tooltip.initialize(q)},reset(Q,J,q){if(Q.tooltip)Q.tooltip.initialize(q)},afterDraw(Q){let J=Q.tooltip;if(J&&J._willRender()){let q={tooltip:J};if(Q.notifyPlugins("beforeTooltipDraw",{...q,cancelable:!0})===!1)return;J.draw(Q.ctx),Q.notifyPlugins("afterTooltipDraw",q)}},afterEvent(Q,J){if(Q.tooltip){let q=J.replay;if(Q.tooltip.handleEvent(J.event,q,J.inChartArea))J.changed=!0}},defaults:{enabled:!0,external:null,position:"average",backgroundColor:"rgba(0,0,0,0.8)",titleColor:"#fff",titleFont:{weight:"bold"},titleSpacing:2,titleMarginBottom:6,titleAlign:"left",bodyColor:"#fff",bodySpacing:2,bodyFont:{},bodyAlign:"left",footerColor:"#fff",footerSpacing:2,footerMarginTop:6,footerFont:{weight:"bold"},footerAlign:"left",padding:6,caretPadding:2,caretSize:5,cornerRadius:6,boxHeight:(Q,J)=>J.bodyFont.size,boxWidth:(Q,J)=>J.bodyFont.size,multiKeyBackground:"#fff",displayColors:!0,boxPadding:0,borderColor:"rgba(0,0,0,0)",borderWidth:0,animation:{duration:400,easing:"easeOutQuart"},animations:{numbers:{type:"number",properties:["x","y","width","height","caretX","caretY"]},opacity:{easing:"linear",duration:200}},callbacks:N_},defaultRoutes:{bodyFont:"font",footerFont:"font",titleFont:"font"},descriptors:{_scriptable:(Q)=>Q!=="filter"&&Q!=="itemSort"&&Q!=="external",_indexable:!1,callbacks:{_scriptable:!1,_indexable:!1},animation:{_fallback:!1},animations:{_fallback:"animation"}},additionalOptionScopes:["interaction"]};var JD=(Q,J,q,Y)=>{if(typeof J==="string")q=Q.push(J)-1,Y.unshift({index:q,label:J});else if(isNaN(J))q=null;return q};function qD(Q,J,q,Y){let U=Q.indexOf(J);if(U===-1)return JD(Q,J,q,Y);let K=Q.lastIndexOf(J);return U!==K?q:U}var XD=(Q,J)=>Q===null?null:y5(Math.round(Q),0,J);function ST(Q){let J=this.getLabels();if(Q>=0&&Q<J.length)return J[Q];return Q}class h4 extends T${static id="category";static defaults={ticks:{callback:ST}};constructor(Q){super(Q);this._startValue=void 0,this._valueRange=0,this._addedLabels=[]}init(Q){let J=this._addedLabels;if(J.length){let q=this.getLabels();for(let{index:Y,label:U}of J)if(q[Y]===U)q.splice(Y,1);this._addedLabels=[]}super.init(Q)}parse(Q,J){if(t0(Q))return null;let q=this.getLabels();return J=isFinite(J)&&q[J]===Q?J:qD(q,Q,h0(J,Q),this._addedLabels),XD(J,q.length-1)}determineDataLimits(){let{minDefined:Q,maxDefined:J}=this.getUserBounds(),{min:q,max:Y}=this.getMinMax(!0);if(this.options.bounds==="ticks"){if(!Q)q=0;if(!J)Y=this.getLabels().length-1}this.min=q,this.max=Y}buildTicks(){let Q=this.min,J=this.max,q=this.options.offset,Y=[],U=this.getLabels();U=Q===0&&J===U.length-1?U:U.slice(Q,J+1),this._valueRange=Math.max(U.length-(q?0:1),1),this._startValue=this.min-(q?0.5:0);for(let K=Q;K<=J;K++)Y.push({value:K});return Y}getLabelForValue(Q){return ST.call(this,Q)}configure(){if(super.configure(),!this.isHorizontal())this._reversePixels=!this._reversePixels}getPixelForValue(Q){if(typeof Q!=="number")Q=this.parse(Q);return Q===null?NaN:this.getPixelForDecimal((Q-this._startValue)/this._valueRange)}getPixelForTick(Q){let J=this.ticks;if(Q<0||Q>J.length-1)return null;return this.getPixelForValue(J[Q].value)}getValueForPixel(Q){return Math.round(this._startValue+this.getDecimalForPixel(Q)*this._valueRange)}getBasePixel(){return this.bottom}}function YD(Q,J){let q=[],Y=0.00000000000001,{bounds:U,step:K,min:M,max:H,precision:F,count:w,maxTicks:T,maxDigits:_,includeBounds:L}=Q,P=K||1,O=T-1,{min:A,max:C}=J,g=!t0(M),m=!t0(H),o=!t0(w),a=(C-A)/(_+1),s=pU((C-A)/O/P)*P,Q0,p,i,Y0;if(s<0.00000000000001&&!g&&!m)return[{value:A},{value:C}];if(Y0=Math.ceil(C/s)-Math.floor(A/s),Y0>O)s=pU(Y0*s/O/P)*P;if(!t0(F))Q0=Math.pow(10,F),s=Math.ceil(s*Q0)/Q0;if(U==="ticks")p=Math.floor(A/s)*s,i=Math.ceil(C/s)*s;else p=A,i=C;if(g&&m&&K&&ww((H-M)/K,s/1000))Y0=Math.round(Math.min((H-M)/s,T)),s=(H-M)/Y0,p=M,i=H;else if(o)p=g?M:p,i=m?H:i,Y0=w-1,s=(i-p)/Y0;else if(Y0=(i-p)/s,u9(Y0,Math.round(Y0),s/1000))Y0=Math.round(Y0);else Y0=Math.ceil(Y0);let d=Math.max(lU(s),lU(p));Q0=Math.pow(10,t0(F)?d:F),p=Math.round(p*Q0)/Q0,i=Math.round(i*Q0)/Q0;let N0=0;if(g){if(L&&p!==M){if(q.push({value:M}),p<M)N0++;if(u9(Math.round((p+N0*s)*Q0)/Q0,M,vT(M,a,Q)))N0++}else if(p<M)N0++}for(;N0<Y0;++N0){let R0=Math.round((p+N0*s)*Q0)/Q0;if(m&&R0>H)break;q.push({value:R0})}if(m&&L&&i!==H)if(q.length&&u9(q[q.length-1].value,H,vT(H,a,Q)))q[q.length-1].value=H;else q.push({value:H});else if(!m||i===H)q.push({value:i});return q}function vT(Q,J,{horizontal:q,minRotation:Y}){let U=$6(Y),K=(q?Math.sin(U):Math.cos(U))||0.001,M=0.75*J*(""+Q).length;return Math.min(J/K,M)}class eZ extends T${constructor(Q){super(Q);this.start=void 0,this.end=void 0,this._startValue=void 0,this._endValue=void 0,this._valueRange=0}parse(Q,J){if(t0(Q))return null;if((typeof Q==="number"||Q instanceof Number)&&!isFinite(+Q))return null;return+Q}handleTickRangeOptions(){let{beginAtZero:Q}=this.options,{minDefined:J,maxDefined:q}=this.getUserBounds(),{min:Y,max:U}=this,K=(H)=>Y=J?Y:H,M=(H)=>U=q?U:H;if(Q){let H=y4(Y),F=y4(U);if(H<0&&F<0)M(0);else if(H>0&&F>0)K(0)}if(Y===U){let H=U===0?1:Math.abs(U*0.05);if(M(U+H),!Q)K(Y-H)}this.min=Y,this.max=U}getTickLimit(){let Q=this.options.ticks,{maxTicksLimit:J,stepSize:q}=Q,Y;if(q){if(Y=Math.ceil(this.max/q)-Math.floor(this.min/q)+1,Y>1000)console.warn(`scales.${this.id}.ticks.stepSize: ${q} would result generating up to ${Y} ticks. Limiting to 1000.`),Y=1000}else Y=this.computeTickLimit(),J=J||11;if(J)Y=Math.min(J,Y);return Y}computeTickLimit(){return Number.POSITIVE_INFINITY}buildTicks(){let Q=this.options,J=Q.ticks,q=this.getTickLimit();q=Math.max(2,q);let Y={maxTicks:q,bounds:Q.bounds,min:Q.min,max:Q.max,precision:J.precision,step:J.stepSize,count:J.count,maxDigits:this._maxDigits(),horizontal:this.isHorizontal(),minRotation:J.minRotation||0,includeBounds:J.includeBounds!==!1},U=this._range||this,K=YD(Y,U);if(Q.bounds==="ticks")cU(K,this,"value");if(Q.reverse)K.reverse(),this.start=this.max,this.end=this.min;else this.start=this.min,this.end=this.max;return K}configure(){let Q=this.ticks,J=this.min,q=this.max;if(super.configure(),this.options.offset&&Q.length){let Y=(q-J)/Math.max(Q.length-1,1)/2;J-=Y,q+=Y}this._startValue=J,this._endValue=q,this._valueRange=q-J}getLabelForValue(Q){return $q(Q,this.chart.options.locale,this.options.ticks.format)}}class x4 extends eZ{static id="linear";static defaults={ticks:{callback:uZ.formatters.numeric}};determineDataLimits(){let{min:Q,max:J}=this.getMinMax(!0);this.min=O1(Q)?Q:0,this.max=O1(J)?J:1,this.handleTickRangeOptions()}computeTickLimit(){let Q=this.isHorizontal(),J=Q?this.width:this.height,q=$6(this.options.ticks.minRotation),Y=(Q?Math.sin(q):Math.cos(q))||0.001,U=this._resolveTickFontOptions(0);return Math.ceil(J/Math.min(40,U.lineHeight/Y))}getPixelForValue(Q){return Q===null?NaN:this.getPixelForDecimal((Q-this._startValue)/this._valueRange)}getValueForPixel(Q){return this._startValue+this.getDecimalForPixel(Q)*this._valueRange}}var $Q=(Q)=>Math.floor(e8(Q)),w$=(Q,J)=>Math.pow(10,$Q(Q)+J);function kT(Q){return Q/Math.pow(10,$Q(Q))===1}function bT(Q,J,q){let Y=Math.pow(10,q),U=Math.floor(Q/Y);return Math.ceil(J/Y)-U}function UD(Q,J){let q=J-Q,Y=$Q(q);while(bT(Q,J,Y)>10)Y++;while(bT(Q,J,Y)<10)Y--;return Math.min(Y,$Q(Q))}function ND(Q,{min:J,max:q}){J=g5(Q.min,J);let Y=[],U=$Q(J),K=UD(J,q),M=K<0?Math.pow(10,Math.abs(K)):1,H=Math.pow(10,K),F=U>K?Math.pow(10,U):0,w=Math.round((J-F)*M)/M,T=Math.floor((J-F)/H/10)*H*10,_=Math.floor((w-T)/Math.pow(10,K)),L=g5(Q.min,Math.round((F+T+_*Math.pow(10,K))*M)/M);while(L<q){if(Y.push({value:L,major:kT(L),significand:_}),_>=10)_=_<15?15:20;else _++;if(_>=20)K++,_=2,M=K>=0?1:M;L=Math.round((F+T+_*Math.pow(10,K))*M)/M}let P=g5(Q.max,L);return Y.push({value:P,major:kT(P),significand:_}),Y}class KD extends T${static id="logarithmic";static defaults={ticks:{callback:uZ.formatters.logarithmic,major:{enabled:!0}}};constructor(Q){super(Q);this.start=void 0,this.end=void 0,this._startValue=void 0,this._valueRange=0}parse(Q,J){let q=eZ.prototype.parse.apply(this,[Q,J]);if(q===0){this._zero=!0;return}return O1(q)&&q>0?q:null}determineDataLimits(){let{min:Q,max:J}=this.getMinMax(!0);if(this.min=O1(Q)?Math.max(0,Q):null,this.max=O1(J)?Math.max(0,J):null,this.options.beginAtZero)this._zero=!0;if(this._zero&&this.min!==this._suggestedMin&&!O1(this._userMin))this.min=Q===w$(this.min,0)?w$(this.min,-1):w$(this.min,0);this.handleTickRangeOptions()}handleTickRangeOptions(){let{minDefined:Q,maxDefined:J}=this.getUserBounds(),q=this.min,Y=this.max,U=(M)=>q=Q?q:M,K=(M)=>Y=J?Y:M;if(q===Y)if(q<=0)U(1),K(10);else U(w$(q,-1)),K(w$(Y,1));if(q<=0)U(w$(Y,-1));if(Y<=0)K(w$(q,1));this.min=q,this.max=Y}buildTicks(){let Q=this.options,J={min:this._userMin,max:this._userMax},q=ND(J,this);if(Q.bounds==="ticks")cU(q,this,"value");if(Q.reverse)q.reverse(),this.start=this.max,this.end=this.min;else this.start=this.min,this.end=this.max;return q}getLabelForValue(Q){return Q===void 0?"0":$q(Q,this.chart.options.locale,this.options.ticks.format)}configure(){let Q=this.min;super.configure(),this._startValue=e8(Q),this._valueRange=e8(this.max)-e8(Q)}getPixelForValue(Q){if(Q===void 0||Q===0)Q=this.min;if(Q===null||isNaN(Q))return NaN;return this.getPixelForDecimal(Q===this.min?0:(e8(Q)-this._startValue)/this._valueRange)}getValueForPixel(Q){let J=this.getDecimalForPixel(Q);return Math.pow(10,this._startValue+J*this._valueRange)}}function AN(Q){let J=Q.ticks;if(J.display&&Q.display){let q=X5(J.backdropPadding);return h0(J.font&&J.font.size,D1.font.size)+q.height}return 0}function BD(Q,J,q){return q=_1(q)?q:[q],{w:Aw(Q,J.string,q),h:q.length*J.lineHeight}}function fT(Q,J,q,Y,U){if(Q===Y||Q===U)return{start:J-q/2,end:J+q/2};else if(Q<Y||Q>U)return{start:J-q,end:J};return{start:J,end:J+q}}function MD(Q){let J={l:Q.left+Q._padding.left,r:Q.right-Q._padding.right,t:Q.top+Q._padding.top,b:Q.bottom-Q._padding.bottom},q=Object.assign({},J),Y=[],U=[],K=Q._pointLabels.length,M=Q.options.pointLabels,H=M.centerPointLabels?b1/K:0;for(let F=0;F<K;F++){let w=M.setContext(Q.getPointLabelContext(F));U[F]=w.padding;let T=Q.getPointPosition(F,Q.drawingArea+U[F],H),_=p1(w.font),L=BD(Q.ctx,_,Q._pointLabels[F]);Y[F]=L;let P=k5(Q.getIndexAngle(F)+H),O=Math.round(iJ(P)),A=fT(O,T.x,L.w,0,180),C=fT(O,T.y,L.h,90,270);HD(q,J,P,A,C)}Q.setCenterPoint(J.l-q.l,q.r-J.r,J.t-q.t,q.b-J.b),Q._pointLabelItems=RD(Q,Y,U)}function HD(Q,J,q,Y,U){let K=Math.abs(Math.sin(q)),M=Math.abs(Math.cos(q)),H=0,F=0;if(Y.start<J.l)H=(J.l-Y.start)/K,Q.l=Math.min(Q.l,J.l-H);else if(Y.end>J.r)H=(Y.end-J.r)/K,Q.r=Math.max(Q.r,J.r+H);if(U.start<J.t)F=(J.t-U.start)/M,Q.t=Math.min(Q.t,J.t-F);else if(U.end>J.b)F=(U.end-J.b)/M,Q.b=Math.max(Q.b,J.b+F)}function FD(Q,J,q){let Y=Q.drawingArea,{extra:U,additionalAngle:K,padding:M,size:H}=q,F=Q.getPointPosition(J,Y+U+M,K),w=Math.round(iJ(k5(F.angle+b5))),T=_D(F.y,H.h,w),_=wD(w),L=TD(F.x,H.w,_);return{visible:!0,x:F.x,y:T,textAlign:_,left:L,top:T,right:L+H.w,bottom:T+H.h}}function WD(Q,J){if(!J)return!0;let{left:q,top:Y,right:U,bottom:K}=Q;return!(R8({x:q,y:Y},J)||R8({x:q,y:K},J)||R8({x:U,y:Y},J)||R8({x:U,y:K},J))}function RD(Q,J,q){let Y=[],U=Q._pointLabels.length,K=Q.options,{centerPointLabels:M,display:H}=K.pointLabels,F={extra:AN(K)/2,additionalAngle:M?b1/U:0},w;for(let T=0;T<U;T++){F.padding=q[T],F.size=J[T];let _=FD(Q,T,F);if(Y.push(_),H==="auto"){if(_.visible=WD(_,w),_.visible)w=_}}return Y}function wD(Q){if(Q===0||Q===180)return"center";else if(Q<180)return"left";return"right"}function TD(Q,J,q){if(q==="right")Q-=J;else if(q==="center")Q-=J/2;return Q}function _D(Q,J,q){if(q===90||q===270)Q-=J/2;else if(q>270||q<90)Q-=J;return Q}function zD(Q,J,q){let{left:Y,top:U,right:K,bottom:M}=q,{backdropColor:H}=J;if(!t0(H)){let F=K2(J.borderRadius),w=X5(J.backdropPadding);Q.fillStyle=H;let T=Y-w.left,_=U-w.top,L=K-Y+w.width,P=M-U+w.height;if(Object.values(F).some((O)=>O!==0))Q.beginPath(),d9(Q,{x:T,y:_,w:L,h:P,radius:F}),Q.fill();else Q.fillRect(T,_,L,P)}}function LD(Q,J){let{ctx:q,options:{pointLabels:Y}}=Q;for(let U=J-1;U>=0;U--){let K=Q._pointLabelItems[U];if(!K.visible)continue;let M=Y.setContext(Q.getPointLabelContext(U));zD(q,M,K);let H=p1(M.font),{x:F,y:w,textAlign:T}=K;N2(q,Q._pointLabels[U],F,w+H.lineHeight/2,H,{color:M.color,textAlign:T,textBaseline:"middle"})}}function K_(Q,J,q,Y){let{ctx:U}=Q;if(q)U.arc(Q.xCenter,Q.yCenter,J,0,f5);else{let K=Q.getPointPosition(0,J);U.moveTo(K.x,K.y);for(let M=1;M<Y;M++)K=Q.getPointPosition(M,J),U.lineTo(K.x,K.y)}}function VD(Q,J,q,Y,U){let K=Q.ctx,M=J.circular,{color:H,lineWidth:F}=J;if(!M&&!Y||!H||!F||q<0)return;K.save(),K.strokeStyle=H,K.lineWidth=F,K.setLineDash(U.dash||[]),K.lineDashOffset=U.dashOffset,K.beginPath(),K_(Q,q,M,Y),K.closePath(),K.stroke(),K.restore()}function ED(Q,J,q){return Q6(Q,{label:q,index:J,type:"pointLabel"})}class PD extends eZ{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:uZ.formatters.numeric},pointLabels:{backdropColor:void 0,backdropPadding:2,display:!0,font:{size:10},callback(Q){return Q},padding:5,centerPointLabels:!1}};static defaultRoutes={"angleLines.color":"borderColor","pointLabels.color":"color","ticks.color":"color"};static descriptors={angleLines:{_fallback:"grid"}};constructor(Q){super(Q);this.xCenter=void 0,this.yCenter=void 0,this.drawingArea=void 0,this._pointLabels=[],this._pointLabelItems=[]}setDimensions(){let Q=this._padding=X5(AN(this.options)/2),J=this.width=this.maxWidth-Q.width,q=this.height=this.maxHeight-Q.height;this.xCenter=Math.floor(this.left+J/2+Q.left),this.yCenter=Math.floor(this.top+q/2+Q.top),this.drawingArea=Math.floor(Math.min(J,q)/2)}determineDataLimits(){let{min:Q,max:J}=this.getMinMax(!1);this.min=O1(Q)&&!isNaN(Q)?Q:0,this.max=O1(J)&&!isNaN(J)?J:0,this.handleTickRangeOptions()}computeTickLimit(){return Math.ceil(this.drawingArea/AN(this.options))}generateTickLabels(Q){eZ.prototype.generateTickLabels.call(this,Q),this._pointLabels=this.getLabels().map((J,q)=>{let Y=W1(this.options.pointLabels.callback,[J,q],this);return Y||Y===0?Y:""}).filter((J,q)=>this.chart.getDataVisibility(q))}fit(){let Q=this.options;if(Q.display&&Q.pointLabels.display)MD(this);else this.setCenterPoint(0,0,0,0)}setCenterPoint(Q,J,q,Y){this.xCenter+=Math.floor((Q-J)/2),this.yCenter+=Math.floor((q-Y)/2),this.drawingArea-=Math.min(this.drawingArea/2,Math.max(Q,J,q,Y))}getIndexAngle(Q){let J=f5/(this._pointLabels.length||1),q=this.options.startAngle||0;return k5(Q*J+$6(q))}getDistanceFromCenterForValue(Q){if(t0(Q))return NaN;let J=this.drawingArea/(this.max-this.min);if(this.options.reverse)return(this.max-Q)*J;return(Q-this.min)*J}getValueForDistanceFromCenter(Q){if(t0(Q))return NaN;let J=Q/(this.drawingArea/(this.max-this.min));return this.options.reverse?this.max-J:this.min+J}getPointLabelContext(Q){let J=this._pointLabels||[];if(Q>=0&&Q<J.length){let q=J[Q];return ED(this.getContext(),Q,q)}}getPointPosition(Q,J,q=0){let Y=this.getIndexAngle(Q)-b5+q;return{x:Math.cos(Y)*J+this.xCenter,y:Math.sin(Y)*J+this.yCenter,angle:Y}}getPointPositionForValue(Q,J){return this.getPointPosition(Q,this.getDistanceFromCenterForValue(J))}getBasePosition(Q){return this.getPointPositionForValue(Q||0,this.getBaseValue())}getPointLabelPosition(Q){let{left:J,top:q,right:Y,bottom:U}=this._pointLabelItems[Q];return{left:J,top:q,right:Y,bottom:U}}drawBackground(){let{backgroundColor:Q,grid:{circular:J}}=this.options;if(Q){let q=this.ctx;q.save(),q.beginPath(),K_(this,this.getDistanceFromCenterForValue(this._endValue),J,this._pointLabels.length),q.closePath(),q.fillStyle=Q,q.fill(),q.restore()}}drawGrid(){let Q=this.ctx,J=this.options,{angleLines:q,grid:Y,border:U}=J,K=this._pointLabels.length,M,H,F;if(J.pointLabels.display)LD(this,K);if(Y.display)this.ticks.forEach((w,T)=>{if(T!==0||T===0&&this.min<0){H=this.getDistanceFromCenterForValue(w.value);let _=this.getContext(T),L=Y.setContext(_),P=U.setContext(_);VD(this,L,H,K,P)}});if(q.display){Q.save();for(M=K-1;M>=0;M--){let w=q.setContext(this.getPointLabelContext(M)),{color:T,lineWidth:_}=w;if(!_||!T)continue;Q.lineWidth=_,Q.strokeStyle=T,Q.setLineDash(w.borderDash),Q.lineDashOffset=w.borderDashOffset,H=this.getDistanceFromCenterForValue(J.reverse?this.min:this.max),F=this.getPointPosition(M,H),Q.beginPath(),Q.moveTo(this.xCenter,this.yCenter),Q.lineTo(F.x,F.y),Q.stroke()}Q.restore()}}drawBorder(){}drawLabels(){let Q=this.ctx,J=this.options,q=J.ticks;if(!q.display)return;let Y=this.getIndexAngle(0),U,K;Q.save(),Q.translate(this.xCenter,this.yCenter),Q.rotate(Y),Q.textAlign="center",Q.textBaseline="middle",this.ticks.forEach((M,H)=>{if(H===0&&this.min>=0&&!J.reverse)return;let F=q.setContext(this.getContext(H)),w=p1(F.font);if(U=this.getDistanceFromCenterForValue(this.ticks[H].value),F.showLabelBackdrop){Q.font=w.string,K=Q.measureText(M.label).width,Q.fillStyle=F.backdropColor;let T=X5(F.backdropPadding);Q.fillRect(-K/2-T.left,-U-w.size/2-T.top,K+T.width,w.size+T.height)}N2(Q,M.label,0,-U,w,{color:F.color,strokeColor:F.textStrokeColor,strokeWidth:F.textStrokeWidth})}),Q.restore()}drawTitle(){}}var wq={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}},x5=Object.keys(wq);function yT(Q,J){return Q-J}function gT(Q,J){if(t0(J))return null;let q=Q._adapter,{parser:Y,round:U,isoWeekday:K}=Q._parseOpts,M=J;if(typeof Y==="function")M=Y(M);if(!O1(M))M=typeof Y==="string"?q.parse(M,Y):q.parse(M);if(M===null)return null;if(U)M=U==="week"&&(m9(K)||K===!0)?q.startOf(M,"isoWeek",K):q.startOf(M,U);return+M}function hT(Q,J,q,Y){let U=x5.length;for(let K=x5.indexOf(Q);K<U-1;++K){let M=wq[x5[K]],H=M.steps?M.steps:Number.MAX_SAFE_INTEGER;if(M.common&&Math.ceil((q-J)/(H*M.size))<=Y)return x5[K]}return x5[U-1]}function CD(Q,J,q,Y,U){for(let K=x5.length-1;K>=x5.indexOf(q);K--){let M=x5[K];if(wq[M].common&&Q._adapter.diff(U,Y,M)>=J-1)return M}return x5[q?x5.indexOf(q):0]}function ID(Q){for(let J=x5.indexOf(Q)+1,q=x5.length;J<q;++J)if(wq[x5[J]].common)return x5[J]}function xT(Q,J,q){if(!q)Q[J]=!0;else if(q.length){let{lo:Y,hi:U}=tJ(q,J),K=q[Y]>=J?q[Y]:q[U];Q[K]=!0}}function OD(Q,J,q,Y){let U=Q._adapter,K=+U.startOf(J[0].value,Y),M=J[J.length-1].value,H,F;for(H=K;H<=M;H=+U.add(H,1,Y))if(F=q[H],F>=0)J[F].major=!0;return J}function uT(Q,J,q){let Y=[],U={},K=J.length,M,H;for(M=0;M<K;++M)H=J[M],U[H]=M,Y.push({value:H,major:!1});return K===0||!q?Y:OD(Q,Y,U,q)}class SN extends T${static id="time";static defaults={bounds:"data",adapters:{},time:{parser:!1,unit:!1,round:!1,isoWeekday:!1,minUnit:"millisecond",displayFormats:{}},ticks:{source:"auto",callback:!1,major:{enabled:!1}}};constructor(Q){super(Q);this._cache={data:[],labels:[],all:[]},this._unit="day",this._majorUnit=void 0,this._offsets={},this._normalized=!1,this._parseOpts=void 0}init(Q,J={}){let q=Q.time||(Q.time={}),Y=this._adapter=new UI._date(Q.adapters.date);Y.init(J),h9(q.displayFormats,Y.formats()),this._parseOpts={parser:q.parser,round:q.round,isoWeekday:q.isoWeekday},super.init(Q),this._normalized=J.normalized}parse(Q,J){if(Q===void 0)return null;return gT(this,Q)}beforeLayout(){super.beforeLayout(),this._cache={data:[],labels:[],all:[]}}determineDataLimits(){let Q=this.options,J=this._adapter,q=Q.time.unit||"day",{min:Y,max:U,minDefined:K,maxDefined:M}=this.getUserBounds();function H(F){if(!K&&!isNaN(F.min))Y=Math.min(Y,F.min);if(!M&&!isNaN(F.max))U=Math.max(U,F.max)}if(!K||!M){if(H(this._getLabelBounds()),Q.bounds!=="ticks"||Q.ticks.source!=="labels")H(this.getMinMax(!1))}Y=O1(Y)&&!isNaN(Y)?Y:+J.startOf(Date.now(),q),U=O1(U)&&!isNaN(U)?U:+J.endOf(Date.now(),q)+1,this.min=Math.min(Y,U-1),this.max=Math.max(Y+1,U)}_getLabelBounds(){let Q=this.getLabelTimestamps(),J=Number.POSITIVE_INFINITY,q=Number.NEGATIVE_INFINITY;if(Q.length)J=Q[0],q=Q[Q.length-1];return{min:J,max:q}}buildTicks(){let Q=this.options,J=Q.time,q=Q.ticks,Y=q.source==="labels"?this.getLabelTimestamps():this._generate();if(Q.bounds==="ticks"&&Y.length)this.min=this._userMin||Y[0],this.max=this._userMax||Y[Y.length-1];let U=this.min,K=this.max,M=Lw(Y,U,K);if(this._unit=J.unit||(q.autoSkip?hT(J.minUnit,this.min,this.max,this._getLabelCapacity(U)):CD(this,M.length,J.minUnit,this.min,this.max)),this._majorUnit=!q.major.enabled||this._unit==="year"?void 0:ID(this._unit),this.initOffsets(Y),Q.reverse)M.reverse();return uT(this,M,this._majorUnit)}afterAutoSkip(){if(this.options.offsetAfterAutoskip)this.initOffsets(this.ticks.map((Q)=>+Q.value))}initOffsets(Q=[]){let J=0,q=0,Y,U;if(this.options.offset&&Q.length){if(Y=this.getDecimalForValue(Q[0]),Q.length===1)J=1-Y;else J=(this.getDecimalForValue(Q[1])-Y)/2;if(U=this.getDecimalForValue(Q[Q.length-1]),Q.length===1)q=U;else q=(U-this.getDecimalForValue(Q[Q.length-2]))/2}let K=Q.length<3?0.5:0.25;J=y5(J,0,K),q=y5(q,0,K),this._offsets={start:J,end:q,factor:1/(J+1+q)}}_generate(){let Q=this._adapter,J=this.min,q=this.max,Y=this.options,U=Y.time,K=U.unit||hT(U.minUnit,J,q,this._getLabelCapacity(J)),M=h0(Y.ticks.stepSize,1),H=K==="week"?U.isoWeekday:!1,F=m9(H)||H===!0,w={},T=J,_,L;if(F)T=+Q.startOf(T,"isoWeek",H);if(T=+Q.startOf(T,F?"day":K),Q.diff(q,J,K)>1e5*M)throw Error(J+" and "+q+" are too far apart with stepSize of "+M+" "+K);let P=Y.ticks.source==="data"&&this.getDataTimestamps();for(_=T,L=0;_<q;_=+Q.add(_,M,K),L++)xT(w,_,P);if(_===q||Y.bounds==="ticks"||L===1)xT(w,_,P);return Object.keys(w).sort(yT).map((O)=>+O)}getLabelForValue(Q){let J=this._adapter,q=this.options.time;if(q.tooltipFormat)return J.format(Q,q.tooltipFormat);return J.format(Q,q.displayFormats.datetime)}format(Q,J){let Y=this.options.time.displayFormats,U=this._unit,K=J||Y[U];return this._adapter.format(Q,K)}_tickFormatFunction(Q,J,q,Y){let U=this.options,K=U.ticks.callback;if(K)return W1(K,[Q,J,q],this);let M=U.time.displayFormats,H=this._unit,F=this._majorUnit,w=H&&M[H],T=F&&M[F],_=q[J],L=F&&T&&_&&_.major;return this._adapter.format(Q,Y||(L?T:w))}generateTickLabels(Q){let J,q,Y;for(J=0,q=Q.length;J<q;++J)Y=Q[J],Y.label=this._tickFormatFunction(Y.value,J,Q)}getDecimalForValue(Q){return Q===null?NaN:(Q-this.min)/(this.max-this.min)}getPixelForValue(Q){let J=this._offsets,q=this.getDecimalForValue(Q);return this.getPixelForDecimal((J.start+q)*J.factor)}getValueForPixel(Q){let J=this._offsets,q=this.getDecimalForPixel(Q)/J.factor-J.end;return this.min+q*(this.max-this.min)}_getLabelSize(Q){let J=this.options.ticks,q=this.ctx.measureText(Q).width,Y=$6(this.isHorizontal()?J.maxRotation:J.minRotation),U=Math.cos(Y),K=Math.sin(Y),M=this._resolveTickFontOptions(0).size;return{w:q*U+M*K,h:q*K+M*U}}_getLabelCapacity(Q){let J=this.options.time,q=J.displayFormats,Y=q[J.unit]||q.millisecond,U=this._tickFormatFunction(Q,0,uT(this,[Q],this._majorUnit),Y),K=this._getLabelSize(U),M=Math.floor(this.isHorizontal()?this.width/K.w:this.height/K.h)-1;return M>0?M:1}getDataTimestamps(){let Q=this._cache.data||[],J,q;if(Q.length)return Q;let Y=this.getMatchingVisibleMetas();if(this._normalized&&Y.length)return this._cache.data=Y[0].controller.getAllParsedValues(this);for(J=0,q=Y.length;J<q;++J)Q=Q.concat(Y[J].controller.getAllParsedValues(this));return this._cache.data=this.normalize(Q)}getLabelTimestamps(){let Q=this._cache.labels||[],J,q;if(Q.length)return Q;let Y=this.getLabels();for(J=0,q=Y.length;J<q;++J)Q.push(gT(this,Y[J]));return this._cache.labels=this._normalized?Q:this.normalize(Q)}normalize(Q){return nU(Q.sort(yT))}}function Bq(Q,J,q){let Y=0,U=Q.length-1,K,M,H,F;if(q){if(J>=Q[Y].pos&&J<=Q[U].pos)({lo:Y,hi:U}=q2(Q,"pos",J));({pos:K,time:H}=Q[Y]),{pos:M,time:F}=Q[U]}else{if(J>=Q[Y].time&&J<=Q[U].time)({lo:Y,hi:U}=q2(Q,"time",J));({time:K,pos:H}=Q[Y]),{time:M,pos:F}=Q[U]}let w=M-K;return w?H+(F-H)*(J-K)/w:H}class DD extends SN{static id="timeseries";static defaults=SN.defaults;constructor(Q){super(Q);this._table=[],this._minPos=void 0,this._tableRange=void 0}initOffsets(){let Q=this._getTimestampsForTable(),J=this._table=this.buildLookupTable(Q);this._minPos=Bq(J,this.min),this._tableRange=Bq(J,this.max)-this._minPos,super.initOffsets(Q)}buildLookupTable(Q){let{min:J,max:q}=this,Y=[],U=[],K,M,H,F,w;for(K=0,M=Q.length;K<M;++K)if(F=Q[K],F>=J&&F<=q)Y.push(F);if(Y.length<2)return[{time:J,pos:0},{time:q,pos:1}];for(K=0,M=Y.length;K<M;++K)if(w=Y[K+1],H=Y[K-1],F=Y[K],Math.round((w+H)/2)!==F)U.push({time:F,pos:K/(M-1)});return U}_generate(){let Q=this.min,J=this.max,q=super.getDataTimestamps();if(!q.includes(Q)||!q.length)q.splice(0,0,Q);if(!q.includes(J)||q.length===1)q.push(J);return q.sort((Y,U)=>Y-U)}_getTimestampsForTable(){let Q=this._cache.all||[];if(Q.length)return Q;let J=this.getDataTimestamps(),q=this.getLabelTimestamps();if(J.length&&q.length)Q=this.normalize(J.concat(q));else Q=J.length?J:q;return Q=this._cache.all=Q,Q}getDecimalForValue(Q){return(Bq(this._table,Q)-this._minPos)/this._tableRange}getValueForPixel(Q){let J=this._offsets,q=this.getDecimalForPixel(Q)/J.factor-J.end;return Bq(this._table,q*this._tableRange+this._minPos,!0)}}var qQ=w0(e1(),1);var xN=w0(B_(),1),q4=w0(e1(),1);var H_="label";function M_(Q,J){if(typeof Q==="function")Q(J);else if(Q)Q.current=J}function AD(Q,J){let q=Q.options;if(q&&J)Object.assign(q,J)}function F_(Q,J){Q.labels=J}function W_(Q,J,q=H_){let Y=[];Q.datasets=J.map((U)=>{let K=Q.datasets.find((M)=>M[q]===U[q]);if(!K||!U.data||Y.includes(K))return{...U};return Y.push(K),Object.assign(K,U),K})}function SD(Q,J=H_){let q={labels:[],datasets:[]};return F_(q,Q.labels),W_(q,Q.datasets,J),q}function vD(Q,J){let{height:q=150,width:Y=300,redraw:U=!1,datasetIdKey:K,type:M,data:H,options:F,plugins:w=[],fallbackContent:T,updateMode:_,...L}=Q,P=q4.useRef(null),O=q4.useRef(null),A=()=>{if(!P.current)return;O.current=new P5(P.current,{type:M,data:SD(H,K),options:F&&{...F},plugins:w}),M_(J,O.current)},C=()=>{if(M_(J,null),O.current)O.current.destroy(),O.current=null};return q4.useEffect(()=>{if(!U&&O.current&&F)AD(O.current,F)},[U,F]),q4.useEffect(()=>{if(!U&&O.current)F_(O.current.config.data,H.labels)},[U,H.labels]),q4.useEffect(()=>{if(!U&&O.current&&H.datasets)W_(O.current.config.data,H.datasets,K)},[U,H.datasets]),q4.useEffect(()=>{if(!O.current)return;if(U)C(),setTimeout(A);else O.current.update(_)},[U,F,H.labels,H.datasets,_]),q4.useEffect(()=>{if(!O.current)return;C(),setTimeout(A)},[M]),q4.useEffect(()=>{return A(),()=>C()},[]),xN.jsx("canvas",{ref:P,role:"img",height:q,width:Y,...L,children:T})}var kD=q4.forwardRef(vD);function R_(Q,J){return P5.register(J),q4.forwardRef((q,Y)=>xN.jsx(kD,{...q,ref:Y,type:Q}))}var E4=R_("line",bN),Tq=R_("bar",kN);var _q=w0(e1(),1),w_="(prefers-color-scheme: dark)";function bD(){if(typeof window>"u")return"light";return window.matchMedia(w_).matches?"dark":"light"}function E8(){let[Q,J]=_q.useState(()=>bD());return _q.useEffect(()=>{let q=window.matchMedia(w_),Y=()=>{J(q.matches?"dark":"light")};return Y(),q.addEventListener("change",Y),()=>q.removeEventListener("change",Y)},[]),Q}var fD=Math.pow(10,8)*24*60*60*1000,Nv=-fD,zq=604800000,T_=86400000;var GQ=43200,uN=1440;var mN=Symbol.for("constructDateFrom");function F5(Q,J){if(typeof Q==="function")return Q(J);if(Q&&typeof Q==="object"&&mN in Q)return Q[mN](J);if(Q instanceof Date)return new Q.constructor(J);return new Date(J)}function e0(Q,J){return F5(J||Q,Q)}var yD={};function P8(){return yD}function X6(Q,J){let q=P8(),Y=J?.weekStartsOn??J?.locale?.options?.weekStartsOn??q.weekStartsOn??q.locale?.options?.weekStartsOn??0,U=e0(Q,J?.in),K=U.getDay(),M=(K<Y?7:0)+K-Y;return U.setDate(U.getDate()-M),U.setHours(0,0,0,0),U}function z$(Q,J){return X6(Q,{...J,weekStartsOn:1})}function Lq(Q,J){let q=e0(Q,J?.in),Y=q.getFullYear(),U=F5(q,0);U.setFullYear(Y+1,0,4),U.setHours(0,0,0,0);let K=z$(U),M=F5(q,0);M.setFullYear(Y,0,4),M.setHours(0,0,0,0);let H=z$(M);if(q.getTime()>=K.getTime())return Y+1;else if(q.getTime()>=H.getTime())return Y;else return Y-1}function c9(Q){let J=e0(Q),q=new Date(Date.UTC(J.getFullYear(),J.getMonth(),J.getDate(),J.getHours(),J.getMinutes(),J.getSeconds(),J.getMilliseconds()));return q.setUTCFullYear(J.getFullYear()),+Q-+q}function H2(Q,...J){let q=F5.bind(null,Q||J.find((Y)=>typeof Y==="object"));return J.map(q)}function dN(Q,J){let q=e0(Q,J?.in);return q.setHours(0,0,0,0),q}function __(Q,J,q){let[Y,U]=H2(q?.in,Q,J),K=dN(Y),M=dN(U),H=+K-c9(K),F=+M-c9(M);return Math.round((H-F)/T_)}function z_(Q,J){let q=Lq(Q,J),Y=F5(J?.in||Q,0);return Y.setFullYear(q,0,4),Y.setHours(0,0,0,0),z$(Y)}function l9(Q,J){let q=+e0(Q)-+e0(J);if(q<0)return-1;else if(q>0)return 1;return q}function L_(Q){return F5(Q,Date.now())}function V_(Q){return Q instanceof Date||typeof Q==="object"&&Object.prototype.toString.call(Q)==="[object Date]"}function E_(Q){return!(!V_(Q)&&typeof Q!=="number"||isNaN(+e0(Q)))}function P_(Q,J,q){let[Y,U]=H2(q?.in,Q,J),K=Y.getFullYear()-U.getFullYear(),M=Y.getMonth()-U.getMonth();return K*12+M}function C_(Q){return(J)=>{let Y=(Q?Math[Q]:Math.trunc)(J);return Y===0?0:Y}}function I_(Q,J){return+e0(Q)-+e0(J)}function O_(Q,J){let q=e0(Q,J?.in);return q.setHours(23,59,59,999),q}function D_(Q,J){let q=e0(Q,J?.in),Y=q.getMonth();return q.setFullYear(q.getFullYear(),Y+1,0),q.setHours(23,59,59,999),q}function j_(Q,J){let q=e0(Q,J?.in);return+O_(q,J)===+D_(q,J)}function A_(Q,J,q){let[Y,U,K]=H2(q?.in,Q,Q,J),M=l9(U,K),H=Math.abs(P_(U,K));if(H<1)return 0;if(U.getMonth()===1&&U.getDate()>27)U.setDate(30);U.setMonth(U.getMonth()-M*H);let F=l9(U,K)===-M;if(j_(Y)&&H===1&&l9(Y,K)===1)F=!1;let w=M*(H-+F);return w===0?0:w}function S_(Q,J,q){let Y=I_(Q,J)/1000;return C_(q?.roundingMethod)(Y)}function v_(Q,J){let q=e0(Q,J?.in);return q.setFullYear(q.getFullYear(),0,1),q.setHours(0,0,0,0),q}var gD={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},k_=(Q,J,q)=>{let Y,U=gD[Q];if(typeof U==="string")Y=U;else if(J===1)Y=U.one;else Y=U.other.replace("{{count}}",J.toString());if(q?.addSuffix)if(q.comparison&&q.comparison>0)return"in "+Y;else return Y+" ago";return Y};function Vq(Q){return(J={})=>{let q=J.width?String(J.width):Q.defaultWidth;return Q.formats[q]||Q.formats[Q.defaultWidth]}}var hD={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},xD={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},uD={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},b_={date:Vq({formats:hD,defaultWidth:"full"}),time:Vq({formats:xD,defaultWidth:"full"}),dateTime:Vq({formats:uD,defaultWidth:"full"})};var mD={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},f_=(Q,J,q,Y)=>mD[Q];function r9(Q){return(J,q)=>{let Y=q?.context?String(q.context):"standalone",U;if(Y==="formatting"&&Q.formattingValues){let M=Q.defaultFormattingWidth||Q.defaultWidth,H=q?.width?String(q.width):M;U=Q.formattingValues[H]||Q.formattingValues[M]}else{let M=Q.defaultWidth,H=q?.width?String(q.width):Q.defaultWidth;U=Q.values[H]||Q.values[M]}let K=Q.argumentCallback?Q.argumentCallback(J):J;return U[K]}}var dD={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},pD={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},cD={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},lD={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},rD={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},sD={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},nD=(Q,J)=>{let q=Number(Q),Y=q%100;if(Y>20||Y<10)switch(Y%10){case 1:return q+"st";case 2:return q+"nd";case 3:return q+"rd"}return q+"th"},y_={ordinalNumber:nD,era:r9({values:dD,defaultWidth:"wide"}),quarter:r9({values:pD,defaultWidth:"wide",argumentCallback:(Q)=>Q-1}),month:r9({values:cD,defaultWidth:"wide"}),day:r9({values:lD,defaultWidth:"wide"}),dayPeriod:r9({values:rD,defaultWidth:"wide",formattingValues:sD,defaultFormattingWidth:"wide"})};function s9(Q){return(J,q={})=>{let Y=q.width,U=Y&&Q.matchPatterns[Y]||Q.matchPatterns[Q.defaultMatchWidth],K=J.match(U);if(!K)return null;let M=K[0],H=Y&&Q.parsePatterns[Y]||Q.parsePatterns[Q.defaultParseWidth],F=Array.isArray(H)?aD(H,(_)=>_.test(M)):oD(H,(_)=>_.test(M)),w;w=Q.valueCallback?Q.valueCallback(F):F,w=q.valueCallback?q.valueCallback(w):w;let T=J.slice(M.length);return{value:w,rest:T}}}function oD(Q,J){for(let q in Q)if(Object.prototype.hasOwnProperty.call(Q,q)&&J(Q[q]))return q;return}function aD(Q,J){for(let q=0;q<Q.length;q++)if(J(Q[q]))return q;return}function g_(Q){return(J,q={})=>{let Y=J.match(Q.matchPattern);if(!Y)return null;let U=Y[0],K=J.match(Q.parsePattern);if(!K)return null;let M=Q.valueCallback?Q.valueCallback(K[0]):K[0];M=q.valueCallback?q.valueCallback(M):M;let H=J.slice(U.length);return{value:M,rest:H}}}var iD=/^(\d+)(th|st|nd|rd)?/i,tD=/\d+/i,eD={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},$j={any:[/^b/i,/^(a|c)/i]},Zj={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},Qj={any:[/1/i,/2/i,/3/i,/4/i]},Gj={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},Jj={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},qj={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},Xj={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},Yj={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},Uj={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},h_={ordinalNumber:g_({matchPattern:iD,parsePattern:tD,valueCallback:(Q)=>parseInt(Q,10)}),era:s9({matchPatterns:eD,defaultMatchWidth:"wide",parsePatterns:$j,defaultParseWidth:"any"}),quarter:s9({matchPatterns:Zj,defaultMatchWidth:"wide",parsePatterns:Qj,defaultParseWidth:"any",valueCallback:(Q)=>Q+1}),month:s9({matchPatterns:Gj,defaultMatchWidth:"wide",parsePatterns:Jj,defaultParseWidth:"any"}),day:s9({matchPatterns:qj,defaultMatchWidth:"wide",parsePatterns:Xj,defaultParseWidth:"any"}),dayPeriod:s9({matchPatterns:Yj,defaultMatchWidth:"any",parsePatterns:Uj,defaultParseWidth:"any"})};var JQ={code:"en-US",formatDistance:k_,formatLong:b_,formatRelative:f_,localize:y_,match:h_,options:{weekStartsOn:0,firstWeekContainsDate:1}};function x_(Q,J){let q=e0(Q,J?.in);return __(q,v_(q))+1}function u_(Q,J){let q=e0(Q,J?.in),Y=+z$(q)-+z_(q);return Math.round(Y/zq)+1}function Eq(Q,J){let q=e0(Q,J?.in),Y=q.getFullYear(),U=P8(),K=J?.firstWeekContainsDate??J?.locale?.options?.firstWeekContainsDate??U.firstWeekContainsDate??U.locale?.options?.firstWeekContainsDate??1,M=F5(J?.in||Q,0);M.setFullYear(Y+1,0,K),M.setHours(0,0,0,0);let H=X6(M,J),F=F5(J?.in||Q,0);F.setFullYear(Y,0,K),F.setHours(0,0,0,0);let w=X6(F,J);if(+q>=+H)return Y+1;else if(+q>=+w)return Y;else return Y-1}function m_(Q,J){let q=P8(),Y=J?.firstWeekContainsDate??J?.locale?.options?.firstWeekContainsDate??q.firstWeekContainsDate??q.locale?.options?.firstWeekContainsDate??1,U=Eq(Q,J),K=F5(J?.in||Q,0);return K.setFullYear(U,0,Y),K.setHours(0,0,0,0),X6(K,J)}function d_(Q,J){let q=e0(Q,J?.in),Y=+X6(q,J)-+m_(q,J);return Math.round(Y/zq)+1}function Q1(Q,J){let q=Q<0?"-":"",Y=Math.abs(Q).toString().padStart(J,"0");return q+Y}var Y6={y(Q,J){let q=Q.getFullYear(),Y=q>0?q:1-q;return Q1(J==="yy"?Y%100:Y,J.length)},M(Q,J){let q=Q.getMonth();return J==="M"?String(q+1):Q1(q+1,2)},d(Q,J){return Q1(Q.getDate(),J.length)},a(Q,J){let q=Q.getHours()/12>=1?"pm":"am";switch(J){case"a":case"aa":return q.toUpperCase();case"aaa":return q;case"aaaaa":return q[0];case"aaaa":default:return q==="am"?"a.m.":"p.m."}},h(Q,J){return Q1(Q.getHours()%12||12,J.length)},H(Q,J){return Q1(Q.getHours(),J.length)},m(Q,J){return Q1(Q.getMinutes(),J.length)},s(Q,J){return Q1(Q.getSeconds(),J.length)},S(Q,J){let q=J.length,Y=Q.getMilliseconds(),U=Math.trunc(Y*Math.pow(10,q-3));return Q1(U,J.length)}};var n9={am:"am",pm:"pm",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},pN={G:function(Q,J,q){let Y=Q.getFullYear()>0?1:0;switch(J){case"G":case"GG":case"GGG":return q.era(Y,{width:"abbreviated"});case"GGGGG":return q.era(Y,{width:"narrow"});case"GGGG":default:return q.era(Y,{width:"wide"})}},y:function(Q,J,q){if(J==="yo"){let Y=Q.getFullYear(),U=Y>0?Y:1-Y;return q.ordinalNumber(U,{unit:"year"})}return Y6.y(Q,J)},Y:function(Q,J,q,Y){let U=Eq(Q,Y),K=U>0?U:1-U;if(J==="YY"){let M=K%100;return Q1(M,2)}if(J==="Yo")return q.ordinalNumber(K,{unit:"year"});return Q1(K,J.length)},R:function(Q,J){let q=Lq(Q);return Q1(q,J.length)},u:function(Q,J){let q=Q.getFullYear();return Q1(q,J.length)},Q:function(Q,J,q){let Y=Math.ceil((Q.getMonth()+1)/3);switch(J){case"Q":return String(Y);case"QQ":return Q1(Y,2);case"Qo":return q.ordinalNumber(Y,{unit:"quarter"});case"QQQ":return q.quarter(Y,{width:"abbreviated",context:"formatting"});case"QQQQQ":return q.quarter(Y,{width:"narrow",context:"formatting"});case"QQQQ":default:return q.quarter(Y,{width:"wide",context:"formatting"})}},q:function(Q,J,q){let Y=Math.ceil((Q.getMonth()+1)/3);switch(J){case"q":return String(Y);case"qq":return Q1(Y,2);case"qo":return q.ordinalNumber(Y,{unit:"quarter"});case"qqq":return q.quarter(Y,{width:"abbreviated",context:"standalone"});case"qqqqq":return q.quarter(Y,{width:"narrow",context:"standalone"});case"qqqq":default:return q.quarter(Y,{width:"wide",context:"standalone"})}},M:function(Q,J,q){let Y=Q.getMonth();switch(J){case"M":case"MM":return Y6.M(Q,J);case"Mo":return q.ordinalNumber(Y+1,{unit:"month"});case"MMM":return q.month(Y,{width:"abbreviated",context:"formatting"});case"MMMMM":return q.month(Y,{width:"narrow",context:"formatting"});case"MMMM":default:return q.month(Y,{width:"wide",context:"formatting"})}},L:function(Q,J,q){let Y=Q.getMonth();switch(J){case"L":return String(Y+1);case"LL":return Q1(Y+1,2);case"Lo":return q.ordinalNumber(Y+1,{unit:"month"});case"LLL":return q.month(Y,{width:"abbreviated",context:"standalone"});case"LLLLL":return q.month(Y,{width:"narrow",context:"standalone"});case"LLLL":default:return q.month(Y,{width:"wide",context:"standalone"})}},w:function(Q,J,q,Y){let U=d_(Q,Y);if(J==="wo")return q.ordinalNumber(U,{unit:"week"});return Q1(U,J.length)},I:function(Q,J,q){let Y=u_(Q);if(J==="Io")return q.ordinalNumber(Y,{unit:"week"});return Q1(Y,J.length)},d:function(Q,J,q){if(J==="do")return q.ordinalNumber(Q.getDate(),{unit:"date"});return Y6.d(Q,J)},D:function(Q,J,q){let Y=x_(Q);if(J==="Do")return q.ordinalNumber(Y,{unit:"dayOfYear"});return Q1(Y,J.length)},E:function(Q,J,q){let Y=Q.getDay();switch(J){case"E":case"EE":case"EEE":return q.day(Y,{width:"abbreviated",context:"formatting"});case"EEEEE":return q.day(Y,{width:"narrow",context:"formatting"});case"EEEEEE":return q.day(Y,{width:"short",context:"formatting"});case"EEEE":default:return q.day(Y,{width:"wide",context:"formatting"})}},e:function(Q,J,q,Y){let U=Q.getDay(),K=(U-Y.weekStartsOn+8)%7||7;switch(J){case"e":return String(K);case"ee":return Q1(K,2);case"eo":return q.ordinalNumber(K,{unit:"day"});case"eee":return q.day(U,{width:"abbreviated",context:"formatting"});case"eeeee":return q.day(U,{width:"narrow",context:"formatting"});case"eeeeee":return q.day(U,{width:"short",context:"formatting"});case"eeee":default:return q.day(U,{width:"wide",context:"formatting"})}},c:function(Q,J,q,Y){let U=Q.getDay(),K=(U-Y.weekStartsOn+8)%7||7;switch(J){case"c":return String(K);case"cc":return Q1(K,J.length);case"co":return q.ordinalNumber(K,{unit:"day"});case"ccc":return q.day(U,{width:"abbreviated",context:"standalone"});case"ccccc":return q.day(U,{width:"narrow",context:"standalone"});case"cccccc":return q.day(U,{width:"short",context:"standalone"});case"cccc":default:return q.day(U,{width:"wide",context:"standalone"})}},i:function(Q,J,q){let Y=Q.getDay(),U=Y===0?7:Y;switch(J){case"i":return String(U);case"ii":return Q1(U,J.length);case"io":return q.ordinalNumber(U,{unit:"day"});case"iii":return q.day(Y,{width:"abbreviated",context:"formatting"});case"iiiii":return q.day(Y,{width:"narrow",context:"formatting"});case"iiiiii":return q.day(Y,{width:"short",context:"formatting"});case"iiii":default:return q.day(Y,{width:"wide",context:"formatting"})}},a:function(Q,J,q){let U=Q.getHours()/12>=1?"pm":"am";switch(J){case"a":case"aa":return q.dayPeriod(U,{width:"abbreviated",context:"formatting"});case"aaa":return q.dayPeriod(U,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return q.dayPeriod(U,{width:"narrow",context:"formatting"});case"aaaa":default:return q.dayPeriod(U,{width:"wide",context:"formatting"})}},b:function(Q,J,q){let Y=Q.getHours(),U;if(Y===12)U=n9.noon;else if(Y===0)U=n9.midnight;else U=Y/12>=1?"pm":"am";switch(J){case"b":case"bb":return q.dayPeriod(U,{width:"abbreviated",context:"formatting"});case"bbb":return q.dayPeriod(U,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return q.dayPeriod(U,{width:"narrow",context:"formatting"});case"bbbb":default:return q.dayPeriod(U,{width:"wide",context:"formatting"})}},B:function(Q,J,q){let Y=Q.getHours(),U;if(Y>=17)U=n9.evening;else if(Y>=12)U=n9.afternoon;else if(Y>=4)U=n9.morning;else U=n9.night;switch(J){case"B":case"BB":case"BBB":return q.dayPeriod(U,{width:"abbreviated",context:"formatting"});case"BBBBB":return q.dayPeriod(U,{width:"narrow",context:"formatting"});case"BBBB":default:return q.dayPeriod(U,{width:"wide",context:"formatting"})}},h:function(Q,J,q){if(J==="ho"){let Y=Q.getHours()%12;if(Y===0)Y=12;return q.ordinalNumber(Y,{unit:"hour"})}return Y6.h(Q,J)},H:function(Q,J,q){if(J==="Ho")return q.ordinalNumber(Q.getHours(),{unit:"hour"});return Y6.H(Q,J)},K:function(Q,J,q){let Y=Q.getHours()%12;if(J==="Ko")return q.ordinalNumber(Y,{unit:"hour"});return Q1(Y,J.length)},k:function(Q,J,q){let Y=Q.getHours();if(Y===0)Y=24;if(J==="ko")return q.ordinalNumber(Y,{unit:"hour"});return Q1(Y,J.length)},m:function(Q,J,q){if(J==="mo")return q.ordinalNumber(Q.getMinutes(),{unit:"minute"});return Y6.m(Q,J)},s:function(Q,J,q){if(J==="so")return q.ordinalNumber(Q.getSeconds(),{unit:"second"});return Y6.s(Q,J)},S:function(Q,J){return Y6.S(Q,J)},X:function(Q,J,q){let Y=Q.getTimezoneOffset();if(Y===0)return"Z";switch(J){case"X":return c_(Y);case"XXXX":case"XX":return L$(Y);case"XXXXX":case"XXX":default:return L$(Y,":")}},x:function(Q,J,q){let Y=Q.getTimezoneOffset();switch(J){case"x":return c_(Y);case"xxxx":case"xx":return L$(Y);case"xxxxx":case"xxx":default:return L$(Y,":")}},O:function(Q,J,q){let Y=Q.getTimezoneOffset();switch(J){case"O":case"OO":case"OOO":return"GMT"+p_(Y,":");case"OOOO":default:return"GMT"+L$(Y,":")}},z:function(Q,J,q){let Y=Q.getTimezoneOffset();switch(J){case"z":case"zz":case"zzz":return"GMT"+p_(Y,":");case"zzzz":default:return"GMT"+L$(Y,":")}},t:function(Q,J,q){let Y=Math.trunc(+Q/1000);return Q1(Y,J.length)},T:function(Q,J,q){return Q1(+Q,J.length)}};function p_(Q,J=""){let q=Q>0?"-":"+",Y=Math.abs(Q),U=Math.trunc(Y/60),K=Y%60;if(K===0)return q+String(U);return q+String(U)+J+Q1(K,2)}function c_(Q,J){if(Q%60===0)return(Q>0?"-":"+")+Q1(Math.abs(Q)/60,2);return L$(Q,J)}function L$(Q,J=""){let q=Q>0?"-":"+",Y=Math.abs(Q),U=Q1(Math.trunc(Y/60),2),K=Q1(Y%60,2);return q+U+J+K}var l_=(Q,J)=>{switch(Q){case"P":return J.date({width:"short"});case"PP":return J.date({width:"medium"});case"PPP":return J.date({width:"long"});case"PPPP":default:return J.date({width:"full"})}},r_=(Q,J)=>{switch(Q){case"p":return J.time({width:"short"});case"pp":return J.time({width:"medium"});case"ppp":return J.time({width:"long"});case"pppp":default:return J.time({width:"full"})}},Nj=(Q,J)=>{let q=Q.match(/(P+)(p+)?/)||[],Y=q[1],U=q[2];if(!U)return l_(Q,J);let K;switch(Y){case"P":K=J.dateTime({width:"short"});break;case"PP":K=J.dateTime({width:"medium"});break;case"PPP":K=J.dateTime({width:"long"});break;case"PPPP":default:K=J.dateTime({width:"full"});break}return K.replace("{{date}}",l_(Y,J)).replace("{{time}}",r_(U,J))},s_={p:r_,P:Nj};var Kj=/^D+$/,Bj=/^Y+$/,Mj=["D","DD","YY","YYYY"];function n_(Q){return Kj.test(Q)}function o_(Q){return Bj.test(Q)}function a_(Q,J,q){let Y=Hj(Q,J,q);if(console.warn(Y),Mj.includes(Q))throw RangeError(Y)}function Hj(Q,J,q){let Y=Q[0]==="Y"?"years":"days of the month";return`Use \`${Q.toLowerCase()}\` instead of \`${Q}\` (in \`${J}\`) for formatting ${Y} to the input \`${q}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`}var Fj=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,Wj=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,Rj=/^'([^]*?)'?$/,wj=/''/g,Tj=/[a-zA-Z]/;function u4(Q,J,q){let Y=P8(),U=q?.locale??Y.locale??JQ,K=q?.firstWeekContainsDate??q?.locale?.options?.firstWeekContainsDate??Y.firstWeekContainsDate??Y.locale?.options?.firstWeekContainsDate??1,M=q?.weekStartsOn??q?.locale?.options?.weekStartsOn??Y.weekStartsOn??Y.locale?.options?.weekStartsOn??0,H=e0(Q,q?.in);if(!E_(H))throw RangeError("Invalid time value");let F=J.match(Wj).map((T)=>{let _=T[0];if(_==="p"||_==="P"){let L=s_[_];return L(T,U.formatLong)}return T}).join("").match(Fj).map((T)=>{if(T==="''")return{isToken:!1,value:"'"};let _=T[0];if(_==="'")return{isToken:!1,value:_j(T)};if(pN[_])return{isToken:!0,value:T};if(_.match(Tj))throw RangeError("Format string contains an unescaped latin alphabet character `"+_+"`");return{isToken:!1,value:T}});if(U.localize.preprocessor)F=U.localize.preprocessor(H,F);let w={firstWeekContainsDate:K,weekStartsOn:M,locale:U};return F.map((T)=>{if(!T.isToken)return T.value;let _=T.value;if(!q?.useAdditionalWeekYearTokens&&o_(_)||!q?.useAdditionalDayOfYearTokens&&n_(_))a_(_,J,String(Q));let L=pN[_[0]];return L(H,_,U.localize,w)}).join("")}function _j(Q){let J=Q.match(Rj);if(!J)return Q;return J[1].replace(wj,"'")}function i_(Q,J,q){let Y=P8(),U=q?.locale??Y.locale??JQ,K=2520,M=l9(Q,J);if(isNaN(M))throw RangeError("Invalid time value");let H=Object.assign({},q,{addSuffix:q?.addSuffix,comparison:M}),[F,w]=H2(q?.in,...M>0?[J,Q]:[Q,J]),T=S_(w,F),_=(c9(w)-c9(F))/1000,L=Math.round((T-_)/60),P;if(L<2)if(q?.includeSeconds)if(T<5)return U.formatDistance("lessThanXSeconds",5,H);else if(T<10)return U.formatDistance("lessThanXSeconds",10,H);else if(T<20)return U.formatDistance("lessThanXSeconds",20,H);else if(T<40)return U.formatDistance("halfAMinute",0,H);else if(T<60)return U.formatDistance("lessThanXMinutes",1,H);else return U.formatDistance("xMinutes",1,H);else if(L===0)return U.formatDistance("lessThanXMinutes",1,H);else return U.formatDistance("xMinutes",L,H);else if(L<45)return U.formatDistance("xMinutes",L,H);else if(L<90)return U.formatDistance("aboutXHours",1,H);else if(L<uN){let O=Math.round(L/60);return U.formatDistance("aboutXHours",O,H)}else if(L<2520)return U.formatDistance("xDays",1,H);else if(L<GQ){let O=Math.round(L/uN);return U.formatDistance("xDays",O,H)}else if(L<GQ*2)return P=Math.round(L/GQ),U.formatDistance("aboutXMonths",P,H);if(P=A_(w,F),P<12){let O=Math.round(L/GQ);return U.formatDistance("xMonths",O,H)}else{let O=P%12,A=Math.trunc(P/12);if(O<3)return U.formatDistance("aboutXYears",A,H);else if(O<9)return U.formatDistance("overXYears",A,H);else return U.formatDistance("almostXYears",A+1,H)}}function t_(Q,J){return i_(Q,L_(Q),J)}var m5=w0(G1(),1),Y5=["#a78bfa","#22d3ee","#ec4899","#4ade80","#fbbf24","#f87171","#60a5fa"],Pq={dark:{legendLabel:"#94a3b8",tooltipBackground:"#16161e",tooltipTitle:"#f8fafc",tooltipBody:"#94a3b8",tooltipBorder:"rgba(255, 255, 255, 0.1)",grid:"rgba(255, 255, 255, 0.06)",tick:"#64748b"},light:{legendLabel:"#475569",tooltipBackground:"#ffffff",tooltipTitle:"#0f172a",tooltipBody:"#334155",tooltipBorder:"rgba(15, 23, 42, 0.18)",grid:"rgba(15, 23, 42, 0.08)",tick:"#64748b"}};function Cq(Q){let{chartTheme:J,showLegend:q,defaultLabel:Y,formatValue:U,footer:K}=Q;return{legend:{display:q,position:"top",align:"start",labels:{color:J.legendLabel,usePointStyle:!0,padding:16,font:{size:12},boxWidth:8}},tooltip:{backgroundColor:J.tooltipBackground,titleColor:J.tooltipTitle,bodyColor:J.tooltipBody,borderColor:J.tooltipBorder,borderWidth:1,padding:12,cornerRadius:8,callbacks:{label:(M)=>{let H=M.dataset.label??Y,F=M.parsed.y??0;return`${H}: ${U(F)}`},...K?{footer:K}:{}}}}}function Iq(Q){let{chartTheme:J,formatY:q}=Q,Y={grid:{color:J.grid,drawBorder:!1},ticks:{color:J.tick,font:{size:11}}},U={...Y,ticks:{...Y.ticks,callback:(K)=>q(Number(K))},min:0};return{sharedScaleBase:Y,yScale:U}}function Oq(Q){return{borderColor:Q,backgroundColor:`${Q}20`,fill:!0,tension:0,pointRadius:3,pointHoverRadius:4,borderWidth:2}}function Dq(Q){return{backgroundColor:Q,borderColor:Q,borderWidth:0,borderRadius:3}}function o9(Q,J){return Q.datasets.map((q,Y)=>({label:q.label,data:q.data,...J(Y)}))}function jq(Q,J,q){if(Q.length===0)return{labels:[],datasets:[]};let{initBucket:Y,accumulate:U,bucketToValue:K}=q,M=new Map;for(let F of Q){let w=M.get(F.timestamp)??Y();U(w,F),M.set(F.timestamp,w)}let H=[...M.entries()].sort((F,w)=>F[0]-w[0]);return{labels:H.map(([F])=>u4(new Date(F),"MMM d")),datasets:[{label:J,data:H.map(([,F])=>K(F))}]}}function Aq(Q,J){if(Q.length===0)return{labels:[],datasets:[]};let{topN:q=5,rankWeight:Y,initBucket:U,accumulate:K,bucketToValue:M}=J,H=new Map;for(let g of Q){let m=`${g.model}::${g.provider}`,o=H.get(m);if(o)o.weight+=Y(g);else H.set(m,{model:g.model,provider:g.provider,weight:Y(g)})}let w=[...H.entries()].sort((g,m)=>m[1].weight-g[1].weight).slice(0,q),T=new Set(w.map(([g])=>g)),_=new Map;for(let[,{model:g}]of w)_.set(g,(_.get(g)??0)+1);let L=new Map;for(let[g,{model:m,provider:o}]of w)L.set(g,(_.get(m)??0)>1?`${m} (${o})`:m);let P=[...new Set(Q.map((g)=>g.timestamp))].sort((g,m)=>g-m),O=w.map(([g])=>L.get(g)??g);if(Q.some((g)=>!T.has(`${g.model}::${g.provider}`)))O.push("Other");let C=new Map;for(let g of P)C.set(g,{});for(let g of Q){let m=`${g.model}::${g.provider}`,o=T.has(m)?L.get(m)??g.model:"Other",a=C.get(g.timestamp);if(!a)continue;let s=a[o]??U();K(s,g),a[o]=s}return{labels:P.map((g)=>u4(new Date(g),"MMM d")),datasets:O.map((g)=>({label:g,data:P.map((m)=>{let o=C.get(m)?.[g];return o?M(o):0})}))}}function Lj({byModel:Q,onChange:J}){return m5.jsxDEV("div",{className:"flex bg-[var(--bg-surface)] rounded-[var(--radius-sm)] p-0.5 border border-[var(--border-subtle)]",children:[m5.jsxDEV("button",{type:"button",onClick:()=>J(!1),className:`tab-btn text-xs ${!Q?"active":""}`,children:"All Models"},void 0,!1,void 0,this),m5.jsxDEV("button",{type:"button",onClick:()=>J(!0),className:`tab-btn text-xs ${Q?"active":""}`,children:"By Model"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function Sq({title:Q,subtitle:J,empty:q,emptyMessage:Y,controls:U,byModel:K,onByModelChange:M,children:H}){return m5.jsxDEV("div",{className:"surface overflow-hidden",children:[m5.jsxDEV("div",{className:"px-5 py-4 border-b border-[var(--border-subtle)] flex items-center justify-between gap-4 flex-wrap",children:[m5.jsxDEV("div",{children:[m5.jsxDEV("h3",{className:"text-sm font-semibold text-[var(--text-primary)]",children:Q},void 0,!1,void 0,this),m5.jsxDEV("p",{className:"text-xs text-[var(--text-muted)] mt-1",children:J},void 0,!1,void 0,this)]},void 0,!0,void 0,this),m5.jsxDEV("div",{className:"flex items-center gap-2 flex-wrap",children:[U,m5.jsxDEV(Lj,{byModel:K,onChange:M},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),m5.jsxDEV("div",{className:"p-5 min-h-[320px]",children:q?m5.jsxDEV("div",{className:"h-full flex items-center justify-center text-[var(--text-muted)] text-sm",children:Y},void 0,!1,void 0,this):m5.jsxDEV("div",{className:"h-[280px]",children:H},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}var a9=w0(G1(),1);P5.register(h4,x4,QQ,u5,g4,L8,V8,z8,p9);var cN=[{value:"yelling",label:"Yelling"},{value:"profanity",label:"Profanity"},{value:"anguish",label:"Anguish (!!!, nooo, dude, ..)"},{value:"negation",label:"Negation (no/nope/wrong)"},{value:"repetition",label:"Repetition (i meant, still doesnt)"},{value:"blame",label:"Blame (you didnt, stop X-ing)"},{value:"frustration",label:"Frustration (neg + rep + blame)"},{value:"total",label:"All signals combined"}];function e_(Q){if(!Number.isFinite(Q))return"-";if(Q===0)return"0%";if(Math.abs(Q)<1)return`${Q.toFixed(1)}%`;return`${Q.toFixed(0)}%`}function $z(Q,J){if(J==="frustration")return Q.negation+Q.repetition+Q.blame;if(J==="total")return Q.yelling+Q.profanity+Q.anguish+Q.negation+Q.repetition+Q.blame;return Q[J]}function Zz(Q,J){if(J<=0)return 0;return Q/J*100}function Vj(Q,J){let q=cN.find((Y)=>Y.value===J)?.label??"Hits";return jq(Q,q,{initBucket:()=>({hits:0,messages:0}),accumulate:(Y,U)=>{Y.hits+=$z(U,J),Y.messages+=U.messages},bucketToValue:(Y)=>Zz(Y.hits,Y.messages)})}function Ej(Q,J){return Aq(Q,{rankWeight:(q)=>q.messages,initBucket:()=>({hits:0,messages:0}),accumulate:(q,Y)=>{q.hits+=$z(Y,J),q.messages+=Y.messages},bucketToValue:(q)=>Zz(q.hits,q.messages)})}function Qz({behaviorSeries:Q}){let[J,q]=qQ.useState(!1),[Y,U]=qQ.useState("total"),K=E8(),M=Pq[K],H=qQ.useMemo(()=>J?Ej(Q,Y):Vj(Q,Y),[Q,J,Y]),F=Cq({chartTheme:M,showLegend:J,defaultLabel:"Hits",formatValue:e_}),{sharedScaleBase:w,yScale:T}=Iq({chartTheme:M,formatY:e_}),_=cN.find((O)=>O.value===Y)?.label??"",L=a9.jsxDEV("div",{className:"flex bg-[var(--bg-surface)] rounded-[var(--radius-sm)] p-0.5 border border-[var(--border-subtle)]",children:cN.map((O)=>a9.jsxDEV("button",{type:"button",onClick:()=>U(O.value),className:`tab-btn text-xs ${Y===O.value?"active":""}`,children:O.label},O.value,!1,void 0,this))},void 0,!1,void 0,this),P;if(J){let O={labels:H.labels,datasets:o9(H,(C)=>Oq(Y5[C%Y5.length]))};P=a9.jsxDEV(E4,{data:O,options:{responsive:!0,maintainAspectRatio:!1,interaction:{mode:"index",intersect:!1},plugins:F,scales:{x:w,y:T}}},void 0,!1,void 0,this)}else{let O={labels:H.labels,datasets:o9(H,(C)=>Dq(Y5[C%Y5.length]))},A={responsive:!0,maintainAspectRatio:!1,interaction:{mode:"index",intersect:!1},plugins:F,scales:{x:{...w,stacked:!0},y:{...T,stacked:!0}},layout:{padding:{top:8}}};P=a9.jsxDEV(Tq,{data:O,options:A},void 0,!1,void 0,this)}return a9.jsxDEV(Sq,{title:"User Tantrums",subtitle:`${_} as % of user messages per day`,empty:H.labels.length===0,emptyMessage:"No behavioral data yet. Sync to scan your sessions.",controls:L,byModel:J,onByModelChange:q,children:P},void 0,!1,void 0,this)}var rq=w0(e1(),1);var bq=w0(e1(),1);var vq=(...Q)=>Q.filter((J,q,Y)=>{return Boolean(J)&&J.trim()!==""&&Y.indexOf(J)===q}).join(" ").trim();var Gz=(Q)=>Q.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase();var Jz=(Q)=>Q.replace(/^([A-Z])|[\s-_]+(\w)/g,(J,q,Y)=>Y?Y.toUpperCase():q.toLowerCase());var lN=(Q)=>{let J=Jz(Q);return J.charAt(0).toUpperCase()+J.slice(1)};var XQ=w0(e1(),1);var kq={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 qz=(Q)=>{for(let J in Q)if(J.startsWith("aria-")||J==="role"||J==="title")return!0;return!1};var i9=w0(e1(),1),Pj=i9.createContext({});var Xz=()=>i9.useContext(Pj);var Yz=XQ.forwardRef(({color:Q,size:J,strokeWidth:q,absoluteStrokeWidth:Y,className:U="",children:K,iconNode:M,...H},F)=>{let{size:w=24,strokeWidth:T=2,absoluteStrokeWidth:_=!1,color:L="currentColor",className:P=""}=Xz()??{},O=Y??_?Number(q??T)*24/Number(J??w):q??T;return XQ.createElement("svg",{ref:F,...kq,width:J??w??kq.width,height:J??w??kq.height,stroke:Q??L,strokeWidth:O,className:vq("lucide",P,U),...!K&&!qz(H)&&{"aria-hidden":"true"},...H},[...M.map(([A,C])=>XQ.createElement(A,C)),...Array.isArray(K)?K:[K]])});var x0=(Q,J)=>{let q=bq.forwardRef(({className:Y,...U},K)=>bq.createElement(Yz,{ref:K,iconNode:J,className:vq(`lucide-${Gz(lN(Q))}`,`lucide-${Q}`,Y),...U}));return q.displayName=lN(Q),q};var Cj=[["path",{d:"M3 3v16a2 2 0 0 0 2 2h16",key:"c24i48"}],["path",{d:"M18 17V9",key:"2bz60n"}],["path",{d:"M13 17V5",key:"1frdt8"}],["path",{d:"M8 17v-3",key:"17ska0"}]],F2=x0("chart-column",Cj);var Ij=[["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"}]],W2=x0("circle-alert",Ij);var Oj=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]],R2=x0("circle-check",Oj);var Dj=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m15 9-6 6",key:"1uzhvr"}],["path",{d:"m9 9 6 6",key:"z0biqf"}]],w2=x0("circle-x",Dj);var jj=[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",key:"1oefj6"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"M10 12a1 1 0 0 0-1 1v1a1 1 0 0 1-1 1 1 1 0 0 1 1 1v1a1 1 0 0 0 1 1",key:"1oajmo"}],["path",{d:"M14 18a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1 1 1 0 0 1-1-1v-1a1 1 0 0 0-1-1",key:"mpwhp6"}]],T2=x0("file-braces",jj);var Aj=[["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"}]],E$=x0("activity",Aj);var Sj=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],YQ=x0("chevron-down",Sj);var vj=[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]],UQ=x0("chevron-up",vj);var kj=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 6v6l4 2",key:"mmk7yg"}]],NQ=x0("clock",kj);var bj=[["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"}]],KQ=x0("coins",bj);var fj=[["ellipse",{cx:"12",cy:"5",rx:"9",ry:"3",key:"msslwz"}],["path",{d:"M3 5V19A9 3 0 0 0 21 19V5",key:"1wlel7"}],["path",{d:"M3 12A9 3 0 0 0 21 12",key:"mv7ke4"}]],BQ=x0("database",fj);var yj=[["path",{d:"M12 15V3",key:"m9g1x1"}],["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["path",{d:"m7 10 5 5 5-5",key:"brsn70"}]],MQ=x0("download",yj);var gj=[["path",{d:"m12 14 4-4",key:"9kzdfg"}],["path",{d:"M3.34 19a10 10 0 1 1 17.32 0",key:"19p75a"}]],HQ=x0("gauge",gj);var hj=[["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"}]],FQ=x0("hash",hj);var xj=[["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"}]],WQ=x0("refresh-cw",xj);var uj=[["rect",{width:"20",height:"8",x:"2",y:"2",rx:"2",ry:"2",key:"ngkwjq"}],["rect",{width:"20",height:"8",x:"2",y:"14",rx:"2",ry:"2",key:"iecqi9"}],["line",{x1:"6",x2:"6.01",y1:"6",y2:"6",key:"16zg32"}],["line",{x1:"6",x2:"6.01",y1:"18",y2:"18",key:"nzw8ys"}]],RQ=x0("server",uj);var mj=[["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"}]],P$=x0("star",mj);var dj=[["path",{d:"M12 3v12",key:"1x0j5s"}],["path",{d:"m17 8-5-5-5 5",key:"7q97r8"}],["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}]],wQ=x0("upload",dj);var pj=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],TQ=x0("x",pj);var cj=[["path",{d:"M4 14a1 1 0 0 1-.78-1.63l9.9-10.2a.5.5 0 0 1 .86.46l-1.92 6.02A1 1 0 0 0 13 10h7a1 1 0 0 1 .78 1.63l-9.9 10.2a.5.5 0 0 1-.86-.46l1.92-6.02A1 1 0 0 0 11 14z",key:"1xq2db"}]],C$=x0("zap",cj);var P1=w0(G1(),1),fq={dark:{legendLabel:"#cbd5e1",tooltipBackground:"#16161e",tooltipTitle:"#f8fafc",tooltipBody:"#94a3b8",tooltipBorder:"rgba(255, 255, 255, 0.1)",grid:"rgba(255, 255, 255, 0.06)",tick:"#94a3b8"},light:{legendLabel:"#334155",tooltipBackground:"#ffffff",tooltipTitle:"#0f172a",tooltipBody:"#334155",tooltipBorder:"rgba(15, 23, 42, 0.18)",grid:"rgba(15, 23, 42, 0.08)",tick:"#475569"}};function U6(Q){return{borderColor:Q,backgroundColor:"transparent",tension:0.4,pointRadius:0,borderWidth:2}}function yq({timestamps:Q,values:J,color:q}){let Y={labels:Q.map((K)=>u4(new Date(K),"MMM d")),datasets:[{data:J,...U6(q)}]};return P1.jsxDEV(E4,{data:Y,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 gq(Q){return{legend:{display:!0,position:"top",labels:{color:Q.legendLabel,usePointStyle:!0,padding:16,font:{size:12}}},tooltip:{backgroundColor:Q.tooltipBackground,titleColor:Q.tooltipTitle,bodyColor:Q.tooltipBody,borderColor:Q.tooltipBorder,borderWidth:1,cornerRadius:8}}}function Uz(Q){return{x:{grid:{color:Q.grid},ticks:{color:Q.tick,font:{size:11}}},y:{grid:{color:Q.grid},ticks:{color:Q.tick,font:{size:11}},min:0}}}function Nz(Q){return{x:{grid:{color:Q.grid},ticks:{color:Q.tick,font:{size:11}}},y:{type:"linear",display:!0,position:"left",grid:{color:Q.grid},ticks:{color:Q.tick,font:{size:11}}},y1:{type:"linear",display:!0,position:"right",grid:{drawOnChartArea:!1},ticks:{color:Q.tick,font:{size:11}}}}}function hq({title:Q,subtitle:J,children:q}){return P1.jsxDEV("div",{className:"surface overflow-hidden",children:[P1.jsxDEV("div",{className:"px-5 py-4 border-b border-[var(--border-subtle)]",children:[P1.jsxDEV("h3",{className:"text-sm font-semibold text-[var(--text-primary)]",children:Q},void 0,!1,void 0,this),J?P1.jsxDEV("p",{className:"text-xs text-[var(--text-muted)] mt-1",children:J},void 0,!1,void 0,this):null]},void 0,!0,void 0,this),P1.jsxDEV("div",{className:"overflow-x-auto",children:q},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function lj(Q){if(Q==="right")return"text-right";if(Q==="center")return"text-center";return""}function xq({columns:Q,gridTemplate:J}){return P1.jsxDEV("div",{className:"grid gap-3 px-5 py-3 text-[var(--text-muted)] text-xs uppercase tracking-wider font-semibold",style:{gridTemplateColumns:J},children:[Q.map((q)=>P1.jsxDEV("div",{className:lj(q.align),children:q.label},q.label,!1,void 0,this)),P1.jsxDEV("div",{},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function uq({children:Q}){return P1.jsxDEV("div",{className:"max-h-[calc(100vh-300px)] overflow-y-auto",children:Q},void 0,!1,void 0,this)}function mq({model:Q,provider:J}){return P1.jsxDEV("div",{children:[P1.jsxDEV("div",{className:"font-medium text-[var(--text-primary)]",children:Q},void 0,!1,void 0,this),P1.jsxDEV("div",{className:"text-xs text-[var(--text-muted)]",children:J},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function dq({gridTemplate:Q,cells:J,trendCell:q,isExpanded:Y,onToggle:U,expandedContent:K}){return P1.jsxDEV("div",{className:"border-t border-[var(--border-subtle)]",children:[P1.jsxDEV("button",{type:"button",onClick:U,className:"w-full bg-transparent border-none text-left px-5 py-3 cursor-pointer hover:bg-[var(--bg-hover)] transition-colors",children:P1.jsxDEV("div",{className:"grid gap-3 items-center",style:{gridTemplateColumns:Q},children:[J,P1.jsxDEV("div",{className:"h-10",children:q},void 0,!1,void 0,this),P1.jsxDEV("div",{className:"flex justify-center text-[var(--text-muted)]",children:Y?P1.jsxDEV(UQ,{size:16},void 0,!1,void 0,this):P1.jsxDEV(YQ,{size:16},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this),Y?P1.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 pq(){return P1.jsxDEV("div",{className:"text-[var(--text-muted)] text-center text-sm",children:"-"},void 0,!1,void 0,this)}function cq({message:Q="No data available"}){return P1.jsxDEV("div",{className:"h-full flex items-center justify-center text-[var(--text-muted)] text-sm",children:Q},void 0,!1,void 0,this)}var r0=w0(G1(),1);P5.register(h4,x4,g4,u5,L8,V8,z8);var lq={yelling:"#fbbf24",profanity:"#f87171",anguish:"#a78bfa",frustration:"#22d3ee"},Kz="2fr 0.9fr 0.8fr 0.8fr 0.8fr 0.9fr 0.8fr 140px 40px";function Mz(Q){return Q.toLocaleString()}function Bz(Q){if(Q.totalMessages===0)return 0;return(Q.totalYelling+Q.totalProfanity+Q.totalAnguish+Q.totalNegation+Q.totalRepetition+Q.totalBlame)/Q.totalMessages}function t9(Q,J){if(J===0)return"-";let q=Q/J*100;if(q===0)return"0%";if(q<1)return`${q.toFixed(1)}%`;return`${q.toFixed(0)}%`}function Hz({models:Q,behaviorSeries:J}){let[q,Y]=rq.useState(null),U=E8(),K=fq[U],M=rq.useMemo(()=>sj(J),[J]),H=[...Q].sort((F,w)=>{if(w.totalMessages!==F.totalMessages)return w.totalMessages-F.totalMessages;return Bz(w)-Bz(F)});return r0.jsxDEV(hq,{title:"Behavior by Model",subtitle:"How often each model elicited a tantrum — rates are per user message",children:[r0.jsxDEV(xq,{gridTemplate:Kz,columns:[{label:"Model"},{label:"Messages",align:"right"},{label:"CAPS %",align:"right"},{label:"Profanity %",align:"right"},{label:"Anguish %",align:"right"},{label:"Frustration %",align:"right"},{label:"Hits %",align:"right"},{label:"Trend",align:"center"}]},void 0,!1,void 0,this),r0.jsxDEV(uq,{children:[H.map((F,w)=>{let T=`${F.model}::${F.provider}`,_=M.get(T)?.data??[],L=Y5[w%Y5.length],P=q===T,O=F.totalNegation+F.totalRepetition+F.totalBlame,A=F.totalYelling+F.totalProfanity+F.totalAnguish+O;return r0.jsxDEV(dq,{gridTemplate:Kz,isExpanded:P,onToggle:()=>Y(P?null:T),cells:[r0.jsxDEV(mq,{model:F.model,provider:F.provider},"name",!1,void 0,this),r0.jsxDEV("div",{className:"text-right text-[var(--text-secondary)] font-mono text-sm",children:Mz(F.totalMessages)},"messages",!1,void 0,this),r0.jsxDEV("div",{className:"text-right text-[var(--text-secondary)] font-mono text-sm",children:t9(F.totalYelling,F.totalMessages)},"caps",!1,void 0,this),r0.jsxDEV("div",{className:"text-right text-[var(--text-secondary)] font-mono text-sm",children:t9(F.totalProfanity,F.totalMessages)},"profanity",!1,void 0,this),r0.jsxDEV("div",{className:"text-right text-[var(--text-secondary)] font-mono text-sm",children:t9(F.totalAnguish,F.totalMessages)},"anguish",!1,void 0,this),r0.jsxDEV("div",{className:"text-right text-[var(--text-secondary)] font-mono text-sm",children:t9(O,F.totalMessages)},"frustration",!1,void 0,this),r0.jsxDEV("div",{className:"text-right text-[var(--text-secondary)] font-mono text-sm",children:t9(A,F.totalMessages)},"hits",!1,void 0,this)],trendCell:_.length===0?r0.jsxDEV(pq,{},void 0,!1,void 0,this):r0.jsxDEV(yq,{timestamps:_.map((C)=>C.timestamp),values:_.map((C)=>C.total),color:L},void 0,!1,void 0,this),expandedContent:r0.jsxDEV("div",{className:"grid gap-4",style:{gridTemplateColumns:"220px 1fr"},children:[r0.jsxDEV("div",{className:"space-y-4 text-sm",children:[r0.jsxDEV(I$,{label:"Yelling (CAPS)",total:F.totalYelling,messages:F.totalMessages,valueClass:"text-[var(--accent-amber,#fbbf24)]"},void 0,!1,void 0,this),r0.jsxDEV(I$,{label:"Profanity",total:F.totalProfanity,messages:F.totalMessages,valueClass:"text-[var(--accent-red,#f87171)]"},void 0,!1,void 0,this),r0.jsxDEV(I$,{label:"Anguish (!!!, nooo, dude, ..)",total:F.totalAnguish,messages:F.totalMessages,valueClass:"text-[var(--accent-violet,#a78bfa)]"},void 0,!1,void 0,this),r0.jsxDEV(I$,{label:"Negation (no/nope/wrong)",total:F.totalNegation,messages:F.totalMessages,valueClass:"text-[var(--accent-cyan,#22d3ee)]"},void 0,!1,void 0,this),r0.jsxDEV(I$,{label:"Repetition (i meant, still doesnt)",total:F.totalRepetition,messages:F.totalMessages,valueClass:"text-[var(--accent-cyan,#22d3ee)]"},void 0,!1,void 0,this),r0.jsxDEV(I$,{label:"Blame (you didnt, stop X-ing)",total:F.totalBlame,messages:F.totalMessages,valueClass:"text-[var(--accent-cyan,#22d3ee)]"},void 0,!1,void 0,this),r0.jsxDEV(I$,{label:"Avg chars / msg",total:F.totalChars,messages:F.totalMessages,valueClass:"text-[var(--text-secondary)]",mode:"average"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),r0.jsxDEV("div",{className:"h-[200px]",children:_.length===0?r0.jsxDEV(cq,{},void 0,!1,void 0,this):r0.jsxDEV(rj,{data:_,chartTheme:K},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},T,!1,void 0,this)}),H.length===0?r0.jsxDEV("div",{className:"border-t border-[var(--border-subtle)] px-5 py-8 text-center text-[var(--text-muted)] text-sm",children:"No user behavior recorded for this range yet."},void 0,!1,void 0,this):null]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)}function I$({label:Q,total:J,messages:q,valueClass:Y,mode:U="rate"}){let K=U==="rate"?"% of msgs":"Per msg",M=q>0?U==="rate"?t9(J,q):(J/q).toFixed(0):"-";return r0.jsxDEV("div",{children:[r0.jsxDEV("div",{className:"text-[var(--text-primary)] font-medium mb-2",children:Q},void 0,!1,void 0,this),r0.jsxDEV("div",{className:"space-y-1 text-[var(--text-secondary)]",children:[r0.jsxDEV("div",{className:"flex items-center justify-between",children:[r0.jsxDEV("span",{children:"Total"},void 0,!1,void 0,this),r0.jsxDEV("span",{className:`font-mono ${Y}`,children:Mz(J)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),r0.jsxDEV("div",{className:"flex items-center justify-between",children:[r0.jsxDEV("span",{children:K},void 0,!1,void 0,this),r0.jsxDEV("span",{className:"font-mono",children:M},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 rj({data:Q,chartTheme:J}){let q={labels:Q.map((U)=>u4(new Date(U.timestamp),"MMM d")),datasets:[{label:"CAPS",data:Q.map((U)=>U.yelling),...U6(lq.yelling)},{label:"Profanity",data:Q.map((U)=>U.profanity),...U6(lq.profanity)},{label:"Anguish",data:Q.map((U)=>U.anguish),...U6(lq.anguish)},{label:"Frustration",data:Q.map((U)=>U.frustration),...U6(lq.frustration)}]},Y={responsive:!0,maintainAspectRatio:!1,plugins:gq(J),scales:Uz(J)};return r0.jsxDEV(E4,{data:q,options:Y},void 0,!1,void 0,this)}function sj(Q){if(Q.length===0)return new Map;let J=[...new Set(Q.map((U)=>U.timestamp))].sort((U,K)=>U-K),q=new Map;for(let U of Q){let K=`${U.model}::${U.provider}`,M=q.get(K);if(!M)M=new Map,q.set(K,M);let H=M.get(U.timestamp)??{timestamp:U.timestamp,yelling:0,profanity:0,anguish:0,frustration:0,total:0};H.yelling+=U.yelling,H.profanity+=U.profanity,H.anguish+=U.anguish,H.frustration+=U.negation+U.repetition+U.blame,H.total=H.yelling+H.profanity+H.anguish+H.frustration,M.set(U.timestamp,H)}let Y=new Map;for(let[U,K]of q){let M=J.map((H)=>K.get(H)??{timestamp:H,yelling:0,profanity:0,anguish:0,frustration:0,total:0});Y.set(U,{data:M})}return Y}var Fz=w0(e1(),1),$7=w0(G1(),1);function e9(Q){return Q.toLocaleString()}function sq(Q,J){if(J<=0)return;return`${(Q/J).toFixed(2)} / msg`}function Wz({overall:Q,behaviorSeries:J}){let q=Fz.useMemo(()=>{let M=new Map;for(let F of J){let w=`${F.model}::${F.provider}`,T=M.get(w),_=F.yelling+F.profanity+F.anguish+F.negation+F.repetition+F.blame;if(T)T.score+=_;else M.set(w,{model:F.model,provider:F.provider,score:_})}let H=null;for(let F of M.values())if(!H||F.score>H.score)H=F;return H},[J]),Y=Q.totalNegation+Q.totalRepetition+Q.totalBlame,U=Q.totalMessages,K=[{label:"Messages",value:e9(Q.totalMessages),sub:U>0?"in selected range":void 0},{label:"Yelling",value:e9(Q.totalYelling),sub:sq(Q.totalYelling,U)},{label:"Profanity hits",value:e9(Q.totalProfanity),sub:sq(Q.totalProfanity,U)},{label:"Anguish",value:e9(Q.totalAnguish),sub:sq(Q.totalAnguish,U)},{label:"Frustration",value:e9(Y),sub:sq(Y,U)},{label:"Most yelled-at",value:q?.model??"—",sub:q?`${e9(q.score)} hits`:void 0}];return $7.jsxDEV("div",{className:"grid grid-cols-2 sm:grid-cols-6 gap-4",children:K.map((M)=>$7.jsxDEV("div",{className:"surface px-4 py-3",children:[$7.jsxDEV("p",{className:"text-xs text-[var(--text-muted)] mb-1",children:M.label},void 0,!1,void 0,this),$7.jsxDEV("p",{className:"text-lg font-semibold text-[var(--text-primary)] truncate",title:M.value,children:M.value},void 0,!1,void 0,this),M.sub&&$7.jsxDEV("p",{className:"text-xs text-[var(--text-muted)] mt-0.5",children:M.sub},void 0,!1,void 0,this)]},M.label,!0,void 0,this))},void 0,!1,void 0,this)}var Rz=w0(e1(),1);var N6=w0(G1(),1);P5.register(h4,x4,g4,u5,L8,V8,z8,p9);var nq=["#a78bfa","#22d3ee","#ec4899","#4ade80","#fbbf24","#f87171","#60a5fa"],nj={dark:{legendLabel:"#94a3b8",tooltipBackground:"#16161e",tooltipTitle:"#f8fafc",tooltipBody:"#94a3b8",tooltipBorder:"rgba(255, 255, 255, 0.1)",grid:"rgba(255, 255, 255, 0.06)",tick:"#64748b"},light:{legendLabel:"#475569",tooltipBackground:"#ffffff",tooltipTitle:"#0f172a",tooltipBody:"#334155",tooltipBorder:"rgba(15, 23, 42, 0.18)",grid:"rgba(15, 23, 42, 0.08)",tick:"#64748b"}};function wz({modelSeries:Q}){let J=Rz.useMemo(()=>oj(Q),[Q]),q=E8(),Y=nj[q],U={labels:J.data.map((M)=>u4(new Date(M.timestamp),"MMM d")),datasets:J.series.map((M,H)=>({label:M,data:J.data.map((F)=>F[M]??0),borderColor:nq[H%nq.length],backgroundColor:`${nq[H%nq.length]}20`,fill:!0,tension:0.4,pointRadius:0,pointHoverRadius:4,borderWidth:2}))},K={responsive:!0,maintainAspectRatio:!1,interaction:{mode:"index",intersect:!1},plugins:{legend:{position:"top",align:"start",labels:{color:Y.legendLabel,usePointStyle:!0,padding:16,font:{size:12},boxWidth:8}},tooltip:{backgroundColor:Y.tooltipBackground,titleColor:Y.tooltipTitle,bodyColor:Y.tooltipBody,borderColor:Y.tooltipBorder,borderWidth:1,padding:12,cornerRadius:8,callbacks:{label:(M)=>{let H=M.dataset.label??"",F=M.parsed.y;return`${H}: ${(F??0).toFixed(1)}%`}}}},scales:{x:{grid:{color:Y.grid,drawBorder:!1},ticks:{color:Y.tick,font:{size:11}}},y:{grid:{color:Y.grid,drawBorder:!1},ticks:{color:Y.tick,font:{size:11},callback:(M)=>`${M}%`},min:0,max:100}}};return N6.jsxDEV("div",{className:"surface overflow-hidden",children:[N6.jsxDEV("div",{className:"px-5 py-4 border-b border-[var(--border-subtle)]",children:[N6.jsxDEV("h3",{className:"text-sm font-semibold text-[var(--text-primary)]",children:"Model Preference"},void 0,!1,void 0,this),N6.jsxDEV("p",{className:"text-xs text-[var(--text-muted)] mt-1",children:"Share of requests over the last 14 days"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),N6.jsxDEV("div",{className:"p-5 min-h-[320px]",children:J.data.length===0?N6.jsxDEV("div",{className:"h-full flex items-center justify-center text-[var(--text-muted)] text-sm",children:"No data available"},void 0,!1,void 0,this):N6.jsxDEV("div",{className:"h-[280px]",children:N6.jsxDEV(E4,{data:U,options:K},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function oj(Q,J=5){if(Q.length===0)return{data:[],series:[]};let q=new Map;for(let _ of Q){let L=`${_.model}::${_.provider}`,P=q.get(L);if(P)P.total+=_.requests;else q.set(L,{model:_.model,provider:_.provider,total:_.requests})}let U=[...q.entries()].map(([_,L])=>({key:_,...L})).sort((_,L)=>L.total-_.total).slice(0,J),K=new Set(U.map((_)=>_.key)),M=new Map;for(let _ of U)M.set(_.model,(M.get(_.model)??0)+1);let H=new Map;for(let _ of U){let L=(M.get(_.model)??0)>1;H.set(_.key,L?`${_.model} (${_.provider})`:_.model)}let F=new Map;for(let _ of Q){let L=`${_.model}::${_.provider}`,P=F.get(_.timestamp)??{timestamp:_.timestamp,total:0};P.total+=_.requests;let O=K.has(L)?H.get(L)??_.model:"Other";P[O]=(P[O]??0)+_.requests,F.set(_.timestamp,P)}let w=U.map((_)=>H.get(_.key)??_.model);if([...F.values()].some((_)=>(_.Other??0)>0))w.push("Other");return{data:[...F.values()].sort((_,L)=>(_.timestamp??0)-(L.timestamp??0)).map((_)=>{let L=_.total??0;for(let P of w)_[P]=L>0?(_[P]??0)/L*100:0;return _}),series:w}}var aq=w0(e1(),1);var oq=w0(G1(),1);P5.register(h4,x4,QQ,u5,g4,L8,V8,z8,p9);var aj={dark:"rgba(248, 250, 252, 0.7)",light:"rgba(15, 23, 42, 0.6)"};function ij(Q){return{id:"costBarLabels",afterDatasetsDraw(J){let{ctx:q}=J;if(!J.data.datasets[0])return;let U=J.getDatasetMeta(0);q.save(),q.font="11px system-ui, sans-serif",q.fillStyle=Q,q.textAlign="center",q.textBaseline="bottom";for(let K of U.data){let M=K.$context.parsed.y;if(!M)continue;let H=`$${Math.round(M)}`,{x:F,y:w}=K.getProps(["x","y"],!0);q.fillText(H,F,w-3)}q.restore()}}}function tj(Q){return jq(Q,"Cost",{initBucket:()=>({total:0}),accumulate:(J,q)=>{J.total+=q.cost},bucketToValue:(J)=>J.total})}function ej(Q){return Aq(Q,{rankWeight:(J)=>J.cost,initBucket:()=>({total:0}),accumulate:(J,q)=>{J.total+=q.cost},bucketToValue:(J)=>J.total})}function Tz({costSeries:Q}){let[J,q]=aq.useState(!1),Y=E8(),U=Pq[Y],K=aq.useMemo(()=>J?ej(Q):tj(Q),[Q,J]),M=Cq({chartTheme:U,showLegend:J,defaultLabel:"Cost",formatValue:(T)=>`$${Math.round(T)}`,footer:(T)=>{if(!J||T.length<2)return;let _=T.reduce((L,P)=>L+(P.parsed.y??0),0);return`Total: $${Math.round(_)}`}}),{sharedScaleBase:H,yScale:F}=Iq({chartTheme:U,formatY:(T)=>`$${Math.round(T)}`}),w;if(J){let T={labels:K.labels,datasets:o9(K,(L)=>Oq(Y5[L%Y5.length]))};w=oq.jsxDEV(E4,{data:T,options:{responsive:!0,maintainAspectRatio:!1,interaction:{mode:"index",intersect:!1},plugins:M,scales:{x:H,y:F}}},void 0,!1,void 0,this)}else{let T={labels:K.labels,datasets:o9(K,(P)=>Dq(Y5[P%Y5.length]))},_=ij(aj[Y]),L={responsive:!0,maintainAspectRatio:!1,interaction:{mode:"index",intersect:!1},plugins:{...M,costBarLabels:{}},scales:{x:{...H,stacked:!0},y:{...F,stacked:!0}},layout:{padding:{top:24}}};w=oq.jsxDEV(Tq,{data:T,options:L,plugins:[_]},void 0,!1,void 0,this)}return oq.jsxDEV(Sq,{title:"Daily Cost",subtitle:"API spending over time",empty:K.labels.length===0,emptyMessage:"No cost data available",byModel:J,onByModelChange:q,children:w},void 0,!1,void 0,this)}var Z7=w0(G1(),1);function rN(Q){return`$${Math.round(Q)}`}function _z({costSeries:Q}){let J=Q.reduce((F,w)=>F+w.cost,0),q=new Set(Q.map((F)=>F.timestamp)).size,Y=q>0?J/q:0,U=new Map;for(let F of Q)U.set(F.model,(U.get(F.model)??0)+F.cost);let K="",M=0;for(let[F,w]of U)if(w>M)K=F,M=w;let H=[{label:"Total",value:rN(J)},{label:"Avg / day",value:rN(Y)},{label:"Top model",value:K||"—",sub:K?rN(M):void 0}];return Z7.jsxDEV("div",{className:"grid grid-cols-1 sm:grid-cols-3 gap-4",children:H.map((F)=>Z7.jsxDEV("div",{className:"surface px-4 py-3",children:[Z7.jsxDEV("p",{className:"text-xs text-[var(--text-muted)] mb-1",children:F.label},void 0,!1,void 0,this),Z7.jsxDEV("p",{className:"text-lg font-semibold text-[var(--text-primary)] truncate",title:F.value,children:F.value},void 0,!1,void 0,this),F.sub&&Z7.jsxDEV("p",{className:"text-xs text-[var(--text-muted)] mt-0.5",children:F.sub},void 0,!1,void 0,this)]},F.label,!0,void 0,this))},void 0,!1,void 0,this)}var C5=w0(G1(),1),$A=["overview","requests","errors","models","costs","behavior"],ZA=[{label:"1h",value:"1h"},{label:"24h",value:"24h"},{label:"7d",value:"7d"},{label:"30d",value:"30d"},{label:"90d",value:"90d"},{label:"All",value:"all"}];function zz({activeTab:Q,onTabChange:J,onSync:q,syncing:Y,timeRange:U,onTimeRangeChange:K}){return C5.jsxDEV("header",{className:"flex flex-col sm:flex-row sm:items-center justify-between gap-4 pb-6 mb-8 border-b border-[var(--border-subtle)]",children:[C5.jsxDEV("div",{className:"flex items-center gap-3",children:[C5.jsxDEV("div",{className:"w-10 h-10 rounded-[var(--radius-md)] bg-gradient-to-br from-[var(--accent-pink)] to-[var(--accent-cyan)] flex items-center justify-center shadow-lg",children:C5.jsxDEV(E$,{className:"w-5 h-5 text-white"},void 0,!1,void 0,this)},void 0,!1,void 0,this),C5.jsxDEV("div",{children:[C5.jsxDEV("h1",{className:"text-xl font-semibold text-[var(--text-primary)]",children:"AI Usage"},void 0,!1,void 0,this),C5.jsxDEV("p",{className:"text-sm text-[var(--text-muted)]",children:"Statistics & Analytics"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),C5.jsxDEV("div",{className:"flex items-center gap-3",children:[C5.jsxDEV("div",{className:"flex bg-[var(--bg-surface)] rounded-[var(--radius-md)] p-1 border border-[var(--border-subtle)]",children:$A.map((M)=>C5.jsxDEV("button",{type:"button",onClick:()=>J(M),className:`tab-btn capitalize ${Q===M?"active":""}`,children:M},M,!1,void 0,this))},void 0,!1,void 0,this),C5.jsxDEV("div",{className:"flex bg-[var(--bg-surface)] rounded-[var(--radius-md)] p-1 border border-[var(--border-subtle)]",children:ZA.map((M)=>C5.jsxDEV("button",{type:"button",onClick:()=>K(M.value),className:`tab-btn ${U===M.value?"active":""}`,title:M.value==="all"?"All time":`Last ${M.label}`,children:M.label},M.value,!1,void 0,this))},void 0,!1,void 0,this),C5.jsxDEV("button",{type:"button",onClick:q,disabled:Y,className:"btn btn-primary",children:[C5.jsxDEV(WQ,{size:16,className:Y?"spin":""},void 0,!1,void 0,this),Y?"Syncing...":"Sync"]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)}var iq=w0(e1(),1);var s0=w0(G1(),1);P5.register(h4,x4,g4,u5,L8,V8,z8);var Lz="2fr 0.9fr 0.9fr 1fr 0.8fr 0.8fr 140px 40px";function Vz({models:Q,performanceSeries:J}){let[q,Y]=iq.useState(null),U=iq.useMemo(()=>GA(J),[J]),K=E8(),M=fq[K],H=[...Q].sort((F,w)=>w.totalInputTokens+w.totalOutputTokens-(F.totalInputTokens+F.totalOutputTokens));return s0.jsxDEV(hq,{title:"Model Statistics",children:[s0.jsxDEV(xq,{gridTemplate:Lz,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:"14d Trend",align:"center"}]},void 0,!1,void 0,this),s0.jsxDEV(uq,{children:H.map((F,w)=>{let T=`${F.model}::${F.provider}`,L=U.get(T)?.data??[],P=Y5[w%Y5.length],O=q===T,A=F.errorRate*100;return s0.jsxDEV(dq,{gridTemplate:Lz,isExpanded:O,onToggle:()=>Y(O?null:T),cells:[s0.jsxDEV(mq,{model:F.model,provider:F.provider},"name",!1,void 0,this),s0.jsxDEV("div",{className:"text-right text-[var(--text-secondary)] font-mono text-sm",children:F.totalRequests.toLocaleString()},"requests",!1,void 0,this),s0.jsxDEV("div",{className:"text-right text-[var(--text-secondary)] font-mono text-sm",children:["$",F.totalCost.toFixed(2)]},"cost",!0,void 0,this),s0.jsxDEV("div",{className:"text-right text-[var(--text-secondary)] font-mono text-sm",children:(F.totalInputTokens+F.totalOutputTokens).toLocaleString()},"tokens",!1,void 0,this),s0.jsxDEV("div",{className:"text-right text-[var(--text-secondary)] font-mono text-sm",children:F.avgTokensPerSecond?.toFixed(1)??"-"},"tps",!1,void 0,this),s0.jsxDEV("div",{className:"text-right text-[var(--text-secondary)] font-mono text-sm",children:F.avgTtft?`${(F.avgTtft/1000).toFixed(2)}s`:"-"},"ttft",!1,void 0,this)],trendCell:L.length===0?s0.jsxDEV(pq,{},void 0,!1,void 0,this):s0.jsxDEV(yq,{timestamps:L.map((C)=>C.timestamp),values:L.map((C)=>C.avgTokensPerSecond??0),color:P},void 0,!1,void 0,this),expandedContent:s0.jsxDEV("div",{className:"grid gap-4",style:{gridTemplateColumns:"200px 1fr"},children:[s0.jsxDEV("div",{className:"space-y-4 text-sm",children:[s0.jsxDEV("div",{children:[s0.jsxDEV("div",{className:"text-[var(--text-primary)] font-medium mb-2",children:"Quality"},void 0,!1,void 0,this),s0.jsxDEV("div",{className:"space-y-1 text-[var(--text-secondary)]",children:[s0.jsxDEV("div",{className:"flex items-center justify-between",children:[s0.jsxDEV("span",{children:"Error rate"},void 0,!1,void 0,this),s0.jsxDEV("span",{className:A>5?"text-[var(--accent-red)]":"text-[var(--accent-green)]",children:[A.toFixed(1),"%"]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),s0.jsxDEV("div",{className:"flex items-center justify-between",children:[s0.jsxDEV("span",{children:"Cache rate"},void 0,!1,void 0,this),s0.jsxDEV("span",{className:"text-[var(--accent-cyan)]",children:[(F.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),s0.jsxDEV("div",{children:[s0.jsxDEV("div",{className:"text-[var(--text-primary)] font-medium mb-2",children:"Latency"},void 0,!1,void 0,this),s0.jsxDEV("div",{className:"space-y-1 text-[var(--text-secondary)]",children:[s0.jsxDEV("div",{className:"flex items-center justify-between",children:[s0.jsxDEV("span",{children:"Avg duration"},void 0,!1,void 0,this),s0.jsxDEV("span",{className:"font-mono",children:F.avgDuration?`${(F.avgDuration/1000).toFixed(2)}s`:"-"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),s0.jsxDEV("div",{className:"flex items-center justify-between",children:[s0.jsxDEV("span",{children:"Avg TTFT"},void 0,!1,void 0,this),s0.jsxDEV("span",{className:"font-mono",children:F.avgTtft?`${(F.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),s0.jsxDEV("div",{className:"h-[200px]",children:L.length===0?s0.jsxDEV(cq,{},void 0,!1,void 0,this):s0.jsxDEV(QA,{data:L,color:P,chartTheme:M},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},T,!1,void 0,this)})},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function QA({data:Q,color:J,chartTheme:q}){let Y={labels:Q.map((K)=>u4(new Date(K.timestamp),"MMM d")),datasets:[{label:"TTFT",data:Q.map((K)=>K.avgTtftSeconds??null),...U6("#fbbf24"),yAxisID:"y"},{label:"Tokens/s",data:Q.map((K)=>K.avgTokensPerSecond??null),...U6(J),yAxisID:"y1"}]},U={responsive:!0,maintainAspectRatio:!1,plugins:gq(q),scales:Nz(q)};return s0.jsxDEV(E4,{data:Y,options:U},void 0,!1,void 0,this)}function GA(Q,J=14){let Y=Q.reduce((w,T)=>Math.max(w,T.timestamp),0),K=(Y>0?Y:Math.floor(Date.now()/86400000)*86400000)-(J-1)*86400000,M=Array.from({length:J},(w,T)=>K+T*86400000),H=new Map(M.map((w,T)=>[w,T])),F=new Map;for(let w of Q){let T=`${w.model}::${w.provider}`,_=F.get(T);if(!_)_={label:`${w.model} (${w.provider})`,data:M.map((P)=>({timestamp:P,avgTtftSeconds:null,avgTokensPerSecond:null,requests:0}))},F.set(T,_);let L=H.get(w.timestamp);if(L===void 0)continue;_.data[L]={timestamp:w.timestamp,avgTtftSeconds:w.avgTtft!==null?w.avgTtft/1000:null,avgTokensPerSecond:w.avgTokensPerSecond,requests:w.requests}}return F}var _Q=w0(e1(),1);var X0=w0(G1(),1);function Ez({id:Q,onClose:J}){let[q,Y]=_Q.useState(null),[U,K]=_Q.useState(!0);if(_Q.useEffect(()=>{rR(Q).then(Y).catch(console.error).finally(()=>K(!1))},[Q]),!q&&U)return X0.jsxDEV("div",{className:"fixed inset-0 bg-[var(--bg-overlay)] flex justify-center items-center z-[100]",children:X0.jsxDEV("div",{className:"surface px-8 py-6",children:X0.jsxDEV("div",{className:"flex items-center gap-3 text-[var(--text-secondary)]",children:[X0.jsxDEV("div",{className:"w-5 h-5 border-2 border-[var(--border-default)] border-t-[var(--accent-cyan)] rounded-full spin"},void 0,!1,void 0,this),X0.jsxDEV("span",{children:"Loading..."},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this);if(!q)return null;return X0.jsxDEV("div",{role:"presentation",className:"fixed inset-0 bg-[var(--bg-overlay)] backdrop-blur-sm flex justify-end z-[100] animate-fade-in",onClick:J,children:X0.jsxDEV("div",{role:"dialog","aria-modal":"true",className:"w-[600px] max-w-full bg-[var(--bg-page)] h-full overflow-y-auto border-l border-[var(--border-subtle)] animate-slide-up",onClick:(M)=>M.stopPropagation(),children:[X0.jsxDEV("div",{className:"sticky top-0 bg-[var(--bg-page)]/95 backdrop-blur border-b border-[var(--border-subtle)] px-6 py-4 flex justify-between items-center z-10",children:[X0.jsxDEV("div",{className:"flex items-center gap-3",children:[X0.jsxDEV("div",{className:"w-8 h-8 rounded-[var(--radius-sm)] bg-gradient-to-br from-[var(--accent-pink)]/20 to-[var(--accent-cyan)]/20 flex items-center justify-center",children:X0.jsxDEV(T2,{size:16,className:"text-[var(--accent-cyan)]"},void 0,!1,void 0,this)},void 0,!1,void 0,this),X0.jsxDEV("h2",{className:"text-lg font-semibold text-[var(--text-primary)]",children:"Request Details"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),X0.jsxDEV("button",{type:"button",onClick:J,className:"p-2 rounded-[var(--radius-sm)] text-[var(--text-muted)] hover:text-[var(--text-primary)] hover:bg-[var(--bg-hover)] transition-colors",children:X0.jsxDEV(TQ,{size:20},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),X0.jsxDEV("div",{className:"p-6 space-y-6",children:[X0.jsxDEV("div",{className:"surface p-5",children:X0.jsxDEV("div",{className:"flex items-center justify-between mb-4",children:[X0.jsxDEV("div",{children:[X0.jsxDEV("div",{className:"text-2xl font-bold text-[var(--text-primary)]",children:q.model},void 0,!1,void 0,this),X0.jsxDEV("div",{className:"text-sm text-[var(--text-muted)]",children:q.provider},void 0,!1,void 0,this)]},void 0,!0,void 0,this),q.errorMessage?X0.jsxDEV("span",{className:"badge badge-error",children:"Error"},void 0,!1,void 0,this):X0.jsxDEV("span",{className:"badge badge-success",children:"Success"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this),X0.jsxDEV("div",{className:"grid grid-cols-2 gap-4",children:[X0.jsxDEV("div",{className:"surface p-4",children:[X0.jsxDEV("div",{className:"flex items-center gap-2 text-[var(--text-muted)] mb-2",children:[X0.jsxDEV(KQ,{size:14},void 0,!1,void 0,this),X0.jsxDEV("span",{className:"text-xs uppercase tracking-wide",children:"Cost"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),X0.jsxDEV("div",{className:"text-xl font-semibold text-[var(--text-primary)]",children:["$",q.usage.cost.total.toFixed(4)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),X0.jsxDEV("div",{className:"surface p-4",children:[X0.jsxDEV("div",{className:"flex items-center gap-2 text-[var(--text-muted)] mb-2",children:[X0.jsxDEV(P$,{size:14},void 0,!1,void 0,this),X0.jsxDEV("span",{className:"text-xs uppercase tracking-wide",children:"Premium Reqs"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),X0.jsxDEV("div",{className:"text-xl font-semibold text-[var(--text-primary)]",children:(q.usage.premiumRequests??0).toLocaleString()},void 0,!1,void 0,this)]},void 0,!0,void 0,this),X0.jsxDEV("div",{className:"surface p-4",children:[X0.jsxDEV("div",{className:"flex items-center gap-2 text-[var(--text-muted)] mb-2",children:[X0.jsxDEV(FQ,{size:14},void 0,!1,void 0,this),X0.jsxDEV("span",{className:"text-xs uppercase tracking-wide",children:"Tokens"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),X0.jsxDEV("div",{className:"text-xl font-semibold text-[var(--text-primary)]",children:q.usage.totalTokens.toLocaleString()},void 0,!1,void 0,this),X0.jsxDEV("div",{className:"text-xs text-[var(--text-muted)] mt-1",children:[q.usage.input.toLocaleString()," in · ",q.usage.output.toLocaleString()," out"]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),X0.jsxDEV("div",{className:"surface p-4",children:[X0.jsxDEV("div",{className:"flex items-center gap-2 text-[var(--text-muted)] mb-2",children:[X0.jsxDEV(NQ,{size:14},void 0,!1,void 0,this),X0.jsxDEV("span",{className:"text-xs uppercase tracking-wide",children:"Duration"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),X0.jsxDEV("div",{className:"text-xl font-semibold text-[var(--text-primary)]",children:q.duration?`${(q.duration/1000).toFixed(2)}s`:"-"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),X0.jsxDEV("div",{className:"surface p-4",children:[X0.jsxDEV("div",{className:"flex items-center gap-2 text-[var(--text-muted)] mb-2",children:[X0.jsxDEV(C$,{size:14},void 0,!1,void 0,this),X0.jsxDEV("span",{className:"text-xs uppercase tracking-wide",children:"TTFT"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),X0.jsxDEV("div",{className:"text-xl font-semibold text-[var(--text-primary)]",children:q.ttft?`${(q.ttft/1000).toFixed(2)}s`:"-"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),q.duration&&q.usage.output>0&&X0.jsxDEV("div",{className:"surface p-4",children:[X0.jsxDEV("div",{className:"flex items-center justify-between",children:[X0.jsxDEV("div",{className:"flex items-center gap-2 text-[var(--text-muted)]",children:[X0.jsxDEV(HQ,{size:14},void 0,!1,void 0,this),X0.jsxDEV("span",{className:"text-xs uppercase tracking-wide",children:"Throughput"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),X0.jsxDEV("span",{className:"text-2xl font-bold gradient-text",children:(q.usage.output*1000/q.duration).toFixed(1)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),X0.jsxDEV("div",{className:"text-xs text-[var(--text-muted)] mt-1 text-right",children:"tokens/second"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),X0.jsxDEV("div",{children:[X0.jsxDEV("h3",{className:"text-sm font-semibold text-[var(--text-primary)] mb-3",children:"Output"},void 0,!1,void 0,this),X0.jsxDEV("pre",{className:"surface bg-[var(--bg-elevated)] p-4 rounded-[var(--radius-md)] text-sm font-mono text-[var(--text-secondary)] overflow-x-auto",children:JSON.stringify(q.output,null,2)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),X0.jsxDEV("div",{children:[X0.jsxDEV("h3",{className:"text-sm font-semibold text-[var(--text-primary)] mb-3",children:"Raw Metadata"},void 0,!1,void 0,this),X0.jsxDEV("pre",{className:"surface bg-[var(--bg-elevated)] p-4 rounded-[var(--radius-md)] text-xs font-mono text-[var(--text-muted)] overflow-x-auto",children:JSON.stringify(q,null,2)},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,!1,void 0,this)}var B1=w0(G1(),1);function zQ({requests:Q,onSelect:J,title:q}){return B1.jsxDEV("div",{className:"surface overflow-hidden flex flex-col h-full",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:q},void 0,!1,void 0,this)},void 0,!1,void 0,this),B1.jsxDEV("div",{className:"overflow-auto flex-1",children:B1.jsxDEV("table",{className:"w-full",children:[B1.jsxDEV("thead",{className:"bg-[var(--bg-elevated)] sticky top-0 z-10",children:B1.jsxDEV("tr",{children:[B1.jsxDEV("th",{className:"text-left py-3 px-4 table-header",children:"Model"},void 0,!1,void 0,this),B1.jsxDEV("th",{className:"text-left py-3 px-4 table-header",children:"Time"},void 0,!1,void 0,this),B1.jsxDEV("th",{className:"text-right py-3 px-4 table-header",children:"Tokens"},void 0,!1,void 0,this),B1.jsxDEV("th",{className:"text-right py-3 px-4 table-header",children:"Cost"},void 0,!1,void 0,this),B1.jsxDEV("th",{className:"text-right py-3 px-4 table-header",children:"Duration"},void 0,!1,void 0,this),B1.jsxDEV("th",{className:"text-center py-3 px-4 table-header",children:"Status"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this),B1.jsxDEV("tbody",{children:[Q.map((Y)=>B1.jsxDEV("tr",{onClick:()=>J(Y),className:"table-row cursor-pointer border-b border-[var(--border-subtle)] last:border-b-0",children:[B1.jsxDEV("td",{className:"py-3 px-4",children:[B1.jsxDEV("div",{className:"font-medium text-[var(--text-primary)] text-sm",children:Y.model},void 0,!1,void 0,this),B1.jsxDEV("div",{className:"text-xs text-[var(--text-muted)]",children:Y.provider},void 0,!1,void 0,this)]},void 0,!0,void 0,this),B1.jsxDEV("td",{className:"py-3 px-4 text-sm text-[var(--text-secondary)]",children:t_(Y.timestamp,{addSuffix:!0})},void 0,!1,void 0,this),B1.jsxDEV("td",{className:"py-3 px-4 text-right text-sm text-[var(--text-secondary)] font-mono",children:Y.usage.totalTokens.toLocaleString()},void 0,!1,void 0,this),B1.jsxDEV("td",{className:"py-3 px-4 text-right text-sm text-[var(--text-secondary)] font-mono",children:["$",Y.usage.cost.total.toFixed(4)]},void 0,!0,void 0,this),B1.jsxDEV("td",{className:"py-3 px-4 text-right text-sm text-[var(--text-secondary)] font-mono",children:Y.duration?`${(Y.duration/1000).toFixed(1)}s`:"-"},void 0,!1,void 0,this),B1.jsxDEV("td",{className:"py-3 px-4 text-center",children:Y.errorMessage?B1.jsxDEV(w2,{size:16,className:"text-[var(--accent-red)] mx-auto"},void 0,!1,void 0,this):B1.jsxDEV(R2,{size:16,className:"text-[var(--accent-green)] mx-auto"},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},`${Y.sessionFile}-${Y.entryId}`,!0,void 0,this)),Q.length===0&&B1.jsxDEV("tr",{children:B1.jsxDEV("td",{colSpan:6,className:"py-12 text-center text-[var(--text-muted)] text-sm",children:"No requests found"},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}var K6=w0(G1(),1),JA=new Intl.NumberFormat(void 0,{notation:"compact",maximumFractionDigits:1});function Pz(Q){return JA.format(Q)}function sN(Q){return Q.toLocaleString()}var LQ=(Q)=>Q.totalInputTokens+Q.totalOutputTokens,qA=[{key:"requests",title:"Total Requests",icon:RQ,color:"var(--accent-violet)",getValue:(Q)=>Q.totalRequests.toLocaleString(),getDetail:(Q)=>`${Q.successfulRequests.toLocaleString()} success · ${Q.failedRequests.toLocaleString()} errors`},{key:"cost",title:"Total Cost",icon:E$,color:"var(--accent-pink)",getValue:(Q)=>`$${Q.totalCost.toFixed(2)}`,getDetail:(Q)=>Q.totalRequests>0?`$${(Q.totalCost/Q.totalRequests).toFixed(4)} avg/req`:"-"},{key:"premiumRequests",title:"Premium Reqs",icon:P$,color:"var(--accent-amber)",getValue:(Q)=>sN(Q.totalPremiumRequests),getDetail:(Q)=>Q.totalRequests>0?`${(Q.totalPremiumRequests/Q.totalRequests*100).toFixed(1)}% of requests`:"-"},{key:"cache",title:"Cache Rate",icon:BQ,color:"var(--accent-cyan)",getValue:(Q)=>`${(Q.cacheRate*100).toFixed(1)}%`,getDetail:(Q)=>`${Pz(Q.totalCacheReadTokens)} cached tokens`},{key:"inputTokens",title:"Input Tokens",icon:MQ,color:"var(--accent-violet)",getValue:(Q)=>sN(Q.totalInputTokens),getDetail:(Q)=>LQ(Q)>0?`${(Q.totalInputTokens/LQ(Q)*100).toFixed(1)}% of prompt+completion`:"-"},{key:"outputTokens",title:"Output Tokens",icon:wQ,color:"var(--accent-pink)",getValue:(Q)=>sN(Q.totalOutputTokens),getDetail:(Q)=>LQ(Q)>0?`${(Q.totalOutputTokens/LQ(Q)*100).toFixed(1)}% of prompt+completion`:"-"},{key:"errors",title:"Error Rate",icon:W2,color:"var(--accent-red)",getValue:(Q)=>`${(Q.errorRate*100).toFixed(1)}%`,getDetail:(Q)=>`${Q.failedRequests.toLocaleString()} failed requests`},{key:"tokens",title:"Tokens/Sec",icon:F2,color:"var(--accent-green)",getValue:(Q)=>Q.avgTokensPerSecond?.toFixed(1)??"-",getDetail:(Q)=>`${Pz(LQ(Q))} total prompt+completion`},{key:"ttft",title:"TTFT",icon:C$,color:"var(--accent-amber)",getValue:(Q)=>Q.avgTtft?`${(Q.avgTtft/1000).toFixed(2)}s`:"-",getDetail:()=>"Time to first token"}];function Cz({stats:Q}){return K6.jsxDEV("div",{className:"grid grid-cols-2 lg:grid-cols-3 xl:grid-cols-9 gap-4 mb-8",children:qA.map((J)=>{let q=J.icon;return K6.jsxDEV("div",{className:"stat-card group",children:[K6.jsxDEV("div",{className:"flex items-center justify-between mb-3",children:[K6.jsxDEV("span",{className:"text-sm font-medium text-[var(--text-secondary)]",children:J.title},void 0,!1,void 0,this),K6.jsxDEV("div",{className:"p-2 rounded-[var(--radius-sm)] transition-colors",style:{backgroundColor:`${J.color}15`},children:K6.jsxDEV(q,{size:18,style:{color:J.color},className:"transition-transform group-hover:scale-110"},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),K6.jsxDEV("div",{className:"text-2xl font-bold text-[var(--text-primary)] mb-1",children:J.getValue(Q)},void 0,!1,void 0,this),K6.jsxDEV("div",{className:"text-xs text-[var(--text-muted)] truncate",children:J.getDetail(Q)},void 0,!1,void 0,this)]},J.key,!0,void 0,this)})},void 0,!1,void 0,this)}var m0=w0(G1(),1);function nN(){let[Q,J]=U5.useState(null),[q,Y]=U5.useState(null),[U,K]=U5.useState(null),[M,H]=U5.useState(null),[F,w]=U5.useState([]),[T,_]=U5.useState([]),[L,P]=U5.useState(null),[O,A]=U5.useState(!1),[C,g]=U5.useState("overview"),[m,o]=U5.useState("24h"),a=U5.useCallback(async()=>{try{let[p,i]=await Promise.all([cR(50),lR(50)]);w(p),_(i)}catch(p){console.error(p)}},[]),s=U5.useCallback(async()=>{try{if(C==="models"){Y(await dR(m));return}if(C==="costs"){K(await pR(m));return}if(C==="behavior"){H(await nR(m));return}if(C==="overview")J(await mR(m))}catch(p){console.error(p)}},[C,m]),Q0=async()=>{A(!0);try{await sR(),await Promise.all([s(),a()])}finally{A(!1)}};return U5.useEffect(()=>{a();let p=setInterval(a,30000);return()=>clearInterval(p)},[a]),U5.useEffect(()=>{s();let p=setInterval(s,30000);return()=>clearInterval(p)},[s]),m0.jsxDEV("div",{className:"min-h-screen",children:m0.jsxDEV("div",{className:"max-w-[1600px] mx-auto px-6 py-6",children:[m0.jsxDEV(zz,{activeTab:C,onTabChange:g,onSync:Q0,syncing:O,timeRange:m,onTimeRangeChange:o},void 0,!1,void 0,this),C==="overview"&&m0.jsxDEV("div",{className:"space-y-6 animate-fade-in",children:[Q?m0.jsxDEV(Cz,{stats:Q.overall},void 0,!1,void 0,this):m0.jsxDEV(tq,{label:"Loading overview..."},void 0,!1,void 0,this),m0.jsxDEV("div",{className:"grid lg:grid-cols-2 gap-6",children:[m0.jsxDEV(zQ,{title:"Recent Requests",requests:F.slice(0,10),onSelect:(p)=>p.id&&P(p.id)},void 0,!1,void 0,this),m0.jsxDEV(zQ,{title:"Recent Errors",requests:T.slice(0,10),onSelect:(p)=>p.id&&P(p.id)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),C==="requests"&&m0.jsxDEV("div",{className:"h-[calc(100vh-140px)] animate-fade-in",children:m0.jsxDEV(zQ,{title:"All Recent Requests",requests:F,onSelect:(p)=>p.id&&P(p.id)},void 0,!1,void 0,this)},void 0,!1,void 0,this),C==="errors"&&m0.jsxDEV("div",{className:"h-[calc(100vh-140px)] animate-fade-in",children:m0.jsxDEV(zQ,{title:"Failed Requests",requests:T,onSelect:(p)=>p.id&&P(p.id)},void 0,!1,void 0,this)},void 0,!1,void 0,this),C==="models"&&m0.jsxDEV("div",{className:"space-y-6 animate-fade-in",children:q?m0.jsxDEV(m0.Fragment,{children:[m0.jsxDEV(wz,{modelSeries:q.modelSeries},void 0,!1,void 0,this),m0.jsxDEV(Vz,{models:q.byModel,performanceSeries:q.modelPerformanceSeries},void 0,!1,void 0,this)]},void 0,!0,void 0,this):m0.jsxDEV(tq,{label:"Loading models..."},void 0,!1,void 0,this)},void 0,!1,void 0,this),C==="costs"&&m0.jsxDEV("div",{className:"space-y-6 animate-fade-in",children:U?m0.jsxDEV(m0.Fragment,{children:[m0.jsxDEV(_z,{costSeries:U.costSeries},void 0,!1,void 0,this),m0.jsxDEV(Tz,{costSeries:U.costSeries},void 0,!1,void 0,this)]},void 0,!0,void 0,this):m0.jsxDEV(tq,{label:"Loading costs..."},void 0,!1,void 0,this)},void 0,!1,void 0,this),C==="behavior"&&m0.jsxDEV("div",{className:"space-y-6 animate-fade-in",children:M?m0.jsxDEV(m0.Fragment,{children:[m0.jsxDEV(Wz,{overall:M.overall,behaviorSeries:M.behaviorSeries},void 0,!1,void 0,this),m0.jsxDEV(Qz,{behaviorSeries:M.behaviorSeries},void 0,!1,void 0,this),m0.jsxDEV(Hz,{models:M.byModel,behaviorSeries:M.behaviorSeries},void 0,!1,void 0,this)]},void 0,!0,void 0,this):m0.jsxDEV(tq,{label:"Loading behavior..."},void 0,!1,void 0,this)},void 0,!1,void 0,this),L!==null&&m0.jsxDEV(Ez,{id:L,onClose:()=>P(null)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)}function tq({label:Q}){return m0.jsxDEV("div",{className:"min-h-[180px] flex items-center justify-center",children:m0.jsxDEV("div",{className:"flex items-center gap-3 text-[var(--text-muted)]",children:[m0.jsxDEV("div",{className:"w-5 h-5 border-2 border-[var(--border-default)] border-t-[var(--accent-cyan)] rounded-full spin"},void 0,!1,void 0,this),m0.jsxDEV("span",{className:"text-sm",children:Q},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)}var Oz=w0(G1(),1),XA=Iz.createRoot(document.getElementById("root"));XA.render(Oz.jsxDEV(nN,{},void 0,!1,void 0,this));
|
|
257
|
+
`);return Q}function QD(Q,J){let{element:q,datasetIndex:Y,index:U}=J,K=Q.getDatasetMeta(Y).controller,{label:H,value:M}=K.getLabelAndValue(U);return{chart:Q,label:H,parsed:K.getParsed(U),raw:Q.data.datasets[Y].data[U],formattedValue:M,dataset:K.getDataset(),dataIndex:U,datasetIndex:Y,element:q}}function jT(Q,J){let q=Q.chart.ctx,{body:Y,footer:U,title:K}=Q,{boxWidth:H,boxHeight:M}=J,F=p1(J.bodyFont),R=p1(J.titleFont),T=p1(J.footerFont),z=K.length,L=U.length,P=Y.length,I=X5(J.padding),A=I.height,C=0,g=Y.reduce((a,s)=>a+s.before.length+s.lines.length+s.after.length,0);if(g+=Q.beforeBody.length+Q.afterBody.length,z)A+=z*R.lineHeight+(z-1)*J.titleSpacing+J.titleMarginBottom;if(g){let a=J.displayColors?Math.max(M,F.lineHeight):F.lineHeight;A+=P*a+(g-P)*F.lineHeight+(g-1)*J.bodySpacing}if(L)A+=J.footerMarginTop+L*T.lineHeight+(L-1)*J.footerSpacing;let m=0,o=function(a){C=Math.max(C,q.measureText(a).width+m)};return q.save(),q.font=R.string,X1(Q.title,o),q.font=F.string,X1(Q.beforeBody.concat(Q.afterBody),o),m=J.displayColors?H+2+J.boxPadding:0,X1(Y,(a)=>{X1(a.before,o),X1(a.lines,o),X1(a.after,o)}),m=0,q.font=T.string,X1(Q.footer,o),q.restore(),C+=I.width,{width:C,height:A}}function GD(Q,J){let{y:q,height:Y}=J;if(q<Y/2)return"top";else if(q>Q.height-Y/2)return"bottom";return"center"}function JD(Q,J,q,Y){let{x:U,width:K}=Y,H=q.caretSize+q.caretPadding;if(Q==="left"&&U+K+H>J.width)return!0;if(Q==="right"&&U-K-H<0)return!0}function qD(Q,J,q,Y){let{x:U,width:K}=q,{width:H,chartArea:{left:M,right:F}}=Q,R="center";if(Y==="center")R=U<=(M+F)/2?"left":"right";else if(U<=K/2)R="left";else if(U>=H-K/2)R="right";if(JD(R,Q,J,q))R="center";return R}function AT(Q,J,q){let Y=q.yAlign||J.yAlign||GD(Q,q);return{xAlign:q.xAlign||J.xAlign||qD(Q,J,q,Y),yAlign:Y}}function XD(Q,J){let{x:q,width:Y}=Q;if(J==="right")q-=Y;else if(J==="center")q-=Y/2;return q}function YD(Q,J,q){let{y:Y,height:U}=Q;if(J==="top")Y+=q;else if(J==="bottom")Y-=U+q;else Y-=U/2;return Y}function ST(Q,J,q,Y){let{caretSize:U,caretPadding:K,cornerRadius:H}=Q,{xAlign:M,yAlign:F}=q,R=U+K,{topLeft:T,topRight:z,bottomLeft:L,bottomRight:P}=K2(H),I=XD(J,M),A=YD(J,F,R);if(F==="center"){if(M==="left")I+=R;else if(M==="right")I-=R}else if(M==="left")I-=Math.max(T,L)+U;else if(M==="right")I+=Math.max(z,P)+U;return{x:y5(I,0,Y.width-J.width),y:y5(A,0,Y.height-J.height)}}function Kq(Q,J,q){let Y=X5(q.padding);return J==="center"?Q.x+Q.width/2:J==="right"?Q.x+Q.width-Y.right:Q.x+Y.left}function vT(Q){return T8([],J6(Q))}function UD(Q,J,q){return Q6(Q,{tooltip:J,tooltipItems:q,type:"tooltip"})}function kT(Q,J){let q=J&&J.dataset&&J.dataset.tooltip&&J.dataset.tooltip.callbacks;return q?Q.override(q):Q}var Hz={beforeTitle:R8,title(Q){if(Q.length>0){let J=Q[0],q=J.chart.data.labels,Y=q?q.length:0;if(this&&this.options&&this.options.mode==="dataset")return J.dataset.label||"";else if(J.label)return J.label;else if(Y>0&&J.dataIndex<Y)return q[J.dataIndex]}return""},afterTitle:R8,beforeBody:R8,beforeLabel:R8,label(Q){if(this&&this.options&&this.options.mode==="dataset")return Q.label+": "+Q.formattedValue||Q.formattedValue;let J=Q.dataset.label||"";if(J)J+=": ";let q=Q.formattedValue;if(!t0(q))J+=q;return J},labelColor(Q){let q=Q.chart.getDatasetMeta(Q.datasetIndex).controller.getStyle(Q.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(Q){let q=Q.chart.getDatasetMeta(Q.datasetIndex).controller.getStyle(Q.dataIndex);return{pointStyle:q.pointStyle,rotation:q.rotation}},afterLabel:R8,afterBody:R8,beforeFooter:R8,footer:R8,afterFooter:R8};function h5(Q,J,q,Y){let U=Q[J].call(q,Y);if(typeof U>"u")return Hz[J].call(q,Y);return U}class SN extends q6{static positioners=iZ;constructor(Q){super();this.opacity=0,this._active=[],this._eventPosition=void 0,this._size=void 0,this._cachedAnimations=void 0,this._tooltipItems=[],this.$animations=void 0,this.$context=void 0,this.chart=Q.chart,this.options=Q.options,this.dataPoints=void 0,this.title=void 0,this.beforeBody=void 0,this.body=void 0,this.afterBody=void 0,this.footer=void 0,this.xAlign=void 0,this.yAlign=void 0,this.x=void 0,this.y=void 0,this.height=void 0,this.width=void 0,this.caretX=void 0,this.caretY=void 0,this.labelColors=void 0,this.labelPointStyles=void 0,this.labelTextColors=void 0}initialize(Q){this.options=Q,this._cachedAnimations=void 0,this.$context=void 0}_resolveAnimations(){let Q=this._cachedAnimations;if(Q)return Q;let J=this.chart,q=this.options.setContext(this.getContext()),Y=q.enabled&&J.options.animation&&q.animations,U=new bN(this.chart,Y);if(Y._cacheable)this._cachedAnimations=Object.freeze(U);return U}getContext(){return this.$context||(this.$context=UD(this.chart.getContext(),this,this._tooltipItems))}getTitle(Q,J){let{callbacks:q}=J,Y=h5(q,"beforeTitle",this,Q),U=h5(q,"title",this,Q),K=h5(q,"afterTitle",this,Q),H=[];return H=T8(H,J6(Y)),H=T8(H,J6(U)),H=T8(H,J6(K)),H}getBeforeBody(Q,J){return vT(h5(J.callbacks,"beforeBody",this,Q))}getBody(Q,J){let{callbacks:q}=J,Y=[];return X1(Q,(U)=>{let K={before:[],lines:[],after:[]},H=kT(q,U);T8(K.before,J6(h5(H,"beforeLabel",this,U))),T8(K.lines,h5(H,"label",this,U)),T8(K.after,J6(h5(H,"afterLabel",this,U))),Y.push(K)}),Y}getAfterBody(Q,J){return vT(h5(J.callbacks,"afterBody",this,Q))}getFooter(Q,J){let{callbacks:q}=J,Y=h5(q,"beforeFooter",this,Q),U=h5(q,"footer",this,Q),K=h5(q,"afterFooter",this,Q),H=[];return H=T8(H,J6(Y)),H=T8(H,J6(U)),H=T8(H,J6(K)),H}_createItems(Q){let J=this._active,q=this.chart.data,Y=[],U=[],K=[],H=[],M,F;for(M=0,F=J.length;M<F;++M)H.push(QD(this.chart,J[M]));if(Q.filter)H=H.filter((R,T,z)=>Q.filter(R,T,z,q));if(Q.itemSort)H=H.sort((R,T)=>Q.itemSort(R,T,q));return X1(H,(R)=>{let T=kT(Q.callbacks,R);Y.push(h5(T,"labelColor",this,R)),U.push(h5(T,"labelPointStyle",this,R)),K.push(h5(T,"labelTextColor",this,R))}),this.labelColors=Y,this.labelPointStyles=U,this.labelTextColors=K,this.dataPoints=H,H}update(Q,J){let q=this.options.setContext(this.getContext()),Y=this._active,U,K=[];if(!Y.length){if(this.opacity!==0)U={opacity:0}}else{let H=iZ[q.position].call(this,Y,this._eventPosition);K=this._createItems(q),this.title=this.getTitle(K,q),this.beforeBody=this.getBeforeBody(K,q),this.body=this.getBody(K,q),this.afterBody=this.getAfterBody(K,q),this.footer=this.getFooter(K,q);let M=this._size=jT(this,q),F=Object.assign({},H,M),R=AT(this.chart,q,F),T=ST(q,F,R,this.chart);this.xAlign=R.xAlign,this.yAlign=R.yAlign,U={opacity:1,x:T.x,y:T.y,width:M.width,height:M.height,caretX:H.x,caretY:H.y}}if(this._tooltipItems=K,this.$context=void 0,U)this._resolveAnimations().update(this,U);if(Q&&q.external)q.external.call(this,{chart:this.chart,tooltip:this,replay:J})}drawCaret(Q,J,q,Y){let U=this.getCaretPosition(Q,q,Y);J.lineTo(U.x1,U.y1),J.lineTo(U.x2,U.y2),J.lineTo(U.x3,U.y3)}getCaretPosition(Q,J,q){let{xAlign:Y,yAlign:U}=this,{caretSize:K,cornerRadius:H}=q,{topLeft:M,topRight:F,bottomLeft:R,bottomRight:T}=K2(H),{x:z,y:L}=Q,{width:P,height:I}=J,A,C,g,m,o,a;if(U==="center"){if(o=L+I/2,Y==="left")A=z,C=A-K,m=o+K,a=o-K;else A=z+P,C=A+K,m=o-K,a=o+K;g=A}else{if(Y==="left")C=z+Math.max(M,R)+K;else if(Y==="right")C=z+P-Math.max(F,T)-K;else C=this.caretX;if(U==="top")m=L,o=m-K,A=C-K,g=C+K;else m=L+I,o=m+K,A=C+K,g=C-K;a=m}return{x1:A,x2:C,x3:g,y1:m,y2:o,y3:a}}drawTitle(Q,J,q){let Y=this.title,U=Y.length,K,H,M;if(U){let F=W$(q.rtl,this.x,this.width);Q.x=Kq(this,q.titleAlign,q),J.textAlign=F.textAlign(q.titleAlign),J.textBaseline="middle",K=p1(q.titleFont),H=q.titleSpacing,J.fillStyle=q.titleColor,J.font=K.string;for(M=0;M<U;++M)if(J.fillText(Y[M],F.x(Q.x),Q.y+K.lineHeight/2),Q.y+=K.lineHeight+H,M+1===U)Q.y+=q.titleMarginBottom-H}}_drawColorBox(Q,J,q,Y,U){let K=this.labelColors[q],H=this.labelPointStyles[q],{boxHeight:M,boxWidth:F}=U,R=p1(U.bodyFont),T=Kq(this,"left",U),z=Y.x(T),L=M<R.lineHeight?(R.lineHeight-M)/2:0,P=J.y+L;if(U.usePointStyle){let I={radius:Math.min(F,M)/2,pointStyle:H.pointStyle,rotation:H.rotation,borderWidth:1},A=Y.leftForLtr(z,F)+F/2,C=P+M/2;Q.strokeStyle=U.multiKeyBackground,Q.fillStyle=U.multiKeyBackground,Qq(Q,I,A,C),Q.strokeStyle=K.borderColor,Q.fillStyle=K.backgroundColor,Qq(Q,I,A,C)}else{Q.lineWidth=n0(K.borderWidth)?Math.max(...Object.values(K.borderWidth)):K.borderWidth||1,Q.strokeStyle=K.borderColor,Q.setLineDash(K.borderDash||[]),Q.lineDashOffset=K.borderDashOffset||0;let I=Y.leftForLtr(z,F),A=Y.leftForLtr(Y.xPlus(z,1),F-2),C=K2(K.borderRadius);if(Object.values(C).some((g)=>g!==0))Q.beginPath(),Q.fillStyle=U.multiKeyBackground,d9(Q,{x:I,y:P,w:F,h:M,radius:C}),Q.fill(),Q.stroke(),Q.fillStyle=K.backgroundColor,Q.beginPath(),d9(Q,{x:A,y:P+1,w:F-2,h:M-2,radius:C}),Q.fill();else Q.fillStyle=U.multiKeyBackground,Q.fillRect(I,P,F,M),Q.strokeRect(I,P,F,M),Q.fillStyle=K.backgroundColor,Q.fillRect(A,P+1,F-2,M-2)}Q.fillStyle=this.labelTextColors[q]}drawBody(Q,J,q){let{body:Y}=this,{bodySpacing:U,bodyAlign:K,displayColors:H,boxHeight:M,boxWidth:F,boxPadding:R}=q,T=p1(q.bodyFont),z=T.lineHeight,L=0,P=W$(q.rtl,this.x,this.width),I=function(p){J.fillText(p,P.x(Q.x+L),Q.y+z/2),Q.y+=z+U},A=P.textAlign(K),C,g,m,o,a,s,Q0;J.textAlign=K,J.textBaseline="middle",J.font=T.string,Q.x=Kq(this,A,q),J.fillStyle=q.bodyColor,X1(this.beforeBody,I),L=H&&A!=="right"?K==="center"?F/2+R:F+2+R:0;for(o=0,s=Y.length;o<s;++o){if(C=Y[o],g=this.labelTextColors[o],J.fillStyle=g,X1(C.before,I),m=C.lines,H&&m.length)this._drawColorBox(J,Q,o,P,q),z=Math.max(T.lineHeight,M);for(a=0,Q0=m.length;a<Q0;++a)I(m[a]),z=T.lineHeight;X1(C.after,I)}L=0,z=T.lineHeight,X1(this.afterBody,I),Q.y-=U}drawFooter(Q,J,q){let Y=this.footer,U=Y.length,K,H;if(U){let M=W$(q.rtl,this.x,this.width);Q.x=Kq(this,q.footerAlign,q),Q.y+=q.footerMarginTop,J.textAlign=M.textAlign(q.footerAlign),J.textBaseline="middle",K=p1(q.footerFont),J.fillStyle=q.footerColor,J.font=K.string;for(H=0;H<U;++H)J.fillText(Y[H],M.x(Q.x),Q.y+K.lineHeight/2),Q.y+=K.lineHeight+q.footerSpacing}}drawBackground(Q,J,q,Y){let{xAlign:U,yAlign:K}=this,{x:H,y:M}=Q,{width:F,height:R}=q,{topLeft:T,topRight:z,bottomLeft:L,bottomRight:P}=K2(Y.cornerRadius);if(J.fillStyle=Y.backgroundColor,J.strokeStyle=Y.borderColor,J.lineWidth=Y.borderWidth,J.beginPath(),J.moveTo(H+T,M),K==="top")this.drawCaret(Q,J,q,Y);if(J.lineTo(H+F-z,M),J.quadraticCurveTo(H+F,M,H+F,M+z),K==="center"&&U==="right")this.drawCaret(Q,J,q,Y);if(J.lineTo(H+F,M+R-P),J.quadraticCurveTo(H+F,M+R,H+F-P,M+R),K==="bottom")this.drawCaret(Q,J,q,Y);if(J.lineTo(H+L,M+R),J.quadraticCurveTo(H,M+R,H,M+R-L),K==="center"&&U==="left")this.drawCaret(Q,J,q,Y);if(J.lineTo(H,M+T),J.quadraticCurveTo(H,M,H+T,M),J.closePath(),J.fill(),Y.borderWidth>0)J.stroke()}_updateAnimationTarget(Q){let J=this.chart,q=this.$animations,Y=q&&q.x,U=q&&q.y;if(Y||U){let K=iZ[Q.position].call(this,this._active,this._eventPosition);if(!K)return;let H=this._size=jT(this,Q),M=Object.assign({},K,this._size),F=AT(J,Q,M),R=ST(Q,M,F,J);if(Y._to!==R.x||U._to!==R.y)this.xAlign=F.xAlign,this.yAlign=F.yAlign,this.width=H.width,this.height=H.height,this.caretX=K.x,this.caretY=K.y,this._resolveAnimations().update(this,R)}}_willRender(){return!!this.opacity}draw(Q){let J=this.options.setContext(this.getContext()),q=this.opacity;if(!q)return;this._updateAnimationTarget(J);let Y={width:this.width,height:this.height},U={x:this.x,y:this.y};q=Math.abs(q)<0.001?0:q;let K=X5(J.padding),H=this.title.length||this.beforeBody.length||this.body.length||this.afterBody.length||this.footer.length;if(J.enabled&&H)Q.save(),Q.globalAlpha=q,this.drawBackground(U,Q,Y,J),KN(Q,J.textDirection),U.y+=K.top,this.drawTitle(U,Q,J),this.drawBody(U,Q,J),this.drawFooter(U,Q,J),BN(Q,J.textDirection),Q.restore()}getActiveElements(){return this._active||[]}setActiveElements(Q,J){let q=this._active,Y=Q.map(({datasetIndex:H,index:M})=>{let F=this.chart.getDatasetMeta(H);if(!F)throw Error("Cannot find a dataset at index "+H);return{datasetIndex:H,element:F.data[M],index:M}}),U=!xZ(q,Y),K=this._positionChanged(Y,J);if(U||K)this._active=Y,this._eventPosition=J,this._ignoreReplayEvents=!0,this.update(!0)}handleEvent(Q,J,q=!0){if(J&&this._ignoreReplayEvents)return!1;this._ignoreReplayEvents=!1;let Y=this.options,U=this._active||[],K=this._getActiveElements(Q,U,J,q),H=this._positionChanged(K,Q),M=J||!xZ(K,U)||H;if(M){if(this._active=K,Y.enabled||Y.external)this._eventPosition={x:Q.x,y:Q.y},this.update(!0,J)}return M}_getActiveElements(Q,J,q,Y){let U=this.options;if(Q.type==="mouseout")return[];if(!Y)return J.filter((H)=>this.chart.data.datasets[H.datasetIndex]&&this.chart.getDatasetMeta(H.datasetIndex).controller.getParsed(H.index)!==void 0);let K=this.chart.getElementsAtEventForMode(Q,U.mode,U,q);if(U.reverse)K.reverse();return K}_positionChanged(Q,J){let{caretX:q,caretY:Y,options:U}=this,K=iZ[U.position].call(this,Q,J);return K!==!1&&(q!==K.x||Y!==K.y)}}var V8={id:"tooltip",_element:SN,positioners:iZ,afterInit(Q,J,q){if(q)Q.tooltip=new SN({chart:Q,options:q})},beforeUpdate(Q,J,q){if(Q.tooltip)Q.tooltip.initialize(q)},reset(Q,J,q){if(Q.tooltip)Q.tooltip.initialize(q)},afterDraw(Q){let J=Q.tooltip;if(J&&J._willRender()){let q={tooltip:J};if(Q.notifyPlugins("beforeTooltipDraw",{...q,cancelable:!0})===!1)return;J.draw(Q.ctx),Q.notifyPlugins("afterTooltipDraw",q)}},afterEvent(Q,J){if(Q.tooltip){let q=J.replay;if(Q.tooltip.handleEvent(J.event,q,J.inChartArea))J.changed=!0}},defaults:{enabled:!0,external:null,position:"average",backgroundColor:"rgba(0,0,0,0.8)",titleColor:"#fff",titleFont:{weight:"bold"},titleSpacing:2,titleMarginBottom:6,titleAlign:"left",bodyColor:"#fff",bodySpacing:2,bodyFont:{},bodyAlign:"left",footerColor:"#fff",footerSpacing:2,footerMarginTop:6,footerFont:{weight:"bold"},footerAlign:"left",padding:6,caretPadding:2,caretSize:5,cornerRadius:6,boxHeight:(Q,J)=>J.bodyFont.size,boxWidth:(Q,J)=>J.bodyFont.size,multiKeyBackground:"#fff",displayColors:!0,boxPadding:0,borderColor:"rgba(0,0,0,0)",borderWidth:0,animation:{duration:400,easing:"easeOutQuart"},animations:{numbers:{type:"number",properties:["x","y","width","height","caretX","caretY"]},opacity:{easing:"linear",duration:200}},callbacks:Hz},defaultRoutes:{bodyFont:"font",footerFont:"font",titleFont:"font"},descriptors:{_scriptable:(Q)=>Q!=="filter"&&Q!=="itemSort"&&Q!=="external",_indexable:!1,callbacks:{_scriptable:!1,_indexable:!1},animation:{_fallback:!1},animations:{_fallback:"animation"}},additionalOptionScopes:["interaction"]};var ND=(Q,J,q,Y)=>{if(typeof J==="string")q=Q.push(J)-1,Y.unshift({index:q,label:J});else if(isNaN(J))q=null;return q};function KD(Q,J,q,Y){let U=Q.indexOf(J);if(U===-1)return ND(Q,J,q,Y);let K=Q.lastIndexOf(J);return U!==K?q:U}var BD=(Q,J)=>Q===null?null:y5(Math.round(Q),0,J);function bT(Q){let J=this.getLabels();if(Q>=0&&Q<J.length)return J[Q];return Q}class h4 extends T${static id="category";static defaults={ticks:{callback:bT}};constructor(Q){super(Q);this._startValue=void 0,this._valueRange=0,this._addedLabels=[]}init(Q){let J=this._addedLabels;if(J.length){let q=this.getLabels();for(let{index:Y,label:U}of J)if(q[Y]===U)q.splice(Y,1);this._addedLabels=[]}super.init(Q)}parse(Q,J){if(t0(Q))return null;let q=this.getLabels();return J=isFinite(J)&&q[J]===Q?J:KD(q,Q,h0(J,Q),this._addedLabels),BD(J,q.length-1)}determineDataLimits(){let{minDefined:Q,maxDefined:J}=this.getUserBounds(),{min:q,max:Y}=this.getMinMax(!0);if(this.options.bounds==="ticks"){if(!Q)q=0;if(!J)Y=this.getLabels().length-1}this.min=q,this.max=Y}buildTicks(){let Q=this.min,J=this.max,q=this.options.offset,Y=[],U=this.getLabels();U=Q===0&&J===U.length-1?U:U.slice(Q,J+1),this._valueRange=Math.max(U.length-(q?0:1),1),this._startValue=this.min-(q?0.5:0);for(let K=Q;K<=J;K++)Y.push({value:K});return Y}getLabelForValue(Q){return bT.call(this,Q)}configure(){if(super.configure(),!this.isHorizontal())this._reversePixels=!this._reversePixels}getPixelForValue(Q){if(typeof Q!=="number")Q=this.parse(Q);return Q===null?NaN:this.getPixelForDecimal((Q-this._startValue)/this._valueRange)}getPixelForTick(Q){let J=this.ticks;if(Q<0||Q>J.length-1)return null;return this.getPixelForValue(J[Q].value)}getValueForPixel(Q){return Math.round(this._startValue+this.getDecimalForPixel(Q)*this._valueRange)}getBasePixel(){return this.bottom}}function HD(Q,J){let q=[],Y=0.00000000000001,{bounds:U,step:K,min:H,max:M,precision:F,count:R,maxTicks:T,maxDigits:z,includeBounds:L}=Q,P=K||1,I=T-1,{min:A,max:C}=J,g=!t0(H),m=!t0(M),o=!t0(R),a=(C-A)/(z+1),s=lU((C-A)/I/P)*P,Q0,p,i,Y0;if(s<0.00000000000001&&!g&&!m)return[{value:A},{value:C}];if(Y0=Math.ceil(C/s)-Math.floor(A/s),Y0>I)s=lU(Y0*s/I/P)*P;if(!t0(F))Q0=Math.pow(10,F),s=Math.ceil(s*Q0)/Q0;if(U==="ticks")p=Math.floor(A/s)*s,i=Math.ceil(C/s)*s;else p=A,i=C;if(g&&m&&K&&_R((M-H)/K,s/1000))Y0=Math.round(Math.min((M-H)/s,T)),s=(M-H)/Y0,p=H,i=M;else if(o)p=g?H:p,i=m?M:i,Y0=R-1,s=(i-p)/Y0;else if(Y0=(i-p)/s,u9(Y0,Math.round(Y0),s/1000))Y0=Math.round(Y0);else Y0=Math.ceil(Y0);let d=Math.max(sU(s),sU(p));Q0=Math.pow(10,t0(F)?d:F),p=Math.round(p*Q0)/Q0,i=Math.round(i*Q0)/Q0;let N0=0;if(g){if(L&&p!==H){if(q.push({value:H}),p<H)N0++;if(u9(Math.round((p+N0*s)*Q0)/Q0,H,fT(H,a,Q)))N0++}else if(p<H)N0++}for(;N0<Y0;++N0){let w0=Math.round((p+N0*s)*Q0)/Q0;if(m&&w0>M)break;q.push({value:w0})}if(m&&L&&i!==M)if(q.length&&u9(q[q.length-1].value,M,fT(M,a,Q)))q[q.length-1].value=M;else q.push({value:M});else if(!m||i===M)q.push({value:i});return q}function fT(Q,J,{horizontal:q,minRotation:Y}){let U=$6(Y),K=(q?Math.sin(U):Math.cos(U))||0.001,H=0.75*J*(""+Q).length;return Math.min(J/K,H)}class eZ extends T${constructor(Q){super(Q);this.start=void 0,this.end=void 0,this._startValue=void 0,this._endValue=void 0,this._valueRange=0}parse(Q,J){if(t0(Q))return null;if((typeof Q==="number"||Q instanceof Number)&&!isFinite(+Q))return null;return+Q}handleTickRangeOptions(){let{beginAtZero:Q}=this.options,{minDefined:J,maxDefined:q}=this.getUserBounds(),{min:Y,max:U}=this,K=(M)=>Y=J?Y:M,H=(M)=>U=q?U:M;if(Q){let M=y4(Y),F=y4(U);if(M<0&&F<0)H(0);else if(M>0&&F>0)K(0)}if(Y===U){let M=U===0?1:Math.abs(U*0.05);if(H(U+M),!Q)K(Y-M)}this.min=Y,this.max=U}getTickLimit(){let Q=this.options.ticks,{maxTicksLimit:J,stepSize:q}=Q,Y;if(q){if(Y=Math.ceil(this.max/q)-Math.floor(this.min/q)+1,Y>1000)console.warn(`scales.${this.id}.ticks.stepSize: ${q} would result generating up to ${Y} ticks. Limiting to 1000.`),Y=1000}else Y=this.computeTickLimit(),J=J||11;if(J)Y=Math.min(J,Y);return Y}computeTickLimit(){return Number.POSITIVE_INFINITY}buildTicks(){let Q=this.options,J=Q.ticks,q=this.getTickLimit();q=Math.max(2,q);let Y={maxTicks:q,bounds:Q.bounds,min:Q.min,max:Q.max,precision:J.precision,step:J.stepSize,count:J.count,maxDigits:this._maxDigits(),horizontal:this.isHorizontal(),minRotation:J.minRotation||0,includeBounds:J.includeBounds!==!1},U=this._range||this,K=HD(Y,U);if(Q.bounds==="ticks")rU(K,this,"value");if(Q.reverse)K.reverse(),this.start=this.max,this.end=this.min;else this.start=this.min,this.end=this.max;return K}configure(){let Q=this.ticks,J=this.min,q=this.max;if(super.configure(),this.options.offset&&Q.length){let Y=(q-J)/Math.max(Q.length-1,1)/2;J-=Y,q+=Y}this._startValue=J,this._endValue=q,this._valueRange=q-J}getLabelForValue(Q){return $q(Q,this.chart.options.locale,this.options.ticks.format)}}class x4 extends eZ{static id="linear";static defaults={ticks:{callback:uZ.formatters.numeric}};determineDataLimits(){let{min:Q,max:J}=this.getMinMax(!0);this.min=O1(Q)?Q:0,this.max=O1(J)?J:1,this.handleTickRangeOptions()}computeTickLimit(){let Q=this.isHorizontal(),J=Q?this.width:this.height,q=$6(this.options.ticks.minRotation),Y=(Q?Math.sin(q):Math.cos(q))||0.001,U=this._resolveTickFontOptions(0);return Math.ceil(J/Math.min(40,U.lineHeight/Y))}getPixelForValue(Q){return Q===null?NaN:this.getPixelForDecimal((Q-this._startValue)/this._valueRange)}getValueForPixel(Q){return this._startValue+this.getDecimalForPixel(Q)*this._valueRange}}var $Q=(Q)=>Math.floor(e8(Q)),R$=(Q,J)=>Math.pow(10,$Q(Q)+J);function yT(Q){return Q/Math.pow(10,$Q(Q))===1}function gT(Q,J,q){let Y=Math.pow(10,q),U=Math.floor(Q/Y);return Math.ceil(J/Y)-U}function MD(Q,J){let q=J-Q,Y=$Q(q);while(gT(Q,J,Y)>10)Y++;while(gT(Q,J,Y)<10)Y--;return Math.min(Y,$Q(Q))}function FD(Q,{min:J,max:q}){J=g5(Q.min,J);let Y=[],U=$Q(J),K=MD(J,q),H=K<0?Math.pow(10,Math.abs(K)):1,M=Math.pow(10,K),F=U>K?Math.pow(10,U):0,R=Math.round((J-F)*H)/H,T=Math.floor((J-F)/M/10)*M*10,z=Math.floor((R-T)/Math.pow(10,K)),L=g5(Q.min,Math.round((F+T+z*Math.pow(10,K))*H)/H);while(L<q){if(Y.push({value:L,major:yT(L),significand:z}),z>=10)z=z<15?15:20;else z++;if(z>=20)K++,z=2,H=K>=0?1:H;L=Math.round((F+T+z*Math.pow(10,K))*H)/H}let P=g5(Q.max,L);return Y.push({value:P,major:yT(P),significand:z}),Y}class WD extends T${static id="logarithmic";static defaults={ticks:{callback:uZ.formatters.logarithmic,major:{enabled:!0}}};constructor(Q){super(Q);this.start=void 0,this.end=void 0,this._startValue=void 0,this._valueRange=0}parse(Q,J){let q=eZ.prototype.parse.apply(this,[Q,J]);if(q===0){this._zero=!0;return}return O1(q)&&q>0?q:null}determineDataLimits(){let{min:Q,max:J}=this.getMinMax(!0);if(this.min=O1(Q)?Math.max(0,Q):null,this.max=O1(J)?Math.max(0,J):null,this.options.beginAtZero)this._zero=!0;if(this._zero&&this.min!==this._suggestedMin&&!O1(this._userMin))this.min=Q===R$(this.min,0)?R$(this.min,-1):R$(this.min,0);this.handleTickRangeOptions()}handleTickRangeOptions(){let{minDefined:Q,maxDefined:J}=this.getUserBounds(),q=this.min,Y=this.max,U=(H)=>q=Q?q:H,K=(H)=>Y=J?Y:H;if(q===Y)if(q<=0)U(1),K(10);else U(R$(q,-1)),K(R$(Y,1));if(q<=0)U(R$(Y,-1));if(Y<=0)K(R$(q,1));this.min=q,this.max=Y}buildTicks(){let Q=this.options,J={min:this._userMin,max:this._userMax},q=FD(J,this);if(Q.bounds==="ticks")rU(q,this,"value");if(Q.reverse)q.reverse(),this.start=this.max,this.end=this.min;else this.start=this.min,this.end=this.max;return q}getLabelForValue(Q){return Q===void 0?"0":$q(Q,this.chart.options.locale,this.options.ticks.format)}configure(){let Q=this.min;super.configure(),this._startValue=e8(Q),this._valueRange=e8(this.max)-e8(Q)}getPixelForValue(Q){if(Q===void 0||Q===0)Q=this.min;if(Q===null||isNaN(Q))return NaN;return this.getPixelForDecimal(Q===this.min?0:(e8(Q)-this._startValue)/this._valueRange)}getValueForPixel(Q){let J=this.getDecimalForPixel(Q);return Math.pow(10,this._startValue+J*this._valueRange)}}function vN(Q){let J=Q.ticks;if(J.display&&Q.display){let q=X5(J.backdropPadding);return h0(J.font&&J.font.size,D1.font.size)+q.height}return 0}function wD(Q,J,q){return q=z1(q)?q:[q],{w:kR(Q,J.string,q),h:q.length*J.lineHeight}}function hT(Q,J,q,Y,U){if(Q===Y||Q===U)return{start:J-q/2,end:J+q/2};else if(Q<Y||Q>U)return{start:J-q,end:J};return{start:J,end:J+q}}function RD(Q){let J={l:Q.left+Q._padding.left,r:Q.right-Q._padding.right,t:Q.top+Q._padding.top,b:Q.bottom-Q._padding.bottom},q=Object.assign({},J),Y=[],U=[],K=Q._pointLabels.length,H=Q.options.pointLabels,M=H.centerPointLabels?b1/K:0;for(let F=0;F<K;F++){let R=H.setContext(Q.getPointLabelContext(F));U[F]=R.padding;let T=Q.getPointPosition(F,Q.drawingArea+U[F],M),z=p1(R.font),L=wD(Q.ctx,z,Q._pointLabels[F]);Y[F]=L;let P=k5(Q.getIndexAngle(F)+M),I=Math.round(iJ(P)),A=hT(I,T.x,L.w,0,180),C=hT(I,T.y,L.h,90,270);TD(q,J,P,A,C)}Q.setCenterPoint(J.l-q.l,q.r-J.r,J.t-q.t,q.b-J.b),Q._pointLabelItems=LD(Q,Y,U)}function TD(Q,J,q,Y,U){let K=Math.abs(Math.sin(q)),H=Math.abs(Math.cos(q)),M=0,F=0;if(Y.start<J.l)M=(J.l-Y.start)/K,Q.l=Math.min(Q.l,J.l-M);else if(Y.end>J.r)M=(Y.end-J.r)/K,Q.r=Math.max(Q.r,J.r+M);if(U.start<J.t)F=(J.t-U.start)/H,Q.t=Math.min(Q.t,J.t-F);else if(U.end>J.b)F=(U.end-J.b)/H,Q.b=Math.max(Q.b,J.b+F)}function zD(Q,J,q){let Y=Q.drawingArea,{extra:U,additionalAngle:K,padding:H,size:M}=q,F=Q.getPointPosition(J,Y+U+H,K),R=Math.round(iJ(k5(F.angle+b5))),T=PD(F.y,M.h,R),z=VD(R),L=ED(F.x,M.w,z);return{visible:!0,x:F.x,y:T,textAlign:z,left:L,top:T,right:L+M.w,bottom:T+M.h}}function _D(Q,J){if(!J)return!0;let{left:q,top:Y,right:U,bottom:K}=Q;return!(w8({x:q,y:Y},J)||w8({x:q,y:K},J)||w8({x:U,y:Y},J)||w8({x:U,y:K},J))}function LD(Q,J,q){let Y=[],U=Q._pointLabels.length,K=Q.options,{centerPointLabels:H,display:M}=K.pointLabels,F={extra:vN(K)/2,additionalAngle:H?b1/U:0},R;for(let T=0;T<U;T++){F.padding=q[T],F.size=J[T];let z=zD(Q,T,F);if(Y.push(z),M==="auto"){if(z.visible=_D(z,R),z.visible)R=z}}return Y}function VD(Q){if(Q===0||Q===180)return"center";else if(Q<180)return"left";return"right"}function ED(Q,J,q){if(q==="right")Q-=J;else if(q==="center")Q-=J/2;return Q}function PD(Q,J,q){if(q===90||q===270)Q-=J/2;else if(q>270||q<90)Q-=J;return Q}function CD(Q,J,q){let{left:Y,top:U,right:K,bottom:H}=q,{backdropColor:M}=J;if(!t0(M)){let F=K2(J.borderRadius),R=X5(J.backdropPadding);Q.fillStyle=M;let T=Y-R.left,z=U-R.top,L=K-Y+R.width,P=H-U+R.height;if(Object.values(F).some((I)=>I!==0))Q.beginPath(),d9(Q,{x:T,y:z,w:L,h:P,radius:F}),Q.fill();else Q.fillRect(T,z,L,P)}}function ID(Q,J){let{ctx:q,options:{pointLabels:Y}}=Q;for(let U=J-1;U>=0;U--){let K=Q._pointLabelItems[U];if(!K.visible)continue;let H=Y.setContext(Q.getPointLabelContext(U));CD(q,H,K);let M=p1(H.font),{x:F,y:R,textAlign:T}=K;N2(q,Q._pointLabels[U],F,R+M.lineHeight/2,M,{color:H.color,textAlign:T,textBaseline:"middle"})}}function Mz(Q,J,q,Y){let{ctx:U}=Q;if(q)U.arc(Q.xCenter,Q.yCenter,J,0,f5);else{let K=Q.getPointPosition(0,J);U.moveTo(K.x,K.y);for(let H=1;H<Y;H++)K=Q.getPointPosition(H,J),U.lineTo(K.x,K.y)}}function OD(Q,J,q,Y,U){let K=Q.ctx,H=J.circular,{color:M,lineWidth:F}=J;if(!H&&!Y||!M||!F||q<0)return;K.save(),K.strokeStyle=M,K.lineWidth=F,K.setLineDash(U.dash||[]),K.lineDashOffset=U.dashOffset,K.beginPath(),Mz(Q,q,H,Y),K.closePath(),K.stroke(),K.restore()}function DD(Q,J,q){return Q6(Q,{label:q,index:J,type:"pointLabel"})}class jD extends eZ{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:uZ.formatters.numeric},pointLabels:{backdropColor:void 0,backdropPadding:2,display:!0,font:{size:10},callback(Q){return Q},padding:5,centerPointLabels:!1}};static defaultRoutes={"angleLines.color":"borderColor","pointLabels.color":"color","ticks.color":"color"};static descriptors={angleLines:{_fallback:"grid"}};constructor(Q){super(Q);this.xCenter=void 0,this.yCenter=void 0,this.drawingArea=void 0,this._pointLabels=[],this._pointLabelItems=[]}setDimensions(){let Q=this._padding=X5(vN(this.options)/2),J=this.width=this.maxWidth-Q.width,q=this.height=this.maxHeight-Q.height;this.xCenter=Math.floor(this.left+J/2+Q.left),this.yCenter=Math.floor(this.top+q/2+Q.top),this.drawingArea=Math.floor(Math.min(J,q)/2)}determineDataLimits(){let{min:Q,max:J}=this.getMinMax(!1);this.min=O1(Q)&&!isNaN(Q)?Q:0,this.max=O1(J)&&!isNaN(J)?J:0,this.handleTickRangeOptions()}computeTickLimit(){return Math.ceil(this.drawingArea/vN(this.options))}generateTickLabels(Q){eZ.prototype.generateTickLabels.call(this,Q),this._pointLabels=this.getLabels().map((J,q)=>{let Y=W1(this.options.pointLabels.callback,[J,q],this);return Y||Y===0?Y:""}).filter((J,q)=>this.chart.getDataVisibility(q))}fit(){let Q=this.options;if(Q.display&&Q.pointLabels.display)RD(this);else this.setCenterPoint(0,0,0,0)}setCenterPoint(Q,J,q,Y){this.xCenter+=Math.floor((Q-J)/2),this.yCenter+=Math.floor((q-Y)/2),this.drawingArea-=Math.min(this.drawingArea/2,Math.max(Q,J,q,Y))}getIndexAngle(Q){let J=f5/(this._pointLabels.length||1),q=this.options.startAngle||0;return k5(Q*J+$6(q))}getDistanceFromCenterForValue(Q){if(t0(Q))return NaN;let J=this.drawingArea/(this.max-this.min);if(this.options.reverse)return(this.max-Q)*J;return(Q-this.min)*J}getValueForDistanceFromCenter(Q){if(t0(Q))return NaN;let J=Q/(this.drawingArea/(this.max-this.min));return this.options.reverse?this.max-J:this.min+J}getPointLabelContext(Q){let J=this._pointLabels||[];if(Q>=0&&Q<J.length){let q=J[Q];return DD(this.getContext(),Q,q)}}getPointPosition(Q,J,q=0){let Y=this.getIndexAngle(Q)-b5+q;return{x:Math.cos(Y)*J+this.xCenter,y:Math.sin(Y)*J+this.yCenter,angle:Y}}getPointPositionForValue(Q,J){return this.getPointPosition(Q,this.getDistanceFromCenterForValue(J))}getBasePosition(Q){return this.getPointPositionForValue(Q||0,this.getBaseValue())}getPointLabelPosition(Q){let{left:J,top:q,right:Y,bottom:U}=this._pointLabelItems[Q];return{left:J,top:q,right:Y,bottom:U}}drawBackground(){let{backgroundColor:Q,grid:{circular:J}}=this.options;if(Q){let q=this.ctx;q.save(),q.beginPath(),Mz(this,this.getDistanceFromCenterForValue(this._endValue),J,this._pointLabels.length),q.closePath(),q.fillStyle=Q,q.fill(),q.restore()}}drawGrid(){let Q=this.ctx,J=this.options,{angleLines:q,grid:Y,border:U}=J,K=this._pointLabels.length,H,M,F;if(J.pointLabels.display)ID(this,K);if(Y.display)this.ticks.forEach((R,T)=>{if(T!==0||T===0&&this.min<0){M=this.getDistanceFromCenterForValue(R.value);let z=this.getContext(T),L=Y.setContext(z),P=U.setContext(z);OD(this,L,M,K,P)}});if(q.display){Q.save();for(H=K-1;H>=0;H--){let R=q.setContext(this.getPointLabelContext(H)),{color:T,lineWidth:z}=R;if(!z||!T)continue;Q.lineWidth=z,Q.strokeStyle=T,Q.setLineDash(R.borderDash),Q.lineDashOffset=R.borderDashOffset,M=this.getDistanceFromCenterForValue(J.reverse?this.min:this.max),F=this.getPointPosition(H,M),Q.beginPath(),Q.moveTo(this.xCenter,this.yCenter),Q.lineTo(F.x,F.y),Q.stroke()}Q.restore()}}drawBorder(){}drawLabels(){let Q=this.ctx,J=this.options,q=J.ticks;if(!q.display)return;let Y=this.getIndexAngle(0),U,K;Q.save(),Q.translate(this.xCenter,this.yCenter),Q.rotate(Y),Q.textAlign="center",Q.textBaseline="middle",this.ticks.forEach((H,M)=>{if(M===0&&this.min>=0&&!J.reverse)return;let F=q.setContext(this.getContext(M)),R=p1(F.font);if(U=this.getDistanceFromCenterForValue(this.ticks[M].value),F.showLabelBackdrop){Q.font=R.string,K=Q.measureText(H.label).width,Q.fillStyle=F.backdropColor;let T=X5(F.backdropPadding);Q.fillRect(-K/2-T.left,-U-R.size/2-T.top,K+T.width,R.size+T.height)}N2(Q,H.label,0,-U,R,{color:F.color,strokeColor:F.textStrokeColor,strokeWidth:F.textStrokeWidth})}),Q.restore()}drawTitle(){}}var Rq={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}},x5=Object.keys(Rq);function xT(Q,J){return Q-J}function uT(Q,J){if(t0(J))return null;let q=Q._adapter,{parser:Y,round:U,isoWeekday:K}=Q._parseOpts,H=J;if(typeof Y==="function")H=Y(H);if(!O1(H))H=typeof Y==="string"?q.parse(H,Y):q.parse(H);if(H===null)return null;if(U)H=U==="week"&&(m9(K)||K===!0)?q.startOf(H,"isoWeek",K):q.startOf(H,U);return+H}function mT(Q,J,q,Y){let U=x5.length;for(let K=x5.indexOf(Q);K<U-1;++K){let H=Rq[x5[K]],M=H.steps?H.steps:Number.MAX_SAFE_INTEGER;if(H.common&&Math.ceil((q-J)/(M*H.size))<=Y)return x5[K]}return x5[U-1]}function AD(Q,J,q,Y,U){for(let K=x5.length-1;K>=x5.indexOf(q);K--){let H=x5[K];if(Rq[H].common&&Q._adapter.diff(U,Y,H)>=J-1)return H}return x5[q?x5.indexOf(q):0]}function SD(Q){for(let J=x5.indexOf(Q)+1,q=x5.length;J<q;++J)if(Rq[x5[J]].common)return x5[J]}function dT(Q,J,q){if(!q)Q[J]=!0;else if(q.length){let{lo:Y,hi:U}=tJ(q,J),K=q[Y]>=J?q[Y]:q[U];Q[K]=!0}}function vD(Q,J,q,Y){let U=Q._adapter,K=+U.startOf(J[0].value,Y),H=J[J.length-1].value,M,F;for(M=K;M<=H;M=+U.add(M,1,Y))if(F=q[M],F>=0)J[F].major=!0;return J}function pT(Q,J,q){let Y=[],U={},K=J.length,H,M;for(H=0;H<K;++H)M=J[H],U[M]=H,Y.push({value:M,major:!1});return K===0||!q?Y:vD(Q,Y,U,q)}class kN extends T${static id="time";static defaults={bounds:"data",adapters:{},time:{parser:!1,unit:!1,round:!1,isoWeekday:!1,minUnit:"millisecond",displayFormats:{}},ticks:{source:"auto",callback:!1,major:{enabled:!1}}};constructor(Q){super(Q);this._cache={data:[],labels:[],all:[]},this._unit="day",this._majorUnit=void 0,this._offsets={},this._normalized=!1,this._parseOpts=void 0}init(Q,J={}){let q=Q.time||(Q.time={}),Y=this._adapter=new MI._date(Q.adapters.date);Y.init(J),h9(q.displayFormats,Y.formats()),this._parseOpts={parser:q.parser,round:q.round,isoWeekday:q.isoWeekday},super.init(Q),this._normalized=J.normalized}parse(Q,J){if(Q===void 0)return null;return uT(this,Q)}beforeLayout(){super.beforeLayout(),this._cache={data:[],labels:[],all:[]}}determineDataLimits(){let Q=this.options,J=this._adapter,q=Q.time.unit||"day",{min:Y,max:U,minDefined:K,maxDefined:H}=this.getUserBounds();function M(F){if(!K&&!isNaN(F.min))Y=Math.min(Y,F.min);if(!H&&!isNaN(F.max))U=Math.max(U,F.max)}if(!K||!H){if(M(this._getLabelBounds()),Q.bounds!=="ticks"||Q.ticks.source!=="labels")M(this.getMinMax(!1))}Y=O1(Y)&&!isNaN(Y)?Y:+J.startOf(Date.now(),q),U=O1(U)&&!isNaN(U)?U:+J.endOf(Date.now(),q)+1,this.min=Math.min(Y,U-1),this.max=Math.max(Y+1,U)}_getLabelBounds(){let Q=this.getLabelTimestamps(),J=Number.POSITIVE_INFINITY,q=Number.NEGATIVE_INFINITY;if(Q.length)J=Q[0],q=Q[Q.length-1];return{min:J,max:q}}buildTicks(){let Q=this.options,J=Q.time,q=Q.ticks,Y=q.source==="labels"?this.getLabelTimestamps():this._generate();if(Q.bounds==="ticks"&&Y.length)this.min=this._userMin||Y[0],this.max=this._userMax||Y[Y.length-1];let U=this.min,K=this.max,H=PR(Y,U,K);if(this._unit=J.unit||(q.autoSkip?mT(J.minUnit,this.min,this.max,this._getLabelCapacity(U)):AD(this,H.length,J.minUnit,this.min,this.max)),this._majorUnit=!q.major.enabled||this._unit==="year"?void 0:SD(this._unit),this.initOffsets(Y),Q.reverse)H.reverse();return pT(this,H,this._majorUnit)}afterAutoSkip(){if(this.options.offsetAfterAutoskip)this.initOffsets(this.ticks.map((Q)=>+Q.value))}initOffsets(Q=[]){let J=0,q=0,Y,U;if(this.options.offset&&Q.length){if(Y=this.getDecimalForValue(Q[0]),Q.length===1)J=1-Y;else J=(this.getDecimalForValue(Q[1])-Y)/2;if(U=this.getDecimalForValue(Q[Q.length-1]),Q.length===1)q=U;else q=(U-this.getDecimalForValue(Q[Q.length-2]))/2}let K=Q.length<3?0.5:0.25;J=y5(J,0,K),q=y5(q,0,K),this._offsets={start:J,end:q,factor:1/(J+1+q)}}_generate(){let Q=this._adapter,J=this.min,q=this.max,Y=this.options,U=Y.time,K=U.unit||mT(U.minUnit,J,q,this._getLabelCapacity(J)),H=h0(Y.ticks.stepSize,1),M=K==="week"?U.isoWeekday:!1,F=m9(M)||M===!0,R={},T=J,z,L;if(F)T=+Q.startOf(T,"isoWeek",M);if(T=+Q.startOf(T,F?"day":K),Q.diff(q,J,K)>1e5*H)throw Error(J+" and "+q+" are too far apart with stepSize of "+H+" "+K);let P=Y.ticks.source==="data"&&this.getDataTimestamps();for(z=T,L=0;z<q;z=+Q.add(z,H,K),L++)dT(R,z,P);if(z===q||Y.bounds==="ticks"||L===1)dT(R,z,P);return Object.keys(R).sort(xT).map((I)=>+I)}getLabelForValue(Q){let J=this._adapter,q=this.options.time;if(q.tooltipFormat)return J.format(Q,q.tooltipFormat);return J.format(Q,q.displayFormats.datetime)}format(Q,J){let Y=this.options.time.displayFormats,U=this._unit,K=J||Y[U];return this._adapter.format(Q,K)}_tickFormatFunction(Q,J,q,Y){let U=this.options,K=U.ticks.callback;if(K)return W1(K,[Q,J,q],this);let H=U.time.displayFormats,M=this._unit,F=this._majorUnit,R=M&&H[M],T=F&&H[F],z=q[J],L=F&&T&&z&&z.major;return this._adapter.format(Q,Y||(L?T:R))}generateTickLabels(Q){let J,q,Y;for(J=0,q=Q.length;J<q;++J)Y=Q[J],Y.label=this._tickFormatFunction(Y.value,J,Q)}getDecimalForValue(Q){return Q===null?NaN:(Q-this.min)/(this.max-this.min)}getPixelForValue(Q){let J=this._offsets,q=this.getDecimalForValue(Q);return this.getPixelForDecimal((J.start+q)*J.factor)}getValueForPixel(Q){let J=this._offsets,q=this.getDecimalForPixel(Q)/J.factor-J.end;return this.min+q*(this.max-this.min)}_getLabelSize(Q){let J=this.options.ticks,q=this.ctx.measureText(Q).width,Y=$6(this.isHorizontal()?J.maxRotation:J.minRotation),U=Math.cos(Y),K=Math.sin(Y),H=this._resolveTickFontOptions(0).size;return{w:q*U+H*K,h:q*K+H*U}}_getLabelCapacity(Q){let J=this.options.time,q=J.displayFormats,Y=q[J.unit]||q.millisecond,U=this._tickFormatFunction(Q,0,pT(this,[Q],this._majorUnit),Y),K=this._getLabelSize(U),H=Math.floor(this.isHorizontal()?this.width/K.w:this.height/K.h)-1;return H>0?H:1}getDataTimestamps(){let Q=this._cache.data||[],J,q;if(Q.length)return Q;let Y=this.getMatchingVisibleMetas();if(this._normalized&&Y.length)return this._cache.data=Y[0].controller.getAllParsedValues(this);for(J=0,q=Y.length;J<q;++J)Q=Q.concat(Y[J].controller.getAllParsedValues(this));return this._cache.data=this.normalize(Q)}getLabelTimestamps(){let Q=this._cache.labels||[],J,q;if(Q.length)return Q;let Y=this.getLabels();for(J=0,q=Y.length;J<q;++J)Q.push(uT(this,Y[J]));return this._cache.labels=this._normalized?Q:this.normalize(Q)}normalize(Q){return aU(Q.sort(xT))}}function Bq(Q,J,q){let Y=0,U=Q.length-1,K,H,M,F;if(q){if(J>=Q[Y].pos&&J<=Q[U].pos)({lo:Y,hi:U}=q2(Q,"pos",J));({pos:K,time:M}=Q[Y]),{pos:H,time:F}=Q[U]}else{if(J>=Q[Y].time&&J<=Q[U].time)({lo:Y,hi:U}=q2(Q,"time",J));({time:K,pos:M}=Q[Y]),{time:H,pos:F}=Q[U]}let R=H-K;return R?M+(F-M)*(J-K)/R:M}class kD extends kN{static id="timeseries";static defaults=kN.defaults;constructor(Q){super(Q);this._table=[],this._minPos=void 0,this._tableRange=void 0}initOffsets(){let Q=this._getTimestampsForTable(),J=this._table=this.buildLookupTable(Q);this._minPos=Bq(J,this.min),this._tableRange=Bq(J,this.max)-this._minPos,super.initOffsets(Q)}buildLookupTable(Q){let{min:J,max:q}=this,Y=[],U=[],K,H,M,F,R;for(K=0,H=Q.length;K<H;++K)if(F=Q[K],F>=J&&F<=q)Y.push(F);if(Y.length<2)return[{time:J,pos:0},{time:q,pos:1}];for(K=0,H=Y.length;K<H;++K)if(R=Y[K+1],M=Y[K-1],F=Y[K],Math.round((R+M)/2)!==F)U.push({time:F,pos:K/(H-1)});return U}_generate(){let Q=this.min,J=this.max,q=super.getDataTimestamps();if(!q.includes(Q)||!q.length)q.splice(0,0,Q);if(!q.includes(J)||q.length===1)q.push(J);return q.sort((Y,U)=>Y-U)}_getTimestampsForTable(){let Q=this._cache.all||[];if(Q.length)return Q;let J=this.getDataTimestamps(),q=this.getLabelTimestamps();if(J.length&&q.length)Q=this.normalize(J.concat(q));else Q=J.length?J:q;return Q=this._cache.all=Q,Q}getDecimalForValue(Q){return(Bq(this._table,Q)-this._minPos)/this._tableRange}getValueForPixel(Q){let J=this._offsets,q=this.getDecimalForPixel(Q)/J.factor-J.end;return Bq(this._table,q*this._tableRange+this._minPos,!0)}}var qQ=R0(e1(),1);var mN=R0(Fz(),1),q4=R0(e1(),1);var wz="label";function Wz(Q,J){if(typeof Q==="function")Q(J);else if(Q)Q.current=J}function fD(Q,J){let q=Q.options;if(q&&J)Object.assign(q,J)}function Rz(Q,J){Q.labels=J}function Tz(Q,J,q=wz){let Y=[];Q.datasets=J.map((U)=>{let K=Q.datasets.find((H)=>H[q]===U[q]);if(!K||!U.data||Y.includes(K))return{...U};return Y.push(K),Object.assign(K,U),K})}function yD(Q,J=wz){let q={labels:[],datasets:[]};return Rz(q,Q.labels),Tz(q,Q.datasets,J),q}function gD(Q,J){let{height:q=150,width:Y=300,redraw:U=!1,datasetIdKey:K,type:H,data:M,options:F,plugins:R=[],fallbackContent:T,updateMode:z,...L}=Q,P=q4.useRef(null),I=q4.useRef(null),A=()=>{if(!P.current)return;I.current=new P5(P.current,{type:H,data:yD(M,K),options:F&&{...F},plugins:R}),Wz(J,I.current)},C=()=>{if(Wz(J,null),I.current)I.current.destroy(),I.current=null};return q4.useEffect(()=>{if(!U&&I.current&&F)fD(I.current,F)},[U,F]),q4.useEffect(()=>{if(!U&&I.current)Rz(I.current.config.data,M.labels)},[U,M.labels]),q4.useEffect(()=>{if(!U&&I.current&&M.datasets)Tz(I.current.config.data,M.datasets,K)},[U,M.datasets]),q4.useEffect(()=>{if(!I.current)return;if(U)C(),setTimeout(A);else I.current.update(z)},[U,F,M.labels,M.datasets,z]),q4.useEffect(()=>{if(!I.current)return;C(),setTimeout(A)},[H]),q4.useEffect(()=>{return A(),()=>C()},[]),mN.jsx("canvas",{ref:P,role:"img",height:q,width:Y,...L,children:T})}var hD=q4.forwardRef(gD);function zz(Q,J){return P5.register(J),q4.forwardRef((q,Y)=>mN.jsx(hD,{...q,ref:Y,type:Q}))}var E4=zz("line",yN),Tq=zz("bar",fN);var zq=R0(e1(),1),_z="(prefers-color-scheme: dark)";function xD(){if(typeof window>"u")return"light";return window.matchMedia(_z).matches?"dark":"light"}function E8(){let[Q,J]=zq.useState(()=>xD());return zq.useEffect(()=>{let q=window.matchMedia(_z),Y=()=>{J(q.matches?"dark":"light")};return Y(),q.addEventListener("change",Y),()=>q.removeEventListener("change",Y)},[]),Q}var uD=Math.pow(10,8)*24*60*60*1000,Fv=-uD,_q=604800000,Lz=86400000;var GQ=43200,dN=1440;var pN=Symbol.for("constructDateFrom");function F5(Q,J){if(typeof Q==="function")return Q(J);if(Q&&typeof Q==="object"&&pN in Q)return Q[pN](J);if(Q instanceof Date)return new Q.constructor(J);return new Date(J)}function e0(Q,J){return F5(J||Q,Q)}var mD={};function P8(){return mD}function X6(Q,J){let q=P8(),Y=J?.weekStartsOn??J?.locale?.options?.weekStartsOn??q.weekStartsOn??q.locale?.options?.weekStartsOn??0,U=e0(Q,J?.in),K=U.getDay(),H=(K<Y?7:0)+K-Y;return U.setDate(U.getDate()-H),U.setHours(0,0,0,0),U}function _$(Q,J){return X6(Q,{...J,weekStartsOn:1})}function Lq(Q,J){let q=e0(Q,J?.in),Y=q.getFullYear(),U=F5(q,0);U.setFullYear(Y+1,0,4),U.setHours(0,0,0,0);let K=_$(U),H=F5(q,0);H.setFullYear(Y,0,4),H.setHours(0,0,0,0);let M=_$(H);if(q.getTime()>=K.getTime())return Y+1;else if(q.getTime()>=M.getTime())return Y;else return Y-1}function c9(Q){let J=e0(Q),q=new Date(Date.UTC(J.getFullYear(),J.getMonth(),J.getDate(),J.getHours(),J.getMinutes(),J.getSeconds(),J.getMilliseconds()));return q.setUTCFullYear(J.getFullYear()),+Q-+q}function M2(Q,...J){let q=F5.bind(null,Q||J.find((Y)=>typeof Y==="object"));return J.map(q)}function cN(Q,J){let q=e0(Q,J?.in);return q.setHours(0,0,0,0),q}function Vz(Q,J,q){let[Y,U]=M2(q?.in,Q,J),K=cN(Y),H=cN(U),M=+K-c9(K),F=+H-c9(H);return Math.round((M-F)/Lz)}function Ez(Q,J){let q=Lq(Q,J),Y=F5(J?.in||Q,0);return Y.setFullYear(q,0,4),Y.setHours(0,0,0,0),_$(Y)}function l9(Q,J){let q=+e0(Q)-+e0(J);if(q<0)return-1;else if(q>0)return 1;return q}function Pz(Q){return F5(Q,Date.now())}function Cz(Q){return Q instanceof Date||typeof Q==="object"&&Object.prototype.toString.call(Q)==="[object Date]"}function Iz(Q){return!(!Cz(Q)&&typeof Q!=="number"||isNaN(+e0(Q)))}function Oz(Q,J,q){let[Y,U]=M2(q?.in,Q,J),K=Y.getFullYear()-U.getFullYear(),H=Y.getMonth()-U.getMonth();return K*12+H}function Dz(Q){return(J)=>{let Y=(Q?Math[Q]:Math.trunc)(J);return Y===0?0:Y}}function jz(Q,J){return+e0(Q)-+e0(J)}function Az(Q,J){let q=e0(Q,J?.in);return q.setHours(23,59,59,999),q}function Sz(Q,J){let q=e0(Q,J?.in),Y=q.getMonth();return q.setFullYear(q.getFullYear(),Y+1,0),q.setHours(23,59,59,999),q}function vz(Q,J){let q=e0(Q,J?.in);return+Az(q,J)===+Sz(q,J)}function kz(Q,J,q){let[Y,U,K]=M2(q?.in,Q,Q,J),H=l9(U,K),M=Math.abs(Oz(U,K));if(M<1)return 0;if(U.getMonth()===1&&U.getDate()>27)U.setDate(30);U.setMonth(U.getMonth()-H*M);let F=l9(U,K)===-H;if(vz(Y)&&M===1&&l9(Y,K)===1)F=!1;let R=H*(M-+F);return R===0?0:R}function bz(Q,J,q){let Y=jz(Q,J)/1000;return Dz(q?.roundingMethod)(Y)}function fz(Q,J){let q=e0(Q,J?.in);return q.setFullYear(q.getFullYear(),0,1),q.setHours(0,0,0,0),q}var dD={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},yz=(Q,J,q)=>{let Y,U=dD[Q];if(typeof U==="string")Y=U;else if(J===1)Y=U.one;else Y=U.other.replace("{{count}}",J.toString());if(q?.addSuffix)if(q.comparison&&q.comparison>0)return"in "+Y;else return Y+" ago";return Y};function Vq(Q){return(J={})=>{let q=J.width?String(J.width):Q.defaultWidth;return Q.formats[q]||Q.formats[Q.defaultWidth]}}var pD={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},cD={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},lD={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},gz={date:Vq({formats:pD,defaultWidth:"full"}),time:Vq({formats:cD,defaultWidth:"full"}),dateTime:Vq({formats:lD,defaultWidth:"full"})};var rD={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},hz=(Q,J,q,Y)=>rD[Q];function r9(Q){return(J,q)=>{let Y=q?.context?String(q.context):"standalone",U;if(Y==="formatting"&&Q.formattingValues){let H=Q.defaultFormattingWidth||Q.defaultWidth,M=q?.width?String(q.width):H;U=Q.formattingValues[M]||Q.formattingValues[H]}else{let H=Q.defaultWidth,M=q?.width?String(q.width):Q.defaultWidth;U=Q.values[M]||Q.values[H]}let K=Q.argumentCallback?Q.argumentCallback(J):J;return U[K]}}var sD={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},nD={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},oD={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},aD={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},iD={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},tD={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},eD=(Q,J)=>{let q=Number(Q),Y=q%100;if(Y>20||Y<10)switch(Y%10){case 1:return q+"st";case 2:return q+"nd";case 3:return q+"rd"}return q+"th"},xz={ordinalNumber:eD,era:r9({values:sD,defaultWidth:"wide"}),quarter:r9({values:nD,defaultWidth:"wide",argumentCallback:(Q)=>Q-1}),month:r9({values:oD,defaultWidth:"wide"}),day:r9({values:aD,defaultWidth:"wide"}),dayPeriod:r9({values:iD,defaultWidth:"wide",formattingValues:tD,defaultFormattingWidth:"wide"})};function s9(Q){return(J,q={})=>{let Y=q.width,U=Y&&Q.matchPatterns[Y]||Q.matchPatterns[Q.defaultMatchWidth],K=J.match(U);if(!K)return null;let H=K[0],M=Y&&Q.parsePatterns[Y]||Q.parsePatterns[Q.defaultParseWidth],F=Array.isArray(M)?Zj(M,(z)=>z.test(H)):$j(M,(z)=>z.test(H)),R;R=Q.valueCallback?Q.valueCallback(F):F,R=q.valueCallback?q.valueCallback(R):R;let T=J.slice(H.length);return{value:R,rest:T}}}function $j(Q,J){for(let q in Q)if(Object.prototype.hasOwnProperty.call(Q,q)&&J(Q[q]))return q;return}function Zj(Q,J){for(let q=0;q<Q.length;q++)if(J(Q[q]))return q;return}function uz(Q){return(J,q={})=>{let Y=J.match(Q.matchPattern);if(!Y)return null;let U=Y[0],K=J.match(Q.parsePattern);if(!K)return null;let H=Q.valueCallback?Q.valueCallback(K[0]):K[0];H=q.valueCallback?q.valueCallback(H):H;let M=J.slice(U.length);return{value:H,rest:M}}}var Qj=/^(\d+)(th|st|nd|rd)?/i,Gj=/\d+/i,Jj={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},qj={any:[/^b/i,/^(a|c)/i]},Xj={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},Yj={any:[/1/i,/2/i,/3/i,/4/i]},Uj={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},Nj={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},Kj={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},Bj={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},Hj={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},Mj={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},mz={ordinalNumber:uz({matchPattern:Qj,parsePattern:Gj,valueCallback:(Q)=>parseInt(Q,10)}),era:s9({matchPatterns:Jj,defaultMatchWidth:"wide",parsePatterns:qj,defaultParseWidth:"any"}),quarter:s9({matchPatterns:Xj,defaultMatchWidth:"wide",parsePatterns:Yj,defaultParseWidth:"any",valueCallback:(Q)=>Q+1}),month:s9({matchPatterns:Uj,defaultMatchWidth:"wide",parsePatterns:Nj,defaultParseWidth:"any"}),day:s9({matchPatterns:Kj,defaultMatchWidth:"wide",parsePatterns:Bj,defaultParseWidth:"any"}),dayPeriod:s9({matchPatterns:Hj,defaultMatchWidth:"any",parsePatterns:Mj,defaultParseWidth:"any"})};var JQ={code:"en-US",formatDistance:yz,formatLong:gz,formatRelative:hz,localize:xz,match:mz,options:{weekStartsOn:0,firstWeekContainsDate:1}};function dz(Q,J){let q=e0(Q,J?.in);return Vz(q,fz(q))+1}function pz(Q,J){let q=e0(Q,J?.in),Y=+_$(q)-+Ez(q);return Math.round(Y/_q)+1}function Eq(Q,J){let q=e0(Q,J?.in),Y=q.getFullYear(),U=P8(),K=J?.firstWeekContainsDate??J?.locale?.options?.firstWeekContainsDate??U.firstWeekContainsDate??U.locale?.options?.firstWeekContainsDate??1,H=F5(J?.in||Q,0);H.setFullYear(Y+1,0,K),H.setHours(0,0,0,0);let M=X6(H,J),F=F5(J?.in||Q,0);F.setFullYear(Y,0,K),F.setHours(0,0,0,0);let R=X6(F,J);if(+q>=+M)return Y+1;else if(+q>=+R)return Y;else return Y-1}function cz(Q,J){let q=P8(),Y=J?.firstWeekContainsDate??J?.locale?.options?.firstWeekContainsDate??q.firstWeekContainsDate??q.locale?.options?.firstWeekContainsDate??1,U=Eq(Q,J),K=F5(J?.in||Q,0);return K.setFullYear(U,0,Y),K.setHours(0,0,0,0),X6(K,J)}function lz(Q,J){let q=e0(Q,J?.in),Y=+X6(q,J)-+cz(q,J);return Math.round(Y/_q)+1}function Q1(Q,J){let q=Q<0?"-":"",Y=Math.abs(Q).toString().padStart(J,"0");return q+Y}var Y6={y(Q,J){let q=Q.getFullYear(),Y=q>0?q:1-q;return Q1(J==="yy"?Y%100:Y,J.length)},M(Q,J){let q=Q.getMonth();return J==="M"?String(q+1):Q1(q+1,2)},d(Q,J){return Q1(Q.getDate(),J.length)},a(Q,J){let q=Q.getHours()/12>=1?"pm":"am";switch(J){case"a":case"aa":return q.toUpperCase();case"aaa":return q;case"aaaaa":return q[0];case"aaaa":default:return q==="am"?"a.m.":"p.m."}},h(Q,J){return Q1(Q.getHours()%12||12,J.length)},H(Q,J){return Q1(Q.getHours(),J.length)},m(Q,J){return Q1(Q.getMinutes(),J.length)},s(Q,J){return Q1(Q.getSeconds(),J.length)},S(Q,J){let q=J.length,Y=Q.getMilliseconds(),U=Math.trunc(Y*Math.pow(10,q-3));return Q1(U,J.length)}};var n9={am:"am",pm:"pm",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},lN={G:function(Q,J,q){let Y=Q.getFullYear()>0?1:0;switch(J){case"G":case"GG":case"GGG":return q.era(Y,{width:"abbreviated"});case"GGGGG":return q.era(Y,{width:"narrow"});case"GGGG":default:return q.era(Y,{width:"wide"})}},y:function(Q,J,q){if(J==="yo"){let Y=Q.getFullYear(),U=Y>0?Y:1-Y;return q.ordinalNumber(U,{unit:"year"})}return Y6.y(Q,J)},Y:function(Q,J,q,Y){let U=Eq(Q,Y),K=U>0?U:1-U;if(J==="YY"){let H=K%100;return Q1(H,2)}if(J==="Yo")return q.ordinalNumber(K,{unit:"year"});return Q1(K,J.length)},R:function(Q,J){let q=Lq(Q);return Q1(q,J.length)},u:function(Q,J){let q=Q.getFullYear();return Q1(q,J.length)},Q:function(Q,J,q){let Y=Math.ceil((Q.getMonth()+1)/3);switch(J){case"Q":return String(Y);case"QQ":return Q1(Y,2);case"Qo":return q.ordinalNumber(Y,{unit:"quarter"});case"QQQ":return q.quarter(Y,{width:"abbreviated",context:"formatting"});case"QQQQQ":return q.quarter(Y,{width:"narrow",context:"formatting"});case"QQQQ":default:return q.quarter(Y,{width:"wide",context:"formatting"})}},q:function(Q,J,q){let Y=Math.ceil((Q.getMonth()+1)/3);switch(J){case"q":return String(Y);case"qq":return Q1(Y,2);case"qo":return q.ordinalNumber(Y,{unit:"quarter"});case"qqq":return q.quarter(Y,{width:"abbreviated",context:"standalone"});case"qqqqq":return q.quarter(Y,{width:"narrow",context:"standalone"});case"qqqq":default:return q.quarter(Y,{width:"wide",context:"standalone"})}},M:function(Q,J,q){let Y=Q.getMonth();switch(J){case"M":case"MM":return Y6.M(Q,J);case"Mo":return q.ordinalNumber(Y+1,{unit:"month"});case"MMM":return q.month(Y,{width:"abbreviated",context:"formatting"});case"MMMMM":return q.month(Y,{width:"narrow",context:"formatting"});case"MMMM":default:return q.month(Y,{width:"wide",context:"formatting"})}},L:function(Q,J,q){let Y=Q.getMonth();switch(J){case"L":return String(Y+1);case"LL":return Q1(Y+1,2);case"Lo":return q.ordinalNumber(Y+1,{unit:"month"});case"LLL":return q.month(Y,{width:"abbreviated",context:"standalone"});case"LLLLL":return q.month(Y,{width:"narrow",context:"standalone"});case"LLLL":default:return q.month(Y,{width:"wide",context:"standalone"})}},w:function(Q,J,q,Y){let U=lz(Q,Y);if(J==="wo")return q.ordinalNumber(U,{unit:"week"});return Q1(U,J.length)},I:function(Q,J,q){let Y=pz(Q);if(J==="Io")return q.ordinalNumber(Y,{unit:"week"});return Q1(Y,J.length)},d:function(Q,J,q){if(J==="do")return q.ordinalNumber(Q.getDate(),{unit:"date"});return Y6.d(Q,J)},D:function(Q,J,q){let Y=dz(Q);if(J==="Do")return q.ordinalNumber(Y,{unit:"dayOfYear"});return Q1(Y,J.length)},E:function(Q,J,q){let Y=Q.getDay();switch(J){case"E":case"EE":case"EEE":return q.day(Y,{width:"abbreviated",context:"formatting"});case"EEEEE":return q.day(Y,{width:"narrow",context:"formatting"});case"EEEEEE":return q.day(Y,{width:"short",context:"formatting"});case"EEEE":default:return q.day(Y,{width:"wide",context:"formatting"})}},e:function(Q,J,q,Y){let U=Q.getDay(),K=(U-Y.weekStartsOn+8)%7||7;switch(J){case"e":return String(K);case"ee":return Q1(K,2);case"eo":return q.ordinalNumber(K,{unit:"day"});case"eee":return q.day(U,{width:"abbreviated",context:"formatting"});case"eeeee":return q.day(U,{width:"narrow",context:"formatting"});case"eeeeee":return q.day(U,{width:"short",context:"formatting"});case"eeee":default:return q.day(U,{width:"wide",context:"formatting"})}},c:function(Q,J,q,Y){let U=Q.getDay(),K=(U-Y.weekStartsOn+8)%7||7;switch(J){case"c":return String(K);case"cc":return Q1(K,J.length);case"co":return q.ordinalNumber(K,{unit:"day"});case"ccc":return q.day(U,{width:"abbreviated",context:"standalone"});case"ccccc":return q.day(U,{width:"narrow",context:"standalone"});case"cccccc":return q.day(U,{width:"short",context:"standalone"});case"cccc":default:return q.day(U,{width:"wide",context:"standalone"})}},i:function(Q,J,q){let Y=Q.getDay(),U=Y===0?7:Y;switch(J){case"i":return String(U);case"ii":return Q1(U,J.length);case"io":return q.ordinalNumber(U,{unit:"day"});case"iii":return q.day(Y,{width:"abbreviated",context:"formatting"});case"iiiii":return q.day(Y,{width:"narrow",context:"formatting"});case"iiiiii":return q.day(Y,{width:"short",context:"formatting"});case"iiii":default:return q.day(Y,{width:"wide",context:"formatting"})}},a:function(Q,J,q){let U=Q.getHours()/12>=1?"pm":"am";switch(J){case"a":case"aa":return q.dayPeriod(U,{width:"abbreviated",context:"formatting"});case"aaa":return q.dayPeriod(U,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return q.dayPeriod(U,{width:"narrow",context:"formatting"});case"aaaa":default:return q.dayPeriod(U,{width:"wide",context:"formatting"})}},b:function(Q,J,q){let Y=Q.getHours(),U;if(Y===12)U=n9.noon;else if(Y===0)U=n9.midnight;else U=Y/12>=1?"pm":"am";switch(J){case"b":case"bb":return q.dayPeriod(U,{width:"abbreviated",context:"formatting"});case"bbb":return q.dayPeriod(U,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return q.dayPeriod(U,{width:"narrow",context:"formatting"});case"bbbb":default:return q.dayPeriod(U,{width:"wide",context:"formatting"})}},B:function(Q,J,q){let Y=Q.getHours(),U;if(Y>=17)U=n9.evening;else if(Y>=12)U=n9.afternoon;else if(Y>=4)U=n9.morning;else U=n9.night;switch(J){case"B":case"BB":case"BBB":return q.dayPeriod(U,{width:"abbreviated",context:"formatting"});case"BBBBB":return q.dayPeriod(U,{width:"narrow",context:"formatting"});case"BBBB":default:return q.dayPeriod(U,{width:"wide",context:"formatting"})}},h:function(Q,J,q){if(J==="ho"){let Y=Q.getHours()%12;if(Y===0)Y=12;return q.ordinalNumber(Y,{unit:"hour"})}return Y6.h(Q,J)},H:function(Q,J,q){if(J==="Ho")return q.ordinalNumber(Q.getHours(),{unit:"hour"});return Y6.H(Q,J)},K:function(Q,J,q){let Y=Q.getHours()%12;if(J==="Ko")return q.ordinalNumber(Y,{unit:"hour"});return Q1(Y,J.length)},k:function(Q,J,q){let Y=Q.getHours();if(Y===0)Y=24;if(J==="ko")return q.ordinalNumber(Y,{unit:"hour"});return Q1(Y,J.length)},m:function(Q,J,q){if(J==="mo")return q.ordinalNumber(Q.getMinutes(),{unit:"minute"});return Y6.m(Q,J)},s:function(Q,J,q){if(J==="so")return q.ordinalNumber(Q.getSeconds(),{unit:"second"});return Y6.s(Q,J)},S:function(Q,J){return Y6.S(Q,J)},X:function(Q,J,q){let Y=Q.getTimezoneOffset();if(Y===0)return"Z";switch(J){case"X":return sz(Y);case"XXXX":case"XX":return L$(Y);case"XXXXX":case"XXX":default:return L$(Y,":")}},x:function(Q,J,q){let Y=Q.getTimezoneOffset();switch(J){case"x":return sz(Y);case"xxxx":case"xx":return L$(Y);case"xxxxx":case"xxx":default:return L$(Y,":")}},O:function(Q,J,q){let Y=Q.getTimezoneOffset();switch(J){case"O":case"OO":case"OOO":return"GMT"+rz(Y,":");case"OOOO":default:return"GMT"+L$(Y,":")}},z:function(Q,J,q){let Y=Q.getTimezoneOffset();switch(J){case"z":case"zz":case"zzz":return"GMT"+rz(Y,":");case"zzzz":default:return"GMT"+L$(Y,":")}},t:function(Q,J,q){let Y=Math.trunc(+Q/1000);return Q1(Y,J.length)},T:function(Q,J,q){return Q1(+Q,J.length)}};function rz(Q,J=""){let q=Q>0?"-":"+",Y=Math.abs(Q),U=Math.trunc(Y/60),K=Y%60;if(K===0)return q+String(U);return q+String(U)+J+Q1(K,2)}function sz(Q,J){if(Q%60===0)return(Q>0?"-":"+")+Q1(Math.abs(Q)/60,2);return L$(Q,J)}function L$(Q,J=""){let q=Q>0?"-":"+",Y=Math.abs(Q),U=Q1(Math.trunc(Y/60),2),K=Q1(Y%60,2);return q+U+J+K}var nz=(Q,J)=>{switch(Q){case"P":return J.date({width:"short"});case"PP":return J.date({width:"medium"});case"PPP":return J.date({width:"long"});case"PPPP":default:return J.date({width:"full"})}},oz=(Q,J)=>{switch(Q){case"p":return J.time({width:"short"});case"pp":return J.time({width:"medium"});case"ppp":return J.time({width:"long"});case"pppp":default:return J.time({width:"full"})}},Fj=(Q,J)=>{let q=Q.match(/(P+)(p+)?/)||[],Y=q[1],U=q[2];if(!U)return nz(Q,J);let K;switch(Y){case"P":K=J.dateTime({width:"short"});break;case"PP":K=J.dateTime({width:"medium"});break;case"PPP":K=J.dateTime({width:"long"});break;case"PPPP":default:K=J.dateTime({width:"full"});break}return K.replace("{{date}}",nz(Y,J)).replace("{{time}}",oz(U,J))},az={p:oz,P:Fj};var Wj=/^D+$/,wj=/^Y+$/,Rj=["D","DD","YY","YYYY"];function iz(Q){return Wj.test(Q)}function tz(Q){return wj.test(Q)}function ez(Q,J,q){let Y=Tj(Q,J,q);if(console.warn(Y),Rj.includes(Q))throw RangeError(Y)}function Tj(Q,J,q){let Y=Q[0]==="Y"?"years":"days of the month";return`Use \`${Q.toLowerCase()}\` instead of \`${Q}\` (in \`${J}\`) for formatting ${Y} to the input \`${q}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`}var zj=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,_j=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,Lj=/^'([^]*?)'?$/,Vj=/''/g,Ej=/[a-zA-Z]/;function u4(Q,J,q){let Y=P8(),U=q?.locale??Y.locale??JQ,K=q?.firstWeekContainsDate??q?.locale?.options?.firstWeekContainsDate??Y.firstWeekContainsDate??Y.locale?.options?.firstWeekContainsDate??1,H=q?.weekStartsOn??q?.locale?.options?.weekStartsOn??Y.weekStartsOn??Y.locale?.options?.weekStartsOn??0,M=e0(Q,q?.in);if(!Iz(M))throw RangeError("Invalid time value");let F=J.match(_j).map((T)=>{let z=T[0];if(z==="p"||z==="P"){let L=az[z];return L(T,U.formatLong)}return T}).join("").match(zj).map((T)=>{if(T==="''")return{isToken:!1,value:"'"};let z=T[0];if(z==="'")return{isToken:!1,value:Pj(T)};if(lN[z])return{isToken:!0,value:T};if(z.match(Ej))throw RangeError("Format string contains an unescaped latin alphabet character `"+z+"`");return{isToken:!1,value:T}});if(U.localize.preprocessor)F=U.localize.preprocessor(M,F);let R={firstWeekContainsDate:K,weekStartsOn:H,locale:U};return F.map((T)=>{if(!T.isToken)return T.value;let z=T.value;if(!q?.useAdditionalWeekYearTokens&&tz(z)||!q?.useAdditionalDayOfYearTokens&&iz(z))ez(z,J,String(Q));let L=lN[z[0]];return L(M,z,U.localize,R)}).join("")}function Pj(Q){let J=Q.match(Lj);if(!J)return Q;return J[1].replace(Vj,"'")}function $_(Q,J,q){let Y=P8(),U=q?.locale??Y.locale??JQ,K=2520,H=l9(Q,J);if(isNaN(H))throw RangeError("Invalid time value");let M=Object.assign({},q,{addSuffix:q?.addSuffix,comparison:H}),[F,R]=M2(q?.in,...H>0?[J,Q]:[Q,J]),T=bz(R,F),z=(c9(R)-c9(F))/1000,L=Math.round((T-z)/60),P;if(L<2)if(q?.includeSeconds)if(T<5)return U.formatDistance("lessThanXSeconds",5,M);else if(T<10)return U.formatDistance("lessThanXSeconds",10,M);else if(T<20)return U.formatDistance("lessThanXSeconds",20,M);else if(T<40)return U.formatDistance("halfAMinute",0,M);else if(T<60)return U.formatDistance("lessThanXMinutes",1,M);else return U.formatDistance("xMinutes",1,M);else if(L===0)return U.formatDistance("lessThanXMinutes",1,M);else return U.formatDistance("xMinutes",L,M);else if(L<45)return U.formatDistance("xMinutes",L,M);else if(L<90)return U.formatDistance("aboutXHours",1,M);else if(L<dN){let I=Math.round(L/60);return U.formatDistance("aboutXHours",I,M)}else if(L<2520)return U.formatDistance("xDays",1,M);else if(L<GQ){let I=Math.round(L/dN);return U.formatDistance("xDays",I,M)}else if(L<GQ*2)return P=Math.round(L/GQ),U.formatDistance("aboutXMonths",P,M);if(P=kz(R,F),P<12){let I=Math.round(L/GQ);return U.formatDistance("xMonths",I,M)}else{let I=P%12,A=Math.trunc(P/12);if(I<3)return U.formatDistance("aboutXYears",A,M);else if(I<9)return U.formatDistance("overXYears",A,M);else return U.formatDistance("almostXYears",A+1,M)}}function Z_(Q,J){return $_(Q,Pz(Q),J)}var m5=R0(G1(),1),Y5=["#a78bfa","#22d3ee","#ec4899","#4ade80","#fbbf24","#f87171","#60a5fa"],Pq={dark:{legendLabel:"#94a3b8",tooltipBackground:"#16161e",tooltipTitle:"#f8fafc",tooltipBody:"#94a3b8",tooltipBorder:"rgba(255, 255, 255, 0.1)",grid:"rgba(255, 255, 255, 0.06)",tick:"#64748b"},light:{legendLabel:"#475569",tooltipBackground:"#ffffff",tooltipTitle:"#0f172a",tooltipBody:"#334155",tooltipBorder:"rgba(15, 23, 42, 0.18)",grid:"rgba(15, 23, 42, 0.08)",tick:"#64748b"}};function Cq(Q){let{chartTheme:J,showLegend:q,defaultLabel:Y,formatValue:U,footer:K}=Q;return{legend:{display:q,position:"top",align:"start",labels:{color:J.legendLabel,usePointStyle:!0,padding:16,font:{size:12},boxWidth:8}},tooltip:{backgroundColor:J.tooltipBackground,titleColor:J.tooltipTitle,bodyColor:J.tooltipBody,borderColor:J.tooltipBorder,borderWidth:1,padding:12,cornerRadius:8,callbacks:{label:(H)=>{let M=H.dataset.label??Y,F=H.parsed.y??0;return`${M}: ${U(F)}`},...K?{footer:K}:{}}}}}function Iq(Q){let{chartTheme:J,formatY:q}=Q,Y={grid:{color:J.grid,drawBorder:!1},ticks:{color:J.tick,font:{size:11}}},U={...Y,ticks:{...Y.ticks,callback:(K)=>q(Number(K))},min:0};return{sharedScaleBase:Y,yScale:U}}function Oq(Q){return{borderColor:Q,backgroundColor:`${Q}20`,fill:!0,tension:0,pointRadius:3,pointHoverRadius:4,borderWidth:2}}function Dq(Q){return{backgroundColor:Q,borderColor:Q,borderWidth:0,borderRadius:3}}function o9(Q,J){return Q.datasets.map((q,Y)=>({label:q.label,data:q.data,...J(Y)}))}function jq(Q,J,q){if(Q.length===0)return{labels:[],datasets:[]};let{initBucket:Y,accumulate:U,bucketToValue:K}=q,H=new Map;for(let F of Q){let R=H.get(F.timestamp)??Y();U(R,F),H.set(F.timestamp,R)}let M=[...H.entries()].sort((F,R)=>F[0]-R[0]);return{labels:M.map(([F])=>u4(new Date(F),"MMM d")),datasets:[{label:J,data:M.map(([,F])=>K(F))}]}}function Aq(Q,J){if(Q.length===0)return{labels:[],datasets:[]};let{topN:q=5,rankWeight:Y,initBucket:U,accumulate:K,bucketToValue:H}=J,M=new Map;for(let g of Q){let m=`${g.model}::${g.provider}`,o=M.get(m);if(o)o.weight+=Y(g);else M.set(m,{model:g.model,provider:g.provider,weight:Y(g)})}let R=[...M.entries()].sort((g,m)=>m[1].weight-g[1].weight).slice(0,q),T=new Set(R.map(([g])=>g)),z=new Map;for(let[,{model:g}]of R)z.set(g,(z.get(g)??0)+1);let L=new Map;for(let[g,{model:m,provider:o}]of R)L.set(g,(z.get(m)??0)>1?`${m} (${o})`:m);let P=[...new Set(Q.map((g)=>g.timestamp))].sort((g,m)=>g-m),I=R.map(([g])=>L.get(g)??g);if(Q.some((g)=>!T.has(`${g.model}::${g.provider}`)))I.push("Other");let C=new Map;for(let g of P)C.set(g,{});for(let g of Q){let m=`${g.model}::${g.provider}`,o=T.has(m)?L.get(m)??g.model:"Other",a=C.get(g.timestamp);if(!a)continue;let s=a[o]??U();K(s,g),a[o]=s}return{labels:P.map((g)=>u4(new Date(g),"MMM d")),datasets:I.map((g)=>({label:g,data:P.map((m)=>{let o=C.get(m)?.[g];return o?H(o):0})}))}}function Ij({byModel:Q,onChange:J}){return m5.jsxDEV("div",{className:"flex bg-[var(--bg-surface)] rounded-[var(--radius-sm)] p-0.5 border border-[var(--border-subtle)]",children:[m5.jsxDEV("button",{type:"button",onClick:()=>J(!1),className:`tab-btn text-xs ${!Q?"active":""}`,children:"All Models"},void 0,!1,void 0,this),m5.jsxDEV("button",{type:"button",onClick:()=>J(!0),className:`tab-btn text-xs ${Q?"active":""}`,children:"By Model"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function Sq({title:Q,subtitle:J,empty:q,emptyMessage:Y,controls:U,byModel:K,onByModelChange:H,children:M}){return m5.jsxDEV("div",{className:"surface overflow-hidden",children:[m5.jsxDEV("div",{className:"px-5 py-4 border-b border-[var(--border-subtle)] flex items-center justify-between gap-4 flex-wrap",children:[m5.jsxDEV("div",{children:[m5.jsxDEV("h3",{className:"text-sm font-semibold text-[var(--text-primary)]",children:Q},void 0,!1,void 0,this),m5.jsxDEV("p",{className:"text-xs text-[var(--text-muted)] mt-1",children:J},void 0,!1,void 0,this)]},void 0,!0,void 0,this),m5.jsxDEV("div",{className:"flex items-center gap-2 flex-wrap",children:[U,m5.jsxDEV(Ij,{byModel:K,onChange:H},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),m5.jsxDEV("div",{className:"p-5 min-h-[320px]",children:q?m5.jsxDEV("div",{className:"h-full flex items-center justify-center text-[var(--text-muted)] text-sm",children:Y},void 0,!1,void 0,this):m5.jsxDEV("div",{className:"h-[280px]",children:M},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}var a9=R0(G1(),1);P5.register(h4,x4,QQ,u5,g4,L8,V8,_8,p9);var rN=[{value:"yelling",label:"Yelling"},{value:"profanity",label:"Profanity"},{value:"anguish",label:"Anguish (!!!, nooo, dude, ..)"},{value:"negation",label:"Negation (no/nope/wrong)"},{value:"repetition",label:"Repetition (i meant, still doesnt)"},{value:"blame",label:"Blame (you didnt, stop X-ing)"},{value:"frustration",label:"Frustration (neg + rep + blame)"},{value:"total",label:"All signals combined"}];function Q_(Q){if(!Number.isFinite(Q))return"-";if(Q===0)return"0%";if(Math.abs(Q)<1)return`${Q.toFixed(1)}%`;return`${Q.toFixed(0)}%`}function G_(Q,J){if(J==="frustration")return Q.negation+Q.repetition+Q.blame;if(J==="total")return Q.yelling+Q.profanity+Q.anguish+Q.negation+Q.repetition+Q.blame;return Q[J]}function J_(Q,J){if(J<=0)return 0;return Q/J*100}function Oj(Q,J){let q=rN.find((Y)=>Y.value===J)?.label??"Hits";return jq(Q,q,{initBucket:()=>({hits:0,messages:0}),accumulate:(Y,U)=>{Y.hits+=G_(U,J),Y.messages+=U.messages},bucketToValue:(Y)=>J_(Y.hits,Y.messages)})}function Dj(Q,J){return Aq(Q,{rankWeight:(q)=>q.messages,initBucket:()=>({hits:0,messages:0}),accumulate:(q,Y)=>{q.hits+=G_(Y,J),q.messages+=Y.messages},bucketToValue:(q)=>J_(q.hits,q.messages)})}function q_({behaviorSeries:Q}){let[J,q]=qQ.useState(!1),[Y,U]=qQ.useState("total"),K=E8(),H=Pq[K],M=qQ.useMemo(()=>J?Dj(Q,Y):Oj(Q,Y),[Q,J,Y]),F=Cq({chartTheme:H,showLegend:J,defaultLabel:"Hits",formatValue:Q_}),{sharedScaleBase:R,yScale:T}=Iq({chartTheme:H,formatY:Q_}),z=rN.find((I)=>I.value===Y)?.label??"",L=a9.jsxDEV("div",{className:"flex bg-[var(--bg-surface)] rounded-[var(--radius-sm)] p-0.5 border border-[var(--border-subtle)]",children:rN.map((I)=>a9.jsxDEV("button",{type:"button",onClick:()=>U(I.value),className:`tab-btn text-xs ${Y===I.value?"active":""}`,children:I.label},I.value,!1,void 0,this))},void 0,!1,void 0,this),P;if(J){let I={labels:M.labels,datasets:o9(M,(C)=>Oq(Y5[C%Y5.length]))};P=a9.jsxDEV(E4,{data:I,options:{responsive:!0,maintainAspectRatio:!1,interaction:{mode:"index",intersect:!1},plugins:F,scales:{x:R,y:T}}},void 0,!1,void 0,this)}else{let I={labels:M.labels,datasets:o9(M,(C)=>Dq(Y5[C%Y5.length]))},A={responsive:!0,maintainAspectRatio:!1,interaction:{mode:"index",intersect:!1},plugins:F,scales:{x:{...R,stacked:!0},y:{...T,stacked:!0}},layout:{padding:{top:8}}};P=a9.jsxDEV(Tq,{data:I,options:A},void 0,!1,void 0,this)}return a9.jsxDEV(Sq,{title:"User Tantrums",subtitle:`${z} as % of user messages per day`,empty:M.labels.length===0,emptyMessage:"No behavioral data yet. Sync to scan your sessions.",controls:L,byModel:J,onByModelChange:q,children:P},void 0,!1,void 0,this)}var rq=R0(e1(),1);var bq=R0(e1(),1);var vq=(...Q)=>Q.filter((J,q,Y)=>{return Boolean(J)&&J.trim()!==""&&Y.indexOf(J)===q}).join(" ").trim();var X_=(Q)=>Q.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase();var Y_=(Q)=>Q.replace(/^([A-Z])|[\s-_]+(\w)/g,(J,q,Y)=>Y?Y.toUpperCase():q.toLowerCase());var sN=(Q)=>{let J=Y_(Q);return J.charAt(0).toUpperCase()+J.slice(1)};var XQ=R0(e1(),1);var kq={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 U_=(Q)=>{for(let J in Q)if(J.startsWith("aria-")||J==="role"||J==="title")return!0;return!1};var i9=R0(e1(),1),jj=i9.createContext({});var N_=()=>i9.useContext(jj);var K_=XQ.forwardRef(({color:Q,size:J,strokeWidth:q,absoluteStrokeWidth:Y,className:U="",children:K,iconNode:H,...M},F)=>{let{size:R=24,strokeWidth:T=2,absoluteStrokeWidth:z=!1,color:L="currentColor",className:P=""}=N_()??{},I=Y??z?Number(q??T)*24/Number(J??R):q??T;return XQ.createElement("svg",{ref:F,...kq,width:J??R??kq.width,height:J??R??kq.height,stroke:Q??L,strokeWidth:I,className:vq("lucide",P,U),...!K&&!U_(M)&&{"aria-hidden":"true"},...M},[...H.map(([A,C])=>XQ.createElement(A,C)),...Array.isArray(K)?K:[K]])});var x0=(Q,J)=>{let q=bq.forwardRef(({className:Y,...U},K)=>bq.createElement(K_,{ref:K,iconNode:J,className:vq(`lucide-${X_(sN(Q))}`,`lucide-${Q}`,Y),...U}));return q.displayName=sN(Q),q};var Aj=[["path",{d:"M3 3v16a2 2 0 0 0 2 2h16",key:"c24i48"}],["path",{d:"M18 17V9",key:"2bz60n"}],["path",{d:"M13 17V5",key:"1frdt8"}],["path",{d:"M8 17v-3",key:"17ska0"}]],F2=x0("chart-column",Aj);var Sj=[["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"}]],W2=x0("circle-alert",Sj);var vj=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]],w2=x0("circle-check",vj);var kj=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m15 9-6 6",key:"1uzhvr"}],["path",{d:"m9 9 6 6",key:"z0biqf"}]],R2=x0("circle-x",kj);var bj=[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",key:"1oefj6"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"M10 12a1 1 0 0 0-1 1v1a1 1 0 0 1-1 1 1 1 0 0 1 1 1v1a1 1 0 0 0 1 1",key:"1oajmo"}],["path",{d:"M14 18a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1 1 1 0 0 1-1-1v-1a1 1 0 0 0-1-1",key:"mpwhp6"}]],T2=x0("file-braces",bj);var fj=[["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"}]],E$=x0("activity",fj);var yj=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],YQ=x0("chevron-down",yj);var gj=[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]],UQ=x0("chevron-up",gj);var hj=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 6v6l4 2",key:"mmk7yg"}]],NQ=x0("clock",hj);var xj=[["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"}]],KQ=x0("coins",xj);var uj=[["ellipse",{cx:"12",cy:"5",rx:"9",ry:"3",key:"msslwz"}],["path",{d:"M3 5V19A9 3 0 0 0 21 19V5",key:"1wlel7"}],["path",{d:"M3 12A9 3 0 0 0 21 12",key:"mv7ke4"}]],BQ=x0("database",uj);var mj=[["path",{d:"M12 15V3",key:"m9g1x1"}],["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["path",{d:"m7 10 5 5 5-5",key:"brsn70"}]],HQ=x0("download",mj);var dj=[["path",{d:"m12 14 4-4",key:"9kzdfg"}],["path",{d:"M3.34 19a10 10 0 1 1 17.32 0",key:"19p75a"}]],MQ=x0("gauge",dj);var pj=[["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"}]],FQ=x0("hash",pj);var cj=[["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"}]],WQ=x0("refresh-cw",cj);var lj=[["rect",{width:"20",height:"8",x:"2",y:"2",rx:"2",ry:"2",key:"ngkwjq"}],["rect",{width:"20",height:"8",x:"2",y:"14",rx:"2",ry:"2",key:"iecqi9"}],["line",{x1:"6",x2:"6.01",y1:"6",y2:"6",key:"16zg32"}],["line",{x1:"6",x2:"6.01",y1:"18",y2:"18",key:"nzw8ys"}]],wQ=x0("server",lj);var rj=[["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"}]],P$=x0("star",rj);var sj=[["path",{d:"M12 3v12",key:"1x0j5s"}],["path",{d:"m17 8-5-5-5 5",key:"7q97r8"}],["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}]],RQ=x0("upload",sj);var nj=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],TQ=x0("x",nj);var oj=[["path",{d:"M4 14a1 1 0 0 1-.78-1.63l9.9-10.2a.5.5 0 0 1 .86.46l-1.92 6.02A1 1 0 0 0 13 10h7a1 1 0 0 1 .78 1.63l-9.9 10.2a.5.5 0 0 1-.86-.46l1.92-6.02A1 1 0 0 0 11 14z",key:"1xq2db"}]],C$=x0("zap",oj);var P1=R0(G1(),1),fq={dark:{legendLabel:"#cbd5e1",tooltipBackground:"#16161e",tooltipTitle:"#f8fafc",tooltipBody:"#94a3b8",tooltipBorder:"rgba(255, 255, 255, 0.1)",grid:"rgba(255, 255, 255, 0.06)",tick:"#94a3b8"},light:{legendLabel:"#334155",tooltipBackground:"#ffffff",tooltipTitle:"#0f172a",tooltipBody:"#334155",tooltipBorder:"rgba(15, 23, 42, 0.18)",grid:"rgba(15, 23, 42, 0.08)",tick:"#475569"}};function U6(Q){return{borderColor:Q,backgroundColor:"transparent",tension:0.4,pointRadius:0,borderWidth:2}}function yq({timestamps:Q,values:J,color:q}){let Y={labels:Q.map((K)=>u4(new Date(K),"MMM d")),datasets:[{data:J,...U6(q)}]};return P1.jsxDEV(E4,{data:Y,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 gq(Q){return{legend:{display:!0,position:"top",labels:{color:Q.legendLabel,usePointStyle:!0,padding:16,font:{size:12}}},tooltip:{backgroundColor:Q.tooltipBackground,titleColor:Q.tooltipTitle,bodyColor:Q.tooltipBody,borderColor:Q.tooltipBorder,borderWidth:1,cornerRadius:8}}}function B_(Q){return{x:{grid:{color:Q.grid},ticks:{color:Q.tick,font:{size:11}}},y:{grid:{color:Q.grid},ticks:{color:Q.tick,font:{size:11}},min:0}}}function H_(Q){return{x:{grid:{color:Q.grid},ticks:{color:Q.tick,font:{size:11}}},y:{type:"linear",display:!0,position:"left",grid:{color:Q.grid},ticks:{color:Q.tick,font:{size:11}}},y1:{type:"linear",display:!0,position:"right",grid:{drawOnChartArea:!1},ticks:{color:Q.tick,font:{size:11}}}}}function hq({title:Q,subtitle:J,children:q}){return P1.jsxDEV("div",{className:"surface overflow-hidden",children:[P1.jsxDEV("div",{className:"px-5 py-4 border-b border-[var(--border-subtle)]",children:[P1.jsxDEV("h3",{className:"text-sm font-semibold text-[var(--text-primary)]",children:Q},void 0,!1,void 0,this),J?P1.jsxDEV("p",{className:"text-xs text-[var(--text-muted)] mt-1",children:J},void 0,!1,void 0,this):null]},void 0,!0,void 0,this),P1.jsxDEV("div",{className:"overflow-x-auto",children:q},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function aj(Q){if(Q==="right")return"text-right";if(Q==="center")return"text-center";return""}function xq({columns:Q,gridTemplate:J}){return P1.jsxDEV("div",{className:"grid gap-3 px-5 py-3 text-[var(--text-muted)] text-xs uppercase tracking-wider font-semibold",style:{gridTemplateColumns:J},children:[Q.map((q)=>P1.jsxDEV("div",{className:aj(q.align),children:q.label},q.label,!1,void 0,this)),P1.jsxDEV("div",{},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function uq({children:Q}){return P1.jsxDEV("div",{className:"max-h-[calc(100vh-300px)] overflow-y-auto",children:Q},void 0,!1,void 0,this)}function mq({model:Q,provider:J}){return P1.jsxDEV("div",{children:[P1.jsxDEV("div",{className:"font-medium text-[var(--text-primary)]",children:Q},void 0,!1,void 0,this),P1.jsxDEV("div",{className:"text-xs text-[var(--text-muted)]",children:J},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function dq({gridTemplate:Q,cells:J,trendCell:q,isExpanded:Y,onToggle:U,expandedContent:K}){return P1.jsxDEV("div",{className:"border-t border-[var(--border-subtle)]",children:[P1.jsxDEV("button",{type:"button",onClick:U,className:"w-full bg-transparent border-none text-left px-5 py-3 cursor-pointer hover:bg-[var(--bg-hover)] transition-colors",children:P1.jsxDEV("div",{className:"grid gap-3 items-center",style:{gridTemplateColumns:Q},children:[J,P1.jsxDEV("div",{className:"h-10",children:q},void 0,!1,void 0,this),P1.jsxDEV("div",{className:"flex justify-center text-[var(--text-muted)]",children:Y?P1.jsxDEV(UQ,{size:16},void 0,!1,void 0,this):P1.jsxDEV(YQ,{size:16},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this),Y?P1.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 pq(){return P1.jsxDEV("div",{className:"text-[var(--text-muted)] text-center text-sm",children:"-"},void 0,!1,void 0,this)}function cq({message:Q="No data available"}){return P1.jsxDEV("div",{className:"h-full flex items-center justify-center text-[var(--text-muted)] text-sm",children:Q},void 0,!1,void 0,this)}var r0=R0(G1(),1);P5.register(h4,x4,g4,u5,L8,V8,_8);var lq={yelling:"#fbbf24",profanity:"#f87171",anguish:"#a78bfa",frustration:"#22d3ee"},M_="2fr 0.9fr 0.8fr 0.8fr 0.8fr 0.9fr 0.8fr 140px 40px";function W_(Q){return Q.toLocaleString()}function F_(Q){if(Q.totalMessages===0)return 0;return(Q.totalYelling+Q.totalProfanity+Q.totalAnguish+Q.totalNegation+Q.totalRepetition+Q.totalBlame)/Q.totalMessages}function t9(Q,J){if(J===0)return"-";let q=Q/J*100;if(q===0)return"0%";if(q<1)return`${q.toFixed(1)}%`;return`${q.toFixed(0)}%`}function w_({models:Q,behaviorSeries:J}){let[q,Y]=rq.useState(null),U=E8(),K=fq[U],H=rq.useMemo(()=>tj(J),[J]),M=[...Q].sort((F,R)=>{if(R.totalMessages!==F.totalMessages)return R.totalMessages-F.totalMessages;return F_(R)-F_(F)});return r0.jsxDEV(hq,{title:"Behavior by Model",subtitle:"How often each model elicited a tantrum — rates are per user message",children:[r0.jsxDEV(xq,{gridTemplate:M_,columns:[{label:"Model"},{label:"Messages",align:"right"},{label:"CAPS %",align:"right"},{label:"Profanity %",align:"right"},{label:"Anguish %",align:"right"},{label:"Frustration %",align:"right"},{label:"Hits %",align:"right"},{label:"Trend",align:"center"}]},void 0,!1,void 0,this),r0.jsxDEV(uq,{children:[M.map((F,R)=>{let T=`${F.model}::${F.provider}`,z=H.get(T)?.data??[],L=Y5[R%Y5.length],P=q===T,I=F.totalNegation+F.totalRepetition+F.totalBlame,A=F.totalYelling+F.totalProfanity+F.totalAnguish+I;return r0.jsxDEV(dq,{gridTemplate:M_,isExpanded:P,onToggle:()=>Y(P?null:T),cells:[r0.jsxDEV(mq,{model:F.model,provider:F.provider},"name",!1,void 0,this),r0.jsxDEV("div",{className:"text-right text-[var(--text-secondary)] font-mono text-sm",children:W_(F.totalMessages)},"messages",!1,void 0,this),r0.jsxDEV("div",{className:"text-right text-[var(--text-secondary)] font-mono text-sm",children:t9(F.totalYelling,F.totalMessages)},"caps",!1,void 0,this),r0.jsxDEV("div",{className:"text-right text-[var(--text-secondary)] font-mono text-sm",children:t9(F.totalProfanity,F.totalMessages)},"profanity",!1,void 0,this),r0.jsxDEV("div",{className:"text-right text-[var(--text-secondary)] font-mono text-sm",children:t9(F.totalAnguish,F.totalMessages)},"anguish",!1,void 0,this),r0.jsxDEV("div",{className:"text-right text-[var(--text-secondary)] font-mono text-sm",children:t9(I,F.totalMessages)},"frustration",!1,void 0,this),r0.jsxDEV("div",{className:"text-right text-[var(--text-secondary)] font-mono text-sm",children:t9(A,F.totalMessages)},"hits",!1,void 0,this)],trendCell:z.length===0?r0.jsxDEV(pq,{},void 0,!1,void 0,this):r0.jsxDEV(yq,{timestamps:z.map((C)=>C.timestamp),values:z.map((C)=>C.total),color:L},void 0,!1,void 0,this),expandedContent:r0.jsxDEV("div",{className:"grid gap-4",style:{gridTemplateColumns:"220px 1fr"},children:[r0.jsxDEV("div",{className:"space-y-4 text-sm",children:[r0.jsxDEV(I$,{label:"Yelling (CAPS)",total:F.totalYelling,messages:F.totalMessages,valueClass:"text-[var(--accent-amber,#fbbf24)]"},void 0,!1,void 0,this),r0.jsxDEV(I$,{label:"Profanity",total:F.totalProfanity,messages:F.totalMessages,valueClass:"text-[var(--accent-red,#f87171)]"},void 0,!1,void 0,this),r0.jsxDEV(I$,{label:"Anguish (!!!, nooo, dude, ..)",total:F.totalAnguish,messages:F.totalMessages,valueClass:"text-[var(--accent-violet,#a78bfa)]"},void 0,!1,void 0,this),r0.jsxDEV(I$,{label:"Negation (no/nope/wrong)",total:F.totalNegation,messages:F.totalMessages,valueClass:"text-[var(--accent-cyan,#22d3ee)]"},void 0,!1,void 0,this),r0.jsxDEV(I$,{label:"Repetition (i meant, still doesnt)",total:F.totalRepetition,messages:F.totalMessages,valueClass:"text-[var(--accent-cyan,#22d3ee)]"},void 0,!1,void 0,this),r0.jsxDEV(I$,{label:"Blame (you didnt, stop X-ing)",total:F.totalBlame,messages:F.totalMessages,valueClass:"text-[var(--accent-cyan,#22d3ee)]"},void 0,!1,void 0,this),r0.jsxDEV(I$,{label:"Avg chars / msg",total:F.totalChars,messages:F.totalMessages,valueClass:"text-[var(--text-secondary)]",mode:"average"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),r0.jsxDEV("div",{className:"h-[200px]",children:z.length===0?r0.jsxDEV(cq,{},void 0,!1,void 0,this):r0.jsxDEV(ij,{data:z,chartTheme:K},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},T,!1,void 0,this)}),M.length===0?r0.jsxDEV("div",{className:"border-t border-[var(--border-subtle)] px-5 py-8 text-center text-[var(--text-muted)] text-sm",children:"No user behavior recorded for this range yet."},void 0,!1,void 0,this):null]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)}function I$({label:Q,total:J,messages:q,valueClass:Y,mode:U="rate"}){let K=U==="rate"?"% of msgs":"Per msg",H=q>0?U==="rate"?t9(J,q):(J/q).toFixed(0):"-";return r0.jsxDEV("div",{children:[r0.jsxDEV("div",{className:"text-[var(--text-primary)] font-medium mb-2",children:Q},void 0,!1,void 0,this),r0.jsxDEV("div",{className:"space-y-1 text-[var(--text-secondary)]",children:[r0.jsxDEV("div",{className:"flex items-center justify-between",children:[r0.jsxDEV("span",{children:"Total"},void 0,!1,void 0,this),r0.jsxDEV("span",{className:`font-mono ${Y}`,children:W_(J)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),r0.jsxDEV("div",{className:"flex items-center justify-between",children:[r0.jsxDEV("span",{children:K},void 0,!1,void 0,this),r0.jsxDEV("span",{className:"font-mono",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)}function ij({data:Q,chartTheme:J}){let q={labels:Q.map((U)=>u4(new Date(U.timestamp),"MMM d")),datasets:[{label:"CAPS",data:Q.map((U)=>U.yelling),...U6(lq.yelling)},{label:"Profanity",data:Q.map((U)=>U.profanity),...U6(lq.profanity)},{label:"Anguish",data:Q.map((U)=>U.anguish),...U6(lq.anguish)},{label:"Frustration",data:Q.map((U)=>U.frustration),...U6(lq.frustration)}]},Y={responsive:!0,maintainAspectRatio:!1,plugins:gq(J),scales:B_(J)};return r0.jsxDEV(E4,{data:q,options:Y},void 0,!1,void 0,this)}function tj(Q){if(Q.length===0)return new Map;let J=[...new Set(Q.map((U)=>U.timestamp))].sort((U,K)=>U-K),q=new Map;for(let U of Q){let K=`${U.model}::${U.provider}`,H=q.get(K);if(!H)H=new Map,q.set(K,H);let M=H.get(U.timestamp)??{timestamp:U.timestamp,yelling:0,profanity:0,anguish:0,frustration:0,total:0};M.yelling+=U.yelling,M.profanity+=U.profanity,M.anguish+=U.anguish,M.frustration+=U.negation+U.repetition+U.blame,M.total=M.yelling+M.profanity+M.anguish+M.frustration,H.set(U.timestamp,M)}let Y=new Map;for(let[U,K]of q){let H=J.map((M)=>K.get(M)??{timestamp:M,yelling:0,profanity:0,anguish:0,frustration:0,total:0});Y.set(U,{data:H})}return Y}var R_=R0(e1(),1),$7=R0(G1(),1);function e9(Q){return Q.toLocaleString()}function sq(Q,J){if(J<=0)return;return`${(Q/J).toFixed(2)} / msg`}function T_({overall:Q,behaviorSeries:J}){let q=R_.useMemo(()=>{let H=new Map;for(let F of J){let R=`${F.model}::${F.provider}`,T=H.get(R),z=F.yelling+F.profanity+F.anguish+F.negation+F.repetition+F.blame;if(T)T.score+=z;else H.set(R,{model:F.model,provider:F.provider,score:z})}let M=null;for(let F of H.values())if(!M||F.score>M.score)M=F;return M},[J]),Y=Q.totalNegation+Q.totalRepetition+Q.totalBlame,U=Q.totalMessages,K=[{label:"Messages",value:e9(Q.totalMessages),sub:U>0?"in selected range":void 0},{label:"Yelling",value:e9(Q.totalYelling),sub:sq(Q.totalYelling,U)},{label:"Profanity hits",value:e9(Q.totalProfanity),sub:sq(Q.totalProfanity,U)},{label:"Anguish",value:e9(Q.totalAnguish),sub:sq(Q.totalAnguish,U)},{label:"Frustration",value:e9(Y),sub:sq(Y,U)},{label:"Most yelled-at",value:q?.model??"—",sub:q?`${e9(q.score)} hits`:void 0}];return $7.jsxDEV("div",{className:"grid grid-cols-2 sm:grid-cols-6 gap-4",children:K.map((H)=>$7.jsxDEV("div",{className:"surface px-4 py-3",children:[$7.jsxDEV("p",{className:"text-xs text-[var(--text-muted)] mb-1",children:H.label},void 0,!1,void 0,this),$7.jsxDEV("p",{className:"text-lg font-semibold text-[var(--text-primary)] truncate",title:H.value,children:H.value},void 0,!1,void 0,this),H.sub&&$7.jsxDEV("p",{className:"text-xs text-[var(--text-muted)] mt-0.5",children:H.sub},void 0,!1,void 0,this)]},H.label,!0,void 0,this))},void 0,!1,void 0,this)}var L_=R0(e1(),1);var nN=3600000,nq=24*nN,z_={"1h":{windowLabel:"the last hour",trendLabel:"1h Trend",bucketMs:nN,bucketCount:1,tickFormat:"HH:mm"},"24h":{windowLabel:"the last 24 hours",trendLabel:"24h Trend",bucketMs:nN,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 oq(Q){return z_[Q]}function __(Q,J){return u4(new Date(Q),z_[J].tickFormat)}var N6=R0(G1(),1);P5.register(h4,x4,g4,u5,L8,V8,_8,p9);var aq=["#a78bfa","#22d3ee","#ec4899","#4ade80","#fbbf24","#f87171","#60a5fa"],ej={dark:{legendLabel:"#94a3b8",tooltipBackground:"#16161e",tooltipTitle:"#f8fafc",tooltipBody:"#94a3b8",tooltipBorder:"rgba(255, 255, 255, 0.1)",grid:"rgba(255, 255, 255, 0.06)",tick:"#64748b"},light:{legendLabel:"#475569",tooltipBackground:"#ffffff",tooltipTitle:"#0f172a",tooltipBody:"#334155",tooltipBorder:"rgba(15, 23, 42, 0.18)",grid:"rgba(15, 23, 42, 0.08)",tick:"#64748b"}};function V_({modelSeries:Q,timeRange:J}){let q=L_.useMemo(()=>$A(Q),[Q]),Y=E8(),U=ej[Y],K=oq(J),H={labels:q.data.map((F)=>__(F.timestamp,J)),datasets:q.series.map((F,R)=>({label:F,data:q.data.map((T)=>T[F]??0),borderColor:aq[R%aq.length],backgroundColor:`${aq[R%aq.length]}20`,fill:!0,tension:0.4,pointRadius:0,pointHoverRadius:4,borderWidth:2}))},M={responsive:!0,maintainAspectRatio:!1,interaction:{mode:"index",intersect:!1},plugins:{legend:{position:"top",align:"start",labels:{color:U.legendLabel,usePointStyle:!0,padding:16,font:{size:12},boxWidth:8}},tooltip:{backgroundColor:U.tooltipBackground,titleColor:U.tooltipTitle,bodyColor:U.tooltipBody,borderColor:U.tooltipBorder,borderWidth:1,padding:12,cornerRadius:8,callbacks:{label:(F)=>{let R=F.dataset.label??"",T=F.parsed.y;return`${R}: ${(T??0).toFixed(1)}%`}}}},scales:{x:{grid:{color:U.grid,drawBorder:!1},ticks:{color:U.tick,font:{size:11}}},y:{grid:{color:U.grid,drawBorder:!1},ticks:{color:U.tick,font:{size:11},callback:(F)=>`${F}%`},min:0,max:100}}};return N6.jsxDEV("div",{className:"surface overflow-hidden",children:[N6.jsxDEV("div",{className:"px-5 py-4 border-b border-[var(--border-subtle)]",children:[N6.jsxDEV("h3",{className:"text-sm font-semibold text-[var(--text-primary)]",children:"Model Preference"},void 0,!1,void 0,this),N6.jsxDEV("p",{className:"text-xs text-[var(--text-muted)] mt-1",children:["Share of requests over ",K.windowLabel]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),N6.jsxDEV("div",{className:"p-5 min-h-[320px]",children:q.data.length===0?N6.jsxDEV("div",{className:"h-full flex items-center justify-center text-[var(--text-muted)] text-sm",children:"No data available"},void 0,!1,void 0,this):N6.jsxDEV("div",{className:"h-[280px]",children:N6.jsxDEV(E4,{data:H,options:M},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function $A(Q,J=5){if(Q.length===0)return{data:[],series:[]};let q=new Map;for(let z of Q){let L=`${z.model}::${z.provider}`,P=q.get(L);if(P)P.total+=z.requests;else q.set(L,{model:z.model,provider:z.provider,total:z.requests})}let U=[...q.entries()].map(([z,L])=>({key:z,...L})).sort((z,L)=>L.total-z.total).slice(0,J),K=new Set(U.map((z)=>z.key)),H=new Map;for(let z of U)H.set(z.model,(H.get(z.model)??0)+1);let M=new Map;for(let z of U){let L=(H.get(z.model)??0)>1;M.set(z.key,L?`${z.model} (${z.provider})`:z.model)}let F=new Map;for(let z of Q){let L=`${z.model}::${z.provider}`,P=F.get(z.timestamp)??{timestamp:z.timestamp,total:0};P.total+=z.requests;let I=K.has(L)?M.get(L)??z.model:"Other";P[I]=(P[I]??0)+z.requests,F.set(z.timestamp,P)}let R=U.map((z)=>M.get(z.key)??z.model);if([...F.values()].some((z)=>(z.Other??0)>0))R.push("Other");return{data:[...F.values()].sort((z,L)=>(z.timestamp??0)-(L.timestamp??0)).map((z)=>{let L=z.total??0;for(let P of R)z[P]=L>0?(z[P]??0)/L*100:0;return z}),series:R}}var tq=R0(e1(),1);var iq=R0(G1(),1);P5.register(h4,x4,QQ,u5,g4,L8,V8,_8,p9);var ZA={dark:"rgba(248, 250, 252, 0.7)",light:"rgba(15, 23, 42, 0.6)"};function QA(Q){return{id:"costBarLabels",afterDatasetsDraw(J){let{ctx:q}=J;if(!J.data.datasets[0])return;let U=J.getDatasetMeta(0);q.save(),q.font="11px system-ui, sans-serif",q.fillStyle=Q,q.textAlign="center",q.textBaseline="bottom";for(let K of U.data){let H=K.$context.parsed.y;if(!H)continue;let M=`$${Math.round(H)}`,{x:F,y:R}=K.getProps(["x","y"],!0);q.fillText(M,F,R-3)}q.restore()}}}function GA(Q){return jq(Q,"Cost",{initBucket:()=>({total:0}),accumulate:(J,q)=>{J.total+=q.cost},bucketToValue:(J)=>J.total})}function JA(Q){return Aq(Q,{rankWeight:(J)=>J.cost,initBucket:()=>({total:0}),accumulate:(J,q)=>{J.total+=q.cost},bucketToValue:(J)=>J.total})}function E_({costSeries:Q}){let[J,q]=tq.useState(!1),Y=E8(),U=Pq[Y],K=tq.useMemo(()=>J?JA(Q):GA(Q),[Q,J]),H=Cq({chartTheme:U,showLegend:J,defaultLabel:"Cost",formatValue:(T)=>`$${Math.round(T)}`,footer:(T)=>{if(!J||T.length<2)return;let z=T.reduce((L,P)=>L+(P.parsed.y??0),0);return`Total: $${Math.round(z)}`}}),{sharedScaleBase:M,yScale:F}=Iq({chartTheme:U,formatY:(T)=>`$${Math.round(T)}`}),R;if(J){let T={labels:K.labels,datasets:o9(K,(L)=>Oq(Y5[L%Y5.length]))};R=iq.jsxDEV(E4,{data:T,options:{responsive:!0,maintainAspectRatio:!1,interaction:{mode:"index",intersect:!1},plugins:H,scales:{x:M,y:F}}},void 0,!1,void 0,this)}else{let T={labels:K.labels,datasets:o9(K,(P)=>Dq(Y5[P%Y5.length]))},z=QA(ZA[Y]),L={responsive:!0,maintainAspectRatio:!1,interaction:{mode:"index",intersect:!1},plugins:{...H,costBarLabels:{}},scales:{x:{...M,stacked:!0},y:{...F,stacked:!0}},layout:{padding:{top:24}}};R=iq.jsxDEV(Tq,{data:T,options:L,plugins:[z]},void 0,!1,void 0,this)}return iq.jsxDEV(Sq,{title:"Daily Cost",subtitle:"API spending over time",empty:K.labels.length===0,emptyMessage:"No cost data available",byModel:J,onByModelChange:q,children:R},void 0,!1,void 0,this)}var Z7=R0(G1(),1);function oN(Q){return`$${Math.round(Q)}`}function P_({costSeries:Q}){let J=Q.reduce((F,R)=>F+R.cost,0),q=new Set(Q.map((F)=>F.timestamp)).size,Y=q>0?J/q:0,U=new Map;for(let F of Q)U.set(F.model,(U.get(F.model)??0)+F.cost);let K="",H=0;for(let[F,R]of U)if(R>H)K=F,H=R;let M=[{label:"Total",value:oN(J)},{label:"Avg / day",value:oN(Y)},{label:"Top model",value:K||"—",sub:K?oN(H):void 0}];return Z7.jsxDEV("div",{className:"grid grid-cols-1 sm:grid-cols-3 gap-4",children:M.map((F)=>Z7.jsxDEV("div",{className:"surface px-4 py-3",children:[Z7.jsxDEV("p",{className:"text-xs text-[var(--text-muted)] mb-1",children:F.label},void 0,!1,void 0,this),Z7.jsxDEV("p",{className:"text-lg font-semibold text-[var(--text-primary)] truncate",title:F.value,children:F.value},void 0,!1,void 0,this),F.sub&&Z7.jsxDEV("p",{className:"text-xs text-[var(--text-muted)] mt-0.5",children:F.sub},void 0,!1,void 0,this)]},F.label,!0,void 0,this))},void 0,!1,void 0,this)}var C5=R0(G1(),1),qA=["overview","requests","errors","models","costs","behavior"],XA=[{label:"1h",value:"1h"},{label:"24h",value:"24h"},{label:"7d",value:"7d"},{label:"30d",value:"30d"},{label:"90d",value:"90d"},{label:"All",value:"all"}];function C_({activeTab:Q,onTabChange:J,onSync:q,syncing:Y,timeRange:U,onTimeRangeChange:K}){return C5.jsxDEV("header",{className:"flex flex-col sm:flex-row sm:items-center justify-between gap-4 pb-6 mb-8 border-b border-[var(--border-subtle)]",children:[C5.jsxDEV("div",{className:"flex items-center gap-3",children:[C5.jsxDEV("div",{className:"w-10 h-10 rounded-[var(--radius-md)] bg-gradient-to-br from-[var(--accent-pink)] to-[var(--accent-cyan)] flex items-center justify-center shadow-lg",children:C5.jsxDEV(E$,{className:"w-5 h-5 text-white"},void 0,!1,void 0,this)},void 0,!1,void 0,this),C5.jsxDEV("div",{children:[C5.jsxDEV("h1",{className:"text-xl font-semibold text-[var(--text-primary)]",children:"AI Usage"},void 0,!1,void 0,this),C5.jsxDEV("p",{className:"text-sm text-[var(--text-muted)]",children:"Statistics & Analytics"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),C5.jsxDEV("div",{className:"flex items-center gap-3",children:[C5.jsxDEV("div",{className:"flex bg-[var(--bg-surface)] rounded-[var(--radius-md)] p-1 border border-[var(--border-subtle)]",children:qA.map((H)=>C5.jsxDEV("button",{type:"button",onClick:()=>J(H),className:`tab-btn capitalize ${Q===H?"active":""}`,children:H},H,!1,void 0,this))},void 0,!1,void 0,this),C5.jsxDEV("div",{className:"flex bg-[var(--bg-surface)] rounded-[var(--radius-md)] p-1 border border-[var(--border-subtle)]",children:XA.map((H)=>C5.jsxDEV("button",{type:"button",onClick:()=>K(H.value),className:`tab-btn ${U===H.value?"active":""}`,title:H.value==="all"?"All time":`Last ${H.label}`,children:H.label},H.value,!1,void 0,this))},void 0,!1,void 0,this),C5.jsxDEV("button",{type:"button",onClick:q,disabled:Y,className:"btn btn-primary",children:[C5.jsxDEV(WQ,{size:16,className:Y?"spin":""},void 0,!1,void 0,this),Y?"Syncing...":"Sync"]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)}var eq=R0(e1(),1);var s0=R0(G1(),1);P5.register(h4,x4,g4,u5,L8,V8,_8);var I_="2fr 0.9fr 0.9fr 1fr 0.8fr 0.8fr 140px 40px";function O_({models:Q,performanceSeries:J,timeRange:q}){let[Y,U]=eq.useState(null),K=oq(q),H=eq.useMemo(()=>UA(J,K.bucketCount,K.bucketMs),[J,K.bucketCount,K.bucketMs]),M=E8(),F=fq[M],R=[...Q].sort((T,z)=>z.totalInputTokens+z.totalOutputTokens-(T.totalInputTokens+T.totalOutputTokens));return s0.jsxDEV(hq,{title:"Model Statistics",children:[s0.jsxDEV(xq,{gridTemplate:I_,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),s0.jsxDEV(uq,{children:R.map((T,z)=>{let L=`${T.model}::${T.provider}`,I=H.get(L)?.data??[],A=Y5[z%Y5.length],C=Y===L,g=T.errorRate*100;return s0.jsxDEV(dq,{gridTemplate:I_,isExpanded:C,onToggle:()=>U(C?null:L),cells:[s0.jsxDEV(mq,{model:T.model,provider:T.provider},"name",!1,void 0,this),s0.jsxDEV("div",{className:"text-right text-[var(--text-secondary)] font-mono text-sm",children:T.totalRequests.toLocaleString()},"requests",!1,void 0,this),s0.jsxDEV("div",{className:"text-right text-[var(--text-secondary)] font-mono text-sm",children:["$",T.totalCost.toFixed(2)]},"cost",!0,void 0,this),s0.jsxDEV("div",{className:"text-right text-[var(--text-secondary)] font-mono text-sm",children:(T.totalInputTokens+T.totalOutputTokens).toLocaleString()},"tokens",!1,void 0,this),s0.jsxDEV("div",{className:"text-right text-[var(--text-secondary)] font-mono text-sm",children:T.avgTokensPerSecond?.toFixed(1)??"-"},"tps",!1,void 0,this),s0.jsxDEV("div",{className:"text-right text-[var(--text-secondary)] font-mono text-sm",children:T.avgTtft?`${(T.avgTtft/1000).toFixed(2)}s`:"-"},"ttft",!1,void 0,this)],trendCell:I.length===0?s0.jsxDEV(pq,{},void 0,!1,void 0,this):s0.jsxDEV(yq,{timestamps:I.map((m)=>m.timestamp),values:I.map((m)=>m.avgTokensPerSecond??0),color:A},void 0,!1,void 0,this),expandedContent:s0.jsxDEV("div",{className:"grid gap-4",style:{gridTemplateColumns:"200px 1fr"},children:[s0.jsxDEV("div",{className:"space-y-4 text-sm",children:[s0.jsxDEV("div",{children:[s0.jsxDEV("div",{className:"text-[var(--text-primary)] font-medium mb-2",children:"Quality"},void 0,!1,void 0,this),s0.jsxDEV("div",{className:"space-y-1 text-[var(--text-secondary)]",children:[s0.jsxDEV("div",{className:"flex items-center justify-between",children:[s0.jsxDEV("span",{children:"Error rate"},void 0,!1,void 0,this),s0.jsxDEV("span",{className:g>5?"text-[var(--accent-red)]":"text-[var(--accent-green)]",children:[g.toFixed(1),"%"]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),s0.jsxDEV("div",{className:"flex items-center justify-between",children:[s0.jsxDEV("span",{children:"Cache rate"},void 0,!1,void 0,this),s0.jsxDEV("span",{className:"text-[var(--accent-cyan)]",children:[(T.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),s0.jsxDEV("div",{children:[s0.jsxDEV("div",{className:"text-[var(--text-primary)] font-medium mb-2",children:"Latency"},void 0,!1,void 0,this),s0.jsxDEV("div",{className:"space-y-1 text-[var(--text-secondary)]",children:[s0.jsxDEV("div",{className:"flex items-center justify-between",children:[s0.jsxDEV("span",{children:"Avg duration"},void 0,!1,void 0,this),s0.jsxDEV("span",{className:"font-mono",children:T.avgDuration?`${(T.avgDuration/1000).toFixed(2)}s`:"-"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),s0.jsxDEV("div",{className:"flex items-center justify-between",children:[s0.jsxDEV("span",{children:"Avg TTFT"},void 0,!1,void 0,this),s0.jsxDEV("span",{className:"font-mono",children:T.avgTtft?`${(T.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),s0.jsxDEV("div",{className:"h-[200px]",children:I.length===0?s0.jsxDEV(cq,{},void 0,!1,void 0,this):s0.jsxDEV(YA,{data:I,color:A,chartTheme:F},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},L,!1,void 0,this)})},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function YA({data:Q,color:J,chartTheme:q}){let Y={labels:Q.map((K)=>u4(new Date(K.timestamp),"MMM d")),datasets:[{label:"TTFT",data:Q.map((K)=>K.avgTtftSeconds??null),...U6("#fbbf24"),yAxisID:"y"},{label:"Tokens/s",data:Q.map((K)=>K.avgTokensPerSecond??null),...U6(J),yAxisID:"y1"}]},U={responsive:!0,maintainAspectRatio:!1,plugins:gq(q),scales:H_(q)};return s0.jsxDEV(E4,{data:Y,options:U},void 0,!1,void 0,this)}function UA(Q,J,q){let Y=Q.reduce((z,L)=>Math.max(z,L.timestamp),0),U=Y>0?Y:Math.floor(Date.now()/q)*q,K=new Set(Q.map((z)=>z.timestamp)),H=J>0?J:Math.max(1,K.size),M=U-(H-1)*q,F=Array.from({length:H},(z,L)=>M+L*q),R=new Map(F.map((z,L)=>[z,L])),T=new Map;for(let z of Q){let L=`${z.model}::${z.provider}`,P=T.get(L);if(!P)P={label:`${z.model} (${z.provider})`,data:F.map((A)=>({timestamp:A,avgTtftSeconds:null,avgTokensPerSecond:null,requests:0}))},T.set(L,P);let I=R.get(z.timestamp);if(I===void 0)continue;P.data[I]={timestamp:z.timestamp,avgTtftSeconds:z.avgTtft!==null?z.avgTtft/1000:null,avgTokensPerSecond:z.avgTokensPerSecond,requests:z.requests}}return T}var zQ=R0(e1(),1);var X0=R0(G1(),1);function D_({id:Q,onClose:J}){let[q,Y]=zQ.useState(null),[U,K]=zQ.useState(!0);if(zQ.useEffect(()=>{ow(Q).then(Y).catch(console.error).finally(()=>K(!1))},[Q]),!q&&U)return X0.jsxDEV("div",{className:"fixed inset-0 bg-[var(--bg-overlay)] flex justify-center items-center z-[100]",children:X0.jsxDEV("div",{className:"surface px-8 py-6",children:X0.jsxDEV("div",{className:"flex items-center gap-3 text-[var(--text-secondary)]",children:[X0.jsxDEV("div",{className:"w-5 h-5 border-2 border-[var(--border-default)] border-t-[var(--accent-cyan)] rounded-full spin"},void 0,!1,void 0,this),X0.jsxDEV("span",{children:"Loading..."},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this);if(!q)return null;return X0.jsxDEV("div",{role:"presentation",className:"fixed inset-0 bg-[var(--bg-overlay)] backdrop-blur-sm flex justify-end z-[100] animate-fade-in",onClick:J,children:X0.jsxDEV("div",{role:"dialog","aria-modal":"true",className:"w-[600px] max-w-full bg-[var(--bg-page)] h-full overflow-y-auto border-l border-[var(--border-subtle)] animate-slide-up",onClick:(H)=>H.stopPropagation(),children:[X0.jsxDEV("div",{className:"sticky top-0 bg-[var(--bg-page)]/95 backdrop-blur border-b border-[var(--border-subtle)] px-6 py-4 flex justify-between items-center z-10",children:[X0.jsxDEV("div",{className:"flex items-center gap-3",children:[X0.jsxDEV("div",{className:"w-8 h-8 rounded-[var(--radius-sm)] bg-gradient-to-br from-[var(--accent-pink)]/20 to-[var(--accent-cyan)]/20 flex items-center justify-center",children:X0.jsxDEV(T2,{size:16,className:"text-[var(--accent-cyan)]"},void 0,!1,void 0,this)},void 0,!1,void 0,this),X0.jsxDEV("h2",{className:"text-lg font-semibold text-[var(--text-primary)]",children:"Request Details"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),X0.jsxDEV("button",{type:"button",onClick:J,className:"p-2 rounded-[var(--radius-sm)] text-[var(--text-muted)] hover:text-[var(--text-primary)] hover:bg-[var(--bg-hover)] transition-colors",children:X0.jsxDEV(TQ,{size:20},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),X0.jsxDEV("div",{className:"p-6 space-y-6",children:[X0.jsxDEV("div",{className:"surface p-5",children:X0.jsxDEV("div",{className:"flex items-center justify-between mb-4",children:[X0.jsxDEV("div",{children:[X0.jsxDEV("div",{className:"text-2xl font-bold text-[var(--text-primary)]",children:q.model},void 0,!1,void 0,this),X0.jsxDEV("div",{className:"text-sm text-[var(--text-muted)]",children:q.provider},void 0,!1,void 0,this)]},void 0,!0,void 0,this),q.errorMessage?X0.jsxDEV("span",{className:"badge badge-error",children:"Error"},void 0,!1,void 0,this):X0.jsxDEV("span",{className:"badge badge-success",children:"Success"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this),X0.jsxDEV("div",{className:"grid grid-cols-2 gap-4",children:[X0.jsxDEV("div",{className:"surface p-4",children:[X0.jsxDEV("div",{className:"flex items-center gap-2 text-[var(--text-muted)] mb-2",children:[X0.jsxDEV(KQ,{size:14},void 0,!1,void 0,this),X0.jsxDEV("span",{className:"text-xs uppercase tracking-wide",children:"Cost"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),X0.jsxDEV("div",{className:"text-xl font-semibold text-[var(--text-primary)]",children:["$",q.usage.cost.total.toFixed(4)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),X0.jsxDEV("div",{className:"surface p-4",children:[X0.jsxDEV("div",{className:"flex items-center gap-2 text-[var(--text-muted)] mb-2",children:[X0.jsxDEV(P$,{size:14},void 0,!1,void 0,this),X0.jsxDEV("span",{className:"text-xs uppercase tracking-wide",children:"Premium Reqs"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),X0.jsxDEV("div",{className:"text-xl font-semibold text-[var(--text-primary)]",children:(q.usage.premiumRequests??0).toLocaleString()},void 0,!1,void 0,this)]},void 0,!0,void 0,this),X0.jsxDEV("div",{className:"surface p-4",children:[X0.jsxDEV("div",{className:"flex items-center gap-2 text-[var(--text-muted)] mb-2",children:[X0.jsxDEV(FQ,{size:14},void 0,!1,void 0,this),X0.jsxDEV("span",{className:"text-xs uppercase tracking-wide",children:"Tokens"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),X0.jsxDEV("div",{className:"text-xl font-semibold text-[var(--text-primary)]",children:q.usage.totalTokens.toLocaleString()},void 0,!1,void 0,this),X0.jsxDEV("div",{className:"text-xs text-[var(--text-muted)] mt-1",children:[q.usage.input.toLocaleString()," in · ",q.usage.output.toLocaleString()," out"]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),X0.jsxDEV("div",{className:"surface p-4",children:[X0.jsxDEV("div",{className:"flex items-center gap-2 text-[var(--text-muted)] mb-2",children:[X0.jsxDEV(NQ,{size:14},void 0,!1,void 0,this),X0.jsxDEV("span",{className:"text-xs uppercase tracking-wide",children:"Duration"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),X0.jsxDEV("div",{className:"text-xl font-semibold text-[var(--text-primary)]",children:q.duration?`${(q.duration/1000).toFixed(2)}s`:"-"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),X0.jsxDEV("div",{className:"surface p-4",children:[X0.jsxDEV("div",{className:"flex items-center gap-2 text-[var(--text-muted)] mb-2",children:[X0.jsxDEV(C$,{size:14},void 0,!1,void 0,this),X0.jsxDEV("span",{className:"text-xs uppercase tracking-wide",children:"TTFT"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),X0.jsxDEV("div",{className:"text-xl font-semibold text-[var(--text-primary)]",children:q.ttft?`${(q.ttft/1000).toFixed(2)}s`:"-"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),q.duration&&q.usage.output>0&&X0.jsxDEV("div",{className:"surface p-4",children:[X0.jsxDEV("div",{className:"flex items-center justify-between",children:[X0.jsxDEV("div",{className:"flex items-center gap-2 text-[var(--text-muted)]",children:[X0.jsxDEV(MQ,{size:14},void 0,!1,void 0,this),X0.jsxDEV("span",{className:"text-xs uppercase tracking-wide",children:"Throughput"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),X0.jsxDEV("span",{className:"text-2xl font-bold gradient-text",children:(q.usage.output*1000/q.duration).toFixed(1)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),X0.jsxDEV("div",{className:"text-xs text-[var(--text-muted)] mt-1 text-right",children:"tokens/second"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),X0.jsxDEV("div",{children:[X0.jsxDEV("h3",{className:"text-sm font-semibold text-[var(--text-primary)] mb-3",children:"Output"},void 0,!1,void 0,this),X0.jsxDEV("pre",{className:"surface bg-[var(--bg-elevated)] p-4 rounded-[var(--radius-md)] text-sm font-mono text-[var(--text-secondary)] overflow-x-auto",children:JSON.stringify(q.output,null,2)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),X0.jsxDEV("div",{children:[X0.jsxDEV("h3",{className:"text-sm font-semibold text-[var(--text-primary)] mb-3",children:"Raw Metadata"},void 0,!1,void 0,this),X0.jsxDEV("pre",{className:"surface bg-[var(--bg-elevated)] p-4 rounded-[var(--radius-md)] text-xs font-mono text-[var(--text-muted)] overflow-x-auto",children:JSON.stringify(q,null,2)},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,!1,void 0,this)}var B1=R0(G1(),1);function _Q({requests:Q,onSelect:J,title:q}){return B1.jsxDEV("div",{className:"surface overflow-hidden flex flex-col h-full",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:q},void 0,!1,void 0,this)},void 0,!1,void 0,this),B1.jsxDEV("div",{className:"overflow-auto flex-1",children:B1.jsxDEV("table",{className:"w-full",children:[B1.jsxDEV("thead",{className:"bg-[var(--bg-elevated)] sticky top-0 z-10",children:B1.jsxDEV("tr",{children:[B1.jsxDEV("th",{className:"text-left py-3 px-4 table-header",children:"Model"},void 0,!1,void 0,this),B1.jsxDEV("th",{className:"text-left py-3 px-4 table-header",children:"Time"},void 0,!1,void 0,this),B1.jsxDEV("th",{className:"text-right py-3 px-4 table-header",children:"Tokens"},void 0,!1,void 0,this),B1.jsxDEV("th",{className:"text-right py-3 px-4 table-header",children:"Cost"},void 0,!1,void 0,this),B1.jsxDEV("th",{className:"text-right py-3 px-4 table-header",children:"Duration"},void 0,!1,void 0,this),B1.jsxDEV("th",{className:"text-center py-3 px-4 table-header",children:"Status"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this),B1.jsxDEV("tbody",{children:[Q.map((Y)=>B1.jsxDEV("tr",{onClick:()=>J(Y),className:"table-row cursor-pointer border-b border-[var(--border-subtle)] last:border-b-0",children:[B1.jsxDEV("td",{className:"py-3 px-4",children:[B1.jsxDEV("div",{className:"font-medium text-[var(--text-primary)] text-sm",children:Y.model},void 0,!1,void 0,this),B1.jsxDEV("div",{className:"text-xs text-[var(--text-muted)]",children:Y.provider},void 0,!1,void 0,this)]},void 0,!0,void 0,this),B1.jsxDEV("td",{className:"py-3 px-4 text-sm text-[var(--text-secondary)]",children:Z_(Y.timestamp,{addSuffix:!0})},void 0,!1,void 0,this),B1.jsxDEV("td",{className:"py-3 px-4 text-right text-sm text-[var(--text-secondary)] font-mono",children:Y.usage.totalTokens.toLocaleString()},void 0,!1,void 0,this),B1.jsxDEV("td",{className:"py-3 px-4 text-right text-sm text-[var(--text-secondary)] font-mono",children:["$",Y.usage.cost.total.toFixed(4)]},void 0,!0,void 0,this),B1.jsxDEV("td",{className:"py-3 px-4 text-right text-sm text-[var(--text-secondary)] font-mono",children:Y.duration?`${(Y.duration/1000).toFixed(1)}s`:"-"},void 0,!1,void 0,this),B1.jsxDEV("td",{className:"py-3 px-4 text-center",children:Y.errorMessage?B1.jsxDEV(R2,{size:16,className:"text-[var(--accent-red)] mx-auto"},void 0,!1,void 0,this):B1.jsxDEV(w2,{size:16,className:"text-[var(--accent-green)] mx-auto"},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},`${Y.sessionFile}-${Y.entryId}`,!0,void 0,this)),Q.length===0&&B1.jsxDEV("tr",{children:B1.jsxDEV("td",{colSpan:6,className:"py-12 text-center text-[var(--text-muted)] text-sm",children:"No requests found"},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}var K6=R0(G1(),1),NA=new Intl.NumberFormat(void 0,{notation:"compact",maximumFractionDigits:1});function j_(Q){return NA.format(Q)}function aN(Q){return Q.toLocaleString()}var LQ=(Q)=>Q.totalInputTokens+Q.totalOutputTokens,KA=[{key:"requests",title:"Total Requests",icon:wQ,color:"var(--accent-violet)",getValue:(Q)=>Q.totalRequests.toLocaleString(),getDetail:(Q)=>`${Q.successfulRequests.toLocaleString()} success · ${Q.failedRequests.toLocaleString()} errors`},{key:"cost",title:"Total Cost",icon:E$,color:"var(--accent-pink)",getValue:(Q)=>`$${Q.totalCost.toFixed(2)}`,getDetail:(Q)=>Q.totalRequests>0?`$${(Q.totalCost/Q.totalRequests).toFixed(4)} avg/req`:"-"},{key:"premiumRequests",title:"Premium Reqs",icon:P$,color:"var(--accent-amber)",getValue:(Q)=>aN(Q.totalPremiumRequests),getDetail:(Q)=>Q.totalRequests>0?`${(Q.totalPremiumRequests/Q.totalRequests*100).toFixed(1)}% of requests`:"-"},{key:"cache",title:"Cache Rate",icon:BQ,color:"var(--accent-cyan)",getValue:(Q)=>`${(Q.cacheRate*100).toFixed(1)}%`,getDetail:(Q)=>`${j_(Q.totalCacheReadTokens)} cached tokens`},{key:"inputTokens",title:"Input Tokens",icon:HQ,color:"var(--accent-violet)",getValue:(Q)=>aN(Q.totalInputTokens),getDetail:(Q)=>LQ(Q)>0?`${(Q.totalInputTokens/LQ(Q)*100).toFixed(1)}% of prompt+completion`:"-"},{key:"outputTokens",title:"Output Tokens",icon:RQ,color:"var(--accent-pink)",getValue:(Q)=>aN(Q.totalOutputTokens),getDetail:(Q)=>LQ(Q)>0?`${(Q.totalOutputTokens/LQ(Q)*100).toFixed(1)}% of prompt+completion`:"-"},{key:"errors",title:"Error Rate",icon:W2,color:"var(--accent-red)",getValue:(Q)=>`${(Q.errorRate*100).toFixed(1)}%`,getDetail:(Q)=>`${Q.failedRequests.toLocaleString()} failed requests`},{key:"tokens",title:"Tokens/Sec",icon:F2,color:"var(--accent-green)",getValue:(Q)=>Q.avgTokensPerSecond?.toFixed(1)??"-",getDetail:(Q)=>`${j_(LQ(Q))} total prompt+completion`},{key:"ttft",title:"TTFT",icon:C$,color:"var(--accent-amber)",getValue:(Q)=>Q.avgTtft?`${(Q.avgTtft/1000).toFixed(2)}s`:"-",getDetail:()=>"Time to first token"}];function A_({stats:Q}){return K6.jsxDEV("div",{className:"grid grid-cols-2 lg:grid-cols-3 xl:grid-cols-9 gap-4 mb-8",children:KA.map((J)=>{let q=J.icon;return K6.jsxDEV("div",{className:"stat-card group",children:[K6.jsxDEV("div",{className:"flex items-center justify-between mb-3",children:[K6.jsxDEV("span",{className:"text-sm font-medium text-[var(--text-secondary)]",children:J.title},void 0,!1,void 0,this),K6.jsxDEV("div",{className:"p-2 rounded-[var(--radius-sm)] transition-colors",style:{backgroundColor:`${J.color}15`},children:K6.jsxDEV(q,{size:18,style:{color:J.color},className:"transition-transform group-hover:scale-110"},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),K6.jsxDEV("div",{className:"text-2xl font-bold text-[var(--text-primary)] mb-1",children:J.getValue(Q)},void 0,!1,void 0,this),K6.jsxDEV("div",{className:"text-xs text-[var(--text-muted)] truncate",children:J.getDetail(Q)},void 0,!1,void 0,this)]},J.key,!0,void 0,this)})},void 0,!1,void 0,this)}var m0=R0(G1(),1);function iN(){let[Q,J]=U5.useState(null),[q,Y]=U5.useState(null),[U,K]=U5.useState(null),[H,M]=U5.useState(null),[F,R]=U5.useState([]),[T,z]=U5.useState([]),[L,P]=U5.useState(null),[I,A]=U5.useState(!1),[C,g]=U5.useState("overview"),[m,o]=U5.useState("24h"),a=U5.useCallback(async()=>{try{let[p,i]=await Promise.all([sw(50),nw(50)]);R(p),z(i)}catch(p){console.error(p)}},[]),s=U5.useCallback(async()=>{try{if(C==="models"){Y(await lw(m));return}if(C==="costs"){K(await rw(m));return}if(C==="behavior"){M(await iw(m));return}if(C==="overview")J(await cw(m))}catch(p){console.error(p)}},[C,m]),Q0=async()=>{A(!0);try{await aw(),await Promise.all([s(),a()])}finally{A(!1)}};return U5.useEffect(()=>{a();let p=setInterval(a,30000);return()=>clearInterval(p)},[a]),U5.useEffect(()=>{s();let p=setInterval(s,30000);return()=>clearInterval(p)},[s]),m0.jsxDEV("div",{className:"min-h-screen",children:m0.jsxDEV("div",{className:"max-w-[1600px] mx-auto px-6 py-6",children:[m0.jsxDEV(C_,{activeTab:C,onTabChange:g,onSync:Q0,syncing:I,timeRange:m,onTimeRangeChange:o},void 0,!1,void 0,this),C==="overview"&&m0.jsxDEV("div",{className:"space-y-6 animate-fade-in",children:[Q?m0.jsxDEV(A_,{stats:Q.overall},void 0,!1,void 0,this):m0.jsxDEV($3,{label:"Loading overview..."},void 0,!1,void 0,this),m0.jsxDEV("div",{className:"grid lg:grid-cols-2 gap-6",children:[m0.jsxDEV(_Q,{title:"Recent Requests",requests:F.slice(0,10),onSelect:(p)=>p.id&&P(p.id)},void 0,!1,void 0,this),m0.jsxDEV(_Q,{title:"Recent Errors",requests:T.slice(0,10),onSelect:(p)=>p.id&&P(p.id)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),C==="requests"&&m0.jsxDEV("div",{className:"h-[calc(100vh-140px)] animate-fade-in",children:m0.jsxDEV(_Q,{title:"All Recent Requests",requests:F,onSelect:(p)=>p.id&&P(p.id)},void 0,!1,void 0,this)},void 0,!1,void 0,this),C==="errors"&&m0.jsxDEV("div",{className:"h-[calc(100vh-140px)] animate-fade-in",children:m0.jsxDEV(_Q,{title:"Failed Requests",requests:T,onSelect:(p)=>p.id&&P(p.id)},void 0,!1,void 0,this)},void 0,!1,void 0,this),C==="models"&&m0.jsxDEV("div",{className:"space-y-6 animate-fade-in",children:q?m0.jsxDEV(m0.Fragment,{children:[m0.jsxDEV(V_,{modelSeries:q.modelSeries,timeRange:m},void 0,!1,void 0,this),m0.jsxDEV(O_,{models:q.byModel,performanceSeries:q.modelPerformanceSeries,timeRange:m},void 0,!1,void 0,this)]},void 0,!0,void 0,this):m0.jsxDEV($3,{label:"Loading models..."},void 0,!1,void 0,this)},void 0,!1,void 0,this),C==="costs"&&m0.jsxDEV("div",{className:"space-y-6 animate-fade-in",children:U?m0.jsxDEV(m0.Fragment,{children:[m0.jsxDEV(P_,{costSeries:U.costSeries},void 0,!1,void 0,this),m0.jsxDEV(E_,{costSeries:U.costSeries},void 0,!1,void 0,this)]},void 0,!0,void 0,this):m0.jsxDEV($3,{label:"Loading costs..."},void 0,!1,void 0,this)},void 0,!1,void 0,this),C==="behavior"&&m0.jsxDEV("div",{className:"space-y-6 animate-fade-in",children:H?m0.jsxDEV(m0.Fragment,{children:[m0.jsxDEV(T_,{overall:H.overall,behaviorSeries:H.behaviorSeries},void 0,!1,void 0,this),m0.jsxDEV(q_,{behaviorSeries:H.behaviorSeries},void 0,!1,void 0,this),m0.jsxDEV(w_,{models:H.byModel,behaviorSeries:H.behaviorSeries},void 0,!1,void 0,this)]},void 0,!0,void 0,this):m0.jsxDEV($3,{label:"Loading behavior..."},void 0,!1,void 0,this)},void 0,!1,void 0,this),L!==null&&m0.jsxDEV(D_,{id:L,onClose:()=>P(null)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)}function $3({label:Q}){return m0.jsxDEV("div",{className:"min-h-[180px] flex items-center justify-center",children:m0.jsxDEV("div",{className:"flex items-center gap-3 text-[var(--text-muted)]",children:[m0.jsxDEV("div",{className:"w-5 h-5 border-2 border-[var(--border-default)] border-t-[var(--accent-cyan)] rounded-full spin"},void 0,!1,void 0,this),m0.jsxDEV("span",{className:"text-sm",children:Q},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)}var v_=R0(G1(),1),BA=S_.createRoot(document.getElementById("root"));BA.render(v_.jsxDEV(iN,{},void 0,!1,void 0,this));
|