@linxiraos/pi-stats 1.4.7 → 1.4.9
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/CHANGELOG.md +4 -0
- package/dist/client/index.js +89 -89
- package/dist/types/client/api.d.ts +4 -0
- package/dist/types/client/app/CloseButton.d.ts +7 -0
- package/dist/types/client/app/keys.d.ts +9 -0
- package/dist/types/index.d.ts +1 -1
- package/dist/types/server.d.ts +7 -0
- package/package.json +4 -8
- package/src/client/api.ts +13 -0
- package/src/client/app/CloseButton.tsx +56 -0
- package/src/client/app/Shell.tsx +4 -11
- package/src/client/app/keys.ts +21 -0
- package/src/client/data/query.ts +12 -4
- package/src/client/react-css.d.ts +8 -0
- package/src/client/traces/SpanDrawer.tsx +2 -1
- package/src/client/traces/TranscriptList.tsx +1 -1
- package/src/client/ui/Card.tsx +2 -2
- package/src/client/ui/Drawer.tsx +2 -2
- package/src/client/ui/Stat.tsx +2 -5
- package/src/db.ts +2 -1
- package/src/index.ts +1 -1
- package/src/parser.ts +8 -1
- package/src/server.ts +24 -0
package/dist/client/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
var PM=Object.create;var{getPrototypeOf:_M,defineProperty:ok,getOwnPropertyNames:HM}=Object;var nk=Object.prototype.hasOwnProperty;function FM(l){return this[l]}var GM,VM,Q=(l,c,i)=>{var d=l!=null&&typeof l==="object";if(d){var p=c?GM??=new WeakMap:VM??=new WeakMap,b=p.get(l);if(b)return b}i=l!=null?PM(_M(l)):{};let g=c||!l||!l.__esModule||!nk.call(l,"default")?ok(i,"default",{value:l,enumerable:!0}):i;if(l&&typeof l==="object"||typeof l==="function"){for(let v of HM(l))if(!nk.call(g,v))ok(g,v,{get:FM.bind(l,v),enumerable:!0})}if(d)p.set(l,g);return g};var js=(l,c)=>()=>(c||l((c={exports:{}}).exports,c),c.exports);var rk=js(function(fi){(function(){function l(){if(F=!1,Y){var oe=fi.unstable_now();de=oe;var he=!0;try{e:{P=!1,X&&(X=!1,Z(J),J=-1),U=!0;var Ce=D;try{t:{b(oe);for(M=i(w);M!==null&&!(M.expirationTime>oe&&v());){var We=M.callback;if(typeof We==="function"){M.callback=null,D=M.priorityLevel;var St=We(M.expirationTime<=oe);if(oe=fi.unstable_now(),typeof St==="function"){M.callback=St,b(oe),he=!0;break t}M===i(w)&&d(w),b(oe)}else d(w);M=i(w)}if(M!==null)he=!0;else{var ee=i(T);ee!==null&&L(g,ee.startTime-oe),he=!1}}break e}finally{M=null,D=Ce,U=!1}he=void 0}}finally{he?Se():Y=!1}}}function c(oe,he){var Ce=oe.length;oe.push(he);e:for(;0<Ce;){var We=Ce-1>>>1,St=oe[We];if(0<p(St,he))oe[We]=he,oe[Ce]=St,Ce=We;else break e}}function i(oe){return oe.length===0?null:oe[0]}function d(oe){if(oe.length===0)return null;var he=oe[0],Ce=oe.pop();if(Ce!==he){oe[0]=Ce;e:for(var We=0,St=oe.length,ee=St>>>1;We<ee;){var ze=2*(We+1)-1,Lt=oe[ze],Ct=ze+1,ue=oe[Ct];if(0>p(Lt,Ce))Ct<St&&0>p(ue,Lt)?(oe[We]=ue,oe[Ct]=Ce,We=Ct):(oe[We]=Lt,oe[ze]=Ce,We=ze);else if(Ct<St&&0>p(ue,Ce))oe[We]=ue,oe[Ct]=Ce,We=Ct;else break e}}return he}function p(oe,he){var Ce=oe.sortIndex-he.sortIndex;return Ce!==0?Ce:oe.id-he.id}function b(oe){for(var he=i(T);he!==null;){if(he.callback===null)d(T);else if(he.startTime<=oe)d(T),he.sortIndex=he.expirationTime,c(w,he);else break;he=i(T)}}function g(oe){if(X=!1,b(oe),!P)if(i(w)!==null)P=!0,Y||(Y=!0,Se());else{var he=i(T);he!==null&&L(g,he.startTime-oe)}}function v(){return F?!0:fi.unstable_now()-de<V?!1:!0}function L(oe,he){J=fe(function(){oe(fi.unstable_now())},he)}if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart==="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error()),fi.unstable_now=void 0,typeof performance==="object"&&typeof performance.now==="function"){var x=performance;fi.unstable_now=function(){return x.now()}}else{var h=Date,C=h.now();fi.unstable_now=function(){return h.now()-C}}var w=[],T=[],k=1,M=null,D=3,U=!1,P=!1,X=!1,F=!1,fe=typeof setTimeout==="function"?setTimeout:null,Z=typeof clearTimeout==="function"?clearTimeout:null,te=typeof setImmediate<"u"?setImmediate:null,Y=!1,J=-1,V=5,de=-1;if(typeof te==="function")var Se=function(){te(l)};else if(typeof MessageChannel<"u"){var Ie=new MessageChannel,Me=Ie.port2;Ie.port1.onmessage=l,Se=function(){Me.postMessage(null)}}else Se=function(){fe(l,0)};fi.unstable_IdlePriority=5,fi.unstable_ImmediatePriority=1,fi.unstable_LowPriority=4,fi.unstable_NormalPriority=3,fi.unstable_Profiling=null,fi.unstable_UserBlockingPriority=2,fi.unstable_cancelCallback=function(oe){oe.callback=null},fi.unstable_forceFrameRate=function(oe){0>oe||125<oe?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):V=0<oe?Math.floor(1000/oe):5},fi.unstable_getCurrentPriorityLevel=function(){return D},fi.unstable_next=function(oe){switch(D){case 1:case 2:case 3:var he=3;break;default:he=D}var Ce=D;D=he;try{return oe()}finally{D=Ce}},fi.unstable_requestPaint=function(){F=!0},fi.unstable_runWithPriority=function(oe,he){switch(oe){case 1:case 2:case 3:case 4:case 5:break;default:oe=3}var Ce=D;D=oe;try{return he()}finally{D=Ce}},fi.unstable_scheduleCallback=function(oe,he,Ce){var We=fi.unstable_now();switch(typeof Ce==="object"&&Ce!==null?(Ce=Ce.delay,Ce=typeof Ce==="number"&&0<Ce?We+Ce:We):Ce=We,oe){case 1:var St=-1;break;case 2:St=250;break;case 5:St=1073741823;break;case 4:St=1e4;break;default:St=5000}return St=Ce+St,oe={id:k++,callback:he,priorityLevel:oe,startTime:Ce,expirationTime:St,sortIndex:-1},Ce>We?(oe.sortIndex=Ce,c(T,oe),i(w)===null&&oe===i(T)&&(X?(Z(J),J=-1):X=!0,L(g,Ce-We))):(oe.sortIndex=St,c(w,oe),P||U||(P=!0,Y||(Y=!0,Se()))),oe},fi.unstable_shouldYield=v,fi.unstable_wrapCallback=function(oe){var he=D;return function(){var Ce=D;D=he;try{return oe.apply(this,arguments)}finally{D=Ce}}},typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop==="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()});var dt=js(function(jM,dm){(function(){function l(S,z){Object.defineProperty(d.prototype,S,{get:function(){console.warn("%s(...) is deprecated in plain JavaScript React classes. %s",z[0],z[1])}})}function c(S){if(S===null||typeof S!=="object")return null;return S=re&&S[re]||S["@@iterator"],typeof S==="function"?S:null}function i(S,z){S=(S=S.constructor)&&(S.displayName||S.name)||"ReactClass";var le=S+"."+z;j[le]||(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.",z,S),j[le]=!0)}function d(S,z,le){this.props=S,this.context=z,this.refs=$e,this.updater=le||ve}function p(){}function b(S,z,le){this.props=S,this.context=z,this.refs=$e,this.updater=le||ve}function g(){}function v(S){return""+S}function L(S){try{v(S);var z=!1}catch(ke){z=!0}if(z){z=console;var le=z.error,pe=typeof Symbol==="function"&&Symbol.toStringTag&&S[Symbol.toStringTag]||S.constructor.name||"Object";return le.call(z,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",pe),v(S)}}function x(S){if(S==null)return null;if(typeof S==="function")return S.$$typeof===yt?null:S.displayName||S.name||null;if(typeof S==="string")return S;switch(S){case St:return"Fragment";case ze:return"Profiler";case ee:return"StrictMode";case He:return"Suspense";case Fe:return"SuspenseList";case lt: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 We:return"Portal";case Ct:return S.displayName||"Context";case Lt:return(S._context.displayName||"Context")+".Consumer";case ue:var z=S.render;return S=S.displayName,S||(S=z.displayName||z.name||"",S=S!==""?"ForwardRef("+S+")":"ForwardRef"),S;case W:return z=S.displayName||null,z!==null?z:x(S.type)||"Memo";case Ae:z=S._payload,S=S._init;try{return x(S(z))}catch(le){}}return null}function h(S){if(S===St)return"<>";if(typeof S==="object"&&S!==null&&S.$$typeof===Ae)return"<...>";try{var z=x(S);return z?"<"+z+">":"<...>"}catch(le){return"<...>"}}function C(){var S=xe.A;return S===null?null:S.getOwner()}function w(){return Error("react-stack-top-frame")}function T(S){if(cn.call(S,"key")){var z=Object.getOwnPropertyDescriptor(S,"key").get;if(z&&z.isReactWarning)return!1}return S.key!==void 0}function k(S,z){function le(){$d||($d=!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)",z))}le.isReactWarning=!0,Object.defineProperty(S,"key",{get:le,configurable:!0})}function M(){var S=x(this.type);return ts[S]||(ts[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 D(S,z,le,pe,ke,Je){var et=le.ref;return S={$$typeof:Ce,type:S,key:z,props:le,_owner:pe},(et!==void 0?et:null)!==null?Object.defineProperty(S,"ref",{enumerable:!1,get:M}):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:ke}),Object.defineProperty(S,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:Je}),Object.freeze&&(Object.freeze(S.props),Object.freeze(S)),S}function U(S,z){return z=D(S.type,z,S.props,S._owner,S._debugStack,S._debugTask),S._store&&(z._store.validated=S._store.validated),z}function P(S){X(S)?S._store&&(S._store.validated=1):typeof S==="object"&&S!==null&&S.$$typeof===Ae&&(S._payload.status==="fulfilled"?X(S._payload.value)&&S._payload.value._store&&(S._payload.value._store.validated=1):S._store&&(S._store.validated=1))}function X(S){return typeof S==="object"&&S!==null&&S.$$typeof===Ce}function F(S){var z={"=":"=0",":":"=2"};return"$"+S.replace(/[=:]/g,function(le){return z[le]})}function fe(S,z){return typeof S==="object"&&S!==null&&S.key!=null?(L(S.key),F(""+S.key)):z.toString(36)}function Z(S){switch(S.status){case"fulfilled":return S.value;case"rejected":throw S.reason;default:switch(typeof S.status==="string"?S.then(g,g):(S.status="pending",S.then(function(z){S.status==="pending"&&(S.status="fulfilled",S.value=z)},function(z){S.status==="pending"&&(S.status="rejected",S.reason=z)})),S.status){case"fulfilled":return S.value;case"rejected":throw S.reason}}throw S}function te(S,z,le,pe,ke){var Je=typeof S;if(Je==="undefined"||Je==="boolean")S=null;var et=!1;if(S===null)et=!0;else switch(Je){case"bigint":case"string":case"number":et=!0;break;case"object":switch(S.$$typeof){case Ce:case We:et=!0;break;case Ae:return et=S._init,te(et(S._payload),z,le,pe,ke)}}if(et){et=S,ke=ke(et);var It=pe===""?"."+fe(et,0):pe;return Xe(ke)?(le="",It!=null&&(le=It.replace(cu,"$&/")+"/"),te(ke,z,le,"",function(Wa){return Wa})):ke!=null&&(X(ke)&&(ke.key!=null&&(et&&et.key===ke.key||L(ke.key)),le=U(ke,le+(ke.key==null||et&&et.key===ke.key?"":(""+ke.key).replace(cu,"$&/")+"/")+It),pe!==""&&et!=null&&X(et)&&et.key==null&&et._store&&!et._store.validated&&(le._store.validated=2),ke=le),z.push(ke)),1}if(et=0,It=pe===""?".":pe+":",Xe(S))for(var qe=0;qe<S.length;qe++)pe=S[qe],Je=It+fe(pe,qe),et+=te(pe,z,le,Je,ke);else if(qe=c(S),typeof qe==="function")for(qe===S.entries&&(iu||console.warn("Using Maps as children is not supported. Use an array of keyed ReactElements instead."),iu=!0),S=qe.call(S),qe=0;!(pe=S.next()).done;)pe=pe.value,Je=It+fe(pe,qe++),et+=te(pe,z,le,Je,ke);else if(Je==="object"){if(typeof S.then==="function")return te(Z(S),z,le,pe,ke);throw z=String(S),Error("Objects are not valid as a React child (found: "+(z==="[object Object]"?"object with keys {"+Object.keys(S).join(", ")+"}":z)+"). If you meant to render a collection of children, use an array instead.")}return et}function Y(S,z,le){if(S==null)return S;var pe=[],ke=0;return te(S,pe,"","",function(Je){return z.call(le,Je,ke++)}),pe}function J(S){if(S._status===-1){var z=S._ioInfo;z!=null&&(z.start=z.end=performance.now()),z=S._result;var le=z();if(le.then(function(ke){if(S._status===0||S._status===-1){S._status=1,S._result=ke;var Je=S._ioInfo;Je!=null&&(Je.end=performance.now()),le.status===void 0&&(le.status="fulfilled",le.value=ke)}},function(ke){if(S._status===0||S._status===-1){S._status=2,S._result=ke;var Je=S._ioInfo;Je!=null&&(Je.end=performance.now()),le.status===void 0&&(le.status="rejected",le.reason=ke)}}),z=S._ioInfo,z!=null){z.value=le;var pe=le.displayName;typeof pe==="string"&&(z.name=pe)}S._status===-1&&(S._status=0,S._result=le)}if(S._status===1)return z=S._result,z===void 0&&console.error(`lazy: Expected the result of a dynamic import() call. Instead received: %s
|
|
1
|
+
var QM=Object.create;var{getPrototypeOf:KM,defineProperty:dk,getOwnPropertyNames:ZM}=Object;var fk=Object.prototype.hasOwnProperty;function WM(l){return this[l]}var JM,e2,Q=(l,c,i)=>{var d=l!=null&&typeof l==="object";if(d){var p=c?JM??=new WeakMap:e2??=new WeakMap,x=p.get(l);if(x)return x}i=l!=null?QM(KM(l)):{};let g=c||!l||!l.__esModule||!fk.call(l,"default")?dk(i,"default",{value:l,enumerable:!0}):i;if(l&&typeof l==="object"||typeof l==="function"){for(let b of ZM(l))if(!fk.call(g,b))dk(g,b,{get:WM.bind(l,b),enumerable:!0})}if(d)p.set(l,g);return g};var js=(l,c)=>()=>(c||l((c={exports:{}}).exports,c),c.exports);var pk=js(function(fi){(function(){function l(){if(F=!1,K){var ae=fi.unstable_now();de=ae;var he=!0;try{e:{P=!1,X&&(X=!1,W(G),G=-1),U=!0;var we=E;try{t:{x(ae);for(M=i(w);M!==null&&!(M.expirationTime>ae&&b());){var We=M.callback;if(typeof We==="function"){M.callback=null,E=M.priorityLevel;var St=We(M.expirationTime<=ae);if(ae=fi.unstable_now(),typeof St==="function"){M.callback=St,x(ae),he=!0;break t}M===i(w)&&d(w),x(ae)}else d(w);M=i(w)}if(M!==null)he=!0;else{var ee=i(T);ee!==null&&S(g,ee.startTime-ae),he=!1}}break e}finally{M=null,E=we,U=!1}he=void 0}}finally{he?ve():K=!1}}}function c(ae,he){var we=ae.length;ae.push(he);e:for(;0<we;){var We=we-1>>>1,St=ae[We];if(0<p(St,he))ae[We]=he,ae[we]=St,we=We;else break e}}function i(ae){return ae.length===0?null:ae[0]}function d(ae){if(ae.length===0)return null;var he=ae[0],we=ae.pop();if(we!==he){ae[0]=we;e:for(var We=0,St=ae.length,ee=St>>>1;We<ee;){var ze=2*(We+1)-1,Lt=ae[ze],Ct=ze+1,ie=ae[Ct];if(0>p(Lt,we))Ct<St&&0>p(ie,Lt)?(ae[We]=ie,ae[Ct]=we,We=Ct):(ae[We]=Lt,ae[ze]=we,We=ze);else if(Ct<St&&0>p(ie,we))ae[We]=ie,ae[Ct]=we,We=Ct;else break e}}return he}function p(ae,he){var we=ae.sortIndex-he.sortIndex;return we!==0?we:ae.id-he.id}function x(ae){for(var he=i(T);he!==null;){if(he.callback===null)d(T);else if(he.startTime<=ae)d(T),he.sortIndex=he.expirationTime,c(w,he);else break;he=i(T)}}function g(ae){if(X=!1,x(ae),!P)if(i(w)!==null)P=!0,K||(K=!0,ve());else{var he=i(T);he!==null&&S(g,he.startTime-ae)}}function b(){return F?!0:fi.unstable_now()-de<V?!1:!0}function S(ae,he){G=me(function(){ae(fi.unstable_now())},he)}if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart==="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error()),fi.unstable_now=void 0,typeof performance==="object"&&typeof performance.now==="function"){var L=performance;fi.unstable_now=function(){return L.now()}}else{var h=Date,C=h.now();fi.unstable_now=function(){return h.now()-C}}var w=[],T=[],k=1,M=null,E=3,U=!1,P=!1,X=!1,F=!1,me=typeof setTimeout==="function"?setTimeout:null,W=typeof clearTimeout==="function"?clearTimeout:null,re=typeof setImmediate<"u"?setImmediate:null,K=!1,G=-1,V=5,de=-1;if(typeof re==="function")var ve=function(){re(l)};else if(typeof MessageChannel<"u"){var Ce=new MessageChannel,Ie=Ce.port2;Ce.port1.onmessage=l,ve=function(){Ie.postMessage(null)}}else ve=function(){me(l,0)};fi.unstable_IdlePriority=5,fi.unstable_ImmediatePriority=1,fi.unstable_LowPriority=4,fi.unstable_NormalPriority=3,fi.unstable_Profiling=null,fi.unstable_UserBlockingPriority=2,fi.unstable_cancelCallback=function(ae){ae.callback=null},fi.unstable_forceFrameRate=function(ae){0>ae||125<ae?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):V=0<ae?Math.floor(1000/ae):5},fi.unstable_getCurrentPriorityLevel=function(){return E},fi.unstable_next=function(ae){switch(E){case 1:case 2:case 3:var he=3;break;default:he=E}var we=E;E=he;try{return ae()}finally{E=we}},fi.unstable_requestPaint=function(){F=!0},fi.unstable_runWithPriority=function(ae,he){switch(ae){case 1:case 2:case 3:case 4:case 5:break;default:ae=3}var we=E;E=ae;try{return he()}finally{E=we}},fi.unstable_scheduleCallback=function(ae,he,we){var We=fi.unstable_now();switch(typeof we==="object"&&we!==null?(we=we.delay,we=typeof we==="number"&&0<we?We+we:We):we=We,ae){case 1:var St=-1;break;case 2:St=250;break;case 5:St=1073741823;break;case 4:St=1e4;break;default:St=5000}return St=we+St,ae={id:k++,callback:he,priorityLevel:ae,startTime:we,expirationTime:St,sortIndex:-1},we>We?(ae.sortIndex=we,c(T,ae),i(w)===null&&ae===i(T)&&(X?(W(G),G=-1):X=!0,S(g,we-We))):(ae.sortIndex=St,c(w,ae),P||U||(P=!0,K||(K=!0,ve()))),ae},fi.unstable_shouldYield=b,fi.unstable_wrapCallback=function(ae){var he=E;return function(){var we=E;E=he;try{return ae.apply(this,arguments)}finally{E=we}}},typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop==="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()});var ct=js(function(t2,fm){(function(){function l(v,z){Object.defineProperty(d.prototype,v,{get:function(){console.warn("%s(...) is deprecated in plain JavaScript React classes. %s",z[0],z[1])}})}function c(v){if(v===null||typeof v!=="object")return null;return v=ne&&v[ne]||v["@@iterator"],typeof v==="function"?v:null}function i(v,z){v=(v=v.constructor)&&(v.displayName||v.name)||"ReactClass";var le=v+"."+z;Y[le]||(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.",z,v),Y[le]=!0)}function d(v,z,le){this.props=v,this.context=z,this.refs=$e,this.updater=le||be}function p(){}function x(v,z,le){this.props=v,this.context=z,this.refs=$e,this.updater=le||be}function g(){}function b(v){return""+v}function S(v){try{b(v);var z=!1}catch(Te){z=!0}if(z){z=console;var le=z.error,fe=typeof Symbol==="function"&&Symbol.toStringTag&&v[Symbol.toStringTag]||v.constructor.name||"Object";return le.call(z,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",fe),b(v)}}function L(v){if(v==null)return null;if(typeof v==="function")return v.$$typeof===yt?null:v.displayName||v.name||null;if(typeof v==="string")return v;switch(v){case St:return"Fragment";case ze:return"Profiler";case ee:return"StrictMode";case He:return"Suspense";case Fe:return"SuspenseList";case lt:return"Activity"}if(typeof v==="object")switch(typeof v.tag==="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),v.$$typeof){case We:return"Portal";case Ct:return v.displayName||"Context";case Lt:return(v._context.displayName||"Context")+".Consumer";case ie:var z=v.render;return v=v.displayName,v||(v=z.displayName||z.name||"",v=v!==""?"ForwardRef("+v+")":"ForwardRef"),v;case J:return z=v.displayName||null,z!==null?z:L(v.type)||"Memo";case Me:z=v._payload,v=v._init;try{return L(v(z))}catch(le){}}return null}function h(v){if(v===St)return"<>";if(typeof v==="object"&&v!==null&&v.$$typeof===Me)return"<...>";try{var z=L(v);return z?"<"+z+">":"<...>"}catch(le){return"<...>"}}function C(){var v=Se.A;return v===null?null:v.getOwner()}function w(){return Error("react-stack-top-frame")}function T(v){if(ir.call(v,"key")){var z=Object.getOwnPropertyDescriptor(v,"key").get;if(z&&z.isReactWarning)return!1}return v.key!==void 0}function k(v,z){function le(){Qd||(Qd=!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)",z))}le.isReactWarning=!0,Object.defineProperty(v,"key",{get:le,configurable:!0})}function M(){var v=L(this.type);return ts[v]||(ts[v]=!0,console.error("Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.")),v=this.props.ref,v!==void 0?v:null}function E(v,z,le,fe,Te,Je){var et=le.ref;return v={$$typeof:we,type:v,key:z,props:le,_owner:fe},(et!==void 0?et:null)!==null?Object.defineProperty(v,"ref",{enumerable:!1,get:M}):Object.defineProperty(v,"ref",{enumerable:!1,value:null}),v._store={},Object.defineProperty(v._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(v,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(v,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:Te}),Object.defineProperty(v,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:Je}),Object.freeze&&(Object.freeze(v.props),Object.freeze(v)),v}function U(v,z){return z=E(v.type,z,v.props,v._owner,v._debugStack,v._debugTask),v._store&&(z._store.validated=v._store.validated),z}function P(v){X(v)?v._store&&(v._store.validated=1):typeof v==="object"&&v!==null&&v.$$typeof===Me&&(v._payload.status==="fulfilled"?X(v._payload.value)&&v._payload.value._store&&(v._payload.value._store.validated=1):v._store&&(v._store.validated=1))}function X(v){return typeof v==="object"&&v!==null&&v.$$typeof===we}function F(v){var z={"=":"=0",":":"=2"};return"$"+v.replace(/[=:]/g,function(le){return z[le]})}function me(v,z){return typeof v==="object"&&v!==null&&v.key!=null?(S(v.key),F(""+v.key)):z.toString(36)}function W(v){switch(v.status){case"fulfilled":return v.value;case"rejected":throw v.reason;default:switch(typeof v.status==="string"?v.then(g,g):(v.status="pending",v.then(function(z){v.status==="pending"&&(v.status="fulfilled",v.value=z)},function(z){v.status==="pending"&&(v.status="rejected",v.reason=z)})),v.status){case"fulfilled":return v.value;case"rejected":throw v.reason}}throw v}function re(v,z,le,fe,Te){var Je=typeof v;if(Je==="undefined"||Je==="boolean")v=null;var et=!1;if(v===null)et=!0;else switch(Je){case"bigint":case"string":case"number":et=!0;break;case"object":switch(v.$$typeof){case we:case We:et=!0;break;case Me:return et=v._init,re(et(v._payload),z,le,fe,Te)}}if(et){et=v,Te=Te(et);var Tt=fe===""?"."+me(et,0):fe;return Xe(Te)?(le="",Tt!=null&&(le=Tt.replace(cu,"$&/")+"/"),re(Te,z,le,"",function(Wa){return Wa})):Te!=null&&(X(Te)&&(Te.key!=null&&(et&&et.key===Te.key||S(Te.key)),le=U(Te,le+(Te.key==null||et&&et.key===Te.key?"":(""+Te.key).replace(cu,"$&/")+"/")+Tt),fe!==""&&et!=null&&X(et)&&et.key==null&&et._store&&!et._store.validated&&(le._store.validated=2),Te=le),z.push(Te)),1}if(et=0,Tt=fe===""?".":fe+":",Xe(v))for(var Oe=0;Oe<v.length;Oe++)fe=v[Oe],Je=Tt+me(fe,Oe),et+=re(fe,z,le,Je,Te);else if(Oe=c(v),typeof Oe==="function")for(Oe===v.entries&&(iu||console.warn("Using Maps as children is not supported. Use an array of keyed ReactElements instead."),iu=!0),v=Oe.call(v),Oe=0;!(fe=v.next()).done;)fe=fe.value,Je=Tt+me(fe,Oe++),et+=re(fe,z,le,Je,Te);else if(Je==="object"){if(typeof v.then==="function")return re(W(v),z,le,fe,Te);throw z=String(v),Error("Objects are not valid as a React child (found: "+(z==="[object Object]"?"object with keys {"+Object.keys(v).join(", ")+"}":z)+"). If you meant to render a collection of children, use an array instead.")}return et}function K(v,z,le){if(v==null)return v;var fe=[],Te=0;return re(v,fe,"","",function(Je){return z.call(le,Je,Te++)}),fe}function G(v){if(v._status===-1){var z=v._ioInfo;z!=null&&(z.start=z.end=performance.now()),z=v._result;var le=z();if(le.then(function(Te){if(v._status===0||v._status===-1){v._status=1,v._result=Te;var Je=v._ioInfo;Je!=null&&(Je.end=performance.now()),le.status===void 0&&(le.status="fulfilled",le.value=Te)}},function(Te){if(v._status===0||v._status===-1){v._status=2,v._result=Te;var Je=v._ioInfo;Je!=null&&(Je.end=performance.now()),le.status===void 0&&(le.status="rejected",le.reason=Te)}}),z=v._ioInfo,z!=null){z.value=le;var fe=le.displayName;typeof fe==="string"&&(z.name=fe)}v._status===-1&&(v._status=0,v._result=le)}if(v._status===1)return z=v._result,z===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'))
|
|
@@ -6,71 +6,71 @@ Your code should look like:
|
|
|
6
6
|
Did you accidentally put curly braces around the import?`,z),"default"in z||console.error(`lazy: Expected the result of a dynamic import() call. Instead received: %s
|
|
7
7
|
|
|
8
8
|
Your code should look like:
|
|
9
|
-
const MyComponent = lazy(() => import('./MyComponent'))`,z),z.default;throw
|
|
9
|
+
const MyComponent = lazy(() => import('./MyComponent'))`,z),z.default;throw v._result}function V(){var v=Se.H;return v===null&&console.error(`Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:
|
|
10
10
|
1. You might have mismatching versions of React and the renderer (such as React DOM)
|
|
11
11
|
2. You might be breaking the Rules of Hooks
|
|
12
12
|
3. You might have more than one copy of React in the same app
|
|
13
|
-
See https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem.`),S}function de(){xe.asyncTransitions--}function Se(S){if(os===null)try{var z=("require"+Math.random()).slice(0,7);os=(dm&&dm[z]).call(dm,"timers").setImmediate}catch(le){os=function(pe){Qd===!1&&(Qd=!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 ke=new MessageChannel;ke.port1.onmessage=pe,ke.port2.postMessage(void 0)}}return os(S)}function Ie(S){return 1<S.length&&typeof AggregateError==="function"?AggregateError(S):S[0]}function Me(S,z){z!==ns-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. "),ns=z}function oe(S,z,le){var pe=xe.actQueue;if(pe!==null)if(pe.length!==0)try{he(pe),Se(function(){return oe(S,z,le)});return}catch(ke){xe.thrownErrors.push(ke)}else xe.actQueue=null;0<xe.thrownErrors.length?(pe=Ie(xe.thrownErrors),xe.thrownErrors.length=0,le(pe)):z(S)}function he(S){if(!ls){ls=!0;var z=0;try{for(;z<S.length;z++){var le=S[z];do{xe.didUsePromise=!1;var pe=le(!1);if(pe!==null){if(xe.didUsePromise){S[z]=le,S.splice(0,z);return}le=pe}else break}while(1)}S.length=0}catch(ke){S.splice(0,z+1),xe.thrownErrors.push(ke)}finally{ls=!1}}}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart==="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var Ce=Symbol.for("react.transitional.element"),We=Symbol.for("react.portal"),St=Symbol.for("react.fragment"),ee=Symbol.for("react.strict_mode"),ze=Symbol.for("react.profiler"),Lt=Symbol.for("react.consumer"),Ct=Symbol.for("react.context"),ue=Symbol.for("react.forward_ref"),He=Symbol.for("react.suspense"),Fe=Symbol.for("react.suspense_list"),W=Symbol.for("react.memo"),Ae=Symbol.for("react.lazy"),lt=Symbol.for("react.activity"),re=Symbol.iterator,j={},ve={isMounted:function(){return!1},enqueueForceUpdate:function(S){i(S,"forceUpdate")},enqueueReplaceState:function(S){i(S,"replaceState")},enqueueSetState:function(S){i(S,"setState")}},Ge=Object.assign,$e={};Object.freeze($e),d.prototype.isReactComponent={},d.prototype.setState=function(S,z){if(typeof S!=="object"&&typeof S!=="function"&&S!=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,S,z,"setState")},d.prototype.forceUpdate=function(S){this.updater.enqueueForceUpdate(this,S,"forceUpdate")};var Qe={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(tl in Qe)Qe.hasOwnProperty(tl)&&l(tl,Qe[tl]);p.prototype=d.prototype,Qe=b.prototype=new p,Qe.constructor=b,Ge(Qe,d.prototype),Qe.isPureReactComponent=!0;var Xe=Array.isArray,yt=Symbol.for("react.client.reference"),xe={H:null,A:null,T:null,S:null,actQueue:null,asyncTransitions:0,isBatchingLegacy:!1,didScheduleLegacyUpdate:!1,didUsePromise:!1,thrownErrors:[],getCurrentStack:null,recentlyCreatedOwnerStacks:0},cn=Object.prototype.hasOwnProperty,Yt=console.createTask?console.createTask:function(){return null};Qe={react_stack_bottom_frame:function(S){return S()}};var $d,On,ts={},as=Qe.react_stack_bottom_frame.bind(Qe,w)(),rh=Yt(h(w)),iu=!1,cu=/\/+/g,el=typeof reportError==="function"?reportError:function(S){if(typeof window==="object"&&typeof window.ErrorEvent==="function"){var z=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof S==="object"&&S!==null&&typeof S.message==="string"?String(S.message):String(S),error:S});if(!window.dispatchEvent(z))return}else if(typeof process==="object"&&typeof process.emit==="function"){process.emit("uncaughtException",S);return}console.error(S)},Qd=!1,os=null,ns=0,rs=!1,ls=!1,Di=typeof queueMicrotask==="function"?function(S){queueMicrotask(function(){return queueMicrotask(S)})}:Se;Qe=Object.freeze({__proto__:null,c:function(S){return V().useMemoCache(S)}});var tl={map:Y,forEach:function(S,z,le){Y(S,function(){z.apply(this,arguments)},le)},count:function(S){var z=0;return Y(S,function(){z++}),z},toArray:function(S){return Y(S,function(z){return z})||[]},only:function(S){if(!X(S))throw Error("React.Children.only expected to receive a single React element child.");return S}};jM.Activity=lt,jM.Children=tl,jM.Component=d,jM.Fragment=St,jM.Profiler=ze,jM.PureComponent=b,jM.StrictMode=ee,jM.Suspense=He,jM.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=xe,jM.__COMPILER_RUNTIME=Qe,jM.act=function(S){var z=xe.actQueue,le=ns;ns++;var pe=xe.actQueue=z!==null?z:[],ke=!1;try{var Je=S()}catch(qe){xe.thrownErrors.push(qe)}if(0<xe.thrownErrors.length)throw Me(z,le),S=Ie(xe.thrownErrors),xe.thrownErrors.length=0,S;if(Je!==null&&typeof Je==="object"&&typeof Je.then==="function"){var et=Je;return Di(function(){ke||rs||(rs=!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(qe,Wa){ke=!0,et.then(function(To){if(Me(z,le),le===0){try{he(pe),Se(function(){return oe(To,qe,Wa)})}catch(Ei){xe.thrownErrors.push(Ei)}if(0<xe.thrownErrors.length){var al=Ie(xe.thrownErrors);xe.thrownErrors.length=0,Wa(al)}}else qe(To)},function(To){Me(z,le),0<xe.thrownErrors.length?(To=Ie(xe.thrownErrors),xe.thrownErrors.length=0,Wa(To)):Wa(To)})}}}var It=Je;if(Me(z,le),le===0&&(he(pe),pe.length!==0&&Di(function(){ke||rs||(rs=!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(() => ...)"))}),xe.actQueue=null),0<xe.thrownErrors.length)throw S=Ie(xe.thrownErrors),xe.thrownErrors.length=0,S;return{then:function(qe,Wa){ke=!0,le===0?(xe.actQueue=pe,Se(function(){return oe(It,qe,Wa)})):qe(It)}}},jM.cache=function(S){return function(){return S.apply(null,arguments)}},jM.cacheSignal=function(){return null},jM.captureOwnerStack=function(){var S=xe.getCurrentStack;return S===null?null:S()},jM.cloneElement=function(S,z,le){if(S===null||S===void 0)throw Error("The argument must be a React element, but you passed "+S+".");var pe=Ge({},S.props),{key:ke,_owner:Je}=S;if(z!=null){var et;e:{if(cn.call(z,"ref")&&(et=Object.getOwnPropertyDescriptor(z,"ref").get)&&et.isReactWarning){et=!1;break e}et=z.ref!==void 0}et&&(Je=C()),T(z)&&(L(z.key),ke=""+z.key);for(It in z)!cn.call(z,It)||It==="key"||It==="__self"||It==="__source"||It==="ref"&&z.ref===void 0||(pe[It]=z[It])}var It=arguments.length-2;if(It===1)pe.children=le;else if(1<It){et=Array(It);for(var qe=0;qe<It;qe++)et[qe]=arguments[qe+2];pe.children=et}pe=D(S.type,ke,pe,Je,S._debugStack,S._debugTask);for(ke=2;ke<arguments.length;ke++)P(arguments[ke]);return pe},jM.createContext=function(S){return S={$$typeof:Ct,_currentValue:S,_currentValue2:S,_threadCount:0,Provider:null,Consumer:null},S.Provider=S,S.Consumer={$$typeof:Lt,_context:S},S._currentRenderer=null,S._currentRenderer2=null,S},jM.createElement=function(S,z,le){for(var pe=2;pe<arguments.length;pe++)P(arguments[pe]);pe={};var ke=null;if(z!=null)for(qe in On||!("__self"in z)||"key"in z||(On=!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")),T(z)&&(L(z.key),ke=""+z.key),z)cn.call(z,qe)&&qe!=="key"&&qe!=="__self"&&qe!=="__source"&&(pe[qe]=z[qe]);var Je=arguments.length-2;if(Je===1)pe.children=le;else if(1<Je){for(var et=Array(Je),It=0;It<Je;It++)et[It]=arguments[It+2];Object.freeze&&Object.freeze(et),pe.children=et}if(S&&S.defaultProps)for(qe in Je=S.defaultProps,Je)pe[qe]===void 0&&(pe[qe]=Je[qe]);ke&&k(pe,typeof S==="function"?S.displayName||S.name||"Unknown":S);var qe=1e4>xe.recentlyCreatedOwnerStacks++;return D(S,ke,pe,C(),qe?Error("react-stack-top-frame"):as,qe?Yt(h(S)):rh)},jM.createRef=function(){var S={current:null};return Object.seal(S),S},jM.forwardRef=function(S){S!=null&&S.$$typeof===W?console.error("forwardRef requires a render function but received a `memo` component. Instead of forwardRef(memo(...)), use memo(forwardRef(...))."):typeof S!=="function"?console.error("forwardRef requires a render function but was given %s.",S===null?"null":typeof S):S.length!==0&&S.length!==2&&console.error("forwardRef render functions accept exactly two parameters: props and ref. %s",S.length===1?"Did you forget to use the ref parameter?":"Any additional parameter will be undefined."),S!=null&&S.defaultProps!=null&&console.error("forwardRef render functions do not support defaultProps. Did you accidentally pass a React component?");var z={$$typeof:ue,render:S},le;return Object.defineProperty(z,"displayName",{enumerable:!1,configurable:!0,get:function(){return le},set:function(pe){le=pe,S.name||S.displayName||(Object.defineProperty(S,"name",{value:pe}),S.displayName=pe)}}),z},jM.isValidElement=X,jM.lazy=function(S){S={_status:-1,_result:S};var z={$$typeof:Ae,_payload:S,_init:J},le={name:"lazy",start:-1,end:-1,value:null,owner:null,debugStack:Error("react-stack-top-frame"),debugTask:console.createTask?console.createTask("lazy()"):null};return S._ioInfo=le,z._debugInfo=[{awaited:le}],z},jM.memo=function(S,z){S==null&&console.error("memo: The first argument must be a component. Instead received: %s",S===null?"null":typeof S),z={$$typeof:W,type:S,compare:z===void 0?null:z};var le;return Object.defineProperty(z,"displayName",{enumerable:!1,configurable:!0,get:function(){return le},set:function(pe){le=pe,S.name||S.displayName||(Object.defineProperty(S,"name",{value:pe}),S.displayName=pe)}}),z},jM.startTransition=function(S){var z=xe.T,le={};le._updatedFibers=new Set,xe.T=le;try{var pe=S(),ke=xe.S;ke!==null&&ke(le,pe),typeof pe==="object"&&pe!==null&&typeof pe.then==="function"&&(xe.asyncTransitions++,pe.then(de,de),pe.then(g,el))}catch(Je){el(Je)}finally{z===null&&le._updatedFibers&&(S=le._updatedFibers.size,le._updatedFibers.clear(),10<S&&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.")),z!==null&&le.types!==null&&(z.types!==null&&z.types!==le.types&&console.error("We expected inner Transitions to have transferred the outer types set and that you cannot add to the outer Transition while inside the inner.This is a bug in React."),z.types=le.types),xe.T=z}},jM.unstable_useCacheRefresh=function(){return V().useCacheRefresh()},jM.use=function(S){return V().use(S)},jM.useActionState=function(S,z,le){return V().useActionState(S,z,le)},jM.useCallback=function(S,z){return V().useCallback(S,z)},jM.useContext=function(S){var z=V();return S.$$typeof===Lt&&console.error("Calling useContext(Context.Consumer) is not supported and will cause bugs. Did you mean to call useContext(Context) instead?"),z.useContext(S)},jM.useDebugValue=function(S,z){return V().useDebugValue(S,z)},jM.useDeferredValue=function(S,z){return V().useDeferredValue(S,z)},jM.useEffect=function(S,z){return S==null&&console.warn("React Hook useEffect requires an effect callback. Did you forget to pass a callback to the hook?"),V().useEffect(S,z)},jM.useEffectEvent=function(S){return V().useEffectEvent(S)},jM.useId=function(){return V().useId()},jM.useImperativeHandle=function(S,z,le){return V().useImperativeHandle(S,z,le)},jM.useInsertionEffect=function(S,z){return S==null&&console.warn("React Hook useInsertionEffect requires an effect callback. Did you forget to pass a callback to the hook?"),V().useInsertionEffect(S,z)},jM.useLayoutEffect=function(S,z){return S==null&&console.warn("React Hook useLayoutEffect requires an effect callback. Did you forget to pass a callback to the hook?"),V().useLayoutEffect(S,z)},jM.useMemo=function(S,z){return V().useMemo(S,z)},jM.useOptimistic=function(S,z){return V().useOptimistic(S,z)},jM.useReducer=function(S,z,le){return V().useReducer(S,z,le)},jM.useRef=function(S){return V().useRef(S)},jM.useState=function(S){return V().useState(S)},jM.useSyncExternalStore=function(S,z,le){return V().useSyncExternalStore(S,z,le)},jM.useTransition=function(){return V().useTransition()},jM.version="19.2.7",typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop==="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()});var lk=js(function(XM){var Pv=Q(dt());(function(){function l(){}function c(h){return""+h}function i(h,C,w){var T=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;try{c(T);var k=!1}catch(M){k=!0}return k&&(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&&T[Symbol.toStringTag]||T.constructor.name||"Object"),c(T)),{$$typeof:L,key:T==null?null:""+T,children:h,containerInfo:C,implementation:w}}function d(h,C){if(h==="font")return"";if(typeof C==="string")return C==="use-credentials"?C:""}function p(h){return h===null?"`null`":h===void 0?"`undefined`":h===""?"an empty string":'something with type "'+typeof h+'"'}function b(h){return h===null?"`null`":h===void 0?"`undefined`":h===""?"an empty string":typeof h==="string"?JSON.stringify(h):typeof h==="number"?"`"+h+"`":'something with type "'+typeof h+'"'}function g(){var h=x.H;return h===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.`),v}function de(){Se.asyncTransitions--}function ve(v){if(os===null)try{var z=("require"+Math.random()).slice(0,7);os=(fm&&fm[z]).call(fm,"timers").setImmediate}catch(le){os=function(fe){Kd===!1&&(Kd=!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 Te=new MessageChannel;Te.port1.onmessage=fe,Te.port2.postMessage(void 0)}}return os(v)}function Ce(v){return 1<v.length&&typeof AggregateError==="function"?AggregateError(v):v[0]}function Ie(v,z){z!==rs-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. "),rs=z}function ae(v,z,le){var fe=Se.actQueue;if(fe!==null)if(fe.length!==0)try{he(fe),ve(function(){return ae(v,z,le)});return}catch(Te){Se.thrownErrors.push(Te)}else Se.actQueue=null;0<Se.thrownErrors.length?(fe=Ce(Se.thrownErrors),Se.thrownErrors.length=0,le(fe)):z(v)}function he(v){if(!ls){ls=!0;var z=0;try{for(;z<v.length;z++){var le=v[z];do{Se.didUsePromise=!1;var fe=le(!1);if(fe!==null){if(Se.didUsePromise){v[z]=le,v.splice(0,z);return}le=fe}else break}while(1)}v.length=0}catch(Te){v.splice(0,z+1),Se.thrownErrors.push(Te)}finally{ls=!1}}}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart==="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var we=Symbol.for("react.transitional.element"),We=Symbol.for("react.portal"),St=Symbol.for("react.fragment"),ee=Symbol.for("react.strict_mode"),ze=Symbol.for("react.profiler"),Lt=Symbol.for("react.consumer"),Ct=Symbol.for("react.context"),ie=Symbol.for("react.forward_ref"),He=Symbol.for("react.suspense"),Fe=Symbol.for("react.suspense_list"),J=Symbol.for("react.memo"),Me=Symbol.for("react.lazy"),lt=Symbol.for("react.activity"),ne=Symbol.iterator,Y={},be={isMounted:function(){return!1},enqueueForceUpdate:function(v){i(v,"forceUpdate")},enqueueReplaceState:function(v){i(v,"replaceState")},enqueueSetState:function(v){i(v,"setState")}},Ge=Object.assign,$e={};Object.freeze($e),d.prototype.isReactComponent={},d.prototype.setState=function(v,z){if(typeof v!=="object"&&typeof v!=="function"&&v!=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,v,z,"setState")},d.prototype.forceUpdate=function(v){this.updater.enqueueForceUpdate(this,v,"forceUpdate")};var Qe={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(tl in Qe)Qe.hasOwnProperty(tl)&&l(tl,Qe[tl]);p.prototype=d.prototype,Qe=x.prototype=new p,Qe.constructor=x,Ge(Qe,d.prototype),Qe.isPureReactComponent=!0;var Xe=Array.isArray,yt=Symbol.for("react.client.reference"),Se={H:null,A:null,T:null,S:null,actQueue:null,asyncTransitions:0,isBatchingLegacy:!1,didScheduleLegacyUpdate:!1,didUsePromise:!1,thrownErrors:[],getCurrentStack:null,recentlyCreatedOwnerStacks:0},ir=Object.prototype.hasOwnProperty,Yt=console.createTask?console.createTask:function(){return null};Qe={react_stack_bottom_frame:function(v){return v()}};var Qd,Er,ts={},as=Qe.react_stack_bottom_frame.bind(Qe,w)(),ch=Yt(h(w)),iu=!1,cu=/\/+/g,el=typeof reportError==="function"?reportError:function(v){if(typeof window==="object"&&typeof window.ErrorEvent==="function"){var z=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof v==="object"&&v!==null&&typeof v.message==="string"?String(v.message):String(v),error:v});if(!window.dispatchEvent(z))return}else if(typeof process==="object"&&typeof process.emit==="function"){process.emit("uncaughtException",v);return}console.error(v)},Kd=!1,os=null,rs=0,ns=!1,ls=!1,Ei=typeof queueMicrotask==="function"?function(v){queueMicrotask(function(){return queueMicrotask(v)})}:ve;Qe=Object.freeze({__proto__:null,c:function(v){return V().useMemoCache(v)}});var tl={map:K,forEach:function(v,z,le){K(v,function(){z.apply(this,arguments)},le)},count:function(v){var z=0;return K(v,function(){z++}),z},toArray:function(v){return K(v,function(z){return z})||[]},only:function(v){if(!X(v))throw Error("React.Children.only expected to receive a single React element child.");return v}};t2.Activity=lt,t2.Children=tl,t2.Component=d,t2.Fragment=St,t2.Profiler=ze,t2.PureComponent=x,t2.StrictMode=ee,t2.Suspense=He,t2.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=Se,t2.__COMPILER_RUNTIME=Qe,t2.act=function(v){var z=Se.actQueue,le=rs;rs++;var fe=Se.actQueue=z!==null?z:[],Te=!1;try{var Je=v()}catch(Oe){Se.thrownErrors.push(Oe)}if(0<Se.thrownErrors.length)throw Ie(z,le),v=Ce(Se.thrownErrors),Se.thrownErrors.length=0,v;if(Je!==null&&typeof Je==="object"&&typeof Je.then==="function"){var et=Je;return Ei(function(){Te||ns||(ns=!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(Oe,Wa){Te=!0,et.then(function(Io){if(Ie(z,le),le===0){try{he(fe),ve(function(){return ae(Io,Oe,Wa)})}catch(qi){Se.thrownErrors.push(qi)}if(0<Se.thrownErrors.length){var al=Ce(Se.thrownErrors);Se.thrownErrors.length=0,Wa(al)}}else Oe(Io)},function(Io){Ie(z,le),0<Se.thrownErrors.length?(Io=Ce(Se.thrownErrors),Se.thrownErrors.length=0,Wa(Io)):Wa(Io)})}}}var Tt=Je;if(Ie(z,le),le===0&&(he(fe),fe.length!==0&&Ei(function(){Te||ns||(ns=!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(() => ...)"))}),Se.actQueue=null),0<Se.thrownErrors.length)throw v=Ce(Se.thrownErrors),Se.thrownErrors.length=0,v;return{then:function(Oe,Wa){Te=!0,le===0?(Se.actQueue=fe,ve(function(){return ae(Tt,Oe,Wa)})):Oe(Tt)}}},t2.cache=function(v){return function(){return v.apply(null,arguments)}},t2.cacheSignal=function(){return null},t2.captureOwnerStack=function(){var v=Se.getCurrentStack;return v===null?null:v()},t2.cloneElement=function(v,z,le){if(v===null||v===void 0)throw Error("The argument must be a React element, but you passed "+v+".");var fe=Ge({},v.props),{key:Te,_owner:Je}=v;if(z!=null){var et;e:{if(ir.call(z,"ref")&&(et=Object.getOwnPropertyDescriptor(z,"ref").get)&&et.isReactWarning){et=!1;break e}et=z.ref!==void 0}et&&(Je=C()),T(z)&&(S(z.key),Te=""+z.key);for(Tt in z)!ir.call(z,Tt)||Tt==="key"||Tt==="__self"||Tt==="__source"||Tt==="ref"&&z.ref===void 0||(fe[Tt]=z[Tt])}var Tt=arguments.length-2;if(Tt===1)fe.children=le;else if(1<Tt){et=Array(Tt);for(var Oe=0;Oe<Tt;Oe++)et[Oe]=arguments[Oe+2];fe.children=et}fe=E(v.type,Te,fe,Je,v._debugStack,v._debugTask);for(Te=2;Te<arguments.length;Te++)P(arguments[Te]);return fe},t2.createContext=function(v){return v={$$typeof:Ct,_currentValue:v,_currentValue2:v,_threadCount:0,Provider:null,Consumer:null},v.Provider=v,v.Consumer={$$typeof:Lt,_context:v},v._currentRenderer=null,v._currentRenderer2=null,v},t2.createElement=function(v,z,le){for(var fe=2;fe<arguments.length;fe++)P(arguments[fe]);fe={};var Te=null;if(z!=null)for(Oe in Er||!("__self"in z)||"key"in z||(Er=!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")),T(z)&&(S(z.key),Te=""+z.key),z)ir.call(z,Oe)&&Oe!=="key"&&Oe!=="__self"&&Oe!=="__source"&&(fe[Oe]=z[Oe]);var Je=arguments.length-2;if(Je===1)fe.children=le;else if(1<Je){for(var et=Array(Je),Tt=0;Tt<Je;Tt++)et[Tt]=arguments[Tt+2];Object.freeze&&Object.freeze(et),fe.children=et}if(v&&v.defaultProps)for(Oe in Je=v.defaultProps,Je)fe[Oe]===void 0&&(fe[Oe]=Je[Oe]);Te&&k(fe,typeof v==="function"?v.displayName||v.name||"Unknown":v);var Oe=1e4>Se.recentlyCreatedOwnerStacks++;return E(v,Te,fe,C(),Oe?Error("react-stack-top-frame"):as,Oe?Yt(h(v)):ch)},t2.createRef=function(){var v={current:null};return Object.seal(v),v},t2.forwardRef=function(v){v!=null&&v.$$typeof===J?console.error("forwardRef requires a render function but received a `memo` component. Instead of forwardRef(memo(...)), use memo(forwardRef(...))."):typeof v!=="function"?console.error("forwardRef requires a render function but was given %s.",v===null?"null":typeof v):v.length!==0&&v.length!==2&&console.error("forwardRef render functions accept exactly two parameters: props and ref. %s",v.length===1?"Did you forget to use the ref parameter?":"Any additional parameter will be undefined."),v!=null&&v.defaultProps!=null&&console.error("forwardRef render functions do not support defaultProps. Did you accidentally pass a React component?");var z={$$typeof:ie,render:v},le;return Object.defineProperty(z,"displayName",{enumerable:!1,configurable:!0,get:function(){return le},set:function(fe){le=fe,v.name||v.displayName||(Object.defineProperty(v,"name",{value:fe}),v.displayName=fe)}}),z},t2.isValidElement=X,t2.lazy=function(v){v={_status:-1,_result:v};var z={$$typeof:Me,_payload:v,_init:G},le={name:"lazy",start:-1,end:-1,value:null,owner:null,debugStack:Error("react-stack-top-frame"),debugTask:console.createTask?console.createTask("lazy()"):null};return v._ioInfo=le,z._debugInfo=[{awaited:le}],z},t2.memo=function(v,z){v==null&&console.error("memo: The first argument must be a component. Instead received: %s",v===null?"null":typeof v),z={$$typeof:J,type:v,compare:z===void 0?null:z};var le;return Object.defineProperty(z,"displayName",{enumerable:!1,configurable:!0,get:function(){return le},set:function(fe){le=fe,v.name||v.displayName||(Object.defineProperty(v,"name",{value:fe}),v.displayName=fe)}}),z},t2.startTransition=function(v){var z=Se.T,le={};le._updatedFibers=new Set,Se.T=le;try{var fe=v(),Te=Se.S;Te!==null&&Te(le,fe),typeof fe==="object"&&fe!==null&&typeof fe.then==="function"&&(Se.asyncTransitions++,fe.then(de,de),fe.then(g,el))}catch(Je){el(Je)}finally{z===null&&le._updatedFibers&&(v=le._updatedFibers.size,le._updatedFibers.clear(),10<v&&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.")),z!==null&&le.types!==null&&(z.types!==null&&z.types!==le.types&&console.error("We expected inner Transitions to have transferred the outer types set and that you cannot add to the outer Transition while inside the inner.This is a bug in React."),z.types=le.types),Se.T=z}},t2.unstable_useCacheRefresh=function(){return V().useCacheRefresh()},t2.use=function(v){return V().use(v)},t2.useActionState=function(v,z,le){return V().useActionState(v,z,le)},t2.useCallback=function(v,z){return V().useCallback(v,z)},t2.useContext=function(v){var z=V();return v.$$typeof===Lt&&console.error("Calling useContext(Context.Consumer) is not supported and will cause bugs. Did you mean to call useContext(Context) instead?"),z.useContext(v)},t2.useDebugValue=function(v,z){return V().useDebugValue(v,z)},t2.useDeferredValue=function(v,z){return V().useDeferredValue(v,z)},t2.useEffect=function(v,z){return v==null&&console.warn("React Hook useEffect requires an effect callback. Did you forget to pass a callback to the hook?"),V().useEffect(v,z)},t2.useEffectEvent=function(v){return V().useEffectEvent(v)},t2.useId=function(){return V().useId()},t2.useImperativeHandle=function(v,z,le){return V().useImperativeHandle(v,z,le)},t2.useInsertionEffect=function(v,z){return v==null&&console.warn("React Hook useInsertionEffect requires an effect callback. Did you forget to pass a callback to the hook?"),V().useInsertionEffect(v,z)},t2.useLayoutEffect=function(v,z){return v==null&&console.warn("React Hook useLayoutEffect requires an effect callback. Did you forget to pass a callback to the hook?"),V().useLayoutEffect(v,z)},t2.useMemo=function(v,z){return V().useMemo(v,z)},t2.useOptimistic=function(v,z){return V().useOptimistic(v,z)},t2.useReducer=function(v,z,le){return V().useReducer(v,z,le)},t2.useRef=function(v){return V().useRef(v)},t2.useState=function(v){return V().useState(v)},t2.useSyncExternalStore=function(v,z,le){return V().useSyncExternalStore(v,z,le)},t2.useTransition=function(){return V().useTransition()},t2.version="19.2.7",typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop==="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()});var mk=js(function(a2){var Vv=Q(ct());(function(){function l(){}function c(h){return""+h}function i(h,C,w){var T=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;try{c(T);var k=!1}catch(M){k=!0}return k&&(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&&T[Symbol.toStringTag]||T.constructor.name||"Object"),c(T)),{$$typeof:S,key:T==null?null:""+T,children:h,containerInfo:C,implementation:w}}function d(h,C){if(h==="font")return"";if(typeof C==="string")return C==="use-credentials"?C:""}function p(h){return h===null?"`null`":h===void 0?"`undefined`":h===""?"an empty string":'something with type "'+typeof h+'"'}function x(h){return h===null?"`null`":h===void 0?"`undefined`":h===""?"an empty string":typeof h==="string"?JSON.stringify(h):typeof h==="number"?"`"+h+"`":'something with type "'+typeof h+'"'}function g(){var h=L.H;return h===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.`),h}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart==="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var v={d:{f:l,r:function(){throw Error("Invalid form element. requestFormReset must be passed a form that was rendered by React.")},D:l,C:l,L:l,m:l,X:l,S:l,M:l},p:0,findDOMNode:null},L=Symbol.for("react.portal"),x=Pv.__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"),XM.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=v,XM.createPortal=function(h,C){var w=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!C||C.nodeType!==1&&C.nodeType!==9&&C.nodeType!==11)throw Error("Target container is not a DOM element.");return i(h,C,null,w)},XM.flushSync=function(h){var C=x.T,w=v.p;try{if(x.T=null,v.p=2,h)return h()}finally{x.T=C,v.p=w,v.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.")}},XM.preconnect=function(h,C){typeof h==="string"&&h?C!=null&&typeof C!=="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.",b(C)):C!=null&&typeof C.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.",p(C.crossOrigin)):console.error("ReactDOM.preconnect(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.",p(h)),typeof h==="string"&&(C?(C=C.crossOrigin,C=typeof C==="string"?C==="use-credentials"?C:"":void 0):C=null,v.d.C(h,C))},XM.prefetchDNS=function(h){if(typeof h!=="string"||!h)console.error("ReactDOM.prefetchDNS(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.",p(h));else if(1<arguments.length){var C=arguments[1];typeof C==="object"&&C.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`.",b(C)):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`.",b(C))}typeof h==="string"&&v.d.D(h)},XM.preinit=function(h,C){if(typeof h==="string"&&h?C==null||typeof C!=="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.",b(C)):C.as!=="style"&&C.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".',b(C.as)):console.error("ReactDOM.preinit(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.",p(h)),typeof h==="string"&&C&&typeof C.as==="string"){var w=C.as,T=d(w,C.crossOrigin),k=typeof C.integrity==="string"?C.integrity:void 0,M=typeof C.fetchPriority==="string"?C.fetchPriority:void 0;w==="style"?v.d.S(h,typeof C.precedence==="string"?C.precedence:void 0,{crossOrigin:T,integrity:k,fetchPriority:M}):w==="script"&&v.d.X(h,{crossOrigin:T,integrity:k,fetchPriority:M,nonce:typeof C.nonce==="string"?C.nonce:void 0})}},XM.preinitModule=function(h,C){var w="";if(typeof h==="string"&&h||(w+=" The `href` argument encountered was "+p(h)+"."),C!==void 0&&typeof C!=="object"?w+=" The `options` argument encountered was "+p(C)+".":C&&("as"in C)&&C.as!=="script"&&(w+=" The `as` option encountered was "+b(C.as)+"."),w)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",w);else switch(w=C&&typeof C.as==="string"?C.as:"script",w){case"script":break;default:w=b(w),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)',w,h)}if(typeof h==="string")if(typeof C==="object"&&C!==null){if(C.as==null||C.as==="script")w=d(C.as,C.crossOrigin),v.d.M(h,{crossOrigin:w,integrity:typeof C.integrity==="string"?C.integrity:void 0,nonce:typeof C.nonce==="string"?C.nonce:void 0})}else C==null&&v.d.M(h)},XM.preload=function(h,C){var w="";if(typeof h==="string"&&h||(w+=" The `href` argument encountered was "+p(h)+"."),C==null||typeof C!=="object"?w+=" The `options` argument encountered was "+p(C)+".":typeof C.as==="string"&&C.as||(w+=" The `as` option encountered was "+p(C.as)+"."),w&&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',w),typeof h==="string"&&typeof C==="object"&&C!==null&&typeof C.as==="string"){w=C.as;var T=d(w,C.crossOrigin);v.d.L(h,w,{crossOrigin:T,integrity:typeof C.integrity==="string"?C.integrity:void 0,nonce:typeof C.nonce==="string"?C.nonce:void 0,type:typeof C.type==="string"?C.type:void 0,fetchPriority:typeof C.fetchPriority==="string"?C.fetchPriority:void 0,referrerPolicy:typeof C.referrerPolicy==="string"?C.referrerPolicy:void 0,imageSrcSet:typeof C.imageSrcSet==="string"?C.imageSrcSet:void 0,imageSizes:typeof C.imageSizes==="string"?C.imageSizes:void 0,media:typeof C.media==="string"?C.media:void 0})}},XM.preloadModule=function(h,C){var w="";typeof h==="string"&&h||(w+=" The `href` argument encountered was "+p(h)+"."),C!==void 0&&typeof C!=="object"?w+=" The `options` argument encountered was "+p(C)+".":C&&("as"in C)&&typeof C.as!=="string"&&(w+=" The `as` option encountered was "+p(C.as)+"."),w&&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',w),typeof h==="string"&&(C?(w=d(C.as,C.crossOrigin),v.d.m(h,{as:typeof C.as==="string"&&C.as!=="script"?C.as:void 0,crossOrigin:w,integrity:typeof C.integrity==="string"?C.integrity:void 0})):v.d.m(h))},XM.requestFormReset=function(h){v.d.r(h)},XM.unstable_batchedUpdates=function(h,C){return h(C)},XM.useFormState=function(h,C,w){return g().useFormState(h,C,w)},XM.useFormStatus=function(){return g().useHostTransitionStatus()},XM.version="19.2.7",typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop==="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()});var id=js(function(YM,fm){fm.exports=Q(lk())});var sk=js(function($M){var Rt=Q(rk()),pi=Q(dt()),_v=Q(id());(function(){function l(e,t){for(e=e.memoizedState;e!==null&&0<t;)e=e.next,t--;return e}function c(e,t,a,o){if(a>=t.length)return o;var n=t[a],r=Ea(e)?e.slice():pt({},e);return r[n]=c(e[n],t,a+1,o),r}function i(e,t,a){if(t.length!==a.length)console.warn("copyWithRename() expects paths of the same length");else{for(var o=0;o<a.length-1;o++)if(t[o]!==a[o]){console.warn("copyWithRename() expects paths to be the same except for the deepest key");return}return d(e,t,a,0)}}function d(e,t,a,o){var n=t[o],r=Ea(e)?e.slice():pt({},e);return o+1===t.length?(r[a[o]]=r[n],Ea(r)?r.splice(n,1):delete r[n]):r[n]=d(e[n],t,a,o+1),r}function p(e,t,a){var o=t[a],n=Ea(e)?e.slice():pt({},e);if(a+1===t.length)return Ea(n)?n.splice(o,1):delete n[o],n;return n[o]=p(e[o],t,a+1),n}function b(){return!1}function g(){return null}function v(){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 L(){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 x(){}function h(){}function C(e){var t=[];return e.forEach(function(a){t.push(a)}),t.sort().join(", ")}function w(e,t,a,o){return new RI(e,t,a,o)}function T(e,t){e.context===Ll&&(ry(e.current,2,t,e,null,null),Cu())}function k(e,t){if(Ko!==null){var a=t.staleFamilies;t=t.updatedFamilies,nc(),ix(e.current,t,a),Cu()}}function M(e){Ko=e}function D(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function U(e){var t=e,a=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,(t.flags&4098)!==0&&(a=t.return),e=t.return;while(e)}return t.tag===3?a:null}function P(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function X(e){if(e.tag===31){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function F(e){if(U(e)!==e)throw Error("Unable to find node on an unmounted component.")}function fe(e){var t=e.alternate;if(!t){if(t=U(e),t===null)throw Error("Unable to find node on an unmounted component.");return t!==e?null:e}for(var a=e,o=t;;){var n=a.return;if(n===null)break;var r=n.alternate;if(r===null){if(o=n.return,o!==null){a=o;continue}break}if(n.child===r.child){for(r=n.child;r;){if(r===a)return F(n),e;if(r===o)return F(n),t;r=r.sibling}throw Error("Unable to find node on an unmounted component.")}if(a.return!==o.return)a=n,o=r;else{for(var u=!1,f=n.child;f;){if(f===a){u=!0,a=n,o=r;break}if(f===o){u=!0,o=n,a=r;break}f=f.sibling}if(!u){for(f=r.child;f;){if(f===a){u=!0,a=r,o=n;break}if(f===o){u=!0,o=r,a=n;break}f=f.sibling}if(!u)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(a.alternate!==o)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(a.tag!==3)throw Error("Unable to find node on an unmounted component.");return a.stateNode.current===a?e:t}function Z(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=Z(e),t!==null)return t;e=e.sibling}return null}function te(e){if(e===null||typeof e!=="object")return null;return e=gL&&e[gL]||e["@@iterator"],typeof e==="function"?e:null}function Y(e){if(e==null)return null;if(typeof e==="function")return e.$$typeof===QR?null:e.displayName||e.name||null;if(typeof e==="string")return e;switch(e){case Mu:return"Fragment";case dy:return"Profiler";case rp:return"StrictMode";case py:return"Suspense";case my:return"SuspenseList";case hy: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 Au:return"Portal";case Zn:return e.displayName||"Context";case fy:return(e._context.displayName||"Context")+".Consumer";case mc:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case lp:return t=e.displayName||null,t!==null?t:Y(e.type)||"Memo";case No:t=e._payload,e=e._init;try{return Y(e(t))}catch(a){}}return null}function J(e){return typeof e.tag==="number"?V(e):typeof e.name==="string"?e.name:null}function V(e){var t=e.type;switch(e.tag){case 31:return"Activity";case 24:return"Cache";case 9:return(t._context.displayName||"Context")+".Consumer";case 10:return t.displayName||"Context";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 26:case 27:case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return Y(t);case 8:return t===rp?"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 t==="function")return t.displayName||t.name||null;if(typeof t==="string")return t;break;case 29:if(t=e._debugInfo,t!=null){for(var a=t.length-1;0<=a;a--)if(typeof t[a].name==="string")return t[a].name}if(e.return!==null)return V(e.return)}return null}function de(e){return{current:e}}function Se(e,t){0>Dr?console.error("Unexpected pop."):(t!==yy[Dr]&&console.error("Unexpected Fiber popped."),e.current=gy[Dr],gy[Dr]=null,yy[Dr]=null,Dr--)}function Ie(e,t,a){Dr++,gy[Dr]=e.current,yy[Dr]=a,e.current=t}function Me(e){return e===null&&console.error("Expected host context to exist. This error is likely caused by a bug in React. Please file an issue."),e}function oe(e,t){Ie(gl,t,e),Ie(hc,e,e),Ie(hl,null,e);var a=t.nodeType;switch(a){case 9:case 11:a=a===9?"#document":"#fragment",t=(t=t.documentElement)?(t=t.namespaceURI)?_S(t):jr:jr;break;default:if(a=t.tagName,t=t.namespaceURI)t=_S(t),t=HS(t,a);else switch(a){case"svg":t=ci;break;case"math":t=nm;break;default:t=jr}}a=a.toLowerCase(),a=qb(null,a),a={context:t,ancestorInfo:a},Se(hl,e),Ie(hl,a,e)}function he(e){Se(hl,e),Se(hc,e),Se(gl,e)}function Ce(){return Me(hl.current)}function We(e){e.memoizedState!==null&&Ie(sp,e,e);var t=Me(hl.current),a=e.type,o=HS(t.context,a);a=qb(t.ancestorInfo,a),o={context:o,ancestorInfo:a},t!==o&&(Ie(hc,e,e),Ie(hl,o,e))}function St(e){hc.current===e&&(Se(hl,e),Se(hc,e)),sp.current===e&&(Se(sp,e),ld._currentValue=Vs)}function ee(){}function ze(){if(gc===0){yL=console.log,vL=console.info,bL=console.warn,xL=console.error,SL=console.group,LL=console.groupCollapsed,CL=console.groupEnd;var e={configurable:!0,enumerable:!0,value:ee,writable:!0};Object.defineProperties(console,{info:e,log:e,warn:e,error:e,group:e,groupCollapsed:e,groupEnd:e})}gc++}function Lt(){if(gc--,gc===0){var e={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:pt({},e,{value:yL}),info:pt({},e,{value:vL}),warn:pt({},e,{value:bL}),error:pt({},e,{value:xL}),group:pt({},e,{value:SL}),groupCollapsed:pt({},e,{value:LL}),groupEnd:pt({},e,{value:CL})})}0>gc&&console.error("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}function Ct(e){var t=Error.prepareStackTrace;if(Error.prepareStackTrace=void 0,e=e.stack,Error.prepareStackTrace=t,e.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.`),h}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart==="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var b={d:{f:l,r:function(){throw Error("Invalid form element. requestFormReset must be passed a form that was rendered by React.")},D:l,C:l,L:l,m:l,X:l,S:l,M:l},p:0,findDOMNode:null},S=Symbol.for("react.portal"),L=Vv.__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"),a2.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=b,a2.createPortal=function(h,C){var w=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!C||C.nodeType!==1&&C.nodeType!==9&&C.nodeType!==11)throw Error("Target container is not a DOM element.");return i(h,C,null,w)},a2.flushSync=function(h){var C=L.T,w=b.p;try{if(L.T=null,b.p=2,h)return h()}finally{L.T=C,b.p=w,b.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.")}},a2.preconnect=function(h,C){typeof h==="string"&&h?C!=null&&typeof C!=="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.",x(C)):C!=null&&typeof C.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.",p(C.crossOrigin)):console.error("ReactDOM.preconnect(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.",p(h)),typeof h==="string"&&(C?(C=C.crossOrigin,C=typeof C==="string"?C==="use-credentials"?C:"":void 0):C=null,b.d.C(h,C))},a2.prefetchDNS=function(h){if(typeof h!=="string"||!h)console.error("ReactDOM.prefetchDNS(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.",p(h));else if(1<arguments.length){var C=arguments[1];typeof C==="object"&&C.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`.",x(C)):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`.",x(C))}typeof h==="string"&&b.d.D(h)},a2.preinit=function(h,C){if(typeof h==="string"&&h?C==null||typeof C!=="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.",x(C)):C.as!=="style"&&C.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".',x(C.as)):console.error("ReactDOM.preinit(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.",p(h)),typeof h==="string"&&C&&typeof C.as==="string"){var w=C.as,T=d(w,C.crossOrigin),k=typeof C.integrity==="string"?C.integrity:void 0,M=typeof C.fetchPriority==="string"?C.fetchPriority:void 0;w==="style"?b.d.S(h,typeof C.precedence==="string"?C.precedence:void 0,{crossOrigin:T,integrity:k,fetchPriority:M}):w==="script"&&b.d.X(h,{crossOrigin:T,integrity:k,fetchPriority:M,nonce:typeof C.nonce==="string"?C.nonce:void 0})}},a2.preinitModule=function(h,C){var w="";if(typeof h==="string"&&h||(w+=" The `href` argument encountered was "+p(h)+"."),C!==void 0&&typeof C!=="object"?w+=" The `options` argument encountered was "+p(C)+".":C&&("as"in C)&&C.as!=="script"&&(w+=" The `as` option encountered was "+x(C.as)+"."),w)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",w);else switch(w=C&&typeof C.as==="string"?C.as:"script",w){case"script":break;default:w=x(w),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)',w,h)}if(typeof h==="string")if(typeof C==="object"&&C!==null){if(C.as==null||C.as==="script")w=d(C.as,C.crossOrigin),b.d.M(h,{crossOrigin:w,integrity:typeof C.integrity==="string"?C.integrity:void 0,nonce:typeof C.nonce==="string"?C.nonce:void 0})}else C==null&&b.d.M(h)},a2.preload=function(h,C){var w="";if(typeof h==="string"&&h||(w+=" The `href` argument encountered was "+p(h)+"."),C==null||typeof C!=="object"?w+=" The `options` argument encountered was "+p(C)+".":typeof C.as==="string"&&C.as||(w+=" The `as` option encountered was "+p(C.as)+"."),w&&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',w),typeof h==="string"&&typeof C==="object"&&C!==null&&typeof C.as==="string"){w=C.as;var T=d(w,C.crossOrigin);b.d.L(h,w,{crossOrigin:T,integrity:typeof C.integrity==="string"?C.integrity:void 0,nonce:typeof C.nonce==="string"?C.nonce:void 0,type:typeof C.type==="string"?C.type:void 0,fetchPriority:typeof C.fetchPriority==="string"?C.fetchPriority:void 0,referrerPolicy:typeof C.referrerPolicy==="string"?C.referrerPolicy:void 0,imageSrcSet:typeof C.imageSrcSet==="string"?C.imageSrcSet:void 0,imageSizes:typeof C.imageSizes==="string"?C.imageSizes:void 0,media:typeof C.media==="string"?C.media:void 0})}},a2.preloadModule=function(h,C){var w="";typeof h==="string"&&h||(w+=" The `href` argument encountered was "+p(h)+"."),C!==void 0&&typeof C!=="object"?w+=" The `options` argument encountered was "+p(C)+".":C&&("as"in C)&&typeof C.as!=="string"&&(w+=" The `as` option encountered was "+p(C.as)+"."),w&&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',w),typeof h==="string"&&(C?(w=d(C.as,C.crossOrigin),b.d.m(h,{as:typeof C.as==="string"&&C.as!=="script"?C.as:void 0,crossOrigin:w,integrity:typeof C.integrity==="string"?C.integrity:void 0})):b.d.m(h))},a2.requestFormReset=function(h){b.d.r(h)},a2.unstable_batchedUpdates=function(h,C){return h(C)},a2.useFormState=function(h,C,w){return g().useFormState(h,C,w)},a2.useFormStatus=function(){return g().useHostTransitionStatus()},a2.version="19.2.7",typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop==="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()});var cd=js(function(o2,pm){pm.exports=Q(mk())});var hk=js(function(r2){var Rt=Q(pk()),pi=Q(ct()),jv=Q(cd());(function(){function l(e,t){for(e=e.memoizedState;e!==null&&0<t;)e=e.next,t--;return e}function c(e,t,a,o){if(a>=t.length)return o;var r=t[a],n=qa(e)?e.slice():pt({},e);return n[r]=c(e[r],t,a+1,o),n}function i(e,t,a){if(t.length!==a.length)console.warn("copyWithRename() expects paths of the same length");else{for(var o=0;o<a.length-1;o++)if(t[o]!==a[o]){console.warn("copyWithRename() expects paths to be the same except for the deepest key");return}return d(e,t,a,0)}}function d(e,t,a,o){var r=t[o],n=qa(e)?e.slice():pt({},e);return o+1===t.length?(n[a[o]]=n[r],qa(n)?n.splice(r,1):delete n[r]):n[r]=d(e[r],t,a,o+1),n}function p(e,t,a){var o=t[a],r=qa(e)?e.slice():pt({},e);if(a+1===t.length)return qa(r)?r.splice(o,1):delete r[o],r;return r[o]=p(e[o],t,a+1),r}function x(){return!1}function g(){return null}function b(){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 S(){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 L(){}function h(){}function C(e){var t=[];return e.forEach(function(a){t.push(a)}),t.sort().join(", ")}function w(e,t,a,o){return new UT(e,t,a,o)}function T(e,t){e.context===Ll&&(cy(e.current,2,t,e,null,null),Cu())}function k(e,t){if(Ko!==null){var a=t.staleFamilies;t=t.updatedFamilies,nc(),yx(e.current,t,a),Cu()}}function M(e){Ko=e}function E(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function U(e){var t=e,a=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,(t.flags&4098)!==0&&(a=t.return),e=t.return;while(e)}return t.tag===3?a:null}function P(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function X(e){if(e.tag===31){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function F(e){if(U(e)!==e)throw Error("Unable to find node on an unmounted component.")}function me(e){var t=e.alternate;if(!t){if(t=U(e),t===null)throw Error("Unable to find node on an unmounted component.");return t!==e?null:e}for(var a=e,o=t;;){var r=a.return;if(r===null)break;var n=r.alternate;if(n===null){if(o=r.return,o!==null){a=o;continue}break}if(r.child===n.child){for(n=r.child;n;){if(n===a)return F(r),e;if(n===o)return F(r),t;n=n.sibling}throw Error("Unable to find node on an unmounted component.")}if(a.return!==o.return)a=r,o=n;else{for(var u=!1,f=r.child;f;){if(f===a){u=!0,a=r,o=n;break}if(f===o){u=!0,o=r,a=n;break}f=f.sibling}if(!u){for(f=n.child;f;){if(f===a){u=!0,a=n,o=r;break}if(f===o){u=!0,o=n,a=r;break}f=f.sibling}if(!u)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(a.alternate!==o)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(a.tag!==3)throw Error("Unable to find node on an unmounted component.");return a.stateNode.current===a?e:t}function W(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=W(e),t!==null)return t;e=e.sibling}return null}function re(e){if(e===null||typeof e!=="object")return null;return e=wL&&e[wL]||e["@@iterator"],typeof e==="function"?e:null}function K(e){if(e==null)return null;if(typeof e==="function")return e.$$typeof===nA?null:e.displayName||e.name||null;if(typeof e==="string")return e;switch(e){case Mu:return"Fragment";case gy:return"Profiler";case lp:return"StrictMode";case vy:return"Suspense";case by:return"SuspenseList";case xy: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 Au:return"Portal";case Kr:return e.displayName||"Context";case yy:return(e._context.displayName||"Context")+".Consumer";case hc:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case sp:return t=e.displayName||null,t!==null?t:K(e.type)||"Memo";case No:t=e._payload,e=e._init;try{return K(e(t))}catch(a){}}return null}function G(e){return typeof e.tag==="number"?V(e):typeof e.name==="string"?e.name:null}function V(e){var t=e.type;switch(e.tag){case 31:return"Activity";case 24:return"Cache";case 9:return(t._context.displayName||"Context")+".Consumer";case 10:return t.displayName||"Context";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 26:case 27:case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return K(t);case 8:return t===lp?"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 t==="function")return t.displayName||t.name||null;if(typeof t==="string")return t;break;case 29:if(t=e._debugInfo,t!=null){for(var a=t.length-1;0<=a;a--)if(typeof t[a].name==="string")return t[a].name}if(e.return!==null)return V(e.return)}return null}function de(e){return{current:e}}function ve(e,t){0>Dn?console.error("Unexpected pop."):(t!==Ly[Dn]&&console.error("Unexpected Fiber popped."),e.current=Sy[Dn],Sy[Dn]=null,Ly[Dn]=null,Dn--)}function Ce(e,t,a){Dn++,Sy[Dn]=e.current,Ly[Dn]=a,e.current=t}function Ie(e){return e===null&&console.error("Expected host context to exist. This error is likely caused by a bug in React. Please file an issue."),e}function ae(e,t){Ce(gl,t,e),Ce(gc,e,e),Ce(hl,null,e);var a=t.nodeType;switch(a){case 9:case 11:a=a===9?"#document":"#fragment",t=(t=t.documentElement)?(t=t.namespaceURI)?$0(t):jn:jn;break;default:if(a=t.tagName,t=t.namespaceURI)t=$0(t),t=Q0(t,a);else switch(a){case"svg":t=ci;break;case"math":t=nm;break;default:t=jn}}a=a.toLowerCase(),a=Fb(null,a),a={context:t,ancestorInfo:a},ve(hl,e),Ce(hl,a,e)}function he(e){ve(hl,e),ve(gc,e),ve(gl,e)}function we(){return Ie(hl.current)}function We(e){e.memoizedState!==null&&Ce(up,e,e);var t=Ie(hl.current),a=e.type,o=Q0(t.context,a);a=Fb(t.ancestorInfo,a),o={context:o,ancestorInfo:a},t!==o&&(Ce(gc,e,e),Ce(hl,o,e))}function St(e){gc.current===e&&(ve(hl,e),ve(gc,e)),up.current===e&&(ve(up,e),sd._currentValue=Vs)}function ee(){}function ze(){if(yc===0){kL=console.log,IL=console.info,TL=console.warn,RL=console.error,AL=console.group,ML=console.groupCollapsed,DL=console.groupEnd;var e={configurable:!0,enumerable:!0,value:ee,writable:!0};Object.defineProperties(console,{info:e,log:e,warn:e,error:e,group:e,groupCollapsed:e,groupEnd:e})}yc++}function Lt(){if(yc--,yc===0){var e={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:pt({},e,{value:kL}),info:pt({},e,{value:IL}),warn:pt({},e,{value:TL}),error:pt({},e,{value:RL}),group:pt({},e,{value:AL}),groupCollapsed:pt({},e,{value:ML}),groupEnd:pt({},e,{value:DL})})}0>yc&&console.error("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}function Ct(e){var t=Error.prepareStackTrace;if(Error.prepareStackTrace=void 0,e=e.stack,Error.prepareStackTrace=t,e.startsWith(`Error: react-stack-top-frame
|
|
18
18
|
`)&&(e=e.slice(29)),t=e.indexOf(`
|
|
19
19
|
`),t!==-1&&(e=e.slice(t+1)),t=e.indexOf("react_stack_bottom_frame"),t!==-1&&(t=e.lastIndexOf(`
|
|
20
|
-
`,t)),t!==-1)e=e.slice(0,t);else return"";return e}function
|
|
20
|
+
`,t)),t!==-1)e=e.slice(0,t);else return"";return e}function ie(e){if(Cy===void 0)try{throw Error()}catch(a){var t=a.stack.trim().match(/\n( *(at )?)/);Cy=t&&t[1]||"",EL=-1<a.stack.indexOf(`
|
|
21
21
|
at`)?" (<anonymous>)":-1<a.stack.indexOf("@")?"@unknown:0:0":""}return`
|
|
22
|
-
`+
|
|
23
|
-
`),
|
|
24
|
-
`);for(u=
|
|
25
|
-
`+y[
|
|
26
|
-
`),R=
|
|
27
|
-
`+R;break e}}_=
|
|
28
|
-
Error generating stack: `+
|
|
29
|
-
`+
|
|
30
|
-
`+
|
|
31
|
-
`+Ct(
|
|
22
|
+
`+Cy+e+EL}function He(e,t){if(!e||wy)return"";var a=ky.get(e);if(a!==void 0)return a;wy=!0,a=Error.prepareStackTrace,Error.prepareStackTrace=void 0;var o=null;o=j.H,j.H=null,ze();try{var r={DetermineComponentFrameRoot:function(){try{if(t){var R=function(){throw Error()};if(Object.defineProperty(R.prototype,"props",{set:function(){throw Error()}}),typeof Reflect==="object"&&Reflect.construct){try{Reflect.construct(R,[])}catch(ce){var _=ce}Reflect.construct(e,[],R)}else{try{R.call()}catch(ce){_=ce}e.call(R.prototype)}}else{try{throw Error()}catch(ce){_=ce}(R=e())&&typeof R.catch==="function"&&R.catch(function(){})}}catch(ce){if(ce&&_&&typeof ce.stack==="string")return[ce.stack,_.stack]}return[null,null]}};r.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var n=Object.getOwnPropertyDescriptor(r.DetermineComponentFrameRoot,"name");n&&n.configurable&&Object.defineProperty(r.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var u=r.DetermineComponentFrameRoot(),f=u[0],m=u[1];if(f&&m){var y=f.split(`
|
|
23
|
+
`),q=m.split(`
|
|
24
|
+
`);for(u=n=0;n<y.length&&!y[n].includes("DetermineComponentFrameRoot");)n++;for(;u<q.length&&!q[u].includes("DetermineComponentFrameRoot");)u++;if(n===y.length||u===q.length)for(n=y.length-1,u=q.length-1;1<=n&&0<=u&&y[n]!==q[u];)u--;for(;1<=n&&0<=u;n--,u--)if(y[n]!==q[u]){if(n!==1||u!==1)do if(n--,u--,0>u||y[n]!==q[u]){var O=`
|
|
25
|
+
`+y[n].replace(" at new "," at ");return e.displayName&&O.includes("<anonymous>")&&(O=O.replace("<anonymous>",e.displayName)),typeof e==="function"&&ky.set(e,O),O}while(1<=n&&0<=u);break}}}finally{wy=!1,j.H=o,Lt(),Error.prepareStackTrace=a}return y=(y=e?e.displayName||e.name:"")?ie(y):"",typeof e==="function"&&ky.set(e,y),y}function Fe(e,t){switch(e.tag){case 26:case 27:case 5:return ie(e.type);case 16:return ie("Lazy");case 13:return e.child!==t&&t!==null?ie("Suspense Fallback"):ie("Suspense");case 19:return ie("SuspenseList");case 0:case 15:return He(e.type,!1);case 11:return He(e.type.render,!1);case 1:return He(e.type,!0);case 31:return ie("Activity");default:return""}}function J(e){try{var t="",a=null;do{t+=Fe(e,a);var o=e._debugInfo;if(o)for(var r=o.length-1;0<=r;r--){var n=o[r];if(typeof n.name==="string"){var u=t;e:{var{name:f,env:m,debugLocation:y}=n;if(y!=null){var q=Ct(y),O=q.lastIndexOf(`
|
|
26
|
+
`),R=O===-1?q:q.slice(O+1);if(R.indexOf(f)!==-1){var _=`
|
|
27
|
+
`+R;break e}}_=ie(f+(m?" ["+m+"]":""))}t=u+_}}a=e,e=e.return}while(e);return t}catch(ce){return`
|
|
28
|
+
Error generating stack: `+ce.message+`
|
|
29
|
+
`+ce.stack}}function Me(e){return(e=e?e.displayName||e.name:"")?ie(e):""}function lt(){if(Bo===null)return null;var e=Bo._debugOwner;return e!=null?G(e):null}function ne(){if(Bo===null)return"";var e=Bo;try{var t="";switch(e.tag===6&&(e=e.return),e.tag){case 26:case 27:case 5:t+=ie(e.type);break;case 13:t+=ie("Suspense");break;case 19:t+=ie("SuspenseList");break;case 31:t+=ie("Activity");break;case 30:case 0:case 15:case 1:e._debugOwner||t!==""||(t+=Me(e.type));break;case 11:e._debugOwner||t!==""||(t+=Me(e.type.render))}for(;e;)if(typeof e.tag==="number"){var a=e;e=a._debugOwner;var o=a._debugStack;if(e&&o){var r=Ct(o);r!==""&&(t+=`
|
|
30
|
+
`+r)}}else if(e.debugStack!=null){var n=e.debugStack;(e=e.owner)&&n&&(t+=`
|
|
31
|
+
`+Ct(n))}else break;var u=t}catch(f){u=`
|
|
32
32
|
Error generating stack: `+f.message+`
|
|
33
|
-
`+f.stack}return u}function j(e,t,a,o,n,r,u){var f=Bo;ve(e);try{return e!==null&&e._debugTask?e._debugTask.run(t.bind(null,a,o,n,r,u)):t(a,o,n,r,u)}finally{ve(f)}throw Error("runWithFiberInDEV should never be called in production. This is a bug in React.")}function ve(e){G.getCurrentStack=e===null?null:re,Wn=!1,Bo=e}function Ge(e){return typeof Symbol==="function"&&Symbol.toStringTag&&e[Symbol.toStringTag]||e.constructor.name||"Object"}function $e(e){try{return Qe(e),!1}catch(t){return!0}}function Qe(e){return""+e}function Xe(e,t){if($e(e))return console.error("The provided `%s` attribute is an unsupported type %s. This value must be coerced to a string before using it here.",t,Ge(e)),Qe(e)}function yt(e,t){if($e(e))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.",t,Ge(e)),Qe(e)}function xe(e){if($e(e))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.",Ge(e)),Qe(e)}function cn(e){if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u")return!1;var t=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(t.isDisabled)return!0;if(!t.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{Eu=t.inject(e),eo=t}catch(a){console.error("React instrumentation encountered an error: %o.",a)}return t.checkDCE?!0:!1}function Yt(e){if(typeof aA==="function"&&oA(e),eo&&typeof eo.setStrictMode==="function")try{eo.setStrictMode(Eu,e)}catch(t){Jn||(Jn=!0,console.error("React instrumentation encountered an error: %o",t))}}function $d(e){return e>>>=0,e===0?32:31-(nA(e)/rA|0)|0}function On(e){var t=e&42;if(t!==0)return t;switch(e&-e){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 e&261888;case 262144:case 524288:case 1048576:case 2097152:return e&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return e&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."),e}}function ts(e,t,a){var o=e.pendingLanes;if(o===0)return 0;var n=0,r=e.suspendedLanes,u=e.pingedLanes;e=e.warmLanes;var f=o&134217727;return f!==0?(o=f&~r,o!==0?n=On(o):(u&=f,u!==0?n=On(u):a||(a=f&~e,a!==0&&(n=On(a))))):(f=o&~r,f!==0?n=On(f):u!==0?n=On(u):a||(a=o&~e,a!==0&&(n=On(a)))),n===0?0:t!==0&&t!==n&&(t&r)===0&&(r=n&-n,a=t&-t,r>=a||r===32&&(a&4194048)!==0)?t:n}function as(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function rh(e,t){switch(e){case 1:case 2:case 4:case 8:case 64:return t+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 t+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 iu(){var e=cp;return cp<<=1,(cp&62914560)===0&&(cp=4194304),e}function cu(e){for(var t=[],a=0;31>a;a++)t.push(e);return t}function el(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function Qd(e,t,a,o,n,r){var u=e.pendingLanes;e.pendingLanes=a,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=a,e.entangledLanes&=a,e.errorRecoveryDisabledLanes&=a,e.shellSuspendCounter=0;var{entanglements:f,expirationTimes:m,hiddenUpdates:y}=e;for(a=u&~a;0<a;){var O=31-ro(a),q=1<<O;f[O]=0,m[O]=-1;var R=y[O];if(R!==null)for(y[O]=null,O=0;O<R.length;O++){var _=R[O];_!==null&&(_.lane&=-536870913)}a&=~q}o!==0&&os(e,o,0),r!==0&&n===0&&e.tag!==0&&(e.suspendedLanes|=r&~(u&~t))}function os(e,t,a){e.pendingLanes|=t,e.suspendedLanes&=~t;var o=31-ro(t);e.entangledLanes|=t,e.entanglements[o]=e.entanglements[o]|1073741824|a&261930}function ns(e,t){var a=e.entangledLanes|=t;for(e=e.entanglements;a;){var o=31-ro(a),n=1<<o;n&t|e[o]&t&&(e[o]|=t),a&=~n}}function rs(e,t){var a=t&-t;return a=(a&42)!==0?1:ls(a),(a&(e.suspendedLanes|t))!==0?0:a}function ls(e){switch(e){case 2:e=1;break;case 8:e=4;break;case 32:e=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:e=128;break;case 268435456:e=134217728;break;default:e=0}return e}function Di(e,t,a){if(er)for(e=e.pendingUpdatersLaneMap;0<a;){var o=31-ro(a),n=1<<o;e[o].add(t),a&=~n}}function tl(e,t){if(er)for(var a=e.pendingUpdatersLaneMap,o=e.memoizedUpdaters;0<t;){var n=31-ro(t);e=1<<n,n=a[n],0<n.size&&(n.forEach(function(r){var u=r.alternate;u!==null&&o.has(u)||o.add(r)}),n.clear()),t&=~e}}function S(e){return e&=-e,zo!==0&&zo<e?hn!==0&&hn<e?(e&134217727)!==0?tr:dp:hn:zo}function z(){var e=zt.p;if(e!==0)return e;return e=window.event,e===void 0?tr:iL(e.type)}function le(e,t){var a=zt.p;try{return zt.p=e,t()}finally{zt.p=a}}function pe(e){delete e[Qa],delete e[lo],delete e[ky],delete e[lA],delete e[sA]}function ke(e){var t=e[Qa];if(t)return t;for(var a=e.parentNode;a;){if(t=a[vl]||a[Qa]){if(a=t.alternate,t.child!==null||a!==null&&a.child!==null)for(e=QS(e);e!==null;){if(a=e[Qa])return a;e=QS(e)}return t}e=a,a=e.parentNode}return null}function Je(e){if(e=e[Qa]||e[vl]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function et(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error("getNodeFromInstance: Invalid argument.")}function It(e){var t=e[kL];return t||(t=e[kL]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function qe(e){e[yc]=!0}function Wa(e,t){To(e,t),To(e+"Capture",t)}function To(e,t){Ls[e]&&console.error("EventRegistry: More than one plugin attempted to publish the same registration name, `%s`.",e),Ls[e]=t;var a=e.toLowerCase();Ty[a]=e,e==="onDoubleClick"&&(Ty.ondblclick=e);for(e=0;e<t.length;e++)TL.add(t[e])}function al(e,t){uA[t.type]||t.onChange||t.onInput||t.readOnly||t.disabled||t.value==null||(e==="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`.")),t.onChange||t.readOnly||t.disabled||t.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 Ei(e){if(mn.call(RL,e))return!0;if(mn.call(IL,e))return!1;if(iA.test(e))return RL[e]=!0;return IL[e]=!0,console.error("Invalid attribute name: `%s`",e),!1}function bb(e,t,a){if(Ei(t)){if(!e.hasAttribute(t)){switch(typeof a){case"symbol":case"object":return a;case"function":return a;case"boolean":if(a===!1)return a}return a===void 0?void 0:null}if(e=e.getAttribute(t),e===""&&a===!0)return!0;return Xe(a,t),e===""+a?a:e}}function Kd(e,t,a){if(Ei(t))if(a===null)e.removeAttribute(t);else{switch(typeof a){case"undefined":case"function":case"symbol":e.removeAttribute(t);return;case"boolean":var o=t.toLowerCase().slice(0,5);if(o!=="data-"&&o!=="aria-"){e.removeAttribute(t);return}}Xe(a,t),e.setAttribute(t,""+a)}}function Zd(e,t,a){if(a===null)e.removeAttribute(t);else{switch(typeof a){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(t);return}Xe(a,t),e.setAttribute(t,""+a)}}function Lr(e,t,a,o){if(o===null)e.removeAttribute(a);else{switch(typeof o){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(a);return}Xe(o,a),e.setAttributeNS(t,a,""+o)}}function jo(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return xe(e),e;default:return""}}function xb(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function rI(e,t,a){var o=Object.getOwnPropertyDescriptor(e.constructor.prototype,t);if(!e.hasOwnProperty(t)&&typeof o<"u"&&typeof o.get==="function"&&typeof o.set==="function"){var{get:n,set:r}=o;return Object.defineProperty(e,t,{configurable:!0,get:function(){return n.call(this)},set:function(u){xe(u),a=""+u,r.call(this,u)}}),Object.defineProperty(e,t,{enumerable:o.enumerable}),{getValue:function(){return a},setValue:function(u){xe(u),a=""+u},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function lh(e){if(!e._valueTracker){var t=xb(e)?"checked":"value";e._valueTracker=rI(e,t,""+e[t])}}function Sb(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var a=t.getValue(),o="";return e&&(o=xb(e)?e.checked?"true":"false":e.value),e=o,e!==a?(t.setValue(e),!0):!1}function Wd(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch(t){return e.body}}function Xo(e){return e.replace(cA,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function Lb(e,t){t.checked===void 0||t.defaultChecked===void 0||ML||(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",lt()||"A component",t.type),ML=!0),t.value===void 0||t.defaultValue===void 0||AL||(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",lt()||"A component",t.type),AL=!0)}function sh(e,t,a,o,n,r,u,f){if(e.name="",u!=null&&typeof u!=="function"&&typeof u!=="symbol"&&typeof u!=="boolean"?(Xe(u,"type"),e.type=u):e.removeAttribute("type"),t!=null)if(u==="number"){if(t===0&&e.value===""||e.value!=t)e.value=""+jo(t)}else e.value!==""+jo(t)&&(e.value=""+jo(t));else u!=="submit"&&u!=="reset"||e.removeAttribute("value");t!=null?uh(e,u,jo(t)):a!=null?uh(e,u,jo(a)):o!=null&&e.removeAttribute("value"),n==null&&r!=null&&(e.defaultChecked=!!r),n!=null&&(e.checked=n&&typeof n!=="function"&&typeof n!=="symbol"),f!=null&&typeof f!=="function"&&typeof f!=="symbol"&&typeof f!=="boolean"?(Xe(f,"name"),e.name=""+jo(f)):e.removeAttribute("name")}function Cb(e,t,a,o,n,r,u,f){if(r!=null&&typeof r!=="function"&&typeof r!=="symbol"&&typeof r!=="boolean"&&(Xe(r,"type"),e.type=r),t!=null||a!=null){if(!(r!=="submit"&&r!=="reset"||t!==void 0&&t!==null)){lh(e);return}a=a!=null?""+jo(a):"",t=t!=null?""+jo(t):a,f||t===e.value||(e.value=t),e.defaultValue=t}o=o!=null?o:n,o=typeof o!=="function"&&typeof o!=="symbol"&&!!o,e.checked=f?e.checked:!!o,e.defaultChecked=!!o,u!=null&&typeof u!=="function"&&typeof u!=="symbol"&&typeof u!=="boolean"&&(Xe(u,"name"),e.name=u),lh(e)}function uh(e,t,a){t==="number"&&Wd(e.ownerDocument)===e||e.defaultValue===""+a||(e.defaultValue=""+a)}function wb(e,t){t.value==null&&(typeof t.children==="object"&&t.children!==null?pi.Children.forEach(t.children,function(a){a==null||typeof a==="string"||typeof a==="number"||typeof a==="bigint"||EL||(EL=!0,console.error("Cannot infer the option value of complex children. Pass a `value` prop or use a plain string as children to <option>."))}):t.dangerouslySetInnerHTML==null||OL||(OL=!0,console.error("Pass a `value` prop if you set dangerouslyInnerHTML so React knows which value should be selected."))),t.selected==null||DL||(console.error("Use the `defaultValue` or `value` props on <select> instead of setting `selected` on <option>."),DL=!0)}function kb(){var e=lt();return e?`
|
|
33
|
+
`+f.stack}return u}function Y(e,t,a,o,r,n,u){var f=Bo;be(e);try{return e!==null&&e._debugTask?e._debugTask.run(t.bind(null,a,o,r,n,u)):t(a,o,r,n,u)}finally{be(f)}throw Error("runWithFiberInDEV should never be called in production. This is a bug in React.")}function be(e){j.getCurrentStack=e===null?null:ne,Zr=!1,Bo=e}function Ge(e){return typeof Symbol==="function"&&Symbol.toStringTag&&e[Symbol.toStringTag]||e.constructor.name||"Object"}function $e(e){try{return Qe(e),!1}catch(t){return!0}}function Qe(e){return""+e}function Xe(e,t){if($e(e))return console.error("The provided `%s` attribute is an unsupported type %s. This value must be coerced to a string before using it here.",t,Ge(e)),Qe(e)}function yt(e,t){if($e(e))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.",t,Ge(e)),Qe(e)}function Se(e){if($e(e))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.",Ge(e)),Qe(e)}function ir(e){if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u")return!1;var t=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(t.isDisabled)return!0;if(!t.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{Eu=t.inject(e),eo=t}catch(a){console.error("React instrumentation encountered an error: %o.",a)}return t.checkDCE?!0:!1}function Yt(e){if(typeof fA==="function"&&pA(e),eo&&typeof eo.setStrictMode==="function")try{eo.setStrictMode(Eu,e)}catch(t){Wr||(Wr=!0,console.error("React instrumentation encountered an error: %o",t))}}function Qd(e){return e>>>=0,e===0?32:31-(mA(e)/hA|0)|0}function Er(e){var t=e&42;if(t!==0)return t;switch(e&-e){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 e&261888;case 262144:case 524288:case 1048576:case 2097152:return e&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return e&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."),e}}function ts(e,t,a){var o=e.pendingLanes;if(o===0)return 0;var r=0,n=e.suspendedLanes,u=e.pingedLanes;e=e.warmLanes;var f=o&134217727;return f!==0?(o=f&~n,o!==0?r=Er(o):(u&=f,u!==0?r=Er(u):a||(a=f&~e,a!==0&&(r=Er(a))))):(f=o&~n,f!==0?r=Er(f):u!==0?r=Er(u):a||(a=o&~e,a!==0&&(r=Er(a)))),r===0?0:t!==0&&t!==r&&(t&n)===0&&(n=r&-r,a=t&-t,n>=a||n===32&&(a&4194048)!==0)?t:r}function as(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function ch(e,t){switch(e){case 1:case 2:case 4:case 8:case 64:return t+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 t+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 iu(){var e=dp;return dp<<=1,(dp&62914560)===0&&(dp=4194304),e}function cu(e){for(var t=[],a=0;31>a;a++)t.push(e);return t}function el(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function Kd(e,t,a,o,r,n){var u=e.pendingLanes;e.pendingLanes=a,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=a,e.entangledLanes&=a,e.errorRecoveryDisabledLanes&=a,e.shellSuspendCounter=0;var{entanglements:f,expirationTimes:m,hiddenUpdates:y}=e;for(a=u&~a;0<a;){var q=31-lo(a),O=1<<q;f[q]=0,m[q]=-1;var R=y[q];if(R!==null)for(y[q]=null,q=0;q<R.length;q++){var _=R[q];_!==null&&(_.lane&=-536870913)}a&=~O}o!==0&&os(e,o,0),n!==0&&r===0&&e.tag!==0&&(e.suspendedLanes|=n&~(u&~t))}function os(e,t,a){e.pendingLanes|=t,e.suspendedLanes&=~t;var o=31-lo(t);e.entangledLanes|=t,e.entanglements[o]=e.entanglements[o]|1073741824|a&261930}function rs(e,t){var a=e.entangledLanes|=t;for(e=e.entanglements;a;){var o=31-lo(a),r=1<<o;r&t|e[o]&t&&(e[o]|=t),a&=~r}}function ns(e,t){var a=t&-t;return a=(a&42)!==0?1:ls(a),(a&(e.suspendedLanes|t))!==0?0:a}function ls(e){switch(e){case 2:e=1;break;case 8:e=4;break;case 32:e=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:e=128;break;case 268435456:e=134217728;break;default:e=0}return e}function Ei(e,t,a){if(Jr)for(e=e.pendingUpdatersLaneMap;0<a;){var o=31-lo(a),r=1<<o;e[o].add(t),a&=~r}}function tl(e,t){if(Jr)for(var a=e.pendingUpdatersLaneMap,o=e.memoizedUpdaters;0<t;){var r=31-lo(t);e=1<<r,r=a[r],0<r.size&&(r.forEach(function(n){var u=n.alternate;u!==null&&o.has(u)||o.add(n)}),r.clear()),t&=~e}}function v(e){return e&=-e,zo!==0&&zo<e?mr!==0&&mr<e?(e&134217727)!==0?en:fp:mr:zo}function z(){var e=zt.p;if(e!==0)return e;return e=window.event,e===void 0?en:yL(e.type)}function le(e,t){var a=zt.p;try{return zt.p=e,t()}finally{zt.p=a}}function fe(e){delete e[Qa],delete e[so],delete e[My],delete e[gA],delete e[yA]}function Te(e){var t=e[Qa];if(t)return t;for(var a=e.parentNode;a;){if(t=a[vl]||a[Qa]){if(a=t.alternate,t.child!==null||a!==null&&a.child!==null)for(e=oL(e);e!==null;){if(a=e[Qa])return a;e=oL(e)}return t}e=a,a=e.parentNode}return null}function Je(e){if(e=e[Qa]||e[vl]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function et(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error("getNodeFromInstance: Invalid argument.")}function Tt(e){var t=e[qL];return t||(t=e[qL]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function Oe(e){e[vc]=!0}function Wa(e,t){Io(e,t),Io(e+"Capture",t)}function Io(e,t){Ls[e]&&console.error("EventRegistry: More than one plugin attempted to publish the same registration name, `%s`.",e),Ls[e]=t;var a=e.toLowerCase();Dy[a]=e,e==="onDoubleClick"&&(Dy.ondblclick=e);for(e=0;e<t.length;e++)OL.add(t[e])}function al(e,t){vA[t.type]||t.onChange||t.onInput||t.readOnly||t.disabled||t.value==null||(e==="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`.")),t.onChange||t.readOnly||t.disabled||t.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 qi(e){if(pr.call(BL,e))return!0;if(pr.call(NL,e))return!1;if(bA.test(e))return BL[e]=!0;return NL[e]=!0,console.error("Invalid attribute name: `%s`",e),!1}function Tb(e,t,a){if(qi(t)){if(!e.hasAttribute(t)){switch(typeof a){case"symbol":case"object":return a;case"function":return a;case"boolean":if(a===!1)return a}return a===void 0?void 0:null}if(e=e.getAttribute(t),e===""&&a===!0)return!0;return Xe(a,t),e===""+a?a:e}}function Zd(e,t,a){if(qi(t))if(a===null)e.removeAttribute(t);else{switch(typeof a){case"undefined":case"function":case"symbol":e.removeAttribute(t);return;case"boolean":var o=t.toLowerCase().slice(0,5);if(o!=="data-"&&o!=="aria-"){e.removeAttribute(t);return}}Xe(a,t),e.setAttribute(t,""+a)}}function Wd(e,t,a){if(a===null)e.removeAttribute(t);else{switch(typeof a){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(t);return}Xe(a,t),e.setAttribute(t,""+a)}}function Ln(e,t,a,o){if(o===null)e.removeAttribute(a);else{switch(typeof o){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(a);return}Xe(o,a),e.setAttributeNS(t,a,""+o)}}function jo(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return Se(e),e;default:return""}}function Rb(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function hT(e,t,a){var o=Object.getOwnPropertyDescriptor(e.constructor.prototype,t);if(!e.hasOwnProperty(t)&&typeof o<"u"&&typeof o.get==="function"&&typeof o.set==="function"){var{get:r,set:n}=o;return Object.defineProperty(e,t,{configurable:!0,get:function(){return r.call(this)},set:function(u){Se(u),a=""+u,n.call(this,u)}}),Object.defineProperty(e,t,{enumerable:o.enumerable}),{getValue:function(){return a},setValue:function(u){Se(u),a=""+u},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function dh(e){if(!e._valueTracker){var t=Rb(e)?"checked":"value";e._valueTracker=hT(e,t,""+e[t])}}function Ab(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var a=t.getValue(),o="";return e&&(o=Rb(e)?e.checked?"true":"false":e.value),e=o,e!==a?(t.setValue(e),!0):!1}function Jd(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch(t){return e.body}}function Xo(e){return e.replace(xA,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function Mb(e,t){t.checked===void 0||t.defaultChecked===void 0||UL||(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",lt()||"A component",t.type),UL=!0),t.value===void 0||t.defaultValue===void 0||zL||(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",lt()||"A component",t.type),zL=!0)}function fh(e,t,a,o,r,n,u,f){if(e.name="",u!=null&&typeof u!=="function"&&typeof u!=="symbol"&&typeof u!=="boolean"?(Xe(u,"type"),e.type=u):e.removeAttribute("type"),t!=null)if(u==="number"){if(t===0&&e.value===""||e.value!=t)e.value=""+jo(t)}else e.value!==""+jo(t)&&(e.value=""+jo(t));else u!=="submit"&&u!=="reset"||e.removeAttribute("value");t!=null?ph(e,u,jo(t)):a!=null?ph(e,u,jo(a)):o!=null&&e.removeAttribute("value"),r==null&&n!=null&&(e.defaultChecked=!!n),r!=null&&(e.checked=r&&typeof r!=="function"&&typeof r!=="symbol"),f!=null&&typeof f!=="function"&&typeof f!=="symbol"&&typeof f!=="boolean"?(Xe(f,"name"),e.name=""+jo(f)):e.removeAttribute("name")}function Db(e,t,a,o,r,n,u,f){if(n!=null&&typeof n!=="function"&&typeof n!=="symbol"&&typeof n!=="boolean"&&(Xe(n,"type"),e.type=n),t!=null||a!=null){if(!(n!=="submit"&&n!=="reset"||t!==void 0&&t!==null)){dh(e);return}a=a!=null?""+jo(a):"",t=t!=null?""+jo(t):a,f||t===e.value||(e.value=t),e.defaultValue=t}o=o!=null?o:r,o=typeof o!=="function"&&typeof o!=="symbol"&&!!o,e.checked=f?e.checked:!!o,e.defaultChecked=!!o,u!=null&&typeof u!=="function"&&typeof u!=="symbol"&&typeof u!=="boolean"&&(Xe(u,"name"),e.name=u),dh(e)}function ph(e,t,a){t==="number"&&Jd(e.ownerDocument)===e||e.defaultValue===""+a||(e.defaultValue=""+a)}function Eb(e,t){t.value==null&&(typeof t.children==="object"&&t.children!==null?pi.Children.forEach(t.children,function(a){a==null||typeof a==="string"||typeof a==="number"||typeof a==="bigint"||_L||(_L=!0,console.error("Cannot infer the option value of complex children. Pass a `value` prop or use a plain string as children to <option>."))}):t.dangerouslySetInnerHTML==null||HL||(HL=!0,console.error("Pass a `value` prop if you set dangerouslyInnerHTML so React knows which value should be selected."))),t.selected==null||PL||(console.error("Use the `defaultValue` or `value` props on <select> instead of setting `selected` on <option>."),PL=!0)}function qb(){var e=lt();return e?`
|
|
34
34
|
|
|
35
|
-
Check the render method of \``+e+"`.":""}function du(e,t,a,o){if(e=e.options,t){t={};for(var
|
|
36
|
-
`;if(typeof t==="string"){for(var
|
|
35
|
+
Check the render method of \``+e+"`.":""}function du(e,t,a,o){if(e=e.options,t){t={};for(var r=0;r<a.length;r++)t["$"+a[r]]=!0;for(a=0;a<e.length;a++)r=t.hasOwnProperty("$"+e[a].value),e[a].selected!==r&&(e[a].selected=r),r&&o&&(e[a].defaultSelected=!0)}else{a=""+jo(a),t=null;for(r=0;r<e.length;r++){if(e[r].value===a){e[r].selected=!0,o&&(e[r].defaultSelected=!0);return}t!==null||e[r].disabled||(t=e[r])}t!==null&&(t.selected=!0)}}function Ob(e,t){for(e=0;e<GL.length;e++){var a=GL[e];if(t[a]!=null){var o=qa(t[a]);t.multiple&&!o?console.error("The `%s` prop supplied to <select> must be an array if `multiple` is true.%s",a,qb()):!t.multiple&&o&&console.error("The `%s` prop supplied to <select> must be a scalar value if `multiple` is false.%s",a,qb())}}t.value===void 0||t.defaultValue===void 0||FL||(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"),FL=!0)}function Nb(e,t){t.value===void 0||t.defaultValue===void 0||VL||(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",lt()||"A component"),VL=!0),t.children!=null&&t.value==null&&console.error("Use the `defaultValue` or `value` props instead of setting children on <textarea>.")}function Bb(e,t,a){if(t!=null&&(t=""+jo(t),t!==e.value&&(e.value=t),a==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=a!=null?""+jo(a):""}function zb(e,t,a,o){if(t==null){if(o!=null){if(a!=null)throw Error("If you supply `defaultValue` on a <textarea>, do not pass children.");if(qa(o)){if(1<o.length)throw Error("<textarea> can only have at most one child.");o=o[0]}a=o}a==null&&(a=""),t=a}a=jo(t),e.defaultValue=a,o=e.textContent,o===a&&o!==""&&o!==null&&(e.value=o),dh(e)}function Ub(e,t){return e.serverProps===void 0&&e.serverTail.length===0&&e.children.length===1&&3<e.distanceFromLeaf&&e.distanceFromLeaf>15-t?Ub(e.children[0],t):e}function To(e){return" "+" ".repeat(e)}function fu(e){return"+ "+" ".repeat(e)}function ss(e){return"- "+" ".repeat(e)}function Pb(e){switch(e.tag){case 26:case 27:case 5:return e.type;case 16:return"Lazy";case 31:return"Activity";case 13:return"Suspense";case 19:return"SuspenseList";case 0:case 15:return e=e.type,e.displayName||e.name||null;case 11:return e=e.type.render,e.displayName||e.name||null;case 1:return e=e.type,e.displayName||e.name||null;default:return null}}function Oi(e,t){return jL.test(e)?(e=JSON.stringify(e),e.length>t-2?8>t?'{"..."}':"{"+e.slice(0,t-7)+'..."}':"{"+e+"}"):e.length>t?5>t?'{"..."}':e.slice(0,t-3)+"...":e}function ef(e,t,a){var o=120-2*a;if(t===null)return fu(a)+Oi(e,o)+`
|
|
36
|
+
`;if(typeof t==="string"){for(var r=0;r<t.length&&r<e.length&&t.charCodeAt(r)===e.charCodeAt(r);r++);return r>o-8&&10<r&&(e="..."+e.slice(r-8),t="..."+t.slice(r-8)),fu(a)+Oi(e,o)+`
|
|
37
37
|
`+ss(a)+Oi(t,o)+`
|
|
38
|
-
`}return
|
|
39
|
-
`}function
|
|
40
|
-
`:0<o?a+"<"+e+" "+
|
|
38
|
+
`}return To(a)+Oi(e,o)+`
|
|
39
|
+
`}function mh(e){return Object.prototype.toString.call(e).replace(/^\[object (.*)\]$/,function(t,a){return a})}function Ni(e,t){switch(typeof e){case"string":return e=JSON.stringify(e),e.length>t?5>t?'"..."':e.slice(0,t-4)+'..."':e;case"object":if(e===null)return"null";if(qa(e))return"[...]";if(e.$$typeof===Qr)return(t=K(e.type))?"<"+t+">":"<...>";var a=mh(e);if(a==="Object"){a="",t-=2;for(var o in e)if(e.hasOwnProperty(o)){var r=JSON.stringify(o);if(r!=='"'+o+'"'&&(o=r),t-=o.length-2,r=Ni(e[o],15>t?t:15),t-=r.length,0>t){a+=a===""?"...":", ...";break}a+=(a===""?"":",")+o+":"+r}return"{"+a+"}"}return a;case"function":return(t=e.displayName||e.name)?"function "+t:"function";default:return String(e)}}function pu(e,t){return typeof e!=="string"||jL.test(e)?"{"+Ni(e,t-2)+"}":e.length>t-2?5>t?'"..."':'"'+e.slice(0,t-5)+'..."':'"'+e+'"'}function hh(e,t,a){var o=120-a.length-e.length,r=[],n;for(n in t)if(t.hasOwnProperty(n)&&n!=="children"){var u=pu(t[n],120-a.length-n.length-1);o-=n.length+u.length+2,r.push(n+"="+u)}return r.length===0?a+"<"+e+`>
|
|
40
|
+
`:0<o?a+"<"+e+" "+r.join(" ")+`>
|
|
41
41
|
`:a+"<"+e+`
|
|
42
|
-
`+a+" "+
|
|
42
|
+
`+a+" "+r.join(`
|
|
43
43
|
`+a+" ")+`
|
|
44
44
|
`+a+`>
|
|
45
|
-
`}function
|
|
46
|
-
`,o+=ss(a)+
|
|
47
|
-
`):o+=fu(a)+
|
|
48
|
-
`}for(var m in
|
|
49
|
-
`);return o}function
|
|
50
|
-
`+
|
|
51
|
-
`:(
|
|
52
|
-
`,
|
|
53
|
-
`)}else
|
|
54
|
-
`}
|
|
55
|
-
`}}),
|
|
56
|
-
`:
|
|
57
|
-
`+
|
|
58
|
-
`}if(e=a.children,t=t.children,typeof e==="string"||typeof e==="number"||typeof e==="bigint"){if(
|
|
59
|
-
`}function
|
|
60
|
-
`+
|
|
61
|
-
`,t++)}if(o="",
|
|
62
|
-
`,t++}else e.serverProps===null?(o=
|
|
63
|
-
`),
|
|
64
|
-
`):y+
|
|
65
|
-
|
|
66
|
-
`+
|
|
67
|
-
This will cause a hydration error.%s`,u,o,a,
|
|
68
|
-
This will cause a hydration error.%s`,u,o,
|
|
69
|
-
See this log for the ancestor stack trace.`,o,u)})),!1}function
|
|
45
|
+
`}function gT(e,t,a){var o="",r=pt({},t),n;for(n in e)if(e.hasOwnProperty(n)){delete r[n];var u=120-2*a-n.length-2,f=Ni(e[n],u);t.hasOwnProperty(n)?(u=Ni(t[n],u),o+=fu(a)+n+": "+f+`
|
|
46
|
+
`,o+=ss(a)+n+": "+u+`
|
|
47
|
+
`):o+=fu(a)+n+": "+f+`
|
|
48
|
+
`}for(var m in r)r.hasOwnProperty(m)&&(e=Ni(r[m],120-2*a-m.length-2),o+=ss(a)+m+": "+e+`
|
|
49
|
+
`);return o}function yT(e,t,a,o){var r="",n=new Map;for(y in a)a.hasOwnProperty(y)&&n.set(y.toLowerCase(),y);if(n.size===1&&n.has("children"))r+=hh(e,t,To(o));else{for(var u in t)if(t.hasOwnProperty(u)&&u!=="children"){var f=120-2*(o+1)-u.length-1,m=n.get(u.toLowerCase());if(m!==void 0){n.delete(u.toLowerCase());var y=t[u];m=a[m];var q=pu(y,f);f=pu(m,f),typeof y==="object"&&y!==null&&typeof m==="object"&&m!==null&&mh(y)==="Object"&&mh(m)==="Object"&&(2<Object.keys(y).length||2<Object.keys(m).length||-1<q.indexOf("...")||-1<f.indexOf("..."))?r+=To(o+1)+u+`={{
|
|
50
|
+
`+gT(y,m,o+2)+To(o+1)+`}}
|
|
51
|
+
`:(r+=fu(o+1)+u+"="+q+`
|
|
52
|
+
`,r+=ss(o+1)+u+"="+f+`
|
|
53
|
+
`)}else r+=To(o+1)+u+"="+pu(t[u],f)+`
|
|
54
|
+
`}n.forEach(function(O){if(O!=="children"){var R=120-2*(o+1)-O.length-1;r+=ss(o+1)+O+"="+pu(a[O],R)+`
|
|
55
|
+
`}}),r=r===""?To(o)+"<"+e+`>
|
|
56
|
+
`:To(o)+"<"+e+`
|
|
57
|
+
`+r+To(o)+`>
|
|
58
|
+
`}if(e=a.children,t=t.children,typeof e==="string"||typeof e==="number"||typeof e==="bigint"){if(n="",typeof t==="string"||typeof t==="number"||typeof t==="bigint")n=""+t;r+=ef(n,""+e,o+1)}else if(typeof t==="string"||typeof t==="number"||typeof t==="bigint")r=e==null?r+ef(""+t,null,o+1):r+ef(""+t,void 0,o+1);return r}function _b(e,t){var a=Pb(e);if(a===null){a="";for(e=e.child;e;)a+=_b(e,t),e=e.sibling;return a}return To(t)+"<"+a+`>
|
|
59
|
+
`}function gh(e,t){var a=Ub(e,t);if(a!==e&&(e.children.length!==1||e.children[0]!==a))return To(t)+`...
|
|
60
|
+
`+gh(a,t+1);a="";var o=e.fiber._debugInfo;if(o)for(var r=0;r<o.length;r++){var n=o[r].name;typeof n==="string"&&(a+=To(t)+"<"+n+`>
|
|
61
|
+
`,t++)}if(o="",r=e.fiber.pendingProps,e.fiber.tag===6)o=ef(r,e.serverProps,t),t++;else if(n=Pb(e.fiber),n!==null)if(e.serverProps===void 0){o=t;var u=120-2*o-n.length-2,f="";for(y in r)if(r.hasOwnProperty(y)&&y!=="children"){var m=pu(r[y],15);if(u-=y.length+m.length+2,0>u){f+=" ...";break}f+=" "+y+"="+m}o=To(o)+"<"+n+f+`>
|
|
62
|
+
`,t++}else e.serverProps===null?(o=hh(n,r,fu(t)),t++):typeof e.serverProps==="string"?console.error("Should not have matched a non HostText fiber to a Text node. This is a bug in React."):(o=yT(n,r,e.serverProps,t),t++);var y="";r=e.fiber.child;for(n=0;r&&n<e.children.length;)u=e.children[n],u.fiber===r?(y+=gh(u,t),n++):y+=_b(r,t),r=r.sibling;r&&0<e.children.length&&(y+=To(t)+`...
|
|
63
|
+
`),r=e.serverTail,e.serverProps===null&&t--;for(e=0;e<r.length;e++)n=r[e],y=typeof n==="string"?y+(ss(t)+Oi(n,120-2*t)+`
|
|
64
|
+
`):y+hh(n.type,n.props,ss(t));return a+o+y}function yh(e){try{return`
|
|
65
|
+
|
|
66
|
+
`+gh(e,0)}catch(t){return""}}function Hb(e,t,a){for(var o=t,r=null,n=0;o;)o===e&&(n=0),r={fiber:o,children:r!==null?[r]:[],serverProps:o===t?a:o===e?null:void 0,serverTail:[],distanceFromLeaf:n},n++,o=o.return;return r!==null?yh(r).replaceAll(/^[+-]/gm,">"):""}function Fb(e,t){var a=pt({},e||YL),o={tag:t};if(XL.indexOf(t)!==-1&&(a.aTagInScope=null,a.buttonTagInScope=null,a.nobrTagInScope=null),LA.indexOf(t)!==-1&&(a.pTagInButtonScope=null),SA.indexOf(t)!==-1&&t!=="address"&&t!=="div"&&t!=="p"&&(a.listItemTagAutoclosing=null,a.dlItemTagAutoclosing=null),a.current=o,t==="form"&&(a.formTag=o),t==="a"&&(a.aTagInScope=o),t==="button"&&(a.buttonTagInScope=o),t==="nobr"&&(a.nobrTagInScope=o),t==="p"&&(a.pTagInButtonScope=o),t==="li"&&(a.listItemTagAutoclosing=o),t==="dd"||t==="dt")a.dlItemTagAutoclosing=o;return t==="#document"||t==="html"?a.containerTagInScope=null:a.containerTagInScope||(a.containerTagInScope=o),e!==null||t!=="#document"&&t!=="html"&&t!=="body"?a.implicitRootScope===!0&&(a.implicitRootScope=!1):a.implicitRootScope=!0,a}function Gb(e,t,a){switch(t){case"select":return e==="hr"||e==="option"||e==="optgroup"||e==="script"||e==="template"||e==="#text";case"optgroup":return e==="option"||e==="#text";case"option":return e==="#text";case"tr":return e==="th"||e==="td"||e==="style"||e==="script"||e==="template";case"tbody":case"thead":case"tfoot":return e==="tr"||e==="style"||e==="script"||e==="template";case"colgroup":return e==="col"||e==="template";case"table":return e==="caption"||e==="colgroup"||e==="tbody"||e==="tfoot"||e==="thead"||e==="style"||e==="script"||e==="template";case"head":return e==="base"||e==="basefont"||e==="bgsound"||e==="link"||e==="meta"||e==="title"||e==="noscript"||e==="noframes"||e==="style"||e==="script"||e==="template";case"html":if(a)break;return e==="head"||e==="body"||e==="frameset";case"frameset":return e==="frame";case"#document":if(!a)return e==="html"}switch(e){case"h1":case"h2":case"h3":case"h4":case"h5":case"h6":return t!=="h1"&&t!=="h2"&&t!=="h3"&&t!=="h4"&&t!=="h5"&&t!=="h6";case"rp":case"rt":return CA.indexOf(t)===-1;case"caption":case"col":case"colgroup":case"frameset":case"frame":case"tbody":case"td":case"tfoot":case"th":case"thead":case"tr":return t==null;case"head":return a||t===null;case"html":return a&&t==="#document"||t===null;case"body":return a&&(t==="#document"||t==="html")||t===null}return!0}function vT(e,t){switch(e){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 t.pTagInButtonScope;case"form":return t.formTag||t.pTagInButtonScope;case"li":return t.listItemTagAutoclosing;case"dd":case"dt":return t.dlItemTagAutoclosing;case"button":return t.buttonTagInScope;case"a":return t.aTagInScope;case"nobr":return t.nobrTagInScope}return null}function Vb(e,t){for(;e;){switch(e.tag){case 5:case 26:case 27:if(e.type===t)return e}e=e.return}return null}function vh(e,t){t=t||YL;var a=t.current;if(t=(a=Gb(e,a&&a.tag,t.implicitRootScope)?null:a)?null:vT(e,t),t=a||t,!t)return!0;var o=t.tag;if(t=String(!!a)+"|"+e+"|"+o,pp[t])return!1;pp[t]=!0;var r=(t=Bo)?Vb(t.return,o):null,n=t!==null&&r!==null?Hb(r,t,null):"",u="<"+e+">";return a?(a="",o==="table"&&e==="tr"&&(a+=" Add a <tbody>, <thead> or <tfoot> to your code to match the DOM tree generated by the browser."),console.error(`In HTML, %s cannot be a child of <%s>.%s
|
|
67
|
+
This will cause a hydration error.%s`,u,o,a,n)):console.error(`In HTML, %s cannot be a descendant of <%s>.
|
|
68
|
+
This will cause a hydration error.%s`,u,o,n),t&&(e=t.return,r===null||e===null||r===e&&e._debugOwner===t._debugOwner||Y(r,function(){console.error(`<%s> cannot contain a nested %s.
|
|
69
|
+
See this log for the ancestor stack trace.`,o,u)})),!1}function tf(e,t,a){if(a||Gb("#text",t,!1))return!0;if(a="#text|"+t,pp[a])return!1;pp[a]=!0;var o=(a=Bo)?Vb(a,t):null;return a=a!==null&&o!==null?Hb(o,a,a.tag!==6?{children:null}:null):"",/\S/.test(e)?console.error(`In HTML, text nodes cannot be a child of <%s>.
|
|
70
70
|
This will cause a hydration error.%s`,t,a):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`,t,a),!1}function Ni(e,t){if(t){var a=e.firstChild;if(a&&a===e.lastChild&&a.nodeType===3){a.nodeValue=t;return}}e.textContent=t}function iI(e){return e.replace(gA,function(t,a){return a.toUpperCase()})}function zb(e,t,a){var o=t.indexOf("--")===0;o||(-1<t.indexOf("-")?Ou.hasOwnProperty(t)&&Ou[t]||(Ou[t]=!0,console.error("Unsupported style property %s. Did you mean %s?",t,iI(t.replace(hA,"ms-")))):mA.test(t)?Ou.hasOwnProperty(t)&&Ou[t]||(Ou[t]=!0,console.error("Unsupported vendor-prefixed style property %s. Did you mean %s?",t,t.charAt(0).toUpperCase()+t.slice(1))):!FL.test(a)||Ry.hasOwnProperty(a)&&Ry[a]||(Ry[a]=!0,console.error(`Style property values shouldn't contain a semicolon. Try "%s: %s" instead.`,t,a.replace(FL,""))),typeof a==="number"&&(isNaN(a)?GL||(GL=!0,console.error("`NaN` is an invalid value for the `%s` css style property.",t)):isFinite(a)||VL||(VL=!0,console.error("`Infinity` is an invalid value for the `%s` css style property.",t)))),a==null||typeof a==="boolean"||a===""?o?e.setProperty(t,""):t==="float"?e.cssFloat="":e[t]="":o?e.setProperty(t,a):typeof a!=="number"||a===0||jL.has(t)?t==="float"?e.cssFloat=a:(yt(a,t),e[t]=(""+a).trim()):e[t]=a+"px"}function Ub(e,t,a){if(t!=null&&typeof t!=="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(t&&Object.freeze(t),e=e.style,a!=null){if(t){var o={};if(a){for(var n in a)if(a.hasOwnProperty(n)&&!t.hasOwnProperty(n))for(var r=Iy[n]||[n],u=0;u<r.length;u++)o[r[u]]=n}for(var f in t)if(t.hasOwnProperty(f)&&(!a||a[f]!==t[f]))for(n=Iy[f]||[f],r=0;r<n.length;r++)o[n[r]]=f;f={};for(var m in t)for(n=Iy[m]||[m],r=0;r<n.length;r++)f[n[r]]=m;m={};for(var y in o)if(n=o[y],(r=f[y])&&n!==r&&(u=n+","+r,!m[u])){m[u]=!0,u=console;var O=t[n];u.error.call(u,"%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.",O==null||typeof O==="boolean"||O===""?"Removing":"Updating",n,r)}}for(var q in a)!a.hasOwnProperty(q)||t!=null&&t.hasOwnProperty(q)||(q.indexOf("--")===0?e.setProperty(q,""):q==="float"?e.cssFloat="":e[q]="");for(var R in t)y=t[R],t.hasOwnProperty(R)&&a[R]!==y&&zb(e,R,y)}else for(o in t)t.hasOwnProperty(o)&&zb(e,o,t[o])}function Bi(e){if(e.indexOf("-")===-1)return!1;switch(e){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 Pb(e){return yA.get(e)||e}function cI(e,t){if(mn.call(Nu,t)&&Nu[t])return!0;if(bA.test(t)){if(e="aria-"+t.slice(4).toLowerCase(),e=XL.hasOwnProperty(e)?e:null,e==null)return console.error("Invalid ARIA attribute `%s`. ARIA attributes follow the pattern aria-* and must be lowercase.",t),Nu[t]=!0;if(t!==e)return console.error("Invalid ARIA attribute `%s`. Did you mean `%s`?",t,e),Nu[t]=!0}if(vA.test(t)){if(e=t.toLowerCase(),e=XL.hasOwnProperty(e)?e:null,e==null)return Nu[t]=!0,!1;t!==e&&(console.error("Unknown ARIA attribute `%s`. Did you mean `%s`?",t,e),Nu[t]=!0)}return!0}function dI(e,t){var a=[],o;for(o in t)cI(e,o)||a.push(o);t=a.map(function(n){return"`"+n+"`"}).join(", "),a.length===1?console.error("Invalid aria prop %s on <%s> tag. For details, see https://react.dev/link/invalid-aria-props",t,e):1<a.length&&console.error("Invalid aria props %s on <%s> tag. For details, see https://react.dev/link/invalid-aria-props",t,e)}function fI(e,t,a,o){if(mn.call(so,t)&&so[t])return!0;var n=t.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."),so[t]=!0;if(typeof a==="function"&&(e==="form"&&t==="action"||e==="input"&&t==="formAction"||e==="button"&&t==="formAction"))return!0;if(o!=null){if(e=o.possibleRegistrationNames,o.registrationNameDependencies.hasOwnProperty(t))return!0;if(o=e.hasOwnProperty(n)?e[n]:null,o!=null)return console.error("Invalid event handler property `%s`. Did you mean `%s`?",t,o),so[t]=!0;if($L.test(t))return console.error("Unknown event handler property `%s`. It will be ignored.",t),so[t]=!0}else if($L.test(t))return xA.test(t)&&console.error("Invalid event handler property `%s`. React events use the camelCase naming convention, for example `onClick`.",t),so[t]=!0;if(SA.test(t)||LA.test(t))return!0;if(n==="innerhtml")return console.error("Directly setting property `innerHTML` is not permitted. For more information, lookup documentation on `dangerouslySetInnerHTML`."),so[t]=!0;if(n==="aria")return console.error("The `aria` attribute is reserved for future use in React. Pass individual `aria-` attributes instead."),so[t]=!0;if(n==="is"&&a!==null&&a!==void 0&&typeof a!=="string")return console.error("Received a `%s` for a string attribute `is`. If this is expected, cast the value to a string.",typeof a),so[t]=!0;if(typeof a==="number"&&isNaN(a))return console.error("Received NaN for the `%s` attribute. If this is expected, cast the value to a string.",t),so[t]=!0;if(mp.hasOwnProperty(n)){if(n=mp[n],n!==t)return console.error("Invalid DOM property `%s`. Did you mean `%s`?",t,n),so[t]=!0}else if(t!==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.",t,n),so[t]=!0;switch(t){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 a){case"boolean":switch(t){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=t.toLowerCase().slice(0,5),n==="data-"||n==="aria-")return!0;return a?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()}.',a,t,t,a,t):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.',a,t,t,a,t,t,t),so[t]=!0}case"function":case"symbol":return so[t]=!0,!1;case"string":if(a==="false"||a==="true"){switch(t){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}?",a,t,a==="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".',t,a),so[t]=!0}}return!0}function pI(e,t,a){var o=[],n;for(n in t)fI(e,n,t[n],a)||o.push(n);t=o.map(function(r){return"`"+r+"`"}).join(", "),o.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 ",t,e):1<o.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 ",t,e)}function zi(e){return CA.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function Cr(){}function mh(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}function _b(e){var t=Je(e);if(t&&(e=t.stateNode)){var a=e[lo]||null;e:switch(e=t.stateNode,t.type){case"input":if(sh(e,a.value,a.defaultValue,a.defaultValue,a.checked,a.defaultChecked,a.type,a.name),t=a.name,a.type==="radio"&&t!=null){for(a=e;a.parentNode;)a=a.parentNode;Xe(t,"name"),a=a.querySelectorAll('input[name="'+Xo(""+t)+'"][type="radio"]');for(t=0;t<a.length;t++){var o=a[t];if(o!==e&&o.form===e.form){var n=o[lo]||null;if(!n)throw Error("ReactDOMInput: Mixing React and non-React radio inputs with the same `name` is not supported.");sh(o,n.value,n.defaultValue,n.defaultValue,n.checked,n.defaultChecked,n.type,n.name)}}for(t=0;t<a.length;t++)o=a[t],o.form===e.form&&Sb(o)}break e;case"textarea":Rb(e,a.value,a.defaultValue);break e;case"select":t=a.value,t!=null&&du(e,!!a.multiple,t,!1)}}}function Hb(e,t,a){if(Ay)return e(t,a);Ay=!0;try{var o=e(t);return o}finally{if(Ay=!1,Bu!==null||zu!==null){if(Cu(),Bu&&(t=Bu,e=zu,zu=Bu=null,_b(t),e))for(t=0;t<e.length;t++)_b(e[t])}}}function Ui(e,t){var a=e.stateNode;if(a===null)return null;var o=a[lo]||null;if(o===null)return null;a=o[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(o=!o.disabled)||(e=e.type,o=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!o;break e;default:e=!1}if(e)return null;if(a&&typeof a!=="function")throw Error("Expected `"+t+"` listener to be a function, instead got a value of `"+typeof a+"` type.");return a}function Fb(){if(hp)return hp;var e,t=Dy,a=t.length,o,n="value"in bl?bl.value:bl.textContent,r=n.length;for(e=0;e<a&&t[e]===n[e];e++);var u=a-e;for(o=1;o<=u&&t[a-o]===n[r-o];o++);return hp=n.slice(e,1<o?1-o:void 0)}function tf(e){var t=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function af(){return!0}function Gb(){return!1}function go(e){function t(a,o,n,r,u){this._reactName=a,this._targetInst=n,this.type=o,this.nativeEvent=r,this.target=u,this.currentTarget=null;for(var f in e)e.hasOwnProperty(f)&&(a=e[f],this[f]=a?a(r):r[f]);return this.isDefaultPrevented=(r.defaultPrevented!=null?r.defaultPrevented:r.returnValue===!1)?af:Gb,this.isPropagationStopped=Gb,this}return pt(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var a=this.nativeEvent;a&&(a.preventDefault?a.preventDefault():typeof a.returnValue!=="unknown"&&(a.returnValue=!1),this.isDefaultPrevented=af)},stopPropagation:function(){var a=this.nativeEvent;a&&(a.stopPropagation?a.stopPropagation():typeof a.cancelBubble!=="unknown"&&(a.cancelBubble=!0),this.isPropagationStopped=af)},persist:function(){},isPersistent:af}),t}function mI(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=BA[e])?!!t[e]:!1}function hh(){return mI}function Vb(e,t){switch(e){case"keyup":return $A.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==WL;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function jb(e){return e=e.detail,typeof e==="object"&&"data"in e?e.data:null}function hI(e,t){switch(e){case"compositionend":return jb(t);case"keypress":if(t.which!==eC)return null;return aC=!0,tC;case"textInput":return e=t.data,e===tC&&aC?null:e;default:return null}}function gI(e,t){if(Uu)return e==="compositionend"||!Ny&&Vb(e,t)?(e=Fb(),hp=Dy=bl=null,Uu=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return JL&&t.locale!=="ko"?null:t.data;default:return null}}function Xb(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!KA[e.type]:t==="textarea"?!0:!1}function yI(e){if(!ar)return!1;e="on"+e;var t=e in document;return t||(t=document.createElement("div"),t.setAttribute(e,"return;"),t=typeof t[e]==="function"),t}function Yb(e,t,a,o){Bu?zu?zu.push(o):zu=[o]:Bu=o,t=Qf(t,"onChange"),0<t.length&&(a=new gp("onChange","change",null,a,o),e.push({event:a,listeners:t}))}function vI(e){AS(e,0)}function of(e){var t=et(e);if(Sb(t))return e}function $b(e,t){if(e==="change")return t}function Qb(){Cc&&(Cc.detachEvent("onpropertychange",Kb),wc=Cc=null)}function Kb(e){if(e.propertyName==="value"&&of(wc)){var t=[];Yb(t,wc,e,mh(e)),Hb(vI,t)}}function bI(e,t,a){e==="focusin"?(Qb(),Cc=t,wc=a,Cc.attachEvent("onpropertychange",Kb)):e==="focusout"&&Qb()}function xI(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return of(wc)}function SI(e,t){if(e==="click")return of(t)}function LI(e,t){if(e==="input"||e==="change")return of(t)}function CI(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}function Pi(e,t){if(uo(e,t))return!0;if(typeof e!=="object"||e===null||typeof t!=="object"||t===null)return!1;var a=Object.keys(e),o=Object.keys(t);if(a.length!==o.length)return!1;for(o=0;o<a.length;o++){var n=a[o];if(!mn.call(t,n)||!uo(e[n],t[n]))return!1}return!0}function Zb(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Wb(e,t){var a=Zb(e);e=0;for(var o;a;){if(a.nodeType===3){if(o=e+a.textContent.length,e<=t&&o>=t)return{node:a,offset:t-e};e=o}e:{for(;a;){if(a.nextSibling){a=a.nextSibling;break e}a=a.parentNode}a=void 0}a=Zb(a)}}function Jb(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Jb(e,t.parentNode):("contains"in e)?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function ex(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=Wd(e.document);t instanceof e.HTMLIFrameElement;){try{var a=typeof t.contentWindow.location.href==="string"}catch(o){a=!1}if(a)e=t.contentWindow;else break;t=Wd(e.document)}return t}function gh(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function tx(e,t,a){var o=a.window===a?a.document:a.nodeType===9?a:a.ownerDocument;zy||Pu==null||Pu!==Wd(o)||(o=Pu,("selectionStart"in o)&&gh(o)?o={start:o.selectionStart,end:o.selectionEnd}:(o=(o.ownerDocument&&o.ownerDocument.defaultView||window).getSelection(),o={anchorNode:o.anchorNode,anchorOffset:o.anchorOffset,focusNode:o.focusNode,focusOffset:o.focusOffset}),kc&&Pi(kc,o)||(kc=o,o=Qf(By,"onSelect"),0<o.length&&(t=new gp("onSelect","select",null,t,a),e.push({event:t,listeners:o}),t.target=Pu)))}function us(e,t){var a={};return a[e.toLowerCase()]=t.toLowerCase(),a["Webkit"+e]="webkit"+t,a["Moz"+e]="moz"+t,a}function is(e){if(Uy[e])return Uy[e];if(!_u[e])return e;var t=_u[e],a;for(a in t)if(t.hasOwnProperty(a)&&a in nC)return Uy[e]=t[a];return e}function dn(e,t){iC.set(e,t),Wa(t,[e])}function wI(e){for(var t=vp,a=0;a<e.length;a++){var o=e[a];if(typeof o==="object"&&o!==null)if(Ea(o)&&o.length===2&&typeof o[0]==="string"){if(t!==vp&&t!==Gy)return Hy;t=Gy}else return Hy;else{if(typeof o==="function"||typeof o==="string"&&50<o.length||t!==vp&&t!==Fy)return Hy;t=Fy}}return t}function yh(e,t,a,o){for(var n in e)mn.call(e,n)&&n[0]!=="_"&&qn(n,e[n],t,a,o)}function qn(e,t,a,o,n){switch(typeof t){case"object":if(t===null){t="null";break}else{if(t.$$typeof===Kn){var r=Y(t.type)||"…",u=t.key;t=t.props;var f=Object.keys(t),m=f.length;if(u==null&&m===0){t="<"+r+" />";break}if(3>o||m===1&&f[0]==="children"&&u==null){t="<"+r+" … />";break}a.push([n+" ".repeat(o)+e,"<"+r]),u!==null&&qn("key",u,a,o+1,n),e=!1;for(var y in t)y==="children"?t.children!=null&&(!Ea(t.children)||0<t.children.length)&&(e=!0):mn.call(t,y)&&y[0]!=="_"&&qn(y,t[y],a,o+1,n);a.push(["",e?">…</"+r+">":"/>"]);return}if(r=Object.prototype.toString.call(t),r=r.slice(8,r.length-1),r==="Array"){if(y=wI(t),y===Fy||y===vp){t=JSON.stringify(t);break}else if(y===Gy){a.push([n+" ".repeat(o)+e,""]);for(e=0;e<t.length;e++)r=t[e],qn(r[0],r[1],a,o+1,n);return}}if(r==="Promise"){if(t.status==="fulfilled"){if(r=a.length,qn(e,t.value,a,o,n),a.length>r){a=a[r],a[1]="Promise<"+(a[1]||"Object")+">";return}}else if(t.status==="rejected"&&(r=a.length,qn(e,t.reason,a,o,n),a.length>r)){a=a[r],a[1]="Rejected Promise<"+a[1]+">";return}a.push([" ".repeat(o)+e,"Promise"]);return}r==="Object"&&(y=Object.getPrototypeOf(t))&&typeof y.constructor==="function"&&(r=y.constructor.name),a.push([n+" ".repeat(o)+e,r==="Object"?3>o?"":"…":r]),3>o&&yh(t,a,o+1,n);return}case"function":t=t.name===""?"() => {}":t.name+"() {}";break;case"string":t=t===oM?"…":JSON.stringify(t);break;case"undefined":t="undefined";break;case"boolean":t=t?"true":"false";break;default:t=String(t)}a.push([n+" ".repeat(o)+e,t])}function ax(e,t,a,o){var n=!0;for(u in e)u in t||(a.push([bp+" ".repeat(o)+u,"…"]),n=!1);for(var r in t)if(r in e){var u=e[r],f=t[r];if(u!==f){if(o===0&&r==="children")n=" ".repeat(o)+r,a.push([bp+n,"…"],[xp+n,"…"]);else{if(!(3<=o)){if(typeof u==="object"&&typeof f==="object"&&u!==null&&f!==null&&u.$$typeof===f.$$typeof)if(f.$$typeof===Kn){if(u.type===f.type&&u.key===f.key){u=Y(f.type)||"…",n=" ".repeat(o)+r,u="<"+u+" … />",a.push([bp+n,u],[xp+n,u]),n=!1;continue}}else{var m=Object.prototype.toString.call(u),y=Object.prototype.toString.call(f);if(m===y&&(y==="[object Object]"||y==="[object Array]")){m=[fC+" ".repeat(o)+r,y==="[object Array]"?"Array":""],a.push(m),y=a.length,ax(u,f,a,o+1)?y===a.length&&(m[1]="Referentially unequal but deeply equal objects. Consider memoization."):n=!1;continue}}else if(typeof u==="function"&&typeof f==="function"&&u.name===f.name&&u.length===f.length&&(m=Function.prototype.toString.call(u),y=Function.prototype.toString.call(f),m===y)){u=f.name===""?"() => {}":f.name+"() {}",a.push([fC+" ".repeat(o)+r,u+" Referentially unequal function closure. Consider memoization."]);continue}}qn(r,u,a,o,bp),qn(r,f,a,o,xp)}n=!1}}else a.push([xp+" ".repeat(o)+r,"…"]),n=!1;return n}function Ro(e){ht=e&63?"Blocking":e&64?"Gesture":e&4194176?"Transition":e&62914560?"Suspense":e&2080374784?"Idle":"Other"}function Nn(e,t,a,o){Kt&&(Sl.start=t,Sl.end=a,Er.color="warning",Er.tooltipText=o,Er.properties=null,(e=e._debugTask)?e.run(performance.measure.bind(performance,o,Sl)):performance.measure(o,Sl))}function nf(e,t,a){Nn(e,t,a,"Reconnect")}function rf(e,t,a,o,n){var r=V(e);if(r!==null&&Kt){var{alternate:u,actualDuration:f}=e;if(u===null||u.child!==e.child)for(var m=e.child;m!==null;m=m.sibling)f-=m.actualDuration;o=0.5>f?o?"tertiary-light":"primary-light":10>f?o?"tertiary":"primary":100>f?o?"tertiary-dark":"primary-dark":"error";var y=e.memoizedProps;f=e._debugTask,y!==null&&u!==null&&u.memoizedProps!==y?(m=[nM],y=ax(u.memoizedProps,y,m,0),1<m.length&&(y&&!xl&&(u.lanes&n)===0&&100<e.actualDuration?(xl=!0,m[0]=rM,Er.color="warning",Er.tooltipText=pC):(Er.color=o,Er.tooltipText=r),Er.properties=m,Sl.start=t,Sl.end=a,f!=null?f.run(performance.measure.bind(performance,""+r,Sl)):performance.measure(""+r,Sl))):f!=null?f.run(console.timeStamp.bind(console,r,t,a,$o,void 0,o)):console.timeStamp(r,t,a,$o,void 0,o)}}function vh(e,t,a,o){if(Kt){var n=V(e);if(n!==null){for(var r=null,u=[],f=0;f<o.length;f++){var m=o[f];r==null&&m.source!==null&&(r=m.source._debugTask),m=m.value,u.push(["Error",typeof m==="object"&&m!==null&&typeof m.message==="string"?String(m.message):String(m)])}e.key!==null&&qn("key",e.key,u,0,""),e.memoizedProps!==null&&yh(e.memoizedProps,u,0,""),r==null&&(r=e._debugTask),e={start:t,end:a,detail:{devtools:{color:"error",track:$o,tooltipText:e.tag===13?"Hydration failed":"Error boundary caught an error",properties:u}}},r?r.run(performance.measure.bind(performance,""+n,e)):performance.measure(""+n,e)}}}function Bn(e,t,a,o,n){if(n!==null){if(Kt){var r=V(e);if(r!==null){o=[];for(var u=0;u<n.length;u++){var f=n[u].value;o.push(["Error",typeof f==="object"&&f!==null&&typeof f.message==="string"?String(f.message):String(f)])}e.key!==null&&qn("key",e.key,o,0,""),e.memoizedProps!==null&&yh(e.memoizedProps,o,0,""),t={start:t,end:a,detail:{devtools:{color:"error",track:$o,tooltipText:"A lifecycle or effect errored",properties:o}}},(e=e._debugTask)?e.run(performance.measure.bind(performance,""+r,t)):performance.measure(""+r,t)}}}else r=V(e),r!==null&&Kt&&(n=1>o?"secondary-light":100>o?"secondary":500>o?"secondary-dark":"error",(e=e._debugTask)?e.run(console.timeStamp.bind(console,r,t,a,$o,void 0,n)):console.timeStamp(r,t,a,$o,void 0,n))}function kI(e,t,a,o){if(Kt&&!(t<=e)){var n=(a&738197653)===a?"tertiary-dark":"primary-dark";a=(a&536870912)===a?"Prepared":(a&201326741)===a?"Hydrated":"Render",o?o.run(console.timeStamp.bind(console,a,e,t,ht,mt,n)):console.timeStamp(a,e,t,ht,mt,n)}}function ox(e,t,a,o){!Kt||t<=e||(a=(a&738197653)===a?"tertiary-dark":"primary-dark",o?o.run(console.timeStamp.bind(console,"Prewarm",e,t,ht,mt,a)):console.timeStamp("Prewarm",e,t,ht,mt,a))}function nx(e,t,a,o){!Kt||t<=e||(a=(a&738197653)===a?"tertiary-dark":"primary-dark",o?o.run(console.timeStamp.bind(console,"Suspended",e,t,ht,mt,a)):console.timeStamp("Suspended",e,t,ht,mt,a))}function TI(e,t,a,o,n,r){if(Kt&&!(t<=e)){a=[];for(var u=0;u<o.length;u++){var f=o[u].value;a.push(["Recoverable Error",typeof f==="object"&&f!==null&&typeof f.message==="string"?String(f.message):String(f)])}e={start:e,end:t,detail:{devtools:{color:"primary-dark",track:ht,trackGroup:mt,tooltipText:n?"Hydration Failed":"Recovered after Error",properties:a}}},r?r.run(performance.measure.bind(performance,"Recovered",e)):performance.measure("Recovered",e)}}function bh(e,t,a,o){!Kt||t<=e||(o?o.run(console.timeStamp.bind(console,"Errored",e,t,ht,mt,"error")):console.timeStamp("Errored",e,t,ht,mt,"error"))}function II(e,t,a,o){!Kt||t<=e||(o?o.run(console.timeStamp.bind(console,a,e,t,ht,mt,"secondary-light")):console.timeStamp(a,e,t,ht,mt,"secondary-light"))}function rx(e,t,a,o,n){if(Kt&&!(t<=e)){for(var r=[],u=0;u<a.length;u++){var f=a[u].value;r.push(["Error",typeof f==="object"&&f!==null&&typeof f.message==="string"?String(f.message):String(f)])}e={start:e,end:t,detail:{devtools:{color:"error",track:ht,trackGroup:mt,tooltipText:o?"Remaining Effects Errored":"Commit Errored",properties:r}}},n?n.run(performance.measure.bind(performance,"Errored",e)):performance.measure("Errored",e)}}function _i(e,t,a){!Kt||t<=e||(a?a.run(console.timeStamp.bind(console,"Animating",e,t,ht,mt,"secondary-dark")):console.timeStamp("Animating",e,t,ht,mt,"secondary-dark"))}function lf(){for(var e=Hu,t=Vy=Hu=0;t<e;){var a=Qo[t];Qo[t++]=null;var o=Qo[t];Qo[t++]=null;var n=Qo[t];Qo[t++]=null;var r=Qo[t];if(Qo[t++]=null,o!==null&&n!==null){var u=o.pending;u===null?n.next=n:(n.next=u.next,u.next=n),o.pending=n}r!==0&&lx(a,n,r)}}function sf(e,t,a,o){Qo[Hu++]=e,Qo[Hu++]=t,Qo[Hu++]=a,Qo[Hu++]=o,Vy|=o,e.lanes|=o,e=e.alternate,e!==null&&(e.lanes|=o)}function xh(e,t,a,o){return sf(e,t,a,o),uf(e)}function Ja(e,t){return sf(e,null,null,t),uf(e)}function lx(e,t,a){e.lanes|=a;var o=e.alternate;o!==null&&(o.lanes|=a);for(var n=!1,r=e.return;r!==null;)r.childLanes|=a,o=r.alternate,o!==null&&(o.childLanes|=a),r.tag===22&&(e=r.stateNode,e===null||e._visibility&Tc||(n=!0)),e=r,r=r.return;return e.tag===3?(r=e.stateNode,n&&t!==null&&(n=31-ro(a),e=r.hiddenUpdates,o=e[n],o===null?e[n]=[t]:o.push(t),t.lane=a|536870912),r):null}function uf(e){if(Jc>xM)throw Us=Jc=0,ed=Cv=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.");Us>SM&&(Us=0,ed=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.")),e.alternate===null&&(e.flags&4098)!==0&&LS(e);for(var t=e,a=t.return;a!==null;)t.alternate===null&&(t.flags&4098)!==0&&LS(e),t=a,a=t.return;return t.tag===3?t.stateNode:null}function cs(e){if(Ko===null)return e;var t=Ko(e);return t===void 0?e:t.current}function Sh(e){if(Ko===null)return e;var t=Ko(e);return t===void 0?e!==null&&e!==void 0&&typeof e.render==="function"&&(t=cs(e.render),e.render!==t)?(t={$$typeof:mc,render:t},e.displayName!==void 0&&(t.displayName=e.displayName),t):e:t.current}function sx(e,t){if(Ko===null)return!1;var a=e.elementType;t=t.type;var o=!1,n=typeof t==="object"&&t!==null?t.$$typeof:null;switch(e.tag){case 1:typeof t==="function"&&(o=!0);break;case 0:typeof t==="function"?o=!0:n===No&&(o=!0);break;case 11:n===mc?o=!0:n===No&&(o=!0);break;case 14:case 15:n===lp?o=!0:n===No&&(o=!0);break;default:return!1}return o&&(e=Ko(a),e!==void 0&&e===Ko(t))?!0:!1}function ux(e){Ko!==null&&typeof WeakSet==="function"&&(Fu===null&&(Fu=new WeakSet),Fu.add(e))}function ix(e,t,a){do{var o=e,n=o.alternate,r=o.child,u=o.sibling,f=o.tag;o=o.type;var m=null;switch(f){case 0:case 15:case 1:m=o;break;case 11:m=o.render}if(Ko===null)throw Error("Expected resolveFamily to be set during hot reload.");var y=!1;if(o=!1,m!==null&&(m=Ko(m),m!==void 0&&(a.has(m)?o=!0:t.has(m)&&(f===1?o=!0:y=!0))),Fu!==null&&(Fu.has(e)||n!==null&&Fu.has(n))&&(o=!0),o&&(e._debugNeedsRemount=!0),o||y)n=Ja(e,2),n!==null&&ia(n,e,2);if(r===null||o||ix(r,t,a),u===null)break;e=u}while(1)}function RI(e,t,a,o){this.tag=e,this.key=a,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=o,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,mC||typeof Object.preventExtensions!=="function"||Object.preventExtensions(this)}function Lh(e){return e=e.prototype,!(!e||!e.isReactComponent)}function wr(e,t){var a=e.alternate;switch(a===null?(a=w(e.tag,t,e.key,e.mode),a.elementType=e.elementType,a.type=e.type,a.stateNode=e.stateNode,a._debugOwner=e._debugOwner,a._debugStack=e._debugStack,a._debugTask=e._debugTask,a._debugHookTypes=e._debugHookTypes,a.alternate=e,e.alternate=a):(a.pendingProps=t,a.type=e.type,a.flags=0,a.subtreeFlags=0,a.deletions=null,a.actualDuration=-0,a.actualStartTime=-1.1),a.flags=e.flags&65011712,a.childLanes=e.childLanes,a.lanes=e.lanes,a.child=e.child,a.memoizedProps=e.memoizedProps,a.memoizedState=e.memoizedState,a.updateQueue=e.updateQueue,t=e.dependencies,a.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext,_debugThenableState:t._debugThenableState},a.sibling=e.sibling,a.index=e.index,a.ref=e.ref,a.refCleanup=e.refCleanup,a.selfBaseDuration=e.selfBaseDuration,a.treeBaseDuration=e.treeBaseDuration,a._debugInfo=e._debugInfo,a._debugNeedsRemount=e._debugNeedsRemount,a.tag){case 0:case 15:a.type=cs(e.type);break;case 1:a.type=cs(e.type);break;case 11:a.type=Sh(e.type)}return a}function cx(e,t){e.flags&=65011714;var a=e.alternate;return a===null?(e.childLanes=0,e.lanes=t,e.child=null,e.subtreeFlags=0,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null,e.selfBaseDuration=0,e.treeBaseDuration=0):(e.childLanes=a.childLanes,e.lanes=a.lanes,e.child=a.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=a.memoizedProps,e.memoizedState=a.memoizedState,e.updateQueue=a.updateQueue,e.type=a.type,t=a.dependencies,e.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext,_debugThenableState:t._debugThenableState},e.selfBaseDuration=a.selfBaseDuration,e.treeBaseDuration=a.treeBaseDuration),e}function Ch(e,t,a,o,n,r){var u=0,f=e;if(typeof e==="function")Lh(e)&&(u=1),f=cs(f);else if(typeof e==="string")u=Ce(),u=zR(e,a,u)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case hy:return t=w(31,a,t,n),t.elementType=hy,t.lanes=r,t;case Mu:return ds(a.children,n,r,t);case rp:u=8,n|=to,n|=gn;break;case dy:return e=a,o=n,typeof e.id!=="string"&&console.error('Profiler must specify an "id" of type `string` as a prop. Received the type `%s` instead.',typeof e.id),t=w(12,e,t,o|st),t.elementType=dy,t.lanes=r,t.stateNode={effectDuration:0,passiveEffectDuration:0},t;case py:return t=w(13,a,t,n),t.elementType=py,t.lanes=r,t;case my:return t=w(19,a,t,n),t.elementType=my,t.lanes=r,t;default:if(typeof e==="object"&&e!==null)switch(e.$$typeof){case Zn:u=10;break e;case fy:u=9;break e;case mc:u=11,f=Sh(f);break e;case lp:u=14;break e;case No:u=16,f=null;break e}if(f="",e===void 0||typeof e==="object"&&e!==null&&Object.keys(e).length===0)f+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.";e===null?a="null":Ea(e)?a="array":e!==void 0&&e.$$typeof===Kn?(a="<"+(Y(e.type)||"Unknown")+" />",f=" Did you accidentally export a JSX literal instead of a component?"):a=typeof e,(u=o?J(o):null)&&(f+=`
|
|
71
|
+
This will cause a hydration error.%s`,t,a),!1}function Bi(e,t){if(t){var a=e.firstChild;if(a&&a===e.lastChild&&a.nodeType===3){a.nodeValue=t;return}}e.textContent=t}function bT(e){return e.replace(IA,function(t,a){return a.toUpperCase()})}function jb(e,t,a){var o=t.indexOf("--")===0;o||(-1<t.indexOf("-")?qu.hasOwnProperty(t)&&qu[t]||(qu[t]=!0,console.error("Unsupported style property %s. Did you mean %s?",t,bT(t.replace(kA,"ms-")))):wA.test(t)?qu.hasOwnProperty(t)&&qu[t]||(qu[t]=!0,console.error("Unsupported vendor-prefixed style property %s. Did you mean %s?",t,t.charAt(0).toUpperCase()+t.slice(1))):!KL.test(a)||qy.hasOwnProperty(a)&&qy[a]||(qy[a]=!0,console.error(`Style property values shouldn't contain a semicolon. Try "%s: %s" instead.`,t,a.replace(KL,""))),typeof a==="number"&&(isNaN(a)?ZL||(ZL=!0,console.error("`NaN` is an invalid value for the `%s` css style property.",t)):isFinite(a)||WL||(WL=!0,console.error("`Infinity` is an invalid value for the `%s` css style property.",t)))),a==null||typeof a==="boolean"||a===""?o?e.setProperty(t,""):t==="float"?e.cssFloat="":e[t]="":o?e.setProperty(t,a):typeof a!=="number"||a===0||JL.has(t)?t==="float"?e.cssFloat=a:(yt(a,t),e[t]=(""+a).trim()):e[t]=a+"px"}function Xb(e,t,a){if(t!=null&&typeof t!=="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(t&&Object.freeze(t),e=e.style,a!=null){if(t){var o={};if(a){for(var r in a)if(a.hasOwnProperty(r)&&!t.hasOwnProperty(r))for(var n=Ey[r]||[r],u=0;u<n.length;u++)o[n[u]]=r}for(var f in t)if(t.hasOwnProperty(f)&&(!a||a[f]!==t[f]))for(r=Ey[f]||[f],n=0;n<r.length;n++)o[r[n]]=f;f={};for(var m in t)for(r=Ey[m]||[m],n=0;n<r.length;n++)f[r[n]]=m;m={};for(var y in o)if(r=o[y],(n=f[y])&&r!==n&&(u=r+","+n,!m[u])){m[u]=!0,u=console;var q=t[r];u.error.call(u,"%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.",q==null||typeof q==="boolean"||q===""?"Removing":"Updating",r,n)}}for(var O in a)!a.hasOwnProperty(O)||t!=null&&t.hasOwnProperty(O)||(O.indexOf("--")===0?e.setProperty(O,""):O==="float"?e.cssFloat="":e[O]="");for(var R in t)y=t[R],t.hasOwnProperty(R)&&a[R]!==y&&jb(e,R,y)}else for(o in t)t.hasOwnProperty(o)&&jb(e,o,t[o])}function zi(e){if(e.indexOf("-")===-1)return!1;switch(e){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 Yb(e){return TA.get(e)||e}function xT(e,t){if(pr.call(Nu,t)&&Nu[t])return!0;if(AA.test(t)){if(e="aria-"+t.slice(4).toLowerCase(),e=eC.hasOwnProperty(e)?e:null,e==null)return console.error("Invalid ARIA attribute `%s`. ARIA attributes follow the pattern aria-* and must be lowercase.",t),Nu[t]=!0;if(t!==e)return console.error("Invalid ARIA attribute `%s`. Did you mean `%s`?",t,e),Nu[t]=!0}if(RA.test(t)){if(e=t.toLowerCase(),e=eC.hasOwnProperty(e)?e:null,e==null)return Nu[t]=!0,!1;t!==e&&(console.error("Unknown ARIA attribute `%s`. Did you mean `%s`?",t,e),Nu[t]=!0)}return!0}function ST(e,t){var a=[],o;for(o in t)xT(e,o)||a.push(o);t=a.map(function(r){return"`"+r+"`"}).join(", "),a.length===1?console.error("Invalid aria prop %s on <%s> tag. For details, see https://react.dev/link/invalid-aria-props",t,e):1<a.length&&console.error("Invalid aria props %s on <%s> tag. For details, see https://react.dev/link/invalid-aria-props",t,e)}function LT(e,t,a,o){if(pr.call(uo,t)&&uo[t])return!0;var r=t.toLowerCase();if(r==="onfocusin"||r==="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."),uo[t]=!0;if(typeof a==="function"&&(e==="form"&&t==="action"||e==="input"&&t==="formAction"||e==="button"&&t==="formAction"))return!0;if(o!=null){if(e=o.possibleRegistrationNames,o.registrationNameDependencies.hasOwnProperty(t))return!0;if(o=e.hasOwnProperty(r)?e[r]:null,o!=null)return console.error("Invalid event handler property `%s`. Did you mean `%s`?",t,o),uo[t]=!0;if(aC.test(t))return console.error("Unknown event handler property `%s`. It will be ignored.",t),uo[t]=!0}else if(aC.test(t))return MA.test(t)&&console.error("Invalid event handler property `%s`. React events use the camelCase naming convention, for example `onClick`.",t),uo[t]=!0;if(DA.test(t)||EA.test(t))return!0;if(r==="innerhtml")return console.error("Directly setting property `innerHTML` is not permitted. For more information, lookup documentation on `dangerouslySetInnerHTML`."),uo[t]=!0;if(r==="aria")return console.error("The `aria` attribute is reserved for future use in React. Pass individual `aria-` attributes instead."),uo[t]=!0;if(r==="is"&&a!==null&&a!==void 0&&typeof a!=="string")return console.error("Received a `%s` for a string attribute `is`. If this is expected, cast the value to a string.",typeof a),uo[t]=!0;if(typeof a==="number"&&isNaN(a))return console.error("Received NaN for the `%s` attribute. If this is expected, cast the value to a string.",t),uo[t]=!0;if(hp.hasOwnProperty(r)){if(r=hp[r],r!==t)return console.error("Invalid DOM property `%s`. Did you mean `%s`?",t,r),uo[t]=!0}else if(t!==r)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.",t,r),uo[t]=!0;switch(t){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 a){case"boolean":switch(t){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(r=t.toLowerCase().slice(0,5),r==="data-"||r==="aria-")return!0;return a?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()}.',a,t,t,a,t):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.',a,t,t,a,t,t,t),uo[t]=!0}case"function":case"symbol":return uo[t]=!0,!1;case"string":if(a==="false"||a==="true"){switch(t){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}?",a,t,a==="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".',t,a),uo[t]=!0}}return!0}function CT(e,t,a){var o=[],r;for(r in t)LT(e,r,t[r],a)||o.push(r);t=o.map(function(n){return"`"+n+"`"}).join(", "),o.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 ",t,e):1<o.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 ",t,e)}function Ui(e){return qA.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function Cn(){}function bh(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}function $b(e){var t=Je(e);if(t&&(e=t.stateNode)){var a=e[so]||null;e:switch(e=t.stateNode,t.type){case"input":if(fh(e,a.value,a.defaultValue,a.defaultValue,a.checked,a.defaultChecked,a.type,a.name),t=a.name,a.type==="radio"&&t!=null){for(a=e;a.parentNode;)a=a.parentNode;Xe(t,"name"),a=a.querySelectorAll('input[name="'+Xo(""+t)+'"][type="radio"]');for(t=0;t<a.length;t++){var o=a[t];if(o!==e&&o.form===e.form){var r=o[so]||null;if(!r)throw Error("ReactDOMInput: Mixing React and non-React radio inputs with the same `name` is not supported.");fh(o,r.value,r.defaultValue,r.defaultValue,r.checked,r.defaultChecked,r.type,r.name)}}for(t=0;t<a.length;t++)o=a[t],o.form===e.form&&Ab(o)}break e;case"textarea":Bb(e,a.value,a.defaultValue);break e;case"select":t=a.value,t!=null&&du(e,!!a.multiple,t,!1)}}}function Qb(e,t,a){if(Oy)return e(t,a);Oy=!0;try{var o=e(t);return o}finally{if(Oy=!1,Bu!==null||zu!==null){if(Cu(),Bu&&(t=Bu,e=zu,zu=Bu=null,$b(t),e))for(t=0;t<e.length;t++)$b(e[t])}}}function Pi(e,t){var a=e.stateNode;if(a===null)return null;var o=a[so]||null;if(o===null)return null;a=o[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(o=!o.disabled)||(e=e.type,o=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!o;break e;default:e=!1}if(e)return null;if(a&&typeof a!=="function")throw Error("Expected `"+t+"` listener to be a function, instead got a value of `"+typeof a+"` type.");return a}function Kb(){if(gp)return gp;var e,t=By,a=t.length,o,r="value"in bl?bl.value:bl.textContent,n=r.length;for(e=0;e<a&&t[e]===r[e];e++);var u=a-e;for(o=1;o<=u&&t[a-o]===r[n-o];o++);return gp=r.slice(e,1<o?1-o:void 0)}function af(e){var t=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function of(){return!0}function Zb(){return!1}function yo(e){function t(a,o,r,n,u){this._reactName=a,this._targetInst=r,this.type=o,this.nativeEvent=n,this.target=u,this.currentTarget=null;for(var f in e)e.hasOwnProperty(f)&&(a=e[f],this[f]=a?a(n):n[f]);return this.isDefaultPrevented=(n.defaultPrevented!=null?n.defaultPrevented:n.returnValue===!1)?of:Zb,this.isPropagationStopped=Zb,this}return pt(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var a=this.nativeEvent;a&&(a.preventDefault?a.preventDefault():typeof a.returnValue!=="unknown"&&(a.returnValue=!1),this.isDefaultPrevented=of)},stopPropagation:function(){var a=this.nativeEvent;a&&(a.stopPropagation?a.stopPropagation():typeof a.cancelBubble!=="unknown"&&(a.cancelBubble=!0),this.isPropagationStopped=of)},persist:function(){},isPersistent:of}),t}function wT(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=XA[e])?!!t[e]:!1}function xh(){return wT}function Wb(e,t){switch(e){case"keyup":return rM.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==lC;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Jb(e){return e=e.detail,typeof e==="object"&&"data"in e?e.data:null}function kT(e,t){switch(e){case"compositionend":return Jb(t);case"keypress":if(t.which!==uC)return null;return cC=!0,iC;case"textInput":return e=t.data,e===iC&&cC?null:e;default:return null}}function IT(e,t){if(Uu)return e==="compositionend"||!_y&&Wb(e,t)?(e=Kb(),gp=By=bl=null,Uu=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return sC&&t.locale!=="ko"?null:t.data;default:return null}}function ex(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!lM[e.type]:t==="textarea"?!0:!1}function TT(e){if(!tn)return!1;e="on"+e;var t=e in document;return t||(t=document.createElement("div"),t.setAttribute(e,"return;"),t=typeof t[e]==="function"),t}function tx(e,t,a,o){Bu?zu?zu.push(o):zu=[o]:Bu=o,t=Kf(t,"onChange"),0<t.length&&(a=new yp("onChange","change",null,a,o),e.push({event:a,listeners:t}))}function RT(e){z0(e,0)}function rf(e){var t=et(e);if(Ab(t))return e}function ax(e,t){if(e==="change")return t}function ox(){wc&&(wc.detachEvent("onpropertychange",rx),kc=wc=null)}function rx(e){if(e.propertyName==="value"&&rf(kc)){var t=[];tx(t,kc,e,bh(e)),Qb(RT,t)}}function AT(e,t,a){e==="focusin"?(ox(),wc=t,kc=a,wc.attachEvent("onpropertychange",rx)):e==="focusout"&&ox()}function MT(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return rf(kc)}function DT(e,t){if(e==="click")return rf(t)}function ET(e,t){if(e==="input"||e==="change")return rf(t)}function qT(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}function _i(e,t){if(io(e,t))return!0;if(typeof e!=="object"||e===null||typeof t!=="object"||t===null)return!1;var a=Object.keys(e),o=Object.keys(t);if(a.length!==o.length)return!1;for(o=0;o<a.length;o++){var r=a[o];if(!pr.call(t,r)||!io(e[r],t[r]))return!1}return!0}function nx(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function lx(e,t){var a=nx(e);e=0;for(var o;a;){if(a.nodeType===3){if(o=e+a.textContent.length,e<=t&&o>=t)return{node:a,offset:t-e};e=o}e:{for(;a;){if(a.nextSibling){a=a.nextSibling;break e}a=a.parentNode}a=void 0}a=nx(a)}}function sx(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?sx(e,t.parentNode):("contains"in e)?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function ux(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=Jd(e.document);t instanceof e.HTMLIFrameElement;){try{var a=typeof t.contentWindow.location.href==="string"}catch(o){a=!1}if(a)e=t.contentWindow;else break;t=Jd(e.document)}return t}function Sh(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function ix(e,t,a){var o=a.window===a?a.document:a.nodeType===9?a:a.ownerDocument;Fy||Pu==null||Pu!==Jd(o)||(o=Pu,("selectionStart"in o)&&Sh(o)?o={start:o.selectionStart,end:o.selectionEnd}:(o=(o.ownerDocument&&o.ownerDocument.defaultView||window).getSelection(),o={anchorNode:o.anchorNode,anchorOffset:o.anchorOffset,focusNode:o.focusNode,focusOffset:o.focusOffset}),Ic&&_i(Ic,o)||(Ic=o,o=Kf(Hy,"onSelect"),0<o.length&&(t=new yp("onSelect","select",null,t,a),e.push({event:t,listeners:o}),t.target=Pu)))}function us(e,t){var a={};return a[e.toLowerCase()]=t.toLowerCase(),a["Webkit"+e]="webkit"+t,a["Moz"+e]="moz"+t,a}function is(e){if(Gy[e])return Gy[e];if(!_u[e])return e;var t=_u[e],a;for(a in t)if(t.hasOwnProperty(a)&&a in fC)return Gy[e]=t[a];return e}function cr(e,t){yC.set(e,t),Wa(t,[e])}function OT(e){for(var t=bp,a=0;a<e.length;a++){var o=e[a];if(typeof o==="object"&&o!==null)if(qa(o)&&o.length===2&&typeof o[0]==="string"){if(t!==bp&&t!==$y)return Xy;t=$y}else return Xy;else{if(typeof o==="function"||typeof o==="string"&&50<o.length||t!==bp&&t!==Yy)return Xy;t=Yy}}return t}function Lh(e,t,a,o){for(var r in e)pr.call(e,r)&&r[0]!=="_"&&qr(r,e[r],t,a,o)}function qr(e,t,a,o,r){switch(typeof t){case"object":if(t===null){t="null";break}else{if(t.$$typeof===Qr){var n=K(t.type)||"…",u=t.key;t=t.props;var f=Object.keys(t),m=f.length;if(u==null&&m===0){t="<"+n+" />";break}if(3>o||m===1&&f[0]==="children"&&u==null){t="<"+n+" … />";break}a.push([r+" ".repeat(o)+e,"<"+n]),u!==null&&qr("key",u,a,o+1,r),e=!1;for(var y in t)y==="children"?t.children!=null&&(!qa(t.children)||0<t.children.length)&&(e=!0):pr.call(t,y)&&y[0]!=="_"&&qr(y,t[y],a,o+1,r);a.push(["",e?">…</"+n+">":"/>"]);return}if(n=Object.prototype.toString.call(t),n=n.slice(8,n.length-1),n==="Array"){if(y=OT(t),y===Yy||y===bp){t=JSON.stringify(t);break}else if(y===$y){a.push([r+" ".repeat(o)+e,""]);for(e=0;e<t.length;e++)n=t[e],qr(n[0],n[1],a,o+1,r);return}}if(n==="Promise"){if(t.status==="fulfilled"){if(n=a.length,qr(e,t.value,a,o,r),a.length>n){a=a[n],a[1]="Promise<"+(a[1]||"Object")+">";return}}else if(t.status==="rejected"&&(n=a.length,qr(e,t.reason,a,o,r),a.length>n)){a=a[n],a[1]="Rejected Promise<"+a[1]+">";return}a.push([" ".repeat(o)+e,"Promise"]);return}n==="Object"&&(y=Object.getPrototypeOf(t))&&typeof y.constructor==="function"&&(n=y.constructor.name),a.push([r+" ".repeat(o)+e,n==="Object"?3>o?"":"…":n]),3>o&&Lh(t,a,o+1,r);return}case"function":t=t.name===""?"() => {}":t.name+"() {}";break;case"string":t=t===pM?"…":JSON.stringify(t);break;case"undefined":t="undefined";break;case"boolean":t=t?"true":"false";break;default:t=String(t)}a.push([r+" ".repeat(o)+e,t])}function cx(e,t,a,o){var r=!0;for(u in e)u in t||(a.push([xp+" ".repeat(o)+u,"…"]),r=!1);for(var n in t)if(n in e){var u=e[n],f=t[n];if(u!==f){if(o===0&&n==="children")r=" ".repeat(o)+n,a.push([xp+r,"…"],[Sp+r,"…"]);else{if(!(3<=o)){if(typeof u==="object"&&typeof f==="object"&&u!==null&&f!==null&&u.$$typeof===f.$$typeof)if(f.$$typeof===Qr){if(u.type===f.type&&u.key===f.key){u=K(f.type)||"…",r=" ".repeat(o)+n,u="<"+u+" … />",a.push([xp+r,u],[Sp+r,u]),r=!1;continue}}else{var m=Object.prototype.toString.call(u),y=Object.prototype.toString.call(f);if(m===y&&(y==="[object Object]"||y==="[object Array]")){m=[xC+" ".repeat(o)+n,y==="[object Array]"?"Array":""],a.push(m),y=a.length,cx(u,f,a,o+1)?y===a.length&&(m[1]="Referentially unequal but deeply equal objects. Consider memoization."):r=!1;continue}}else if(typeof u==="function"&&typeof f==="function"&&u.name===f.name&&u.length===f.length&&(m=Function.prototype.toString.call(u),y=Function.prototype.toString.call(f),m===y)){u=f.name===""?"() => {}":f.name+"() {}",a.push([xC+" ".repeat(o)+n,u+" Referentially unequal function closure. Consider memoization."]);continue}}qr(n,u,a,o,xp),qr(n,f,a,o,Sp)}r=!1}}else a.push([Sp+" ".repeat(o)+n,"…"]),r=!1;return r}function Ro(e){ht=e&63?"Blocking":e&64?"Gesture":e&4194176?"Transition":e&62914560?"Suspense":e&2080374784?"Idle":"Other"}function Or(e,t,a,o){Kt&&(Sl.start=t,Sl.end=a,En.color="warning",En.tooltipText=o,En.properties=null,(e=e._debugTask)?e.run(performance.measure.bind(performance,o,Sl)):performance.measure(o,Sl))}function nf(e,t,a){Or(e,t,a,"Reconnect")}function lf(e,t,a,o,r){var n=V(e);if(n!==null&&Kt){var{alternate:u,actualDuration:f}=e;if(u===null||u.child!==e.child)for(var m=e.child;m!==null;m=m.sibling)f-=m.actualDuration;o=0.5>f?o?"tertiary-light":"primary-light":10>f?o?"tertiary":"primary":100>f?o?"tertiary-dark":"primary-dark":"error";var y=e.memoizedProps;f=e._debugTask,y!==null&&u!==null&&u.memoizedProps!==y?(m=[mM],y=cx(u.memoizedProps,y,m,0),1<m.length&&(y&&!xl&&(u.lanes&r)===0&&100<e.actualDuration?(xl=!0,m[0]=hM,En.color="warning",En.tooltipText=SC):(En.color=o,En.tooltipText=n),En.properties=m,Sl.start=t,Sl.end=a,f!=null?f.run(performance.measure.bind(performance,""+n,Sl)):performance.measure(""+n,Sl))):f!=null?f.run(console.timeStamp.bind(console,n,t,a,$o,void 0,o)):console.timeStamp(n,t,a,$o,void 0,o)}}function Ch(e,t,a,o){if(Kt){var r=V(e);if(r!==null){for(var n=null,u=[],f=0;f<o.length;f++){var m=o[f];n==null&&m.source!==null&&(n=m.source._debugTask),m=m.value,u.push(["Error",typeof m==="object"&&m!==null&&typeof m.message==="string"?String(m.message):String(m)])}e.key!==null&&qr("key",e.key,u,0,""),e.memoizedProps!==null&&Lh(e.memoizedProps,u,0,""),n==null&&(n=e._debugTask),e={start:t,end:a,detail:{devtools:{color:"error",track:$o,tooltipText:e.tag===13?"Hydration failed":"Error boundary caught an error",properties:u}}},n?n.run(performance.measure.bind(performance,""+r,e)):performance.measure(""+r,e)}}}function Nr(e,t,a,o,r){if(r!==null){if(Kt){var n=V(e);if(n!==null){o=[];for(var u=0;u<r.length;u++){var f=r[u].value;o.push(["Error",typeof f==="object"&&f!==null&&typeof f.message==="string"?String(f.message):String(f)])}e.key!==null&&qr("key",e.key,o,0,""),e.memoizedProps!==null&&Lh(e.memoizedProps,o,0,""),t={start:t,end:a,detail:{devtools:{color:"error",track:$o,tooltipText:"A lifecycle or effect errored",properties:o}}},(e=e._debugTask)?e.run(performance.measure.bind(performance,""+n,t)):performance.measure(""+n,t)}}}else n=V(e),n!==null&&Kt&&(r=1>o?"secondary-light":100>o?"secondary":500>o?"secondary-dark":"error",(e=e._debugTask)?e.run(console.timeStamp.bind(console,n,t,a,$o,void 0,r)):console.timeStamp(n,t,a,$o,void 0,r))}function NT(e,t,a,o){if(Kt&&!(t<=e)){var r=(a&738197653)===a?"tertiary-dark":"primary-dark";a=(a&536870912)===a?"Prepared":(a&201326741)===a?"Hydrated":"Render",o?o.run(console.timeStamp.bind(console,a,e,t,ht,mt,r)):console.timeStamp(a,e,t,ht,mt,r)}}function dx(e,t,a,o){!Kt||t<=e||(a=(a&738197653)===a?"tertiary-dark":"primary-dark",o?o.run(console.timeStamp.bind(console,"Prewarm",e,t,ht,mt,a)):console.timeStamp("Prewarm",e,t,ht,mt,a))}function fx(e,t,a,o){!Kt||t<=e||(a=(a&738197653)===a?"tertiary-dark":"primary-dark",o?o.run(console.timeStamp.bind(console,"Suspended",e,t,ht,mt,a)):console.timeStamp("Suspended",e,t,ht,mt,a))}function BT(e,t,a,o,r,n){if(Kt&&!(t<=e)){a=[];for(var u=0;u<o.length;u++){var f=o[u].value;a.push(["Recoverable Error",typeof f==="object"&&f!==null&&typeof f.message==="string"?String(f.message):String(f)])}e={start:e,end:t,detail:{devtools:{color:"primary-dark",track:ht,trackGroup:mt,tooltipText:r?"Hydration Failed":"Recovered after Error",properties:a}}},n?n.run(performance.measure.bind(performance,"Recovered",e)):performance.measure("Recovered",e)}}function wh(e,t,a,o){!Kt||t<=e||(o?o.run(console.timeStamp.bind(console,"Errored",e,t,ht,mt,"error")):console.timeStamp("Errored",e,t,ht,mt,"error"))}function zT(e,t,a,o){!Kt||t<=e||(o?o.run(console.timeStamp.bind(console,a,e,t,ht,mt,"secondary-light")):console.timeStamp(a,e,t,ht,mt,"secondary-light"))}function px(e,t,a,o,r){if(Kt&&!(t<=e)){for(var n=[],u=0;u<a.length;u++){var f=a[u].value;n.push(["Error",typeof f==="object"&&f!==null&&typeof f.message==="string"?String(f.message):String(f)])}e={start:e,end:t,detail:{devtools:{color:"error",track:ht,trackGroup:mt,tooltipText:o?"Remaining Effects Errored":"Commit Errored",properties:n}}},r?r.run(performance.measure.bind(performance,"Errored",e)):performance.measure("Errored",e)}}function Hi(e,t,a){!Kt||t<=e||(a?a.run(console.timeStamp.bind(console,"Animating",e,t,ht,mt,"secondary-dark")):console.timeStamp("Animating",e,t,ht,mt,"secondary-dark"))}function sf(){for(var e=Hu,t=Qy=Hu=0;t<e;){var a=Qo[t];Qo[t++]=null;var o=Qo[t];Qo[t++]=null;var r=Qo[t];Qo[t++]=null;var n=Qo[t];if(Qo[t++]=null,o!==null&&r!==null){var u=o.pending;u===null?r.next=r:(r.next=u.next,u.next=r),o.pending=r}n!==0&&mx(a,r,n)}}function uf(e,t,a,o){Qo[Hu++]=e,Qo[Hu++]=t,Qo[Hu++]=a,Qo[Hu++]=o,Qy|=o,e.lanes|=o,e=e.alternate,e!==null&&(e.lanes|=o)}function kh(e,t,a,o){return uf(e,t,a,o),cf(e)}function Ja(e,t){return uf(e,null,null,t),cf(e)}function mx(e,t,a){e.lanes|=a;var o=e.alternate;o!==null&&(o.lanes|=a);for(var r=!1,n=e.return;n!==null;)n.childLanes|=a,o=n.alternate,o!==null&&(o.childLanes|=a),n.tag===22&&(e=n.stateNode,e===null||e._visibility&Tc||(r=!0)),e=n,n=n.return;return e.tag===3?(n=e.stateNode,r&&t!==null&&(r=31-lo(a),e=n.hiddenUpdates,o=e[r],o===null?e[r]=[t]:o.push(t),t.lane=a|536870912),n):null}function cf(e){if(ed>MM)throw Us=ed=0,td=Rv=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.");Us>DM&&(Us=0,td=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.")),e.alternate===null&&(e.flags&4098)!==0&&M0(e);for(var t=e,a=t.return;a!==null;)t.alternate===null&&(t.flags&4098)!==0&&M0(e),t=a,a=t.return;return t.tag===3?t.stateNode:null}function cs(e){if(Ko===null)return e;var t=Ko(e);return t===void 0?e:t.current}function Ih(e){if(Ko===null)return e;var t=Ko(e);return t===void 0?e!==null&&e!==void 0&&typeof e.render==="function"&&(t=cs(e.render),e.render!==t)?(t={$$typeof:hc,render:t},e.displayName!==void 0&&(t.displayName=e.displayName),t):e:t.current}function hx(e,t){if(Ko===null)return!1;var a=e.elementType;t=t.type;var o=!1,r=typeof t==="object"&&t!==null?t.$$typeof:null;switch(e.tag){case 1:typeof t==="function"&&(o=!0);break;case 0:typeof t==="function"?o=!0:r===No&&(o=!0);break;case 11:r===hc?o=!0:r===No&&(o=!0);break;case 14:case 15:r===sp?o=!0:r===No&&(o=!0);break;default:return!1}return o&&(e=Ko(a),e!==void 0&&e===Ko(t))?!0:!1}function gx(e){Ko!==null&&typeof WeakSet==="function"&&(Fu===null&&(Fu=new WeakSet),Fu.add(e))}function yx(e,t,a){do{var o=e,r=o.alternate,n=o.child,u=o.sibling,f=o.tag;o=o.type;var m=null;switch(f){case 0:case 15:case 1:m=o;break;case 11:m=o.render}if(Ko===null)throw Error("Expected resolveFamily to be set during hot reload.");var y=!1;if(o=!1,m!==null&&(m=Ko(m),m!==void 0&&(a.has(m)?o=!0:t.has(m)&&(f===1?o=!0:y=!0))),Fu!==null&&(Fu.has(e)||r!==null&&Fu.has(r))&&(o=!0),o&&(e._debugNeedsRemount=!0),o||y)r=Ja(e,2),r!==null&&ia(r,e,2);if(n===null||o||yx(n,t,a),u===null)break;e=u}while(1)}function UT(e,t,a,o){this.tag=e,this.key=a,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=o,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,LC||typeof Object.preventExtensions!=="function"||Object.preventExtensions(this)}function Th(e){return e=e.prototype,!(!e||!e.isReactComponent)}function wn(e,t){var a=e.alternate;switch(a===null?(a=w(e.tag,t,e.key,e.mode),a.elementType=e.elementType,a.type=e.type,a.stateNode=e.stateNode,a._debugOwner=e._debugOwner,a._debugStack=e._debugStack,a._debugTask=e._debugTask,a._debugHookTypes=e._debugHookTypes,a.alternate=e,e.alternate=a):(a.pendingProps=t,a.type=e.type,a.flags=0,a.subtreeFlags=0,a.deletions=null,a.actualDuration=-0,a.actualStartTime=-1.1),a.flags=e.flags&65011712,a.childLanes=e.childLanes,a.lanes=e.lanes,a.child=e.child,a.memoizedProps=e.memoizedProps,a.memoizedState=e.memoizedState,a.updateQueue=e.updateQueue,t=e.dependencies,a.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext,_debugThenableState:t._debugThenableState},a.sibling=e.sibling,a.index=e.index,a.ref=e.ref,a.refCleanup=e.refCleanup,a.selfBaseDuration=e.selfBaseDuration,a.treeBaseDuration=e.treeBaseDuration,a._debugInfo=e._debugInfo,a._debugNeedsRemount=e._debugNeedsRemount,a.tag){case 0:case 15:a.type=cs(e.type);break;case 1:a.type=cs(e.type);break;case 11:a.type=Ih(e.type)}return a}function vx(e,t){e.flags&=65011714;var a=e.alternate;return a===null?(e.childLanes=0,e.lanes=t,e.child=null,e.subtreeFlags=0,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null,e.selfBaseDuration=0,e.treeBaseDuration=0):(e.childLanes=a.childLanes,e.lanes=a.lanes,e.child=a.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=a.memoizedProps,e.memoizedState=a.memoizedState,e.updateQueue=a.updateQueue,e.type=a.type,t=a.dependencies,e.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext,_debugThenableState:t._debugThenableState},e.selfBaseDuration=a.selfBaseDuration,e.treeBaseDuration=a.treeBaseDuration),e}function Rh(e,t,a,o,r,n){var u=0,f=e;if(typeof e==="function")Th(e)&&(u=1),f=cs(f);else if(typeof e==="string")u=we(),u=YR(e,a,u)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case xy:return t=w(31,a,t,r),t.elementType=xy,t.lanes=n,t;case Mu:return ds(a.children,r,n,t);case lp:u=8,r|=to,r|=hr;break;case gy:return e=a,o=r,typeof e.id!=="string"&&console.error('Profiler must specify an "id" of type `string` as a prop. Received the type `%s` instead.',typeof e.id),t=w(12,e,t,o|st),t.elementType=gy,t.lanes=n,t.stateNode={effectDuration:0,passiveEffectDuration:0},t;case vy:return t=w(13,a,t,r),t.elementType=vy,t.lanes=n,t;case by:return t=w(19,a,t,r),t.elementType=by,t.lanes=n,t;default:if(typeof e==="object"&&e!==null)switch(e.$$typeof){case Kr:u=10;break e;case yy:u=9;break e;case hc:u=11,f=Ih(f);break e;case sp:u=14;break e;case No:u=16,f=null;break e}if(f="",e===void 0||typeof e==="object"&&e!==null&&Object.keys(e).length===0)f+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.";e===null?a="null":qa(e)?a="array":e!==void 0&&e.$$typeof===Qr?(a="<"+(K(e.type)||"Unknown")+" />",f=" Did you accidentally export a JSX literal instead of a component?"):a=typeof e,(u=o?G(o):null)&&(f+=`
|
|
72
72
|
|
|
73
|
-
Check the render method of \``+u+"`."),u=29,a=Error("Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) but got: "+(a+"."+f)),f=null}return t=w(u,a,t,
|
|
73
|
+
Check the render method of \``+u+"`."),u=29,a=Error("Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) but got: "+(a+"."+f)),f=null}return t=w(u,a,t,r),t.elementType=e,t.type=f,t.lanes=n,t._debugOwner=o,t}function df(e,t,a){return t=Rh(e.type,e.key,e.props,e._owner,t,a),t._debugOwner=e._owner,t._debugStack=e._debugStack,t._debugTask=e._debugTask,t}function ds(e,t,a,o){return e=w(7,e,o,t),e.lanes=a,e}function Ah(e,t,a){return e=w(6,e,null,t),e.lanes=a,e}function bx(e){var t=w(18,null,null,Ve);return t.stateNode=e,t}function Mh(e,t,a){return t=w(4,e.children!==null?e.children:[],e.key,t),t.lanes=a,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Ao(e,t){if(typeof e==="object"&&e!==null){var a=Ky.get(e);if(a!==void 0)return a;return t={value:e,source:t,stack:J(t)},Ky.set(e,t),t}return{value:e,source:t,stack:J(t)}}function kn(e,t){ol(),Gu[Vu++]=Rc,Gu[Vu++]=Lp,Lp=e,Rc=t}function xx(e,t,a){ol(),Zo[Wo++]=On,Zo[Wo++]=Nn,Zo[Wo++]=ws,ws=e;var o=On;e=Nn;var r=32-lo(o)-1;o&=~(1<<r),a+=1;var n=32-lo(t)+r;if(30<n){var u=r-r%5;n=(o&(1<<u)-1).toString(32),o>>=u,r-=u,On=1<<32-lo(t)+r|a<<r|o,Nn=n+e}else On=1<<n|a<<r|o,Nn=e}function Dh(e){ol(),e.return!==null&&(kn(e,1),xx(e,1,0))}function Eh(e){for(;e===Lp;)Lp=Gu[--Vu],Gu[Vu]=null,Rc=Gu[--Vu],Gu[Vu]=null;for(;e===ws;)ws=Zo[--Wo],Zo[Wo]=null,Nn=Zo[--Wo],Zo[Wo]=null,On=Zo[--Wo],Zo[Wo]=null}function Sx(){return ol(),ws!==null?{id:On,overflow:Nn}:null}function Lx(e,t){ol(),Zo[Wo++]=On,Zo[Wo++]=Nn,Zo[Wo++]=ws,On=t.id,Nn=t.overflow,ws=e}function ol(){vt||console.error("Expected to be hydrating. This is a bug in React. Please file an issue.")}function fs(e,t){if(e.return===null){if(Uo===null)Uo={fiber:e,children:[],serverProps:void 0,serverTail:[],distanceFromLeaf:t};else{if(Uo.fiber!==e)throw Error("Saw multiple hydration diff roots in a pass. This is a bug in React.");Uo.distanceFromLeaf>t&&(Uo.distanceFromLeaf=t)}return Uo}var a=fs(e.return,t+1).children;if(0<a.length&&a[a.length-1].fiber===e)return a=a[a.length-1],a.distanceFromLeaf>t&&(a.distanceFromLeaf=t),a;return t={fiber:e,children:[],serverProps:void 0,serverTail:[],distanceFromLeaf:t},a.push(t),t}function Cx(){vt&&console.error("We should not be hydrating here. This is a bug in React. Please file a bug.")}function ff(e,t){an||(e=fs(e,0),e.serverProps=null,t!==null&&(t=tL(t),e.serverTail.push(t)))}function rl(e){var t=1<arguments.length&&arguments[1]!==void 0?arguments[1]:!1,a="",o=Uo;throw o!==null&&(Uo=null,a=yh(o)),Fi(Ao(Error("Hydration failed because the server rendered "+(t?"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 \``+u+"`."),u=29,a=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`+a),e)),
|
|
83
|
+
https://react.dev/link/hydration-mismatch`+a),e)),Zy}function wx(e){var{stateNode:t,type:a,memoizedProps:o}=e;switch(t[Qa]=e,t[so]=o,Wg(a,o),a){case"dialog":wt("cancel",t),wt("close",t);break;case"iframe":case"object":case"embed":wt("load",t);break;case"video":case"audio":for(a=0;a<ad.length;a++)wt(ad[a],t);break;case"source":wt("error",t);break;case"img":case"image":case"link":wt("error",t),wt("load",t);break;case"details":wt("toggle",t);break;case"input":al("input",o),wt("invalid",t),Mb(t,o),Db(t,o.value,o.defaultValue,o.checked,o.defaultChecked,o.type,o.name,!0);break;case"option":Eb(t,o);break;case"select":al("select",o),wt("invalid",t),Ob(t,o);break;case"textarea":al("textarea",o),wt("invalid",t),Nb(t,o),zb(t,o.value,o.defaultValue,o.children)}a=o.children,typeof a!=="string"&&typeof a!=="number"&&typeof a!=="bigint"||t.textContent===""+a||o.suppressHydrationWarning===!0||H0(t.textContent,a)?(o.popover!=null&&(wt("beforetoggle",t),wt("toggle",t)),o.onScroll!=null&&wt("scroll",t),o.onScrollEnd!=null&&wt("scrollend",t),o.onClick!=null&&(t.onclick=Cn),t=!0):t=!1,t||rl(e,!0)}function kx(e){for(Ka=e.return;Ka;)switch(Ka.tag){case 5:case 31:case 13:Jo=!1;return;case 27:case 3:Jo=!0;return;default:Ka=Ka.return}}function mu(e){if(e!==Ka)return!1;if(!vt)return kx(e),vt=!0,!1;var t=e.tag,a;if(a=t!==3&&t!==27){if(a=t===5)a=e.type,a=!(a!=="form"&&a!=="button")||oy(e.type,e.memoizedProps);a=!a}if(a&&Zt){for(a=Zt;a;){var o=fs(e,0),r=tL(a);o.serverTail.push(r),a=r.type==="Suspense"?sy(a):Oo(a.nextSibling)}rl(e)}if(kx(e),t===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error("Expected to have a hydrated suspense instance. This error is likely caused by a bug in React. Please file an issue.");Zt=sy(e)}else if(t===31){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error("Expected to have a hydrated suspense instance. This error is likely caused by a bug in React. Please file an issue.");Zt=sy(e)}else t===27?(t=Zt,ml(e.type)?(e=_v,_v=null,Zt=e):Zt=t):Zt=Ka?Oo(e.stateNode.nextSibling):null;return!0}function ps(){Zt=Ka=null,an=vt=!1}function qh(){var e=Cl;return e!==null&&(mo===null?mo=e:mo.push.apply(mo,e),Cl=null),e}function Fi(e){Cl===null?Cl=[e]:Cl.push(e)}function Oh(){var e=Uo;if(e!==null){Uo=null;for(var t=yh(e);0<e.children.length;)e=e.children[0];Y(e.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,58 +90,58 @@ https://react.dev/link/hydration-mismatch`+a),e)),Xy}function gx(e){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",t)})}}function
|
|
93
|
+
%s%s`,"https://react.dev/link/hydration-mismatch",t)})}}function pf(){ju=Cp=null,Xu=!1}function nl(e,t,a){Ce(Wy,t._currentValue,e),t._currentValue=a,Ce(Jy,t._currentRenderer,e),t._currentRenderer!==void 0&&t._currentRenderer!==null&&t._currentRenderer!==wC&&console.error("Detected multiple renderers concurrently rendering the same context provider. This is currently unsupported."),t._currentRenderer=wC}function In(e,t){e._currentValue=Wy.current;var a=Jy.current;ve(Jy,t),e._currentRenderer=a,ve(Wy,t)}function Nh(e,t,a){for(;e!==null;){var o=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,o!==null&&(o.childLanes|=t)):o!==null&&(o.childLanes&t)!==t&&(o.childLanes|=t),e===a)break;e=e.return}e!==a&&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 Bh(e,t,a,o){var r=e.child;r!==null&&(r.return=e);for(;r!==null;){var n=r.dependencies;if(n!==null){var u=r.child;n=n.firstContext;e:for(;n!==null;){var f=n;n=r;for(var m=0;m<t.length;m++)if(f.context===t[m]){n.lanes|=a,f=n.alternate,f!==null&&(f.lanes|=a),Nh(n.return,a,e),o||(u=null);break e}n=f.next}}else if(r.tag===18){if(u=r.return,u===null)throw Error("We just came from a parent so we must have had a parent. This is a bug in React.");u.lanes|=a,n=u.alternate,n!==null&&(n.lanes|=a),Nh(u,a,e),u=null}else u=r.child;if(u!==null)u.return=r;else for(u=r;u!==null;){if(u===e){u=null;break}if(r=u.sibling,r!==null){r.return=u.return,u=r;break}u=u.return}r=u}}function hu(e,t,a,o){e=null;for(var r=t,n=!1;r!==null;){if(!n){if((r.flags&524288)!==0)n=!0;else if((r.flags&262144)!==0)break}if(r.tag===10){var u=r.alternate;if(u===null)throw Error("Should have a current fiber. This is a bug in React.");if(u=u.memoizedProps,u!==null){var f=r.type;io(r.pendingProps.value,u.value)||(e!==null?e.push(f):e=[f])}}else if(r===up.current){if(u=r.alternate,u===null)throw Error("Should have a current fiber. This is a bug in React.");u.memoizedState.memoizedState!==r.memoizedState.memoizedState&&(e!==null?e.push(sd):e=[sd])}r=r.return}e!==null&&Bh(t,e,a,o),t.flags|=262144}function mf(e){for(e=e.firstContext;e!==null;){if(!io(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function ms(e){Cp=e,ju=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function ta(e){return Xu&&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()."),Ix(Cp,e)}function hf(e,t){return Cp===null&&ms(e),Ix(e,t)}function Ix(e,t){var a=t._currentValue;if(t={context:t,memoizedValue:a,next:null},ju===null){if(e===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().");ju=t,e.dependencies={lanes:0,firstContext:t,_debugThenableState:null},e.flags|=524288}else ju=ju.next=t;return a}function zh(){return{controller:new vM,data:new Map,refCount:0}}function hs(e){e.controller.signal.aborted&&console.warn("A cache instance was retained after it was already freed. This likely indicates a bug in React."),e.refCount++}function Gi(e){e.refCount--,0>e.refCount&&console.warn("A cache instance was released after it was already freed. This likely indicates a bug in React."),e.refCount===0&&bM(xM,function(){e.controller.abort()})}function Br(e,t,a){if((e&127)!==0)0>on&&(on=wa(),Mc=wp(t),ev=t,a!=null&&(tv=V(a)),(It&(Na|Ho))!==Ha&&(ca=!0,Il=Ac),e=cc(),t=ic(),e!==Yu||t!==Dc?Yu=-1.1:t!==null&&(Il=Ac),Is=e,Dc=t);else if((e&4194048)!==0&&0>er&&(er=wa(),Ec=wp(t),kC=t,a!=null&&(IC=V(a)),0>Un)){if(e=cc(),t=ic(),e!==Rl||t!==Ts)Rl=-1.1;Tl=e,Ts=t}}function PT(e){if(0>on){on=wa(),Mc=e._debugTask!=null?e._debugTask:null,(It&(Na|Ho))!==Ha&&(Il=Ac);var t=cc(),a=ic();t!==Yu||a!==Dc?Yu=-1.1:a!==null&&(Il=Ac),Is=t,Dc=a}if(0>er&&(er=wa(),Ec=e._debugTask!=null?e._debugTask:null,0>Un)){if(e=cc(),t=ic(),e!==Rl||t!==Ts)Rl=-1.1;Tl=e,Ts=t}}function Tn(){var e=ks;return ks=0,e}function gf(e){var t=ks;return ks=e,t}function Vi(e){var t=ks;return ks+=e,t}function yf(){Pe=Ne=-1.1}function Mo(){var e=Ne;return Ne=-1.1,e}function Do(e){0<=e&&(Ne=e)}function zr(){var e=na;return na=-0,e}function Ur(e){0<=e&&(na=e)}function Pr(){var e=aa;return aa=null,e}function _r(){var e=ca;return ca=!1,e}function Uh(e){co=wa(),0>e.actualStartTime&&(e.actualStartTime=co)}function Ph(e){if(0<=co){var t=wa()-co;e.actualDuration+=t,e.selfBaseDuration=t,co=-1}}function Tx(e){if(0<=co){var t=wa()-co;e.actualDuration+=t,co=-1}}function Hr(){if(0<=co){var e=wa(),t=e-co;co=-1,ks+=t,na+=t,Pe=e}}function Rx(e){aa===null&&(aa=[]),aa.push(e),zn===null&&(zn=[]),zn.push(e)}function Fr(){co=wa(),0>Ne&&(Ne=co)}function ji(e){for(var t=e.child;t;)e.actualDuration+=t.actualDuration,t=t.sibling}function _T(e,t){if(Oc===null){var a=Oc=[];ov=0,Rs=$g(),$u={status:"pending",value:void 0,then:function(o){a.push(o)}}}return ov++,t.then(Ax,Ax),t}function Ax(){if(--ov===0&&(-1<er||(Un=-1.1),Oc!==null)){$u!==null&&($u.status="fulfilled");var e=Oc;Oc=null,Rs=0,$u=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function HT(e,t){var a=[],o={status:"pending",value:null,reason:null,then:function(r){a.push(r)}};return e.then(function(){o.status="fulfilled",o.value=t;for(var r=0;r<a.length;r++)(0,a[r])(t)},function(r){o.status="rejected",o.reason=r;for(r=0;r<a.length;r++)(0,a[r])(void 0)}),o}function _h(){var e=As.current;return e!==null?e:Xt.pooledCache}function vf(e,t){t===null?Ce(As,As.current,e):Ce(As,t.pool,e)}function Mx(){var e=_h();return e===null?null:{parent:Ca._currentValue,pool:e}}function Dx(){return{didWarnAboutUncachedPromise:!1,thenables:[]}}function Ex(e){return e=e.status,e==="fulfilled"||e==="rejected"}function qx(e,t,a){j.actQueue!==null&&(j.didUsePromise=!0);var o=e.thenables;if(a=o[a],a===void 0?o.push(t):a!==t&&(e.didWarnAboutUncachedPromise||(e.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.")),t.then(Cn,Cn),t=a),t._debugInfo===void 0){e=performance.now(),o=t.displayName;var r={name:typeof o==="string"?o:"Promise",start:e,end:e,value:t};t._debugInfo=[{awaited:r}],t.status!=="fulfilled"&&t.status!=="rejected"&&(e=function(){r.end=performance.now()},t.then(e,e))}switch(t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,Nx(e),e;default:if(typeof t.status==="string")t.then(Cn,Cn);else{if(e=Xt,e!==null&&100<e.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.");e=t,e.status="pending",e.then(function(n){if(t.status==="pending"){var u=t;u.status="fulfilled",u.value=n}},function(n){if(t.status==="pending"){var u=t;u.status="rejected",u.reason=n}})}switch(t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,Nx(e),e}throw Ds=t,Hc=!0,Qu}}function ll(e){try{return wM(e)}catch(t){if(t!==null&&typeof t==="object"&&typeof t.then==="function")throw Ds=t,Hc=!0,Qu;throw t}}function Ox(){if(Ds===null)throw Error("Expected a suspended thenable. This is a bug in React. Please file an issue.");var e=Ds;return Ds=null,Hc=!1,e}function Nx(e){if(e===Qu||e===Ep)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 Xa(e){var t=ut;return e!=null&&(ut=t===null?e:t.concat(e)),t}function Hh(){var e=ut;if(e!=null){for(var t=e.length-1;0<=t;t--)if(e[t].name!=null){var a=e[t].debugTask;if(a!=null)return a}}return null}function bf(e,t,a){for(var o=Object.keys(e.props),r=0;r<o.length;r++){var n=o[r];if(n!=="children"&&n!=="key"){t===null&&(t=df(e,a.mode,0),t._debugInfo=ut,t.return=a),Y(t,function(u){console.error("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",u)},n);break}}}function xf(e){var t=Fc;return Fc+=1,Ku===null&&(Ku=Dx()),qx(Ku,e,t)}function Xi(e,t){t=t.props.ref,e.ref=t!==void 0?t:null}function Bx(e,t){if(t.$$typeof===oA)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 e=Object.prototype.toString.call(t),Error("Objects are not valid as a React child (found: "+(e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)+"). If you meant to render a collection of children, use an array instead.")}function
|
|
96
|
+
- A compiler tries to "inline" JSX instead of using the runtime.`);throw e=Object.prototype.toString.call(t),Error("Objects are not valid as a React child (found: "+(e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)+"). If you meant to render a collection of children, use an array instead.")}function Sf(e,t){var a=Hh();a!==null?a.run(Bx.bind(null,e,t)):Bx(e,t)}function zx(e,t){var a=V(e)||"Component";XC[a]||(XC[a]=!0,t=t.displayName||t.name||"Component",e.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)`,t,t,t):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>`,t,t,a,t,a))}function
|
|
98
|
+
<%s>{%s}</%s>`,t,t,a,t,a))}function Lf(e,t){var a=Hh();a!==null?a.run(zx.bind(null,e,t)):zx(e,t)}function Ux(e,t){var a=V(e)||"Component";YC[a]||(YC[a]=!0,t=String(t),e.tag===3?console.error(`Symbols are not valid as a React child.
|
|
99
99
|
root.render(%s)`,t):console.error(`Symbols are not valid as a React child.
|
|
100
|
-
<%s>%s</%s>`,a,t,a))}function Lf(e,t){var a=Bh();a!==null?a.run(Mx.bind(null,e,t)):Mx(e,t)}function Dx(e){function t(I,A){if(e){var E=I.deletions;E===null?(I.deletions=[A],I.flags|=16):E.push(A)}}function a(I,A){if(!e)return null;for(;A!==null;)t(I,A),A=A.sibling;return null}function o(I){for(var A=new Map;I!==null;)I.key!==null?A.set(I.key,I):A.set(I.index,I),I=I.sibling;return A}function n(I,A){return I=wr(I,A),I.index=0,I.sibling=null,I}function r(I,A,E){if(I.index=E,!e)return I.flags|=1048576,A;if(E=I.alternate,E!==null)return E=E.index,E<A?(I.flags|=67108866,A):E;return I.flags|=67108866,A}function u(I){return e&&I.alternate===null&&(I.flags|=67108866),I}function f(I,A,E,K){if(A===null||A.tag!==6)return A=wh(E,I.mode,K),A.return=I,A._debugOwner=I,A._debugTask=I._debugTask,A._debugInfo=ut,A;return A=n(A,E),A.return=I,A._debugInfo=ut,A}function m(I,A,E,K){var me=E.type;if(me===Mu)return A=O(I,A,E.props.children,K,E.key),vf(E,A,I),A;if(A!==null&&(A.elementType===me||sx(A,E)||typeof me==="object"&&me!==null&&me.$$typeof===No&&ll(me)===A.type))return A=n(A,E.props),ji(A,E),A.return=I,A._debugOwner=E._owner,A._debugInfo=ut,A;return A=cf(E,I.mode,K),ji(A,E),A.return=I,A._debugInfo=ut,A}function y(I,A,E,K){if(A===null||A.tag!==4||A.stateNode.containerInfo!==E.containerInfo||A.stateNode.implementation!==E.implementation)return A=kh(E,I.mode,K),A.return=I,A._debugInfo=ut,A;return A=n(A,E.children||[]),A.return=I,A._debugInfo=ut,A}function O(I,A,E,K,me){if(A===null||A.tag!==7)return A=ds(E,I.mode,K,me),A.return=I,A._debugOwner=I,A._debugTask=I._debugTask,A._debugInfo=ut,A;return A=n(A,E),A.return=I,A._debugInfo=ut,A}function q(I,A,E){if(typeof A==="string"&&A!==""||typeof A==="number"||typeof A==="bigint")return A=wh(""+A,I.mode,E),A.return=I,A._debugOwner=I,A._debugTask=I._debugTask,A._debugInfo=ut,A;if(typeof A==="object"&&A!==null){switch(A.$$typeof){case Kn:return E=cf(A,I.mode,E),ji(E,A),E.return=I,I=Xa(A._debugInfo),E._debugInfo=ut,ut=I,E;case Au:return A=kh(A,I.mode,E),A.return=I,A._debugInfo=ut,A;case No:var K=Xa(A._debugInfo);return A=ll(A),I=q(I,A,E),ut=K,I}if(Ea(A)||te(A))return E=ds(A,I.mode,E,null),E.return=I,E._debugOwner=I,E._debugTask=I._debugTask,I=Xa(A._debugInfo),E._debugInfo=ut,ut=I,E;if(typeof A.then==="function")return K=Xa(A._debugInfo),I=q(I,bf(A),E),ut=K,I;if(A.$$typeof===Zn)return q(I,mf(I,A),E);xf(I,A)}return typeof A==="function"&&Sf(I,A),typeof A==="symbol"&&Lf(I,A),null}function R(I,A,E,K){var me=A!==null?A.key:null;if(typeof E==="string"&&E!==""||typeof E==="number"||typeof E==="bigint")return me!==null?null:f(I,A,""+E,K);if(typeof E==="object"&&E!==null){switch(E.$$typeof){case Kn:return E.key===me?(me=Xa(E._debugInfo),I=m(I,A,E,K),ut=me,I):null;case Au:return E.key===me?y(I,A,E,K):null;case No:return me=Xa(E._debugInfo),E=ll(E),I=R(I,A,E,K),ut=me,I}if(Ea(E)||te(E)){if(me!==null)return null;return me=Xa(E._debugInfo),I=O(I,A,E,K,null),ut=me,I}if(typeof E.then==="function")return me=Xa(E._debugInfo),I=R(I,A,bf(E),K),ut=me,I;if(E.$$typeof===Zn)return R(I,A,mf(I,E),K);xf(I,E)}return typeof E==="function"&&Sf(I,E),typeof E==="symbol"&&Lf(I,E),null}function _(I,A,E,K,me){if(typeof K==="string"&&K!==""||typeof K==="number"||typeof K==="bigint")return I=I.get(E)||null,f(A,I,""+K,me);if(typeof K==="object"&&K!==null){switch(K.$$typeof){case Kn:return E=I.get(K.key===null?E:K.key)||null,I=Xa(K._debugInfo),A=m(A,E,K,me),ut=I,A;case Au:return I=I.get(K.key===null?E:K.key)||null,y(A,I,K,me);case No:var Ze=Xa(K._debugInfo);return K=ll(K),A=_(I,A,E,K,me),ut=Ze,A}if(Ea(K)||te(K))return E=I.get(E)||null,I=Xa(K._debugInfo),A=O(A,E,K,me,null),ut=I,A;if(typeof K.then==="function")return Ze=Xa(K._debugInfo),A=_(I,A,E,bf(K),me),ut=Ze,A;if(K.$$typeof===Zn)return _(I,A,E,mf(A,K),me);xf(A,K)}return typeof K==="function"&&Sf(A,K),typeof K==="symbol"&&Lf(A,K),null}function ie(I,A,E,K){if(typeof E!=="object"||E===null)return K;switch(E.$$typeof){case Kn:case Au:h(I,A,E);var me=E.key;if(typeof me!=="string")break;if(K===null){K=new Set,K.add(me);break}if(!K.has(me)){K.add(me);break}j(A,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.",me)});break;case No:E=ll(E),ie(I,A,E,K)}return K}function ge(I,A,E,K){for(var me=null,Ze=null,Oe=null,Te=A,nt=A=0,Wt=null;Te!==null&&nt<E.length;nt++){Te.index>nt?(Wt=Te,Te=null):Wt=Te.sibling;var ba=R(I,Te,E[nt],K);if(ba===null){Te===null&&(Te=Wt);break}me=ie(I,ba,E[nt],me),e&&Te&&ba.alternate===null&&t(I,Te),A=r(ba,A,nt),Oe===null?Ze=ba:Oe.sibling=ba,Oe=ba,Te=Wt}if(nt===E.length)return a(I,Te),vt&&kr(I,nt),Ze;if(Te===null){for(;nt<E.length;nt++)Te=q(I,E[nt],K),Te!==null&&(me=ie(I,Te,E[nt],me),A=r(Te,A,nt),Oe===null?Ze=Te:Oe.sibling=Te,Oe=Te);return vt&&kr(I,nt),Ze}for(Te=o(Te);nt<E.length;nt++)Wt=_(Te,I,nt,E[nt],K),Wt!==null&&(me=ie(I,Wt,E[nt],me),e&&Wt.alternate!==null&&Te.delete(Wt.key===null?nt:Wt.key),A=r(Wt,A,nt),Oe===null?Ze=Wt:Oe.sibling=Wt,Oe=Wt);return e&&Te.forEach(function(Yr){return t(I,Yr)}),vt&&kr(I,nt),Ze}function Qt(I,A,E,K){if(E==null)throw Error("An iterable object provided no iterator.");for(var me=null,Ze=null,Oe=A,Te=A=0,nt=null,Wt=null,ba=E.next();Oe!==null&&!ba.done;Te++,ba=E.next()){Oe.index>Te?(nt=Oe,Oe=null):nt=Oe.sibling;var Yr=R(I,Oe,ba.value,K);if(Yr===null){Oe===null&&(Oe=nt);break}Wt=ie(I,Yr,ba.value,Wt),e&&Oe&&Yr.alternate===null&&t(I,Oe),A=r(Yr,A,Te),Ze===null?me=Yr:Ze.sibling=Yr,Ze=Yr,Oe=nt}if(ba.done)return a(I,Oe),vt&&kr(I,Te),me;if(Oe===null){for(;!ba.done;Te++,ba=E.next())Oe=q(I,ba.value,K),Oe!==null&&(Wt=ie(I,Oe,ba.value,Wt),A=r(Oe,A,Te),Ze===null?me=Oe:Ze.sibling=Oe,Ze=Oe);return vt&&kr(I,Te),me}for(Oe=o(Oe);!ba.done;Te++,ba=E.next())nt=_(Oe,I,Te,ba.value,K),nt!==null&&(Wt=ie(I,nt,ba.value,Wt),e&&nt.alternate!==null&&Oe.delete(nt.key===null?Te:nt.key),A=r(nt,A,Te),Ze===null?me=nt:Ze.sibling=nt,Ze=nt);return e&&Oe.forEach(function(UM){return t(I,UM)}),vt&&kr(I,Te),me}function kt(I,A,E,K){if(typeof E==="object"&&E!==null&&E.type===Mu&&E.key===null&&(vf(E,null,I),E=E.props.children),typeof E==="object"&&E!==null){switch(E.$$typeof){case Kn:var me=Xa(E._debugInfo);e:{for(var Ze=E.key;A!==null;){if(A.key===Ze){if(Ze=E.type,Ze===Mu){if(A.tag===7){a(I,A.sibling),K=n(A,E.props.children),K.return=I,K._debugOwner=E._owner,K._debugInfo=ut,vf(E,K,I),I=K;break e}}else if(A.elementType===Ze||sx(A,E)||typeof Ze==="object"&&Ze!==null&&Ze.$$typeof===No&&ll(Ze)===A.type){a(I,A.sibling),K=n(A,E.props),ji(K,E),K.return=I,K._debugOwner=E._owner,K._debugInfo=ut,I=K;break e}a(I,A);break}else t(I,A);A=A.sibling}E.type===Mu?(K=ds(E.props.children,I.mode,K,E.key),K.return=I,K._debugOwner=I,K._debugTask=I._debugTask,K._debugInfo=ut,vf(E,K,I),I=K):(K=cf(E,I.mode,K),ji(K,E),K.return=I,K._debugInfo=ut,I=K)}return I=u(I),ut=me,I;case Au:e:{me=E;for(E=me.key;A!==null;){if(A.key===E)if(A.tag===4&&A.stateNode.containerInfo===me.containerInfo&&A.stateNode.implementation===me.implementation){a(I,A.sibling),K=n(A,me.children||[]),K.return=I,I=K;break e}else{a(I,A);break}else t(I,A);A=A.sibling}K=kh(me,I.mode,K),K.return=I,I=K}return u(I);case No:return me=Xa(E._debugInfo),E=ll(E),I=kt(I,A,E,K),ut=me,I}if(Ea(E))return me=Xa(E._debugInfo),I=ge(I,A,E,K),ut=me,I;if(te(E)){if(me=Xa(E._debugInfo),Ze=te(E),typeof Ze!=="function")throw Error("An object is not an iterable. This error is likely caused by a bug in React. Please file an issue.");var Oe=Ze.call(E);if(Oe===E){if(I.tag!==0||Object.prototype.toString.call(I.type)!=="[object GeneratorFunction]"||Object.prototype.toString.call(Oe)!=="[object Generator]")BC||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."),BC=!0}else E.entries!==Ze||av||(console.error("Using Maps as children is not supported. Use an array of keyed ReactElements instead."),av=!0);return I=Qt(I,A,Oe,K),ut=me,I}if(typeof E.then==="function")return me=Xa(E._debugInfo),I=kt(I,A,bf(E),K),ut=me,I;if(E.$$typeof===Zn)return kt(I,A,mf(I,E),K);xf(I,E)}if(typeof E==="string"&&E!==""||typeof E==="number"||typeof E==="bigint")return me=""+E,A!==null&&A.tag===6?(a(I,A.sibling),K=n(A,me),K.return=I,I=K):(a(I,A),K=wh(me,I.mode,K),K.return=I,K._debugOwner=I,K._debugTask=I._debugTask,K._debugInfo=ut,I=K),u(I);return typeof E==="function"&&Sf(I,E),typeof E==="symbol"&&Lf(I,E),a(I,A)}return function(I,A,E,K){var me=ut;ut=null;try{Hc=0;var Ze=kt(I,A,E,K);return Ku=null,Ze}catch(Wt){if(Wt===Qu||Wt===Dp)throw Wt;var Oe=w(29,Wt,null,I.mode);Oe.lanes=K,Oe.return=I;var Te=Oe._debugInfo=ut;if(Oe._debugOwner=I._debugOwner,Oe._debugTask=I._debugTask,Te!=null){for(var nt=Te.length-1;0<=nt;nt--)if(typeof Te[nt].stack==="string"){Oe._debugOwner=Te[nt],Oe._debugTask=Te[nt].debugTask;break}}return Oe}finally{ut=me}}}function Ex(e,t){var a=Ea(e);return e=!a&&typeof te(e)==="function",a||e?(a=a?"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>",a,t,a),!1):!0}function zh(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Uh(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function sl(e){return{lane:e,tag:HC,payload:null,callback:null,next:null}}function ul(e,t,a){var o=e.updateQueue;if(o===null)return null;if(o=o.shared,nv===o&&!VC){var n=V(e);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>`,a,t,a))}function Cf(e,t){var a=Hh();a!==null?a.run(Ux.bind(null,e,t)):Ux(e,t)}function Px(e){function t(I,A){if(e){var D=I.deletions;D===null?(I.deletions=[A],I.flags|=16):D.push(A)}}function a(I,A){if(!e)return null;for(;A!==null;)t(I,A),A=A.sibling;return null}function o(I){for(var A=new Map;I!==null;)I.key!==null?A.set(I.key,I):A.set(I.index,I),I=I.sibling;return A}function r(I,A){return I=wn(I,A),I.index=0,I.sibling=null,I}function n(I,A,D){if(I.index=D,!e)return I.flags|=1048576,A;if(D=I.alternate,D!==null)return D=D.index,D<A?(I.flags|=67108866,A):D;return I.flags|=67108866,A}function u(I){return e&&I.alternate===null&&(I.flags|=67108866),I}function f(I,A,D,Z){if(A===null||A.tag!==6)return A=Ah(D,I.mode,Z),A.return=I,A._debugOwner=I,A._debugTask=I._debugTask,A._debugInfo=ut,A;return A=r(A,D),A.return=I,A._debugInfo=ut,A}function m(I,A,D,Z){var pe=D.type;if(pe===Mu)return A=q(I,A,D.props.children,Z,D.key),bf(D,A,I),A;if(A!==null&&(A.elementType===pe||hx(A,D)||typeof pe==="object"&&pe!==null&&pe.$$typeof===No&&ll(pe)===A.type))return A=r(A,D.props),Xi(A,D),A.return=I,A._debugOwner=D._owner,A._debugInfo=ut,A;return A=df(D,I.mode,Z),Xi(A,D),A.return=I,A._debugInfo=ut,A}function y(I,A,D,Z){if(A===null||A.tag!==4||A.stateNode.containerInfo!==D.containerInfo||A.stateNode.implementation!==D.implementation)return A=Mh(D,I.mode,Z),A.return=I,A._debugInfo=ut,A;return A=r(A,D.children||[]),A.return=I,A._debugInfo=ut,A}function q(I,A,D,Z,pe){if(A===null||A.tag!==7)return A=ds(D,I.mode,Z,pe),A.return=I,A._debugOwner=I,A._debugTask=I._debugTask,A._debugInfo=ut,A;return A=r(A,D),A.return=I,A._debugInfo=ut,A}function O(I,A,D){if(typeof A==="string"&&A!==""||typeof A==="number"||typeof A==="bigint")return A=Ah(""+A,I.mode,D),A.return=I,A._debugOwner=I,A._debugTask=I._debugTask,A._debugInfo=ut,A;if(typeof A==="object"&&A!==null){switch(A.$$typeof){case Qr:return D=df(A,I.mode,D),Xi(D,A),D.return=I,I=Xa(A._debugInfo),D._debugInfo=ut,ut=I,D;case Au:return A=Mh(A,I.mode,D),A.return=I,A._debugInfo=ut,A;case No:var Z=Xa(A._debugInfo);return A=ll(A),I=O(I,A,D),ut=Z,I}if(qa(A)||re(A))return D=ds(A,I.mode,D,null),D.return=I,D._debugOwner=I,D._debugTask=I._debugTask,I=Xa(A._debugInfo),D._debugInfo=ut,ut=I,D;if(typeof A.then==="function")return Z=Xa(A._debugInfo),I=O(I,xf(A),D),ut=Z,I;if(A.$$typeof===Kr)return O(I,hf(I,A),D);Sf(I,A)}return typeof A==="function"&&Lf(I,A),typeof A==="symbol"&&Cf(I,A),null}function R(I,A,D,Z){var pe=A!==null?A.key:null;if(typeof D==="string"&&D!==""||typeof D==="number"||typeof D==="bigint")return pe!==null?null:f(I,A,""+D,Z);if(typeof D==="object"&&D!==null){switch(D.$$typeof){case Qr:return D.key===pe?(pe=Xa(D._debugInfo),I=m(I,A,D,Z),ut=pe,I):null;case Au:return D.key===pe?y(I,A,D,Z):null;case No:return pe=Xa(D._debugInfo),D=ll(D),I=R(I,A,D,Z),ut=pe,I}if(qa(D)||re(D)){if(pe!==null)return null;return pe=Xa(D._debugInfo),I=q(I,A,D,Z,null),ut=pe,I}if(typeof D.then==="function")return pe=Xa(D._debugInfo),I=R(I,A,xf(D),Z),ut=pe,I;if(D.$$typeof===Kr)return R(I,A,hf(I,D),Z);Sf(I,D)}return typeof D==="function"&&Lf(I,D),typeof D==="symbol"&&Cf(I,D),null}function _(I,A,D,Z,pe){if(typeof Z==="string"&&Z!==""||typeof Z==="number"||typeof Z==="bigint")return I=I.get(D)||null,f(A,I,""+Z,pe);if(typeof Z==="object"&&Z!==null){switch(Z.$$typeof){case Qr:return D=I.get(Z.key===null?D:Z.key)||null,I=Xa(Z._debugInfo),A=m(A,D,Z,pe),ut=I,A;case Au:return I=I.get(Z.key===null?D:Z.key)||null,y(A,I,Z,pe);case No:var Ze=Xa(Z._debugInfo);return Z=ll(Z),A=_(I,A,D,Z,pe),ut=Ze,A}if(qa(Z)||re(Z))return D=I.get(D)||null,I=Xa(Z._debugInfo),A=q(A,D,Z,pe,null),ut=I,A;if(typeof Z.then==="function")return Ze=Xa(Z._debugInfo),A=_(I,A,D,xf(Z),pe),ut=Ze,A;if(Z.$$typeof===Kr)return _(I,A,D,hf(A,Z),pe);Sf(A,Z)}return typeof Z==="function"&&Lf(A,Z),typeof Z==="symbol"&&Cf(A,Z),null}function ce(I,A,D,Z){if(typeof D!=="object"||D===null)return Z;switch(D.$$typeof){case Qr:case Au:h(I,A,D);var pe=D.key;if(typeof pe!=="string")break;if(Z===null){Z=new Set,Z.add(pe);break}if(!Z.has(pe)){Z.add(pe);break}Y(A,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.",pe)});break;case No:D=ll(D),ce(I,A,D,Z)}return Z}function ge(I,A,D,Z){for(var pe=null,Ze=null,qe=null,Re=A,rt=A=0,Wt=null;Re!==null&&rt<D.length;rt++){Re.index>rt?(Wt=Re,Re=null):Wt=Re.sibling;var xa=R(I,Re,D[rt],Z);if(xa===null){Re===null&&(Re=Wt);break}pe=ce(I,xa,D[rt],pe),e&&Re&&xa.alternate===null&&t(I,Re),A=n(xa,A,rt),qe===null?Ze=xa:qe.sibling=xa,qe=xa,Re=Wt}if(rt===D.length)return a(I,Re),vt&&kn(I,rt),Ze;if(Re===null){for(;rt<D.length;rt++)Re=O(I,D[rt],Z),Re!==null&&(pe=ce(I,Re,D[rt],pe),A=n(Re,A,rt),qe===null?Ze=Re:qe.sibling=Re,qe=Re);return vt&&kn(I,rt),Ze}for(Re=o(Re);rt<D.length;rt++)Wt=_(Re,I,rt,D[rt],Z),Wt!==null&&(pe=ce(I,Wt,D[rt],pe),e&&Wt.alternate!==null&&Re.delete(Wt.key===null?rt:Wt.key),A=n(Wt,A,rt),qe===null?Ze=Wt:qe.sibling=Wt,qe=Wt);return e&&Re.forEach(function(Yn){return t(I,Yn)}),vt&&kn(I,rt),Ze}function Qt(I,A,D,Z){if(D==null)throw Error("An iterable object provided no iterator.");for(var pe=null,Ze=null,qe=A,Re=A=0,rt=null,Wt=null,xa=D.next();qe!==null&&!xa.done;Re++,xa=D.next()){qe.index>Re?(rt=qe,qe=null):rt=qe.sibling;var Yn=R(I,qe,xa.value,Z);if(Yn===null){qe===null&&(qe=rt);break}Wt=ce(I,Yn,xa.value,Wt),e&&qe&&Yn.alternate===null&&t(I,qe),A=n(Yn,A,Re),Ze===null?pe=Yn:Ze.sibling=Yn,Ze=Yn,qe=rt}if(xa.done)return a(I,qe),vt&&kn(I,Re),pe;if(qe===null){for(;!xa.done;Re++,xa=D.next())qe=O(I,xa.value,Z),qe!==null&&(Wt=ce(I,qe,xa.value,Wt),A=n(qe,A,Re),Ze===null?pe=qe:Ze.sibling=qe,Ze=qe);return vt&&kn(I,Re),pe}for(qe=o(qe);!xa.done;Re++,xa=D.next())rt=_(qe,I,Re,xa.value,Z),rt!==null&&(Wt=ce(I,rt,xa.value,Wt),e&&rt.alternate!==null&&qe.delete(rt.key===null?Re:rt.key),A=n(rt,A,Re),Ze===null?pe=rt:Ze.sibling=rt,Ze=rt);return e&&qe.forEach(function($M){return t(I,$M)}),vt&&kn(I,Re),pe}function kt(I,A,D,Z){if(typeof D==="object"&&D!==null&&D.type===Mu&&D.key===null&&(bf(D,null,I),D=D.props.children),typeof D==="object"&&D!==null){switch(D.$$typeof){case Qr:var pe=Xa(D._debugInfo);e:{for(var Ze=D.key;A!==null;){if(A.key===Ze){if(Ze=D.type,Ze===Mu){if(A.tag===7){a(I,A.sibling),Z=r(A,D.props.children),Z.return=I,Z._debugOwner=D._owner,Z._debugInfo=ut,bf(D,Z,I),I=Z;break e}}else if(A.elementType===Ze||hx(A,D)||typeof Ze==="object"&&Ze!==null&&Ze.$$typeof===No&&ll(Ze)===A.type){a(I,A.sibling),Z=r(A,D.props),Xi(Z,D),Z.return=I,Z._debugOwner=D._owner,Z._debugInfo=ut,I=Z;break e}a(I,A);break}else t(I,A);A=A.sibling}D.type===Mu?(Z=ds(D.props.children,I.mode,Z,D.key),Z.return=I,Z._debugOwner=I,Z._debugTask=I._debugTask,Z._debugInfo=ut,bf(D,Z,I),I=Z):(Z=df(D,I.mode,Z),Xi(Z,D),Z.return=I,Z._debugInfo=ut,I=Z)}return I=u(I),ut=pe,I;case Au:e:{pe=D;for(D=pe.key;A!==null;){if(A.key===D)if(A.tag===4&&A.stateNode.containerInfo===pe.containerInfo&&A.stateNode.implementation===pe.implementation){a(I,A.sibling),Z=r(A,pe.children||[]),Z.return=I,I=Z;break e}else{a(I,A);break}else t(I,A);A=A.sibling}Z=Mh(pe,I.mode,Z),Z.return=I,I=Z}return u(I);case No:return pe=Xa(D._debugInfo),D=ll(D),I=kt(I,A,D,Z),ut=pe,I}if(qa(D))return pe=Xa(D._debugInfo),I=ge(I,A,D,Z),ut=pe,I;if(re(D)){if(pe=Xa(D._debugInfo),Ze=re(D),typeof Ze!=="function")throw Error("An object is not an iterable. This error is likely caused by a bug in React. Please file an issue.");var qe=Ze.call(D);if(qe===D){if(I.tag!==0||Object.prototype.toString.call(I.type)!=="[object GeneratorFunction]"||Object.prototype.toString.call(qe)!=="[object Generator]")VC||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."),VC=!0}else D.entries!==Ze||sv||(console.error("Using Maps as children is not supported. Use an array of keyed ReactElements instead."),sv=!0);return I=Qt(I,A,qe,Z),ut=pe,I}if(typeof D.then==="function")return pe=Xa(D._debugInfo),I=kt(I,A,xf(D),Z),ut=pe,I;if(D.$$typeof===Kr)return kt(I,A,hf(I,D),Z);Sf(I,D)}if(typeof D==="string"&&D!==""||typeof D==="number"||typeof D==="bigint")return pe=""+D,A!==null&&A.tag===6?(a(I,A.sibling),Z=r(A,pe),Z.return=I,I=Z):(a(I,A),Z=Ah(pe,I.mode,Z),Z.return=I,Z._debugOwner=I,Z._debugTask=I._debugTask,Z._debugInfo=ut,I=Z),u(I);return typeof D==="function"&&Lf(I,D),typeof D==="symbol"&&Cf(I,D),a(I,A)}return function(I,A,D,Z){var pe=ut;ut=null;try{Fc=0;var Ze=kt(I,A,D,Z);return Ku=null,Ze}catch(Wt){if(Wt===Qu||Wt===Ep)throw Wt;var qe=w(29,Wt,null,I.mode);qe.lanes=Z,qe.return=I;var Re=qe._debugInfo=ut;if(qe._debugOwner=I._debugOwner,qe._debugTask=I._debugTask,Re!=null){for(var rt=Re.length-1;0<=rt;rt--)if(typeof Re[rt].stack==="string"){qe._debugOwner=Re[rt],qe._debugTask=Re[rt].debugTask;break}}return qe}finally{ut=pe}}}function _x(e,t){var a=qa(e);return e=!a&&typeof re(e)==="function",a||e?(a=a?"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>",a,t,a),!1):!0}function Fh(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Gh(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function sl(e){return{lane:e,tag:QC,payload:null,callback:null,next:null}}function ul(e,t,a){var o=e.updateQueue;if(o===null)return null;if(o=o.shared,iv===o&&!WC){var r=V(e);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`,
|
|
103
|
-
`,a+=
|
|
102
|
+
Please update the following component: %s`,r),WC=!0}if((It&Na)!==Ha)return r=o.pending,r===null?t.next=t:(t.next=r.next,r.next=t),o.pending=t,t=cf(e),mx(e,null,a),t;return uf(e,o,t,a),cf(e)}function Yi(e,t,a){if(t=t.updateQueue,t!==null&&(t=t.shared,(a&4194048)!==0)){var o=t.lanes;o&=e.pendingLanes,a|=o,t.lanes=a,rs(e,a)}}function wf(e,t){var a=e.updateQueue,o=e.alternate;if(o!==null&&(o=o.updateQueue,a===o)){var r=null,n=null;if(a=a.firstBaseUpdate,a!==null){do{var u={lane:a.lane,tag:a.tag,payload:a.payload,callback:null,next:null};n===null?r=n=u:n=n.next=u,a=a.next}while(a!==null);n===null?r=n=t:n=n.next=t}else r=n=t;a={baseState:o.baseState,firstBaseUpdate:r,lastBaseUpdate:n,shared:o.shared,callbacks:o.callbacks},e.updateQueue=a;return}e=a.lastBaseUpdate,e===null?a.firstBaseUpdate=t:e.next=t,a.lastBaseUpdate=t}function $i(){if(cv){var e=$u;if(e!==null)throw e}}function Qi(e,t,a,o){cv=!1;var r=e.updateQueue;Al=!1,iv=r.shared;var{firstBaseUpdate:n,lastBaseUpdate:u}=r,f=r.shared.pending;if(f!==null){r.shared.pending=null;var m=f,y=m.next;m.next=null,u===null?n=y:u.next=y,u=m;var q=e.alternate;q!==null&&(q=q.updateQueue,f=q.lastBaseUpdate,f!==u&&(f===null?q.firstBaseUpdate=y:f.next=y,q.lastBaseUpdate=m))}if(n!==null){var O=r.baseState;u=0,q=y=m=null,f=n;do{var R=f.lane&-536870913,_=R!==f.lane;if(_?(it&R)===R:(o&R)===R){R!==0&&R===Rs&&(cv=!0),q!==null&&(q=q.next={lane:0,tag:f.tag,payload:f.payload,callback:null,next:null});e:{R=e;var ce=f,ge=t,Qt=a;switch(ce.tag){case KC:if(ce=ce.payload,typeof ce==="function"){Xu=!0;var kt=ce.call(Qt,O,ge);if(R.mode&to){Yt(!0);try{ce.call(Qt,O,ge)}finally{Yt(!1)}}Xu=!1,O=kt;break e}O=ce;break e;case uv:R.flags=R.flags&-65537|128;case QC:if(kt=ce.payload,typeof kt==="function"){if(Xu=!0,ce=kt.call(Qt,O,ge),R.mode&to){Yt(!0);try{kt.call(Qt,O,ge)}finally{Yt(!1)}}Xu=!1}else ce=kt;if(ce===null||ce===void 0)break e;O=pt({},O,ce);break e;case ZC:Al=!0}}R=f.callback,R!==null&&(e.flags|=64,_&&(e.flags|=8192),_=r.callbacks,_===null?r.callbacks=[R]:_.push(R))}else _={lane:R,tag:f.tag,payload:f.payload,callback:f.callback,next:null},q===null?(y=q=_,m=O):q=q.next=_,u|=R;if(f=f.next,f===null)if(f=r.shared.pending,f===null)break;else _=f,f=_.next,_.next=null,r.lastBaseUpdate=_,r.shared.pending=null}while(1);q===null&&(m=O),r.baseState=m,r.firstBaseUpdate=y,r.lastBaseUpdate=q,n===null&&(r.shared.lanes=0),El|=u,e.lanes=u,e.memoizedState=O}iv=null}function Hx(e,t){if(typeof e!=="function")throw Error("Invalid argument passed as callback. Expected a function. Instead received: "+e);e.call(t)}function FT(e,t){var a=e.shared.hiddenCallbacks;if(a!==null)for(e.shared.hiddenCallbacks=null,e=0;e<a.length;e++)Hx(a[e],t)}function Fx(e,t){var a=e.callbacks;if(a!==null)for(e.callbacks=null,e=0;e<a.length;e++)Hx(a[e],t)}function Gx(e,t){var a=ln;Ce(Op,a,e),Ce(Zu,t,e),ln=a|t.baseLanes}function Vh(e){Ce(Op,ln,e),Ce(Zu,Zu.current,e)}function jh(e){ln=Op.current,ve(Zu,e),ve(Op,e)}function il(e){var t=e.alternate;Ce(ba,ba.current&Wu,e),Ce(Po,e,e),tr===null&&(t===null||Zu.current!==null?tr=e:t.memoizedState!==null&&(tr=e))}function Xh(e){Ce(ba,ba.current,e),Ce(Po,e,e),tr===null&&(tr=e)}function Vx(e){e.tag===22?(Ce(ba,ba.current,e),Ce(Po,e,e),tr===null&&(tr=e)):cl(e)}function cl(e){Ce(ba,ba.current,e),Ce(Po,Po.current,e)}function Eo(e){ve(Po,e),tr===e&&(tr=null),ve(ba,e)}function kf(e){for(var t=e;t!==null;){if(t.tag===13){var a=t.memoizedState;if(a!==null&&(a=a.dehydrated,a===null||ny(a)||ly(a)))return t}else if(t.tag===19&&(t.memoizedProps.revealOrder==="forwards"||t.memoizedProps.revealOrder==="backwards"||t.memoizedProps.revealOrder==="unstable_legacy-backwards"||t.memoizedProps.revealOrder==="together")){if((t.flags&128)!==0)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}function ft(){var e=H;or===null?or=[e]:or.push(e)}function oe(){var e=H;if(or!==null&&(Fn++,or[Fn]!==e)){var t=V(Ke);if(!JC.has(t)&&(JC.add(t),or!==null)){for(var a="",o=0;o<=Fn;o++){var r=or[o],n=o===Fn?e:r;for(r=o+1+". "+r;30>r.length;)r+=" ";r+=n+`
|
|
103
|
+
`,a+=r}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
|
-
`,t,a)}}}function gu(e){e===void 0||e===null||
|
|
108
|
+
`,t,a)}}}function gu(e){e===void 0||e===null||qa(e)||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 e)}function If(){var e=V(Ke);tw.has(e)||(tw.add(e),console.error("ReactDOM.useFormState has been renamed to React.useActionState. Please update %s to use React.useActionState.",e))}function ha(){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 Yh(e,t){if(jc)return!1;if(t===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;e.length!==t.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,"["+t.join(", ")+"]","["+e.join(", ")+"]");for(var a=0;a<t.length&&a<e.length;a++)if(!uo(e[a],t[a]))return!1;return!0}function Gh(e,t,a,o,n,r){if(_r=r,Ke=t,on=e!==null?e._debugHookTypes:null,Fr=-1,Vc=e!==null&&e.type!==t.type,Object.prototype.toString.call(a)==="[object AsyncFunction]"||Object.prototype.toString.call(a)==="[object AsyncGeneratorFunction]")r=V(Ke),lv.has(r)||(lv.add(r),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.",r===null?"An unknown Component":"<"+r+">"));t.memoizedState=null,t.updateQueue=null,t.lanes=0,G.H=e!==null&&e.memoizedState!==null?uv:on!==null?$C:sv,Os=r=(t.mode&to)!==Ve;var u=Jy(a,o,n);if(Os=!1,ei&&(u=Vh(t,a,o,n)),r){Yt(!0);try{u=Vh(t,a,o,n)}finally{Yt(!1)}}return zx(e,t),u}function zx(e,t){t._debugHookTypes=on,t.dependencies===null?Hr!==null&&(t.dependencies={lanes:0,firstContext:null,_debugThenableState:Hr}):t.dependencies._debugThenableState=Hr,G.H=jc;var a=jt!==null&&jt.next!==null;if(_r=0,on=H=ka=jt=Ke=null,Fr=-1,e!==null&&(e.flags&65011712)!==(t.flags&65011712)&&console.error("Internal React error: Expected static flag was missing. Please notify the React team."),Np=!1,Gc=0,Hr=null,a)throw Error("Rendered fewer hooks than expected. This may be caused by an accidental early return statement.");e===null||Ta||(e=e.dependencies,e!==null&&pf(e)&&(Ta=!0)),_c?(_c=!1,e=!0):e=!1,e&&(t=V(t)||"Unknown",XC.has(t)||lv.has(t)||(XC.add(t),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 Vh(e,t,a,o){Ke=e;var n=0;do{if(ei&&(Hr=null),Gc=0,ei=!1,n>=gM)throw Error("Too many re-renders. React limits the number of renders to prevent an infinite loop.");if(n+=1,Vc=!1,ka=jt=null,e.updateQueue!=null){var r=e.updateQueue;r.lastEffect=null,r.events=null,r.stores=null,r.memoCache!=null&&(r.memoCache.index=0)}Fr=-1,G.H=QC,r=Jy(t,a,o)}while(ei);return r}function OI(){var e=G.H,t=e.useState()[0];return t=typeof t.then==="function"?Qi(t):t,e=e.useState()[0],(jt!==null?jt.memoizedState:null)!==e&&(Ke.flags|=1024),t}function jh(){var e=Bp!==0;return Bp=0,e}function Xh(e,t,a){t.updateQueue=e.updateQueue,t.flags=(t.mode&gn)!==Ve?t.flags&-402655237:t.flags&-2053,e.lanes&=~a}function Yh(e){if(Np){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}Np=!1}_r=0,on=ka=jt=Ke=null,Fr=-1,H=null,ei=!1,Gc=Bp=0,Hr=null}function no(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return ka===null?Ke.memoizedState=ka=e:ka=ka.next=e,ka}function Pt(){if(jt===null){var e=Ke.alternate;e=e!==null?e.memoizedState:null}else e=jt.next;var t=ka===null?Ke.memoizedState:ka.next;if(t!==null)ka=t,jt=e;else{if(e===null){if(Ke.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.")}jt=e,e={memoizedState:jt.memoizedState,baseState:jt.baseState,baseQueue:jt.baseQueue,queue:jt.queue,next:null},ka===null?Ke.memoizedState=ka=e:ka=ka.next=e}return ka}function Tf(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Qi(e){var t=Gc;return Gc+=1,Hr===null&&(Hr=Cx()),e=kx(Hr,e,t),t=Ke,(ka===null?t.memoizedState:ka.next)===null&&(t=t.alternate,G.H=t!==null&&t.memoizedState!==null?uv:sv),e}function dl(e){if(e!==null&&typeof e==="object"){if(typeof e.then==="function")return Qi(e);if(e.$$typeof===Zn)return ta(e)}throw Error("An unsupported type was passed to use(): "+String(e))}function gs(e){var t=null,a=Ke.updateQueue;if(a!==null&&(t=a.memoCache),t==null){var o=Ke.alternate;o!==null&&(o=o.updateQueue,o!==null&&(o=o.memoCache,o!=null&&(t={data:o.data.map(function(n){return n.slice()}),index:0})))}if(t==null&&(t={data:[],index:0}),a===null&&(a=Tf(),Ke.updateQueue=a),a.memoCache=t,a=t.data[t.index],a===void 0||Vc)for(a=t.data[t.index]=Array(e),o=0;o<e;o++)a[o]=$R;else a.length!==e&&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.",a.length,e);return t.index++,a}function fn(e,t){return typeof t==="function"?t(e):t}function $h(e,t,a){var o=no();if(a!==void 0){var n=a(t);if(Os){Yt(!0);try{a(t)}finally{Yt(!1)}}}else n=t;return o.memoizedState=o.baseState=n,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:n},o.queue=e,e=e.dispatch=UI.bind(null,Ke,e),[o.memoizedState,e]}function yu(e){var t=Pt();return Qh(t,jt,e)}function Qh(e,t,a){var o=e.queue;if(o===null)throw Error("Should have a queue. You are likely calling Hooks conditionally, which is not allowed. (https://react.dev/link/invalid-hook-call)");o.lastRenderedReducer=a;var n=e.baseQueue,r=o.pending;if(r!==null){if(n!==null){var u=n.next;n.next=r.next,r.next=u}t.baseQueue!==n&&console.error("Internal error: Expected work-in-progress queue to be a clone. This is a bug in React."),t.baseQueue=n=r,o.pending=null}if(r=e.baseState,n===null)e.memoizedState=r;else{t=n.next;var f=u=null,m=null,y=t,O=!1;do{var q=y.lane&-536870913;if(q!==y.lane?(it&q)===q:(_r&q)===q){var R=y.revertLane;if(R===0)m!==null&&(m=m.next={lane:0,revertLane:0,gesture:null,action:y.action,hasEagerState:y.hasEagerState,eagerState:y.eagerState,next:null}),q===Rs&&(O=!0);else if((_r&R)===R){y=y.next,R===Rs&&(O=!0);continue}else q={lane:0,revertLane:y.revertLane,gesture:null,action:y.action,hasEagerState:y.hasEagerState,eagerState:y.eagerState,next:null},m===null?(f=m=q,u=r):m=m.next=q,Ke.lanes|=R,El|=R;q=y.action,Os&&a(r,q),r=y.hasEagerState?y.eagerState:a(r,q)}else R={lane:q,revertLane:y.revertLane,gesture:y.gesture,action:y.action,hasEagerState:y.hasEagerState,eagerState:y.eagerState,next:null},m===null?(f=m=R,u=r):m=m.next=R,Ke.lanes|=q,El|=q;y=y.next}while(y!==null&&y!==t);if(m===null?u=r:m.next=f,!uo(r,e.memoizedState)&&(Ta=!0,O&&(a=$u,a!==null)))throw a;e.memoizedState=r,e.baseState=u,e.baseQueue=m,o.lastRenderedState=r}return n===null&&(o.lanes=0),[e.memoizedState,o.dispatch]}function Ki(e){var t=Pt(),a=t.queue;if(a===null)throw Error("Should have a queue. You are likely calling Hooks conditionally, which is not allowed. (https://react.dev/link/invalid-hook-call)");a.lastRenderedReducer=e;var{dispatch:o,pending:n}=a,r=t.memoizedState;if(n!==null){a.pending=null;var u=n=n.next;do r=e(r,u.action),u=u.next;while(u!==n);uo(r,t.memoizedState)||(Ta=!0),t.memoizedState=r,t.baseQueue===null&&(t.baseState=r),a.lastRenderedState=r}return[r,o]}function Kh(e,t,a){var o=Ke,n=no();if(vt){if(a===void 0)throw Error("Missing getServerSnapshot, which is required for server-rendered content. Will revert to client rendering.");var r=a();Ju||r===a()||(console.error("The result of getServerSnapshot should be cached to avoid an infinite loop"),Ju=!0)}else{if(r=t(),Ju||(a=t(),uo(r,a)||(console.error("The result of getSnapshot should be cached to avoid an infinite loop"),Ju=!0)),Xt===null)throw Error("Expected a work-in-progress root. This is a bug in React. Please file an issue.");(it&127)!==0||Ux(o,t,r)}return n.memoizedState=r,a={value:r,getSnapshot:t},n.queue=a,Mf(_x.bind(null,o,a,e),[e]),o.flags|=2048,bu(an|fo,{destroy:void 0},Px.bind(null,o,a,r,t),null),r}function If(e,t,a){var o=Ke,n=Pt(),r=vt;if(r){if(a===void 0)throw Error("Missing getServerSnapshot, which is required for server-rendered content. Will revert to client rendering.");a=a()}else if(a=t(),!Ju){var u=t();uo(a,u)||(console.error("The result of getSnapshot should be cached to avoid an infinite loop"),Ju=!0)}if(u=!uo((jt||n).memoizedState,a))n.memoizedState=a,Ta=!0;n=n.queue;var f=_x.bind(null,o,n,e);if(yo(2048,fo,f,[e]),n.getSnapshot!==t||u||ka!==null&&ka.memoizedState.tag&an){if(o.flags|=2048,bu(an|fo,{destroy:void 0},Px.bind(null,o,n,a,t),null),Xt===null)throw Error("Expected a work-in-progress root. This is a bug in React. Please file an issue.");r||(_r&127)!==0||Ux(o,t,a)}return a}function Ux(e,t,a){e.flags|=16384,e={getSnapshot:t,value:a},t=Ke.updateQueue,t===null?(t=Tf(),Ke.updateQueue=t,t.stores=[e]):(a=t.stores,a===null?t.stores=[e]:a.push(e))}function Px(e,t,a,o){t.value=a,t.getSnapshot=o,Hx(t)&&Fx(e)}function _x(e,t,a){return a(function(){Hx(t)&&(zn(2,"updateSyncExternalStore()",e),Fx(e))})}function Hx(e){var t=e.getSnapshot;e=e.value;try{var a=t();return!uo(e,a)}catch(o){return!0}}function Fx(e){var t=Ja(e,2);t!==null&&ia(t,e,2)}function Zh(e){var t=no();if(typeof e==="function"){var a=e;if(e=a(),Os){Yt(!0);try{a()}finally{Yt(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:fn,lastRenderedState:e},t}function Wh(e){e=Zh(e);var t=e.queue,a=s0.bind(null,Ke,t);return t.dispatch=a,[e.memoizedState,a]}function Jh(e){var t=no();t.memoizedState=t.baseState=e;var a={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=a,t=pg.bind(null,Ke,!0,a),a.dispatch=t,[e,t]}function Gx(e,t){var a=Pt();return Vx(a,jt,e,t)}function Vx(e,t,a,o){return e.baseState=a,Qh(e,jt,typeof o==="function"?o:fn)}function jx(e,t){var a=Pt();if(jt!==null)return Vx(a,jt,e,t);return a.baseState=e,[e,a.queue.dispatch]}function qI(e,t,a,o,n){if(Bf(e))throw Error("Cannot update form state while rendering.");if(e=t.action,e!==null){var r={payload:n,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(u){r.listeners.push(u)}};G.T!==null?a(!0):r.isTransition=!1,o(r),a=t.pending,a===null?(r.next=t.pending=r,Xx(t,r)):(r.next=a.next,t.pending=a.next=r)}}function Xx(e,t){var{action:a,payload:o}=t,n=e.state;if(t.isTransition){var r=G.T,u={};u._updatedFibers=new Set,G.T=u;try{var f=a(n,o),m=G.S;m!==null&&m(u,f),Yx(e,t,f)}catch(y){eg(e,t,y)}finally{r!==null&&u.types!==null&&(r.types!==null&&r.types!==u.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."),r.types=u.types),G.T=r,r===null&&u._updatedFibers&&(e=u._updatedFibers.size,u._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."))}}else try{u=a(n,o),Yx(e,t,u)}catch(y){eg(e,t,y)}}function Yx(e,t,a){a!==null&&typeof a==="object"&&typeof a.then==="function"?(G.asyncTransitions++,a.then(Nf,Nf),a.then(function(o){$x(e,t,o)},function(o){return eg(e,t,o)}),t.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.")):$x(e,t,a)}function $x(e,t,a){t.status="fulfilled",t.value=a,Qx(t),e.state=a,t=e.pending,t!==null&&(a=t.next,a===t?e.pending=null:(a=a.next,t.next=a,Xx(e,a)))}function eg(e,t,a){var o=e.pending;if(e.pending=null,o!==null){o=o.next;do t.status="rejected",t.reason=a,Qx(t),t=t.next;while(t!==o)}e.action=null}function Qx(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function Kx(e,t){return t}function vu(e,t){if(vt){var a=Xt.formState;if(a!==null){e:{var o=Ke;if(vt){if(Zt){t:{var n=Zt;for(var r=Jo;n.nodeType!==8;){if(!r){n=null;break t}if(n=qo(n.nextSibling),n===null){n=null;break t}}r=n.data,n=r===Dv||r===qw?n:null}if(n){Zt=qo(n.nextSibling),o=n.data===Dv;break e}}nl(o)}o=!1}o&&(t=a[0])}}return a=no(),a.memoizedState=a.baseState=t,o={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Kx,lastRenderedState:t},a.queue=o,a=s0.bind(null,Ke,o),o.dispatch=a,o=Zh(!1),r=pg.bind(null,Ke,!1,o.queue),o=no(),n={state:t,dispatch:null,action:e,pending:null},o.queue=n,a=qI.bind(null,Ke,n,r,a),n.dispatch=a,o.memoizedState=e,[t,a,!1]}function Rf(e){var t=Pt();return Zx(t,jt,e)}function Zx(e,t,a){if(t=Qh(e,t,Kx)[0],e=yu(fn)[0],typeof t==="object"&&t!==null&&typeof t.then==="function")try{var o=Qi(t)}catch(u){if(u===Qu)throw Dp;throw u}else o=t;t=Pt();var n=t.queue,r=n.dispatch;return a!==t.memoizedState&&(Ke.flags|=2048,bu(an|fo,{destroy:void 0},NI.bind(null,n,a),null)),[o,r,e]}function NI(e,t){e.action=t}function Af(e){var t=Pt(),a=jt;if(a!==null)return Zx(t,a,e);Pt(),t=t.memoizedState,a=Pt();var o=a.queue.dispatch;return a.memoizedState=e,[t,o,!1]}function bu(e,t,a,o){return e={tag:e,create:a,deps:o,inst:t,next:null},t=Ke.updateQueue,t===null&&(t=Tf(),Ke.updateQueue=t),a=t.lastEffect,a===null?t.lastEffect=e.next=e:(o=a.next,a.next=e,e.next=o,t.lastEffect=e),e}function tg(e){var t=no();return e={current:e},t.memoizedState=e}function ys(e,t,a,o){var n=no();Ke.flags|=e,n.memoizedState=bu(an|t,{destroy:void 0},a,o===void 0?null:o)}function yo(e,t,a,o){var n=Pt();o=o===void 0?null:o;var r=n.memoizedState.inst;jt!==null&&o!==null&&Fh(o,jt.memoizedState.deps)?n.memoizedState=bu(t,r,a,o):(Ke.flags|=e,n.memoizedState=bu(an|t,r,a,o))}function Mf(e,t){(Ke.mode&gn)!==Ve?ys(276826112,fo,e,t):ys(8390656,fo,e,t)}function BI(e){Ke.flags|=4;var t=Ke.updateQueue;if(t===null)t=Tf(),Ke.updateQueue=t,t.events=[e];else{var a=t.events;a===null?t.events=[e]:a.push(e)}}function ag(e){var t=no(),a={impl:e};return t.memoizedState=a,function(){if((Tt&qa)!==Ha)throw Error("A function wrapped in useEffectEvent can't be called during rendering.");return a.impl.apply(void 0,arguments)}}function Df(e){var t=Pt().memoizedState;return BI({ref:t,nextImpl:e}),function(){if((Tt&qa)!==Ha)throw Error("A function wrapped in useEffectEvent can't be called during rendering.");return t.impl.apply(void 0,arguments)}}function og(e,t){var a=4194308;return(Ke.mode&gn)!==Ve&&(a|=134217728),ys(a,_o,e,t)}function Wx(e,t){if(typeof t==="function"){e=e();var a=t(e);return function(){typeof a==="function"?a():t(null)}}if(t!==null&&t!==void 0)return t.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(t).join(", ")+"}"),e=e(),t.current=e,function(){t.current=null}}function ng(e,t,a){typeof t!=="function"&&console.error("Expected useImperativeHandle() second argument to be a function that creates a handle. Instead received: %s.",t!==null?typeof t:"null"),a=a!==null&&a!==void 0?a.concat([e]):null;var o=4194308;(Ke.mode&gn)!==Ve&&(o|=134217728),ys(o,_o,Wx.bind(null,t,e),a)}function Ef(e,t,a){typeof t!=="function"&&console.error("Expected useImperativeHandle() second argument to be a function that creates a handle. Instead received: %s.",t!==null?typeof t:"null"),a=a!==null&&a!==void 0?a.concat([e]):null,yo(4,_o,Wx.bind(null,t,e),a)}function rg(e,t){return no().memoizedState=[e,t===void 0?null:t],e}function Of(e,t){var a=Pt();t=t===void 0?null:t;var o=a.memoizedState;if(t!==null&&Fh(t,o[1]))return o[0];return a.memoizedState=[e,t],e}function lg(e,t){var a=no();t=t===void 0?null:t;var o=e();if(Os){Yt(!0);try{e()}finally{Yt(!1)}}return a.memoizedState=[o,t],o}function qf(e,t){var a=Pt();t=t===void 0?null:t;var o=a.memoizedState;if(t!==null&&Fh(t,o[1]))return o[0];if(o=e(),Os){Yt(!0);try{e()}finally{Yt(!1)}}return a.memoizedState=[o,t],o}function sg(e,t){var a=no();return ug(a,e,t)}function Jx(e,t){var a=Pt();return t0(a,jt.memoizedState,e,t)}function e0(e,t){var a=Pt();return jt===null?ug(a,e,t):t0(a,jt.memoizedState,e,t)}function ug(e,t,a){if(a===void 0||(_r&1073741824)!==0&&(it&261930)===0)return e.memoizedState=t;return e.memoizedState=a,e=aS(),Ke.lanes|=e,El|=e,a}function t0(e,t,a,o){if(uo(a,t))return a;if(Zu.current!==null)return e=ug(e,a,o),uo(e,t)||(Ta=!0),e;if((_r&42)===0||(_r&1073741824)!==0&&(it&261930)===0)return Ta=!0,e.memoizedState=a;return e=aS(),Ke.lanes|=e,El|=e,t}function Nf(){G.asyncTransitions--}function a0(e,t,a,o,n){var r=zt.p;zt.p=r!==0&&r<hn?r:hn;var u=G.T,f={};f._updatedFibers=new Set,G.T=f,pg(e,!1,t,a);try{var m=n(),y=G.S;if(y!==null&&y(f,m),m!==null&&typeof m==="object"&&typeof m.then==="function"){G.asyncTransitions++,m.then(Nf,Nf);var O=DI(m,o);Zi(e,t,O,Oo(e))}else Zi(e,t,o,Oo(e))}catch(q){Zi(e,t,{then:function(){},status:"rejected",reason:q},Oo(e))}finally{zt.p=r,u!==null&&f.types!==null&&(u.types!==null&&u.types!==f.types&&console.error("We expected inner Transitions to have transferred the outer types set and that you cannot add to the outer Transition while inside the inner.This is a bug in React."),u.types=f.types),G.T=u,u===null&&f._updatedFibers&&(e=f._updatedFibers.size,f._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."))}}function ig(e,t,a,o){if(e.tag!==5)throw Error("Expected the form instance to be a HostComponent. This is a bug in React.");var n=o0(e).queue;AI(e),a0(e,n,t,Vs,a===null?x:function(){return n0(e),a(o)})}function o0(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:Vs,baseState:Vs,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:fn,lastRenderedState:Vs},next:null};var a={};return t.next={memoizedState:a,baseState:a,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:fn,lastRenderedState:a},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function n0(e){G.T===null&&console.error("requestFormReset was called outside a transition or action. To fix, move to an action, or wrap with startTransition.");var t=o0(e);t.next===null&&(t=e.alternate.memoizedState),Zi(e,t.next.queue,{},Oo(e))}function cg(){var e=Zh(!1);return e=a0.bind(null,Ke,e.queue,!0,!1),no().memoizedState=e,[!1,e]}function r0(){var e=yu(fn)[0],t=Pt().memoizedState;return[typeof e==="boolean"?e:Qi(e),t]}function l0(){var e=Ki(fn)[0],t=Pt().memoizedState;return[typeof e==="boolean"?e:Qi(e),t]}function vs(){return ta(ld)}function dg(){var e=no(),t=Xt.identifierPrefix;if(vt){var a=Nr,o=qr;a=(o&~(1<<32-ro(o)-1)).toString(32)+a,t="_"+t+"R_"+a,a=Bp++,0<a&&(t+="H"+a.toString(32)),t+="_"}else a=hM++,t="_"+t+"r_"+a.toString(32)+"_";return e.memoizedState=t}function fg(){return no().memoizedState=zI.bind(null,Ke)}function zI(e,t){for(var a=e.return;a!==null;){switch(a.tag){case 24:case 3:var o=Oo(a),n=sl(o),r=ul(a,n,o);r!==null&&(zn(o,"refresh()",e),ia(r,a,o),Xi(r,a,o)),e=Eh(),t!==null&&t!==void 0&&r!==null&&console.error("The seed argument is not enabled outside experimental channels."),n.payload={cache:e};return}a=a.return}}function UI(e,t,a){var o=arguments;typeof o[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()."),o=Oo(e);var n={lane:o,revertLane:0,gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null};Bf(e)?u0(t,n):(n=xh(e,t,n,o),n!==null&&(zn(o,"dispatch()",e),ia(n,e,o),i0(n,t,o)))}function s0(e,t,a){var o=arguments;typeof o[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()."),o=Oo(e),Zi(e,t,a,o)&&zn(o,"setState()",e)}function Zi(e,t,a,o){var n={lane:o,revertLane:0,gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null};if(Bf(e))u0(t,n);else{var r=e.alternate;if(e.lanes===0&&(r===null||r.lanes===0)&&(r=t.lastRenderedReducer,r!==null)){var u=G.H;G.H=vn;try{var f=t.lastRenderedState,m=r(f,a);if(n.hasEagerState=!0,n.eagerState=m,uo(m,f))return sf(e,t,n,0),Xt===null&&lf(),!1}catch(y){}finally{G.H=u}}if(a=xh(e,t,n,o),a!==null)return ia(a,e,o),i0(a,t,o),!0}return!1}function pg(e,t,a,o){if(G.T===null&&Rs===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."),o={lane:2,revertLane:Gg(),gesture:null,action:o,hasEagerState:!1,eagerState:null,next:null},Bf(e)){if(t)throw Error("Cannot update optimistic state while rendering.");console.error("Cannot call startTransition while rendering.")}else t=xh(e,a,o,2),t!==null&&(zn(2,"setOptimistic()",e),ia(t,e,2))}function Bf(e){var t=e.alternate;return e===Ke||t!==null&&t===Ke}function u0(e,t){ei=Np=!0;var a=e.pending;a===null?t.next=t:(t.next=a.next,a.next=t),e.pending=t}function i0(e,t,a){if((a&4194048)!==0){var o=t.lanes;o&=e.pendingLanes,a|=o,t.lanes=a,ns(e,a)}}function mg(e){if(e!==null&&typeof e!=="function"){var t=String(e);lw.has(t)||(lw.add(t),console.error("Expected the last optional `callback` argument to be a function. Instead received: %s.",e))}}function hg(e,t,a,o){var n=e.memoizedState,r=a(o,n);if(e.mode&to){Yt(!0);try{r=a(o,n)}finally{Yt(!1)}}r===void 0&&(t=Y(t)||"Component",aw.has(t)||(aw.add(t),console.error("%s.getDerivedStateFromProps(): A valid state object (or null) must be returned. You have returned undefined.",t))),n=r===null||r===void 0?n:pt({},n,r),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}function c0(e,t,a,o,n,r,u){var f=e.stateNode;if(typeof f.shouldComponentUpdate==="function"){if(a=f.shouldComponentUpdate(o,r,u),e.mode&to){Yt(!0);try{a=f.shouldComponentUpdate(o,r,u)}finally{Yt(!1)}}return a===void 0&&console.error("%s.shouldComponentUpdate(): Returned undefined instead of a boolean value. Make sure to return true or false.",Y(t)||"Component"),a}return t.prototype&&t.prototype.isPureReactComponent?!Pi(a,o)||!Pi(n,r):!0}function d0(e,t,a,o){var n=t.state;typeof t.componentWillReceiveProps==="function"&&t.componentWillReceiveProps(a,o),typeof t.UNSAFE_componentWillReceiveProps==="function"&&t.UNSAFE_componentWillReceiveProps(a,o),t.state!==n&&(e=V(e)||"Component",ZC.has(e)||(ZC.add(e),console.error("%s.componentWillReceiveProps(): Assigning directly to this.state is deprecated (except inside a component's constructor). Use setState instead.",e)),iv.enqueueReplaceState(t,t.state,null))}function bs(e,t){var a=t;if("ref"in t){a={};for(var o in t)o!=="ref"&&(a[o]=t[o])}if(e=e.defaultProps){a===t&&(a=pt({},a));for(var n in e)a[n]===void 0&&(a[n]=e[n])}return a}function f0(e){_y(e),console.warn(`%s
|
|
115
|
+
Incoming: %s`,H,"["+t.join(", ")+"]","["+e.join(", ")+"]");for(var a=0;a<t.length&&a<e.length;a++)if(!io(e[a],t[a]))return!1;return!0}function $h(e,t,a,o,r,n){if(_n=n,Ke=t,or=e!==null?e._debugHookTypes:null,Fn=-1,jc=e!==null&&e.type!==t.type,Object.prototype.toString.call(a)==="[object AsyncFunction]"||Object.prototype.toString.call(a)==="[object AsyncGeneratorFunction]")n=V(Ke),dv.has(n)||(dv.add(n),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.",n===null?"An unknown Component":"<"+n+">"));t.memoizedState=null,t.updateQueue=null,t.lanes=0,j.H=e!==null&&e.memoizedState!==null?pv:or!==null?aw:fv,qs=n=(t.mode&to)!==Ve;var u=rv(a,o,r);if(qs=!1,ei&&(u=Qh(t,a,o,r)),n){Yt(!0);try{u=Qh(t,a,o,r)}finally{Yt(!1)}}return jx(e,t),u}function jx(e,t){t._debugHookTypes=or,t.dependencies===null?Hn!==null&&(t.dependencies={lanes:0,firstContext:null,_debugThenableState:Hn}):t.dependencies._debugThenableState=Hn,j.H=Xc;var a=jt!==null&&jt.next!==null;if(_n=0,or=H=ka=jt=Ke=null,Fn=-1,e!==null&&(e.flags&65011712)!==(t.flags&65011712)&&console.error("Internal React error: Expected static flag was missing. Please notify the React team."),Bp=!1,Vc=0,Hn=null,a)throw Error("Rendered fewer hooks than expected. This may be caused by an accidental early return statement.");e===null||Ia||(e=e.dependencies,e!==null&&mf(e)&&(Ia=!0)),Hc?(Hc=!1,e=!0):e=!1,e&&(t=V(t)||"Unknown",ew.has(t)||dv.has(t)||(ew.add(t),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 Qh(e,t,a,o){Ke=e;var r=0;do{if(ei&&(Hn=null),Vc=0,ei=!1,r>=IM)throw Error("Too many re-renders. React limits the number of renders to prevent an infinite loop.");if(r+=1,jc=!1,ka=jt=null,e.updateQueue!=null){var n=e.updateQueue;n.lastEffect=null,n.events=null,n.stores=null,n.memoCache!=null&&(n.memoCache.index=0)}Fn=-1,j.H=ow,n=rv(t,a,o)}while(ei);return n}function GT(){var e=j.H,t=e.useState()[0];return t=typeof t.then==="function"?Ki(t):t,e=e.useState()[0],(jt!==null?jt.memoizedState:null)!==e&&(Ke.flags|=1024),t}function Kh(){var e=zp!==0;return zp=0,e}function Zh(e,t,a){t.updateQueue=e.updateQueue,t.flags=(t.mode&hr)!==Ve?t.flags&-402655237:t.flags&-2053,e.lanes&=~a}function Wh(e){if(Bp){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}Bp=!1}_n=0,or=ka=jt=Ke=null,Fn=-1,H=null,ei=!1,Vc=zp=0,Hn=null}function no(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return ka===null?Ke.memoizedState=ka=e:ka=ka.next=e,ka}function Pt(){if(jt===null){var e=Ke.alternate;e=e!==null?e.memoizedState:null}else e=jt.next;var t=ka===null?Ke.memoizedState:ka.next;if(t!==null)ka=t,jt=e;else{if(e===null){if(Ke.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.")}jt=e,e={memoizedState:jt.memoizedState,baseState:jt.baseState,baseQueue:jt.baseQueue,queue:jt.queue,next:null},ka===null?Ke.memoizedState=ka=e:ka=ka.next=e}return ka}function Tf(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Ki(e){var t=Vc;return Vc+=1,Hn===null&&(Hn=Dx()),e=qx(Hn,e,t),t=Ke,(ka===null?t.memoizedState:ka.next)===null&&(t=t.alternate,j.H=t!==null&&t.memoizedState!==null?pv:fv),e}function dl(e){if(e!==null&&typeof e==="object"){if(typeof e.then==="function")return Ki(e);if(e.$$typeof===Kr)return ta(e)}throw Error("An unsupported type was passed to use(): "+String(e))}function gs(e){var t=null,a=Ke.updateQueue;if(a!==null&&(t=a.memoCache),t==null){var o=Ke.alternate;o!==null&&(o=o.updateQueue,o!==null&&(o=o.memoCache,o!=null&&(t={data:o.data.map(function(r){return r.slice()}),index:0})))}if(t==null&&(t={data:[],index:0}),a===null&&(a=Tf(),Ke.updateQueue=a),a.memoCache=t,a=t.data[t.index],a===void 0||jc)for(a=t.data[t.index]=Array(e),o=0;o<e;o++)a[o]=rA;else a.length!==e&&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.",a.length,e);return t.index++,a}function dr(e,t){return typeof t==="function"?t(e):t}function Jh(e,t,a){var o=no();if(a!==void 0){var r=a(t);if(qs){Yt(!0);try{a(t)}finally{Yt(!1)}}}else r=t;return o.memoizedState=o.baseState=r,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:r},o.queue=e,e=e.dispatch=$T.bind(null,Ke,e),[o.memoizedState,e]}function yu(e){var t=Pt();return eg(t,jt,e)}function eg(e,t,a){var o=e.queue;if(o===null)throw Error("Should have a queue. You are likely calling Hooks conditionally, which is not allowed. (https://react.dev/link/invalid-hook-call)");o.lastRenderedReducer=a;var r=e.baseQueue,n=o.pending;if(n!==null){if(r!==null){var u=r.next;r.next=n.next,n.next=u}t.baseQueue!==r&&console.error("Internal error: Expected work-in-progress queue to be a clone. This is a bug in React."),t.baseQueue=r=n,o.pending=null}if(n=e.baseState,r===null)e.memoizedState=n;else{t=r.next;var f=u=null,m=null,y=t,q=!1;do{var O=y.lane&-536870913;if(O!==y.lane?(it&O)===O:(_n&O)===O){var R=y.revertLane;if(R===0)m!==null&&(m=m.next={lane:0,revertLane:0,gesture:null,action:y.action,hasEagerState:y.hasEagerState,eagerState:y.eagerState,next:null}),O===Rs&&(q=!0);else if((_n&R)===R){y=y.next,R===Rs&&(q=!0);continue}else O={lane:0,revertLane:y.revertLane,gesture:null,action:y.action,hasEagerState:y.hasEagerState,eagerState:y.eagerState,next:null},m===null?(f=m=O,u=n):m=m.next=O,Ke.lanes|=R,El|=R;O=y.action,qs&&a(n,O),n=y.hasEagerState?y.eagerState:a(n,O)}else R={lane:O,revertLane:y.revertLane,gesture:y.gesture,action:y.action,hasEagerState:y.hasEagerState,eagerState:y.eagerState,next:null},m===null?(f=m=R,u=n):m=m.next=R,Ke.lanes|=O,El|=O;y=y.next}while(y!==null&&y!==t);if(m===null?u=n:m.next=f,!io(n,e.memoizedState)&&(Ia=!0,q&&(a=$u,a!==null)))throw a;e.memoizedState=n,e.baseState=u,e.baseQueue=m,o.lastRenderedState=n}return r===null&&(o.lanes=0),[e.memoizedState,o.dispatch]}function Zi(e){var t=Pt(),a=t.queue;if(a===null)throw Error("Should have a queue. You are likely calling Hooks conditionally, which is not allowed. (https://react.dev/link/invalid-hook-call)");a.lastRenderedReducer=e;var{dispatch:o,pending:r}=a,n=t.memoizedState;if(r!==null){a.pending=null;var u=r=r.next;do n=e(n,u.action),u=u.next;while(u!==r);io(n,t.memoizedState)||(Ia=!0),t.memoizedState=n,t.baseQueue===null&&(t.baseState=n),a.lastRenderedState=n}return[n,o]}function tg(e,t,a){var o=Ke,r=no();if(vt){if(a===void 0)throw Error("Missing getServerSnapshot, which is required for server-rendered content. Will revert to client rendering.");var n=a();Ju||n===a()||(console.error("The result of getServerSnapshot should be cached to avoid an infinite loop"),Ju=!0)}else{if(n=t(),Ju||(a=t(),io(n,a)||(console.error("The result of getSnapshot should be cached to avoid an infinite loop"),Ju=!0)),Xt===null)throw Error("Expected a work-in-progress root. This is a bug in React. Please file an issue.");(it&127)!==0||Xx(o,t,n)}return r.memoizedState=n,a={value:n,getSnapshot:t},r.queue=a,Df($x.bind(null,o,a,e),[e]),o.flags|=2048,bu(ar|po,{destroy:void 0},Yx.bind(null,o,a,n,t),null),n}function Rf(e,t,a){var o=Ke,r=Pt(),n=vt;if(n){if(a===void 0)throw Error("Missing getServerSnapshot, which is required for server-rendered content. Will revert to client rendering.");a=a()}else if(a=t(),!Ju){var u=t();io(a,u)||(console.error("The result of getSnapshot should be cached to avoid an infinite loop"),Ju=!0)}if(u=!io((jt||r).memoizedState,a))r.memoizedState=a,Ia=!0;r=r.queue;var f=$x.bind(null,o,r,e);if(vo(2048,po,f,[e]),r.getSnapshot!==t||u||ka!==null&&ka.memoizedState.tag&ar){if(o.flags|=2048,bu(ar|po,{destroy:void 0},Yx.bind(null,o,r,a,t),null),Xt===null)throw Error("Expected a work-in-progress root. This is a bug in React. Please file an issue.");n||(_n&127)!==0||Xx(o,t,a)}return a}function Xx(e,t,a){e.flags|=16384,e={getSnapshot:t,value:a},t=Ke.updateQueue,t===null?(t=Tf(),Ke.updateQueue=t,t.stores=[e]):(a=t.stores,a===null?t.stores=[e]:a.push(e))}function Yx(e,t,a,o){t.value=a,t.getSnapshot=o,Qx(t)&&Kx(e)}function $x(e,t,a){return a(function(){Qx(t)&&(Br(2,"updateSyncExternalStore()",e),Kx(e))})}function Qx(e){var t=e.getSnapshot;e=e.value;try{var a=t();return!io(e,a)}catch(o){return!0}}function Kx(e){var t=Ja(e,2);t!==null&&ia(t,e,2)}function ag(e){var t=no();if(typeof e==="function"){var a=e;if(e=a(),qs){Yt(!0);try{a()}finally{Yt(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:dr,lastRenderedState:e},t}function og(e){e=ag(e);var t=e.queue,a=hS.bind(null,Ke,t);return t.dispatch=a,[e.memoizedState,a]}function rg(e){var t=no();t.memoizedState=t.baseState=e;var a={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=a,t=vg.bind(null,Ke,!0,a),a.dispatch=t,[e,t]}function Zx(e,t){var a=Pt();return Wx(a,jt,e,t)}function Wx(e,t,a,o){return e.baseState=a,eg(e,jt,typeof o==="function"?o:dr)}function Jx(e,t){var a=Pt();if(jt!==null)return Wx(a,jt,e,t);return a.baseState=e,[e,a.queue.dispatch]}function VT(e,t,a,o,r){if(zf(e))throw Error("Cannot update form state while rendering.");if(e=t.action,e!==null){var n={payload:r,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(u){n.listeners.push(u)}};j.T!==null?a(!0):n.isTransition=!1,o(n),a=t.pending,a===null?(n.next=t.pending=n,eS(t,n)):(n.next=a.next,t.pending=a.next=n)}}function eS(e,t){var{action:a,payload:o}=t,r=e.state;if(t.isTransition){var n=j.T,u={};u._updatedFibers=new Set,j.T=u;try{var f=a(r,o),m=j.S;m!==null&&m(u,f),tS(e,t,f)}catch(y){ng(e,t,y)}finally{n!==null&&u.types!==null&&(n.types!==null&&n.types!==u.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."),n.types=u.types),j.T=n,n===null&&u._updatedFibers&&(e=u._updatedFibers.size,u._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."))}}else try{u=a(r,o),tS(e,t,u)}catch(y){ng(e,t,y)}}function tS(e,t,a){a!==null&&typeof a==="object"&&typeof a.then==="function"?(j.asyncTransitions++,a.then(Bf,Bf),a.then(function(o){aS(e,t,o)},function(o){return ng(e,t,o)}),t.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.")):aS(e,t,a)}function aS(e,t,a){t.status="fulfilled",t.value=a,oS(t),e.state=a,t=e.pending,t!==null&&(a=t.next,a===t?e.pending=null:(a=a.next,t.next=a,eS(e,a)))}function ng(e,t,a){var o=e.pending;if(e.pending=null,o!==null){o=o.next;do t.status="rejected",t.reason=a,oS(t),t=t.next;while(t!==o)}e.action=null}function oS(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function rS(e,t){return t}function vu(e,t){if(vt){var a=Xt.formState;if(a!==null){e:{var o=Ke;if(vt){if(Zt){t:{var r=Zt;for(var n=Jo;r.nodeType!==8;){if(!n){r=null;break t}if(r=Oo(r.nextSibling),r===null){r=null;break t}}n=r.data,r=n===Bv||n===Fw?r:null}if(r){Zt=Oo(r.nextSibling),o=r.data===Bv;break e}}rl(o)}o=!1}o&&(t=a[0])}}return a=no(),a.memoizedState=a.baseState=t,o={pending:null,lanes:0,dispatch:null,lastRenderedReducer:rS,lastRenderedState:t},a.queue=o,a=hS.bind(null,Ke,o),o.dispatch=a,o=ag(!1),n=vg.bind(null,Ke,!1,o.queue),o=no(),r={state:t,dispatch:null,action:e,pending:null},o.queue=r,a=VT.bind(null,Ke,r,n,a),r.dispatch=a,o.memoizedState=e,[t,a,!1]}function Af(e){var t=Pt();return nS(t,jt,e)}function nS(e,t,a){if(t=eg(e,t,rS)[0],e=yu(dr)[0],typeof t==="object"&&t!==null&&typeof t.then==="function")try{var o=Ki(t)}catch(u){if(u===Qu)throw Ep;throw u}else o=t;t=Pt();var r=t.queue,n=r.dispatch;return a!==t.memoizedState&&(Ke.flags|=2048,bu(ar|po,{destroy:void 0},jT.bind(null,r,a),null)),[o,n,e]}function jT(e,t){e.action=t}function Mf(e){var t=Pt(),a=jt;if(a!==null)return nS(t,a,e);Pt(),t=t.memoizedState,a=Pt();var o=a.queue.dispatch;return a.memoizedState=e,[t,o,!1]}function bu(e,t,a,o){return e={tag:e,create:a,deps:o,inst:t,next:null},t=Ke.updateQueue,t===null&&(t=Tf(),Ke.updateQueue=t),a=t.lastEffect,a===null?t.lastEffect=e.next=e:(o=a.next,a.next=e,e.next=o,t.lastEffect=e),e}function lg(e){var t=no();return e={current:e},t.memoizedState=e}function ys(e,t,a,o){var r=no();Ke.flags|=e,r.memoizedState=bu(ar|t,{destroy:void 0},a,o===void 0?null:o)}function vo(e,t,a,o){var r=Pt();o=o===void 0?null:o;var n=r.memoizedState.inst;jt!==null&&o!==null&&Yh(o,jt.memoizedState.deps)?r.memoizedState=bu(t,n,a,o):(Ke.flags|=e,r.memoizedState=bu(ar|t,n,a,o))}function Df(e,t){(Ke.mode&hr)!==Ve?ys(276826112,po,e,t):ys(8390656,po,e,t)}function XT(e){Ke.flags|=4;var t=Ke.updateQueue;if(t===null)t=Tf(),Ke.updateQueue=t,t.events=[e];else{var a=t.events;a===null?t.events=[e]:a.push(e)}}function sg(e){var t=no(),a={impl:e};return t.memoizedState=a,function(){if((It&Na)!==Ha)throw Error("A function wrapped in useEffectEvent can't be called during rendering.");return a.impl.apply(void 0,arguments)}}function Ef(e){var t=Pt().memoizedState;return XT({ref:t,nextImpl:e}),function(){if((It&Na)!==Ha)throw Error("A function wrapped in useEffectEvent can't be called during rendering.");return t.impl.apply(void 0,arguments)}}function ug(e,t){var a=4194308;return(Ke.mode&hr)!==Ve&&(a|=134217728),ys(a,_o,e,t)}function lS(e,t){if(typeof t==="function"){e=e();var a=t(e);return function(){typeof a==="function"?a():t(null)}}if(t!==null&&t!==void 0)return t.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(t).join(", ")+"}"),e=e(),t.current=e,function(){t.current=null}}function ig(e,t,a){typeof t!=="function"&&console.error("Expected useImperativeHandle() second argument to be a function that creates a handle. Instead received: %s.",t!==null?typeof t:"null"),a=a!==null&&a!==void 0?a.concat([e]):null;var o=4194308;(Ke.mode&hr)!==Ve&&(o|=134217728),ys(o,_o,lS.bind(null,t,e),a)}function qf(e,t,a){typeof t!=="function"&&console.error("Expected useImperativeHandle() second argument to be a function that creates a handle. Instead received: %s.",t!==null?typeof t:"null"),a=a!==null&&a!==void 0?a.concat([e]):null,vo(4,_o,lS.bind(null,t,e),a)}function cg(e,t){return no().memoizedState=[e,t===void 0?null:t],e}function Of(e,t){var a=Pt();t=t===void 0?null:t;var o=a.memoizedState;if(t!==null&&Yh(t,o[1]))return o[0];return a.memoizedState=[e,t],e}function dg(e,t){var a=no();t=t===void 0?null:t;var o=e();if(qs){Yt(!0);try{e()}finally{Yt(!1)}}return a.memoizedState=[o,t],o}function Nf(e,t){var a=Pt();t=t===void 0?null:t;var o=a.memoizedState;if(t!==null&&Yh(t,o[1]))return o[0];if(o=e(),qs){Yt(!0);try{e()}finally{Yt(!1)}}return a.memoizedState=[o,t],o}function fg(e,t){var a=no();return pg(a,e,t)}function sS(e,t){var a=Pt();return iS(a,jt.memoizedState,e,t)}function uS(e,t){var a=Pt();return jt===null?pg(a,e,t):iS(a,jt.memoizedState,e,t)}function pg(e,t,a){if(a===void 0||(_n&1073741824)!==0&&(it&261930)===0)return e.memoizedState=t;return e.memoizedState=a,e=c0(),Ke.lanes|=e,El|=e,a}function iS(e,t,a,o){if(io(a,t))return a;if(Zu.current!==null)return e=pg(e,a,o),io(e,t)||(Ia=!0),e;if((_n&42)===0||(_n&1073741824)!==0&&(it&261930)===0)return Ia=!0,e.memoizedState=a;return e=c0(),Ke.lanes|=e,El|=e,t}function Bf(){j.asyncTransitions--}function cS(e,t,a,o,r){var n=zt.p;zt.p=n!==0&&n<mr?n:mr;var u=j.T,f={};f._updatedFibers=new Set,j.T=f,vg(e,!1,t,a);try{var m=r(),y=j.S;if(y!==null&&y(f,m),m!==null&&typeof m==="object"&&typeof m.then==="function"){j.asyncTransitions++,m.then(Bf,Bf);var q=HT(m,o);Wi(e,t,q,qo(e))}else Wi(e,t,o,qo(e))}catch(O){Wi(e,t,{then:function(){},status:"rejected",reason:O},qo(e))}finally{zt.p=n,u!==null&&f.types!==null&&(u.types!==null&&u.types!==f.types&&console.error("We expected inner Transitions to have transferred the outer types set and that you cannot add to the outer Transition while inside the inner.This is a bug in React."),u.types=f.types),j.T=u,u===null&&f._updatedFibers&&(e=f._updatedFibers.size,f._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."))}}function mg(e,t,a,o){if(e.tag!==5)throw Error("Expected the form instance to be a HostComponent. This is a bug in React.");var r=dS(e).queue;PT(e),cS(e,r,t,Vs,a===null?L:function(){return fS(e),a(o)})}function dS(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:Vs,baseState:Vs,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:dr,lastRenderedState:Vs},next:null};var a={};return t.next={memoizedState:a,baseState:a,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:dr,lastRenderedState:a},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function fS(e){j.T===null&&console.error("requestFormReset was called outside a transition or action. To fix, move to an action, or wrap with startTransition.");var t=dS(e);t.next===null&&(t=e.alternate.memoizedState),Wi(e,t.next.queue,{},qo(e))}function hg(){var e=ag(!1);return e=cS.bind(null,Ke,e.queue,!0,!1),no().memoizedState=e,[!1,e]}function pS(){var e=yu(dr)[0],t=Pt().memoizedState;return[typeof e==="boolean"?e:Ki(e),t]}function mS(){var e=Zi(dr)[0],t=Pt().memoizedState;return[typeof e==="boolean"?e:Ki(e),t]}function vs(){return ta(sd)}function gg(){var e=no(),t=Xt.identifierPrefix;if(vt){var a=Nn,o=On;a=(o&~(1<<32-lo(o)-1)).toString(32)+a,t="_"+t+"R_"+a,a=zp++,0<a&&(t+="H"+a.toString(32)),t+="_"}else a=kM++,t="_"+t+"r_"+a.toString(32)+"_";return e.memoizedState=t}function yg(){return no().memoizedState=YT.bind(null,Ke)}function YT(e,t){for(var a=e.return;a!==null;){switch(a.tag){case 24:case 3:var o=qo(a),r=sl(o),n=ul(a,r,o);n!==null&&(Br(o,"refresh()",e),ia(n,a,o),Yi(n,a,o)),e=zh(),t!==null&&t!==void 0&&n!==null&&console.error("The seed argument is not enabled outside experimental channels."),r.payload={cache:e};return}a=a.return}}function $T(e,t,a){var o=arguments;typeof o[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()."),o=qo(e);var r={lane:o,revertLane:0,gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null};zf(e)?gS(t,r):(r=kh(e,t,r,o),r!==null&&(Br(o,"dispatch()",e),ia(r,e,o),yS(r,t,o)))}function hS(e,t,a){var o=arguments;typeof o[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()."),o=qo(e),Wi(e,t,a,o)&&Br(o,"setState()",e)}function Wi(e,t,a,o){var r={lane:o,revertLane:0,gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null};if(zf(e))gS(t,r);else{var n=e.alternate;if(e.lanes===0&&(n===null||n.lanes===0)&&(n=t.lastRenderedReducer,n!==null)){var u=j.H;j.H=yr;try{var f=t.lastRenderedState,m=n(f,a);if(r.hasEagerState=!0,r.eagerState=m,io(m,f))return uf(e,t,r,0),Xt===null&&sf(),!1}catch(y){}finally{j.H=u}}if(a=kh(e,t,r,o),a!==null)return ia(a,e,o),yS(a,t,o),!0}return!1}function vg(e,t,a,o){if(j.T===null&&Rs===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."),o={lane:2,revertLane:$g(),gesture:null,action:o,hasEagerState:!1,eagerState:null,next:null},zf(e)){if(t)throw Error("Cannot update optimistic state while rendering.");console.error("Cannot call startTransition while rendering.")}else t=kh(e,a,o,2),t!==null&&(Br(2,"setOptimistic()",e),ia(t,e,2))}function zf(e){var t=e.alternate;return e===Ke||t!==null&&t===Ke}function gS(e,t){ei=Bp=!0;var a=e.pending;a===null?t.next=t:(t.next=a.next,a.next=t),e.pending=t}function yS(e,t,a){if((a&4194048)!==0){var o=t.lanes;o&=e.pendingLanes,a|=o,t.lanes=a,rs(e,a)}}function bg(e){if(e!==null&&typeof e!=="function"){var t=String(e);mw.has(t)||(mw.add(t),console.error("Expected the last optional `callback` argument to be a function. Instead received: %s.",e))}}function xg(e,t,a,o){var r=e.memoizedState,n=a(o,r);if(e.mode&to){Yt(!0);try{n=a(o,r)}finally{Yt(!1)}}n===void 0&&(t=K(t)||"Component",cw.has(t)||(cw.add(t),console.error("%s.getDerivedStateFromProps(): A valid state object (or null) must be returned. You have returned undefined.",t))),r=n===null||n===void 0?r:pt({},r,n),e.memoizedState=r,e.lanes===0&&(e.updateQueue.baseState=r)}function vS(e,t,a,o,r,n,u){var f=e.stateNode;if(typeof f.shouldComponentUpdate==="function"){if(a=f.shouldComponentUpdate(o,n,u),e.mode&to){Yt(!0);try{a=f.shouldComponentUpdate(o,n,u)}finally{Yt(!1)}}return a===void 0&&console.error("%s.shouldComponentUpdate(): Returned undefined instead of a boolean value. Make sure to return true or false.",K(t)||"Component"),a}return t.prototype&&t.prototype.isPureReactComponent?!_i(a,o)||!_i(r,n):!0}function bS(e,t,a,o){var r=t.state;typeof t.componentWillReceiveProps==="function"&&t.componentWillReceiveProps(a,o),typeof t.UNSAFE_componentWillReceiveProps==="function"&&t.UNSAFE_componentWillReceiveProps(a,o),t.state!==r&&(e=V(e)||"Component",nw.has(e)||(nw.add(e),console.error("%s.componentWillReceiveProps(): Assigning directly to this.state is deprecated (except inside a component's constructor). Use setState instead.",e)),mv.enqueueReplaceState(t,t.state,null))}function bs(e,t){var a=t;if("ref"in t){a={};for(var o in t)o!=="ref"&&(a[o]=t[o])}if(e=e.defaultProps){a===t&&(a=pt({},a));for(var r in e)a[r]===void 0&&(a[r]=e[r])}return a}function xS(e){jy(e),console.warn(`%s
|
|
116
116
|
|
|
117
117
|
%s
|
|
118
118
|
`,ti?"An error occurred in the <"+ti+"> 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 SS(e){var t=ti?"The above error occurred in the <"+ti+"> component.":"The above error occurred in one of your React components.",a="React will try to recreate this component tree from scratch using the error boundary you provided, "+((hv||"Anonymous")+".");if(typeof e==="object"&&e!==null&&typeof e.environmentName==="string"){var o=e.environmentName;e=[`%o
|
|
120
120
|
|
|
121
121
|
%s
|
|
122
122
|
|
|
123
123
|
%s
|
|
124
|
-
`,e,t,a].slice(0),typeof e[0]==="string"?e.splice(0,1,
|
|
124
|
+
`,e,t,a].slice(0),typeof e[0]==="string"?e.splice(0,1,Kw+" "+e[0],Zw,um+o+um,Ww):e.splice(0,0,Kw,Zw,um+o+um,Ww),e.unshift(console),o=XM.apply(console.error,e),o()}else console.error(`%o
|
|
125
125
|
|
|
126
126
|
%s
|
|
127
127
|
|
|
128
128
|
%s
|
|
129
|
-
`,e,t,a)}function
|
|
129
|
+
`,e,t,a)}function LS(e){jy(e)}function Uf(e,t){try{ti=t.source?V(t.source):null,hv=null;var a=t.value;if(j.actQueue!==null)j.thrownErrors.push(a);else{var o=e.onUncaughtError;o(a,{componentStack:t.stack})}}catch(r){setTimeout(function(){throw r})}}function CS(e,t,a){try{ti=a.source?V(a.source):null,hv=V(t);var o=e.onCaughtError;o(a.value,{componentStack:a.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(r){setTimeout(function(){throw r})}}function Sg(e,t,a){return a=sl(a),a.tag=uv,a.payload={element:null},a.callback=function(){Y(t.source,Uf,e,t)},a}function Lg(e){return e=sl(e),e.tag=uv,e}function Cg(e,t,a,o){var r=a.type.getDerivedStateFromError;if(typeof r==="function"){var n=o.value;e.payload=function(){return r(n)},e.callback=function(){gx(a),Y(o.source,CS,t,a,o)}}var u=a.stateNode;u!==null&&typeof u.componentDidCatch==="function"&&(e.callback=function(){gx(a),Y(o.source,CS,t,a,o),typeof r!=="function"&&(Ol===null?Ol=new Set([this]):Ol.add(this)),SM(this,o),typeof r==="function"||(a.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.",V(a)||"Unknown")})}function QT(e,t,a,o,r){if(a.flags|=32768,Jr&&lc(e,r),o!==null&&typeof o==="object"&&typeof o.then==="function"){if(t=a.alternate,t!==null&&hu(t,a,r,!0),vt&&(an=!0),a=Po.current,a!==null){switch(a.tag){case 31:case 13:return tr===null?Yf():a.alternate===null&&la===Vn&&(la=_p),a.flags&=-257,a.flags|=65536,a.lanes=r,o===qp?a.flags|=16384:(t=a.updateQueue,t===null?a.updateQueue=new Set([o]):t.add(o),Vg(e,o,r)),!1;case 22:return a.flags|=65536,o===qp?a.flags|=16384:(t=a.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([o])},a.updateQueue=t):(a=t.retryQueue,a===null?t.retryQueue=new Set([o]):a.add(o)),Vg(e,o,r)),!1}throw Error("Unexpected Suspense handler tag ("+a.tag+"). This is a bug in React.")}return Vg(e,o,r),Yf(),!1}if(vt)return an=!0,t=Po.current,t!==null?((t.flags&65536)===0&&(t.flags|=256),t.flags|=65536,t.lanes=r,o!==Zy&&Fi(Ao(Error("There was an error while hydrating but React was able to recover by instead client rendering from the nearest Suspense boundary.",{cause:o}),a))):(o!==Zy&&Fi(Ao(Error("There was an error while hydrating but React was able to recover by instead client rendering the entire root.",{cause:o}),a)),e=e.current.alternate,e.flags|=65536,r&=-r,e.lanes|=r,o=Ao(o,a),r=Sg(e.stateNode,o,r),wf(e,r),la!==Ml&&(la=Os)),!1;var n=Ao(Error("There was an error during concurrent rendering but React was able to recover by instead synchronously rendering the entire root.",{cause:o}),a);if(Wc===null?Wc=[n]:Wc.push(n),la!==Ml&&(la=Os),t===null)return!0;o=Ao(o,a),a=t;do{switch(a.tag){case 3:return a.flags|=65536,e=r&-r,a.lanes|=e,e=Sg(a.stateNode,o,e),wf(a,e),!1;case 1:if(t=a.type,n=a.stateNode,(a.flags&128)===0&&(typeof t.getDerivedStateFromError==="function"||n!==null&&typeof n.componentDidCatch==="function"&&(Ol===null||!Ol.has(n))))return a.flags|=65536,r&=-r,a.lanes|=r,r=Lg(r),Cg(r,e,a,o),wf(a,r),!1}a=a.return}while(a!==null);return!1}function Ya(e,t,a,o){t.child=e===null?$C(t,null,a,o):Es(t,e.child,a,o)}function wS(e,t,a,o,r){a=a.render;var n=t.ref;if("ref"in o){var u={};for(var f in o)f!=="ref"&&(u[f]=o[f])}else u=o;if(ms(t),o=$h(e,t,a,u,n,r),f=Kh(),e!==null&&!Ia)return Zh(e,t,r),Rn(e,t,r);return vt&&f&&Dh(t),t.flags|=1,Ya(e,t,o,r),t.child}function kS(e,t,a,o,r){if(e===null){var n=a.type;if(typeof n==="function"&&!Th(n)&&n.defaultProps===void 0&&a.compare===null)return a=cs(n),t.tag=15,t.type=a,kg(t,n),IS(e,t,a,o,r);return e=Rh(a.type,null,o,t,t.mode,r),e.ref=t.ref,e.return=t,t.child=e}if(n=e.child,!Dg(e,r)){var u=n.memoizedProps;if(a=a.compare,a=a!==null?a:_i,a(u,o)&&e.ref===t.ref)return Rn(e,t,r)}return t.flags|=1,e=wn(n,o),e.ref=t.ref,e.return=t,t.child=e}function IS(e,t,a,o,r){if(e!==null){var n=e.memoizedProps;if(_i(n,o)&&e.ref===t.ref&&t.type===e.type)if(Ia=!1,t.pendingProps=o=n,Dg(e,r))(e.flags&131072)!==0&&(Ia=!0);else return t.lanes=e.lanes,Rn(e,t,r)}return wg(e,t,a,o,r)}function TS(e,t,a,o){var r=o.children,n=e!==null?e.memoizedState:null;if(e===null&&t.stateNode===null&&(t.stateNode={_visibility:Tc,_pendingMarkers:null,_retryCache:null,_transitions:null}),o.mode==="hidden"){if((t.flags&128)!==0){if(n=n!==null?n.baseLanes|a:a,e!==null){o=t.child=e.child;for(r=0;o!==null;)r=r|o.lanes|o.childLanes,o=o.sibling;o=r&~n}else o=0,t.child=null;return RS(e,t,n,a,o)}if((a&536870912)!==0)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&vf(t,n!==null?n.cachePool:null),n!==null?Gx(t,n):Vh(t),Vx(t);else return o=t.lanes=536870912,RS(e,t,n!==null?n.baseLanes|a:a,a,o)}else n!==null?(vf(t,n.cachePool),Gx(t,n),cl(t),t.memoizedState=null):(e!==null&&vf(t,null),Vh(t),cl(t));return Ya(e,t,r,a),t.child}function Ji(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:Tc,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function RS(e,t,a,o,r){var n=_h();return n=n===null?null:{parent:Ca._currentValue,pool:n},t.memoizedState={baseLanes:a,cachePool:n},e!==null&&vf(t,null),Vh(t),Vx(t),e!==null&&hu(e,t,o,!0),t.childLanes=r,null}function Pf(e,t){var a=t.hidden;return a!==void 0&&console.error(`<Activity> doesn't accept a hidden prop. Use mode="hidden" instead.
|
|
130
130
|
- <Activity %s>
|
|
131
|
-
+ <Activity %s>`,a===!0?"hidden":a===!1?"hidden={false}":"hidden={...}",a?'mode="hidden"':'mode="visible"'),t=
|
|
131
|
+
+ <Activity %s>`,a===!0?"hidden":a===!1?"hidden={false}":"hidden={...}",a?'mode="hidden"':'mode="visible"'),t=Hf({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function AS(e,t,a){return Es(t,e.child,null,a),e=Pf(t,t.pendingProps),e.flags|=2,Eo(t),t.memoizedState=null,e}function KT(e,t,a){var o=t.pendingProps,r=(t.flags&128)!==0;if(t.flags&=-129,e===null){if(vt){if(o.mode==="hidden")return e=Pf(t,o),t.lanes=536870912,Ji(null,e);if(Xh(t),(e=Zt)?(a=eL(e,Jo),a=a!==null&&a.data===_s?a:null,a!==null&&(o={dehydrated:a,treeContext:Sx(),retryLane:536870912,hydrationErrors:null},t.memoizedState=o,o=bx(a),o.return=t,t.child=o,Ka=t,Zt=null)):a=null,a===null)throw ff(t,e),rl(t);return t.lanes=536870912,null}return Pf(t,o)}var n=e.memoizedState;if(n!==null){var u=n.dehydrated;if(Xh(t),r)if(t.flags&256)t.flags&=-257,t=AS(e,t,a);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error("Client rendering an Activity suspended it again. This is a bug in React.");else if(Cx(),(a&536870912)!==0&&Xf(t),Ia||hu(e,t,a,!1),r=(a&e.childLanes)!==0,Ia||r){if(o=Xt,o!==null&&(u=ns(o,a),u!==0&&u!==n.retryLane))throw n.retryLane=u,Ja(e,u),ia(o,e,u),gv;Yf(),t=AS(e,t,a)}else e=n.treeContext,Zt=Oo(u.nextSibling),Ka=t,vt=!0,Cl=null,an=!1,Uo=null,Jo=!1,e!==null&&Lx(t,e),t=Pf(t,o),t.flags|=4096;return t}return n=e.child,o={mode:o.mode,children:o.children},(a&536870912)!==0&&(a&e.lanes)!==0&&Xf(t),e=wn(n,o),e.ref=t.ref,t.child=e,e.return=t,e}function _f(e,t){var a=t.ref;if(a===null)e!==null&&e.ref!==null&&(t.flags|=4194816);else{if(typeof a!=="function"&&typeof a!=="object")throw Error("Expected ref to be a function, an object returned by React.createRef(), or undefined/null.");if(e===null||e.ref!==a)t.flags|=4194816}}function wg(e,t,a,o,r){if(a.prototype&&typeof a.prototype.render==="function"){var n=K(a)||"Unknown";hw[n]||(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.",n,n),hw[n]=!0)}if(t.mode&to&&gr.recordLegacyContextWarning(t,null),e===null&&(kg(t,t.type),a.contextTypes&&(n=K(a)||"Unknown",yw[n]||(yw[n]=!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)",n)))),ms(t),a=$h(e,t,a,o,void 0,r),o=Kh(),e!==null&&!Ia)return Zh(e,t,r),Rn(e,t,r);return vt&&o&&Dh(t),t.flags|=1,Ya(e,t,a,r),t.child}function MS(e,t,a,o,r,n){if(ms(t),Fn=-1,jc=e!==null&&e.type!==t.type,t.updateQueue=null,a=Qh(t,o,a,r),jx(e,t),o=Kh(),e!==null&&!Ia)return Zh(e,t,n),Rn(e,t,n);return vt&&o&&Dh(t),t.flags|=1,Ya(e,t,a,n),t.child}function DS(e,t,a,o,r){switch(g(t)){case!1:var n=t.stateNode,u=new t.type(t.memoizedProps,n.context).state;n.updater.enqueueSetState(n,u,null);break;case!0:t.flags|=128,t.flags|=65536,n=Error("Simulated error coming from DevTools");var f=r&-r;if(t.lanes|=f,u=Xt,u===null)throw Error("Expected a work-in-progress root. This is a bug in React. Please file an issue.");f=Lg(f),Cg(f,u,t,Ao(n,t)),wf(t,f)}if(ms(t),t.stateNode===null){if(u=Ll,n=a.contextType,"contextType"in a&&n!==null&&(n===void 0||n.$$typeof!==Kr)&&!pw.has(a)&&(pw.add(a),f=n===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 n!=="object"?" However, it is set to a "+typeof n+".":n.$$typeof===yy?" Did you accidentally pass the Context.Consumer instead?":" However, it is set to an object with keys {"+Object.keys(n).join(", ")+"}.",console.error("%s defines an invalid contextType. contextType should point to the Context object returned by React.createContext().%s",K(a)||"Component",f)),typeof n==="object"&&n!==null&&(u=ta(n)),n=new a(o,u),t.mode&to){Yt(!0);try{n=new a(o,u)}finally{Yt(!1)}}if(u=t.memoizedState=n.state!==null&&n.state!==void 0?n.state:null,n.updater=mv,t.stateNode=n,n._reactInternals=t,n._reactInternalInstance=rw,typeof a.getDerivedStateFromProps==="function"&&u===null&&(u=K(a)||"Component",lw.has(u)||(lw.add(u),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.",u,n.state===null?"null":"undefined",u))),typeof a.getDerivedStateFromProps==="function"||typeof n.getSnapshotBeforeUpdate==="function"){var m=f=u=null;if(typeof n.componentWillMount==="function"&&n.componentWillMount.__suppressDeprecationWarning!==!0?u="componentWillMount":typeof n.UNSAFE_componentWillMount==="function"&&(u="UNSAFE_componentWillMount"),typeof n.componentWillReceiveProps==="function"&&n.componentWillReceiveProps.__suppressDeprecationWarning!==!0?f="componentWillReceiveProps":typeof n.UNSAFE_componentWillReceiveProps==="function"&&(f="UNSAFE_componentWillReceiveProps"),typeof n.componentWillUpdate==="function"&&n.componentWillUpdate.__suppressDeprecationWarning!==!0?m="componentWillUpdate":typeof n.UNSAFE_componentWillUpdate==="function"&&(m="UNSAFE_componentWillUpdate"),u!==null||f!==null||m!==null){n=K(a)||"Component";var y=typeof a.getDerivedStateFromProps==="function"?"getDerivedStateFromProps()":"getSnapshotBeforeUpdate()";uw.has(n)||(uw.add(n),console.error(`Unsafe legacy lifecycles will not be called for components using new component APIs.
|
|
132
132
|
|
|
133
133
|
%s uses %s but also contains the following legacy lifecycles:%s%s%s
|
|
134
134
|
|
|
135
135
|
The above lifecycles should be removed. Learn more about this warning here:
|
|
136
|
-
https://react.dev/link/unsafe-component-lifecycles`,
|
|
136
|
+
https://react.dev/link/unsafe-component-lifecycles`,n,y,u!==null?`
|
|
137
137
|
`+u:"",f!==null?`
|
|
138
138
|
`+f:"",m!==null?`
|
|
139
|
-
`+m:""))}}
|
|
140
|
-
%s.childContextTypes = ...`,t.displayName||t.name||"Component"),typeof t.getDerivedStateFromProps==="function"&&(e=Y(t)||"Unknown",cw[e]||(console.error("%s: Function components do not support getDerivedStateFromProps.",e),cw[e]=!0)),typeof t.contextType==="object"&&t.contextType!==null&&(t=Y(t)||"Unknown",uw[t]||(console.error("%s: Function components do not support contextType.",t),uw[t]=!0))}function Sg(e){return{baseLanes:e,cachePool:Lx()}}function Lg(e,t,a){return e=e!==null?e.childLanes&~a:0,t&&(e|=Lo),e}function k0(e,t,a){var o,n=t.pendingProps;b(t)&&(t.flags|=128);var r=!1,u=(t.flags&128)!==0;if((o=u)||(o=e!==null&&e.memoizedState===null?!1:(va.current&Fc)!==0),o&&(r=!0,t.flags&=-129),o=(t.flags&32)!==0,t.flags&=-33,e===null){if(vt){if(r?il(t):cl(t),(e=Zt)?(a=XS(e,Jo),a=a!==null&&a.data!==_s?a:null,a!==null&&(o={dehydrated:a,treeContext:px(),retryLane:536870912,hydrationErrors:null},t.memoizedState=o,o=dx(a),o.return=t,t.child=o,Ka=t,Zt=null)):a=null,a===null)throw df(t,e),nl(t);return ty(a)?t.lanes=32:t.lanes=536870912,null}var f=n.children;if(n=n.fallback,r){cl(t);var m=t.mode;return f=_f({mode:"hidden",children:f},m),n=ds(n,m,a,null),f.return=t,n.return=t,f.sibling=n,t.child=f,n=t.child,n.memoizedState=Sg(a),n.childLanes=Lg(e,o,a),t.memoizedState=fv,Wi(null,n)}return il(t),Cg(t,f)}var y=e.memoizedState;if(y!==null){var O=y.dehydrated;if(O!==null){if(u)t.flags&256?(il(t),t.flags&=-257,t=wg(e,t,a)):t.memoizedState!==null?(cl(t),t.child=e.child,t.flags|=128,t=null):(cl(t),f=n.fallback,m=t.mode,n=_f({mode:"visible",children:n.children},m),f=ds(f,m,a,null),f.flags|=2,n.return=t,f.return=t,n.sibling=f,t.child=n,Es(t,e.child,null,a),n=t.child,n.memoizedState=Sg(a),n.childLanes=Lg(e,o,a),t.memoizedState=fv,t=Wi(null,n));else if(il(t),hx(),(a&536870912)!==0&&jf(t),ty(O)){if(o=O.nextSibling&&O.nextSibling.dataset,o){f=o.dgst;var q=o.msg;m=o.stck;var R=o.cstck}r=q,o=f,n=m,O=R,f=r,m=O,f=f?Error(f):Error("The server could not finish this Suspense boundary, likely due to an error during server rendering. Switched to client rendering."),f.stack=n||"",f.digest=o,o=m===void 0?null:m,n={value:f,source:null,stack:o},typeof o==="string"&&jy.set(f,n),Hi(n),t=wg(e,t,a)}else if(Ta||hu(e,t,a,!1),o=(a&e.childLanes)!==0,Ta||o){if(o=Xt,o!==null&&(n=rs(o,a),n!==0&&n!==y.retryLane))throw y.retryLane=n,Ja(e,n),ia(o,e,n),dv;ey(O)||Xf(),t=wg(e,t,a)}else ey(O)?(t.flags|=192,t.child=e.child,t=null):(e=y.treeContext,Zt=qo(O.nextSibling),Ka=t,vt=!0,Cl=null,or=!1,Uo=null,Jo=!1,e!==null&&mx(t,e),t=Cg(t,n.children),t.flags|=4096);return t}}if(r)return cl(t),f=n.fallback,m=t.mode,R=e.child,O=R.sibling,n=wr(R,{mode:"hidden",children:n.children}),n.subtreeFlags=R.subtreeFlags&65011712,O!==null?f=wr(O,f):(f=ds(f,m,a,null),f.flags|=2),f.return=t,n.return=t,n.sibling=f,t.child=n,Wi(null,n),n=t.child,f=e.child.memoizedState,f===null?f=Sg(a):(m=f.cachePool,m!==null?(R=Ca._currentValue,m=m.parent!==R?{parent:R,pool:R}:m):m=Lx(),f={baseLanes:f.baseLanes|a,cachePool:m}),n.memoizedState=f,n.childLanes=Lg(e,o,a),t.memoizedState=fv,Wi(e.child,n);return y!==null&&(a&62914560)===a&&(a&e.lanes)!==0&&jf(t),il(t),a=e.child,e=a.sibling,a=wr(a,{mode:"visible",children:n.children}),a.return=t,a.sibling=null,e!==null&&(o=t.deletions,o===null?(t.deletions=[e],t.flags|=16):o.push(e)),t.child=a,t.memoizedState=null,a}function Cg(e,t){return t=_f({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function _f(e,t){return e=w(22,e,null,t),e.lanes=0,e}function wg(e,t,a){return Es(t,e.child,null,a),e=Cg(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function T0(e,t,a){e.lanes|=t;var o=e.alternate;o!==null&&(o.lanes|=t),Mh(e.return,t,a)}function kg(e,t,a,o,n,r){var u=e.memoizedState;u===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:o,tail:a,tailMode:n,treeForkCount:r}:(u.isBackwards=t,u.rendering=null,u.renderingStartTime=0,u.last=o,u.tail=a,u.tailMode=n,u.treeForkCount=r)}function I0(e,t,a){var o=t.pendingProps,n=o.revealOrder,r=o.tail,u=o.children,f=va.current;if((o=(f&Fc)!==0)?(f=f&Wu|Fc,t.flags|=128):f&=Wu,Ie(va,f,t),f=n==null?"null":n,n!=="forwards"&&n!=="unstable_legacy-backwards"&&n!=="together"&&n!=="independent"&&!dw[f])if(dw[f]=!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(f=r==null?"null":r,!Up[f])if(r==null){if(n==="forwards"||n==="backwards"||n==="unstable_legacy-backwards")Up[f]=!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 r!=="visible"&&r!=="collapsed"&&r!=="hidden"?(Up[f]=!0,console.error('"%s" is not a supported value for tail on <SuspenseList />. Did you mean "visible", "collapsed" or "hidden"?',r)):n!=="forwards"&&n!=="backwards"&&n!=="unstable_legacy-backwards"&&(Up[f]=!0,console.error('<SuspenseList tail="%s" /> is only valid if revealOrder is "forwards" or "backwards". Did you mean to specify revealOrder="forwards"?',r));e:if((n==="forwards"||n==="backwards"||n==="unstable_legacy-backwards")&&u!==void 0&&u!==null&&u!==!1)if(Ea(u)){for(f=0;f<u.length;f++)if(!Ex(u[f],f))break e}else if(f=te(u),typeof f==="function"){if(f=f.call(u))for(var m=f.next(),y=0;!m.done;m=f.next()){if(!Ex(m.value,y))break e;y++}}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(Ya(e,t,u,a),vt?(ol(),u=Ic):u=0,!o&&e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&T0(e,a,t);else if(e.tag===19)T0(e,a,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}switch(n){case"forwards":a=t.child;for(n=null;a!==null;)e=a.alternate,e!==null&&wf(e)===null&&(n=a),a=a.sibling;a=n,a===null?(n=t.child,t.child=null):(n=a.sibling,a.sibling=null),kg(t,!1,n,a,r,u);break;case"backwards":case"unstable_legacy-backwards":a=null,n=t.child;for(t.child=null;n!==null;){if(e=n.alternate,e!==null&&wf(e)===null){t.child=n;break}e=n.sibling,n.sibling=a,a=n,n=e}kg(t,!0,a,null,r,u);break;case"together":kg(t,!1,null,null,void 0,u);break;default:t.memoizedState=null}return t.child}function Rr(e,t,a){if(e!==null&&(t.dependencies=e.dependencies),io=-1,El|=t.lanes,(a&t.childLanes)===0)if(e!==null){if(hu(e,t,a,!1),(a&t.childLanes)===0)return null}else return null;if(e!==null&&t.child!==e.child)throw Error("Resuming work not yet implemented.");if(t.child!==null){e=t.child,a=wr(e,e.pendingProps),t.child=a;for(a.return=t;e.sibling!==null;)e=e.sibling,a=a.sibling=wr(e,e.pendingProps),a.return=t;a.sibling=null}return t.child}function Tg(e,t){if((e.lanes&t)!==0)return!0;return e=e.dependencies,e!==null&&pf(e)?!0:!1}function HI(e,t,a){switch(t.tag){case 3:oe(t,t.stateNode.containerInfo),rl(t,Ca,e.memoizedState.cache),ps();break;case 27:case 5:We(t);break;case 4:oe(t,t.stateNode.containerInfo);break;case 10:rl(t,t.type,t.memoizedProps.value);break;case 12:(a&t.childLanes)!==0&&(t.flags|=4),t.flags|=2048;var o=t.stateNode;o.effectDuration=-0,o.passiveEffectDuration=-0;break;case 31:if(t.memoizedState!==null)return t.flags|=128,Hh(t),null;break;case 13:if(o=t.memoizedState,o!==null){if(o.dehydrated!==null)return il(t),t.flags|=128,null;if((a&t.child.childLanes)!==0)return k0(e,t,a);return il(t),e=Rr(e,t,a),e!==null?e.sibling:null}il(t);break;case 19:var n=(e.flags&128)!==0;if(o=(a&t.childLanes)!==0,o||(hu(e,t,a,!1),o=(a&t.childLanes)!==0),n){if(o)return I0(e,t,a);t.flags|=128}if(n=t.memoizedState,n!==null&&(n.rendering=null,n.tail=null,n.lastEffect=null),Ie(va,va.current,t),o)break;else return null;case 22:return t.lanes=0,b0(e,t,a,t.pendingProps);case 24:rl(t,Ca,e.memoizedState.cache)}return Rr(e,t,a)}function Ig(e,t,a){if(t._debugNeedsRemount&&e!==null){a=Ch(t.type,t.key,t.pendingProps,t._debugOwner||null,t.mode,t.lanes),a._debugStack=t._debugStack,a._debugTask=t._debugTask;var o=t.return;if(o===null)throw Error("Cannot swap the root fiber.");if(e.alternate=null,t.alternate=null,a.index=t.index,a.sibling=t.sibling,a.return=t.return,a.ref=t.ref,a._debugInfo=t._debugInfo,t===o.child)o.child=a;else{var n=o.child;if(n===null)throw Error("Expected parent to have a child.");for(;n.sibling!==t;)if(n=n.sibling,n===null)throw Error("Expected to find the previous sibling.");n.sibling=a}return t=o.deletions,t===null?(o.deletions=[e],o.flags|=16):t.push(e),a.flags|=2,a}if(e!==null)if(e.memoizedProps!==t.pendingProps||t.type!==e.type)Ta=!0;else{if(!Tg(e,a)&&(t.flags&128)===0)return Ta=!1,HI(e,t,a);Ta=(e.flags&131072)!==0?!0:!1}else{if(Ta=!1,o=vt)ol(),o=(t.flags&1048576)!==0;o&&(o=t.index,ol(),fx(t,Ic,o))}switch(t.lanes=0,t.tag){case 16:e:if(o=t.pendingProps,e=ll(t.elementType),t.type=e,typeof e==="function")Lh(e)?(o=bs(e,o),t.tag=1,t.type=e=cs(e),t=C0(null,t,e,o,a)):(t.tag=0,xg(t,e),t.type=e=cs(e),t=bg(null,t,e,o,a));else{if(e!==void 0&&e!==null){if(n=e.$$typeof,n===mc){t.tag=11,t.type=e=Sh(e),t=g0(null,t,e,o,a);break e}else if(n===lp){t.tag=14,t=y0(null,t,e,o,a);break e}}throw t="",e!==null&&typeof e==="object"&&e.$$typeof===No&&(t=" Did you wrap a component in React.lazy() more than once?"),a=Y(e)||e,Error("Element type is invalid. Received a promise that resolves to: "+a+". Lazy element type must resolve to a class or function."+t)}return t;case 0:return bg(e,t,t.type,t.pendingProps,a);case 1:return o=t.type,n=bs(o,t.pendingProps),C0(e,t,o,n,a);case 3:e:{if(oe(t,t.stateNode.containerInfo),e===null)throw Error("Should have a current fiber. This is a bug in React.");o=t.pendingProps;var r=t.memoizedState;n=r.element,Uh(e,t),$i(t,o,null,a);var u=t.memoizedState;if(o=u.cache,rl(t,Ca,o),o!==r.cache&&Dh(t,[Ca],a,!0),Yi(),o=u.element,r.isDehydrated)if(r={element:o,isDehydrated:!1,cache:u.cache},t.updateQueue.baseState=r,t.memoizedState=r,t.flags&256){t=w0(e,t,o,a);break e}else if(o!==n){n=Ao(Error("This root received an early update, before anything was able hydrate. Switched the entire root to client rendering."),t),Hi(n),t=w0(e,t,o,a);break e}else{switch(e=t.stateNode.containerInfo,e.nodeType){case 9:e=e.body;break;default:e=e.nodeName==="HTML"?e.ownerDocument.body:e}Zt=qo(e.firstChild),Ka=t,vt=!0,Cl=null,or=!1,Uo=null,Jo=!0,a=_C(t,null,o,a);for(t.child=a;a;)a.flags=a.flags&-3|4096,a=a.sibling}else{if(ps(),o===n){t=Rr(e,t,a);break e}Ya(e,t,o,a)}t=t.child}return t;case 26:return Pf(e,t),e===null?(a=WS(t.type,null,t.pendingProps,null))?t.memoizedState=a:vt||(a=t.type,e=t.pendingProps,o=Me(gl.current),o=Kf(o).createElement(a),o[Qa]=t,o[lo]=e,$a(o,a,e),qe(o),t.stateNode=o):t.memoizedState=WS(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return We(t),e===null&&vt&&(o=Me(gl.current),n=Ce(),o=t.stateNode=KS(t.type,t.pendingProps,o,n,!1),or||(n=US(o,t.type,t.pendingProps,n),n!==null&&(fs(t,0).serverProps=n)),Ka=t,Jo=!0,n=Zt,ml(t.type)?(Nv=n,Zt=qo(o.firstChild)):Zt=n),Ya(e,t,t.pendingProps.children,a),Pf(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&vt&&(r=Ce(),o=ph(t.type,r.ancestorInfo),n=Zt,(u=!n)||(u=AR(n,t.type,t.pendingProps,Jo),u!==null?(t.stateNode=u,or||(r=US(u,t.type,t.pendingProps,r),r!==null&&(fs(t,0).serverProps=r)),Ka=t,Zt=qo(u.firstChild),Jo=!1,r=!0):r=!1,u=!r),u&&(o&&df(t,n),nl(t))),We(t),n=t.type,r=t.pendingProps,u=e!==null?e.memoizedProps:null,o=r.children,Wg(n,r)?o=null:u!==null&&Wg(n,u)&&(t.flags|=32),t.memoizedState!==null&&(n=Gh(e,t,OI,null,null,a),ld._currentValue=n),Pf(e,t),Ya(e,t,o,a),t.child;case 6:return e===null&&vt&&(a=t.pendingProps,e=Ce(),o=e.ancestorInfo.current,a=o!=null?ef(a,o.tag,e.ancestorInfo.implicitRootScope):!0,e=Zt,(o=!e)||(o=MR(e,t.pendingProps,Jo),o!==null?(t.stateNode=o,Ka=t,Zt=null,o=!0):o=!1,o=!o),o&&(a&&df(t,e),nl(t))),null;case 13:return k0(e,t,a);case 4:return oe(t,t.stateNode.containerInfo),o=t.pendingProps,e===null?t.child=Es(t,null,o,a):Ya(e,t,o,a),t.child;case 11:return g0(e,t,t.type,t.pendingProps,a);case 7:return Ya(e,t,t.pendingProps,a),t.child;case 8:return Ya(e,t,t.pendingProps.children,a),t.child;case 12:return t.flags|=4,t.flags|=2048,o=t.stateNode,o.effectDuration=-0,o.passiveEffectDuration=-0,Ya(e,t,t.pendingProps.children,a),t.child;case 10:return o=t.type,n=t.pendingProps,r=n.value,"value"in n||fw||(fw=!0,console.error("The `value` prop is required for the `<Context.Provider>`. Did you misspell it or forget to pass it?")),rl(t,o,r),Ya(e,t,n.children,a),t.child;case 9:return n=t.type._context,o=t.pendingProps.children,typeof o!=="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."),ms(t),n=ta(n),o=Jy(o,n,void 0),t.flags|=1,Ya(e,t,o,a),t.child;case 14:return y0(e,t,t.type,t.pendingProps,a);case 15:return v0(e,t,t.type,t.pendingProps,a);case 19:return I0(e,t,a);case 31:return _I(e,t,a);case 22:return b0(e,t,a,t.pendingProps);case 24:return ms(t),o=ta(Ca),e===null?(n=Nh(),n===null&&(n=Xt,r=Eh(),n.pooledCache=r,hs(r),r!==null&&(n.pooledCacheLanes|=a),n=r),t.memoizedState={parent:o,cache:n},zh(t),rl(t,Ca,n)):((e.lanes&a)!==0&&(Uh(e,t),$i(t,null,null,a),Yi()),n=e.memoizedState,r=t.memoizedState,n.parent!==o?(n={parent:o,cache:o},t.memoizedState=n,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=n),rl(t,Ca,o)):(o=r.cache,rl(t,Ca,o),o!==n.cache&&Dh(t,[Ca],a,!0))),Ya(e,t,t.pendingProps.children,a),t.child;case 29:throw t.pendingProps}throw Error("Unknown unit of work tag ("+t.tag+"). This error is likely caused by a bug in React. Please file an issue.")}function Ar(e){e.flags|=4}function Rg(e,t,a,o,n){if(t=(e.mode&sM)!==Ve)t=!1;if(t){if(e.flags|=16777216,(n&335544128)===n)if(e.stateNode.complete)e.flags|=8192;else if(lS())e.flags|=8192;else throw Ds=Ep,tv}else e.flags&=-16777217}function R0(e,t){if(t.type!=="stylesheet"||(t.state.loading&nn)!==Gs)e.flags&=-16777217;else if(e.flags|=16777216,!oL(t))if(lS())e.flags|=8192;else throw Ds=Ep,tv}function Hf(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?iu():536870912,e.lanes|=t,zs|=t)}function Ji(e,t){if(!vt)switch(e.tailMode){case"hidden":t=e.tail;for(var a=null;t!==null;)t.alternate!==null&&(a=t),t=t.sibling;a===null?e.tail=null:a.sibling=null;break;case"collapsed":a=e.tail;for(var o=null;a!==null;)a.alternate!==null&&(o=a),a=a.sibling;o===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:o.sibling=null}}function $t(e){var t=e.alternate!==null&&e.alternate.child===e.child,a=0,o=0;if(t)if((e.mode&st)!==Ve){for(var{selfBaseDuration:n,child:r}=e;r!==null;)a|=r.lanes|r.childLanes,o|=r.subtreeFlags&65011712,o|=r.flags&65011712,n+=r.treeBaseDuration,r=r.sibling;e.treeBaseDuration=n}else for(n=e.child;n!==null;)a|=n.lanes|n.childLanes,o|=n.subtreeFlags&65011712,o|=n.flags&65011712,n.return=e,n=n.sibling;else if((e.mode&st)!==Ve){n=e.actualDuration,r=e.selfBaseDuration;for(var u=e.child;u!==null;)a|=u.lanes|u.childLanes,o|=u.subtreeFlags,o|=u.flags,n+=u.actualDuration,r+=u.treeBaseDuration,u=u.sibling;e.actualDuration=n,e.treeBaseDuration=r}else for(n=e.child;n!==null;)a|=n.lanes|n.childLanes,o|=n.subtreeFlags,o|=n.flags,n.return=e,n=n.sibling;return e.subtreeFlags|=o,e.childLanes=a,t}function FI(e,t,a){var o=t.pendingProps;switch(Ih(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return $t(t),null;case 1:return $t(t),null;case 3:if(a=t.stateNode,o=null,e!==null&&(o=e.memoizedState.cache),t.memoizedState.cache!==o&&(t.flags|=2048),Tr(Ca,t),he(t),a.pendingContext&&(a.context=a.pendingContext,a.pendingContext=null),e===null||e.child===null)mu(t)?(Ah(),Ar(t)):e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,Rh());return $t(t),null;case 26:var{type:n,memoizedState:r}=t;return e===null?(Ar(t),r!==null?($t(t),R0(t,r)):($t(t),Rg(t,n,null,o,a))):r?r!==e.memoizedState?(Ar(t),$t(t),R0(t,r)):($t(t),t.flags&=-16777217):(e=e.memoizedProps,e!==o&&Ar(t),$t(t),Rg(t,n,e,o,a)),null;case 27:if(St(t),a=Me(gl.current),n=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==o&&Ar(t);else{if(!o){if(t.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 $t(t),null}e=Ce(),mu(t)?gx(t,e):(e=KS(n,o,a,e,!0),t.stateNode=e,Ar(t))}return $t(t),null;case 5:if(St(t),n=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==o&&Ar(t);else{if(!o){if(t.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 $t(t),null}var u=Ce();if(mu(t))gx(t,u);else{switch(r=Me(gl.current),ph(n,u.ancestorInfo),u=u.context,r=Kf(r),u){case ci:r=r.createElementNS(qu,n);break;case nm:r=r.createElementNS(pp,n);break;default:switch(n){case"svg":r=r.createElementNS(qu,n);break;case"math":r=r.createElementNS(pp,n);break;case"script":r=r.createElement("div"),r.innerHTML="<script></script>",r=r.removeChild(r.firstChild);break;case"select":r=typeof o.is==="string"?r.createElement("select",{is:o.is}):r.createElement("select"),o.multiple?r.multiple=!0:o.size&&(r.size=o.size);break;default:r=typeof o.is==="string"?r.createElement(n,{is:o.is}):r.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(r)!=="[object HTMLUnknownElement]"||mn.call(Bw,n)||(Bw[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)))}}r[Qa]=t,r[lo]=o;e:for(u=t.child;u!==null;){if(u.tag===5||u.tag===6)r.appendChild(u.stateNode);else if(u.tag!==4&&u.tag!==27&&u.child!==null){u.child.return=u,u=u.child;continue}if(u===t)break e;for(;u.sibling===null;){if(u.return===null||u.return===t)break e;u=u.return}u.sibling.return=u.return,u=u.sibling}t.stateNode=r;e:switch($a(r,n,o),n){case"button":case"input":case"select":case"textarea":o=!!o.autoFocus;break e;case"img":o=!0;break e;default:o=!1}o&&Ar(t)}}return $t(t),Rg(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,a),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==o&&Ar(t);else{if(typeof o!=="string"&&t.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(e=Me(gl.current),a=Ce(),mu(t)){if(e=t.stateNode,a=t.memoizedProps,n=!or,o=null,r=Ka,r!==null)switch(r.tag){case 3:n&&(n=$S(e,a,o),n!==null&&(fs(t,0).serverProps=n));break;case 27:case 5:o=r.memoizedProps,n&&(n=$S(e,a,o),n!==null&&(fs(t,0).serverProps=n))}e[Qa]=t,e=e.nodeValue===a||o!==null&&o.suppressHydrationWarning===!0||OS(e.nodeValue,a)?!0:!1,e||nl(t,!0)}else n=a.ancestorInfo.current,n!=null&&ef(o,n.tag,a.ancestorInfo.implicitRootScope),e=Kf(e).createTextNode(o),e[Qa]=t,t.stateNode=e}return $t(t),null;case 31:if(a=t.memoizedState,e===null||e.memoizedState!==null){if(o=mu(t),a!==null){if(e===null){if(!o)throw Error("A dehydrated suspense component was completed without a hydrated node. This is probably a bug in React.");if(e=t.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error("Expected to have a hydrated activity instance. This error is likely caused by a bug in React. Please file an issue.");e[Qa]=t,$t(t),(t.mode&st)!==Ve&&a!==null&&(e=t.child,e!==null&&(t.treeBaseDuration-=e.treeBaseDuration))}else Ah(),ps(),(t.flags&128)===0&&(a=t.memoizedState=null),t.flags|=4,$t(t),(t.mode&st)!==Ve&&a!==null&&(e=t.child,e!==null&&(t.treeBaseDuration-=e.treeBaseDuration));e=!1}else a=Rh(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=a),e=!0;if(!e){if(t.flags&256)return Eo(t),t;return Eo(t),null}if((t.flags&128)!==0)throw Error("Client rendering an Activity suspended it again. This is a bug in React.")}return $t(t),null;case 13:if(o=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(n=o,r=mu(t),n!==null&&n.dehydrated!==null){if(e===null){if(!r)throw Error("A dehydrated suspense component was completed without a hydrated node. This is probably a bug in React.");if(r=t.memoizedState,r=r!==null?r.dehydrated:null,!r)throw Error("Expected to have a hydrated suspense instance. This error is likely caused by a bug in React. Please file an issue.");r[Qa]=t,$t(t),(t.mode&st)!==Ve&&n!==null&&(n=t.child,n!==null&&(t.treeBaseDuration-=n.treeBaseDuration))}else Ah(),ps(),(t.flags&128)===0&&(n=t.memoizedState=null),t.flags|=4,$t(t),(t.mode&st)!==Ve&&n!==null&&(n=t.child,n!==null&&(t.treeBaseDuration-=n.treeBaseDuration));n=!1}else n=Rh(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=n),n=!0;if(!n){if(t.flags&256)return Eo(t),t;return Eo(t),null}}if(Eo(t),(t.flags&128)!==0)return t.lanes=a,(t.mode&st)!==Ve&&Vi(t),t;return a=o!==null,e=e!==null&&e.memoizedState!==null,a&&(o=t.child,n=null,o.alternate!==null&&o.alternate.memoizedState!==null&&o.alternate.memoizedState.cachePool!==null&&(n=o.alternate.memoizedState.cachePool.pool),r=null,o.memoizedState!==null&&o.memoizedState.cachePool!==null&&(r=o.memoizedState.cachePool.pool),r!==n&&(o.flags|=2048)),a!==e&&a&&(t.child.flags|=8192),Hf(t,t.updateQueue),$t(t),(t.mode&st)!==Ve&&a&&(e=t.child,e!==null&&(t.treeBaseDuration-=e.treeBaseDuration)),null;case 4:return he(t),e===null&&jg(t.stateNode.containerInfo),$t(t),null;case 10:return Tr(t.type,t),$t(t),null;case 19:if(Se(va,t),o=t.memoizedState,o===null)return $t(t),null;if(n=(t.flags&128)!==0,r=o.rendering,r===null)if(n)Ji(o,!1);else{if(la!==Vr||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(r=wf(e),r!==null){t.flags|=128,Ji(o,!1),e=r.updateQueue,t.updateQueue=e,Hf(t,e),t.subtreeFlags=0,e=a;for(a=t.child;a!==null;)cx(a,e),a=a.sibling;return Ie(va,va.current&Wu|Fc,t),vt&&kr(t,o.treeForkCount),t.child}e=e.sibling}o.tail!==null&&Ua()>jp&&(t.flags|=128,n=!0,Ji(o,!1),t.lanes=4194304)}else{if(!n)if(e=wf(r),e!==null){if(t.flags|=128,n=!0,e=e.updateQueue,t.updateQueue=e,Hf(t,e),Ji(o,!0),o.tail===null&&o.tailMode==="hidden"&&!r.alternate&&!vt)return $t(t),null}else 2*Ua()-o.renderingStartTime>jp&&a!==536870912&&(t.flags|=128,n=!0,Ji(o,!1),t.lanes=4194304);o.isBackwards?(r.sibling=t.child,t.child=r):(e=o.last,e!==null?e.sibling=r:t.child=r,o.last=r)}if(o.tail!==null)return e=o.tail,o.rendering=e,o.tail=e.sibling,o.renderingStartTime=Ua(),e.sibling=null,a=va.current,a=n?a&Wu|Fc:a&Wu,Ie(va,a,t),vt&&kr(t,o.treeForkCount),e;return $t(t),null;case 22:case 23:return Eo(t),_h(t),o=t.memoizedState!==null,e!==null?e.memoizedState!==null!==o&&(t.flags|=8192):o&&(t.flags|=8192),o?(a&536870912)!==0&&(t.flags&128)===0&&($t(t),t.subtreeFlags&6&&(t.flags|=8192)):$t(t),a=t.updateQueue,a!==null&&Hf(t,a.retryQueue),a=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(a=e.memoizedState.cachePool.pool),o=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(o=t.memoizedState.cachePool.pool),o!==a&&(t.flags|=2048),e!==null&&Se(As,t),null;case 24:return a=null,e!==null&&(a=e.memoizedState.cache),t.memoizedState.cache!==a&&(t.flags|=2048),Tr(Ca,t),$t(t),null;case 25:return null;case 30:return null}throw Error("Unknown unit of work tag ("+t.tag+"). This error is likely caused by a bug in React. Please file an issue.")}function GI(e,t){switch(Ih(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,(t.mode&st)!==Ve&&Vi(t),t):null;case 3:return Tr(Ca,t),he(t),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return St(t),null;case 31:if(t.memoizedState!==null){if(Eo(t),t.alternate===null)throw Error("Threw in newly mounted dehydrated component. This is likely a bug in React. Please file an issue.");ps()}return e=t.flags,e&65536?(t.flags=e&-65537|128,(t.mode&st)!==Ve&&Vi(t),t):null;case 13:if(Eo(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error("Threw in newly mounted dehydrated component. This is likely a bug in React. Please file an issue.");ps()}return e=t.flags,e&65536?(t.flags=e&-65537|128,(t.mode&st)!==Ve&&Vi(t),t):null;case 19:return Se(va,t),null;case 4:return he(t),null;case 10:return Tr(t.type,t),null;case 22:case 23:return Eo(t),_h(t),e!==null&&Se(As,t),e=t.flags,e&65536?(t.flags=e&-65537|128,(t.mode&st)!==Ve&&Vi(t),t):null;case 24:return Tr(Ca,t),null;case 25:return null;default:return null}}function A0(e,t){switch(Ih(t),t.tag){case 3:Tr(Ca,t),he(t);break;case 26:case 27:case 5:St(t);break;case 4:he(t);break;case 31:t.memoizedState!==null&&Eo(t);break;case 13:Eo(t);break;case 19:Se(va,t);break;case 10:Tr(t.type,t);break;case 22:case 23:Eo(t),_h(t),e!==null&&Se(As,t);break;case 24:Tr(Ca,t)}}function Vn(e){return(e.mode&st)!==Ve}function M0(e,t){Vn(e)?(Gn(),ec(t,e),Fn()):ec(t,e)}function Ag(e,t,a){Vn(e)?(Gn(),xu(a,e,t),Fn()):xu(a,e,t)}function ec(e,t){try{var a=t.updateQueue,o=a!==null?a.lastEffect:null;if(o!==null){var n=o.next;a=n;do{if((a.tag&e)===e&&(o=void 0,(e&co)!==qp&&(si=!0),o=j(t,fM,a),(e&co)!==qp&&(si=!1),o!==void 0&&typeof o!=="function")){var r=void 0;r=(a.tag&_o)!==0?"useLayoutEffect":(a.tag&co)!==0?"useInsertionEffect":"useEffect";var u=void 0;u=o===null?" You returned null. If your effect does not require clean up, return undefined (or nothing).":typeof o.then==="function"?`
|
|
139
|
+
`+m:""))}}n=t.stateNode,u=K(a)||"Component",n.render||(a.prototype&&typeof a.prototype.render==="function"?console.error("No `render` method found on the %s instance: did you accidentally return an object from the constructor?",u):console.error("No `render` method found on the %s instance: you may have forgotten to define `render`.",u)),!n.getInitialState||n.getInitialState.isReactClassApproved||n.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?",u),n.getDefaultProps&&!n.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.",u),n.contextType&&console.error("contextType was defined as an instance property on %s. Use a static property to define contextType instead.",u),a.childContextTypes&&!fw.has(a)&&(fw.add(a),console.error("%s uses the legacy childContextTypes API which was removed in React 19. Use React.createContext() instead. (https://react.dev/link/legacy-context)",u)),a.contextTypes&&!dw.has(a)&&(dw.add(a),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)",u)),typeof n.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.",u),a.prototype&&a.prototype.isPureReactComponent&&typeof n.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.",K(a)||"A pure component"),typeof n.componentDidUnmount==="function"&&console.error("%s has a method called componentDidUnmount(). But there is no such lifecycle method. Did you mean componentWillUnmount()?",u),typeof n.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().",u),typeof n.componentWillRecieveProps==="function"&&console.error("%s has a method called componentWillRecieveProps(). Did you mean componentWillReceiveProps()?",u),typeof n.UNSAFE_componentWillRecieveProps==="function"&&console.error("%s has a method called UNSAFE_componentWillRecieveProps(). Did you mean UNSAFE_componentWillReceiveProps()?",u),f=n.props!==o,n.props!==void 0&&f&&console.error("When calling super() in `%s`, make sure to pass up the same props that your component's constructor was passed.",u),n.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.",u,u),typeof n.getSnapshotBeforeUpdate!=="function"||typeof n.componentDidUpdate==="function"||sw.has(a)||(sw.add(a),console.error("%s: getSnapshotBeforeUpdate() should be used with componentDidUpdate(). This component defines getSnapshotBeforeUpdate() only.",K(a))),typeof n.getDerivedStateFromProps==="function"&&console.error("%s: getDerivedStateFromProps() is defined as an instance method and will be ignored. Instead, declare it as a static method.",u),typeof n.getDerivedStateFromError==="function"&&console.error("%s: getDerivedStateFromError() is defined as an instance method and will be ignored. Instead, declare it as a static method.",u),typeof a.getSnapshotBeforeUpdate==="function"&&console.error("%s: getSnapshotBeforeUpdate() is defined as a static method and will be ignored. Instead, declare it as an instance method.",u),(f=n.state)&&(typeof f!=="object"||qa(f))&&console.error("%s.state: must be set to an object or null",u),typeof n.getChildContext==="function"&&typeof a.childContextTypes!=="object"&&console.error("%s.getChildContext(): childContextTypes must be defined in order to use getChildContext().",u),n=t.stateNode,n.props=o,n.state=t.memoizedState,n.refs={},Fh(t),u=a.contextType,n.context=typeof u==="object"&&u!==null?ta(u):Ll,n.state===o&&(u=K(a)||"Component",iw.has(u)||(iw.add(u),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.",u))),t.mode&to&&gr.recordLegacyContextWarning(t,n),gr.recordUnsafeLifecycleWarnings(t,n),n.state=t.memoizedState,u=a.getDerivedStateFromProps,typeof u==="function"&&(xg(t,a,u,o),n.state=t.memoizedState),typeof a.getDerivedStateFromProps==="function"||typeof n.getSnapshotBeforeUpdate==="function"||typeof n.UNSAFE_componentWillMount!=="function"&&typeof n.componentWillMount!=="function"||(u=n.state,typeof n.componentWillMount==="function"&&n.componentWillMount(),typeof n.UNSAFE_componentWillMount==="function"&&n.UNSAFE_componentWillMount(),u!==n.state&&(console.error("%s.componentWillMount(): Assigning directly to this.state is deprecated (except inside a component's constructor). Use setState instead.",V(t)||"Component"),mv.enqueueReplaceState(n,n.state,null)),Qi(t,o,n,r),$i(),n.state=t.memoizedState),typeof n.componentDidMount==="function"&&(t.flags|=4194308),(t.mode&hr)!==Ve&&(t.flags|=134217728),n=!0}else if(e===null){n=t.stateNode;var q=t.memoizedProps;f=bs(a,q),n.props=f;var O=n.context;m=a.contextType,u=Ll,typeof m==="object"&&m!==null&&(u=ta(m)),y=a.getDerivedStateFromProps,m=typeof y==="function"||typeof n.getSnapshotBeforeUpdate==="function",q=t.pendingProps!==q,m||typeof n.UNSAFE_componentWillReceiveProps!=="function"&&typeof n.componentWillReceiveProps!=="function"||(q||O!==u)&&bS(t,n,o,u),Al=!1;var R=t.memoizedState;n.state=R,Qi(t,o,n,r),$i(),O=t.memoizedState,q||R!==O||Al?(typeof y==="function"&&(xg(t,a,y,o),O=t.memoizedState),(f=Al||vS(t,a,f,o,R,O,u))?(m||typeof n.UNSAFE_componentWillMount!=="function"&&typeof n.componentWillMount!=="function"||(typeof n.componentWillMount==="function"&&n.componentWillMount(),typeof n.UNSAFE_componentWillMount==="function"&&n.UNSAFE_componentWillMount()),typeof n.componentDidMount==="function"&&(t.flags|=4194308),(t.mode&hr)!==Ve&&(t.flags|=134217728)):(typeof n.componentDidMount==="function"&&(t.flags|=4194308),(t.mode&hr)!==Ve&&(t.flags|=134217728),t.memoizedProps=o,t.memoizedState=O),n.props=o,n.state=O,n.context=u,n=f):(typeof n.componentDidMount==="function"&&(t.flags|=4194308),(t.mode&hr)!==Ve&&(t.flags|=134217728),n=!1)}else{n=t.stateNode,Gh(e,t),u=t.memoizedProps,m=bs(a,u),n.props=m,y=t.pendingProps,R=n.context,O=a.contextType,f=Ll,typeof O==="object"&&O!==null&&(f=ta(O)),q=a.getDerivedStateFromProps,(O=typeof q==="function"||typeof n.getSnapshotBeforeUpdate==="function")||typeof n.UNSAFE_componentWillReceiveProps!=="function"&&typeof n.componentWillReceiveProps!=="function"||(u!==y||R!==f)&&bS(t,n,o,f),Al=!1,R=t.memoizedState,n.state=R,Qi(t,o,n,r),$i();var _=t.memoizedState;u!==y||R!==_||Al||e!==null&&e.dependencies!==null&&mf(e.dependencies)?(typeof q==="function"&&(xg(t,a,q,o),_=t.memoizedState),(m=Al||vS(t,a,m,o,R,_,f)||e!==null&&e.dependencies!==null&&mf(e.dependencies))?(O||typeof n.UNSAFE_componentWillUpdate!=="function"&&typeof n.componentWillUpdate!=="function"||(typeof n.componentWillUpdate==="function"&&n.componentWillUpdate(o,_,f),typeof n.UNSAFE_componentWillUpdate==="function"&&n.UNSAFE_componentWillUpdate(o,_,f)),typeof n.componentDidUpdate==="function"&&(t.flags|=4),typeof n.getSnapshotBeforeUpdate==="function"&&(t.flags|=1024)):(typeof n.componentDidUpdate!=="function"||u===e.memoizedProps&&R===e.memoizedState||(t.flags|=4),typeof n.getSnapshotBeforeUpdate!=="function"||u===e.memoizedProps&&R===e.memoizedState||(t.flags|=1024),t.memoizedProps=o,t.memoizedState=_),n.props=o,n.state=_,n.context=f,n=m):(typeof n.componentDidUpdate!=="function"||u===e.memoizedProps&&R===e.memoizedState||(t.flags|=4),typeof n.getSnapshotBeforeUpdate!=="function"||u===e.memoizedProps&&R===e.memoizedState||(t.flags|=1024),n=!1)}if(f=n,_f(e,t),u=(t.flags&128)!==0,f||u){if(f=t.stateNode,be(t),u&&typeof a.getDerivedStateFromError!=="function")a=null,co=-1;else if(a=OC(f),t.mode&to){Yt(!0);try{OC(f)}finally{Yt(!1)}}t.flags|=1,e!==null&&u?(t.child=Es(t,e.child,null,r),t.child=Es(t,null,a,r)):Ya(e,t,a,r),t.memoizedState=f.state,e=t.child}else e=Rn(e,t,r);return r=t.stateNode,n&&r.props!==o&&(ai||console.error("It looks like %s is reassigning its own `this.props` while rendering. This is not supported and can lead to confusing bugs.",V(t)||"a component"),ai=!0),e}function ES(e,t,a,o){return ps(),t.flags|=256,Ya(e,t,a,o),t.child}function kg(e,t){t&&t.childContextTypes&&console.error(`childContextTypes cannot be defined on a function component.
|
|
140
|
+
%s.childContextTypes = ...`,t.displayName||t.name||"Component"),typeof t.getDerivedStateFromProps==="function"&&(e=K(t)||"Unknown",vw[e]||(console.error("%s: Function components do not support getDerivedStateFromProps.",e),vw[e]=!0)),typeof t.contextType==="object"&&t.contextType!==null&&(t=K(t)||"Unknown",gw[t]||(console.error("%s: Function components do not support contextType.",t),gw[t]=!0))}function Ig(e){return{baseLanes:e,cachePool:Mx()}}function Tg(e,t,a){return e=e!==null?e.childLanes&~a:0,t&&(e|=Co),e}function qS(e,t,a){var o,r=t.pendingProps;x(t)&&(t.flags|=128);var n=!1,u=(t.flags&128)!==0;if((o=u)||(o=e!==null&&e.memoizedState===null?!1:(ba.current&Gc)!==0),o&&(n=!0,t.flags&=-129),o=(t.flags&32)!==0,t.flags&=-33,e===null){if(vt){if(n?il(t):cl(t),(e=Zt)?(a=eL(e,Jo),a=a!==null&&a.data!==_s?a:null,a!==null&&(o={dehydrated:a,treeContext:Sx(),retryLane:536870912,hydrationErrors:null},t.memoizedState=o,o=bx(a),o.return=t,t.child=o,Ka=t,Zt=null)):a=null,a===null)throw ff(t,e),rl(t);return ly(a)?t.lanes=32:t.lanes=536870912,null}var f=r.children;if(r=r.fallback,n){cl(t);var m=t.mode;return f=Hf({mode:"hidden",children:f},m),r=ds(r,m,a,null),f.return=t,r.return=t,f.sibling=r,t.child=f,r=t.child,r.memoizedState=Ig(a),r.childLanes=Tg(e,o,a),t.memoizedState=yv,Ji(null,r)}return il(t),Rg(t,f)}var y=e.memoizedState;if(y!==null){var q=y.dehydrated;if(q!==null){if(u)t.flags&256?(il(t),t.flags&=-257,t=Ag(e,t,a)):t.memoizedState!==null?(cl(t),t.child=e.child,t.flags|=128,t=null):(cl(t),f=r.fallback,m=t.mode,r=Hf({mode:"visible",children:r.children},m),f=ds(f,m,a,null),f.flags|=2,r.return=t,f.return=t,r.sibling=f,t.child=r,Es(t,e.child,null,a),r=t.child,r.memoizedState=Ig(a),r.childLanes=Tg(e,o,a),t.memoizedState=yv,t=Ji(null,r));else if(il(t),Cx(),(a&536870912)!==0&&Xf(t),ly(q)){if(o=q.nextSibling&&q.nextSibling.dataset,o){f=o.dgst;var O=o.msg;m=o.stck;var R=o.cstck}n=O,o=f,r=m,q=R,f=n,m=q,f=f?Error(f):Error("The server could not finish this Suspense boundary, likely due to an error during server rendering. Switched to client rendering."),f.stack=r||"",f.digest=o,o=m===void 0?null:m,r={value:f,source:null,stack:o},typeof o==="string"&&Ky.set(f,r),Fi(r),t=Ag(e,t,a)}else if(Ia||hu(e,t,a,!1),o=(a&e.childLanes)!==0,Ia||o){if(o=Xt,o!==null&&(r=ns(o,a),r!==0&&r!==y.retryLane))throw y.retryLane=r,Ja(e,r),ia(o,e,r),gv;ny(q)||Yf(),t=Ag(e,t,a)}else ny(q)?(t.flags|=192,t.child=e.child,t=null):(e=y.treeContext,Zt=Oo(q.nextSibling),Ka=t,vt=!0,Cl=null,an=!1,Uo=null,Jo=!1,e!==null&&Lx(t,e),t=Rg(t,r.children),t.flags|=4096);return t}}if(n)return cl(t),f=r.fallback,m=t.mode,R=e.child,q=R.sibling,r=wn(R,{mode:"hidden",children:r.children}),r.subtreeFlags=R.subtreeFlags&65011712,q!==null?f=wn(q,f):(f=ds(f,m,a,null),f.flags|=2),f.return=t,r.return=t,r.sibling=f,t.child=r,Ji(null,r),r=t.child,f=e.child.memoizedState,f===null?f=Ig(a):(m=f.cachePool,m!==null?(R=Ca._currentValue,m=m.parent!==R?{parent:R,pool:R}:m):m=Mx(),f={baseLanes:f.baseLanes|a,cachePool:m}),r.memoizedState=f,r.childLanes=Tg(e,o,a),t.memoizedState=yv,Ji(e.child,r);return y!==null&&(a&62914560)===a&&(a&e.lanes)!==0&&Xf(t),il(t),a=e.child,e=a.sibling,a=wn(a,{mode:"visible",children:r.children}),a.return=t,a.sibling=null,e!==null&&(o=t.deletions,o===null?(t.deletions=[e],t.flags|=16):o.push(e)),t.child=a,t.memoizedState=null,a}function Rg(e,t){return t=Hf({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function Hf(e,t){return e=w(22,e,null,t),e.lanes=0,e}function Ag(e,t,a){return Es(t,e.child,null,a),e=Rg(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function OS(e,t,a){e.lanes|=t;var o=e.alternate;o!==null&&(o.lanes|=t),Nh(e.return,t,a)}function Mg(e,t,a,o,r,n){var u=e.memoizedState;u===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:o,tail:a,tailMode:r,treeForkCount:n}:(u.isBackwards=t,u.rendering=null,u.renderingStartTime=0,u.last=o,u.tail=a,u.tailMode=r,u.treeForkCount=n)}function NS(e,t,a){var o=t.pendingProps,r=o.revealOrder,n=o.tail,u=o.children,f=ba.current;if((o=(f&Gc)!==0)?(f=f&Wu|Gc,t.flags|=128):f&=Wu,Ce(ba,f,t),f=r==null?"null":r,r!=="forwards"&&r!=="unstable_legacy-backwards"&&r!=="together"&&r!=="independent"&&!bw[f])if(bw[f]=!0,r==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(r==="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 r==="string")switch(r.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.',r,r.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.',r,r.toLowerCase());break;default:console.error('"%s" is not a supported revealOrder on <SuspenseList />. Did you mean "independent", "together", "forwards" or "backwards"?',r)}else console.error('%s is not a supported value for revealOrder on <SuspenseList />. Did you mean "independent", "together", "forwards" or "backwards"?',r);if(f=n==null?"null":n,!Pp[f])if(n==null){if(r==="forwards"||r==="backwards"||r==="unstable_legacy-backwards")Pp[f]=!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 n!=="visible"&&n!=="collapsed"&&n!=="hidden"?(Pp[f]=!0,console.error('"%s" is not a supported value for tail on <SuspenseList />. Did you mean "visible", "collapsed" or "hidden"?',n)):r!=="forwards"&&r!=="backwards"&&r!=="unstable_legacy-backwards"&&(Pp[f]=!0,console.error('<SuspenseList tail="%s" /> is only valid if revealOrder is "forwards" or "backwards". Did you mean to specify revealOrder="forwards"?',n));e:if((r==="forwards"||r==="backwards"||r==="unstable_legacy-backwards")&&u!==void 0&&u!==null&&u!==!1)if(qa(u)){for(f=0;f<u.length;f++)if(!_x(u[f],f))break e}else if(f=re(u),typeof f==="function"){if(f=f.call(u))for(var m=f.next(),y=0;!m.done;m=f.next()){if(!_x(m.value,y))break e;y++}}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?',r);if(Ya(e,t,u,a),vt?(ol(),u=Rc):u=0,!o&&e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&OS(e,a,t);else if(e.tag===19)OS(e,a,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}switch(r){case"forwards":a=t.child;for(r=null;a!==null;)e=a.alternate,e!==null&&kf(e)===null&&(r=a),a=a.sibling;a=r,a===null?(r=t.child,t.child=null):(r=a.sibling,a.sibling=null),Mg(t,!1,r,a,n,u);break;case"backwards":case"unstable_legacy-backwards":a=null,r=t.child;for(t.child=null;r!==null;){if(e=r.alternate,e!==null&&kf(e)===null){t.child=r;break}e=r.sibling,r.sibling=a,a=r,r=e}Mg(t,!0,a,null,n,u);break;case"together":Mg(t,!1,null,null,void 0,u);break;default:t.memoizedState=null}return t.child}function Rn(e,t,a){if(e!==null&&(t.dependencies=e.dependencies),co=-1,El|=t.lanes,(a&t.childLanes)===0)if(e!==null){if(hu(e,t,a,!1),(a&t.childLanes)===0)return null}else return null;if(e!==null&&t.child!==e.child)throw Error("Resuming work not yet implemented.");if(t.child!==null){e=t.child,a=wn(e,e.pendingProps),t.child=a;for(a.return=t;e.sibling!==null;)e=e.sibling,a=a.sibling=wn(e,e.pendingProps),a.return=t;a.sibling=null}return t.child}function Dg(e,t){if((e.lanes&t)!==0)return!0;return e=e.dependencies,e!==null&&mf(e)?!0:!1}function ZT(e,t,a){switch(t.tag){case 3:ae(t,t.stateNode.containerInfo),nl(t,Ca,e.memoizedState.cache),ps();break;case 27:case 5:We(t);break;case 4:ae(t,t.stateNode.containerInfo);break;case 10:nl(t,t.type,t.memoizedProps.value);break;case 12:(a&t.childLanes)!==0&&(t.flags|=4),t.flags|=2048;var o=t.stateNode;o.effectDuration=-0,o.passiveEffectDuration=-0;break;case 31:if(t.memoizedState!==null)return t.flags|=128,Xh(t),null;break;case 13:if(o=t.memoizedState,o!==null){if(o.dehydrated!==null)return il(t),t.flags|=128,null;if((a&t.child.childLanes)!==0)return qS(e,t,a);return il(t),e=Rn(e,t,a),e!==null?e.sibling:null}il(t);break;case 19:var r=(e.flags&128)!==0;if(o=(a&t.childLanes)!==0,o||(hu(e,t,a,!1),o=(a&t.childLanes)!==0),r){if(o)return NS(e,t,a);t.flags|=128}if(r=t.memoizedState,r!==null&&(r.rendering=null,r.tail=null,r.lastEffect=null),Ce(ba,ba.current,t),o)break;else return null;case 22:return t.lanes=0,TS(e,t,a,t.pendingProps);case 24:nl(t,Ca,e.memoizedState.cache)}return Rn(e,t,a)}function Eg(e,t,a){if(t._debugNeedsRemount&&e!==null){a=Rh(t.type,t.key,t.pendingProps,t._debugOwner||null,t.mode,t.lanes),a._debugStack=t._debugStack,a._debugTask=t._debugTask;var o=t.return;if(o===null)throw Error("Cannot swap the root fiber.");if(e.alternate=null,t.alternate=null,a.index=t.index,a.sibling=t.sibling,a.return=t.return,a.ref=t.ref,a._debugInfo=t._debugInfo,t===o.child)o.child=a;else{var r=o.child;if(r===null)throw Error("Expected parent to have a child.");for(;r.sibling!==t;)if(r=r.sibling,r===null)throw Error("Expected to find the previous sibling.");r.sibling=a}return t=o.deletions,t===null?(o.deletions=[e],o.flags|=16):t.push(e),a.flags|=2,a}if(e!==null)if(e.memoizedProps!==t.pendingProps||t.type!==e.type)Ia=!0;else{if(!Dg(e,a)&&(t.flags&128)===0)return Ia=!1,ZT(e,t,a);Ia=(e.flags&131072)!==0?!0:!1}else{if(Ia=!1,o=vt)ol(),o=(t.flags&1048576)!==0;o&&(o=t.index,ol(),xx(t,Rc,o))}switch(t.lanes=0,t.tag){case 16:e:if(o=t.pendingProps,e=ll(t.elementType),t.type=e,typeof e==="function")Th(e)?(o=bs(e,o),t.tag=1,t.type=e=cs(e),t=DS(null,t,e,o,a)):(t.tag=0,kg(t,e),t.type=e=cs(e),t=wg(null,t,e,o,a));else{if(e!==void 0&&e!==null){if(r=e.$$typeof,r===hc){t.tag=11,t.type=e=Ih(e),t=wS(null,t,e,o,a);break e}else if(r===sp){t.tag=14,t=kS(null,t,e,o,a);break e}}throw t="",e!==null&&typeof e==="object"&&e.$$typeof===No&&(t=" Did you wrap a component in React.lazy() more than once?"),a=K(e)||e,Error("Element type is invalid. Received a promise that resolves to: "+a+". Lazy element type must resolve to a class or function."+t)}return t;case 0:return wg(e,t,t.type,t.pendingProps,a);case 1:return o=t.type,r=bs(o,t.pendingProps),DS(e,t,o,r,a);case 3:e:{if(ae(t,t.stateNode.containerInfo),e===null)throw Error("Should have a current fiber. This is a bug in React.");o=t.pendingProps;var n=t.memoizedState;r=n.element,Gh(e,t),Qi(t,o,null,a);var u=t.memoizedState;if(o=u.cache,nl(t,Ca,o),o!==n.cache&&Bh(t,[Ca],a,!0),$i(),o=u.element,n.isDehydrated)if(n={element:o,isDehydrated:!1,cache:u.cache},t.updateQueue.baseState=n,t.memoizedState=n,t.flags&256){t=ES(e,t,o,a);break e}else if(o!==r){r=Ao(Error("This root received an early update, before anything was able hydrate. Switched the entire root to client rendering."),t),Fi(r),t=ES(e,t,o,a);break e}else{switch(e=t.stateNode.containerInfo,e.nodeType){case 9:e=e.body;break;default:e=e.nodeName==="HTML"?e.ownerDocument.body:e}Zt=Oo(e.firstChild),Ka=t,vt=!0,Cl=null,an=!1,Uo=null,Jo=!0,a=$C(t,null,o,a);for(t.child=a;a;)a.flags=a.flags&-3|4096,a=a.sibling}else{if(ps(),o===r){t=Rn(e,t,a);break e}Ya(e,t,o,a)}t=t.child}return t;case 26:return _f(e,t),e===null?(a=lL(t.type,null,t.pendingProps,null))?t.memoizedState=a:vt||(a=t.type,e=t.pendingProps,o=Ie(gl.current),o=Zf(o).createElement(a),o[Qa]=t,o[so]=e,$a(o,a,e),Oe(o),t.stateNode=o):t.memoizedState=lL(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return We(t),e===null&&vt&&(o=Ie(gl.current),r=we(),o=t.stateNode=rL(t.type,t.pendingProps,o,r,!1),an||(r=X0(o,t.type,t.pendingProps,r),r!==null&&(fs(t,0).serverProps=r)),Ka=t,Jo=!0,r=Zt,ml(t.type)?(_v=r,Zt=Oo(o.firstChild)):Zt=r),Ya(e,t,t.pendingProps.children,a),_f(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&vt&&(n=we(),o=vh(t.type,n.ancestorInfo),r=Zt,(u=!r)||(u=PR(r,t.type,t.pendingProps,Jo),u!==null?(t.stateNode=u,an||(n=X0(u,t.type,t.pendingProps,n),n!==null&&(fs(t,0).serverProps=n)),Ka=t,Zt=Oo(u.firstChild),Jo=!1,n=!0):n=!1,u=!n),u&&(o&&ff(t,r),rl(t))),We(t),r=t.type,n=t.pendingProps,u=e!==null?e.memoizedProps:null,o=n.children,oy(r,n)?o=null:u!==null&&oy(r,u)&&(t.flags|=32),t.memoizedState!==null&&(r=$h(e,t,GT,null,null,a),sd._currentValue=r),_f(e,t),Ya(e,t,o,a),t.child;case 6:return e===null&&vt&&(a=t.pendingProps,e=we(),o=e.ancestorInfo.current,a=o!=null?tf(a,o.tag,e.ancestorInfo.implicitRootScope):!0,e=Zt,(o=!e)||(o=_R(e,t.pendingProps,Jo),o!==null?(t.stateNode=o,Ka=t,Zt=null,o=!0):o=!1,o=!o),o&&(a&&ff(t,e),rl(t))),null;case 13:return qS(e,t,a);case 4:return ae(t,t.stateNode.containerInfo),o=t.pendingProps,e===null?t.child=Es(t,null,o,a):Ya(e,t,o,a),t.child;case 11:return wS(e,t,t.type,t.pendingProps,a);case 7:return Ya(e,t,t.pendingProps,a),t.child;case 8:return Ya(e,t,t.pendingProps.children,a),t.child;case 12:return t.flags|=4,t.flags|=2048,o=t.stateNode,o.effectDuration=-0,o.passiveEffectDuration=-0,Ya(e,t,t.pendingProps.children,a),t.child;case 10:return o=t.type,r=t.pendingProps,n=r.value,"value"in r||xw||(xw=!0,console.error("The `value` prop is required for the `<Context.Provider>`. Did you misspell it or forget to pass it?")),nl(t,o,n),Ya(e,t,r.children,a),t.child;case 9:return r=t.type._context,o=t.pendingProps.children,typeof o!=="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."),ms(t),r=ta(r),o=rv(o,r,void 0),t.flags|=1,Ya(e,t,o,a),t.child;case 14:return kS(e,t,t.type,t.pendingProps,a);case 15:return IS(e,t,t.type,t.pendingProps,a);case 19:return NS(e,t,a);case 31:return KT(e,t,a);case 22:return TS(e,t,a,t.pendingProps);case 24:return ms(t),o=ta(Ca),e===null?(r=_h(),r===null&&(r=Xt,n=zh(),r.pooledCache=n,hs(n),n!==null&&(r.pooledCacheLanes|=a),r=n),t.memoizedState={parent:o,cache:r},Fh(t),nl(t,Ca,r)):((e.lanes&a)!==0&&(Gh(e,t),Qi(t,null,null,a),$i()),r=e.memoizedState,n=t.memoizedState,r.parent!==o?(r={parent:o,cache:o},t.memoizedState=r,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=r),nl(t,Ca,o)):(o=n.cache,nl(t,Ca,o),o!==r.cache&&Bh(t,[Ca],a,!0))),Ya(e,t,t.pendingProps.children,a),t.child;case 29:throw t.pendingProps}throw Error("Unknown unit of work tag ("+t.tag+"). This error is likely caused by a bug in React. Please file an issue.")}function An(e){e.flags|=4}function qg(e,t,a,o,r){if(t=(e.mode&yM)!==Ve)t=!1;if(t){if(e.flags|=16777216,(r&335544128)===r)if(e.stateNode.complete)e.flags|=8192;else if(m0())e.flags|=8192;else throw Ds=qp,lv}else e.flags&=-16777217}function BS(e,t){if(t.type!=="stylesheet"||(t.state.loading&rr)!==Gs)e.flags&=-16777217;else if(e.flags|=16777216,!dL(t))if(m0())e.flags|=8192;else throw Ds=qp,lv}function Ff(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?iu():536870912,e.lanes|=t,zs|=t)}function ec(e,t){if(!vt)switch(e.tailMode){case"hidden":t=e.tail;for(var a=null;t!==null;)t.alternate!==null&&(a=t),t=t.sibling;a===null?e.tail=null:a.sibling=null;break;case"collapsed":a=e.tail;for(var o=null;a!==null;)a.alternate!==null&&(o=a),a=a.sibling;o===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:o.sibling=null}}function $t(e){var t=e.alternate!==null&&e.alternate.child===e.child,a=0,o=0;if(t)if((e.mode&st)!==Ve){for(var{selfBaseDuration:r,child:n}=e;n!==null;)a|=n.lanes|n.childLanes,o|=n.subtreeFlags&65011712,o|=n.flags&65011712,r+=n.treeBaseDuration,n=n.sibling;e.treeBaseDuration=r}else for(r=e.child;r!==null;)a|=r.lanes|r.childLanes,o|=r.subtreeFlags&65011712,o|=r.flags&65011712,r.return=e,r=r.sibling;else if((e.mode&st)!==Ve){r=e.actualDuration,n=e.selfBaseDuration;for(var u=e.child;u!==null;)a|=u.lanes|u.childLanes,o|=u.subtreeFlags,o|=u.flags,r+=u.actualDuration,n+=u.treeBaseDuration,u=u.sibling;e.actualDuration=r,e.treeBaseDuration=n}else for(r=e.child;r!==null;)a|=r.lanes|r.childLanes,o|=r.subtreeFlags,o|=r.flags,r.return=e,r=r.sibling;return e.subtreeFlags|=o,e.childLanes=a,t}function WT(e,t,a){var o=t.pendingProps;switch(Eh(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return $t(t),null;case 1:return $t(t),null;case 3:if(a=t.stateNode,o=null,e!==null&&(o=e.memoizedState.cache),t.memoizedState.cache!==o&&(t.flags|=2048),In(Ca,t),he(t),a.pendingContext&&(a.context=a.pendingContext,a.pendingContext=null),e===null||e.child===null)mu(t)?(Oh(),An(t)):e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,qh());return $t(t),null;case 26:var{type:r,memoizedState:n}=t;return e===null?(An(t),n!==null?($t(t),BS(t,n)):($t(t),qg(t,r,null,o,a))):n?n!==e.memoizedState?(An(t),$t(t),BS(t,n)):($t(t),t.flags&=-16777217):(e=e.memoizedProps,e!==o&&An(t),$t(t),qg(t,r,e,o,a)),null;case 27:if(St(t),a=Ie(gl.current),r=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==o&&An(t);else{if(!o){if(t.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 $t(t),null}e=we(),mu(t)?wx(t,e):(e=rL(r,o,a,e,!0),t.stateNode=e,An(t))}return $t(t),null;case 5:if(St(t),r=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==o&&An(t);else{if(!o){if(t.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 $t(t),null}var u=we();if(mu(t))wx(t,u);else{switch(n=Ie(gl.current),vh(r,u.ancestorInfo),u=u.context,n=Zf(n),u){case ci:n=n.createElementNS(Ou,r);break;case nm:n=n.createElementNS(mp,r);break;default:switch(r){case"svg":n=n.createElementNS(Ou,r);break;case"math":n=n.createElementNS(mp,r);break;case"script":n=n.createElement("div"),n.innerHTML="<script></script>",n=n.removeChild(n.firstChild);break;case"select":n=typeof o.is==="string"?n.createElement("select",{is:o.is}):n.createElement("select"),o.multiple?n.multiple=!0:o.size&&(n.size=o.size);break;default:n=typeof o.is==="string"?n.createElement(r,{is:o.is}):n.createElement(r),r.indexOf("-")===-1&&(r!==r.toLowerCase()&&console.error("<%s /> is using incorrect casing. Use PascalCase for React components, or lowercase for HTML elements.",r),Object.prototype.toString.call(n)!=="[object HTMLUnknownElement]"||pr.call(Vw,r)||(Vw[r]=!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.",r)))}}n[Qa]=t,n[so]=o;e:for(u=t.child;u!==null;){if(u.tag===5||u.tag===6)n.appendChild(u.stateNode);else if(u.tag!==4&&u.tag!==27&&u.child!==null){u.child.return=u,u=u.child;continue}if(u===t)break e;for(;u.sibling===null;){if(u.return===null||u.return===t)break e;u=u.return}u.sibling.return=u.return,u=u.sibling}t.stateNode=n;e:switch($a(n,r,o),r){case"button":case"input":case"select":case"textarea":o=!!o.autoFocus;break e;case"img":o=!0;break e;default:o=!1}o&&An(t)}}return $t(t),qg(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,a),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==o&&An(t);else{if(typeof o!=="string"&&t.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(e=Ie(gl.current),a=we(),mu(t)){if(e=t.stateNode,a=t.memoizedProps,r=!an,o=null,n=Ka,n!==null)switch(n.tag){case 3:r&&(r=aL(e,a,o),r!==null&&(fs(t,0).serverProps=r));break;case 27:case 5:o=n.memoizedProps,r&&(r=aL(e,a,o),r!==null&&(fs(t,0).serverProps=r))}e[Qa]=t,e=e.nodeValue===a||o!==null&&o.suppressHydrationWarning===!0||H0(e.nodeValue,a)?!0:!1,e||rl(t,!0)}else r=a.ancestorInfo.current,r!=null&&tf(o,r.tag,a.ancestorInfo.implicitRootScope),e=Zf(e).createTextNode(o),e[Qa]=t,t.stateNode=e}return $t(t),null;case 31:if(a=t.memoizedState,e===null||e.memoizedState!==null){if(o=mu(t),a!==null){if(e===null){if(!o)throw Error("A dehydrated suspense component was completed without a hydrated node. This is probably a bug in React.");if(e=t.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error("Expected to have a hydrated activity instance. This error is likely caused by a bug in React. Please file an issue.");e[Qa]=t,$t(t),(t.mode&st)!==Ve&&a!==null&&(e=t.child,e!==null&&(t.treeBaseDuration-=e.treeBaseDuration))}else Oh(),ps(),(t.flags&128)===0&&(a=t.memoizedState=null),t.flags|=4,$t(t),(t.mode&st)!==Ve&&a!==null&&(e=t.child,e!==null&&(t.treeBaseDuration-=e.treeBaseDuration));e=!1}else a=qh(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=a),e=!0;if(!e){if(t.flags&256)return Eo(t),t;return Eo(t),null}if((t.flags&128)!==0)throw Error("Client rendering an Activity suspended it again. This is a bug in React.")}return $t(t),null;case 13:if(o=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(r=o,n=mu(t),r!==null&&r.dehydrated!==null){if(e===null){if(!n)throw Error("A dehydrated suspense component was completed without a hydrated node. This is probably a bug in React.");if(n=t.memoizedState,n=n!==null?n.dehydrated:null,!n)throw Error("Expected to have a hydrated suspense instance. This error is likely caused by a bug in React. Please file an issue.");n[Qa]=t,$t(t),(t.mode&st)!==Ve&&r!==null&&(r=t.child,r!==null&&(t.treeBaseDuration-=r.treeBaseDuration))}else Oh(),ps(),(t.flags&128)===0&&(r=t.memoizedState=null),t.flags|=4,$t(t),(t.mode&st)!==Ve&&r!==null&&(r=t.child,r!==null&&(t.treeBaseDuration-=r.treeBaseDuration));r=!1}else r=qh(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=r),r=!0;if(!r){if(t.flags&256)return Eo(t),t;return Eo(t),null}}if(Eo(t),(t.flags&128)!==0)return t.lanes=a,(t.mode&st)!==Ve&&ji(t),t;return a=o!==null,e=e!==null&&e.memoizedState!==null,a&&(o=t.child,r=null,o.alternate!==null&&o.alternate.memoizedState!==null&&o.alternate.memoizedState.cachePool!==null&&(r=o.alternate.memoizedState.cachePool.pool),n=null,o.memoizedState!==null&&o.memoizedState.cachePool!==null&&(n=o.memoizedState.cachePool.pool),n!==r&&(o.flags|=2048)),a!==e&&a&&(t.child.flags|=8192),Ff(t,t.updateQueue),$t(t),(t.mode&st)!==Ve&&a&&(e=t.child,e!==null&&(t.treeBaseDuration-=e.treeBaseDuration)),null;case 4:return he(t),e===null&&Kg(t.stateNode.containerInfo),$t(t),null;case 10:return In(t.type,t),$t(t),null;case 19:if(ve(ba,t),o=t.memoizedState,o===null)return $t(t),null;if(r=(t.flags&128)!==0,n=o.rendering,n===null)if(r)ec(o,!1);else{if(la!==Vn||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(n=kf(e),n!==null){t.flags|=128,ec(o,!1),e=n.updateQueue,t.updateQueue=e,Ff(t,e),t.subtreeFlags=0,e=a;for(a=t.child;a!==null;)vx(a,e),a=a.sibling;return Ce(ba,ba.current&Wu|Gc,t),vt&&kn(t,o.treeForkCount),t.child}e=e.sibling}o.tail!==null&&Ua()>Xp&&(t.flags|=128,r=!0,ec(o,!1),t.lanes=4194304)}else{if(!r)if(e=kf(n),e!==null){if(t.flags|=128,r=!0,e=e.updateQueue,t.updateQueue=e,Ff(t,e),ec(o,!0),o.tail===null&&o.tailMode==="hidden"&&!n.alternate&&!vt)return $t(t),null}else 2*Ua()-o.renderingStartTime>Xp&&a!==536870912&&(t.flags|=128,r=!0,ec(o,!1),t.lanes=4194304);o.isBackwards?(n.sibling=t.child,t.child=n):(e=o.last,e!==null?e.sibling=n:t.child=n,o.last=n)}if(o.tail!==null)return e=o.tail,o.rendering=e,o.tail=e.sibling,o.renderingStartTime=Ua(),e.sibling=null,a=ba.current,a=r?a&Wu|Gc:a&Wu,Ce(ba,a,t),vt&&kn(t,o.treeForkCount),e;return $t(t),null;case 22:case 23:return Eo(t),jh(t),o=t.memoizedState!==null,e!==null?e.memoizedState!==null!==o&&(t.flags|=8192):o&&(t.flags|=8192),o?(a&536870912)!==0&&(t.flags&128)===0&&($t(t),t.subtreeFlags&6&&(t.flags|=8192)):$t(t),a=t.updateQueue,a!==null&&Ff(t,a.retryQueue),a=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(a=e.memoizedState.cachePool.pool),o=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(o=t.memoizedState.cachePool.pool),o!==a&&(t.flags|=2048),e!==null&&ve(As,t),null;case 24:return a=null,e!==null&&(a=e.memoizedState.cache),t.memoizedState.cache!==a&&(t.flags|=2048),In(Ca,t),$t(t),null;case 25:return null;case 30:return null}throw Error("Unknown unit of work tag ("+t.tag+"). This error is likely caused by a bug in React. Please file an issue.")}function JT(e,t){switch(Eh(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,(t.mode&st)!==Ve&&ji(t),t):null;case 3:return In(Ca,t),he(t),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return St(t),null;case 31:if(t.memoizedState!==null){if(Eo(t),t.alternate===null)throw Error("Threw in newly mounted dehydrated component. This is likely a bug in React. Please file an issue.");ps()}return e=t.flags,e&65536?(t.flags=e&-65537|128,(t.mode&st)!==Ve&&ji(t),t):null;case 13:if(Eo(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error("Threw in newly mounted dehydrated component. This is likely a bug in React. Please file an issue.");ps()}return e=t.flags,e&65536?(t.flags=e&-65537|128,(t.mode&st)!==Ve&&ji(t),t):null;case 19:return ve(ba,t),null;case 4:return he(t),null;case 10:return In(t.type,t),null;case 22:case 23:return Eo(t),jh(t),e!==null&&ve(As,t),e=t.flags,e&65536?(t.flags=e&-65537|128,(t.mode&st)!==Ve&&ji(t),t):null;case 24:return In(Ca,t),null;case 25:return null;default:return null}}function zS(e,t){switch(Eh(t),t.tag){case 3:In(Ca,t),he(t);break;case 26:case 27:case 5:St(t);break;case 4:he(t);break;case 31:t.memoizedState!==null&&Eo(t);break;case 13:Eo(t);break;case 19:ve(ba,t);break;case 10:In(t.type,t);break;case 22:case 23:Eo(t),jh(t),e!==null&&ve(As,t);break;case 24:In(Ca,t)}}function Gr(e){return(e.mode&st)!==Ve}function US(e,t){Gr(e)?(Fr(),tc(t,e),Hr()):tc(t,e)}function Og(e,t,a){Gr(e)?(Fr(),xu(a,e,t),Hr()):xu(a,e,t)}function tc(e,t){try{var a=t.updateQueue,o=a!==null?a.lastEffect:null;if(o!==null){var r=o.next;a=r;do{if((a.tag&e)===e&&(o=void 0,(e&fo)!==Np&&(si=!0),o=Y(t,LM,a),(e&fo)!==Np&&(si=!1),o!==void 0&&typeof o!=="function")){var n=void 0;n=(a.tag&_o)!==0?"useLayoutEffect":(a.tag&fo)!==0?"useInsertionEffect":"useEffect";var u=void 0;u=o===null?" You returned null. If your effect does not require clean up, return undefined (or nothing).":typeof o.then==="function"?`
|
|
141
141
|
|
|
142
|
-
It looks like you wrote `+
|
|
142
|
+
It looks like you wrote `+n+`(async () => ...) or returned a Promise. Instead, write the async function inside your effect and call it immediately:
|
|
143
143
|
|
|
144
|
-
`+
|
|
144
|
+
`+n+`(() => {
|
|
145
145
|
async function fetchData() {
|
|
146
146
|
// You can await here
|
|
147
147
|
const response = await MyAPI.getData(someId);
|
|
@@ -150,11 +150,11 @@ It looks like you wrote `+r+`(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: "+o,j(t,function(f,m){console.error("%s must not return anything besides a function, which is used for clean-up.%s",f,m)},r,u)}a=a.next}while(a!==n)}}catch(f){Bt(t,t.return,f)}}function xu(e,t,a){try{var o=t.updateQueue,n=o!==null?o.lastEffect:null;if(n!==null){var r=n.next;o=r;do{if((o.tag&e)===e){var u=o.inst,f=u.destroy;f!==void 0&&(u.destroy=void 0,(e&co)!==qp&&(si=!0),n=t,j(n,pM,n,a,f),(e&co)!==qp&&(si=!1))}o=o.next}while(o!==r)}}catch(m){Bt(t,t.return,m)}}function D0(e,t){Vn(e)?(Gn(),ec(t,e),Fn()):ec(t,e)}function Mg(e,t,a){Vn(e)?(Gn(),xu(a,e,t),Fn()):xu(a,e,t)}function E0(e){var t=e.updateQueue;if(t!==null){var a=e.stateNode;e.type.defaultProps||"ref"in e.memoizedProps||ai||(a.props!==e.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.",V(e)||"instance"),a.state!==e.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.",V(e)||"instance"));try{j(e,qx,t,a)}catch(o){Bt(e,e.return,o)}}}function VI(e,t,a){return e.getSnapshotBeforeUpdate(t,a)}function jI(e,t){var a=t.memoizedProps,o=t.memoizedState;t=e.stateNode,e.type.defaultProps||"ref"in e.memoizedProps||ai||(t.props!==e.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.",V(e)||"instance"),t.state!==e.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.",V(e)||"instance"));try{var n=bs(e.type,a),r=j(e,VI,t,n,o);a=pw,r!==void 0||a.has(e.type)||(a.add(e.type),j(e,function(){console.error("%s.getSnapshotBeforeUpdate(): A snapshot value (or null) must be returned. You have returned undefined.",V(e))})),t.__reactInternalSnapshotBeforeUpdate=r}catch(u){Bt(e,e.return,u)}}function O0(e,t,a){a.props=bs(e.type,e.memoizedProps),a.state=e.memoizedState,Vn(e)?(Gn(),j(e,EC,e,t,a),Fn()):j(e,EC,e,t,a)}function XI(e){var t=e.ref;if(t!==null){switch(e.tag){case 26:case 27:case 5:var a=e.stateNode;break;case 30:a=e.stateNode;break;default:a=e.stateNode}if(typeof t==="function")if(Vn(e))try{Gn(),e.refCleanup=t(a)}finally{Fn()}else e.refCleanup=t(a);else typeof t==="string"?console.error("String refs are no longer supported."):t.hasOwnProperty("current")||console.error("Unexpected ref object provided for %s. Use either a ref-setter function or React.createRef().",V(e)),t.current=a}}function tc(e,t){try{j(e,XI,e)}catch(a){Bt(e,t,a)}}function jn(e,t){var a=e.ref,o=e.refCleanup;if(a!==null)if(typeof o==="function")try{if(Vn(e))try{Gn(),j(e,o)}finally{Fn(e)}else j(e,o)}catch(n){Bt(e,t,n)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof a==="function")try{if(Vn(e))try{Gn(),j(e,a,null)}finally{Fn(e)}else j(e,a,null)}catch(n){Bt(e,t,n)}else a.current=null}function q0(e,t,a,o){var n=e.memoizedProps,r=n.id,u=n.onCommit;n=n.onRender,t=t===null?"mount":"update",Rp&&(t="nested-update"),typeof n==="function"&&n(r,t,e.actualDuration,e.treeBaseDuration,e.actualStartTime,a),typeof u==="function"&&u(r,t,o,a)}function YI(e,t,a,o){var n=e.memoizedProps;e=n.id,n=n.onPostCommit,t=t===null?"mount":"update",Rp&&(t="nested-update"),typeof n==="function"&&n(e,t,o,a)}function N0(e){var{type:t,memoizedProps:a,stateNode:o}=e;try{j(e,yR,o,t,a,e)}catch(n){Bt(e,e.return,n)}}function Dg(e,t,a){try{j(e,bR,e.stateNode,e.type,a,t,e)}catch(o){Bt(e,e.return,o)}}function B0(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&ml(e.type)||e.tag===4}function Eg(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||B0(e.return))return null;e=e.return}e.sibling.return=e.return;for(e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.tag===27&&ml(e.type))continue e;if(e.flags&2)continue e;if(e.child===null||e.tag===4)continue e;else e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function Og(e,t,a){var o=e.tag;if(o===5||o===6)e=e.stateNode,t?(GS(a),(a.nodeType===9?a.body:a.nodeName==="HTML"?a.ownerDocument.body:a).insertBefore(e,t)):(GS(a),t=a.nodeType===9?a.body:a.nodeName==="HTML"?a.ownerDocument.body:a,t.appendChild(e),a=a._reactRootContainer,a!==null&&a!==void 0||t.onclick!==null||(t.onclick=Cr));else if(o!==4&&(o===27&&ml(e.type)&&(a=e.stateNode,t=null),e=e.child,e!==null))for(Og(e,t,a),e=e.sibling;e!==null;)Og(e,t,a),e=e.sibling}function Ff(e,t,a){var o=e.tag;if(o===5||o===6)e=e.stateNode,t?a.insertBefore(e,t):a.appendChild(e);else if(o!==4&&(o===27&&ml(e.type)&&(a=e.stateNode),e=e.child,e!==null))for(Ff(e,t,a),e=e.sibling;e!==null;)Ff(e,t,a),e=e.sibling}function $I(e){for(var t,a=e.return;a!==null;){if(B0(a)){t=a;break}a=a.return}if(t==null)throw Error("Expected to find a host parent. This error is likely caused by a bug in React. Please file an issue.");switch(t.tag){case 27:t=t.stateNode,a=Eg(e),Ff(e,a,t);break;case 5:a=t.stateNode,t.flags&32&&(FS(a),t.flags&=-33),t=Eg(e),Ff(e,t,a);break;case 3:case 4:t=t.stateNode.containerInfo,a=Eg(e),Og(e,a,t);break;default:throw Error("Invalid host parent fiber. This error is likely caused by a bug in React. Please file an issue.")}}function z0(e){var{stateNode:t,memoizedProps:a}=e;try{j(e,NR,e.type,a,t,e)}catch(o){Bt(e,e.return,o)}}function U0(e,t){return t.tag===31?(t=t.memoizedState,e.memoizedState!==null&&t===null):t.tag===13?(e=e.memoizedState,t=t.memoizedState,e!==null&&e.dehydrated!==null&&(t===null||t.dehydrated===null)):t.tag===3?e.memoizedState.isDehydrated&&(t.flags&256)===0:!1}function QI(e,t){if(e=e.containerInfo,Ev=um,e=ex(e),gh(e)){if("selectionStart"in e)var a={start:e.selectionStart,end:e.selectionEnd};else e:{a=(a=e.ownerDocument)&&a.defaultView||window;var o=a.getSelection&&a.getSelection();if(o&&o.rangeCount!==0){a=o.anchorNode;var n=o.anchorOffset,r=o.focusNode;o=o.focusOffset;try{a.nodeType,r.nodeType}catch(ie){a=null;break e}var u=0,f=-1,m=-1,y=0,O=0,q=e,R=null;t:for(;;){for(var _;;){if(q!==a||n!==0&&q.nodeType!==3||(f=u+n),q!==r||o!==0&&q.nodeType!==3||(m=u+o),q.nodeType===3&&(u+=q.nodeValue.length),(_=q.firstChild)===null)break;R=q,q=_}for(;;){if(q===e)break t;if(R===a&&++y===n&&(f=u),R===r&&++O===o&&(m=u),(_=q.nextSibling)!==null)break;q=R,R=q.parentNode}q=_}a=f===-1||m===-1?null:{start:f,end:m}}else a=null}a=a||{start:0,end:0}}else a=null;Ov={focusedElem:e,selectionRange:a},um=!1;for(_a=t;_a!==null;)if(t=_a,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,_a=e;else for(;_a!==null;){switch(e=t=_a,a=e.alternate,n=e.flags,e.tag){case 0:if((n&4)!==0&&(e=e.updateQueue,e=e!==null?e.events:null,e!==null))for(a=0;a<e.length;a++)n=e[a],n.ref.impl=n.nextImpl;break;case 11:case 15:break;case 1:(n&1024)!==0&&a!==null&&jI(e,a);break;case 3:if((n&1024)!==0){if(e=e.stateNode.containerInfo,a=e.nodeType,a===9)Jg(e);else if(a===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":Jg(e);break;default:e.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(e=t.sibling,e!==null){e.return=t.return,_a=e;break}_a=t.return}}function P0(e,t,a){var o=Mo(),n=Un(),r=_n(),u=Hn(),f=a.flags;switch(a.tag){case 0:case 11:case 15:Xn(e,a),f&4&&M0(a,_o|an);break;case 1:if(Xn(e,a),f&4)if(e=a.stateNode,t===null)a.type.defaultProps||"ref"in a.memoizedProps||ai||(e.props!==a.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.",V(a)||"instance"),e.state!==a.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.",V(a)||"instance")),Vn(a)?(Gn(),j(a,ev,a,e),Fn()):j(a,ev,a,e);else{var m=bs(a.type,t.memoizedProps);t=t.memoizedState,a.type.defaultProps||"ref"in a.memoizedProps||ai||(e.props!==a.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.",V(a)||"instance"),e.state!==a.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.",V(a)||"instance")),Vn(a)?(Gn(),j(a,AC,a,e,m,t,e.__reactInternalSnapshotBeforeUpdate),Fn()):j(a,AC,a,e,m,t,e.__reactInternalSnapshotBeforeUpdate)}f&64&&E0(a),f&512&&tc(a,a.return);break;case 3:if(t=Ir(),Xn(e,a),f&64&&(f=a.updateQueue,f!==null)){if(m=null,a.child!==null)switch(a.child.tag){case 27:case 5:m=a.child.stateNode;break;case 1:m=a.child.stateNode}try{j(a,qx,f,m)}catch(O){Bt(a,a.return,O)}}e.effectDuration+=hf(t);break;case 27:t===null&&f&4&&z0(a);case 26:case 5:if(Xn(e,a),t===null){if(f&4)N0(a);else if(f&64){e=a.type,t=a.memoizedProps,m=a.stateNode;try{j(a,vR,m,e,t,a)}catch(O){Bt(a,a.return,O)}}}f&512&&tc(a,a.return);break;case 12:if(f&4){f=Ir(),Xn(e,a),e=a.stateNode,e.effectDuration+=Gi(f);try{j(a,q0,a,t,wl,e.effectDuration)}catch(O){Bt(a,a.return,O)}}else Xn(e,a);break;case 31:Xn(e,a),f&4&&F0(e,a);break;case 13:Xn(e,a),f&4&&G0(e,a),f&64&&(e=a.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(f=nR.bind(null,a),DR(e,f))));break;case 22:if(f=a.memoizedState!==null||Gr,!f){t=t!==null&&t.memoizedState!==null||Ia,m=Gr;var y=Ia;Gr=f,(Ia=t)&&!y?(Yn(e,a,(a.subtreeFlags&8772)!==0),(a.mode&st)!==Ve&&0<=Ne&&0<=Pe&&0.05<Pe-Ne&&nf(a,Ne,Pe)):Xn(e,a),Gr=m,Ia=y}break;case 30:break;default:Xn(e,a)}(a.mode&st)!==Ve&&0<=Ne&&0<=Pe&&((ca||0.05<ra)&&Bn(a,Ne,Pe,ra,aa),a.alternate===null&&a.return!==null&&a.return.alternate!==null&&0.05<Pe-Ne&&(U0(a.return.alternate,a.return)||Nn(a,Ne,Pe,"Mount"))),Do(o),Pn(n),aa=r,ca=u}function _0(e){var t=e.alternate;t!==null&&(e.alternate=null,_0(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&pe(t)),e.stateNode=null,e._debugOwner=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function Mr(e,t,a){for(a=a.child;a!==null;)H0(e,t,a),a=a.sibling}function H0(e,t,a){if(eo&&typeof eo.onCommitFiberUnmount==="function")try{eo.onCommitFiberUnmount(Eu,a)}catch(y){Jn||(Jn=!0,console.error("React instrumentation encountered an error: %o",y))}var o=Mo(),n=Un(),r=_n(),u=Hn();switch(a.tag){case 26:Ia||jn(a,t),Mr(e,t,a),a.memoizedState?a.memoizedState.count--:a.stateNode&&(e=a.stateNode,e.parentNode.removeChild(e));break;case 27:Ia||jn(a,t);var f=Ra,m=xo;ml(a.type)&&(Ra=a.stateNode,xo=!1),Mr(e,t,a),j(a,cc,a.stateNode),Ra=f,xo=m;break;case 5:Ia||jn(a,t);case 6:if(f=Ra,m=xo,Ra=null,Mr(e,t,a),Ra=f,xo=m,Ra!==null)if(xo)try{j(a,LR,Ra,a.stateNode)}catch(y){Bt(a,t,y)}else try{j(a,SR,Ra,a.stateNode)}catch(y){Bt(a,t,y)}break;case 18:Ra!==null&&(xo?(e=Ra,VS(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,a.stateNode),Ru(e)):VS(Ra,a.stateNode));break;case 4:f=Ra,m=xo,Ra=a.stateNode.containerInfo,xo=!0,Mr(e,t,a),Ra=f,xo=m;break;case 0:case 11:case 14:case 15:xu(co,a,t),Ia||Ag(a,t,_o),Mr(e,t,a);break;case 1:Ia||(jn(a,t),f=a.stateNode,typeof f.componentWillUnmount==="function"&&O0(a,t,f)),Mr(e,t,a);break;case 21:Mr(e,t,a);break;case 22:Ia=(f=Ia)||a.memoizedState!==null,Mr(e,t,a),Ia=f;break;default:Mr(e,t,a)}(a.mode&st)!==Ve&&0<=Ne&&0<=Pe&&(ca||0.05<ra)&&Bn(a,Ne,Pe,ra,aa),Do(o),Pn(n),aa=r,ca=u}function F0(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{j(t,OR,e)}catch(a){Bt(t,t.return,a)}}}function G0(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{j(t,qR,e)}catch(a){Bt(t,t.return,a)}}function KI(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new mw),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new mw),t;default:throw Error("Unexpected Suspense handler tag ("+e.tag+"). This is a bug in React.")}}function Gf(e,t){var a=KI(e);t.forEach(function(o){if(!a.has(o)){if(a.add(o),er)if(oi!==null&&ni!==null)rc(ni,oi);else throw Error("Expected finished root and lanes to be set. This is a bug in React.");var n=rR.bind(null,e,o);o.then(n,n)}})}function vo(e,t){var a=t.deletions;if(a!==null)for(var o=0;o<a.length;o++){var n=e,r=t,u=a[o],f=Mo(),m=r;e:for(;m!==null;){switch(m.tag){case 27:if(ml(m.type)){Ra=m.stateNode,xo=!1;break e}break;case 5:Ra=m.stateNode,xo=!1;break e;case 3:case 4:Ra=m.stateNode.containerInfo,xo=!0;break e}m=m.return}if(Ra===null)throw Error("Expected to find a host parent. This error is likely caused by a bug in React. Please file an issue.");H0(n,r,u),Ra=null,xo=!1,(u.mode&st)!==Ve&&0<=Ne&&0<=Pe&&0.05<Pe-Ne&&Nn(u,Ne,Pe,"Unmount"),Do(f),n=u,r=n.alternate,r!==null&&(r.return=null),n.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)V0(t,e),t=t.sibling}function V0(e,t){var a=Mo(),o=Un(),n=_n(),r=Hn(),{alternate:u,flags:f}=e;switch(e.tag){case 0:case 11:case 14:case 15:vo(t,e),bo(e),f&4&&(xu(co|an,e,e.return),ec(co|an,e),Ag(e,e.return,_o|an));break;case 1:if(vo(t,e),bo(e),f&512&&(Ia||u===null||jn(u,u.return)),f&64&&Gr&&(f=e.updateQueue,f!==null&&(u=f.callbacks,u!==null))){var m=f.shared.hiddenCallbacks;f.shared.hiddenCallbacks=m===null?u:m.concat(u)}break;case 26:if(m=bn,vo(t,e),bo(e),f&512&&(Ia||u===null||jn(u,u.return)),f&4){var y=u!==null?u.memoizedState:null;if(f=e.memoizedState,u===null)if(f===null)if(e.stateNode===null){e:{f=e.type,u=e.memoizedProps,m=m.ownerDocument||m;t:switch(f){case"title":if(y=m.getElementsByTagName("title")[0],!y||y[yc]||y[Qa]||y.namespaceURI===qu||y.hasAttribute("itemprop"))y=m.createElement(f),m.head.insertBefore(y,m.querySelector("head > title"));$a(y,f,u),y[Qa]=e,qe(y),f=y;break e;case"link":var O=tL("link","href",m).get(f+(u.href||""));if(O){for(var q=0;q<O.length;q++)if(y=O[q],y.getAttribute("href")===(u.href==null||u.href===""?null:u.href)&&y.getAttribute("rel")===(u.rel==null?null:u.rel)&&y.getAttribute("title")===(u.title==null?null:u.title)&&y.getAttribute("crossorigin")===(u.crossOrigin==null?null:u.crossOrigin)){O.splice(q,1);break t}}y=m.createElement(f),$a(y,f,u),m.head.appendChild(y);break;case"meta":if(O=tL("meta","content",m).get(f+(u.content||""))){for(q=0;q<O.length;q++)if(y=O[q],Xe(u.content,"content"),y.getAttribute("content")===(u.content==null?null:""+u.content)&&y.getAttribute("name")===(u.name==null?null:u.name)&&y.getAttribute("property")===(u.property==null?null:u.property)&&y.getAttribute("http-equiv")===(u.httpEquiv==null?null:u.httpEquiv)&&y.getAttribute("charset")===(u.charSet==null?null:u.charSet)){O.splice(q,1);break t}}y=m.createElement(f),$a(y,f,u),m.head.appendChild(y);break;default:throw Error('getNodesForType encountered a type it did not expect: "'+f+'". This is a bug in React.')}y[Qa]=e,qe(y),f=y}e.stateNode=f}else aL(m,e.type,e.stateNode);else e.stateNode=eL(m,f,e.memoizedProps);else y!==f?(y===null?u.stateNode!==null&&(u=u.stateNode,u.parentNode.removeChild(u)):y.count--,f===null?aL(m,e.type,e.stateNode):eL(m,f,e.memoizedProps)):f===null&&e.stateNode!==null&&Dg(e,e.memoizedProps,u.memoizedProps)}break;case 27:vo(t,e),bo(e),f&512&&(Ia||u===null||jn(u,u.return)),u!==null&&f&4&&Dg(e,e.memoizedProps,u.memoizedProps);break;case 5:if(vo(t,e),bo(e),f&512&&(Ia||u===null||jn(u,u.return)),e.flags&32){m=e.stateNode;try{j(e,FS,m)}catch(ge){Bt(e,e.return,ge)}}f&4&&e.stateNode!=null&&(m=e.memoizedProps,Dg(e,m,u!==null?u.memoizedProps:m)),f&1024&&(pv=!0,e.type!=="form"&&console.error("Unexpected host component type. Expected a form. This is a bug in React."));break;case 6:if(vo(t,e),bo(e),f&4){if(e.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.");f=e.memoizedProps,u=u!==null?u.memoizedProps:f,m=e.stateNode;try{j(e,xR,m,u,f)}catch(ge){Bt(e,e.return,ge)}}break;case 3:if(m=Ir(),rm=null,y=bn,bn=Zf(t.containerInfo),vo(t,e),bn=y,bo(e),f&4&&u!==null&&u.memoizedState.isDehydrated)try{j(e,ER,t.containerInfo)}catch(ge){Bt(e,e.return,ge)}pv&&(pv=!1,j0(e)),t.effectDuration+=hf(m);break;case 4:f=bn,bn=Zf(e.stateNode.containerInfo),vo(t,e),bo(e),bn=f;break;case 12:f=Ir(),vo(t,e),bo(e),e.stateNode.effectDuration+=Gi(f);break;case 31:vo(t,e),bo(e),f&4&&(f=e.updateQueue,f!==null&&(e.updateQueue=null,Gf(e,f)));break;case 13:vo(t,e),bo(e),e.child.flags&8192&&e.memoizedState!==null!==(u!==null&&u.memoizedState!==null)&&(Vp=Ua()),f&4&&(f=e.updateQueue,f!==null&&(e.updateQueue=null,Gf(e,f)));break;case 22:m=e.memoizedState!==null;var R=u!==null&&u.memoizedState!==null,_=Gr,ie=Ia;if(Gr=_||m,Ia=ie||R,vo(t,e),Ia=ie,Gr=_,R&&!m&&!_&&!ie&&(e.mode&st)!==Ve&&0<=Ne&&0<=Pe&&0.05<Pe-Ne&&nf(e,Ne,Pe),bo(e),f&8192)e:for(t=e.stateNode,t._visibility=m?t._visibility&~Tc:t._visibility|Tc,!m||u===null||R||Gr||Ia||(xs(e),(e.mode&st)!==Ve&&0<=Ne&&0<=Pe&&0.05<Pe-Ne&&Nn(e,Ne,Pe,"Disconnect")),u=null,t=e;;){if(t.tag===5||t.tag===26){if(u===null){R=u=t;try{y=R.stateNode,m?j(R,wR,y):j(R,IR,R.stateNode,R.memoizedProps)}catch(ge){Bt(R,R.return,ge)}}}else if(t.tag===6){if(u===null){R=t;try{O=R.stateNode,m?j(R,kR,O):j(R,RR,O,R.memoizedProps)}catch(ge){Bt(R,R.return,ge)}}}else if(t.tag===18){if(u===null){R=t;try{q=R.stateNode,m?j(R,CR,q):j(R,TR,R.stateNode)}catch(ge){Bt(R,R.return,ge)}}}else if((t.tag!==22&&t.tag!==23||t.memoizedState===null||t===e)&&t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break e;for(;t.sibling===null;){if(t.return===null||t.return===e)break e;u===t&&(u=null),t=t.return}u===t&&(u=null),t.sibling.return=t.return,t=t.sibling}f&4&&(f=e.updateQueue,f!==null&&(u=f.retryQueue,u!==null&&(f.retryQueue=null,Gf(e,u))));break;case 19:vo(t,e),bo(e),f&4&&(f=e.updateQueue,f!==null&&(e.updateQueue=null,Gf(e,f)));break;case 30:break;case 21:break;default:vo(t,e),bo(e)}(e.mode&st)!==Ve&&0<=Ne&&0<=Pe&&((ca||0.05<ra)&&Bn(e,Ne,Pe,ra,aa),e.alternate===null&&e.return!==null&&e.return.alternate!==null&&0.05<Pe-Ne&&(U0(e.return.alternate,e.return)||Nn(e,Ne,Pe,"Mount"))),Do(a),Pn(o),aa=n,ca=r}function bo(e){var t=e.flags;if(t&2){try{j(e,$I,e)}catch(a){Bt(e,e.return,a)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function j0(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;j0(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function Xn(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)P0(e,t.alternate,t),t=t.sibling}function X0(e){var t=Mo(),a=Un(),o=_n(),n=Hn();switch(e.tag){case 0:case 11:case 14:case 15:Ag(e,e.return,_o),xs(e);break;case 1:jn(e,e.return);var r=e.stateNode;typeof r.componentWillUnmount==="function"&&O0(e,e.return,r),xs(e);break;case 27:j(e,cc,e.stateNode);case 26:case 5:jn(e,e.return),xs(e);break;case 22:e.memoizedState===null&&xs(e);break;case 30:xs(e);break;default:xs(e)}(e.mode&st)!==Ve&&0<=Ne&&0<=Pe&&(ca||0.05<ra)&&Bn(e,Ne,Pe,ra,aa),Do(t),Pn(a),aa=o,ca=n}function xs(e){for(e=e.child;e!==null;)X0(e),e=e.sibling}function Y0(e,t,a,o){var n=Mo(),r=Un(),u=_n(),f=Hn(),m=a.flags;switch(a.tag){case 0:case 11:case 15:Yn(e,a,o),M0(a,_o);break;case 1:if(Yn(e,a,o),t=a.stateNode,typeof t.componentDidMount==="function"&&j(a,ev,a,t),t=a.updateQueue,t!==null){e=a.stateNode;try{j(a,EI,t,e)}catch(y){Bt(a,a.return,y)}}o&&m&64&&E0(a),tc(a,a.return);break;case 27:z0(a);case 26:case 5:Yn(e,a,o),o&&t===null&&m&4&&N0(a),tc(a,a.return);break;case 12:if(o&&m&4){m=Ir(),Yn(e,a,o),o=a.stateNode,o.effectDuration+=Gi(m);try{j(a,q0,a,t,wl,o.effectDuration)}catch(y){Bt(a,a.return,y)}}else Yn(e,a,o);break;case 31:Yn(e,a,o),o&&m&4&&F0(e,a);break;case 13:Yn(e,a,o),o&&m&4&&G0(e,a);break;case 22:a.memoizedState===null&&Yn(e,a,o),tc(a,a.return);break;case 30:break;default:Yn(e,a,o)}(a.mode&st)!==Ve&&0<=Ne&&0<=Pe&&(ca||0.05<ra)&&Bn(a,Ne,Pe,ra,aa),Do(n),Pn(r),aa=u,ca=f}function Yn(e,t,a){a=a&&(t.subtreeFlags&8772)!==0;for(t=t.child;t!==null;)Y0(e,t.alternate,t,a),t=t.sibling}function qg(e,t){var a=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(a=e.memoizedState.cachePool.pool),e=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(e=t.memoizedState.cachePool.pool),e!==a&&(e!=null&&hs(e),a!=null&&Fi(a))}function Ng(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(hs(t),e!=null&&Fi(e))}function pn(e,t,a,o,n){if(t.subtreeFlags&10256||t.actualDuration!==0&&(t.alternate===null||t.alternate.child!==t.child))for(t=t.child;t!==null;){var r=t.sibling;$0(e,t,a,o,r!==null?r.actualStartTime:n),t=r}}function $0(e,t,a,o,n){var r=Mo(),u=Un(),f=_n(),m=Hn(),y=xl,O=t.flags;switch(t.tag){case 0:case 11:case 15:(t.mode&st)!==Ve&&0<t.actualStartTime&&(t.flags&1)!==0&&rf(t,t.actualStartTime,n,Oa,a),pn(e,t,a,o,n),O&2048&&D0(t,fo|an);break;case 1:(t.mode&st)!==Ve&&0<t.actualStartTime&&((t.flags&128)!==0?vh(t,t.actualStartTime,n,[]):(t.flags&1)!==0&&rf(t,t.actualStartTime,n,Oa,a)),pn(e,t,a,o,n);break;case 3:var q=Ir(),R=Oa;Oa=t.alternate!==null&&t.alternate.memoizedState.isDehydrated&&(t.flags&256)===0,pn(e,t,a,o,n),Oa=R,O&2048&&(a=null,t.alternate!==null&&(a=t.alternate.memoizedState.cache),o=t.memoizedState.cache,o!==a&&(hs(o),a!=null&&Fi(a))),e.passiveEffectDuration+=hf(q);break;case 12:if(O&2048){O=Ir(),pn(e,t,a,o,n),e=t.stateNode,e.passiveEffectDuration+=Gi(O);try{j(t,YI,t,t.alternate,wl,e.passiveEffectDuration)}catch(_){Bt(t,t.return,_)}}else pn(e,t,a,o,n);break;case 31:O=Oa,q=t.alternate!==null?t.alternate.memoizedState:null,R=t.memoizedState,q!==null&&R===null?(R=t.deletions,R!==null&&0<R.length&&R[0].tag===18?(Oa=!1,q=q.hydrationErrors,q!==null&&vh(t,t.actualStartTime,n,q)):Oa=!0):Oa=!1,pn(e,t,a,o,n),Oa=O;break;case 13:O=Oa,q=t.alternate!==null?t.alternate.memoizedState:null,R=t.memoizedState,q===null||q.dehydrated===null||R!==null&&R.dehydrated!==null?Oa=!1:(R=t.deletions,R!==null&&0<R.length&&R[0].tag===18?(Oa=!1,q=q.hydrationErrors,q!==null&&vh(t,t.actualStartTime,n,q)):Oa=!0),pn(e,t,a,o,n),Oa=O;break;case 23:break;case 22:R=t.stateNode,q=t.alternate,t.memoizedState!==null?R._visibility&Or?pn(e,t,a,o,n):ac(e,t,a,o,n):R._visibility&Or?pn(e,t,a,o,n):(R._visibility|=Or,Su(e,t,a,o,(t.subtreeFlags&10256)!==0||t.actualDuration!==0&&(t.alternate===null||t.alternate.child!==t.child),n),(t.mode&st)===Ve||Oa||(e=t.actualStartTime,0<=e&&0.05<n-e&&nf(t,e,n),0<=Ne&&0<=Pe&&0.05<Pe-Ne&&nf(t,Ne,Pe))),O&2048&&qg(q,t);break;case 24:pn(e,t,a,o,n),O&2048&&Ng(t.alternate,t);break;default:pn(e,t,a,o,n)}if((t.mode&st)!==Ve){if(e=!Oa&&t.alternate===null&&t.return!==null&&t.return.alternate!==null)a=t.actualStartTime,0<=a&&0.05<n-a&&Nn(t,a,n,"Mount");0<=Ne&&0<=Pe&&((ca||0.05<ra)&&Bn(t,Ne,Pe,ra,aa),e&&0.05<Pe-Ne&&Nn(t,Ne,Pe,"Mount"))}Do(r),Pn(u),aa=f,ca=m,xl=y}function Su(e,t,a,o,n,r){n=n&&((t.subtreeFlags&10256)!==0||t.actualDuration!==0&&(t.alternate===null||t.alternate.child!==t.child));for(t=t.child;t!==null;){var u=t.sibling;Q0(e,t,a,o,n,u!==null?u.actualStartTime:r),t=u}}function Q0(e,t,a,o,n,r){var u=Mo(),f=Un(),m=_n(),y=Hn(),O=xl;n&&(t.mode&st)!==Ve&&0<t.actualStartTime&&(t.flags&1)!==0&&rf(t,t.actualStartTime,r,Oa,a);var q=t.flags;switch(t.tag){case 0:case 11:case 15:Su(e,t,a,o,n,r),D0(t,fo);break;case 23:break;case 22:var R=t.stateNode;t.memoizedState!==null?R._visibility&Or?Su(e,t,a,o,n,r):ac(e,t,a,o,r):(R._visibility|=Or,Su(e,t,a,o,n,r)),n&&q&2048&&qg(t.alternate,t);break;case 24:Su(e,t,a,o,n,r),n&&q&2048&&Ng(t.alternate,t);break;default:Su(e,t,a,o,n,r)}(t.mode&st)!==Ve&&0<=Ne&&0<=Pe&&(ca||0.05<ra)&&Bn(t,Ne,Pe,ra,aa),Do(u),Pn(f),aa=m,ca=y,xl=O}function ac(e,t,a,o,n){if(t.subtreeFlags&10256||t.actualDuration!==0&&(t.alternate===null||t.alternate.child!==t.child))for(var r=t.child;r!==null;){t=r.sibling;var u=e,f=a,m=o,y=t!==null?t.actualStartTime:n,O=xl;(r.mode&st)!==Ve&&0<r.actualStartTime&&(r.flags&1)!==0&&rf(r,r.actualStartTime,y,Oa,f);var q=r.flags;switch(r.tag){case 22:ac(u,r,f,m,y),q&2048&&qg(r.alternate,r);break;case 24:ac(u,r,f,m,y),q&2048&&Ng(r.alternate,r);break;default:ac(u,r,f,m,y)}xl=O,r=t}}function Lu(e,t,a){if(e.subtreeFlags&Xc)for(e=e.child;e!==null;)K0(e,t,a),e=e.sibling}function K0(e,t,a){switch(e.tag){case 26:Lu(e,t,a),e.flags&Xc&&e.memoizedState!==null&&UR(a,bn,e.memoizedState,e.memoizedProps);break;case 5:Lu(e,t,a);break;case 3:case 4:var o=bn;bn=Zf(e.stateNode.containerInfo),Lu(e,t,a),bn=o;break;case 22:e.memoizedState===null&&(o=e.alternate,o!==null&&o.memoizedState!==null?(o=Xc,Xc=16777216,Lu(e,t,a),Xc=o):Lu(e,t,a));break;default:Lu(e,t,a)}}function Z0(e){var t=e.alternate;if(t!==null&&(e=t.child,e!==null)){t.child=null;do t=e.sibling,e.sibling=null,e=t;while(e!==null)}}function oc(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var a=0;a<t.length;a++){var o=t[a],n=Mo();_a=o,eS(o,e),(o.mode&st)!==Ve&&0<=Ne&&0<=Pe&&0.05<Pe-Ne&&Nn(o,Ne,Pe,"Unmount"),Do(n)}Z0(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)W0(e),e=e.sibling}function W0(e){var t=Mo(),a=Un(),o=_n(),n=Hn();switch(e.tag){case 0:case 11:case 15:oc(e),e.flags&2048&&Mg(e,e.return,fo|an);break;case 3:var r=Ir();oc(e),e.stateNode.passiveEffectDuration+=hf(r);break;case 12:r=Ir(),oc(e),e.stateNode.passiveEffectDuration+=Gi(r);break;case 22:r=e.stateNode,e.memoizedState!==null&&r._visibility&Or&&(e.return===null||e.return.tag!==13)?(r._visibility&=~Or,Vf(e),(e.mode&st)!==Ve&&0<=Ne&&0<=Pe&&0.05<Pe-Ne&&Nn(e,Ne,Pe,"Disconnect")):oc(e);break;default:oc(e)}(e.mode&st)!==Ve&&0<=Ne&&0<=Pe&&(ca||0.05<ra)&&Bn(e,Ne,Pe,ra,aa),Do(t),Pn(a),ca=n,aa=o}function Vf(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var a=0;a<t.length;a++){var o=t[a],n=Mo();_a=o,eS(o,e),(o.mode&st)!==Ve&&0<=Ne&&0<=Pe&&0.05<Pe-Ne&&Nn(o,Ne,Pe,"Unmount"),Do(n)}Z0(e)}for(e=e.child;e!==null;)J0(e),e=e.sibling}function J0(e){var t=Mo(),a=Un(),o=_n(),n=Hn();switch(e.tag){case 0:case 11:case 15:Mg(e,e.return,fo),Vf(e);break;case 22:var r=e.stateNode;r._visibility&Or&&(r._visibility&=~Or,Vf(e));break;default:Vf(e)}(e.mode&st)!==Ve&&0<=Ne&&0<=Pe&&(ca||0.05<ra)&&Bn(e,Ne,Pe,ra,aa),Do(t),Pn(a),ca=n,aa=o}function eS(e,t){for(;_a!==null;){var a=_a,o=a,n=t,r=Mo(),u=Un(),f=_n(),m=Hn();switch(o.tag){case 0:case 11:case 15:Mg(o,n,fo);break;case 23:case 22:o.memoizedState!==null&&o.memoizedState.cachePool!==null&&(n=o.memoizedState.cachePool.pool,n!=null&&hs(n));break;case 24:Fi(o.memoizedState.cache)}if((o.mode&st)!==Ve&&0<=Ne&&0<=Pe&&(ca||0.05<ra)&&Bn(o,Ne,Pe,ra,aa),Do(r),Pn(u),ca=m,aa=f,o=a.child,o!==null)o.return=a,_a=o;else e:for(a=e;_a!==null;){if(o=_a,r=o.sibling,u=o.return,_0(o),o===a){_a=null;break e}if(r!==null){r.return=u,_a=r;break e}_a=u}}}function ZI(){vM.forEach(function(e){return e()})}function tS(){var e=typeof IS_REACT_ACT_ENVIRONMENT<"u"?IS_REACT_ACT_ENVIRONMENT:void 0;return e||G.actQueue===null||console.error("The current testing environment is not configured to support act(...)"),e}function Oo(e){if((Tt&qa)!==Ha&&it!==0)return it&-it;var t=G.T;return t!==null?(t._updatedFibers||(t._updatedFibers=new Set),t._updatedFibers.add(e),Gg()):z()}function aS(){if(Lo===0)if((it&536870912)===0||vt){var e=ip;ip<<=1,(ip&3932160)===0&&(ip=262144),Lo=e}else Lo=536870912;return e=Po.current,e!==null&&(e.flags|=32),Lo}function ia(e,t,a){if(si&&console.error("useInsertionEffect must not schedule updates."),wv&&($p=!0),e===Xt&&(_t===Ns||_t===Bs)||e.cancelPendingCommit!==null)wu(e,0),fl(e,it,Lo,!1);if(el(e,a),(Tt&qa)!==Ha&&e===Xt){if(Wn)switch(t.tag){case 0:case 11:case 15:e=ct&&V(ct)||"Unknown",Aw.has(e)||(Aw.add(e),t=V(t)||"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",t,e,e));break;case 1:Rw||(console.error("Cannot update during an existing state transition (such as within `render`). Render methods should be a pure function of props and state."),Rw=!0)}}else er&&Di(e,t,a),sR(t),e===Xt&&((Tt&qa)===Ha&&(Ol|=a),la===Ml&&fl(e,it,Lo,!1)),$n(e)}function oS(e,t,a){if((Tt&(qa|Ho))!==Ha)throw Error("Should not already be working.");if(it!==0&&ct!==null){var o=ct,n=Ua();switch(SC){case Qc:case Ns:var r=Ec;Kt&&((o=o._debugTask)?o.run(console.timeStamp.bind(console,"Suspended",r,n,$o,void 0,"primary-light")):console.timeStamp("Suspended",r,n,$o,void 0,"primary-light"));break;case Bs:r=Ec,Kt&&((o=o._debugTask)?o.run(console.timeStamp.bind(console,"Action",r,n,$o,void 0,"primary-light")):console.timeStamp("Action",r,n,$o,void 0,"primary-light"));break;default:Kt&&(o=n-Ec,3>o||console.timeStamp("Blocked",Ec,n,$o,void 0,5>o?"primary-light":10>o?"primary":100>o?"primary-dark":"error"))}}r=(a=!a&&(t&127)===0&&(t&e.expiredLanes)===0||as(e,t))?JI(e,t):zg(e,t,!0);var u=a;do{if(r===Vr){ri&&!a&&fl(e,t,0,!1),t=_t,Ec=wa(),SC=t;break}else{if(o=Ua(),n=e.current.alternate,u&&!WI(n)){Ro(t),n=Pa,r=o,!Kt||r<=n||(ga?ga.run(console.timeStamp.bind(console,"Teared Render",n,r,ht,mt,"error")):console.timeStamp("Teared Render",n,r,ht,mt,"error")),Ss(t,o),r=zg(e,t,!1),u=!1;continue}if(r===qs){if(u=t,e.errorRecoveryDisabledLanes&u)var f=0;else f=e.pendingLanes&-536870913,f=f!==0?f:f&536870912?536870912:0;if(f!==0){Ro(t),bh(Pa,o,t,ga),Ss(t,o),t=f;e:{o=e,r=u,u=Zc;var m=o.current.memoizedState.isDehydrated;if(m&&(wu(o,f).flags|=256),f=zg(o,f,!1),f!==qs){if(gv&&!m){o.errorRecoveryDisabledLanes|=r,Ol|=r,r=Ml;break e}o=po,po=u,o!==null&&(po===null?po=o:po.push.apply(po,o))}r=f}if(u=!1,r!==qs)continue;else o=Ua()}}if(r===$c){Ro(t),bh(Pa,o,t,ga),Ss(t,o),wu(e,0),fl(e,t,0,!0);break}e:{switch(a=e,r){case Vr:case $c:throw Error("Root did not complete. This is a bug in React.");case Ml:if((t&4194048)!==t)break;case _p:Ro(t),ox(Pa,o,t,ga),Ss(t,o),n=t,(n&127)!==0?kp=o:(n&4194048)!==0&&(Tp=o),fl(a,t,Lo,!Dl);break e;case qs:po=null;break;case Pp:case hw:break;default:throw Error("Unknown root exit status.")}if(G.actQueue!==null)Ug(a,n,t,po,Wc,Gp,Lo,Ol,zs,r,null,null,Pa,o);else{if((t&62914560)===t&&(u=Vp+vw-Ua(),10<u)){if(fl(a,t,Lo,!Dl),ts(a,0,!0)!==0)break e;xn=t,a.timeoutHandle=zw(nS.bind(null,a,n,po,Wc,Gp,t,Lo,Ol,zs,Dl,r,"Throttled",Pa,o),u);break e}nS(a,n,po,Wc,Gp,t,Lo,Ol,zs,Dl,r,null,Pa,o)}}}break}while(1);$n(e)}function nS(e,t,a,o,n,r,u,f,m,y,O,q,R,_){e.timeoutHandle=Fs;var ie=t.subtreeFlags,ge=null;if(ie&8192||(ie&16785408)===16785408){if(ge={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:Cr},K0(t,r,ge),ie=(r&62914560)===r?Vp-Ua():(r&4194048)===r?yw-Ua():0,ie=PR(ge,ie),ie!==null){xn=r,e.cancelPendingCommit=ie(Ug.bind(null,e,t,r,a,o,n,u,f,m,O,ge,ge.waitingForViewTransition?"Waiting for the previous Animation":0<ge.count?0<ge.imgCount?"Suspended on CSS and Images":"Suspended on CSS":ge.imgCount===1?"Suspended on an Image":0<ge.imgCount?"Suspended on Images":null,R,_)),fl(e,r,u,!y);return}}Ug(e,t,r,a,o,n,u,f,m,O,ge,q,R,_)}function WI(e){for(var t=e;;){var a=t.tag;if((a===0||a===11||a===15)&&t.flags&16384&&(a=t.updateQueue,a!==null&&(a=a.stores,a!==null)))for(var o=0;o<a.length;o++){var n=a[o],r=n.getSnapshot;n=n.value;try{if(!uo(r(),n))return!1}catch(u){return!1}}if(a=t.child,t.subtreeFlags&16384&&a!==null)a.return=t,t=a;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function fl(e,t,a,o){t&=~yv,t&=~Ol,e.suspendedLanes|=t,e.pingedLanes&=~t,o&&(e.warmLanes|=t),o=e.expirationTimes;for(var n=t;0<n;){var r=31-ro(n),u=1<<r;o[r]=-1,n&=~u}a!==0&&os(e,a,t)}function Cu(){return(Tt&(qa|Ho))===Ha?(lc(0,!1),!1):!0}function Bg(){if(ct!==null){if(_t===So)var e=ct.return;else e=ct,ff(),Yh(e),Ku=null,Hc=0,e=ct;for(;e!==null;)A0(e.alternate,e),e=e.return;ct=null}}function Ss(e,t){(e&127)!==0&&(kl=t),(e&4194048)!==0&&(rr=t),(e&62914560)!==0&&(bC=t),(e&2080374784)!==0&&(xC=t)}function wu(e,t){Kt&&(console.timeStamp("Blocking Track",0.003,0.003,"Blocking",mt,"primary-light"),console.timeStamp("Transition Track",0.003,0.003,"Transition",mt,"primary-light"),console.timeStamp("Suspense Track",0.003,0.003,"Suspense",mt,"primary-light"),console.timeStamp("Idle Track",0.003,0.003,"Idle",mt,"primary-light"));var a=Pa;if(Pa=wa(),it!==0&&0<a){if(Ro(it),la===Pp||la===Ml)ox(a,Pa,t,ga);else{var o=Pa,n=ga;if(Kt&&!(o<=a)){var r=(t&738197653)===t?"tertiary-dark":"primary-dark",u=(t&536870912)===t?"Prewarm":(t&201326741)===t?"Interrupted Hydration":"Interrupted Render";n?n.run(console.timeStamp.bind(console,u,a,o,ht,mt,r)):console.timeStamp(u,a,o,ht,mt,r)}}Ss(it,Pa)}if(a=ga,ga=null,(t&127)!==0){ga=Ac,n=0<=nr&&nr<kl?kl:nr,o=0<=Ts&&Ts<kl?kl:Ts,r=0<=o?o:0<=n?n:Pa,0<=kp?(Ro(2),nx(kp,r,t,a)):(Ip&127)!==0&&(Ro(2),_i(kl,r,Pr)),a=n;var f=o,m=Mc,y=0<Yu,O=Tl===Rc,q=Tl===wp;if(n=Pa,o=Ac,r=Qy,u=Ky,Kt){if(ht="Blocking",0<a?a>n&&(a=n):a=n,0<f?f>a&&(f=a):f=a,m!==null&&a>f){var R=y?"secondary-light":"warning";o?o.run(console.timeStamp.bind(console,y?"Consecutive":"Event: "+m,f,a,ht,mt,R)):console.timeStamp(y?"Consecutive":"Event: "+m,f,a,ht,mt,R)}n>a&&(f=O?"error":(t&738197653)===t?"tertiary-light":"primary-light",O=q?"Promise Resolved":O?"Cascading Update":5<n-a?"Update Blocked":"Update",q=[],u!=null&&q.push(["Component name",u]),r!=null&&q.push(["Method name",r]),a={start:a,end:n,detail:{devtools:{properties:q,track:ht,trackGroup:mt,color:f}}},o?o.run(performance.measure.bind(performance,O,a)):performance.measure(O,a))}nr=-1.1,Tl=0,Ky=Qy=null,kp=-1.1,Yu=Ts,Ts=-1.1,kl=wa()}if((t&4194048)!==0&&(ga=Dc,n=0<=Ur&&Ur<rr?rr:Ur,a=0<=en&&en<rr?rr:en,o=0<=Il&&Il<rr?rr:Il,r=0<=o?o:0<=a?a:Pa,0<=Tp?(Ro(256),nx(Tp,r,t,ga)):(Ip&4194048)!==0&&(Ro(256),_i(rr,r,Pr)),q=o,f=Is,m=0<Rl,y=Zy===wp,r=Pa,o=Dc,u=yC,O=vC,Kt&&(ht="Transition",0<a?a>r&&(a=r):a=r,0<n?n>a&&(n=a):n=a,0<q?q>n&&(q=n):q=n,n>q&&f!==null&&(R=m?"secondary-light":"warning",o?o.run(console.timeStamp.bind(console,m?"Consecutive":"Event: "+f,q,n,ht,mt,R)):console.timeStamp(m?"Consecutive":"Event: "+f,q,n,ht,mt,R)),a>n&&(o?o.run(console.timeStamp.bind(console,"Action",n,a,ht,mt,"primary-dark")):console.timeStamp("Action",n,a,ht,mt,"primary-dark")),r>a&&(n=y?"Promise Resolved":5<r-a?"Update Blocked":"Update",q=[],O!=null&&q.push(["Component name",O]),u!=null&&q.push(["Method name",u]),a={start:a,end:r,detail:{devtools:{properties:q,track:ht,trackGroup:mt,color:"primary-light"}}},o?o.run(performance.measure.bind(performance,n,a)):performance.measure(n,a))),en=Ur=-1.1,Zy=0,Tp=-1.1,Rl=Il,Il=-1.1,rr=wa()),(t&62914560)!==0&&(Ip&62914560)!==0&&(Ro(4194304),_i(bC,Pa,Pr)),(t&2080374784)!==0&&(Ip&2080374784)!==0&&(Ro(268435456),_i(xC,Pa,Pr)),a=e.timeoutHandle,a!==Fs&&(e.timeoutHandle=Fs,DM(a)),a=e.cancelPendingCommit,a!==null&&(e.cancelPendingCommit=null,a()),xn=0,Bg(),Xt=e,ct=a=wr(e.current,null),it=t,_t=So,Fo=null,Dl=!1,ri=as(e,t),gv=!1,la=Vr,zs=Lo=yv=Ol=El=0,po=Zc=null,Gp=!1,(t&8)!==0&&(t|=t&32),o=e.entangledLanes,o!==0)for(e=e.entanglements,o&=t;0<o;)n=31-ro(o),r=1<<n,t|=e[n],o&=~r;return sr=t,lf(),e=dC(),1000<e-cC&&(G.recentlyCreatedOwnerStacks=0,cC=e),yn.discardPendingWarnings(),a}function rS(e,t){Ke=null,G.H=jc,G.getCurrentStack=null,Wn=!1,Bo=null,t===Qu||t===Dp?(t=Tx(),_t=Qc):t===tv?(t=Tx(),_t=gw):_t=t===dv?hv:t!==null&&typeof t==="object"&&typeof t.then==="function"?Kc:Hp,Fo=t;var a=ct;a===null?(la=$c,zf(e,Ao(t,e.current))):a.mode&st&&qh(a)}function lS(){var e=Po.current;return e===null?!0:(it&4194048)===it?tn===null?!0:!1:(it&62914560)===it||(it&536870912)!==0?e===tn:!1}function sS(){var e=G.H;return G.H=jc,e===null?jc:e}function uS(){var e=G.A;return G.A=yM,e}function jf(e){ga===null&&(ga=e._debugTask==null?null:e._debugTask)}function Xf(){la=Ml,Dl||(it&4194048)!==it&&Po.current!==null||(ri=!0),(El&134217727)===0&&(Ol&134217727)===0||Xt===null||fl(Xt,it,Lo,!1)}function zg(e,t,a){var o=Tt;Tt|=qa;var n=sS(),r=uS();if(Xt!==e||it!==t){if(er){var u=e.memoizedUpdaters;0<u.size&&(rc(e,it),u.clear()),tl(e,t)}Wc=null,wu(e,t)}t=!1,u=la;e:do try{if(_t!==So&&ct!==null){var f=ct,m=Fo;switch(_t){case hv:Bg(),u=_p;break e;case Qc:case Ns:case Bs:case Kc:Po.current===null&&(t=!0);var y=_t;if(_t=So,Fo=null,ku(e,f,m,y),a&&ri){u=Vr;break e}break;default:y=_t,_t=So,Fo=null,ku(e,f,m,y)}}iS(),u=la;break}catch(O){rS(e,O)}while(1);return t&&e.shellSuspendCounter++,ff(),Tt=o,G.H=n,G.A=r,ct===null&&(Xt=null,it=0,lf()),u}function iS(){for(;ct!==null;)cS(ct)}function JI(e,t){var a=Tt;Tt|=qa;var o=sS(),n=uS();if(Xt!==e||it!==t){if(er){var r=e.memoizedUpdaters;0<r.size&&(rc(e,it),r.clear()),tl(e,t)}Wc=null,jp=Ua()+bw,wu(e,t)}else ri=as(e,t);e:do try{if(_t!==So&&ct!==null)t:switch(t=ct,r=Fo,_t){case Hp:_t=So,Fo=null,ku(e,t,r,Hp);break;case Ns:case Bs:if(wx(r)){_t=So,Fo=null,dS(t);break}t=function(){_t!==Ns&&_t!==Bs||Xt!==e||(_t=Fp),$n(e)},r.then(t,t);break e;case Qc:_t=Fp;break e;case gw:_t=mv;break e;case Fp:wx(r)?(_t=So,Fo=null,dS(t)):(_t=So,Fo=null,ku(e,t,r,Fp));break;case mv:var u=null;switch(ct.tag){case 26:u=ct.memoizedState;case 5:case 27:var f=ct;if(u?oL(u):f.stateNode.complete){_t=So,Fo=null;var m=f.sibling;if(m!==null)ct=m;else{var y=f.return;y!==null?(ct=y,Yf(y)):ct=null}break t}break;default:console.error("Unexpected type of fiber triggered a suspensey commit. This is a bug in React.")}_t=So,Fo=null,ku(e,t,r,mv);break;case Kc:_t=So,Fo=null,ku(e,t,r,Kc);break;case hv:Bg(),la=_p;break e;default:throw Error("Unexpected SuspendedReason. This is a bug in React.")}G.actQueue!==null?iS():eR();break}catch(O){rS(e,O)}while(1);if(ff(),G.H=o,G.A=n,Tt=a,ct!==null)return Vr;return Xt=null,it=0,lf(),la}function eR(){for(;ct!==null&&!WR();)cS(ct)}function cS(e){var t=e.alternate;(e.mode&st)!==Ve?(Oh(e),t=j(e,Ig,t,e,sr),qh(e)):t=j(e,Ig,t,e,sr),e.memoizedProps=e.pendingProps,t===null?Yf(e):ct=t}function dS(e){var t=j(e,tR,e);e.memoizedProps=e.pendingProps,t===null?Yf(e):ct=t}function tR(e){var t=e.alternate,a=(e.mode&st)!==Ve;switch(a&&Oh(e),e.tag){case 15:case 0:t=L0(t,e,e.pendingProps,e.type,void 0,it);break;case 11:t=L0(t,e,e.pendingProps,e.type.render,e.ref,it);break;case 5:Yh(e);default:A0(t,e),e=ct=cx(e,sr),t=Ig(t,e,sr)}return a&&qh(e),t}function ku(e,t,a,o){ff(),Yh(t),Ku=null,Hc=0;var n=t.return;try{if(PI(e,n,t,a,it)){la=$c,zf(e,Ao(a,e.current)),ct=null;return}}catch(r){if(n!==null)throw ct=n,r;la=$c,zf(e,Ao(a,e.current)),ct=null;return}if(t.flags&32768){if(vt||o===Hp)e=!0;else if(ri||(it&536870912)!==0)e=!1;else if(Dl=e=!0,o===Ns||o===Bs||o===Qc||o===Kc)o=Po.current,o!==null&&o.tag===13&&(o.flags|=16384);fS(t,e)}else Yf(t)}function Yf(e){var t=e;do{if((t.flags&32768)!==0){fS(t,Dl);return}var a=t.alternate;if(e=t.return,Oh(t),a=j(t,FI,a,t,sr),(t.mode&st)!==Ve&&bx(t),a!==null){ct=a;return}if(t=t.sibling,t!==null){ct=t;return}ct=t=e}while(t!==null);la===Vr&&(la=hw)}function fS(e,t){do{var a=GI(e.alternate,e);if(a!==null){a.flags&=32767,ct=a;return}if((e.mode&st)!==Ve){bx(e),a=e.actualDuration;for(var o=e.child;o!==null;)a+=o.actualDuration,o=o.sibling;e.actualDuration=a}if(a=e.return,a!==null&&(a.flags|=32768,a.subtreeFlags=0,a.deletions=null),!t&&(e=e.sibling,e!==null)){ct=e;return}ct=e=a}while(e!==null);la=_p,ct=null}function Ug(e,t,a,o,n,r,u,f,m,y,O,q,R,_){e.cancelPendingCommit=null;do nc();while(Aa!==Nl);if(yn.flushLegacyContextWarning(),yn.flushPendingUnsafeLifecycleWarnings(),(Tt&(qa|Ho))!==Ha)throw Error("Should not already be working.");if(Ro(a),y===qs?bh(R,_,a,ga):o!==null?TI(R,_,a,o,t!==null&&t.alternate!==null&&t.alternate.memoizedState.isDehydrated&&(t.flags&256)!==0,ga):kI(R,_,a,ga),t!==null){if(a===0&&console.error("finishedLanes should not be empty during a commit. This is a bug in React."),t===e.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(r=t.lanes|t.childLanes,r|=Vy,Qd(e,a,r,u,f,m),e===Xt&&(ct=Xt=null,it=0),li=t,Bl=e,xn=a,xv=r,Lv=n,kw=o,Sv=_,Tw=q,Sn=Xp,Iw=null,t.actualDuration!==0||(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?(e.callbackNode=null,e.callbackPriority=0,lR(Du,function(){return nd=window.event,Sn===Xp&&(Sn=bv),yS(),null})):(e.callbackNode=null,e.callbackPriority=0),zr=null,wl=wa(),q!==null&&II(_,wl,q,ga),o=(t.flags&13878)!==0,(t.subtreeFlags&13878)!==0||o){o=G.T,G.T=null,n=zt.p,zt.p=zo,u=Tt,Tt|=Ho;try{QI(e,t,a)}finally{Tt=u,zt.p=n,G.T=o}}Aa=Sw,pS(),mS(),hS()}}function pS(){if(Aa===Sw){Aa=Nl;var e=Bl,t=li,a=xn,o=(t.flags&13878)!==0;if((t.subtreeFlags&13878)!==0||o){o=G.T,G.T=null;var n=zt.p;zt.p=zo;var r=Tt;Tt|=Ho;try{oi=a,ni=e,gf(),V0(t,e),ni=oi=null,a=Ov;var u=ex(e.containerInfo),f=a.focusedElem,m=a.selectionRange;if(u!==f&&f&&f.ownerDocument&&Jb(f.ownerDocument.documentElement,f)){if(m!==null&&gh(f)){var{start:y,end:O}=m;if(O===void 0&&(O=y),"selectionStart"in f)f.selectionStart=y,f.selectionEnd=Math.min(O,f.value.length);else{var q=f.ownerDocument||document,R=q&&q.defaultView||window;if(R.getSelection){var _=R.getSelection(),ie=f.textContent.length,ge=Math.min(m.start,ie),Qt=m.end===void 0?ge:Math.min(m.end,ie);!_.extend&&ge>Qt&&(u=Qt,Qt=ge,ge=u);var kt=Wb(f,ge),I=Wb(f,Qt);if(kt&&I&&(_.rangeCount!==1||_.anchorNode!==kt.node||_.anchorOffset!==kt.offset||_.focusNode!==I.node||_.focusOffset!==I.offset)){var A=q.createRange();A.setStart(kt.node,kt.offset),_.removeAllRanges(),ge>Qt?(_.addRange(A),_.extend(I.node,I.offset)):(A.setEnd(I.node,I.offset),_.addRange(A))}}}}q=[];for(_=f;_=_.parentNode;)_.nodeType===1&&q.push({element:_,left:_.scrollLeft,top:_.scrollTop});typeof f.focus==="function"&&f.focus();for(f=0;f<q.length;f++){var E=q[f];E.element.scrollLeft=E.left,E.element.scrollTop=E.top}}um=!!Ev,Ov=Ev=null}finally{Tt=r,zt.p=n,G.T=o}}e.current=t,Aa=Lw}}function mS(){if(Aa===Lw){Aa=Nl;var e=Iw;if(e!==null){wl=wa();var t=Br,a=wl;!Kt||a<=t||(Pr?Pr.run(console.timeStamp.bind(console,e,t,a,ht,mt,"secondary-light")):console.timeStamp(e,t,a,ht,mt,"secondary-light"))}e=Bl,t=li,a=xn;var o=(t.flags&8772)!==0;if((t.subtreeFlags&8772)!==0||o){o=G.T,G.T=null;var n=zt.p;zt.p=zo;var r=Tt;Tt|=Ho;try{oi=a,ni=e,gf(),P0(e,t.alternate,t),ni=oi=null}finally{Tt=r,zt.p=n,G.T=o}}e=Sv,t=Tw,Br=wa(),e=t===null?e:wl,t=Br,a=Sn===vv,o=ga,zr!==null?rx(e,t,zr,!1,o):!Kt||t<=e||(o?o.run(console.timeStamp.bind(console,a?"Commit Interrupted View Transition":"Commit",e,t,ht,mt,a?"error":"secondary-dark")):console.timeStamp(a?"Commit Interrupted View Transition":"Commit",e,t,ht,mt,a?"error":"secondary-dark")),Aa=Cw}}function hS(){if(Aa===ww||Aa===Cw){if(Aa===ww){var e=Br;Br=wa();var t=Br,a=Sn===vv;!Kt||t<=e||(Pr?Pr.run(console.timeStamp.bind(console,a?"Interrupted View Transition":"Starting Animation",e,t,ht,mt,a?"error":"secondary-light")):console.timeStamp(a?"Interrupted View Transition":"Starting Animation",e,t,ht,mt,a?" error":"secondary-light")),Sn!==vv&&(Sn=xw)}Aa=Nl,JR(),e=Bl;var o=li;t=xn,a=kw;var n=o.actualDuration!==0||(o.subtreeFlags&10256)!==0||(o.flags&10256)!==0;n?Aa=Yp:(Aa=Nl,li=Bl=null,gS(e,e.pendingLanes),Us=0,ed=null);var r=e.pendingLanes;if(r===0&&(ql=null),n||SS(e),r=S(t),o=o.stateNode,eo&&typeof eo.onCommitFiberRoot==="function")try{var u=(o.current.flags&128)===128;switch(r){case zo:var f=Ly;break;case hn:f=Cy;break;case tr:f=Du;break;case dp:f=wy;break;default:f=Du}eo.onCommitFiberRoot(Eu,o,f,u)}catch(q){Jn||(Jn=!0,console.error("React instrumentation encountered an error: %o",q))}if(er&&e.memoizedUpdaters.clear(),ZI(),a!==null){u=G.T,f=zt.p,zt.p=zo,G.T=null;try{var m=e.onRecoverableError;for(o=0;o<a.length;o++){var y=a[o],O=aR(y.stack);j(y.source,m,y.value,O)}}finally{G.T=u,zt.p=f}}(xn&3)!==0&&nc(),$n(e),r=e.pendingLanes,(t&261930)!==0&&(r&42)!==0?(Ap=!0,e===Cv?Jc++:(Jc=0,Cv=e)):Jc=0,n||Ss(t,Br),lc(0,!1)}}function aR(e){return e={componentStack:e},Object.defineProperty(e,"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.')}}),e}function gS(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,Fi(t)))}function nc(){return pS(),mS(),hS(),yS()}function yS(){if(Aa!==Yp)return!1;var e=Bl,t=xv;xv=0;var a=S(xn),o=tr===0||tr>a?tr:a;a=G.T;var n=zt.p;try{zt.p=o,G.T=null;var r=Lv;Lv=null,o=Bl;var u=xn;if(Aa=Nl,li=Bl=null,xn=0,(Tt&(qa|Ho))!==Ha)throw Error("Cannot flush passive effects while already rendering.");Ro(u),wv=!0,$p=!1;var f=0;if(zr=null,f=Ua(),Sn===xw)_i(Br,f,Pr);else{var m=Br,y=f,O=Sn===bv;!Kt||y<=m||(ga?ga.run(console.timeStamp.bind(console,O?"Waiting for Paint":"Waiting",m,y,ht,mt,"secondary-light")):console.timeStamp(O?"Waiting for Paint":"Waiting",m,y,ht,mt,"secondary-light"))}m=Tt,Tt|=Ho;var q=o.current;gf(),W0(q);var R=o.current;q=Sv,gf(),$0(o,R,u,r,q),SS(o),Tt=m;var _=Ua();if(R=f,q=ga,zr!==null?rx(R,_,zr,!0,q):!Kt||_<=R||(q?q.run(console.timeStamp.bind(console,"Remaining Effects",R,_,ht,mt,"secondary-dark")):console.timeStamp("Remaining Effects",R,_,ht,mt,"secondary-dark")),Ss(u,_),lc(0,!1),$p?o===ed?Us++:(Us=0,ed=o):Us=0,$p=wv=!1,eo&&typeof eo.onPostCommitFiberRoot==="function")try{eo.onPostCommitFiberRoot(Eu,o)}catch(ge){Jn||(Jn=!0,console.error("React instrumentation encountered an error: %o",ge))}var ie=o.current.stateNode;return ie.effectDuration=0,ie.passiveEffectDuration=0,!0}finally{zt.p=n,G.T=a,gS(e,t)}}function vS(e,t,a){t=Ao(a,t),xx(t),t=gg(e.stateNode,t,2),e=ul(e,t,2),e!==null&&(el(e,2),$n(e))}function Bt(e,t,a){if(si=!1,e.tag===3)vS(e,e,a);else{for(;t!==null;){if(t.tag===3){vS(t,e,a);return}if(t.tag===1){var o=t.stateNode;if(typeof t.type.getDerivedStateFromError==="function"||typeof o.componentDidCatch==="function"&&(ql===null||!ql.has(o))){e=Ao(a,e),xx(e),a=yg(2),o=ul(t,a,2),o!==null&&(vg(a,o,t,e),el(o,2),$n(o));return}}t=t.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: "+o,Y(t,function(f,m){console.error("%s must not return anything besides a function, which is used for clean-up.%s",f,m)},n,u)}a=a.next}while(a!==r)}}catch(f){Bt(t,t.return,f)}}function xu(e,t,a){try{var o=t.updateQueue,r=o!==null?o.lastEffect:null;if(r!==null){var n=r.next;o=n;do{if((o.tag&e)===e){var u=o.inst,f=u.destroy;f!==void 0&&(u.destroy=void 0,(e&fo)!==Np&&(si=!0),r=t,Y(r,CM,r,a,f),(e&fo)!==Np&&(si=!1))}o=o.next}while(o!==n)}}catch(m){Bt(t,t.return,m)}}function PS(e,t){Gr(e)?(Fr(),tc(t,e),Hr()):tc(t,e)}function Ng(e,t,a){Gr(e)?(Fr(),xu(a,e,t),Hr()):xu(a,e,t)}function _S(e){var t=e.updateQueue;if(t!==null){var a=e.stateNode;e.type.defaultProps||"ref"in e.memoizedProps||ai||(a.props!==e.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.",V(e)||"instance"),a.state!==e.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.",V(e)||"instance"));try{Y(e,Fx,t,a)}catch(o){Bt(e,e.return,o)}}}function eR(e,t,a){return e.getSnapshotBeforeUpdate(t,a)}function tR(e,t){var a=t.memoizedProps,o=t.memoizedState;t=e.stateNode,e.type.defaultProps||"ref"in e.memoizedProps||ai||(t.props!==e.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.",V(e)||"instance"),t.state!==e.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.",V(e)||"instance"));try{var r=bs(e.type,a),n=Y(e,eR,t,r,o);a=Sw,n!==void 0||a.has(e.type)||(a.add(e.type),Y(e,function(){console.error("%s.getSnapshotBeforeUpdate(): A snapshot value (or null) must be returned. You have returned undefined.",V(e))})),t.__reactInternalSnapshotBeforeUpdate=n}catch(u){Bt(e,e.return,u)}}function HS(e,t,a){a.props=bs(e.type,e.memoizedProps),a.state=e.memoizedState,Gr(e)?(Fr(),Y(e,_C,e,t,a),Hr()):Y(e,_C,e,t,a)}function aR(e){var t=e.ref;if(t!==null){switch(e.tag){case 26:case 27:case 5:var a=e.stateNode;break;case 30:a=e.stateNode;break;default:a=e.stateNode}if(typeof t==="function")if(Gr(e))try{Fr(),e.refCleanup=t(a)}finally{Hr()}else e.refCleanup=t(a);else typeof t==="string"?console.error("String refs are no longer supported."):t.hasOwnProperty("current")||console.error("Unexpected ref object provided for %s. Use either a ref-setter function or React.createRef().",V(e)),t.current=a}}function ac(e,t){try{Y(e,aR,e)}catch(a){Bt(e,t,a)}}function Vr(e,t){var a=e.ref,o=e.refCleanup;if(a!==null)if(typeof o==="function")try{if(Gr(e))try{Fr(),Y(e,o)}finally{Hr(e)}else Y(e,o)}catch(r){Bt(e,t,r)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof a==="function")try{if(Gr(e))try{Fr(),Y(e,a,null)}finally{Hr(e)}else Y(e,a,null)}catch(r){Bt(e,t,r)}else a.current=null}function FS(e,t,a,o){var r=e.memoizedProps,n=r.id,u=r.onCommit;r=r.onRender,t=t===null?"mount":"update",Ap&&(t="nested-update"),typeof r==="function"&&r(n,t,e.actualDuration,e.treeBaseDuration,e.actualStartTime,a),typeof u==="function"&&u(n,t,o,a)}function oR(e,t,a,o){var r=e.memoizedProps;e=r.id,r=r.onPostCommit,t=t===null?"mount":"update",Ap&&(t="nested-update"),typeof r==="function"&&r(e,t,o,a)}function GS(e){var{type:t,memoizedProps:a,stateNode:o}=e;try{Y(e,TR,o,t,a,e)}catch(r){Bt(e,e.return,r)}}function Bg(e,t,a){try{Y(e,AR,e.stateNode,e.type,a,t,e)}catch(o){Bt(e,e.return,o)}}function VS(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&ml(e.type)||e.tag===4}function zg(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||VS(e.return))return null;e=e.return}e.sibling.return=e.return;for(e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.tag===27&&ml(e.type))continue e;if(e.flags&2)continue e;if(e.child===null||e.tag===4)continue e;else e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function Ug(e,t,a){var o=e.tag;if(o===5||o===6)e=e.stateNode,t?(Z0(a),(a.nodeType===9?a.body:a.nodeName==="HTML"?a.ownerDocument.body:a).insertBefore(e,t)):(Z0(a),t=a.nodeType===9?a.body:a.nodeName==="HTML"?a.ownerDocument.body:a,t.appendChild(e),a=a._reactRootContainer,a!==null&&a!==void 0||t.onclick!==null||(t.onclick=Cn));else if(o!==4&&(o===27&&ml(e.type)&&(a=e.stateNode,t=null),e=e.child,e!==null))for(Ug(e,t,a),e=e.sibling;e!==null;)Ug(e,t,a),e=e.sibling}function Gf(e,t,a){var o=e.tag;if(o===5||o===6)e=e.stateNode,t?a.insertBefore(e,t):a.appendChild(e);else if(o!==4&&(o===27&&ml(e.type)&&(a=e.stateNode),e=e.child,e!==null))for(Gf(e,t,a),e=e.sibling;e!==null;)Gf(e,t,a),e=e.sibling}function rR(e){for(var t,a=e.return;a!==null;){if(VS(a)){t=a;break}a=a.return}if(t==null)throw Error("Expected to find a host parent. This error is likely caused by a bug in React. Please file an issue.");switch(t.tag){case 27:t=t.stateNode,a=zg(e),Gf(e,a,t);break;case 5:a=t.stateNode,t.flags&32&&(K0(a),t.flags&=-33),t=zg(e),Gf(e,t,a);break;case 3:case 4:t=t.stateNode.containerInfo,a=zg(e),Ug(e,a,t);break;default:throw Error("Invalid host parent fiber. This error is likely caused by a bug in React. Please file an issue.")}}function jS(e){var{stateNode:t,memoizedProps:a}=e;try{Y(e,jR,e.type,a,t,e)}catch(o){Bt(e,e.return,o)}}function XS(e,t){return t.tag===31?(t=t.memoizedState,e.memoizedState!==null&&t===null):t.tag===13?(e=e.memoizedState,t=t.memoizedState,e!==null&&e.dehydrated!==null&&(t===null||t.dehydrated===null)):t.tag===3?e.memoizedState.isDehydrated&&(t.flags&256)===0:!1}function nR(e,t){if(e=e.containerInfo,zv=im,e=ux(e),Sh(e)){if("selectionStart"in e)var a={start:e.selectionStart,end:e.selectionEnd};else e:{a=(a=e.ownerDocument)&&a.defaultView||window;var o=a.getSelection&&a.getSelection();if(o&&o.rangeCount!==0){a=o.anchorNode;var r=o.anchorOffset,n=o.focusNode;o=o.focusOffset;try{a.nodeType,n.nodeType}catch(ce){a=null;break e}var u=0,f=-1,m=-1,y=0,q=0,O=e,R=null;t:for(;;){for(var _;;){if(O!==a||r!==0&&O.nodeType!==3||(f=u+r),O!==n||o!==0&&O.nodeType!==3||(m=u+o),O.nodeType===3&&(u+=O.nodeValue.length),(_=O.firstChild)===null)break;R=O,O=_}for(;;){if(O===e)break t;if(R===a&&++y===r&&(f=u),R===n&&++q===o&&(m=u),(_=O.nextSibling)!==null)break;O=R,R=O.parentNode}O=_}a=f===-1||m===-1?null:{start:f,end:m}}else a=null}a=a||{start:0,end:0}}else a=null;Uv={focusedElem:e,selectionRange:a},im=!1;for(_a=t;_a!==null;)if(t=_a,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,_a=e;else for(;_a!==null;){switch(e=t=_a,a=e.alternate,r=e.flags,e.tag){case 0:if((r&4)!==0&&(e=e.updateQueue,e=e!==null?e.events:null,e!==null))for(a=0;a<e.length;a++)r=e[a],r.ref.impl=r.nextImpl;break;case 11:case 15:break;case 1:(r&1024)!==0&&a!==null&&tR(e,a);break;case 3:if((r&1024)!==0){if(e=e.stateNode.containerInfo,a=e.nodeType,a===9)ry(e);else if(a===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":ry(e);break;default:e.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((r&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(e=t.sibling,e!==null){e.return=t.return,_a=e;break}_a=t.return}}function YS(e,t,a){var o=Mo(),r=zr(),n=Pr(),u=_r(),f=a.flags;switch(a.tag){case 0:case 11:case 15:jr(e,a),f&4&&US(a,_o|ar);break;case 1:if(jr(e,a),f&4)if(e=a.stateNode,t===null)a.type.defaultProps||"ref"in a.memoizedProps||ai||(e.props!==a.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.",V(a)||"instance"),e.state!==a.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.",V(a)||"instance")),Gr(a)?(Fr(),Y(a,nv,a,e),Hr()):Y(a,nv,a,e);else{var m=bs(a.type,t.memoizedProps);t=t.memoizedState,a.type.defaultProps||"ref"in a.memoizedProps||ai||(e.props!==a.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.",V(a)||"instance"),e.state!==a.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.",V(a)||"instance")),Gr(a)?(Fr(),Y(a,zC,a,e,m,t,e.__reactInternalSnapshotBeforeUpdate),Hr()):Y(a,zC,a,e,m,t,e.__reactInternalSnapshotBeforeUpdate)}f&64&&_S(a),f&512&&ac(a,a.return);break;case 3:if(t=Tn(),jr(e,a),f&64&&(f=a.updateQueue,f!==null)){if(m=null,a.child!==null)switch(a.child.tag){case 27:case 5:m=a.child.stateNode;break;case 1:m=a.child.stateNode}try{Y(a,Fx,f,m)}catch(q){Bt(a,a.return,q)}}e.effectDuration+=gf(t);break;case 27:t===null&&f&4&&jS(a);case 26:case 5:if(jr(e,a),t===null){if(f&4)GS(a);else if(f&64){e=a.type,t=a.memoizedProps,m=a.stateNode;try{Y(a,RR,m,e,t,a)}catch(q){Bt(a,a.return,q)}}}f&512&&ac(a,a.return);break;case 12:if(f&4){f=Tn(),jr(e,a),e=a.stateNode,e.effectDuration+=Vi(f);try{Y(a,FS,a,t,wl,e.effectDuration)}catch(q){Bt(a,a.return,q)}}else jr(e,a);break;case 31:jr(e,a),f&4&&KS(e,a);break;case 13:jr(e,a),f&4&&ZS(e,a),f&64&&(e=a.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(f=mR.bind(null,a),HR(e,f))));break;case 22:if(f=a.memoizedState!==null||Gn,!f){t=t!==null&&t.memoizedState!==null||Ta,m=Gn;var y=Ta;Gn=f,(Ta=t)&&!y?(Xr(e,a,(a.subtreeFlags&8772)!==0),(a.mode&st)!==Ve&&0<=Ne&&0<=Pe&&0.05<Pe-Ne&&nf(a,Ne,Pe)):jr(e,a),Gn=m,Ta=y}break;case 30:break;default:jr(e,a)}(a.mode&st)!==Ve&&0<=Ne&&0<=Pe&&((ca||0.05<na)&&Nr(a,Ne,Pe,na,aa),a.alternate===null&&a.return!==null&&a.return.alternate!==null&&0.05<Pe-Ne&&(XS(a.return.alternate,a.return)||Or(a,Ne,Pe,"Mount"))),Do(o),Ur(r),aa=n,ca=u}function $S(e){var t=e.alternate;t!==null&&(e.alternate=null,$S(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&fe(t)),e.stateNode=null,e._debugOwner=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function Mn(e,t,a){for(a=a.child;a!==null;)QS(e,t,a),a=a.sibling}function QS(e,t,a){if(eo&&typeof eo.onCommitFiberUnmount==="function")try{eo.onCommitFiberUnmount(Eu,a)}catch(y){Wr||(Wr=!0,console.error("React instrumentation encountered an error: %o",y))}var o=Mo(),r=zr(),n=Pr(),u=_r();switch(a.tag){case 26:Ta||Vr(a,t),Mn(e,t,a),a.memoizedState?a.memoizedState.count--:a.stateNode&&(e=a.stateNode,e.parentNode.removeChild(e));break;case 27:Ta||Vr(a,t);var f=Ra,m=So;ml(a.type)&&(Ra=a.stateNode,So=!1),Mn(e,t,a),Y(a,dc,a.stateNode),Ra=f,So=m;break;case 5:Ta||Vr(a,t);case 6:if(f=Ra,m=So,Ra=null,Mn(e,t,a),Ra=f,So=m,Ra!==null)if(So)try{Y(a,ER,Ra,a.stateNode)}catch(y){Bt(a,t,y)}else try{Y(a,DR,Ra,a.stateNode)}catch(y){Bt(a,t,y)}break;case 18:Ra!==null&&(So?(e=Ra,W0(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,a.stateNode),Ru(e)):W0(Ra,a.stateNode));break;case 4:f=Ra,m=So,Ra=a.stateNode.containerInfo,So=!0,Mn(e,t,a),Ra=f,So=m;break;case 0:case 11:case 14:case 15:xu(fo,a,t),Ta||Og(a,t,_o),Mn(e,t,a);break;case 1:Ta||(Vr(a,t),f=a.stateNode,typeof f.componentWillUnmount==="function"&&HS(a,t,f)),Mn(e,t,a);break;case 21:Mn(e,t,a);break;case 22:Ta=(f=Ta)||a.memoizedState!==null,Mn(e,t,a),Ta=f;break;default:Mn(e,t,a)}(a.mode&st)!==Ve&&0<=Ne&&0<=Pe&&(ca||0.05<na)&&Nr(a,Ne,Pe,na,aa),Do(o),Ur(r),aa=n,ca=u}function KS(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{Y(t,GR,e)}catch(a){Bt(t,t.return,a)}}}function ZS(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{Y(t,VR,e)}catch(a){Bt(t,t.return,a)}}function lR(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new Lw),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new Lw),t;default:throw Error("Unexpected Suspense handler tag ("+e.tag+"). This is a bug in React.")}}function Vf(e,t){var a=lR(e);t.forEach(function(o){if(!a.has(o)){if(a.add(o),Jr)if(oi!==null&&ri!==null)lc(ri,oi);else throw Error("Expected finished root and lanes to be set. This is a bug in React.");var r=hR.bind(null,e,o);o.then(r,r)}})}function bo(e,t){var a=t.deletions;if(a!==null)for(var o=0;o<a.length;o++){var r=e,n=t,u=a[o],f=Mo(),m=n;e:for(;m!==null;){switch(m.tag){case 27:if(ml(m.type)){Ra=m.stateNode,So=!1;break e}break;case 5:Ra=m.stateNode,So=!1;break e;case 3:case 4:Ra=m.stateNode.containerInfo,So=!0;break e}m=m.return}if(Ra===null)throw Error("Expected to find a host parent. This error is likely caused by a bug in React. Please file an issue.");QS(r,n,u),Ra=null,So=!1,(u.mode&st)!==Ve&&0<=Ne&&0<=Pe&&0.05<Pe-Ne&&Or(u,Ne,Pe,"Unmount"),Do(f),r=u,n=r.alternate,n!==null&&(n.return=null),r.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)WS(t,e),t=t.sibling}function WS(e,t){var a=Mo(),o=zr(),r=Pr(),n=_r(),{alternate:u,flags:f}=e;switch(e.tag){case 0:case 11:case 14:case 15:bo(t,e),xo(e),f&4&&(xu(fo|ar,e,e.return),tc(fo|ar,e),Og(e,e.return,_o|ar));break;case 1:if(bo(t,e),xo(e),f&512&&(Ta||u===null||Vr(u,u.return)),f&64&&Gn&&(f=e.updateQueue,f!==null&&(u=f.callbacks,u!==null))){var m=f.shared.hiddenCallbacks;f.shared.hiddenCallbacks=m===null?u:m.concat(u)}break;case 26:if(m=vr,bo(t,e),xo(e),f&512&&(Ta||u===null||Vr(u,u.return)),f&4){var y=u!==null?u.memoizedState:null;if(f=e.memoizedState,u===null)if(f===null)if(e.stateNode===null){e:{f=e.type,u=e.memoizedProps,m=m.ownerDocument||m;t:switch(f){case"title":if(y=m.getElementsByTagName("title")[0],!y||y[vc]||y[Qa]||y.namespaceURI===Ou||y.hasAttribute("itemprop"))y=m.createElement(f),m.head.insertBefore(y,m.querySelector("head > title"));$a(y,f,u),y[Qa]=e,Oe(y),f=y;break e;case"link":var q=iL("link","href",m).get(f+(u.href||""));if(q){for(var O=0;O<q.length;O++)if(y=q[O],y.getAttribute("href")===(u.href==null||u.href===""?null:u.href)&&y.getAttribute("rel")===(u.rel==null?null:u.rel)&&y.getAttribute("title")===(u.title==null?null:u.title)&&y.getAttribute("crossorigin")===(u.crossOrigin==null?null:u.crossOrigin)){q.splice(O,1);break t}}y=m.createElement(f),$a(y,f,u),m.head.appendChild(y);break;case"meta":if(q=iL("meta","content",m).get(f+(u.content||""))){for(O=0;O<q.length;O++)if(y=q[O],Xe(u.content,"content"),y.getAttribute("content")===(u.content==null?null:""+u.content)&&y.getAttribute("name")===(u.name==null?null:u.name)&&y.getAttribute("property")===(u.property==null?null:u.property)&&y.getAttribute("http-equiv")===(u.httpEquiv==null?null:u.httpEquiv)&&y.getAttribute("charset")===(u.charSet==null?null:u.charSet)){q.splice(O,1);break t}}y=m.createElement(f),$a(y,f,u),m.head.appendChild(y);break;default:throw Error('getNodesForType encountered a type it did not expect: "'+f+'". This is a bug in React.')}y[Qa]=e,Oe(y),f=y}e.stateNode=f}else cL(m,e.type,e.stateNode);else e.stateNode=uL(m,f,e.memoizedProps);else y!==f?(y===null?u.stateNode!==null&&(u=u.stateNode,u.parentNode.removeChild(u)):y.count--,f===null?cL(m,e.type,e.stateNode):uL(m,f,e.memoizedProps)):f===null&&e.stateNode!==null&&Bg(e,e.memoizedProps,u.memoizedProps)}break;case 27:bo(t,e),xo(e),f&512&&(Ta||u===null||Vr(u,u.return)),u!==null&&f&4&&Bg(e,e.memoizedProps,u.memoizedProps);break;case 5:if(bo(t,e),xo(e),f&512&&(Ta||u===null||Vr(u,u.return)),e.flags&32){m=e.stateNode;try{Y(e,K0,m)}catch(ge){Bt(e,e.return,ge)}}f&4&&e.stateNode!=null&&(m=e.memoizedProps,Bg(e,m,u!==null?u.memoizedProps:m)),f&1024&&(vv=!0,e.type!=="form"&&console.error("Unexpected host component type. Expected a form. This is a bug in React."));break;case 6:if(bo(t,e),xo(e),f&4){if(e.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.");f=e.memoizedProps,u=u!==null?u.memoizedProps:f,m=e.stateNode;try{Y(e,MR,m,u,f)}catch(ge){Bt(e,e.return,ge)}}break;case 3:if(m=Tn(),lm=null,y=vr,vr=Wf(t.containerInfo),bo(t,e),vr=y,xo(e),f&4&&u!==null&&u.memoizedState.isDehydrated)try{Y(e,FR,t.containerInfo)}catch(ge){Bt(e,e.return,ge)}vv&&(vv=!1,JS(e)),t.effectDuration+=gf(m);break;case 4:f=vr,vr=Wf(e.stateNode.containerInfo),bo(t,e),xo(e),vr=f;break;case 12:f=Tn(),bo(t,e),xo(e),e.stateNode.effectDuration+=Vi(f);break;case 31:bo(t,e),xo(e),f&4&&(f=e.updateQueue,f!==null&&(e.updateQueue=null,Vf(e,f)));break;case 13:bo(t,e),xo(e),e.child.flags&8192&&e.memoizedState!==null!==(u!==null&&u.memoizedState!==null)&&(jp=Ua()),f&4&&(f=e.updateQueue,f!==null&&(e.updateQueue=null,Vf(e,f)));break;case 22:m=e.memoizedState!==null;var R=u!==null&&u.memoizedState!==null,_=Gn,ce=Ta;if(Gn=_||m,Ta=ce||R,bo(t,e),Ta=ce,Gn=_,R&&!m&&!_&&!ce&&(e.mode&st)!==Ve&&0<=Ne&&0<=Pe&&0.05<Pe-Ne&&nf(e,Ne,Pe),xo(e),f&8192)e:for(t=e.stateNode,t._visibility=m?t._visibility&~Tc:t._visibility|Tc,!m||u===null||R||Gn||Ta||(xs(e),(e.mode&st)!==Ve&&0<=Ne&&0<=Pe&&0.05<Pe-Ne&&Or(e,Ne,Pe,"Disconnect")),u=null,t=e;;){if(t.tag===5||t.tag===26){if(u===null){R=u=t;try{y=R.stateNode,m?Y(R,OR,y):Y(R,zR,R.stateNode,R.memoizedProps)}catch(ge){Bt(R,R.return,ge)}}}else if(t.tag===6){if(u===null){R=t;try{q=R.stateNode,m?Y(R,NR,q):Y(R,UR,q,R.memoizedProps)}catch(ge){Bt(R,R.return,ge)}}}else if(t.tag===18){if(u===null){R=t;try{O=R.stateNode,m?Y(R,qR,O):Y(R,BR,R.stateNode)}catch(ge){Bt(R,R.return,ge)}}}else if((t.tag!==22&&t.tag!==23||t.memoizedState===null||t===e)&&t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break e;for(;t.sibling===null;){if(t.return===null||t.return===e)break e;u===t&&(u=null),t=t.return}u===t&&(u=null),t.sibling.return=t.return,t=t.sibling}f&4&&(f=e.updateQueue,f!==null&&(u=f.retryQueue,u!==null&&(f.retryQueue=null,Vf(e,u))));break;case 19:bo(t,e),xo(e),f&4&&(f=e.updateQueue,f!==null&&(e.updateQueue=null,Vf(e,f)));break;case 30:break;case 21:break;default:bo(t,e),xo(e)}(e.mode&st)!==Ve&&0<=Ne&&0<=Pe&&((ca||0.05<na)&&Nr(e,Ne,Pe,na,aa),e.alternate===null&&e.return!==null&&e.return.alternate!==null&&0.05<Pe-Ne&&(XS(e.return.alternate,e.return)||Or(e,Ne,Pe,"Mount"))),Do(a),Ur(o),aa=r,ca=n}function xo(e){var t=e.flags;if(t&2){try{Y(e,rR,e)}catch(a){Bt(e,e.return,a)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function JS(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;JS(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function jr(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)YS(e,t.alternate,t),t=t.sibling}function e0(e){var t=Mo(),a=zr(),o=Pr(),r=_r();switch(e.tag){case 0:case 11:case 14:case 15:Og(e,e.return,_o),xs(e);break;case 1:Vr(e,e.return);var n=e.stateNode;typeof n.componentWillUnmount==="function"&&HS(e,e.return,n),xs(e);break;case 27:Y(e,dc,e.stateNode);case 26:case 5:Vr(e,e.return),xs(e);break;case 22:e.memoizedState===null&&xs(e);break;case 30:xs(e);break;default:xs(e)}(e.mode&st)!==Ve&&0<=Ne&&0<=Pe&&(ca||0.05<na)&&Nr(e,Ne,Pe,na,aa),Do(t),Ur(a),aa=o,ca=r}function xs(e){for(e=e.child;e!==null;)e0(e),e=e.sibling}function t0(e,t,a,o){var r=Mo(),n=zr(),u=Pr(),f=_r(),m=a.flags;switch(a.tag){case 0:case 11:case 15:Xr(e,a,o),US(a,_o);break;case 1:if(Xr(e,a,o),t=a.stateNode,typeof t.componentDidMount==="function"&&Y(a,nv,a,t),t=a.updateQueue,t!==null){e=a.stateNode;try{Y(a,FT,t,e)}catch(y){Bt(a,a.return,y)}}o&&m&64&&_S(a),ac(a,a.return);break;case 27:jS(a);case 26:case 5:Xr(e,a,o),o&&t===null&&m&4&&GS(a),ac(a,a.return);break;case 12:if(o&&m&4){m=Tn(),Xr(e,a,o),o=a.stateNode,o.effectDuration+=Vi(m);try{Y(a,FS,a,t,wl,o.effectDuration)}catch(y){Bt(a,a.return,y)}}else Xr(e,a,o);break;case 31:Xr(e,a,o),o&&m&4&&KS(e,a);break;case 13:Xr(e,a,o),o&&m&4&&ZS(e,a);break;case 22:a.memoizedState===null&&Xr(e,a,o),ac(a,a.return);break;case 30:break;default:Xr(e,a,o)}(a.mode&st)!==Ve&&0<=Ne&&0<=Pe&&(ca||0.05<na)&&Nr(a,Ne,Pe,na,aa),Do(r),Ur(n),aa=u,ca=f}function Xr(e,t,a){a=a&&(t.subtreeFlags&8772)!==0;for(t=t.child;t!==null;)t0(e,t.alternate,t,a),t=t.sibling}function Pg(e,t){var a=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(a=e.memoizedState.cachePool.pool),e=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(e=t.memoizedState.cachePool.pool),e!==a&&(e!=null&&hs(e),a!=null&&Gi(a))}function _g(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(hs(t),e!=null&&Gi(e))}function fr(e,t,a,o,r){if(t.subtreeFlags&10256||t.actualDuration!==0&&(t.alternate===null||t.alternate.child!==t.child))for(t=t.child;t!==null;){var n=t.sibling;a0(e,t,a,o,n!==null?n.actualStartTime:r),t=n}}function a0(e,t,a,o,r){var n=Mo(),u=zr(),f=Pr(),m=_r(),y=xl,q=t.flags;switch(t.tag){case 0:case 11:case 15:(t.mode&st)!==Ve&&0<t.actualStartTime&&(t.flags&1)!==0&&lf(t,t.actualStartTime,r,Oa,a),fr(e,t,a,o,r),q&2048&&PS(t,po|ar);break;case 1:(t.mode&st)!==Ve&&0<t.actualStartTime&&((t.flags&128)!==0?Ch(t,t.actualStartTime,r,[]):(t.flags&1)!==0&&lf(t,t.actualStartTime,r,Oa,a)),fr(e,t,a,o,r);break;case 3:var O=Tn(),R=Oa;Oa=t.alternate!==null&&t.alternate.memoizedState.isDehydrated&&(t.flags&256)===0,fr(e,t,a,o,r),Oa=R,q&2048&&(a=null,t.alternate!==null&&(a=t.alternate.memoizedState.cache),o=t.memoizedState.cache,o!==a&&(hs(o),a!=null&&Gi(a))),e.passiveEffectDuration+=gf(O);break;case 12:if(q&2048){q=Tn(),fr(e,t,a,o,r),e=t.stateNode,e.passiveEffectDuration+=Vi(q);try{Y(t,oR,t,t.alternate,wl,e.passiveEffectDuration)}catch(_){Bt(t,t.return,_)}}else fr(e,t,a,o,r);break;case 31:q=Oa,O=t.alternate!==null?t.alternate.memoizedState:null,R=t.memoizedState,O!==null&&R===null?(R=t.deletions,R!==null&&0<R.length&&R[0].tag===18?(Oa=!1,O=O.hydrationErrors,O!==null&&Ch(t,t.actualStartTime,r,O)):Oa=!0):Oa=!1,fr(e,t,a,o,r),Oa=q;break;case 13:q=Oa,O=t.alternate!==null?t.alternate.memoizedState:null,R=t.memoizedState,O===null||O.dehydrated===null||R!==null&&R.dehydrated!==null?Oa=!1:(R=t.deletions,R!==null&&0<R.length&&R[0].tag===18?(Oa=!1,O=O.hydrationErrors,O!==null&&Ch(t,t.actualStartTime,r,O)):Oa=!0),fr(e,t,a,o,r),Oa=q;break;case 23:break;case 22:R=t.stateNode,O=t.alternate,t.memoizedState!==null?R._visibility&qn?fr(e,t,a,o,r):oc(e,t,a,o,r):R._visibility&qn?fr(e,t,a,o,r):(R._visibility|=qn,Su(e,t,a,o,(t.subtreeFlags&10256)!==0||t.actualDuration!==0&&(t.alternate===null||t.alternate.child!==t.child),r),(t.mode&st)===Ve||Oa||(e=t.actualStartTime,0<=e&&0.05<r-e&&nf(t,e,r),0<=Ne&&0<=Pe&&0.05<Pe-Ne&&nf(t,Ne,Pe))),q&2048&&Pg(O,t);break;case 24:fr(e,t,a,o,r),q&2048&&_g(t.alternate,t);break;default:fr(e,t,a,o,r)}if((t.mode&st)!==Ve){if(e=!Oa&&t.alternate===null&&t.return!==null&&t.return.alternate!==null)a=t.actualStartTime,0<=a&&0.05<r-a&&Or(t,a,r,"Mount");0<=Ne&&0<=Pe&&((ca||0.05<na)&&Nr(t,Ne,Pe,na,aa),e&&0.05<Pe-Ne&&Or(t,Ne,Pe,"Mount"))}Do(n),Ur(u),aa=f,ca=m,xl=y}function Su(e,t,a,o,r,n){r=r&&((t.subtreeFlags&10256)!==0||t.actualDuration!==0&&(t.alternate===null||t.alternate.child!==t.child));for(t=t.child;t!==null;){var u=t.sibling;o0(e,t,a,o,r,u!==null?u.actualStartTime:n),t=u}}function o0(e,t,a,o,r,n){var u=Mo(),f=zr(),m=Pr(),y=_r(),q=xl;r&&(t.mode&st)!==Ve&&0<t.actualStartTime&&(t.flags&1)!==0&&lf(t,t.actualStartTime,n,Oa,a);var O=t.flags;switch(t.tag){case 0:case 11:case 15:Su(e,t,a,o,r,n),PS(t,po);break;case 23:break;case 22:var R=t.stateNode;t.memoizedState!==null?R._visibility&qn?Su(e,t,a,o,r,n):oc(e,t,a,o,n):(R._visibility|=qn,Su(e,t,a,o,r,n)),r&&O&2048&&Pg(t.alternate,t);break;case 24:Su(e,t,a,o,r,n),r&&O&2048&&_g(t.alternate,t);break;default:Su(e,t,a,o,r,n)}(t.mode&st)!==Ve&&0<=Ne&&0<=Pe&&(ca||0.05<na)&&Nr(t,Ne,Pe,na,aa),Do(u),Ur(f),aa=m,ca=y,xl=q}function oc(e,t,a,o,r){if(t.subtreeFlags&10256||t.actualDuration!==0&&(t.alternate===null||t.alternate.child!==t.child))for(var n=t.child;n!==null;){t=n.sibling;var u=e,f=a,m=o,y=t!==null?t.actualStartTime:r,q=xl;(n.mode&st)!==Ve&&0<n.actualStartTime&&(n.flags&1)!==0&&lf(n,n.actualStartTime,y,Oa,f);var O=n.flags;switch(n.tag){case 22:oc(u,n,f,m,y),O&2048&&Pg(n.alternate,n);break;case 24:oc(u,n,f,m,y),O&2048&&_g(n.alternate,n);break;default:oc(u,n,f,m,y)}xl=q,n=t}}function Lu(e,t,a){if(e.subtreeFlags&Yc)for(e=e.child;e!==null;)r0(e,t,a),e=e.sibling}function r0(e,t,a){switch(e.tag){case 26:Lu(e,t,a),e.flags&Yc&&e.memoizedState!==null&&$R(a,vr,e.memoizedState,e.memoizedProps);break;case 5:Lu(e,t,a);break;case 3:case 4:var o=vr;vr=Wf(e.stateNode.containerInfo),Lu(e,t,a),vr=o;break;case 22:e.memoizedState===null&&(o=e.alternate,o!==null&&o.memoizedState!==null?(o=Yc,Yc=16777216,Lu(e,t,a),Yc=o):Lu(e,t,a));break;default:Lu(e,t,a)}}function n0(e){var t=e.alternate;if(t!==null&&(e=t.child,e!==null)){t.child=null;do t=e.sibling,e.sibling=null,e=t;while(e!==null)}}function rc(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var a=0;a<t.length;a++){var o=t[a],r=Mo();_a=o,u0(o,e),(o.mode&st)!==Ve&&0<=Ne&&0<=Pe&&0.05<Pe-Ne&&Or(o,Ne,Pe,"Unmount"),Do(r)}n0(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)l0(e),e=e.sibling}function l0(e){var t=Mo(),a=zr(),o=Pr(),r=_r();switch(e.tag){case 0:case 11:case 15:rc(e),e.flags&2048&&Ng(e,e.return,po|ar);break;case 3:var n=Tn();rc(e),e.stateNode.passiveEffectDuration+=gf(n);break;case 12:n=Tn(),rc(e),e.stateNode.passiveEffectDuration+=Vi(n);break;case 22:n=e.stateNode,e.memoizedState!==null&&n._visibility&qn&&(e.return===null||e.return.tag!==13)?(n._visibility&=~qn,jf(e),(e.mode&st)!==Ve&&0<=Ne&&0<=Pe&&0.05<Pe-Ne&&Or(e,Ne,Pe,"Disconnect")):rc(e);break;default:rc(e)}(e.mode&st)!==Ve&&0<=Ne&&0<=Pe&&(ca||0.05<na)&&Nr(e,Ne,Pe,na,aa),Do(t),Ur(a),ca=r,aa=o}function jf(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var a=0;a<t.length;a++){var o=t[a],r=Mo();_a=o,u0(o,e),(o.mode&st)!==Ve&&0<=Ne&&0<=Pe&&0.05<Pe-Ne&&Or(o,Ne,Pe,"Unmount"),Do(r)}n0(e)}for(e=e.child;e!==null;)s0(e),e=e.sibling}function s0(e){var t=Mo(),a=zr(),o=Pr(),r=_r();switch(e.tag){case 0:case 11:case 15:Ng(e,e.return,po),jf(e);break;case 22:var n=e.stateNode;n._visibility&qn&&(n._visibility&=~qn,jf(e));break;default:jf(e)}(e.mode&st)!==Ve&&0<=Ne&&0<=Pe&&(ca||0.05<na)&&Nr(e,Ne,Pe,na,aa),Do(t),Ur(a),ca=r,aa=o}function u0(e,t){for(;_a!==null;){var a=_a,o=a,r=t,n=Mo(),u=zr(),f=Pr(),m=_r();switch(o.tag){case 0:case 11:case 15:Ng(o,r,po);break;case 23:case 22:o.memoizedState!==null&&o.memoizedState.cachePool!==null&&(r=o.memoizedState.cachePool.pool,r!=null&&hs(r));break;case 24:Gi(o.memoizedState.cache)}if((o.mode&st)!==Ve&&0<=Ne&&0<=Pe&&(ca||0.05<na)&&Nr(o,Ne,Pe,na,aa),Do(n),Ur(u),ca=m,aa=f,o=a.child,o!==null)o.return=a,_a=o;else e:for(a=e;_a!==null;){if(o=_a,n=o.sibling,u=o.return,$S(o),o===a){_a=null;break e}if(n!==null){n.return=u,_a=n;break e}_a=u}}}function sR(){RM.forEach(function(e){return e()})}function i0(){var e=typeof IS_REACT_ACT_ENVIRONMENT<"u"?IS_REACT_ACT_ENVIRONMENT:void 0;return e||j.actQueue===null||console.error("The current testing environment is not configured to support act(...)"),e}function qo(e){if((It&Na)!==Ha&&it!==0)return it&-it;var t=j.T;return t!==null?(t._updatedFibers||(t._updatedFibers=new Set),t._updatedFibers.add(e),$g()):z()}function c0(){if(Co===0)if((it&536870912)===0||vt){var e=cp;cp<<=1,(cp&3932160)===0&&(cp=262144),Co=e}else Co=536870912;return e=Po.current,e!==null&&(e.flags|=32),Co}function ia(e,t,a){if(si&&console.error("useInsertionEffect must not schedule updates."),Av&&(Qp=!0),e===Xt&&(_t===Ns||_t===Bs)||e.cancelPendingCommit!==null)wu(e,0),fl(e,it,Co,!1);if(el(e,a),(It&Na)!==Ha&&e===Xt){if(Zr)switch(t.tag){case 0:case 11:case 15:e=dt&&V(dt)||"Unknown",zw.has(e)||(zw.add(e),t=V(t)||"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",t,e,e));break;case 1:Bw||(console.error("Cannot update during an existing state transition (such as within `render`). Render methods should be a pure function of props and state."),Bw=!0)}}else Jr&&Ei(e,t,a),yR(t),e===Xt&&((It&Na)===Ha&&(ql|=a),la===Ml&&fl(e,it,Co,!1)),Yr(e)}function d0(e,t,a){if((It&(Na|Ho))!==Ha)throw Error("Should not already be working.");if(it!==0&&dt!==null){var o=dt,r=Ua();switch(AC){case Kc:case Ns:var n=qc;Kt&&((o=o._debugTask)?o.run(console.timeStamp.bind(console,"Suspended",n,r,$o,void 0,"primary-light")):console.timeStamp("Suspended",n,r,$o,void 0,"primary-light"));break;case Bs:n=qc,Kt&&((o=o._debugTask)?o.run(console.timeStamp.bind(console,"Action",n,r,$o,void 0,"primary-light")):console.timeStamp("Action",n,r,$o,void 0,"primary-light"));break;default:Kt&&(o=r-qc,3>o||console.timeStamp("Blocked",qc,r,$o,void 0,5>o?"primary-light":10>o?"primary":100>o?"primary-dark":"error"))}}n=(a=!a&&(t&127)===0&&(t&e.expiredLanes)===0||as(e,t))?iR(e,t):Fg(e,t,!0);var u=a;do{if(n===Vn){ni&&!a&&fl(e,t,0,!1),t=_t,qc=wa(),AC=t;break}else{if(o=Ua(),r=e.current.alternate,u&&!uR(r)){Ro(t),r=Pa,n=o,!Kt||n<=r||(ga?ga.run(console.timeStamp.bind(console,"Teared Render",r,n,ht,mt,"error")):console.timeStamp("Teared Render",r,n,ht,mt,"error")),Ss(t,o),n=Fg(e,t,!1),u=!1;continue}if(n===Os){if(u=t,e.errorRecoveryDisabledLanes&u)var f=0;else f=e.pendingLanes&-536870913,f=f!==0?f:f&536870912?536870912:0;if(f!==0){Ro(t),wh(Pa,o,t,ga),Ss(t,o),t=f;e:{o=e,n=u,u=Wc;var m=o.current.memoizedState.isDehydrated;if(m&&(wu(o,f).flags|=256),f=Fg(o,f,!1),f!==Os){if(Sv&&!m){o.errorRecoveryDisabledLanes|=n,ql|=n,n=Ml;break e}o=mo,mo=u,o!==null&&(mo===null?mo=o:mo.push.apply(mo,o))}n=f}if(u=!1,n!==Os)continue;else o=Ua()}}if(n===Qc){Ro(t),wh(Pa,o,t,ga),Ss(t,o),wu(e,0),fl(e,t,0,!0);break}e:{switch(a=e,n){case Vn:case Qc:throw Error("Root did not complete. This is a bug in React.");case Ml:if((t&4194048)!==t)break;case Hp:Ro(t),dx(Pa,o,t,ga),Ss(t,o),r=t,(r&127)!==0?Ip=o:(r&4194048)!==0&&(Tp=o),fl(a,t,Co,!Dl);break e;case Os:mo=null;break;case _p:case Cw:break;default:throw Error("Unknown root exit status.")}if(j.actQueue!==null)Gg(a,r,t,mo,Jc,Vp,Co,ql,zs,n,null,null,Pa,o);else{if((t&62914560)===t&&(u=jp+Iw-Ua(),10<u)){if(fl(a,t,Co,!Dl),ts(a,0,!0)!==0)break e;br=t,a.timeoutHandle=jw(f0.bind(null,a,r,mo,Jc,Vp,t,Co,ql,zs,Dl,n,"Throttled",Pa,o),u);break e}f0(a,r,mo,Jc,Vp,t,Co,ql,zs,Dl,n,null,Pa,o)}}}break}while(1);Yr(e)}function f0(e,t,a,o,r,n,u,f,m,y,q,O,R,_){e.timeoutHandle=Fs;var ce=t.subtreeFlags,ge=null;if(ce&8192||(ce&16785408)===16785408){if(ge={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:Cn},r0(t,n,ge),ce=(n&62914560)===n?jp-Ua():(n&4194048)===n?kw-Ua():0,ce=QR(ge,ce),ce!==null){br=n,e.cancelPendingCommit=ce(Gg.bind(null,e,t,n,a,o,r,u,f,m,q,ge,ge.waitingForViewTransition?"Waiting for the previous Animation":0<ge.count?0<ge.imgCount?"Suspended on CSS and Images":"Suspended on CSS":ge.imgCount===1?"Suspended on an Image":0<ge.imgCount?"Suspended on Images":null,R,_)),fl(e,n,u,!y);return}}Gg(e,t,n,a,o,r,u,f,m,q,ge,O,R,_)}function uR(e){for(var t=e;;){var a=t.tag;if((a===0||a===11||a===15)&&t.flags&16384&&(a=t.updateQueue,a!==null&&(a=a.stores,a!==null)))for(var o=0;o<a.length;o++){var r=a[o],n=r.getSnapshot;r=r.value;try{if(!io(n(),r))return!1}catch(u){return!1}}if(a=t.child,t.subtreeFlags&16384&&a!==null)a.return=t,t=a;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function fl(e,t,a,o){t&=~Lv,t&=~ql,e.suspendedLanes|=t,e.pingedLanes&=~t,o&&(e.warmLanes|=t),o=e.expirationTimes;for(var r=t;0<r;){var n=31-lo(r),u=1<<n;o[n]=-1,r&=~u}a!==0&&os(e,a,t)}function Cu(){return(It&(Na|Ho))===Ha?(sc(0,!1),!1):!0}function Hg(){if(dt!==null){if(_t===Lo)var e=dt.return;else e=dt,pf(),Wh(e),Ku=null,Fc=0,e=dt;for(;e!==null;)zS(e.alternate,e),e=e.return;dt=null}}function Ss(e,t){(e&127)!==0&&(kl=t),(e&4194048)!==0&&(rn=t),(e&62914560)!==0&&(TC=t),(e&2080374784)!==0&&(RC=t)}function wu(e,t){Kt&&(console.timeStamp("Blocking Track",0.003,0.003,"Blocking",mt,"primary-light"),console.timeStamp("Transition Track",0.003,0.003,"Transition",mt,"primary-light"),console.timeStamp("Suspense Track",0.003,0.003,"Suspense",mt,"primary-light"),console.timeStamp("Idle Track",0.003,0.003,"Idle",mt,"primary-light"));var a=Pa;if(Pa=wa(),it!==0&&0<a){if(Ro(it),la===_p||la===Ml)dx(a,Pa,t,ga);else{var o=Pa,r=ga;if(Kt&&!(o<=a)){var n=(t&738197653)===t?"tertiary-dark":"primary-dark",u=(t&536870912)===t?"Prewarm":(t&201326741)===t?"Interrupted Hydration":"Interrupted Render";r?r.run(console.timeStamp.bind(console,u,a,o,ht,mt,n)):console.timeStamp(u,a,o,ht,mt,n)}}Ss(it,Pa)}if(a=ga,ga=null,(t&127)!==0){ga=Mc,r=0<=on&&on<kl?kl:on,o=0<=Is&&Is<kl?kl:Is,n=0<=o?o:0<=r?r:Pa,0<=Ip?(Ro(2),fx(Ip,n,t,a)):(Rp&127)!==0&&(Ro(2),Hi(kl,n,Pn)),a=r;var f=o,m=Dc,y=0<Yu,q=Il===Ac,O=Il===kp;if(r=Pa,o=Mc,n=ev,u=tv,Kt){if(ht="Blocking",0<a?a>r&&(a=r):a=r,0<f?f>a&&(f=a):f=a,m!==null&&a>f){var R=y?"secondary-light":"warning";o?o.run(console.timeStamp.bind(console,y?"Consecutive":"Event: "+m,f,a,ht,mt,R)):console.timeStamp(y?"Consecutive":"Event: "+m,f,a,ht,mt,R)}r>a&&(f=q?"error":(t&738197653)===t?"tertiary-light":"primary-light",q=O?"Promise Resolved":q?"Cascading Update":5<r-a?"Update Blocked":"Update",O=[],u!=null&&O.push(["Component name",u]),n!=null&&O.push(["Method name",n]),a={start:a,end:r,detail:{devtools:{properties:O,track:ht,trackGroup:mt,color:f}}},o?o.run(performance.measure.bind(performance,q,a)):performance.measure(q,a))}on=-1.1,Il=0,tv=ev=null,Ip=-1.1,Yu=Is,Is=-1.1,kl=wa()}if((t&4194048)!==0&&(ga=Ec,r=0<=Un&&Un<rn?rn:Un,a=0<=er&&er<rn?rn:er,o=0<=Tl&&Tl<rn?rn:Tl,n=0<=o?o:0<=a?a:Pa,0<=Tp?(Ro(256),fx(Tp,n,t,ga)):(Rp&4194048)!==0&&(Ro(256),Hi(rn,n,Pn)),O=o,f=Ts,m=0<Rl,y=av===kp,n=Pa,o=Ec,u=kC,q=IC,Kt&&(ht="Transition",0<a?a>n&&(a=n):a=n,0<r?r>a&&(r=a):r=a,0<O?O>r&&(O=r):O=r,r>O&&f!==null&&(R=m?"secondary-light":"warning",o?o.run(console.timeStamp.bind(console,m?"Consecutive":"Event: "+f,O,r,ht,mt,R)):console.timeStamp(m?"Consecutive":"Event: "+f,O,r,ht,mt,R)),a>r&&(o?o.run(console.timeStamp.bind(console,"Action",r,a,ht,mt,"primary-dark")):console.timeStamp("Action",r,a,ht,mt,"primary-dark")),n>a&&(r=y?"Promise Resolved":5<n-a?"Update Blocked":"Update",O=[],q!=null&&O.push(["Component name",q]),u!=null&&O.push(["Method name",u]),a={start:a,end:n,detail:{devtools:{properties:O,track:ht,trackGroup:mt,color:"primary-light"}}},o?o.run(performance.measure.bind(performance,r,a)):performance.measure(r,a))),er=Un=-1.1,av=0,Tp=-1.1,Rl=Tl,Tl=-1.1,rn=wa()),(t&62914560)!==0&&(Rp&62914560)!==0&&(Ro(4194304),Hi(TC,Pa,Pn)),(t&2080374784)!==0&&(Rp&2080374784)!==0&&(Ro(268435456),Hi(RC,Pa,Pn)),a=e.timeoutHandle,a!==Fs&&(e.timeoutHandle=Fs,HM(a)),a=e.cancelPendingCommit,a!==null&&(e.cancelPendingCommit=null,a()),br=0,Hg(),Xt=e,dt=a=wn(e.current,null),it=t,_t=Lo,Fo=null,Dl=!1,ni=as(e,t),Sv=!1,la=Vn,zs=Co=Lv=ql=El=0,mo=Wc=null,Vp=!1,(t&8)!==0&&(t|=t&32),o=e.entangledLanes,o!==0)for(e=e.entanglements,o&=t;0<o;)r=31-lo(o),n=1<<r,t|=e[r],o&=~n;return ln=t,sf(),e=bC(),1000<e-vC&&(j.recentlyCreatedOwnerStacks=0,vC=e),gr.discardPendingWarnings(),a}function p0(e,t){Ke=null,j.H=Xc,j.getCurrentStack=null,Zr=!1,Bo=null,t===Qu||t===Ep?(t=Ox(),_t=Kc):t===lv?(t=Ox(),_t=ww):_t=t===gv?xv:t!==null&&typeof t==="object"&&typeof t.then==="function"?Zc:Fp,Fo=t;var a=dt;a===null?(la=Qc,Uf(e,Ao(t,e.current))):a.mode&st&&Ph(a)}function m0(){var e=Po.current;return e===null?!0:(it&4194048)===it?tr===null?!0:!1:(it&62914560)===it||(it&536870912)!==0?e===tr:!1}function h0(){var e=j.H;return j.H=Xc,e===null?Xc:e}function g0(){var e=j.A;return j.A=TM,e}function Xf(e){ga===null&&(ga=e._debugTask==null?null:e._debugTask)}function Yf(){la=Ml,Dl||(it&4194048)!==it&&Po.current!==null||(ni=!0),(El&134217727)===0&&(ql&134217727)===0||Xt===null||fl(Xt,it,Co,!1)}function Fg(e,t,a){var o=It;It|=Na;var r=h0(),n=g0();if(Xt!==e||it!==t){if(Jr){var u=e.memoizedUpdaters;0<u.size&&(lc(e,it),u.clear()),tl(e,t)}Jc=null,wu(e,t)}t=!1,u=la;e:do try{if(_t!==Lo&&dt!==null){var f=dt,m=Fo;switch(_t){case xv:Hg(),u=Hp;break e;case Kc:case Ns:case Bs:case Zc:Po.current===null&&(t=!0);var y=_t;if(_t=Lo,Fo=null,ku(e,f,m,y),a&&ni){u=Vn;break e}break;default:y=_t,_t=Lo,Fo=null,ku(e,f,m,y)}}y0(),u=la;break}catch(q){p0(e,q)}while(1);return t&&e.shellSuspendCounter++,pf(),It=o,j.H=r,j.A=n,dt===null&&(Xt=null,it=0,sf()),u}function y0(){for(;dt!==null;)v0(dt)}function iR(e,t){var a=It;It|=Na;var o=h0(),r=g0();if(Xt!==e||it!==t){if(Jr){var n=e.memoizedUpdaters;0<n.size&&(lc(e,it),n.clear()),tl(e,t)}Jc=null,Xp=Ua()+Tw,wu(e,t)}else ni=as(e,t);e:do try{if(_t!==Lo&&dt!==null)t:switch(t=dt,n=Fo,_t){case Fp:_t=Lo,Fo=null,ku(e,t,n,Fp);break;case Ns:case Bs:if(Ex(n)){_t=Lo,Fo=null,b0(t);break}t=function(){_t!==Ns&&_t!==Bs||Xt!==e||(_t=Gp),Yr(e)},n.then(t,t);break e;case Kc:_t=Gp;break e;case ww:_t=bv;break e;case Gp:Ex(n)?(_t=Lo,Fo=null,b0(t)):(_t=Lo,Fo=null,ku(e,t,n,Gp));break;case bv:var u=null;switch(dt.tag){case 26:u=dt.memoizedState;case 5:case 27:var f=dt;if(u?dL(u):f.stateNode.complete){_t=Lo,Fo=null;var m=f.sibling;if(m!==null)dt=m;else{var y=f.return;y!==null?(dt=y,$f(y)):dt=null}break t}break;default:console.error("Unexpected type of fiber triggered a suspensey commit. This is a bug in React.")}_t=Lo,Fo=null,ku(e,t,n,bv);break;case Zc:_t=Lo,Fo=null,ku(e,t,n,Zc);break;case xv:Hg(),la=Hp;break e;default:throw Error("Unexpected SuspendedReason. This is a bug in React.")}j.actQueue!==null?y0():cR();break}catch(q){p0(e,q)}while(1);if(pf(),j.H=o,j.A=r,It=a,dt!==null)return Vn;return Xt=null,it=0,sf(),la}function cR(){for(;dt!==null&&!uA();)v0(dt)}function v0(e){var t=e.alternate;(e.mode&st)!==Ve?(Uh(e),t=Y(e,Eg,t,e,ln),Ph(e)):t=Y(e,Eg,t,e,ln),e.memoizedProps=e.pendingProps,t===null?$f(e):dt=t}function b0(e){var t=Y(e,dR,e);e.memoizedProps=e.pendingProps,t===null?$f(e):dt=t}function dR(e){var t=e.alternate,a=(e.mode&st)!==Ve;switch(a&&Uh(e),e.tag){case 15:case 0:t=MS(t,e,e.pendingProps,e.type,void 0,it);break;case 11:t=MS(t,e,e.pendingProps,e.type.render,e.ref,it);break;case 5:Wh(e);default:zS(t,e),e=dt=vx(e,ln),t=Eg(t,e,ln)}return a&&Ph(e),t}function ku(e,t,a,o){pf(),Wh(t),Ku=null,Fc=0;var r=t.return;try{if(QT(e,r,t,a,it)){la=Qc,Uf(e,Ao(a,e.current)),dt=null;return}}catch(n){if(r!==null)throw dt=r,n;la=Qc,Uf(e,Ao(a,e.current)),dt=null;return}if(t.flags&32768){if(vt||o===Fp)e=!0;else if(ni||(it&536870912)!==0)e=!1;else if(Dl=e=!0,o===Ns||o===Bs||o===Kc||o===Zc)o=Po.current,o!==null&&o.tag===13&&(o.flags|=16384);x0(t,e)}else $f(t)}function $f(e){var t=e;do{if((t.flags&32768)!==0){x0(t,Dl);return}var a=t.alternate;if(e=t.return,Uh(t),a=Y(t,WT,a,t,ln),(t.mode&st)!==Ve&&Tx(t),a!==null){dt=a;return}if(t=t.sibling,t!==null){dt=t;return}dt=t=e}while(t!==null);la===Vn&&(la=Cw)}function x0(e,t){do{var a=JT(e.alternate,e);if(a!==null){a.flags&=32767,dt=a;return}if((e.mode&st)!==Ve){Tx(e),a=e.actualDuration;for(var o=e.child;o!==null;)a+=o.actualDuration,o=o.sibling;e.actualDuration=a}if(a=e.return,a!==null&&(a.flags|=32768,a.subtreeFlags=0,a.deletions=null),!t&&(e=e.sibling,e!==null)){dt=e;return}dt=e=a}while(e!==null);la=Hp,dt=null}function Gg(e,t,a,o,r,n,u,f,m,y,q,O,R,_){e.cancelPendingCommit=null;do nc();while(Aa!==Nl);if(gr.flushLegacyContextWarning(),gr.flushPendingUnsafeLifecycleWarnings(),(It&(Na|Ho))!==Ha)throw Error("Should not already be working.");if(Ro(a),y===Os?wh(R,_,a,ga):o!==null?BT(R,_,a,o,t!==null&&t.alternate!==null&&t.alternate.memoizedState.isDehydrated&&(t.flags&256)!==0,ga):NT(R,_,a,ga),t!==null){if(a===0&&console.error("finishedLanes should not be empty during a commit. This is a bug in React."),t===e.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(n=t.lanes|t.childLanes,n|=Qy,Kd(e,a,n,u,f,m),e===Xt&&(dt=Xt=null,it=0),li=t,Bl=e,br=a,kv=n,Tv=r,qw=o,Iv=_,Ow=O,xr=Yp,Nw=null,t.actualDuration!==0||(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?(e.callbackNode=null,e.callbackPriority=0,gR(Du,function(){return nd=window.event,xr===Yp&&(xr=wv),k0(),null})):(e.callbackNode=null,e.callbackPriority=0),zn=null,wl=wa(),O!==null&&zT(_,wl,O,ga),o=(t.flags&13878)!==0,(t.subtreeFlags&13878)!==0||o){o=j.T,j.T=null,r=zt.p,zt.p=zo,u=It,It|=Ho;try{nR(e,t,a)}finally{It=u,zt.p=r,j.T=o}}Aa=Aw,S0(),L0(),C0()}}function S0(){if(Aa===Aw){Aa=Nl;var e=Bl,t=li,a=br,o=(t.flags&13878)!==0;if((t.subtreeFlags&13878)!==0||o){o=j.T,j.T=null;var r=zt.p;zt.p=zo;var n=It;It|=Ho;try{oi=a,ri=e,yf(),WS(t,e),ri=oi=null,a=Uv;var u=ux(e.containerInfo),f=a.focusedElem,m=a.selectionRange;if(u!==f&&f&&f.ownerDocument&&sx(f.ownerDocument.documentElement,f)){if(m!==null&&Sh(f)){var{start:y,end:q}=m;if(q===void 0&&(q=y),"selectionStart"in f)f.selectionStart=y,f.selectionEnd=Math.min(q,f.value.length);else{var O=f.ownerDocument||document,R=O&&O.defaultView||window;if(R.getSelection){var _=R.getSelection(),ce=f.textContent.length,ge=Math.min(m.start,ce),Qt=m.end===void 0?ge:Math.min(m.end,ce);!_.extend&&ge>Qt&&(u=Qt,Qt=ge,ge=u);var kt=lx(f,ge),I=lx(f,Qt);if(kt&&I&&(_.rangeCount!==1||_.anchorNode!==kt.node||_.anchorOffset!==kt.offset||_.focusNode!==I.node||_.focusOffset!==I.offset)){var A=O.createRange();A.setStart(kt.node,kt.offset),_.removeAllRanges(),ge>Qt?(_.addRange(A),_.extend(I.node,I.offset)):(A.setEnd(I.node,I.offset),_.addRange(A))}}}}O=[];for(_=f;_=_.parentNode;)_.nodeType===1&&O.push({element:_,left:_.scrollLeft,top:_.scrollTop});typeof f.focus==="function"&&f.focus();for(f=0;f<O.length;f++){var D=O[f];D.element.scrollLeft=D.left,D.element.scrollTop=D.top}}im=!!zv,Uv=zv=null}finally{It=n,zt.p=r,j.T=o}}e.current=t,Aa=Mw}}function L0(){if(Aa===Mw){Aa=Nl;var e=Nw;if(e!==null){wl=wa();var t=Bn,a=wl;!Kt||a<=t||(Pn?Pn.run(console.timeStamp.bind(console,e,t,a,ht,mt,"secondary-light")):console.timeStamp(e,t,a,ht,mt,"secondary-light"))}e=Bl,t=li,a=br;var o=(t.flags&8772)!==0;if((t.subtreeFlags&8772)!==0||o){o=j.T,j.T=null;var r=zt.p;zt.p=zo;var n=It;It|=Ho;try{oi=a,ri=e,yf(),YS(e,t.alternate,t),ri=oi=null}finally{It=n,zt.p=r,j.T=o}}e=Iv,t=Ow,Bn=wa(),e=t===null?e:wl,t=Bn,a=xr===Cv,o=ga,zn!==null?px(e,t,zn,!1,o):!Kt||t<=e||(o?o.run(console.timeStamp.bind(console,a?"Commit Interrupted View Transition":"Commit",e,t,ht,mt,a?"error":"secondary-dark")):console.timeStamp(a?"Commit Interrupted View Transition":"Commit",e,t,ht,mt,a?"error":"secondary-dark")),Aa=Dw}}function C0(){if(Aa===Ew||Aa===Dw){if(Aa===Ew){var e=Bn;Bn=wa();var t=Bn,a=xr===Cv;!Kt||t<=e||(Pn?Pn.run(console.timeStamp.bind(console,a?"Interrupted View Transition":"Starting Animation",e,t,ht,mt,a?"error":"secondary-light")):console.timeStamp(a?"Interrupted View Transition":"Starting Animation",e,t,ht,mt,a?" error":"secondary-light")),xr!==Cv&&(xr=Rw)}Aa=Nl,iA(),e=Bl;var o=li;t=br,a=qw;var r=o.actualDuration!==0||(o.subtreeFlags&10256)!==0||(o.flags&10256)!==0;r?Aa=$p:(Aa=Nl,li=Bl=null,w0(e,e.pendingLanes),Us=0,td=null);var n=e.pendingLanes;if(n===0&&(Ol=null),r||A0(e),n=v(t),o=o.stateNode,eo&&typeof eo.onCommitFiberRoot==="function")try{var u=(o.current.flags&128)===128;switch(n){case zo:var f=Ty;break;case mr:f=Ry;break;case en:f=Du;break;case fp:f=Ay;break;default:f=Du}eo.onCommitFiberRoot(Eu,o,f,u)}catch(O){Wr||(Wr=!0,console.error("React instrumentation encountered an error: %o",O))}if(Jr&&e.memoizedUpdaters.clear(),sR(),a!==null){u=j.T,f=zt.p,zt.p=zo,j.T=null;try{var m=e.onRecoverableError;for(o=0;o<a.length;o++){var y=a[o],q=fR(y.stack);Y(y.source,m,y.value,q)}}finally{j.T=u,zt.p=f}}(br&3)!==0&&nc(),Yr(e),n=e.pendingLanes,(t&261930)!==0&&(n&42)!==0?(Mp=!0,e===Rv?ed++:(ed=0,Rv=e)):ed=0,r||Ss(t,Bn),sc(0,!1)}}function fR(e){return e={componentStack:e},Object.defineProperty(e,"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.')}}),e}function w0(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,Gi(t)))}function nc(){return S0(),L0(),C0(),k0()}function k0(){if(Aa!==$p)return!1;var e=Bl,t=kv;kv=0;var a=v(br),o=en===0||en>a?en:a;a=j.T;var r=zt.p;try{zt.p=o,j.T=null;var n=Tv;Tv=null,o=Bl;var u=br;if(Aa=Nl,li=Bl=null,br=0,(It&(Na|Ho))!==Ha)throw Error("Cannot flush passive effects while already rendering.");Ro(u),Av=!0,Qp=!1;var f=0;if(zn=null,f=Ua(),xr===Rw)Hi(Bn,f,Pn);else{var m=Bn,y=f,q=xr===wv;!Kt||y<=m||(ga?ga.run(console.timeStamp.bind(console,q?"Waiting for Paint":"Waiting",m,y,ht,mt,"secondary-light")):console.timeStamp(q?"Waiting for Paint":"Waiting",m,y,ht,mt,"secondary-light"))}m=It,It|=Ho;var O=o.current;yf(),l0(O);var R=o.current;O=Iv,yf(),a0(o,R,u,n,O),A0(o),It=m;var _=Ua();if(R=f,O=ga,zn!==null?px(R,_,zn,!0,O):!Kt||_<=R||(O?O.run(console.timeStamp.bind(console,"Remaining Effects",R,_,ht,mt,"secondary-dark")):console.timeStamp("Remaining Effects",R,_,ht,mt,"secondary-dark")),Ss(u,_),sc(0,!1),Qp?o===td?Us++:(Us=0,td=o):Us=0,Qp=Av=!1,eo&&typeof eo.onPostCommitFiberRoot==="function")try{eo.onPostCommitFiberRoot(Eu,o)}catch(ge){Wr||(Wr=!0,console.error("React instrumentation encountered an error: %o",ge))}var ce=o.current.stateNode;return ce.effectDuration=0,ce.passiveEffectDuration=0,!0}finally{zt.p=r,j.T=a,w0(e,t)}}function I0(e,t,a){t=Ao(a,t),Rx(t),t=Sg(e.stateNode,t,2),e=ul(e,t,2),e!==null&&(el(e,2),Yr(e))}function Bt(e,t,a){if(si=!1,e.tag===3)I0(e,e,a);else{for(;t!==null;){if(t.tag===3){I0(t,e,a);return}if(t.tag===1){var o=t.stateNode;if(typeof t.type.getDerivedStateFromError==="function"||typeof o.componentDidCatch==="function"&&(Ol===null||!Ol.has(o))){e=Ao(a,e),Rx(e),a=Lg(2),o=ul(t,a,2),o!==null&&(Cg(a,o,t,e),el(o,2),Yr(o));return}}t=t.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`,a)}}function
|
|
157
|
+
%s`,a)}}function Vg(e,t,a){var o=e.pingCache;if(o===null){o=e.pingCache=new AM;var r=new Set;o.set(t,r)}else r=o.get(t),r===void 0&&(r=new Set,o.set(t,r));r.has(a)||(Sv=!0,r.add(a),o=pR.bind(null,e,t,a),Jr&&lc(e,a),t.then(o,o))}function pR(e,t,a){var o=e.pingCache;o!==null&&o.delete(t),e.pingedLanes|=e.suspendedLanes&a,e.warmLanes&=~a,(a&127)!==0?0>on&&(kl=on=wa(),Mc=wp("Promise Resolved"),Il=kp):(a&4194048)!==0&&0>er&&(rn=er=wa(),Ec=wp("Promise Resolved"),av=kp),i0()&&j.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`),Xt===e&&(it&a)===a&&(la===Ml||la===
|
|
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`),Xt===e&&(it&a)===a&&(la===Ml||la===_p&&(it&62914560)===it&&Ua()-jp<Iw?(It&Na)===Ha&&wu(e,0):Lv|=a,zs===it&&(zs=0)),Yr(e)}function T0(e,t){t===0&&(t=iu()),e=Ja(e,t),e!==null&&(el(e,t),Yr(e))}function mR(e){var t=e.memoizedState,a=0;t!==null&&(a=t.retryLane),T0(e,a)}function hR(e,t){var a=0;switch(e.tag){case 31:case 13:var{stateNode:o,memoizedState:r}=e;r!==null&&(a=r.retryLane);break;case 19:o=e.stateNode;break;case 22:o=e.stateNode._retryCache;break;default:throw Error("Pinged unknown suspense boundary type. This is probably a bug in React.")}o!==null&&o.delete(t),T0(e,a)}function jg(e,t,a){if((t.subtreeFlags&67117056)!==0)for(t=t.child;t!==null;){var o=e,r=t,n=r.type===lp;n=a||n,r.tag!==22?r.flags&67108864?n&&Y(r,R0,o,r):jg(o,r,n):r.memoizedState===null&&(n&&r.flags&8192?Y(r,R0,o,r):r.subtreeFlags&67108864&&Y(r,jg,o,r,n)),t=t.sibling}}function R0(e,t){Yt(!0);try{e0(t),s0(t),t0(e,t.alternate,t,!1),o0(e,t,0,null,!1,0)}finally{Yt(!1)}}function A0(e){var t=!0;e.current.mode&(to|hr)||(t=!1),jg(e,e.current,t)}function M0(e){if((It&Na)===Ha){var t=e.tag;if(t===3||t===1||t===0||t===11||t===14||t===15){if(t=V(e)||"ReactComponent",Kp!==null){if(Kp.has(t))return;Kp.add(t)}else Kp=new Set([t]);Y(e,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 lc(e,t){Jr&&e.memoizedUpdaters.forEach(function(a){Ei(e,a,t)})}function gR(e,t){var a=j.actQueue;return a!==null?(a.push(t),EM):Iy(e,t)}function yR(e){i0()&&j.actQueue===null&&Y(e,function(){console.error(`An update to %s inside a test was not wrapped in act(...).
|
|
167
167
|
|
|
168
168
|
When testing, code that causes React state updates should be wrapped into act(...):
|
|
169
169
|
|
|
@@ -172,16 +172,16 @@ act(() => {
|
|
|
172
172
|
});
|
|
173
173
|
/* assert on the output */
|
|
174
174
|
|
|
175
|
-
This ensures that you're testing the behavior the user would see in the browser. Learn more at https://react.dev/link/wrap-tests-with-act`,V(e))})}function $n(e){e!==ui&&e.next===null&&(ui===null?Kp=ui=e:ui=ui.next=e),Zp=!0,G.actQueue!==null?Tv||(Tv=!0,TS()):kv||(kv=!0,TS())}function lc(e,t){if(!Iv&&Zp){Iv=!0;do{var a=!1;for(var o=Kp;o!==null;){if(!t)if(e!==0){var n=o.pendingLanes;if(n===0)var r=0;else{var u=o.suspendedLanes,f=o.pingedLanes;r=(1<<31-ro(42|e)+1)-1,r&=n&~(u&~f),r=r&201326741?r&201326741|1:r?r|2:0}r!==0&&(a=!0,kS(o,r))}else r=it,r=ts(o,o===Xt?r:0,o.cancelPendingCommit!==null||o.timeoutHandle!==Fs),(r&3)===0||as(o,r)||(a=!0,kS(o,r));o=o.next}}while(a);Iv=!1}}function uR(){nd=window.event,Hg()}function Hg(){Zp=Tv=kv=!1;var e=0;zl!==0&&hR()&&(e=zl);for(var t=Ua(),a=null,o=Kp;o!==null;){var n=o.next,r=CS(o,t);if(r===0)o.next=null,a===null?Kp=n:a.next=n,n===null&&(ui=a);else if(a=o,e!==0||(r&3)!==0)Zp=!0;o=n}Aa!==Nl&&Aa!==Yp||lc(e,!1),zl!==0&&(zl=0)}function CS(e,t){for(var{suspendedLanes:a,pingedLanes:o,expirationTimes:n}=e,r=e.pendingLanes&-62914561;0<r;){var u=31-ro(r),f=1<<u,m=n[u];if(m===-1){if((f&a)===0||(f&o)!==0)n[u]=rh(f,t)}else m<=t&&(e.expiredLanes|=f);r&=~f}if(t=Xt,a=it,a=ts(e,e===t?a:0,e.cancelPendingCommit!==null||e.timeoutHandle!==Fs),o=e.callbackNode,a===0||e===t&&(_t===Ns||_t===Bs)||e.cancelPendingCommit!==null)return o!==null&&Fg(o),e.callbackNode=null,e.callbackPriority=0;if((a&3)===0||as(e,a)){if(t=a&-a,t!==e.callbackPriority||G.actQueue!==null&&o!==Rv)Fg(o);else return t;switch(S(a)){case zo:case hn:a=Cy;break;case tr:a=Du;break;case dp:a=wy;break;default:a=Du}return o=wS.bind(null,e),G.actQueue!==null?(G.actQueue.push(o),a=Rv):a=Sy(a,o),e.callbackPriority=t,e.callbackNode=a,t}return o!==null&&Fg(o),e.callbackPriority=2,e.callbackNode=null,2}function wS(e,t){if(Ap=Rp=!1,nd=window.event,Aa!==Nl&&Aa!==Yp)return e.callbackNode=null,e.callbackPriority=0,null;var a=e.callbackNode;if(Sn===Xp&&(Sn=bv),nc()&&e.callbackNode!==a)return null;var o=it;if(o=ts(e,e===Xt?o:0,e.cancelPendingCommit!==null||e.timeoutHandle!==Fs),o===0)return null;return oS(e,o,t),CS(e,Ua()),e.callbackNode!=null&&e.callbackNode===a?wS.bind(null,e):null}function kS(e,t){if(nc())return null;Rp=Ap,Ap=!1,oS(e,t,!0)}function Fg(e){e!==Rv&&e!==null&&ZR(e)}function TS(){G.actQueue!==null&&G.actQueue.push(function(){return Hg(),null}),EM(function(){(Tt&(qa|Ho))!==Ha?Sy(Ly,uR):Hg()})}function Gg(){if(zl===0){var e=Rs;e===0&&(e=up,up<<=1,(up&261888)===0&&(up=256)),zl=e}return zl}function IS(e){if(e==null||typeof e==="symbol"||typeof e==="boolean")return null;if(typeof e==="function")return e;return Xe(e,"action"),zi(""+e)}function RS(e,t){var a=t.ownerDocument.createElement("input");return a.name=t.name,a.value=t.value,e.id&&a.setAttribute("form",e.id),t.parentNode.insertBefore(a,t),e=new FormData(e),a.parentNode.removeChild(a),e}function iR(e,t,a,o,n){if(t==="submit"&&a&&a.stateNode===n){var r=IS((n[lo]||null).action),u=o.submitter;u&&(t=(t=u[lo]||null)?IS(t.formAction):u.getAttribute("formAction"),t!==null&&(r=t,u=null));var f=new gp("action","action",null,o,n);e.push({event:f,listeners:[{instance:null,listener:function(){if(o.defaultPrevented){if(zl!==0){var m=u?RS(n,u):new FormData(n),y={pending:!0,data:m,method:n.method,action:r};Object.freeze(y),ig(a,y,null,m)}}else typeof r==="function"&&(f.preventDefault(),m=u?RS(n,u):new FormData(n),y={pending:!0,data:m,method:n.method,action:r},Object.freeze(y),ig(a,y,r,m))},currentTarget:n}]})}}function $f(e,t,a){e.currentTarget=a;try{t(e)}catch(o){_y(o)}e.currentTarget=null}function AS(e,t){t=(t&4)!==0;for(var a=0;a<e.length;a++){var o=e[a];e:{var n=void 0,r=o.event;if(o=o.listeners,t)for(var u=o.length-1;0<=u;u--){var f=o[u],m=f.instance,y=f.currentTarget;if(f=f.listener,m!==n&&r.isPropagationStopped())break e;m!==null?j(m,$f,r,f,y):$f(r,f,y),n=m}else for(u=0;u<o.length;u++){if(f=o[u],m=f.instance,y=f.currentTarget,f=f.listener,m!==n&&r.isPropagationStopped())break e;m!==null?j(m,$f,r,f,y):$f(r,f,y),n=m}}}}function wt(e,t){Av.has(e)||console.error('Did not expect a listenToNonDelegatedEvent() call for "%s". This is a bug in React. Please file an issue.',e);var a=t[ky];a===void 0&&(a=t[ky]=new Set);var o=e+"__bubble";a.has(o)||(MS(t,e,2,!1),a.add(o))}function Vg(e,t,a){Av.has(e)&&!t&&console.error('Did not expect a listenToNativeEvent() call for "%s" in the bubble phase. This is a bug in React. Please file an issue.',e);var o=0;t&&(o|=4),MS(a,e,o,t)}function jg(e){if(!e[Wp]){e[Wp]=!0,TL.forEach(function(a){a!=="selectionchange"&&(Av.has(a)||Vg(a,!1,e),Vg(a,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Wp]||(t[Wp]=!0,Vg("selectionchange",!1,t))}}function MS(e,t,a,o){switch(iL(t)){case zo:var n=GR;break;case hn:n=VR;break;default:n=sy}a=n.bind(null,t,a,e),n=void 0,!My||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(n=!0),o?n!==void 0?e.addEventListener(t,a,{capture:!0,passive:n}):e.addEventListener(t,a,!0):n!==void 0?e.addEventListener(t,a,{passive:n}):e.addEventListener(t,a,!1)}function Xg(e,t,a,o,n){var r=o;if((t&1)===0&&(t&2)===0&&o!==null)e:for(;;){if(o===null)return;var u=o.tag;if(u===3||u===4){var f=o.stateNode.containerInfo;if(f===n)break;if(u===4)for(u=o.return;u!==null;){var m=u.tag;if((m===3||m===4)&&u.stateNode.containerInfo===n)return;u=u.return}for(;f!==null;){if(u=ke(f),u===null)return;if(m=u.tag,m===5||m===6||m===26||m===27){o=r=u;continue e}f=f.parentNode}}o=o.return}Hb(function(){var y=r,O=mh(a),q=[];e:{var R=iC.get(e);if(R!==void 0){var _=gp,ie=e;switch(e){case"keypress":if(tf(a)===0)break e;case"keydown":case"keyup":_=UA;break;case"focusin":ie="focus",_=qy;break;case"focusout":ie="blur",_=qy;break;case"beforeblur":case"afterblur":_=qy;break;case"click":if(a.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":_=QL;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":_=TA;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":_=HA;break;case rC:case lC:case sC:_=AA;break;case uC:_=GA;break;case"scroll":case"scrollend":_=wA;break;case"wheel":_=jA;break;case"copy":case"cut":case"paste":_=DA;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":_=ZL;break;case"toggle":case"beforetoggle":_=YA}var ge=(t&4)!==0,Qt=!ge&&(e==="scroll"||e==="scrollend"),kt=ge?R!==null?R+"Capture":null:R;ge=[];for(var I=y,A;I!==null;){var E=I;if(A=E.stateNode,E=E.tag,E!==5&&E!==26&&E!==27||A===null||kt===null||(E=Ui(I,kt),E!=null&&ge.push(sc(I,E,A))),Qt)break;I=I.return}0<ge.length&&(R=new _(R,ie,null,a,O),q.push({event:R,listeners:ge}))}}if((t&7)===0){e:{if(R=e==="mouseover"||e==="pointerover",_=e==="mouseout"||e==="pointerout",R&&a!==vc&&(ie=a.relatedTarget||a.fromElement)&&(ke(ie)||ie[vl]))break e;if(_||R){if(R=O.window===O?O:(R=O.ownerDocument)?R.defaultView||R.parentWindow:window,_){if(ie=a.relatedTarget||a.toElement,_=y,ie=ie?ke(ie):null,ie!==null&&(Qt=U(ie),ge=ie.tag,ie!==Qt||ge!==5&&ge!==27&&ge!==6))ie=null}else _=null,ie=y;if(_!==ie){if(ge=QL,E="onMouseLeave",kt="onMouseEnter",I="mouse",e==="pointerout"||e==="pointerover")ge=ZL,E="onPointerLeave",kt="onPointerEnter",I="pointer";if(Qt=_==null?R:et(_),A=ie==null?R:et(ie),R=new ge(E,I+"leave",_,a,O),R.target=Qt,R.relatedTarget=A,E=null,ke(O)===y&&(ge=new ge(kt,I+"enter",ie,a,O),ge.target=A,ge.relatedTarget=Qt,E=ge),Qt=E,_&&ie)t:{ge=cR,kt=_,I=ie,A=0;for(E=kt;E;E=ge(E))A++;E=0;for(var K=I;K;K=ge(K))E++;for(;0<A-E;)kt=ge(kt),A--;for(;0<E-A;)I=ge(I),E--;for(;A--;){if(kt===I||I!==null&&kt===I.alternate){ge=kt;break t}kt=ge(kt),I=ge(I)}ge=null}else ge=null;_!==null&&DS(q,R,_,ge,!1),ie!==null&&Qt!==null&&DS(q,Qt,ie,ge,!0)}}}e:{if(R=y?et(y):window,_=R.nodeName&&R.nodeName.toLowerCase(),_==="select"||_==="input"&&R.type==="file")var me=$b;else if(Xb(R))if(oC)me=LI;else{me=xI;var Ze=bI}else _=R.nodeName,!_||_.toLowerCase()!=="input"||R.type!=="checkbox"&&R.type!=="radio"?y&&Bi(y.elementType)&&(me=$b):me=SI;if(me&&(me=me(e,y))){Yb(q,me,a,O);break e}Ze&&Ze(e,R,y),e==="focusout"&&y&&R.type==="number"&&y.memoizedProps.value!=null&&uh(R,"number",R.value)}switch(Ze=y?et(y):window,e){case"focusin":if(Xb(Ze)||Ze.contentEditable==="true")Pu=Ze,By=y,kc=null;break;case"focusout":kc=By=Pu=null;break;case"mousedown":zy=!0;break;case"contextmenu":case"mouseup":case"dragend":zy=!1,tx(q,a,O);break;case"selectionchange":if(ZA)break;case"keydown":case"keyup":tx(q,a,O)}var Oe;if(Ny)e:{switch(e){case"compositionstart":var Te="onCompositionStart";break e;case"compositionend":Te="onCompositionEnd";break e;case"compositionupdate":Te="onCompositionUpdate";break e}Te=void 0}else Uu?Vb(e,a)&&(Te="onCompositionEnd"):e==="keydown"&&a.keyCode===WL&&(Te="onCompositionStart");if(Te&&(JL&&a.locale!=="ko"&&(Uu||Te!=="onCompositionStart"?Te==="onCompositionEnd"&&Uu&&(Oe=Fb()):(bl=O,Dy=("value"in bl)?bl.value:bl.textContent,Uu=!0)),Ze=Qf(y,Te),0<Ze.length&&(Te=new KL(Te,e,null,a,O),q.push({event:Te,listeners:Ze}),Oe?Te.data=Oe:(Oe=jb(a),Oe!==null&&(Te.data=Oe)))),Oe=QA?hI(e,a):gI(e,a))Te=Qf(y,"onBeforeInput"),0<Te.length&&(Ze=new OA("onBeforeInput","beforeinput",null,a,O),q.push({event:Ze,listeners:Te}),Ze.data=Oe);iR(q,e,y,a,O)}AS(q,t)})}function sc(e,t,a){return{instance:e,listener:t,currentTarget:a}}function Qf(e,t){for(var a=t+"Capture",o=[];e!==null;){var n=e,r=n.stateNode;if(n=n.tag,n!==5&&n!==26&&n!==27||r===null||(n=Ui(e,a),n!=null&&o.unshift(sc(e,n,r)),n=Ui(e,t),n!=null&&o.push(sc(e,n,r))),e.tag===3)return o;e=e.return}return[]}function cR(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e?e:null}function DS(e,t,a,o,n){for(var r=t._reactName,u=[];a!==null&&a!==o;){var f=a,m=f.alternate,y=f.stateNode;if(f=f.tag,m!==null&&m===o)break;f!==5&&f!==26&&f!==27||y===null||(m=y,n?(y=Ui(a,r),y!=null&&u.unshift(sc(a,y,m))):n||(y=Ui(a,r),y!=null&&u.push(sc(a,y,m)))),a=a.return}u.length!==0&&e.push({event:t,listeners:u})}function Yg(e,t){dI(e,t),e!=="input"&&e!=="textarea"&&e!=="select"||t==null||t.value!==null||YL||(YL=!0,e==="select"&&t.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.",e):console.error("`value` prop on `%s` should not be null. Consider using an empty string to clear the component or `undefined` for uncontrolled components.",e));var a={registrationNameDependencies:Ls,possibleRegistrationNames:Ty};Bi(e)||typeof t.is==="string"||pI(e,t,a),t.contentEditable&&!t.suppressContentEditableWarning&&t.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 za(e,t,a,o){t!==a&&(a=pl(a),pl(t)!==a&&(o[e]=t))}function dR(e,t,a){t.forEach(function(o){a[qS(o)]=o==="style"?Qg(e):e.getAttribute(o)})}function Qn(e,t){t===!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.",e,e,e):console.error("Expected `%s` listener to be a function, instead got a value of `%s` type.",e,typeof t)}function ES(e,t){return e=e.namespaceURI===pp||e.namespaceURI===qu?e.ownerDocument.createElementNS(e.namespaceURI,e.tagName):e.ownerDocument.createElement(e.tagName),e.innerHTML=t,e.innerHTML}function pl(e){return $e(e)&&(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.",Ge(e)),Qe(e)),(typeof e==="string"?e:""+e).replace(CM,`
|
|
176
|
-
`).replace(wM,"")}function OS(e,t){return t=pl(t),pl(e)===t?!0:!1}function Vt(e,t,a,o,n,r){switch(a){case"children":if(typeof o==="string")ef(o,t,!1),t==="body"||t==="textarea"&&o===""||Ni(e,o);else if(typeof o==="number"||typeof o==="bigint")ef(""+o,t,!1),t!=="body"&&Ni(e,""+o);break;case"className":Zd(e,"class",o);break;case"tabIndex":Zd(e,"tabindex",o);break;case"dir":case"role":case"viewBox":case"width":case"height":Zd(e,a,o);break;case"style":Ub(e,o,r);break;case"data":if(t!=="object"){Zd(e,"data",o);break}case"src":case"href":if(o===""&&(t!=="a"||a!=="href")){a==="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.',a,a):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.',a,a),e.removeAttribute(a);break}if(o==null||typeof o==="function"||typeof o==="symbol"||typeof o==="boolean"){e.removeAttribute(a);break}Xe(o,a),o=zi(""+o),e.setAttribute(a,o);break;case"action":case"formAction":if(o!=null&&(t==="form"?a==="formAction"?console.error("You can only pass the formAction prop to <input> or <button>. Use the action prop on <form>."):typeof o==="function"&&(n.encType==null&&n.method==null||tm||(tm=!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||em||(em=!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."))):t==="input"||t==="button"?a==="action"?console.error("You can only pass the action prop to <form>. Use the formAction prop on <input> or <button>."):t!=="input"||n.type==="submit"||n.type==="image"||Jp?t!=="button"||n.type==null||n.type==="submit"||Jp?typeof o==="function"&&(n.name==null||Ew||(Ew=!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||tm||(tm=!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||em||(em=!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."))):(Jp=!0,console.error('A button can only specify a formAction along with type="submit" or no type.')):(Jp=!0,console.error('An input can only specify a formAction along with type="submit" or type="image".')):a==="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 o==="function"){e.setAttribute(a,"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 r==="function"&&(a==="formAction"?(t!=="input"&&Vt(e,t,"name",n.name,n,null),Vt(e,t,"formEncType",n.formEncType,n,null),Vt(e,t,"formMethod",n.formMethod,n,null),Vt(e,t,"formTarget",n.formTarget,n,null)):(Vt(e,t,"encType",n.encType,n,null),Vt(e,t,"method",n.method,n,null),Vt(e,t,"target",n.target,n,null)));if(o==null||typeof o==="symbol"||typeof o==="boolean"){e.removeAttribute(a);break}Xe(o,a),o=zi(""+o),e.setAttribute(a,o);break;case"onClick":o!=null&&(typeof o!=="function"&&Qn(a,o),e.onclick=Cr);break;case"onScroll":o!=null&&(typeof o!=="function"&&Qn(a,o),wt("scroll",e));break;case"onScrollEnd":o!=null&&(typeof o!=="function"&&Qn(a,o),wt("scrollend",e));break;case"dangerouslySetInnerHTML":if(o!=null){if(typeof o!=="object"||!("__html"in o))throw Error("`props.dangerouslySetInnerHTML` must be in the form `{__html: ...}`. Please visit https://react.dev/link/dangerously-set-inner-html for more information.");if(a=o.__html,a!=null){if(n.children!=null)throw Error("Can only set one of `children` or `props.dangerouslySetInnerHTML`.");e.innerHTML=a}}break;case"multiple":e.multiple=o&&typeof o!=="function"&&typeof o!=="symbol";break;case"muted":e.muted=o&&typeof o!=="function"&&typeof o!=="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(o==null||typeof o==="function"||typeof o==="boolean"||typeof o==="symbol"){e.removeAttribute("xlink:href");break}Xe(o,a),a=zi(""+o),e.setAttributeNS(Ps,"xlink:href",a);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":o!=null&&typeof o!=="function"&&typeof o!=="symbol"?(Xe(o,a),e.setAttribute(a,""+o)):e.removeAttribute(a);break;case"inert":o!==""||am[a]||(am[a]=!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.",a));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":o&&typeof o!=="function"&&typeof o!=="symbol"?e.setAttribute(a,""):e.removeAttribute(a);break;case"capture":case"download":o===!0?e.setAttribute(a,""):o!==!1&&o!=null&&typeof o!=="function"&&typeof o!=="symbol"?(Xe(o,a),e.setAttribute(a,o)):e.removeAttribute(a);break;case"cols":case"rows":case"size":case"span":o!=null&&typeof o!=="function"&&typeof o!=="symbol"&&!isNaN(o)&&1<=o?(Xe(o,a),e.setAttribute(a,o)):e.removeAttribute(a);break;case"rowSpan":case"start":o==null||typeof o==="function"||typeof o==="symbol"||isNaN(o)?e.removeAttribute(a):(Xe(o,a),e.setAttribute(a,o));break;case"popover":wt("beforetoggle",e),wt("toggle",e),Kd(e,"popover",o);break;case"xlinkActuate":Lr(e,Ps,"xlink:actuate",o);break;case"xlinkArcrole":Lr(e,Ps,"xlink:arcrole",o);break;case"xlinkRole":Lr(e,Ps,"xlink:role",o);break;case"xlinkShow":Lr(e,Ps,"xlink:show",o);break;case"xlinkTitle":Lr(e,Ps,"xlink:title",o);break;case"xlinkType":Lr(e,Ps,"xlink:type",o);break;case"xmlBase":Lr(e,Mv,"xml:base",o);break;case"xmlLang":Lr(e,Mv,"xml:lang",o);break;case"xmlSpace":Lr(e,Mv,"xml:space",o);break;case"is":r!=null&&console.error('Cannot update the "is" prop after it has been initialized.'),Kd(e,"is",o);break;case"innerText":case"textContent":break;case"popoverTarget":Ow||o==null||typeof o!=="object"||(Ow=!0,console.error("The `popoverTarget` prop expects the ID of an Element as a string. Received %s instead.",o));default:!(2<a.length)||a[0]!=="o"&&a[0]!=="O"||a[1]!=="n"&&a[1]!=="N"?(a=Pb(a),Kd(e,a,o)):Ls.hasOwnProperty(a)&&o!=null&&typeof o!=="function"&&Qn(a,o)}}function $g(e,t,a,o,n,r){switch(a){case"style":Ub(e,o,r);break;case"dangerouslySetInnerHTML":if(o!=null){if(typeof o!=="object"||!("__html"in o))throw Error("`props.dangerouslySetInnerHTML` must be in the form `{__html: ...}`. Please visit https://react.dev/link/dangerously-set-inner-html for more information.");if(a=o.__html,a!=null){if(n.children!=null)throw Error("Can only set one of `children` or `props.dangerouslySetInnerHTML`.");e.innerHTML=a}}break;case"children":typeof o==="string"?Ni(e,o):(typeof o==="number"||typeof o==="bigint")&&Ni(e,""+o);break;case"onScroll":o!=null&&(typeof o!=="function"&&Qn(a,o),wt("scroll",e));break;case"onScrollEnd":o!=null&&(typeof o!=="function"&&Qn(a,o),wt("scrollend",e));break;case"onClick":o!=null&&(typeof o!=="function"&&Qn(a,o),e.onclick=Cr);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(Ls.hasOwnProperty(a))o!=null&&typeof o!=="function"&&Qn(a,o);else e:{if(a[0]==="o"&&a[1]==="n"&&(n=a.endsWith("Capture"),t=a.slice(2,n?a.length-7:void 0),r=e[lo]||null,r=r!=null?r[a]:null,typeof r==="function"&&e.removeEventListener(t,r,n),typeof o==="function")){typeof r!=="function"&&r!==null&&(a in e?e[a]=null:e.hasAttribute(a)&&e.removeAttribute(a)),e.addEventListener(t,o,n);break e}a in e?e[a]=o:o===!0?e.setAttribute(a,""):Kd(e,a,o)}}}function $a(e,t,a){switch(Yg(t,a),t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":wt("error",e),wt("load",e);var o=!1,n=!1,r;for(r in a)if(a.hasOwnProperty(r)){var u=a[r];if(u!=null)switch(r){case"src":o=!0;break;case"srcSet":n=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(t+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");default:Vt(e,t,r,u,a,null)}}n&&Vt(e,t,"srcSet",a.srcSet,a,null),o&&Vt(e,t,"src",a.src,a,null);return;case"input":al("input",a),wt("invalid",e);var f=r=u=n=null,m=null,y=null;for(o in a)if(a.hasOwnProperty(o)){var O=a[o];if(O!=null)switch(o){case"name":n=O;break;case"type":u=O;break;case"checked":m=O;break;case"defaultChecked":y=O;break;case"value":r=O;break;case"defaultValue":f=O;break;case"children":case"dangerouslySetInnerHTML":if(O!=null)throw Error(t+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");break;default:Vt(e,t,o,O,a,null)}}Lb(e,a),Cb(e,r,f,m,y,u,n,!1);return;case"select":al("select",a),wt("invalid",e),o=u=r=null;for(n in a)if(a.hasOwnProperty(n)&&(f=a[n],f!=null))switch(n){case"value":r=f;break;case"defaultValue":u=f;break;case"multiple":o=f;default:Vt(e,t,n,f,a,null)}Tb(e,a),t=r,a=u,e.multiple=!!o,t!=null?du(e,!!o,t,!1):a!=null&&du(e,!!o,a,!0);return;case"textarea":al("textarea",a),wt("invalid",e),r=n=o=null;for(u in a)if(a.hasOwnProperty(u)&&(f=a[u],f!=null))switch(u){case"value":o=f;break;case"defaultValue":n=f;break;case"children":r=f;break;case"dangerouslySetInnerHTML":if(f!=null)throw Error("`dangerouslySetInnerHTML` does not make sense on <textarea>.");break;default:Vt(e,t,u,f,a,null)}Ib(e,a),Ab(e,o,n,r);return;case"option":wb(e,a);for(m in a)if(a.hasOwnProperty(m)&&(o=a[m],o!=null))switch(m){case"selected":e.selected=o&&typeof o!=="function"&&typeof o!=="symbol";break;default:Vt(e,t,m,o,a,null)}return;case"dialog":wt("beforetoggle",e),wt("toggle",e),wt("cancel",e),wt("close",e);break;case"iframe":case"object":wt("load",e);break;case"video":case"audio":for(o=0;o<td.length;o++)wt(td[o],e);break;case"image":wt("error",e),wt("load",e);break;case"details":wt("toggle",e);break;case"embed":case"source":case"link":wt("error",e),wt("load",e);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(y in a)if(a.hasOwnProperty(y)&&(o=a[y],o!=null))switch(y){case"children":case"dangerouslySetInnerHTML":throw Error(t+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");default:Vt(e,t,y,o,a,null)}return;default:if(Bi(t)){for(O in a)a.hasOwnProperty(O)&&(o=a[O],o!==void 0&&$g(e,t,O,o,a,void 0));return}}for(f in a)a.hasOwnProperty(f)&&(o=a[f],o!=null&&Vt(e,t,f,o,a,null))}function fR(e,t,a,o){switch(Yg(t,o),t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var n=null,r=null,u=null,f=null,m=null,y=null,O=null;for(_ in a){var q=a[_];if(a.hasOwnProperty(_)&&q!=null)switch(_){case"checked":break;case"value":break;case"defaultValue":m=q;default:o.hasOwnProperty(_)||Vt(e,t,_,null,o,q)}}for(var R in o){var _=o[R];if(q=a[R],o.hasOwnProperty(R)&&(_!=null||q!=null))switch(R){case"type":r=_;break;case"name":n=_;break;case"checked":y=_;break;case"defaultChecked":O=_;break;case"value":u=_;break;case"defaultValue":f=_;break;case"children":case"dangerouslySetInnerHTML":if(_!=null)throw Error(t+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");break;default:_!==q&&Vt(e,t,R,_,o,q)}}t=a.type==="checkbox"||a.type==="radio"?a.checked!=null:a.value!=null,o=o.type==="checkbox"||o.type==="radio"?o.checked!=null:o.value!=null,t||!o||Dw||(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"),Dw=!0),!t||o||Mw||(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"),Mw=!0),sh(e,u,f,m,y,O,r,n);return;case"select":_=u=f=R=null;for(r in a)if(m=a[r],a.hasOwnProperty(r)&&m!=null)switch(r){case"value":break;case"multiple":_=m;default:o.hasOwnProperty(r)||Vt(e,t,r,null,o,m)}for(n in o)if(r=o[n],m=a[n],o.hasOwnProperty(n)&&(r!=null||m!=null))switch(n){case"value":R=r;break;case"defaultValue":f=r;break;case"multiple":u=r;default:r!==m&&Vt(e,t,n,r,o,m)}o=f,t=u,a=_,R!=null?du(e,!!t,R,!1):!!a!==!!t&&(o!=null?du(e,!!t,o,!0):du(e,!!t,t?[]:"",!1));return;case"textarea":_=R=null;for(f in a)if(n=a[f],a.hasOwnProperty(f)&&n!=null&&!o.hasOwnProperty(f))switch(f){case"value":break;case"children":break;default:Vt(e,t,f,null,o,n)}for(u in o)if(n=o[u],r=a[u],o.hasOwnProperty(u)&&(n!=null||r!=null))switch(u){case"value":R=n;break;case"defaultValue":_=n;break;case"children":break;case"dangerouslySetInnerHTML":if(n!=null)throw Error("`dangerouslySetInnerHTML` does not make sense on <textarea>.");break;default:n!==r&&Vt(e,t,u,n,o,r)}Rb(e,R,_);return;case"option":for(var ie in a)if(R=a[ie],a.hasOwnProperty(ie)&&R!=null&&!o.hasOwnProperty(ie))switch(ie){case"selected":e.selected=!1;break;default:Vt(e,t,ie,null,o,R)}for(m in o)if(R=o[m],_=a[m],o.hasOwnProperty(m)&&R!==_&&(R!=null||_!=null))switch(m){case"selected":e.selected=R&&typeof R!=="function"&&typeof R!=="symbol";break;default:Vt(e,t,m,R,o,_)}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 ge in a)R=a[ge],a.hasOwnProperty(ge)&&R!=null&&!o.hasOwnProperty(ge)&&Vt(e,t,ge,null,o,R);for(y in o)if(R=o[y],_=a[y],o.hasOwnProperty(y)&&R!==_&&(R!=null||_!=null))switch(y){case"children":case"dangerouslySetInnerHTML":if(R!=null)throw Error(t+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");break;default:Vt(e,t,y,R,o,_)}return;default:if(Bi(t)){for(var Qt in a)R=a[Qt],a.hasOwnProperty(Qt)&&R!==void 0&&!o.hasOwnProperty(Qt)&&$g(e,t,Qt,void 0,o,R);for(O in o)R=o[O],_=a[O],!o.hasOwnProperty(O)||R===_||R===void 0&&_===void 0||$g(e,t,O,R,o,_);return}}for(var kt in a)R=a[kt],a.hasOwnProperty(kt)&&R!=null&&!o.hasOwnProperty(kt)&&Vt(e,t,kt,null,o,R);for(q in o)R=o[q],_=a[q],!o.hasOwnProperty(q)||R===_||R==null&&_==null||Vt(e,t,q,R,o,_)}function qS(e){switch(e){case"class":return"className";case"for":return"htmlFor";default:return e}}function Qg(e){var t={};e=e.style;for(var a=0;a<e.length;a++){var o=e[a];t[o]=e.getPropertyValue(o)}return t}function NS(e,t,a){if(t!=null&&typeof t!=="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 o,n=o="",r;for(r in t)if(t.hasOwnProperty(r)){var u=t[r];u!=null&&typeof u!=="boolean"&&u!==""&&(r.indexOf("--")===0?(yt(u,r),o+=n+r+":"+(""+u).trim()):typeof u!=="number"||u===0||jL.has(r)?(yt(u,r),o+=n+r.replace(_L,"-$1").toLowerCase().replace(HL,"-ms-")+":"+(""+u).trim()):o+=n+r.replace(_L,"-$1").toLowerCase().replace(HL,"-ms-")+":"+u+"px",n=";")}o=o||null,t=e.getAttribute("style"),t!==o&&(o=pl(o),pl(t)!==o&&(a.style=Qg(e)))}}function Yo(e,t,a,o,n,r){if(n.delete(a),e=e.getAttribute(a),e===null)switch(typeof o){case"undefined":case"function":case"symbol":case"boolean":return}else if(o!=null)switch(typeof o){case"function":case"symbol":case"boolean":break;default:if(Xe(o,t),e===""+o)return}za(t,e,o,r)}function BS(e,t,a,o,n,r){if(n.delete(a),e=e.getAttribute(a),e===null){switch(typeof o){case"function":case"symbol":return}if(!o)return}else switch(typeof o){case"function":case"symbol":break;default:if(o)return}za(t,e,o,r)}function Kg(e,t,a,o,n,r){if(n.delete(a),e=e.getAttribute(a),e===null)switch(typeof o){case"undefined":case"function":case"symbol":return}else if(o!=null)switch(typeof o){case"function":case"symbol":break;default:if(Xe(o,a),e===""+o)return}za(t,e,o,r)}function zS(e,t,a,o,n,r){if(n.delete(a),e=e.getAttribute(a),e===null)switch(typeof o){case"undefined":case"function":case"symbol":case"boolean":return;default:if(isNaN(o))return}else if(o!=null)switch(typeof o){case"function":case"symbol":case"boolean":break;default:if(!isNaN(o)&&(Xe(o,t),e===""+o))return}za(t,e,o,r)}function Zg(e,t,a,o,n,r){if(n.delete(a),e=e.getAttribute(a),e===null)switch(typeof o){case"undefined":case"function":case"symbol":case"boolean":return}else if(o!=null)switch(typeof o){case"function":case"symbol":case"boolean":break;default:if(Xe(o,t),a=zi(""+o),e===a)return}za(t,e,o,r)}function US(e,t,a,o){for(var n={},r=new Set,u=e.attributes,f=0;f<u.length;f++)switch(u[f].name.toLowerCase()){case"value":break;case"checked":break;case"selected":break;default:r.add(u[f].name)}if(Bi(t)){for(var m in a)if(a.hasOwnProperty(m)){var y=a[m];if(y!=null){if(Ls.hasOwnProperty(m))typeof y!=="function"&&Qn(m,y);else if(a.suppressHydrationWarning!==!0)switch(m){case"children":typeof y!=="string"&&typeof y!=="number"||za("children",e.textContent,y,n);continue;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":continue;case"dangerouslySetInnerHTML":u=e.innerHTML,y=y?y.__html:void 0,y!=null&&(y=ES(e,y),za(m,u,y,n));continue;case"style":r.delete(m),NS(e,y,n);continue;case"offsetParent":case"offsetTop":case"offsetLeft":case"offsetWidth":case"offsetHeight":case"isContentEditable":case"outerText":case"outerHTML":r.delete(m.toLowerCase()),console.error("Assignment to read-only property will result in a no-op: `%s`",m);continue;case"className":r.delete("class"),u=bb(e,"class",y),za("className",u,y,n);continue;default:o.context===jr&&t!=="svg"&&t!=="math"?r.delete(m.toLowerCase()):r.delete(m),u=bb(e,m,y),za(m,u,y,n)}}}}else for(y in a)if(a.hasOwnProperty(y)&&(m=a[y],m!=null)){if(Ls.hasOwnProperty(y))typeof m!=="function"&&Qn(y,m);else if(a.suppressHydrationWarning!==!0)switch(y){case"children":typeof m!=="string"&&typeof m!=="number"||za("children",e.textContent,m,n);continue;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"value":case"checked":case"selected":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":continue;case"dangerouslySetInnerHTML":u=e.innerHTML,m=m?m.__html:void 0,m!=null&&(m=ES(e,m),u!==m&&(n[y]={__html:u}));continue;case"className":Yo(e,y,"class",m,r,n);continue;case"tabIndex":Yo(e,y,"tabindex",m,r,n);continue;case"style":r.delete(y),NS(e,m,n);continue;case"multiple":r.delete(y),za(y,e.multiple,m,n);continue;case"muted":r.delete(y),za(y,e.muted,m,n);continue;case"autoFocus":r.delete("autofocus"),za(y,e.autofocus,m,n);continue;case"data":if(t!=="object"){r.delete(y),u=e.getAttribute("data"),za(y,u,m,n);continue}case"src":case"href":if(!(m!==""||t==="a"&&y==="href"||t==="object"&&y==="data")){y==="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.',y,y):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.',y,y);continue}Zg(e,y,y,m,r,n);continue;case"action":case"formAction":if(u=e.getAttribute(y),typeof m==="function"){r.delete(y.toLowerCase()),y==="formAction"?(r.delete("name"),r.delete("formenctype"),r.delete("formmethod"),r.delete("formtarget")):(r.delete("enctype"),r.delete("method"),r.delete("target"));continue}else if(u===kM){r.delete(y.toLowerCase()),za(y,"function",m,n);continue}Zg(e,y,y.toLowerCase(),m,r,n);continue;case"xlinkHref":Zg(e,y,"xlink:href",m,r,n);continue;case"contentEditable":Kg(e,y,"contenteditable",m,r,n);continue;case"spellCheck":Kg(e,y,"spellcheck",m,r,n);continue;case"draggable":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":Kg(e,y,y,m,r,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":BS(e,y,y.toLowerCase(),m,r,n);continue;case"capture":case"download":e:{f=e;var O=u=y,q=n;if(r.delete(O),f=f.getAttribute(O),f===null)switch(typeof m){case"undefined":case"function":case"symbol":break e;default:if(m===!1)break e}else if(m!=null)switch(typeof m){case"function":case"symbol":break;case"boolean":if(m===!0&&f==="")break e;break;default:if(Xe(m,u),f===""+m)break e}za(u,f,m,q)}continue;case"cols":case"rows":case"size":case"span":e:{if(f=e,O=u=y,q=n,r.delete(O),f=f.getAttribute(O),f===null)switch(typeof m){case"undefined":case"function":case"symbol":case"boolean":break e;default:if(isNaN(m)||1>m)break e}else if(m!=null)switch(typeof m){case"function":case"symbol":case"boolean":break;default:if(!(isNaN(m)||1>m)&&(Xe(m,u),f===""+m))break e}za(u,f,m,q)}continue;case"rowSpan":zS(e,y,"rowspan",m,r,n);continue;case"start":zS(e,y,y,m,r,n);continue;case"xHeight":Yo(e,y,"x-height",m,r,n);continue;case"xlinkActuate":Yo(e,y,"xlink:actuate",m,r,n);continue;case"xlinkArcrole":Yo(e,y,"xlink:arcrole",m,r,n);continue;case"xlinkRole":Yo(e,y,"xlink:role",m,r,n);continue;case"xlinkShow":Yo(e,y,"xlink:show",m,r,n);continue;case"xlinkTitle":Yo(e,y,"xlink:title",m,r,n);continue;case"xlinkType":Yo(e,y,"xlink:type",m,r,n);continue;case"xmlBase":Yo(e,y,"xml:base",m,r,n);continue;case"xmlLang":Yo(e,y,"xml:lang",m,r,n);continue;case"xmlSpace":Yo(e,y,"xml:space",m,r,n);continue;case"inert":m!==""||am[y]||(am[y]=!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.",y)),BS(e,y,y,m,r,n);continue;default:if(!(2<y.length)||y[0]!=="o"&&y[0]!=="O"||y[1]!=="n"&&y[1]!=="N"){f=Pb(y),u=!1,o.context===jr&&t!=="svg"&&t!=="math"?r.delete(f.toLowerCase()):(O=y.toLowerCase(),O=mp.hasOwnProperty(O)?mp[O]||null:null,O!==null&&O!==y&&(u=!0,r.delete(O)),r.delete(f));e:if(O=e,q=f,f=m,Ei(q))if(O.hasAttribute(q))O=O.getAttribute(q),Xe(f,q),f=O===""+f?f:O;else{switch(typeof f){case"function":case"symbol":break e;case"boolean":if(O=q.toLowerCase().slice(0,5),O!=="data-"&&O!=="aria-")break e}f=f===void 0?void 0:null}else f=void 0;u||za(y,f,m,n)}}}return 0<r.size&&a.suppressHydrationWarning!==!0&&dR(e,r,n),Object.keys(n).length===0?null:n}function pR(e,t){switch(e.length){case 0:return"";case 1:return e[0];case 2:return e[0]+" "+t+" "+e[1];default:return e.slice(0,-1).join(", ")+", "+t+" "+e[e.length-1]}}function PS(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function mR(){if(typeof performance.getEntriesByType==="function"){for(var e=0,t=0,a=performance.getEntriesByType("resource"),o=0;o<a.length;o++){var n=a[o],{transferSize:r,initiatorType:u,duration:f}=n;if(r&&f&&PS(u)){u=0,f=n.responseEnd;for(o+=1;o<a.length;o++){var m=a[o],y=m.startTime;if(y>f)break;var O=m.transferSize,q=m.initiatorType;O&&PS(q)&&(m=m.responseEnd,u+=O*(m<f?1:(f-y)/(m-y)))}if(--o,t+=8*(r+u)/(n.duration/1000),e++,10<e)break}}if(0<e)return t/e/1e6}return navigator.connection&&(e=navigator.connection.downlink,typeof e==="number")?e:5}function Kf(e){return e.nodeType===9?e:e.ownerDocument}function _S(e){switch(e){case qu:return ci;case pp:return nm;default:return jr}}function HS(e,t){if(e===jr)switch(t){case"svg":return ci;case"math":return nm;default:return jr}return e===ci&&t==="foreignObject"?jr:e}function Wg(e,t){return e==="textarea"||e==="noscript"||typeof t.children==="string"||typeof t.children==="number"||typeof t.children==="bigint"||typeof t.dangerouslySetInnerHTML==="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}function hR(){var e=window.event;if(e&&e.type==="popstate"){if(e===qv)return!1;return qv=e,!0}return qv=null,!1}function uc(){var e=window.event;return e&&e!==nd?e.type:null}function ic(){var e=window.event;return e&&e!==nd?e.timeStamp:-1.1}function gR(e){setTimeout(function(){throw e})}function yR(e,t,a){switch(t){case"button":case"input":case"select":case"textarea":a.autoFocus&&e.focus();break;case"img":a.src?e.src=a.src:a.srcSet&&(e.srcset=a.srcSet)}}function vR(){}function bR(e,t,a,o){fR(e,t,a,o),e[lo]=o}function FS(e){Ni(e,"")}function xR(e,t,a){e.nodeValue=a}function GS(e){if(!e.__reactWarnedAboutChildrenConflict){var t=e[lo]||null;if(t!==null){var a=Je(e);a!==null&&(typeof t.children==="string"||typeof t.children==="number"?(e.__reactWarnedAboutChildrenConflict=!0,j(a,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.')})):t.dangerouslySetInnerHTML!=null&&(e.__reactWarnedAboutChildrenConflict=!0,j(a,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 ml(e){return e==="head"}function SR(e,t){e.removeChild(t)}function LR(e,t){(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e).removeChild(t)}function VS(e,t){var a=t,o=0;do{var n=a.nextSibling;if(e.removeChild(a),n&&n.nodeType===8)if(a=n.data,a===od||a===om){if(o===0){e.removeChild(n),Ru(t);return}o--}else if(a===ad||a===Ul||a===Hs||a===ii||a===_s)o++;else if(a===IM)cc(e.ownerDocument.documentElement);else if(a===AM){a=e.ownerDocument.head,cc(a);for(var r=a.firstChild;r;){var u=r.nextSibling,f=r.nodeName;r[yc]||f==="SCRIPT"||f==="STYLE"||f==="LINK"&&r.rel.toLowerCase()==="stylesheet"||a.removeChild(r),r=u}}else a===RM&&cc(e.ownerDocument.body);a=n}while(a);Ru(t)}function jS(e,t){var a=e;e=0;do{var o=a.nextSibling;if(a.nodeType===1?t?(a._stashedDisplay=a.style.display,a.style.display="none"):(a.style.display=a._stashedDisplay||"",a.getAttribute("style")===""&&a.removeAttribute("style")):a.nodeType===3&&(t?(a._stashedText=a.nodeValue,a.nodeValue=""):a.nodeValue=a._stashedText||""),o&&o.nodeType===8)if(a=o.data,a===od)if(e===0)break;else e--;else a!==ad&&a!==Ul&&a!==Hs&&a!==ii||e++;a=o}while(a)}function CR(e){jS(e,!0)}function wR(e){e=e.style,typeof e.setProperty==="function"?e.setProperty("display","none","important"):e.display="none"}function kR(e){e.nodeValue=""}function TR(e){jS(e,!1)}function IR(e,t){t=t[MM],t=t!==void 0&&t!==null&&t.hasOwnProperty("display")?t.display:null,e.style.display=t==null||typeof t==="boolean"?"":(""+t).trim()}function RR(e,t){e.nodeValue=t}function Jg(e){var t=e.firstChild;t&&t.nodeType===10&&(t=t.nextSibling);for(;t;){var a=t;switch(t=t.nextSibling,a.nodeName){case"HTML":case"HEAD":case"BODY":Jg(a),pe(a);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(a.rel.toLowerCase()==="stylesheet")continue}e.removeChild(a)}}function AR(e,t,a,o){for(;e.nodeType===1;){var n=a;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!o&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(!o)if(t==="input"&&e.type==="hidden"){Xe(n.name,"name");var r=n.name==null?null:""+n.name;if(n.type==="hidden"&&e.getAttribute("name")===r)return e}else return e;else if(!e[yc])switch(t){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if(r=e.getAttribute("rel"),r==="stylesheet"&&e.hasAttribute("data-precedence"))break;else if(r!==n.rel||e.getAttribute("href")!==(n.href==null||n.href===""?null:n.href)||e.getAttribute("crossorigin")!==(n.crossOrigin==null?null:n.crossOrigin)||e.getAttribute("title")!==(n.title==null?null:n.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(r=e.getAttribute("src"),(r!==(n.src==null?null:n.src)||e.getAttribute("type")!==(n.type==null?null:n.type)||e.getAttribute("crossorigin")!==(n.crossOrigin==null?null:n.crossOrigin))&&r&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}if(e=qo(e.nextSibling),e===null)break}return null}function MR(e,t,a){if(t==="")return null;for(;e.nodeType!==3;){if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!a)return null;if(e=qo(e.nextSibling),e===null)return null}return e}function XS(e,t){for(;e.nodeType!==8;){if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!t)return null;if(e=qo(e.nextSibling),e===null)return null}return e}function ey(e){return e.data===Ul||e.data===Hs}function ty(e){return e.data===ii||e.data===Ul&&e.ownerDocument.readyState!==Nw}function DR(e,t){var a=e.ownerDocument;if(e.data===Hs)e._reactRetry=t;else if(e.data!==Ul||a.readyState!==Nw)t();else{var o=function(){t(),a.removeEventListener("DOMContentLoaded",o)};a.addEventListener("DOMContentLoaded",o),e._reactRetry=o}}function qo(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t===ad||t===ii||t===Ul||t===Hs||t===_s||t===Dv||t===qw)break;if(t===od||t===om)return null}}return e}function YS(e){if(e.nodeType===1){for(var t=e.nodeName.toLowerCase(),a={},o=e.attributes,n=0;n<o.length;n++){var r=o[n];a[qS(r.name)]=r.name.toLowerCase()==="style"?Qg(e):r.value}return{type:t,props:a}}return e.nodeType===8?e.data===_s?{type:"Activity",props:{}}:{type:"Suspense",props:{}}:e.nodeValue}function $S(e,t,a){return a===null||a[TM]!==!0?(e.nodeValue===t?e=null:(t=pl(t),e=pl(e.nodeValue)===t?null:e.nodeValue),e):null}function ay(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var a=e.data;if(a===od||a===om){if(t===0)return qo(e.nextSibling);t--}else a!==ad&&a!==ii&&a!==Ul&&a!==Hs&&a!==_s||t++}e=e.nextSibling}return null}function QS(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var a=e.data;if(a===ad||a===ii||a===Ul||a===Hs||a===_s){if(t===0)return e;t--}else a!==od&&a!==om||t++}e=e.previousSibling}return null}function ER(e){Ru(e)}function OR(e){Ru(e)}function qR(e){Ru(e)}function KS(e,t,a,o,n){switch(n&&ph(e,o.ancestorInfo),t=Kf(a),e){case"html":if(e=t.documentElement,!e)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 e;case"head":if(e=t.head,!e)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 e;case"body":if(e=t.body,!e)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 e;default:throw Error("resolveSingletonInstance was called with an element type that is not supported. This is a bug in React.")}}function NR(e,t,a,o){if(!a[vl]&&Je(a)){var n=a.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(e){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=a.attributes;n.length;)a.removeAttributeNode(n[0]);$a(a,e,t),a[Qa]=o,a[lo]=t}function cc(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);pe(e)}function Zf(e){return typeof e.getRootNode==="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}function ZS(e,t,a){var o=di;if(o&&typeof t==="string"&&t){var n=Xo(t);n='link[rel="'+e+'"][href="'+n+'"]',typeof a==="string"&&(n+='[crossorigin="'+a+'"]'),Hw.has(n)||(Hw.add(n),e={rel:e,crossOrigin:a,href:t},o.querySelector(n)===null&&(t=o.createElement("link"),$a(t,"link",e),qe(t),o.head.appendChild(t)))}}function WS(e,t,a,o){var n=(n=gl.current)?Zf(n):null;if(!n)throw Error('"resourceRoot" was expected to exist. This is a bug in React.');switch(e){case"meta":case"title":return null;case"style":return typeof a.precedence==="string"&&typeof a.href==="string"?(a=Tu(a.href),t=It(n).hoistableStyles,o=t.get(a),o||(o={type:"style",instance:null,count:0,state:null},t.set(a,o)),o):{type:"void",instance:null,count:0,state:null};case"link":if(a.rel==="stylesheet"&&typeof a.href==="string"&&typeof a.precedence==="string"){e=Tu(a.href);var r=It(n).hoistableStyles,u=r.get(e);if(!u&&(n=n.ownerDocument||n,u={type:"stylesheet",instance:null,count:0,state:{loading:Gs,preload:null}},r.set(e,u),(r=n.querySelector(dc(e)))&&!r._p&&(u.instance=r,u.state.loading=rd|nn),!rn.has(e))){var f={rel:"preload",as:"style",href:a.href,crossOrigin:a.crossOrigin,integrity:a.integrity,media:a.media,hrefLang:a.hrefLang,referrerPolicy:a.referrerPolicy};rn.set(e,f),r||BR(n,e,f,u.state)}if(t&&o===null)throw a=`
|
|
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`,V(e))})}function Yr(e){e!==ui&&e.next===null&&(ui===null?Zp=ui=e:ui=ui.next=e),Wp=!0,j.actQueue!==null?Dv||(Dv=!0,O0()):Mv||(Mv=!0,O0())}function sc(e,t){if(!Ev&&Wp){Ev=!0;do{var a=!1;for(var o=Zp;o!==null;){if(!t)if(e!==0){var r=o.pendingLanes;if(r===0)var n=0;else{var u=o.suspendedLanes,f=o.pingedLanes;n=(1<<31-lo(42|e)+1)-1,n&=r&~(u&~f),n=n&201326741?n&201326741|1:n?n|2:0}n!==0&&(a=!0,q0(o,n))}else n=it,n=ts(o,o===Xt?n:0,o.cancelPendingCommit!==null||o.timeoutHandle!==Fs),(n&3)===0||as(o,n)||(a=!0,q0(o,n));o=o.next}}while(a);Ev=!1}}function vR(){nd=window.event,Xg()}function Xg(){Wp=Dv=Mv=!1;var e=0;zl!==0&&kR()&&(e=zl);for(var t=Ua(),a=null,o=Zp;o!==null;){var r=o.next,n=D0(o,t);if(n===0)o.next=null,a===null?Zp=r:a.next=r,r===null&&(ui=a);else if(a=o,e!==0||(n&3)!==0)Wp=!0;o=r}Aa!==Nl&&Aa!==$p||sc(e,!1),zl!==0&&(zl=0)}function D0(e,t){for(var{suspendedLanes:a,pingedLanes:o,expirationTimes:r}=e,n=e.pendingLanes&-62914561;0<n;){var u=31-lo(n),f=1<<u,m=r[u];if(m===-1){if((f&a)===0||(f&o)!==0)r[u]=ch(f,t)}else m<=t&&(e.expiredLanes|=f);n&=~f}if(t=Xt,a=it,a=ts(e,e===t?a:0,e.cancelPendingCommit!==null||e.timeoutHandle!==Fs),o=e.callbackNode,a===0||e===t&&(_t===Ns||_t===Bs)||e.cancelPendingCommit!==null)return o!==null&&Yg(o),e.callbackNode=null,e.callbackPriority=0;if((a&3)===0||as(e,a)){if(t=a&-a,t!==e.callbackPriority||j.actQueue!==null&&o!==qv)Yg(o);else return t;switch(v(a)){case zo:case mr:a=Ry;break;case en:a=Du;break;case fp:a=Ay;break;default:a=Du}return o=E0.bind(null,e),j.actQueue!==null?(j.actQueue.push(o),a=qv):a=Iy(a,o),e.callbackPriority=t,e.callbackNode=a,t}return o!==null&&Yg(o),e.callbackPriority=2,e.callbackNode=null,2}function E0(e,t){if(Mp=Ap=!1,nd=window.event,Aa!==Nl&&Aa!==$p)return e.callbackNode=null,e.callbackPriority=0,null;var a=e.callbackNode;if(xr===Yp&&(xr=wv),nc()&&e.callbackNode!==a)return null;var o=it;if(o=ts(e,e===Xt?o:0,e.cancelPendingCommit!==null||e.timeoutHandle!==Fs),o===0)return null;return d0(e,o,t),D0(e,Ua()),e.callbackNode!=null&&e.callbackNode===a?E0.bind(null,e):null}function q0(e,t){if(nc())return null;Ap=Mp,Mp=!1,d0(e,t,!0)}function Yg(e){e!==qv&&e!==null&&sA(e)}function O0(){j.actQueue!==null&&j.actQueue.push(function(){return Xg(),null}),FM(function(){(It&(Na|Ho))!==Ha?Iy(Ty,vR):Xg()})}function $g(){if(zl===0){var e=Rs;e===0&&(e=ip,ip<<=1,(ip&261888)===0&&(ip=256)),zl=e}return zl}function N0(e){if(e==null||typeof e==="symbol"||typeof e==="boolean")return null;if(typeof e==="function")return e;return Xe(e,"action"),Ui(""+e)}function B0(e,t){var a=t.ownerDocument.createElement("input");return a.name=t.name,a.value=t.value,e.id&&a.setAttribute("form",e.id),t.parentNode.insertBefore(a,t),e=new FormData(e),a.parentNode.removeChild(a),e}function bR(e,t,a,o,r){if(t==="submit"&&a&&a.stateNode===r){var n=N0((r[so]||null).action),u=o.submitter;u&&(t=(t=u[so]||null)?N0(t.formAction):u.getAttribute("formAction"),t!==null&&(n=t,u=null));var f=new yp("action","action",null,o,r);e.push({event:f,listeners:[{instance:null,listener:function(){if(o.defaultPrevented){if(zl!==0){var m=u?B0(r,u):new FormData(r),y={pending:!0,data:m,method:r.method,action:n};Object.freeze(y),mg(a,y,null,m)}}else typeof n==="function"&&(f.preventDefault(),m=u?B0(r,u):new FormData(r),y={pending:!0,data:m,method:r.method,action:n},Object.freeze(y),mg(a,y,n,m))},currentTarget:r}]})}}function Qf(e,t,a){e.currentTarget=a;try{t(e)}catch(o){jy(o)}e.currentTarget=null}function z0(e,t){t=(t&4)!==0;for(var a=0;a<e.length;a++){var o=e[a];e:{var r=void 0,n=o.event;if(o=o.listeners,t)for(var u=o.length-1;0<=u;u--){var f=o[u],m=f.instance,y=f.currentTarget;if(f=f.listener,m!==r&&n.isPropagationStopped())break e;m!==null?Y(m,Qf,n,f,y):Qf(n,f,y),r=m}else for(u=0;u<o.length;u++){if(f=o[u],m=f.instance,y=f.currentTarget,f=f.listener,m!==r&&n.isPropagationStopped())break e;m!==null?Y(m,Qf,n,f,y):Qf(n,f,y),r=m}}}}function wt(e,t){Ov.has(e)||console.error('Did not expect a listenToNonDelegatedEvent() call for "%s". This is a bug in React. Please file an issue.',e);var a=t[My];a===void 0&&(a=t[My]=new Set);var o=e+"__bubble";a.has(o)||(U0(t,e,2,!1),a.add(o))}function Qg(e,t,a){Ov.has(e)&&!t&&console.error('Did not expect a listenToNativeEvent() call for "%s" in the bubble phase. This is a bug in React. Please file an issue.',e);var o=0;t&&(o|=4),U0(a,e,o,t)}function Kg(e){if(!e[Jp]){e[Jp]=!0,OL.forEach(function(a){a!=="selectionchange"&&(Ov.has(a)||Qg(a,!1,e),Qg(a,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Jp]||(t[Jp]=!0,Qg("selectionchange",!1,t))}}function U0(e,t,a,o){switch(yL(t)){case zo:var r=JR;break;case mr:r=eA;break;default:r=fy}a=r.bind(null,t,a,e),r=void 0,!Ny||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(r=!0),o?r!==void 0?e.addEventListener(t,a,{capture:!0,passive:r}):e.addEventListener(t,a,!0):r!==void 0?e.addEventListener(t,a,{passive:r}):e.addEventListener(t,a,!1)}function Zg(e,t,a,o,r){var n=o;if((t&1)===0&&(t&2)===0&&o!==null)e:for(;;){if(o===null)return;var u=o.tag;if(u===3||u===4){var f=o.stateNode.containerInfo;if(f===r)break;if(u===4)for(u=o.return;u!==null;){var m=u.tag;if((m===3||m===4)&&u.stateNode.containerInfo===r)return;u=u.return}for(;f!==null;){if(u=Te(f),u===null)return;if(m=u.tag,m===5||m===6||m===26||m===27){o=n=u;continue e}f=f.parentNode}}o=o.return}Qb(function(){var y=n,q=bh(a),O=[];e:{var R=yC.get(e);if(R!==void 0){var _=yp,ce=e;switch(e){case"keypress":if(af(a)===0)break e;case"keydown":case"keyup":_=$A;break;case"focusin":ce="focus",_=Py;break;case"focusout":ce="blur",_=Py;break;case"beforeblur":case"afterblur":_=Py;break;case"click":if(a.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":_=oC;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":_=BA;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":_=ZA;break;case pC:case mC:case hC:_=PA;break;case gC:_=JA;break;case"scroll":case"scrollend":_=OA;break;case"wheel":_=tM;break;case"copy":case"cut":case"paste":_=HA;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":_=nC;break;case"toggle":case"beforetoggle":_=oM}var ge=(t&4)!==0,Qt=!ge&&(e==="scroll"||e==="scrollend"),kt=ge?R!==null?R+"Capture":null:R;ge=[];for(var I=y,A;I!==null;){var D=I;if(A=D.stateNode,D=D.tag,D!==5&&D!==26&&D!==27||A===null||kt===null||(D=Pi(I,kt),D!=null&&ge.push(uc(I,D,A))),Qt)break;I=I.return}0<ge.length&&(R=new _(R,ce,null,a,q),O.push({event:R,listeners:ge}))}}if((t&7)===0){e:{if(R=e==="mouseover"||e==="pointerover",_=e==="mouseout"||e==="pointerout",R&&a!==bc&&(ce=a.relatedTarget||a.fromElement)&&(Te(ce)||ce[vl]))break e;if(_||R){if(R=q.window===q?q:(R=q.ownerDocument)?R.defaultView||R.parentWindow:window,_){if(ce=a.relatedTarget||a.toElement,_=y,ce=ce?Te(ce):null,ce!==null&&(Qt=U(ce),ge=ce.tag,ce!==Qt||ge!==5&&ge!==27&&ge!==6))ce=null}else _=null,ce=y;if(_!==ce){if(ge=oC,D="onMouseLeave",kt="onMouseEnter",I="mouse",e==="pointerout"||e==="pointerover")ge=nC,D="onPointerLeave",kt="onPointerEnter",I="pointer";if(Qt=_==null?R:et(_),A=ce==null?R:et(ce),R=new ge(D,I+"leave",_,a,q),R.target=Qt,R.relatedTarget=A,D=null,Te(q)===y&&(ge=new ge(kt,I+"enter",ce,a,q),ge.target=A,ge.relatedTarget=Qt,D=ge),Qt=D,_&&ce)t:{ge=xR,kt=_,I=ce,A=0;for(D=kt;D;D=ge(D))A++;D=0;for(var Z=I;Z;Z=ge(Z))D++;for(;0<A-D;)kt=ge(kt),A--;for(;0<D-A;)I=ge(I),D--;for(;A--;){if(kt===I||I!==null&&kt===I.alternate){ge=kt;break t}kt=ge(kt),I=ge(I)}ge=null}else ge=null;_!==null&&P0(O,R,_,ge,!1),ce!==null&&Qt!==null&&P0(O,Qt,ce,ge,!0)}}}e:{if(R=y?et(y):window,_=R.nodeName&&R.nodeName.toLowerCase(),_==="select"||_==="input"&&R.type==="file")var pe=ax;else if(ex(R))if(dC)pe=ET;else{pe=MT;var Ze=AT}else _=R.nodeName,!_||_.toLowerCase()!=="input"||R.type!=="checkbox"&&R.type!=="radio"?y&&zi(y.elementType)&&(pe=ax):pe=DT;if(pe&&(pe=pe(e,y))){tx(O,pe,a,q);break e}Ze&&Ze(e,R,y),e==="focusout"&&y&&R.type==="number"&&y.memoizedProps.value!=null&&ph(R,"number",R.value)}switch(Ze=y?et(y):window,e){case"focusin":if(ex(Ze)||Ze.contentEditable==="true")Pu=Ze,Hy=y,Ic=null;break;case"focusout":Ic=Hy=Pu=null;break;case"mousedown":Fy=!0;break;case"contextmenu":case"mouseup":case"dragend":Fy=!1,ix(O,a,q);break;case"selectionchange":if(sM)break;case"keydown":case"keyup":ix(O,a,q)}var qe;if(_y)e:{switch(e){case"compositionstart":var Re="onCompositionStart";break e;case"compositionend":Re="onCompositionEnd";break e;case"compositionupdate":Re="onCompositionUpdate";break e}Re=void 0}else Uu?Wb(e,a)&&(Re="onCompositionEnd"):e==="keydown"&&a.keyCode===lC&&(Re="onCompositionStart");if(Re&&(sC&&a.locale!=="ko"&&(Uu||Re!=="onCompositionStart"?Re==="onCompositionEnd"&&Uu&&(qe=Kb()):(bl=q,By=("value"in bl)?bl.value:bl.textContent,Uu=!0)),Ze=Kf(y,Re),0<Ze.length&&(Re=new rC(Re,e,null,a,q),O.push({event:Re,listeners:Ze}),qe?Re.data=qe:(qe=Jb(a),qe!==null&&(Re.data=qe)))),qe=nM?kT(e,a):IT(e,a))Re=Kf(y,"onBeforeInput"),0<Re.length&&(Ze=new GA("onBeforeInput","beforeinput",null,a,q),O.push({event:Ze,listeners:Re}),Ze.data=qe);bR(O,e,y,a,q)}z0(O,t)})}function uc(e,t,a){return{instance:e,listener:t,currentTarget:a}}function Kf(e,t){for(var a=t+"Capture",o=[];e!==null;){var r=e,n=r.stateNode;if(r=r.tag,r!==5&&r!==26&&r!==27||n===null||(r=Pi(e,a),r!=null&&o.unshift(uc(e,r,n)),r=Pi(e,t),r!=null&&o.push(uc(e,r,n))),e.tag===3)return o;e=e.return}return[]}function xR(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e?e:null}function P0(e,t,a,o,r){for(var n=t._reactName,u=[];a!==null&&a!==o;){var f=a,m=f.alternate,y=f.stateNode;if(f=f.tag,m!==null&&m===o)break;f!==5&&f!==26&&f!==27||y===null||(m=y,r?(y=Pi(a,n),y!=null&&u.unshift(uc(a,y,m))):r||(y=Pi(a,n),y!=null&&u.push(uc(a,y,m)))),a=a.return}u.length!==0&&e.push({event:t,listeners:u})}function Wg(e,t){ST(e,t),e!=="input"&&e!=="textarea"&&e!=="select"||t==null||t.value!==null||tC||(tC=!0,e==="select"&&t.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.",e):console.error("`value` prop on `%s` should not be null. Consider using an empty string to clear the component or `undefined` for uncontrolled components.",e));var a={registrationNameDependencies:Ls,possibleRegistrationNames:Dy};zi(e)||typeof t.is==="string"||CT(e,t,a),t.contentEditable&&!t.suppressContentEditableWarning&&t.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 za(e,t,a,o){t!==a&&(a=pl(a),pl(t)!==a&&(o[e]=t))}function SR(e,t,a){t.forEach(function(o){a[F0(o)]=o==="style"?ey(e):e.getAttribute(o)})}function $r(e,t){t===!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.",e,e,e):console.error("Expected `%s` listener to be a function, instead got a value of `%s` type.",e,typeof t)}function _0(e,t){return e=e.namespaceURI===mp||e.namespaceURI===Ou?e.ownerDocument.createElementNS(e.namespaceURI,e.tagName):e.ownerDocument.createElement(e.tagName),e.innerHTML=t,e.innerHTML}function pl(e){return $e(e)&&(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.",Ge(e)),Qe(e)),(typeof e==="string"?e:""+e).replace(qM,`
|
|
176
|
+
`).replace(OM,"")}function H0(e,t){return t=pl(t),pl(e)===t?!0:!1}function Vt(e,t,a,o,r,n){switch(a){case"children":if(typeof o==="string")tf(o,t,!1),t==="body"||t==="textarea"&&o===""||Bi(e,o);else if(typeof o==="number"||typeof o==="bigint")tf(""+o,t,!1),t!=="body"&&Bi(e,""+o);break;case"className":Wd(e,"class",o);break;case"tabIndex":Wd(e,"tabindex",o);break;case"dir":case"role":case"viewBox":case"width":case"height":Wd(e,a,o);break;case"style":Xb(e,o,n);break;case"data":if(t!=="object"){Wd(e,"data",o);break}case"src":case"href":if(o===""&&(t!=="a"||a!=="href")){a==="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.',a,a):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.',a,a),e.removeAttribute(a);break}if(o==null||typeof o==="function"||typeof o==="symbol"||typeof o==="boolean"){e.removeAttribute(a);break}Xe(o,a),o=Ui(""+o),e.setAttribute(a,o);break;case"action":case"formAction":if(o!=null&&(t==="form"?a==="formAction"?console.error("You can only pass the formAction prop to <input> or <button>. Use the action prop on <form>."):typeof o==="function"&&(r.encType==null&&r.method==null||am||(am=!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.")),r.target==null||tm||(tm=!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."))):t==="input"||t==="button"?a==="action"?console.error("You can only pass the action prop to <form>. Use the formAction prop on <input> or <button>."):t!=="input"||r.type==="submit"||r.type==="image"||em?t!=="button"||r.type==null||r.type==="submit"||em?typeof o==="function"&&(r.name==null||_w||(_w=!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.')),r.formEncType==null&&r.formMethod==null||am||(am=!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.")),r.formTarget==null||tm||(tm=!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."))):(em=!0,console.error('A button can only specify a formAction along with type="submit" or no type.')):(em=!0,console.error('An input can only specify a formAction along with type="submit" or type="image".')):a==="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 o==="function"){e.setAttribute(a,"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 n==="function"&&(a==="formAction"?(t!=="input"&&Vt(e,t,"name",r.name,r,null),Vt(e,t,"formEncType",r.formEncType,r,null),Vt(e,t,"formMethod",r.formMethod,r,null),Vt(e,t,"formTarget",r.formTarget,r,null)):(Vt(e,t,"encType",r.encType,r,null),Vt(e,t,"method",r.method,r,null),Vt(e,t,"target",r.target,r,null)));if(o==null||typeof o==="symbol"||typeof o==="boolean"){e.removeAttribute(a);break}Xe(o,a),o=Ui(""+o),e.setAttribute(a,o);break;case"onClick":o!=null&&(typeof o!=="function"&&$r(a,o),e.onclick=Cn);break;case"onScroll":o!=null&&(typeof o!=="function"&&$r(a,o),wt("scroll",e));break;case"onScrollEnd":o!=null&&(typeof o!=="function"&&$r(a,o),wt("scrollend",e));break;case"dangerouslySetInnerHTML":if(o!=null){if(typeof o!=="object"||!("__html"in o))throw Error("`props.dangerouslySetInnerHTML` must be in the form `{__html: ...}`. Please visit https://react.dev/link/dangerously-set-inner-html for more information.");if(a=o.__html,a!=null){if(r.children!=null)throw Error("Can only set one of `children` or `props.dangerouslySetInnerHTML`.");e.innerHTML=a}}break;case"multiple":e.multiple=o&&typeof o!=="function"&&typeof o!=="symbol";break;case"muted":e.muted=o&&typeof o!=="function"&&typeof o!=="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(o==null||typeof o==="function"||typeof o==="boolean"||typeof o==="symbol"){e.removeAttribute("xlink:href");break}Xe(o,a),a=Ui(""+o),e.setAttributeNS(Ps,"xlink:href",a);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":o!=null&&typeof o!=="function"&&typeof o!=="symbol"?(Xe(o,a),e.setAttribute(a,""+o)):e.removeAttribute(a);break;case"inert":o!==""||om[a]||(om[a]=!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.",a));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":o&&typeof o!=="function"&&typeof o!=="symbol"?e.setAttribute(a,""):e.removeAttribute(a);break;case"capture":case"download":o===!0?e.setAttribute(a,""):o!==!1&&o!=null&&typeof o!=="function"&&typeof o!=="symbol"?(Xe(o,a),e.setAttribute(a,o)):e.removeAttribute(a);break;case"cols":case"rows":case"size":case"span":o!=null&&typeof o!=="function"&&typeof o!=="symbol"&&!isNaN(o)&&1<=o?(Xe(o,a),e.setAttribute(a,o)):e.removeAttribute(a);break;case"rowSpan":case"start":o==null||typeof o==="function"||typeof o==="symbol"||isNaN(o)?e.removeAttribute(a):(Xe(o,a),e.setAttribute(a,o));break;case"popover":wt("beforetoggle",e),wt("toggle",e),Zd(e,"popover",o);break;case"xlinkActuate":Ln(e,Ps,"xlink:actuate",o);break;case"xlinkArcrole":Ln(e,Ps,"xlink:arcrole",o);break;case"xlinkRole":Ln(e,Ps,"xlink:role",o);break;case"xlinkShow":Ln(e,Ps,"xlink:show",o);break;case"xlinkTitle":Ln(e,Ps,"xlink:title",o);break;case"xlinkType":Ln(e,Ps,"xlink:type",o);break;case"xmlBase":Ln(e,Nv,"xml:base",o);break;case"xmlLang":Ln(e,Nv,"xml:lang",o);break;case"xmlSpace":Ln(e,Nv,"xml:space",o);break;case"is":n!=null&&console.error('Cannot update the "is" prop after it has been initialized.'),Zd(e,"is",o);break;case"innerText":case"textContent":break;case"popoverTarget":Hw||o==null||typeof o!=="object"||(Hw=!0,console.error("The `popoverTarget` prop expects the ID of an Element as a string. Received %s instead.",o));default:!(2<a.length)||a[0]!=="o"&&a[0]!=="O"||a[1]!=="n"&&a[1]!=="N"?(a=Yb(a),Zd(e,a,o)):Ls.hasOwnProperty(a)&&o!=null&&typeof o!=="function"&&$r(a,o)}}function Jg(e,t,a,o,r,n){switch(a){case"style":Xb(e,o,n);break;case"dangerouslySetInnerHTML":if(o!=null){if(typeof o!=="object"||!("__html"in o))throw Error("`props.dangerouslySetInnerHTML` must be in the form `{__html: ...}`. Please visit https://react.dev/link/dangerously-set-inner-html for more information.");if(a=o.__html,a!=null){if(r.children!=null)throw Error("Can only set one of `children` or `props.dangerouslySetInnerHTML`.");e.innerHTML=a}}break;case"children":typeof o==="string"?Bi(e,o):(typeof o==="number"||typeof o==="bigint")&&Bi(e,""+o);break;case"onScroll":o!=null&&(typeof o!=="function"&&$r(a,o),wt("scroll",e));break;case"onScrollEnd":o!=null&&(typeof o!=="function"&&$r(a,o),wt("scrollend",e));break;case"onClick":o!=null&&(typeof o!=="function"&&$r(a,o),e.onclick=Cn);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(Ls.hasOwnProperty(a))o!=null&&typeof o!=="function"&&$r(a,o);else e:{if(a[0]==="o"&&a[1]==="n"&&(r=a.endsWith("Capture"),t=a.slice(2,r?a.length-7:void 0),n=e[so]||null,n=n!=null?n[a]:null,typeof n==="function"&&e.removeEventListener(t,n,r),typeof o==="function")){typeof n!=="function"&&n!==null&&(a in e?e[a]=null:e.hasAttribute(a)&&e.removeAttribute(a)),e.addEventListener(t,o,r);break e}a in e?e[a]=o:o===!0?e.setAttribute(a,""):Zd(e,a,o)}}}function $a(e,t,a){switch(Wg(t,a),t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":wt("error",e),wt("load",e);var o=!1,r=!1,n;for(n in a)if(a.hasOwnProperty(n)){var u=a[n];if(u!=null)switch(n){case"src":o=!0;break;case"srcSet":r=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(t+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");default:Vt(e,t,n,u,a,null)}}r&&Vt(e,t,"srcSet",a.srcSet,a,null),o&&Vt(e,t,"src",a.src,a,null);return;case"input":al("input",a),wt("invalid",e);var f=n=u=r=null,m=null,y=null;for(o in a)if(a.hasOwnProperty(o)){var q=a[o];if(q!=null)switch(o){case"name":r=q;break;case"type":u=q;break;case"checked":m=q;break;case"defaultChecked":y=q;break;case"value":n=q;break;case"defaultValue":f=q;break;case"children":case"dangerouslySetInnerHTML":if(q!=null)throw Error(t+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");break;default:Vt(e,t,o,q,a,null)}}Mb(e,a),Db(e,n,f,m,y,u,r,!1);return;case"select":al("select",a),wt("invalid",e),o=u=n=null;for(r in a)if(a.hasOwnProperty(r)&&(f=a[r],f!=null))switch(r){case"value":n=f;break;case"defaultValue":u=f;break;case"multiple":o=f;default:Vt(e,t,r,f,a,null)}Ob(e,a),t=n,a=u,e.multiple=!!o,t!=null?du(e,!!o,t,!1):a!=null&&du(e,!!o,a,!0);return;case"textarea":al("textarea",a),wt("invalid",e),n=r=o=null;for(u in a)if(a.hasOwnProperty(u)&&(f=a[u],f!=null))switch(u){case"value":o=f;break;case"defaultValue":r=f;break;case"children":n=f;break;case"dangerouslySetInnerHTML":if(f!=null)throw Error("`dangerouslySetInnerHTML` does not make sense on <textarea>.");break;default:Vt(e,t,u,f,a,null)}Nb(e,a),zb(e,o,r,n);return;case"option":Eb(e,a);for(m in a)if(a.hasOwnProperty(m)&&(o=a[m],o!=null))switch(m){case"selected":e.selected=o&&typeof o!=="function"&&typeof o!=="symbol";break;default:Vt(e,t,m,o,a,null)}return;case"dialog":wt("beforetoggle",e),wt("toggle",e),wt("cancel",e),wt("close",e);break;case"iframe":case"object":wt("load",e);break;case"video":case"audio":for(o=0;o<ad.length;o++)wt(ad[o],e);break;case"image":wt("error",e),wt("load",e);break;case"details":wt("toggle",e);break;case"embed":case"source":case"link":wt("error",e),wt("load",e);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(y in a)if(a.hasOwnProperty(y)&&(o=a[y],o!=null))switch(y){case"children":case"dangerouslySetInnerHTML":throw Error(t+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");default:Vt(e,t,y,o,a,null)}return;default:if(zi(t)){for(q in a)a.hasOwnProperty(q)&&(o=a[q],o!==void 0&&Jg(e,t,q,o,a,void 0));return}}for(f in a)a.hasOwnProperty(f)&&(o=a[f],o!=null&&Vt(e,t,f,o,a,null))}function LR(e,t,a,o){switch(Wg(t,o),t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var r=null,n=null,u=null,f=null,m=null,y=null,q=null;for(_ in a){var O=a[_];if(a.hasOwnProperty(_)&&O!=null)switch(_){case"checked":break;case"value":break;case"defaultValue":m=O;default:o.hasOwnProperty(_)||Vt(e,t,_,null,o,O)}}for(var R in o){var _=o[R];if(O=a[R],o.hasOwnProperty(R)&&(_!=null||O!=null))switch(R){case"type":n=_;break;case"name":r=_;break;case"checked":y=_;break;case"defaultChecked":q=_;break;case"value":u=_;break;case"defaultValue":f=_;break;case"children":case"dangerouslySetInnerHTML":if(_!=null)throw Error(t+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");break;default:_!==O&&Vt(e,t,R,_,o,O)}}t=a.type==="checkbox"||a.type==="radio"?a.checked!=null:a.value!=null,o=o.type==="checkbox"||o.type==="radio"?o.checked!=null:o.value!=null,t||!o||Pw||(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"),Pw=!0),!t||o||Uw||(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"),Uw=!0),fh(e,u,f,m,y,q,n,r);return;case"select":_=u=f=R=null;for(n in a)if(m=a[n],a.hasOwnProperty(n)&&m!=null)switch(n){case"value":break;case"multiple":_=m;default:o.hasOwnProperty(n)||Vt(e,t,n,null,o,m)}for(r in o)if(n=o[r],m=a[r],o.hasOwnProperty(r)&&(n!=null||m!=null))switch(r){case"value":R=n;break;case"defaultValue":f=n;break;case"multiple":u=n;default:n!==m&&Vt(e,t,r,n,o,m)}o=f,t=u,a=_,R!=null?du(e,!!t,R,!1):!!a!==!!t&&(o!=null?du(e,!!t,o,!0):du(e,!!t,t?[]:"",!1));return;case"textarea":_=R=null;for(f in a)if(r=a[f],a.hasOwnProperty(f)&&r!=null&&!o.hasOwnProperty(f))switch(f){case"value":break;case"children":break;default:Vt(e,t,f,null,o,r)}for(u in o)if(r=o[u],n=a[u],o.hasOwnProperty(u)&&(r!=null||n!=null))switch(u){case"value":R=r;break;case"defaultValue":_=r;break;case"children":break;case"dangerouslySetInnerHTML":if(r!=null)throw Error("`dangerouslySetInnerHTML` does not make sense on <textarea>.");break;default:r!==n&&Vt(e,t,u,r,o,n)}Bb(e,R,_);return;case"option":for(var ce in a)if(R=a[ce],a.hasOwnProperty(ce)&&R!=null&&!o.hasOwnProperty(ce))switch(ce){case"selected":e.selected=!1;break;default:Vt(e,t,ce,null,o,R)}for(m in o)if(R=o[m],_=a[m],o.hasOwnProperty(m)&&R!==_&&(R!=null||_!=null))switch(m){case"selected":e.selected=R&&typeof R!=="function"&&typeof R!=="symbol";break;default:Vt(e,t,m,R,o,_)}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 ge in a)R=a[ge],a.hasOwnProperty(ge)&&R!=null&&!o.hasOwnProperty(ge)&&Vt(e,t,ge,null,o,R);for(y in o)if(R=o[y],_=a[y],o.hasOwnProperty(y)&&R!==_&&(R!=null||_!=null))switch(y){case"children":case"dangerouslySetInnerHTML":if(R!=null)throw Error(t+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");break;default:Vt(e,t,y,R,o,_)}return;default:if(zi(t)){for(var Qt in a)R=a[Qt],a.hasOwnProperty(Qt)&&R!==void 0&&!o.hasOwnProperty(Qt)&&Jg(e,t,Qt,void 0,o,R);for(q in o)R=o[q],_=a[q],!o.hasOwnProperty(q)||R===_||R===void 0&&_===void 0||Jg(e,t,q,R,o,_);return}}for(var kt in a)R=a[kt],a.hasOwnProperty(kt)&&R!=null&&!o.hasOwnProperty(kt)&&Vt(e,t,kt,null,o,R);for(O in o)R=o[O],_=a[O],!o.hasOwnProperty(O)||R===_||R==null&&_==null||Vt(e,t,O,R,o,_)}function F0(e){switch(e){case"class":return"className";case"for":return"htmlFor";default:return e}}function ey(e){var t={};e=e.style;for(var a=0;a<e.length;a++){var o=e[a];t[o]=e.getPropertyValue(o)}return t}function G0(e,t,a){if(t!=null&&typeof t!=="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 o,r=o="",n;for(n in t)if(t.hasOwnProperty(n)){var u=t[n];u!=null&&typeof u!=="boolean"&&u!==""&&(n.indexOf("--")===0?(yt(u,n),o+=r+n+":"+(""+u).trim()):typeof u!=="number"||u===0||JL.has(n)?(yt(u,n),o+=r+n.replace($L,"-$1").toLowerCase().replace(QL,"-ms-")+":"+(""+u).trim()):o+=r+n.replace($L,"-$1").toLowerCase().replace(QL,"-ms-")+":"+u+"px",r=";")}o=o||null,t=e.getAttribute("style"),t!==o&&(o=pl(o),pl(t)!==o&&(a.style=ey(e)))}}function Yo(e,t,a,o,r,n){if(r.delete(a),e=e.getAttribute(a),e===null)switch(typeof o){case"undefined":case"function":case"symbol":case"boolean":return}else if(o!=null)switch(typeof o){case"function":case"symbol":case"boolean":break;default:if(Xe(o,t),e===""+o)return}za(t,e,o,n)}function V0(e,t,a,o,r,n){if(r.delete(a),e=e.getAttribute(a),e===null){switch(typeof o){case"function":case"symbol":return}if(!o)return}else switch(typeof o){case"function":case"symbol":break;default:if(o)return}za(t,e,o,n)}function ty(e,t,a,o,r,n){if(r.delete(a),e=e.getAttribute(a),e===null)switch(typeof o){case"undefined":case"function":case"symbol":return}else if(o!=null)switch(typeof o){case"function":case"symbol":break;default:if(Xe(o,a),e===""+o)return}za(t,e,o,n)}function j0(e,t,a,o,r,n){if(r.delete(a),e=e.getAttribute(a),e===null)switch(typeof o){case"undefined":case"function":case"symbol":case"boolean":return;default:if(isNaN(o))return}else if(o!=null)switch(typeof o){case"function":case"symbol":case"boolean":break;default:if(!isNaN(o)&&(Xe(o,t),e===""+o))return}za(t,e,o,n)}function ay(e,t,a,o,r,n){if(r.delete(a),e=e.getAttribute(a),e===null)switch(typeof o){case"undefined":case"function":case"symbol":case"boolean":return}else if(o!=null)switch(typeof o){case"function":case"symbol":case"boolean":break;default:if(Xe(o,t),a=Ui(""+o),e===a)return}za(t,e,o,n)}function X0(e,t,a,o){for(var r={},n=new Set,u=e.attributes,f=0;f<u.length;f++)switch(u[f].name.toLowerCase()){case"value":break;case"checked":break;case"selected":break;default:n.add(u[f].name)}if(zi(t)){for(var m in a)if(a.hasOwnProperty(m)){var y=a[m];if(y!=null){if(Ls.hasOwnProperty(m))typeof y!=="function"&&$r(m,y);else if(a.suppressHydrationWarning!==!0)switch(m){case"children":typeof y!=="string"&&typeof y!=="number"||za("children",e.textContent,y,r);continue;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":continue;case"dangerouslySetInnerHTML":u=e.innerHTML,y=y?y.__html:void 0,y!=null&&(y=_0(e,y),za(m,u,y,r));continue;case"style":n.delete(m),G0(e,y,r);continue;case"offsetParent":case"offsetTop":case"offsetLeft":case"offsetWidth":case"offsetHeight":case"isContentEditable":case"outerText":case"outerHTML":n.delete(m.toLowerCase()),console.error("Assignment to read-only property will result in a no-op: `%s`",m);continue;case"className":n.delete("class"),u=Tb(e,"class",y),za("className",u,y,r);continue;default:o.context===jn&&t!=="svg"&&t!=="math"?n.delete(m.toLowerCase()):n.delete(m),u=Tb(e,m,y),za(m,u,y,r)}}}}else for(y in a)if(a.hasOwnProperty(y)&&(m=a[y],m!=null)){if(Ls.hasOwnProperty(y))typeof m!=="function"&&$r(y,m);else if(a.suppressHydrationWarning!==!0)switch(y){case"children":typeof m!=="string"&&typeof m!=="number"||za("children",e.textContent,m,r);continue;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"value":case"checked":case"selected":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":continue;case"dangerouslySetInnerHTML":u=e.innerHTML,m=m?m.__html:void 0,m!=null&&(m=_0(e,m),u!==m&&(r[y]={__html:u}));continue;case"className":Yo(e,y,"class",m,n,r);continue;case"tabIndex":Yo(e,y,"tabindex",m,n,r);continue;case"style":n.delete(y),G0(e,m,r);continue;case"multiple":n.delete(y),za(y,e.multiple,m,r);continue;case"muted":n.delete(y),za(y,e.muted,m,r);continue;case"autoFocus":n.delete("autofocus"),za(y,e.autofocus,m,r);continue;case"data":if(t!=="object"){n.delete(y),u=e.getAttribute("data"),za(y,u,m,r);continue}case"src":case"href":if(!(m!==""||t==="a"&&y==="href"||t==="object"&&y==="data")){y==="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.',y,y):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.',y,y);continue}ay(e,y,y,m,n,r);continue;case"action":case"formAction":if(u=e.getAttribute(y),typeof m==="function"){n.delete(y.toLowerCase()),y==="formAction"?(n.delete("name"),n.delete("formenctype"),n.delete("formmethod"),n.delete("formtarget")):(n.delete("enctype"),n.delete("method"),n.delete("target"));continue}else if(u===NM){n.delete(y.toLowerCase()),za(y,"function",m,r);continue}ay(e,y,y.toLowerCase(),m,n,r);continue;case"xlinkHref":ay(e,y,"xlink:href",m,n,r);continue;case"contentEditable":ty(e,y,"contenteditable",m,n,r);continue;case"spellCheck":ty(e,y,"spellcheck",m,n,r);continue;case"draggable":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":ty(e,y,y,m,n,r);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":V0(e,y,y.toLowerCase(),m,n,r);continue;case"capture":case"download":e:{f=e;var q=u=y,O=r;if(n.delete(q),f=f.getAttribute(q),f===null)switch(typeof m){case"undefined":case"function":case"symbol":break e;default:if(m===!1)break e}else if(m!=null)switch(typeof m){case"function":case"symbol":break;case"boolean":if(m===!0&&f==="")break e;break;default:if(Xe(m,u),f===""+m)break e}za(u,f,m,O)}continue;case"cols":case"rows":case"size":case"span":e:{if(f=e,q=u=y,O=r,n.delete(q),f=f.getAttribute(q),f===null)switch(typeof m){case"undefined":case"function":case"symbol":case"boolean":break e;default:if(isNaN(m)||1>m)break e}else if(m!=null)switch(typeof m){case"function":case"symbol":case"boolean":break;default:if(!(isNaN(m)||1>m)&&(Xe(m,u),f===""+m))break e}za(u,f,m,O)}continue;case"rowSpan":j0(e,y,"rowspan",m,n,r);continue;case"start":j0(e,y,y,m,n,r);continue;case"xHeight":Yo(e,y,"x-height",m,n,r);continue;case"xlinkActuate":Yo(e,y,"xlink:actuate",m,n,r);continue;case"xlinkArcrole":Yo(e,y,"xlink:arcrole",m,n,r);continue;case"xlinkRole":Yo(e,y,"xlink:role",m,n,r);continue;case"xlinkShow":Yo(e,y,"xlink:show",m,n,r);continue;case"xlinkTitle":Yo(e,y,"xlink:title",m,n,r);continue;case"xlinkType":Yo(e,y,"xlink:type",m,n,r);continue;case"xmlBase":Yo(e,y,"xml:base",m,n,r);continue;case"xmlLang":Yo(e,y,"xml:lang",m,n,r);continue;case"xmlSpace":Yo(e,y,"xml:space",m,n,r);continue;case"inert":m!==""||om[y]||(om[y]=!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.",y)),V0(e,y,y,m,n,r);continue;default:if(!(2<y.length)||y[0]!=="o"&&y[0]!=="O"||y[1]!=="n"&&y[1]!=="N"){f=Yb(y),u=!1,o.context===jn&&t!=="svg"&&t!=="math"?n.delete(f.toLowerCase()):(q=y.toLowerCase(),q=hp.hasOwnProperty(q)?hp[q]||null:null,q!==null&&q!==y&&(u=!0,n.delete(q)),n.delete(f));e:if(q=e,O=f,f=m,qi(O))if(q.hasAttribute(O))q=q.getAttribute(O),Xe(f,O),f=q===""+f?f:q;else{switch(typeof f){case"function":case"symbol":break e;case"boolean":if(q=O.toLowerCase().slice(0,5),q!=="data-"&&q!=="aria-")break e}f=f===void 0?void 0:null}else f=void 0;u||za(y,f,m,r)}}}return 0<n.size&&a.suppressHydrationWarning!==!0&&SR(e,n,r),Object.keys(r).length===0?null:r}function CR(e,t){switch(e.length){case 0:return"";case 1:return e[0];case 2:return e[0]+" "+t+" "+e[1];default:return e.slice(0,-1).join(", ")+", "+t+" "+e[e.length-1]}}function Y0(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function wR(){if(typeof performance.getEntriesByType==="function"){for(var e=0,t=0,a=performance.getEntriesByType("resource"),o=0;o<a.length;o++){var r=a[o],{transferSize:n,initiatorType:u,duration:f}=r;if(n&&f&&Y0(u)){u=0,f=r.responseEnd;for(o+=1;o<a.length;o++){var m=a[o],y=m.startTime;if(y>f)break;var q=m.transferSize,O=m.initiatorType;q&&Y0(O)&&(m=m.responseEnd,u+=q*(m<f?1:(f-y)/(m-y)))}if(--o,t+=8*(n+u)/(r.duration/1000),e++,10<e)break}}if(0<e)return t/e/1e6}return navigator.connection&&(e=navigator.connection.downlink,typeof e==="number")?e:5}function Zf(e){return e.nodeType===9?e:e.ownerDocument}function $0(e){switch(e){case Ou:return ci;case mp:return nm;default:return jn}}function Q0(e,t){if(e===jn)switch(t){case"svg":return ci;case"math":return nm;default:return jn}return e===ci&&t==="foreignObject"?jn:e}function oy(e,t){return e==="textarea"||e==="noscript"||typeof t.children==="string"||typeof t.children==="number"||typeof t.children==="bigint"||typeof t.dangerouslySetInnerHTML==="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}function kR(){var e=window.event;if(e&&e.type==="popstate"){if(e===Pv)return!1;return Pv=e,!0}return Pv=null,!1}function ic(){var e=window.event;return e&&e!==nd?e.type:null}function cc(){var e=window.event;return e&&e!==nd?e.timeStamp:-1.1}function IR(e){setTimeout(function(){throw e})}function TR(e,t,a){switch(t){case"button":case"input":case"select":case"textarea":a.autoFocus&&e.focus();break;case"img":a.src?e.src=a.src:a.srcSet&&(e.srcset=a.srcSet)}}function RR(){}function AR(e,t,a,o){LR(e,t,a,o),e[so]=o}function K0(e){Bi(e,"")}function MR(e,t,a){e.nodeValue=a}function Z0(e){if(!e.__reactWarnedAboutChildrenConflict){var t=e[so]||null;if(t!==null){var a=Je(e);a!==null&&(typeof t.children==="string"||typeof t.children==="number"?(e.__reactWarnedAboutChildrenConflict=!0,Y(a,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.')})):t.dangerouslySetInnerHTML!=null&&(e.__reactWarnedAboutChildrenConflict=!0,Y(a,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 ml(e){return e==="head"}function DR(e,t){e.removeChild(t)}function ER(e,t){(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e).removeChild(t)}function W0(e,t){var a=t,o=0;do{var r=a.nextSibling;if(e.removeChild(a),r&&r.nodeType===8)if(a=r.data,a===rd||a===rm){if(o===0){e.removeChild(r),Ru(t);return}o--}else if(a===od||a===Ul||a===Hs||a===ii||a===_s)o++;else if(a===zM)dc(e.ownerDocument.documentElement);else if(a===PM){a=e.ownerDocument.head,dc(a);for(var n=a.firstChild;n;){var u=n.nextSibling,f=n.nodeName;n[vc]||f==="SCRIPT"||f==="STYLE"||f==="LINK"&&n.rel.toLowerCase()==="stylesheet"||a.removeChild(n),n=u}}else a===UM&&dc(e.ownerDocument.body);a=r}while(a);Ru(t)}function J0(e,t){var a=e;e=0;do{var o=a.nextSibling;if(a.nodeType===1?t?(a._stashedDisplay=a.style.display,a.style.display="none"):(a.style.display=a._stashedDisplay||"",a.getAttribute("style")===""&&a.removeAttribute("style")):a.nodeType===3&&(t?(a._stashedText=a.nodeValue,a.nodeValue=""):a.nodeValue=a._stashedText||""),o&&o.nodeType===8)if(a=o.data,a===rd)if(e===0)break;else e--;else a!==od&&a!==Ul&&a!==Hs&&a!==ii||e++;a=o}while(a)}function qR(e){J0(e,!0)}function OR(e){e=e.style,typeof e.setProperty==="function"?e.setProperty("display","none","important"):e.display="none"}function NR(e){e.nodeValue=""}function BR(e){J0(e,!1)}function zR(e,t){t=t[_M],t=t!==void 0&&t!==null&&t.hasOwnProperty("display")?t.display:null,e.style.display=t==null||typeof t==="boolean"?"":(""+t).trim()}function UR(e,t){e.nodeValue=t}function ry(e){var t=e.firstChild;t&&t.nodeType===10&&(t=t.nextSibling);for(;t;){var a=t;switch(t=t.nextSibling,a.nodeName){case"HTML":case"HEAD":case"BODY":ry(a),fe(a);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(a.rel.toLowerCase()==="stylesheet")continue}e.removeChild(a)}}function PR(e,t,a,o){for(;e.nodeType===1;){var r=a;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!o&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(!o)if(t==="input"&&e.type==="hidden"){Xe(r.name,"name");var n=r.name==null?null:""+r.name;if(r.type==="hidden"&&e.getAttribute("name")===n)return e}else return e;else if(!e[vc])switch(t){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if(n=e.getAttribute("rel"),n==="stylesheet"&&e.hasAttribute("data-precedence"))break;else if(n!==r.rel||e.getAttribute("href")!==(r.href==null||r.href===""?null:r.href)||e.getAttribute("crossorigin")!==(r.crossOrigin==null?null:r.crossOrigin)||e.getAttribute("title")!==(r.title==null?null:r.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(n=e.getAttribute("src"),(n!==(r.src==null?null:r.src)||e.getAttribute("type")!==(r.type==null?null:r.type)||e.getAttribute("crossorigin")!==(r.crossOrigin==null?null:r.crossOrigin))&&n&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}if(e=Oo(e.nextSibling),e===null)break}return null}function _R(e,t,a){if(t==="")return null;for(;e.nodeType!==3;){if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!a)return null;if(e=Oo(e.nextSibling),e===null)return null}return e}function eL(e,t){for(;e.nodeType!==8;){if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!t)return null;if(e=Oo(e.nextSibling),e===null)return null}return e}function ny(e){return e.data===Ul||e.data===Hs}function ly(e){return e.data===ii||e.data===Ul&&e.ownerDocument.readyState!==Gw}function HR(e,t){var a=e.ownerDocument;if(e.data===Hs)e._reactRetry=t;else if(e.data!==Ul||a.readyState!==Gw)t();else{var o=function(){t(),a.removeEventListener("DOMContentLoaded",o)};a.addEventListener("DOMContentLoaded",o),e._reactRetry=o}}function Oo(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t===od||t===ii||t===Ul||t===Hs||t===_s||t===Bv||t===Fw)break;if(t===rd||t===rm)return null}}return e}function tL(e){if(e.nodeType===1){for(var t=e.nodeName.toLowerCase(),a={},o=e.attributes,r=0;r<o.length;r++){var n=o[r];a[F0(n.name)]=n.name.toLowerCase()==="style"?ey(e):n.value}return{type:t,props:a}}return e.nodeType===8?e.data===_s?{type:"Activity",props:{}}:{type:"Suspense",props:{}}:e.nodeValue}function aL(e,t,a){return a===null||a[BM]!==!0?(e.nodeValue===t?e=null:(t=pl(t),e=pl(e.nodeValue)===t?null:e.nodeValue),e):null}function sy(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var a=e.data;if(a===rd||a===rm){if(t===0)return Oo(e.nextSibling);t--}else a!==od&&a!==ii&&a!==Ul&&a!==Hs&&a!==_s||t++}e=e.nextSibling}return null}function oL(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var a=e.data;if(a===od||a===ii||a===Ul||a===Hs||a===_s){if(t===0)return e;t--}else a!==rd&&a!==rm||t++}e=e.previousSibling}return null}function FR(e){Ru(e)}function GR(e){Ru(e)}function VR(e){Ru(e)}function rL(e,t,a,o,r){switch(r&&vh(e,o.ancestorInfo),t=Zf(a),e){case"html":if(e=t.documentElement,!e)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 e;case"head":if(e=t.head,!e)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 e;case"body":if(e=t.body,!e)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 e;default:throw Error("resolveSingletonInstance was called with an element type that is not supported. This is a bug in React.")}}function jR(e,t,a,o){if(!a[vl]&&Je(a)){var r=a.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.",r,r,r)}switch(e){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(r=a.attributes;r.length;)a.removeAttributeNode(r[0]);$a(a,e,t),a[Qa]=o,a[so]=t}function dc(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);fe(e)}function Wf(e){return typeof e.getRootNode==="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}function nL(e,t,a){var o=di;if(o&&typeof t==="string"&&t){var r=Xo(t);r='link[rel="'+e+'"][href="'+r+'"]',typeof a==="string"&&(r+='[crossorigin="'+a+'"]'),Qw.has(r)||(Qw.add(r),e={rel:e,crossOrigin:a,href:t},o.querySelector(r)===null&&(t=o.createElement("link"),$a(t,"link",e),Oe(t),o.head.appendChild(t)))}}function lL(e,t,a,o){var r=(r=gl.current)?Wf(r):null;if(!r)throw Error('"resourceRoot" was expected to exist. This is a bug in React.');switch(e){case"meta":case"title":return null;case"style":return typeof a.precedence==="string"&&typeof a.href==="string"?(a=Iu(a.href),t=Tt(r).hoistableStyles,o=t.get(a),o||(o={type:"style",instance:null,count:0,state:null},t.set(a,o)),o):{type:"void",instance:null,count:0,state:null};case"link":if(a.rel==="stylesheet"&&typeof a.href==="string"&&typeof a.precedence==="string"){e=Iu(a.href);var n=Tt(r).hoistableStyles,u=n.get(e);if(!u&&(r=r.ownerDocument||r,u={type:"stylesheet",instance:null,count:0,state:{loading:Gs,preload:null}},n.set(e,u),(n=r.querySelector(fc(e)))&&!n._p&&(u.instance=n,u.state.loading=ld|rr),!nr.has(e))){var f={rel:"preload",as:"style",href:a.href,crossOrigin:a.crossOrigin,integrity:a.integrity,media:a.media,hrefLang:a.hrefLang,referrerPolicy:a.referrerPolicy};nr.set(e,f),n||XR(r,e,f,u.state)}if(t&&o===null)throw a=`
|
|
177
177
|
|
|
178
|
-
- `+
|
|
179
|
-
+ `+
|
|
178
|
+
- `+Jf(t)+`
|
|
179
|
+
+ `+Jf(a),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."+a);return u}if(t&&o!==null)throw a=`
|
|
180
180
|
|
|
181
|
-
- `+
|
|
182
|
-
+ `+Wf(a),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."+a);return null;case"script":return t=a.async,a=a.src,typeof a==="string"&&t&&typeof t!=="function"&&typeof t!=="symbol"?(a=Iu(a),t=It(n).hoistableScripts,o=t.get(a),o||(o={type:"script",instance:null,count:0,state:null},t.set(a,o)),o):{type:"void",instance:null,count:0,state:null};default:throw Error('getResource encountered a type it did not expect: "'+e+'". this is a bug in React.')}}function Wf(e){var t=0,a="<link";return typeof e.rel==="string"?(t++,a+=' rel="'+e.rel+'"'):mn.call(e,"rel")&&(t++,a+=' rel="'+(e.rel===null?"null":"invalid type "+typeof e.rel)+'"'),typeof e.href==="string"?(t++,a+=' href="'+e.href+'"'):mn.call(e,"href")&&(t++,a+=' href="'+(e.href===null?"null":"invalid type "+typeof e.href)+'"'),typeof e.precedence==="string"?(t++,a+=' precedence="'+e.precedence+'"'):mn.call(e,"precedence")&&(t++,a+=" precedence={"+(e.precedence===null?"null":"invalid type "+typeof e.precedence)+"}"),Object.getOwnPropertyNames(e).length>t&&(a+=" ..."),a+" />"}function Tu(e){return'href="'+Xo(e)+'"'}function dc(e){return'link[rel="stylesheet"]['+e+"]"}function JS(e){return pt({},e,{"data-precedence":e.precedence,precedence:null})}function BR(e,t,a,o){e.querySelector('link[rel="preload"][as="style"]['+t+"]")?o.loading=rd:(t=e.createElement("link"),o.preload=t,t.addEventListener("load",function(){return o.loading|=rd}),t.addEventListener("error",function(){return o.loading|=Pw}),$a(t,"link",a),qe(t),e.head.appendChild(t))}function Iu(e){return'[src="'+Xo(e)+'"]'}function fc(e){return"script[async]"+e}function eL(e,t,a){if(t.count++,t.instance===null)switch(t.type){case"style":var o=e.querySelector('style[data-href~="'+Xo(a.href)+'"]');if(o)return t.instance=o,qe(o),o;var n=pt({},a,{"data-href":a.href,"data-precedence":a.precedence,href:null,precedence:null});return o=(e.ownerDocument||e).createElement("style"),qe(o),$a(o,"style",n),Jf(o,a.precedence,e),t.instance=o;case"stylesheet":n=Tu(a.href);var r=e.querySelector(dc(n));if(r)return t.state.loading|=nn,t.instance=r,qe(r),r;o=JS(a),(n=rn.get(n))&&oy(o,n),r=(e.ownerDocument||e).createElement("link"),qe(r);var u=r;return u._p=new Promise(function(f,m){u.onload=f,u.onerror=m}),$a(r,"link",o),t.state.loading|=nn,Jf(r,a.precedence,e),t.instance=r;case"script":if(r=Iu(a.src),n=e.querySelector(fc(r)))return t.instance=n,qe(n),n;if(o=a,n=rn.get(r))o=pt({},a),ny(o,n);return e=e.ownerDocument||e,n=e.createElement("script"),qe(n),$a(n,"link",o),e.head.appendChild(n),t.instance=n;case"void":return null;default:throw Error('acquireResource encountered a resource type it did not expect: "'+t.type+'". this is a bug in React.')}else t.type==="stylesheet"&&(t.state.loading&nn)===Gs&&(o=t.instance,t.state.loading|=nn,Jf(o,a.precedence,e));return t.instance}function Jf(e,t,a){for(var o=a.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),n=o.length?o[o.length-1]:null,r=n,u=0;u<o.length;u++){var f=o[u];if(f.dataset.precedence===t)r=f;else if(r!==n)break}r?r.parentNode.insertBefore(e,r.nextSibling):(t=a.nodeType===9?a.head:a,t.insertBefore(e,t.firstChild))}function oy(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.title==null&&(e.title=t.title)}function ny(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.integrity==null&&(e.integrity=t.integrity)}function tL(e,t,a){if(rm===null){var o=new Map,n=rm=new Map;n.set(a,o)}else n=rm,o=n.get(a),o||(o=new Map,n.set(a,o));if(o.has(e))return o;o.set(e,null),a=a.getElementsByTagName(e);for(n=0;n<a.length;n++){var r=a[n];if(!(r[yc]||r[Qa]||e==="link"&&r.getAttribute("rel")==="stylesheet")&&r.namespaceURI!==qu){var u=r.getAttribute(t)||"";u=e+u;var f=o.get(u);f?f.push(r):o.set(u,[r])}}return o}function aL(e,t,a){e=e.ownerDocument||e,e.head.insertBefore(a,t==="title"?e.querySelector("head > title"):null)}function zR(e,t,a){var o=!a.ancestorInfo.containerTagInScope;if(a.context===ci||t.itemProp!=null)return!o||t.itemProp==null||e!=="meta"&&e!=="title"&&e!=="style"&&e!=="link"&&e!=="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.",e,e),!1;switch(e){case"meta":case"title":return!0;case"style":if(typeof t.precedence!=="string"||typeof t.href!=="string"||t.href===""){o&&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 t.rel!=="string"||typeof t.href!=="string"||t.href===""||t.onLoad||t.onError){if(t.rel==="stylesheet"&&typeof t.precedence==="string"){e=t.href;var n=t.onError,r=t.disabled;a=[],t.onLoad&&a.push("`onLoad`"),n&&a.push("`onError`"),r!=null&&a.push("`disabled`"),n=pR(a,"and"),n+=a.length===1?" prop":" props",r=a.length===1?"an "+n:"the "+n,a.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.',e,r,n)}o&&(typeof t.rel!=="string"||typeof t.href!=="string"||t.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"):(t.onError||t.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(t.rel){case"stylesheet":return e=t.precedence,t=t.disabled,typeof e!=="string"&&o&&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 e==="string"&&t==null;default:return!0}case"script":if(e=t.async&&typeof t.async!=="function"&&typeof t.async!=="symbol",!e||t.onLoad||t.onError||!t.src||typeof t.src!=="string"){o&&(e?t.onLoad||t.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":o&&console.error("Cannot render <%s> outside the main document. Try moving it into the root <head> tag.",e)}return!1}function oL(e){return e.type==="stylesheet"&&(e.state.loading&_w)===Gs?!1:!0}function UR(e,t,a,o){if(a.type==="stylesheet"&&(typeof o.media!=="string"||matchMedia(o.media).matches!==!1)&&(a.state.loading&nn)===Gs){if(a.instance===null){var n=Tu(o.href),r=t.querySelector(dc(n));if(r){t=r._p,t!==null&&typeof t==="object"&&typeof t.then==="function"&&(e.count++,e=ep.bind(e),t.then(e,e)),a.state.loading|=nn,a.instance=r,qe(r);return}r=t.ownerDocument||t,o=JS(o),(n=rn.get(n))&&oy(o,n),r=r.createElement("link"),qe(r);var u=r;u._p=new Promise(function(f,m){u.onload=f,u.onerror=m}),$a(r,"link",o),a.instance=r}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(a,t),(t=a.state.preload)&&(a.state.loading&_w)===Gs&&(e.count++,a=ep.bind(e),t.addEventListener("load",a),t.addEventListener("error",a))}}function PR(e,t){return e.stylesheets&&e.count===0&&tp(e,e.stylesheets),0<e.count||0<e.imgCount?function(a){var o=setTimeout(function(){if(e.stylesheets&&tp(e,e.stylesheets),e.unsuspend){var r=e.unsuspend;e.unsuspend=null,r()}},OM+t);0<e.imgBytes&&Bv===0&&(Bv=125*mR()*NM);var n=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&tp(e,e.stylesheets),e.unsuspend)){var r=e.unsuspend;e.unsuspend=null,r()}},(e.imgBytes>Bv?50:qM)+t);return e.unsuspend=a,function(){e.unsuspend=null,clearTimeout(o),clearTimeout(n)}}:null}function ep(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)tp(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}function tp(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,lm=new Map,t.forEach(_R,e),lm=null,ep.call(e))}function _R(e,t){if(!(t.state.loading&nn)){var a=lm.get(e);if(a)var o=a.get(zv);else{a=new Map,lm.set(e,a);for(var n=e.querySelectorAll("link[data-precedence],style[data-precedence]"),r=0;r<n.length;r++){var u=n[r];if(u.nodeName==="LINK"||u.getAttribute("media")!=="not all")a.set(u.dataset.precedence,u),o=u}o&&a.set(zv,o)}n=t.instance,u=n.getAttribute("data-precedence"),r=a.get(u)||o,r===o&&a.set(zv,n),a.set(u,n),this.count++,o=ep.bind(this),n.addEventListener("load",o),n.addEventListener("error",o),r?r.parentNode.insertBefore(n,r.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(n,e.firstChild)),t.state.loading|=nn}}function HR(e,t,a,o,n,r,u,f,m){this.tag=1,this.containerInfo=e,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=Fs,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=cu(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=cu(0),this.hiddenUpdates=cu(null),this.identifierPrefix=o,this.onUncaughtError=n,this.onCaughtError=r,this.onRecoverableError=u,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=m,this.incompleteTransitions=new Map,this.passiveEffectDuration=this.effectDuration=-0,this.memoizedUpdaters=new Set,e=this.pendingUpdatersLaneMap=[];for(t=0;31>t;t++)e.push(new Set);this._debugRootType=a?"hydrateRoot()":"createRoot()"}function nL(e,t,a,o,n,r,u,f,m,y,O,q){return e=new HR(e,t,a,u,m,y,O,q,f),t=lM,r===!0&&(t|=to|gn),t|=st,r=w(3,null,null,t),e.current=r,r.stateNode=e,t=Eh(),hs(t),e.pooledCache=t,hs(t),r.memoizedState={element:o,isDehydrated:a,cache:t},zh(r),e}function rL(e){if(!e)return Ll;return e=Ll,e}function ry(e,t,a,o,n,r){if(eo&&typeof eo.onScheduleFiberRoot==="function")try{eo.onScheduleFiberRoot(Eu,o,a)}catch(u){Jn||(Jn=!0,console.error("React instrumentation encountered an error: %o",u))}n=rL(n),o.context===null?o.context=n:o.pendingContext=n,Wn&&Bo!==null&&!jw&&(jw=!0,console.error(`Render methods should be a pure function of props and state; triggering nested component updates from render is not allowed. If necessary, trigger nested updates in componentDidUpdate.
|
|
181
|
+
- `+Jf(t)+`
|
|
182
|
+
+ `+Jf(a),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."+a);return null;case"script":return t=a.async,a=a.src,typeof a==="string"&&t&&typeof t!=="function"&&typeof t!=="symbol"?(a=Tu(a),t=Tt(r).hoistableScripts,o=t.get(a),o||(o={type:"script",instance:null,count:0,state:null},t.set(a,o)),o):{type:"void",instance:null,count:0,state:null};default:throw Error('getResource encountered a type it did not expect: "'+e+'". this is a bug in React.')}}function Jf(e){var t=0,a="<link";return typeof e.rel==="string"?(t++,a+=' rel="'+e.rel+'"'):pr.call(e,"rel")&&(t++,a+=' rel="'+(e.rel===null?"null":"invalid type "+typeof e.rel)+'"'),typeof e.href==="string"?(t++,a+=' href="'+e.href+'"'):pr.call(e,"href")&&(t++,a+=' href="'+(e.href===null?"null":"invalid type "+typeof e.href)+'"'),typeof e.precedence==="string"?(t++,a+=' precedence="'+e.precedence+'"'):pr.call(e,"precedence")&&(t++,a+=" precedence={"+(e.precedence===null?"null":"invalid type "+typeof e.precedence)+"}"),Object.getOwnPropertyNames(e).length>t&&(a+=" ..."),a+" />"}function Iu(e){return'href="'+Xo(e)+'"'}function fc(e){return'link[rel="stylesheet"]['+e+"]"}function sL(e){return pt({},e,{"data-precedence":e.precedence,precedence:null})}function XR(e,t,a,o){e.querySelector('link[rel="preload"][as="style"]['+t+"]")?o.loading=ld:(t=e.createElement("link"),o.preload=t,t.addEventListener("load",function(){return o.loading|=ld}),t.addEventListener("error",function(){return o.loading|=Yw}),$a(t,"link",a),Oe(t),e.head.appendChild(t))}function Tu(e){return'[src="'+Xo(e)+'"]'}function pc(e){return"script[async]"+e}function uL(e,t,a){if(t.count++,t.instance===null)switch(t.type){case"style":var o=e.querySelector('style[data-href~="'+Xo(a.href)+'"]');if(o)return t.instance=o,Oe(o),o;var r=pt({},a,{"data-href":a.href,"data-precedence":a.precedence,href:null,precedence:null});return o=(e.ownerDocument||e).createElement("style"),Oe(o),$a(o,"style",r),ep(o,a.precedence,e),t.instance=o;case"stylesheet":r=Iu(a.href);var n=e.querySelector(fc(r));if(n)return t.state.loading|=rr,t.instance=n,Oe(n),n;o=sL(a),(r=nr.get(r))&&uy(o,r),n=(e.ownerDocument||e).createElement("link"),Oe(n);var u=n;return u._p=new Promise(function(f,m){u.onload=f,u.onerror=m}),$a(n,"link",o),t.state.loading|=rr,ep(n,a.precedence,e),t.instance=n;case"script":if(n=Tu(a.src),r=e.querySelector(pc(n)))return t.instance=r,Oe(r),r;if(o=a,r=nr.get(n))o=pt({},a),iy(o,r);return e=e.ownerDocument||e,r=e.createElement("script"),Oe(r),$a(r,"link",o),e.head.appendChild(r),t.instance=r;case"void":return null;default:throw Error('acquireResource encountered a resource type it did not expect: "'+t.type+'". this is a bug in React.')}else t.type==="stylesheet"&&(t.state.loading&rr)===Gs&&(o=t.instance,t.state.loading|=rr,ep(o,a.precedence,e));return t.instance}function ep(e,t,a){for(var o=a.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),r=o.length?o[o.length-1]:null,n=r,u=0;u<o.length;u++){var f=o[u];if(f.dataset.precedence===t)n=f;else if(n!==r)break}n?n.parentNode.insertBefore(e,n.nextSibling):(t=a.nodeType===9?a.head:a,t.insertBefore(e,t.firstChild))}function uy(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.title==null&&(e.title=t.title)}function iy(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.integrity==null&&(e.integrity=t.integrity)}function iL(e,t,a){if(lm===null){var o=new Map,r=lm=new Map;r.set(a,o)}else r=lm,o=r.get(a),o||(o=new Map,r.set(a,o));if(o.has(e))return o;o.set(e,null),a=a.getElementsByTagName(e);for(r=0;r<a.length;r++){var n=a[r];if(!(n[vc]||n[Qa]||e==="link"&&n.getAttribute("rel")==="stylesheet")&&n.namespaceURI!==Ou){var u=n.getAttribute(t)||"";u=e+u;var f=o.get(u);f?f.push(n):o.set(u,[n])}}return o}function cL(e,t,a){e=e.ownerDocument||e,e.head.insertBefore(a,t==="title"?e.querySelector("head > title"):null)}function YR(e,t,a){var o=!a.ancestorInfo.containerTagInScope;if(a.context===ci||t.itemProp!=null)return!o||t.itemProp==null||e!=="meta"&&e!=="title"&&e!=="style"&&e!=="link"&&e!=="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.",e,e),!1;switch(e){case"meta":case"title":return!0;case"style":if(typeof t.precedence!=="string"||typeof t.href!=="string"||t.href===""){o&&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 t.rel!=="string"||typeof t.href!=="string"||t.href===""||t.onLoad||t.onError){if(t.rel==="stylesheet"&&typeof t.precedence==="string"){e=t.href;var r=t.onError,n=t.disabled;a=[],t.onLoad&&a.push("`onLoad`"),r&&a.push("`onError`"),n!=null&&a.push("`disabled`"),r=CR(a,"and"),r+=a.length===1?" prop":" props",n=a.length===1?"an "+r:"the "+r,a.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.',e,n,r)}o&&(typeof t.rel!=="string"||typeof t.href!=="string"||t.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"):(t.onError||t.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(t.rel){case"stylesheet":return e=t.precedence,t=t.disabled,typeof e!=="string"&&o&&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 e==="string"&&t==null;default:return!0}case"script":if(e=t.async&&typeof t.async!=="function"&&typeof t.async!=="symbol",!e||t.onLoad||t.onError||!t.src||typeof t.src!=="string"){o&&(e?t.onLoad||t.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":o&&console.error("Cannot render <%s> outside the main document. Try moving it into the root <head> tag.",e)}return!1}function dL(e){return e.type==="stylesheet"&&(e.state.loading&$w)===Gs?!1:!0}function $R(e,t,a,o){if(a.type==="stylesheet"&&(typeof o.media!=="string"||matchMedia(o.media).matches!==!1)&&(a.state.loading&rr)===Gs){if(a.instance===null){var r=Iu(o.href),n=t.querySelector(fc(r));if(n){t=n._p,t!==null&&typeof t==="object"&&typeof t.then==="function"&&(e.count++,e=tp.bind(e),t.then(e,e)),a.state.loading|=rr,a.instance=n,Oe(n);return}n=t.ownerDocument||t,o=sL(o),(r=nr.get(r))&&uy(o,r),n=n.createElement("link"),Oe(n);var u=n;u._p=new Promise(function(f,m){u.onload=f,u.onerror=m}),$a(n,"link",o),a.instance=n}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(a,t),(t=a.state.preload)&&(a.state.loading&$w)===Gs&&(e.count++,a=tp.bind(e),t.addEventListener("load",a),t.addEventListener("error",a))}}function QR(e,t){return e.stylesheets&&e.count===0&&ap(e,e.stylesheets),0<e.count||0<e.imgCount?function(a){var o=setTimeout(function(){if(e.stylesheets&&ap(e,e.stylesheets),e.unsuspend){var n=e.unsuspend;e.unsuspend=null,n()}},GM+t);0<e.imgBytes&&Hv===0&&(Hv=125*wR()*jM);var r=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&ap(e,e.stylesheets),e.unsuspend)){var n=e.unsuspend;e.unsuspend=null,n()}},(e.imgBytes>Hv?50:VM)+t);return e.unsuspend=a,function(){e.unsuspend=null,clearTimeout(o),clearTimeout(r)}}:null}function tp(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)ap(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}function ap(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,sm=new Map,t.forEach(KR,e),sm=null,tp.call(e))}function KR(e,t){if(!(t.state.loading&rr)){var a=sm.get(e);if(a)var o=a.get(Fv);else{a=new Map,sm.set(e,a);for(var r=e.querySelectorAll("link[data-precedence],style[data-precedence]"),n=0;n<r.length;n++){var u=r[n];if(u.nodeName==="LINK"||u.getAttribute("media")!=="not all")a.set(u.dataset.precedence,u),o=u}o&&a.set(Fv,o)}r=t.instance,u=r.getAttribute("data-precedence"),n=a.get(u)||o,n===o&&a.set(Fv,r),a.set(u,r),this.count++,o=tp.bind(this),r.addEventListener("load",o),r.addEventListener("error",o),n?n.parentNode.insertBefore(r,n.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(r,e.firstChild)),t.state.loading|=rr}}function ZR(e,t,a,o,r,n,u,f,m){this.tag=1,this.containerInfo=e,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=Fs,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=cu(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=cu(0),this.hiddenUpdates=cu(null),this.identifierPrefix=o,this.onUncaughtError=r,this.onCaughtError=n,this.onRecoverableError=u,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=m,this.incompleteTransitions=new Map,this.passiveEffectDuration=this.effectDuration=-0,this.memoizedUpdaters=new Set,e=this.pendingUpdatersLaneMap=[];for(t=0;31>t;t++)e.push(new Set);this._debugRootType=a?"hydrateRoot()":"createRoot()"}function fL(e,t,a,o,r,n,u,f,m,y,q,O){return e=new ZR(e,t,a,u,m,y,q,O,f),t=gM,n===!0&&(t|=to|hr),t|=st,n=w(3,null,null,t),e.current=n,n.stateNode=e,t=zh(),hs(t),e.pooledCache=t,hs(t),n.memoizedState={element:o,isDehydrated:a,cache:t},Fh(n),e}function pL(e){if(!e)return Ll;return e=Ll,e}function cy(e,t,a,o,r,n){if(eo&&typeof eo.onScheduleFiberRoot==="function")try{eo.onScheduleFiberRoot(Eu,o,a)}catch(u){Wr||(Wr=!0,console.error("React instrumentation encountered an error: %o",u))}r=pL(r),o.context===null?o.context=r:o.pendingContext=r,Zr&&Bo!==null&&!Jw&&(Jw=!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.`,V(Bo)||"Unknown")),o=sl(t),o.payload={element:a},r=r===void 0?null:r,r!==null&&(typeof r!=="function"&&console.error("Expected the last optional `callback` argument to be a function. Instead received: %s.",r),o.callback=r),a=ul(e,o,t),a!==null&&(zn(t,"root.render()",null),ia(a,e,t),Xi(a,e,t))}function lL(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var a=e.retryLane;e.retryLane=a!==0&&a<t?a:t}}function ly(e,t){lL(e,t),(e=e.alternate)&&lL(e,t)}function sL(e){if(e.tag===13||e.tag===31){var t=Ja(e,67108864);t!==null&&ia(t,e,67108864),ly(e,67108864)}}function uL(e){if(e.tag===13||e.tag===31){var t=Oo(e);t=ls(t);var a=Ja(e,t);a!==null&&ia(a,e,t),ly(e,t)}}function FR(){return Bo}function GR(e,t,a,o){var n=G.T;G.T=null;var r=zt.p;try{zt.p=zo,sy(e,t,a,o)}finally{zt.p=r,G.T=n}}function VR(e,t,a,o){var n=G.T;G.T=null;var r=zt.p;try{zt.p=hn,sy(e,t,a,o)}finally{zt.p=r,G.T=n}}function sy(e,t,a,o){if(um){var n=uy(o);if(n===null)Xg(e,t,o,im,a),cL(e,o);else if(jR(n,e,t,a,o))o.stopPropagation();else if(cL(e,o),t&4&&-1<zM.indexOf(e)){for(;n!==null;){var r=Je(n);if(r!==null)switch(r.tag){case 3:if(r=r.stateNode,r.current.memoizedState.isDehydrated){var u=On(r.pendingLanes);if(u!==0){var f=r;f.pendingLanes|=2;for(f.entangledLanes|=2;u;){var m=1<<31-ro(u);f.entanglements[1]|=m,u&=~m}$n(r),(Tt&(qa|Ho))===Ha&&(jp=Ua()+bw,lc(0,!1))}}break;case 31:case 13:f=Ja(r,2),f!==null&&ia(f,r,2),Cu(),ly(r,2)}if(r=uy(o),r===null&&Xg(e,t,o,im,a),r===n)break;n=r}n!==null&&o.stopPropagation()}else Xg(e,t,o,null,a)}}function uy(e){return e=mh(e),iy(e)}function iy(e){if(im=null,e=ke(e),e!==null){var t=U(e);if(t===null)e=null;else{var a=t.tag;if(a===13){if(e=P(t),e!==null)return e;e=null}else if(a===31){if(e=X(t),e!==null)return e;e=null}else if(a===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}}return im=e,null}function iL(e){switch(e){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 zo;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 hn;case"message":switch(eA()){case Ly:return zo;case Cy:return hn;case Du:case tA:return tr;case wy:return dp;default:return tr}default:return tr}}function cL(e,t){switch(e){case"focusin":case"focusout":Pl=null;break;case"dragenter":case"dragleave":_l=null;break;case"mouseover":case"mouseout":Hl=null;break;case"pointerover":case"pointerout":sd.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":ud.delete(t.pointerId)}}function pc(e,t,a,o,n,r){if(e===null||e.nativeEvent!==r)return e={blockedOn:t,domEventName:a,eventSystemFlags:o,nativeEvent:r,targetContainers:[n]},t!==null&&(t=Je(t),t!==null&&sL(t)),e;return e.eventSystemFlags|=o,t=e.targetContainers,n!==null&&t.indexOf(n)===-1&&t.push(n),e}function jR(e,t,a,o,n){switch(t){case"focusin":return Pl=pc(Pl,e,t,a,o,n),!0;case"dragenter":return _l=pc(_l,e,t,a,o,n),!0;case"mouseover":return Hl=pc(Hl,e,t,a,o,n),!0;case"pointerover":var r=n.pointerId;return sd.set(r,pc(sd.get(r)||null,e,t,a,o,n)),!0;case"gotpointercapture":return r=n.pointerId,ud.set(r,pc(ud.get(r)||null,e,t,a,o,n)),!0}return!1}function dL(e){var t=ke(e.target);if(t!==null){var a=U(t);if(a!==null){if(t=a.tag,t===13){if(t=P(a),t!==null){e.blockedOn=t,le(e.priority,function(){uL(a)});return}}else if(t===31){if(t=X(a),t!==null){e.blockedOn=t,le(e.priority,function(){uL(a)});return}}else if(t===3&&a.stateNode.current.memoizedState.isDehydrated){e.blockedOn=a.tag===3?a.stateNode.containerInfo:null;return}}}e.blockedOn=null}function ap(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var a=uy(e.nativeEvent);if(a===null){a=e.nativeEvent;var o=new a.constructor(a.type,a),n=o;vc!==null&&console.error("Expected currently replaying event to be null. This error is likely caused by a bug in React. Please file an issue."),vc=n,a.target.dispatchEvent(o),vc===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."),vc=null}else return t=Je(a),t!==null&&sL(t),e.blockedOn=a,!1;t.shift()}return!0}function fL(e,t,a){ap(e)&&a.delete(t)}function XR(){Uv=!1,Pl!==null&&ap(Pl)&&(Pl=null),_l!==null&&ap(_l)&&(_l=null),Hl!==null&&ap(Hl)&&(Hl=null),sd.forEach(fL),ud.forEach(fL)}function op(e,t){e.blockedOn===t&&(e.blockedOn=null,Uv||(Uv=!0,Rt.unstable_scheduleCallback(Rt.unstable_NormalPriority,XR)))}function pL(e){cm!==e&&(cm=e,Rt.unstable_scheduleCallback(Rt.unstable_NormalPriority,function(){cm===e&&(cm=null);for(var t=0;t<e.length;t+=3){var a=e[t],o=e[t+1],n=e[t+2];if(typeof o!=="function")if(iy(o||a)===null)continue;else break;var r=Je(a);r!==null&&(e.splice(t,3),t-=3,a={pending:!0,data:n,method:a.method,action:o},Object.freeze(a),ig(r,a,o,n))}}))}function Ru(e){function t(m){return op(m,e)}Pl!==null&&op(Pl,e),_l!==null&&op(_l,e),Hl!==null&&op(Hl,e),sd.forEach(t),ud.forEach(t);for(var a=0;a<Fl.length;a++){var o=Fl[a];o.blockedOn===e&&(o.blockedOn=null)}for(;0<Fl.length&&(a=Fl[0],a.blockedOn===null);)dL(a),a.blockedOn===null&&Fl.shift();if(a=(e.ownerDocument||e).$$reactFormReplay,a!=null)for(o=0;o<a.length;o+=3){var n=a[o],r=a[o+1],u=n[lo]||null;if(typeof r==="function")u||pL(a);else if(u){var f=null;if(r&&r.hasAttribute("formAction")){if(n=r,u=r[lo]||null)f=u.formAction;else if(iy(n)!==null)continue}else f=u.action;typeof f==="function"?a[o+1]=f:(a.splice(o,3),o-=3),pL(a)}}}function mL(){function e(r){r.canIntercept&&r.info==="react-transition"&&r.intercept({handler:function(){return new Promise(function(u){return n=u})},focusReset:"manual",scroll:"manual"})}function t(){n!==null&&(n(),n=null),o||setTimeout(a,20)}function a(){if(!o&&!navigation.transition){var r=navigation.currentEntry;r&&r.url!=null&&navigation.navigate(r.url,{state:r.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation==="object"){var o=!1,n=null;return navigation.addEventListener("navigate",e),navigation.addEventListener("navigatesuccess",t),navigation.addEventListener("navigateerror",t),setTimeout(a,100),function(){o=!0,navigation.removeEventListener("navigate",e),navigation.removeEventListener("navigatesuccess",t),navigation.removeEventListener("navigateerror",t),n!==null&&(n(),n=null)}}}function cy(e){this._internalRoot=e}function np(e){this._internalRoot=e}function hL(e){e[vl]&&(e._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 pt=Object.assign,YR=Symbol.for("react.element"),Kn=Symbol.for("react.transitional.element"),Au=Symbol.for("react.portal"),Mu=Symbol.for("react.fragment"),rp=Symbol.for("react.strict_mode"),dy=Symbol.for("react.profiler"),fy=Symbol.for("react.consumer"),Zn=Symbol.for("react.context"),mc=Symbol.for("react.forward_ref"),py=Symbol.for("react.suspense"),my=Symbol.for("react.suspense_list"),lp=Symbol.for("react.memo"),No=Symbol.for("react.lazy"),hy=Symbol.for("react.activity"),$R=Symbol.for("react.memo_cache_sentinel"),gL=Symbol.iterator,QR=Symbol.for("react.client.reference"),Ea=Array.isArray,G=pi.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,zt=_v.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,KR=Object.freeze({pending:!1,data:null,method:null,action:null}),gy=[],yy=[],Dr=-1,hl=de(null),hc=de(null),gl=de(null),sp=de(null),gc=0,yL,vL,bL,xL,SL,LL,CL;ee.__reactDisabledLog=!0;var vy,wL,by=!1,xy=new(typeof WeakMap==="function"?WeakMap:Map),Bo=null,Wn=!1,mn=Object.prototype.hasOwnProperty,Sy=Rt.unstable_scheduleCallback,ZR=Rt.unstable_cancelCallback,WR=Rt.unstable_shouldYield,JR=Rt.unstable_requestPaint,Ua=Rt.unstable_now,eA=Rt.unstable_getCurrentPriorityLevel,Ly=Rt.unstable_ImmediatePriority,Cy=Rt.unstable_UserBlockingPriority,Du=Rt.unstable_NormalPriority,tA=Rt.unstable_LowPriority,wy=Rt.unstable_IdlePriority,aA=Rt.log,oA=Rt.unstable_setDisableYieldValue,Eu=null,eo=null,Jn=!1,er=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u",ro=Math.clz32?Math.clz32:$d,{log:nA,LN2:rA}=Math,up=256,ip=262144,cp=4194304,zo=2,hn=8,tr=32,dp=268435456,yl=Math.random().toString(36).slice(2),Qa="__reactFiber$"+yl,lo="__reactProps$"+yl,vl="__reactContainer$"+yl,ky="__reactEvents$"+yl,lA="__reactListeners$"+yl,sA="__reactHandles$"+yl,kL="__reactResources$"+yl,yc="__reactMarker$"+yl,TL=new Set,Ls={},Ty={},uA={button:!0,checkbox:!0,image:!0,hidden:!0,radio:!0,reset:!0,submit:!0},iA=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]*$"),IL={},RL={},cA=/[\n"\\]/g,AL=!1,ML=!1,DL=!1,EL=!1,OL=!1,qL=!1,NL=["value","defaultValue"],BL=!1,zL=/["'&<>\n\t]|^\s|\s$/,dA="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(" "),UL="applet caption html table td th marquee object template foreignObject desc title".split(" "),fA=UL.concat(["button"]),pA="dd dt li option optgroup p rp rt".split(" "),PL={current:null,formTag:null,aTagInScope:null,buttonTagInScope:null,nobrTagInScope:null,pTagInButtonScope:null,listItemTagAutoclosing:null,dlItemTagAutoclosing:null,containerTagInScope:null,implicitRootScope:!1},fp={},Iy={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"]},_L=/([A-Z])/g,HL=/^ms-/,mA=/^(?:webkit|moz|o)[A-Z]/,hA=/^-ms-/,gA=/-(.)/g,FL=/;\s*$/,Ou={},Ry={},GL=!1,VL=!1,jL=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(" ")),pp="http://www.w3.org/1998/Math/MathML",qu="http://www.w3.org/2000/svg",yA=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"]]),mp={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"},XL={"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},Nu={},vA=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]*$"),bA=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]*$"),YL=!1,so={},$L=/^on./,xA=/^on[^A-Z]/,SA=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]*$"),LA=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]*$"),CA=/^[\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,vc=null,Bu=null,zu=null,Ay=!1,ar=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),My=!1;if(ar)try{var bc={};Object.defineProperty(bc,"passive",{get:function(){My=!0}}),window.addEventListener("test",bc,bc),window.removeEventListener("test",bc,bc)}catch(e){My=!1}var bl=null,Dy=null,hp=null,Cs={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},gp=go(Cs),xc=pt({},Cs,{view:0,detail:0}),wA=go(xc),Ey,Oy,Sc,yp=pt({},xc,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:hh,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){if("movementX"in e)return e.movementX;return e!==Sc&&(Sc&&e.type==="mousemove"?(Ey=e.screenX-Sc.screenX,Oy=e.screenY-Sc.screenY):Oy=Ey=0,Sc=e),Ey},movementY:function(e){return"movementY"in e?e.movementY:Oy}}),QL=go(yp),kA=pt({},yp,{dataTransfer:0}),TA=go(kA),IA=pt({},xc,{relatedTarget:0}),qy=go(IA),RA=pt({},Cs,{animationName:0,elapsedTime:0,pseudoElement:0}),AA=go(RA),MA=pt({},Cs,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),DA=go(MA),EA=pt({},Cs,{data:0}),KL=go(EA),OA=KL,qA={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},NA={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"},BA={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"},zA=pt({},xc,{key:function(e){if(e.key){var t=qA[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=tf(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?NA[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:hh,charCode:function(e){return e.type==="keypress"?tf(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?tf(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),UA=go(zA),PA=pt({},yp,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),ZL=go(PA),_A=pt({},xc,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:hh}),HA=go(_A),FA=pt({},Cs,{propertyName:0,elapsedTime:0,pseudoElement:0}),GA=go(FA),VA=pt({},yp,{deltaX:function(e){return"deltaX"in e?e.deltaX:("wheelDeltaX"in e)?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:("wheelDeltaY"in e)?-e.wheelDeltaY:("wheelDelta"in e)?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),jA=go(VA),XA=pt({},Cs,{newState:0,oldState:0}),YA=go(XA),$A=[9,13,27,32],WL=229,Ny=ar&&"CompositionEvent"in window,Lc=null;ar&&"documentMode"in document&&(Lc=document.documentMode);var QA=ar&&"TextEvent"in window&&!Lc,JL=ar&&(!Ny||Lc&&8<Lc&&11>=Lc),eC=32,tC=String.fromCharCode(eC),aC=!1,Uu=!1,KA={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},Cc=null,wc=null,oC=!1;ar&&(oC=yI("input")&&(!document.documentMode||9<document.documentMode));var uo=typeof Object.is==="function"?Object.is:CI,ZA=ar&&"documentMode"in document&&11>=document.documentMode,Pu=null,By=null,kc=null,zy=!1,_u={animationend:us("Animation","AnimationEnd"),animationiteration:us("Animation","AnimationIteration"),animationstart:us("Animation","AnimationStart"),transitionrun:us("Transition","TransitionRun"),transitionstart:us("Transition","TransitionStart"),transitioncancel:us("Transition","TransitionCancel"),transitionend:us("Transition","TransitionEnd")},Uy={},nC={};ar&&(nC=document.createElement("div").style,("AnimationEvent"in window)||(delete _u.animationend.animation,delete _u.animationiteration.animation,delete _u.animationstart.animation),("TransitionEvent"in window)||delete _u.transitionend.transition);var rC=is("animationend"),lC=is("animationiteration"),sC=is("animationstart"),WA=is("transitionrun"),JA=is("transitionstart"),eM=is("transitioncancel"),uC=is("transitionend"),iC=new Map,Py="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(" ");Py.push("scrollEnd");var cC=0;if(typeof performance==="object"&&typeof performance.now==="function")var tM=performance,dC=function(){return tM.now()};else{var aM=Date;dC=function(){return aM.now()}}var _y=typeof reportError==="function"?reportError:function(e){if(typeof window==="object"&&typeof window.ErrorEvent==="function"){var t=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(t))return}else if(typeof process==="object"&&typeof process.emit==="function"){process.emit("uncaughtException",e);return}console.error(e)},oM="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.",vp=0,Hy=1,Fy=2,Gy=3,bp="– ",xp="+ ",fC=" ",Kt=typeof console<"u"&&typeof console.timeStamp==="function"&&typeof performance<"u"&&typeof performance.measure==="function",$o="Components ⚛",mt="Scheduler ⚛",ht="Blocking",xl=!1,Er={color:"primary",properties:null,tooltipText:"",track:$o},Sl={start:-0,end:-0,detail:{devtools:Er}},nM=["Changed Props",""],pC="This component received deeply equal props. It might benefit from useMemo or the React Compiler in its owner.",rM=["Changed Props",pC],Tc=1,Or=2,Qo=[],Hu=0,Vy=0,Ll={};Object.freeze(Ll);var Ko=null,Fu=null,Ve=0,lM=1,st=2,to=8,gn=16,sM=32,mC=!1;try{var hC=Object.preventExtensions({})}catch(e){mC=!0}var jy=new WeakMap,Gu=[],Vu=0,Sp=null,Ic=0,Zo=[],Wo=0,ws=null,qr=1,Nr="",Ka=null,Zt=null,vt=!1,or=!1,Uo=null,Cl=null,Jo=!1,Xy=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."),Yy=de(null),$y=de(null),gC={},Lp=null,ju=null,Xu=!1,uM=typeof AbortController<"u"?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(a,o){e.push(o)}};this.abort=function(){t.aborted=!0,e.forEach(function(a){return a()})}},iM=Rt.unstable_scheduleCallback,cM=Rt.unstable_NormalPriority,Ca={$$typeof:Zn,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0,_currentRenderer:null,_currentRenderer2:null},wa=Rt.unstable_now,Cp=console.createTask?console.createTask:function(){return null},Rc=1,wp=2,Pa=-0,wl=-0,Br=-0,zr=null,io=-1.1,ks=-0,ra=-0,Ne=-1.1,Pe=-1.1,aa=null,ca=!1,kl=-0,nr=-1.1,Ac=null,Tl=0,Qy=null,Ky=null,Ts=-1.1,Mc=null,Yu=-1.1,kp=-1.1,rr=-0,Ur=-1.1,en=-1.1,Zy=0,Dc=null,yC=null,vC=null,Il=-1.1,Is=null,Rl=-1.1,Tp=-1.1,bC=-0,xC=-0,Ip=0,Pr=null,SC=0,Ec=-1.1,Rp=!1,Ap=!1,Oc=null,Wy=0,Rs=0,$u=null,LC=G.S;G.S=function(e,t){if(yw=Ua(),typeof t==="object"&&t!==null&&typeof t.then==="function"){if(0>Ur&&0>en){Ur=wa();var a=ic(),o=uc();if(a!==Rl||o!==Is)Rl=-1.1;Il=a,Is=o}MI(e,t)}LC!==null&&LC(e,t)};var As=de(null),yn={recordUnsafeLifecycleWarnings:function(){},flushPendingUnsafeLifecycleWarnings:function(){},recordLegacyContextWarning:function(){},flushLegacyContextWarning:function(){},discardPendingWarnings:function(){}},qc=[],Nc=[],Bc=[],zc=[],Uc=[],Pc=[],Ms=new Set;yn.recordUnsafeLifecycleWarnings=function(e,t){Ms.has(e.type)||(typeof t.componentWillMount==="function"&&t.componentWillMount.__suppressDeprecationWarning!==!0&&qc.push(e),e.mode&to&&typeof t.UNSAFE_componentWillMount==="function"&&Nc.push(e),typeof t.componentWillReceiveProps==="function"&&t.componentWillReceiveProps.__suppressDeprecationWarning!==!0&&Bc.push(e),e.mode&to&&typeof t.UNSAFE_componentWillReceiveProps==="function"&&zc.push(e),typeof t.componentWillUpdate==="function"&&t.componentWillUpdate.__suppressDeprecationWarning!==!0&&Uc.push(e),e.mode&to&&typeof t.UNSAFE_componentWillUpdate==="function"&&Pc.push(e))},yn.flushPendingUnsafeLifecycleWarnings=function(){var e=new Set;0<qc.length&&(qc.forEach(function(f){e.add(V(f)||"Component"),Ms.add(f.type)}),qc=[]);var t=new Set;0<Nc.length&&(Nc.forEach(function(f){t.add(V(f)||"Component"),Ms.add(f.type)}),Nc=[]);var a=new Set;0<Bc.length&&(Bc.forEach(function(f){a.add(V(f)||"Component"),Ms.add(f.type)}),Bc=[]);var o=new Set;0<zc.length&&(zc.forEach(function(f){o.add(V(f)||"Component"),Ms.add(f.type)}),zc=[]);var n=new Set;0<Uc.length&&(Uc.forEach(function(f){n.add(V(f)||"Component"),Ms.add(f.type)}),Uc=[]);var r=new Set;if(0<Pc.length&&(Pc.forEach(function(f){r.add(V(f)||"Component"),Ms.add(f.type)}),Pc=[]),0<t.size){var u=C(t);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.`,V(Bo)||"Unknown")),o=sl(t),o.payload={element:a},n=n===void 0?null:n,n!==null&&(typeof n!=="function"&&console.error("Expected the last optional `callback` argument to be a function. Instead received: %s.",n),o.callback=n),a=ul(e,o,t),a!==null&&(Br(t,"root.render()",null),ia(a,e,t),Yi(a,e,t))}function mL(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var a=e.retryLane;e.retryLane=a!==0&&a<t?a:t}}function dy(e,t){mL(e,t),(e=e.alternate)&&mL(e,t)}function hL(e){if(e.tag===13||e.tag===31){var t=Ja(e,67108864);t!==null&&ia(t,e,67108864),dy(e,67108864)}}function gL(e){if(e.tag===13||e.tag===31){var t=qo(e);t=ls(t);var a=Ja(e,t);a!==null&&ia(a,e,t),dy(e,t)}}function WR(){return Bo}function JR(e,t,a,o){var r=j.T;j.T=null;var n=zt.p;try{zt.p=zo,fy(e,t,a,o)}finally{zt.p=n,j.T=r}}function eA(e,t,a,o){var r=j.T;j.T=null;var n=zt.p;try{zt.p=mr,fy(e,t,a,o)}finally{zt.p=n,j.T=r}}function fy(e,t,a,o){if(im){var r=py(o);if(r===null)Zg(e,t,o,cm,a),vL(e,o);else if(tA(r,e,t,a,o))o.stopPropagation();else if(vL(e,o),t&4&&-1<YM.indexOf(e)){for(;r!==null;){var n=Je(r);if(n!==null)switch(n.tag){case 3:if(n=n.stateNode,n.current.memoizedState.isDehydrated){var u=Er(n.pendingLanes);if(u!==0){var f=n;f.pendingLanes|=2;for(f.entangledLanes|=2;u;){var m=1<<31-lo(u);f.entanglements[1]|=m,u&=~m}Yr(n),(It&(Na|Ho))===Ha&&(Xp=Ua()+Tw,sc(0,!1))}}break;case 31:case 13:f=Ja(n,2),f!==null&&ia(f,n,2),Cu(),dy(n,2)}if(n=py(o),n===null&&Zg(e,t,o,cm,a),n===r)break;r=n}r!==null&&o.stopPropagation()}else Zg(e,t,o,null,a)}}function py(e){return e=bh(e),my(e)}function my(e){if(cm=null,e=Te(e),e!==null){var t=U(e);if(t===null)e=null;else{var a=t.tag;if(a===13){if(e=P(t),e!==null)return e;e=null}else if(a===31){if(e=X(t),e!==null)return e;e=null}else if(a===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}}return cm=e,null}function yL(e){switch(e){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 zo;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 mr;case"message":switch(cA()){case Ty:return zo;case Ry:return mr;case Du:case dA:return en;case Ay:return fp;default:return en}default:return en}}function vL(e,t){switch(e){case"focusin":case"focusout":Pl=null;break;case"dragenter":case"dragleave":_l=null;break;case"mouseover":case"mouseout":Hl=null;break;case"pointerover":case"pointerout":ud.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":id.delete(t.pointerId)}}function mc(e,t,a,o,r,n){if(e===null||e.nativeEvent!==n)return e={blockedOn:t,domEventName:a,eventSystemFlags:o,nativeEvent:n,targetContainers:[r]},t!==null&&(t=Je(t),t!==null&&hL(t)),e;return e.eventSystemFlags|=o,t=e.targetContainers,r!==null&&t.indexOf(r)===-1&&t.push(r),e}function tA(e,t,a,o,r){switch(t){case"focusin":return Pl=mc(Pl,e,t,a,o,r),!0;case"dragenter":return _l=mc(_l,e,t,a,o,r),!0;case"mouseover":return Hl=mc(Hl,e,t,a,o,r),!0;case"pointerover":var n=r.pointerId;return ud.set(n,mc(ud.get(n)||null,e,t,a,o,r)),!0;case"gotpointercapture":return n=r.pointerId,id.set(n,mc(id.get(n)||null,e,t,a,o,r)),!0}return!1}function bL(e){var t=Te(e.target);if(t!==null){var a=U(t);if(a!==null){if(t=a.tag,t===13){if(t=P(a),t!==null){e.blockedOn=t,le(e.priority,function(){gL(a)});return}}else if(t===31){if(t=X(a),t!==null){e.blockedOn=t,le(e.priority,function(){gL(a)});return}}else if(t===3&&a.stateNode.current.memoizedState.isDehydrated){e.blockedOn=a.tag===3?a.stateNode.containerInfo:null;return}}}e.blockedOn=null}function op(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var a=py(e.nativeEvent);if(a===null){a=e.nativeEvent;var o=new a.constructor(a.type,a),r=o;bc!==null&&console.error("Expected currently replaying event to be null. This error is likely caused by a bug in React. Please file an issue."),bc=r,a.target.dispatchEvent(o),bc===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."),bc=null}else return t=Je(a),t!==null&&hL(t),e.blockedOn=a,!1;t.shift()}return!0}function xL(e,t,a){op(e)&&a.delete(t)}function aA(){Gv=!1,Pl!==null&&op(Pl)&&(Pl=null),_l!==null&&op(_l)&&(_l=null),Hl!==null&&op(Hl)&&(Hl=null),ud.forEach(xL),id.forEach(xL)}function rp(e,t){e.blockedOn===t&&(e.blockedOn=null,Gv||(Gv=!0,Rt.unstable_scheduleCallback(Rt.unstable_NormalPriority,aA)))}function SL(e){dm!==e&&(dm=e,Rt.unstable_scheduleCallback(Rt.unstable_NormalPriority,function(){dm===e&&(dm=null);for(var t=0;t<e.length;t+=3){var a=e[t],o=e[t+1],r=e[t+2];if(typeof o!=="function")if(my(o||a)===null)continue;else break;var n=Je(a);n!==null&&(e.splice(t,3),t-=3,a={pending:!0,data:r,method:a.method,action:o},Object.freeze(a),mg(n,a,o,r))}}))}function Ru(e){function t(m){return rp(m,e)}Pl!==null&&rp(Pl,e),_l!==null&&rp(_l,e),Hl!==null&&rp(Hl,e),ud.forEach(t),id.forEach(t);for(var a=0;a<Fl.length;a++){var o=Fl[a];o.blockedOn===e&&(o.blockedOn=null)}for(;0<Fl.length&&(a=Fl[0],a.blockedOn===null);)bL(a),a.blockedOn===null&&Fl.shift();if(a=(e.ownerDocument||e).$$reactFormReplay,a!=null)for(o=0;o<a.length;o+=3){var r=a[o],n=a[o+1],u=r[so]||null;if(typeof n==="function")u||SL(a);else if(u){var f=null;if(n&&n.hasAttribute("formAction")){if(r=n,u=n[so]||null)f=u.formAction;else if(my(r)!==null)continue}else f=u.action;typeof f==="function"?a[o+1]=f:(a.splice(o,3),o-=3),SL(a)}}}function LL(){function e(n){n.canIntercept&&n.info==="react-transition"&&n.intercept({handler:function(){return new Promise(function(u){return r=u})},focusReset:"manual",scroll:"manual"})}function t(){r!==null&&(r(),r=null),o||setTimeout(a,20)}function a(){if(!o&&!navigation.transition){var n=navigation.currentEntry;n&&n.url!=null&&navigation.navigate(n.url,{state:n.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation==="object"){var o=!1,r=null;return navigation.addEventListener("navigate",e),navigation.addEventListener("navigatesuccess",t),navigation.addEventListener("navigateerror",t),setTimeout(a,100),function(){o=!0,navigation.removeEventListener("navigate",e),navigation.removeEventListener("navigatesuccess",t),navigation.removeEventListener("navigateerror",t),r!==null&&(r(),r=null)}}}function hy(e){this._internalRoot=e}function np(e){this._internalRoot=e}function CL(e){e[vl]&&(e._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 pt=Object.assign,oA=Symbol.for("react.element"),Qr=Symbol.for("react.transitional.element"),Au=Symbol.for("react.portal"),Mu=Symbol.for("react.fragment"),lp=Symbol.for("react.strict_mode"),gy=Symbol.for("react.profiler"),yy=Symbol.for("react.consumer"),Kr=Symbol.for("react.context"),hc=Symbol.for("react.forward_ref"),vy=Symbol.for("react.suspense"),by=Symbol.for("react.suspense_list"),sp=Symbol.for("react.memo"),No=Symbol.for("react.lazy"),xy=Symbol.for("react.activity"),rA=Symbol.for("react.memo_cache_sentinel"),wL=Symbol.iterator,nA=Symbol.for("react.client.reference"),qa=Array.isArray,j=pi.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,zt=jv.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,lA=Object.freeze({pending:!1,data:null,method:null,action:null}),Sy=[],Ly=[],Dn=-1,hl=de(null),gc=de(null),gl=de(null),up=de(null),yc=0,kL,IL,TL,RL,AL,ML,DL;ee.__reactDisabledLog=!0;var Cy,EL,wy=!1,ky=new(typeof WeakMap==="function"?WeakMap:Map),Bo=null,Zr=!1,pr=Object.prototype.hasOwnProperty,Iy=Rt.unstable_scheduleCallback,sA=Rt.unstable_cancelCallback,uA=Rt.unstable_shouldYield,iA=Rt.unstable_requestPaint,Ua=Rt.unstable_now,cA=Rt.unstable_getCurrentPriorityLevel,Ty=Rt.unstable_ImmediatePriority,Ry=Rt.unstable_UserBlockingPriority,Du=Rt.unstable_NormalPriority,dA=Rt.unstable_LowPriority,Ay=Rt.unstable_IdlePriority,fA=Rt.log,pA=Rt.unstable_setDisableYieldValue,Eu=null,eo=null,Wr=!1,Jr=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u",lo=Math.clz32?Math.clz32:Qd,{log:mA,LN2:hA}=Math,ip=256,cp=262144,dp=4194304,zo=2,mr=8,en=32,fp=268435456,yl=Math.random().toString(36).slice(2),Qa="__reactFiber$"+yl,so="__reactProps$"+yl,vl="__reactContainer$"+yl,My="__reactEvents$"+yl,gA="__reactListeners$"+yl,yA="__reactHandles$"+yl,qL="__reactResources$"+yl,vc="__reactMarker$"+yl,OL=new Set,Ls={},Dy={},vA={button:!0,checkbox:!0,image:!0,hidden:!0,radio:!0,reset:!0,submit:!0},bA=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]*$"),NL={},BL={},xA=/[\n"\\]/g,zL=!1,UL=!1,PL=!1,_L=!1,HL=!1,FL=!1,GL=["value","defaultValue"],VL=!1,jL=/["'&<>\n\t]|^\s|\s$/,SA="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(" "),XL="applet caption html table td th marquee object template foreignObject desc title".split(" "),LA=XL.concat(["button"]),CA="dd dt li option optgroup p rp rt".split(" "),YL={current:null,formTag:null,aTagInScope:null,buttonTagInScope:null,nobrTagInScope:null,pTagInButtonScope:null,listItemTagAutoclosing:null,dlItemTagAutoclosing:null,containerTagInScope:null,implicitRootScope:!1},pp={},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"]},$L=/([A-Z])/g,QL=/^ms-/,wA=/^(?:webkit|moz|o)[A-Z]/,kA=/^-ms-/,IA=/-(.)/g,KL=/;\s*$/,qu={},qy={},ZL=!1,WL=!1,JL=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(" ")),mp="http://www.w3.org/1998/Math/MathML",Ou="http://www.w3.org/2000/svg",TA=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"]]),hp={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"},eC={"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},Nu={},RA=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]*$"),AA=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]*$"),tC=!1,uo={},aC=/^on./,MA=/^on[^A-Z]/,DA=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]*$"),EA=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]*$"),qA=/^[\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,bc=null,Bu=null,zu=null,Oy=!1,tn=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Ny=!1;if(tn)try{var xc={};Object.defineProperty(xc,"passive",{get:function(){Ny=!0}}),window.addEventListener("test",xc,xc),window.removeEventListener("test",xc,xc)}catch(e){Ny=!1}var bl=null,By=null,gp=null,Cs={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},yp=yo(Cs),Sc=pt({},Cs,{view:0,detail:0}),OA=yo(Sc),zy,Uy,Lc,vp=pt({},Sc,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:xh,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){if("movementX"in e)return e.movementX;return e!==Lc&&(Lc&&e.type==="mousemove"?(zy=e.screenX-Lc.screenX,Uy=e.screenY-Lc.screenY):Uy=zy=0,Lc=e),zy},movementY:function(e){return"movementY"in e?e.movementY:Uy}}),oC=yo(vp),NA=pt({},vp,{dataTransfer:0}),BA=yo(NA),zA=pt({},Sc,{relatedTarget:0}),Py=yo(zA),UA=pt({},Cs,{animationName:0,elapsedTime:0,pseudoElement:0}),PA=yo(UA),_A=pt({},Cs,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),HA=yo(_A),FA=pt({},Cs,{data:0}),rC=yo(FA),GA=rC,VA={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},jA={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"},XA={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"},YA=pt({},Sc,{key:function(e){if(e.key){var t=VA[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=af(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?jA[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:xh,charCode:function(e){return e.type==="keypress"?af(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?af(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),$A=yo(YA),QA=pt({},vp,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),nC=yo(QA),KA=pt({},Sc,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:xh}),ZA=yo(KA),WA=pt({},Cs,{propertyName:0,elapsedTime:0,pseudoElement:0}),JA=yo(WA),eM=pt({},vp,{deltaX:function(e){return"deltaX"in e?e.deltaX:("wheelDeltaX"in e)?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:("wheelDeltaY"in e)?-e.wheelDeltaY:("wheelDelta"in e)?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),tM=yo(eM),aM=pt({},Cs,{newState:0,oldState:0}),oM=yo(aM),rM=[9,13,27,32],lC=229,_y=tn&&"CompositionEvent"in window,Cc=null;tn&&"documentMode"in document&&(Cc=document.documentMode);var nM=tn&&"TextEvent"in window&&!Cc,sC=tn&&(!_y||Cc&&8<Cc&&11>=Cc),uC=32,iC=String.fromCharCode(uC),cC=!1,Uu=!1,lM={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},wc=null,kc=null,dC=!1;tn&&(dC=TT("input")&&(!document.documentMode||9<document.documentMode));var io=typeof Object.is==="function"?Object.is:qT,sM=tn&&"documentMode"in document&&11>=document.documentMode,Pu=null,Hy=null,Ic=null,Fy=!1,_u={animationend:us("Animation","AnimationEnd"),animationiteration:us("Animation","AnimationIteration"),animationstart:us("Animation","AnimationStart"),transitionrun:us("Transition","TransitionRun"),transitionstart:us("Transition","TransitionStart"),transitioncancel:us("Transition","TransitionCancel"),transitionend:us("Transition","TransitionEnd")},Gy={},fC={};tn&&(fC=document.createElement("div").style,("AnimationEvent"in window)||(delete _u.animationend.animation,delete _u.animationiteration.animation,delete _u.animationstart.animation),("TransitionEvent"in window)||delete _u.transitionend.transition);var pC=is("animationend"),mC=is("animationiteration"),hC=is("animationstart"),uM=is("transitionrun"),iM=is("transitionstart"),cM=is("transitioncancel"),gC=is("transitionend"),yC=new Map,Vy="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(" ");Vy.push("scrollEnd");var vC=0;if(typeof performance==="object"&&typeof performance.now==="function")var dM=performance,bC=function(){return dM.now()};else{var fM=Date;bC=function(){return fM.now()}}var jy=typeof reportError==="function"?reportError:function(e){if(typeof window==="object"&&typeof window.ErrorEvent==="function"){var t=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(t))return}else if(typeof process==="object"&&typeof process.emit==="function"){process.emit("uncaughtException",e);return}console.error(e)},pM="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.",bp=0,Xy=1,Yy=2,$y=3,xp="– ",Sp="+ ",xC=" ",Kt=typeof console<"u"&&typeof console.timeStamp==="function"&&typeof performance<"u"&&typeof performance.measure==="function",$o="Components ⚛",mt="Scheduler ⚛",ht="Blocking",xl=!1,En={color:"primary",properties:null,tooltipText:"",track:$o},Sl={start:-0,end:-0,detail:{devtools:En}},mM=["Changed Props",""],SC="This component received deeply equal props. It might benefit from useMemo or the React Compiler in its owner.",hM=["Changed Props",SC],Tc=1,qn=2,Qo=[],Hu=0,Qy=0,Ll={};Object.freeze(Ll);var Ko=null,Fu=null,Ve=0,gM=1,st=2,to=8,hr=16,yM=32,LC=!1;try{var CC=Object.preventExtensions({})}catch(e){LC=!0}var Ky=new WeakMap,Gu=[],Vu=0,Lp=null,Rc=0,Zo=[],Wo=0,ws=null,On=1,Nn="",Ka=null,Zt=null,vt=!1,an=!1,Uo=null,Cl=null,Jo=!1,Zy=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."),Wy=de(null),Jy=de(null),wC={},Cp=null,ju=null,Xu=!1,vM=typeof AbortController<"u"?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(a,o){e.push(o)}};this.abort=function(){t.aborted=!0,e.forEach(function(a){return a()})}},bM=Rt.unstable_scheduleCallback,xM=Rt.unstable_NormalPriority,Ca={$$typeof:Kr,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0,_currentRenderer:null,_currentRenderer2:null},wa=Rt.unstable_now,wp=console.createTask?console.createTask:function(){return null},Ac=1,kp=2,Pa=-0,wl=-0,Bn=-0,zn=null,co=-1.1,ks=-0,na=-0,Ne=-1.1,Pe=-1.1,aa=null,ca=!1,kl=-0,on=-1.1,Mc=null,Il=0,ev=null,tv=null,Is=-1.1,Dc=null,Yu=-1.1,Ip=-1.1,rn=-0,Un=-1.1,er=-1.1,av=0,Ec=null,kC=null,IC=null,Tl=-1.1,Ts=null,Rl=-1.1,Tp=-1.1,TC=-0,RC=-0,Rp=0,Pn=null,AC=0,qc=-1.1,Ap=!1,Mp=!1,Oc=null,ov=0,Rs=0,$u=null,MC=j.S;j.S=function(e,t){if(kw=Ua(),typeof t==="object"&&t!==null&&typeof t.then==="function"){if(0>Un&&0>er){Un=wa();var a=cc(),o=ic();if(a!==Rl||o!==Ts)Rl=-1.1;Tl=a,Ts=o}_T(e,t)}MC!==null&&MC(e,t)};var As=de(null),gr={recordUnsafeLifecycleWarnings:function(){},flushPendingUnsafeLifecycleWarnings:function(){},recordLegacyContextWarning:function(){},flushLegacyContextWarning:function(){},discardPendingWarnings:function(){}},Nc=[],Bc=[],zc=[],Uc=[],Pc=[],_c=[],Ms=new Set;gr.recordUnsafeLifecycleWarnings=function(e,t){Ms.has(e.type)||(typeof t.componentWillMount==="function"&&t.componentWillMount.__suppressDeprecationWarning!==!0&&Nc.push(e),e.mode&to&&typeof t.UNSAFE_componentWillMount==="function"&&Bc.push(e),typeof t.componentWillReceiveProps==="function"&&t.componentWillReceiveProps.__suppressDeprecationWarning!==!0&&zc.push(e),e.mode&to&&typeof t.UNSAFE_componentWillReceiveProps==="function"&&Uc.push(e),typeof t.componentWillUpdate==="function"&&t.componentWillUpdate.__suppressDeprecationWarning!==!0&&Pc.push(e),e.mode&to&&typeof t.UNSAFE_componentWillUpdate==="function"&&_c.push(e))},gr.flushPendingUnsafeLifecycleWarnings=function(){var e=new Set;0<Nc.length&&(Nc.forEach(function(f){e.add(V(f)||"Component"),Ms.add(f.type)}),Nc=[]);var t=new Set;0<Bc.length&&(Bc.forEach(function(f){t.add(V(f)||"Component"),Ms.add(f.type)}),Bc=[]);var a=new Set;0<zc.length&&(zc.forEach(function(f){a.add(V(f)||"Component"),Ms.add(f.type)}),zc=[]);var o=new Set;0<Uc.length&&(Uc.forEach(function(f){o.add(V(f)||"Component"),Ms.add(f.type)}),Uc=[]);var r=new Set;0<Pc.length&&(Pc.forEach(function(f){r.add(V(f)||"Component"),Ms.add(f.type)}),Pc=[]);var n=new Set;if(0<_c.length&&(_c.forEach(function(f){n.add(V(f)||"Component"),Ms.add(f.type)}),_c=[]),0<t.size){var u=C(t);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
|
|
|
@@ -190,7 +190,7 @@ Please update the following components: %s`,u)}0<o.size&&(u=C(o),console.error(`
|
|
|
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`,u)),0<
|
|
193
|
+
Please update the following components: %s`,u)),0<n.size&&(u=C(n),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
|
|
|
@@ -205,32 +205,32 @@ Please update the following components: %s`,u)),0<a.size&&(u=C(a),console.warn(`
|
|
|
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`,u)),0<
|
|
208
|
+
Please update the following components: %s`,u)),0<r.size&&(u=C(r),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`,u))};var
|
|
213
|
+
Please update the following components: %s`,u))};var Dp=new Map,DC=new Set;gr.recordLegacyContextWarning=function(e,t){var a=null;for(var o=e;o!==null;)o.mode&to&&(a=o),o=o.return;a===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."):!DC.has(e.type)&&(o=Dp.get(a),e.type.contextTypes!=null||e.type.childContextTypes!=null||t!==null&&typeof t.getChildContext==="function")&&(o===void 0&&(o=[],Dp.set(a,o)),o.push(e))},gr.flushLegacyContextWarning=function(){Dp.forEach(function(e){if(e.length!==0){var t=e[0],a=new Set;e.forEach(function(r){a.add(V(r)||"Component"),DC.add(r.type)});var o=C(a);Y(t,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`,o)})}})},
|
|
219
|
+
Learn more about this warning here: https://react.dev/link/legacy-context`,o)})}})},gr.discardPendingWarnings=function(){Nc=[],Bc=[],zc=[],Uc=[],Pc=[],_c=[],Dp=new Map};var EC={react_stack_bottom_frame:function(e,t,a){var o=Zr;Zr=!0;try{return e(t,a)}finally{Zr=o}}},rv=EC.react_stack_bottom_frame.bind(EC),qC={react_stack_bottom_frame:function(e){var t=Zr;Zr=!0;try{return e.render()}finally{Zr=t}}},OC=qC.react_stack_bottom_frame.bind(qC),NC={react_stack_bottom_frame:function(e,t){try{t.componentDidMount()}catch(a){Bt(e,e.return,a)}}},nv=NC.react_stack_bottom_frame.bind(NC),BC={react_stack_bottom_frame:function(e,t,a,o,r){try{t.componentDidUpdate(a,o,r)}catch(n){Bt(e,e.return,n)}}},zC=BC.react_stack_bottom_frame.bind(BC),UC={react_stack_bottom_frame:function(e,t){var a=t.stack;e.componentDidCatch(t.value,{componentStack:a!==null?a:""})}},SM=UC.react_stack_bottom_frame.bind(UC),PC={react_stack_bottom_frame:function(e,t,a){try{a.componentWillUnmount()}catch(o){Bt(e,t,o)}}},_C=PC.react_stack_bottom_frame.bind(PC),HC={react_stack_bottom_frame:function(e){var t=e.create;return e=e.inst,t=t(),e.destroy=t}},LM=HC.react_stack_bottom_frame.bind(HC),FC={react_stack_bottom_frame:function(e,t,a){try{a()}catch(o){Bt(e,t,o)}}},CM=FC.react_stack_bottom_frame.bind(FC),GC={react_stack_bottom_frame:function(e){var t=e._init;return t(e._payload)}},wM=GC.react_stack_bottom_frame.bind(GC),Qu=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`."),lv=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."),Ep=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."),qp={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.')}},Ds=null,Hc=!1,Ku=null,Fc=0,ut=null,sv,VC=sv=!1,jC={},XC={},YC={};h=function(e,t,a){if(a!==null&&typeof a==="object"&&a._store&&(!a._store.validated&&a.key==null||a._store.validated===2)){if(typeof a._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.");a._store.validated=1;var o=V(e),r=o||"null";if(!jC[r]){jC[r]=!0,a=a._owner,e=e._debugOwner;var n="";e&&typeof e.tag==="number"&&(r=V(e))&&(n=`
|
|
220
220
|
|
|
221
|
-
Check the render method of \``+
|
|
221
|
+
Check the render method of \``+r+"`."),n||o&&(n=`
|
|
222
222
|
|
|
223
|
-
Check the top-level render call using <`+o+">.");var u="";a!=null&&e!==a&&(o=null,typeof a.tag==="number"?o=V(a):typeof a.name==="string"&&(o=a.name),o&&(u=" It was passed a child from "+o+".")),j(t,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.',r,u)})}}};var Es=Dx(!0),_C=Dx(!1),HC=0,FC=1,GC=2,ov=3,Al=!1,VC=!1,nv=null,rv=!1,Zu=de(null),Op=de(0),Po=de(null),tn=null,Wu=1,Fc=2,va=de(0),qp=0,an=1,co=2,_o=4,fo=8,Ju,jC=new Set,XC=new Set,lv=new Set,YC=new Set,_r=0,Ke=null,jt=null,ka=null,Np=!1,ei=!1,Os=!1,Bp=0,Gc=0,Hr=null,hM=0,gM=25,H=null,on=null,Fr=-1,Vc=!1,jc={readContext:ta,use:dl,useCallback:ha,useContext:ha,useEffect:ha,useImperativeHandle:ha,useLayoutEffect:ha,useInsertionEffect:ha,useMemo:ha,useReducer:ha,useRef:ha,useState:ha,useDebugValue:ha,useDeferredValue:ha,useTransition:ha,useSyncExternalStore:ha,useId:ha,useHostTransitionStatus:ha,useFormState:ha,useActionState:ha,useOptimistic:ha,useMemoCache:ha,useCacheRefresh:ha};jc.useEffectEvent=ha;var sv=null,$C=null,uv=null,QC=null,lr=null,vn=null,zp=null;sv={readContext:function(e){return ta(e)},use:dl,useCallback:function(e,t){return H="useCallback",ft(),gu(t),rg(e,t)},useContext:function(e){return H="useContext",ft(),ta(e)},useEffect:function(e,t){return H="useEffect",ft(),gu(t),Mf(e,t)},useImperativeHandle:function(e,t,a){return H="useImperativeHandle",ft(),gu(a),ng(e,t,a)},useInsertionEffect:function(e,t){H="useInsertionEffect",ft(),gu(t),ys(4,co,e,t)},useLayoutEffect:function(e,t){return H="useLayoutEffect",ft(),gu(t),og(e,t)},useMemo:function(e,t){H="useMemo",ft(),gu(t);var a=G.H;G.H=lr;try{return lg(e,t)}finally{G.H=a}},useReducer:function(e,t,a){H="useReducer",ft();var o=G.H;G.H=lr;try{return $h(e,t,a)}finally{G.H=o}},useRef:function(e){return H="useRef",ft(),tg(e)},useState:function(e){H="useState",ft();var t=G.H;G.H=lr;try{return Wh(e)}finally{G.H=t}},useDebugValue:function(){H="useDebugValue",ft()},useDeferredValue:function(e,t){return H="useDeferredValue",ft(),sg(e,t)},useTransition:function(){return H="useTransition",ft(),cg()},useSyncExternalStore:function(e,t,a){return H="useSyncExternalStore",ft(),Kh(e,t,a)},useId:function(){return H="useId",ft(),dg()},useFormState:function(e,t){return H="useFormState",ft(),kf(),vu(e,t)},useActionState:function(e,t){return H="useActionState",ft(),vu(e,t)},useOptimistic:function(e){return H="useOptimistic",ft(),Jh(e)},useHostTransitionStatus:vs,useMemoCache:gs,useCacheRefresh:function(){return H="useCacheRefresh",ft(),fg()},useEffectEvent:function(e){return H="useEffectEvent",ft(),ag(e)}},$C={readContext:function(e){return ta(e)},use:dl,useCallback:function(e,t){return H="useCallback",ne(),rg(e,t)},useContext:function(e){return H="useContext",ne(),ta(e)},useEffect:function(e,t){return H="useEffect",ne(),Mf(e,t)},useImperativeHandle:function(e,t,a){return H="useImperativeHandle",ne(),ng(e,t,a)},useInsertionEffect:function(e,t){H="useInsertionEffect",ne(),ys(4,co,e,t)},useLayoutEffect:function(e,t){return H="useLayoutEffect",ne(),og(e,t)},useMemo:function(e,t){H="useMemo",ne();var a=G.H;G.H=lr;try{return lg(e,t)}finally{G.H=a}},useReducer:function(e,t,a){H="useReducer",ne();var o=G.H;G.H=lr;try{return $h(e,t,a)}finally{G.H=o}},useRef:function(e){return H="useRef",ne(),tg(e)},useState:function(e){H="useState",ne();var t=G.H;G.H=lr;try{return Wh(e)}finally{G.H=t}},useDebugValue:function(){H="useDebugValue",ne()},useDeferredValue:function(e,t){return H="useDeferredValue",ne(),sg(e,t)},useTransition:function(){return H="useTransition",ne(),cg()},useSyncExternalStore:function(e,t,a){return H="useSyncExternalStore",ne(),Kh(e,t,a)},useId:function(){return H="useId",ne(),dg()},useActionState:function(e,t){return H="useActionState",ne(),vu(e,t)},useFormState:function(e,t){return H="useFormState",ne(),kf(),vu(e,t)},useOptimistic:function(e){return H="useOptimistic",ne(),Jh(e)},useHostTransitionStatus:vs,useMemoCache:gs,useCacheRefresh:function(){return H="useCacheRefresh",ne(),fg()},useEffectEvent:function(e){return H="useEffectEvent",ne(),ag(e)}},uv={readContext:function(e){return ta(e)},use:dl,useCallback:function(e,t){return H="useCallback",ne(),Of(e,t)},useContext:function(e){return H="useContext",ne(),ta(e)},useEffect:function(e,t){H="useEffect",ne(),yo(2048,fo,e,t)},useImperativeHandle:function(e,t,a){return H="useImperativeHandle",ne(),Ef(e,t,a)},useInsertionEffect:function(e,t){return H="useInsertionEffect",ne(),yo(4,co,e,t)},useLayoutEffect:function(e,t){return H="useLayoutEffect",ne(),yo(4,_o,e,t)},useMemo:function(e,t){H="useMemo",ne();var a=G.H;G.H=vn;try{return qf(e,t)}finally{G.H=a}},useReducer:function(e,t,a){H="useReducer",ne();var o=G.H;G.H=vn;try{return yu(e,t,a)}finally{G.H=o}},useRef:function(){return H="useRef",ne(),Pt().memoizedState},useState:function(){H="useState",ne();var e=G.H;G.H=vn;try{return yu(fn)}finally{G.H=e}},useDebugValue:function(){H="useDebugValue",ne()},useDeferredValue:function(e,t){return H="useDeferredValue",ne(),Jx(e,t)},useTransition:function(){return H="useTransition",ne(),r0()},useSyncExternalStore:function(e,t,a){return H="useSyncExternalStore",ne(),If(e,t,a)},useId:function(){return H="useId",ne(),Pt().memoizedState},useFormState:function(e){return H="useFormState",ne(),kf(),Rf(e)},useActionState:function(e){return H="useActionState",ne(),Rf(e)},useOptimistic:function(e,t){return H="useOptimistic",ne(),Gx(e,t)},useHostTransitionStatus:vs,useMemoCache:gs,useCacheRefresh:function(){return H="useCacheRefresh",ne(),Pt().memoizedState},useEffectEvent:function(e){return H="useEffectEvent",ne(),Df(e)}},QC={readContext:function(e){return ta(e)},use:dl,useCallback:function(e,t){return H="useCallback",ne(),Of(e,t)},useContext:function(e){return H="useContext",ne(),ta(e)},useEffect:function(e,t){H="useEffect",ne(),yo(2048,fo,e,t)},useImperativeHandle:function(e,t,a){return H="useImperativeHandle",ne(),Ef(e,t,a)},useInsertionEffect:function(e,t){return H="useInsertionEffect",ne(),yo(4,co,e,t)},useLayoutEffect:function(e,t){return H="useLayoutEffect",ne(),yo(4,_o,e,t)},useMemo:function(e,t){H="useMemo",ne();var a=G.H;G.H=zp;try{return qf(e,t)}finally{G.H=a}},useReducer:function(e,t,a){H="useReducer",ne();var o=G.H;G.H=zp;try{return Ki(e,t,a)}finally{G.H=o}},useRef:function(){return H="useRef",ne(),Pt().memoizedState},useState:function(){H="useState",ne();var e=G.H;G.H=zp;try{return Ki(fn)}finally{G.H=e}},useDebugValue:function(){H="useDebugValue",ne()},useDeferredValue:function(e,t){return H="useDeferredValue",ne(),e0(e,t)},useTransition:function(){return H="useTransition",ne(),l0()},useSyncExternalStore:function(e,t,a){return H="useSyncExternalStore",ne(),If(e,t,a)},useId:function(){return H="useId",ne(),Pt().memoizedState},useFormState:function(e){return H="useFormState",ne(),kf(),Af(e)},useActionState:function(e){return H="useActionState",ne(),Af(e)},useOptimistic:function(e,t){return H="useOptimistic",ne(),jx(e,t)},useHostTransitionStatus:vs,useMemoCache:gs,useCacheRefresh:function(){return H="useCacheRefresh",ne(),Pt().memoizedState},useEffectEvent:function(e){return H="useEffectEvent",ne(),Df(e)}},lr={readContext:function(e){return L(),ta(e)},use:function(e){return v(),dl(e)},useCallback:function(e,t){return H="useCallback",v(),ft(),rg(e,t)},useContext:function(e){return H="useContext",v(),ft(),ta(e)},useEffect:function(e,t){return H="useEffect",v(),ft(),Mf(e,t)},useImperativeHandle:function(e,t,a){return H="useImperativeHandle",v(),ft(),ng(e,t,a)},useInsertionEffect:function(e,t){H="useInsertionEffect",v(),ft(),ys(4,co,e,t)},useLayoutEffect:function(e,t){return H="useLayoutEffect",v(),ft(),og(e,t)},useMemo:function(e,t){H="useMemo",v(),ft();var a=G.H;G.H=lr;try{return lg(e,t)}finally{G.H=a}},useReducer:function(e,t,a){H="useReducer",v(),ft();var o=G.H;G.H=lr;try{return $h(e,t,a)}finally{G.H=o}},useRef:function(e){return H="useRef",v(),ft(),tg(e)},useState:function(e){H="useState",v(),ft();var t=G.H;G.H=lr;try{return Wh(e)}finally{G.H=t}},useDebugValue:function(){H="useDebugValue",v(),ft()},useDeferredValue:function(e,t){return H="useDeferredValue",v(),ft(),sg(e,t)},useTransition:function(){return H="useTransition",v(),ft(),cg()},useSyncExternalStore:function(e,t,a){return H="useSyncExternalStore",v(),ft(),Kh(e,t,a)},useId:function(){return H="useId",v(),ft(),dg()},useFormState:function(e,t){return H="useFormState",v(),ft(),vu(e,t)},useActionState:function(e,t){return H="useActionState",v(),ft(),vu(e,t)},useOptimistic:function(e){return H="useOptimistic",v(),ft(),Jh(e)},useMemoCache:function(e){return v(),gs(e)},useHostTransitionStatus:vs,useCacheRefresh:function(){return H="useCacheRefresh",ft(),fg()},useEffectEvent:function(e){return H="useEffectEvent",v(),ft(),ag(e)}},vn={readContext:function(e){return L(),ta(e)},use:function(e){return v(),dl(e)},useCallback:function(e,t){return H="useCallback",v(),ne(),Of(e,t)},useContext:function(e){return H="useContext",v(),ne(),ta(e)},useEffect:function(e,t){H="useEffect",v(),ne(),yo(2048,fo,e,t)},useImperativeHandle:function(e,t,a){return H="useImperativeHandle",v(),ne(),Ef(e,t,a)},useInsertionEffect:function(e,t){return H="useInsertionEffect",v(),ne(),yo(4,co,e,t)},useLayoutEffect:function(e,t){return H="useLayoutEffect",v(),ne(),yo(4,_o,e,t)},useMemo:function(e,t){H="useMemo",v(),ne();var a=G.H;G.H=vn;try{return qf(e,t)}finally{G.H=a}},useReducer:function(e,t,a){H="useReducer",v(),ne();var o=G.H;G.H=vn;try{return yu(e,t,a)}finally{G.H=o}},useRef:function(){return H="useRef",v(),ne(),Pt().memoizedState},useState:function(){H="useState",v(),ne();var e=G.H;G.H=vn;try{return yu(fn)}finally{G.H=e}},useDebugValue:function(){H="useDebugValue",v(),ne()},useDeferredValue:function(e,t){return H="useDeferredValue",v(),ne(),Jx(e,t)},useTransition:function(){return H="useTransition",v(),ne(),r0()},useSyncExternalStore:function(e,t,a){return H="useSyncExternalStore",v(),ne(),If(e,t,a)},useId:function(){return H="useId",v(),ne(),Pt().memoizedState},useFormState:function(e){return H="useFormState",v(),ne(),Rf(e)},useActionState:function(e){return H="useActionState",v(),ne(),Rf(e)},useOptimistic:function(e,t){return H="useOptimistic",v(),ne(),Gx(e,t)},useMemoCache:function(e){return v(),gs(e)},useHostTransitionStatus:vs,useCacheRefresh:function(){return H="useCacheRefresh",ne(),Pt().memoizedState},useEffectEvent:function(e){return H="useEffectEvent",v(),ne(),Df(e)}},zp={readContext:function(e){return L(),ta(e)},use:function(e){return v(),dl(e)},useCallback:function(e,t){return H="useCallback",v(),ne(),Of(e,t)},useContext:function(e){return H="useContext",v(),ne(),ta(e)},useEffect:function(e,t){H="useEffect",v(),ne(),yo(2048,fo,e,t)},useImperativeHandle:function(e,t,a){return H="useImperativeHandle",v(),ne(),Ef(e,t,a)},useInsertionEffect:function(e,t){return H="useInsertionEffect",v(),ne(),yo(4,co,e,t)},useLayoutEffect:function(e,t){return H="useLayoutEffect",v(),ne(),yo(4,_o,e,t)},useMemo:function(e,t){H="useMemo",v(),ne();var a=G.H;G.H=vn;try{return qf(e,t)}finally{G.H=a}},useReducer:function(e,t,a){H="useReducer",v(),ne();var o=G.H;G.H=vn;try{return Ki(e,t,a)}finally{G.H=o}},useRef:function(){return H="useRef",v(),ne(),Pt().memoizedState},useState:function(){H="useState",v(),ne();var e=G.H;G.H=vn;try{return Ki(fn)}finally{G.H=e}},useDebugValue:function(){H="useDebugValue",v(),ne()},useDeferredValue:function(e,t){return H="useDeferredValue",v(),ne(),e0(e,t)},useTransition:function(){return H="useTransition",v(),ne(),l0()},useSyncExternalStore:function(e,t,a){return H="useSyncExternalStore",v(),ne(),If(e,t,a)},useId:function(){return H="useId",v(),ne(),Pt().memoizedState},useFormState:function(e){return H="useFormState",v(),ne(),Af(e)},useActionState:function(e){return H="useActionState",v(),ne(),Af(e)},useOptimistic:function(e,t){return H="useOptimistic",v(),ne(),jx(e,t)},useMemoCache:function(e){return v(),gs(e)},useHostTransitionStatus:vs,useCacheRefresh:function(){return H="useCacheRefresh",ne(),Pt().memoizedState},useEffectEvent:function(e){return H="useEffectEvent",v(),ne(),Df(e)}};var KC={},ZC=new Set,WC=new Set,JC=new Set,ew=new Set,tw=new Set,aw=new Set,ow=new Set,nw=new Set,rw=new Set,lw=new Set;Object.freeze(KC);var iv={enqueueSetState:function(e,t,a){e=e._reactInternals;var o=Oo(e),n=sl(o);n.payload=t,a!==void 0&&a!==null&&(mg(a),n.callback=a),t=ul(e,n,o),t!==null&&(zn(o,"this.setState()",e),ia(t,e,o),Xi(t,e,o))},enqueueReplaceState:function(e,t,a){e=e._reactInternals;var o=Oo(e),n=sl(o);n.tag=FC,n.payload=t,a!==void 0&&a!==null&&(mg(a),n.callback=a),t=ul(e,n,o),t!==null&&(zn(o,"this.replaceState()",e),ia(t,e,o),Xi(t,e,o))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var a=Oo(e),o=sl(a);o.tag=GC,t!==void 0&&t!==null&&(mg(t),o.callback=t),t=ul(e,o,a),t!==null&&(zn(a,"this.forceUpdate()",e),ia(t,e,a),Xi(t,e,a))}},ti=null,cv=null,dv=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."),Ta=!1,sw={},uw={},iw={},cw={},ai=!1,dw={},Up={},fv={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null},fw=!1,pw=null;pw=new Set;var Gr=!1,Ia=!1,pv=!1,mw=typeof WeakSet==="function"?WeakSet:Set,_a=null,oi=null,ni=null,Ra=null,xo=!1,bn=null,Oa=!1,Xc=8192,yM={getCacheForType:function(e){var t=ta(Ca),a=t.data.get(e);return a===void 0&&(a=e(),t.data.set(e,a)),a},cacheSignal:function(){return ta(Ca).controller.signal},getOwner:function(){return Bo}};if(typeof Symbol==="function"&&Symbol.for){var Yc=Symbol.for;Yc("selector.component"),Yc("selector.has_pseudo_class"),Yc("selector.role"),Yc("selector.test_id"),Yc("selector.text")}var vM=[],bM=typeof WeakMap==="function"?WeakMap:Map,Ha=0,qa=2,Ho=4,Vr=0,$c=1,qs=2,Pp=3,Ml=4,_p=6,hw=5,Tt=Ha,Xt=null,ct=null,it=0,So=0,Hp=1,Ns=2,Qc=3,gw=4,mv=5,Kc=6,Fp=7,hv=8,Bs=9,_t=So,Fo=null,Dl=!1,ri=!1,gv=!1,sr=0,la=Vr,El=0,Ol=0,yv=0,Lo=0,zs=0,Zc=null,po=null,Gp=!1,Vp=0,yw=0,vw=300,jp=1/0,bw=500,Wc=null,ga=null,ql=null,Xp=0,vv=1,bv=2,xw=3,Nl=0,Sw=1,Lw=2,Cw=3,ww=4,Yp=5,Aa=0,Bl=null,li=null,xn=0,xv=0,Sv=-0,Lv=null,kw=null,Tw=null,Sn=Xp,Iw=null,xM=50,Jc=0,Cv=null,wv=!1,$p=!1,SM=50,Us=0,ed=null,si=!1,Qp=null,Rw=!1,Aw=new Set,LM={},Kp=null,ui=null,kv=!1,Tv=!1,Zp=!1,Iv=!1,zl=0,Rv={};(function(){for(var e=0;e<Py.length;e++){var t=Py[e],a=t.toLowerCase();t=t[0].toUpperCase()+t.slice(1),dn(a,"on"+t)}dn(rC,"onAnimationEnd"),dn(lC,"onAnimationIteration"),dn(sC,"onAnimationStart"),dn("dblclick","onDoubleClick"),dn("focusin","onFocus"),dn("focusout","onBlur"),dn(WA,"onTransitionRun"),dn(JA,"onTransitionStart"),dn(eM,"onTransitionCancel"),dn(uC,"onTransitionEnd")})(),To("onMouseEnter",["mouseout","mouseover"]),To("onMouseLeave",["mouseout","mouseover"]),To("onPointerEnter",["pointerout","pointerover"]),To("onPointerLeave",["pointerout","pointerover"]),Wa("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),Wa("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),Wa("onBeforeInput",["compositionend","keypress","textInput","paste"]),Wa("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),Wa("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),Wa("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var td="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(" "),Av=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(td)),Wp="_reactListening"+Math.random().toString(36).slice(2),Mw=!1,Dw=!1,Jp=!1,Ew=!1,em=!1,tm=!1,Ow=!1,am={},CM=/\r\n?/g,wM=/\u0000|\uFFFD/g,Ps="http://www.w3.org/1999/xlink",Mv="http://www.w3.org/XML/1998/namespace",kM="javascript:throw new Error('React form unexpectedly submitted.')",TM="suppressHydrationWarning",_s="&",om="/&",ad="$",od="/$",Ul="$?",Hs="$~",ii="$!",IM="html",RM="body",AM="head",Dv="F!",qw="F",Nw="loading",MM="style",jr=0,ci=1,nm=2,Ev=null,Ov=null,Bw={dialog:!0,webview:!0},qv=null,nd=void 0,zw=typeof setTimeout==="function"?setTimeout:void 0,DM=typeof clearTimeout==="function"?clearTimeout:void 0,Fs=-1,Uw=typeof Promise==="function"?Promise:void 0,EM=typeof queueMicrotask==="function"?queueMicrotask:typeof Uw<"u"?function(e){return Uw.resolve(null).then(e).catch(gR)}:zw,Nv=null,Gs=0,rd=1,Pw=2,_w=3,nn=4,rn=new Map,Hw=new Set,Xr=zt.d;zt.d={f:function(){var e=Xr.f(),t=Cu();return e||t},r:function(e){var t=Je(e);t!==null&&t.tag===5&&t.type==="form"?n0(t):Xr.r(e)},D:function(e){Xr.D(e),ZS("dns-prefetch",e,null)},C:function(e,t){Xr.C(e,t),ZS("preconnect",e,t)},L:function(e,t,a){Xr.L(e,t,a);var o=di;if(o&&e&&t){var n='link[rel="preload"][as="'+Xo(t)+'"]';t==="image"?a&&a.imageSrcSet?(n+='[imagesrcset="'+Xo(a.imageSrcSet)+'"]',typeof a.imageSizes==="string"&&(n+='[imagesizes="'+Xo(a.imageSizes)+'"]')):n+='[href="'+Xo(e)+'"]':n+='[href="'+Xo(e)+'"]';var r=n;switch(t){case"style":r=Tu(e);break;case"script":r=Iu(e)}rn.has(r)||(e=pt({rel:"preload",href:t==="image"&&a&&a.imageSrcSet?void 0:e,as:t},a),rn.set(r,e),o.querySelector(n)!==null||t==="style"&&o.querySelector(dc(r))||t==="script"&&o.querySelector(fc(r))||(t=o.createElement("link"),$a(t,"link",e),qe(t),o.head.appendChild(t)))}},m:function(e,t){Xr.m(e,t);var a=di;if(a&&e){var o=t&&typeof t.as==="string"?t.as:"script",n='link[rel="modulepreload"][as="'+Xo(o)+'"][href="'+Xo(e)+'"]',r=n;switch(o){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":r=Iu(e)}if(!rn.has(r)&&(e=pt({rel:"modulepreload",href:e},t),rn.set(r,e),a.querySelector(n)===null)){switch(o){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(a.querySelector(fc(r)))return}o=a.createElement("link"),$a(o,"link",e),qe(o),a.head.appendChild(o)}}},X:function(e,t){Xr.X(e,t);var a=di;if(a&&e){var o=It(a).hoistableScripts,n=Iu(e),r=o.get(n);r||(r=a.querySelector(fc(n)),r||(e=pt({src:e,async:!0},t),(t=rn.get(n))&&ny(e,t),r=a.createElement("script"),qe(r),$a(r,"link",e),a.head.appendChild(r)),r={type:"script",instance:r,count:1,state:null},o.set(n,r))}},S:function(e,t,a){Xr.S(e,t,a);var o=di;if(o&&e){var n=It(o).hoistableStyles,r=Tu(e);t=t||"default";var u=n.get(r);if(!u){var f={loading:Gs,preload:null};if(u=o.querySelector(dc(r)))f.loading=rd|nn;else{e=pt({rel:"stylesheet",href:e,"data-precedence":t},a),(a=rn.get(r))&&oy(e,a);var m=u=o.createElement("link");qe(m),$a(m,"link",e),m._p=new Promise(function(y,O){m.onload=y,m.onerror=O}),m.addEventListener("load",function(){f.loading|=rd}),m.addEventListener("error",function(){f.loading|=Pw}),f.loading|=nn,Jf(u,t,o)}u={type:"stylesheet",instance:u,count:1,state:f},n.set(r,u)}}},M:function(e,t){Xr.M(e,t);var a=di;if(a&&e){var o=It(a).hoistableScripts,n=Iu(e),r=o.get(n);r||(r=a.querySelector(fc(n)),r||(e=pt({src:e,async:!0,type:"module"},t),(t=rn.get(n))&&ny(e,t),r=a.createElement("script"),qe(r),$a(r,"link",e),a.head.appendChild(r)),r={type:"script",instance:r,count:1,state:null},o.set(n,r))}}};var di=typeof document>"u"?null:document,rm=null,OM=60000,qM=800,NM=500,Bv=0,zv=null,lm=null,Vs=KR,ld={$$typeof:Zn,Provider:null,Consumer:null,_currentValue:Vs,_currentValue2:Vs,_threadCount:0},Fw="%c%s%c",Gw="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",Vw="",sm=" ",BM=Function.prototype.bind,jw=!1,Xw=null,Yw=null,$w=null,Qw=null,Kw=null,Zw=null,Ww=null,Jw=null,ek=null,tk=null;Xw=function(e,t,a,o){t=l(e,t),t!==null&&(a=c(t.memoizedState,a,0,o),t.memoizedState=a,t.baseState=a,e.memoizedProps=pt({},e.memoizedProps),a=Ja(e,2),a!==null&&ia(a,e,2))},Yw=function(e,t,a){t=l(e,t),t!==null&&(a=p(t.memoizedState,a,0),t.memoizedState=a,t.baseState=a,e.memoizedProps=pt({},e.memoizedProps),a=Ja(e,2),a!==null&&ia(a,e,2))},$w=function(e,t,a,o){t=l(e,t),t!==null&&(a=i(t.memoizedState,a,o),t.memoizedState=a,t.baseState=a,e.memoizedProps=pt({},e.memoizedProps),a=Ja(e,2),a!==null&&ia(a,e,2))},Qw=function(e,t,a){e.pendingProps=c(e.memoizedProps,t,0,a),e.alternate&&(e.alternate.pendingProps=e.pendingProps),t=Ja(e,2),t!==null&&ia(t,e,2)},Kw=function(e,t){e.pendingProps=p(e.memoizedProps,t,0),e.alternate&&(e.alternate.pendingProps=e.pendingProps),t=Ja(e,2),t!==null&&ia(t,e,2)},Zw=function(e,t,a){e.pendingProps=i(e.memoizedProps,t,a),e.alternate&&(e.alternate.pendingProps=e.pendingProps),t=Ja(e,2),t!==null&&ia(t,e,2)},Ww=function(e){var t=Ja(e,2);t!==null&&ia(t,e,2)},Jw=function(e){var t=iu(),a=Ja(e,t);a!==null&&ia(a,e,t)},ek=function(e){g=e},tk=function(e){b=e};var um=!0,im=null,Uv=!1,Pl=null,_l=null,Hl=null,sd=new Map,ud=new Map,Fl=[],zM="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(" "),cm=null;if(np.prototype.render=cy.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error("Cannot update an unmounted root.");var a=arguments;typeof a[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()."):D(a[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 a[1]<"u"&&console.error("You passed a second argument to root.render(...) but it only accepts one argument."),a=e;var o=t.current,n=Oo(o);ry(o,n,a,t,null,null)},np.prototype.unmount=cy.prototype.unmount=function(){var e=arguments;if(typeof e[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()."),e=this._internalRoot,e!==null){this._internalRoot=null;var t=e.containerInfo;(Tt&(qa|Ho))!==Ha&&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."),ry(e.current,2,null,e,null,null),Cu(),t[vl]=null}},np.prototype.unstable_scheduleHydration=function(e){if(e){var t=z();e={blockedOn:null,target:e,priority:t};for(var a=0;a<Fl.length&&t!==0&&t<Fl[a].priority;a++);Fl.splice(a,0,e),a===0&&dL(e)}},function(){var e=pi.version;if(e!=="19.2.7")throw Error(`Incompatible React versions: The "react" and "react-dom" packages must have the exact same version. Instead got:
|
|
223
|
+
Check the top-level render call using <`+o+">.");var u="";a!=null&&e!==a&&(o=null,typeof a.tag==="number"?o=V(a):typeof a.name==="string"&&(o=a.name),o&&(u=" It was passed a child from "+o+".")),Y(t,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.',n,u)})}}};var Es=Px(!0),$C=Px(!1),QC=0,KC=1,ZC=2,uv=3,Al=!1,WC=!1,iv=null,cv=!1,Zu=de(null),Op=de(0),Po=de(null),tr=null,Wu=1,Gc=2,ba=de(0),Np=0,ar=1,fo=2,_o=4,po=8,Ju,JC=new Set,ew=new Set,dv=new Set,tw=new Set,_n=0,Ke=null,jt=null,ka=null,Bp=!1,ei=!1,qs=!1,zp=0,Vc=0,Hn=null,kM=0,IM=25,H=null,or=null,Fn=-1,jc=!1,Xc={readContext:ta,use:dl,useCallback:ha,useContext:ha,useEffect:ha,useImperativeHandle:ha,useLayoutEffect:ha,useInsertionEffect:ha,useMemo:ha,useReducer:ha,useRef:ha,useState:ha,useDebugValue:ha,useDeferredValue:ha,useTransition:ha,useSyncExternalStore:ha,useId:ha,useHostTransitionStatus:ha,useFormState:ha,useActionState:ha,useOptimistic:ha,useMemoCache:ha,useCacheRefresh:ha};Xc.useEffectEvent=ha;var fv=null,aw=null,pv=null,ow=null,nn=null,yr=null,Up=null;fv={readContext:function(e){return ta(e)},use:dl,useCallback:function(e,t){return H="useCallback",ft(),gu(t),cg(e,t)},useContext:function(e){return H="useContext",ft(),ta(e)},useEffect:function(e,t){return H="useEffect",ft(),gu(t),Df(e,t)},useImperativeHandle:function(e,t,a){return H="useImperativeHandle",ft(),gu(a),ig(e,t,a)},useInsertionEffect:function(e,t){H="useInsertionEffect",ft(),gu(t),ys(4,fo,e,t)},useLayoutEffect:function(e,t){return H="useLayoutEffect",ft(),gu(t),ug(e,t)},useMemo:function(e,t){H="useMemo",ft(),gu(t);var a=j.H;j.H=nn;try{return dg(e,t)}finally{j.H=a}},useReducer:function(e,t,a){H="useReducer",ft();var o=j.H;j.H=nn;try{return Jh(e,t,a)}finally{j.H=o}},useRef:function(e){return H="useRef",ft(),lg(e)},useState:function(e){H="useState",ft();var t=j.H;j.H=nn;try{return og(e)}finally{j.H=t}},useDebugValue:function(){H="useDebugValue",ft()},useDeferredValue:function(e,t){return H="useDeferredValue",ft(),fg(e,t)},useTransition:function(){return H="useTransition",ft(),hg()},useSyncExternalStore:function(e,t,a){return H="useSyncExternalStore",ft(),tg(e,t,a)},useId:function(){return H="useId",ft(),gg()},useFormState:function(e,t){return H="useFormState",ft(),If(),vu(e,t)},useActionState:function(e,t){return H="useActionState",ft(),vu(e,t)},useOptimistic:function(e){return H="useOptimistic",ft(),rg(e)},useHostTransitionStatus:vs,useMemoCache:gs,useCacheRefresh:function(){return H="useCacheRefresh",ft(),yg()},useEffectEvent:function(e){return H="useEffectEvent",ft(),sg(e)}},aw={readContext:function(e){return ta(e)},use:dl,useCallback:function(e,t){return H="useCallback",oe(),cg(e,t)},useContext:function(e){return H="useContext",oe(),ta(e)},useEffect:function(e,t){return H="useEffect",oe(),Df(e,t)},useImperativeHandle:function(e,t,a){return H="useImperativeHandle",oe(),ig(e,t,a)},useInsertionEffect:function(e,t){H="useInsertionEffect",oe(),ys(4,fo,e,t)},useLayoutEffect:function(e,t){return H="useLayoutEffect",oe(),ug(e,t)},useMemo:function(e,t){H="useMemo",oe();var a=j.H;j.H=nn;try{return dg(e,t)}finally{j.H=a}},useReducer:function(e,t,a){H="useReducer",oe();var o=j.H;j.H=nn;try{return Jh(e,t,a)}finally{j.H=o}},useRef:function(e){return H="useRef",oe(),lg(e)},useState:function(e){H="useState",oe();var t=j.H;j.H=nn;try{return og(e)}finally{j.H=t}},useDebugValue:function(){H="useDebugValue",oe()},useDeferredValue:function(e,t){return H="useDeferredValue",oe(),fg(e,t)},useTransition:function(){return H="useTransition",oe(),hg()},useSyncExternalStore:function(e,t,a){return H="useSyncExternalStore",oe(),tg(e,t,a)},useId:function(){return H="useId",oe(),gg()},useActionState:function(e,t){return H="useActionState",oe(),vu(e,t)},useFormState:function(e,t){return H="useFormState",oe(),If(),vu(e,t)},useOptimistic:function(e){return H="useOptimistic",oe(),rg(e)},useHostTransitionStatus:vs,useMemoCache:gs,useCacheRefresh:function(){return H="useCacheRefresh",oe(),yg()},useEffectEvent:function(e){return H="useEffectEvent",oe(),sg(e)}},pv={readContext:function(e){return ta(e)},use:dl,useCallback:function(e,t){return H="useCallback",oe(),Of(e,t)},useContext:function(e){return H="useContext",oe(),ta(e)},useEffect:function(e,t){H="useEffect",oe(),vo(2048,po,e,t)},useImperativeHandle:function(e,t,a){return H="useImperativeHandle",oe(),qf(e,t,a)},useInsertionEffect:function(e,t){return H="useInsertionEffect",oe(),vo(4,fo,e,t)},useLayoutEffect:function(e,t){return H="useLayoutEffect",oe(),vo(4,_o,e,t)},useMemo:function(e,t){H="useMemo",oe();var a=j.H;j.H=yr;try{return Nf(e,t)}finally{j.H=a}},useReducer:function(e,t,a){H="useReducer",oe();var o=j.H;j.H=yr;try{return yu(e,t,a)}finally{j.H=o}},useRef:function(){return H="useRef",oe(),Pt().memoizedState},useState:function(){H="useState",oe();var e=j.H;j.H=yr;try{return yu(dr)}finally{j.H=e}},useDebugValue:function(){H="useDebugValue",oe()},useDeferredValue:function(e,t){return H="useDeferredValue",oe(),sS(e,t)},useTransition:function(){return H="useTransition",oe(),pS()},useSyncExternalStore:function(e,t,a){return H="useSyncExternalStore",oe(),Rf(e,t,a)},useId:function(){return H="useId",oe(),Pt().memoizedState},useFormState:function(e){return H="useFormState",oe(),If(),Af(e)},useActionState:function(e){return H="useActionState",oe(),Af(e)},useOptimistic:function(e,t){return H="useOptimistic",oe(),Zx(e,t)},useHostTransitionStatus:vs,useMemoCache:gs,useCacheRefresh:function(){return H="useCacheRefresh",oe(),Pt().memoizedState},useEffectEvent:function(e){return H="useEffectEvent",oe(),Ef(e)}},ow={readContext:function(e){return ta(e)},use:dl,useCallback:function(e,t){return H="useCallback",oe(),Of(e,t)},useContext:function(e){return H="useContext",oe(),ta(e)},useEffect:function(e,t){H="useEffect",oe(),vo(2048,po,e,t)},useImperativeHandle:function(e,t,a){return H="useImperativeHandle",oe(),qf(e,t,a)},useInsertionEffect:function(e,t){return H="useInsertionEffect",oe(),vo(4,fo,e,t)},useLayoutEffect:function(e,t){return H="useLayoutEffect",oe(),vo(4,_o,e,t)},useMemo:function(e,t){H="useMemo",oe();var a=j.H;j.H=Up;try{return Nf(e,t)}finally{j.H=a}},useReducer:function(e,t,a){H="useReducer",oe();var o=j.H;j.H=Up;try{return Zi(e,t,a)}finally{j.H=o}},useRef:function(){return H="useRef",oe(),Pt().memoizedState},useState:function(){H="useState",oe();var e=j.H;j.H=Up;try{return Zi(dr)}finally{j.H=e}},useDebugValue:function(){H="useDebugValue",oe()},useDeferredValue:function(e,t){return H="useDeferredValue",oe(),uS(e,t)},useTransition:function(){return H="useTransition",oe(),mS()},useSyncExternalStore:function(e,t,a){return H="useSyncExternalStore",oe(),Rf(e,t,a)},useId:function(){return H="useId",oe(),Pt().memoizedState},useFormState:function(e){return H="useFormState",oe(),If(),Mf(e)},useActionState:function(e){return H="useActionState",oe(),Mf(e)},useOptimistic:function(e,t){return H="useOptimistic",oe(),Jx(e,t)},useHostTransitionStatus:vs,useMemoCache:gs,useCacheRefresh:function(){return H="useCacheRefresh",oe(),Pt().memoizedState},useEffectEvent:function(e){return H="useEffectEvent",oe(),Ef(e)}},nn={readContext:function(e){return S(),ta(e)},use:function(e){return b(),dl(e)},useCallback:function(e,t){return H="useCallback",b(),ft(),cg(e,t)},useContext:function(e){return H="useContext",b(),ft(),ta(e)},useEffect:function(e,t){return H="useEffect",b(),ft(),Df(e,t)},useImperativeHandle:function(e,t,a){return H="useImperativeHandle",b(),ft(),ig(e,t,a)},useInsertionEffect:function(e,t){H="useInsertionEffect",b(),ft(),ys(4,fo,e,t)},useLayoutEffect:function(e,t){return H="useLayoutEffect",b(),ft(),ug(e,t)},useMemo:function(e,t){H="useMemo",b(),ft();var a=j.H;j.H=nn;try{return dg(e,t)}finally{j.H=a}},useReducer:function(e,t,a){H="useReducer",b(),ft();var o=j.H;j.H=nn;try{return Jh(e,t,a)}finally{j.H=o}},useRef:function(e){return H="useRef",b(),ft(),lg(e)},useState:function(e){H="useState",b(),ft();var t=j.H;j.H=nn;try{return og(e)}finally{j.H=t}},useDebugValue:function(){H="useDebugValue",b(),ft()},useDeferredValue:function(e,t){return H="useDeferredValue",b(),ft(),fg(e,t)},useTransition:function(){return H="useTransition",b(),ft(),hg()},useSyncExternalStore:function(e,t,a){return H="useSyncExternalStore",b(),ft(),tg(e,t,a)},useId:function(){return H="useId",b(),ft(),gg()},useFormState:function(e,t){return H="useFormState",b(),ft(),vu(e,t)},useActionState:function(e,t){return H="useActionState",b(),ft(),vu(e,t)},useOptimistic:function(e){return H="useOptimistic",b(),ft(),rg(e)},useMemoCache:function(e){return b(),gs(e)},useHostTransitionStatus:vs,useCacheRefresh:function(){return H="useCacheRefresh",ft(),yg()},useEffectEvent:function(e){return H="useEffectEvent",b(),ft(),sg(e)}},yr={readContext:function(e){return S(),ta(e)},use:function(e){return b(),dl(e)},useCallback:function(e,t){return H="useCallback",b(),oe(),Of(e,t)},useContext:function(e){return H="useContext",b(),oe(),ta(e)},useEffect:function(e,t){H="useEffect",b(),oe(),vo(2048,po,e,t)},useImperativeHandle:function(e,t,a){return H="useImperativeHandle",b(),oe(),qf(e,t,a)},useInsertionEffect:function(e,t){return H="useInsertionEffect",b(),oe(),vo(4,fo,e,t)},useLayoutEffect:function(e,t){return H="useLayoutEffect",b(),oe(),vo(4,_o,e,t)},useMemo:function(e,t){H="useMemo",b(),oe();var a=j.H;j.H=yr;try{return Nf(e,t)}finally{j.H=a}},useReducer:function(e,t,a){H="useReducer",b(),oe();var o=j.H;j.H=yr;try{return yu(e,t,a)}finally{j.H=o}},useRef:function(){return H="useRef",b(),oe(),Pt().memoizedState},useState:function(){H="useState",b(),oe();var e=j.H;j.H=yr;try{return yu(dr)}finally{j.H=e}},useDebugValue:function(){H="useDebugValue",b(),oe()},useDeferredValue:function(e,t){return H="useDeferredValue",b(),oe(),sS(e,t)},useTransition:function(){return H="useTransition",b(),oe(),pS()},useSyncExternalStore:function(e,t,a){return H="useSyncExternalStore",b(),oe(),Rf(e,t,a)},useId:function(){return H="useId",b(),oe(),Pt().memoizedState},useFormState:function(e){return H="useFormState",b(),oe(),Af(e)},useActionState:function(e){return H="useActionState",b(),oe(),Af(e)},useOptimistic:function(e,t){return H="useOptimistic",b(),oe(),Zx(e,t)},useMemoCache:function(e){return b(),gs(e)},useHostTransitionStatus:vs,useCacheRefresh:function(){return H="useCacheRefresh",oe(),Pt().memoizedState},useEffectEvent:function(e){return H="useEffectEvent",b(),oe(),Ef(e)}},Up={readContext:function(e){return S(),ta(e)},use:function(e){return b(),dl(e)},useCallback:function(e,t){return H="useCallback",b(),oe(),Of(e,t)},useContext:function(e){return H="useContext",b(),oe(),ta(e)},useEffect:function(e,t){H="useEffect",b(),oe(),vo(2048,po,e,t)},useImperativeHandle:function(e,t,a){return H="useImperativeHandle",b(),oe(),qf(e,t,a)},useInsertionEffect:function(e,t){return H="useInsertionEffect",b(),oe(),vo(4,fo,e,t)},useLayoutEffect:function(e,t){return H="useLayoutEffect",b(),oe(),vo(4,_o,e,t)},useMemo:function(e,t){H="useMemo",b(),oe();var a=j.H;j.H=yr;try{return Nf(e,t)}finally{j.H=a}},useReducer:function(e,t,a){H="useReducer",b(),oe();var o=j.H;j.H=yr;try{return Zi(e,t,a)}finally{j.H=o}},useRef:function(){return H="useRef",b(),oe(),Pt().memoizedState},useState:function(){H="useState",b(),oe();var e=j.H;j.H=yr;try{return Zi(dr)}finally{j.H=e}},useDebugValue:function(){H="useDebugValue",b(),oe()},useDeferredValue:function(e,t){return H="useDeferredValue",b(),oe(),uS(e,t)},useTransition:function(){return H="useTransition",b(),oe(),mS()},useSyncExternalStore:function(e,t,a){return H="useSyncExternalStore",b(),oe(),Rf(e,t,a)},useId:function(){return H="useId",b(),oe(),Pt().memoizedState},useFormState:function(e){return H="useFormState",b(),oe(),Mf(e)},useActionState:function(e){return H="useActionState",b(),oe(),Mf(e)},useOptimistic:function(e,t){return H="useOptimistic",b(),oe(),Jx(e,t)},useMemoCache:function(e){return b(),gs(e)},useHostTransitionStatus:vs,useCacheRefresh:function(){return H="useCacheRefresh",oe(),Pt().memoizedState},useEffectEvent:function(e){return H="useEffectEvent",b(),oe(),Ef(e)}};var rw={},nw=new Set,lw=new Set,sw=new Set,uw=new Set,iw=new Set,cw=new Set,dw=new Set,fw=new Set,pw=new Set,mw=new Set;Object.freeze(rw);var mv={enqueueSetState:function(e,t,a){e=e._reactInternals;var o=qo(e),r=sl(o);r.payload=t,a!==void 0&&a!==null&&(bg(a),r.callback=a),t=ul(e,r,o),t!==null&&(Br(o,"this.setState()",e),ia(t,e,o),Yi(t,e,o))},enqueueReplaceState:function(e,t,a){e=e._reactInternals;var o=qo(e),r=sl(o);r.tag=KC,r.payload=t,a!==void 0&&a!==null&&(bg(a),r.callback=a),t=ul(e,r,o),t!==null&&(Br(o,"this.replaceState()",e),ia(t,e,o),Yi(t,e,o))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var a=qo(e),o=sl(a);o.tag=ZC,t!==void 0&&t!==null&&(bg(t),o.callback=t),t=ul(e,o,a),t!==null&&(Br(a,"this.forceUpdate()",e),ia(t,e,a),Yi(t,e,a))}},ti=null,hv=null,gv=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."),Ia=!1,hw={},gw={},yw={},vw={},ai=!1,bw={},Pp={},yv={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null},xw=!1,Sw=null;Sw=new Set;var Gn=!1,Ta=!1,vv=!1,Lw=typeof WeakSet==="function"?WeakSet:Set,_a=null,oi=null,ri=null,Ra=null,So=!1,vr=null,Oa=!1,Yc=8192,TM={getCacheForType:function(e){var t=ta(Ca),a=t.data.get(e);return a===void 0&&(a=e(),t.data.set(e,a)),a},cacheSignal:function(){return ta(Ca).controller.signal},getOwner:function(){return Bo}};if(typeof Symbol==="function"&&Symbol.for){var $c=Symbol.for;$c("selector.component"),$c("selector.has_pseudo_class"),$c("selector.role"),$c("selector.test_id"),$c("selector.text")}var RM=[],AM=typeof WeakMap==="function"?WeakMap:Map,Ha=0,Na=2,Ho=4,Vn=0,Qc=1,Os=2,_p=3,Ml=4,Hp=6,Cw=5,It=Ha,Xt=null,dt=null,it=0,Lo=0,Fp=1,Ns=2,Kc=3,ww=4,bv=5,Zc=6,Gp=7,xv=8,Bs=9,_t=Lo,Fo=null,Dl=!1,ni=!1,Sv=!1,ln=0,la=Vn,El=0,ql=0,Lv=0,Co=0,zs=0,Wc=null,mo=null,Vp=!1,jp=0,kw=0,Iw=300,Xp=1/0,Tw=500,Jc=null,ga=null,Ol=null,Yp=0,Cv=1,wv=2,Rw=3,Nl=0,Aw=1,Mw=2,Dw=3,Ew=4,$p=5,Aa=0,Bl=null,li=null,br=0,kv=0,Iv=-0,Tv=null,qw=null,Ow=null,xr=Yp,Nw=null,MM=50,ed=0,Rv=null,Av=!1,Qp=!1,DM=50,Us=0,td=null,si=!1,Kp=null,Bw=!1,zw=new Set,EM={},Zp=null,ui=null,Mv=!1,Dv=!1,Wp=!1,Ev=!1,zl=0,qv={};(function(){for(var e=0;e<Vy.length;e++){var t=Vy[e],a=t.toLowerCase();t=t[0].toUpperCase()+t.slice(1),cr(a,"on"+t)}cr(pC,"onAnimationEnd"),cr(mC,"onAnimationIteration"),cr(hC,"onAnimationStart"),cr("dblclick","onDoubleClick"),cr("focusin","onFocus"),cr("focusout","onBlur"),cr(uM,"onTransitionRun"),cr(iM,"onTransitionStart"),cr(cM,"onTransitionCancel"),cr(gC,"onTransitionEnd")})(),Io("onMouseEnter",["mouseout","mouseover"]),Io("onMouseLeave",["mouseout","mouseover"]),Io("onPointerEnter",["pointerout","pointerover"]),Io("onPointerLeave",["pointerout","pointerover"]),Wa("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),Wa("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),Wa("onBeforeInput",["compositionend","keypress","textInput","paste"]),Wa("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),Wa("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),Wa("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var ad="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(" "),Ov=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(ad)),Jp="_reactListening"+Math.random().toString(36).slice(2),Uw=!1,Pw=!1,em=!1,_w=!1,tm=!1,am=!1,Hw=!1,om={},qM=/\r\n?/g,OM=/\u0000|\uFFFD/g,Ps="http://www.w3.org/1999/xlink",Nv="http://www.w3.org/XML/1998/namespace",NM="javascript:throw new Error('React form unexpectedly submitted.')",BM="suppressHydrationWarning",_s="&",rm="/&",od="$",rd="/$",Ul="$?",Hs="$~",ii="$!",zM="html",UM="body",PM="head",Bv="F!",Fw="F",Gw="loading",_M="style",jn=0,ci=1,nm=2,zv=null,Uv=null,Vw={dialog:!0,webview:!0},Pv=null,nd=void 0,jw=typeof setTimeout==="function"?setTimeout:void 0,HM=typeof clearTimeout==="function"?clearTimeout:void 0,Fs=-1,Xw=typeof Promise==="function"?Promise:void 0,FM=typeof queueMicrotask==="function"?queueMicrotask:typeof Xw<"u"?function(e){return Xw.resolve(null).then(e).catch(IR)}:jw,_v=null,Gs=0,ld=1,Yw=2,$w=3,rr=4,nr=new Map,Qw=new Set,Xn=zt.d;zt.d={f:function(){var e=Xn.f(),t=Cu();return e||t},r:function(e){var t=Je(e);t!==null&&t.tag===5&&t.type==="form"?fS(t):Xn.r(e)},D:function(e){Xn.D(e),nL("dns-prefetch",e,null)},C:function(e,t){Xn.C(e,t),nL("preconnect",e,t)},L:function(e,t,a){Xn.L(e,t,a);var o=di;if(o&&e&&t){var r='link[rel="preload"][as="'+Xo(t)+'"]';t==="image"?a&&a.imageSrcSet?(r+='[imagesrcset="'+Xo(a.imageSrcSet)+'"]',typeof a.imageSizes==="string"&&(r+='[imagesizes="'+Xo(a.imageSizes)+'"]')):r+='[href="'+Xo(e)+'"]':r+='[href="'+Xo(e)+'"]';var n=r;switch(t){case"style":n=Iu(e);break;case"script":n=Tu(e)}nr.has(n)||(e=pt({rel:"preload",href:t==="image"&&a&&a.imageSrcSet?void 0:e,as:t},a),nr.set(n,e),o.querySelector(r)!==null||t==="style"&&o.querySelector(fc(n))||t==="script"&&o.querySelector(pc(n))||(t=o.createElement("link"),$a(t,"link",e),Oe(t),o.head.appendChild(t)))}},m:function(e,t){Xn.m(e,t);var a=di;if(a&&e){var o=t&&typeof t.as==="string"?t.as:"script",r='link[rel="modulepreload"][as="'+Xo(o)+'"][href="'+Xo(e)+'"]',n=r;switch(o){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":n=Tu(e)}if(!nr.has(n)&&(e=pt({rel:"modulepreload",href:e},t),nr.set(n,e),a.querySelector(r)===null)){switch(o){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(a.querySelector(pc(n)))return}o=a.createElement("link"),$a(o,"link",e),Oe(o),a.head.appendChild(o)}}},X:function(e,t){Xn.X(e,t);var a=di;if(a&&e){var o=Tt(a).hoistableScripts,r=Tu(e),n=o.get(r);n||(n=a.querySelector(pc(r)),n||(e=pt({src:e,async:!0},t),(t=nr.get(r))&&iy(e,t),n=a.createElement("script"),Oe(n),$a(n,"link",e),a.head.appendChild(n)),n={type:"script",instance:n,count:1,state:null},o.set(r,n))}},S:function(e,t,a){Xn.S(e,t,a);var o=di;if(o&&e){var r=Tt(o).hoistableStyles,n=Iu(e);t=t||"default";var u=r.get(n);if(!u){var f={loading:Gs,preload:null};if(u=o.querySelector(fc(n)))f.loading=ld|rr;else{e=pt({rel:"stylesheet",href:e,"data-precedence":t},a),(a=nr.get(n))&&uy(e,a);var m=u=o.createElement("link");Oe(m),$a(m,"link",e),m._p=new Promise(function(y,q){m.onload=y,m.onerror=q}),m.addEventListener("load",function(){f.loading|=ld}),m.addEventListener("error",function(){f.loading|=Yw}),f.loading|=rr,ep(u,t,o)}u={type:"stylesheet",instance:u,count:1,state:f},r.set(n,u)}}},M:function(e,t){Xn.M(e,t);var a=di;if(a&&e){var o=Tt(a).hoistableScripts,r=Tu(e),n=o.get(r);n||(n=a.querySelector(pc(r)),n||(e=pt({src:e,async:!0,type:"module"},t),(t=nr.get(r))&&iy(e,t),n=a.createElement("script"),Oe(n),$a(n,"link",e),a.head.appendChild(n)),n={type:"script",instance:n,count:1,state:null},o.set(r,n))}}};var di=typeof document>"u"?null:document,lm=null,GM=60000,VM=800,jM=500,Hv=0,Fv=null,sm=null,Vs=lA,sd={$$typeof:Kr,Provider:null,Consumer:null,_currentValue:Vs,_currentValue2:Vs,_threadCount:0},Kw="%c%s%c",Zw="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",Ww="",um=" ",XM=Function.prototype.bind,Jw=!1,ek=null,tk=null,ak=null,ok=null,rk=null,nk=null,lk=null,sk=null,uk=null,ik=null;ek=function(e,t,a,o){t=l(e,t),t!==null&&(a=c(t.memoizedState,a,0,o),t.memoizedState=a,t.baseState=a,e.memoizedProps=pt({},e.memoizedProps),a=Ja(e,2),a!==null&&ia(a,e,2))},tk=function(e,t,a){t=l(e,t),t!==null&&(a=p(t.memoizedState,a,0),t.memoizedState=a,t.baseState=a,e.memoizedProps=pt({},e.memoizedProps),a=Ja(e,2),a!==null&&ia(a,e,2))},ak=function(e,t,a,o){t=l(e,t),t!==null&&(a=i(t.memoizedState,a,o),t.memoizedState=a,t.baseState=a,e.memoizedProps=pt({},e.memoizedProps),a=Ja(e,2),a!==null&&ia(a,e,2))},ok=function(e,t,a){e.pendingProps=c(e.memoizedProps,t,0,a),e.alternate&&(e.alternate.pendingProps=e.pendingProps),t=Ja(e,2),t!==null&&ia(t,e,2)},rk=function(e,t){e.pendingProps=p(e.memoizedProps,t,0),e.alternate&&(e.alternate.pendingProps=e.pendingProps),t=Ja(e,2),t!==null&&ia(t,e,2)},nk=function(e,t,a){e.pendingProps=i(e.memoizedProps,t,a),e.alternate&&(e.alternate.pendingProps=e.pendingProps),t=Ja(e,2),t!==null&&ia(t,e,2)},lk=function(e){var t=Ja(e,2);t!==null&&ia(t,e,2)},sk=function(e){var t=iu(),a=Ja(e,t);a!==null&&ia(a,e,t)},uk=function(e){g=e},ik=function(e){x=e};var im=!0,cm=null,Gv=!1,Pl=null,_l=null,Hl=null,ud=new Map,id=new Map,Fl=[],YM="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(" "),dm=null;if(np.prototype.render=hy.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error("Cannot update an unmounted root.");var a=arguments;typeof a[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()."):E(a[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 a[1]<"u"&&console.error("You passed a second argument to root.render(...) but it only accepts one argument."),a=e;var o=t.current,r=qo(o);cy(o,r,a,t,null,null)},np.prototype.unmount=hy.prototype.unmount=function(){var e=arguments;if(typeof e[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()."),e=this._internalRoot,e!==null){this._internalRoot=null;var t=e.containerInfo;(It&(Na|Ho))!==Ha&&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."),cy(e.current,2,null,e,null,null),Cu(),t[vl]=null}},np.prototype.unstable_scheduleHydration=function(e){if(e){var t=z();e={blockedOn:null,target:e,priority:t};for(var a=0;a<Fl.length&&t!==0&&t<Fl[a].priority;a++);Fl.splice(a,0,e),a===0&&bL(e)}},function(){var e=pi.version;if(e!=="19.2.7")throw Error(`Incompatible React versions: The "react" and "react-dom" packages must have the exact same version. Instead got:
|
|
224
224
|
- react: `+(e+`
|
|
225
225
|
- react-dom: 19.2.7
|
|
226
|
-
Learn more: https://react.dev/warnings/version-mismatch`))}(),typeof Map==="function"&&Map.prototype!=null&&typeof Map.prototype.forEach==="function"&&typeof Set==="function"&&Set.prototype!=null&&typeof Set.prototype.clear==="function"&&typeof Set.prototype.forEach==="function"||console.error("React depends on Map and Set built-in types. Make sure that you load a polyfill in older browsers. https://react.dev/link/react-polyfills"),zt.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0){if(typeof e.render==="function")throw Error("Unable to find node on an unmounted component.");throw e=Object.keys(e).join(","),Error("Argument appears to not be a ReactComponent. Keys: "+e)}return e=
|
|
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"),zt.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0){if(typeof e.render==="function")throw Error("Unable to find node on an unmounted component.");throw e=Object.keys(e).join(","),Error("Argument appears to not be a ReactComponent. Keys: "+e)}return e=me(t),e=e!==null?W(e):null,e=e===null?null:e.stateNode,e},!function(){var e={bundleType:1,version:"19.2.7",rendererPackageName:"react-dom",currentDispatcherRef:j,reconcilerVersion:"19.2.7"};return e.overrideHookState=ek,e.overrideHookStateDeletePath=tk,e.overrideHookStateRenamePath=ak,e.overrideProps=ok,e.overridePropsDeletePath=rk,e.overridePropsRenamePath=nk,e.scheduleUpdate=lk,e.scheduleRetry=sk,e.setErrorHandler=uk,e.setSuspenseHandler=ik,e.scheduleRefresh=k,e.scheduleRoot=T,e.setRefreshHandler=M,e.getCurrentFiber=WR,ir(e)}()&&tn&&window.top===window.self&&(-1<navigator.userAgent.indexOf("Chrome")&&navigator.userAgent.indexOf("Edge")===-1||-1<navigator.userAgent.indexOf("Firefox"))){var ck=window.location.protocol;/^(https?|file):$/.test(ck)&&console.info("%cDownload the React DevTools for a better development experience: https://react.dev/link/react-devtools"+(ck==="file:"?`
|
|
227
|
+
You might need to use a local HTTP server (instead of file://): https://react.dev/link/react-devtools-faq`:""),"font-weight:bold")}r2.createRoot=function(e,t){if(!E(e))throw Error("Target container is not a DOM element.");CL(e);var a=!1,o="",r=xS,n=SS,u=LS;return t!==null&&t!==void 0&&(t.hydrate?console.warn("hydrate through createRoot is deprecated. Use ReactDOMClient.hydrateRoot(container, <App />) instead."):typeof t==="object"&&t!==null&&t.$$typeof===Qr&&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 />);`),t.unstable_strictMode===!0&&(a=!0),t.identifierPrefix!==void 0&&(o=t.identifierPrefix),t.onUncaughtError!==void 0&&(
|
|
230
|
+
root.render(<App />);`),t.unstable_strictMode===!0&&(a=!0),t.identifierPrefix!==void 0&&(o=t.identifierPrefix),t.onUncaughtError!==void 0&&(r=t.onUncaughtError),t.onCaughtError!==void 0&&(n=t.onCaughtError),t.onRecoverableError!==void 0&&(u=t.onRecoverableError)),t=fL(e,1,!1,null,null,a,o,null,r,n,u,LL),e[vl]=t.current,Kg(e),new hy(t)},r2.hydrateRoot=function(e,t,a){if(!E(e))throw Error("Target container is not a DOM element.");CL(e),t===void 0&&console.error("Must provide initial children as second argument to hydrateRoot. Example usage: hydrateRoot(domContainer, <App />)");var o=!1,r="",n=xS,u=SS,f=LS,m=null;return a!==null&&a!==void 0&&(a.unstable_strictMode===!0&&(o=!0),a.identifierPrefix!==void 0&&(r=a.identifierPrefix),a.onUncaughtError!==void 0&&(n=a.onUncaughtError),a.onCaughtError!==void 0&&(u=a.onCaughtError),a.onRecoverableError!==void 0&&(f=a.onRecoverableError),a.formState!==void 0&&(m=a.formState)),t=fL(e,1,!0,t,a!=null?a:null,o,r,m,n,u,f,LL),t.context=pL(null),a=t.current,o=qo(a),o=ls(o),r=sl(o),r.callback=null,ul(a,r,o),Br(o,"hydrateRoot()",null),a=o,t.current.lanes=a,el(t,a),Yr(t),e[vl]=t.current,Kg(e),new np(t)},r2.version="19.2.7",typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop==="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()});var gk=js(function(n2,mm){mm.exports=Q(hk())});var ue=js(function(C2){var Ks=Q(ct());(function(){function l(ee){if(ee==null)return null;if(typeof ee==="function")return ee.$$typeof===V?null:ee.displayName||ee.name||null;if(typeof ee==="string")return ee;switch(ee){case M:return"Fragment";case U:return"Profiler";case E:return"StrictMode";case me:return"Suspense";case W:return"SuspenseList";case G:return"Activity"}if(typeof ee==="object")switch(typeof ee.tag==="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),ee.$$typeof){case k:return"Portal";case X:return ee.displayName||"Context";case P:return(ee._context.displayName||"Context")+".Consumer";case F:var ze=ee.render;return ee=ee.displayName,ee||(ee=ze.displayName||ze.name||"",ee=ee!==""?"ForwardRef("+ee+")":"ForwardRef"),ee;case re:return ze=ee.displayName||null,ze!==null?ze:l(ee.type)||"Memo";case K:ze=ee._payload,ee=ee._init;try{return l(ee(ze))}catch(Lt){}}return null}function c(ee){return""+ee}function i(ee){try{c(ee);var ze=!1}catch(ie){ze=!0}if(ze){ze=console;var Lt=ze.error,Ct=typeof Symbol==="function"&&Symbol.toStringTag&&ee[Symbol.toStringTag]||ee.constructor.name||"Object";return Lt.call(ze,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",Ct),c(ee)}}function d(ee){if(ee===M)return"<>";if(typeof ee==="object"&&ee!==null&&ee.$$typeof===K)return"<...>";try{var ze=l(ee);return ze?"<"+ze+">":"<...>"}catch(Lt){return"<...>"}}function p(){var ee=de.A;return ee===null?null:ee.getOwner()}function x(){return Error("react-stack-top-frame")}function g(ee){if(ve.call(ee,"key")){var ze=Object.getOwnPropertyDescriptor(ee,"key").get;if(ze&&ze.isReactWarning)return!1}return ee.key!==void 0}function b(ee,ze){function Lt(){ae||(ae=!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)",ze))}Lt.isReactWarning=!0,Object.defineProperty(ee,"key",{get:Lt,configurable:!0})}function S(){var ee=l(this.type);return he[ee]||(he[ee]=!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.")),ee=this.props.ref,ee!==void 0?ee:null}function L(ee,ze,Lt,Ct,ie,He){var Fe=Lt.ref;return ee={$$typeof:T,type:ee,key:ze,props:Lt,_owner:Ct},(Fe!==void 0?Fe:null)!==null?Object.defineProperty(ee,"ref",{enumerable:!1,get:S}):Object.defineProperty(ee,"ref",{enumerable:!1,value:null}),ee._store={},Object.defineProperty(ee._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(ee,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(ee,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:ie}),Object.defineProperty(ee,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:He}),Object.freeze&&(Object.freeze(ee.props),Object.freeze(ee)),ee}function h(ee,ze,Lt,Ct,ie,He){var Fe=ze.children;if(Fe!==void 0)if(Ct)if(Ce(Fe)){for(Ct=0;Ct<Fe.length;Ct++)C(Fe[Ct]);Object.freeze&&Object.freeze(Fe)}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 C(Fe);if(ve.call(ze,"key")){Fe=l(ee);var J=Object.keys(ze).filter(function(lt){return lt!=="key"});Ct=0<J.length?"{key: someKey, "+J.join(": ..., ")+": ...}":"{key: someKey}",St[Fe+Ct]||(J=0<J.length?"{"+J.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} />`,Ct,Fe,W,Fe),St[Fe+Ct]=!0)}if(Fe=null,Lt!==void 0&&(i(Lt),Fe=""+Lt),g(ze)&&(i(ze.key),Fe=""+ze.key),"key"in ze){Lt={};for(var Ae in ze)Ae!=="key"&&(Lt[Ae]=ze[Ae])}else Lt=ze;return Fe&&v(Lt,typeof ee==="function"?ee.displayName||ee.name||"Unknown":ee),x(ee,Fe,Lt,p(),ue,He)}function C(ee){w(ee)?ee._store&&(ee._store.validated=1):typeof ee==="object"&&ee!==null&&ee.$$typeof===Y&&(ee._payload.status==="fulfilled"?w(ee._payload.value)&&ee._payload.value._store&&(ee._payload.value._store.validated=1):ee._store&&(ee._store.validated=1))}function w(ee){return typeof ee==="object"&&ee!==null&&ee.$$typeof===T}var T=Symbol.for("react.transitional.element"),k=Symbol.for("react.portal"),M=Symbol.for("react.fragment"),D=Symbol.for("react.strict_mode"),U=Symbol.for("react.profiler"),P=Symbol.for("react.consumer"),X=Symbol.for("react.context"),F=Symbol.for("react.forward_ref"),fe=Symbol.for("react.suspense"),Z=Symbol.for("react.suspense_list"),te=Symbol.for("react.memo"),Y=Symbol.for("react.lazy"),J=Symbol.for("react.activity"),V=Symbol.for("react.client.reference"),de=Ks.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Se=Object.prototype.hasOwnProperty,Ie=Array.isArray,Me=console.createTask?console.createTask:function(){return null};Ks={react_stack_bottom_frame:function(ee){return ee()}};var oe,he={},Ce=Ks.react_stack_bottom_frame.bind(Ks,b)(),We=Me(d(b)),St={};m2.Fragment=M,m2.jsxDEV=function(ee,ze,Lt,Ct){var ue=1e4>de.recentlyCreatedOwnerStacks++;return h(ee,ze,Lt,Ct,ue?Error("react-stack-top-frame"):Ce,ue?Me(d(ee)):We)}})()});var aI=Q(uk(),1);var Mi=Q(dt(),1);var mm=Q(dt(),1);var ik=(l)=>l?.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase();function ck(l,c,i=[]){if(c==null)throw Error("[lucide]: iconNode is required when icon name is used");return{name:ik(l),size:24,node:c,...i.length>0?{aliases:i}:{}}}var dk=(l)=>{let c="",i=!1;for(let d of l){if(d==="-"||d==="_"||d<=" "){i=c.length>0;continue}if(c.length===0)c+=d.toLowerCase();else c+=i?d.toUpperCase():d;i=!1}return c};var fk=(l)=>{let c=dk(l);return c.charAt(0).toUpperCase()+c.slice(1)};var dd=Q(dt(),1);var cd=(...l)=>l.filter((c,i,d)=>Boolean(c)&&c.trim()!==""&&d.indexOf(c)===i).join(" ").trim();var Gl={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":2,"stroke-linecap":"round","stroke-linejoin":"round"};function Hv(l){return l!==null&&l!==void 0}function pk(l,c={}){let i=c.attributeNames??{},d=(w)=>i[w]??w,p=l.size??l.width??Gl.width,b=l.size??l.height??Gl.height,g=l.aliases?.filter((w)=>typeof w==="string"&&w.trim()!=="").map((w)=>`lucide-${w}`)??[],v=[...l.name?[`lucide-${l.name}`]:[],...g],L=c.className?.split(" ").filter(Boolean)??[],x=c.includeDefaultClasses===!1?cd(...L):cd("lucide",...v,...L),h=c.absoluteStrokeWidth?Number(c.strokeWidth??Gl["stroke-width"])*Number(l.size??l.width??Gl.width)/Number(c.size??c.width??Gl.width):c.strokeWidth??Gl["stroke-width"];return["svg",{...Object.entries(Gl).reduce((w,[T,k])=>(w[d(T)]=k,w),{}),..."color"in c&&c.color&&{[d("stroke")]:c.color},..."size"in c&&Hv(c.size)&&{[d("width")]:c.size,[d("height")]:c.size},..."width"in c&&Hv(c.width)&&{[d("width")]:c.width},..."height"in c&&Hv(c.height)&&{[d("height")]:c.height},[d("stroke-width")]:h,...x&&{[d("class")]:x},[d("viewBox")]:`0 0 ${p} ${b}`,...c.hasA11yProp===!1?{[d("aria-hidden")]:"true"}:{},..."attributes"in c&&c.attributes},l.node.map((w)=>{let[T,k,M]=w,D=c.nonScalingStroke?{[d("vector-effect")]:"non-scaling-stroke",...k}:k;return M?[T,D,M]:[T,D]})]}function mk(l,c={}){return pk(l,{...c,attributeNames:{...c.attributeNames,class:"className","stroke-width":"strokeWidth","stroke-linecap":"strokeLinecap","stroke-linejoin":"strokeLinejoin","vector-effect":"vectorEffect"}})}var hk=(l)=>{for(let c in l)if(c.startsWith("aria-")||c==="role"||c==="title")return!0;return!1};var mi=Q(dt(),1),KM=mi.createContext({});var gk=()=>mi.useContext(KM);var yk=dd.forwardRef(({color:l,size:c,width:i,height:d,strokeWidth:p,absoluteStrokeWidth:b,nonScalingStroke:g,className:v="",children:L,iconNode:x=[],icon:h={node:x,aliases:[],size:24},...C},w)=>{let{size:T=24,strokeWidth:k=2,absoluteStrokeWidth:M=!1,nonScalingStroke:D=!1,color:U="currentColor",className:P=""}=gk()??{},X=Boolean(L)||hk(C),[F,fe,Z=[]]=mk(h,{color:l??U,width:i??c??T,height:d??c??T,strokeWidth:p??k,absoluteStrokeWidth:b??M,nonScalingStroke:g??D,className:cd(P,v),hasA11yProp:X,attributes:C});return dd.createElement(F,{ref:w,...fe},[...Z.map(([te,Y])=>dd.createElement(te,Y)),...Array.isArray(L)?L:[L]])});function Le(l,c=[],i=[]){let d=typeof l==="string"?ck(l,c,i):l,p=mm.forwardRef(({className:b,...g},v)=>mm.createElement(yk,{ref:v,icon:d,className:b,...g}));if(d.name)p.displayName=fk(d.name);return p}var vk={name:"circle-alert",size:24,node:[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]],aliases:["alert-circle"]};vk.node;var Vl=Le(vk);var bk={name:"face-slightly-frowning",size:24,node:[["path",{d:"M15 10V9",key:"4dkmfx"}],["path",{d:"M9 10V9",key:"1lazqi"}],["path",{d:"M9 16a5 5 0 016 0",key:"34mdxb"}],["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]],aliases:["frown"]};bk.node;var jl=Le(bk);var xk={name:"plug-zap",size:24,node:[["path",{d:"M6.3 20.3a2.4 2.4 0 0 0 3.4 0L12 18l-6-6-2.3 2.3a2.4 2.4 0 0 0 0 3.4Z",key:"goz73y"}],["path",{d:"m2 22 3-3",key:"19mgm9"}],["path",{d:"M7.5 13.5 10 11",key:"7xgeeb"}],["path",{d:"M10.5 16.5 13 14",key:"10btkg"}],["path",{d:"m18 3-4 4h6l-4 4",key:"16psg9"}]],aliases:["plug-zap-2"]};xk.node;var Xl=Le(xk);var Sk={name:"sparkles",size:24,node:[["path",{d:"M11.017 2.814a1 1 0 0 1 1.966 0l1.051 5.558a2 2 0 0 0 1.594 1.594l5.558 1.051a1 1 0 0 1 0 1.966l-5.558 1.051a2 2 0 0 0-1.594 1.594l-1.051 5.558a1 1 0 0 1-1.966 0l-1.051-5.558a2 2 0 0 0-1.594-1.594l-5.558-1.051a1 1 0 0 1 0-1.966l5.558-1.051a2 2 0 0 0 1.594-1.594z",key:"1s2grr"}],["path",{d:"M20 2v4",key:"1rf3ol"}],["path",{d:"M22 4h-4",key:"gwowj6"}],["circle",{cx:"4",cy:"20",r:"2",key:"6kqj1y"}]],aliases:["stars"]};Sk.node;var ur=Le(Sk);var Lk={name:"square-chart-gantt",size:24,node:[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M9 8h7",key:"kbo1nt"}],["path",{d:"M8 12h6",key:"ikassy"}],["path",{d:"M11 16h5",key:"oq65wt"}]],aliases:["gantt-chart-square","square-gantt-chart"]};Lk.node;var Ln=Le(Lk);var Ck={name:"triangle-alert",size:24,node:[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",key:"wmoenq"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]],aliases:["alert-triangle"]};Ck.node;var Yl=Le(Ck);var wk={name:"activity",size:24,node:[["path",{d:"M22 12h-2.48a2 2 0 0 0-1.93 1.46l-2.35 8.36a.25.25 0 0 1-.48 0L9.24 2.18a.25.25 0 0 0-.48 0l-2.35 8.36A2 2 0 0 1 4.49 12H2",key:"169zse"}]]};wk.node;var fd=Le(wk);var kk={name:"arrow-down",size:24,node:[["path",{d:"M12 5v14",key:"s699le"}],["path",{d:"m19 12-7 7-7-7",key:"1idqje"}]]};kk.node;var pd=Le(kk);var Tk={name:"arrow-left",size:24,node:[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]]};Tk.node;var md=Le(Tk);var Ik={name:"arrow-right",size:24,node:[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]]};Ik.node;var hd=Le(Ik);var Rk={name:"arrow-up-right",size:24,node:[["path",{d:"M7 7h10v10",key:"1tivn9"}],["path",{d:"M7 17 17 7",key:"1vkiza"}]]};Rk.node;var gd=Le(Rk);var Ak={name:"arrow-up",size:24,node:[["path",{d:"m5 12 7-7 7 7",key:"hav0vg"}],["path",{d:"M12 19V5",key:"x0mq9r"}]]};Ak.node;var yd=Le(Ak);var Mk={name:"check",size:24,node:[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]};Mk.node;var Ys=Le(Mk);var Dk={name:"chevron-down",size:24,node:[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]};Dk.node;var $s=Le(Dk);var Ek={name:"chevron-left",size:24,node:[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]]};Ek.node;var vd=Le(Ek);var Ok={name:"chevron-right",size:24,node:[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]};Ok.node;var Cn=Le(Ok);var qk={name:"coins",size:24,node:[["path",{d:"M13.744 17.736a6 6 0 1 1-7.48-7.48",key:"bq4yh3"}],["path",{d:"M15 6h1v4",key:"11y1tn"}],["path",{d:"m6.134 14.768.866-.5 2 3.464",key:"17snzx"}],["circle",{cx:"16",cy:"8",r:"6",key:"14bfc9"}]]};qk.node;var bd=Le(qk);var Nk={name:"copy",size:24,node:[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]]};Nk.node;var Qs=Le(Nk);var Bk={name:"cpu",size:24,node:[["path",{d:"M12 20v2",key:"1lh1kg"}],["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M17 20v2",key:"1rnc9c"}],["path",{d:"M17 2v2",key:"11trls"}],["path",{d:"M2 12h2",key:"1t8f8n"}],["path",{d:"M2 17h2",key:"7oei6x"}],["path",{d:"M2 7h2",key:"asdhe0"}],["path",{d:"M20 12h2",key:"1q8mjw"}],["path",{d:"M20 17h2",key:"1fpfkl"}],["path",{d:"M20 7h2",key:"1o8tra"}],["path",{d:"M7 20v2",key:"4gnj0m"}],["path",{d:"M7 2v2",key:"1i4yhu"}],["rect",{x:"4",y:"4",width:"16",height:"16",rx:"2",key:"1vbyd7"}],["rect",{x:"8",y:"8",width:"8",height:"8",rx:"1",key:"z9xiuo"}]]};Bk.node;var xd=Le(Bk);var zk={name:"folder-git-2",size:24,node:[["path",{d:"M18 19a5 5 0 0 1-5-5v8",key:"sz5oeg"}],["path",{d:"M9 20H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h3.9a2 2 0 0 1 1.69.9l.81 1.2a2 2 0 0 0 1.67.9H20a2 2 0 0 1 2 2v5",key:"1w6njk"}],["circle",{cx:"13",cy:"12",r:"2",key:"1j92g6"}],["circle",{cx:"20",cy:"19",r:"2",key:"1obnsp"}]]};zk.node;var Sd=Le(zk);var Uk={name:"git-branch",size:24,node:[["path",{d:"M15 6a9 9 0 0 0-9 9V3",key:"1cii5b"}],["circle",{cx:"18",cy:"6",r:"3",key:"1h7g24"}],["circle",{cx:"6",cy:"18",r:"3",key:"fqmcym"}]]};Uk.node;var Ld=Le(Uk);var Pk={name:"inbox",size:24,node:[["polyline",{points:"22 12 16 12 14 15 10 15 8 12 2 12",key:"o97t9d"}],["path",{d:"M5.45 5.11 2 12v6a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-6l-3.45-6.89A2 2 0 0 0 16.76 4H7.24a2 2 0 0 0-1.79 1.11z",key:"oot6mr"}]]};Pk.node;var Cd=Le(Pk);var _k={name:"languages",size:24,node:[["path",{d:"m5 8 6 6",key:"1wu5hv"}],["path",{d:"m4 14 6-6 2-3",key:"1k1g8d"}],["path",{d:"M2 5h12",key:"or177f"}],["path",{d:"M7 2h1",key:"1t2jsx"}],["path",{d:"m22 22-5-10-5 10",key:"don7ne"}],["path",{d:"M14 18h6",key:"1m8k6r"}]]};_k.node;var wd=Le(_k);var Hk={name:"layout-grid",size:24,node:[["rect",{width:"7",height:"7",x:"3",y:"3",rx:"1",key:"1g98yp"}],["rect",{width:"7",height:"7",x:"14",y:"3",rx:"1",key:"6d4xhi"}],["rect",{width:"7",height:"7",x:"14",y:"14",rx:"1",key:"nxv5o0"}],["rect",{width:"7",height:"7",x:"3",y:"14",rx:"1",key:"1bb6yr"}]]};Hk.node;var kd=Le(Hk);var Fk={name:"menu",size:24,node:[["path",{d:"M4 5h16",key:"1tepv9"}],["path",{d:"M4 12h16",key:"1lakjw"}],["path",{d:"M4 19h16",key:"1djgab"}]]};Fk.node;var Td=Le(Fk);var Gk={name:"monitor",size:24,node:[["rect",{width:"20",height:"14",x:"2",y:"3",rx:"2",key:"48i651"}],["line",{x1:"8",x2:"16",y1:"21",y2:"21",key:"1svkeh"}],["line",{x1:"12",x2:"12",y1:"17",y2:"21",key:"vw1qmm"}]]};Gk.node;var Id=Le(Gk);var Vk={name:"moon",size:24,node:[["path",{d:"M20.985 12.486a9 9 0 1 1-9.473-9.472c.405-.022.617.46.402.803a6 6 0 0 0 8.268 8.268c.344-.215.825-.004.803.401",key:"kfwtm"}]]};Vk.node;var Rd=Le(Vk);var jk={name:"refresh-cw",size:24,node:[["path",{d:"M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8",key:"v9h5vc"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}],["path",{d:"M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16",key:"3uifl3"}],["path",{d:"M8 16H3v5",key:"1cv678"}]]};jk.node;var $l=Le(jk);var Xk={name:"rotate-cw",size:24,node:[["path",{d:"M21 12a9 9 0 1 1-9-9c2.52 0 4.93 1 6.74 2.74L21 8",key:"1p45f6"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}]]};Xk.node;var Ad=Le(Xk);var Yk={name:"search",size:24,node:[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]]};Yk.node;var Md=Le(Yk);var $k={name:"sun",size:24,node:[["circle",{cx:"12",cy:"12",r:"4",key:"4exip2"}],["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M12 20v2",key:"1lh1kg"}],["path",{d:"m4.93 4.93 1.41 1.41",key:"149t6j"}],["path",{d:"m17.66 17.66 1.41 1.41",key:"ptbguv"}],["path",{d:"M2 12h2",key:"1t8f8n"}],["path",{d:"M20 12h2",key:"1q8mjw"}],["path",{d:"m6.34 17.66-1.41 1.41",key:"1m8zz5"}],["path",{d:"m19.07 4.93-1.41 1.41",key:"1shlcs"}]]};$k.node;var Dd=Le($k);var Qk={name:"wrench",size:24,node:[["path",{d:"M14.7 6.3a1 1 0 0 0 0 1.4l1.6 1.6a1 1 0 0 0 1.4 0l3.106-3.105c.32-.322.863-.22.983.218a6 6 0 0 1-8.259 7.057l-7.91 7.91a1 1 0 0 1-2.999-3l7.91-7.91a6 6 0 0 1 7.057-8.259c.438.12.54.662.219.984z",key:"1ngwbx"}]]};Qk.node;var Ed=Le(Qk);var Kk={name:"x",size:24,node:[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]};Kk.node;var Co=Le(Kk);var Li=Q(dt(),1);function hm(l){let c=l?.trim().toLowerCase()??"";if(c==="zh"||c.startsWith("zh-")||c.startsWith("zh_"))return"zh-CN";return"en"}function Zk(l){for(let c of l??[]){let i=hm(c);if(i!=="en")return i}return"en"}function ZM(l,c={}){return l.replace(/\{([\w.-]+)\}/g,(i,d)=>{let p=c[d];return p===void 0?i:String(p)})}function Wk(l,c,i,d={}){let p=i[l]?.[c]??i.en?.[c];if(p===void 0)return console.warn(`[stats.i18n] missing translation: ${c}`),c;return ZM(p,d)}var gm={en:{"nav.usage":"Usage","nav.activity":"Activity","nav.insights":"Insights","nav.overview":"Overview","nav.models":"Models","nav.providers":"Providers","nav.costs":"Costs","nav.requests":"Requests","nav.errors":"Errors","nav.traces":"Traces","nav.tools":"Tools","nav.frustration":"Frustration","nav.projects":"Projects","nav.gain":"Gain","nav.dashboard":"zetacode stats","nav.breadcrumb-stats":"stats","nav.pages":"Pages","nav.open-navigation":"Open navigation"},"zh-CN":{"nav.usage":"用量","nav.activity":"活动","nav.insights":"洞察","nav.overview":"总览","nav.models":"模型","nav.providers":"服务商","nav.costs":"费用","nav.requests":"请求","nav.errors":"错误","nav.traces":"调用链","nav.tools":"工具","nav.frustration":"情绪压力","nav.projects":"项目","nav.gain":"收益","nav.dashboard":"zeta 统计","nav.breadcrumb-stats":"统计","nav.pages":"导航","nav.open-navigation":"打开导航"}};var ym={en:{"common.provider":"Provider","common.providers":"Providers","common.model":"Model","common.models":"Models","common.requests":"Requests","common.request":"Request","common.tokens":"Tokens","common.share":"Share","common.cost":"Cost","common.error-rate":"Error rate","common.tokens-per-second":"Tokens/s","common.output-tokens-per-second":"Output tokens/s","common.premium":"Premium","common.premium-requests":"Premium requests","common.duration":"Duration","common.started":"Started","common.request-id":"Request id","common.session-entry":"Session entry","common.entry-id":"Entry id","common.input":"Input","common.output":"Output","common.output-message":"Output message","common.cache-read":"Cache read","common.cache-write":"Cache write","common.project":"Project","common.pages":"Pages","common.filter":"Filter…","common.no-data-in-range":"No data in this range","common.nothing-here-yet":"Nothing here yet","common.show-more":"Show more","common.total":"Total","common.average":"Average","common.unknown":"Unknown","common.root":"(root)","common.other-n":"Other ({count})","common.time-range":"Time range","common.range-1h":"1h","common.range-24h":"24h","common.range-7d":"7d","common.range-30d":"30d","common.range-90d":"90d","common.range-all":"All","common.window-1h":"the last hour","common.window-24h":"the last 24 hours","common.window-7d":"the last 7 days","common.window-30d":"the last 30 days","common.window-90d":"the last 90 days","common.window-all":"all time","common.copy":"Copy","common.copied":"Copied","common.close":"Close","common.cancel":"Cancel","common.aborted":"Aborted","common.failed":"Failed","common.error":"Error","shell.live":"Live","shell.reconnecting":"Reconnecting","shell.syncing":"Syncing","shell.sync-failed":"Sync failed","shell.indexing":"Indexing","shell.lost-connection":"Lost the live connection to the stats server; retrying","shell.ingesting":"Ingesting session files","shell.building-rollups":"Building hourly rollups; older ranges fill in as it goes","shell.sync-now":"Click to sync session files now","shell.just-now":"just now","shell.system-theme":"System theme","shell.dark-theme":"Dark theme","shell.light-theme":"Light theme","shell.range-suffix":"range","shell.jump-hint":"then letter to jump","shell.language":"Language","shell.switch-language":"Switch dashboard language"},"zh-CN":{"common.provider":"服务商","common.providers":"服务商","common.model":"模型","common.models":"模型","common.requests":"请求","common.request":"请求","common.tokens":"Token","common.share":"占比","common.cost":"费用","common.error-rate":"错误率","common.tokens-per-second":"Token/秒","common.output-tokens-per-second":"输出 Token/秒","common.premium":"溢价","common.premium-requests":"溢价请求","common.duration":"耗时","common.started":"开始时间","common.request-id":"请求 ID","common.session-entry":"会话条目","common.entry-id":"条目 ID","common.input":"输入","common.output":"输出","common.output-message":"输出消息","common.cache-read":"缓存读取","common.cache-write":"缓存写入","common.project":"项目","common.pages":"页数","common.filter":"筛选…","common.no-data-in-range":"该时间范围内没有数据","common.nothing-here-yet":"暂无数据","common.show-more":"显示更多","common.total":"合计","common.average":"平均","common.unknown":"未知","common.root":"(根目录)","common.other-n":"其他({count})","common.time-range":"时间范围","common.range-1h":"1 小时","common.range-24h":"24 小时","common.range-7d":"7 天","common.range-30d":"30 天","common.range-90d":"90 天","common.range-all":"全部","common.window-1h":"最近 1 小时","common.window-24h":"最近 24 小时","common.window-7d":"最近 7 天","common.window-30d":"最近 30 天","common.window-90d":"最近 90 天","common.window-all":"全部时间","common.copy":"复制","common.copied":"已复制","common.close":"关闭","common.cancel":"取消","common.aborted":"已中止","common.failed":"失败","common.error":"错误","shell.live":"实时","shell.reconnecting":"重新连接中","shell.syncing":"同步中","shell.sync-failed":"同步失败","shell.indexing":"建立索引","shell.lost-connection":"与统计服务的实时连接已断开,正在重试","shell.ingesting":"正在导入会话文件","shell.building-rollups":"正在构建小时汇总;更早的时间范围会逐步补全","shell.sync-now":"点击立即同步会话文件","shell.just-now":"刚刚","shell.system-theme":"跟随系统","shell.dark-theme":"深色主题","shell.light-theme":"浅色主题","shell.range-suffix":"范围","shell.jump-hint":"再按字母跳转","shell.language":"语言","shell.switch-language":"切换仪表盘语言"}};var vm={en:{"overview.title":"Overview","overview.description":"Everything zeta did across your sessions in {window}.","overview.api-equivalent-cost":"API-equivalent cost","overview.api-cost-title":"What this usage would cost at public API rates","overview.unpriced-n":"{count} unpriced","overview.failed-n":"{count} failed","overview.conversation-tokens":"Conversation tokens","overview.tokens-title":"Uncached input + cache reads + cache writes + output","overview.output-n":"{count} output","overview.cache-rate":"Cache rate","overview.cache-rate-title":"Cache reads ÷ (uncached input + cache reads)","overview.cache-saved":"{value} saved","overview.succeeded-n":"{count} succeeded","overview.uncached-input":"Uncached input","overview.avg-latency":"Avg latency","overview.avg-ttft":"Avg TTFT","overview.activity":"Activity","overview.per-5m":"Per 5 minutes","overview.per-hour":"Per hour","overview.per-day":"Per day","overview.succeeded":"Succeeded","overview.api-equivalent":"API-equivalent","overview.token-mix":"Token mix","overview.token-mix-description":"Where conversation tokens went","overview.by-agent":"By agent","overview.requests-short":"{count} req","overview.main-agent":"Main agent","overview.subagents":"Subagents","overview.advisor":"Advisor","overview.latest-requests":"Latest requests","overview.latest-requests-description":"Most recent model calls across every session","overview.all-requests":"All requests","overview.when":"When","overview.status":"Status","overview.ok":"OK"},"zh-CN":{"overview.title":"概览","overview.description":"在{window}内,zeta 在你的所有会话中完成的一切。","overview.api-equivalent-cost":"API 等效费用","overview.api-cost-title":"这些用量按公开 API 费率计算所需的费用","overview.unpriced-n":"{count} 个未定价","overview.failed-n":"{count} 个失败","overview.conversation-tokens":"对话 Token","overview.tokens-title":"未缓存输入 + 缓存读取 + 缓存写入 + 输出","overview.output-n":"{count} 输出","overview.cache-rate":"缓存命中率","overview.cache-rate-title":"缓存读取 ÷(未缓存输入 + 缓存读取)","overview.cache-saved":"节省 {value}","overview.succeeded-n":"{count} 个成功","overview.uncached-input":"未缓存输入","overview.avg-latency":"平均延迟","overview.avg-ttft":"平均 TTFT","overview.activity":"活动","overview.per-5m":"每 5 分钟","overview.per-hour":"每小时","overview.per-day":"每天","overview.succeeded":"成功","overview.api-equivalent":"API 等效","overview.token-mix":"Token 构成","overview.token-mix-description":"对话 Token 的去向","overview.by-agent":"按代理","overview.requests-short":"{count} 次请求","overview.main-agent":"主代理","overview.subagents":"子代理","overview.advisor":"顾问","overview.latest-requests":"最新请求","overview.latest-requests-description":"所有会话中最近的模型调用","overview.all-requests":"全部请求","overview.when":"时间","overview.status":"状态","overview.ok":"正常"}};var bm={en:{"models.subtitle":"Which models did the work in {window}, and how fast they answered.","models.empty-title":"No model usage in this range","models.empty-hint":"Pick a wider range in the top bar.","models.used":"Models used","models.across-providers-one":"across {count} provider","models.across-providers":"across {count} providers","models.most-used":"Most used","models.most-used-hint":"{share} of requests · {provider}","models.failed-n":"{count} failed","models.api-cost":"API-equivalent cost","models.api-cost-title":"What this usage would cost at public API rates","models.unpriced-n":"{count} unpriced","models.request-share":"Request share","models.share-desc":"Each model's share of requests per {bucket}","models.count-desc":"Requests per {bucket}, stacked by model","models.share-mode-aria":"Share chart mode","models.all-models":"All models","models.table-desc":"Click a row for latency and throughput over time","models.cost-title":"API-equivalent estimate at public rates","models.tokens-title":"Uncached input + cache reads + cache writes + output","models.cache-rate":"Cache rate","models.cache-title":"Cache reads ÷ (uncached input + cache reads)","models.errors":"Errors","models.tps-title":"Average output tokens per second","models.ttft":"TTFT","models.ttft-title":"Average time to first token","models.trend":"Trend","models.trend-title":"Requests per {bucket}","models.efficiency":"Efficiency","models.latency":"Latency","models.cache-savings":"Cache savings","models.avg-duration":"Avg duration","models.avg-ttft":"Avg TTFT","models.uncached-input":"Uncached input","models.first-last-seen":"First seen {first} · last seen {last}","models.performance-per-bucket":"Performance per active {bucket}","models.no-samples-title":"No performance samples","models.no-samples-hint":"Timing is recorded for streamed responses.","models.tok-per-second":"{value} tok/s","models.bucket-5m":"5 minutes","models.bucket-hour":"hour","models.bucket-day":"day"},"zh-CN":{"models.subtitle":"在{window}内哪些模型完成了工作,以及它们的响应速度如何。","models.empty-title":"该时间范围内没有模型用量","models.empty-hint":"请在顶部栏选择更宽的时间范围。","models.used":"使用模型数","models.across-providers-one":"覆盖 {count} 个服务商","models.across-providers":"覆盖 {count} 个服务商","models.most-used":"使用最多","models.most-used-hint":"{share} 请求占比 · {provider}","models.failed-n":"{count} 个失败","models.api-cost":"API 等价费用","models.api-cost-title":"按公开 API 价格计算这笔用量的费用","models.unpriced-n":"{count} 个未定价","models.request-share":"请求占比","models.share-desc":"每个{bucket}中各模型的请求占比","models.count-desc":"每个{bucket}的请求数,按模型堆叠","models.share-mode-aria":"占比图表模式","models.all-models":"所有模型","models.table-desc":"点击某行可查看延迟与吞吐随时间的变化","models.cost-title":"按公开价格估算的 API 等价费用","models.tokens-title":"未缓存输入 + 缓存读取 + 缓存写入 + 输出","models.cache-rate":"缓存命中率","models.cache-title":"缓存读取 ÷(未缓存输入 + 缓存读取)","models.errors":"错误","models.tps-title":"平均每秒输出 Token 数","models.ttft":"首 Token 延迟","models.ttft-title":"平均首 Token 延迟","models.trend":"趋势","models.trend-title":"每个{bucket}的请求数","models.efficiency":"效率","models.latency":"延迟","models.cache-savings":"缓存节省","models.avg-duration":"平均耗时","models.avg-ttft":"平均首 Token 延迟","models.uncached-input":"未缓存输入","models.first-last-seen":"首次出现 {first} · 最近出现 {last}","models.performance-per-bucket":"每个活跃{bucket}的性能","models.no-samples-title":"没有性能样本","models.no-samples-hint":"只有流式响应会记录耗时。","models.tok-per-second":"{value} Token/秒","models.bucket-5m":"5 分钟","models.bucket-hour":"小时","models.bucket-day":"天"}};var xm={en:{"providers.description":"Burn, reliability and subscription headroom per provider over {window}.","providers.most-tokens":"Most tokens: {provider}","providers.failed-n":"{count} failed","providers.succeeded-n":"{count} succeeded","providers.tokens-title":"Uncached input + cache reads + cache writes + output","providers.api-equivalent-cost":"API-equivalent cost","providers.api-cost-title":"What this usage would cost at public API rates","providers.unpriced-n":"{count} unpriced","providers.totals":"Provider totals","providers.totals-description":"Cost is an API-equivalent estimate. Select a row for its token mix.","providers.totals-description-unpriced-one":"Cost is an API-equivalent estimate and excludes {count} unpriced subscription request. Select a row for its token mix.","providers.totals-description-unpriced-n":"Cost is an API-equivalent estimate and excludes {count} unpriced subscription requests. Select a row for its token mix.","providers.no-requests-in-range":"No requests in this range","providers.models-title":"Distinct models used through this provider","providers.share-title":"Fraction of all tokens in range","providers.cost-title":"API-equivalent estimate","providers.tps-title":"Average output throughput","providers.premium-title":"Premium requests (subscription multiplier units)","providers.burn":"Burn by provider","providers.burn-estimate-description":"API-equivalent estimate per {bucket}; excludes unpriced subscription requests","providers.burn-description":"Per {bucket}, top {count} providers stacked","providers.bucket-5m":"5 minutes","providers.bucket-hour":"hour","providers.bucket-day":"day","providers.no-provider-activity":"No provider activity in this range","providers.peak-burn-hours":"Peak burn hours","providers.peak-hours-description":"Tokens by local hour of day; peak at {hour}","providers.hours-description":"Tokens by local hour of day","providers.all-providers":"All providers","providers.tokens-peak-hour":"Tokens (peak hour)","providers.no-activity-in-range":"No activity in this range","providers.subscription-windows":"Subscription windows","providers.subscription-windows-description":"What one usage window buys you and how many accounts peak demand needs. Select a row to chart it.","providers.window":"Window","providers.accounts":"Accounts","providers.accounts-title":"Accounts with at least one snapshot for this window in range","providers.resets":"Resets","providers.resets-title":"Window resets observed (drops in used fraction)","providers.windows-burned":"Windows burned","providers.windows-burned-title":"Subscription-window equivalents consumed in range (sum of used-fraction increases across accounts)","providers.tokens-per-window":"Tokens / window","providers.tokens-per-window-title":"Provider tokens burned in range ÷ windows burned — what one full window is worth","providers.too-little-consumed":"Too little of the window was consumed to extrapolate","providers.peak-utilization":"Peak utilization","providers.peak-utilization-title":"Peak of summed used fraction across accounts at any sampled instant; the bar is relative to fleet capacity","providers.accounts-needed":"Accounts needed","providers.accounts-needed-title":"Accounts needed to keep peak demand under 90% of fleet capacity","providers.ideal-accounts":"{ideal} · have {have}","providers.exhaustions":"Exhaustions","providers.exhaustions-title":"Transitions into an exhausted state observed in range","providers.exhausted-n":"{count} exhausted","providers.no-snapshots-in-range":"No usage snapshots in this range","providers.snapshot-hint":"Usage snapshots accumulate whenever usage limits are fetched (TUI footer, /usage, zetacode usage).","providers.utilization":"Window utilization","providers.utilization-description":"{window} used fraction per account, {from} – {to}","providers.utilization-description-plain":"Recorded limit utilization per account","providers.no-utilization-readings":"No utilization readings for this window","providers.exhausted":"Exhausted","providers.no-reading":"No reading","providers.high":"High","providers.account":"Account","providers.latest-used":"Latest used","providers.status":"Status","providers.peak-in-range":"Peak in range","providers.snapshots":"Snapshots","providers.recorded":"Recorded"},"zh-CN":{"providers.description":"各服务商在{window}内的消耗、可靠性与订阅余量。","providers.most-tokens":"Token 最多:{provider}","providers.failed-n":"{count} 次失败","providers.succeeded-n":"{count} 次成功","providers.tokens-title":"未缓存输入 + 缓存读取 + 缓存写入 + 输出","providers.api-equivalent-cost":"API 等效费用","providers.api-cost-title":"此用量按公开 API 费率计算需要多少费用","providers.unpriced-n":"{count} 个未定价","providers.totals":"服务商汇总","providers.totals-description":"费用为 API 等效估算。选择一行可查看其 Token 构成。","providers.totals-description-unpriced-one":"费用为 API 等效估算,且未包含 {count} 个未定价的订阅请求。选择一行可查看其 Token 构成。","providers.totals-description-unpriced-n":"费用为 API 等效估算,且未包含 {count} 个未定价的订阅请求。选择一行可查看其 Token 构成。","providers.no-requests-in-range":"该时间范围内没有请求","providers.models-title":"通过该服务商使用的不同模型","providers.share-title":"该时间范围内全部 Token 中的占比","providers.cost-title":"API 等效估算","providers.tps-title":"平均输出吞吐量","providers.premium-title":"溢价请求(订阅倍率单位)","providers.burn":"按服务商的消耗","providers.burn-estimate-description":"每{bucket}的 API 等效估算;不含未定价的订阅请求","providers.burn-description":"每{bucket},堆叠显示前 {count} 个服务商","providers.bucket-5m":"5 分钟","providers.bucket-hour":"小时","providers.bucket-day":"天","providers.no-provider-activity":"该时间范围内没有服务商活动","providers.peak-burn-hours":"消耗高峰时段","providers.peak-hours-description":"按本地时段统计的 Token;高峰在 {hour}","providers.hours-description":"按本地时段统计的 Token","providers.all-providers":"全部服务商","providers.tokens-peak-hour":"Token(高峰时段)","providers.no-activity-in-range":"该时间范围内没有活动","providers.subscription-windows":"订阅窗口","providers.subscription-windows-description":"一个用量窗口能带来多少用量,以及峰值需求需要多少个账号。选择一行可将它绘制成图表。","providers.window":"窗口","providers.accounts":"账号","providers.accounts-title":"该时间范围内对此窗口至少有一个快照的账号","providers.resets":"重置次数","providers.resets-title":"观测到的窗口重置次数(已用比例下降)","providers.windows-burned":"消耗的窗口数","providers.windows-burned-title":"该时间范围内消耗的订阅窗口等效量(各账号已用比例增量之和)","providers.tokens-per-window":"Token / 窗口","providers.tokens-per-window-title":"该时间范围内消耗的服务商 Token ÷ 消耗的窗口数 —— 一个完整窗口的价值","providers.too-little-consumed":"该窗口消耗太少,无法外推","providers.peak-utilization":"峰值利用率","providers.peak-utilization-title":"任意采样时刻各账号已用比例之和的峰值;进度条相对于整体容量","providers.accounts-needed":"所需账号数","providers.accounts-needed-title":"将峰值需求控制在整体容量 90% 以下所需的账号数","providers.ideal-accounts":"{ideal} · 现有 {have}","providers.exhaustions":"耗尽次数","providers.exhaustions-title":"该时间范围内观测到的进入耗尽状态的次数","providers.exhausted-n":"{count} 次耗尽","providers.no-snapshots-in-range":"该时间范围内没有用量快照","providers.snapshot-hint":"每当获取用量限额时都会累积用量快照(TUI 底部、/usage、zetacode usage)。","providers.utilization":"窗口利用率","providers.utilization-description":"{window} 各账号的已用比例,{from} – {to}","providers.utilization-description-plain":"各账号已记录的限额利用率","providers.no-utilization-readings":"该窗口没有利用率记录","providers.exhausted":"已耗尽","providers.no-reading":"无读数","providers.high":"偏高","providers.account":"账号","providers.latest-used":"最新已用","providers.status":"状态","providers.peak-in-range":"范围内峰值","providers.snapshots":"快照数","providers.recorded":"记录时间"}};var Sm={en:{"costs.title":"Costs","costs.description":"What {window} of usage would cost at public API rates. Subscription usage without a public price is counted as unpriced, not free.","costs.no-usage-in-range":"No usage in this range","costs.empty-hint":"Pick a wider range in the top bar.","costs.daily-estimate":"Daily estimate","costs.daily-by-model":"Per UTC day, stacked by model","costs.daily-by-component":"Per UTC day, stacked by billing component","costs.split-by":"Split by","costs.by-model":"By model","costs.by-component":"By component","costs.no-priced-usage":"No priced usage in this range","costs.unpriced-requests":"Unpriced requests","costs.where-it-went":"Where it went","costs.estimate-by-component":"Estimate by billing component","costs.unpriced-note-one":"{count} unpriced subscription request is not included.","costs.unpriced-note-n":"{count} unpriced subscription requests are not included.","costs.by-model-description":"Estimate per model with its input, output and cache split","costs.estimate":"Estimate","costs.estimate-title":"API-equivalent estimate at public rates","costs.split":"Split","costs.split-title":"Input · output · cache read · cache write","costs.per-request":"Per request","costs.per-request-title":"Estimate ÷ priced requests","costs.unpriced":"Unpriced","costs.unpriced-column-title":"Requests with no public-equivalent price","costs.api-equivalent-estimate":"API-equivalent estimate","costs.api-estimate-title":"What this usage would cost at public API rates","costs.requests-n":"{count} requests","costs.average-per-day":"Average per day","costs.average-per-day-title":"Estimate ÷ days with any usage","costs.active-days-one":"over {count} active day","costs.active-days-n":"over {count} active days","costs.top-model":"Top model","costs.top-model-hint":"{cost} · {share} of estimate","costs.nothing-priced-yet":"Nothing priced yet","costs.per-priced-request":"Per priced request","costs.per-priced-request-title":"Estimate ÷ requests that have a public price","costs.priced-n":"{count} priced","costs.unpriced-title":"Subscription usage with no public-equivalent price; excluded from the estimate","costs.unpriced-hint":"excluded from the estimate","costs.all-priced":"all usage priced"},"zh-CN":{"costs.title":"费用","costs.description":"按公开 API 费率计算,{window}的用量需要多少费用。没有公开价格的订阅用量计为未定价,而不是免费。","costs.no-usage-in-range":"此时间范围内没有用量","costs.empty-hint":"请在顶栏选择更宽的时间范围。","costs.daily-estimate":"每日估算","costs.daily-by-model":"按 UTC 日统计,按模型堆叠","costs.daily-by-component":"按 UTC 日统计,按计费组件堆叠","costs.split-by":"拆分依据","costs.by-model":"按模型","costs.by-component":"按组件","costs.no-priced-usage":"此时间范围内没有已定价的用量","costs.unpriced-requests":"未定价请求","costs.where-it-went":"费用去向","costs.estimate-by-component":"按计费组件估算","costs.unpriced-note-one":"{count} 个未定价的订阅请求未计入。","costs.unpriced-note-n":"{count} 个未定价的订阅请求未计入。","costs.by-model-description":"按模型估算,并附输入、输出与缓存的拆分","costs.estimate":"估算","costs.estimate-title":"按公开费率计算的 API 等效估算","costs.split":"拆分","costs.split-title":"输入 · 输出 · 缓存读取 · 缓存写入","costs.per-request":"单次请求","costs.per-request-title":"估算值 ÷ 已定价请求数","costs.unpriced":"未定价","costs.unpriced-column-title":"没有公开等效价格的请求","costs.api-equivalent-estimate":"API 等效估算","costs.api-estimate-title":"此用量按公开 API 费率计算需要多少费用","costs.requests-n":"{count} 个请求","costs.average-per-day":"日均","costs.average-per-day-title":"估算值 ÷ 有用量的天数","costs.active-days-one":"共 {count} 个活跃日","costs.active-days-n":"共 {count} 个活跃日","costs.top-model":"费用最高的模型","costs.top-model-hint":"{cost} · 占估算值的 {share}","costs.nothing-priced-yet":"暂无已定价用量","costs.per-priced-request":"单个已定价请求","costs.per-priced-request-title":"估算值 ÷ 有公开价格的请求数","costs.priced-n":"已定价 {count} 个","costs.unpriced-title":"没有公开等效价格的订阅用量;不计入估算","costs.unpriced-hint":"不计入估算","costs.all-priced":"全部用量均已定价"}};var Lm={en:{"requests.description":"Every model call zeta made in {window}, newest first. Open a row for its full payload.","requests.loading":"Loading…","requests.load-latest":"Load latest {count}","requests.status":"Status","requests.status-all":"All","requests.none-in-window":"none in {window}","requests.since":"since {time}","requests.failed-hint":"{rate} · {count} aborted","requests.tokens-hint":"Total tokens across these requests","requests.api-equivalent-cost":"API-equivalent cost","requests.cost-hint":"What these requests would cost at public API rates","requests.unpriced-n":"{count} unpriced","requests.median-duration":"Median duration","requests.p95":"p95 {value}","requests.median-ttft":"Median TTFT","requests.ttft":"TTFT","requests.ttft-hint":"Time to first token","requests.log-title":"Request log","requests.log-loading":"Loading the latest requests…","requests.log-count-in-window":"{shown} of {total} requests in {window}","requests.log-count-latest":"{shown} of the latest {total} requests","requests.search-placeholder":"Model, provider or project","requests.footer":"Showing the latest {count} requests, back to {time}. Older requests in {window} are not loaded.","requests.empty-in-window":"No requests in {window}","requests.empty-no-match":"No requests match","requests.empty-no-match-hint":"Clear the search or status filter.","requests.when":"When","requests.uncached-input":"Uncached input tokens","requests.cache-read-title":"Cache read tokens (hover a cell for cache writes)","requests.cache-write":"Cache write: {count}","requests.cost-estimate":"API-equivalent estimate"},"zh-CN":{"requests.description":"zeta 在 {window} 内发出的每一次模型调用,最新在前。打开某一行可查看其完整载荷。","requests.loading":"加载中…","requests.load-latest":"加载最新 {count} 条","requests.status":"状态","requests.status-all":"全部","requests.none-in-window":"{window} 内没有请求","requests.since":"自 {time} 起","requests.failed-hint":"{rate} · {count} 个已中止","requests.tokens-hint":"这些请求的 Token 总量","requests.api-equivalent-cost":"API 等价费用","requests.cost-hint":"这些请求按公开 API 费率计算的费用","requests.unpriced-n":"{count} 个未定价","requests.median-duration":"耗时中位数","requests.p95":"p95 分位 {value}","requests.median-ttft":"首 Token 延迟中位数","requests.ttft":"首 Token 延迟","requests.ttft-hint":"首 Token 延迟","requests.log-title":"请求日志","requests.log-loading":"正在加载最新请求…","requests.log-count-in-window":"{window} 内共 {total} 个请求,显示 {shown} 个","requests.log-count-latest":"最新 {total} 个请求中显示 {shown} 个","requests.search-placeholder":"模型、服务商或项目","requests.footer":"显示最新 {count} 个请求,回溯至 {time}。{window} 内更早的请求未加载。","requests.empty-in-window":"{window} 内没有请求","requests.empty-no-match":"没有匹配的请求","requests.empty-no-match-hint":"清除搜索内容或状态筛选。","requests.when":"时间","requests.uncached-input":"未缓存输入 Token","requests.cache-read-title":"缓存读取 Token(将鼠标悬停在单元格上可查看缓存写入)","requests.cache-write":"缓存写入:{count}","requests.cost-estimate":"API 等价估算"}};var Cm={en:{"errors.title":"Errors","errors.description":"Failed model requests in {window}, grouped by error signature. Open a failure for its full payload.","errors.footer":"Showing the latest {count} failures in {window}; older ones are not loaded.","errors.loading":"Loading…","errors.load-latest":"Load latest {count}","errors.failures":"Failures","errors.hint-in-window":"in {window}","errors.hint-latest-loaded":"latest {count} loaded","errors.signatures":"Signatures","errors.signatures-hint":"Distinct error messages after normalizing ids and numbers","errors.signatures-top":"top: {count} failures","errors.affected-models":"Affected models","errors.last-failure":"Last failure","errors.none-in-window":"none in {window}","errors.error-signatures":"Error signatures","errors.signatures-card-description":"Same message with ids and counters normalized. Select one to filter the failures below.","errors.empty-no-failures":"No failures in {window}","errors.empty-all-succeeded":"Every request succeeded or was aborted.","errors.by-model":"By model","errors.by-model-description":"Failures per model. Select one to filter.","errors.empty-no-affected-models":"No affected models","errors.loading-failures":"Loading failures…","errors.filtered-of-total":"{shown} of {total} failures, newest first","errors.search-placeholder":"Message, model or project","errors.no-match":"No failures match","errors.no-match-hint":"Clear the search or the selected filters.","errors.signature":"Signature","errors.more-models":"+{count} more","errors.last-seen":"Last seen","errors.unknown-error":"Unknown error","errors.group-meta":"{count} failures · first {first} · last {last}","errors.open-latest":"Open latest","errors.when":"When","errors.cost-hint":"API-equivalent estimate"},"zh-CN":{"errors.title":"错误","errors.description":"在 {window} 内失败的模型请求,按错误签名分组。打开某条失败可查看完整载荷。","errors.footer":"显示 {window} 内最新的 {count} 个失败;更早的未加载。","errors.loading":"加载中…","errors.load-latest":"加载最新 {count} 条","errors.failures":"失败","errors.hint-in-window":"{window} 内","errors.hint-latest-loaded":"已加载最新 {count} 条","errors.signatures":"签名","errors.signatures-hint":"对 ID 和数字归一化后不同的错误消息","errors.signatures-top":"最多:{count} 个失败","errors.affected-models":"受影响的模型","errors.last-failure":"最近一次失败","errors.none-in-window":"{window} 内没有失败","errors.error-signatures":"错误签名","errors.signatures-card-description":"同一消息在归一化 ID 和计数后归为一组。选择一项可筛选下方的失败。","errors.empty-no-failures":"{window} 内没有失败","errors.empty-all-succeeded":"所有请求均已成功或被中止。","errors.by-model":"按模型","errors.by-model-description":"各模型的失败数。选择一项可筛选。","errors.empty-no-affected-models":"没有受影响的模型","errors.loading-failures":"正在加载失败…","errors.filtered-of-total":"共 {total} 个失败,显示 {shown} 个,最新在前","errors.search-placeholder":"消息、模型或项目","errors.no-match":"没有匹配的失败","errors.no-match-hint":"清除搜索内容或已选筛选条件。","errors.signature":"签名","errors.more-models":"另有 {count} 个","errors.last-seen":"最近出现","errors.unknown-error":"未知错误","errors.group-meta":"{count} 个失败 · 首次 {first} · 最近 {last}","errors.open-latest":"打开最新","errors.when":"时间","errors.cost-hint":"按 API 价格估算"}};var wm={en:{"trace.title":"Traces","trace.description":"Recent sessions with subagent activity folded in. Open one to inspect its timeline.","trace.sessions":"Sessions","trace.session":"Session","trace.most-recent":"{count} most recent","trace.most-recent-filtered":"{shown} of {total} most recent","trace.filter-placeholder":"Filter by title, project, model…","trace.empty-title":"No sessions found","trace.empty-hint":"Run a sync to index recent activity.","trace.no-matching-title":"No matching sessions","trace.no-matching-hint":"Try a different filter.","trace.tool":"Tool","trace.tools":"Tools","trace.agent":"Agent","trace.agents":"Agents","trace.background":"Background","trace.bg":"Bg","trace.refresh":"Refresh trace","trace.timeline":"Timeline","trace.timeline-hint":"W/S zoom · A/D pan · drag pan · wheel zoom · 0 fit · F focus selection · dbl-click focus · Esc deselect","trace.expand-all":"Expand all","trace.collapse-all":"Collapse all","trace.axis-mode":"Axis mode","trace.mode-time-title":"Real wall-clock time","trace.mode-turns-title":"Equal width per user turn","trace.mode-calls-title":"Equal width per model/tool call boundary","trace.turns":"Turns","trace.calls":"Calls","trace.compress-idle":"Compress idle","trace.search-placeholder":"Search spans…","trace.previous-match":"Previous match","trace.next-match":"Next match","trace.transcript":"Transcript","trace.transcript-description":"Every span and marker in order; click to inspect","trace.no-matching-events":"No matching events","trace.canvas-aria":"Trace timeline. W and S zoom, A and D pan, 0 fits all, F focuses the selection.","trace.minimap-aria":"Timeline overview brush","trace.expand-track":"Expand {track}","trace.collapse-track":"Collapse {track}","trace.unterminated":"unterminated","trace.tok":"tok","trace.ttft":"TTFT","trace.wall-time":"Wall time","trace.model-time":"Model time","trace.tool-time":"Tool time","trace.idle":"Idle","trace.tool-calls-n":"{count} tool calls","trace.of-wall":"{percent} of wall","trace.tool-aggregates":"Tool aggregates","trace.tool-aggregates-desc":"{count} tools, by total time","trace.errors":"Errors","trace.failed-n":"{count} failed","trace.avg":"Avg","trace.max":"Max","trace.start":"Start","trace.track":"Track","trace.io-cached":"Input / output / cached","trace.stop-reason":"Stop reason","trace.copy-json":"Copy raw JSON","trace.error-message":"Error message","trace.task":"Task","trace.open-child-track":"Open child track","trace.args":"Args","trace.thinking":"Thinking","trace.text":"Text","trace.raw-entry":"Raw entry","trace.load-failed":"Failed to load entry: {message}"},"zh-CN":{"trace.title":"调用链","trace.description":"最近的会话,已合并子代理活动。打开其中一个即可查看其时间线。","trace.sessions":"会话","trace.session":"会话","trace.most-recent":"最近 {count} 条","trace.most-recent-filtered":"最近 {total} 条中的 {shown} 条","trace.filter-placeholder":"按标题、项目或模型筛选…","trace.empty-title":"未找到会话","trace.empty-hint":"运行一次同步以索引最近的活动。","trace.no-matching-title":"没有匹配的会话","trace.no-matching-hint":"请尝试其他筛选条件。","trace.tool":"工具","trace.tools":"工具","trace.agent":"智能体","trace.agents":"智能体","trace.background":"后台","trace.bg":"背景","trace.refresh":"刷新调用链","trace.timeline":"时间线","trace.timeline-hint":"W/S 缩放 · A/D 平移 · 拖拽平移 · 滚轮缩放 · 0 适应全部 · F 聚焦所选 · 双击聚焦 · Esc 取消选择","trace.expand-all":"全部展开","trace.collapse-all":"全部折叠","trace.axis-mode":"坐标轴模式","trace.mode-time-title":"真实墙钟时间","trace.mode-turns-title":"每个用户轮次等宽","trace.mode-calls-title":"每个模型/工具调用边界等宽","trace.turns":"轮次","trace.calls":"调用次数","trace.compress-idle":"压缩空闲时间","trace.search-placeholder":"搜索跨度…","trace.previous-match":"上一个匹配","trace.next-match":"下一个匹配","trace.transcript":"对话记录","trace.transcript-description":"按顺序列出所有跨度和标记;点击可查看详情","trace.no-matching-events":"没有匹配的事件","trace.canvas-aria":"调用链时间线。W 和 S 缩放,A 和 D 平移,0 适应全部,F 聚焦所选。","trace.minimap-aria":"时间线概览刷选","trace.expand-track":"展开 {track}","trace.collapse-track":"折叠 {track}","trace.unterminated":"未结束","trace.tok":"Token","trace.ttft":"首 Token 延迟","trace.wall-time":"墙钟时间","trace.model-time":"模型耗时","trace.tool-time":"工具耗时","trace.idle":"空闲","trace.tool-calls-n":"{count} 次工具调用","trace.of-wall":"占墙钟时间 {percent}","trace.tool-aggregates":"工具汇总","trace.tool-aggregates-desc":"{count} 个工具,按总耗时排序","trace.errors":"错误","trace.failed-n":"{count} 个失败","trace.avg":"平均","trace.max":"最大","trace.start":"开始","trace.track":"轨道","trace.io-cached":"输入 / 输出 / 缓存读取","trace.stop-reason":"停止原因","trace.copy-json":"复制原始 JSON","trace.error-message":"错误信息","trace.task":"任务","trace.open-child-track":"打开子轨道","trace.args":"参数","trace.thinking":"思考过程","trace.text":"文本","trace.raw-entry":"原始条目","trace.load-failed":"加载条目失败:{message}"}};var km={en:{"tools.title":"Tools","tools.description":"Which tools zeta called in {window}, how often they failed, and what they cost.","tools.tool-calls":"Tool calls","tools.failed-n":"{count} failed","tools.distinct-tools":"Distinct tools","tools.most-used":"Most used: {tool}","tools.error-rate-title":"Tool results that came back flagged as errors","tools.succeeded-n":"{count} succeeded","tools.attributed-tokens":"Attributed tokens","tools.tokens-output":"{tokens} output","tools.attributed-cost":"Attributed cost","tools.attribution-note":"Tokens and API-equivalent cost of each invoking turn, split evenly across that turn's tool calls","tools.attribution-estimate":"{note}; API-equivalent estimate","tools.unpriced-requests-n":"{count} unpriced requests","tools.api-equivalent":"API-equivalent","tools.result-text":"Result text","tools.result-chars-title":"Characters of tool-result text fed back into context","tools.chars":"{count} chars","tools.call-arguments":"Call arguments","tools.args-chars-title":"Characters of serialized tool-call arguments","tools.avg-result-per-call":"Avg result per call","tools.avg-args-per-call":"Avg arguments per call","tools.calls-over-time":"Calls over time","tools.errors-over-time":"Errors over time","tools.chart-description":"Per {bucket}, top {count} tools stacked","tools.bucket-5m":"5 minutes","tools.bucket-hour":"hour","tools.bucket-day":"day","tools.calls":"Calls","tools.errors":"Errors","tools.no-tool-errors":"No tool errors in this range","tools.by-tool":"By tool","tools.by-tool-description":"{note}. Select a tool to break it down by model.","tools.by-tool-and-model":"By tool and model","tools.by-tool-and-model-description":"Which models call which tools, and how often those calls fail","tools.filter-by-tool":"Filter by tool","tools.all-tools":"All tools","tools.clear-tool-filter":"Clear tool filter","tools.no-tool-calls":"No tool calls in this range","tools.no-calls-to-tool":"No calls to {tool} in this range","tools.tool":"Tool","tools.trend":"Trend","tools.trend-title":"Calls per bucket over the range","tools.share-of-calls":"{percent} of all tool calls","tools.errors-title":"Calls whose result came back flagged as an error","tools.args":"Args","tools.result":"Result","tools.result-per-call":"Result / call","tools.result-per-call-title":"Mean tool-result characters per call","tools.attr-tokens":"Attr. tokens","tools.share-of-tokens":"{percent} of attributed tokens","tools.attr-cost":"Attr. cost","tools.share-of-cost":"{percent} of attributed cost","tools.last-used":"Last used"},"zh-CN":{"tools.title":"工具","tools.description":"zeta 在{window}调用了哪些工具、它们的失败频率如何,以及产生了多少费用。","tools.tool-calls":"工具调用","tools.failed-n":"{count} 个失败","tools.distinct-tools":"不同工具数","tools.most-used":"使用最多:{tool}","tools.error-rate-title":"返回时被标记为错误的工具结果","tools.succeeded-n":"{count} 个成功","tools.attributed-tokens":"归属 Token","tools.tokens-output":"{tokens} 输出","tools.attributed-cost":"归属费用","tools.attribution-note":"每次调用回合的 Token 与 API 等价费用,平均分摊到该回合的各个工具调用","tools.attribution-estimate":"{note};按 API 等价估算","tools.unpriced-requests-n":"{count} 个未定价请求","tools.api-equivalent":"按 API 等价","tools.result-text":"结果文本","tools.result-chars-title":"回填到上下文中的工具结果文本字符数","tools.chars":"{count} 字符","tools.call-arguments":"调用参数","tools.args-chars-title":"序列化后的工具调用参数字符数","tools.avg-result-per-call":"每次调用平均结果","tools.avg-args-per-call":"每次调用平均参数","tools.calls-over-time":"调用次数随时间变化","tools.errors-over-time":"错误数随时间变化","tools.chart-description":"按{bucket}统计,堆叠显示前 {count} 个工具","tools.bucket-5m":"5 分钟","tools.bucket-hour":"小时","tools.bucket-day":"天","tools.calls":"调用次数","tools.errors":"错误数","tools.no-tool-errors":"该时间范围内没有工具错误","tools.by-tool":"按工具","tools.by-tool-description":"{note}。选择某个工具可按模型细分。","tools.by-tool-and-model":"按工具和模型","tools.by-tool-and-model-description":"哪些模型调用了哪些工具,以及这些调用的失败频率","tools.filter-by-tool":"按工具筛选","tools.all-tools":"全部工具","tools.clear-tool-filter":"清除工具筛选","tools.no-tool-calls":"该时间范围内没有工具调用","tools.no-calls-to-tool":"该时间范围内没有对 {tool} 的调用","tools.tool":"工具","tools.trend":"趋势","tools.trend-title":"时间范围内每个分桶的调用次数","tools.share-of-calls":"占全部工具调用的 {percent}","tools.errors-title":"结果返回时被标记为错误的调用","tools.args":"参数","tools.result":"结果","tools.result-per-call":"结果 / 次","tools.result-per-call-title":"每次调用平均工具结果字符数","tools.attr-tokens":"归属 Token","tools.share-of-tokens":"占归属 Token 的 {percent}","tools.attr-cost":"归属费用","tools.share-of-cost":"占归属费用的 {percent}","tools.last-used":"最近使用"}};var Tm={en:{"frustration.estimate-note":"Identical messages share one verdict, and verdicts are cached, so later runs only pay for new messages. Nothing is spent until you proceed.","frustration.column-model-ids":"Model IDs","frustration.column-messages":"Messages","frustration.column-judged":"Judged","frustration.model-versions":"Model versions","frustration.no-model-match":"No model versions match the filters","frustration.small-models-title":"Models with fewer than {count} messages have noisy rates","frustration.hide-regex-title":"Hide models with under {share}% judged messages (rates from regex signals)","frustration.hatch-title":"Under {share}% of these messages are judged; their rates come from regex signals","frustration.regex-badge":"regex","frustration.legend-annoyed-any":"Annoyed, any target","frustration.table-description":"Rates are shares of user messages; rows follow the chart filters.","frustration.running":"Running","frustration.estimating":"Estimating cost…","frustration.failed-n":"{count} failed","frustration.cost-so-far":"cost so far","frustration.elapsed":"elapsed {time}","frustration.in-flight":"{count} in flight","frustration.messages-progress":"{done}/{total} messages","frustration.failed-suffix":", {count} failed","frustration.judge-with":" with {judge}","frustration.in-time":" in {time}","frustration.run-done-line":"Last run judged {progress}{failed}{judge}{elapsed} for {cost}.","frustration.run-cancelled-line":"Last run cancelled after {progress}{failed}; spent {cost}.","frustration.run-failed-line":"Last run failed after {progress}{failed}: {error}. Spent {cost}.","frustration.title":"Frustration","frustration.description":"How often your messages sound annoyed, per model version, in {window}.","frustration.user-messages":"User messages","frustration.user-messages-title":"User messages with prose in range","frustration.judge-coverage":"Judge coverage","frustration.judge-coverage-title":"Messages with a cached judge verdict; the rest use the regex lexicons","frustration.coverage-hint":"{judged} judged · {regex} regex","frustration.coverage-unscored":" · {count} unscored (no lexicon)","frustration.unscored-line":"Messages in a language without a lexicon: {count} — unscored, not calm.","frustration.annoyed":"Annoyed","frustration.annoyed-title":"Messages annoyed at any target","frustration.at-assistant":"At assistant","frustration.at-assistant-title":"Messages annoyed at the assistant","frustration.angry":"Angry","frustration.angry-title":"Messages angry or hostile toward the assistant","frustration.messages-n":"{count} messages","frustration.judge-panel":"Judge classification","frustration.judge-description":"Cached LLM verdicts replace the regex lexicons; unjudged messages fall back to regex signals. Messages in a language no lexicon covers are reported as unscored rather than counted as calm.","frustration.classify":"Classify with judge","frustration.proceed":"Proceed","frustration.starting":"Starting…","frustration.judge-running":"A judge run is in progress","frustration.quote-title":"Quote the cost of judging every unjudged message in range","frustration.estimated-cost":"Estimated cost","frustration.unjudged-messages":"Unjudged unique messages","frustration.prose-chars":"Prose characters","frustration.input-tokens":"Estimated input tokens","frustration.judge-model":"Judge","frustration.all-judged":"Everything in this range is already judged. There is nothing left to classify.","frustration.no-run-yet":"No judge run yet. Classify the unjudged messages to replace regex estimates with verdicts.","frustration.last-run-done":"Last run done","frustration.last-run-cancelled":"Last run cancelled","frustration.last-run-failed":"Last run failed","frustration.not-run-yet":"Not run yet","frustration.regex-only":"Regex only","frustration.cancel-run":"Cancel run","frustration.cancelling":"Cancelling…","frustration.run-judged":"Last run judged {progress}","frustration.run-cancelled-after":"Last run cancelled after {progress}","frustration.run-failed-after":"Last run failed after {progress}","frustration.by-model":"Frustration by model version","frustration.by-model-description":"Share of user messages per model version. Each bar reaches the annoyed rate; the subsets aimed at the assistant stack inside it.","frustration.all-classes":"All","frustration.every-model-class":"Every model class","frustration.model-class":"Model class","frustration.include-small":"Include < {count} messages","frustration.unclassified":"unclassified","frustration.legend-angry":"Angry at assistant","frustration.legend-assistant":"At assistant, not angry","frustration.legend-other":"Annoyed at other targets","frustration.legend-trend":"At assistant trend","frustration.legend-hatched":"Hatched: mostly regex fallback","frustration.legend-hatched-run":"Hatched: mostly regex fallback (run the judge)","frustration.legend-hue":"Hue = model family","frustration.no-messages":"No user messages in this range","frustration.try-longer-range":"Try a longer range.","frustration.mostly-regex":"Mostly regex fallback: run the judge for accurate rates","frustration.row-mostly-regex":" · mostly regex fallback","frustration.stack-relation":"annoyed ⊇ atAssistant ⊇ angry","frustration.unknown-error":"unknown error","frustration.cancelled":"Cancelled","frustration.failed":"Failed","frustration.done":"Done","frustration.model-side-title":"AI breakdown","frustration.model-side-description":"How the model's own replies read, per model version, in {window}.","frustration.model-turns":"Assistant turns","frustration.model-turns-title":"Assistant replies with text in range; tool-call-only replies and thinking blocks are not analyzed","frustration.model-breakdown":"Breakdown rate","frustration.model-breakdown-title":"Share of analyzed turns with at least one breakdown signal","frustration.model-mean":"Signals / turn","frustration.model-mean-title":"Average per-turn aggregate: text markers plus capped failed tool results","frustration.model-self-blame":"Self-blame","frustration.model-self-blame-title":"Turns containing an apology or admission","frustration.model-restatement":"Restatement","frustration.model-restatement-title":"Turns repeating earlier content, by explicit marker or near-duplicate reply","frustration.model-hedge":"Hedged","frustration.model-hedge-title":"Turns with hedged fallbacks: uncertainty or suggested alternatives","frustration.model-spiral":"Tool spirals","frustration.model-spiral-title":"Turns following three or more failed tool results","frustration.model-rambling":"Rambling","frustration.model-rambling-title":"Turns past the verbosity threshold","frustration.model-unscored-line":"Turns in a language without a lexicon: {count} — unscored, not calm.","frustration.model-by-model":"AI breakdown by model version","frustration.model-table-title":"Model breakdown detail","frustration.model-by-model-description":"Share of each model's analyzed turns carrying a breakdown signal. Hue = model family.","frustration.model-over-time":"AI breakdown over time","frustration.model-over-time-description":"Breakdown rate per bucket: turns with a signal over analyzed turns. Gaps are buckets with no turns.","frustration.model-sessions":"Sessions by breakdown","frustration.model-sessions-description":"Sessions with the most analyzed assistant turns.","frustration.model-table-description":"Rates are shares of analyzed assistant turns.","frustration.column-session":"Session","frustration.column-turns":"Turns","frustration.column-mean":"Signals/turn","frustration.column-tool-errors":"Tool errors","frustration.model-no-turns":"No assistant turns with text in this range","frustration.model-try-longer-range":"Try a longer range.","frustration.model-legend-breakdown":"Breakdown rate","frustration.turns-n":"{count} turns","frustration.model-hint-mean":"{value} signals per turn on average"},"zh-CN":{"frustration.estimate-note":"内容相同的消息共用一份结论,且结论会被缓存,因此后续运行只为新消息付费。在你开始之前不会产生任何费用。","frustration.column-model-ids":"模型 ID","frustration.column-messages":"消息数","frustration.column-judged":"已评判","frustration.model-versions":"模型版本","frustration.no-model-match":"没有符合筛选条件的模型版本","frustration.small-models-title":"消息少于 {count} 条的模型比例噪声较大","frustration.hide-regex-title":"隐藏已评判比例低于 {share}% 的模型(其比例来自正则信号)","frustration.hatch-title":"这些消息中已评判比例低于 {share}%,其比例来自正则信号","frustration.regex-badge":"正则","frustration.legend-annoyed-any":"不耐烦(任意对象)","frustration.table-description":"比例为占用户消息的百分比;行跟随图表筛选。","frustration.running":"运行中","frustration.estimating":"正在估算费用…","frustration.failed-n":"{count} 条失败","frustration.cost-so-far":"当前费用","frustration.elapsed":"已用时 {time}","frustration.in-flight":"并发 {count}","frustration.messages-progress":"{done}/{total} 条消息","frustration.failed-suffix":",{count} 条失败","frustration.judge-with":",评判模型 {judge}","frustration.in-time":",用时 {time}","frustration.run-done-line":"上次运行评判了 {progress}{failed}{judge}{elapsed},花费 {cost}。","frustration.run-cancelled-line":"上次运行在 {progress}{failed} 后取消,花费 {cost}。","frustration.run-failed-line":"上次运行在 {progress}{failed} 后失败:{error}。花费 {cost}。","frustration.title":"情绪压力","frustration.description":"按模型版本统计你的消息有多不耐烦({window})。","frustration.user-messages":"用户消息","frustration.user-messages-title":"该时间范围内的用户消息(含正文)","frustration.judge-coverage":"判据覆盖率","frustration.judge-coverage-title":"已有缓存的评判模型结论的消息;其余使用正则词典","frustration.coverage-hint":"{judged} 条已评判 · {regex} 条正则","frustration.coverage-unscored":" · {count} 条未评分(无词典)","frustration.unscored-line":"缺少对应词典的语言:{count} 条 —— 未评分,不代表平静。","frustration.annoyed":"不耐烦","frustration.annoyed-title":"对任何对象不耐烦的消息","frustration.at-assistant":"针对助手","frustration.at-assistant-title":"对助手不耐烦的消息","frustration.angry":"发怒","frustration.angry-title":"对助手发怒或带有敌意的消息","frustration.messages-n":"{count} 条消息","frustration.judge-panel":"评判模型分类","frustration.judge-description":"缓存的模型结论会取代正则词典;未评判的消息回退到正则信号。缺少词典的语言显示为未评分,而不是判定为平静。","frustration.classify":"用评判模型分类","frustration.proceed":"开始","frustration.starting":"正在开始…","frustration.judge-running":"评判任务正在进行","frustration.quote-title":"估算对该范围内所有未评判消息进行判定的成本","frustration.estimated-cost":"预估费用","frustration.unjudged-messages":"未评判的唯一消息","frustration.prose-chars":"正文字符数","frustration.input-tokens":"预估输入 Token","frustration.judge-model":"评判模型","frustration.all-judged":"该范围内已全部评判,没有需要分类的消息。","frustration.no-run-yet":"尚未运行评判。对未评判的消息分类,即可用结论取代正则估算。","frustration.last-run-done":"上次运行完成","frustration.last-run-cancelled":"上次运行已取消","frustration.last-run-failed":"上次运行失败","frustration.not-run-yet":"尚未运行","frustration.regex-only":"仅正则","frustration.cancel-run":"取消运行","frustration.cancelling":"正在取消…","frustration.run-judged":"上次运行已评判 {progress}","frustration.run-cancelled-after":"上次运行在 {progress} 后取消","frustration.run-failed-after":"上次运行在 {progress} 后失败","frustration.by-model":"按模型版本的情绪压力","frustration.by-model-description":"各模型版本中用户消息的占比。每根柱子到达不耐烦比例,其中针对助手的子集叠在其内部。","frustration.all-classes":"全部","frustration.every-model-class":"所有模型类别","frustration.model-class":"模型类别","frustration.include-small":"包含少于 {count} 条消息","frustration.unclassified":"未分类","frustration.legend-angry":"对助手发怒","frustration.legend-assistant":"针对助手但未发怒","frustration.legend-other":"对其他对象不耐烦","frustration.legend-trend":"针对助手趋势","frustration.legend-hatched":"斜线:多为正则回退","frustration.legend-hatched-run":"斜线:多为正则回退(运行评判)","frustration.legend-hue":"色相 = 模型家族","frustration.no-messages":"该时间范围内没有用户消息","frustration.try-longer-range":"试试更长的时间范围。","frustration.mostly-regex":"多为正则回退:运行评判以获得准确比例","frustration.row-mostly-regex":" · 多为正则回退","frustration.stack-relation":"不耐烦 ⊇ 针对助手 ⊇ 发怒","frustration.unknown-error":"未知错误","frustration.cancelled":"已取消","frustration.failed":"失败","frustration.done":"完成","frustration.model-side-title":"AI 崩溃度","frustration.model-side-description":"各模型版本自身回复的读感,统计窗口:{window}。","frustration.model-turns":"助手回合","frustration.model-turns-title":"时间范围内带文本的助手回复;仅含工具调用的回复与思考块不参与分析","frustration.model-breakdown":"崩溃率","frustration.model-breakdown-title":"至少带一个崩溃信号的已分析回合占比","frustration.model-mean":"信号 / 回合","frustration.model-mean-title":"每回合聚合均值:文本标记加上封顶的工具失败数","frustration.model-self-blame":"自责","frustration.model-self-blame-title":"包含道歉或认错的回合","frustration.model-restatement":"重复陈述","frustration.model-restatement-title":"以显式标记或与上一条回复高度相似的方式重复先前内容的回合","frustration.model-hedge":"含糊兜底","frustration.model-hedge-title":"带有含糊兜底的回合:不确定表述或建议替代方案","frustration.model-spiral":"工具失败螺旋","frustration.model-spiral-title":"紧随三个及以上工具失败之后的回合","frustration.model-rambling":"冗长","frustration.model-rambling-title":"超过冗长阈值的回合","frustration.model-unscored-line":"使用无词典语言的回合:{count} — 未评分,而非平静。","frustration.model-by-model":"各模型版本的 AI 崩溃度","frustration.model-table-title":"模型崩溃明细","frustration.model-by-model-description":"每个模型已分析回合中带崩溃信号的占比。色相 = 模型家族。","frustration.model-over-time":"AI 崩溃度随时间变化","frustration.model-over-time-description":"每个时间桶的崩溃率:带信号的回合除以已分析回合。空白表示该桶没有回合。","frustration.model-sessions":"按崩溃度查看会话","frustration.model-sessions-description":"已分析助手回合最多的会话。","frustration.model-table-description":"比例为已分析助手回合的占比。","frustration.column-session":"会话","frustration.column-turns":"回合数","frustration.column-mean":"信号/回合","frustration.column-tool-errors":"工具错误","frustration.model-no-turns":"该时间范围内没有带文本的助手回合","frustration.model-try-longer-range":"试试更长的时间范围。","frustration.model-legend-breakdown":"崩溃率","frustration.turns-n":"{count} 个回合","frustration.model-hint-mean":"平均每回合 {value} 个信号"}};var Im={en:{"projects.title":"Projects","projects.description":"Usage by session folder in {window}.","projects.folders":"Folders","projects.folder":"Folder","projects.temporary-n":"{count} temporary","projects.failed-n":"{count} failed","projects.api-equivalent-cost":"API-equivalent cost","projects.api-equivalent-cost-hint":"What this usage would cost at public API rates","projects.unpriced-n":"{count} unpriced","projects.conversation-tokens":"Conversation tokens","projects.conversation-tokens-hint":"Uncached input + cache reads + cache writes + output","projects.cache-rate":"Cache rate","projects.cache-rate-hint":"Cache reads ÷ (uncached input + cache reads)","projects.cache-rate-hint-all":"Cache reads ÷ (uncached input + cache reads), across every folder","projects.top-by-cost":"Top by cost","projects.top-by-cost-description":"Share of API-equivalent cost","projects.top-by-requests":"Top by requests","projects.top-by-requests-description":"Share of all requests","projects.folders-n":"{count} folders","projects.folders-of-n":"{count} of {total} folders","projects.hide-temporary":"Hide temporary ({count})","projects.hide-temporary-hint":"Session folders under /tmp or /var/folders","projects.filter-placeholder":"Filter folders…","projects.empty-no-folders":"No project folders in this range","projects.empty-only-temporary":"Only temporary folders in this range","projects.empty-no-match":"No folders match","projects.hint-longer-range":"Try a longer range.","projects.hint-temporary-hidden":"Temporary folders are hidden.","projects.temp":"temp","projects.share-of-requests":"{share} of all requests","projects.share-of-cost":"{share} of all cost","projects.api-equivalent-cost-rates":"API-equivalent cost at public API rates","projects.cache-savings":"Cache savings","projects.cache-savings-hint":"Prompt-input cost saved versus billing the same tokens uncached","projects.errors":"Errors","projects.avg-duration":"Avg duration","projects.last-active":"Last active"},"zh-CN":{"projects.title":"项目","projects.description":"{window}内按会话文件夹统计的用量。","projects.folders":"文件夹","projects.folder":"文件夹","projects.temporary-n":"{count} 个临时","projects.failed-n":"{count} 个失败","projects.api-equivalent-cost":"API 等效费用","projects.api-equivalent-cost-hint":"这些用量按公开 API 费率计算所需的费用","projects.unpriced-n":"{count} 个未计价","projects.conversation-tokens":"对话 Token","projects.conversation-tokens-hint":"未缓存输入 + 缓存读取 + 缓存写入 + 输出","projects.cache-rate":"缓存命中率","projects.cache-rate-hint":"缓存读取 ÷(未缓存输入 + 缓存读取)","projects.cache-rate-hint-all":"缓存读取 ÷(未缓存输入 + 缓存读取),覆盖所有文件夹","projects.top-by-cost":"费用最高","projects.top-by-cost-description":"占 API 等效费用的比例","projects.top-by-requests":"请求最多","projects.top-by-requests-description":"占全部请求的比例","projects.folders-n":"{count} 个文件夹","projects.folders-of-n":"{total} 个文件夹中的 {count} 个","projects.hide-temporary":"隐藏临时文件夹({count})","projects.hide-temporary-hint":"/tmp 或 /var/folders 下的会话文件夹","projects.filter-placeholder":"筛选文件夹…","projects.empty-no-folders":"该时间范围内没有项目文件夹","projects.empty-only-temporary":"该时间范围内只有临时文件夹","projects.empty-no-match":"没有匹配的文件夹","projects.hint-longer-range":"试试更长的时间范围。","projects.hint-temporary-hidden":"临时文件夹已隐藏。","projects.temp":"临时","projects.share-of-requests":"占全部请求的 {share}","projects.share-of-cost":"占全部费用的 {share}","projects.api-equivalent-cost-rates":"按公开 API 费率计算的等效费用","projects.cache-savings":"缓存节省","projects.cache-savings-hint":"同样的 Token 按未缓存计费时,提示输入费用节省的比例","projects.errors":"错误","projects.avg-duration":"平均耗时","projects.last-active":"最近活动"}};var Rm={en:{"gain.title":"Gain","gain.description":"Tokens snapcompact kept out of context in {window}.","gain.description-scoped":"Tokens snapcompact kept out of context for {project} in {window}.","gain.all-projects":"All projects","gain.empty-title":"No savings recorded in {window}","gain.empty-title-scoped":"No savings recorded for {project} in {window}","gain.empty-hint-all":"Savings appear here once snapcompact compacts tool output.","gain.empty-hint-longer-range":"Try a longer range.","gain.saved-tokens":"Saved tokens","gain.saved-bytes":"Saved bytes","gain.reduction":"Reduction","gain.reduction-title":"Saved bytes ÷ original bytes, when the original size is known","gain.reduction-unknown":"original size not recorded","gain.hits":"Hits","gain.saved-per-hit":"Saved per hit","gain.savings-over-time":"Savings over time","gain.savings-over-time-description":"Tokens saved per UTC day, with the running total","gain.saved-per-day":"Saved per day","gain.cumulative":"Cumulative","gain.by-source":"By source","gain.by-source-description":"Savings per subsystem","gain.source":"Source"},"zh-CN":{"gain.title":"收益","gain.description":"在{window}内被 snapcompact 挡在上下文之外的 Token。","gain.description-scoped":"在{window}内被 snapcompact 为 {project} 挡在上下文之外的 Token。","gain.all-projects":"全部项目","gain.empty-title":"在{window}内没有节省记录","gain.empty-title-scoped":"在{window}内没有 {project} 的节省记录","gain.empty-hint-all":"snapcompact 压缩工具输出后,节省量会显示在这里。","gain.empty-hint-longer-range":"请尝试更长的时间范围。","gain.saved-tokens":"节省的 Token","gain.saved-bytes":"节省的字节","gain.reduction":"节省比例","gain.reduction-title":"原始大小已知时,节省字节 ÷ 原始字节","gain.reduction-unknown":"未记录原始大小","gain.hits":"命中次数","gain.saved-per-hit":"每次命中节省","gain.savings-over-time":"节省趋势","gain.savings-over-time-description":"每个 UTC 日节省的 Token,以及累计总量","gain.saved-per-day":"每日节省","gain.cumulative":"累计","gain.by-source":"按来源","gain.by-source-description":"各子系统节省量","gain.source":"来源"}};var Am={en:{"ui.table-shown-of":"{shown} of {total}","ui.show-fewer":"Show fewer","ui.retry":"Retry","ui.delta-new":"new","ui.json":"JSON","ui.trace":"Trace","ui.open-trace":"Open this request's session in the trace view","ui.status-ok":"OK","ui.section-timing":"Timing","ui.time-to-first-token":"Time to first token","ui.uncached-input":"Uncached input","ui.section-cost":"API-equivalent cost","ui.section-identity":"Identity","ui.stop-reason":"Stop reason","ui.api":"API","ui.session-file":"Session file","ui.stats-row":"Stats row"},"zh-CN":{"ui.table-shown-of":"已显示 {shown} / 共 {total}","ui.show-fewer":"收起","ui.retry":"重试","ui.delta-new":"新增","ui.json":"JSON 数据","ui.trace":"调用链","ui.open-trace":"在调用链视图中打开该请求的会话","ui.status-ok":"正常","ui.section-timing":"时间","ui.time-to-first-token":"首 Token 延迟","ui.uncached-input":"未缓存输入","ui.section-cost":"API 等价费用","ui.section-identity":"标识","ui.stop-reason":"停止原因","ui.api":"接口","ui.session-file":"会话文件","ui.stats-row":"统计行"}};var Mm={en:{},"zh-CN":{}};var WM={...gm.en,...ym.en,...vm.en,...bm.en,...xm.en,...Sm.en,...Lm.en,...Cm.en,...wm.en,...km.en,...Tm.en,...Im.en,...Rm.en,...Am.en,...Mm.en},Jk={id:"en",messages:WM};var JM={...gm["zh-CN"],...ym["zh-CN"],...vm["zh-CN"],...bm["zh-CN"],...xm["zh-CN"],...Sm["zh-CN"],...Lm["zh-CN"],...Cm["zh-CN"],...wm["zh-CN"],...km["zh-CN"],...Tm["zh-CN"],...Im["zh-CN"],...Rm["zh-CN"],...Am["zh-CN"],...Mm["zh-CN"]},e1={id:"zh-CN",messages:JM};function e2(){return globalThis.__ZETA_STATS_LOCALE__}var t2={en:Jk.messages,"zh-CN":e1.messages},t1="zeta.stats.locale",Fv=new Set,Em="en";o2();function ir(){return Em}function a1(l){return Fv.add(l),()=>{Fv.delete(l)}}function Dm(l){return Em=hm(l),Em}function o1(l){let c=Dm(l);try{globalThis.localStorage?.setItem(t1,c)}catch{}for(let i of[...Fv])i();return c}function a2(){try{let l=globalThis.localStorage?.getItem(t1);if(!l)return;let c=hm(l);return c==="en"||c==="zh-CN"?c:void 0}catch{return}}function o2(){let l=a2();if(l)return Dm(l);let c=e2();if(c)return Dm(c);if(typeof navigator>"u")return"en";return Dm(Zk(navigator.languages))}function s(l,c){return Wk(Em,l,t2,c)}var r1=60000,Om=60*r1,cr=24*Om,Gv={"1h":{labelKey:"common.range-1h",windowKey:"common.window-1h",spanMs:Om,bucketMs:5*r1},"24h":{labelKey:"common.range-24h",windowKey:"common.window-24h",spanMs:cr,bucketMs:Om},"7d":{labelKey:"common.range-7d",windowKey:"common.window-7d",spanMs:7*cr,bucketMs:cr},"30d":{labelKey:"common.range-30d",windowKey:"common.window-30d",spanMs:30*cr,bucketMs:cr},"90d":{labelKey:"common.range-90d",windowKey:"common.window-90d",spanMs:90*cr,bucketMs:cr},all:{labelKey:"common.range-all",windowKey:"common.window-all",spanMs:null,bucketMs:cr}},n2=1500,hi=["1h","24h","7d","30d","90d","all"];function sa(l){return Gv[l]}var Vv={hour:"2-digit",minute:"2-digit",hourCycle:"h23"},jv={month:"short",day:"numeric"},n1=new Map;function Od(l,c){let i=ir(),d=`${i}:${l}`,p=n1.get(d);if(!p)p=new Intl.DateTimeFormat(i,c),n1.set(d,p);return p}function qm(l,c){if(c<Om)return Od("hm",Vv).format(l);if(c<cr)return Od("mdhm",{...jv,...Vv}).format(l);return Od("md",jv).format(l)}function Nm(l,c){return c<cr?Od("hm",Vv).format(l):Od("md",jv).format(l)}function mo(l,c,i=Gv[l].bucketMs,d=Date.now()){let p=Math.floor(d/i)*i,b=Gv[l].spanMs,g;if(b!==null)g=Math.floor((d-b)/i)*i;else{g=p;for(let L of c)if(L<g)g=L;g=Math.floor(g/i)*i}g=Math.max(g,p-(n2-1)*i);let v=[];for(let L=g;L<=p;L+=i)v.push(L);return v}var l1=Q(dt(),1);function Ql(){return l1.useSyncExternalStore(a1,ir,ir)}var qd=Q(dt(),1);class u1 extends Error{status;endpoint;constructor(l,c,i){super(i);this.name="ApiError",this.status=l,this.endpoint=c}}async function r2(l,c){try{let i=await l.json();if(typeof i==="object"&&i!==null&&"error"in i&&typeof i.error==="string")return i.error}catch{}return`HTTP error ${l.status} on ${c}`}var s1=new WeakMap;async function Na(l,c,i){let d=typeof i==="object"&&i!==null?s1.get(i):void 0,p=c;if(d){let L=new Headers(c?.headers);L.set("If-None-Match",d),p={...c,headers:L}}let b=await fetch(l,p);if(b.status===304&&d)return i;if(!b.ok)throw new u1(b.status,l,await r2(b,l));let g=await b.json(),v=b.headers.get("ETag");if(v&&typeof g==="object"&&g!==null)s1.set(g,v);return g}var i1={"X-Zeta-Stats-Action":"1"};async function c1(l="24h",c){return Na(`/api/stats/overview?range=${encodeURIComponent(l)}`,{signal:c})}async function d1(l="24h",c){return Na(`/api/stats/model-dashboard?range=${encodeURIComponent(l)}`,{signal:c})}async function f1(l="24h",c){return Na(`/api/stats/costs?range=${encodeURIComponent(l)}`,{signal:c})}async function Bm(l=50,c){return Na(`/api/stats/recent?limit=${l}`,{signal:c})}async function p1(l="24h",c=50,i){return Na(`/api/stats/errors?range=${encodeURIComponent(l)}&limit=${c}`,{signal:i})}async function m1(l,c){return Na(`/api/request/${l}`,{signal:c})}async function h1(){return Na("/api/sync",{method:"POST"})}async function g1(l="24h",c){return Na(`/api/stats/frustration?range=${encodeURIComponent(l)}`,{signal:c})}async function y1(l,c){return Na(`/api/frustration/estimate?range=${encodeURIComponent(l)}`,{signal:c})}async function v1(l){return Na(`/api/frustration/judge?range=${encodeURIComponent(l)}`,{method:"POST",headers:i1})}async function b1(){return Na("/api/frustration/cancel",{method:"POST",headers:i1})}async function x1(l="24h",c){return Na(`/api/stats/folders?range=${encodeURIComponent(l)}`,{signal:c})}async function S1(l="24h",c,i){let d=new URLSearchParams({range:l});if(c)d.set("project",c);return Na(`/api/stats/gain?${d}`,{signal:i})}async function L1(l="24h",c){return Na(`/api/stats/tools?range=${encodeURIComponent(l)}`,{signal:c})}async function C1(l="24h",c){return Na(`/api/stats/providers?range=${encodeURIComponent(l)}`,{signal:c})}async function Xv(l,c,i){let d=new URLSearchParams({range:l});if(c!==null)d.set("provider",c);return Na(`/api/stats/provider-windows?${d}`,{signal:i})}async function w1(l=100,c,i){let d=new URLSearchParams({limit:String(l)});if(c)d.set("q",c);return Na(`/api/sessions?${d}`,{signal:i})}async function k1(l,c,i){return Na(`/api/session/trace?file=${encodeURIComponent(l)}`,{signal:c,cache:"no-store"},i)}async function T1(l,c,i){return Na(`/api/session/entry?file=${encodeURIComponent(l)}&id=${encodeURIComponent(c)}`,{signal:i})}var s2={phase:"idle",current:0,total:0,processed:0,lastSyncedAt:null,error:null};function u2(){h1().catch(()=>{})}var I1=null,R1=0,zm=0,Kl={sync:s2,indexingHours:0,connected:!1,requestSync:u2},$v=new Set;function A1(l){return $v.add(l),()=>$v.delete(l)}function M1(){for(let l of $v)l()}function i2(l,c){return l.phase===c.phase&&l.current===c.current&&l.total===c.total&&l.processed===c.processed&&l.lastSyncedAt===c.lastSyncedAt&&l.error===c.error}function c2(l){if(I1!==l.version)I1=l.version,R1++;let c=Math.max(0,R1-1),i=l.indexingHours!==Kl.indexingHours||!i2(l.sync,Kl.sync);if(!i&&c===zm)return;if(zm=c,i)Kl={...Kl,sync:l.sync,indexingHours:l.indexingHours};M1()}function Yv(l){if(l===Kl.connected)return;Kl={...Kl,connected:l},M1()}var d2=()=>Kl,f2=()=>zm,p2=()=>-1;function D1(){return zm}function E1({children:l}){return qd.useEffect(()=>{let c=new EventSource("/api/events");return c.onopen=()=>Yv(!0),c.onerror=()=>Yv(!1),c.onmessage=(i)=>c2(JSON.parse(i.data)),()=>{c.close(),Yv(!1)}},[]),l}function Um(){return qd.useSyncExternalStore(A1,d2)}function O1(l=!0){return qd.useSyncExternalStore(A1,l?f2:p2)}var Pm=Q(ce(),1);function Ut({tone:l="neutral",mono:c,children:i}){return Pm.jsxDEV("span",{className:"badge","data-tone":l,"data-mono":c??!1,children:i},void 0,!1,void 0,this)}function dr({tone:l="neutral",pulse:c}){return Pm.jsxDEV("span",{className:"dot","data-tone":l,"data-pulse":c??!1},void 0,!1,void 0,this)}function wn({color:l}){return Pm.jsxDEV("span",{className:"swatch",style:{background:l}},void 0,!1,void 0,this)}function fr(l){if(l>=0.05)return"bad";if(l>=0.01)return"warn";return"ok"}var wo=Q(ce(),1);function Be({title:l,description:c,actions:i,flush:d,footer:p,className:b,index:g,stale:v,children:L}){let x=l!==void 0||c!==void 0||i!==void 0;return wo.jsxDEV("section",{className:b?`card rise ${b}`:"card rise",style:g!==void 0?{"--i":g}:void 0,children:[x&&wo.jsxDEV("header",{className:"card-header",children:[wo.jsxDEV("div",{className:"card-titles",children:[l!==void 0&&wo.jsxDEV("h2",{className:"card-title",children:l},void 0,!1,void 0,this),c!==void 0&&wo.jsxDEV("p",{className:"card-description",children:c},void 0,!1,void 0,this)]},void 0,!0,void 0,this),i!==void 0&&wo.jsxDEV("div",{className:"card-actions",children:i},void 0,!1,void 0,this)]},void 0,!0,void 0,this),wo.jsxDEV("div",{className:"card-body","data-flush":d??!1,"data-stale":v??!1,children:L},void 0,!1,void 0,this),p!==void 0&&wo.jsxDEV("footer",{className:"card-footer",children:p},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function ua({title:l,description:c,actions:i}){return wo.jsxDEV("header",{className:"page-header rise",children:[wo.jsxDEV("div",{children:[wo.jsxDEV("h1",{className:"page-title",children:l},void 0,!1,void 0,this),c!==void 0&&wo.jsxDEV("p",{className:"page-description",children:c},void 0,!1,void 0,this)]},void 0,!0,void 0,this),i!==void 0&&wo.jsxDEV("div",{className:"page-actions",children:i},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}var Nd=Q(dt(),1),q1=Q(id(),1),Za=Q(ce(),1);function _m({open:l,onClose:c,title:i,subtitle:d,actions:p,width:b,children:g}){let v=Nd.useRef(c);v.current=c;let L=Nd.useRef(null);if(Nd.useEffect(()=>{if(!l)return;let x=document.activeElement instanceof HTMLElement?document.activeElement:null;L.current?.focus();let h=(C)=>{if(C.key==="Escape")C.preventDefault(),v.current()};return window.addEventListener("keydown",h),()=>{window.removeEventListener("keydown",h),x?.focus()}},[l]),!l)return null;return q1.createPortal(Za.jsxDEV(Za.Fragment,{children:[Za.jsxDEV("div",{className:"drawer-scrim",onClick:c,role:"presentation"},void 0,!1,void 0,this),Za.jsxDEV("div",{ref:L,className:"drawer",role:"dialog","aria-modal":"true",tabIndex:-1,style:b!==void 0?{"--drawer-w":`${b}px`}:void 0,children:[Za.jsxDEV("header",{className:"drawer-header",children:[Za.jsxDEV("div",{className:"drawer-titles",children:[Za.jsxDEV("h2",{className:"drawer-title",children:i},void 0,!1,void 0,this),d!==void 0&&Za.jsxDEV("div",{className:"drawer-subtitle",children:d},void 0,!1,void 0,this)]},void 0,!0,void 0,this),p,Za.jsxDEV("button",{type:"button",className:"btn","data-variant":"ghost","data-icon":"true",onClick:c,"aria-label":"Close",children:Za.jsxDEV(Co,{size:16},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),Za.jsxDEV("div",{className:"drawer-body",children:g},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),document.body)}function Go({items:l}){return Za.jsxDEV("dl",{className:"kv",style:{margin:0},children:l.map((c)=>Za.jsxDEV("div",{className:"kv-item",children:[Za.jsxDEV("dt",{className:"kv-key",children:c.label},void 0,!1,void 0,this),Za.jsxDEV("dd",{className:"kv-value",style:{margin:0},children:c.value},void 0,!1,void 0,this)]},c.key,!0,void 0,this))},void 0,!1,void 0,this)}var Zs=Q(dt(),1);var kn=Q(ce(),1);function gi({data:l,title:c=s("ui.json"),initialCollapsed:i=!1}){let[d,p]=Zs.useState(i),[b,g]=Zs.useState(!1),v=Zs.useRef(0),L=JSON.stringify(l,null,2);return Zs.useEffect(()=>()=>window.clearTimeout(v.current),[]),kn.jsxDEV("div",{className:"stack",style:{gap:6},children:[kn.jsxDEV("div",{className:"row",style:{justifyContent:"space-between"},children:[kn.jsxDEV("button",{type:"button",className:"btn","data-variant":"ghost","data-size":"sm",onClick:()=>p((h)=>!h),"aria-expanded":!d,children:[d?kn.jsxDEV(Cn,{size:13},void 0,!1,void 0,this):kn.jsxDEV($s,{size:13},void 0,!1,void 0,this),c]},void 0,!0,void 0,this),kn.jsxDEV("button",{type:"button",className:"btn","data-variant":"ghost","data-size":"sm",onClick:async()=>{try{await navigator.clipboard.writeText(L),g(!0),window.clearTimeout(v.current),v.current=window.setTimeout(()=>g(!1),1500)}catch{}},children:[b?kn.jsxDEV(Ys,{size:13},void 0,!1,void 0,this):kn.jsxDEV(Qs,{size:13},void 0,!1,void 0,this),b?s("common.copied"):s("common.copy")]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),!d&&kn.jsxDEV("pre",{className:"code-block",children:kn.jsxDEV("code",{children:L},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}var Ws=Q(dt(),1),N1=Q(id(),1);var Tn=Q(ce(),1);function B1({open:l,title:c,onClose:i,primaryAction:d,cancelLabel:p=s("common.cancel"),children:b}){let g=Ws.useRef(null),v=Ws.useRef(null),L=Ws.useRef(i);L.current=i,Ws.useEffect(()=>{if(!l)return;let w=document.activeElement instanceof HTMLElement?document.activeElement:null,T=(k)=>{if(k.key==="Escape")k.preventDefault(),L.current()};return window.addEventListener("keydown",T),()=>{window.removeEventListener("keydown",T),w?.focus()}},[l]);let x=d!==void 0,h=d?.disabled??!1;if(Ws.useEffect(()=>{if(!l)return;(x&&!h?g.current:v.current)?.focus()},[l,x,h]),!l)return null;return N1.createPortal(Tn.jsxDEV("div",{className:"modal-overlay",onClick:(w)=>{if(w.target===w.currentTarget)i()},role:"presentation",children:Tn.jsxDEV("div",{className:"modal",role:"dialog","aria-modal":"true","aria-labelledby":"modal-title",children:[Tn.jsxDEV("div",{className:"modal-header",children:[Tn.jsxDEV("h2",{id:"modal-title",className:"modal-title",children:c},void 0,!1,void 0,this),Tn.jsxDEV("button",{type:"button",className:"btn","data-variant":"ghost","data-icon":"true","data-size":"sm",onClick:i,"aria-label":s("common.close"),children:Tn.jsxDEV(Co,{size:15},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),Tn.jsxDEV("div",{className:"modal-body",children:b},void 0,!1,void 0,this),Tn.jsxDEV("div",{className:"modal-footer",children:[Tn.jsxDEV("button",{ref:v,type:"button",className:"btn",onClick:i,children:p},void 0,!1,void 0,this),d&&Tn.jsxDEV("button",{ref:g,type:"button",className:"btn","data-variant":"primary",onClick:d.onClick,disabled:d.disabled,children:d.label},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this),document.body)}var Hm=Q(ce(),1);function pr({value:l,onChange:c,placeholder:i=s("common.filter"),label:d="Filter",width:p}){return Hm.jsxDEV("label",{className:"search",children:[Hm.jsxDEV(Md,{size:14},void 0,!1,void 0,this),Hm.jsxDEV("input",{className:"input",type:"search","aria-label":d,value:l,placeholder:i,onChange:(b)=>c(b.target.value),style:p!==void 0?{width:p}:void 0},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}var yi=Q(dt(),1),Fm=Q(ce(),1);function Fa({options:l,value:c,onChange:i,size:d="md","aria-label":p}){let b=yi.useRef(null),[g,v]=yi.useState(null);return yi.useLayoutEffect(()=>{let L=b.current,x=L?.querySelector('[data-active="true"]');if(!L||!x){v(null);return}let h=()=>v({left:x.offsetLeft,width:x.offsetWidth});h();let C=new ResizeObserver(h);return C.observe(L),()=>C.disconnect()},[c,l]),Fm.jsxDEV("div",{ref:b,className:"segmented","data-size":d,role:"radiogroup","aria-label":p,children:[g&&Fm.jsxDEV("span",{className:"segmented-thumb",style:{left:g.left,width:g.width}},void 0,!1,void 0,this),l.map((L)=>Fm.jsxDEV("button",{type:"button",role:"radio","aria-checked":L.value===c,className:"segmented-option","data-active":L.value===c,title:L.title,onClick:()=>i(L.value),children:L.label},L.value,!1,void 0,this))]},void 0,!0,void 0,this)}var xi=Q(dt(),1);var vi=Q(dt(),1);function Gm(){let l=vi.useRef(null),[c,i]=vi.useState(0);return vi.useLayoutEffect(()=>{let d=l.current;if(!d)return;i(d.clientWidth);let p=new ResizeObserver((b)=>{let g=Math.round(b[0]?.contentRect.width??0);i((v)=>v===g?v:g)});return p.observe(d),()=>p.disconnect()},[]),[l,c]}var Bd=Q(ce(),1);function bi({values:l,color:c="var(--chart-primary)",height:i=28,width:d,area:p=!0}){let[b,g]=Gm(),v=d??g,L=Math.max(0,...l),x=l.length,h="";if(v>0&&x>0){let C=x>1?v/(x-1):0;for(let w=0;w<x;w++){let T=x>1?w*C:v/2,k=L>0?i-2-l[w]/L*(i-4):i-2;h+=`${w===0?"M":"L"}${T.toFixed(1)},${k.toFixed(1)}`}}return Bd.jsxDEV("div",{ref:b,className:"sparkline",style:{width:d??"100%",height:i},children:v>0&&x>0&&Bd.jsxDEV("svg",{width:v,height:i,"aria-hidden":"true",children:[p&&Bd.jsxDEV("path",{className:"area",d:`${h}L${v},${i}L0,${i}Z`,fill:c},void 0,!1,void 0,this),Bd.jsxDEV("path",{className:"chart-line",d:h,stroke:c},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)}var ln=Q(ce(),1);function se({label:l,value:c,hint:i,delta:d,spark:p,sparkColor:b,size:g="md",title:v}){let L=g2(typeof c==="string"||typeof c==="number"?c:null);return ln.jsxDEV("div",{className:"stat","data-size":g,title:v,children:[ln.jsxDEV("div",{className:"stat-label",children:l},void 0,!1,void 0,this),ln.jsxDEV("div",{className:"stat-value","data-flash":L,children:c},void 0,!1,void 0,this),(i!==void 0||d)&&ln.jsxDEV("div",{className:"stat-foot",children:[d&&ln.jsxDEV(h2,{...d},void 0,!1,void 0,this),i!==void 0&&ln.jsxDEV("span",{className:"truncate",children:i},void 0,!1,void 0,this)]},void 0,!0,void 0,this),p&&p.length>1&&ln.jsxDEV("div",{className:"stat-spark",children:ln.jsxDEV(bi,{values:p,color:b},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function oa({min:l,children:c}){return ln.jsxDEV("div",{className:"stat-grid rise",style:l!==void 0?{"--stat-min":`${l}px`}:void 0,children:c},void 0,!1,void 0,this)}function h2({change:l,good:c="up"}){if(l===null||!Number.isFinite(l))return ln.jsxDEV("span",{className:"delta",children:"new"},void 0,!1,void 0,this);let i=Math.abs(l)<0.0005?0:l,d=i===0?void 0:i>0===(c==="up")?"good":"bad",p=i>0?"+":i<0?"−":"±",b=Math.abs(i)*100;return ln.jsxDEV("span",{className:"delta","data-tone":d,children:[p,b>=100?b.toFixed(0):b.toFixed(1),"%"]},void 0,!0,void 0,this)}function g2(l){let c=xi.useRef(l),[i,d]=xi.useState(!1);return xi.useEffect(()=>{if(c.current===l)return;let p=c.current!==null;if(c.current=l,!p)return;d(!0);let b=setTimeout(()=>d(!1),900);return()=>clearTimeout(b)},[l]),i}var ya=Q(ce(),1);function gt({title:l=s("common.nothing-here-yet"),hint:c}){return ya.jsxDEV("div",{className:"empty",children:[ya.jsxDEV(Cd,{size:20},void 0,!1,void 0,this),ya.jsxDEV("div",{className:"empty-title",children:l},void 0,!1,void 0,this),c!==void 0&&ya.jsxDEV("div",{className:"empty-hint",children:c},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function Si({error:l,onRetry:c}){return ya.jsxDEV("div",{className:"error-state",role:"alert",children:[ya.jsxDEV(Yl,{size:15},void 0,!1,void 0,this),ya.jsxDEV("span",{className:"error-state-message",children:typeof l==="string"?l:l.message},void 0,!1,void 0,this),c&&ya.jsxDEV("button",{type:"button",className:"btn","data-size":"sm","data-variant":"ghost",onClick:c,children:[ya.jsxDEV(Ad,{size:13},void 0,!1,void 0,this)," ",s("ui.retry")]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)}function Ba({width:l="100%",height:c=14,style:i}){return ya.jsxDEV("div",{className:"skeleton",style:{width:l,height:c,...i}},void 0,!1,void 0,this)}function Mt({height:l=220}){return ya.jsxDEV(Ba,{height:l,style:{borderRadius:8}},void 0,!1,void 0,this)}function na({rows:l=6}){return ya.jsxDEV("div",{style:{display:"flex",flexDirection:"column",gap:10,padding:"8px 16px 16px"},children:Array.from({length:l},(c,i)=>ya.jsxDEV(Ba,{height:16,width:`${92-i*13%30}%`},i,!1,void 0,this))},void 0,!1,void 0,this)}function _e({query:l,skeleton:c,isEmpty:i,empty:d,children:p}){if(l.data===null){if(l.error)return ya.jsxDEV(Si,{error:l.error,onRetry:l.refetch},void 0,!1,void 0,this);return ya.jsxDEV(ya.Fragment,{children:c},void 0,!1,void 0,this)}return ya.jsxDEV(ya.Fragment,{children:[l.error&&ya.jsxDEV(Si,{error:l.error,onRetry:l.refetch},void 0,!1,void 0,this),i?.(l.data)?d??ya.jsxDEV(gt,{},void 0,!1,void 0,this):p(l.data)]},void 0,!0,void 0,this)}var eu=Q(dt(),1);function Kv(){return ir()}function B(l){return l.toLocaleString(Kv())}function De(l){return l.toLocaleString(Kv(),{notation:"compact"})}function da(l,c){if(l===0)return"$0";let i=c!==void 0?c:l>0&&l<0.01?4:2;return`$${l.toLocaleString(Kv(),{minimumFractionDigits:i,maximumFractionDigits:i})}`}function Ft(l,c,i){return l===0&&c>0?"N/A":da(l,i)}function Zv(l){return l.usage.totalTokens>0&&l.usage.cost.total===0&&(l.provider==="xai-oauth"||l.costUnpriced===!0)}function Zl(l,c){return Ft(l.usage.cost.total,Zv(l)?1:0,c)}function je(l,c=1){return`${(l*100).toFixed(c)}%`}function ao(l){let c=l*100;if(c>0&&c<0.005)return"<0.01%";return je(l,c>0&&c<0.1?2:1)}function Dt(l,c){if(l===null)return"-";let i=l/1000,d=c!==void 0?c:i<1?2:1;return`${i.toFixed(d)}s`}function Js(l){if(l<60000)return Dt(l);let c=Math.floor(l/60000);if(c<60)return`${c}m ${String(Math.floor(l%60000/1000)).padStart(2,"0")}s`;return`${Math.floor(c/60)}h ${String(c%60).padStart(2,"0")}m`}function mr(l){if(l===null)return"-";return l.toFixed(1)}var Qv=[["second",1000],["minute",60000],["hour",3600000],["day",86400000],["month",2629800000],["year",31557600000]],z1=new Map,Vm=new Map;function fa(l,c=Date.now()){let i=ir(),d=z1.get(i);if(!d)d=new Intl.RelativeTimeFormat(i,{numeric:"auto"}),z1.set(i,d);let p=l-c,b=0;for(let L=1;L<Qv.length;L++)if(Math.abs(p)>=Qv[L][1])b=L;let[g,v]=Qv[b];return d.format(Math.round(p/v),g)}function Wv(l){let c=ir(),i=`${c}:mdhm`,d=Vm.get(i);if(!d)d=new Intl.DateTimeFormat(c,{month:"short",day:"numeric",hour:"2-digit",minute:"2-digit",hourCycle:"h23"}),Vm.set(i,d);return d.format(l)}function sn(l){let c=ir(),i=Vm.get(c);if(!i)i=new Intl.DateTimeFormat(c,{month:"short",day:"numeric",hour:"2-digit",minute:"2-digit",second:"2-digit",hourCycle:"h23"}),Vm.set(c,i);return i.format(l)}function hr(l){return l.replace(/^\/+|\/+$/g,"")||s("common.root")}function Jv(l){if(l>=1e9)return`${(l/1e9).toFixed(1)} GB`;if(l>=1e6)return`${(l/1e6).toFixed(1)} MB`;if(l>=1000)return`${(l/1000).toFixed(1)} KB`;return`${l} B`}var Et=Q(ce(),1);function Ht({columns:l,rows:c,rowKey:i,onRowClick:d,selectedKey:p,initialSort:b,limit:g,dense:v,empty:L,expanded:x}){let[h,C]=eu.useState(b??null),[w,T]=eu.useState(g??Number.POSITIVE_INFINITY),k=eu.useMemo(()=>{let U=h?l.find((F)=>F.key===h.key):void 0;if(!h||!U?.sort)return c;let P=U.sort,X=h.dir==="asc"?1:-1;return[...c].sort((F,fe)=>{let Z=P(F),te=P(fe);if(typeof Z==="number"&&typeof te==="number")return(Z-te)*X;return String(Z).localeCompare(String(te))*X})},[c,l,h]);if(c.length===0)return Et.jsxDEV(Et.Fragment,{children:L??Et.jsxDEV(gt,{},void 0,!1,void 0,this)},void 0,!1,void 0,this);let M=k.length>w?k.slice(0,w):k,D=(U)=>{if(!U.sort)return;C((P)=>P?.key===U.key?{key:U.key,dir:P.dir==="asc"?"desc":"asc"}:{key:U.key,dir:U.align==="right"?"desc":"asc"})};return Et.jsxDEV(Et.Fragment,{children:[Et.jsxDEV("div",{className:"table-wrap",children:Et.jsxDEV("table",{className:"table","data-dense":v??!1,children:[Et.jsxDEV("thead",{children:Et.jsxDEV("tr",{children:l.map((U)=>{let P=h?.key===U.key?h.dir:void 0;return Et.jsxDEV("th",{"data-align":U.align??"left","data-sortable":U.sort!==void 0,"data-sorted":P,style:U.width!==void 0?{width:U.width}:void 0,title:U.title,onClick:()=>D(U),"aria-sort":P==="asc"?"ascending":P==="desc"?"descending":void 0,children:[U.header,P&&Et.jsxDEV("span",{className:"sort-arrow",children:P==="asc"?Et.jsxDEV(yd,{size:11},void 0,!1,void 0,this):Et.jsxDEV(pd,{size:11},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},U.key,!0,void 0,this)})},void 0,!1,void 0,this)},void 0,!1,void 0,this),Et.jsxDEV("tbody",{children:M.map((U)=>{let P=i(U),X=x?.(U)??null;return Et.jsxDEV(eu.Fragment,{children:[Et.jsxDEV("tr",{"data-clickable":d!==void 0,"data-selected":p===P,onClick:d?()=>d(U):void 0,onKeyDown:d?(F)=>{if(F.key==="Enter"||F.key===" ")F.preventDefault(),d(U)}:void 0,tabIndex:d?0:void 0,children:l.map((F)=>Et.jsxDEV("td",{"data-align":F.align??"left","data-wrap":F.wrap??!1,children:F.render(U)},F.key,!1,void 0,this))},void 0,!1,void 0,this),X!==null&&Et.jsxDEV("tr",{children:Et.jsxDEV("td",{colSpan:l.length,"data-wrap":"true",style:{padding:0},children:X},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},P,!0,void 0,this)})},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this),g!==void 0&&k.length>g&&Et.jsxDEV("div",{className:"table-more",children:[Et.jsxDEV("span",{className:"micro",children:s("ui.table-shown-of",{shown:B(M.length),total:B(k.length)})},void 0,!1,void 0,this),k.length>w&&Et.jsxDEV("button",{type:"button",className:"btn","data-size":"sm","data-variant":"ghost",onClick:()=>T((U)=>U+g*4),children:s("common.show-more")},void 0,!1,void 0,this),w>g&&Et.jsxDEV("button",{type:"button",className:"btn","data-size":"sm","data-variant":"ghost",onClick:()=>T(g),children:s("ui.show-fewer")},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)}function pa({value:l,max:c,display:i,color:d}){let p=c>0?Math.min(100,l/c*100):0;return Et.jsxDEV("div",{className:"meter-cell",children:[Et.jsxDEV("span",{className:"num",children:i},void 0,!1,void 0,this),Et.jsxDEV("div",{className:"meter",children:Et.jsxDEV("div",{className:"meter-fill",style:{width:`${p}%`,background:d}},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function Ga({primary:l,secondary:c,lead:i}){return Et.jsxDEV("div",{className:"row",style:{gap:10},children:[i,Et.jsxDEV("div",{className:"stack",style:{gap:0},children:[Et.jsxDEV("span",{className:"cell-primary truncate",children:l},void 0,!1,void 0,this),c!==void 0&&Et.jsxDEV("span",{className:"cell-secondary truncate",children:c},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)}var jm=Q(ce(),1);function U1(){let l=Ql(),c=l==="en"?"zh-CN":"en",i=l==="en"?"中文":"EN";return jm.jsxDEV("button",{type:"button",className:"btn","data-variant":"ghost","data-locale-toggle":l,onClick:()=>o1(c),"aria-label":s("shell.switch-language"),title:`${s("shell.language")}: ${i}`,children:[jm.jsxDEV(wd,{size:15},void 0,!1,void 0,this),jm.jsxDEV("span",{className:"topbar-locale-label",children:i},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}var Xm=Q(dt(),1);var Jt=Q(ce(),1);function P1(){let{sync:l,indexingHours:c,connected:i,requestSync:d}=Um(),p=v2(l.phase==="idle"?15000:null),b,g;if(!i)b=Jt.jsxDEV(Jt.Fragment,{children:[Jt.jsxDEV(dr,{tone:"warn"},void 0,!1,void 0,this),Jt.jsxDEV("span",{children:s("shell.reconnecting")},void 0,!1,void 0,this)]},void 0,!0,void 0,this),g=s("shell.lost-connection");else if(l.phase==="syncing")b=Jt.jsxDEV(Jt.Fragment,{children:[Jt.jsxDEV($l,{size:13,className:"spin"},void 0,!1,void 0,this),Jt.jsxDEV("span",{children:s("shell.syncing")},void 0,!1,void 0,this),l.total>0&&Jt.jsxDEV("span",{className:"live-chip-count",children:[B(l.current),"/",B(l.total)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),g=s("shell.ingesting");else if(l.phase==="error")b=Jt.jsxDEV(Jt.Fragment,{children:[Jt.jsxDEV(dr,{tone:"bad"},void 0,!1,void 0,this),Jt.jsxDEV("span",{children:s("shell.sync-failed")},void 0,!1,void 0,this)]},void 0,!0,void 0,this),g=`${l.error??s("shell.sync-failed")} — click to retry`;else if(c>y2)b=Jt.jsxDEV(Jt.Fragment,{children:[Jt.jsxDEV($l,{size:13,className:"spin"},void 0,!1,void 0,this),Jt.jsxDEV("span",{children:s("shell.indexing")},void 0,!1,void 0,this),Jt.jsxDEV("span",{className:"live-chip-count",children:[B(c),"h left"]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),g=s("shell.building-rollups");else b=Jt.jsxDEV(Jt.Fragment,{children:[Jt.jsxDEV(dr,{tone:"live",pulse:!0},void 0,!1,void 0,this),Jt.jsxDEV("span",{children:s("shell.live")},void 0,!1,void 0,this),l.lastSyncedAt!==null&&Jt.jsxDEV("span",{className:"live-chip-count",children:b2(p-l.lastSyncedAt)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),g=s("shell.sync-now");return Jt.jsxDEV("button",{type:"button",className:"live-chip",onClick:d,disabled:l.phase==="syncing",title:g,children:b},void 0,!1,void 0,this)}var y2=24;function v2(l){let[c,i]=Xm.useState(Date.now);return Xm.useEffect(()=>{if(l===null)return;i(Date.now());let d=setInterval(()=>i(Date.now()),l);return()=>clearInterval(d)},[l]),c}function b2(l){let c=Math.max(0,Math.round(l/1000));if(c<45)return s("shell.just-now");let i=Math.round(c/60);if(i<60)return`${i}m ago`;let d=Math.round(i/60);return d<24?`${d}h ago`:`${Math.round(d/24)}d ago`}var Ym=[{headingKey:"nav.usage",items:[{id:"overview",labelKey:"nav.overview",icon:kd,hotkey:"o"},{id:"models",labelKey:"nav.models",icon:xd,hotkey:"m"},{id:"providers",labelKey:"nav.providers",icon:Xl,hotkey:"p"},{id:"costs",labelKey:"nav.costs",icon:bd,hotkey:"c"}]},{headingKey:"nav.activity",items:[{id:"requests",labelKey:"nav.requests",icon:fd,hotkey:"r"},{id:"errors",labelKey:"nav.errors",icon:Vl,hotkey:"e"},{id:"traces",labelKey:"nav.traces",icon:Ln,hotkey:"t"}]},{headingKey:"nav.insights",items:[{id:"tools",labelKey:"nav.tools",icon:Ed,hotkey:"l"},{id:"frustration",labelKey:"nav.frustration",icon:jl,hotkey:"f"},{id:"projects",labelKey:"nav.projects",icon:Sd,hotkey:"j"},{id:"gain",labelKey:"nav.gain",icon:ur,hotkey:"g"}]}],x2=Ym.flatMap((l)=>l.items),_1=x2.map((l)=>l.id);var eb=Q(dt(),1),F1="zeta-stats-theme",G1="(prefers-color-scheme: dark)";function S2(){if(typeof localStorage>"u")return"system";let l=localStorage.getItem(F1);return l==="light"||l==="dark"||l==="system"?l:"system"}function V1(){if(typeof window>"u")return"dark";return window.matchMedia(G1).matches?"dark":"light"}var tu=S2(),$m=tu==="system"?V1():tu,tb=new Set;function j1(){for(let l of tb)l()}function ab(){if($m=tu==="system"?V1():tu,typeof document<"u")document.documentElement.dataset.theme=$m,document.documentElement.style.colorScheme=$m}if(typeof window<"u")ab(),window.matchMedia(G1).addEventListener("change",()=>{if(tu==="system")ab(),j1()});function L2(l){if(tu=l,typeof localStorage<"u")localStorage.setItem(F1,l);ab(),j1()}function H1(l){return tb.add(l),()=>tb.delete(l)}function X1(){let l=eb.useSyncExternalStore(H1,()=>tu,()=>"system"),c=eb.useSyncExternalStore(H1,()=>$m,()=>"dark");return{preference:l,resolved:c,setPreference:L2}}var ob=Q(ce(),1),C2={system:"light",light:"dark",dark:"system"},w2={system:"shell.system-theme",light:"shell.light-theme",dark:"shell.dark-theme"},k2={system:Id,light:Dd,dark:Rd};function Y1(){Ql();let{preference:l,setPreference:c}=X1(),i=k2[l],d=s(w2[l]);return ob.jsxDEV("button",{type:"button",className:"btn","data-variant":"ghost","data-icon":"true",onClick:()=>c(C2[l]),"aria-label":`${d} (click to switch)`,title:`${d} — click to switch`,children:ob.jsxDEV(i,{size:15},void 0,!1,void 0,this)},void 0,!1,void 0,this)}var at=Q(ce(),1);function $1({section:l,onSectionChange:c,range:i,onRangeChange:d,children:p}){Ql();let b=hi.map((w,T)=>({value:w,label:s(sa(w).labelKey),title:`${s(sa(w).windowKey)} (${T+1})`})),[g,v]=Li.useState(!1),L=T2(),{sync:x}=Um();I2(c,d);let h=(w)=>{c(w),v(!1),window.scrollTo({top:0})},C=x.phase==="syncing"?x.total>0?x.current/x.total:null:void 0;return at.jsxDEV(at.Fragment,{children:[at.jsxDEV("div",{className:"shell-ambient"},void 0,!1,void 0,this),at.jsxDEV("header",{className:"topbar","data-scrolled":L,children:[at.jsxDEV("button",{type:"button",className:"btn topbar-menu","data-variant":"ghost","data-icon":"true",onClick:()=>v(!0),"aria-label":s("nav.open-navigation"),children:at.jsxDEV(Td,{size:16},void 0,!1,void 0,this)},void 0,!1,void 0,this),at.jsxDEV("div",{className:"topbar-brand",children:[at.jsxDEV("svg",{className:"topbar-mark",viewBox:"0 0 64 64",width:"22",height:"22","aria-hidden":"true",children:[at.jsxDEV("defs",{children:at.jsxDEV("linearGradient",{id:"zeta-mark-grad",x1:"0",y1:"0",x2:"1",y2:"1",children:[at.jsxDEV("stop",{offset:"0",stopColor:"oklch(0.7 0.24 340)"},void 0,!1,void 0,this),at.jsxDEV("stop",{offset:".5",stopColor:"oklch(0.62 0.21 295)"},void 0,!1,void 0,this),at.jsxDEV("stop",{offset:"1",stopColor:"oklch(0.81 0.14 200)"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this),at.jsxDEV("text",{x:"32",y:"47",textAnchor:"middle",fontSize:"52",fontWeight:"700",fontFamily:"Georgia, 'Times New Roman', serif",fill:"url(#zeta-mark-grad)",children:"ζ"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),at.jsxDEV("span",{children:"zeta"},void 0,!1,void 0,this),at.jsxDEV("span",{className:"topbar-slash",children:"/"},void 0,!1,void 0,this),at.jsxDEV("span",{className:"topbar-title",children:s("nav.breadcrumb-stats")},void 0,!1,void 0,this)]},void 0,!0,void 0,this),at.jsxDEV("div",{className:"topbar-spacer"},void 0,!1,void 0,this),at.jsxDEV("div",{className:"topbar-actions",children:[at.jsxDEV("span",{className:"topbar-hide-narrow",children:at.jsxDEV(P1,{},void 0,!1,void 0,this)},void 0,!1,void 0,this),at.jsxDEV(Fa,{options:b,value:i,onChange:d,"aria-label":s("common.time-range")},void 0,!1,void 0,this),at.jsxDEV(U1,{},void 0,!1,void 0,this),at.jsxDEV(Y1,{},void 0,!1,void 0,this)]},void 0,!0,void 0,this),C!==void 0&&at.jsxDEV("div",{className:"topbar-progress",children:at.jsxDEV("div",{className:"topbar-progress-fill","data-indeterminate":C===null,style:{width:`${(C??0)*100}%`}},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),g&&at.jsxDEV("div",{className:"drawer-scrim",onClick:()=>v(!1),role:"presentation"},void 0,!1,void 0,this),at.jsxDEV("nav",{className:"sidebar","data-open":g,"aria-label":s("nav.pages"),children:[Ym.map((w)=>at.jsxDEV("div",{className:"nav-group",children:[at.jsxDEV("div",{className:"nav-heading",children:s(w.headingKey)},void 0,!1,void 0,this),w.items.map((T)=>at.jsxDEV("button",{type:"button",className:"nav-row","data-active":T.id===l,"aria-current":T.id===l?"page":void 0,onClick:()=>h(T.id),children:[at.jsxDEV(T.icon,{size:15},void 0,!1,void 0,this),at.jsxDEV("span",{className:"nav-row-label",children:s(T.labelKey)},void 0,!1,void 0,this),at.jsxDEV("kbd",{children:["G ",T.hotkey.toUpperCase()]},void 0,!0,void 0,this)]},T.id,!0,void 0,this))]},w.headingKey,!0,void 0,this)),at.jsxDEV("div",{className:"sidebar-foot micro",children:[at.jsxDEV("span",{children:[at.jsxDEV("span",{className:"kbd",children:"1"},void 0,!1,void 0,this),"–",at.jsxDEV("span",{className:"kbd",children:"6"},void 0,!1,void 0,this)," ",s("shell.range-suffix")]},void 0,!0,void 0,this),at.jsxDEV("span",{children:[at.jsxDEV("span",{className:"kbd",children:"G"},void 0,!1,void 0,this)," ",s("shell.jump-hint")]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),at.jsxDEV("main",{className:"shell-panel",children:at.jsxDEV("div",{className:"shell-content",children:p},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function T2(){let[l,c]=Li.useState(!1);return Li.useEffect(()=>{let i=()=>c(window.scrollY>4);return i(),window.addEventListener("scroll",i,{passive:!0}),()=>window.removeEventListener("scroll",i)},[]),l}function I2(l,c){Li.useEffect(()=>{let i=0,d=(p)=>{if(p.metaKey||p.ctrlKey||p.altKey||p.defaultPrevented)return;let b=p.target;if(b instanceof HTMLElement&&(b.isContentEditable||b.tagName==="INPUT"||b.tagName==="TEXTAREA"||b.tagName==="SELECT"))return;if(document.querySelector('[aria-modal="true"]'))return;let g=p.key.toLowerCase();if(i&&Date.now()-i<1200){i=0;let L=Ym.flatMap((x)=>x.items).find((x)=>x.hotkey===g);if(L)p.preventDefault(),l(L.id),window.scrollTo({top:0});return}if(g==="g"){i=Date.now();return}let v=Number(g)-1;if(Number.isInteger(v)&&v>=0&&v<hi.length)p.preventDefault(),c(hi[v])};return window.addEventListener("keydown",d),()=>window.removeEventListener("keydown",d)},[l,c])}var $r=Q(dt(),1);function zd(l){let[c,i]=l.replace(/^#\/?/,"").split("?"),d=_1.includes(c)?c:"overview",p=new URLSearchParams(i??""),b=p.get("range"),g=hi.includes(b??"")?b:"24h";return{section:d,range:g,session:p.get("s")}}function Qm({section:l,range:c,session:i}){let d=i?`&s=${encodeURIComponent(i)}`:"";return`#/${l}?range=${c}${d}`}function Q1(){let[l,c]=$r.useState(()=>zd(window.location.hash));$r.useEffect(()=>{let g=()=>c(zd(window.location.hash));window.addEventListener("hashchange",g),window.addEventListener("popstate",g);let v=Qm(zd(window.location.hash));if(window.location.hash!==v)history.replaceState(null,"",v);return()=>{window.removeEventListener("hashchange",g),window.removeEventListener("popstate",g)}},[]);let i=$r.useCallback((g)=>{c(g);let v=Qm(g);if(window.location.hash!==v)history.pushState(null,"",v)},[]),d=$r.useCallback((g)=>i({...l,section:g,session:g==="traces"?l.session:null}),[l,i]),p=$r.useCallback((g)=>i({...l,range:g}),[l,i]),b=$r.useCallback((g)=>i({...l,session:g}),[l,i]);return{...l,setSection:d,setRange:p,setSession:b}}var _d=Q(dt(),1);var gr=Q(ce(),1);function au({items:l,max:c,onSelect:i}){let d=c??Math.max(0,...l.map((p)=>p.value));return gr.jsxDEV("div",{className:"bar-list",children:l.map((p)=>{let b=d>0?Math.max(0.5,p.value/d*100):0,g=gr.jsxDEV(gr.Fragment,{children:[gr.jsxDEV("span",{className:"bar-list-fill",style:{width:`${b}%`,background:p.color??"var(--chart-primary)"}},void 0,!1,void 0,this),gr.jsxDEV("span",{className:"bar-list-label",children:p.label},void 0,!1,void 0,this),gr.jsxDEV("span",{className:"bar-list-value",children:p.display??B(p.value)},void 0,!1,void 0,this)]},void 0,!0,void 0,this);return i?gr.jsxDEV("button",{type:"button",className:"bar-list-row",onClick:()=>i(p.key),children:g},p.key,!1,void 0,this):gr.jsxDEV("div",{className:"bar-list-row",children:g},p.key,!1,void 0,this)})},void 0,!1,void 0,this)}var Qr=Q(dt(),1);var bt=Q(ce(),1),ou=10,R2=24,A2=68,M2=4;function In({slots:l,tickLabel:c,tooltipTitle:i,series:d,kind:p="bars",stacked:b=!0,height:g=220,format:v=De,formatRight:L,formatTooltip:x,yMax:h,yMaxRight:C,hidden:w,showTotal:T,references:k,onSelect:M,emptyLabel:D="No data in this range",tooltipExtra:U}){let[P,X]=Gm(),[F,fe]=Qr.useState(null),Z=Qr.useId().replace(/:/g,""),te=Qr.useMemo(()=>d.filter((W)=>!w?.has(W.key)),[d,w]),Y=Qr.useMemo(()=>{let W=te.filter((yt)=>yt.axis!=="right"),Ae=te.filter((yt)=>yt.axis==="right"),lt=(yt)=>b&&(yt.kind??p)!=="line",re=new Map,j=Array.from({length:l},()=>0),ve=0;for(let yt of W)if(lt(yt)){let xe=j.slice();re.set(yt.key,xe);for(let cn=0;cn<l;cn++)j[cn]+=yt.values[cn]??0}else for(let xe=0;xe<l;xe++)ve=Math.max(ve,yt.values[xe]??0);for(let yt of j)ve=Math.max(ve,yt);let Ge=0;for(let yt of Ae)for(let xe=0;xe<l;xe++)Ge=Math.max(Ge,yt.values[xe]??0);for(let yt of k??[])if(yt.axis==="right")Ge=Math.max(Ge,yt.value);else ve=Math.max(ve,yt.value);let $e=K1(h??ve),Qe=Ae.length>0?K1(C??Ge):null,Xe=te.every((yt)=>yt.values.every((xe)=>!xe));return{left:W,right:Ae,bases:re,stackable:lt,leftScale:$e,rightScale:Qe,empty:Xe}},[te,l,b,p,h,C,k]),J=Y.leftScale.ticks.map((W)=>v(W)),V=Y.rightScale?.ticks.map((W)=>(L??v)(W))??[],de=Math.max(28,Z1(J)+12),Se=Y.rightScale?Math.max(28,Z1(V)+12):8,Ie=Math.max(0,X-de-Se),Me=g-ou-R2,oe=l>0?Ie/l:0,he=(W)=>ou+Me-W/Y.leftScale.max*Me,Ce=(W)=>ou+Me-W/(Y.rightScale?.max??1)*Me,We=(W)=>de+(W+0.5)*oe,St=te.filter((W)=>(W.kind??p)==="bars"),ee=St.filter((W)=>!Y.stackable(W)||W.axis==="right"),ze=Math.max(1,Math.min(56,oe*(oe>6?0.72:0.9))),Lt=Math.max(1,Math.ceil(l/Math.max(1,Math.floor(Ie/A2)))),Ct=(W)=>{let Ae=W.currentTarget.getBoundingClientRect(),lt=Math.floor((W.clientX-Ae.left)/(Ae.width/l));fe(lt>=0&<<l?lt:null)},ue=F===null?[]:te.filter((W)=>W.tooltip!==!1).map((W)=>({s:W,v:W.values[F]})).filter((W)=>W.v!==null&&W.v!==void 0&&(W.v!==0||te.length===1)).sort((W,Ae)=>te.length>1?Ae.v-W.v:0),He=ue.filter((W)=>W.s.axis!=="right").reduce((W,Ae)=>W+Ae.v,0),Fe=T??(b&&Y.left.length>1);return bt.jsxDEV("div",{className:"chart",ref:P,"data-hovering":F!==null,style:{height:g},children:[X>0&&bt.jsxDEV("svg",{width:X,height:g,role:"img",children:[bt.jsxDEV("defs",{children:te.filter((W)=>W.pattern==="hatch").map((W)=>bt.jsxDEV("pattern",{id:`${Z}-${nb(W.key)}`,width:"5",height:"5",patternUnits:"userSpaceOnUse",patternTransform:"rotate(45)",children:[bt.jsxDEV("rect",{width:"5",height:"5",fill:W.color,fillOpacity:"0.14"},void 0,!1,void 0,this),bt.jsxDEV("rect",{width:"1.6",height:"5",fill:W.color},void 0,!1,void 0,this)]},W.key,!0,void 0,this))},void 0,!1,void 0,this),bt.jsxDEV("g",{className:"chart-grid",children:Y.leftScale.ticks.map((W)=>bt.jsxDEV("line",{x1:de,x2:de+Ie,y1:he(W),y2:he(W)},W,!1,void 0,this))},void 0,!1,void 0,this),bt.jsxDEV("g",{className:"chart-axis",children:[Y.leftScale.ticks.map((W,Ae)=>bt.jsxDEV("text",{x:de-8,y:he(W),dy:"0.32em",textAnchor:"end",children:J[Ae]},W,!1,void 0,this)),Y.rightScale?.ticks.map((W,Ae)=>bt.jsxDEV("text",{x:de+Ie+8,y:Ce(W),dy:"0.32em",textAnchor:"start",children:V[Ae]},W,!1,void 0,this)),Array.from({length:l},(W,Ae)=>Ae%Lt===0?bt.jsxDEV("text",{x:We(Ae),y:g-6,textAnchor:"middle",children:c(Ae)},Ae,!1,void 0,this):null)]},void 0,!0,void 0,this),F!==null&&bt.jsxDEV("rect",{className:"chart-cursor",x:de+F*oe,y:ou,width:oe,height:Me},void 0,!1,void 0,this),te.filter((W)=>(W.kind??p)==="area").map((W)=>{let Ae=W.axis==="right"?Ce:he,lt=Y.bases.get(W.key),re=($e)=>(lt?.[$e]??0)+(W.values[$e]??0),j=W1(l,We,($e)=>Ae(re($e))),ve=Array.from({length:l},($e,Qe)=>l-1-Qe).map(($e)=>`L${We($e).toFixed(1)},${Ae(lt?.[$e]??0).toFixed(1)}`).join(""),Ge=W.pattern==="hatch"?`url(#${Z}-${nb(W.key)})`:W.color;return bt.jsxDEV("g",{children:[bt.jsxDEV("path",{d:`${j}${ve}Z`,fill:Ge,fillOpacity:W.pattern?1:0.2},void 0,!1,void 0,this),bt.jsxDEV("path",{className:"chart-line",d:j,stroke:W.color},void 0,!1,void 0,this)]},W.key,!0,void 0,this)}),St.map((W)=>{let Ae=W.axis==="right"?Ce:he,lt=Y.bases.get(W.key),re=ee.indexOf(W),j=re>=0?ze/ee.length:ze,ve=W.pattern==="hatch"?`url(#${Z}-${nb(W.key)})`:W.color;return bt.jsxDEV("g",{children:W.values.map((Ge,$e)=>{if(!Ge)return null;let Qe=re>=0?0:lt?.[$e]??0,Xe=Ae(Qe),yt=Ae(Qe+Ge),xe=We($e)-ze/2+(re>=0?re*j:0);return bt.jsxDEV("rect",{className:"chart-bar","data-hover":F===$e,x:xe,y:Math.min(Xe,yt),width:Math.max(1,j-(re>=0&&ee.length>1?1:0)),height:Math.max(Ge>0?1:0,Math.abs(Xe-yt)),fill:ve},$e,!1,void 0,this)})},W.key,!1,void 0,this)}),te.filter((W)=>(W.kind??p)==="line").map((W)=>{let Ae=W.axis==="right"?Ce:he,lt=(re)=>{let j=W.values[re];return j===null||j===void 0?null:Ae(j)};return bt.jsxDEV("g",{children:[bt.jsxDEV("path",{className:"chart-line",d:W1(l,We,lt),stroke:W.color,strokeDasharray:W.dashed?"4 3":void 0},void 0,!1,void 0,this),W.values.map((re,j)=>{let ve=lt(j);if(ve===null||j>0&<(j-1)!==null||j<l-1&<(j+1)!==null)return null;return bt.jsxDEV("circle",{cx:We(j),cy:ve,r:2.5,fill:W.color},j,!1,void 0,this)})]},W.key,!0,void 0,this)}),k?.map((W)=>{let Ae=W.axis==="right"?Ce(W.value):he(W.value);return bt.jsxDEV("g",{className:"chart-axis",children:[bt.jsxDEV("line",{x1:de,x2:de+Ie,y1:Ae,y2:Ae,stroke:"var(--line-4)",strokeDasharray:"3 3"},void 0,!1,void 0,this),W.label&&bt.jsxDEV("text",{x:de+Ie-4,y:Ae-5,textAnchor:"end",children:W.label},void 0,!1,void 0,this)]},`${W.axis??"left"}:${W.value}`,!0,void 0,this)}),bt.jsxDEV("line",{className:"chart-baseline",x1:de,x2:de+Ie,y1:he(0),y2:he(0)},void 0,!1,void 0,this),bt.jsxDEV("rect",{x:de,y:ou,width:Ie,height:Me,fill:"transparent",onPointerMove:Ct,onPointerLeave:()=>fe(null),onClick:M&&F!==null?()=>M(F):void 0,style:{cursor:M?"pointer":"crosshair"}},void 0,!1,void 0,this)]},void 0,!0,void 0,this),Y.empty&&bt.jsxDEV("div",{className:"chart-empty",children:D},void 0,!1,void 0,this),F!==null&&!Y.empty&&bt.jsxDEV("div",{className:"chart-tooltip",style:We(F)>X/2?{right:X-We(F)+Math.min(oe/2,24)+8,top:ou}:{left:We(F)+Math.min(oe/2,24)+8,top:ou},children:[bt.jsxDEV("div",{className:"chart-tooltip-title",children:(i??c)(F)},void 0,!1,void 0,this),ue.map(({s:W,v:Ae})=>bt.jsxDEV("div",{className:"chart-tooltip-row",children:[bt.jsxDEV("span",{className:"swatch",style:{background:W.color}},void 0,!1,void 0,this),bt.jsxDEV("span",{className:"chart-tooltip-label",children:W.label},void 0,!1,void 0,this),bt.jsxDEV("span",{className:"chart-tooltip-value",children:W.axis==="right"?(L??v)(Ae):(x??v)(Ae)},void 0,!1,void 0,this)]},W.key,!0,void 0,this)),Fe&&ue.length>1&&bt.jsxDEV("div",{className:"chart-tooltip-row chart-tooltip-total",children:[bt.jsxDEV("span",{className:"chart-tooltip-label",children:"Total"},void 0,!1,void 0,this),bt.jsxDEV("span",{className:"chart-tooltip-value",children:(x??v)(He)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),U&&bt.jsxDEV(Qr.Fragment,{children:U(F)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)}function K1(l){if(!(l>0))return{max:1,ticks:[0]};let c=l/M2,i=10**Math.floor(Math.log10(c)),d=[1,2,2.5,5,10].map((g)=>g*i).find((g)=>g>=c)??10*i,p=Math.ceil(l/d)*d,b=[];for(let g=0;g<=p+d/2;g+=d)b.push(Number(g.toPrecision(12)));return{max:p,ticks:b}}function Z1(l){return l.reduce((c,i)=>Math.max(c,i.length*6.3),0)}function W1(l,c,i){let d="",p=!1;for(let b=0;b<l;b++){let g=i(b);if(g===null){p=!1;continue}d+=`${p?"L":"M"}${c(b).toFixed(1)},${g.toFixed(1)}`,p=!0}return d}function nb(l){return l.replace(/[^a-zA-Z0-9_-]/g,"_")}var Km=Q(dt(),1),yr=Q(ce(),1);function Va({items:l,hidden:c,onToggle:i}){return yr.jsxDEV("div",{className:"legend",children:l.map((d)=>{let p=yr.jsxDEV(yr.Fragment,{children:[yr.jsxDEV("span",{className:"swatch",style:{background:d.color}},void 0,!1,void 0,this),yr.jsxDEV("span",{className:"truncate",children:d.label},void 0,!1,void 0,this),d.value&&yr.jsxDEV("span",{className:"legend-value",children:d.value},void 0,!1,void 0,this)]},void 0,!0,void 0,this);return i?yr.jsxDEV("button",{type:"button",className:"legend-item","data-off":c?.has(d.key)??!1,onClick:()=>i(d.key),title:d.label,children:p},d.key,!1,void 0,this):yr.jsxDEV("span",{className:"legend-item",title:d.label,children:p},d.key,!1,void 0,this)})},void 0,!1,void 0,this)}function un(){let[l,c]=Km.useState(()=>new Set),i=Km.useCallback((d)=>{c((p)=>{let b=new Set(p);if(!b.delete(d))b.add(d);return b})},[]);return[l,i]}var rb=Q(ce(),1);function Wl({segments:l,height:c=8}){let i=l.reduce((d,p)=>d+Math.max(0,p.value),0);return rb.jsxDEV("div",{className:"share-bar",style:{height:c},role:"img",children:i>0&&l.filter((d)=>d.value>0).map((d)=>rb.jsxDEV("div",{className:"share-bar-seg",style:{flexGrow:d.value/i,background:d.color},title:`${d.label}: ${(d.value/i*100).toFixed(1)}%`},d.key,!1,void 0,this))},void 0,!1,void 0,this)}var J1=Q(ce(),1);function Rn({buckets:l,bucketMs:c,onSelectBucket:i,...d}){return J1.jsxDEV(In,{...d,slots:l.length,tickLabel:(p)=>Nm(l[p],c),tooltipTitle:(p)=>qm(l[p],c),onSelect:i?(p)=>i(l[p]):void 0},void 0,!1,void 0,this)}var Ma=["#5ad8e6","#ed4abf","#9d7bff","#f5b54a","#4ade80","#5b8cff","#ff7a59","#2dd4bf","#c3e94f","#fb7185"],oo="#6c6c74";function xa(l,c){return`${l}::${c}`}function Zm(l){return Ud(l.map((c)=>({key:xa(c.model,c.provider),weight:c.totalRequests})))}function Ud(l){let c=[...l].sort((i,d)=>d.weight-i.weight||i.key.localeCompare(d.key));return new Map(c.map((i,d)=>[i.key,Ma[d%Ma.length]]))}var Sa=Q(dt(),1);var D2={entries:new Map,limit:128},E2={entries:new Map,limit:4},O2={entries:new Map,limit:16},nu=new Map;function eT(l){if(l.startsWith('["trace",'))return E2;if(l.startsWith('["request",'))return O2;return D2}function Pd(l){return eT(l).entries.get(l)}function tT(l){return nu.get(l)}function q2(l,c){let{entries:i,limit:d}=eT(l);if(i.delete(l),i.set(l,c),i.size>d){let p=i.keys().next().value;if(p!==void 0)i.delete(p)}}function aT(l,c,i){let d=nu.get(l);if(d)return d.waiters++,d;let p=new AbortController,b=Pd(l)?.data,g={promise:i({signal:p.signal},b).then((v)=>(q2(l,{data:v,updatedAt:Date.now(),version:c}),v)).finally(()=>{if(nu.get(l)===g)nu.delete(l)}),controller:p,waiters:1};return nu.set(l,g),g}function lb(l,c){if(c.waiters--,c.waiters>0)return;if(nu.get(l)===c)nu.delete(l);c.controller.abort()}var N2=1500;function Gt(l,c,i){let d=JSON.stringify(l),p=i?.enabled??!0,b=i?.pollMs,g=O1(p),[,v]=Sa.useReducer((te)=>te+1,0),[L,x]=Sa.useState(null),[h,C]=Sa.useState(!1),w=Sa.useRef(c);w.current=c;let T=Sa.useRef(d);T.current=d;let k=Sa.useRef(null),M=Sa.useRef(0),D=Sa.useRef(null),U=Sa.useCallback((te)=>{M.current=Date.now();let Y=D.current;if(Y?.key===te&&tT(te)===Y.request)return;let J=Pd(te)?.data;C(!0);let V=aT(te,D1(),w.current);if(D.current={key:te,request:V},Y)lb(Y.key,Y.request);V.promise.then((de)=>{if(T.current!==te)return;if(de===J){x((Se)=>Se===null?Se:null);return}Sa.startTransition(()=>{x(null),v()})}).catch((de)=>{if(T.current!==te||V.controller.signal.aborted)return;x({key:te,error:de instanceof Error?de:Error(String(de))})}).finally(()=>{if(D.current?.request===V)D.current=null;if(T.current===te)C(!1)})},[]),P=Sa.useCallback(()=>{let te=D.current;if(D.current=null,te)lb(te.key,te.request)},[]);Sa.useEffect(()=>P,[P]),Sa.useEffect(()=>{if(!p||D.current&&D.current.key!==d)P();if(!p)return;let te=Pd(d);if(te&&te.version>=g)return;let Y=te?M.current+N2-Date.now():0;if(Y<=0){U(d);return}let J=setTimeout(()=>U(d),Y);return()=>clearTimeout(J)},[d,p,g,U,P]),Sa.useEffect(()=>{if(!p||!b)return;let te=setInterval(()=>{if(!document.hidden)U(T.current)},b);return()=>clearInterval(te)},[p,b,U]);let X=Sa.useCallback(()=>U(T.current),[U]),F=Pd(d);if(F)k.current={key:d,data:F.data,updatedAt:F.updatedAt};let fe=k.current,Z=L?.key===d?L.error:null;return{data:fe?.data??null,error:Z,loading:!fe&&!Z,stale:!!fe&&fe.key!==d,refreshing:h,updatedAt:fe?.updatedAt??null,refetch:X}}function La(l,c,i){let d=oT(c),p=Array.from({length:c.length},()=>0);for(let b of l){let g=d.get(b.timestamp);if(g!==void 0)p[g]+=i(b)}return p}function vr(l,c){let i=oT(c.buckets),d=new Map;for(let x of l){let h=i.get(x.timestamp);if(h===void 0)continue;let C=c.key(x),w=d.get(C);if(!w)w=Array.from({length:c.buckets.length},()=>0),d.set(C,w);w[h]+=c.value(x)}let p=[...d.entries()].map(([x,h])=>({key:x,values:h,total:h.reduce((C,w)=>C+w,0)})).filter((x)=>x.total!==0).sort((x,h)=>h.total-x.total||x.key.localeCompare(h.key)),b=c.limit??Number.POSITIVE_INFINITY,g=p.slice(0,b),v=p.slice(b),L=g.map((x,h)=>({key:x.key,label:c.label?c.label(x.key):x.key,color:c.colors?.get(x.key)??Ma[h%Ma.length],values:x.values}));if(v.length>0){let x=Array.from({length:c.buckets.length},()=>0);for(let h of v)for(let C=0;C<x.length;C++)x[C]+=h.values[C];L.push({key:"__other__",label:s("common.other-n",{count:v.length}),color:oo,values:x})}return L}function oT(l){let c=new Map;for(let i=0;i<l.length;i++)c.set(l[i],i);return c}var B2=["main","subagent","advisor"];function Jl(l){return l.totalInputTokens+l.totalOutputTokens+l.totalCacheReadTokens+l.totalCacheWriteTokens}function lT(l){let c=new Map;for(let g of l)c.set(g.agentType,g);let i=B2.map((g)=>c.get(g)).filter((g)=>g!==void 0),d=i.reduce((g,v)=>g+Jl(v),0),p=i.reduce((g,v)=>g+v.totalCost,0),b=i.map((g)=>{let v=Jl(g);return{agentType:g.agentType,tokens:v,requests:g.totalRequests,cost:g.totalCost,share:d>0?v/d:0}});return{totalTokens:d,totalCost:p,segments:b}}function sT(l){let c={totalCost:0,requests:0,unpricedRequests:0,activeDays:new Set(l.map((p)=>p.timestamp)).size,avgDailyCost:0,costInput:0,costOutput:0,costCacheRead:0,costCacheWrite:0,models:[],topModel:null},i=new Map;for(let p of l){let b=xa(p.model,p.provider),g=i.get(b);if(!g)g={key:b,model:p.model,provider:p.provider,cost:0,requests:0,unpricedRequests:0,costInput:0,costOutput:0,costCacheRead:0,costCacheWrite:0,share:0},i.set(b,g);nT(g,p),nT(c,p),g.cost+=p.cost,c.totalCost+=p.cost}c.avgDailyCost=c.activeDays>0?c.totalCost/c.activeDays:0,c.models=[...i.values()].sort((p,b)=>b.cost-p.cost||b.requests-p.requests||p.key.localeCompare(b.key));for(let p of c.models)p.share=c.totalCost>0?p.cost/c.totalCost:0;let d=c.models[0];return c.topModel=d!==void 0&&d.cost>0?d:null,c}function nT(l,c){l.costInput+=c.costInput,l.costOutput+=c.costOutput,l.costCacheRead+=c.costCacheRead,l.costCacheWrite+=c.costCacheWrite,l.requests+=c.requests,l.unpricedRequests+=c.unpricedRequests}function uT(l){let c=new Map;for(let i of l){let d=xa(i.model,i.provider),p=c.get(d);if(!p)p=[],c.set(d,p);p.push({timestamp:i.timestamp,avgTtftSeconds:i.avgTtft!==null?i.avgTtft/1000:null,avgTokensPerSecond:i.avgTokensPerSecond,requests:i.requests})}for(let i of c.values())i.sort((d,p)=>d.timestamp-p.timestamp);return c}var z2=/^\/?-?(?:private-)?(?:tmp|var-folders)(?:[-/]|$)/;function iT(l){let c=0,i=0,d=0,p=0,b=0,g=0,v=0,L=0,x=0;for(let w of l){if(c+=w.totalRequests,i+=w.failedRequests,d+=w.totalCost,p+=w.unpricedRequests,b+=w.totalInputTokens+w.totalCacheReadTokens+w.totalCacheWriteTokens+w.totalOutputTokens,g+=w.totalInputTokens,v+=w.totalCacheReadTokens,w.totalRequests>L)L=w.totalRequests;if(w.totalCost>x)x=w.totalCost}let h=0;return{rows:l.map((w)=>{let T=z2.test(w.folder);if(T)h++;return{...w,conversationTokens:w.totalInputTokens+w.totalCacheReadTokens+w.totalCacheWriteTokens+w.totalOutputTokens,requestShare:c>0?w.totalRequests/c:0,costShare:d>0?w.totalCost/d:0,temporary:T}}),totalRequests:c,failedRequests:i,totalCost:d,unpricedRequests:p,conversationTokens:b,cacheRate:g+v>0?v/(g+v):0,maxRequests:L,maxCost:x,temporaryCount:h}}function cT(l){let c=0,i=0,d=0;for(let p of l)c+=p.calls,i+=p.totalTokensShare,d+=p.costShare;return l.map((p)=>({...p,errorRate:p.calls>0?p.errors/p.calls:0,callFraction:c>0?p.calls/c:0,tokenFraction:i>0?p.totalTokensShare/i:0,costFraction:d>0?p.costShare/d:0,avgResultChars:p.calls>0?p.resultChars/p.calls:0}))}function Kr(l){if(l.stopReason==="aborted")return"aborted";if(l.stopReason==="error"||l.errorMessage)return"failed";return"ok"}function sb(l,c){if(l.length===0)return null;return l[Math.min(l.length-1,Math.max(0,Math.ceil(c*l.length)-1))]}function dT(l){let c=0,i=0,d=0,p=0,b=0,g=null,v=null,L=[],x=[];for(let h of l){let C=Kr(h);if(C==="failed")c++;else if(C==="aborted")i++;if(d+=h.usage.totalTokens,p+=h.usage.cost.total,Zv(h))b++;if(h.duration!==null)L.push(h.duration);if(h.ttft!==null)x.push(h.ttft);if(g===null||h.timestamp<g)g=h.timestamp;if(v===null||h.timestamp>v)v=h.timestamp}return L.sort((h,C)=>h-C),x.sort((h,C)=>h-C),{requests:l.length,failed:c,aborted:i,tokens:d,cost:p,unpriced:b,medianDuration:sb(L,0.5),p95Duration:sb(L,0.95),medianTtft:sb(x,0.5),oldest:g,newest:v}}var rT=180,U2=/\b[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}\b/gi,P2=/\b(?:req|msg|call|toolu|chatcmpl|resp|run|gen)[-_][A-Za-z0-9_-]{6,}/g,_2=/\b[0-9a-f]{12,}\b/gi,H2=/(?<![\w.-])\d+(?:\.\d+)?/g,F2=/^[1-5]\d\d$/;function ub(l){if(!l?.trim())return"Unknown error";let c=l.replace(/\s+/g," ").trim().replace(U2,"<id>").replace(P2,"<id>").replace(_2,"<hex>").replace(H2,(i)=>F2.test(i)?i:"N");return c.length>rT?`${c.slice(0,rT-1)}…`:c}function fT(l){let c=new Map;for(let i of l){let d=ub(i.errorMessage),p=c.get(d);if(!p)p={signature:d,count:0,firstSeen:i.timestamp,lastSeen:i.timestamp,latest:i,models:[],byModel:new Map},c.set(d,p);if(p.count++,i.timestamp<p.firstSeen)p.firstSeen=i.timestamp;if(i.timestamp>p.lastSeen)p.lastSeen=i.timestamp,p.latest=i;let b=xa(i.model,i.provider),g=p.byModel.get(b);if(g)g.count++;else p.byModel.set(b,{model:i.model,provider:i.provider,count:1})}return[...c.values()].map(({byModel:i,...d})=>({...d,models:[...i.values()].sort((p,b)=>b.count-p.count||p.model.localeCompare(b.model))})).sort((i,d)=>d.count-i.count||d.lastSeen-i.lastSeen)}var Ee=Q(ce(),1),G2=[{value:"model",label:s("costs.by-model")},{value:"component",label:s("costs.by-component")}],V2=6,j2=86400000,Hd=[{key:"costInput",label:s("common.input"),color:"#5b8cff"},{key:"costOutput",label:s("common.output"),color:"var(--chart-secondary)"},{key:"costCacheRead",label:s("common.cache-read"),color:"var(--chart-primary)"},{key:"costCacheWrite",label:s("common.cache-write"),color:"#f5b54a"}],X2=new Intl.DateTimeFormat(void 0,{month:"short",day:"numeric",timeZone:"UTC"}),Y2=new Intl.DateTimeFormat(void 0,{weekday:"short",month:"short",day:"numeric",year:"numeric",timeZone:"UTC"});function pT({active:l,range:c}){let i=Gt(["costs",c],({signal:w})=>f1(c,w),{enabled:l}),d=sa(c),[p,b]=_d.useState("model"),[g,v]=un(),L=_d.useMemo(()=>i.data?$2(i.data,c):null,[i.data,c]),x=_d.useMemo(()=>L?Z2(L):[],[L]),h=(w)=>w.costSeries.length===0,C=Ee.jsxDEV(gt,{title:s("costs.no-usage-in-range"),hint:s("costs.empty-hint")},void 0,!1,void 0,this);return Ee.jsxDEV("div",{className:"page",children:[Ee.jsxDEV(ua,{title:s("costs.title"),description:s("costs.description",{window:s(d.windowKey)})},void 0,!1,void 0,this),Ee.jsxDEV(_e,{query:i,skeleton:Ee.jsxDEV(Ba,{height:112,style:{borderRadius:12}},void 0,!1,void 0,this),isEmpty:h,empty:C,children:()=>L&&Ee.jsxDEV(Q2,{view:L,stale:i.stale},void 0,!1,void 0,this)},void 0,!1,void 0,this),Ee.jsxDEV("div",{className:"grid grid-main-side",children:[Ee.jsxDEV(Be,{index:1,title:s("costs.daily-estimate"),description:p==="model"?s("costs.daily-by-model"):s("costs.daily-by-component"),actions:Ee.jsxDEV(Fa,{size:"sm",options:G2,value:p,onChange:b,"aria-label":s("costs.split-by")},void 0,!1,void 0,this),stale:i.stale,children:Ee.jsxDEV(_e,{query:i,skeleton:Ee.jsxDEV(Mt,{height:280},void 0,!1,void 0,this),isEmpty:h,empty:C,children:()=>{if(!L)return null;let w=p==="model"?L.modelSeries:L.componentSeries;return Ee.jsxDEV("div",{className:"stack",style:{gap:12},children:[Ee.jsxDEV(In,{slots:L.buckets.length,tickLabel:(T)=>X2.format(L.buckets[T]),tooltipTitle:(T)=>Y2.format(L.buckets[T]),series:w,hidden:g,height:280,format:(T)=>da(T,Number.isInteger(T)?0:2),formatTooltip:(T)=>da(T),emptyLabel:s("costs.no-priced-usage"),tooltipExtra:(T)=>L.unpricedPerDay[T]>0?Ee.jsxDEV("div",{className:"chart-tooltip-row chart-tooltip-total",children:[Ee.jsxDEV("span",{className:"chart-tooltip-label",children:s("costs.unpriced-requests")},void 0,!1,void 0,this),Ee.jsxDEV("span",{className:"chart-tooltip-value",children:B(L.unpricedPerDay[T])},void 0,!1,void 0,this)]},void 0,!0,void 0,this):null},void 0,!1,void 0,this),Ee.jsxDEV(Va,{items:w.map((T)=>({key:T.key,label:T.label,color:T.color,value:da(W2(T.values))})),hidden:g,onToggle:v},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}},void 0,!1,void 0,this)},void 0,!1,void 0,this),Ee.jsxDEV(Be,{index:2,title:s("costs.where-it-went"),description:s("costs.estimate-by-component"),stale:i.stale,children:Ee.jsxDEV(_e,{query:i,skeleton:Ee.jsxDEV(Mt,{height:280},void 0,!1,void 0,this),isEmpty:h,empty:C,children:()=>L&&Ee.jsxDEV(K2,{summary:L.summary},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),Ee.jsxDEV(Be,{index:3,title:s("costs.by-model"),description:s("costs.by-model-description"),stale:i.stale,flush:!0,children:Ee.jsxDEV(_e,{query:i,skeleton:Ee.jsxDEV(na,{rows:8},void 0,!1,void 0,this),isEmpty:h,empty:C,children:()=>L&&Ee.jsxDEV(Ht,{rows:L.summary.models,rowKey:(w)=>w.key,columns:x,initialSort:{key:"cost",dir:"desc"},limit:20},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 $2(l,c){let i=l.costSeries,d=sT(i),p=Zm(d.models.map((x)=>({model:x.model,provider:x.provider,totalRequests:x.requests}))),b=new Map(d.models.map((x)=>[x.key,x])),g=mo(c,i.map((x)=>x.timestamp),j2),v=vr(i,{buckets:g,key:(x)=>xa(x.model,x.provider),label:(x)=>b.get(x)?.model??x,value:(x)=>x.cost,limit:V2,colors:p}).map((x)=>({...x,values:x.values.map((h)=>h||null)})),L=new Set;for(let x of v){if(x.key==="__other__")continue;if(L.has(x.color))x.color=Ma.find((h)=>!L.has(h))??x.color;L.add(x.color)}return{summary:d,swatches:new Map(v.filter((x)=>x.key!=="__other__").map((x)=>[x.key,x.color])),buckets:g,dailyTotals:La(i,g,(x)=>x.cost),unpricedPerDay:La(i,g,(x)=>x.unpricedRequests),modelSeries:v,componentSeries:Hd.map((x)=>({key:x.key,label:x.label,color:x.color,values:La(i,g,(h)=>h[x.key]).map((h)=>h||null)})),maxModelCost:d.models[0]?.cost??0}}function Q2({view:l,stale:c}){let{summary:i}=l,d=i.requests-i.unpricedRequests,p=i.topModel;return Ee.jsxDEV("div",{"data-stale":c,children:Ee.jsxDEV(oa,{min:180,children:[Ee.jsxDEV(se,{label:s("costs.api-equivalent-estimate"),title:s("costs.api-estimate-title"),value:Ft(i.totalCost,i.unpricedRequests),hint:s("costs.requests-n",{count:B(i.requests)}),spark:l.dailyTotals,sparkColor:"var(--chart-secondary)"},void 0,!1,void 0,this),Ee.jsxDEV(se,{label:s("costs.average-per-day"),title:s("costs.average-per-day-title"),value:Ft(i.avgDailyCost,i.unpricedRequests),hint:s(i.activeDays===1?"costs.active-days-one":"costs.active-days-n",{count:B(i.activeDays)})},void 0,!1,void 0,this),Ee.jsxDEV(se,{label:s("costs.top-model"),title:p?`${p.model} (${p.provider})`:void 0,value:p?p.model:"–",hint:p?s("costs.top-model-hint",{cost:da(p.cost),share:je(p.share)}):s("costs.nothing-priced-yet")},void 0,!1,void 0,this),Ee.jsxDEV(se,{label:s("costs.per-priced-request"),title:s("costs.per-priced-request-title"),value:d>0?mT(i.totalCost/d):"–",hint:s("costs.priced-n",{count:B(d)})},void 0,!1,void 0,this),Ee.jsxDEV(se,{label:s("costs.unpriced-requests"),title:s("costs.unpriced-title"),value:B(i.unpricedRequests),hint:i.unpricedRequests>0?s("costs.unpriced-hint"):s("costs.all-priced")},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)}function K2({summary:l}){return Ee.jsxDEV("div",{className:"stack",style:{gap:14},children:[Ee.jsxDEV(Wl,{height:10,segments:Hd.map((c)=>({key:c.key,label:c.label,value:l[c.key],color:c.color}))},void 0,!1,void 0,this),Ee.jsxDEV("div",{className:"costs-components",children:[Hd.map((c)=>Ee.jsxDEV("div",{className:"costs-component-row",children:[Ee.jsxDEV("span",{className:"row",children:[Ee.jsxDEV(wn,{color:c.color},void 0,!1,void 0,this),c.label]},void 0,!0,void 0,this),Ee.jsxDEV("span",{className:"num",children:da(l[c.key])},void 0,!1,void 0,this),Ee.jsxDEV("span",{className:"num dim costs-component-share",children:l.totalCost>0?je(l[c.key]/l.totalCost):"–"},void 0,!1,void 0,this)]},c.key,!0,void 0,this)),Ee.jsxDEV("div",{className:"costs-component-row costs-component-total",children:[Ee.jsxDEV("span",{children:s("common.total")},void 0,!1,void 0,this),Ee.jsxDEV("span",{className:"num",children:Ft(l.totalCost,l.unpricedRequests)},void 0,!1,void 0,this),Ee.jsxDEV("span",{className:"costs-component-share"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),l.unpricedRequests>0&&Ee.jsxDEV("p",{className:"micro dim",children:s(l.unpricedRequests===1?"costs.unpriced-note-one":"costs.unpriced-note-n",{count:B(l.unpricedRequests)})},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function Z2(l){let c=Hd.map((i)=>({key:i.key,header:i.label,align:"right",sort:(d)=>d[i.key],render:(d)=>Ee.jsxDEV("span",{className:"num",children:da(d[i.key])},void 0,!1,void 0,this)}));return[{key:"model",header:s("common.model"),sort:(i)=>i.model,render:(i)=>Ee.jsxDEV(Ga,{lead:Ee.jsxDEV(wn,{color:l.swatches.get(i.key)??oo},void 0,!1,void 0,this),primary:Ee.jsxDEV("span",{className:"mono",children:i.model},void 0,!1,void 0,this),secondary:i.provider},void 0,!1,void 0,this)},{key:"requests",header:s("common.requests"),align:"right",sort:(i)=>i.requests,render:(i)=>Ee.jsxDEV("span",{className:"num",children:B(i.requests)},void 0,!1,void 0,this)},{key:"cost",header:s("costs.estimate"),title:s("costs.estimate-title"),align:"right",sort:(i)=>i.cost,render:(i)=>Ee.jsxDEV(pa,{value:i.cost,max:l.maxModelCost,display:Ft(i.cost,i.unpricedRequests),color:l.swatches.get(i.key)??oo},void 0,!1,void 0,this)},{key:"share",header:s("common.share"),align:"right",sort:(i)=>i.share,render:(i)=>Ee.jsxDEV("span",{className:"num muted",children:i.cost>0?je(i.share):"–"},void 0,!1,void 0,this)},{key:"split",header:s("costs.split"),title:"Input · output · cache read · cache write",width:150,render:(i)=>i.cost>0?Ee.jsxDEV(Wl,{segments:Hd.map((d)=>({key:d.key,label:d.label,value:i[d.key],color:d.color}))},void 0,!1,void 0,this):Ee.jsxDEV("span",{className:"dim",children:"–"},void 0,!1,void 0,this)},...c,{key:"perRequest",header:s("costs.per-request"),title:"Estimate ÷ priced requests",align:"right",sort:(i)=>i.requests>i.unpricedRequests?i.cost/(i.requests-i.unpricedRequests):-1,render:(i)=>Ee.jsxDEV("span",{className:"num",children:i.requests>i.unpricedRequests?mT(i.cost/(i.requests-i.unpricedRequests)):"–"},void 0,!1,void 0,this)},{key:"unpriced",header:s("costs.unpriced"),title:"Requests with no public-equivalent price",align:"right",sort:(i)=>i.unpricedRequests,render:(i)=>i.unpricedRequests>0?Ee.jsxDEV("span",{className:"num tone-warn",children:B(i.unpricedRequests)},void 0,!1,void 0,this):Ee.jsxDEV("span",{className:"num dim",children:"–"},void 0,!1,void 0,this)}]}function mT(l){return l>0&&l<0.0001?"<$0.0001":da(l)}function W2(l){let c=0;for(let i of l)c+=i??0;return c}var Zr=Q(dt(),1);var be=Q(ce(),1),ib=[50,200,1000];function hT({active:l,range:c,onRequestClick:i}){let[d,p]=Zr.useState(0),b=ib[d],g=Gt(["errors",c,b],({signal:J})=>p1(c,b,J),{enabled:l}),[v,L]=Zr.useState(null),[x,h]=Zr.useState(null),[C,w]=Zr.useState(""),T=sa(c),k=Zr.useMemo(()=>{let J=(g.data??[]).map((Me)=>({row:Me,signature:ub(Me.errorMessage)})),V=fT(g.data??[]),de=new Map;for(let{row:Me}of J){let oe=xa(Me.model,Me.provider),he=de.get(oe);if(he)he.count++;else de.set(oe,{model:Me.model,provider:Me.provider,count:1})}let Se=[...de.entries()].map(([Me,oe])=>({key:Me,...oe})).sort((Me,oe)=>oe.count-Me.count||Me.model.localeCompare(oe.model)),Ie=J.reduce((Me,{row:oe})=>!Me||oe.timestamp>Me.timestamp?oe:Me,null);return{rows:J,groups:V,models:Se,newest:Ie}},[g.data]),M=k.groups.some((J)=>J.signature===v)?v:null,D=k.models.some((J)=>J.key===x)?x:null,U=Zr.useMemo(()=>{let J=C.trim().toLowerCase();return k.rows.filter((V)=>(M===null||V.signature===M)&&(D===null||xa(V.row.model,V.row.provider)===D)&&(J===""||V.row.model.toLowerCase().includes(J)||V.row.provider.toLowerCase().includes(J)||V.row.folder.toLowerCase().includes(J)||(V.row.errorMessage??"").toLowerCase().includes(J))).map((V)=>V.row)},[k.rows,M,D,C]),P=g.data?.length??0,X=!g.stale&&P<b,F=d+1<ib.length?ib[d+1]:null,fe=g.data!==null&&!X?be.jsxDEV(be.Fragment,{children:[be.jsxDEV("span",{children:s("errors.footer",{count:B(P),window:s(T.windowKey)})},void 0,!1,void 0,this),F!==null&&be.jsxDEV("button",{type:"button",className:"btn","data-size":"sm",disabled:g.refreshing,onClick:()=>p(d+1),children:g.refreshing&&g.stale?s("errors.loading"):s("errors.load-latest",{count:B(F)})},void 0,!1,void 0,this)]},void 0,!0,void 0,this):void 0,Z=k.groups[0]?.count??0,te=Zr.useMemo(()=>J2(Z),[Z]),Y=k.models.find((J)=>J.key===D);return be.jsxDEV("div",{className:"page",children:[be.jsxDEV(ua,{title:s("errors.title"),description:s("errors.description",{window:s(T.windowKey)})},void 0,!1,void 0,this),be.jsxDEV(_e,{query:g,skeleton:be.jsxDEV(Ba,{height:96,style:{borderRadius:12}},void 0,!1,void 0,this),children:()=>be.jsxDEV("div",{"data-stale":g.stale,children:be.jsxDEV(oa,{min:170,children:[be.jsxDEV(se,{label:s("errors.failures"),value:B(P),hint:X?s("errors.hint-in-window",{window:s(T.windowKey)}):s("errors.hint-latest-loaded",{count:B(P)})},void 0,!1,void 0,this),be.jsxDEV(se,{label:s("errors.signatures"),title:s("errors.signatures-hint"),value:B(k.groups.length),hint:k.groups[0]?s("errors.signatures-top",{count:B(k.groups[0].count)}):void 0},void 0,!1,void 0,this),be.jsxDEV(se,{label:s("errors.affected-models"),value:B(k.models.length),hint:k.models[0]?.model},void 0,!1,void 0,this),be.jsxDEV(se,{label:s("errors.last-failure"),value:k.newest?fa(k.newest.timestamp):"–",hint:k.newest?sn(k.newest.timestamp):s("errors.none-in-window",{window:s(T.windowKey)})},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this),be.jsxDEV("div",{className:"grid grid-main-side",children:[be.jsxDEV(Be,{index:1,title:s("errors.error-signatures"),description:s("errors.signatures-card-description"),flush:!0,stale:g.stale,children:be.jsxDEV(_e,{query:g,skeleton:be.jsxDEV(na,{rows:8},void 0,!1,void 0,this),isEmpty:(J)=>J.length===0,empty:be.jsxDEV(gt,{title:s("errors.empty-no-failures",{window:s(T.windowKey)}),hint:s("errors.empty-all-succeeded")},void 0,!1,void 0,this),children:()=>be.jsxDEV(Ht,{rows:k.groups,rowKey:(J)=>J.signature,columns:te,onRowClick:(J)=>L(M===J.signature?null:J.signature),selectedKey:M,expanded:(J)=>J.signature===M?be.jsxDEV(eD,{group:J,onRequestClick:i},void 0,!1,void 0,this):null,limit:12},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this),be.jsxDEV(Be,{index:2,title:s("errors.by-model"),description:s("errors.by-model-description"),stale:g.stale,children:be.jsxDEV(_e,{query:g,skeleton:be.jsxDEV(Ba,{height:180},void 0,!1,void 0,this),isEmpty:(J)=>J.length===0,empty:be.jsxDEV(gt,{title:s("errors.empty-no-affected-models")},void 0,!1,void 0,this),children:()=>be.jsxDEV(au,{items:k.models.slice(0,12).map((J)=>({key:J.key,label:be.jsxDEV("span",{className:"row",style:{gap:6,minWidth:0},children:[be.jsxDEV("span",{className:"mono truncate",children:J.model},void 0,!1,void 0,this),be.jsxDEV("span",{className:"dim truncate",children:J.provider},void 0,!1,void 0,this)]},void 0,!0,void 0,this),value:J.count,color:J.key===D?"var(--bad)":"color-mix(in srgb, var(--bad) 45%, transparent)"})),onSelect:(J)=>h(D===J?null:J)},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),be.jsxDEV(Be,{index:3,title:s("errors.failures"),description:g.data===null?s("errors.loading-failures"):s("errors.filtered-of-total",{shown:B(U.length),total:B(P)}),actions:be.jsxDEV(be.Fragment,{children:[M!==null&&be.jsxDEV("button",{type:"button",className:"btn errors-filter","data-size":"sm",onClick:()=>L(null),title:M,children:[be.jsxDEV("span",{className:"mono truncate",children:M},void 0,!1,void 0,this),be.jsxDEV(Co,{size:12},void 0,!1,void 0,this)]},void 0,!0,void 0,this),Y&&be.jsxDEV("button",{type:"button",className:"btn errors-filter","data-size":"sm",onClick:()=>h(null),children:[be.jsxDEV("span",{className:"mono truncate",children:Y.model},void 0,!1,void 0,this),be.jsxDEV(Co,{size:12},void 0,!1,void 0,this)]},void 0,!0,void 0,this),be.jsxDEV(pr,{value:C,onChange:w,placeholder:s("errors.search-placeholder")},void 0,!1,void 0,this)]},void 0,!0,void 0,this),flush:!0,stale:g.stale,footer:fe,children:be.jsxDEV(_e,{query:g,skeleton:be.jsxDEV(na,{rows:10},void 0,!1,void 0,this),isEmpty:(J)=>J.length===0,empty:be.jsxDEV(gt,{title:s("errors.empty-no-failures",{window:s(T.windowKey)})},void 0,!1,void 0,this),children:()=>be.jsxDEV(Ht,{rows:U,rowKey:(J)=>J.id??`${J.sessionFile}:${J.entryId}`,onRowClick:(J)=>J.id!==void 0&&i(J.id),columns:tD,initialSort:{key:"time",dir:"desc"},limit:50,dense:!0,empty:be.jsxDEV(gt,{title:s("errors.no-match"),hint:s("errors.no-match-hint")},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function J2(l){return[{key:"signature",header:s("errors.signature"),wrap:!0,sort:(c)=>c.signature,render:(c)=>be.jsxDEV("span",{className:"errors-signature",title:c.latest.errorMessage??void 0,children:c.signature},void 0,!1,void 0,this)},{key:"models",header:s("common.models"),sort:(c)=>c.models.length,render:(c)=>be.jsxDEV(Ga,{primary:be.jsxDEV("span",{className:"mono",children:c.models[0]?.model},void 0,!1,void 0,this),secondary:c.models.length>1?s("errors.more-models",{count:B(c.models.length-1)}):c.models[0]?.provider},void 0,!1,void 0,this)},{key:"last",header:s("errors.last-seen"),sort:(c)=>c.lastSeen,render:(c)=>be.jsxDEV("span",{className:"muted",title:sn(c.lastSeen),children:fa(c.lastSeen)},void 0,!1,void 0,this)},{key:"count",header:s("errors.failures"),align:"right",width:120,sort:(c)=>c.count,render:(c)=>be.jsxDEV(pa,{value:c.count,max:l,display:B(c.count),color:"var(--bad)"},void 0,!1,void 0,this)}]}function eD({group:l,onRequestClick:c}){let i=l.latest.id;return be.jsxDEV("div",{className:"errors-detail",children:[be.jsxDEV("pre",{className:"code-block errors-detail-message",children:l.latest.errorMessage??s("errors.unknown-error")},void 0,!1,void 0,this),be.jsxDEV("div",{className:"errors-detail-meta",children:[be.jsxDEV("span",{className:"muted",children:s("errors.group-meta",{count:B(l.count),first:sn(l.firstSeen),last:sn(l.lastSeen)})},void 0,!1,void 0,this),i!==void 0&&be.jsxDEV("button",{type:"button",className:"btn","data-size":"sm",onClick:()=>c(i),children:[s("errors.open-latest")," ",be.jsxDEV(gd,{size:13},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),be.jsxDEV("div",{className:"errors-detail-models",children:l.models.map((d)=>be.jsxDEV("span",{className:"badge","data-mono":"true",children:[d.model," ",be.jsxDEV("span",{className:"dim",children:d.provider},void 0,!1,void 0,this)," ",be.jsxDEV("span",{className:"num",children:De(d.count)},void 0,!1,void 0,this)]},xa(d.model,d.provider),!0,void 0,this))},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}var tD=[{key:"time",header:s("errors.when"),width:120,sort:(l)=>l.timestamp,render:(l)=>be.jsxDEV("span",{className:"muted",title:sn(l.timestamp),children:fa(l.timestamp)},void 0,!1,void 0,this)},{key:"model",header:s("common.model"),sort:(l)=>l.model,render:(l)=>be.jsxDEV(Ga,{primary:be.jsxDEV("span",{className:"mono",children:l.model},void 0,!1,void 0,this),secondary:l.provider},void 0,!1,void 0,this)},{key:"error",header:s("common.error"),sort:(l)=>l.errorMessage??"",render:(l)=>be.jsxDEV("span",{className:"errors-message",title:l.errorMessage??void 0,children:l.errorMessage??s("errors.unknown-error")},void 0,!1,void 0,this)},{key:"project",header:s("common.project"),sort:(l)=>l.folder,render:(l)=>be.jsxDEV("span",{className:"mono muted",title:l.folder,children:hr(l.folder)},void 0,!1,void 0,this)},{key:"tokens",header:s("common.tokens"),align:"right",sort:(l)=>l.usage.totalTokens,render:(l)=>be.jsxDEV("span",{className:"num",children:B(l.usage.totalTokens)},void 0,!1,void 0,this)},{key:"cost",header:s("common.cost"),title:s("errors.cost-hint"),align:"right",sort:(l)=>l.usage.cost.total,render:(l)=>be.jsxDEV("span",{className:"num",children:Zl(l,4)},void 0,!1,void 0,this)}];var xt=Q(dt(),1);var N=Q(ce(),1),aD=1000,Wm=50,db=0.5,Fd="*";function yT({active:l,range:c}){let[i,d]=xt.useState(!1),p=Gt(["frustration",c],({signal:x})=>g1(c,x),{enabled:l,pollMs:i?aD:void 0}),b=sa(c),g=p.data?.job.state;xt.useEffect(()=>{if(g!==void 0)d(g==="running")},[g]);let{refetch:v}=p,L=xt.useCallback(()=>{d(!0),v()},[v]);return N.jsxDEV("div",{className:"page",children:[N.jsxDEV(ua,{title:s("frustration.title"),description:s("frustration.description",{window:s(b.windowKey)})},void 0,!1,void 0,this),N.jsxDEV(_e,{query:p,skeleton:N.jsxDEV(Mt,{height:96},void 0,!1,void 0,this),children:(x)=>N.jsxDEV("div",{"data-stale":p.stale,children:N.jsxDEV(oD,{overall:x.overall},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this),N.jsxDEV(_e,{query:p,skeleton:N.jsxDEV(Mt,{height:120},void 0,!1,void 0,this),children:(x)=>N.jsxDEV(nD,{active:l,range:c,judgeAvailable:x.judgeAvailable,job:x.job,onRunStarted:L,onRunChanged:v},void 0,!1,void 0,this)},void 0,!1,void 0,this),N.jsxDEV(_e,{query:p,skeleton:N.jsxDEV(Be,{index:2,title:s("frustration.by-model"),children:[N.jsxDEV(Mt,{height:340},void 0,!1,void 0,this),N.jsxDEV(na,{rows:6},void 0,!1,void 0,this)]},void 0,!0,void 0,this),children:(x)=>N.jsxDEV(pD,{models:x.byModel,stale:p.stale},void 0,!1,void 0,this)},void 0,!1,void 0,this),N.jsxDEV(_e,{query:p,skeleton:N.jsxDEV(Mt,{height:96},void 0,!1,void 0,this),children:(x)=>N.jsxDEV("div",{className:"frustration-model-summary","data-stale":p.stale,children:N.jsxDEV(yD,{overall:x.modelSide.overall,window:s(b.windowKey)},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this),N.jsxDEV(_e,{query:p,skeleton:N.jsxDEV(Be,{index:4,title:s("frustration.model-by-model"),children:[N.jsxDEV(Mt,{height:300},void 0,!1,void 0,this),N.jsxDEV(na,{rows:5},void 0,!1,void 0,this)]},void 0,!0,void 0,this),children:(x)=>N.jsxDEV(vD,{models:x.modelSide.byModel,series:x.modelSide.series,range:c,stale:p.stale},void 0,!1,void 0,this)},void 0,!1,void 0,this),N.jsxDEV(_e,{query:p,skeleton:N.jsxDEV(Be,{index:7,title:s("frustration.model-sessions"),children:N.jsxDEV(na,{rows:5},void 0,!1,void 0,this)},void 0,!1,void 0,this),children:(x)=>N.jsxDEV(xD,{sessions:x.modelSide.bySession,stale:p.stale},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function ma(l,c){return c>0?je(l/c):"–"}function cb(l){return l instanceof Error?l.message:String(l)}function vT(l){let c=Math.max(0,Math.floor(l/1000)),i=Math.floor(c/60),d=c%60;return i>0?`${i}m ${String(d).padStart(2,"0")}s`:`${d}s`}function oD({overall:l}){let c=l.messages-l.judged,i=l.unscored>0?s("frustration.coverage-unscored",{count:B(l.unscored)}):"";return N.jsxDEV(N.Fragment,{children:[N.jsxDEV(oa,{min:170,children:[N.jsxDEV(se,{label:s("frustration.user-messages"),title:s("frustration.user-messages-title"),value:B(l.messages)},void 0,!1,void 0,this),N.jsxDEV(se,{label:s("frustration.judge-coverage"),title:s("frustration.judge-coverage-title"),value:ma(l.judged,l.messages),hint:`${s("frustration.coverage-hint",{judged:B(l.judged),regex:B(c)})}${i}`},void 0,!1,void 0,this),N.jsxDEV(se,{label:s("frustration.annoyed"),title:s("frustration.annoyed-title"),value:ma(l.annoyed,l.messages),hint:s("frustration.messages-n",{count:B(l.annoyed)})},void 0,!1,void 0,this),N.jsxDEV(se,{label:s("frustration.at-assistant"),title:s("frustration.at-assistant-title"),value:ma(l.atAssistant,l.messages),hint:s("frustration.messages-n",{count:B(l.atAssistant)})},void 0,!1,void 0,this),N.jsxDEV(se,{label:s("frustration.angry"),title:s("frustration.angry-title"),value:ma(l.angry,l.messages),hint:s("frustration.messages-n",{count:B(l.angry)})},void 0,!1,void 0,this)]},void 0,!0,void 0,this),l.unscored>0&&N.jsxDEV("p",{className:"micro dim",children:s("frustration.unscored-line",{count:B(l.unscored)})},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}var gT="Judging needs the zeta host process: open the dashboard with zetacode stats and configure a judge model. Until then messages are classified by regex signals.";function nD({active:l,range:c,judgeAvailable:i,job:d,onRunStarted:p,onRunChanged:b}){let[g,v]=xt.useState(!1),[L,x]=xt.useState({status:"loading"}),[h,C]=xt.useState(!1),[w,T]=xt.useState(null),[k,M]=xt.useState(!1),[D,U]=xt.useState(null),P=xt.useRef(null),X=d.state==="running",F=xt.useCallback(()=>{P.current?.abort(),P.current=null,v(!1)},[]);xt.useEffect(()=>{if(!l)F()},[l,F]),xt.useEffect(()=>()=>P.current?.abort(),[]);let fe=()=>{P.current?.abort();let V=new AbortController;P.current=V;let de=c;x({status:"loading"}),T(null),U(null),v(!0),y1(de,V.signal).then((Se)=>{if(!V.signal.aborted)x({status:"ready",estimate:Se,range:de})},(Se)=>{if(!V.signal.aborted)x({status:"error",message:cb(Se)})})},Z=async()=>{if(L.status!=="ready")return;C(!0),T(null);try{await v1(L.range),F(),p()}catch(V){T(cb(V))}finally{C(!1)}},te=async()=>{M(!0),U(null);try{await b1(),b()}catch(V){U(cb(V))}finally{M(!1)}},Y=L.status==="ready"?L.estimate:null,J=L.status==="loading"?{label:"Proceed",onClick:Z,disabled:!0}:Y?.available?{label:h?"Starting…":"Proceed",onClick:Z,disabled:h||Y.messages===0}:void 0;return N.jsxDEV(Be,{index:1,title:N.jsxDEV(N.Fragment,{children:[s("frustration.judge-panel")," ",N.jsxDEV(rD,{job:d,judgeAvailable:i},void 0,!1,void 0,this)]},void 0,!0,void 0,this),description:s("frustration.judge-description"),actions:N.jsxDEV("button",{type:"button",className:"btn","data-variant":"accent","data-size":"sm",onClick:fe,disabled:!i||X,title:!i?gT:X?s("frustration.judge-running"):s("frustration.quote-title"),children:[N.jsxDEV(ur,{size:13},void 0,!1,void 0,this)," ",s("frustration.classify")]},void 0,!0,void 0,this),children:[N.jsxDEV("div",{className:"stack frustration-judge",children:[X?N.jsxDEV(sD,{job:d,cancelling:k,onCancel:te},void 0,!1,void 0,this):N.jsxDEV(uD,{job:d},void 0,!1,void 0,this),!i&&N.jsxDEV("p",{className:"micro dim",children:gT},void 0,!1,void 0,this),D&&N.jsxDEV("p",{className:"micro tone-bad",role:"alert",children:D},void 0,!1,void 0,this)]},void 0,!0,void 0,this),N.jsxDEV(B1,{open:g,title:s("frustration.classify"),onClose:F,primaryAction:J,children:[N.jsxDEV(lD,{estimate:L},void 0,!1,void 0,this),w&&N.jsxDEV("p",{className:"micro tone-bad",role:"alert",children:w},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)}function rD({job:l,judgeAvailable:c}){switch(l.state){case"running":return N.jsxDEV(Ut,{tone:"ok",children:[N.jsxDEV(dr,{tone:"live",pulse:!0},void 0,!1,void 0,this)," ",s("frustration.running")]},void 0,!0,void 0,this);case"done":return N.jsxDEV(Ut,{tone:"ok",children:s("frustration.last-run-done")},void 0,!1,void 0,this);case"cancelled":return N.jsxDEV(Ut,{tone:"warn",children:s("frustration.last-run-cancelled")},void 0,!1,void 0,this);case"failed":return N.jsxDEV(Ut,{tone:"bad",children:s("frustration.last-run-failed")},void 0,!1,void 0,this);case"idle":return N.jsxDEV(Ut,{children:c?s("frustration.not-run-yet"):s("frustration.regex-only")},void 0,!1,void 0,this)}}function lD({estimate:l}){if(l.status==="loading")return N.jsxDEV("p",{className:"muted",children:s("frustration.estimating")},void 0,!1,void 0,this);if(l.status==="error")return N.jsxDEV("p",{className:"tone-bad",children:l.message},void 0,!1,void 0,this);let c=l.estimate;if(!c.available)return N.jsxDEV("p",{children:c.reason},void 0,!1,void 0,this);if(c.messages===0)return N.jsxDEV("p",{children:s("frustration.all-judged")},void 0,!1,void 0,this);return N.jsxDEV(N.Fragment,{children:[N.jsxDEV("div",{className:"frustration-quote",children:[N.jsxDEV("span",{className:"dim micro",children:s("frustration.estimated-cost")},void 0,!1,void 0,this),N.jsxDEV("span",{className:"num frustration-quote-value",children:["≈ ",da(c.cost)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),N.jsxDEV(Go,{items:[{key:"messages",label:s("frustration.unjudged-messages"),value:B(c.messages)},{key:"chars",label:s("frustration.prose-chars"),value:B(c.chars)},{key:"tokens",label:s("frustration.input-tokens"),value:B(c.inputTokens)},{key:"judge",label:s("frustration.judge-model"),value:c.judge}]},void 0,!1,void 0,this),N.jsxDEV("p",{className:"micro dim",children:s("frustration.estimate-note")},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function sD({job:l,cancelling:c,onCancel:i}){let d=l.done+l.failed,p=l.total>0?Math.min(1,d/l.total):0;return N.jsxDEV("div",{className:"stack frustration-progress",children:[N.jsxDEV("div",{className:"row frustration-progress-head",children:[N.jsxDEV("span",{className:"num",children:[B(l.done),"/",B(l.total)," judged"]},void 0,!0,void 0,this),N.jsxDEV("span",{className:"num dim",children:je(p)},void 0,!1,void 0,this),N.jsxDEV("span",{className:"frustration-spacer"},void 0,!1,void 0,this),N.jsxDEV("button",{type:"button",className:"btn","data-variant":"danger","data-size":"sm",onClick:i,disabled:c,children:c?s("frustration.cancelling"):s("frustration.cancel-run")},void 0,!1,void 0,this)]},void 0,!0,void 0,this),N.jsxDEV("div",{className:"meter frustration-progress-track",role:"progressbar","aria-valuemin":0,"aria-valuemax":l.total,"aria-valuenow":d,children:N.jsxDEV("div",{className:"meter-fill frustration-progress-fill",style:{width:`${p*100}%`}},void 0,!1,void 0,this)},void 0,!1,void 0,this),N.jsxDEV("div",{className:"row micro muted frustration-progress-meta",children:[N.jsxDEV("span",{className:l.failed>0?"tone-bad":void 0,children:s("frustration.failed-n",{count:B(l.failed)})},void 0,!1,void 0,this),N.jsxDEV("span",{children:[s("frustration.cost-so-far")," ",N.jsxDEV("span",{className:"num",children:da(l.cost)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),l.judge&&N.jsxDEV("span",{className:"mono",children:l.judge},void 0,!1,void 0,this),l.startedAt!==null&&N.jsxDEV("span",{children:s("frustration.elapsed",{time:vT(Date.now()-l.startedAt)})},void 0,!1,void 0,this),l.startedAt!==null&&l.done>0&&N.jsxDEV("span",{className:"num",children:[(l.done/Math.max(1,(Date.now()-l.startedAt)/1000)).toFixed(0),"/s"]},void 0,!0,void 0,this),l.concurrency>0&&N.jsxDEV("span",{className:"num",children:s("frustration.in-flight",{count:B(l.concurrency)})},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)}function uD({job:l}){let c=s("frustration.messages-progress",{done:B(l.done),total:B(l.total)}),i=l.failed>0?s("frustration.failed-suffix",{count:B(l.failed)}):"",d=l.judge?s("frustration.judge-with",{judge:l.judge}):"",p=l.startedAt!==null&&l.finishedAt!==null?s("frustration.in-time",{time:vT(l.finishedAt-l.startedAt)}):"";switch(l.state){case"idle":return N.jsxDEV("p",{className:"muted",children:s("frustration.no-run-yet")},void 0,!1,void 0,this);case"running":return null;case"done":return N.jsxDEV("p",{className:"muted",children:s("frustration.run-done-line",{progress:c,failed:i,judge:d,elapsed:p,cost:da(l.cost)})},void 0,!1,void 0,this);case"cancelled":return N.jsxDEV("p",{className:"muted",children:s("frustration.run-cancelled-line",{progress:c,failed:i,cost:da(l.cost)})},void 0,!1,void 0,this);case"failed":return N.jsxDEV("p",{className:"muted",children:s("frustration.run-failed-line",{progress:c,failed:i,error:l.error??s("frustration.unknown-error"),cost:da(l.cost)})},void 0,!1,void 0,this)}}function ru(l){return`${l.modelClass}/${l.family??"unclassified"}`}function Ci(l){return l.messages>0&&l.judged/l.messages<db}function iD(l){let c=2166136261;for(let i=0;i<l.length;i++)c^=l.charCodeAt(i),c=Math.imul(c,16777619);return c>>>0}function bT(l){let c=[...new Set(l.map(ru))].sort(),i=new Set,d=new Map;for(let p of c){let b=iD(p)%Ma.length;for(let g=0;g<Ma.length&&i.has(b);g++)b=(b+1)%Ma.length;i.add(b),d.set(p,Ma[b])}return d}function cD(l,c){if(c==="angry")return`color-mix(in srgb, ${l} 55%, black)`;if(c==="other")return`color-mix(in srgb, ${l} 32%, transparent)`;return l}var dD=[{key:"angry",label:"Angry at assistant"},{key:"assistant",label:"At assistant, not angry"},{key:"other",label:"Annoyed at other targets"}];function fD(l,c){if(c==="angry")return l.angry;if(c==="assistant")return l.atAssistant-l.angry;return l.annoyed-l.atAssistant}function Gd(l,c){return c>0?l/c*100:0}function pD({models:l,stale:c}){let[i,d]=xt.useState(null),[p,b]=un(),[g,v]=xt.useState(!1),[L,x]=xt.useState(!1),h=xt.useMemo(()=>bT(l),[l]),C=xt.useMemo(()=>{let Z=new Map;for(let te of l)Z.set(te.modelClass,(Z.get(te.modelClass)??0)+te.messages);return Z},[l]),w=xt.useMemo(()=>{let Z=null,te=-1;for(let[Y,J]of C)if(J>te)Z=Y,te=J;return Z??Fd},[C]),T=i!==null&&(i===Fd||C.has(i))?i:w,k=xt.useMemo(()=>[{value:Fd,label:"All",title:"Every model class"},...[...C].map(([Z,te])=>({value:Z,label:Z,title:`${B(te)} messages`}))],[C]),M=xt.useMemo(()=>T===Fd?l:l.filter((Z)=>Z.modelClass===T),[l,T]),D=xt.useMemo(()=>{let Z=new Map;for(let te of M){let Y=ru(te),J=Z.get(Y);if(J){J.messages+=te.messages;continue}let V=te.family??"unclassified";Z.set(Y,{key:Y,label:T===Fd?`${te.modelClass} · ${V}`:V,messages:te.messages})}return[...Z.values()]},[M,T]),U=xt.useMemo(()=>M.filter((Z)=>!p.has(ru(Z))),[M,p]),P=U.filter((Z)=>Z.messages<Wm).length,X=U.filter(Ci).length,F=xt.useMemo(()=>U.filter((Z)=>(g||Z.messages>=Wm)&&!(L&&Ci(Z))),[U,g,L]);if(l.length===0)return N.jsxDEV(Be,{index:2,title:s("frustration.by-model"),stale:c,children:N.jsxDEV(gt,{title:s("frustration.no-messages"),hint:s("frustration.try-longer-range")},void 0,!1,void 0,this)},void 0,!1,void 0,this);let fe=F.some(Ci);return N.jsxDEV(N.Fragment,{children:[N.jsxDEV(Be,{index:2,title:s("frustration.by-model"),description:s("frustration.by-model-description"),stale:c,children:N.jsxDEV("div",{className:"stack frustration-chart-body",children:[N.jsxDEV("div",{className:"frustration-classes",children:N.jsxDEV(Fa,{size:"sm","aria-label":s("frustration.model-class"),options:k,value:T,onChange:d},void 0,!1,void 0,this)},void 0,!1,void 0,this),N.jsxDEV("div",{className:"row frustration-filters",children:[N.jsxDEV(Va,{items:D.map((Z)=>({key:Z.key,label:Z.label,color:h.get(Z.key)??Ma[0],value:B(Z.messages)})),hidden:p,onToggle:b},void 0,!1,void 0,this),N.jsxDEV("span",{className:"frustration-spacer"},void 0,!1,void 0,this),N.jsxDEV("label",{className:"check",title:s("frustration.small-models-title",{count:Wm}),children:[N.jsxDEV("input",{type:"checkbox",checked:g,onChange:(Z)=>v(Z.target.checked)},void 0,!1,void 0,this),s("frustration.include-small",{count:Wm}),P>0?` (${P})`:""]},void 0,!0,void 0,this),N.jsxDEV("label",{className:"check",title:s("frustration.hide-regex-title",{share:db*100}),children:[N.jsxDEV("input",{type:"checkbox",checked:L,onChange:(Z)=>x(Z.target.checked)},void 0,!1,void 0,this),"Hide mostly regex",X>0?` (${X})`:""]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),N.jsxDEV(mD,{hasRegexRows:fe},void 0,!1,void 0,this),N.jsxDEV(hD,{rows:F,familyColors:h},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this),N.jsxDEV(gD,{rows:F,familyColors:h,stale:c},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function mD({hasRegexRows:l}){return N.jsxDEV("div",{className:"legend frustration-key",children:[N.jsxDEV("span",{className:"legend-item",children:[N.jsxDEV("span",{className:"swatch frustration-key-swatch","data-variant":"angry"},void 0,!1,void 0,this),"Angry at assistant"]},void 0,!0,void 0,this),N.jsxDEV("span",{className:"legend-item",children:[N.jsxDEV("span",{className:"swatch frustration-key-swatch","data-variant":"assistant"},void 0,!1,void 0,this),"At assistant"]},void 0,!0,void 0,this),N.jsxDEV("span",{className:"legend-item",children:[N.jsxDEV("span",{className:"swatch frustration-key-swatch","data-variant":"other"},void 0,!1,void 0,this),"Annoyed at other targets"]},void 0,!0,void 0,this),N.jsxDEV("span",{className:"legend-item",children:[N.jsxDEV("span",{className:"frustration-key-line"},void 0,!1,void 0,this),s("frustration.legend-trend")]},void 0,!0,void 0,this),N.jsxDEV("span",{className:"legend-item frustration-key-wide",title:s("frustration.hatch-title",{share:db*100}),children:[N.jsxDEV("span",{className:"swatch frustration-key-swatch","data-variant":"hatch"},void 0,!1,void 0,this),l?s("frustration.legend-hatched-run"):s("frustration.legend-hatched")]},void 0,!0,void 0,this),N.jsxDEV("span",{className:"legend-item dim",children:s("frustration.legend-hue")},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function hD({rows:l,familyColors:c}){let i=xt.useMemo(()=>{let d=new Map;l.forEach((b,g)=>{let v=ru(b),L=Ci(b),x=`${v}|${L?"regex":"judged"}`,h=d.get(x);if(h)h.slots.push(g);else d.set(x,{family:v,regex:L,slots:[g]})});let p=[];for(let b of dD)for(let[g,v]of d){let L=l.map(()=>null);for(let x of v.slots)L[x]=Gd(fD(l[x],b.key),l[x].messages);p.push({key:`${b.key}|${g}`,label:b.label,color:cD(c.get(v.family)??Ma[0],b.key),values:L,pattern:v.regex?"hatch":void 0})}return p.push({key:"trend",label:"At assistant (total)",color:"var(--ink-1)",values:l.map((b)=>Gd(b.atAssistant,b.messages)),kind:"line",tooltip:!1}),p},[l,c]);if(l.length===0)return N.jsxDEV("div",{className:"frustration-chart-empty",children:N.jsxDEV(gt,{title:s("frustration.no-model-match")},void 0,!1,void 0,this)},void 0,!1,void 0,this);return N.jsxDEV(In,{slots:l.length,tickLabel:(d)=>l[d].label,series:i,height:340,format:(d)=>`${d}%`,formatTooltip:(d)=>`${d.toFixed(1)}%`,showTotal:!1,emptyLabel:"No frustrated messages for these models",tooltipExtra:(d)=>{let p=l[d];return N.jsxDEV("div",{className:"frustration-tooltip-extra",children:[N.jsxDEV("div",{className:"chart-tooltip-row chart-tooltip-total",children:[N.jsxDEV("span",{className:"chart-tooltip-label",children:s("frustration.legend-annoyed-any")},void 0,!1,void 0,this),N.jsxDEV("span",{className:"chart-tooltip-value",children:ma(p.annoyed,p.messages)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),N.jsxDEV("div",{className:"micro dim",children:[B(p.messages)," messages · judged ",B(p.judged)," (",ma(p.judged,p.messages),")",Ci(p)?s("frustration.row-mostly-regex"):""]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)}},void 0,!1,void 0,this)}function gD({rows:l,familyColors:c,stale:i}){let d=xt.useMemo(()=>[{key:"model",header:s("common.model"),sort:(p)=>p.label,render:(p)=>N.jsxDEV("span",{className:"row",title:p.key,children:[N.jsxDEV("span",{className:"swatch",style:{background:c.get(ru(p))??Ma[0]}},void 0,!1,void 0,this),N.jsxDEV("span",{className:"cell-primary",children:p.label},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},{key:"ids",header:s("frustration.column-model-ids"),wrap:!0,render:(p)=>N.jsxDEV("span",{className:"mono micro dim",children:p.models.join(", ")},void 0,!1,void 0,this)},{key:"messages",header:s("frustration.column-messages"),align:"right",sort:(p)=>p.messages,render:(p)=>N.jsxDEV("span",{className:"num",children:B(p.messages)},void 0,!1,void 0,this)},{key:"judged",header:s("frustration.column-judged"),align:"right",sort:(p)=>p.messages>0?p.judged/p.messages:0,render:(p)=>Ci(p)?N.jsxDEV("span",{className:"row frustration-judged",title:s("frustration.mostly-regex"),children:[N.jsxDEV(Ut,{tone:"warn",children:s("frustration.regex-badge")},void 0,!1,void 0,this),N.jsxDEV("span",{className:"num dim",children:ma(p.judged,p.messages)},void 0,!1,void 0,this)]},void 0,!0,void 0,this):N.jsxDEV("span",{className:"num",children:ma(p.judged,p.messages)},void 0,!1,void 0,this)},{key:"annoyed",header:s("frustration.annoyed"),align:"right",sort:(p)=>Gd(p.annoyed,p.messages),render:(p)=>N.jsxDEV("span",{className:"num",title:s("frustration.messages-n",{count:B(p.annoyed)}),children:ma(p.annoyed,p.messages)},void 0,!1,void 0,this)},{key:"atAssistant",header:s("frustration.at-assistant"),align:"right",sort:(p)=>Gd(p.atAssistant,p.messages),render:(p)=>N.jsxDEV("span",{className:"num",title:s("frustration.messages-n",{count:B(p.atAssistant)}),children:ma(p.atAssistant,p.messages)},void 0,!1,void 0,this)},{key:"angry",header:s("frustration.angry"),align:"right",sort:(p)=>Gd(p.angry,p.messages),render:(p)=>N.jsxDEV("span",{className:p.angry>0?"num tone-bad":"num",title:s("frustration.messages-n",{count:B(p.angry)}),children:ma(p.angry,p.messages)},void 0,!1,void 0,this)}],[c]);return N.jsxDEV(Be,{index:3,title:s("frustration.model-versions"),description:s("frustration.table-description"),flush:!0,stale:i,children:N.jsxDEV(Ht,{rows:l,rowKey:(p)=>p.key,columns:d,dense:!0,empty:N.jsxDEV(gt,{title:s("frustration.no-model-match")},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this)}function yD({overall:l,window:c}){let i=l.messages>0?(l.collapse/l.messages).toFixed(2):"–";return N.jsxDEV(N.Fragment,{children:[N.jsxDEV("div",{className:"card-titles",children:[N.jsxDEV("h2",{className:"page-title",children:s("frustration.model-side-title")},void 0,!1,void 0,this),N.jsxDEV("p",{className:"page-description",children:s("frustration.model-side-description",{window:c})},void 0,!1,void 0,this)]},void 0,!0,void 0,this),N.jsxDEV("div",{className:"frustration-model-notes",children:[N.jsxDEV(oa,{min:170,children:[N.jsxDEV(se,{label:s("frustration.model-turns"),title:s("frustration.model-turns-title"),value:B(l.messages)},void 0,!1,void 0,this),N.jsxDEV(se,{label:s("frustration.model-breakdown"),title:s("frustration.model-breakdown-title"),value:ma(l.breakdown,l.messages),hint:s("frustration.turns-n",{count:B(l.breakdown)})},void 0,!1,void 0,this),N.jsxDEV(se,{label:s("frustration.model-mean"),title:s("frustration.model-mean-title"),value:i,hint:s("frustration.model-hint-mean",{value:i})},void 0,!1,void 0,this),N.jsxDEV(se,{label:s("frustration.model-self-blame"),title:s("frustration.model-self-blame-title"),value:ma(l.blamed,l.messages)},void 0,!1,void 0,this),N.jsxDEV(se,{label:s("frustration.model-hedge"),title:s("frustration.model-hedge-title"),value:ma(l.hedged,l.messages)},void 0,!1,void 0,this),N.jsxDEV(se,{label:s("frustration.model-spiral"),title:s("frustration.model-spiral-title"),value:ma(l.spiraled,l.messages)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),l.unscored>0&&N.jsxDEV("p",{className:"micro dim",children:s("frustration.model-unscored-line",{count:B(l.unscored)})},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)}function An(l,c){return c>0?l/c*100:0}function vD({models:l,series:c,range:i,stale:d}){let p=sa(i),b=xt.useMemo(()=>bT(l),[l]),g=xt.useMemo(()=>mo(i,c.map((h)=>h.timestamp),p.bucketMs),[c,i,p.bucketMs]),v=xt.useMemo(()=>new Map(c.map((h)=>[h.timestamp,h])),[c]),L=xt.useMemo(()=>[{key:"breakdown",label:s("frustration.model-legend-breakdown"),color:"var(--chart-primary)",values:g.map((h)=>{let C=v.get(h);return C&&C.messages>0?An(C.breakdown,C.messages):null})}],[g,v]),x=xt.useMemo(()=>[...l].sort((h,C)=>An(C.breakdown,C.messages)-An(h.breakdown,h.messages)||C.messages-h.messages).slice(0,12),[l]);if(l.length===0)return N.jsxDEV(Be,{index:4,title:s("frustration.model-by-model"),stale:d,children:N.jsxDEV(gt,{title:s("frustration.model-no-turns"),hint:s("frustration.model-try-longer-range")},void 0,!1,void 0,this)},void 0,!1,void 0,this);return N.jsxDEV(N.Fragment,{children:[N.jsxDEV(Be,{index:4,title:s("frustration.model-by-model"),description:s("frustration.model-by-model-description"),stale:d,children:N.jsxDEV(au,{max:100,items:x.map((h)=>({key:h.key,label:h.label,value:An(h.breakdown,h.messages),display:ma(h.breakdown,h.messages),color:b.get(ru(h))??Ma[0]}))},void 0,!1,void 0,this)},void 0,!1,void 0,this),N.jsxDEV(Be,{index:5,title:s("frustration.model-over-time"),description:s("frustration.model-over-time-description"),actions:N.jsxDEV(Va,{items:L.map((h)=>({key:h.key,label:h.label,color:h.color}))},void 0,!1,void 0,this),stale:d,children:N.jsxDEV(Rn,{buckets:g,bucketMs:p.bucketMs,series:L,height:260,yMax:100,format:(h)=>`${h}%`,formatTooltip:(h)=>`${h.toFixed(1)}%`,emptyLabel:s("frustration.model-no-turns")},void 0,!1,void 0,this)},void 0,!1,void 0,this),N.jsxDEV(bD,{rows:l,familyColors:b,stale:d},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function bD({rows:l,familyColors:c,stale:i}){let d=xt.useMemo(()=>[{key:"model",header:s("common.model"),sort:(p)=>p.label,render:(p)=>N.jsxDEV("span",{className:"row",title:p.key,children:[N.jsxDEV("span",{className:"swatch",style:{background:c.get(ru(p))??Ma[0]}},void 0,!1,void 0,this),N.jsxDEV("span",{className:"cell-primary",children:p.label},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},{key:"ids",header:s("frustration.column-model-ids"),wrap:!0,render:(p)=>N.jsxDEV("span",{className:"mono micro dim",children:p.models.join(", ")},void 0,!1,void 0,this)},{key:"turns",header:s("frustration.column-turns"),align:"right",sort:(p)=>p.messages,render:(p)=>N.jsxDEV("span",{className:"num",children:B(p.messages)},void 0,!1,void 0,this)},{key:"selfBlame",header:s("frustration.model-self-blame"),align:"right",sort:(p)=>An(p.blamed,p.messages),render:(p)=>N.jsxDEV("span",{className:"num",title:s("frustration.turns-n",{count:B(p.blamed)}),children:ma(p.blamed,p.messages)},void 0,!1,void 0,this)},{key:"restatement",header:s("frustration.model-restatement"),title:s("frustration.model-restatement-title"),align:"right",sort:(p)=>An(p.restated,p.messages),render:(p)=>N.jsxDEV("span",{className:"num",title:s("frustration.turns-n",{count:B(p.restated)}),children:ma(p.restated,p.messages)},void 0,!1,void 0,this)},{key:"hedge",header:s("frustration.model-hedge"),align:"right",sort:(p)=>An(p.hedged,p.messages),render:(p)=>N.jsxDEV("span",{className:"num",title:s("frustration.turns-n",{count:B(p.hedged)}),children:ma(p.hedged,p.messages)},void 0,!1,void 0,this)},{key:"rambling",header:s("frustration.model-rambling"),title:s("frustration.model-rambling-title"),align:"right",sort:(p)=>An(p.verbose,p.messages),render:(p)=>N.jsxDEV("span",{className:"num",title:s("frustration.turns-n",{count:B(p.verbose)}),children:ma(p.verbose,p.messages)},void 0,!1,void 0,this)},{key:"spiral",header:s("frustration.model-spiral"),align:"right",sort:(p)=>An(p.spiraled,p.messages),render:(p)=>N.jsxDEV("span",{className:"num",title:s("frustration.turns-n",{count:B(p.spiraled)}),children:ma(p.spiraled,p.messages)},void 0,!1,void 0,this)},{key:"breakdown",header:s("frustration.model-breakdown"),align:"right",sort:(p)=>An(p.breakdown,p.messages),render:(p)=>N.jsxDEV("span",{className:"num",title:s("frustration.turns-n",{count:B(p.breakdown)}),children:ma(p.breakdown,p.messages)},void 0,!1,void 0,this)},{key:"mean",header:s("frustration.column-mean"),align:"right",sort:(p)=>p.messages>0?p.collapse/p.messages:0,render:(p)=>N.jsxDEV("span",{className:"num",children:p.messages>0?(p.collapse/p.messages).toFixed(2):"–"},void 0,!1,void 0,this)}],[c]);return N.jsxDEV(Be,{index:6,title:s("frustration.model-table-title"),description:s("frustration.model-table-description"),flush:!0,stale:i,children:N.jsxDEV(Ht,{rows:l,rowKey:(p)=>p.key,columns:d,dense:!0,empty:N.jsxDEV(gt,{title:s("frustration.model-no-turns")},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this)}function xD({sessions:l,stale:c}){let i=xt.useMemo(()=>[{key:"session",header:s("frustration.column-session"),render:(d)=>N.jsxDEV("span",{className:"stack",title:d.sessionFile,children:[N.jsxDEV("span",{className:"cell-primary mono micro",children:d.sessionFile.split(/[\\/]/).pop()??d.sessionFile},void 0,!1,void 0,this),N.jsxDEV("span",{className:"micro dim truncate",children:d.folder},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},{key:"models",header:s("common.model"),wrap:!0,render:(d)=>N.jsxDEV("span",{className:"mono micro dim",children:d.models.join(", ")},void 0,!1,void 0,this)},{key:"turns",header:s("frustration.column-turns"),align:"right",sort:(d)=>d.messages,render:(d)=>N.jsxDEV("span",{className:"num",children:B(d.messages)},void 0,!1,void 0,this)},{key:"breakdown",header:s("frustration.model-breakdown"),align:"right",sort:(d)=>An(d.breakdown,d.messages),render:(d)=>N.jsxDEV("span",{className:"num",title:s("frustration.turns-n",{count:B(d.breakdown)}),children:ma(d.breakdown,d.messages)},void 0,!1,void 0,this)},{key:"mean",header:s("frustration.column-mean"),align:"right",sort:(d)=>d.messages>0?d.collapse/d.messages:0,render:(d)=>N.jsxDEV("span",{className:"num",children:d.messages>0?(d.collapse/d.messages).toFixed(2):"–"},void 0,!1,void 0,this)},{key:"toolErrors",header:s("frustration.column-tool-errors"),align:"right",sort:(d)=>d.toolErrors,render:(d)=>N.jsxDEV("span",{className:d.toolErrors>0?"num tone-bad":"num",children:B(d.toolErrors)},void 0,!1,void 0,this)}],[]);return N.jsxDEV(Be,{index:7,title:s("frustration.model-sessions"),description:s("frustration.model-sessions-description"),flush:!0,stale:c,children:N.jsxDEV(Ht,{rows:l,rowKey:(d)=>d.sessionFile,columns:i,dense:!0,empty:N.jsxDEV(gt,{title:s("frustration.model-no-turns")},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this)}var Vd=Q(dt(),1);var qt=Q(ce(),1),SD=86400000,LD={snapcompact:"Snapcompact"},CD=new Intl.DateTimeFormat(void 0,{month:"short",day:"numeric",timeZone:"UTC"});function xT({active:l,range:c}){let[i,d]=Vd.useState(null),p=Gt(["gain",c,i],({signal:w})=>S1(c,i,w),{enabled:l}),b=sa(c),g=p.data,v=Vd.useMemo(()=>{let w=(g?.timeSeries??[]).map((U)=>({...U,timestamp:Date.parse(`${U.date}T00:00:00Z`)})),T=mo(c,w.map((U)=>U.timestamp),SD),k=La(w,T,(U)=>U.snapcompact),M=0,D=k.map((U)=>M+=U);return{buckets:T,daily:k,cumulative:D}},[g,c]),L=Vd.useMemo(()=>{if(!g)return[];let w=g.overall.savedTokens;return Object.keys(g.bySource).map((T)=>({...g.bySource[T],source:T,share:w>0?g.bySource[T].savedTokens/w:0}))},[g]),x=g?.projects??[],h=i!==null&&!x.includes(i)?[i,...x]:x,C=[{key:"daily",label:s("gain.saved-per-day"),color:"var(--chart-primary)",values:v.daily},{key:"cumulative",label:s("gain.cumulative"),color:"var(--chart-secondary)",values:v.cumulative,kind:"line",axis:"right"}];return qt.jsxDEV("div",{className:"page",children:[qt.jsxDEV(ua,{title:s("gain.title"),description:i?s("gain.description-scoped",{project:i,window:s(b.windowKey)}):s("gain.description",{window:s(b.windowKey)}),actions:h.length>0&&qt.jsxDEV("select",{className:"input","aria-label":s("common.project"),value:i??"",onChange:(w)=>d(w.target.value||null),style:{maxWidth:320},children:[qt.jsxDEV("option",{value:"",children:s("gain.all-projects")},void 0,!1,void 0,this),h.map((w)=>qt.jsxDEV("option",{value:w,children:w},w,!1,void 0,this))]},void 0,!0,void 0,this)},void 0,!1,void 0,this),qt.jsxDEV(_e,{query:p,skeleton:qt.jsxDEV(Mt,{height:96},void 0,!1,void 0,this),isEmpty:(w)=>w.overall.hits===0&&w.timeSeries.length===0,empty:qt.jsxDEV(Be,{children:qt.jsxDEV(gt,{title:i?s("gain.empty-title-scoped",{project:i,window:s(b.windowKey)}):s("gain.empty-title",{window:s(b.windowKey)}),hint:c==="all"?s("gain.empty-hint-all"):s("gain.empty-hint-longer-range")},void 0,!1,void 0,this)},void 0,!1,void 0,this),children:({overall:w})=>qt.jsxDEV(qt.Fragment,{children:[qt.jsxDEV("div",{"data-stale":p.stale,children:qt.jsxDEV(oa,{min:180,children:[qt.jsxDEV(se,{label:s("gain.saved-tokens"),value:De(w.savedTokens),hint:B(w.savedTokens),spark:v.daily},void 0,!1,void 0,this),qt.jsxDEV(se,{label:s("gain.saved-bytes"),value:Jv(w.savedBytes)},void 0,!1,void 0,this),qt.jsxDEV(se,{label:s("gain.reduction"),title:s("gain.reduction-title"),value:w.reductionPercent!==null?je(w.reductionPercent):"–",hint:w.reductionPercent===null?s("gain.reduction-unknown"):void 0},void 0,!1,void 0,this),qt.jsxDEV(se,{label:s("gain.hits"),value:B(w.hits)},void 0,!1,void 0,this),qt.jsxDEV(se,{label:s("gain.saved-per-hit"),value:w.hits>0?De(w.savedTokens/w.hits):"–",hint:s("common.tokens")},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this),qt.jsxDEV(Be,{index:1,title:s("gain.savings-over-time"),description:s("gain.savings-over-time-description"),actions:qt.jsxDEV(Va,{items:C.map((T)=>({key:T.key,label:T.label,color:T.color}))},void 0,!1,void 0,this),stale:p.stale,children:qt.jsxDEV(In,{slots:v.buckets.length,tickLabel:(T)=>CD.format(v.buckets[T]),series:C,height:260,formatTooltip:B,formatRight:De},void 0,!1,void 0,this)},void 0,!1,void 0,this),qt.jsxDEV(Be,{index:2,title:s("gain.by-source"),description:s("gain.by-source-description"),flush:!0,stale:p.stale,children:qt.jsxDEV(Ht,{rows:L,rowKey:(T)=>T.source,columns:wD},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}var wD=[{key:"source",header:s("gain.source"),sort:(l)=>l.source,render:(l)=>qt.jsxDEV("span",{className:"cell-primary",children:LD[l.source]},void 0,!1,void 0,this)},{key:"tokens",header:s("gain.saved-tokens"),align:"right",sort:(l)=>l.savedTokens,render:(l)=>qt.jsxDEV("span",{title:B(l.savedTokens),children:qt.jsxDEV(pa,{value:l.share,max:1,display:De(l.savedTokens)},void 0,!1,void 0,this)},void 0,!1,void 0,this)},{key:"share",header:s("common.share"),align:"right",sort:(l)=>l.share,render:(l)=>qt.jsxDEV("span",{className:"num muted",children:je(l.share)},void 0,!1,void 0,this)},{key:"bytes",header:s("gain.saved-bytes"),align:"right",sort:(l)=>l.savedBytes,render:(l)=>qt.jsxDEV("span",{className:"num",children:Jv(l.savedBytes)},void 0,!1,void 0,this)},{key:"hits",header:s("gain.hits"),align:"right",sort:(l)=>l.hits,render:(l)=>qt.jsxDEV("span",{className:"num",children:B(l.hits)},void 0,!1,void 0,this)},{key:"reduction",header:s("gain.reduction"),align:"right",sort:(l)=>l.reductionPercent??-1,render:(l)=>qt.jsxDEV("span",{className:"num",children:l.reductionPercent!==null?je(l.reductionPercent):"–"},void 0,!1,void 0,this)}];var wi=Q(dt(),1);var we=Q(ce(),1),kD=[{value:"share",label:s("common.share")},{value:"requests",label:s("common.requests")}],TD=6;function LT({active:l,range:c}){let i=Gt(["models",c],({signal:M})=>d1(c,M),{enabled:l}),d=sa(c),[p,b]=wi.useState("share"),[g,v]=un(),[L,x]=wi.useState(null),h=wi.useMemo(()=>i.data?ID(i.data,c):null,[i.data,c]),C=DD(d.bucketMs),w=wi.useMemo(()=>h?AD(h,L,C):[],[h,L,C]),T=(M)=>M.byModel.length===0,k=we.jsxDEV(gt,{title:s("models.empty-title"),hint:s("models.empty-hint")},void 0,!1,void 0,this);return we.jsxDEV("div",{className:"page",children:[we.jsxDEV(ua,{title:s("common.models"),description:s("models.subtitle",{window:s(d.windowKey)})},void 0,!1,void 0,this),we.jsxDEV(_e,{query:i,skeleton:we.jsxDEV(Ba,{height:112,style:{borderRadius:12}},void 0,!1,void 0,this),isEmpty:T,empty:k,children:()=>h&&we.jsxDEV("div",{"data-stale":i.stale,children:we.jsxDEV(oa,{min:200,children:[we.jsxDEV(se,{label:s("models.used"),value:B(h.models.length),hint:h.providerCount===1?s("models.across-providers-one",{count:B(h.providerCount)}):s("models.across-providers",{count:B(h.providerCount)})},void 0,!1,void 0,this),we.jsxDEV(se,{label:s("models.most-used"),title:h.top?`${h.top.model} (${h.top.provider})`:void 0,value:h.top?h.top.model:"–",hint:h.top?s("models.most-used-hint",{share:je(h.top.totalRequests/Math.max(1,h.totalRequests)),provider:h.top.provider}):void 0},void 0,!1,void 0,this),we.jsxDEV(se,{label:s("common.requests"),value:B(h.totalRequests),hint:s("models.failed-n",{count:B(h.failedRequests)}),spark:h.requestTotals},void 0,!1,void 0,this),we.jsxDEV(se,{label:s("models.api-cost"),title:s("models.api-cost-title"),value:Ft(h.totalCost,h.unpricedRequests),hint:h.unpricedRequests>0?s("models.unpriced-n",{count:B(h.unpricedRequests)}):void 0},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this),we.jsxDEV(Be,{index:1,title:s("models.request-share"),description:p==="share"?s("models.share-desc",{bucket:C}):s("models.count-desc",{bucket:C}),actions:we.jsxDEV(Fa,{size:"sm",options:kD,value:p,onChange:b,"aria-label":s("models.share-mode-aria")},void 0,!1,void 0,this),stale:i.stale,children:we.jsxDEV(_e,{query:i,skeleton:we.jsxDEV(Mt,{height:260},void 0,!1,void 0,this),isEmpty:T,empty:k,children:()=>h&&we.jsxDEV("div",{className:"stack",style:{gap:12},children:[we.jsxDEV(Rn,{buckets:h.buckets,bucketMs:d.bucketMs,series:p==="share"?h.shareSeries:h.countSeries,hidden:g,height:260,yMax:p==="share"?1:void 0,format:p==="share"?(M)=>je(M,0):De,formatTooltip:p==="share"?(M)=>je(M):B,showTotal:p==="requests"},void 0,!1,void 0,this),we.jsxDEV(Va,{items:h.countSeries.map((M)=>({key:M.key,label:M.label,color:M.color,value:je(ST(M.values)/Math.max(1,ST(h.requestTotals)))})),hidden:g,onToggle:v},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this),we.jsxDEV(Be,{index:2,title:s("models.all-models"),description:s("models.table-desc"),stale:i.stale,flush:!0,children:we.jsxDEV(_e,{query:i,skeleton:we.jsxDEV(na,{rows:8},void 0,!1,void 0,this),isEmpty:T,empty:k,children:()=>h&&we.jsxDEV(Ht,{rows:h.models,rowKey:(M)=>xa(M.model,M.provider),columns:w,initialSort:{key:"requests",dir:"desc"},limit:25,onRowClick:(M)=>{let D=xa(M.model,M.provider);x((U)=>U===D?null:D)},selectedKey:L,expanded:(M)=>{let D=xa(M.model,M.provider);return D===L?we.jsxDEV(MD,{model:M,color:h.swatches.get(D)??"var(--chart-primary)",points:h.performance.get(D)??[],bucketMs:d.bucketMs,bucketWord:C},void 0,!1,void 0,this):null}},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 ID(l,c){let i=l.byModel,d=Zm(i),p=RD(i),b=mo(c,l.modelSeries.map((D)=>D.timestamp)),g=La(l.modelSeries,b,(D)=>D.requests),v={buckets:b,key:(D)=>xa(D.model,D.provider),label:(D)=>p.get(D)??D,value:(D)=>D.requests,colors:d},L=vr(l.modelSeries,{...v,limit:TD}).map((D)=>({...D,values:D.values.map((U)=>U||null)})),x=L.map((D)=>({...D,values:D.values.map((U,P)=>U===null?null:U/g[P])})),h=new Map(vr(l.modelSeries,v).map((D)=>[D.key,D.values])),C,w=0,T=0,k=0,M=0;for(let D of i){if(!C||D.totalRequests>C.totalRequests)C=D;w+=D.totalRequests,T+=D.failedRequests,k+=D.totalCost,M+=D.unpricedRequests}return{models:i,top:C,swatches:new Map(L.filter((D)=>D.key!=="__other__").map((D)=>[D.key,D.color])),labels:p,providerCount:new Set(i.map((D)=>D.provider)).size,totalRequests:w,failedRequests:T,totalCost:k,unpricedRequests:M,maxRequests:C?.totalRequests??0,buckets:b,requestTotals:g,countSeries:L,shareSeries:x,trends:h,performance:uT(l.modelPerformanceSeries)}}function RD(l){let c=new Map;for(let i of l)c.set(i.model,(c.get(i.model)??0)+1);return new Map(l.map((i)=>[xa(i.model,i.provider),(c.get(i.model)??0)>1?`${i.model} · ${i.provider}`:i.model]))}function AD(l,c,i){return[{key:"expand",header:"",width:28,render:(d)=>we.jsxDEV("span",{className:"models-chevron","data-open":xa(d.model,d.provider)===c,children:we.jsxDEV(Cn,{size:14},void 0,!1,void 0,this)},void 0,!1,void 0,this)},{key:"model",header:s("common.model"),sort:(d)=>d.model,render:(d)=>we.jsxDEV(Ga,{lead:we.jsxDEV(wn,{color:l.swatches.get(xa(d.model,d.provider))??oo},void 0,!1,void 0,this),primary:we.jsxDEV("span",{className:"mono",children:d.model},void 0,!1,void 0,this),secondary:d.provider},void 0,!1,void 0,this)},{key:"requests",header:s("common.requests"),align:"right",sort:(d)=>d.totalRequests,render:(d)=>we.jsxDEV(pa,{value:d.totalRequests,max:l.maxRequests,display:B(d.totalRequests),color:l.swatches.get(xa(d.model,d.provider))??oo},void 0,!1,void 0,this)},{key:"cost",header:s("common.cost"),title:s("models.cost-title"),align:"right",sort:(d)=>d.totalCost,render:(d)=>we.jsxDEV("span",{className:"num",children:Ft(d.totalCost,d.unpricedRequests)},void 0,!1,void 0,this)},{key:"tokens",header:s("common.tokens"),title:s("models.tokens-title"),align:"right",sort:(d)=>Jl(d),render:(d)=>{let p=Jl(d);return we.jsxDEV("span",{className:"num",title:B(p),children:De(p)},void 0,!1,void 0,this)}},{key:"cache",header:s("models.cache-rate"),title:s("models.cache-title"),align:"right",sort:(d)=>d.cacheRate,render:(d)=>we.jsxDEV("span",{className:"num",children:je(d.cacheRate)},void 0,!1,void 0,this)},{key:"errors",header:s("models.errors"),align:"right",sort:(d)=>d.errorRate,render:(d)=>d.failedRequests===0?we.jsxDEV("span",{className:"num dim",children:"0%"},void 0,!1,void 0,this):we.jsxDEV("span",{title:s("models.failed-n",{count:B(d.failedRequests)}),children:we.jsxDEV(Ut,{tone:fr(d.errorRate),mono:!0,children:ao(d.errorRate)},void 0,!1,void 0,this)},void 0,!1,void 0,this)},{key:"tps",header:s("common.tokens-per-second"),title:s("models.tps-title"),align:"right",sort:(d)=>d.avgTokensPerSecond??-1,render:(d)=>we.jsxDEV("span",{className:"num",children:mr(d.avgTokensPerSecond)},void 0,!1,void 0,this)},{key:"ttft",header:s("models.ttft"),title:s("models.ttft-title"),align:"right",sort:(d)=>d.avgTtft??-1,render:(d)=>we.jsxDEV("span",{className:"num",children:Dt(d.avgTtft)},void 0,!1,void 0,this)},{key:"trend",header:s("models.trend"),title:s("models.trend-title",{bucket:i}),width:112,render:(d)=>{let p=xa(d.model,d.provider),b=l.trends.get(p);return b?we.jsxDEV(bi,{values:b.map((g)=>g??0),color:l.swatches.get(p)??oo,width:96,height:22},void 0,!1,void 0,this):we.jsxDEV("span",{className:"dim",children:"–"},void 0,!1,void 0,this)}}]}function MD({model:l,color:c,points:i,bucketMs:d,bucketWord:p}){let[b,g]=un(),v=[{key:"tps",label:s("common.tokens-per-second"),color:c,kind:i.length>1?"line":"bars",values:i.map((L)=>L.avgTokensPerSecond)},{key:"ttft",label:s("models.ttft"),color:oo,kind:i.length>1?"line":"bars",axis:"right",dashed:!0,values:i.map((L)=>L.avgTtftSeconds)}];return we.jsxDEV("div",{className:"models-detail",children:[we.jsxDEV("div",{className:"models-detail-facts",children:[we.jsxDEV("div",{children:[we.jsxDEV("div",{className:"section-label",children:s("models.efficiency")},void 0,!1,void 0,this),we.jsxDEV(Go,{items:[{key:"err",label:s("common.error-rate"),value:we.jsxDEV("span",{className:`tone-${fr(l.errorRate)}`,children:[ao(l.errorRate)," ",we.jsxDEV("span",{className:"dim",children:["(",s("models.failed-n",{count:B(l.failedRequests)}),")"]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)},{key:"cache",label:s("models.cache-rate"),value:je(l.cacheRate)},{key:"savings",label:s("models.cache-savings"),value:we.jsxDEV("span",{className:l.cacheSavings<0?"tone-bad":void 0,children:je(l.cacheSavings)},void 0,!1,void 0,this)},{key:"premium",label:s("common.premium-requests"),value:B(Math.round(l.totalPremiumRequests*100)/100)}]},void 0,!1,void 0,this)]},void 0,!0,void 0,this),we.jsxDEV("div",{children:[we.jsxDEV("div",{className:"section-label",children:s("models.latency")},void 0,!1,void 0,this),we.jsxDEV(Go,{items:[{key:"dur",label:s("models.avg-duration"),value:Dt(l.avgDuration)},{key:"ttft",label:s("models.avg-ttft"),value:Dt(l.avgTtft)},{key:"tps",label:s("common.tokens-per-second"),value:mr(l.avgTokensPerSecond)}]},void 0,!1,void 0,this)]},void 0,!0,void 0,this),we.jsxDEV("div",{children:[we.jsxDEV("div",{className:"section-label",children:s("common.tokens")},void 0,!1,void 0,this),we.jsxDEV(Go,{items:[{key:"in",label:s("models.uncached-input"),value:De(l.totalInputTokens)},{key:"cr",label:s("common.cache-read"),value:De(l.totalCacheReadTokens)},{key:"cw",label:s("common.cache-write"),value:De(l.totalCacheWriteTokens)},{key:"out",label:s("common.output"),value:De(l.totalOutputTokens)}]},void 0,!1,void 0,this)]},void 0,!0,void 0,this),we.jsxDEV("div",{className:"micro dim",children:s("models.first-last-seen",{first:fa(l.firstTimestamp),last:fa(l.lastTimestamp)})},void 0,!1,void 0,this)]},void 0,!0,void 0,this),we.jsxDEV("div",{className:"models-detail-chart",children:[we.jsxDEV("div",{className:"row",style:{justifyContent:"space-between"},children:[we.jsxDEV("div",{className:"section-label",style:{marginBottom:0},children:s("models.performance-per-bucket",{bucket:p})},void 0,!1,void 0,this),we.jsxDEV(Va,{items:v.map((L)=>({key:L.key,label:L.label,color:L.color})),hidden:b,onToggle:g},void 0,!1,void 0,this)]},void 0,!0,void 0,this),i.length===0?we.jsxDEV(gt,{title:s("models.no-samples-title"),hint:s("models.no-samples-hint")},void 0,!1,void 0,this):we.jsxDEV(Rn,{buckets:i.map((L)=>L.timestamp),bucketMs:d,series:v,hidden:b,stacked:!1,height:240,format:De,formatTooltip:(L)=>s("models.tok-per-second",{value:mr(L)}),formatRight:(L)=>`${Number(L.toFixed(2))}s`,tooltipExtra:(L)=>we.jsxDEV("div",{className:"chart-tooltip-row chart-tooltip-total",children:[we.jsxDEV("span",{className:"chart-tooltip-label",children:s("common.requests")},void 0,!1,void 0,this),we.jsxDEV("span",{className:"chart-tooltip-value",children:B(i[L].requests)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)}function DD(l){if(l<3600000)return s("models.bucket-5m");if(l<86400000)return s("models.bucket-hour");return s("models.bucket-day")}function ST(l){let c=0;for(let i of l)c+=i??0;return c}var Jm=Q(dt(),1);var Re=Q(ce(),1),ED=[{value:"requests",label:s("common.requests")},{value:"tokens",label:s("common.tokens")},{value:"cost",label:s("common.cost")}],CT={main:s("overview.main-agent"),subagent:s("overview.subagents"),advisor:s("overview.advisor")},wT={main:"var(--chart-primary)",subagent:"var(--chart-secondary)",advisor:"#9d7bff"},kT=[{key:"input",label:s("overview.uncached-input"),color:"#5b8cff"},{key:"cacheRead",label:s("common.cache-read"),color:"var(--chart-primary)"},{key:"cacheWrite",label:s("common.cache-write"),color:"#f5b54a"},{key:"output",label:s("common.output"),color:"var(--chart-secondary)"}];function TT({active:l,range:c,onRequestClick:i}){let d=Gt(["overview",c],({signal:h})=>c1(c,h),{enabled:l}),p=Gt(["recent-requests"],({signal:h})=>Bm(12,h),{enabled:l}),[b,g]=Jm.useState("requests"),v=sa(c),L=Jm.useMemo(()=>{let h=d.data?.timeSeries??[],C=mo(c,h.map((w)=>w.timestamp));return{buckets:C,requests:La(h,C,(w)=>w.requests-w.errors),errors:La(h,C,(w)=>w.errors),tokens:La(h,C,(w)=>w.tokens),cost:La(h,C,(w)=>w.cost),all:La(h,C,(w)=>w.requests)}},[d.data,c]),x=b==="requests"?[{key:"ok",label:s("overview.succeeded"),color:"var(--chart-primary)",values:L.requests},{key:"err",label:s("common.failed"),color:"var(--bad)",values:L.errors}]:b==="tokens"?[{key:"tokens",label:s("common.tokens"),color:"var(--chart-primary)",values:L.tokens}]:[{key:"cost",label:s("overview.api-equivalent"),color:"var(--chart-secondary)",values:L.cost}];return Re.jsxDEV("div",{className:"page",children:[Re.jsxDEV(ua,{title:s("overview.title"),description:s("overview.description",{window:s(v.windowKey)})},void 0,!1,void 0,this),Re.jsxDEV(_e,{query:d,skeleton:Re.jsxDEV(Mt,{height:112},void 0,!1,void 0,this),children:({overall:h})=>Re.jsxDEV("div",{"data-stale":d.stale,className:"stack",style:{gap:16},children:[Re.jsxDEV(oa,{min:190,children:[Re.jsxDEV(se,{label:s("overview.api-equivalent-cost"),title:s("overview.api-cost-title"),value:Ft(h.totalCost,h.unpricedRequests),hint:h.unpricedRequests>0?s("overview.unpriced-n",{count:B(h.unpricedRequests)}):void 0,spark:L.cost,sparkColor:"var(--chart-secondary)"},void 0,!1,void 0,this),Re.jsxDEV(se,{label:s("common.requests"),value:B(h.totalRequests),hint:s("overview.failed-n",{count:B(h.failedRequests)}),spark:L.all},void 0,!1,void 0,this),Re.jsxDEV(se,{label:s("overview.conversation-tokens"),title:s("overview.tokens-title"),value:De(Jl(h)),hint:s("overview.output-n",{count:De(h.totalOutputTokens)}),spark:L.tokens},void 0,!1,void 0,this),Re.jsxDEV(se,{label:s("overview.cache-rate"),title:s("overview.cache-rate-title"),value:je(h.cacheRate),hint:s("overview.cache-saved",{value:je(h.cacheSavings)})},void 0,!1,void 0,this),Re.jsxDEV(se,{label:s("common.error-rate"),value:ao(h.errorRate),hint:s("overview.succeeded-n",{count:B(h.successfulRequests)}),spark:L.errors,sparkColor:"var(--bad)"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),Re.jsxDEV(oa,{min:140,children:[Re.jsxDEV(se,{size:"sm",label:s("overview.uncached-input"),value:De(h.totalInputTokens)},void 0,!1,void 0,this),Re.jsxDEV(se,{size:"sm",label:s("common.cache-read"),value:De(h.totalCacheReadTokens)},void 0,!1,void 0,this),Re.jsxDEV(se,{size:"sm",label:s("common.cache-write"),value:De(h.totalCacheWriteTokens)},void 0,!1,void 0,this),Re.jsxDEV(se,{size:"sm",label:s("common.output"),value:De(h.totalOutputTokens)},void 0,!1,void 0,this),Re.jsxDEV(se,{size:"sm",label:s("common.premium-requests"),value:B(Math.round(h.totalPremiumRequests*100)/100)},void 0,!1,void 0,this),Re.jsxDEV(se,{size:"sm",label:s("common.tokens-per-second"),value:mr(h.avgTokensPerSecond)},void 0,!1,void 0,this),Re.jsxDEV(se,{size:"sm",label:s("overview.avg-latency"),value:Dt(h.avgDuration)},void 0,!1,void 0,this),Re.jsxDEV(se,{size:"sm",label:s("overview.avg-ttft"),value:Dt(h.avgTtft)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this),Re.jsxDEV("div",{className:"grid grid-main-side",children:[Re.jsxDEV(Be,{index:1,title:s("overview.activity"),description:v.bucketMs<3600000?s("overview.per-5m"):v.bucketMs<86400000?s("overview.per-hour"):s("overview.per-day"),actions:Re.jsxDEV(Fa,{size:"sm",options:ED,value:b,onChange:g},void 0,!1,void 0,this),stale:d.stale,children:Re.jsxDEV(_e,{query:d,skeleton:Re.jsxDEV(Mt,{height:260},void 0,!1,void 0,this),children:()=>Re.jsxDEV(Rn,{buckets:L.buckets,bucketMs:v.bucketMs,series:x,height:260,format:b==="cost"?(h)=>Ft(h,0):De},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this),Re.jsxDEV(Be,{index:2,title:s("overview.token-mix"),description:s("overview.token-mix-description"),stale:d.stale,children:Re.jsxDEV(_e,{query:d,skeleton:Re.jsxDEV(Mt,{height:260},void 0,!1,void 0,this),children:({overall:h,byAgentType:C})=>{let w={input:h.totalInputTokens,cacheRead:h.totalCacheReadTokens,cacheWrite:h.totalCacheWriteTokens,output:h.totalOutputTokens},T=Jl(h),k=lT(C);return Re.jsxDEV("div",{className:"stack",style:{gap:18},children:[Re.jsxDEV("div",{className:"stack",style:{gap:10},children:[Re.jsxDEV(Wl,{segments:kT.map((M)=>({key:M.key,label:M.label,value:w[M.key],color:M.color}))},void 0,!1,void 0,this),Re.jsxDEV(Va,{items:kT.map((M)=>({key:M.key,label:M.label,color:M.color,value:T>0?je(w[M.key]/T,0):"–"}))},void 0,!1,void 0,this)]},void 0,!0,void 0,this),Re.jsxDEV("div",{className:"stack",style:{gap:10},children:[Re.jsxDEV("div",{className:"section-label",style:{marginBottom:0},children:s("overview.by-agent")},void 0,!1,void 0,this),Re.jsxDEV(Wl,{segments:k.segments.map((M)=>({key:M.agentType,label:CT[M.agentType],value:M.tokens,color:wT[M.agentType]}))},void 0,!1,void 0,this),k.segments.map((M)=>Re.jsxDEV("div",{className:"row",style:{justifyContent:"space-between"},children:[Re.jsxDEV("span",{className:"row",children:[Re.jsxDEV("span",{className:"swatch",style:{background:wT[M.agentType]}},void 0,!1,void 0,this),CT[M.agentType],Re.jsxDEV("span",{className:"dim num",children:s("overview.requests-short",{count:B(M.requests)})},void 0,!1,void 0,this)]},void 0,!0,void 0,this),Re.jsxDEV("span",{className:"row",children:[Re.jsxDEV("span",{className:"dim num",children:De(M.tokens)},void 0,!1,void 0,this),Re.jsxDEV("span",{className:"num",style:{minWidth:48,textAlign:"right"},children:je(M.share)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},M.agentType,!0,void 0,this))]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)}},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),Re.jsxDEV(Be,{index:3,title:Re.jsxDEV(Re.Fragment,{children:[Re.jsxDEV(dr,{tone:"live",pulse:!0},void 0,!1,void 0,this)," ",s("overview.latest-requests")]},void 0,!0,void 0,this),description:s("overview.latest-requests-description"),actions:Re.jsxDEV("a",{className:"btn","data-size":"sm","data-variant":"ghost",href:`#/requests?range=${c}`,children:[s("overview.all-requests")," ",Re.jsxDEV(hd,{size:13},void 0,!1,void 0,this)]},void 0,!0,void 0,this),flush:!0,children:Re.jsxDEV(_e,{query:p,skeleton:Re.jsxDEV(na,{rows:8},void 0,!1,void 0,this),children:(h)=>Re.jsxDEV(Ht,{rows:h,rowKey:(C)=>C.id??`${C.sessionFile}:${C.entryId}`,onRowClick:(C)=>C.id!==void 0&&i(C.id),columns:OD,dense:!0},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}var OD=[{key:"model",header:s("common.model"),render:(l)=>Re.jsxDEV(Ga,{primary:l.model,secondary:l.provider},void 0,!1,void 0,this)},{key:"time",header:s("overview.when"),render:(l)=>Re.jsxDEV("span",{className:"muted",children:fa(l.timestamp)},void 0,!1,void 0,this)},{key:"tokens",header:s("common.tokens"),align:"right",render:(l)=>Re.jsxDEV("span",{className:"num",children:B(l.usage.totalTokens)},void 0,!1,void 0,this)},{key:"cost",header:s("common.cost"),align:"right",render:(l)=>Re.jsxDEV("span",{className:"num",children:Zl(l,4)},void 0,!1,void 0,this)},{key:"duration",header:s("common.duration"),align:"right",render:(l)=>Re.jsxDEV("span",{className:"num",children:Dt(l.duration)},void 0,!1,void 0,this)},{key:"status",header:s("overview.status"),align:"right",render:(l)=>l.errorMessage?Re.jsxDEV(Ut,{tone:"bad",children:s("common.failed")},void 0,!1,void 0,this):Re.jsxDEV(Ut,{tone:"ok",children:s("overview.ok")},void 0,!1,void 0,this)}];var Mn=Q(dt(),1);var Ye=Q(ce(),1),qD=100,IT=8;function RT({active:l,range:c}){let i=Gt(["projects",c],({signal:M})=>x1(c,M),{enabled:l}),[d,p]=Mn.useState(""),[b,g]=Mn.useState(!0),v=Mn.useDeferredValue(d.trim().toLowerCase()),L=sa(c),x=Mn.useMemo(()=>iT(i.data??[]),[i.data]),h=Mn.useMemo(()=>b?x.rows.filter((M)=>!M.temporary):x.rows,[x,b]),C=Mn.useMemo(()=>v?h.filter((M)=>M.folder.toLowerCase().includes(v)):h,[h,v]),w=Mn.useMemo(()=>({cost:[...h].sort((M,D)=>D.totalCost-M.totalCost).slice(0,IT),requests:[...h].sort((M,D)=>D.totalRequests-M.totalRequests).slice(0,IT)}),[h]),T=Ye.jsxDEV(gt,{title:s(x.rows.length===0?"projects.empty-no-folders":"projects.empty-only-temporary")},void 0,!1,void 0,this),k=Mn.useMemo(()=>ND(x.maxRequests,x.maxCost),[x]);return Ye.jsxDEV("div",{className:"page",children:[Ye.jsxDEV(ua,{title:s("projects.title"),description:s("projects.description",{window:s(L.windowKey)})},void 0,!1,void 0,this),Ye.jsxDEV(_e,{query:i,skeleton:Ye.jsxDEV(Mt,{height:96},void 0,!1,void 0,this),children:()=>Ye.jsxDEV("div",{"data-stale":i.stale,children:Ye.jsxDEV(oa,{min:180,children:[Ye.jsxDEV(se,{label:s("projects.folders"),value:B(x.rows.length),hint:x.temporaryCount>0?s("projects.temporary-n",{count:B(x.temporaryCount)}):void 0},void 0,!1,void 0,this),Ye.jsxDEV(se,{label:s("common.requests"),value:B(x.totalRequests),hint:s("projects.failed-n",{count:B(x.failedRequests)})},void 0,!1,void 0,this),Ye.jsxDEV(se,{label:s("projects.api-equivalent-cost"),title:s("projects.api-equivalent-cost-hint"),value:Ft(x.totalCost,x.unpricedRequests),hint:x.unpricedRequests>0?s("projects.unpriced-n",{count:B(x.unpricedRequests)}):void 0},void 0,!1,void 0,this),Ye.jsxDEV(se,{label:s("projects.conversation-tokens"),title:s("projects.conversation-tokens-hint"),value:De(x.conversationTokens)},void 0,!1,void 0,this),Ye.jsxDEV(se,{label:s("projects.cache-rate"),title:s("projects.cache-rate-hint-all"),value:je(x.cacheRate)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this),Ye.jsxDEV("div",{className:"grid grid-2",children:[Ye.jsxDEV(Be,{index:1,title:s("projects.top-by-cost"),description:s("projects.top-by-cost-description"),stale:i.stale,children:Ye.jsxDEV(_e,{query:i,skeleton:Ye.jsxDEV(Mt,{height:236},void 0,!1,void 0,this),isEmpty:()=>w.cost.length===0,empty:T,children:()=>Ye.jsxDEV(au,{items:w.cost.map((M)=>({key:M.folder,label:Ye.jsxDEV("span",{className:"mono",children:hr(M.folder)},void 0,!1,void 0,this),value:M.totalCost,display:`${Ft(M.totalCost,M.unpricedRequests)} · ${je(M.costShare)}`,color:"var(--chart-secondary)"})),onSelect:p},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this),Ye.jsxDEV(Be,{index:2,title:s("projects.top-by-requests"),description:s("projects.top-by-requests-description"),stale:i.stale,children:Ye.jsxDEV(_e,{query:i,skeleton:Ye.jsxDEV(Mt,{height:236},void 0,!1,void 0,this),isEmpty:()=>w.requests.length===0,empty:T,children:()=>Ye.jsxDEV(au,{items:w.requests.map((M)=>({key:M.folder,label:Ye.jsxDEV("span",{className:"mono",children:hr(M.folder)},void 0,!1,void 0,this),value:M.totalRequests,display:`${B(M.totalRequests)} · ${je(M.requestShare)}`})),onSelect:p},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),Ye.jsxDEV(Be,{index:3,title:s("projects.folders"),description:i.data?C.length===x.rows.length?s("projects.folders-n",{count:B(x.rows.length)}):s("projects.folders-of-n",{count:B(C.length),total:B(x.rows.length)}):void 0,actions:Ye.jsxDEV(Ye.Fragment,{children:[x.temporaryCount>0&&Ye.jsxDEV("label",{className:"check",title:s("projects.hide-temporary-hint"),children:[Ye.jsxDEV("input",{type:"checkbox",checked:b,onChange:(M)=>g(M.target.checked)},void 0,!1,void 0,this),s("projects.hide-temporary",{count:B(x.temporaryCount)})]},void 0,!0,void 0,this),Ye.jsxDEV(pr,{value:d,onChange:p,placeholder:s("projects.filter-placeholder"),width:240},void 0,!1,void 0,this)]},void 0,!0,void 0,this),flush:!0,stale:i.stale,children:Ye.jsxDEV(_e,{query:i,skeleton:Ye.jsxDEV(na,{rows:10},void 0,!1,void 0,this),children:()=>Ye.jsxDEV(Ht,{rows:C,rowKey:(M)=>M.folder,columns:k,initialSort:{key:"cost",dir:"desc"},limit:qD,dense:!0,empty:Ye.jsxDEV(gt,{title:s(x.rows.length===0?"projects.empty-no-folders":"projects.empty-no-match"),hint:x.rows.length===0?s("projects.hint-longer-range"):b&&x.temporaryCount>0?s("projects.hint-temporary-hidden"):void 0},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function ND(l,c){return[{key:"folder",header:s("projects.folder"),sort:(i)=>i.folder,render:(i)=>Ye.jsxDEV("span",{className:"row projects-folder",title:i.folder||s("common.root"),children:[Ye.jsxDEV("span",{className:"mono truncate",children:hr(i.folder)},void 0,!1,void 0,this),i.temporary&&Ye.jsxDEV(Ut,{children:s("projects.temp")},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},{key:"requests",header:s("common.requests"),align:"right",sort:(i)=>i.totalRequests,render:(i)=>Ye.jsxDEV("span",{title:s("projects.share-of-requests",{share:je(i.requestShare)}),children:Ye.jsxDEV(pa,{value:i.totalRequests,max:l,display:B(i.totalRequests)},void 0,!1,void 0,this)},void 0,!1,void 0,this)},{key:"cost",header:s("common.cost"),title:s("projects.api-equivalent-cost-rates"),align:"right",sort:(i)=>i.totalCost,render:(i)=>Ye.jsxDEV("span",{title:s("projects.share-of-cost",{share:je(i.costShare)}),children:Ye.jsxDEV(pa,{value:i.totalCost,max:c,display:Ft(i.totalCost,i.unpricedRequests),color:"var(--chart-secondary)"},void 0,!1,void 0,this)},void 0,!1,void 0,this)},{key:"tokens",header:s("common.tokens"),title:s("projects.conversation-tokens-hint"),align:"right",sort:(i)=>i.conversationTokens,render:(i)=>Ye.jsxDEV("span",{className:"num",title:B(i.conversationTokens),children:De(i.conversationTokens)},void 0,!1,void 0,this)},{key:"cacheRate",header:s("projects.cache-rate"),title:s("projects.cache-rate-hint"),align:"right",sort:(i)=>i.cacheRate,render:(i)=>Ye.jsxDEV("span",{className:"num",children:je(i.cacheRate)},void 0,!1,void 0,this)},{key:"cacheSavings",header:s("projects.cache-savings"),title:s("projects.cache-savings-hint"),align:"right",sort:(i)=>i.cacheSavings,render:(i)=>Ye.jsxDEV("span",{className:`num ${i.cacheSavings<0?"tone-bad":"muted"}`,children:je(i.cacheSavings)},void 0,!1,void 0,this)},{key:"errorRate",header:s("projects.errors"),align:"right",sort:(i)=>i.errorRate,render:(i)=>Ye.jsxDEV("span",{title:s("projects.failed-n",{count:B(i.failedRequests)}),children:Ye.jsxDEV(Ut,{tone:i.failedRequests>0?fr(i.errorRate):"neutral",mono:!0,children:ao(i.errorRate)},void 0,!1,void 0,this)},void 0,!1,void 0,this)},{key:"duration",header:s("projects.avg-duration"),align:"right",sort:(i)=>i.avgDuration??-1,render:(i)=>Ye.jsxDEV("span",{className:"num",children:Dt(i.avgDuration)},void 0,!1,void 0,this)},{key:"last",header:s("projects.last-active"),align:"right",sort:(i)=>i.lastTimestamp,render:(i)=>Ye.jsxDEV("span",{className:"dim",children:fa(i.lastTimestamp)},void 0,!1,void 0,this)}]}var ho=Q(dt(),1);var ae=Q(ce(),1),BD=[{value:"tokens",label:s("common.tokens")},{value:"cost",label:s("common.cost"),title:s("providers.cost-title")},{value:"requests",label:s("common.requests")}],AT=6,MT=[{key:"input",label:s("ui.uncached-input"),color:"#5b8cff"},{key:"cacheRead",label:s("common.cache-read"),color:"var(--chart-primary)"},{key:"cacheWrite",label:s("common.cache-write"),color:"#f5b54a"},{key:"output",label:s("common.output"),color:"var(--chart-secondary)"}];function DT({active:l,range:c}){let i=Gt(["providers",c],({signal:P})=>C1(c,P),{enabled:l}),[d,p]=ho.useState("tokens"),[b,g]=un(),v=sa(c),L=Gt(["provider-windows",c],({signal:P})=>Xv(c,null,P),{enabled:l}),[x,h]=ho.useState(null),C=zD(L.data?.windowInsights??[],x),w=C?.provider??null,T=Gt(["provider-windows",c,w],({signal:P})=>Xv(c,w,P),{enabled:l&&w!==null}),k=ho.useMemo(()=>{let P=i.data?.providers??[],X=i.data?.series??[],F=Ud(P.map((Y)=>({key:Y.provider,weight:Y.totalTokens}))),fe=mo(c,X.map((Y)=>Y.timestamp)),Z={requests:0,failed:0,tokens:0,cost:0,unpriced:0};for(let Y of P)Z.requests+=Y.totalRequests,Z.failed+=Y.failedRequests,Z.tokens+=Y.totalTokens,Z.cost+=Y.totalCost,Z.unpriced+=Y.unpricedRequests;let te=(Y)=>vr(X,{buckets:fe,key:(J)=>J.provider,value:Y,limit:AT,colors:F}).map((J)=>({...J,values:J.values.map((V)=>V||null)}));return{colors:F,buckets:fe,totals:Z,burn:{tokens:te((Y)=>Y.totalTokens),cost:te((Y)=>Y.cost),requests:te((Y)=>Y.requests)},spark:{tokens:La(X,fe,(Y)=>Y.totalTokens),cost:La(X,fe,(Y)=>Y.cost),requests:La(X,fe,(Y)=>Y.requests)},topProvider:P.reduce((Y,J)=>Y===null||J.totalTokens>Y.totalTokens?J:Y,null)}},[i.data,c]),M=k.burn[d],D=d==="cost"?(P)=>da(P):De,U=k.totals;return ae.jsxDEV("div",{className:"page",children:[ae.jsxDEV(ua,{title:s("common.providers"),description:s("providers.description",{window:s(v.windowKey)})},void 0,!1,void 0,this),ae.jsxDEV(_e,{query:i,skeleton:ae.jsxDEV(Mt,{height:112},void 0,!1,void 0,this),children:({providers:P})=>ae.jsxDEV("div",{"data-stale":i.stale,children:ae.jsxDEV(oa,{min:190,children:[ae.jsxDEV(se,{label:s("common.providers"),value:B(P.length),hint:k.topProvider?s("providers.most-tokens",{provider:k.topProvider.provider}):void 0},void 0,!1,void 0,this),ae.jsxDEV(se,{label:s("common.requests"),value:B(U.requests),hint:s("providers.failed-n",{count:B(U.failed)}),spark:k.spark.requests},void 0,!1,void 0,this),ae.jsxDEV(se,{label:s("common.tokens"),title:s("providers.tokens-title"),value:De(U.tokens),spark:k.spark.tokens},void 0,!1,void 0,this),ae.jsxDEV(se,{label:s("providers.api-equivalent-cost"),title:s("providers.api-cost-title"),value:Ft(U.cost,U.unpriced),hint:U.unpriced>0?s("providers.unpriced-n",{count:B(U.unpriced)}):void 0,spark:k.spark.cost,sparkColor:"var(--chart-secondary)"},void 0,!1,void 0,this),ae.jsxDEV(se,{label:s("common.error-rate"),value:ao(U.requests>0?U.failed/U.requests:0),hint:s("providers.succeeded-n",{count:B(U.requests-U.failed)})},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this),ae.jsxDEV(Be,{index:1,title:s("providers.totals"),description:U.unpriced>0?s(U.unpriced===1?"providers.totals-description-unpriced-one":"providers.totals-description-unpriced-n",{count:B(U.unpriced)}):s("providers.totals-description"),flush:!0,stale:i.stale,children:ae.jsxDEV(_e,{query:i,skeleton:ae.jsxDEV(na,{rows:6},void 0,!1,void 0,this),children:({providers:P})=>ae.jsxDEV(UD,{providers:P,colors:k.colors},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this),ae.jsxDEV("div",{className:"grid grid-main-side",children:[ae.jsxDEV(Be,{index:2,title:s("providers.burn"),description:d==="cost"&&U.unpriced>0?s("providers.burn-estimate-description",{bucket:v.bucketMs<86400000?s("providers.bucket-hour"):s("providers.bucket-day")}):s("providers.burn-description",{bucket:v.bucketMs<3600000?s("providers.bucket-5m"):v.bucketMs<86400000?s("providers.bucket-hour"):s("providers.bucket-day"),count:AT}),actions:ae.jsxDEV(Fa,{size:"sm",options:BD,value:d,onChange:p},void 0,!1,void 0,this),stale:i.stale,children:ae.jsxDEV(_e,{query:i,skeleton:ae.jsxDEV(Mt,{height:260},void 0,!1,void 0,this),children:()=>ae.jsxDEV("div",{className:"stack",style:{gap:12},children:[ae.jsxDEV(Rn,{buckets:k.buckets,bucketMs:v.bucketMs,series:M,hidden:b,height:260,format:D,formatTooltip:d==="cost"?(P)=>da(P):B,emptyLabel:s("providers.no-provider-activity")},void 0,!1,void 0,this),ae.jsxDEV(Va,{items:M.map((P)=>({key:P.key,label:P.label,color:P.color,value:D(P.values.reduce((X,F)=>X+(F??0),0))})),hidden:b,onToggle:g},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this),ae.jsxDEV(_e,{query:i,skeleton:ae.jsxDEV(Mt,{height:320},void 0,!1,void 0,this),children:({hourly:P,providers:X})=>ae.jsxDEV(_D,{hourly:P,providers:X,stale:i.stale},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),ae.jsxDEV(Be,{index:4,title:s("providers.subscription-windows"),description:s("providers.subscription-windows-description"),flush:!0,stale:L.stale,children:ae.jsxDEV(_e,{query:L,skeleton:ae.jsxDEV(na,{rows:6},void 0,!1,void 0,this),children:(P)=>ae.jsxDEV(HD,{insights:P.windowInsights,selected:C,onSelect:h},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this),ae.jsxDEV(XD,{insights:L.data?.windowInsights??null,accounts:T,selected:C,onSelect:h},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function zD(l,c){if(c&&l.some((d)=>d.provider===c.provider&&d.windowKey===c.windowKey))return c;let i=c&&l.find((d)=>d.provider===c.provider)||l.reduce((d,p)=>d===void 0||p.fractionConsumed>d.fractionConsumed?p:d,void 0);return i?{provider:i.provider,windowKey:i.windowKey}:null}function UD({providers:l,colors:c}){let[i,d]=ho.useState(null),p=ho.useMemo(()=>{let b=0,g=0,v=0;for(let L of l)b=Math.max(b,L.totalRequests),g=Math.max(g,L.totalTokens),v+=L.totalTokens;return[{key:"provider",header:s("common.provider"),sort:(L)=>L.provider,render:(L)=>ae.jsxDEV("span",{className:"row",style:{gap:8},children:[ae.jsxDEV(wn,{color:c.get(L.provider)??oo},void 0,!1,void 0,this),ae.jsxDEV("span",{className:"mono cell-primary",children:L.provider},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},{key:"requests",header:s("common.requests"),align:"right",sort:(L)=>L.totalRequests,render:(L)=>ae.jsxDEV(pa,{value:L.totalRequests,max:b,display:B(L.totalRequests)},void 0,!1,void 0,this)},{key:"errors",header:s("common.error-rate"),align:"right",sort:(L)=>L.totalRequests>0?L.failedRequests/L.totalRequests:0,render:(L)=>{let x=L.totalRequests>0?L.failedRequests/L.totalRequests:0;return ae.jsxDEV("span",{className:"row",style:{gap:8,justifyContent:"flex-end"},children:[ae.jsxDEV("span",{className:"num dim",children:B(L.failedRequests)},void 0,!1,void 0,this),ae.jsxDEV(Ut,{tone:L.failedRequests>0?fr(x):"neutral",mono:!0,children:ao(x)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}},{key:"models",header:s("common.models"),title:s("providers.models-title"),align:"right",sort:(L)=>L.models,render:(L)=>ae.jsxDEV("span",{className:"num",children:B(L.models)},void 0,!1,void 0,this)},{key:"tokens",header:s("common.tokens"),title:s("providers.tokens-title"),align:"right",sort:(L)=>L.totalTokens,render:(L)=>ae.jsxDEV(pa,{value:L.totalTokens,max:g,display:De(L.totalTokens),color:c.get(L.provider)},void 0,!1,void 0,this)},{key:"share",header:s("common.share"),title:s("providers.share-title"),align:"right",sort:(L)=>L.totalTokens,render:(L)=>ae.jsxDEV("span",{className:"num muted",children:je(v>0?L.totalTokens/v:0)},void 0,!1,void 0,this)},{key:"cost",header:s("common.cost"),title:s("providers.cost-title"),align:"right",sort:(L)=>L.totalCost,render:(L)=>ae.jsxDEV("span",{className:"num",title:L.unpricedRequests>0?s("providers.unpriced-n",{count:B(L.unpricedRequests)}):void 0,children:Ft(L.totalCost,L.unpricedRequests)},void 0,!1,void 0,this)},{key:"tps",header:s("common.tokens-per-second"),title:s("providers.tps-title"),align:"right",sort:(L)=>L.avgTokensPerSecond??-1,render:(L)=>ae.jsxDEV("span",{className:"num",children:mr(L.avgTokensPerSecond)},void 0,!1,void 0,this)},{key:"premium",header:s("common.premium"),title:s("providers.premium-title"),align:"right",sort:(L)=>L.totalPremiumRequests,render:(L)=>ae.jsxDEV("span",{className:L.totalPremiumRequests>0?"num":"num dim",children:B(Math.round(L.totalPremiumRequests*100)/100)},void 0,!1,void 0,this)}]},[l,c]);return ae.jsxDEV(Ht,{rows:l,rowKey:(b)=>b.provider,columns:p,initialSort:{key:"tokens",dir:"desc"},limit:12,selectedKey:i,onRowClick:(b)=>d((g)=>g===b.provider?null:b.provider),expanded:(b)=>b.provider===i?ae.jsxDEV(PD,{provider:b},void 0,!1,void 0,this):null,empty:ae.jsxDEV(gt,{title:s("providers.no-requests-in-range")},void 0,!1,void 0,this)},void 0,!1,void 0,this)}function PD({provider:l}){let c={input:l.totalInputTokens,cacheRead:l.totalCacheReadTokens,cacheWrite:l.totalCacheWriteTokens,output:l.totalOutputTokens};return ae.jsxDEV("div",{className:"providers-mix",children:[ae.jsxDEV(Wl,{segments:MT.map((i)=>({key:i.key,label:i.label,value:c[i.key],color:i.color}))},void 0,!1,void 0,this),ae.jsxDEV(Va,{items:MT.map((i)=>({key:i.key,label:i.label,color:i.color,value:`${De(c[i.key])} · ${l.totalTokens>0?je(c[i.key]/l.totalTokens,0):"–"}`}))},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}var jd="";function _D({hourly:l,providers:c,stale:i}){let[d,p]=ho.useState(jd),b=d===jd||c.some((L)=>L.provider===d)?d:jd,g=ho.useMemo(()=>{let L=Array.from({length:24},()=>0),x=Array.from({length:24},()=>0),h=Array.from({length:24},()=>0);for(let k of l){if(b!==jd&&k.provider!==b)continue;L[k.hour]+=k.totalTokens,x[k.hour]+=k.outputTokens,h[k.hour]+=k.requests}let C=0;for(let k=1;k<24;k++)if(L[k]>L[C])C=k;let w=L[C]>0;return{series:[{key:"tokens",label:s("common.tokens"),color:"var(--chart-primary)",values:L.map((k,M)=>w&&M===C?null:k)},{key:"peak",label:s("providers.tokens-peak-hour"),color:"var(--chart-secondary)",values:L.map((k,M)=>w&&M===C?k:null)}],output:x,requests:h,peak:C,hasData:w}},[l,b]),v=(L)=>`${String(L).padStart(2,"0")}:00`;return ae.jsxDEV(Be,{index:3,title:s("providers.peak-burn-hours"),description:g.hasData?s("providers.peak-hours-description",{hour:v(g.peak)}):s("providers.hours-description"),actions:ae.jsxDEV("select",{className:"input providers-select",value:b,onChange:(L)=>p(L.target.value),"aria-label":s("common.provider"),children:[ae.jsxDEV("option",{value:jd,children:s("providers.all-providers")},void 0,!1,void 0,this),c.map((L)=>ae.jsxDEV("option",{value:L.provider,children:L.provider},L.provider,!1,void 0,this))]},void 0,!0,void 0,this),stale:i,children:ae.jsxDEV(In,{slots:24,tickLabel:(L)=>String(L).padStart(2,"0"),tooltipTitle:(L)=>`${v(L)}–${v((L+1)%24)}`,series:g.series,height:260,showTotal:!1,formatTooltip:B,emptyLabel:s("providers.no-activity-in-range"),tooltipExtra:(L)=>ae.jsxDEV(ae.Fragment,{children:[ae.jsxDEV("div",{className:"chart-tooltip-row",children:[ae.jsxDEV("span",{className:"chart-tooltip-label",children:s("common.output")},void 0,!1,void 0,this),ae.jsxDEV("span",{className:"chart-tooltip-value",children:B(g.output[L])},void 0,!1,void 0,this)]},void 0,!0,void 0,this),ae.jsxDEV("div",{className:"chart-tooltip-row",children:[ae.jsxDEV("span",{className:"chart-tooltip-label",children:s("common.requests")},void 0,!1,void 0,this),ae.jsxDEV("span",{className:"chart-tooltip-value",children:B(g.requests[L])},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,!1,void 0,this)}function HD({insights:l,selected:c,onSelect:i}){return ae.jsxDEV(Ht,{rows:l,rowKey:(d)=>`${d.provider}::${d.windowKey}`,columns:FD,initialSort:{key:"consumed",dir:"desc"},limit:12,selectedKey:c?`${c.provider}::${c.windowKey}`:null,onRowClick:(d)=>i({provider:d.provider,windowKey:d.windowKey}),empty:ae.jsxDEV(gt,{title:s("providers.no-snapshots-in-range"),hint:s("providers.snapshot-hint")},void 0,!1,void 0,this)},void 0,!1,void 0,this)}var FD=[{key:"window",header:s("providers.window"),sort:(l)=>`${l.provider} ${l.windowKey}`,render:(l)=>ae.jsxDEV(Ga,{primary:l.windowKey,secondary:ae.jsxDEV("span",{className:"mono",children:l.provider},void 0,!1,void 0,this)},void 0,!1,void 0,this)},{key:"accounts",header:s("providers.accounts"),title:s("providers.accounts-title"),align:"right",sort:(l)=>l.accounts,render:(l)=>ae.jsxDEV("span",{className:"num",children:B(l.accounts)},void 0,!1,void 0,this)},{key:"cycles",header:s("providers.resets"),title:s("providers.resets-title"),align:"right",sort:(l)=>l.cycles,render:(l)=>ae.jsxDEV("span",{className:"num muted",children:B(l.cycles)},void 0,!1,void 0,this)},{key:"consumed",header:s("providers.windows-burned"),title:s("providers.windows-burned-title"),align:"right",sort:(l)=>l.fractionConsumed,render:(l)=>ae.jsxDEV("span",{className:"num",children:l.fractionConsumed.toFixed(2)},void 0,!1,void 0,this)},{key:"capacity",header:s("providers.tokens-per-window"),title:s("providers.tokens-per-window-title"),align:"right",sort:(l)=>l.estTokensPerWindow??-1,render:(l)=>l.estTokensPerWindow!==null?ae.jsxDEV("span",{className:"num",children:De(l.estTokensPerWindow)},void 0,!1,void 0,this):ae.jsxDEV("span",{className:"dim",title:s("providers.too-little-consumed"),children:"–"},void 0,!1,void 0,this)},{key:"peak",header:s("providers.peak-utilization"),title:s("providers.peak-utilization-title"),align:"right",sort:(l)=>l.peakConcurrentFraction,render:(l)=>{let c=l.accounts>0?l.peakConcurrentFraction/l.accounts:0;return ae.jsxDEV(pa,{value:l.peakConcurrentFraction,max:l.accounts,display:je(l.peakConcurrentFraction,0),color:c>=0.9?"var(--warn)":void 0},void 0,!1,void 0,this)}},{key:"ideal",header:s("providers.accounts-needed"),title:s("providers.accounts-needed-title"),align:"right",sort:(l)=>l.idealAccounts-l.accounts,render:(l)=>l.idealAccounts>l.accounts?ae.jsxDEV(Ut,{tone:"warn",mono:!0,children:s("providers.ideal-accounts",{ideal:B(l.idealAccounts),have:B(l.accounts)})},void 0,!1,void 0,this):ae.jsxDEV("span",{className:"num",children:B(l.idealAccounts)},void 0,!1,void 0,this)},{key:"exhausted",header:s("providers.exhaustions"),title:s("providers.exhaustions-title"),align:"right",sort:(l)=>l.exhaustedEvents,render:(l)=>l.exhaustedEvents>0?ae.jsxDEV(Ut,{tone:"warn",mono:!0,children:s("providers.exhausted-n",{count:B(l.exhaustedEvents)})},void 0,!1,void 0,this):ae.jsxDEV("span",{className:"num dim",children:"0"},void 0,!1,void 0,this)}],eh=60000,Wr=60*eh,th=24*Wr,GD=[5*eh,15*eh,30*eh,Wr,2*Wr,3*Wr,6*Wr,12*Wr,th],VD=240,jD=6*Wr;function XD({insights:l,accounts:c,selected:i,onSelect:d}){let[p,b]=un(),g=ho.useMemo(()=>[...new Set((l??[]).map((k)=>k.provider))],[l]),v=ho.useMemo(()=>(l??[]).filter((k)=>k.provider===i?.provider).map((k)=>({key:k.windowKey,label:k.windowKey})),[l,i?.provider]),L=ho.useMemo(()=>(c.data?.usageSeries??[]).filter((k)=>k.provider===i?.provider),[c.data,i?.provider]),x=L.length===0&&(c.loading||c.stale),h=ho.useMemo(()=>{let k=new Map;for(let D of L){let U=k.get(D.accountLabel)??[];if(!U.includes(D.accountKey))U.push(D.accountKey);k.set(D.accountLabel,U)}let M=new Map;for(let[D,U]of k)U.sort(),U.forEach((P,X)=>M.set(P,U.length>1?`${D} #${X+1}`:D));return M},[L]),C=ho.useMemo(()=>YD(L.filter((k)=>k.windowKey===i?.windowKey),h),[L,h,i?.windowKey]),w=ho.useMemo(()=>{let k=new Map(C.series.map((M)=>[M.key,M.color]));return L.map((M)=>{let D=null,U=null;for(let F of M.points){if(F.usedFraction===null)continue;if(U=Math.max(U??0,F.usedFraction),!D||F.timestamp>=D.timestamp)D={fraction:F.usedFraction,exhausted:F.exhausted,timestamp:F.timestamp}}let P=M.windowKey===i?.windowKey?k.get(M.accountKey)??null:null,X=h.get(M.accountKey)??M.accountLabel;return{series:M,name:X,color:P,latest:D,peak:U,samples:M.points.length}}).sort((M,D)=>Number(D.color!==null)-Number(M.color!==null)||M.series.windowKey.localeCompare(D.series.windowKey)||(D.latest?.fraction??-1)-(M.latest?.fraction??-1))},[L,h,C.series,i?.windowKey]),T=v.find((k)=>k.key===i?.windowKey)?.label;return ae.jsxDEV(Be,{index:5,title:s("providers.utilization"),description:C.buckets.length>0?s("providers.utilization-description",{window:T??s("providers.window"),from:Wv(C.first),to:Wv(C.last)}):s("providers.utilization-description-plain"),actions:i&&ae.jsxDEV("div",{className:"row",style:{gap:6},children:[ae.jsxDEV("select",{className:"input providers-select",value:i.provider,onChange:(k)=>{let M=k.target.value,D=l?.find((U)=>U.provider===M);if(D)d({provider:M,windowKey:D.windowKey})},"aria-label":s("common.provider"),children:g.map((k)=>ae.jsxDEV("option",{value:k,children:k},k,!1,void 0,this))},void 0,!1,void 0,this),ae.jsxDEV("select",{className:"input providers-select",value:i.windowKey,onChange:(k)=>d({provider:i.provider,windowKey:k.target.value}),"aria-label":s("providers.window"),children:v.map((k)=>ae.jsxDEV("option",{value:k.key,children:k.label},k.key,!1,void 0,this))},void 0,!1,void 0,this)]},void 0,!0,void 0,this),stale:c.stale,children:l===null?ae.jsxDEV(Mt,{height:260},void 0,!1,void 0,this):i===null?ae.jsxDEV(gt,{title:s("providers.no-snapshots-in-range"),hint:s("providers.snapshot-hint")},void 0,!1,void 0,this):ae.jsxDEV(_e,{query:c,skeleton:ae.jsxDEV(Mt,{height:260},void 0,!1,void 0,this),children:()=>x?ae.jsxDEV(Mt,{height:260},void 0,!1,void 0,this):ae.jsxDEV("div",{className:"stack",style:{gap:16},children:[ae.jsxDEV("div",{className:"stack",style:{gap:12},children:[ae.jsxDEV(In,{slots:C.buckets.length,tickLabel:(k)=>Nm(C.buckets[k],C.last-C.first>th?th:C.bucketMs),tooltipTitle:(k)=>qm(C.buckets[k],Wr),series:C.series,hidden:p,kind:"line",stacked:!1,height:260,yMax:Math.max(1,C.max),format:(k)=>je(k,0),formatTooltip:(k)=>je(k,1),references:[{value:1,label:"100%"}],emptyLabel:s("providers.no-utilization-readings"),tooltipExtra:(k)=>{let M=C.exhausted[k];return M.length>0?ae.jsxDEV("div",{className:"chart-tooltip-row",children:[ae.jsxDEV("span",{className:"chart-tooltip-label tone-bad",children:s("providers.exhausted")},void 0,!1,void 0,this),ae.jsxDEV("span",{className:"chart-tooltip-value",children:M.join(", ")},void 0,!1,void 0,this)]},void 0,!0,void 0,this):null}},void 0,!1,void 0,this),C.series.length>1&&ae.jsxDEV(Va,{items:C.series.map((k)=>({key:k.key,label:k.label,color:k.color})),hidden:p,onToggle:b},void 0,!1,void 0,this)]},void 0,!0,void 0,this),ae.jsxDEV("div",{className:"providers-accounts",children:ae.jsxDEV(Ht,{rows:w,rowKey:(k)=>`${k.series.windowKey}::${k.series.accountKey}`,columns:QD,limit:16,onRowClick:(k)=>d({provider:k.series.provider,windowKey:k.series.windowKey}),dense:!0},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this)}function YD(l,c){let{POSITIVE_INFINITY:i,NEGATIVE_INFINITY:d}=Number;for(let T of l)for(let k of T.points){if(k.timestamp<i)i=k.timestamp;if(k.timestamp>d)d=k.timestamp}if(!(d>=i))return{buckets:[],bucketMs:Wr,first:0,last:0,max:0,series:[],exhausted:[]};let p=d-i,b=GD.find((T)=>p/T<VD)??th,g=mo("all",[i],b,d),v=(T)=>Math.floor((T-g[0])/b),L=g.map(()=>[]),x=0,h=(T)=>c.get(T.accountKey)??T.accountLabel,w=[...l].sort((T,k)=>h(T).localeCompare(h(k))).map((T,k)=>{let M=g.map(()=>null),D=g.map(()=>0);for(let X of T.points){let F=v(X.timestamp);if(F<0||F>=g.length)continue;if(X.exhausted&&!L[F].includes(h(T)))L[F].push(h(T));if(X.usedFraction===null||X.timestamp<D[F])continue;M[F]=X.usedFraction,D[F]=X.timestamp,x=Math.max(x,X.usedFraction)}let U=null,P=0;for(let X=0;X<g.length;X++)if(M[X]!==null)U=M[X],P=D[X];else if(U!==null&&g[X]-P<=jD)M[X]=U;return{key:T.accountKey,label:h(T),color:Ma[k%Ma.length],values:M}});return{buckets:g,bucketMs:b,first:i,last:d,max:x,series:w,exhausted:L}}function $D(l){if(!l)return ae.jsxDEV("span",{className:"dim",children:s("providers.no-reading")},void 0,!1,void 0,this);if(l.exhausted)return ae.jsxDEV(Ut,{tone:"bad",children:s("providers.exhausted")},void 0,!1,void 0,this);if(l.fraction>=0.8)return ae.jsxDEV(Ut,{tone:"warn",children:s("providers.high")},void 0,!1,void 0,this);return ae.jsxDEV(Ut,{tone:"ok",children:s("ui.status-ok")},void 0,!1,void 0,this)}var QD=[{key:"account",header:s("providers.account"),sort:(l)=>l.name,render:(l)=>ae.jsxDEV("span",{className:"row",style:{gap:8},children:[ae.jsxDEV("span",{className:"providers-swatch-slot",children:l.color&&ae.jsxDEV(wn,{color:l.color},void 0,!1,void 0,this)},void 0,!1,void 0,this),ae.jsxDEV("span",{className:"truncate providers-account",title:l.series.accountKey,children:l.name},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},{key:"window",header:s("providers.window"),sort:(l)=>l.series.windowKey,render:(l)=>ae.jsxDEV("span",{className:l.color?void 0:"muted",children:l.series.windowKey},void 0,!1,void 0,this)},{key:"latest",header:s("providers.latest-used"),align:"right",sort:(l)=>l.latest?.fraction??-1,render:(l)=>l.latest?ae.jsxDEV(pa,{value:l.latest.fraction,max:1,display:je(l.latest.fraction,0),color:l.latest.exhausted?"var(--bad)":l.latest.fraction>=0.8?"var(--warn)":"var(--ok)"},void 0,!1,void 0,this):ae.jsxDEV("span",{className:"dim",children:"–"},void 0,!1,void 0,this)},{key:"status",header:s("providers.status"),sort:(l)=>l.latest?.exhausted?2:(l.latest?.fraction??0)>=0.8?1:0,render:(l)=>$D(l.latest)},{key:"peak",header:s("providers.peak-in-range"),align:"right",sort:(l)=>l.peak??-1,render:(l)=>ae.jsxDEV("span",{className:"num",children:l.peak===null?"–":je(l.peak,0)},void 0,!1,void 0,this)},{key:"samples",header:s("providers.snapshots"),align:"right",sort:(l)=>l.samples,render:(l)=>ae.jsxDEV("span",{className:"num muted",children:B(l.samples)},void 0,!1,void 0,this)},{key:"recorded",header:s("providers.recorded"),align:"right",sort:(l)=>l.latest?.timestamp??0,render:(l)=>ae.jsxDEV("span",{className:"muted",children:l.latest?fa(l.latest.timestamp):"–"},void 0,!1,void 0,this)}];var lu=Q(dt(),1);var rt=Q(ce(),1),ah={ok:{label:s("ui.status-ok"),tone:"ok"},aborted:{label:s("common.aborted"),tone:"warn"},failed:{label:s("common.failed"),tone:"bad"}};function ET({id:l,onClose:c}){let i=Gt(["request",l],({signal:b})=>m1(l??0,b),{enabled:l!==null}),d=i.stale?null:i.data,p=d?ah[Kr(d)]:null;return rt.jsxDEV(_m,{open:l!==null,onClose:c,width:620,title:d?rt.jsxDEV("span",{className:"mono",children:d.model},void 0,!1,void 0,this):s("common.request"),subtitle:d?rt.jsxDEV(rt.Fragment,{children:[d.provider," ·"," ",rt.jsxDEV("span",{title:sn(d.timestamp),children:fa(d.timestamp)},void 0,!1,void 0,this)]},void 0,!0,void 0,this):l!==null?rt.jsxDEV("span",{className:"mono",children:["#",l]},void 0,!0,void 0,this):void 0,actions:d&&p?rt.jsxDEV("div",{className:"row",style:{gap:6},children:[rt.jsxDEV("a",{className:"btn","data-size":"sm","data-variant":"ghost",href:Qm({...zd(window.location.hash),section:"traces",session:d.sessionFile}),onClick:c,title:s("ui.open-trace"),children:[rt.jsxDEV(Ld,{size:13},void 0,!1,void 0,this)," Trace"]},void 0,!0,void 0,this),rt.jsxDEV(Ut,{tone:p.tone,children:p.label},void 0,!1,void 0,this)]},void 0,!0,void 0,this):void 0,children:d?rt.jsxDEV(KD,{details:d,aborted:Kr(d)==="aborted"},void 0,!1,void 0,this):i.error?rt.jsxDEV(Si,{error:i.error,onRetry:i.refetch},void 0,!1,void 0,this):rt.jsxDEV("div",{className:"stack",style:{gap:12},children:[rt.jsxDEV(Ba,{height:56},void 0,!1,void 0,this),rt.jsxDEV(Ba,{height:120},void 0,!1,void 0,this),rt.jsxDEV(Ba,{height:120},void 0,!1,void 0,this),rt.jsxDEV(Ba,{height:220},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)}function KD({details:l,aborted:c}){let{usage:i}=l,d=l.duration!==null&&l.duration>0&&i.output>0?i.output*1000/l.duration:null,{messages:p,output:b,...g}=l;return rt.jsxDEV(rt.Fragment,{children:[l.errorMessage&&rt.jsxDEV("section",{className:"request-drawer-error","data-tone":c?"warn":"bad",role:"note",children:[rt.jsxDEV("div",{className:"request-drawer-error-label",children:c?s("common.aborted"):s("common.error")},void 0,!1,void 0,this),rt.jsxDEV("pre",{className:"request-drawer-error-text",children:l.errorMessage},void 0,!1,void 0,this)]},void 0,!0,void 0,this),rt.jsxDEV("section",{children:[rt.jsxDEV("div",{className:"section-label",children:s("ui.section-timing")},void 0,!1,void 0,this),rt.jsxDEV(Go,{items:[{key:"at",label:s("common.started"),value:sn(l.timestamp)},{key:"duration",label:s("common.duration"),value:Dt(l.duration)},{key:"ttft",label:s("ui.time-to-first-token"),value:Dt(l.ttft)},{key:"tps",label:s("common.output-tokens-per-second"),value:mr(d)}]},void 0,!1,void 0,this)]},void 0,!0,void 0,this),rt.jsxDEV("section",{children:[rt.jsxDEV("div",{className:"section-label",children:s("common.tokens")},void 0,!1,void 0,this),rt.jsxDEV(Go,{items:[{key:"input",label:s("ui.uncached-input"),value:B(i.input)},{key:"cacheRead",label:s("common.cache-read"),value:B(i.cacheRead)},{key:"cacheWrite",label:s("common.cache-write"),value:B(i.cacheWrite)},{key:"output",label:s("common.output"),value:B(i.output)},{key:"total",label:s("common.total"),value:B(i.totalTokens)},{key:"premium",label:s("common.premium-requests"),value:B(Math.round((i.premiumRequests??0)*100)/100)}]},void 0,!1,void 0,this)]},void 0,!0,void 0,this),rt.jsxDEV("section",{children:[rt.jsxDEV("div",{className:"section-label",children:s("ui.section-cost")},void 0,!1,void 0,this),rt.jsxDEV(Go,{items:[{key:"total",label:"Total",value:Zl(l,4)},{key:"input",label:s("common.input"),value:da(i.cost.input,4)},{key:"cacheRead",label:"Cache read",value:da(i.cost.cacheRead,4)},{key:"cacheWrite",label:"Cache write",value:da(i.cost.cacheWrite,4)},{key:"output",label:"Output",value:da(i.cost.output,4)}]},void 0,!1,void 0,this)]},void 0,!0,void 0,this),rt.jsxDEV("section",{children:[rt.jsxDEV("div",{className:"section-label",children:s("ui.section-identity")},void 0,!1,void 0,this),rt.jsxDEV(Go,{items:[{key:"id",label:s("common.request-id"),value:l.id??"–"},{key:"entry",label:s("common.entry-id"),value:l.entryId},{key:"stop",label:s("ui.stop-reason"),value:l.stopReason},{key:"api",label:"API",value:l.api},{key:"project",label:s("common.project"),value:rt.jsxDEV("span",{title:l.folder,children:hr(l.folder)},void 0,!1,void 0,this)}]},void 0,!1,void 0,this),rt.jsxDEV("div",{className:"request-drawer-file",children:[rt.jsxDEV("span",{className:"kv-key",children:s("ui.session-file")},void 0,!1,void 0,this),rt.jsxDEV("span",{className:"kv-value",children:l.sessionFile},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),b!=null&&rt.jsxDEV(gi,{data:b,title:s("common.output-message")},void 0,!1,void 0,this),rt.jsxDEV(gi,{data:p,title:s("common.session-entry"),initialCollapsed:!0},void 0,!1,void 0,this),rt.jsxDEV(gi,{data:g,title:s("ui.stats-row"),initialCollapsed:!0},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}var ot=Q(ce(),1),fb=[500,2000,1e4];function OT({active:l,range:c,onRequestClick:i}){let[d,p]=lu.useState(0),b=fb[d],g=Gt(["requests-log",b],({signal:F})=>Bm(b,F),{enabled:l}),[v,L]=lu.useState(""),[x,h]=lu.useState("all"),C=sa(c),w=lu.useMemo(()=>{let F=g.data??[],fe=C.spanMs===null?null:Date.now()-C.spanMs,Z=fe===null?F:F.filter((J)=>J.timestamp>=fe),te=!g.stale&&(F.length<b||fe!==null&&Z.length<F.length),Y={all:Z.length,ok:0,aborted:0,failed:0};for(let J of Z)Y[Kr(J)]++;return{loaded:F.length,inRange:Z,complete:te,counts:Y,summary:dT(Z)}},[g.data,g.stale,b,C.spanMs]),T=lu.useMemo(()=>{let F=v.trim().toLowerCase();return w.inRange.filter((fe)=>(x==="all"||Kr(fe)===x)&&(F===""||fe.model.toLowerCase().includes(F)||fe.provider.toLowerCase().includes(F)||fe.folder.toLowerCase().includes(F)))},[w.inRange,v,x]),{summary:k,counts:M,complete:D}=w,U=d+1<fb.length?fb[d+1]:null,P=U!==null?ot.jsxDEV("button",{type:"button",className:"btn","data-size":"sm",disabled:g.refreshing,onClick:()=>p(d+1),children:g.refreshing&&g.stale?s("requests.loading"):s("requests.load-latest",{count:B(U)})},void 0,!1,void 0,this):void 0,X=["all","ok","aborted","failed"].map((F)=>({value:F,label:ot.jsxDEV(ot.Fragment,{children:[F==="all"?s("requests.status-all"):ah[F].label," ",ot.jsxDEV("span",{className:"dim num",children:De(M[F])},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}));return ot.jsxDEV("div",{className:"page",children:[ot.jsxDEV(ua,{title:s("common.requests"),description:s("requests.description",{window:s(C.windowKey)})},void 0,!1,void 0,this),ot.jsxDEV(_e,{query:g,skeleton:ot.jsxDEV(Ba,{height:96,style:{borderRadius:12}},void 0,!1,void 0,this),children:()=>ot.jsxDEV("div",{"data-stale":g.stale,children:ot.jsxDEV(oa,{min:160,children:[ot.jsxDEV(se,{label:s("common.requests"),value:B(k.requests),hint:k.oldest===null?s("requests.none-in-window",{window:s(C.windowKey)}):s("requests.since",{time:fa(k.oldest)})},void 0,!1,void 0,this),ot.jsxDEV(se,{label:s("common.failed"),value:B(k.failed),hint:s("requests.failed-hint",{rate:k.requests>0?ao(k.failed/k.requests):"–",count:B(k.aborted)})},void 0,!1,void 0,this),ot.jsxDEV(se,{label:s("common.tokens"),title:s("requests.tokens-hint"),value:De(k.tokens)},void 0,!1,void 0,this),ot.jsxDEV(se,{label:s("requests.api-equivalent-cost"),title:s("requests.cost-hint"),value:Ft(k.cost,k.unpriced),hint:k.unpriced>0?s("requests.unpriced-n",{count:B(k.unpriced)}):void 0},void 0,!1,void 0,this),ot.jsxDEV(se,{label:s("requests.median-duration"),value:Dt(k.medianDuration),hint:s("requests.p95",{value:Dt(k.p95Duration)})},void 0,!1,void 0,this),ot.jsxDEV(se,{label:s("requests.median-ttft"),title:s("requests.ttft-hint"),value:Dt(k.medianTtft)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this),ot.jsxDEV(Be,{index:1,title:s("requests.log-title"),description:g.data===null?s("requests.log-loading"):D?s("requests.log-count-in-window",{shown:B(T.length),total:B(k.requests),window:s(C.windowKey)}):s("requests.log-count-latest",{shown:B(T.length),total:B(k.requests)}),actions:ot.jsxDEV(ot.Fragment,{children:[ot.jsxDEV(pr,{value:v,onChange:L,placeholder:s("requests.search-placeholder")},void 0,!1,void 0,this),ot.jsxDEV(Fa,{size:"sm","aria-label":s("requests.status"),options:X,value:x,onChange:h},void 0,!1,void 0,this)]},void 0,!0,void 0,this),flush:!0,stale:g.stale,footer:g.data!==null&&!D?ot.jsxDEV(ot.Fragment,{children:[ot.jsxDEV("span",{children:s("requests.footer",{count:B(w.loaded),time:k.oldest===null?"–":sn(k.oldest),window:s(C.windowKey)})},void 0,!1,void 0,this),P]},void 0,!0,void 0,this):void 0,children:ot.jsxDEV(_e,{query:g,skeleton:ot.jsxDEV(na,{rows:12},void 0,!1,void 0,this),children:()=>ot.jsxDEV(Ht,{rows:T,rowKey:(F)=>F.id??`${F.sessionFile}:${F.entryId}`,onRowClick:(F)=>F.id!==void 0&&i(F.id),columns:ZD,initialSort:{key:"time",dir:"desc"},limit:100,dense:!0,empty:ot.jsxDEV(gt,{title:k.requests===0?s("requests.empty-in-window",{window:s(C.windowKey)}):s("requests.empty-no-match"),hint:k.requests===0?void 0:s("requests.empty-no-match-hint")},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}var ZD=[{key:"model",header:s("common.model"),sort:(l)=>l.model,render:(l)=>ot.jsxDEV(Ga,{primary:ot.jsxDEV("span",{className:"mono",children:l.model},void 0,!1,void 0,this),secondary:l.provider},void 0,!1,void 0,this)},{key:"time",header:s("requests.when"),sort:(l)=>l.timestamp,render:(l)=>ot.jsxDEV("span",{className:"muted",title:sn(l.timestamp),children:fa(l.timestamp)},void 0,!1,void 0,this)},{key:"project",header:s("common.project"),sort:(l)=>l.folder,render:(l)=>ot.jsxDEV("span",{className:"mono muted truncate",title:l.folder,style:{display:"block",maxWidth:180},children:hr(l.folder)},void 0,!1,void 0,this)},{key:"input",header:s("common.input"),title:s("requests.uncached-input"),align:"right",sort:(l)=>l.usage.input,render:(l)=>ot.jsxDEV("span",{className:"num",children:De(l.usage.input)},void 0,!1,void 0,this)},{key:"cache",header:s("common.cache-read"),title:s("requests.cache-read-title"),align:"right",sort:(l)=>l.usage.cacheRead,render:(l)=>ot.jsxDEV("span",{className:"num",title:s("requests.cache-write",{count:B(l.usage.cacheWrite)}),children:De(l.usage.cacheRead)},void 0,!1,void 0,this)},{key:"output",header:s("common.output"),align:"right",sort:(l)=>l.usage.output,render:(l)=>ot.jsxDEV("span",{className:"num",children:De(l.usage.output)},void 0,!1,void 0,this)},{key:"cost",header:s("common.cost"),title:s("requests.cost-estimate"),align:"right",sort:(l)=>l.usage.cost.total,render:(l)=>ot.jsxDEV("span",{className:"num",children:Zl(l,4)},void 0,!1,void 0,this)},{key:"duration",header:s("common.duration"),align:"right",sort:(l)=>l.duration??-1,render:(l)=>ot.jsxDEV("span",{className:"num",children:Dt(l.duration)},void 0,!1,void 0,this)},{key:"ttft",header:s("requests.ttft"),title:s("requests.ttft-hint"),align:"right",sort:(l)=>l.ttft??-1,render:(l)=>ot.jsxDEV("span",{className:"num muted",children:Dt(l.ttft)},void 0,!1,void 0,this)},{key:"status",header:s("requests.status"),sort:(l)=>Kr(l),render:(l)=>{let c=ah[Kr(l)];return ot.jsxDEV("span",{title:l.errorMessage??void 0,children:ot.jsxDEV(Ga,{lead:ot.jsxDEV(dr,{tone:c.tone},void 0,!1,void 0,this),primary:c.label,secondary:ot.jsxDEV("span",{className:"mono",children:l.stopReason},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this)}}];var su=Q(dt(),1);var ye=Q(ce(),1),WD=[{value:"calls",label:s("tools.calls")},{value:"errors",label:s("tools.errors")}],qT=6;function JD(l){if(l<3600000)return s("tools.bucket-5m");if(l<86400000)return s("tools.bucket-hour");return s("tools.bucket-day")}var pb=ye.jsxDEV(gt,{title:s("tools.no-tool-calls")},void 0,!1,void 0,this);function NT({active:l,range:c}){let i=Gt(["tools",c],({signal:k})=>L1(c,k),{enabled:l}),[d,p]=su.useState("calls"),[b,g]=un(),[v,L]=su.useState(null),x=sa(c),h=su.useMemo(()=>eE(i.data,c),[i.data,c]),C=v!==null&&h.toolNames.includes(v)?v:null,w=d==="calls"?h.callSeries:h.errorSeries,T=(k)=>k.byTool.length===0;return ye.jsxDEV("div",{className:"page",children:[ye.jsxDEV(ua,{title:s("tools.title"),description:s("tools.description",{window:s(x.windowKey)})},void 0,!1,void 0,this),ye.jsxDEV(_e,{query:i,skeleton:ye.jsxDEV(Mt,{height:112},void 0,!1,void 0,this),children:()=>{let k=h.totals;return ye.jsxDEV("div",{"data-stale":i.stale,className:"stack",style:{gap:16},children:[ye.jsxDEV(oa,{min:190,children:[ye.jsxDEV(se,{label:s("tools.tool-calls"),value:B(k.calls),hint:s("tools.failed-n",{count:B(k.errors)}),spark:h.totalCalls},void 0,!1,void 0,this),ye.jsxDEV(se,{label:s("tools.distinct-tools"),value:B(k.tools),hint:h.rows[0]?s("tools.most-used",{tool:h.rows[0].tool}):void 0},void 0,!1,void 0,this),ye.jsxDEV(se,{label:s("common.error-rate"),title:s("tools.error-rate-title"),value:ao(k.calls>0?k.errors/k.calls:0),hint:s("tools.succeeded-n",{count:B(k.calls-k.errors)}),spark:h.totalErrors,sparkColor:"var(--bad)"},void 0,!1,void 0,this),ye.jsxDEV(se,{label:s("tools.attributed-tokens"),title:s("tools.attribution-note"),value:De(Math.round(k.tokens)),hint:s("tools.tokens-output",{tokens:De(Math.round(k.output))})},void 0,!1,void 0,this),ye.jsxDEV(se,{label:s("tools.attributed-cost"),title:s("tools.attribution-estimate",{note:s("tools.attribution-note")}),value:Ft(k.cost,k.unpriced),hint:k.unpriced>0?s("tools.unpriced-requests-n",{count:B(Math.round(k.unpriced))}):s("tools.api-equivalent")},void 0,!1,void 0,this)]},void 0,!0,void 0,this),ye.jsxDEV(oa,{min:150,children:[ye.jsxDEV(se,{size:"sm",label:s("tools.result-text"),title:s("tools.result-chars-title"),value:s("tools.chars",{count:De(k.resultChars)})},void 0,!1,void 0,this),ye.jsxDEV(se,{size:"sm",label:s("tools.call-arguments"),title:s("tools.args-chars-title"),value:s("tools.chars",{count:De(k.argsChars)})},void 0,!1,void 0,this),ye.jsxDEV(se,{size:"sm",label:s("tools.avg-result-per-call"),value:s("tools.chars",{count:De(k.calls>0?Math.round(k.resultChars/k.calls):0)})},void 0,!1,void 0,this),ye.jsxDEV(se,{size:"sm",label:s("tools.avg-args-per-call"),value:s("tools.chars",{count:De(k.calls>0?Math.round(k.argsChars/k.calls):0)})},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)}},void 0,!1,void 0,this),ye.jsxDEV(Be,{index:1,title:d==="calls"?s("tools.calls-over-time"):s("tools.errors-over-time"),description:s("tools.chart-description",{bucket:JD(x.bucketMs),count:qT}),actions:ye.jsxDEV(Fa,{size:"sm",options:WD,value:d,onChange:p},void 0,!1,void 0,this),stale:i.stale,children:ye.jsxDEV(_e,{query:i,skeleton:ye.jsxDEV(Mt,{height:260},void 0,!1,void 0,this),isEmpty:T,empty:pb,children:()=>ye.jsxDEV("div",{className:"stack",style:{gap:12},children:[ye.jsxDEV(Rn,{buckets:h.buckets,bucketMs:x.bucketMs,series:w,hidden:b,height:260,formatTooltip:B,emptyLabel:d==="errors"?s("tools.no-tool-errors"):void 0},void 0,!1,void 0,this),ye.jsxDEV(Va,{items:w.map((k)=>({key:k.key,label:k.label,color:k.color,value:De(k.values.reduce((M,D)=>M+(D??0),0))})),hidden:b,onToggle:g},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this),ye.jsxDEV(Be,{index:2,title:s("tools.by-tool"),description:s("tools.by-tool-description",{note:s("tools.attribution-note")}),flush:!0,stale:i.stale,children:ye.jsxDEV(_e,{query:i,skeleton:ye.jsxDEV(na,{rows:8},void 0,!1,void 0,this),isEmpty:T,empty:pb,children:()=>ye.jsxDEV(Ht,{rows:h.rows,rowKey:(k)=>k.tool,columns:h.toolColumns,initialSort:{key:"calls",dir:"desc"},limit:20,selectedKey:C,onRowClick:(k)=>L((M)=>M===k.tool?null:k.tool),dense:!0},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this),ye.jsxDEV(Be,{index:3,title:s("tools.by-tool-and-model"),description:s("tools.by-tool-and-model-description"),flush:!0,stale:i.stale,actions:ye.jsxDEV("div",{className:"row",style:{gap:6},children:[ye.jsxDEV("select",{className:"input tools-filter",value:C??"",onChange:(k)=>L(k.target.value||null),"aria-label":s("tools.filter-by-tool"),children:[ye.jsxDEV("option",{value:"",children:s("tools.all-tools")},void 0,!1,void 0,this),h.toolNames.map((k)=>ye.jsxDEV("option",{value:k,children:k},k,!1,void 0,this))]},void 0,!0,void 0,this),C!==null&&ye.jsxDEV("button",{type:"button",className:"btn","data-size":"sm","data-variant":"ghost","data-icon":"true",title:s("tools.clear-tool-filter"),"aria-label":s("tools.clear-tool-filter"),onClick:()=>L(null),children:ye.jsxDEV(Co,{size:13},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),children:ye.jsxDEV(_e,{query:i,skeleton:ye.jsxDEV(na,{rows:8},void 0,!1,void 0,this),isEmpty:T,empty:pb,children:(k)=>ye.jsxDEV(aE,{rows:k.byToolModel,tool:C,colors:h.colors},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 eE(l,c){let i=l?.byTool??[],d=l?.series??[],p=cT(i).sort((T,k)=>k.calls-T.calls),b=Ud(i.map((T)=>({key:T.tool,weight:T.calls}))),g=mo(c,d.map((T)=>T.timestamp)),v={calls:0,errors:0,tools:i.length,tokens:0,output:0,cost:0,unpriced:0,resultChars:0,argsChars:0};for(let T of i)v.calls+=T.calls,v.errors+=T.errors,v.tokens+=T.totalTokensShare,v.output+=T.outputTokensShare,v.cost+=T.costShare,v.unpriced+=T.unpricedRequestsShare,v.resultChars+=T.resultChars,v.argsChars+=T.argsChars;let[L,x]=[(T)=>T.calls,(T)=>T.errors].map((T)=>vr(d,{buckets:g,key:(k)=>k.tool,value:T,limit:qT,colors:b}).map((k)=>({...k,values:k.values.map((M)=>M||null)}))),h=new Map(vr(d,{buckets:g,key:(T)=>T.tool,value:(T)=>T.calls}).map((T)=>[T.key,T.values])),C=p[0]?.calls??0,w=tE(C,b,h);return{rows:p,colors:b,buckets:g,totals:v,callSeries:L,errorSeries:x,totalCalls:La(d,g,(T)=>T.calls),totalErrors:La(d,g,(T)=>T.errors),toolNames:p.map((T)=>T.tool).sort((T,k)=>T.localeCompare(k)),toolColumns:w}}function tE(l,c,i){return[{key:"tool",header:s("tools.tool"),sort:(d)=>d.tool,render:(d)=>ye.jsxDEV("span",{className:"row",style:{gap:8},children:[ye.jsxDEV(wn,{color:c.get(d.tool)??oo},void 0,!1,void 0,this),ye.jsxDEV("span",{className:"mono truncate tools-name",title:d.tool,children:d.tool},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},{key:"trend",header:s("tools.trend"),title:s("tools.trend-title"),render:(d)=>{let p=i.get(d.tool);return p&&p.length>1?ye.jsxDEV(bi,{values:p,width:80,height:20,color:c.get(d.tool)??oo},void 0,!1,void 0,this):ye.jsxDEV("span",{className:"dim",children:"–"},void 0,!1,void 0,this)}},{key:"calls",header:s("tools.calls"),align:"right",sort:(d)=>d.calls,render:(d)=>ye.jsxDEV(pa,{value:d.calls,max:l,display:ye.jsxDEV("span",{title:s("tools.share-of-calls",{percent:je(d.callFraction)}),children:[B(d.calls),ye.jsxDEV("span",{className:"dim tools-share",children:je(d.callFraction,0)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)},{key:"errorRate",header:s("tools.errors"),title:s("tools.errors-title"),align:"right",sort:(d)=>d.errorRate,render:(d)=>ye.jsxDEV("span",{className:"row",style:{gap:8,justifyContent:"flex-end"},children:[ye.jsxDEV("span",{className:"num dim",children:B(d.errors)},void 0,!1,void 0,this),ye.jsxDEV(Ut,{tone:d.errors>0?fr(d.errorRate):"neutral",mono:!0,children:ao(d.errorRate)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},{key:"args",header:s("tools.args"),title:s("tools.args-chars-title"),align:"right",sort:(d)=>d.argsChars,render:(d)=>ye.jsxDEV("span",{className:"num",children:De(d.argsChars)},void 0,!1,void 0,this)},{key:"result",header:s("tools.result"),title:s("tools.result-chars-title"),align:"right",sort:(d)=>d.resultChars,render:(d)=>ye.jsxDEV("span",{className:"num",children:De(d.resultChars)},void 0,!1,void 0,this)},{key:"avgResult",header:s("tools.result-per-call"),title:s("tools.result-per-call-title"),align:"right",sort:(d)=>d.avgResultChars,render:(d)=>ye.jsxDEV("span",{className:"num muted",children:De(Math.round(d.avgResultChars))},void 0,!1,void 0,this)},{key:"tokens",header:s("tools.attr-tokens"),title:s("tools.attribution-note"),align:"right",sort:(d)=>d.totalTokensShare,render:(d)=>ye.jsxDEV("span",{className:"num",title:s("tools.share-of-tokens",{percent:je(d.tokenFraction)}),children:[De(Math.round(d.totalTokensShare)),ye.jsxDEV("span",{className:"dim tools-share",children:je(d.tokenFraction,0)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},{key:"cost",header:s("tools.attr-cost"),title:s("tools.attribution-estimate",{note:s("tools.attribution-note")}),align:"right",sort:(d)=>d.costShare,render:(d)=>ye.jsxDEV("span",{className:"num",title:s("tools.share-of-cost",{percent:je(d.costFraction)}),children:[Ft(d.costShare,d.unpricedRequestsShare),ye.jsxDEV("span",{className:"dim tools-share",children:je(d.costFraction,0)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},{key:"lastUsed",header:s("tools.last-used"),align:"right",sort:(d)=>d.lastUsed,render:(d)=>ye.jsxDEV("span",{className:"muted",children:fa(d.lastUsed)},void 0,!1,void 0,this)}]}function aE({rows:l,tool:c,colors:i}){let d=su.useMemo(()=>(c===null?l:l.filter((b)=>b.tool===c)).map((b)=>({...b,errorRate:b.calls>0?b.errors/b.calls:0})),[l,c]),p=su.useMemo(()=>{let b=d.reduce((g,v)=>Math.max(g,v.calls),0);return[{key:"tool",header:s("tools.tool"),sort:(g)=>g.tool,render:(g)=>ye.jsxDEV("span",{className:"row",style:{gap:8},children:[ye.jsxDEV(wn,{color:i.get(g.tool)??oo},void 0,!1,void 0,this),ye.jsxDEV("span",{className:"mono truncate tools-name",title:g.tool,children:g.tool},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},{key:"model",header:s("common.model"),sort:(g)=>g.model,render:(g)=>ye.jsxDEV(Ga,{primary:ye.jsxDEV("span",{className:"mono",children:g.model||s("common.unknown")},void 0,!1,void 0,this),secondary:g.provider},void 0,!1,void 0,this)},{key:"calls",header:s("tools.calls"),align:"right",sort:(g)=>g.calls,render:(g)=>ye.jsxDEV(pa,{value:g.calls,max:b,display:B(g.calls)},void 0,!1,void 0,this)},{key:"errorRate",header:s("tools.errors"),align:"right",sort:(g)=>g.errorRate,render:(g)=>ye.jsxDEV("span",{className:"row",style:{gap:8,justifyContent:"flex-end"},children:[ye.jsxDEV("span",{className:"num dim",children:B(g.errors)},void 0,!1,void 0,this),ye.jsxDEV(Ut,{tone:g.errors>0?fr(g.errorRate):"neutral",mono:!0,children:ao(g.errorRate)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},{key:"result",header:s("tools.result"),title:s("tools.result-chars-title"),align:"right",sort:(g)=>g.resultChars,render:(g)=>ye.jsxDEV("span",{className:"num",children:De(g.resultChars)},void 0,!1,void 0,this)},{key:"tokens",header:s("tools.attr-tokens"),title:s("tools.attribution-note"),align:"right",sort:(g)=>g.totalTokensShare,render:(g)=>ye.jsxDEV("span",{className:"num",children:De(Math.round(g.totalTokensShare))},void 0,!1,void 0,this)},{key:"cost",header:s("tools.attr-cost"),title:s("tools.attribution-estimate",{note:s("tools.attribution-note")}),align:"right",sort:(g)=>g.costShare,render:(g)=>ye.jsxDEV("span",{className:"num",children:Ft(g.costShare,g.unpricedRequestsShare)},void 0,!1,void 0,this)},{key:"lastUsed",header:s("tools.last-used"),align:"right",sort:(g)=>g.lastUsed,render:(g)=>ye.jsxDEV("span",{className:"muted",children:fa(g.lastUsed)},void 0,!1,void 0,this)}]},[d,i]);return ye.jsxDEV(Ht,{rows:d,rowKey:(b)=>`${b.tool}::${b.model}::${b.provider}`,columns:p,initialSort:{key:"calls",dir:"desc"},limit:25,dense:!0,empty:ye.jsxDEV(gt,{title:c?s("tools.no-calls-to-tool",{tool:c}):s("tools.no-tool-calls")},void 0,!1,void 0,this)},void 0,!1,void 0,this)}var Ai=Q(dt(),1);var Ot=Q(dt(),1);var br=Q(ce(),1);function BT({toolStats:l,index:c}){if(l.length===0)return null;let i=Math.max(...l.map((p)=>p.totalMs)),d=[{key:"tool",header:s("trace.tool"),render:(p)=>br.jsxDEV("span",{className:"mono",children:p.tool},void 0,!1,void 0,this),sort:(p)=>p.tool},{key:"calls",header:s("trace.calls"),align:"right",render:(p)=>br.jsxDEV("span",{className:"num",children:B(p.calls)},void 0,!1,void 0,this),sort:(p)=>p.calls},{key:"errors",header:s("trace.errors"),align:"right",render:(p)=>p.errors>0?br.jsxDEV(Ut,{tone:"bad",children:s("trace.failed-n",{count:B(p.errors)})},void 0,!1,void 0,this):br.jsxDEV("span",{className:"num dim",children:"0"},void 0,!1,void 0,this),sort:(p)=>p.errors},{key:"total",header:s("common.total"),align:"right",width:200,render:(p)=>br.jsxDEV(pa,{value:p.totalMs,max:i,display:Dt(p.totalMs),color:"var(--warn)"},void 0,!1,void 0,this),sort:(p)=>p.totalMs},{key:"avg",header:s("trace.avg"),align:"right",render:(p)=>br.jsxDEV("span",{className:"num",children:Dt(p.calls>0?p.totalMs/p.calls:0)},void 0,!1,void 0,this),sort:(p)=>p.calls>0?p.totalMs/p.calls:0},{key:"max",header:s("trace.max"),align:"right",render:(p)=>br.jsxDEV("span",{className:"num",children:Dt(p.maxMs)},void 0,!1,void 0,this),sort:(p)=>p.maxMs}];return br.jsxDEV(Be,{title:s("trace.tool-aggregates"),description:s("trace.tool-aggregates-desc",{count:l.length}),flush:!0,index:c,children:br.jsxDEV(Ht,{columns:d,rows:l,rowKey:(p)=>p.tool,dense:!0,limit:12},void 0,!1,void 0,this)},void 0,!1,void 0,this)}var Vo=Q(dt(),1);var xr=Q(dt(),1),oE=xr.createContext(null),uu={turn:"--ink-2",model:"--chart-primary",tool:"--warn",subagent:"--chart-secondary",background:"--ink-4"};function nE(l){let c=getComputedStyle(l),i=(d,p)=>c.getPropertyValue(d).trim()||p;return{category:{turn:i(uu.turn,"#a0a0a8"),model:i(uu.model,"#5ad8e6"),tool:i(uu.tool,"#f5a524"),subagent:i(uu.subagent,"#ed4abf"),background:i(uu.background,"#46464c")},error:i("--bad","#ff6166"),errorSoft:i("--bad-soft","rgba(255, 97, 102, 0.13)"),marker:i("--ink-1","#ededef"),turnBand:i("--hover","rgba(255, 255, 255, 0.035)"),grid:i("--chart-grid","rgba(255, 255, 255, 0.055)"),tick:i("--chart-axis","#5c5c64"),spanText:i("--ink-inverse","#0a0a0b"),selection:i("--focus","#5ad8e6"),brush:i("--selected","rgba(255, 255, 255, 0.075)"),fontSans:i("--font-sans","system-ui, sans-serif"),fontMono:i("--font-mono","ui-monospace, monospace")}}function ki(){let l=xr.useContext(oE)??document.documentElement,[c,i]=xr.useState(0);return xr.useEffect(()=>{let d=new MutationObserver(()=>i((b)=>b+1)),p={attributes:!0,attributeFilter:["data-theme","style","class"]};if(d.observe(document.documentElement,p),l!==document.documentElement)d.observe(l,p);return()=>d.disconnect()},[l]),xr.useMemo(()=>nE(l),[l,c])}var PT=Q(ce(),1),es=44,Xd=["turn","model","tool","subagent"],zT=6,Ti=10;function rE(l,c,i,d){let p=devicePixelRatio,b=Math.floor(i*p),g=Math.floor(es*p),v,L;if(typeof OffscreenCanvas>"u"){let k=document.createElement("canvas");k.width=b,k.height=g,v=k,L=k.getContext("2d")}else{let k=new OffscreenCanvas(b,g);v=k,L=k.getContext("2d")}if(!L)return v;L.setTransform(p,0,0,p,0,0);let[x,h]=c.domain,C=Math.max(h-x,0.000000001),w=Xd.map(()=>new Float32Array(i));for(let k of l)for(let M of k.spans){let D=Xd.indexOf(M.kind);if(D===-1)continue;let U=w[D],P=Math.max(0,Math.floor((c.toU(M.start)-x)/C*i)),X=Math.min(i-1,Math.ceil((c.toU(M.end)-x)/C*i));for(let F=P;F<=X;F++)U[F]=Math.min(1,U[F]+0.34)}let T=es/Xd.length;for(let k=0;k<Xd.length;k++){let M=w[k];L.fillStyle=d.category[Xd[k]];for(let D=0;D<i;D++){if(M[D]<=0)continue;L.globalAlpha=0.25+M[D]*0.75,L.fillRect(D,k*T+1,1,T-2)}L.globalAlpha=1}return v}function UT({tracks:l,scale:c,viewport:i,onViewportChange:d}){let p=ki(),b=Vo.useRef(null),[g,v]=Vo.useState(800),L=Vo.useRef(null);Vo.useEffect(()=>{let P=b.current;if(!P)return;let X=new ResizeObserver((F)=>{v(Math.max(100,Math.floor(F[0].contentRect.width)))});return X.observe(P),()=>X.disconnect()},[]);let[x,h]=c.domain,C=Math.max(h-x,0.000000001),w=Vo.useCallback((P)=>(P-x)/C*g,[x,C,g]),T=Vo.useCallback((P)=>x+P/Math.max(g,1)*C,[x,C,g]),k=Vo.useMemo(()=>rE(l,c,g,p),[l,c,g,p]);Vo.useEffect(()=>{let P=b.current;if(!P)return;let X=P.getContext("2d");if(!X)return;let F=devicePixelRatio;X.setTransform(1,0,0,1,0,0),X.clearRect(0,0,P.width,P.height),X.drawImage(k,0,0),X.setTransform(F,0,0,F,0,0);let fe=w(i.u0),Z=w(i.u1);X.fillStyle=p.brush,X.fillRect(fe,0,Z-fe,es),X.strokeStyle=p.selection,X.strokeRect(fe+0.5,0.5,Z-fe-1,es-1),X.fillStyle=p.selection,X.fillRect(fe,0,2,es),X.fillRect(Z-2,0,2,es)},[k,i,p,w]);let M=(P)=>{let X=P.currentTarget.getBoundingClientRect(),F=P.clientX-X.left,fe=w(i.u0),Z=w(i.u1),te;if(Math.abs(F-fe)<=zT)te="left";else if(Math.abs(F-Z)<=zT)te="right";else if(F>fe&&F<Z)te="move";else{te="create";let Y=T(F);d(Yd({u0:Y,u1:Y+Ti},x,h))}L.current={mode:te,startX:F,startViewport:i},P.currentTarget.setPointerCapture(P.pointerId)},D=(P)=>{let X=L.current;if(!X)return;let F=P.currentTarget.getBoundingClientRect(),fe=P.clientX-F.left,Z=T(fe)-T(X.startX),{u0:te,u1:Y}=X.startViewport;if(X.mode==="move")d(Yd({u0:te+Z,u1:Y+Z},x,h));else if(X.mode==="left")d(Yd({u0:Math.min(te+Z,Y-Ti),u1:Y},x,h));else if(X.mode==="right")d(Yd({u0:te,u1:Math.max(Y+Z,te+Ti)},x,h));else{let J=T(X.startX),V=T(fe);d(Yd({u0:Math.min(J,V),u1:Math.max(J,V,Math.min(J,V)+Ti)},x,h))}},U=()=>{L.current=null};return PT.jsxDEV("canvas",{ref:b,width:Math.floor(g*devicePixelRatio),height:Math.floor(es*devicePixelRatio),className:"traces-minimap",style:{height:es},role:"slider","aria-label":s("trace.minimap-aria"),"aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":Math.round((i.u0-x)/C*100),tabIndex:-1,onPointerDown:M,onPointerMove:D,onPointerUp:U},void 0,!1,void 0,this)}function Yd(l,c,i){let d=Math.max(Ti,l.u1-l.u0);d=Math.min(d,i-c||Ti);let p=l.u0;if(p<c)p=c;if(p+d>i)p=i-d;return{u0:p,u1:p+d}}var Sr=Q(dt(),1);var Ue=Q(ce(),1);function lE(l){let c=[];if(typeof l==="string"){if(l.trim())c.push({kind:"text",text:l});return c}if(!Array.isArray(l))return c;for(let i of l){if(!i||typeof i!=="object"||!("type"in i))continue;if((i.type==="text"||i.type==="thinking")&&"text"in i&&typeof i.text==="string")c.push({kind:String(i.type),text:i.text})}return c}function sE({title:l,subtitle:c,actions:i,onClose:d,children:p}){return Ue.jsxDEV("section",{className:"traces-inline-detail","aria-label":"Selected span details",children:[Ue.jsxDEV("header",{className:"drawer-header",children:[Ue.jsxDEV("div",{className:"drawer-titles",children:[Ue.jsxDEV("h2",{className:"drawer-title",children:l},void 0,!1,void 0,this),c!==void 0&&Ue.jsxDEV("div",{className:"drawer-subtitle",children:c},void 0,!1,void 0,this)]},void 0,!0,void 0,this),i,Ue.jsxDEV("button",{type:"button",className:"btn","data-icon":"true",onClick:d,"aria-label":"Close span details",children:Ue.jsxDEV(Co,{size:16},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),Ue.jsxDEV("div",{className:"drawer-body",children:p},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function _T({span:l,track:c,onClose:i,onOpenChildTrack:d,loadEntry:p=T1,inline:b=!1,onNavigate:g}){let[v,L]=Sr.useState(null),[x,h]=Sr.useState(!1),[C,w]=Sr.useState(null),[T,k]=Sr.useState(!1),M=Sr.useRef(0);if(Sr.useEffect(()=>{if(L(null),w(null),k(!1),h(!1),!l||!c||!l.entryId)return;h(!0);let Z=new AbortController;return p(c.file,l.entryId,Z.signal).then((te)=>{if(!Z.signal.aborted)L(te.entry)}).catch((te)=>{if(Z.signal.aborted)return;w(te instanceof Error?te:Error(String(te)))}).finally(()=>{if(!Z.signal.aborted)h(!1)}),()=>Z.abort()},[l,c,p]),Sr.useEffect(()=>()=>window.clearTimeout(M.current),[]),!l)return null;let D=async()=>{try{await navigator.clipboard.writeText(JSON.stringify(v??l,null,2)),k(!0),window.clearTimeout(M.current),M.current=window.setTimeout(()=>k(!1),1500)}catch{}},P=(v&&typeof v==="object"?v:{}).message,X=P?.usage,F=[{key:"duration",label:s("common.duration"),value:Ue.jsxDEV("span",{className:"num",children:[Dt(l.end-l.start),l.unterminated&&Ue.jsxDEV("span",{className:"muted",children:[" · ",s("trace.unterminated")]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)},{key:"start",label:s("trace.start"),value:Ue.jsxDEV("span",{className:"num",children:new Date(l.start).toLocaleTimeString()},void 0,!1,void 0,this)},{key:"track",label:s("trace.track"),value:Ue.jsxDEV("span",{className:"mono",children:c?.label??"-"},void 0,!1,void 0,this)}];if(l.kind==="model"){if(F.push({key:"tokens",label:s("common.tokens"),value:Ue.jsxDEV("span",{className:"num",children:B(l.tokens??0)},void 0,!1,void 0,this)},{key:"cost",label:s("common.cost"),value:Ue.jsxDEV("span",{className:"num",children:["$",(l.cost??0).toFixed(4)]},void 0,!0,void 0,this)},{key:"ttft",label:s("trace.ttft"),value:Ue.jsxDEV("span",{className:"num",children:Dt(l.ttft??null)},void 0,!1,void 0,this)},{key:"model",label:s("common.model"),value:Ue.jsxDEV("span",{className:"mono",children:P?.model??l.model??"-"},void 0,!1,void 0,this)}),X)F.push({key:"split",label:s("trace.io-cached"),value:Ue.jsxDEV("span",{className:"num",children:[B(X.input??0)," / ",B(X.output??0)," /"," ",B(X.cacheRead??0)]},void 0,!0,void 0,this)});if(P?.provider)F.push({key:"provider",label:s("common.provider"),value:Ue.jsxDEV("span",{className:"mono",children:P.provider},void 0,!1,void 0,this)});if(P?.stopReason)F.push({key:"stop",label:s("trace.stop-reason"),value:Ue.jsxDEV("span",{className:"mono",children:P.stopReason},void 0,!1,void 0,this)})}return Ue.jsxDEV(b?sE:_m,{open:!0,onClose:i,title:l.label,subtitle:Ue.jsxDEV("span",{className:"row",style:{gap:6},children:Ue.jsxDEV(Ut,{tone:l.isError?"bad":"neutral",children:l.isError?`${l.kind} · ${s("common.error")}`:l.kind},void 0,!1,void 0,this)},void 0,!1,void 0,this),actions:Ue.jsxDEV("button",{type:"button",className:"btn","data-variant":"ghost","data-icon":"true",onClick:D,"aria-label":s("trace.copy-json"),title:s("trace.copy-json"),children:T?Ue.jsxDEV(Ys,{size:15},void 0,!1,void 0,this):Ue.jsxDEV(Qs,{size:15},void 0,!1,void 0,this)},void 0,!1,void 0,this),children:Ue.jsxDEV("div",{className:"stack traces-drawer",children:[Ue.jsxDEV(Go,{items:F},void 0,!1,void 0,this),g&&c&&l.entryId&&Ue.jsxDEV("div",{children:Ue.jsxDEV("button",{type:"button",className:"btn","data-size":"sm",onClick:()=>{if(l.entryId)g(c.id,l.entryId)},children:"Jump to transcript"},void 0,!1,void 0,this)},void 0,!1,void 0,this),P?.errorMessage&&Ue.jsxDEV("div",{className:"stack",style:{gap:6},children:[Ue.jsxDEV("div",{className:"section-label tone-bad",children:s("trace.error-message")},void 0,!1,void 0,this),Ue.jsxDEV("pre",{className:"code-block traces-pre",children:P.errorMessage},void 0,!1,void 0,this)]},void 0,!0,void 0,this),l.kind==="subagent"&&Ue.jsxDEV("div",{className:"stack",style:{gap:8},children:[l.detail&&Ue.jsxDEV(Ue.Fragment,{children:[Ue.jsxDEV("div",{className:"section-label",children:s("trace.task")},void 0,!1,void 0,this),Ue.jsxDEV("pre",{className:"code-block traces-pre",children:l.detail},void 0,!1,void 0,this)]},void 0,!0,void 0,this),l.childTrackId&&d&&Ue.jsxDEV("div",{children:Ue.jsxDEV("button",{type:"button",className:"btn","data-size":"sm",onClick:()=>d(l.childTrackId??""),children:[s("trace.open-child-track")," ",Ue.jsxDEV("span",{className:"mono",children:l.childTrackId},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),l.kind==="tool"&&l.detail&&Ue.jsxDEV("div",{className:"stack",style:{gap:6},children:[Ue.jsxDEV("div",{className:"section-label",children:s("trace.args")},void 0,!1,void 0,this),Ue.jsxDEV("pre",{className:"code-block traces-pre",children:l.detail},void 0,!1,void 0,this)]},void 0,!0,void 0,this),x&&Ue.jsxDEV("div",{className:"stack",children:[Ue.jsxDEV(Ba,{height:80},void 0,!1,void 0,this),Ue.jsxDEV(Ba,{height:160},void 0,!1,void 0,this)]},void 0,!0,void 0,this),C&&Ue.jsxDEV(Si,{error:s("trace.load-failed",{message:C.message})},void 0,!1,void 0,this),!x&&v!==null&&lE(P?.content).map((Z,te)=>Ue.jsxDEV("div",{className:"stack",style:{gap:6},children:[Ue.jsxDEV("div",{className:"section-label",children:Z.kind==="thinking"?s("trace.thinking"):s("trace.text")},void 0,!1,void 0,this),Ue.jsxDEV("pre",{className:"code-block traces-pre","data-scroll":"true",children:Z.text},void 0,!1,void 0,this)]},`${Z.kind}-${te}`,!0,void 0,this)),!x&&v!==null&&Ue.jsxDEV(gi,{data:v,title:s("trace.raw-entry"),initialCollapsed:!0},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)}var Dn=Q(ce(),1);function HT({summary:l}){let c=(i)=>l.wallMs>0?s("trace.of-wall",{percent:je(i/l.wallMs)}):void 0;return Dn.jsxDEV(oa,{min:112,children:[Dn.jsxDEV(se,{size:"sm",label:s("trace.wall-time"),value:Js(l.wallMs)},void 0,!1,void 0,this),Dn.jsxDEV(se,{size:"sm",label:s("trace.model-time"),value:Js(l.modelMs),hint:c(l.modelMs)},void 0,!1,void 0,this),Dn.jsxDEV(se,{size:"sm",label:s("trace.tool-time"),value:Js(l.toolMs),hint:c(l.toolMs)},void 0,!1,void 0,this),Dn.jsxDEV(se,{size:"sm",label:s("trace.idle"),value:Js(l.idleMs),hint:c(l.idleMs)},void 0,!1,void 0,this),Dn.jsxDEV(se,{size:"sm",label:s("trace.turns"),value:B(l.turns)},void 0,!1,void 0,this),Dn.jsxDEV(se,{size:"sm",label:s("common.requests"),value:B(l.requests),hint:s("trace.tool-calls-n",{count:B(l.toolCalls)})},void 0,!1,void 0,this),Dn.jsxDEV(se,{size:"sm",label:s("trace.agents"),value:B(l.subagents)},void 0,!1,void 0,this),Dn.jsxDEV(se,{size:"sm",label:s("common.tokens"),value:De(l.totalTokens)},void 0,!1,void 0,this),Dn.jsxDEV(se,{size:"sm",label:s("common.cost"),value:Ft(l.costTotal,l.unpricedRequests)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}var Nt=Q(dt(),1),$T=Q(id(),1);function oh(l,c){let i=l.length,d=[c[0],c[i-1]],p=(b,g)=>{let v=0,L=i-1;while(v<L){let x=v+L+1>>1;if(b[x]<=g)v=x;else L=x-1}return Math.min(v,i-2)};return{toU(b){if(b<=l[0])return c[0];if(b>=l[i-1])return c[i-1];let g=p(l,b),v=l[g+1]-l[g];if(v<=0)return c[g];return c[g]+(b-l[g])/v*(c[g+1]-c[g])},toT(b){if(b<=c[0])return l[0];if(b>=c[i-1])return l[i-1];let g=p(c,b),v=c[g+1]-c[g];if(v<=0)return l[g];return l[g]+(b-c[g])/v*(l[g+1]-l[g])},domain:d,gaps:[]}}function uE(l){let c=[];for(let i of l)for(let d of i.spans)c.push([d.start,d.end]);return c.sort((i,d)=>i[0]-d[0]),c}function iE(l){let{POSITIVE_INFINITY:c,NEGATIVE_INFINITY:i}=Number;for(let d of l)for(let p of d.spans){if(p.start<c)c=p.start;if(p.end>i)i=p.end}if(!Number.isFinite(c))return[0,1];return[c,Math.max(i,c+1)]}function FT(l,c,i){let d=[...new Set(l.filter((v)=>v>=c&&v<=i))].sort((v,L)=>v-L);if(d[0]!==c)d.unshift(c);if(d[d.length-1]!==i)d.push(i);if(d.length<2)return oh([c,i],[c,i]);let b=(i-c)/(d.length-1),g=d.map((v,L)=>c+L*b);return oh(d,g)}function cE(l,c,i){let d=uE(l),p=[];for(let[h,C]of d){let w=h-2000,T=C+2000,k=p[p.length-1];if(k&&w<=k[1]){if(T>k[1])k[1]=T}else p.push([w,T])}if(p.length===0)p.push([c,i]);p[0][0]=Math.max(p[0][0],c),p[p.length-1][1]=Math.min(Math.max(p[p.length-1][1],p[p.length-1][0]),i);let b=[],g=[],v=[],L=p[0][0];for(let h=0;h<p.length;h++){let[C,w]=p[h];if(h===0)b.push(C),g.push(L);else{let T=p[h-1][1],k=C-T;if(k>30000)L+=8000,v.push({t0:T,t1:C,uMid:L-4000});else L+=k;b.push(C),g.push(L)}L+=Math.max(0,w-C),b.push(w),g.push(L)}return{...oh(b,g),gaps:v}}function GT(l,c,i){let[d,p]=iE(l);if(c==="turns"){let g=(l.find((v)=>v.id==="main")?.spans??[]).filter((v)=>v.kind==="turn").map((v)=>v.start);return FT(g,d,p)}if(c==="calls"){let b=[];for(let g of l)for(let v of g.spans)if(v.kind==="model"||v.kind==="tool"||v.kind==="background")b.push(v.start,v.end);return FT(b,d,p)}if(i)return cE(l,d,p);return oh([d,p],[d,p])}var dE=90;function fE(l){let c=10**Math.floor(Math.log10(Math.max(l,1)));for(let i of[1,2,5,10])if(c*i>=l)return c*i;return c*10}function pE(l){let c=new Date(l),i=String(c.getHours()).padStart(2,"0"),d=String(c.getMinutes()).padStart(2,"0"),p=String(c.getSeconds()).padStart(2,"0");return`${i}:${d}:${p}`}function Ii(l){let c=l<0?"-":"+",i=Math.abs(l),d=Math.floor(i/3600000),p=Math.floor(i%3600000/60000),b=Math.floor(i%60000/1000),g=Math.floor(i%1000),v=i%1000!==0,L=`${String(p).padStart(2,"0")}:${String(b).padStart(2,"0")}${v?".":""}${v?String(g).padStart(3,"0"):""}`;return d>0?`${c}${d}:${L}`:`${c}${L}`}function VT(l,c,i,d){let p=i-c;if(p<=0||d<=0)return[];let b=[],g=l.domain[0],v=fE(p*dE/d),L=g+Math.ceil((c-g)/v)*v,x=0;for(let h=L;h<=i&&x<200;h+=v,x++){let C=l.toT(h),w=Math.round((h-g)/v)%5===0;b.push({u:h,label:w?pE(C):Ii(h-g),major:w})}return b}var At=Q(ce(),1),Jr=28,yb=22,ko=18,jT=3,mE=14,XT=200,mb=10,QT=2,hE=4,gE=56,nh=3,gb=0.3,yE=[{kind:"turn",label:s("common.input")},{kind:"model",label:s("common.model")},{kind:"tool",label:s("trace.tools")},{kind:"subagent",label:s("trace.agents")},{kind:"background",label:s("trace.bg")}];function vE(l,c){let i=new Map(l.map((L)=>[L.id,L])),d=new Set;for(let L of l)if(L.parentId)d.add(L.parentId);let p=(L)=>{let x=L.parentId;while(x){if(c.has(x))return!0;x=i.get(x)?.parentId??null}return!1},b=[],g=[],v=Jr+6;for(let L of l){if(p(L))continue;let x=L.id==="main"?0:L.id.split("/").length,h={turn:[],model:[],tool:[],subagent:[],background:[]};for(let w of L.spans)h[w.kind].push(w);let C={track:L,depth:x,hasChildren:d.has(L.id),headerY:v,lanes:[],turnSpans:h.turn,y0:v,y1:v};v+=yb;for(let{kind:w,label:T}of yE){let k=h[w],M=w==="turn"||w==="model"||w==="tool";if(k.length===0&&!(L.id==="main"&&M))continue;let D={track:L,kind:w,label:T,y:v,spans:k};C.lanes.push(D),g.push(D),v+=ko+jT}C.y1=v-jT,b.push(C),v+=mE}return{blocks:b,lanes:g,totalHeight:Math.max(v,Jr+48)}}function bE(l,c){return l.lanes.map((i)=>{let d=i.spans.length,p=new Float64Array(d),b=new Float64Array(d),g=new Float64Array(d),v=Number.NEGATIVE_INFINITY;for(let L=0;L<d;L++){let x=i.spans[L];p[L]=c.toU(x.start),b[L]=c.toU(x.end),v=Math.max(v,b[L]),g[L]=v}return{startU:p,endU:b,maxEndU:g}})}function xE(l,c){let i=0,d=l.length;while(i<d){let p=i+d>>>1;if(l[p]<c)i=p+1;else d=p}return i}function SE(l,c){if(l===null||c===null)return l===c;if(l.kind==="span")return c.kind==="span"&&l.span===c.span;return c.kind==="marker"&&l.marker===c.marker}function KT({tracks:l,scale:c,viewport:i,onViewportChange:d,selected:p,onSelect:b,matchIds:g,collapsed:v,onToggleCollapse:L,traceStart:x,autoFocus:h=!0}){let C=ki(),w=Nt.useRef(null),T=Nt.useRef(null),k=Nt.useRef(null),[M,D]=Nt.useState(800),[U,P]=Nt.useState(null),X=Nt.useRef(null);X.current=U;let F=Nt.useRef({clientX:0,clientY:0}),fe=Nt.useRef([]),Z=Nt.useRef(null),te=Nt.useRef(null),Y=Nt.useRef(i);Y.current=i;let J=Nt.useMemo(()=>vE(l,v),[l,v]),V=Nt.useMemo(()=>bE(J,c),[J,c]);Nt.useEffect(()=>{let re=w.current;if(!re)return;let j=new ResizeObserver((ve)=>{let Ge=Math.max(100,Math.floor(ve[0].contentRect.width-XT));D(Ge)});return j.observe(re),()=>j.disconnect()},[]);let de=Nt.useCallback((re,j)=>{let[ve,Ge]=c.domain,$e=Math.max(mb,j-re);$e=Math.min($e,Ge-ve||mb);let Qe=re;if(Qe<ve)Qe=ve;if(Qe+$e>Ge)Qe=Ge-$e;return{u0:Qe,u1:Qe+$e}},[c]),Se=Nt.useCallback((re)=>{Y.current=re,d(re)},[d]),Ie=Nt.useCallback((re,j)=>{let ve=M,{u0:Ge,u1:$e}=Y.current,Qe=$e-Ge,Xe=j===null?0.5:Math.min(1,Math.max(0,j/ve)),yt=Ge+Qe*Xe,xe=Qe*re;Se(de(yt-xe*Xe,yt+xe*(1-Xe)))},[M,Se,de]),Me=Nt.useCallback((re)=>{let{u0:j,u1:ve}=Y.current;Se(de(j+re,ve+re))},[Se,de]),oe=Nt.useCallback((re)=>{let j=c.toU(re.start),ve=c.toU(re.end),Ge=Math.max((ve-j)*0.1,mb/2);Se(de(j-Ge,ve+Ge))},[c,Se,de]);Nt.useEffect(()=>{let re=T.current;if(!re)return;let j=(ve)=>{ve.preventDefault();let Ge=re.getBoundingClientRect(),$e=ve.clientX-Ge.left;te.current=$e,P(null);let Qe=re.clientWidth||1,Xe=()=>Y.current.u1-Y.current.u0;if(ve.shiftKey){let yt=Math.abs(ve.deltaY)>=Math.abs(ve.deltaX)?ve.deltaY:ve.deltaX;Me(yt/Qe*Xe());return}if(ve.deltaX!==0)Me(ve.deltaX/Qe*Xe());if(ve.deltaY!==0)Ie(1.0015**ve.deltaY,$e)};return re.addEventListener("wheel",j,{passive:!1}),()=>re.removeEventListener("wheel",j)},[Ie,Me]);let he=Nt.useCallback((re,j)=>{let ve=T.current;if(!ve)return null;let Ge=ve.getBoundingClientRect(),$e=re-Ge.left,Qe=j-Ge.top,Xe=fe.current;for(let yt=Xe.length-1;yt>=0;yt--){let xe=Xe[yt];if($e>=xe.x&&$e<=xe.x+xe.w&&Qe>=xe.y&&Qe<=xe.y+xe.h)return xe}return null},[]),Ce=Nt.useCallback(()=>{let re=k.current;if(!re)return;let{clientX:j,clientY:ve}=F.current,Ge=Math.min(j+14,window.innerWidth-320),$e=ve+16>window.innerHeight-140?ve-120:ve+16;re.style.transform=`translate(${Ge}px, ${$e}px)`},[]),We=(re)=>{re.currentTarget.setPointerCapture(re.pointerId),Z.current={pointerId:re.pointerId,lastX:re.clientX,moved:!1},re.currentTarget.focus()},St=(re)=>{let j=re.currentTarget.getBoundingClientRect();te.current=re.clientX-j.left;let ve=Z.current;if(ve&&ve.pointerId===re.pointerId){let $e=re.clientX-ve.lastX;if(Math.abs($e)>0){if(Math.abs($e)>2)ve.moved=!0;ve.lastX=re.clientX;let Qe=Y.current.u1-Y.current.u0;Me(-$e/(M||1)*Qe)}P(null);return}F.current={clientX:re.clientX,clientY:re.clientY};let Ge=he(re.clientX,re.clientY);if(SE(Ge,X.current))Ce();else P(Ge)},ee=(re)=>{let j=Z.current;if(Z.current=null,j?.moved)return;let ve=he(re.clientX,re.clientY);if(ve?.kind==="span")b(ve.span.id);else b(null)},ze=(re)=>{let j=he(re.clientX,re.clientY);if(j?.kind==="span")oe(j.span)},Lt=Nt.useCallback((re)=>{let j=p?.span.id;if(!j)return;for(let ve of J.lanes){let Ge=ve.spans.findIndex((Xe)=>Xe.id===j);if(Ge===-1)continue;let $e=ve.spans[Ge+re];if(!$e)return;b($e.id);let Qe=c.toU($e.start);if(Qe<i.u0||Qe>i.u1){let Xe=i.u1-i.u0;d(de(Qe-Xe/2,Qe+Xe/2))}return}},[p,J,b,c,i,d,de]),Ct=(re)=>{let j=i.u1-i.u0;switch(re.key){case"w":case"W":Ie(0.7692307692307692,te.current);break;case"s":case"S":Ie(1.3,te.current);break;case"a":case"A":Me(-j*0.2);break;case"d":case"D":Me(j*0.2);break;case"0":d({u0:c.domain[0],u1:c.domain[1]});break;case"f":case"F":if(p)oe(p.span);break;case"Escape":b(null);break;case",":Lt(-1);break;case".":Lt(1);break;default:return}re.preventDefault(),re.stopPropagation()};Nt.useEffect(()=>{if(h)T.current?.focus({preventScroll:!0})},[h]),Nt.useEffect(()=>{let re=T.current;if(!re)return;let j=requestAnimationFrame(()=>{fe.current=LE(re,J,V,c,i,C,M,g)});return()=>cancelAnimationFrame(j)},[J,V,c,i,C,M,g]);let ue=U?.kind==="span"?YT(U,J,c,i,M):null,He=p?YT(p,J,c,i,M):null;Nt.useLayoutEffect(()=>{if(U)Ce()},[U,Ce]);let Fe=U?CE(U,x,k):null,W=Math.floor(M*devicePixelRatio),Ae=Math.floor(J.totalHeight*devicePixelRatio),lt={width:M,height:J.totalHeight};return At.jsxDEV("div",{ref:w,className:"traces-timeline",children:[At.jsxDEV("div",{style:{width:XT,flexShrink:0,position:"relative",height:J.totalHeight},children:J.blocks.map((re)=>At.jsxDEV("div",{children:[At.jsxDEV("div",{style:{position:"absolute",top:re.headerY,left:4+re.depth*14,right:8,height:yb,display:"flex",alignItems:"center",gap:5,minWidth:0},children:[re.hasChildren?At.jsxDEV("button",{type:"button",onClick:()=>L(re.track.id),"aria-label":v.has(re.track.id)?s("trace.expand-track",{track:re.track.label}):s("trace.collapse-track",{track:re.track.label}),className:"traces-chevron",children:v.has(re.track.id)?At.jsxDEV(Cn,{size:12},void 0,!1,void 0,this):At.jsxDEV($s,{size:12},void 0,!1,void 0,this)},void 0,!1,void 0,this):At.jsxDEV("span",{style:{width:12,flexShrink:0}},void 0,!1,void 0,this),At.jsxDEV("span",{className:"traces-gutter-track truncate",style:{minWidth:0},children:re.track.label},void 0,!1,void 0,this),re.track.model&&At.jsxDEV("span",{className:"traces-gutter-model mono truncate",style:{flexShrink:1,minWidth:0},children:re.track.model},void 0,!1,void 0,this)]},void 0,!0,void 0,this),re.lanes.map((j)=>At.jsxDEV("div",{className:"traces-gutter-lane",style:{top:j.y,left:20+re.depth*14,lineHeight:`${ko}px`},children:j.label},`${j.track.id}:${j.kind}`,!1,void 0,this))]},re.track.id,!0,void 0,this))},void 0,!1,void 0,this),At.jsxDEV("div",{className:"traces-canvas-stack",style:lt,children:[At.jsxDEV("canvas",{ref:T,className:"traces-canvas",width:W,height:Ae,style:lt,tabIndex:0,role:"application","aria-label":s("trace.canvas-aria"),onPointerDown:We,onPointerMove:St,onPointerUp:ee,onPointerLeave:()=>{te.current=null,P(null)},onDoubleClick:ze,onKeyDown:Ct},void 0,!1,void 0,this),ue&&U?.kind==="span"&&At.jsxDEV("div",{className:"traces-canvas-hover","aria-hidden":"true",style:{left:ue.x,top:ue.y,width:ue.w,height:ko,borderRadius:nh,opacity:g===null||g.has(U.span.id)?1:gb}},void 0,!1,void 0,this),He&&p&&At.jsxDEV("div",{className:"traces-canvas-selection","aria-hidden":"true",style:{left:He.x-1,top:He.y-1,width:He.w+2,height:ko+2,borderRadius:nh,borderColor:C.selection,opacity:g===null||g.has(p.span.id)?1:gb}},void 0,!1,void 0,this)]},void 0,!0,void 0,this),Fe&&$T.createPortal(Fe,w.current?.getRootNode()instanceof ShadowRoot?w.current.getRootNode():document.body)]},void 0,!0,void 0,this)}function hb(l,c,i,d,p){if(l.beginPath(),d>=nh*2+1)l.roundRect(c,i,d,p,nh);else l.rect(c,i,d,p)}function LE(l,c,i,d,p,b,g,v){let L=[],x=l.getContext("2d");if(!x)return L;let h=c.totalHeight,C=devicePixelRatio;x.setTransform(C,0,0,C,0,0),x.clearRect(0,0,g,h);let{u0:w,u1:T}=p,k=Math.max(T-w,0.000000001),M=(D)=>(D-w)/k*g;for(let D of c.blocks){let U=D.turnSpans;for(let P=0;P<U.length;P++){let X=M(d.toU(U[P].start)),F=P+1<U.length?M(d.toU(U[P+1].start)):g;if(F<0||X>g)continue;if(P%2===1)x.fillStyle=b.turnBand,x.fillRect(Math.max(0,X),D.y0,Math.min(g,F)-Math.max(0,X),D.y1-D.y0);if(X>=0&&X<=g)x.strokeStyle=b.grid,x.beginPath(),x.moveTo(Math.round(X)+0.5,D.y0),x.lineTo(Math.round(X)+0.5,D.y1),x.stroke()}}x.font=`9px ${b.fontMono}`;for(let D of d.gaps){let U=M(D.uMid);if(U<-24||U>g+24)continue;x.save(),x.strokeStyle=b.grid,x.setLineDash([2,4]),x.beginPath(),x.moveTo(U,Jr),x.lineTo(U,h),x.stroke(),x.restore(),x.fillStyle=b.tick,x.textAlign="center",x.fillText(`⋯ ${Dt(D.t1-D.t0)}`,U,Jr-4),x.textAlign="left"}for(let D of VT(d,w,T,g)){let U=Math.round(M(D.u))+0.5;if(x.strokeStyle=b.grid,x.beginPath(),D.major)x.moveTo(U,4),x.lineTo(U,h);else x.moveTo(U,Jr-8),x.lineTo(U,Jr);if(x.stroke(),x.fillStyle=b.tick,D.major)x.fillText(D.label,U+4,11);else x.globalAlpha=0.75,x.fillText(D.label,U+3,Jr-10),x.globalAlpha=1}x.strokeStyle=b.grid,x.beginPath(),x.moveTo(0,Jr+0.5),x.lineTo(g,Jr+0.5),x.stroke(),x.font=`10px ${b.fontSans}`;for(let D=0;D<c.lanes.length;D++){let U=c.lanes[D],{startU:P,endU:X,maxEndU:F}=i[D],fe=U.kind==="turn";for(let Z=xE(F,w);Z<U.spans.length;Z++){let te=P[Z];if(te>T)break;let Y=X[Z];if(Y<w)continue;let J=U.spans[Z],V=M(te),de=Math.max(QT,M(Y)-V),Se=U.y,Ie=v===null||v.has(J.id)?1:gb,Me=b.category[J.kind];if(x.globalAlpha=Ie,fe)x.fillStyle=Me,x.globalAlpha=Ie*0.23,hb(x,V,Se,de,ko),x.fill(),x.globalAlpha=Ie,x.fillStyle=Me,x.fillRect(V,Se,2,ko);else x.fillStyle=Me,hb(x,V,Se,de,ko),x.fill();if(J.isError)x.fillStyle=b.errorSoft,hb(x,V,Se,de,ko),x.fill(),x.fillStyle=b.error,x.fillRect(V,Se,2,ko);if(J.kind==="model"&&typeof J.ttft==="number"&&J.ttft>0&&de>20){let he=M(d.toU(J.start+J.ttft));if(he>V+1&&he<V+de-1)x.fillStyle="rgba(0,0,0,0.5)",x.fillRect(he,Se+3,1,ko-6)}if(J.unterminated)x.save(),x.strokeStyle=b.tick,x.setLineDash([2,2]),x.beginPath(),x.moveTo(V+de-0.5,Se),x.lineTo(V+de-0.5,Se+ko),x.stroke(),x.restore();if(de>gE)x.save(),x.beginPath(),x.rect(V+3,Se,de-6,ko),x.clip(),x.fillStyle=fe?b.tick:b.spanText,x.fillText(J.label,V+5,Se+ko-5),x.restore();x.globalAlpha=1;let oe=Math.max(de,hE);L.push({kind:"span",x:V-(oe-de)/2,y:Se,w:oe,h:ko,span:J,track:U.track})}}for(let D of c.blocks)for(let U of D.track.markers){let P=M(d.toU(U.time));if(P<-6||P>g+6)continue;let X=D.headerY+yb/2;x.fillStyle=b.marker,x.beginPath(),x.moveTo(P,X-4),x.lineTo(P+4,X),x.lineTo(P,X+4),x.lineTo(P-4,X),x.closePath(),x.fill(),L.push({kind:"marker",x:P-5,y:X-5,w:10,h:10,marker:U,track:D.track})}return L}function YT({span:l,track:c},i,d,p,b){let{u0:g,u1:v}=p,L=d.toU(l.start),x=d.toU(l.end);if(L>v||x<g)return null;let h=i.lanes.find((k)=>k.track===c&&k.kind===l.kind);if(!h)return null;let C=Math.max(v-g,0.000000001),w=(L-g)/C*b,T=(x-g)/C*b;return{x:w,y:h.y,w:Math.max(QT,T-w)}}function CE(l,c,i){let d={left:0,top:0};if(l.kind==="marker"){let{marker:b}=l;return At.jsxDEV("div",{ref:i,className:"traces-tooltip",style:d,children:[At.jsxDEV("div",{className:"traces-tooltip-title",children:b.label},void 0,!1,void 0,this),At.jsxDEV("div",{className:"muted num",children:[new Date(b.time).toLocaleTimeString()," (",Ii(b.time-c),")"]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)}let{span:p}=l;return At.jsxDEV("div",{ref:i,className:"traces-tooltip",style:d,children:[At.jsxDEV("div",{className:"traces-tooltip-title truncate",children:p.label},void 0,!1,void 0,this),At.jsxDEV("div",{className:"muted num",children:[Dt(p.end-p.start)," · ",new Date(p.start).toLocaleTimeString()," (",Ii(p.start-c),")",p.unterminated?` · ${s("trace.unterminated")}`:""]},void 0,!0,void 0,this),p.kind==="model"&&At.jsxDEV("div",{className:"muted num",children:[p.tokens!==void 0&&At.jsxDEV(At.Fragment,{children:[B(p.tokens)," ",s("trace.tok")]},void 0,!0,void 0,this),p.cost!==void 0&&At.jsxDEV(At.Fragment,{children:[" · $",p.cost.toFixed(4)]},void 0,!0,void 0,this),p.ttft!==void 0&&At.jsxDEV(At.Fragment,{children:[" ","· ",s("trace.ttft")," ",Dt(p.ttft)]},void 0,!0,void 0,this),p.isError&&At.jsxDEV(At.Fragment,{children:[" · ",s("common.error")]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),p.kind==="subagent"&&p.model&&At.jsxDEV("div",{className:"muted num",children:p.model},void 0,!1,void 0,this),p.detail&&At.jsxDEV("div",{className:"traces-tooltip-detail",children:p.detail},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}var En=Q(dt(),1);var ja=Q(ce(),1),Ri=28,ZT=20,wE=340;function kE(l){let c=[];for(let i of l){let d=i.id==="main"?0:i.id.split("/").length;for(let p of i.spans)c.push({key:p.id,time:p.start,span:p,track:i,depth:d});for(let p=0;p<i.markers.length;p++){let b=i.markers[p];c.push({key:`${i.id}:marker:${p}`,time:b.time,marker:b,track:i,depth:d})}}return c.sort((i,d)=>i.time-d.time),c}var WT=En.memo(function({tracks:c,selection:i,onSelect:d,search:p,matchIds:b,traceStart:g}){let v=ki(),L=En.useRef(null),[x,h]=En.useState(0),C=En.useMemo(()=>kE(c),[c]),w=En.useMemo(()=>{if(!b)return C;let D=p.trim().toLowerCase();return C.filter((U)=>U.span?b.has(U.span.id):(U.marker?.label??"").toLowerCase().includes(D))},[C,p,b]);En.useEffect(()=>{if(!i)return;let D=L.current;if(!D)return;let U=w.findIndex((X)=>X.span?.id===i);if(U===-1)return;let P=U*Ri;if(P<D.scrollTop||P+Ri>D.scrollTop+D.clientHeight)D.scrollTop=Math.max(0,P-D.clientHeight/2)},[i,w]);let T=Math.max(0,Math.floor(x/Ri)-ZT),k=Math.min(w.length,Math.ceil((x+wE)/Ri)+ZT),M=w.slice(T,k);return ja.jsxDEV("div",{ref:L,onScroll:(D)=>h(D.currentTarget.scrollTop),className:"traces-list",children:[ja.jsxDEV("div",{style:{height:w.length*Ri,position:"relative"},children:ja.jsxDEV("div",{style:{position:"absolute",top:T*Ri,left:0,right:0},children:M.map((D)=>{let U=D.span,P=U!==void 0&&U.id===i,X=D.span?v.category[D.span.kind]:v.marker,F=D.span?.label??D.marker?.label??"",fe=D.span?.detail,Z=D.span?Dt(D.span.end-D.span.start):"",te=D.span?.kind??D.marker?.kind??"",Y=ja.jsxDEV(ja.Fragment,{children:[ja.jsxDEV("span",{className:"traces-kind",style:{"--traces-kind-color":X},children:te},void 0,!1,void 0,this),D.depth>0&&ja.jsxDEV("span",{className:"traces-row-track mono truncate",title:D.track.label,children:D.track.id},void 0,!1,void 0,this),ja.jsxDEV("span",{className:"traces-row-label truncate",children:F},void 0,!1,void 0,this),fe&&ja.jsxDEV("span",{className:"traces-row-detail truncate",children:fe},void 0,!1,void 0,this),ja.jsxDEV("span",{className:"traces-row-meta num",children:[D.span?.isError&&ja.jsxDEV("span",{className:"tone-bad",children:s("common.error")},void 0,!1,void 0,this),ja.jsxDEV("span",{children:Z},void 0,!1,void 0,this),ja.jsxDEV("span",{children:Ii(D.time-g)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),J={paddingLeft:12+D.depth*12};return U?ja.jsxDEV("button",{type:"button",onClick:()=>d(U.id),className:"traces-row","data-selected":P?"true":"false",style:J,children:Y},D.key,!1,void 0,this):ja.jsxDEV("div",{className:"traces-row","data-static":"true",style:J,children:Y},D.key,!1,void 0,this)})},void 0,!1,void 0,this)},void 0,!1,void 0,this),w.length===0&&ja.jsxDEV(gt,{title:s("trace.no-matching-events")},void 0,!1,void 0,this)]},void 0,!0,void 0,this)});var tt=Q(ce(),1),TE=[{value:"time",label:s("common.duration"),title:s("trace.mode-time-title")},{value:"turns",label:s("trace.turns"),title:s("trace.mode-turns-title")},{value:"calls",label:s("trace.calls"),title:s("trace.mode-calls-title")}],IE=[{kind:"turn",label:s("common.input")},{kind:"model",label:s("common.model")},{kind:"tool",label:s("trace.tool")},{kind:"subagent",label:s("trace.agent")},{kind:"background",label:s("trace.background")}];function JT({file:l,active:c,onBack:i}){let d=Gt(["trace",l],({signal:b},g)=>k1(l,b,g),{pollMs:15000,enabled:c}),p=d.stale?null:d.data;return tt.jsxDEV("div",{className:"stack traces-view",children:[tt.jsxDEV("div",{children:tt.jsxDEV("button",{type:"button",className:"btn","data-variant":"ghost","data-size":"sm",onClick:i,children:[tt.jsxDEV(md,{size:14,"aria-hidden":"true"},void 0,!1,void 0,this),"Sessions"]},void 0,!0,void 0,this)},void 0,!1,void 0,this),tt.jsxDEV(ua,{title:tt.jsxDEV("span",{className:"traces-title truncate",children:p?.title??l.split("/").pop()},void 0,!1,void 0,this),description:p?.cwd?tt.jsxDEV("span",{className:"mono",children:p.cwd},void 0,!1,void 0,this):void 0,actions:tt.jsxDEV("button",{type:"button",className:"btn","data-variant":"ghost","data-icon":"true",onClick:d.refetch,"aria-label":"Refresh trace",title:"Refresh trace",children:tt.jsxDEV($l,{size:14,className:d.refreshing?"traces-spin":void 0},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this),tt.jsxDEV(_e,{query:{...d,data:p},skeleton:tt.jsxDEV(Mt,{height:420},void 0,!1,void 0,this),children:(b)=>tt.jsxDEV(RE,{trace:b},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function RE({trace:l,view:c="full",loadEntry:i,embedded:d=!1,onNavigate:p}){let[b,g]=Ot.useState("time"),[v,L]=Ot.useState(!0),[x,h]=Ot.useState(null),[C,w]=Ot.useState(!1),[T,k]=Ot.useState(""),[M,D]=Ot.useState(0),[U,P]=Ot.useState(new Set),[X,F]=Ot.useState(null),fe=Ot.useMemo(()=>l?.tracks??[],[l]),Z=Ot.useMemo(()=>GT(fe,b,v),[fe,b,v]),te=Ot.useRef(Z),Y=Ot.useRef(null);Ot.useEffect(()=>{if(!l)return;if(Y.current===l.file)return;Y.current=l.file,h(null),k(""),F(null);let ue=new Set;for(let He of l.tracks)if((He.id==="main"?0:He.id.split("/").length)>=1)ue.add(He.id);P(ue)},[l]),Ot.useEffect(()=>{let ue=te.current;te.current=Z,F((He)=>{if(!He)return He;let Fe=ue.toT(He.u0),W=ue.toT(He.u1),Ae=Z.toU(Fe),lt=Z.toU(W);return lt-Ae>0?{u0:Ae,u1:lt}:null})},[Z]);let J=Ot.useMemo(()=>X??{u0:Z.domain[0],u1:Z.domain[1]},[X,Z]),V=Ot.useMemo(()=>{let ue=[];for(let He of fe)for(let Fe of He.spans)ue.push({span:Fe,track:He});return ue.sort((He,Fe)=>He.span.start-Fe.span.start),ue},[fe]),de=Ot.useMemo(()=>{let ue=T.trim().toLowerCase();if(!ue)return[];return V.filter(({span:He})=>`${He.label} ${He.detail??""}`.toLowerCase().includes(ue))},[V,T]),Se=Ot.useMemo(()=>T.trim()?new Set(de.map(({span:ue})=>ue.id)):null,[de,T]),Ie=Ot.useCallback((ue)=>{let He=Z.toU(ue.start),Fe=Z.toU(ue.end);F((W)=>{let Ae=W??{u0:Z.domain[0],u1:Z.domain[1]};if(He>=Ae.u0&&Fe<=Ae.u1)return W;let lt=Ae.u1-Ae.u0,re=(He+Fe)/2,[j,ve]=Z.domain,Ge=re-lt/2;if(Ge<j)Ge=j;if(Ge+lt>ve)Ge=Math.max(j,ve-lt);return{u0:Ge,u1:Ge+lt}})},[Z]),Me=Ot.useCallback((ue)=>{h(ue);let He=V.find(({span:Fe})=>Fe.id===ue);if(He)Ie(He.span)},[V,Ie]),oe=Ot.useCallback((ue)=>{h(ue),w(ue!==null)},[]),he=Ot.useCallback((ue)=>{if(de.length===0)return;let He=((M+ue)%de.length+de.length)%de.length;D(He),Me(de[He].span.id)},[de,M,Me]),Ce=Ot.useCallback((ue)=>{P((He)=>{let Fe=new Set(He);if(Fe.has(ue))Fe.delete(ue);else Fe.add(ue);return Fe})},[]),We=Ot.useMemo(()=>{if(!x)return null;return V.find(({span:ue})=>ue.id===x)??null},[x,V]),St=Ot.useCallback((ue)=>{let He=fe.find((W)=>W.id===ue),Fe=He?.spans[0];if(P((W)=>{let Ae=new Set(W),lt=He;while(lt?.parentId)Ae.delete(lt.parentId),lt=fe.find((re)=>re.id===lt?.parentId);return Ae}),Fe)Me(Fe.id)},[fe,Me]),ee=Ot.useCallback((ue)=>{if(!ue){P(new Set);return}let He=new Set;for(let Fe of fe)if(Fe.id!=="main")He.add(Fe.id);P(He)},[fe]),ze=Ot.useCallback((ue)=>{Me(ue),w(!0)},[Me]),Lt=Ot.useCallback(()=>w(!1),[]),Ct=l.startedAt;return tt.jsxDEV("div",{className:"stack traces-view","data-view":c,children:[c==="full"&&tt.jsxDEV(HT,{summary:l.summary},void 0,!1,void 0,this),V.length===0&&tt.jsxDEV("p",{className:"muted",children:"No spans recorded in this session."},void 0,!1,void 0,this),tt.jsxDEV(Be,{index:1,title:s("trace.timeline"),description:s("trace.timeline-hint"),actions:tt.jsxDEV(tt.Fragment,{children:[tt.jsxDEV("button",{type:"button",className:"btn","data-variant":"ghost","data-size":"sm",onClick:()=>ee(!1),children:s("trace.expand-all")},void 0,!1,void 0,this),tt.jsxDEV("button",{type:"button",className:"btn","data-variant":"ghost","data-size":"sm",onClick:()=>ee(!0),children:s("trace.collapse-all")},void 0,!1,void 0,this)]},void 0,!0,void 0,this),children:tt.jsxDEV("div",{className:"stack",children:[tt.jsxDEV("div",{className:"traces-toolbar",children:[tt.jsxDEV(Fa,{options:TE,value:b,onChange:g,size:"sm","aria-label":s("trace.axis-mode")},void 0,!1,void 0,this),b==="time"&&tt.jsxDEV("label",{className:"traces-check",children:[tt.jsxDEV("input",{type:"checkbox",checked:v,onChange:(ue)=>L(ue.target.checked)},void 0,!1,void 0,this),s("trace.compress-idle")]},void 0,!0,void 0,this),tt.jsxDEV("div",{className:"traces-search",children:[tt.jsxDEV(pr,{value:T,onChange:(ue)=>{k(ue),D(0)},label:s("trace.search-placeholder"),placeholder:s("trace.search-placeholder"),width:200},void 0,!1,void 0,this),T.trim()&&tt.jsxDEV(tt.Fragment,{children:[tt.jsxDEV("span",{className:"num muted traces-match-count",children:de.length===0?"0":`${M%Math.max(de.length,1)+1}/${de.length}`},void 0,!1,void 0,this),tt.jsxDEV("button",{type:"button",className:"btn","data-variant":"ghost","data-size":"sm","data-icon":"true",onClick:()=>he(-1),"aria-label":s("trace.previous-match"),disabled:de.length===0,children:tt.jsxDEV(vd,{size:14},void 0,!1,void 0,this)},void 0,!1,void 0,this),tt.jsxDEV("button",{type:"button",className:"btn","data-variant":"ghost","data-size":"sm","data-icon":"true",onClick:()=>he(1),"aria-label":s("trace.next-match"),disabled:de.length===0,children:tt.jsxDEV(Cn,{size:14},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),tt.jsxDEV("div",{className:"traces-legend",children:IE.map((ue)=>tt.jsxDEV("span",{className:"traces-legend-item",children:[tt.jsxDEV("span",{className:"swatch",style:{background:`var(${uu[ue.kind]})`}},void 0,!1,void 0,this),ue.label]},ue.kind,!0,void 0,this))},void 0,!1,void 0,this)]},void 0,!0,void 0,this),tt.jsxDEV(UT,{tracks:fe,scale:Z,viewport:J,onViewportChange:F},void 0,!1,void 0,this),tt.jsxDEV(KT,{tracks:fe,scale:Z,viewport:J,onViewportChange:F,selected:We,onSelect:oe,matchIds:Se,collapsed:U,onToggleCollapse:Ce,traceStart:Ct,autoFocus:!d},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this),tt.jsxDEV(_T,{span:C?We?.span??null:null,track:We?.track??null,onClose:Lt,onOpenChildTrack:St,loadEntry:i,inline:d,onNavigate:p},void 0,!1,void 0,this),c==="full"&&tt.jsxDEV(Be,{index:2,title:s("trace.transcript"),description:s("trace.transcript-description"),flush:!0,children:tt.jsxDEV(WT,{tracks:fe,selection:x,onSelect:ze,search:T,matchIds:Se,traceStart:Ct},void 0,!1,void 0,this)},void 0,!1,void 0,this),c==="full"&&tt.jsxDEV(BT,{toolStats:l.summary.toolStats,index:3},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}var ea=Q(ce(),1),eI=200;function AE({models:l}){if(l.length===0)return ea.jsxDEV("span",{className:"dim",children:"-"},void 0,!1,void 0,this);return ea.jsxDEV("span",{className:"traces-models",title:l.join(`
|
|
236
|
-
`),children:[ea.jsxDEV("span",{className:"mono truncate",children:l[0]},void 0,!1,void 0,this),l.length>1&&ea.jsxDEV("span",{className:"badge",children:["+",l.length-1]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)}function
|
|
235
|
+
<%s key={someKey} {...props} />`,Ct,Fe,J,Fe),St[Fe+Ct]=!0)}if(Fe=null,Lt!==void 0&&(i(Lt),Fe=""+Lt),g(ze)&&(i(ze.key),Fe=""+ze.key),"key"in ze){Lt={};for(var Me in ze)Me!=="key"&&(Lt[Me]=ze[Me])}else Lt=ze;return Fe&&b(Lt,typeof ee==="function"?ee.displayName||ee.name||"Unknown":ee),L(ee,Fe,Lt,p(),ie,He)}function C(ee){w(ee)?ee._store&&(ee._store.validated=1):typeof ee==="object"&&ee!==null&&ee.$$typeof===K&&(ee._payload.status==="fulfilled"?w(ee._payload.value)&&ee._payload.value._store&&(ee._payload.value._store.validated=1):ee._store&&(ee._store.validated=1))}function w(ee){return typeof ee==="object"&&ee!==null&&ee.$$typeof===T}var T=Symbol.for("react.transitional.element"),k=Symbol.for("react.portal"),M=Symbol.for("react.fragment"),E=Symbol.for("react.strict_mode"),U=Symbol.for("react.profiler"),P=Symbol.for("react.consumer"),X=Symbol.for("react.context"),F=Symbol.for("react.forward_ref"),me=Symbol.for("react.suspense"),W=Symbol.for("react.suspense_list"),re=Symbol.for("react.memo"),K=Symbol.for("react.lazy"),G=Symbol.for("react.activity"),V=Symbol.for("react.client.reference"),de=Ks.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,ve=Object.prototype.hasOwnProperty,Ce=Array.isArray,Ie=console.createTask?console.createTask:function(){return null};Ks={react_stack_bottom_frame:function(ee){return ee()}};var ae,he={},we=Ks.react_stack_bottom_frame.bind(Ks,x)(),We=Ie(d(x)),St={};C2.Fragment=M,C2.jsxDEV=function(ee,ze,Lt,Ct){var ie=1e4>de.recentlyCreatedOwnerStacks++;return h(ee,ze,Lt,Ct,ie?Error("react-stack-top-frame"):we,ie?Ie(d(ee)):We)}})()});var fT=Q(gk(),1);var Di=Q(ct(),1);var hm=Q(ct(),1);var yk=(l)=>l?.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase();function vk(l,c,i=[]){if(c==null)throw Error("[lucide]: iconNode is required when icon name is used");return{name:yk(l),size:24,node:c,...i.length>0?{aliases:i}:{}}}var bk=(l)=>{let c="",i=!1;for(let d of l){if(d==="-"||d==="_"||d<=" "){i=c.length>0;continue}if(c.length===0)c+=d.toLowerCase();else c+=i?d.toUpperCase():d;i=!1}return c};var xk=(l)=>{let c=bk(l);return c.charAt(0).toUpperCase()+c.slice(1)};var fd=Q(ct(),1);var dd=(...l)=>l.filter((c,i,d)=>Boolean(c)&&c.trim()!==""&&d.indexOf(c)===i).join(" ").trim();var Gl={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":2,"stroke-linecap":"round","stroke-linejoin":"round"};function Xv(l){return l!==null&&l!==void 0}function Sk(l,c={}){let i=c.attributeNames??{},d=(w)=>i[w]??w,p=l.size??l.width??Gl.width,x=l.size??l.height??Gl.height,g=l.aliases?.filter((w)=>typeof w==="string"&&w.trim()!=="").map((w)=>`lucide-${w}`)??[],b=[...l.name?[`lucide-${l.name}`]:[],...g],S=c.className?.split(" ").filter(Boolean)??[],L=c.includeDefaultClasses===!1?dd(...S):dd("lucide",...b,...S),h=c.absoluteStrokeWidth?Number(c.strokeWidth??Gl["stroke-width"])*Number(l.size??l.width??Gl.width)/Number(c.size??c.width??Gl.width):c.strokeWidth??Gl["stroke-width"];return["svg",{...Object.entries(Gl).reduce((w,[T,k])=>(w[d(T)]=k,w),{}),..."color"in c&&c.color&&{[d("stroke")]:c.color},..."size"in c&&Xv(c.size)&&{[d("width")]:c.size,[d("height")]:c.size},..."width"in c&&Xv(c.width)&&{[d("width")]:c.width},..."height"in c&&Xv(c.height)&&{[d("height")]:c.height},[d("stroke-width")]:h,...L&&{[d("class")]:L},[d("viewBox")]:`0 0 ${p} ${x}`,...c.hasA11yProp===!1?{[d("aria-hidden")]:"true"}:{},..."attributes"in c&&c.attributes},l.node.map((w)=>{let[T,k,M]=w,E=c.nonScalingStroke?{[d("vector-effect")]:"non-scaling-stroke",...k}:k;return M?[T,E,M]:[T,E]})]}function Lk(l,c={}){return Sk(l,{...c,attributeNames:{...c.attributeNames,class:"className","stroke-width":"strokeWidth","stroke-linecap":"strokeLinecap","stroke-linejoin":"strokeLinejoin","vector-effect":"vectorEffect"}})}var Ck=(l)=>{for(let c in l)if(c.startsWith("aria-")||c==="role"||c==="title")return!0;return!1};var mi=Q(ct(),1),l2=mi.createContext({});var wk=()=>mi.useContext(l2);var kk=fd.forwardRef(({color:l,size:c,width:i,height:d,strokeWidth:p,absoluteStrokeWidth:x,nonScalingStroke:g,className:b="",children:S,iconNode:L=[],icon:h={node:L,aliases:[],size:24},...C},w)=>{let{size:T=24,strokeWidth:k=2,absoluteStrokeWidth:M=!1,nonScalingStroke:E=!1,color:U="currentColor",className:P=""}=wk()??{},X=Boolean(S)||Ck(C),[F,me,W=[]]=Lk(h,{color:l??U,width:i??c??T,height:d??c??T,strokeWidth:p??k,absoluteStrokeWidth:x??M,nonScalingStroke:g??E,className:dd(P,b),hasA11yProp:X,attributes:C});return fd.createElement(F,{ref:w,...me},[...W.map(([re,K])=>fd.createElement(re,K)),...Array.isArray(S)?S:[S]])});function Le(l,c=[],i=[]){let d=typeof l==="string"?vk(l,c,i):l,p=hm.forwardRef(({className:x,...g},b)=>hm.createElement(kk,{ref:b,icon:d,className:x,...g}));if(d.name)p.displayName=xk(d.name);return p}var Ik={name:"circle-alert",size:24,node:[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]],aliases:["alert-circle"]};Ik.node;var Vl=Le(Ik);var Tk={name:"face-slightly-frowning",size:24,node:[["path",{d:"M15 10V9",key:"4dkmfx"}],["path",{d:"M9 10V9",key:"1lazqi"}],["path",{d:"M9 16a5 5 0 016 0",key:"34mdxb"}],["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]],aliases:["frown"]};Tk.node;var jl=Le(Tk);var Rk={name:"plug-zap",size:24,node:[["path",{d:"M6.3 20.3a2.4 2.4 0 0 0 3.4 0L12 18l-6-6-2.3 2.3a2.4 2.4 0 0 0 0 3.4Z",key:"goz73y"}],["path",{d:"m2 22 3-3",key:"19mgm9"}],["path",{d:"M7.5 13.5 10 11",key:"7xgeeb"}],["path",{d:"M10.5 16.5 13 14",key:"10btkg"}],["path",{d:"m18 3-4 4h6l-4 4",key:"16psg9"}]],aliases:["plug-zap-2"]};Rk.node;var Xl=Le(Rk);var Ak={name:"sparkles",size:24,node:[["path",{d:"M11.017 2.814a1 1 0 0 1 1.966 0l1.051 5.558a2 2 0 0 0 1.594 1.594l5.558 1.051a1 1 0 0 1 0 1.966l-5.558 1.051a2 2 0 0 0-1.594 1.594l-1.051 5.558a1 1 0 0 1-1.966 0l-1.051-5.558a2 2 0 0 0-1.594-1.594l-5.558-1.051a1 1 0 0 1 0-1.966l5.558-1.051a2 2 0 0 0 1.594-1.594z",key:"1s2grr"}],["path",{d:"M20 2v4",key:"1rf3ol"}],["path",{d:"M22 4h-4",key:"gwowj6"}],["circle",{cx:"4",cy:"20",r:"2",key:"6kqj1y"}]],aliases:["stars"]};Ak.node;var sn=Le(Ak);var Mk={name:"square-chart-gantt",size:24,node:[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M9 8h7",key:"kbo1nt"}],["path",{d:"M8 12h6",key:"ikassy"}],["path",{d:"M11 16h5",key:"oq65wt"}]],aliases:["gantt-chart-square","square-gantt-chart"]};Mk.node;var Sr=Le(Mk);var Dk={name:"triangle-alert",size:24,node:[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",key:"wmoenq"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]],aliases:["alert-triangle"]};Dk.node;var Yl=Le(Dk);var Ek={name:"activity",size:24,node:[["path",{d:"M22 12h-2.48a2 2 0 0 0-1.93 1.46l-2.35 8.36a.25.25 0 0 1-.48 0L9.24 2.18a.25.25 0 0 0-.48 0l-2.35 8.36A2 2 0 0 1 4.49 12H2",key:"169zse"}]]};Ek.node;var pd=Le(Ek);var qk={name:"arrow-down",size:24,node:[["path",{d:"M12 5v14",key:"s699le"}],["path",{d:"m19 12-7 7-7-7",key:"1idqje"}]]};qk.node;var md=Le(qk);var Ok={name:"arrow-left",size:24,node:[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]]};Ok.node;var hd=Le(Ok);var Nk={name:"arrow-right",size:24,node:[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]]};Nk.node;var gd=Le(Nk);var Bk={name:"arrow-up-right",size:24,node:[["path",{d:"M7 7h10v10",key:"1tivn9"}],["path",{d:"M7 17 17 7",key:"1vkiza"}]]};Bk.node;var yd=Le(Bk);var zk={name:"arrow-up",size:24,node:[["path",{d:"m5 12 7-7 7 7",key:"hav0vg"}],["path",{d:"M12 19V5",key:"x0mq9r"}]]};zk.node;var vd=Le(zk);var Uk={name:"check",size:24,node:[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]};Uk.node;var Ys=Le(Uk);var Pk={name:"chevron-down",size:24,node:[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]};Pk.node;var $s=Le(Pk);var _k={name:"chevron-left",size:24,node:[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]]};_k.node;var bd=Le(_k);var Hk={name:"chevron-right",size:24,node:[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]};Hk.node;var Lr=Le(Hk);var Fk={name:"coins",size:24,node:[["path",{d:"M13.744 17.736a6 6 0 1 1-7.48-7.48",key:"bq4yh3"}],["path",{d:"M15 6h1v4",key:"11y1tn"}],["path",{d:"m6.134 14.768.866-.5 2 3.464",key:"17snzx"}],["circle",{cx:"16",cy:"8",r:"6",key:"14bfc9"}]]};Fk.node;var xd=Le(Fk);var Gk={name:"copy",size:24,node:[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]]};Gk.node;var Qs=Le(Gk);var Vk={name:"cpu",size:24,node:[["path",{d:"M12 20v2",key:"1lh1kg"}],["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M17 20v2",key:"1rnc9c"}],["path",{d:"M17 2v2",key:"11trls"}],["path",{d:"M2 12h2",key:"1t8f8n"}],["path",{d:"M2 17h2",key:"7oei6x"}],["path",{d:"M2 7h2",key:"asdhe0"}],["path",{d:"M20 12h2",key:"1q8mjw"}],["path",{d:"M20 17h2",key:"1fpfkl"}],["path",{d:"M20 7h2",key:"1o8tra"}],["path",{d:"M7 20v2",key:"4gnj0m"}],["path",{d:"M7 2v2",key:"1i4yhu"}],["rect",{x:"4",y:"4",width:"16",height:"16",rx:"2",key:"1vbyd7"}],["rect",{x:"8",y:"8",width:"8",height:"8",rx:"1",key:"z9xiuo"}]]};Vk.node;var Sd=Le(Vk);var jk={name:"folder-git-2",size:24,node:[["path",{d:"M18 19a5 5 0 0 1-5-5v8",key:"sz5oeg"}],["path",{d:"M9 20H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h3.9a2 2 0 0 1 1.69.9l.81 1.2a2 2 0 0 0 1.67.9H20a2 2 0 0 1 2 2v5",key:"1w6njk"}],["circle",{cx:"13",cy:"12",r:"2",key:"1j92g6"}],["circle",{cx:"20",cy:"19",r:"2",key:"1obnsp"}]]};jk.node;var Ld=Le(jk);var Xk={name:"git-branch",size:24,node:[["path",{d:"M15 6a9 9 0 0 0-9 9V3",key:"1cii5b"}],["circle",{cx:"18",cy:"6",r:"3",key:"1h7g24"}],["circle",{cx:"6",cy:"18",r:"3",key:"fqmcym"}]]};Xk.node;var Cd=Le(Xk);var Yk={name:"inbox",size:24,node:[["polyline",{points:"22 12 16 12 14 15 10 15 8 12 2 12",key:"o97t9d"}],["path",{d:"M5.45 5.11 2 12v6a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-6l-3.45-6.89A2 2 0 0 0 16.76 4H7.24a2 2 0 0 0-1.79 1.11z",key:"oot6mr"}]]};Yk.node;var wd=Le(Yk);var $k={name:"languages",size:24,node:[["path",{d:"m5 8 6 6",key:"1wu5hv"}],["path",{d:"m4 14 6-6 2-3",key:"1k1g8d"}],["path",{d:"M2 5h12",key:"or177f"}],["path",{d:"M7 2h1",key:"1t2jsx"}],["path",{d:"m22 22-5-10-5 10",key:"don7ne"}],["path",{d:"M14 18h6",key:"1m8k6r"}]]};$k.node;var kd=Le($k);var Qk={name:"layout-grid",size:24,node:[["rect",{width:"7",height:"7",x:"3",y:"3",rx:"1",key:"1g98yp"}],["rect",{width:"7",height:"7",x:"14",y:"3",rx:"1",key:"6d4xhi"}],["rect",{width:"7",height:"7",x:"14",y:"14",rx:"1",key:"nxv5o0"}],["rect",{width:"7",height:"7",x:"3",y:"14",rx:"1",key:"1bb6yr"}]]};Qk.node;var Id=Le(Qk);var Kk={name:"menu",size:24,node:[["path",{d:"M4 5h16",key:"1tepv9"}],["path",{d:"M4 12h16",key:"1lakjw"}],["path",{d:"M4 19h16",key:"1djgab"}]]};Kk.node;var Td=Le(Kk);var Zk={name:"monitor",size:24,node:[["rect",{width:"20",height:"14",x:"2",y:"3",rx:"2",key:"48i651"}],["line",{x1:"8",x2:"16",y1:"21",y2:"21",key:"1svkeh"}],["line",{x1:"12",x2:"12",y1:"17",y2:"21",key:"vw1qmm"}]]};Zk.node;var Rd=Le(Zk);var Wk={name:"moon",size:24,node:[["path",{d:"M20.985 12.486a9 9 0 1 1-9.473-9.472c.405-.022.617.46.402.803a6 6 0 0 0 8.268 8.268c.344-.215.825-.004.803.401",key:"kfwtm"}]]};Wk.node;var Ad=Le(Wk);var Jk={name:"refresh-cw",size:24,node:[["path",{d:"M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8",key:"v9h5vc"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}],["path",{d:"M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16",key:"3uifl3"}],["path",{d:"M8 16H3v5",key:"1cv678"}]]};Jk.node;var $l=Le(Jk);var e1={name:"rotate-cw",size:24,node:[["path",{d:"M21 12a9 9 0 1 1-9-9c2.52 0 4.93 1 6.74 2.74L21 8",key:"1p45f6"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}]]};e1.node;var Md=Le(e1);var t1={name:"search",size:24,node:[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]]};t1.node;var Dd=Le(t1);var a1={name:"sun",size:24,node:[["circle",{cx:"12",cy:"12",r:"4",key:"4exip2"}],["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M12 20v2",key:"1lh1kg"}],["path",{d:"m4.93 4.93 1.41 1.41",key:"149t6j"}],["path",{d:"m17.66 17.66 1.41 1.41",key:"ptbguv"}],["path",{d:"M2 12h2",key:"1t8f8n"}],["path",{d:"M20 12h2",key:"1q8mjw"}],["path",{d:"m6.34 17.66-1.41 1.41",key:"1m8zz5"}],["path",{d:"m19.07 4.93-1.41 1.41",key:"1shlcs"}]]};a1.node;var Ed=Le(a1);var o1={name:"wrench",size:24,node:[["path",{d:"M14.7 6.3a1 1 0 0 0 0 1.4l1.6 1.6a1 1 0 0 0 1.4 0l3.106-3.105c.32-.322.863-.22.983.218a6 6 0 0 1-8.259 7.057l-7.91 7.91a1 1 0 0 1-2.999-3l7.91-7.91a6 6 0 0 1 7.057-8.259c.438.12.54.662.219.984z",key:"1ngwbx"}]]};o1.node;var qd=Le(o1);var r1={name:"x",size:24,node:[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]};r1.node;var ao=Le(r1);var Li=Q(ct(),1);function gm(l){let c=l?.trim().toLowerCase()??"";if(c==="zh"||c.startsWith("zh-")||c.startsWith("zh_"))return"zh-CN";return"en"}function n1(l){for(let c of l??[]){let i=gm(c);if(i!=="en")return i}return"en"}function s2(l,c={}){return l.replace(/\{([\w.-]+)\}/g,(i,d)=>{let p=c[d];return p===void 0?i:String(p)})}function l1(l,c,i,d={}){let p=i[l]?.[c]??i.en?.[c];if(p===void 0)return console.warn(`[stats.i18n] missing translation: ${c}`),c;return s2(p,d)}var ym={en:{"nav.usage":"Usage","nav.activity":"Activity","nav.insights":"Insights","nav.overview":"Overview","nav.models":"Models","nav.providers":"Providers","nav.costs":"Costs","nav.requests":"Requests","nav.errors":"Errors","nav.traces":"Traces","nav.tools":"Tools","nav.frustration":"Frustration","nav.projects":"Projects","nav.gain":"Gain","nav.dashboard":"zetacode stats","nav.breadcrumb-stats":"stats","nav.pages":"Pages","nav.open-navigation":"Open navigation"},"zh-CN":{"nav.usage":"用量","nav.activity":"活动","nav.insights":"洞察","nav.overview":"总览","nav.models":"模型","nav.providers":"服务商","nav.costs":"费用","nav.requests":"请求","nav.errors":"错误","nav.traces":"调用链","nav.tools":"工具","nav.frustration":"情绪压力","nav.projects":"项目","nav.gain":"收益","nav.dashboard":"zeta 统计","nav.breadcrumb-stats":"统计","nav.pages":"导航","nav.open-navigation":"打开导航"}};var vm={en:{"common.provider":"Provider","common.providers":"Providers","common.model":"Model","common.models":"Models","common.requests":"Requests","common.request":"Request","common.tokens":"Tokens","common.share":"Share","common.cost":"Cost","common.error-rate":"Error rate","common.tokens-per-second":"Tokens/s","common.output-tokens-per-second":"Output tokens/s","common.premium":"Premium","common.premium-requests":"Premium requests","common.duration":"Duration","common.started":"Started","common.request-id":"Request id","common.session-entry":"Session entry","common.entry-id":"Entry id","common.input":"Input","common.output":"Output","common.output-message":"Output message","common.cache-read":"Cache read","common.cache-write":"Cache write","common.project":"Project","common.pages":"Pages","common.filter":"Filter…","common.no-data-in-range":"No data in this range","common.nothing-here-yet":"Nothing here yet","common.show-more":"Show more","common.total":"Total","common.average":"Average","common.unknown":"Unknown","common.root":"(root)","common.other-n":"Other ({count})","common.time-range":"Time range","common.range-1h":"1h","common.range-24h":"24h","common.range-7d":"7d","common.range-30d":"30d","common.range-90d":"90d","common.range-all":"All","common.window-1h":"the last hour","common.window-24h":"the last 24 hours","common.window-7d":"the last 7 days","common.window-30d":"the last 30 days","common.window-90d":"the last 90 days","common.window-all":"all time","common.copy":"Copy","common.copied":"Copied","common.close":"Close","common.cancel":"Cancel","common.aborted":"Aborted","common.failed":"Failed","common.error":"Error","shell.live":"Live","shell.reconnecting":"Reconnecting","shell.syncing":"Syncing","shell.sync-failed":"Sync failed","shell.indexing":"Indexing","shell.lost-connection":"Lost the live connection to the stats server; retrying","shell.ingesting":"Ingesting session files","shell.building-rollups":"Building hourly rollups; older ranges fill in as it goes","shell.sync-now":"Click to sync session files now","shell.just-now":"just now","shell.system-theme":"System theme","shell.dark-theme":"Dark theme","shell.light-theme":"Light theme","shell.range-suffix":"range","shell.jump-hint":"then letter to jump","shell.language":"Language","shell.switch-language":"Switch dashboard language"},"zh-CN":{"common.provider":"服务商","common.providers":"服务商","common.model":"模型","common.models":"模型","common.requests":"请求","common.request":"请求","common.tokens":"Token","common.share":"占比","common.cost":"费用","common.error-rate":"错误率","common.tokens-per-second":"Token/秒","common.output-tokens-per-second":"输出 Token/秒","common.premium":"溢价","common.premium-requests":"溢价请求","common.duration":"耗时","common.started":"开始时间","common.request-id":"请求 ID","common.session-entry":"会话条目","common.entry-id":"条目 ID","common.input":"输入","common.output":"输出","common.output-message":"输出消息","common.cache-read":"缓存读取","common.cache-write":"缓存写入","common.project":"项目","common.pages":"页数","common.filter":"筛选…","common.no-data-in-range":"该时间范围内没有数据","common.nothing-here-yet":"暂无数据","common.show-more":"显示更多","common.total":"合计","common.average":"平均","common.unknown":"未知","common.root":"(根目录)","common.other-n":"其他({count})","common.time-range":"时间范围","common.range-1h":"1 小时","common.range-24h":"24 小时","common.range-7d":"7 天","common.range-30d":"30 天","common.range-90d":"90 天","common.range-all":"全部","common.window-1h":"最近 1 小时","common.window-24h":"最近 24 小时","common.window-7d":"最近 7 天","common.window-30d":"最近 30 天","common.window-90d":"最近 90 天","common.window-all":"全部时间","common.copy":"复制","common.copied":"已复制","common.close":"关闭","common.cancel":"取消","common.aborted":"已中止","common.failed":"失败","common.error":"错误","shell.live":"实时","shell.reconnecting":"重新连接中","shell.syncing":"同步中","shell.sync-failed":"同步失败","shell.indexing":"建立索引","shell.lost-connection":"与统计服务的实时连接已断开,正在重试","shell.ingesting":"正在导入会话文件","shell.building-rollups":"正在构建小时汇总;更早的时间范围会逐步补全","shell.sync-now":"点击立即同步会话文件","shell.just-now":"刚刚","shell.system-theme":"跟随系统","shell.dark-theme":"深色主题","shell.light-theme":"浅色主题","shell.range-suffix":"范围","shell.jump-hint":"再按字母跳转","shell.language":"语言","shell.switch-language":"切换仪表盘语言"}};var bm={en:{"overview.title":"Overview","overview.description":"Everything zeta did across your sessions in {window}.","overview.api-equivalent-cost":"API-equivalent cost","overview.api-cost-title":"What this usage would cost at public API rates","overview.unpriced-n":"{count} unpriced","overview.failed-n":"{count} failed","overview.conversation-tokens":"Conversation tokens","overview.tokens-title":"Uncached input + cache reads + cache writes + output","overview.output-n":"{count} output","overview.cache-rate":"Cache rate","overview.cache-rate-title":"Cache reads ÷ (uncached input + cache reads)","overview.cache-saved":"{value} saved","overview.succeeded-n":"{count} succeeded","overview.uncached-input":"Uncached input","overview.avg-latency":"Avg latency","overview.avg-ttft":"Avg TTFT","overview.activity":"Activity","overview.per-5m":"Per 5 minutes","overview.per-hour":"Per hour","overview.per-day":"Per day","overview.succeeded":"Succeeded","overview.api-equivalent":"API-equivalent","overview.token-mix":"Token mix","overview.token-mix-description":"Where conversation tokens went","overview.by-agent":"By agent","overview.requests-short":"{count} req","overview.main-agent":"Main agent","overview.subagents":"Subagents","overview.advisor":"Advisor","overview.latest-requests":"Latest requests","overview.latest-requests-description":"Most recent model calls across every session","overview.all-requests":"All requests","overview.when":"When","overview.status":"Status","overview.ok":"OK"},"zh-CN":{"overview.title":"概览","overview.description":"在{window}内,zeta 在你的所有会话中完成的一切。","overview.api-equivalent-cost":"API 等效费用","overview.api-cost-title":"这些用量按公开 API 费率计算所需的费用","overview.unpriced-n":"{count} 个未定价","overview.failed-n":"{count} 个失败","overview.conversation-tokens":"对话 Token","overview.tokens-title":"未缓存输入 + 缓存读取 + 缓存写入 + 输出","overview.output-n":"{count} 输出","overview.cache-rate":"缓存命中率","overview.cache-rate-title":"缓存读取 ÷(未缓存输入 + 缓存读取)","overview.cache-saved":"节省 {value}","overview.succeeded-n":"{count} 个成功","overview.uncached-input":"未缓存输入","overview.avg-latency":"平均延迟","overview.avg-ttft":"平均 TTFT","overview.activity":"活动","overview.per-5m":"每 5 分钟","overview.per-hour":"每小时","overview.per-day":"每天","overview.succeeded":"成功","overview.api-equivalent":"API 等效","overview.token-mix":"Token 构成","overview.token-mix-description":"对话 Token 的去向","overview.by-agent":"按代理","overview.requests-short":"{count} 次请求","overview.main-agent":"主代理","overview.subagents":"子代理","overview.advisor":"顾问","overview.latest-requests":"最新请求","overview.latest-requests-description":"所有会话中最近的模型调用","overview.all-requests":"全部请求","overview.when":"时间","overview.status":"状态","overview.ok":"正常"}};var xm={en:{"models.subtitle":"Which models did the work in {window}, and how fast they answered.","models.empty-title":"No model usage in this range","models.empty-hint":"Pick a wider range in the top bar.","models.used":"Models used","models.across-providers-one":"across {count} provider","models.across-providers":"across {count} providers","models.most-used":"Most used","models.most-used-hint":"{share} of requests · {provider}","models.failed-n":"{count} failed","models.api-cost":"API-equivalent cost","models.api-cost-title":"What this usage would cost at public API rates","models.unpriced-n":"{count} unpriced","models.request-share":"Request share","models.share-desc":"Each model's share of requests per {bucket}","models.count-desc":"Requests per {bucket}, stacked by model","models.share-mode-aria":"Share chart mode","models.all-models":"All models","models.table-desc":"Click a row for latency and throughput over time","models.cost-title":"API-equivalent estimate at public rates","models.tokens-title":"Uncached input + cache reads + cache writes + output","models.cache-rate":"Cache rate","models.cache-title":"Cache reads ÷ (uncached input + cache reads)","models.errors":"Errors","models.tps-title":"Average output tokens per second","models.ttft":"TTFT","models.ttft-title":"Average time to first token","models.trend":"Trend","models.trend-title":"Requests per {bucket}","models.efficiency":"Efficiency","models.latency":"Latency","models.cache-savings":"Cache savings","models.avg-duration":"Avg duration","models.avg-ttft":"Avg TTFT","models.uncached-input":"Uncached input","models.first-last-seen":"First seen {first} · last seen {last}","models.performance-per-bucket":"Performance per active {bucket}","models.no-samples-title":"No performance samples","models.no-samples-hint":"Timing is recorded for streamed responses.","models.tok-per-second":"{value} tok/s","models.bucket-5m":"5 minutes","models.bucket-hour":"hour","models.bucket-day":"day"},"zh-CN":{"models.subtitle":"在{window}内哪些模型完成了工作,以及它们的响应速度如何。","models.empty-title":"该时间范围内没有模型用量","models.empty-hint":"请在顶部栏选择更宽的时间范围。","models.used":"使用模型数","models.across-providers-one":"覆盖 {count} 个服务商","models.across-providers":"覆盖 {count} 个服务商","models.most-used":"使用最多","models.most-used-hint":"{share} 请求占比 · {provider}","models.failed-n":"{count} 个失败","models.api-cost":"API 等价费用","models.api-cost-title":"按公开 API 价格计算这笔用量的费用","models.unpriced-n":"{count} 个未定价","models.request-share":"请求占比","models.share-desc":"每个{bucket}中各模型的请求占比","models.count-desc":"每个{bucket}的请求数,按模型堆叠","models.share-mode-aria":"占比图表模式","models.all-models":"所有模型","models.table-desc":"点击某行可查看延迟与吞吐随时间的变化","models.cost-title":"按公开价格估算的 API 等价费用","models.tokens-title":"未缓存输入 + 缓存读取 + 缓存写入 + 输出","models.cache-rate":"缓存命中率","models.cache-title":"缓存读取 ÷(未缓存输入 + 缓存读取)","models.errors":"错误","models.tps-title":"平均每秒输出 Token 数","models.ttft":"首 Token 延迟","models.ttft-title":"平均首 Token 延迟","models.trend":"趋势","models.trend-title":"每个{bucket}的请求数","models.efficiency":"效率","models.latency":"延迟","models.cache-savings":"缓存节省","models.avg-duration":"平均耗时","models.avg-ttft":"平均首 Token 延迟","models.uncached-input":"未缓存输入","models.first-last-seen":"首次出现 {first} · 最近出现 {last}","models.performance-per-bucket":"每个活跃{bucket}的性能","models.no-samples-title":"没有性能样本","models.no-samples-hint":"只有流式响应会记录耗时。","models.tok-per-second":"{value} Token/秒","models.bucket-5m":"5 分钟","models.bucket-hour":"小时","models.bucket-day":"天"}};var Sm={en:{"providers.description":"Burn, reliability and subscription headroom per provider over {window}.","providers.most-tokens":"Most tokens: {provider}","providers.failed-n":"{count} failed","providers.succeeded-n":"{count} succeeded","providers.tokens-title":"Uncached input + cache reads + cache writes + output","providers.api-equivalent-cost":"API-equivalent cost","providers.api-cost-title":"What this usage would cost at public API rates","providers.unpriced-n":"{count} unpriced","providers.totals":"Provider totals","providers.totals-description":"Cost is an API-equivalent estimate. Select a row for its token mix.","providers.totals-description-unpriced-one":"Cost is an API-equivalent estimate and excludes {count} unpriced subscription request. Select a row for its token mix.","providers.totals-description-unpriced-n":"Cost is an API-equivalent estimate and excludes {count} unpriced subscription requests. Select a row for its token mix.","providers.no-requests-in-range":"No requests in this range","providers.models-title":"Distinct models used through this provider","providers.share-title":"Fraction of all tokens in range","providers.cost-title":"API-equivalent estimate","providers.tps-title":"Average output throughput","providers.premium-title":"Premium requests (subscription multiplier units)","providers.burn":"Burn by provider","providers.burn-estimate-description":"API-equivalent estimate per {bucket}; excludes unpriced subscription requests","providers.burn-description":"Per {bucket}, top {count} providers stacked","providers.bucket-5m":"5 minutes","providers.bucket-hour":"hour","providers.bucket-day":"day","providers.no-provider-activity":"No provider activity in this range","providers.peak-burn-hours":"Peak burn hours","providers.peak-hours-description":"Tokens by local hour of day; peak at {hour}","providers.hours-description":"Tokens by local hour of day","providers.all-providers":"All providers","providers.tokens-peak-hour":"Tokens (peak hour)","providers.no-activity-in-range":"No activity in this range","providers.subscription-windows":"Subscription windows","providers.subscription-windows-description":"What one usage window buys you and how many accounts peak demand needs. Select a row to chart it.","providers.window":"Window","providers.accounts":"Accounts","providers.accounts-title":"Accounts with at least one snapshot for this window in range","providers.resets":"Resets","providers.resets-title":"Window resets observed (drops in used fraction)","providers.windows-burned":"Windows burned","providers.windows-burned-title":"Subscription-window equivalents consumed in range (sum of used-fraction increases across accounts)","providers.tokens-per-window":"Tokens / window","providers.tokens-per-window-title":"Provider tokens burned in range ÷ windows burned — what one full window is worth","providers.too-little-consumed":"Too little of the window was consumed to extrapolate","providers.peak-utilization":"Peak utilization","providers.peak-utilization-title":"Peak of summed used fraction across accounts at any sampled instant; the bar is relative to fleet capacity","providers.accounts-needed":"Accounts needed","providers.accounts-needed-title":"Accounts needed to keep peak demand under 90% of fleet capacity","providers.ideal-accounts":"{ideal} · have {have}","providers.exhaustions":"Exhaustions","providers.exhaustions-title":"Transitions into an exhausted state observed in range","providers.exhausted-n":"{count} exhausted","providers.no-snapshots-in-range":"No usage snapshots in this range","providers.snapshot-hint":"Usage snapshots accumulate whenever usage limits are fetched (TUI footer, /usage, zetacode usage).","providers.utilization":"Window utilization","providers.utilization-description":"{window} used fraction per account, {from} – {to}","providers.utilization-description-plain":"Recorded limit utilization per account","providers.no-utilization-readings":"No utilization readings for this window","providers.exhausted":"Exhausted","providers.no-reading":"No reading","providers.high":"High","providers.account":"Account","providers.latest-used":"Latest used","providers.status":"Status","providers.peak-in-range":"Peak in range","providers.snapshots":"Snapshots","providers.recorded":"Recorded"},"zh-CN":{"providers.description":"各服务商在{window}内的消耗、可靠性与订阅余量。","providers.most-tokens":"Token 最多:{provider}","providers.failed-n":"{count} 次失败","providers.succeeded-n":"{count} 次成功","providers.tokens-title":"未缓存输入 + 缓存读取 + 缓存写入 + 输出","providers.api-equivalent-cost":"API 等效费用","providers.api-cost-title":"此用量按公开 API 费率计算需要多少费用","providers.unpriced-n":"{count} 个未定价","providers.totals":"服务商汇总","providers.totals-description":"费用为 API 等效估算。选择一行可查看其 Token 构成。","providers.totals-description-unpriced-one":"费用为 API 等效估算,且未包含 {count} 个未定价的订阅请求。选择一行可查看其 Token 构成。","providers.totals-description-unpriced-n":"费用为 API 等效估算,且未包含 {count} 个未定价的订阅请求。选择一行可查看其 Token 构成。","providers.no-requests-in-range":"该时间范围内没有请求","providers.models-title":"通过该服务商使用的不同模型","providers.share-title":"该时间范围内全部 Token 中的占比","providers.cost-title":"API 等效估算","providers.tps-title":"平均输出吞吐量","providers.premium-title":"溢价请求(订阅倍率单位)","providers.burn":"按服务商的消耗","providers.burn-estimate-description":"每{bucket}的 API 等效估算;不含未定价的订阅请求","providers.burn-description":"每{bucket},堆叠显示前 {count} 个服务商","providers.bucket-5m":"5 分钟","providers.bucket-hour":"小时","providers.bucket-day":"天","providers.no-provider-activity":"该时间范围内没有服务商活动","providers.peak-burn-hours":"消耗高峰时段","providers.peak-hours-description":"按本地时段统计的 Token;高峰在 {hour}","providers.hours-description":"按本地时段统计的 Token","providers.all-providers":"全部服务商","providers.tokens-peak-hour":"Token(高峰时段)","providers.no-activity-in-range":"该时间范围内没有活动","providers.subscription-windows":"订阅窗口","providers.subscription-windows-description":"一个用量窗口能带来多少用量,以及峰值需求需要多少个账号。选择一行可将它绘制成图表。","providers.window":"窗口","providers.accounts":"账号","providers.accounts-title":"该时间范围内对此窗口至少有一个快照的账号","providers.resets":"重置次数","providers.resets-title":"观测到的窗口重置次数(已用比例下降)","providers.windows-burned":"消耗的窗口数","providers.windows-burned-title":"该时间范围内消耗的订阅窗口等效量(各账号已用比例增量之和)","providers.tokens-per-window":"Token / 窗口","providers.tokens-per-window-title":"该时间范围内消耗的服务商 Token ÷ 消耗的窗口数 —— 一个完整窗口的价值","providers.too-little-consumed":"该窗口消耗太少,无法外推","providers.peak-utilization":"峰值利用率","providers.peak-utilization-title":"任意采样时刻各账号已用比例之和的峰值;进度条相对于整体容量","providers.accounts-needed":"所需账号数","providers.accounts-needed-title":"将峰值需求控制在整体容量 90% 以下所需的账号数","providers.ideal-accounts":"{ideal} · 现有 {have}","providers.exhaustions":"耗尽次数","providers.exhaustions-title":"该时间范围内观测到的进入耗尽状态的次数","providers.exhausted-n":"{count} 次耗尽","providers.no-snapshots-in-range":"该时间范围内没有用量快照","providers.snapshot-hint":"每当获取用量限额时都会累积用量快照(TUI 底部、/usage、zetacode usage)。","providers.utilization":"窗口利用率","providers.utilization-description":"{window} 各账号的已用比例,{from} – {to}","providers.utilization-description-plain":"各账号已记录的限额利用率","providers.no-utilization-readings":"该窗口没有利用率记录","providers.exhausted":"已耗尽","providers.no-reading":"无读数","providers.high":"偏高","providers.account":"账号","providers.latest-used":"最新已用","providers.status":"状态","providers.peak-in-range":"范围内峰值","providers.snapshots":"快照数","providers.recorded":"记录时间"}};var Lm={en:{"costs.title":"Costs","costs.description":"What {window} of usage would cost at public API rates. Subscription usage without a public price is counted as unpriced, not free.","costs.no-usage-in-range":"No usage in this range","costs.empty-hint":"Pick a wider range in the top bar.","costs.daily-estimate":"Daily estimate","costs.daily-by-model":"Per UTC day, stacked by model","costs.daily-by-component":"Per UTC day, stacked by billing component","costs.split-by":"Split by","costs.by-model":"By model","costs.by-component":"By component","costs.no-priced-usage":"No priced usage in this range","costs.unpriced-requests":"Unpriced requests","costs.where-it-went":"Where it went","costs.estimate-by-component":"Estimate by billing component","costs.unpriced-note-one":"{count} unpriced subscription request is not included.","costs.unpriced-note-n":"{count} unpriced subscription requests are not included.","costs.by-model-description":"Estimate per model with its input, output and cache split","costs.estimate":"Estimate","costs.estimate-title":"API-equivalent estimate at public rates","costs.split":"Split","costs.split-title":"Input · output · cache read · cache write","costs.per-request":"Per request","costs.per-request-title":"Estimate ÷ priced requests","costs.unpriced":"Unpriced","costs.unpriced-column-title":"Requests with no public-equivalent price","costs.api-equivalent-estimate":"API-equivalent estimate","costs.api-estimate-title":"What this usage would cost at public API rates","costs.requests-n":"{count} requests","costs.average-per-day":"Average per day","costs.average-per-day-title":"Estimate ÷ days with any usage","costs.active-days-one":"over {count} active day","costs.active-days-n":"over {count} active days","costs.top-model":"Top model","costs.top-model-hint":"{cost} · {share} of estimate","costs.nothing-priced-yet":"Nothing priced yet","costs.per-priced-request":"Per priced request","costs.per-priced-request-title":"Estimate ÷ requests that have a public price","costs.priced-n":"{count} priced","costs.unpriced-title":"Subscription usage with no public-equivalent price; excluded from the estimate","costs.unpriced-hint":"excluded from the estimate","costs.all-priced":"all usage priced"},"zh-CN":{"costs.title":"费用","costs.description":"按公开 API 费率计算,{window}的用量需要多少费用。没有公开价格的订阅用量计为未定价,而不是免费。","costs.no-usage-in-range":"此时间范围内没有用量","costs.empty-hint":"请在顶栏选择更宽的时间范围。","costs.daily-estimate":"每日估算","costs.daily-by-model":"按 UTC 日统计,按模型堆叠","costs.daily-by-component":"按 UTC 日统计,按计费组件堆叠","costs.split-by":"拆分依据","costs.by-model":"按模型","costs.by-component":"按组件","costs.no-priced-usage":"此时间范围内没有已定价的用量","costs.unpriced-requests":"未定价请求","costs.where-it-went":"费用去向","costs.estimate-by-component":"按计费组件估算","costs.unpriced-note-one":"{count} 个未定价的订阅请求未计入。","costs.unpriced-note-n":"{count} 个未定价的订阅请求未计入。","costs.by-model-description":"按模型估算,并附输入、输出与缓存的拆分","costs.estimate":"估算","costs.estimate-title":"按公开费率计算的 API 等效估算","costs.split":"拆分","costs.split-title":"输入 · 输出 · 缓存读取 · 缓存写入","costs.per-request":"单次请求","costs.per-request-title":"估算值 ÷ 已定价请求数","costs.unpriced":"未定价","costs.unpriced-column-title":"没有公开等效价格的请求","costs.api-equivalent-estimate":"API 等效估算","costs.api-estimate-title":"此用量按公开 API 费率计算需要多少费用","costs.requests-n":"{count} 个请求","costs.average-per-day":"日均","costs.average-per-day-title":"估算值 ÷ 有用量的天数","costs.active-days-one":"共 {count} 个活跃日","costs.active-days-n":"共 {count} 个活跃日","costs.top-model":"费用最高的模型","costs.top-model-hint":"{cost} · 占估算值的 {share}","costs.nothing-priced-yet":"暂无已定价用量","costs.per-priced-request":"单个已定价请求","costs.per-priced-request-title":"估算值 ÷ 有公开价格的请求数","costs.priced-n":"已定价 {count} 个","costs.unpriced-title":"没有公开等效价格的订阅用量;不计入估算","costs.unpriced-hint":"不计入估算","costs.all-priced":"全部用量均已定价"}};var Cm={en:{"requests.description":"Every model call zeta made in {window}, newest first. Open a row for its full payload.","requests.loading":"Loading…","requests.load-latest":"Load latest {count}","requests.status":"Status","requests.status-all":"All","requests.none-in-window":"none in {window}","requests.since":"since {time}","requests.failed-hint":"{rate} · {count} aborted","requests.tokens-hint":"Total tokens across these requests","requests.api-equivalent-cost":"API-equivalent cost","requests.cost-hint":"What these requests would cost at public API rates","requests.unpriced-n":"{count} unpriced","requests.median-duration":"Median duration","requests.p95":"p95 {value}","requests.median-ttft":"Median TTFT","requests.ttft":"TTFT","requests.ttft-hint":"Time to first token","requests.log-title":"Request log","requests.log-loading":"Loading the latest requests…","requests.log-count-in-window":"{shown} of {total} requests in {window}","requests.log-count-latest":"{shown} of the latest {total} requests","requests.search-placeholder":"Model, provider or project","requests.footer":"Showing the latest {count} requests, back to {time}. Older requests in {window} are not loaded.","requests.empty-in-window":"No requests in {window}","requests.empty-no-match":"No requests match","requests.empty-no-match-hint":"Clear the search or status filter.","requests.when":"When","requests.uncached-input":"Uncached input tokens","requests.cache-read-title":"Cache read tokens (hover a cell for cache writes)","requests.cache-write":"Cache write: {count}","requests.cost-estimate":"API-equivalent estimate"},"zh-CN":{"requests.description":"zeta 在 {window} 内发出的每一次模型调用,最新在前。打开某一行可查看其完整载荷。","requests.loading":"加载中…","requests.load-latest":"加载最新 {count} 条","requests.status":"状态","requests.status-all":"全部","requests.none-in-window":"{window} 内没有请求","requests.since":"自 {time} 起","requests.failed-hint":"{rate} · {count} 个已中止","requests.tokens-hint":"这些请求的 Token 总量","requests.api-equivalent-cost":"API 等价费用","requests.cost-hint":"这些请求按公开 API 费率计算的费用","requests.unpriced-n":"{count} 个未定价","requests.median-duration":"耗时中位数","requests.p95":"p95 分位 {value}","requests.median-ttft":"首 Token 延迟中位数","requests.ttft":"首 Token 延迟","requests.ttft-hint":"首 Token 延迟","requests.log-title":"请求日志","requests.log-loading":"正在加载最新请求…","requests.log-count-in-window":"{window} 内共 {total} 个请求,显示 {shown} 个","requests.log-count-latest":"最新 {total} 个请求中显示 {shown} 个","requests.search-placeholder":"模型、服务商或项目","requests.footer":"显示最新 {count} 个请求,回溯至 {time}。{window} 内更早的请求未加载。","requests.empty-in-window":"{window} 内没有请求","requests.empty-no-match":"没有匹配的请求","requests.empty-no-match-hint":"清除搜索内容或状态筛选。","requests.when":"时间","requests.uncached-input":"未缓存输入 Token","requests.cache-read-title":"缓存读取 Token(将鼠标悬停在单元格上可查看缓存写入)","requests.cache-write":"缓存写入:{count}","requests.cost-estimate":"API 等价估算"}};var wm={en:{"errors.title":"Errors","errors.description":"Failed model requests in {window}, grouped by error signature. Open a failure for its full payload.","errors.footer":"Showing the latest {count} failures in {window}; older ones are not loaded.","errors.loading":"Loading…","errors.load-latest":"Load latest {count}","errors.failures":"Failures","errors.hint-in-window":"in {window}","errors.hint-latest-loaded":"latest {count} loaded","errors.signatures":"Signatures","errors.signatures-hint":"Distinct error messages after normalizing ids and numbers","errors.signatures-top":"top: {count} failures","errors.affected-models":"Affected models","errors.last-failure":"Last failure","errors.none-in-window":"none in {window}","errors.error-signatures":"Error signatures","errors.signatures-card-description":"Same message with ids and counters normalized. Select one to filter the failures below.","errors.empty-no-failures":"No failures in {window}","errors.empty-all-succeeded":"Every request succeeded or was aborted.","errors.by-model":"By model","errors.by-model-description":"Failures per model. Select one to filter.","errors.empty-no-affected-models":"No affected models","errors.loading-failures":"Loading failures…","errors.filtered-of-total":"{shown} of {total} failures, newest first","errors.search-placeholder":"Message, model or project","errors.no-match":"No failures match","errors.no-match-hint":"Clear the search or the selected filters.","errors.signature":"Signature","errors.more-models":"+{count} more","errors.last-seen":"Last seen","errors.unknown-error":"Unknown error","errors.group-meta":"{count} failures · first {first} · last {last}","errors.open-latest":"Open latest","errors.when":"When","errors.cost-hint":"API-equivalent estimate"},"zh-CN":{"errors.title":"错误","errors.description":"在 {window} 内失败的模型请求,按错误签名分组。打开某条失败可查看完整载荷。","errors.footer":"显示 {window} 内最新的 {count} 个失败;更早的未加载。","errors.loading":"加载中…","errors.load-latest":"加载最新 {count} 条","errors.failures":"失败","errors.hint-in-window":"{window} 内","errors.hint-latest-loaded":"已加载最新 {count} 条","errors.signatures":"签名","errors.signatures-hint":"对 ID 和数字归一化后不同的错误消息","errors.signatures-top":"最多:{count} 个失败","errors.affected-models":"受影响的模型","errors.last-failure":"最近一次失败","errors.none-in-window":"{window} 内没有失败","errors.error-signatures":"错误签名","errors.signatures-card-description":"同一消息在归一化 ID 和计数后归为一组。选择一项可筛选下方的失败。","errors.empty-no-failures":"{window} 内没有失败","errors.empty-all-succeeded":"所有请求均已成功或被中止。","errors.by-model":"按模型","errors.by-model-description":"各模型的失败数。选择一项可筛选。","errors.empty-no-affected-models":"没有受影响的模型","errors.loading-failures":"正在加载失败…","errors.filtered-of-total":"共 {total} 个失败,显示 {shown} 个,最新在前","errors.search-placeholder":"消息、模型或项目","errors.no-match":"没有匹配的失败","errors.no-match-hint":"清除搜索内容或已选筛选条件。","errors.signature":"签名","errors.more-models":"另有 {count} 个","errors.last-seen":"最近出现","errors.unknown-error":"未知错误","errors.group-meta":"{count} 个失败 · 首次 {first} · 最近 {last}","errors.open-latest":"打开最新","errors.when":"时间","errors.cost-hint":"按 API 价格估算"}};var km={en:{"trace.title":"Traces","trace.description":"Recent sessions with subagent activity folded in. Open one to inspect its timeline.","trace.sessions":"Sessions","trace.session":"Session","trace.most-recent":"{count} most recent","trace.most-recent-filtered":"{shown} of {total} most recent","trace.filter-placeholder":"Filter by title, project, model…","trace.empty-title":"No sessions found","trace.empty-hint":"Run a sync to index recent activity.","trace.no-matching-title":"No matching sessions","trace.no-matching-hint":"Try a different filter.","trace.tool":"Tool","trace.tools":"Tools","trace.agent":"Agent","trace.agents":"Agents","trace.background":"Background","trace.bg":"Bg","trace.refresh":"Refresh trace","trace.timeline":"Timeline","trace.timeline-hint":"W/S zoom · A/D pan · drag pan · wheel zoom · 0 fit · F focus selection · dbl-click focus · Esc deselect","trace.expand-all":"Expand all","trace.collapse-all":"Collapse all","trace.axis-mode":"Axis mode","trace.mode-time-title":"Real wall-clock time","trace.mode-turns-title":"Equal width per user turn","trace.mode-calls-title":"Equal width per model/tool call boundary","trace.turns":"Turns","trace.calls":"Calls","trace.compress-idle":"Compress idle","trace.search-placeholder":"Search spans…","trace.previous-match":"Previous match","trace.next-match":"Next match","trace.transcript":"Transcript","trace.transcript-description":"Every span and marker in order; click to inspect","trace.no-matching-events":"No matching events","trace.canvas-aria":"Trace timeline. W and S zoom, A and D pan, 0 fits all, F focuses the selection.","trace.minimap-aria":"Timeline overview brush","trace.expand-track":"Expand {track}","trace.collapse-track":"Collapse {track}","trace.unterminated":"unterminated","trace.tok":"tok","trace.ttft":"TTFT","trace.wall-time":"Wall time","trace.model-time":"Model time","trace.tool-time":"Tool time","trace.idle":"Idle","trace.tool-calls-n":"{count} tool calls","trace.of-wall":"{percent} of wall","trace.tool-aggregates":"Tool aggregates","trace.tool-aggregates-desc":"{count} tools, by total time","trace.errors":"Errors","trace.failed-n":"{count} failed","trace.avg":"Avg","trace.max":"Max","trace.start":"Start","trace.track":"Track","trace.io-cached":"Input / output / cached","trace.stop-reason":"Stop reason","trace.copy-json":"Copy raw JSON","trace.error-message":"Error message","trace.task":"Task","trace.open-child-track":"Open child track","trace.args":"Args","trace.thinking":"Thinking","trace.text":"Text","trace.raw-entry":"Raw entry","trace.load-failed":"Failed to load entry: {message}"},"zh-CN":{"trace.title":"调用链","trace.description":"最近的会话,已合并子代理活动。打开其中一个即可查看其时间线。","trace.sessions":"会话","trace.session":"会话","trace.most-recent":"最近 {count} 条","trace.most-recent-filtered":"最近 {total} 条中的 {shown} 条","trace.filter-placeholder":"按标题、项目或模型筛选…","trace.empty-title":"未找到会话","trace.empty-hint":"运行一次同步以索引最近的活动。","trace.no-matching-title":"没有匹配的会话","trace.no-matching-hint":"请尝试其他筛选条件。","trace.tool":"工具","trace.tools":"工具","trace.agent":"智能体","trace.agents":"智能体","trace.background":"后台","trace.bg":"背景","trace.refresh":"刷新调用链","trace.timeline":"时间线","trace.timeline-hint":"W/S 缩放 · A/D 平移 · 拖拽平移 · 滚轮缩放 · 0 适应全部 · F 聚焦所选 · 双击聚焦 · Esc 取消选择","trace.expand-all":"全部展开","trace.collapse-all":"全部折叠","trace.axis-mode":"坐标轴模式","trace.mode-time-title":"真实墙钟时间","trace.mode-turns-title":"每个用户轮次等宽","trace.mode-calls-title":"每个模型/工具调用边界等宽","trace.turns":"轮次","trace.calls":"调用次数","trace.compress-idle":"压缩空闲时间","trace.search-placeholder":"搜索跨度…","trace.previous-match":"上一个匹配","trace.next-match":"下一个匹配","trace.transcript":"对话记录","trace.transcript-description":"按顺序列出所有跨度和标记;点击可查看详情","trace.no-matching-events":"没有匹配的事件","trace.canvas-aria":"调用链时间线。W 和 S 缩放,A 和 D 平移,0 适应全部,F 聚焦所选。","trace.minimap-aria":"时间线概览刷选","trace.expand-track":"展开 {track}","trace.collapse-track":"折叠 {track}","trace.unterminated":"未结束","trace.tok":"Token","trace.ttft":"首 Token 延迟","trace.wall-time":"墙钟时间","trace.model-time":"模型耗时","trace.tool-time":"工具耗时","trace.idle":"空闲","trace.tool-calls-n":"{count} 次工具调用","trace.of-wall":"占墙钟时间 {percent}","trace.tool-aggregates":"工具汇总","trace.tool-aggregates-desc":"{count} 个工具,按总耗时排序","trace.errors":"错误","trace.failed-n":"{count} 个失败","trace.avg":"平均","trace.max":"最大","trace.start":"开始","trace.track":"轨道","trace.io-cached":"输入 / 输出 / 缓存读取","trace.stop-reason":"停止原因","trace.copy-json":"复制原始 JSON","trace.error-message":"错误信息","trace.task":"任务","trace.open-child-track":"打开子轨道","trace.args":"参数","trace.thinking":"思考过程","trace.text":"文本","trace.raw-entry":"原始条目","trace.load-failed":"加载条目失败:{message}"}};var Im={en:{"tools.title":"Tools","tools.description":"Which tools zeta called in {window}, how often they failed, and what they cost.","tools.tool-calls":"Tool calls","tools.failed-n":"{count} failed","tools.distinct-tools":"Distinct tools","tools.most-used":"Most used: {tool}","tools.error-rate-title":"Tool results that came back flagged as errors","tools.succeeded-n":"{count} succeeded","tools.attributed-tokens":"Attributed tokens","tools.tokens-output":"{tokens} output","tools.attributed-cost":"Attributed cost","tools.attribution-note":"Tokens and API-equivalent cost of each invoking turn, split evenly across that turn's tool calls","tools.attribution-estimate":"{note}; API-equivalent estimate","tools.unpriced-requests-n":"{count} unpriced requests","tools.api-equivalent":"API-equivalent","tools.result-text":"Result text","tools.result-chars-title":"Characters of tool-result text fed back into context","tools.chars":"{count} chars","tools.call-arguments":"Call arguments","tools.args-chars-title":"Characters of serialized tool-call arguments","tools.avg-result-per-call":"Avg result per call","tools.avg-args-per-call":"Avg arguments per call","tools.calls-over-time":"Calls over time","tools.errors-over-time":"Errors over time","tools.chart-description":"Per {bucket}, top {count} tools stacked","tools.bucket-5m":"5 minutes","tools.bucket-hour":"hour","tools.bucket-day":"day","tools.calls":"Calls","tools.errors":"Errors","tools.no-tool-errors":"No tool errors in this range","tools.by-tool":"By tool","tools.by-tool-description":"{note}. Select a tool to break it down by model.","tools.by-tool-and-model":"By tool and model","tools.by-tool-and-model-description":"Which models call which tools, and how often those calls fail","tools.filter-by-tool":"Filter by tool","tools.all-tools":"All tools","tools.clear-tool-filter":"Clear tool filter","tools.no-tool-calls":"No tool calls in this range","tools.no-calls-to-tool":"No calls to {tool} in this range","tools.tool":"Tool","tools.trend":"Trend","tools.trend-title":"Calls per bucket over the range","tools.share-of-calls":"{percent} of all tool calls","tools.errors-title":"Calls whose result came back flagged as an error","tools.args":"Args","tools.result":"Result","tools.result-per-call":"Result / call","tools.result-per-call-title":"Mean tool-result characters per call","tools.attr-tokens":"Attr. tokens","tools.share-of-tokens":"{percent} of attributed tokens","tools.attr-cost":"Attr. cost","tools.share-of-cost":"{percent} of attributed cost","tools.last-used":"Last used"},"zh-CN":{"tools.title":"工具","tools.description":"zeta 在{window}调用了哪些工具、它们的失败频率如何,以及产生了多少费用。","tools.tool-calls":"工具调用","tools.failed-n":"{count} 个失败","tools.distinct-tools":"不同工具数","tools.most-used":"使用最多:{tool}","tools.error-rate-title":"返回时被标记为错误的工具结果","tools.succeeded-n":"{count} 个成功","tools.attributed-tokens":"归属 Token","tools.tokens-output":"{tokens} 输出","tools.attributed-cost":"归属费用","tools.attribution-note":"每次调用回合的 Token 与 API 等价费用,平均分摊到该回合的各个工具调用","tools.attribution-estimate":"{note};按 API 等价估算","tools.unpriced-requests-n":"{count} 个未定价请求","tools.api-equivalent":"按 API 等价","tools.result-text":"结果文本","tools.result-chars-title":"回填到上下文中的工具结果文本字符数","tools.chars":"{count} 字符","tools.call-arguments":"调用参数","tools.args-chars-title":"序列化后的工具调用参数字符数","tools.avg-result-per-call":"每次调用平均结果","tools.avg-args-per-call":"每次调用平均参数","tools.calls-over-time":"调用次数随时间变化","tools.errors-over-time":"错误数随时间变化","tools.chart-description":"按{bucket}统计,堆叠显示前 {count} 个工具","tools.bucket-5m":"5 分钟","tools.bucket-hour":"小时","tools.bucket-day":"天","tools.calls":"调用次数","tools.errors":"错误数","tools.no-tool-errors":"该时间范围内没有工具错误","tools.by-tool":"按工具","tools.by-tool-description":"{note}。选择某个工具可按模型细分。","tools.by-tool-and-model":"按工具和模型","tools.by-tool-and-model-description":"哪些模型调用了哪些工具,以及这些调用的失败频率","tools.filter-by-tool":"按工具筛选","tools.all-tools":"全部工具","tools.clear-tool-filter":"清除工具筛选","tools.no-tool-calls":"该时间范围内没有工具调用","tools.no-calls-to-tool":"该时间范围内没有对 {tool} 的调用","tools.tool":"工具","tools.trend":"趋势","tools.trend-title":"时间范围内每个分桶的调用次数","tools.share-of-calls":"占全部工具调用的 {percent}","tools.errors-title":"结果返回时被标记为错误的调用","tools.args":"参数","tools.result":"结果","tools.result-per-call":"结果 / 次","tools.result-per-call-title":"每次调用平均工具结果字符数","tools.attr-tokens":"归属 Token","tools.share-of-tokens":"占归属 Token 的 {percent}","tools.attr-cost":"归属费用","tools.share-of-cost":"占归属费用的 {percent}","tools.last-used":"最近使用"}};var Tm={en:{"frustration.estimate-note":"Identical messages share one verdict, and verdicts are cached, so later runs only pay for new messages. Nothing is spent until you proceed.","frustration.column-model-ids":"Model IDs","frustration.column-messages":"Messages","frustration.column-judged":"Judged","frustration.model-versions":"Model versions","frustration.no-model-match":"No model versions match the filters","frustration.small-models-title":"Models with fewer than {count} messages have noisy rates","frustration.hide-regex-title":"Hide models with under {share}% judged messages (rates from regex signals)","frustration.hatch-title":"Under {share}% of these messages are judged; their rates come from regex signals","frustration.regex-badge":"regex","frustration.legend-annoyed-any":"Annoyed, any target","frustration.table-description":"Rates are shares of user messages; rows follow the chart filters.","frustration.running":"Running","frustration.estimating":"Estimating cost…","frustration.failed-n":"{count} failed","frustration.cost-so-far":"cost so far","frustration.elapsed":"elapsed {time}","frustration.in-flight":"{count} in flight","frustration.messages-progress":"{done}/{total} messages","frustration.failed-suffix":", {count} failed","frustration.judge-with":" with {judge}","frustration.in-time":" in {time}","frustration.run-done-line":"Last run judged {progress}{failed}{judge}{elapsed} for {cost}.","frustration.run-cancelled-line":"Last run cancelled after {progress}{failed}; spent {cost}.","frustration.run-failed-line":"Last run failed after {progress}{failed}: {error}. Spent {cost}.","frustration.title":"Frustration","frustration.description":"How often your messages sound annoyed, per model version, in {window}.","frustration.user-messages":"User messages","frustration.user-messages-title":"User messages with prose in range","frustration.judge-coverage":"Judge coverage","frustration.judge-coverage-title":"Messages with a cached judge verdict; the rest use the regex lexicons","frustration.coverage-hint":"{judged} judged · {regex} regex","frustration.coverage-unscored":" · {count} unscored (no lexicon)","frustration.unscored-line":"Messages in a language without a lexicon: {count} — unscored, not calm.","frustration.annoyed":"Annoyed","frustration.annoyed-title":"Messages annoyed at any target","frustration.at-assistant":"At assistant","frustration.at-assistant-title":"Messages annoyed at the assistant","frustration.angry":"Angry","frustration.angry-title":"Messages angry or hostile toward the assistant","frustration.messages-n":"{count} messages","frustration.judge-panel":"Judge classification","frustration.judge-description":"Cached LLM verdicts replace the regex lexicons; unjudged messages fall back to regex signals. Messages in a language no lexicon covers are reported as unscored rather than counted as calm.","frustration.classify":"Classify with judge","frustration.proceed":"Proceed","frustration.starting":"Starting…","frustration.judge-running":"A judge run is in progress","frustration.quote-title":"Quote the cost of judging every unjudged message in range","frustration.estimated-cost":"Estimated cost","frustration.unjudged-messages":"Unjudged unique messages","frustration.prose-chars":"Prose characters","frustration.input-tokens":"Estimated input tokens","frustration.judge-model":"Judge","frustration.all-judged":"Everything in this range is already judged. There is nothing left to classify.","frustration.no-run-yet":"No judge run yet. Classify the unjudged messages to replace regex estimates with verdicts.","frustration.last-run-done":"Last run done","frustration.last-run-cancelled":"Last run cancelled","frustration.last-run-failed":"Last run failed","frustration.not-run-yet":"Not run yet","frustration.regex-only":"Regex only","frustration.cancel-run":"Cancel run","frustration.cancelling":"Cancelling…","frustration.run-judged":"Last run judged {progress}","frustration.run-cancelled-after":"Last run cancelled after {progress}","frustration.run-failed-after":"Last run failed after {progress}","frustration.by-model":"Frustration by model version","frustration.by-model-description":"Share of user messages per model version. Each bar reaches the annoyed rate; the subsets aimed at the assistant stack inside it.","frustration.all-classes":"All","frustration.every-model-class":"Every model class","frustration.model-class":"Model class","frustration.include-small":"Include < {count} messages","frustration.unclassified":"unclassified","frustration.legend-angry":"Angry at assistant","frustration.legend-assistant":"At assistant, not angry","frustration.legend-other":"Annoyed at other targets","frustration.legend-trend":"At assistant trend","frustration.legend-hatched":"Hatched: mostly regex fallback","frustration.legend-hatched-run":"Hatched: mostly regex fallback (run the judge)","frustration.legend-hue":"Hue = model family","frustration.no-messages":"No user messages in this range","frustration.try-longer-range":"Try a longer range.","frustration.mostly-regex":"Mostly regex fallback: run the judge for accurate rates","frustration.row-mostly-regex":" · mostly regex fallback","frustration.stack-relation":"annoyed ⊇ atAssistant ⊇ angry","frustration.unknown-error":"unknown error","frustration.cancelled":"Cancelled","frustration.failed":"Failed","frustration.done":"Done","frustration.model-side-title":"AI breakdown","frustration.model-side-description":"How the model's own replies read, per model version, in {window}.","frustration.model-turns":"Assistant turns","frustration.model-turns-title":"Assistant replies with text in range; tool-call-only replies and thinking blocks are not analyzed","frustration.model-breakdown":"Breakdown rate","frustration.model-breakdown-title":"Share of analyzed turns with at least one breakdown signal","frustration.model-mean":"Signals / turn","frustration.model-mean-title":"Average per-turn aggregate: text markers plus capped failed tool results","frustration.model-self-blame":"Self-blame","frustration.model-self-blame-title":"Turns containing an apology or admission","frustration.model-restatement":"Restatement","frustration.model-restatement-title":"Turns repeating earlier content, by explicit marker or near-duplicate reply","frustration.model-hedge":"Hedged","frustration.model-hedge-title":"Turns with hedged fallbacks: uncertainty or suggested alternatives","frustration.model-spiral":"Tool spirals","frustration.model-spiral-title":"Turns following three or more failed tool results","frustration.model-rambling":"Rambling","frustration.model-rambling-title":"Turns past the verbosity threshold","frustration.model-unscored-line":"Turns in a language without a lexicon: {count} — unscored, not calm.","frustration.model-by-model":"AI breakdown by model version","frustration.model-table-title":"Model breakdown detail","frustration.model-by-model-description":"Share of each model's analyzed turns carrying a breakdown signal. Hue = model family.","frustration.model-over-time":"AI breakdown over time","frustration.model-over-time-description":"Breakdown rate per bucket: turns with a signal over analyzed turns. Gaps are buckets with no turns.","frustration.model-sessions":"Sessions by breakdown","frustration.model-sessions-description":"Sessions with the most analyzed assistant turns.","frustration.model-table-description":"Rates are shares of analyzed assistant turns.","frustration.column-session":"Session","frustration.column-turns":"Turns","frustration.column-mean":"Signals/turn","frustration.column-tool-errors":"Tool errors","frustration.model-no-turns":"No assistant turns with text in this range","frustration.model-try-longer-range":"Try a longer range.","frustration.model-legend-breakdown":"Breakdown rate","frustration.turns-n":"{count} turns","frustration.model-hint-mean":"{value} signals per turn on average"},"zh-CN":{"frustration.estimate-note":"内容相同的消息共用一份结论,且结论会被缓存,因此后续运行只为新消息付费。在你开始之前不会产生任何费用。","frustration.column-model-ids":"模型 ID","frustration.column-messages":"消息数","frustration.column-judged":"已评判","frustration.model-versions":"模型版本","frustration.no-model-match":"没有符合筛选条件的模型版本","frustration.small-models-title":"消息少于 {count} 条的模型比例噪声较大","frustration.hide-regex-title":"隐藏已评判比例低于 {share}% 的模型(其比例来自正则信号)","frustration.hatch-title":"这些消息中已评判比例低于 {share}%,其比例来自正则信号","frustration.regex-badge":"正则","frustration.legend-annoyed-any":"不耐烦(任意对象)","frustration.table-description":"比例为占用户消息的百分比;行跟随图表筛选。","frustration.running":"运行中","frustration.estimating":"正在估算费用…","frustration.failed-n":"{count} 条失败","frustration.cost-so-far":"当前费用","frustration.elapsed":"已用时 {time}","frustration.in-flight":"并发 {count}","frustration.messages-progress":"{done}/{total} 条消息","frustration.failed-suffix":",{count} 条失败","frustration.judge-with":",评判模型 {judge}","frustration.in-time":",用时 {time}","frustration.run-done-line":"上次运行评判了 {progress}{failed}{judge}{elapsed},花费 {cost}。","frustration.run-cancelled-line":"上次运行在 {progress}{failed} 后取消,花费 {cost}。","frustration.run-failed-line":"上次运行在 {progress}{failed} 后失败:{error}。花费 {cost}。","frustration.title":"情绪压力","frustration.description":"按模型版本统计你的消息有多不耐烦({window})。","frustration.user-messages":"用户消息","frustration.user-messages-title":"该时间范围内的用户消息(含正文)","frustration.judge-coverage":"判据覆盖率","frustration.judge-coverage-title":"已有缓存的评判模型结论的消息;其余使用正则词典","frustration.coverage-hint":"{judged} 条已评判 · {regex} 条正则","frustration.coverage-unscored":" · {count} 条未评分(无词典)","frustration.unscored-line":"缺少对应词典的语言:{count} 条 —— 未评分,不代表平静。","frustration.annoyed":"不耐烦","frustration.annoyed-title":"对任何对象不耐烦的消息","frustration.at-assistant":"针对助手","frustration.at-assistant-title":"对助手不耐烦的消息","frustration.angry":"发怒","frustration.angry-title":"对助手发怒或带有敌意的消息","frustration.messages-n":"{count} 条消息","frustration.judge-panel":"评判模型分类","frustration.judge-description":"缓存的模型结论会取代正则词典;未评判的消息回退到正则信号。缺少词典的语言显示为未评分,而不是判定为平静。","frustration.classify":"用评判模型分类","frustration.proceed":"开始","frustration.starting":"正在开始…","frustration.judge-running":"评判任务正在进行","frustration.quote-title":"估算对该范围内所有未评判消息进行判定的成本","frustration.estimated-cost":"预估费用","frustration.unjudged-messages":"未评判的唯一消息","frustration.prose-chars":"正文字符数","frustration.input-tokens":"预估输入 Token","frustration.judge-model":"评判模型","frustration.all-judged":"该范围内已全部评判,没有需要分类的消息。","frustration.no-run-yet":"尚未运行评判。对未评判的消息分类,即可用结论取代正则估算。","frustration.last-run-done":"上次运行完成","frustration.last-run-cancelled":"上次运行已取消","frustration.last-run-failed":"上次运行失败","frustration.not-run-yet":"尚未运行","frustration.regex-only":"仅正则","frustration.cancel-run":"取消运行","frustration.cancelling":"正在取消…","frustration.run-judged":"上次运行已评判 {progress}","frustration.run-cancelled-after":"上次运行在 {progress} 后取消","frustration.run-failed-after":"上次运行在 {progress} 后失败","frustration.by-model":"按模型版本的情绪压力","frustration.by-model-description":"各模型版本中用户消息的占比。每根柱子到达不耐烦比例,其中针对助手的子集叠在其内部。","frustration.all-classes":"全部","frustration.every-model-class":"所有模型类别","frustration.model-class":"模型类别","frustration.include-small":"包含少于 {count} 条消息","frustration.unclassified":"未分类","frustration.legend-angry":"对助手发怒","frustration.legend-assistant":"针对助手但未发怒","frustration.legend-other":"对其他对象不耐烦","frustration.legend-trend":"针对助手趋势","frustration.legend-hatched":"斜线:多为正则回退","frustration.legend-hatched-run":"斜线:多为正则回退(运行评判)","frustration.legend-hue":"色相 = 模型家族","frustration.no-messages":"该时间范围内没有用户消息","frustration.try-longer-range":"试试更长的时间范围。","frustration.mostly-regex":"多为正则回退:运行评判以获得准确比例","frustration.row-mostly-regex":" · 多为正则回退","frustration.stack-relation":"不耐烦 ⊇ 针对助手 ⊇ 发怒","frustration.unknown-error":"未知错误","frustration.cancelled":"已取消","frustration.failed":"失败","frustration.done":"完成","frustration.model-side-title":"AI 崩溃度","frustration.model-side-description":"各模型版本自身回复的读感,统计窗口:{window}。","frustration.model-turns":"助手回合","frustration.model-turns-title":"时间范围内带文本的助手回复;仅含工具调用的回复与思考块不参与分析","frustration.model-breakdown":"崩溃率","frustration.model-breakdown-title":"至少带一个崩溃信号的已分析回合占比","frustration.model-mean":"信号 / 回合","frustration.model-mean-title":"每回合聚合均值:文本标记加上封顶的工具失败数","frustration.model-self-blame":"自责","frustration.model-self-blame-title":"包含道歉或认错的回合","frustration.model-restatement":"重复陈述","frustration.model-restatement-title":"以显式标记或与上一条回复高度相似的方式重复先前内容的回合","frustration.model-hedge":"含糊兜底","frustration.model-hedge-title":"带有含糊兜底的回合:不确定表述或建议替代方案","frustration.model-spiral":"工具失败螺旋","frustration.model-spiral-title":"紧随三个及以上工具失败之后的回合","frustration.model-rambling":"冗长","frustration.model-rambling-title":"超过冗长阈值的回合","frustration.model-unscored-line":"使用无词典语言的回合:{count} — 未评分,而非平静。","frustration.model-by-model":"各模型版本的 AI 崩溃度","frustration.model-table-title":"模型崩溃明细","frustration.model-by-model-description":"每个模型已分析回合中带崩溃信号的占比。色相 = 模型家族。","frustration.model-over-time":"AI 崩溃度随时间变化","frustration.model-over-time-description":"每个时间桶的崩溃率:带信号的回合除以已分析回合。空白表示该桶没有回合。","frustration.model-sessions":"按崩溃度查看会话","frustration.model-sessions-description":"已分析助手回合最多的会话。","frustration.model-table-description":"比例为已分析助手回合的占比。","frustration.column-session":"会话","frustration.column-turns":"回合数","frustration.column-mean":"信号/回合","frustration.column-tool-errors":"工具错误","frustration.model-no-turns":"该时间范围内没有带文本的助手回合","frustration.model-try-longer-range":"试试更长的时间范围。","frustration.model-legend-breakdown":"崩溃率","frustration.turns-n":"{count} 个回合","frustration.model-hint-mean":"平均每回合 {value} 个信号"}};var Rm={en:{"projects.title":"Projects","projects.description":"Usage by session folder in {window}.","projects.folders":"Folders","projects.folder":"Folder","projects.temporary-n":"{count} temporary","projects.failed-n":"{count} failed","projects.api-equivalent-cost":"API-equivalent cost","projects.api-equivalent-cost-hint":"What this usage would cost at public API rates","projects.unpriced-n":"{count} unpriced","projects.conversation-tokens":"Conversation tokens","projects.conversation-tokens-hint":"Uncached input + cache reads + cache writes + output","projects.cache-rate":"Cache rate","projects.cache-rate-hint":"Cache reads ÷ (uncached input + cache reads)","projects.cache-rate-hint-all":"Cache reads ÷ (uncached input + cache reads), across every folder","projects.top-by-cost":"Top by cost","projects.top-by-cost-description":"Share of API-equivalent cost","projects.top-by-requests":"Top by requests","projects.top-by-requests-description":"Share of all requests","projects.folders-n":"{count} folders","projects.folders-of-n":"{count} of {total} folders","projects.hide-temporary":"Hide temporary ({count})","projects.hide-temporary-hint":"Session folders under /tmp or /var/folders","projects.filter-placeholder":"Filter folders…","projects.empty-no-folders":"No project folders in this range","projects.empty-only-temporary":"Only temporary folders in this range","projects.empty-no-match":"No folders match","projects.hint-longer-range":"Try a longer range.","projects.hint-temporary-hidden":"Temporary folders are hidden.","projects.temp":"temp","projects.share-of-requests":"{share} of all requests","projects.share-of-cost":"{share} of all cost","projects.api-equivalent-cost-rates":"API-equivalent cost at public API rates","projects.cache-savings":"Cache savings","projects.cache-savings-hint":"Prompt-input cost saved versus billing the same tokens uncached","projects.errors":"Errors","projects.avg-duration":"Avg duration","projects.last-active":"Last active"},"zh-CN":{"projects.title":"项目","projects.description":"{window}内按会话文件夹统计的用量。","projects.folders":"文件夹","projects.folder":"文件夹","projects.temporary-n":"{count} 个临时","projects.failed-n":"{count} 个失败","projects.api-equivalent-cost":"API 等效费用","projects.api-equivalent-cost-hint":"这些用量按公开 API 费率计算所需的费用","projects.unpriced-n":"{count} 个未计价","projects.conversation-tokens":"对话 Token","projects.conversation-tokens-hint":"未缓存输入 + 缓存读取 + 缓存写入 + 输出","projects.cache-rate":"缓存命中率","projects.cache-rate-hint":"缓存读取 ÷(未缓存输入 + 缓存读取)","projects.cache-rate-hint-all":"缓存读取 ÷(未缓存输入 + 缓存读取),覆盖所有文件夹","projects.top-by-cost":"费用最高","projects.top-by-cost-description":"占 API 等效费用的比例","projects.top-by-requests":"请求最多","projects.top-by-requests-description":"占全部请求的比例","projects.folders-n":"{count} 个文件夹","projects.folders-of-n":"{total} 个文件夹中的 {count} 个","projects.hide-temporary":"隐藏临时文件夹({count})","projects.hide-temporary-hint":"/tmp 或 /var/folders 下的会话文件夹","projects.filter-placeholder":"筛选文件夹…","projects.empty-no-folders":"该时间范围内没有项目文件夹","projects.empty-only-temporary":"该时间范围内只有临时文件夹","projects.empty-no-match":"没有匹配的文件夹","projects.hint-longer-range":"试试更长的时间范围。","projects.hint-temporary-hidden":"临时文件夹已隐藏。","projects.temp":"临时","projects.share-of-requests":"占全部请求的 {share}","projects.share-of-cost":"占全部费用的 {share}","projects.api-equivalent-cost-rates":"按公开 API 费率计算的等效费用","projects.cache-savings":"缓存节省","projects.cache-savings-hint":"同样的 Token 按未缓存计费时,提示输入费用节省的比例","projects.errors":"错误","projects.avg-duration":"平均耗时","projects.last-active":"最近活动"}};var Am={en:{"gain.title":"Gain","gain.description":"Tokens snapcompact kept out of context in {window}.","gain.description-scoped":"Tokens snapcompact kept out of context for {project} in {window}.","gain.all-projects":"All projects","gain.empty-title":"No savings recorded in {window}","gain.empty-title-scoped":"No savings recorded for {project} in {window}","gain.empty-hint-all":"Savings appear here once snapcompact compacts tool output.","gain.empty-hint-longer-range":"Try a longer range.","gain.saved-tokens":"Saved tokens","gain.saved-bytes":"Saved bytes","gain.reduction":"Reduction","gain.reduction-title":"Saved bytes ÷ original bytes, when the original size is known","gain.reduction-unknown":"original size not recorded","gain.hits":"Hits","gain.saved-per-hit":"Saved per hit","gain.savings-over-time":"Savings over time","gain.savings-over-time-description":"Tokens saved per UTC day, with the running total","gain.saved-per-day":"Saved per day","gain.cumulative":"Cumulative","gain.by-source":"By source","gain.by-source-description":"Savings per subsystem","gain.source":"Source"},"zh-CN":{"gain.title":"收益","gain.description":"在{window}内被 snapcompact 挡在上下文之外的 Token。","gain.description-scoped":"在{window}内被 snapcompact 为 {project} 挡在上下文之外的 Token。","gain.all-projects":"全部项目","gain.empty-title":"在{window}内没有节省记录","gain.empty-title-scoped":"在{window}内没有 {project} 的节省记录","gain.empty-hint-all":"snapcompact 压缩工具输出后,节省量会显示在这里。","gain.empty-hint-longer-range":"请尝试更长的时间范围。","gain.saved-tokens":"节省的 Token","gain.saved-bytes":"节省的字节","gain.reduction":"节省比例","gain.reduction-title":"原始大小已知时,节省字节 ÷ 原始字节","gain.reduction-unknown":"未记录原始大小","gain.hits":"命中次数","gain.saved-per-hit":"每次命中节省","gain.savings-over-time":"节省趋势","gain.savings-over-time-description":"每个 UTC 日节省的 Token,以及累计总量","gain.saved-per-day":"每日节省","gain.cumulative":"累计","gain.by-source":"按来源","gain.by-source-description":"各子系统节省量","gain.source":"来源"}};var Mm={en:{"ui.table-shown-of":"{shown} of {total}","ui.show-fewer":"Show fewer","ui.retry":"Retry","ui.delta-new":"new","ui.json":"JSON","ui.trace":"Trace","ui.open-trace":"Open this request's session in the trace view","ui.status-ok":"OK","ui.section-timing":"Timing","ui.time-to-first-token":"Time to first token","ui.uncached-input":"Uncached input","ui.section-cost":"API-equivalent cost","ui.section-identity":"Identity","ui.stop-reason":"Stop reason","ui.api":"API","ui.session-file":"Session file","ui.stats-row":"Stats row"},"zh-CN":{"ui.table-shown-of":"已显示 {shown} / 共 {total}","ui.show-fewer":"收起","ui.retry":"重试","ui.delta-new":"新增","ui.json":"JSON 数据","ui.trace":"调用链","ui.open-trace":"在调用链视图中打开该请求的会话","ui.status-ok":"正常","ui.section-timing":"时间","ui.time-to-first-token":"首 Token 延迟","ui.uncached-input":"未缓存输入","ui.section-cost":"API 等价费用","ui.section-identity":"标识","ui.stop-reason":"停止原因","ui.api":"接口","ui.session-file":"会话文件","ui.stats-row":"统计行"}};var Dm={en:{},"zh-CN":{}};var u2={...ym.en,...vm.en,...bm.en,...xm.en,...Sm.en,...Lm.en,...Cm.en,...wm.en,...km.en,...Im.en,...Tm.en,...Rm.en,...Am.en,...Mm.en,...Dm.en},s1={id:"en",messages:u2};var i2={...ym["zh-CN"],...vm["zh-CN"],...bm["zh-CN"],...xm["zh-CN"],...Sm["zh-CN"],...Lm["zh-CN"],...Cm["zh-CN"],...wm["zh-CN"],...km["zh-CN"],...Im["zh-CN"],...Tm["zh-CN"],...Rm["zh-CN"],...Am["zh-CN"],...Mm["zh-CN"],...Dm["zh-CN"]},u1={id:"zh-CN",messages:i2};function c2(){return globalThis.__ZETA_STATS_LOCALE__}var d2={en:s1.messages,"zh-CN":u1.messages},i1="zeta.stats.locale",Yv=new Set,qm="en";p2();function un(){return qm}function c1(l){return Yv.add(l),()=>{Yv.delete(l)}}function Em(l){return qm=gm(l),qm}function d1(l){let c=Em(l);try{globalThis.localStorage?.setItem(i1,c)}catch{}for(let i of[...Yv])i();return c}function f2(){try{let l=globalThis.localStorage?.getItem(i1);if(!l)return;let c=gm(l);return c==="en"||c==="zh-CN"?c:void 0}catch{return}}function p2(){let l=f2();if(l)return Em(l);let c=c2();if(c)return Em(c);if(typeof navigator>"u")return"en";return Em(n1(navigator.languages))}function s(l,c){return l1(qm,l,d2,c)}var p1=60000,Om=60*p1,cn=24*Om,$v={"1h":{labelKey:"common.range-1h",windowKey:"common.window-1h",spanMs:Om,bucketMs:5*p1},"24h":{labelKey:"common.range-24h",windowKey:"common.window-24h",spanMs:cn,bucketMs:Om},"7d":{labelKey:"common.range-7d",windowKey:"common.window-7d",spanMs:7*cn,bucketMs:cn},"30d":{labelKey:"common.range-30d",windowKey:"common.window-30d",spanMs:30*cn,bucketMs:cn},"90d":{labelKey:"common.range-90d",windowKey:"common.window-90d",spanMs:90*cn,bucketMs:cn},all:{labelKey:"common.range-all",windowKey:"common.window-all",spanMs:null,bucketMs:cn}},m2=1500,hi=["1h","24h","7d","30d","90d","all"];function sa(l){return $v[l]}var Qv={hour:"2-digit",minute:"2-digit",hourCycle:"h23"},Kv={month:"short",day:"numeric"},f1=new Map;function Od(l,c){let i=un(),d=`${i}:${l}`,p=f1.get(d);if(!p)p=new Intl.DateTimeFormat(i,c),f1.set(d,p);return p}function Nm(l,c){if(c<Om)return Od("hm",Qv).format(l);if(c<cn)return Od("mdhm",{...Kv,...Qv}).format(l);return Od("md",Kv).format(l)}function Bm(l,c){return c<cn?Od("hm",Qv).format(l):Od("md",Kv).format(l)}function ho(l,c,i=$v[l].bucketMs,d=Date.now()){let p=Math.floor(d/i)*i,x=$v[l].spanMs,g;if(x!==null)g=Math.floor((d-x)/i)*i;else{g=p;for(let S of c)if(S<g)g=S;g=Math.floor(g/i)*i}g=Math.max(g,p-(m2-1)*i);let b=[];for(let S=g;S<=p;S+=i)b.push(S);return b}var m1=Q(ct(),1);function Ql(){return m1.useSyncExternalStore(c1,un,un)}var Nd=Q(ct(),1);class Zv extends Error{status;endpoint;constructor(l,c,i){super(i);this.name="ApiError",this.status=l,this.endpoint=c}}async function g1(l,c){try{let i=await l.json();if(typeof i==="object"&&i!==null&&"error"in i&&typeof i.error==="string")return i.error}catch{}return`HTTP error ${l.status} on ${c}`}var h1=new WeakMap;async function Ma(l,c,i){let d=typeof i==="object"&&i!==null?h1.get(i):void 0,p=c;if(d){let S=new Headers(c?.headers);S.set("If-None-Match",d),p={...c,headers:S}}let x=await fetch(l,p);if(x.status===304&&d)return i;if(!x.ok)throw new Zv(x.status,l,await g1(x,l));let g=await x.json(),b=x.headers.get("ETag");if(b&&typeof g==="object"&&g!==null)h1.set(g,b);return g}var Wv={"X-Zeta-Stats-Action":"1"};async function y1(l="24h",c){return Ma(`/api/stats/overview?range=${encodeURIComponent(l)}`,{signal:c})}async function v1(l="24h",c){return Ma(`/api/stats/model-dashboard?range=${encodeURIComponent(l)}`,{signal:c})}async function b1(l="24h",c){return Ma(`/api/stats/costs?range=${encodeURIComponent(l)}`,{signal:c})}async function zm(l=50,c){return Ma(`/api/stats/recent?limit=${l}`,{signal:c})}async function x1(l="24h",c=50,i){return Ma(`/api/stats/errors?range=${encodeURIComponent(l)}&limit=${c}`,{signal:i})}async function S1(l,c){return Ma(`/api/request/${l}`,{signal:c})}async function L1(l){let{closable:c}=await Ma("/api/close",{signal:l});return c}async function C1(){let c=await fetch("/api/close",{method:"POST",headers:Wv});if(!c.ok)throw new Zv(c.status,"/api/close",await g1(c,"/api/close"))}async function w1(){return Ma("/api/sync",{method:"POST"})}async function k1(l="24h",c){return Ma(`/api/stats/frustration?range=${encodeURIComponent(l)}`,{signal:c})}async function I1(l,c){return Ma(`/api/frustration/estimate?range=${encodeURIComponent(l)}`,{signal:c})}async function T1(l){return Ma(`/api/frustration/judge?range=${encodeURIComponent(l)}`,{method:"POST",headers:Wv})}async function R1(){return Ma("/api/frustration/cancel",{method:"POST",headers:Wv})}async function A1(l="24h",c){return Ma(`/api/stats/folders?range=${encodeURIComponent(l)}`,{signal:c})}async function M1(l="24h",c,i){let d=new URLSearchParams({range:l});if(c)d.set("project",c);return Ma(`/api/stats/gain?${d}`,{signal:i})}async function D1(l="24h",c){return Ma(`/api/stats/tools?range=${encodeURIComponent(l)}`,{signal:c})}async function E1(l="24h",c){return Ma(`/api/stats/providers?range=${encodeURIComponent(l)}`,{signal:c})}async function Jv(l,c,i){let d=new URLSearchParams({range:l});if(c!==null)d.set("provider",c);return Ma(`/api/stats/provider-windows?${d}`,{signal:i})}async function q1(l=100,c,i){let d=new URLSearchParams({limit:String(l)});if(c)d.set("q",c);return Ma(`/api/sessions?${d}`,{signal:i})}async function O1(l,c,i){return Ma(`/api/session/trace?file=${encodeURIComponent(l)}`,{signal:c,cache:"no-store"},i)}async function N1(l,c,i){return Ma(`/api/session/entry?file=${encodeURIComponent(l)}&id=${encodeURIComponent(c)}`,{signal:i})}var g2={phase:"idle",current:0,total:0,processed:0,lastSyncedAt:null,error:null};function y2(){w1().catch(()=>{})}var B1=null,z1=0,Um=0,Kl={sync:g2,indexingHours:0,connected:!1,requestSync:y2},tb=new Set;function U1(l){return tb.add(l),()=>tb.delete(l)}function P1(){for(let l of tb)l()}function v2(l,c){return l.phase===c.phase&&l.current===c.current&&l.total===c.total&&l.processed===c.processed&&l.lastSyncedAt===c.lastSyncedAt&&l.error===c.error}function b2(l){if(B1!==l.version)B1=l.version,z1++;let c=Math.max(0,z1-1),i=l.indexingHours!==Kl.indexingHours||!v2(l.sync,Kl.sync);if(!i&&c===Um)return;if(Um=c,i)Kl={...Kl,sync:l.sync,indexingHours:l.indexingHours};P1()}function eb(l){if(l===Kl.connected)return;Kl={...Kl,connected:l},P1()}var x2=()=>Kl,S2=()=>Um,L2=()=>-1;function ab(){return Um}function _1({children:l}){return Nd.useEffect(()=>{let c=new EventSource("/api/events");return c.onopen=()=>eb(!0),c.onerror=()=>eb(!1),c.onmessage=(i)=>b2(JSON.parse(i.data)),()=>{c.close(),eb(!1)}},[]),l}function Pm(){return Nd.useSyncExternalStore(U1,x2)}function H1(l=!0){return Nd.useSyncExternalStore(U1,l?S2:L2)}var _m=Q(ue(),1);function Ut({tone:l="neutral",mono:c,children:i}){return _m.jsxDEV("span",{className:"badge","data-tone":l,"data-mono":c??!1,children:i},void 0,!1,void 0,this)}function dn({tone:l="neutral",pulse:c}){return _m.jsxDEV("span",{className:"dot","data-tone":l,"data-pulse":c??!1},void 0,!1,void 0,this)}function Cr({color:l}){return _m.jsxDEV("span",{className:"swatch",style:{background:l}},void 0,!1,void 0,this)}function fn(l){if(l>=0.05)return"bad";if(l>=0.01)return"warn";return"ok"}var wo=Q(ue(),1);function Be({title:l,description:c,actions:i,flush:d,footer:p,className:x,index:g,stale:b,children:S}){let L=l!==void 0||c!==void 0||i!==void 0;return wo.jsxDEV("section",{className:x?`card rise ${x}`:"card rise",style:g!==void 0?{"--i":g}:void 0,children:[L&&wo.jsxDEV("header",{className:"card-header",children:[wo.jsxDEV("div",{className:"card-titles",children:[l!==void 0&&wo.jsxDEV("h2",{className:"card-title",children:l},void 0,!1,void 0,this),c!==void 0&&wo.jsxDEV("p",{className:"card-description",children:c},void 0,!1,void 0,this)]},void 0,!0,void 0,this),i!==void 0&&wo.jsxDEV("div",{className:"card-actions",children:i},void 0,!1,void 0,this)]},void 0,!0,void 0,this),wo.jsxDEV("div",{className:"card-body","data-flush":d??!1,"data-stale":b??!1,children:S},void 0,!1,void 0,this),p!==void 0&&wo.jsxDEV("footer",{className:"card-footer",children:p},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function ua({title:l,description:c,actions:i}){return wo.jsxDEV("header",{className:"page-header rise",children:[wo.jsxDEV("div",{children:[wo.jsxDEV("h1",{className:"page-title",children:l},void 0,!1,void 0,this),c!==void 0&&wo.jsxDEV("p",{className:"page-description",children:c},void 0,!1,void 0,this)]},void 0,!0,void 0,this),i!==void 0&&wo.jsxDEV("div",{className:"page-actions",children:i},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}var Bd=Q(ct(),1),F1=Q(cd(),1),Za=Q(ue(),1);function Hm({open:l,onClose:c,title:i,subtitle:d,actions:p,width:x,children:g}){let b=Bd.useRef(c);b.current=c;let S=Bd.useRef(null);if(Bd.useEffect(()=>{if(!l)return;let L=document.activeElement instanceof HTMLElement?document.activeElement:null;S.current?.focus();let h=(C)=>{if(C.key==="Escape")C.preventDefault(),b.current()};return window.addEventListener("keydown",h),()=>{window.removeEventListener("keydown",h),L?.focus()}},[l]),!l)return null;return F1.createPortal(Za.jsxDEV(Za.Fragment,{children:[Za.jsxDEV("div",{className:"drawer-scrim",onClick:c,role:"presentation"},void 0,!1,void 0,this),Za.jsxDEV("div",{ref:S,className:"drawer",role:"dialog","aria-modal":"true",tabIndex:-1,style:x!==void 0?{"--drawer-w":`${x}px`}:void 0,children:[Za.jsxDEV("header",{className:"drawer-header",children:[Za.jsxDEV("div",{className:"drawer-titles",children:[Za.jsxDEV("h2",{className:"drawer-title",children:i},void 0,!1,void 0,this),d!==void 0&&Za.jsxDEV("div",{className:"drawer-subtitle",children:d},void 0,!1,void 0,this)]},void 0,!0,void 0,this),p,Za.jsxDEV("button",{type:"button",className:"btn","data-variant":"ghost","data-icon":"true",onClick:c,"aria-label":"Close",children:Za.jsxDEV(ao,{size:16},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),Za.jsxDEV("div",{className:"drawer-body",children:g},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),document.body)}function Go({items:l}){return Za.jsxDEV("dl",{className:"kv",style:{margin:0},children:l.map((c)=>Za.jsxDEV("div",{className:"kv-item",children:[Za.jsxDEV("dt",{className:"kv-key",children:c.label},void 0,!1,void 0,this),Za.jsxDEV("dd",{className:"kv-value",style:{margin:0},children:c.value},void 0,!1,void 0,this)]},c.key,!0,void 0,this))},void 0,!1,void 0,this)}var Zs=Q(ct(),1);var wr=Q(ue(),1);function gi({data:l,title:c=s("ui.json"),initialCollapsed:i=!1}){let[d,p]=Zs.useState(i),[x,g]=Zs.useState(!1),b=Zs.useRef(0),S=JSON.stringify(l,null,2);return Zs.useEffect(()=>()=>window.clearTimeout(b.current),[]),wr.jsxDEV("div",{className:"stack",style:{gap:6},children:[wr.jsxDEV("div",{className:"row",style:{justifyContent:"space-between"},children:[wr.jsxDEV("button",{type:"button",className:"btn","data-variant":"ghost","data-size":"sm",onClick:()=>p((h)=>!h),"aria-expanded":!d,children:[d?wr.jsxDEV(Lr,{size:13},void 0,!1,void 0,this):wr.jsxDEV($s,{size:13},void 0,!1,void 0,this),c]},void 0,!0,void 0,this),wr.jsxDEV("button",{type:"button",className:"btn","data-variant":"ghost","data-size":"sm",onClick:async()=>{try{await navigator.clipboard.writeText(S),g(!0),window.clearTimeout(b.current),b.current=window.setTimeout(()=>g(!1),1500)}catch{}},children:[x?wr.jsxDEV(Ys,{size:13},void 0,!1,void 0,this):wr.jsxDEV(Qs,{size:13},void 0,!1,void 0,this),x?s("common.copied"):s("common.copy")]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),!d&&wr.jsxDEV("pre",{className:"code-block",children:wr.jsxDEV("code",{children:S},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}var Ws=Q(ct(),1),G1=Q(cd(),1);var kr=Q(ue(),1);function V1({open:l,title:c,onClose:i,primaryAction:d,cancelLabel:p=s("common.cancel"),children:x}){let g=Ws.useRef(null),b=Ws.useRef(null),S=Ws.useRef(i);S.current=i,Ws.useEffect(()=>{if(!l)return;let w=document.activeElement instanceof HTMLElement?document.activeElement:null,T=(k)=>{if(k.key==="Escape")k.preventDefault(),S.current()};return window.addEventListener("keydown",T),()=>{window.removeEventListener("keydown",T),w?.focus()}},[l]);let L=d!==void 0,h=d?.disabled??!1;if(Ws.useEffect(()=>{if(!l)return;(L&&!h?g.current:b.current)?.focus()},[l,L,h]),!l)return null;return G1.createPortal(kr.jsxDEV("div",{className:"modal-overlay",onClick:(w)=>{if(w.target===w.currentTarget)i()},role:"presentation",children:kr.jsxDEV("div",{className:"modal",role:"dialog","aria-modal":"true","aria-labelledby":"modal-title",children:[kr.jsxDEV("div",{className:"modal-header",children:[kr.jsxDEV("h2",{id:"modal-title",className:"modal-title",children:c},void 0,!1,void 0,this),kr.jsxDEV("button",{type:"button",className:"btn","data-variant":"ghost","data-icon":"true","data-size":"sm",onClick:i,"aria-label":s("common.close"),children:kr.jsxDEV(ao,{size:15},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),kr.jsxDEV("div",{className:"modal-body",children:x},void 0,!1,void 0,this),kr.jsxDEV("div",{className:"modal-footer",children:[kr.jsxDEV("button",{ref:b,type:"button",className:"btn",onClick:i,children:p},void 0,!1,void 0,this),d&&kr.jsxDEV("button",{ref:g,type:"button",className:"btn","data-variant":"primary",onClick:d.onClick,disabled:d.disabled,children:d.label},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this),document.body)}var Fm=Q(ue(),1);function pn({value:l,onChange:c,placeholder:i=s("common.filter"),label:d="Filter",width:p}){return Fm.jsxDEV("label",{className:"search",children:[Fm.jsxDEV(Dd,{size:14},void 0,!1,void 0,this),Fm.jsxDEV("input",{className:"input",type:"search","aria-label":d,value:l,placeholder:i,onChange:(x)=>c(x.target.value),style:p!==void 0?{width:p}:void 0},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}var yi=Q(ct(),1),Gm=Q(ue(),1);function Fa({options:l,value:c,onChange:i,size:d="md","aria-label":p}){let x=yi.useRef(null),[g,b]=yi.useState(null);return yi.useLayoutEffect(()=>{let S=x.current,L=S?.querySelector('[data-active="true"]');if(!S||!L){b(null);return}let h=()=>b({left:L.offsetLeft,width:L.offsetWidth});h();let C=new ResizeObserver(h);return C.observe(S),()=>C.disconnect()},[c,l]),Gm.jsxDEV("div",{ref:x,className:"segmented","data-size":d,role:"radiogroup","aria-label":p,children:[g&&Gm.jsxDEV("span",{className:"segmented-thumb",style:{left:g.left,width:g.width}},void 0,!1,void 0,this),l.map((S)=>Gm.jsxDEV("button",{type:"button",role:"radio","aria-checked":S.value===c,className:"segmented-option","data-active":S.value===c,title:S.title,onClick:()=>i(S.value),children:S.label},S.value,!1,void 0,this))]},void 0,!0,void 0,this)}var xi=Q(ct(),1);var vi=Q(ct(),1);function Vm(){let l=vi.useRef(null),[c,i]=vi.useState(0);return vi.useLayoutEffect(()=>{let d=l.current;if(!d)return;i(d.clientWidth);let p=new ResizeObserver((x)=>{let g=Math.round(x[0]?.contentRect.width??0);i((b)=>b===g?b:g)});return p.observe(d),()=>p.disconnect()},[]),[l,c]}var zd=Q(ue(),1);function bi({values:l,color:c="var(--chart-primary)",height:i=28,width:d,area:p=!0}){let[x,g]=Vm(),b=d??g,S=Math.max(0,...l),L=l.length,h="";if(b>0&&L>0){let C=L>1?b/(L-1):0;for(let w=0;w<L;w++){let T=L>1?w*C:b/2,k=S>0?i-2-l[w]/S*(i-4):i-2;h+=`${w===0?"M":"L"}${T.toFixed(1)},${k.toFixed(1)}`}}return zd.jsxDEV("div",{ref:x,className:"sparkline",style:{width:d??"100%",height:i},children:b>0&&L>0&&zd.jsxDEV("svg",{width:b,height:i,"aria-hidden":"true",children:[p&&zd.jsxDEV("path",{className:"area",d:`${h}L${b},${i}L0,${i}Z`,fill:c},void 0,!1,void 0,this),zd.jsxDEV("path",{className:"chart-line",d:h,stroke:c},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)}var lr=Q(ue(),1);function se({label:l,value:c,hint:i,delta:d,spark:p,sparkColor:x,size:g="md",title:b}){let S=k2(typeof c==="string"||typeof c==="number"?c:null);return lr.jsxDEV("div",{className:"stat","data-size":g,title:b,children:[lr.jsxDEV("div",{className:"stat-label",children:l},void 0,!1,void 0,this),lr.jsxDEV("div",{className:"stat-value","data-flash":S,children:c},void 0,!1,void 0,this),(i!==void 0||d)&&lr.jsxDEV("div",{className:"stat-foot",children:[d&&lr.jsxDEV(w2,{...d},void 0,!1,void 0,this),i!==void 0&&lr.jsxDEV("span",{className:"truncate",children:i},void 0,!1,void 0,this)]},void 0,!0,void 0,this),p&&p.length>1&&lr.jsxDEV("div",{className:"stat-spark",children:lr.jsxDEV(bi,{values:p,color:x},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function oa({min:l,children:c}){return lr.jsxDEV("div",{className:"stat-grid rise",style:l!==void 0?{"--stat-min":`${l}px`}:void 0,children:c},void 0,!1,void 0,this)}function w2({change:l,good:c="up"}){if(l===null||!Number.isFinite(l))return lr.jsxDEV("span",{className:"delta",children:"new"},void 0,!1,void 0,this);let i=Math.abs(l)<0.0005?0:l,d=i===0?void 0:i>0===(c==="up")?"good":"bad",p=i>0?"+":i<0?"−":"±",x=Math.abs(i)*100;return lr.jsxDEV("span",{className:"delta","data-tone":d,children:[p,x>=100?x.toFixed(0):x.toFixed(1),"%"]},void 0,!0,void 0,this)}function k2(l){let c=xi.useRef(l),[i,d]=xi.useState(!1);return xi.useEffect(()=>{if(c.current===l)return;let p=c.current!==null;if(c.current=l,!p)return;d(!0);let x=setTimeout(()=>d(!1),900);return()=>clearTimeout(x)},[l]),i}var ya=Q(ue(),1);function gt({title:l=s("common.nothing-here-yet"),hint:c}){return ya.jsxDEV("div",{className:"empty",children:[ya.jsxDEV(wd,{size:20},void 0,!1,void 0,this),ya.jsxDEV("div",{className:"empty-title",children:l},void 0,!1,void 0,this),c!==void 0&&ya.jsxDEV("div",{className:"empty-hint",children:c},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function Si({error:l,onRetry:c}){return ya.jsxDEV("div",{className:"error-state",role:"alert",children:[ya.jsxDEV(Yl,{size:15},void 0,!1,void 0,this),ya.jsxDEV("span",{className:"error-state-message",children:typeof l==="string"?l:l.message},void 0,!1,void 0,this),c&&ya.jsxDEV("button",{type:"button",className:"btn","data-size":"sm","data-variant":"ghost",onClick:c,children:[ya.jsxDEV(Md,{size:13},void 0,!1,void 0,this)," ",s("ui.retry")]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)}function Ba({width:l="100%",height:c=14,style:i}){return ya.jsxDEV("div",{className:"skeleton",style:{width:l,height:c,...i}},void 0,!1,void 0,this)}function Mt({height:l=220}){return ya.jsxDEV(Ba,{height:l,style:{borderRadius:8}},void 0,!1,void 0,this)}function ra({rows:l=6}){return ya.jsxDEV("div",{style:{display:"flex",flexDirection:"column",gap:10,padding:"8px 16px 16px"},children:Array.from({length:l},(c,i)=>ya.jsxDEV(Ba,{height:16,width:`${92-i*13%30}%`},i,!1,void 0,this))},void 0,!1,void 0,this)}function _e({query:l,skeleton:c,isEmpty:i,empty:d,children:p}){if(l.data===null){if(l.error)return ya.jsxDEV(Si,{error:l.error,onRetry:l.refetch},void 0,!1,void 0,this);return ya.jsxDEV(ya.Fragment,{children:c},void 0,!1,void 0,this)}return ya.jsxDEV(ya.Fragment,{children:[l.error&&ya.jsxDEV(Si,{error:l.error,onRetry:l.refetch},void 0,!1,void 0,this),i?.(l.data)?d??ya.jsxDEV(gt,{},void 0,!1,void 0,this):p(l.data)]},void 0,!0,void 0,this)}var eu=Q(ct(),1);function rb(){return un()}function B(l){return l.toLocaleString(rb())}function De(l){return l.toLocaleString(rb(),{notation:"compact"})}function da(l,c){if(l===0)return"$0";let i=c!==void 0?c:l>0&&l<0.01?4:2;return`$${l.toLocaleString(rb(),{minimumFractionDigits:i,maximumFractionDigits:i})}`}function Ft(l,c,i){return l===0&&c>0?"N/A":da(l,i)}function nb(l){return l.usage.totalTokens>0&&l.usage.cost.total===0&&(l.provider==="xai-oauth"||l.costUnpriced===!0)}function Zl(l,c){return Ft(l.usage.cost.total,nb(l)?1:0,c)}function je(l,c=1){return`${(l*100).toFixed(c)}%`}function oo(l){let c=l*100;if(c>0&&c<0.005)return"<0.01%";return je(l,c>0&&c<0.1?2:1)}function Dt(l,c){if(l===null)return"-";let i=l/1000,d=c!==void 0?c:i<1?2:1;return`${i.toFixed(d)}s`}function Js(l){if(l<60000)return Dt(l);let c=Math.floor(l/60000);if(c<60)return`${c}m ${String(Math.floor(l%60000/1000)).padStart(2,"0")}s`;return`${Math.floor(c/60)}h ${String(c%60).padStart(2,"0")}m`}function mn(l){if(l===null)return"-";return l.toFixed(1)}var ob=[["second",1000],["minute",60000],["hour",3600000],["day",86400000],["month",2629800000],["year",31557600000]],j1=new Map,jm=new Map;function fa(l,c=Date.now()){let i=un(),d=j1.get(i);if(!d)d=new Intl.RelativeTimeFormat(i,{numeric:"auto"}),j1.set(i,d);let p=l-c,x=0;for(let S=1;S<ob.length;S++)if(Math.abs(p)>=ob[S][1])x=S;let[g,b]=ob[x];return d.format(Math.round(p/b),g)}function lb(l){let c=un(),i=`${c}:mdhm`,d=jm.get(i);if(!d)d=new Intl.DateTimeFormat(c,{month:"short",day:"numeric",hour:"2-digit",minute:"2-digit",hourCycle:"h23"}),jm.set(i,d);return d.format(l)}function sr(l){let c=un(),i=jm.get(c);if(!i)i=new Intl.DateTimeFormat(c,{month:"short",day:"numeric",hour:"2-digit",minute:"2-digit",second:"2-digit",hourCycle:"h23"}),jm.set(c,i);return i.format(l)}function hn(l){return l.replace(/^\/+|\/+$/g,"")||s("common.root")}function sb(l){if(l>=1e9)return`${(l/1e9).toFixed(1)} GB`;if(l>=1e6)return`${(l/1e6).toFixed(1)} MB`;if(l>=1000)return`${(l/1000).toFixed(1)} KB`;return`${l} B`}var Et=Q(ue(),1);function Ht({columns:l,rows:c,rowKey:i,onRowClick:d,selectedKey:p,initialSort:x,limit:g,dense:b,empty:S,expanded:L}){let[h,C]=eu.useState(x??null),[w,T]=eu.useState(g??Number.POSITIVE_INFINITY),k=eu.useMemo(()=>{let U=h?l.find((F)=>F.key===h.key):void 0;if(!h||!U?.sort)return c;let P=U.sort,X=h.dir==="asc"?1:-1;return[...c].sort((F,me)=>{let W=P(F),re=P(me);if(typeof W==="number"&&typeof re==="number")return(W-re)*X;return String(W).localeCompare(String(re))*X})},[c,l,h]);if(c.length===0)return Et.jsxDEV(Et.Fragment,{children:S??Et.jsxDEV(gt,{},void 0,!1,void 0,this)},void 0,!1,void 0,this);let M=k.length>w?k.slice(0,w):k,E=(U)=>{if(!U.sort)return;C((P)=>P?.key===U.key?{key:U.key,dir:P.dir==="asc"?"desc":"asc"}:{key:U.key,dir:U.align==="right"?"desc":"asc"})};return Et.jsxDEV(Et.Fragment,{children:[Et.jsxDEV("div",{className:"table-wrap",children:Et.jsxDEV("table",{className:"table","data-dense":b??!1,children:[Et.jsxDEV("thead",{children:Et.jsxDEV("tr",{children:l.map((U)=>{let P=h?.key===U.key?h.dir:void 0;return Et.jsxDEV("th",{"data-align":U.align??"left","data-sortable":U.sort!==void 0,"data-sorted":P,style:U.width!==void 0?{width:U.width}:void 0,title:U.title,onClick:()=>E(U),"aria-sort":P==="asc"?"ascending":P==="desc"?"descending":void 0,children:[U.header,P&&Et.jsxDEV("span",{className:"sort-arrow",children:P==="asc"?Et.jsxDEV(vd,{size:11},void 0,!1,void 0,this):Et.jsxDEV(md,{size:11},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},U.key,!0,void 0,this)})},void 0,!1,void 0,this)},void 0,!1,void 0,this),Et.jsxDEV("tbody",{children:M.map((U)=>{let P=i(U),X=L?.(U)??null;return Et.jsxDEV(eu.Fragment,{children:[Et.jsxDEV("tr",{"data-clickable":d!==void 0,"data-selected":p===P,onClick:d?()=>d(U):void 0,onKeyDown:d?(F)=>{if(F.key==="Enter"||F.key===" ")F.preventDefault(),d(U)}:void 0,tabIndex:d?0:void 0,children:l.map((F)=>Et.jsxDEV("td",{"data-align":F.align??"left","data-wrap":F.wrap??!1,children:F.render(U)},F.key,!1,void 0,this))},void 0,!1,void 0,this),X!==null&&Et.jsxDEV("tr",{children:Et.jsxDEV("td",{colSpan:l.length,"data-wrap":"true",style:{padding:0},children:X},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},P,!0,void 0,this)})},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this),g!==void 0&&k.length>g&&Et.jsxDEV("div",{className:"table-more",children:[Et.jsxDEV("span",{className:"micro",children:s("ui.table-shown-of",{shown:B(M.length),total:B(k.length)})},void 0,!1,void 0,this),k.length>w&&Et.jsxDEV("button",{type:"button",className:"btn","data-size":"sm","data-variant":"ghost",onClick:()=>T((U)=>U+g*4),children:s("common.show-more")},void 0,!1,void 0,this),w>g&&Et.jsxDEV("button",{type:"button",className:"btn","data-size":"sm","data-variant":"ghost",onClick:()=>T(g),children:s("ui.show-fewer")},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)}function pa({value:l,max:c,display:i,color:d}){let p=c>0?Math.min(100,l/c*100):0;return Et.jsxDEV("div",{className:"meter-cell",children:[Et.jsxDEV("span",{className:"num",children:i},void 0,!1,void 0,this),Et.jsxDEV("div",{className:"meter",children:Et.jsxDEV("div",{className:"meter-fill",style:{width:`${p}%`,background:d}},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function Ga({primary:l,secondary:c,lead:i}){return Et.jsxDEV("div",{className:"row",style:{gap:10},children:[i,Et.jsxDEV("div",{className:"stack",style:{gap:0},children:[Et.jsxDEV("span",{className:"cell-primary truncate",children:l},void 0,!1,void 0,this),c!==void 0&&Et.jsxDEV("span",{className:"cell-secondary truncate",children:c},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)}var Ud=Q(ct(),1);function Xm(l){return l instanceof HTMLElement&&(l.isContentEditable||l.tagName==="INPUT"||l.tagName==="TEXTAREA"||l.tagName==="SELECT")}function Ym(){return document.querySelector('[aria-modal="true"]')!==null}var $m=Q(ue(),1);function Y1(){let l=I2();if(Ud.useEffect(()=>{if(!l)return;let c=(i)=>{if(!T2(i))return;i.preventDefault(),X1()};return window.addEventListener("keydown",c),()=>window.removeEventListener("keydown",c)},[l]),!l)return null;return $m.jsxDEV("button",{type:"button",className:"btn","data-variant":"ghost",onClick:X1,title:"Close the dashboard (Esc)",children:[$m.jsxDEV(ao,{size:15},void 0,!1,void 0,this),"Close",$m.jsxDEV("span",{className:"kbd",children:"Esc"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function X1(){C1().catch((l)=>console.error("Closing the dashboard failed",l))}function I2(){let[l,c]=Ud.useState(!1);return Ud.useEffect(()=>{let i=new AbortController;return L1(i.signal).then(c,()=>{}),()=>i.abort()},[]),l}function T2(l){if(l.defaultPrevented||l.altKey||l.metaKey||l.shiftKey)return!1;if(Xm(l.target)||Ym())return!1;if(l.key==="Escape")return!l.ctrlKey;return l.ctrlKey&&l.key.toLowerCase()==="c"&&!window.getSelection()?.toString()}var Qm=Q(ue(),1);function $1(){let l=Ql(),c=l==="en"?"zh-CN":"en",i=l==="en"?"中文":"EN";return Qm.jsxDEV("button",{type:"button",className:"btn","data-variant":"ghost","data-locale-toggle":l,onClick:()=>d1(c),"aria-label":s("shell.switch-language"),title:`${s("shell.language")}: ${i}`,children:[Qm.jsxDEV(kd,{size:15},void 0,!1,void 0,this),Qm.jsxDEV("span",{className:"topbar-locale-label",children:i},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}var Km=Q(ct(),1);var Jt=Q(ue(),1);function Q1(){let{sync:l,indexingHours:c,connected:i,requestSync:d}=Pm(),p=A2(l.phase==="idle"?15000:null),x,g;if(!i)x=Jt.jsxDEV(Jt.Fragment,{children:[Jt.jsxDEV(dn,{tone:"warn"},void 0,!1,void 0,this),Jt.jsxDEV("span",{children:s("shell.reconnecting")},void 0,!1,void 0,this)]},void 0,!0,void 0,this),g=s("shell.lost-connection");else if(l.phase==="syncing")x=Jt.jsxDEV(Jt.Fragment,{children:[Jt.jsxDEV($l,{size:13,className:"spin"},void 0,!1,void 0,this),Jt.jsxDEV("span",{children:s("shell.syncing")},void 0,!1,void 0,this),l.total>0&&Jt.jsxDEV("span",{className:"live-chip-count",children:[B(l.current),"/",B(l.total)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),g=s("shell.ingesting");else if(l.phase==="error")x=Jt.jsxDEV(Jt.Fragment,{children:[Jt.jsxDEV(dn,{tone:"bad"},void 0,!1,void 0,this),Jt.jsxDEV("span",{children:s("shell.sync-failed")},void 0,!1,void 0,this)]},void 0,!0,void 0,this),g=`${l.error??s("shell.sync-failed")} — click to retry`;else if(c>R2)x=Jt.jsxDEV(Jt.Fragment,{children:[Jt.jsxDEV($l,{size:13,className:"spin"},void 0,!1,void 0,this),Jt.jsxDEV("span",{children:s("shell.indexing")},void 0,!1,void 0,this),Jt.jsxDEV("span",{className:"live-chip-count",children:[B(c),"h left"]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),g=s("shell.building-rollups");else x=Jt.jsxDEV(Jt.Fragment,{children:[Jt.jsxDEV(dn,{tone:"live",pulse:!0},void 0,!1,void 0,this),Jt.jsxDEV("span",{children:s("shell.live")},void 0,!1,void 0,this),l.lastSyncedAt!==null&&Jt.jsxDEV("span",{className:"live-chip-count",children:M2(p-l.lastSyncedAt)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),g=s("shell.sync-now");return Jt.jsxDEV("button",{type:"button",className:"live-chip",onClick:d,disabled:l.phase==="syncing",title:g,children:x},void 0,!1,void 0,this)}var R2=24;function A2(l){let[c,i]=Km.useState(Date.now);return Km.useEffect(()=>{if(l===null)return;i(Date.now());let d=setInterval(()=>i(Date.now()),l);return()=>clearInterval(d)},[l]),c}function M2(l){let c=Math.max(0,Math.round(l/1000));if(c<45)return s("shell.just-now");let i=Math.round(c/60);if(i<60)return`${i}m ago`;let d=Math.round(i/60);return d<24?`${d}h ago`:`${Math.round(d/24)}d ago`}var Zm=[{headingKey:"nav.usage",items:[{id:"overview",labelKey:"nav.overview",icon:Id,hotkey:"o"},{id:"models",labelKey:"nav.models",icon:Sd,hotkey:"m"},{id:"providers",labelKey:"nav.providers",icon:Xl,hotkey:"p"},{id:"costs",labelKey:"nav.costs",icon:xd,hotkey:"c"}]},{headingKey:"nav.activity",items:[{id:"requests",labelKey:"nav.requests",icon:pd,hotkey:"r"},{id:"errors",labelKey:"nav.errors",icon:Vl,hotkey:"e"},{id:"traces",labelKey:"nav.traces",icon:Sr,hotkey:"t"}]},{headingKey:"nav.insights",items:[{id:"tools",labelKey:"nav.tools",icon:qd,hotkey:"l"},{id:"frustration",labelKey:"nav.frustration",icon:jl,hotkey:"f"},{id:"projects",labelKey:"nav.projects",icon:Ld,hotkey:"j"},{id:"gain",labelKey:"nav.gain",icon:sn,hotkey:"g"}]}],D2=Zm.flatMap((l)=>l.items),K1=D2.map((l)=>l.id);var ub=Q(ct(),1),W1="zeta-stats-theme",J1="(prefers-color-scheme: dark)";function E2(){if(typeof localStorage>"u")return"system";let l=localStorage.getItem(W1);return l==="light"||l==="dark"||l==="system"?l:"system"}function eI(){if(typeof window>"u")return"dark";return window.matchMedia(J1).matches?"dark":"light"}var tu=E2(),Wm=tu==="system"?eI():tu,ib=new Set;function tI(){for(let l of ib)l()}function cb(){if(Wm=tu==="system"?eI():tu,typeof document<"u")document.documentElement.dataset.theme=Wm,document.documentElement.style.colorScheme=Wm}if(typeof window<"u")cb(),window.matchMedia(J1).addEventListener("change",()=>{if(tu==="system")cb(),tI()});function q2(l){if(tu=l,typeof localStorage<"u")localStorage.setItem(W1,l);cb(),tI()}function Z1(l){return ib.add(l),()=>ib.delete(l)}function aI(){let l=ub.useSyncExternalStore(Z1,()=>tu,()=>"system"),c=ub.useSyncExternalStore(Z1,()=>Wm,()=>"dark");return{preference:l,resolved:c,setPreference:q2}}var db=Q(ue(),1),O2={system:"light",light:"dark",dark:"system"},N2={system:"shell.system-theme",light:"shell.light-theme",dark:"shell.dark-theme"},B2={system:Rd,light:Ed,dark:Ad};function oI(){Ql();let{preference:l,setPreference:c}=aI(),i=B2[l],d=s(N2[l]);return db.jsxDEV("button",{type:"button",className:"btn","data-variant":"ghost","data-icon":"true",onClick:()=>c(O2[l]),"aria-label":`${d} (click to switch)`,title:`${d} — click to switch`,children:db.jsxDEV(i,{size:15},void 0,!1,void 0,this)},void 0,!1,void 0,this)}var tt=Q(ue(),1);function rI({section:l,onSectionChange:c,range:i,onRangeChange:d,children:p}){Ql();let x=hi.map((w,T)=>({value:w,label:s(sa(w).labelKey),title:`${s(sa(w).windowKey)} (${T+1})`})),[g,b]=Li.useState(!1),S=z2(),{sync:L}=Pm();U2(c,d);let h=(w)=>{c(w),b(!1),window.scrollTo({top:0})},C=L.phase==="syncing"?L.total>0?L.current/L.total:null:void 0;return tt.jsxDEV(tt.Fragment,{children:[tt.jsxDEV("div",{className:"shell-ambient"},void 0,!1,void 0,this),tt.jsxDEV("header",{className:"topbar","data-scrolled":S,children:[tt.jsxDEV("button",{type:"button",className:"btn topbar-menu","data-variant":"ghost","data-icon":"true",onClick:()=>b(!0),"aria-label":s("nav.open-navigation"),children:tt.jsxDEV(Td,{size:16},void 0,!1,void 0,this)},void 0,!1,void 0,this),tt.jsxDEV("div",{className:"topbar-brand",children:[tt.jsxDEV("svg",{className:"topbar-mark",viewBox:"0 0 64 64",width:"22",height:"22","aria-hidden":"true",children:[tt.jsxDEV("defs",{children:tt.jsxDEV("linearGradient",{id:"zeta-mark-grad",x1:"0",y1:"0",x2:"1",y2:"1",children:[tt.jsxDEV("stop",{offset:"0",stopColor:"oklch(0.7 0.24 340)"},void 0,!1,void 0,this),tt.jsxDEV("stop",{offset:".5",stopColor:"oklch(0.62 0.21 295)"},void 0,!1,void 0,this),tt.jsxDEV("stop",{offset:"1",stopColor:"oklch(0.81 0.14 200)"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this),tt.jsxDEV("text",{x:"32",y:"47",textAnchor:"middle",fontSize:"52",fontWeight:"700",fontFamily:"Georgia, 'Times New Roman', serif",fill:"url(#zeta-mark-grad)",children:"ζ"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),tt.jsxDEV("span",{children:"zeta"},void 0,!1,void 0,this),tt.jsxDEV("span",{className:"topbar-slash",children:"/"},void 0,!1,void 0,this),tt.jsxDEV("span",{className:"topbar-title",children:s("nav.breadcrumb-stats")},void 0,!1,void 0,this)]},void 0,!0,void 0,this),tt.jsxDEV("div",{className:"topbar-spacer"},void 0,!1,void 0,this),tt.jsxDEV("div",{className:"topbar-actions",children:[tt.jsxDEV("span",{className:"topbar-hide-narrow",children:tt.jsxDEV(Q1,{},void 0,!1,void 0,this)},void 0,!1,void 0,this),tt.jsxDEV(Fa,{options:x,value:i,onChange:d,"aria-label":s("common.time-range")},void 0,!1,void 0,this),tt.jsxDEV($1,{},void 0,!1,void 0,this),tt.jsxDEV(oI,{},void 0,!1,void 0,this),tt.jsxDEV(Y1,{},void 0,!1,void 0,this)]},void 0,!0,void 0,this),C!==void 0&&tt.jsxDEV("div",{className:"topbar-progress",children:tt.jsxDEV("div",{className:"topbar-progress-fill","data-indeterminate":C===null,style:{width:`${(C??0)*100}%`}},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),g&&tt.jsxDEV("div",{className:"drawer-scrim",onClick:()=>b(!1),role:"presentation"},void 0,!1,void 0,this),tt.jsxDEV("nav",{className:"sidebar","data-open":g,"aria-label":s("nav.pages"),children:[Zm.map((w)=>tt.jsxDEV("div",{className:"nav-group",children:[tt.jsxDEV("div",{className:"nav-heading",children:s(w.headingKey)},void 0,!1,void 0,this),w.items.map((T)=>tt.jsxDEV("button",{type:"button",className:"nav-row","data-active":T.id===l,"aria-current":T.id===l?"page":void 0,onClick:()=>h(T.id),children:[tt.jsxDEV(T.icon,{size:15},void 0,!1,void 0,this),tt.jsxDEV("span",{className:"nav-row-label",children:s(T.labelKey)},void 0,!1,void 0,this),tt.jsxDEV("kbd",{children:["G ",T.hotkey.toUpperCase()]},void 0,!0,void 0,this)]},T.id,!0,void 0,this))]},w.headingKey,!0,void 0,this)),tt.jsxDEV("div",{className:"sidebar-foot micro",children:[tt.jsxDEV("span",{children:[tt.jsxDEV("span",{className:"kbd",children:"1"},void 0,!1,void 0,this),"–",tt.jsxDEV("span",{className:"kbd",children:"6"},void 0,!1,void 0,this)," ",s("shell.range-suffix")]},void 0,!0,void 0,this),tt.jsxDEV("span",{children:[tt.jsxDEV("span",{className:"kbd",children:"G"},void 0,!1,void 0,this)," ",s("shell.jump-hint")]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),tt.jsxDEV("main",{className:"shell-panel",children:tt.jsxDEV("div",{className:"shell-content",children:p},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function z2(){let[l,c]=Li.useState(!1);return Li.useEffect(()=>{let i=()=>c(window.scrollY>4);return i(),window.addEventListener("scroll",i,{passive:!0}),()=>window.removeEventListener("scroll",i)},[]),l}function U2(l,c){Li.useEffect(()=>{let i=0,d=(p)=>{if(p.metaKey||p.ctrlKey||p.altKey||p.defaultPrevented)return;if(Xm(p.target)||Ym())return;let x=p.key.toLowerCase();if(i&&Date.now()-i<1200){i=0;let b=Zm.flatMap((S)=>S.items).find((S)=>S.hotkey===x);if(b)p.preventDefault(),l(b.id),window.scrollTo({top:0});return}if(x==="g"){i=Date.now();return}let g=Number(x)-1;if(Number.isInteger(g)&&g>=0&&g<hi.length)p.preventDefault(),c(hi[g])};return window.addEventListener("keydown",d),()=>window.removeEventListener("keydown",d)},[l,c])}var $n=Q(ct(),1);function Pd(l){let[c,i]=l.replace(/^#\/?/,"").split("?"),d=K1.includes(c)?c:"overview",p=new URLSearchParams(i??""),x=p.get("range"),g=hi.includes(x??"")?x:"24h";return{section:d,range:g,session:p.get("s")}}function Jm({section:l,range:c,session:i}){let d=i?`&s=${encodeURIComponent(i)}`:"";return`#/${l}?range=${c}${d}`}function nI(){let[l,c]=$n.useState(()=>Pd(window.location.hash));$n.useEffect(()=>{let g=()=>c(Pd(window.location.hash));window.addEventListener("hashchange",g),window.addEventListener("popstate",g);let b=Jm(Pd(window.location.hash));if(window.location.hash!==b)history.replaceState(null,"",b);return()=>{window.removeEventListener("hashchange",g),window.removeEventListener("popstate",g)}},[]);let i=$n.useCallback((g)=>{c(g);let b=Jm(g);if(window.location.hash!==b)history.pushState(null,"",b)},[]),d=$n.useCallback((g)=>i({...l,section:g,session:g==="traces"?l.session:null}),[l,i]),p=$n.useCallback((g)=>i({...l,range:g}),[l,i]),x=$n.useCallback((g)=>i({...l,session:g}),[l,i]);return{...l,setSection:d,setRange:p,setSession:x}}var Hd=Q(ct(),1);var gn=Q(ue(),1);function au({items:l,max:c,onSelect:i}){let d=c??Math.max(0,...l.map((p)=>p.value));return gn.jsxDEV("div",{className:"bar-list",children:l.map((p)=>{let x=d>0?Math.max(0.5,p.value/d*100):0,g=gn.jsxDEV(gn.Fragment,{children:[gn.jsxDEV("span",{className:"bar-list-fill",style:{width:`${x}%`,background:p.color??"var(--chart-primary)"}},void 0,!1,void 0,this),gn.jsxDEV("span",{className:"bar-list-label",children:p.label},void 0,!1,void 0,this),gn.jsxDEV("span",{className:"bar-list-value",children:p.display??B(p.value)},void 0,!1,void 0,this)]},void 0,!0,void 0,this);return i?gn.jsxDEV("button",{type:"button",className:"bar-list-row",onClick:()=>i(p.key),children:g},p.key,!1,void 0,this):gn.jsxDEV("div",{className:"bar-list-row",children:g},p.key,!1,void 0,this)})},void 0,!1,void 0,this)}var Qn=Q(ct(),1);var bt=Q(ue(),1),ou=10,P2=24,_2=68,H2=4;function Ir({slots:l,tickLabel:c,tooltipTitle:i,series:d,kind:p="bars",stacked:x=!0,height:g=220,format:b=De,formatRight:S,formatTooltip:L,yMax:h,yMaxRight:C,hidden:w,showTotal:T,references:k,onSelect:M,emptyLabel:E="No data in this range",tooltipExtra:U}){let[P,X]=Vm(),[F,me]=Qn.useState(null),W=Qn.useId().replace(/:/g,""),re=Qn.useMemo(()=>d.filter((J)=>!w?.has(J.key)),[d,w]),K=Qn.useMemo(()=>{let J=re.filter((yt)=>yt.axis!=="right"),Me=re.filter((yt)=>yt.axis==="right"),lt=(yt)=>x&&(yt.kind??p)!=="line",ne=new Map,Y=Array.from({length:l},()=>0),be=0;for(let yt of J)if(lt(yt)){let Se=Y.slice();ne.set(yt.key,Se);for(let ir=0;ir<l;ir++)Y[ir]+=yt.values[ir]??0}else for(let Se=0;Se<l;Se++)be=Math.max(be,yt.values[Se]??0);for(let yt of Y)be=Math.max(be,yt);let Ge=0;for(let yt of Me)for(let Se=0;Se<l;Se++)Ge=Math.max(Ge,yt.values[Se]??0);for(let yt of k??[])if(yt.axis==="right")Ge=Math.max(Ge,yt.value);else be=Math.max(be,yt.value);let $e=lI(h??be),Qe=Me.length>0?lI(C??Ge):null,Xe=re.every((yt)=>yt.values.every((Se)=>!Se));return{left:J,right:Me,bases:ne,stackable:lt,leftScale:$e,rightScale:Qe,empty:Xe}},[re,l,x,p,h,C,k]),G=K.leftScale.ticks.map((J)=>b(J)),V=K.rightScale?.ticks.map((J)=>(S??b)(J))??[],de=Math.max(28,sI(G)+12),ve=K.rightScale?Math.max(28,sI(V)+12):8,Ce=Math.max(0,X-de-ve),Ie=g-ou-P2,ae=l>0?Ce/l:0,he=(J)=>ou+Ie-J/K.leftScale.max*Ie,we=(J)=>ou+Ie-J/(K.rightScale?.max??1)*Ie,We=(J)=>de+(J+0.5)*ae,St=re.filter((J)=>(J.kind??p)==="bars"),ee=St.filter((J)=>!K.stackable(J)||J.axis==="right"),ze=Math.max(1,Math.min(56,ae*(ae>6?0.72:0.9))),Lt=Math.max(1,Math.ceil(l/Math.max(1,Math.floor(Ce/_2)))),Ct=(J)=>{let Me=J.currentTarget.getBoundingClientRect(),lt=Math.floor((J.clientX-Me.left)/(Me.width/l));me(lt>=0&<<l?lt:null)},ie=F===null?[]:re.filter((J)=>J.tooltip!==!1).map((J)=>({s:J,v:J.values[F]})).filter((J)=>J.v!==null&&J.v!==void 0&&(J.v!==0||re.length===1)).sort((J,Me)=>re.length>1?Me.v-J.v:0),He=ie.filter((J)=>J.s.axis!=="right").reduce((J,Me)=>J+Me.v,0),Fe=T??(x&&K.left.length>1);return bt.jsxDEV("div",{className:"chart",ref:P,"data-hovering":F!==null,style:{height:g},children:[X>0&&bt.jsxDEV("svg",{width:X,height:g,role:"img",children:[bt.jsxDEV("defs",{children:re.filter((J)=>J.pattern==="hatch").map((J)=>bt.jsxDEV("pattern",{id:`${W}-${fb(J.key)}`,width:"5",height:"5",patternUnits:"userSpaceOnUse",patternTransform:"rotate(45)",children:[bt.jsxDEV("rect",{width:"5",height:"5",fill:J.color,fillOpacity:"0.14"},void 0,!1,void 0,this),bt.jsxDEV("rect",{width:"1.6",height:"5",fill:J.color},void 0,!1,void 0,this)]},J.key,!0,void 0,this))},void 0,!1,void 0,this),bt.jsxDEV("g",{className:"chart-grid",children:K.leftScale.ticks.map((J)=>bt.jsxDEV("line",{x1:de,x2:de+Ce,y1:he(J),y2:he(J)},J,!1,void 0,this))},void 0,!1,void 0,this),bt.jsxDEV("g",{className:"chart-axis",children:[K.leftScale.ticks.map((J,Me)=>bt.jsxDEV("text",{x:de-8,y:he(J),dy:"0.32em",textAnchor:"end",children:G[Me]},J,!1,void 0,this)),K.rightScale?.ticks.map((J,Me)=>bt.jsxDEV("text",{x:de+Ce+8,y:we(J),dy:"0.32em",textAnchor:"start",children:V[Me]},J,!1,void 0,this)),Array.from({length:l},(J,Me)=>Me%Lt===0?bt.jsxDEV("text",{x:We(Me),y:g-6,textAnchor:"middle",children:c(Me)},Me,!1,void 0,this):null)]},void 0,!0,void 0,this),F!==null&&bt.jsxDEV("rect",{className:"chart-cursor",x:de+F*ae,y:ou,width:ae,height:Ie},void 0,!1,void 0,this),re.filter((J)=>(J.kind??p)==="area").map((J)=>{let Me=J.axis==="right"?we:he,lt=K.bases.get(J.key),ne=($e)=>(lt?.[$e]??0)+(J.values[$e]??0),Y=uI(l,We,($e)=>Me(ne($e))),be=Array.from({length:l},($e,Qe)=>l-1-Qe).map(($e)=>`L${We($e).toFixed(1)},${Me(lt?.[$e]??0).toFixed(1)}`).join(""),Ge=J.pattern==="hatch"?`url(#${W}-${fb(J.key)})`:J.color;return bt.jsxDEV("g",{children:[bt.jsxDEV("path",{d:`${Y}${be}Z`,fill:Ge,fillOpacity:J.pattern?1:0.2},void 0,!1,void 0,this),bt.jsxDEV("path",{className:"chart-line",d:Y,stroke:J.color},void 0,!1,void 0,this)]},J.key,!0,void 0,this)}),St.map((J)=>{let Me=J.axis==="right"?we:he,lt=K.bases.get(J.key),ne=ee.indexOf(J),Y=ne>=0?ze/ee.length:ze,be=J.pattern==="hatch"?`url(#${W}-${fb(J.key)})`:J.color;return bt.jsxDEV("g",{children:J.values.map((Ge,$e)=>{if(!Ge)return null;let Qe=ne>=0?0:lt?.[$e]??0,Xe=Me(Qe),yt=Me(Qe+Ge),Se=We($e)-ze/2+(ne>=0?ne*Y:0);return bt.jsxDEV("rect",{className:"chart-bar","data-hover":F===$e,x:Se,y:Math.min(Xe,yt),width:Math.max(1,Y-(ne>=0&&ee.length>1?1:0)),height:Math.max(Ge>0?1:0,Math.abs(Xe-yt)),fill:be},$e,!1,void 0,this)})},J.key,!1,void 0,this)}),re.filter((J)=>(J.kind??p)==="line").map((J)=>{let Me=J.axis==="right"?we:he,lt=(ne)=>{let Y=J.values[ne];return Y===null||Y===void 0?null:Me(Y)};return bt.jsxDEV("g",{children:[bt.jsxDEV("path",{className:"chart-line",d:uI(l,We,lt),stroke:J.color,strokeDasharray:J.dashed?"4 3":void 0},void 0,!1,void 0,this),J.values.map((ne,Y)=>{let be=lt(Y);if(be===null||Y>0&<(Y-1)!==null||Y<l-1&<(Y+1)!==null)return null;return bt.jsxDEV("circle",{cx:We(Y),cy:be,r:2.5,fill:J.color},Y,!1,void 0,this)})]},J.key,!0,void 0,this)}),k?.map((J)=>{let Me=J.axis==="right"?we(J.value):he(J.value);return bt.jsxDEV("g",{className:"chart-axis",children:[bt.jsxDEV("line",{x1:de,x2:de+Ce,y1:Me,y2:Me,stroke:"var(--line-4)",strokeDasharray:"3 3"},void 0,!1,void 0,this),J.label&&bt.jsxDEV("text",{x:de+Ce-4,y:Me-5,textAnchor:"end",children:J.label},void 0,!1,void 0,this)]},`${J.axis??"left"}:${J.value}`,!0,void 0,this)}),bt.jsxDEV("line",{className:"chart-baseline",x1:de,x2:de+Ce,y1:he(0),y2:he(0)},void 0,!1,void 0,this),bt.jsxDEV("rect",{x:de,y:ou,width:Ce,height:Ie,fill:"transparent",onPointerMove:Ct,onPointerLeave:()=>me(null),onClick:M&&F!==null?()=>M(F):void 0,style:{cursor:M?"pointer":"crosshair"}},void 0,!1,void 0,this)]},void 0,!0,void 0,this),K.empty&&bt.jsxDEV("div",{className:"chart-empty",children:E},void 0,!1,void 0,this),F!==null&&!K.empty&&bt.jsxDEV("div",{className:"chart-tooltip",style:We(F)>X/2?{right:X-We(F)+Math.min(ae/2,24)+8,top:ou}:{left:We(F)+Math.min(ae/2,24)+8,top:ou},children:[bt.jsxDEV("div",{className:"chart-tooltip-title",children:(i??c)(F)},void 0,!1,void 0,this),ie.map(({s:J,v:Me})=>bt.jsxDEV("div",{className:"chart-tooltip-row",children:[bt.jsxDEV("span",{className:"swatch",style:{background:J.color}},void 0,!1,void 0,this),bt.jsxDEV("span",{className:"chart-tooltip-label",children:J.label},void 0,!1,void 0,this),bt.jsxDEV("span",{className:"chart-tooltip-value",children:J.axis==="right"?(S??b)(Me):(L??b)(Me)},void 0,!1,void 0,this)]},J.key,!0,void 0,this)),Fe&&ie.length>1&&bt.jsxDEV("div",{className:"chart-tooltip-row chart-tooltip-total",children:[bt.jsxDEV("span",{className:"chart-tooltip-label",children:"Total"},void 0,!1,void 0,this),bt.jsxDEV("span",{className:"chart-tooltip-value",children:(L??b)(He)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),U&&bt.jsxDEV(Qn.Fragment,{children:U(F)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)}function lI(l){if(!(l>0))return{max:1,ticks:[0]};let c=l/H2,i=10**Math.floor(Math.log10(c)),d=[1,2,2.5,5,10].map((g)=>g*i).find((g)=>g>=c)??10*i,p=Math.ceil(l/d)*d,x=[];for(let g=0;g<=p+d/2;g+=d)x.push(Number(g.toPrecision(12)));return{max:p,ticks:x}}function sI(l){return l.reduce((c,i)=>Math.max(c,i.length*6.3),0)}function uI(l,c,i){let d="",p=!1;for(let x=0;x<l;x++){let g=i(x);if(g===null){p=!1;continue}d+=`${p?"L":"M"}${c(x).toFixed(1)},${g.toFixed(1)}`,p=!0}return d}function fb(l){return l.replace(/[^a-zA-Z0-9_-]/g,"_")}var eh=Q(ct(),1),yn=Q(ue(),1);function Va({items:l,hidden:c,onToggle:i}){return yn.jsxDEV("div",{className:"legend",children:l.map((d)=>{let p=yn.jsxDEV(yn.Fragment,{children:[yn.jsxDEV("span",{className:"swatch",style:{background:d.color}},void 0,!1,void 0,this),yn.jsxDEV("span",{className:"truncate",children:d.label},void 0,!1,void 0,this),d.value&&yn.jsxDEV("span",{className:"legend-value",children:d.value},void 0,!1,void 0,this)]},void 0,!0,void 0,this);return i?yn.jsxDEV("button",{type:"button",className:"legend-item","data-off":c?.has(d.key)??!1,onClick:()=>i(d.key),title:d.label,children:p},d.key,!1,void 0,this):yn.jsxDEV("span",{className:"legend-item",title:d.label,children:p},d.key,!1,void 0,this)})},void 0,!1,void 0,this)}function ur(){let[l,c]=eh.useState(()=>new Set),i=eh.useCallback((d)=>{c((p)=>{let x=new Set(p);if(!x.delete(d))x.add(d);return x})},[]);return[l,i]}var pb=Q(ue(),1);function Wl({segments:l,height:c=8}){let i=l.reduce((d,p)=>d+Math.max(0,p.value),0);return pb.jsxDEV("div",{className:"share-bar",style:{height:c},role:"img",children:i>0&&l.filter((d)=>d.value>0).map((d)=>pb.jsxDEV("div",{className:"share-bar-seg",style:{flexGrow:d.value/i,background:d.color},title:`${d.label}: ${(d.value/i*100).toFixed(1)}%`},d.key,!1,void 0,this))},void 0,!1,void 0,this)}var iI=Q(ue(),1);function Tr({buckets:l,bucketMs:c,onSelectBucket:i,...d}){return iI.jsxDEV(Ir,{...d,slots:l.length,tickLabel:(p)=>Bm(l[p],c),tooltipTitle:(p)=>Nm(l[p],c),onSelect:i?(p)=>i(l[p]):void 0},void 0,!1,void 0,this)}var Da=["#5ad8e6","#ed4abf","#9d7bff","#f5b54a","#4ade80","#5b8cff","#ff7a59","#2dd4bf","#c3e94f","#fb7185"],ro="#6c6c74";function Sa(l,c){return`${l}::${c}`}function th(l){return _d(l.map((c)=>({key:Sa(c.model,c.provider),weight:c.totalRequests})))}function _d(l){let c=[...l].sort((i,d)=>d.weight-i.weight||i.key.localeCompare(d.key));return new Map(c.map((i,d)=>[i.key,Da[d%Da.length]]))}function ah(l){return l instanceof Error?l:Error(String(l))}var va=Q(ct(),1);var F2={entries:new Map,limit:128},G2={entries:new Map,limit:4},V2={entries:new Map,limit:16},ru=new Map;function cI(l){if(l.startsWith('["trace",'))return G2;if(l.startsWith('["request",'))return V2;return F2}function Ci(l){return cI(l).entries.get(l)}function dI(l){return ru.get(l)}function j2(l,c){let{entries:i,limit:d}=cI(l);if(i.delete(l),i.set(l,c),i.size>d){let p=i.keys().next().value;if(p!==void 0)i.delete(p)}}function fI(l,c,i){let d=ru.get(l);if(d)return d.waiters++,d;let p=new AbortController,x=Ci(l)?.data,g={promise:i({signal:p.signal},x).then((b)=>(j2(l,{data:b,updatedAt:Date.now(),version:c}),b)).finally(()=>{if(ru.get(l)===g)ru.delete(l)}),controller:p,waiters:1};return ru.set(l,g),g}function mb(l,c){if(c.waiters--,c.waiters>0)return;if(ru.get(l)===c)ru.delete(l);c.controller.abort()}var X2=1500;function Gt(l,c,i){let d=JSON.stringify(l),p=i?.enabled??!0,x=i?.pollMs,g=H1(p),[,b]=va.useReducer((G)=>G+1,0),[S,L]=va.useReducer((G)=>G+1,0),[h,C]=va.useState(null),[w,T]=va.useState(!1),k=va.useRef(c);k.current=c;let M=va.useRef(d);M.current=d;let E=va.useRef(null),U=va.useRef(0),P=va.useRef(null),X=va.useCallback((G)=>{U.current=Date.now();let V=P.current;if(V?.key===G&&dI(G)===V.request)return;let de=Ci(G)?.data;T(!0);let ve=fI(G,ab(),k.current);if(P.current={key:G,request:ve},V)mb(V.key,V.request);let Ce=!1;ve.promise.then((Ie)=>{if(Ce=!0,M.current!==G)return;if(Ie===de){C((ae)=>ae===null?ae:null);return}va.startTransition(()=>{C(null),b()})}).catch((Ie)=>{if(M.current!==G||ve.controller.signal.aborted)return;C({key:G,error:ah(Ie)})}).finally(()=>{if(P.current?.request!==ve)return;if(P.current=null,M.current!==G)return;if(T(!1),Ce&&(Ci(G)?.version??-1)<ab())L()})},[]),F=va.useCallback(()=>{let G=P.current;if(P.current=null,G)mb(G.key,G.request)},[]);va.useEffect(()=>F,[F]),va.useEffect(()=>{if(!p||P.current&&P.current.key!==d)F();if(!p)return;let G=Ci(d);if(G&&G.version>=g)return;let V=G?U.current+X2-Date.now():0;if(V<=0){X(d);return}let de=setTimeout(()=>X(d),V);return()=>clearTimeout(de)},[d,p,g,S,X,F]),va.useEffect(()=>{if(!p||!x)return;let G=setInterval(()=>{if(!document.hidden)X(M.current)},x);return()=>clearInterval(G)},[p,x,X]);let me=va.useCallback(()=>X(M.current),[X]),W=Ci(d);if(W)E.current={key:d,data:W.data,updatedAt:W.updatedAt};let re=E.current,K=h?.key===d?h.error:null;return{data:re?.data??null,error:K,loading:!re&&!K,stale:!!re&&re.key!==d,refreshing:w,updatedAt:re?.updatedAt??null,refetch:me}}function La(l,c,i){let d=pI(c),p=Array.from({length:c.length},()=>0);for(let x of l){let g=d.get(x.timestamp);if(g!==void 0)p[g]+=i(x)}return p}function vn(l,c){let i=pI(c.buckets),d=new Map;for(let L of l){let h=i.get(L.timestamp);if(h===void 0)continue;let C=c.key(L),w=d.get(C);if(!w)w=Array.from({length:c.buckets.length},()=>0),d.set(C,w);w[h]+=c.value(L)}let p=[...d.entries()].map(([L,h])=>({key:L,values:h,total:h.reduce((C,w)=>C+w,0)})).filter((L)=>L.total!==0).sort((L,h)=>h.total-L.total||L.key.localeCompare(h.key)),x=c.limit??Number.POSITIVE_INFINITY,g=p.slice(0,x),b=p.slice(x),S=g.map((L,h)=>({key:L.key,label:c.label?c.label(L.key):L.key,color:c.colors?.get(L.key)??Da[h%Da.length],values:L.values}));if(b.length>0){let L=Array.from({length:c.buckets.length},()=>0);for(let h of b)for(let C=0;C<L.length;C++)L[C]+=h.values[C];S.push({key:"__other__",label:s("common.other-n",{count:b.length}),color:ro,values:L})}return S}function pI(l){let c=new Map;for(let i=0;i<l.length;i++)c.set(l[i],i);return c}var Y2=["main","subagent","advisor"];function Jl(l){return l.totalInputTokens+l.totalOutputTokens+l.totalCacheReadTokens+l.totalCacheWriteTokens}function gI(l){let c=new Map;for(let g of l)c.set(g.agentType,g);let i=Y2.map((g)=>c.get(g)).filter((g)=>g!==void 0),d=i.reduce((g,b)=>g+Jl(b),0),p=i.reduce((g,b)=>g+b.totalCost,0),x=i.map((g)=>{let b=Jl(g);return{agentType:g.agentType,tokens:b,requests:g.totalRequests,cost:g.totalCost,share:d>0?b/d:0}});return{totalTokens:d,totalCost:p,segments:x}}function yI(l){let c={totalCost:0,requests:0,unpricedRequests:0,activeDays:new Set(l.map((p)=>p.timestamp)).size,avgDailyCost:0,costInput:0,costOutput:0,costCacheRead:0,costCacheWrite:0,models:[],topModel:null},i=new Map;for(let p of l){let x=Sa(p.model,p.provider),g=i.get(x);if(!g)g={key:x,model:p.model,provider:p.provider,cost:0,requests:0,unpricedRequests:0,costInput:0,costOutput:0,costCacheRead:0,costCacheWrite:0,share:0},i.set(x,g);mI(g,p),mI(c,p),g.cost+=p.cost,c.totalCost+=p.cost}c.avgDailyCost=c.activeDays>0?c.totalCost/c.activeDays:0,c.models=[...i.values()].sort((p,x)=>x.cost-p.cost||x.requests-p.requests||p.key.localeCompare(x.key));for(let p of c.models)p.share=c.totalCost>0?p.cost/c.totalCost:0;let d=c.models[0];return c.topModel=d!==void 0&&d.cost>0?d:null,c}function mI(l,c){l.costInput+=c.costInput,l.costOutput+=c.costOutput,l.costCacheRead+=c.costCacheRead,l.costCacheWrite+=c.costCacheWrite,l.requests+=c.requests,l.unpricedRequests+=c.unpricedRequests}function vI(l){let c=new Map;for(let i of l){let d=Sa(i.model,i.provider),p=c.get(d);if(!p)p=[],c.set(d,p);p.push({timestamp:i.timestamp,avgTtftSeconds:i.avgTtft!==null?i.avgTtft/1000:null,avgTokensPerSecond:i.avgTokensPerSecond,requests:i.requests})}for(let i of c.values())i.sort((d,p)=>d.timestamp-p.timestamp);return c}var $2=/^\/?-?(?:private-)?(?:tmp|var-folders)(?:[-/]|$)/;function bI(l){let c=0,i=0,d=0,p=0,x=0,g=0,b=0,S=0,L=0;for(let w of l){if(c+=w.totalRequests,i+=w.failedRequests,d+=w.totalCost,p+=w.unpricedRequests,x+=w.totalInputTokens+w.totalCacheReadTokens+w.totalCacheWriteTokens+w.totalOutputTokens,g+=w.totalInputTokens,b+=w.totalCacheReadTokens,w.totalRequests>S)S=w.totalRequests;if(w.totalCost>L)L=w.totalCost}let h=0;return{rows:l.map((w)=>{let T=$2.test(w.folder);if(T)h++;return{...w,conversationTokens:w.totalInputTokens+w.totalCacheReadTokens+w.totalCacheWriteTokens+w.totalOutputTokens,requestShare:c>0?w.totalRequests/c:0,costShare:d>0?w.totalCost/d:0,temporary:T}}),totalRequests:c,failedRequests:i,totalCost:d,unpricedRequests:p,conversationTokens:x,cacheRate:g+b>0?b/(g+b):0,maxRequests:S,maxCost:L,temporaryCount:h}}function xI(l){let c=0,i=0,d=0;for(let p of l)c+=p.calls,i+=p.totalTokensShare,d+=p.costShare;return l.map((p)=>({...p,errorRate:p.calls>0?p.errors/p.calls:0,callFraction:c>0?p.calls/c:0,tokenFraction:i>0?p.totalTokensShare/i:0,costFraction:d>0?p.costShare/d:0,avgResultChars:p.calls>0?p.resultChars/p.calls:0}))}function Kn(l){if(l.stopReason==="aborted")return"aborted";if(l.stopReason==="error"||l.errorMessage)return"failed";return"ok"}function hb(l,c){if(l.length===0)return null;return l[Math.min(l.length-1,Math.max(0,Math.ceil(c*l.length)-1))]}function SI(l){let c=0,i=0,d=0,p=0,x=0,g=null,b=null,S=[],L=[];for(let h of l){let C=Kn(h);if(C==="failed")c++;else if(C==="aborted")i++;if(d+=h.usage.totalTokens,p+=h.usage.cost.total,nb(h))x++;if(h.duration!==null)S.push(h.duration);if(h.ttft!==null)L.push(h.ttft);if(g===null||h.timestamp<g)g=h.timestamp;if(b===null||h.timestamp>b)b=h.timestamp}return S.sort((h,C)=>h-C),L.sort((h,C)=>h-C),{requests:l.length,failed:c,aborted:i,tokens:d,cost:p,unpriced:x,medianDuration:hb(S,0.5),p95Duration:hb(S,0.95),medianTtft:hb(L,0.5),oldest:g,newest:b}}var hI=180,Q2=/\b[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}\b/gi,K2=/\b(?:req|msg|call|toolu|chatcmpl|resp|run|gen)[-_][A-Za-z0-9_-]{6,}/g,Z2=/\b[0-9a-f]{12,}\b/gi,W2=/(?<![\w.-])\d+(?:\.\d+)?/g,J2=/^[1-5]\d\d$/;function gb(l){if(!l?.trim())return"Unknown error";let c=l.replace(/\s+/g," ").trim().replace(Q2,"<id>").replace(K2,"<id>").replace(Z2,"<hex>").replace(W2,(i)=>J2.test(i)?i:"N");return c.length>hI?`${c.slice(0,hI-1)}…`:c}function LI(l){let c=new Map;for(let i of l){let d=gb(i.errorMessage),p=c.get(d);if(!p)p={signature:d,count:0,firstSeen:i.timestamp,lastSeen:i.timestamp,latest:i,models:[],byModel:new Map},c.set(d,p);if(p.count++,i.timestamp<p.firstSeen)p.firstSeen=i.timestamp;if(i.timestamp>p.lastSeen)p.lastSeen=i.timestamp,p.latest=i;let x=Sa(i.model,i.provider),g=p.byModel.get(x);if(g)g.count++;else p.byModel.set(x,{model:i.model,provider:i.provider,count:1})}return[...c.values()].map(({byModel:i,...d})=>({...d,models:[...i.values()].sort((p,x)=>x.count-p.count||p.model.localeCompare(x.model))})).sort((i,d)=>d.count-i.count||d.lastSeen-i.lastSeen)}var Ee=Q(ue(),1),eD=[{value:"model",label:s("costs.by-model")},{value:"component",label:s("costs.by-component")}],tD=6,aD=86400000,Fd=[{key:"costInput",label:s("common.input"),color:"#5b8cff"},{key:"costOutput",label:s("common.output"),color:"var(--chart-secondary)"},{key:"costCacheRead",label:s("common.cache-read"),color:"var(--chart-primary)"},{key:"costCacheWrite",label:s("common.cache-write"),color:"#f5b54a"}],oD=new Intl.DateTimeFormat(void 0,{month:"short",day:"numeric",timeZone:"UTC"}),rD=new Intl.DateTimeFormat(void 0,{weekday:"short",month:"short",day:"numeric",year:"numeric",timeZone:"UTC"});function CI({active:l,range:c}){let i=Gt(["costs",c],({signal:w})=>b1(c,w),{enabled:l}),d=sa(c),[p,x]=Hd.useState("model"),[g,b]=ur(),S=Hd.useMemo(()=>i.data?nD(i.data,c):null,[i.data,c]),L=Hd.useMemo(()=>S?uD(S):[],[S]),h=(w)=>w.costSeries.length===0,C=Ee.jsxDEV(gt,{title:s("costs.no-usage-in-range"),hint:s("costs.empty-hint")},void 0,!1,void 0,this);return Ee.jsxDEV("div",{className:"page",children:[Ee.jsxDEV(ua,{title:s("costs.title"),description:s("costs.description",{window:s(d.windowKey)})},void 0,!1,void 0,this),Ee.jsxDEV(_e,{query:i,skeleton:Ee.jsxDEV(Ba,{height:112,style:{borderRadius:12}},void 0,!1,void 0,this),isEmpty:h,empty:C,children:()=>S&&Ee.jsxDEV(lD,{view:S,stale:i.stale},void 0,!1,void 0,this)},void 0,!1,void 0,this),Ee.jsxDEV("div",{className:"grid grid-main-side",children:[Ee.jsxDEV(Be,{index:1,title:s("costs.daily-estimate"),description:p==="model"?s("costs.daily-by-model"):s("costs.daily-by-component"),actions:Ee.jsxDEV(Fa,{size:"sm",options:eD,value:p,onChange:x,"aria-label":s("costs.split-by")},void 0,!1,void 0,this),stale:i.stale,children:Ee.jsxDEV(_e,{query:i,skeleton:Ee.jsxDEV(Mt,{height:280},void 0,!1,void 0,this),isEmpty:h,empty:C,children:()=>{if(!S)return null;let w=p==="model"?S.modelSeries:S.componentSeries;return Ee.jsxDEV("div",{className:"stack",style:{gap:12},children:[Ee.jsxDEV(Ir,{slots:S.buckets.length,tickLabel:(T)=>oD.format(S.buckets[T]),tooltipTitle:(T)=>rD.format(S.buckets[T]),series:w,hidden:g,height:280,format:(T)=>da(T,Number.isInteger(T)?0:2),formatTooltip:(T)=>da(T),emptyLabel:s("costs.no-priced-usage"),tooltipExtra:(T)=>S.unpricedPerDay[T]>0?Ee.jsxDEV("div",{className:"chart-tooltip-row chart-tooltip-total",children:[Ee.jsxDEV("span",{className:"chart-tooltip-label",children:s("costs.unpriced-requests")},void 0,!1,void 0,this),Ee.jsxDEV("span",{className:"chart-tooltip-value",children:B(S.unpricedPerDay[T])},void 0,!1,void 0,this)]},void 0,!0,void 0,this):null},void 0,!1,void 0,this),Ee.jsxDEV(Va,{items:w.map((T)=>({key:T.key,label:T.label,color:T.color,value:da(iD(T.values))})),hidden:g,onToggle:b},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}},void 0,!1,void 0,this)},void 0,!1,void 0,this),Ee.jsxDEV(Be,{index:2,title:s("costs.where-it-went"),description:s("costs.estimate-by-component"),stale:i.stale,children:Ee.jsxDEV(_e,{query:i,skeleton:Ee.jsxDEV(Mt,{height:280},void 0,!1,void 0,this),isEmpty:h,empty:C,children:()=>S&&Ee.jsxDEV(sD,{summary:S.summary},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),Ee.jsxDEV(Be,{index:3,title:s("costs.by-model"),description:s("costs.by-model-description"),stale:i.stale,flush:!0,children:Ee.jsxDEV(_e,{query:i,skeleton:Ee.jsxDEV(ra,{rows:8},void 0,!1,void 0,this),isEmpty:h,empty:C,children:()=>S&&Ee.jsxDEV(Ht,{rows:S.summary.models,rowKey:(w)=>w.key,columns:L,initialSort:{key:"cost",dir:"desc"},limit:20},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 nD(l,c){let i=l.costSeries,d=yI(i),p=th(d.models.map((L)=>({model:L.model,provider:L.provider,totalRequests:L.requests}))),x=new Map(d.models.map((L)=>[L.key,L])),g=ho(c,i.map((L)=>L.timestamp),aD),b=vn(i,{buckets:g,key:(L)=>Sa(L.model,L.provider),label:(L)=>x.get(L)?.model??L,value:(L)=>L.cost,limit:tD,colors:p}).map((L)=>({...L,values:L.values.map((h)=>h||null)})),S=new Set;for(let L of b){if(L.key==="__other__")continue;if(S.has(L.color))L.color=Da.find((h)=>!S.has(h))??L.color;S.add(L.color)}return{summary:d,swatches:new Map(b.filter((L)=>L.key!=="__other__").map((L)=>[L.key,L.color])),buckets:g,dailyTotals:La(i,g,(L)=>L.cost),unpricedPerDay:La(i,g,(L)=>L.unpricedRequests),modelSeries:b,componentSeries:Fd.map((L)=>({key:L.key,label:L.label,color:L.color,values:La(i,g,(h)=>h[L.key]).map((h)=>h||null)})),maxModelCost:d.models[0]?.cost??0}}function lD({view:l,stale:c}){let{summary:i}=l,d=i.requests-i.unpricedRequests,p=i.topModel;return Ee.jsxDEV("div",{"data-stale":c,children:Ee.jsxDEV(oa,{min:180,children:[Ee.jsxDEV(se,{label:s("costs.api-equivalent-estimate"),title:s("costs.api-estimate-title"),value:Ft(i.totalCost,i.unpricedRequests),hint:s("costs.requests-n",{count:B(i.requests)}),spark:l.dailyTotals,sparkColor:"var(--chart-secondary)"},void 0,!1,void 0,this),Ee.jsxDEV(se,{label:s("costs.average-per-day"),title:s("costs.average-per-day-title"),value:Ft(i.avgDailyCost,i.unpricedRequests),hint:s(i.activeDays===1?"costs.active-days-one":"costs.active-days-n",{count:B(i.activeDays)})},void 0,!1,void 0,this),Ee.jsxDEV(se,{label:s("costs.top-model"),title:p?`${p.model} (${p.provider})`:void 0,value:p?p.model:"–",hint:p?s("costs.top-model-hint",{cost:da(p.cost),share:je(p.share)}):s("costs.nothing-priced-yet")},void 0,!1,void 0,this),Ee.jsxDEV(se,{label:s("costs.per-priced-request"),title:s("costs.per-priced-request-title"),value:d>0?wI(i.totalCost/d):"–",hint:s("costs.priced-n",{count:B(d)})},void 0,!1,void 0,this),Ee.jsxDEV(se,{label:s("costs.unpriced-requests"),title:s("costs.unpriced-title"),value:B(i.unpricedRequests),hint:i.unpricedRequests>0?s("costs.unpriced-hint"):s("costs.all-priced")},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)}function sD({summary:l}){return Ee.jsxDEV("div",{className:"stack",style:{gap:14},children:[Ee.jsxDEV(Wl,{height:10,segments:Fd.map((c)=>({key:c.key,label:c.label,value:l[c.key],color:c.color}))},void 0,!1,void 0,this),Ee.jsxDEV("div",{className:"costs-components",children:[Fd.map((c)=>Ee.jsxDEV("div",{className:"costs-component-row",children:[Ee.jsxDEV("span",{className:"row",children:[Ee.jsxDEV(Cr,{color:c.color},void 0,!1,void 0,this),c.label]},void 0,!0,void 0,this),Ee.jsxDEV("span",{className:"num",children:da(l[c.key])},void 0,!1,void 0,this),Ee.jsxDEV("span",{className:"num dim costs-component-share",children:l.totalCost>0?je(l[c.key]/l.totalCost):"–"},void 0,!1,void 0,this)]},c.key,!0,void 0,this)),Ee.jsxDEV("div",{className:"costs-component-row costs-component-total",children:[Ee.jsxDEV("span",{children:s("common.total")},void 0,!1,void 0,this),Ee.jsxDEV("span",{className:"num",children:Ft(l.totalCost,l.unpricedRequests)},void 0,!1,void 0,this),Ee.jsxDEV("span",{className:"costs-component-share"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),l.unpricedRequests>0&&Ee.jsxDEV("p",{className:"micro dim",children:s(l.unpricedRequests===1?"costs.unpriced-note-one":"costs.unpriced-note-n",{count:B(l.unpricedRequests)})},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function uD(l){let c=Fd.map((i)=>({key:i.key,header:i.label,align:"right",sort:(d)=>d[i.key],render:(d)=>Ee.jsxDEV("span",{className:"num",children:da(d[i.key])},void 0,!1,void 0,this)}));return[{key:"model",header:s("common.model"),sort:(i)=>i.model,render:(i)=>Ee.jsxDEV(Ga,{lead:Ee.jsxDEV(Cr,{color:l.swatches.get(i.key)??ro},void 0,!1,void 0,this),primary:Ee.jsxDEV("span",{className:"mono",children:i.model},void 0,!1,void 0,this),secondary:i.provider},void 0,!1,void 0,this)},{key:"requests",header:s("common.requests"),align:"right",sort:(i)=>i.requests,render:(i)=>Ee.jsxDEV("span",{className:"num",children:B(i.requests)},void 0,!1,void 0,this)},{key:"cost",header:s("costs.estimate"),title:s("costs.estimate-title"),align:"right",sort:(i)=>i.cost,render:(i)=>Ee.jsxDEV(pa,{value:i.cost,max:l.maxModelCost,display:Ft(i.cost,i.unpricedRequests),color:l.swatches.get(i.key)??ro},void 0,!1,void 0,this)},{key:"share",header:s("common.share"),align:"right",sort:(i)=>i.share,render:(i)=>Ee.jsxDEV("span",{className:"num muted",children:i.cost>0?je(i.share):"–"},void 0,!1,void 0,this)},{key:"split",header:s("costs.split"),title:"Input · output · cache read · cache write",width:150,render:(i)=>i.cost>0?Ee.jsxDEV(Wl,{segments:Fd.map((d)=>({key:d.key,label:d.label,value:i[d.key],color:d.color}))},void 0,!1,void 0,this):Ee.jsxDEV("span",{className:"dim",children:"–"},void 0,!1,void 0,this)},...c,{key:"perRequest",header:s("costs.per-request"),title:"Estimate ÷ priced requests",align:"right",sort:(i)=>i.requests>i.unpricedRequests?i.cost/(i.requests-i.unpricedRequests):-1,render:(i)=>Ee.jsxDEV("span",{className:"num",children:i.requests>i.unpricedRequests?wI(i.cost/(i.requests-i.unpricedRequests)):"–"},void 0,!1,void 0,this)},{key:"unpriced",header:s("costs.unpriced"),title:"Requests with no public-equivalent price",align:"right",sort:(i)=>i.unpricedRequests,render:(i)=>i.unpricedRequests>0?Ee.jsxDEV("span",{className:"num tone-warn",children:B(i.unpricedRequests)},void 0,!1,void 0,this):Ee.jsxDEV("span",{className:"num dim",children:"–"},void 0,!1,void 0,this)}]}function wI(l){return l>0&&l<0.0001?"<$0.0001":da(l)}function iD(l){let c=0;for(let i of l)c+=i??0;return c}var Zn=Q(ct(),1);var xe=Q(ue(),1),yb=[50,200,1000];function kI({active:l,range:c,onRequestClick:i}){let[d,p]=Zn.useState(0),x=yb[d],g=Gt(["errors",c,x],({signal:G})=>x1(c,x,G),{enabled:l}),[b,S]=Zn.useState(null),[L,h]=Zn.useState(null),[C,w]=Zn.useState(""),T=sa(c),k=Zn.useMemo(()=>{let G=(g.data??[]).map((Ie)=>({row:Ie,signature:gb(Ie.errorMessage)})),V=LI(g.data??[]),de=new Map;for(let{row:Ie}of G){let ae=Sa(Ie.model,Ie.provider),he=de.get(ae);if(he)he.count++;else de.set(ae,{model:Ie.model,provider:Ie.provider,count:1})}let ve=[...de.entries()].map(([Ie,ae])=>({key:Ie,...ae})).sort((Ie,ae)=>ae.count-Ie.count||Ie.model.localeCompare(ae.model)),Ce=G.reduce((Ie,{row:ae})=>!Ie||ae.timestamp>Ie.timestamp?ae:Ie,null);return{rows:G,groups:V,models:ve,newest:Ce}},[g.data]),M=k.groups.some((G)=>G.signature===b)?b:null,E=k.models.some((G)=>G.key===L)?L:null,U=Zn.useMemo(()=>{let G=C.trim().toLowerCase();return k.rows.filter((V)=>(M===null||V.signature===M)&&(E===null||Sa(V.row.model,V.row.provider)===E)&&(G===""||V.row.model.toLowerCase().includes(G)||V.row.provider.toLowerCase().includes(G)||V.row.folder.toLowerCase().includes(G)||(V.row.errorMessage??"").toLowerCase().includes(G))).map((V)=>V.row)},[k.rows,M,E,C]),P=g.data?.length??0,X=!g.stale&&P<x,F=d+1<yb.length?yb[d+1]:null,me=g.data!==null&&!X?xe.jsxDEV(xe.Fragment,{children:[xe.jsxDEV("span",{children:s("errors.footer",{count:B(P),window:s(T.windowKey)})},void 0,!1,void 0,this),F!==null&&xe.jsxDEV("button",{type:"button",className:"btn","data-size":"sm",disabled:g.refreshing,onClick:()=>p(d+1),children:g.refreshing&&g.stale?s("errors.loading"):s("errors.load-latest",{count:B(F)})},void 0,!1,void 0,this)]},void 0,!0,void 0,this):void 0,W=k.groups[0]?.count??0,re=Zn.useMemo(()=>cD(W),[W]),K=k.models.find((G)=>G.key===E);return xe.jsxDEV("div",{className:"page",children:[xe.jsxDEV(ua,{title:s("errors.title"),description:s("errors.description",{window:s(T.windowKey)})},void 0,!1,void 0,this),xe.jsxDEV(_e,{query:g,skeleton:xe.jsxDEV(Ba,{height:96,style:{borderRadius:12}},void 0,!1,void 0,this),children:()=>xe.jsxDEV("div",{"data-stale":g.stale,children:xe.jsxDEV(oa,{min:170,children:[xe.jsxDEV(se,{label:s("errors.failures"),value:B(P),hint:X?s("errors.hint-in-window",{window:s(T.windowKey)}):s("errors.hint-latest-loaded",{count:B(P)})},void 0,!1,void 0,this),xe.jsxDEV(se,{label:s("errors.signatures"),title:s("errors.signatures-hint"),value:B(k.groups.length),hint:k.groups[0]?s("errors.signatures-top",{count:B(k.groups[0].count)}):void 0},void 0,!1,void 0,this),xe.jsxDEV(se,{label:s("errors.affected-models"),value:B(k.models.length),hint:k.models[0]?.model},void 0,!1,void 0,this),xe.jsxDEV(se,{label:s("errors.last-failure"),value:k.newest?fa(k.newest.timestamp):"–",hint:k.newest?sr(k.newest.timestamp):s("errors.none-in-window",{window:s(T.windowKey)})},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this),xe.jsxDEV("div",{className:"grid grid-main-side",children:[xe.jsxDEV(Be,{index:1,title:s("errors.error-signatures"),description:s("errors.signatures-card-description"),flush:!0,stale:g.stale,children:xe.jsxDEV(_e,{query:g,skeleton:xe.jsxDEV(ra,{rows:8},void 0,!1,void 0,this),isEmpty:(G)=>G.length===0,empty:xe.jsxDEV(gt,{title:s("errors.empty-no-failures",{window:s(T.windowKey)}),hint:s("errors.empty-all-succeeded")},void 0,!1,void 0,this),children:()=>xe.jsxDEV(Ht,{rows:k.groups,rowKey:(G)=>G.signature,columns:re,onRowClick:(G)=>S(M===G.signature?null:G.signature),selectedKey:M,expanded:(G)=>G.signature===M?xe.jsxDEV(dD,{group:G,onRequestClick:i},void 0,!1,void 0,this):null,limit:12},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this),xe.jsxDEV(Be,{index:2,title:s("errors.by-model"),description:s("errors.by-model-description"),stale:g.stale,children:xe.jsxDEV(_e,{query:g,skeleton:xe.jsxDEV(Ba,{height:180},void 0,!1,void 0,this),isEmpty:(G)=>G.length===0,empty:xe.jsxDEV(gt,{title:s("errors.empty-no-affected-models")},void 0,!1,void 0,this),children:()=>xe.jsxDEV(au,{items:k.models.slice(0,12).map((G)=>({key:G.key,label:xe.jsxDEV("span",{className:"row",style:{gap:6,minWidth:0},children:[xe.jsxDEV("span",{className:"mono truncate",children:G.model},void 0,!1,void 0,this),xe.jsxDEV("span",{className:"dim truncate",children:G.provider},void 0,!1,void 0,this)]},void 0,!0,void 0,this),value:G.count,color:G.key===E?"var(--bad)":"color-mix(in srgb, var(--bad) 45%, transparent)"})),onSelect:(G)=>h(E===G?null:G)},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),xe.jsxDEV(Be,{index:3,title:s("errors.failures"),description:g.data===null?s("errors.loading-failures"):s("errors.filtered-of-total",{shown:B(U.length),total:B(P)}),actions:xe.jsxDEV(xe.Fragment,{children:[M!==null&&xe.jsxDEV("button",{type:"button",className:"btn errors-filter","data-size":"sm",onClick:()=>S(null),title:M,children:[xe.jsxDEV("span",{className:"mono truncate",children:M},void 0,!1,void 0,this),xe.jsxDEV(ao,{size:12},void 0,!1,void 0,this)]},void 0,!0,void 0,this),K&&xe.jsxDEV("button",{type:"button",className:"btn errors-filter","data-size":"sm",onClick:()=>h(null),children:[xe.jsxDEV("span",{className:"mono truncate",children:K.model},void 0,!1,void 0,this),xe.jsxDEV(ao,{size:12},void 0,!1,void 0,this)]},void 0,!0,void 0,this),xe.jsxDEV(pn,{value:C,onChange:w,placeholder:s("errors.search-placeholder")},void 0,!1,void 0,this)]},void 0,!0,void 0,this),flush:!0,stale:g.stale,footer:me,children:xe.jsxDEV(_e,{query:g,skeleton:xe.jsxDEV(ra,{rows:10},void 0,!1,void 0,this),isEmpty:(G)=>G.length===0,empty:xe.jsxDEV(gt,{title:s("errors.empty-no-failures",{window:s(T.windowKey)})},void 0,!1,void 0,this),children:()=>xe.jsxDEV(Ht,{rows:U,rowKey:(G)=>G.id??`${G.sessionFile}:${G.entryId}`,onRowClick:(G)=>G.id!==void 0&&i(G.id),columns:fD,initialSort:{key:"time",dir:"desc"},limit:50,dense:!0,empty:xe.jsxDEV(gt,{title:s("errors.no-match"),hint:s("errors.no-match-hint")},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function cD(l){return[{key:"signature",header:s("errors.signature"),wrap:!0,sort:(c)=>c.signature,render:(c)=>xe.jsxDEV("span",{className:"errors-signature",title:c.latest.errorMessage??void 0,children:c.signature},void 0,!1,void 0,this)},{key:"models",header:s("common.models"),sort:(c)=>c.models.length,render:(c)=>xe.jsxDEV(Ga,{primary:xe.jsxDEV("span",{className:"mono",children:c.models[0]?.model},void 0,!1,void 0,this),secondary:c.models.length>1?s("errors.more-models",{count:B(c.models.length-1)}):c.models[0]?.provider},void 0,!1,void 0,this)},{key:"last",header:s("errors.last-seen"),sort:(c)=>c.lastSeen,render:(c)=>xe.jsxDEV("span",{className:"muted",title:sr(c.lastSeen),children:fa(c.lastSeen)},void 0,!1,void 0,this)},{key:"count",header:s("errors.failures"),align:"right",width:120,sort:(c)=>c.count,render:(c)=>xe.jsxDEV(pa,{value:c.count,max:l,display:B(c.count),color:"var(--bad)"},void 0,!1,void 0,this)}]}function dD({group:l,onRequestClick:c}){let i=l.latest.id;return xe.jsxDEV("div",{className:"errors-detail",children:[xe.jsxDEV("pre",{className:"code-block errors-detail-message",children:l.latest.errorMessage??s("errors.unknown-error")},void 0,!1,void 0,this),xe.jsxDEV("div",{className:"errors-detail-meta",children:[xe.jsxDEV("span",{className:"muted",children:s("errors.group-meta",{count:B(l.count),first:sr(l.firstSeen),last:sr(l.lastSeen)})},void 0,!1,void 0,this),i!==void 0&&xe.jsxDEV("button",{type:"button",className:"btn","data-size":"sm",onClick:()=>c(i),children:[s("errors.open-latest")," ",xe.jsxDEV(yd,{size:13},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),xe.jsxDEV("div",{className:"errors-detail-models",children:l.models.map((d)=>xe.jsxDEV("span",{className:"badge","data-mono":"true",children:[d.model," ",xe.jsxDEV("span",{className:"dim",children:d.provider},void 0,!1,void 0,this)," ",xe.jsxDEV("span",{className:"num",children:De(d.count)},void 0,!1,void 0,this)]},Sa(d.model,d.provider),!0,void 0,this))},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}var fD=[{key:"time",header:s("errors.when"),width:120,sort:(l)=>l.timestamp,render:(l)=>xe.jsxDEV("span",{className:"muted",title:sr(l.timestamp),children:fa(l.timestamp)},void 0,!1,void 0,this)},{key:"model",header:s("common.model"),sort:(l)=>l.model,render:(l)=>xe.jsxDEV(Ga,{primary:xe.jsxDEV("span",{className:"mono",children:l.model},void 0,!1,void 0,this),secondary:l.provider},void 0,!1,void 0,this)},{key:"error",header:s("common.error"),sort:(l)=>l.errorMessage??"",render:(l)=>xe.jsxDEV("span",{className:"errors-message",title:l.errorMessage??void 0,children:l.errorMessage??s("errors.unknown-error")},void 0,!1,void 0,this)},{key:"project",header:s("common.project"),sort:(l)=>l.folder,render:(l)=>xe.jsxDEV("span",{className:"mono muted",title:l.folder,children:hn(l.folder)},void 0,!1,void 0,this)},{key:"tokens",header:s("common.tokens"),align:"right",sort:(l)=>l.usage.totalTokens,render:(l)=>xe.jsxDEV("span",{className:"num",children:B(l.usage.totalTokens)},void 0,!1,void 0,this)},{key:"cost",header:s("common.cost"),title:s("errors.cost-hint"),align:"right",sort:(l)=>l.usage.cost.total,render:(l)=>xe.jsxDEV("span",{className:"num",children:Zl(l,4)},void 0,!1,void 0,this)}];var xt=Q(ct(),1);var N=Q(ue(),1),pD=1000,oh=50,bb=0.5,Gd="*";function TI({active:l,range:c}){let[i,d]=xt.useState(!1),p=Gt(["frustration",c],({signal:L})=>k1(c,L),{enabled:l,pollMs:i?pD:void 0}),x=sa(c),g=p.data?.job.state;xt.useEffect(()=>{if(g!==void 0)d(g==="running")},[g]);let{refetch:b}=p,S=xt.useCallback(()=>{d(!0),b()},[b]);return N.jsxDEV("div",{className:"page",children:[N.jsxDEV(ua,{title:s("frustration.title"),description:s("frustration.description",{window:s(x.windowKey)})},void 0,!1,void 0,this),N.jsxDEV(_e,{query:p,skeleton:N.jsxDEV(Mt,{height:96},void 0,!1,void 0,this),children:(L)=>N.jsxDEV("div",{"data-stale":p.stale,children:N.jsxDEV(mD,{overall:L.overall},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this),N.jsxDEV(_e,{query:p,skeleton:N.jsxDEV(Mt,{height:120},void 0,!1,void 0,this),children:(L)=>N.jsxDEV(hD,{active:l,range:c,judgeAvailable:L.judgeAvailable,job:L.job,onRunStarted:S,onRunChanged:b},void 0,!1,void 0,this)},void 0,!1,void 0,this),N.jsxDEV(_e,{query:p,skeleton:N.jsxDEV(Be,{index:2,title:s("frustration.by-model"),children:[N.jsxDEV(Mt,{height:340},void 0,!1,void 0,this),N.jsxDEV(ra,{rows:6},void 0,!1,void 0,this)]},void 0,!0,void 0,this),children:(L)=>N.jsxDEV(wD,{models:L.byModel,stale:p.stale},void 0,!1,void 0,this)},void 0,!1,void 0,this),N.jsxDEV(_e,{query:p,skeleton:N.jsxDEV(Mt,{height:96},void 0,!1,void 0,this),children:(L)=>N.jsxDEV("div",{className:"frustration-model-summary","data-stale":p.stale,children:N.jsxDEV(RD,{overall:L.modelSide.overall,window:s(x.windowKey)},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this),N.jsxDEV(_e,{query:p,skeleton:N.jsxDEV(Be,{index:4,title:s("frustration.model-by-model"),children:[N.jsxDEV(Mt,{height:300},void 0,!1,void 0,this),N.jsxDEV(ra,{rows:5},void 0,!1,void 0,this)]},void 0,!0,void 0,this),children:(L)=>N.jsxDEV(AD,{models:L.modelSide.byModel,series:L.modelSide.series,range:c,stale:p.stale},void 0,!1,void 0,this)},void 0,!1,void 0,this),N.jsxDEV(_e,{query:p,skeleton:N.jsxDEV(Be,{index:7,title:s("frustration.model-sessions"),children:N.jsxDEV(ra,{rows:5},void 0,!1,void 0,this)},void 0,!1,void 0,this),children:(L)=>N.jsxDEV(DD,{sessions:L.modelSide.bySession,stale:p.stale},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function ma(l,c){return c>0?je(l/c):"–"}function vb(l){return l instanceof Error?l.message:String(l)}function RI(l){let c=Math.max(0,Math.floor(l/1000)),i=Math.floor(c/60),d=c%60;return i>0?`${i}m ${String(d).padStart(2,"0")}s`:`${d}s`}function mD({overall:l}){let c=l.messages-l.judged,i=l.unscored>0?s("frustration.coverage-unscored",{count:B(l.unscored)}):"";return N.jsxDEV(N.Fragment,{children:[N.jsxDEV(oa,{min:170,children:[N.jsxDEV(se,{label:s("frustration.user-messages"),title:s("frustration.user-messages-title"),value:B(l.messages)},void 0,!1,void 0,this),N.jsxDEV(se,{label:s("frustration.judge-coverage"),title:s("frustration.judge-coverage-title"),value:ma(l.judged,l.messages),hint:`${s("frustration.coverage-hint",{judged:B(l.judged),regex:B(c)})}${i}`},void 0,!1,void 0,this),N.jsxDEV(se,{label:s("frustration.annoyed"),title:s("frustration.annoyed-title"),value:ma(l.annoyed,l.messages),hint:s("frustration.messages-n",{count:B(l.annoyed)})},void 0,!1,void 0,this),N.jsxDEV(se,{label:s("frustration.at-assistant"),title:s("frustration.at-assistant-title"),value:ma(l.atAssistant,l.messages),hint:s("frustration.messages-n",{count:B(l.atAssistant)})},void 0,!1,void 0,this),N.jsxDEV(se,{label:s("frustration.angry"),title:s("frustration.angry-title"),value:ma(l.angry,l.messages),hint:s("frustration.messages-n",{count:B(l.angry)})},void 0,!1,void 0,this)]},void 0,!0,void 0,this),l.unscored>0&&N.jsxDEV("p",{className:"micro dim",children:s("frustration.unscored-line",{count:B(l.unscored)})},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}var II="Judging needs the zeta host process: open the dashboard with zetacode stats and configure a judge model. Until then messages are classified by regex signals.";function hD({active:l,range:c,judgeAvailable:i,job:d,onRunStarted:p,onRunChanged:x}){let[g,b]=xt.useState(!1),[S,L]=xt.useState({status:"loading"}),[h,C]=xt.useState(!1),[w,T]=xt.useState(null),[k,M]=xt.useState(!1),[E,U]=xt.useState(null),P=xt.useRef(null),X=d.state==="running",F=xt.useCallback(()=>{P.current?.abort(),P.current=null,b(!1)},[]);xt.useEffect(()=>{if(!l)F()},[l,F]),xt.useEffect(()=>()=>P.current?.abort(),[]);let me=()=>{P.current?.abort();let V=new AbortController;P.current=V;let de=c;L({status:"loading"}),T(null),U(null),b(!0),I1(de,V.signal).then((ve)=>{if(!V.signal.aborted)L({status:"ready",estimate:ve,range:de})},(ve)=>{if(!V.signal.aborted)L({status:"error",message:vb(ve)})})},W=async()=>{if(S.status!=="ready")return;C(!0),T(null);try{await T1(S.range),F(),p()}catch(V){T(vb(V))}finally{C(!1)}},re=async()=>{M(!0),U(null);try{await R1(),x()}catch(V){U(vb(V))}finally{M(!1)}},K=S.status==="ready"?S.estimate:null,G=S.status==="loading"?{label:"Proceed",onClick:W,disabled:!0}:K?.available?{label:h?"Starting…":"Proceed",onClick:W,disabled:h||K.messages===0}:void 0;return N.jsxDEV(Be,{index:1,title:N.jsxDEV(N.Fragment,{children:[s("frustration.judge-panel")," ",N.jsxDEV(gD,{job:d,judgeAvailable:i},void 0,!1,void 0,this)]},void 0,!0,void 0,this),description:s("frustration.judge-description"),actions:N.jsxDEV("button",{type:"button",className:"btn","data-variant":"accent","data-size":"sm",onClick:me,disabled:!i||X,title:!i?II:X?s("frustration.judge-running"):s("frustration.quote-title"),children:[N.jsxDEV(sn,{size:13},void 0,!1,void 0,this)," ",s("frustration.classify")]},void 0,!0,void 0,this),children:[N.jsxDEV("div",{className:"stack frustration-judge",children:[X?N.jsxDEV(vD,{job:d,cancelling:k,onCancel:re},void 0,!1,void 0,this):N.jsxDEV(bD,{job:d},void 0,!1,void 0,this),!i&&N.jsxDEV("p",{className:"micro dim",children:II},void 0,!1,void 0,this),E&&N.jsxDEV("p",{className:"micro tone-bad",role:"alert",children:E},void 0,!1,void 0,this)]},void 0,!0,void 0,this),N.jsxDEV(V1,{open:g,title:s("frustration.classify"),onClose:F,primaryAction:G,children:[N.jsxDEV(yD,{estimate:S},void 0,!1,void 0,this),w&&N.jsxDEV("p",{className:"micro tone-bad",role:"alert",children:w},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)}function gD({job:l,judgeAvailable:c}){switch(l.state){case"running":return N.jsxDEV(Ut,{tone:"ok",children:[N.jsxDEV(dn,{tone:"live",pulse:!0},void 0,!1,void 0,this)," ",s("frustration.running")]},void 0,!0,void 0,this);case"done":return N.jsxDEV(Ut,{tone:"ok",children:s("frustration.last-run-done")},void 0,!1,void 0,this);case"cancelled":return N.jsxDEV(Ut,{tone:"warn",children:s("frustration.last-run-cancelled")},void 0,!1,void 0,this);case"failed":return N.jsxDEV(Ut,{tone:"bad",children:s("frustration.last-run-failed")},void 0,!1,void 0,this);case"idle":return N.jsxDEV(Ut,{children:c?s("frustration.not-run-yet"):s("frustration.regex-only")},void 0,!1,void 0,this)}}function yD({estimate:l}){if(l.status==="loading")return N.jsxDEV("p",{className:"muted",children:s("frustration.estimating")},void 0,!1,void 0,this);if(l.status==="error")return N.jsxDEV("p",{className:"tone-bad",children:l.message},void 0,!1,void 0,this);let c=l.estimate;if(!c.available)return N.jsxDEV("p",{children:c.reason},void 0,!1,void 0,this);if(c.messages===0)return N.jsxDEV("p",{children:s("frustration.all-judged")},void 0,!1,void 0,this);return N.jsxDEV(N.Fragment,{children:[N.jsxDEV("div",{className:"frustration-quote",children:[N.jsxDEV("span",{className:"dim micro",children:s("frustration.estimated-cost")},void 0,!1,void 0,this),N.jsxDEV("span",{className:"num frustration-quote-value",children:["≈ ",da(c.cost)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),N.jsxDEV(Go,{items:[{key:"messages",label:s("frustration.unjudged-messages"),value:B(c.messages)},{key:"chars",label:s("frustration.prose-chars"),value:B(c.chars)},{key:"tokens",label:s("frustration.input-tokens"),value:B(c.inputTokens)},{key:"judge",label:s("frustration.judge-model"),value:c.judge}]},void 0,!1,void 0,this),N.jsxDEV("p",{className:"micro dim",children:s("frustration.estimate-note")},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function vD({job:l,cancelling:c,onCancel:i}){let d=l.done+l.failed,p=l.total>0?Math.min(1,d/l.total):0;return N.jsxDEV("div",{className:"stack frustration-progress",children:[N.jsxDEV("div",{className:"row frustration-progress-head",children:[N.jsxDEV("span",{className:"num",children:[B(l.done),"/",B(l.total)," judged"]},void 0,!0,void 0,this),N.jsxDEV("span",{className:"num dim",children:je(p)},void 0,!1,void 0,this),N.jsxDEV("span",{className:"frustration-spacer"},void 0,!1,void 0,this),N.jsxDEV("button",{type:"button",className:"btn","data-variant":"danger","data-size":"sm",onClick:i,disabled:c,children:c?s("frustration.cancelling"):s("frustration.cancel-run")},void 0,!1,void 0,this)]},void 0,!0,void 0,this),N.jsxDEV("div",{className:"meter frustration-progress-track",role:"progressbar","aria-valuemin":0,"aria-valuemax":l.total,"aria-valuenow":d,children:N.jsxDEV("div",{className:"meter-fill frustration-progress-fill",style:{width:`${p*100}%`}},void 0,!1,void 0,this)},void 0,!1,void 0,this),N.jsxDEV("div",{className:"row micro muted frustration-progress-meta",children:[N.jsxDEV("span",{className:l.failed>0?"tone-bad":void 0,children:s("frustration.failed-n",{count:B(l.failed)})},void 0,!1,void 0,this),N.jsxDEV("span",{children:[s("frustration.cost-so-far")," ",N.jsxDEV("span",{className:"num",children:da(l.cost)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),l.judge&&N.jsxDEV("span",{className:"mono",children:l.judge},void 0,!1,void 0,this),l.startedAt!==null&&N.jsxDEV("span",{children:s("frustration.elapsed",{time:RI(Date.now()-l.startedAt)})},void 0,!1,void 0,this),l.startedAt!==null&&l.done>0&&N.jsxDEV("span",{className:"num",children:[(l.done/Math.max(1,(Date.now()-l.startedAt)/1000)).toFixed(0),"/s"]},void 0,!0,void 0,this),l.concurrency>0&&N.jsxDEV("span",{className:"num",children:s("frustration.in-flight",{count:B(l.concurrency)})},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)}function bD({job:l}){let c=s("frustration.messages-progress",{done:B(l.done),total:B(l.total)}),i=l.failed>0?s("frustration.failed-suffix",{count:B(l.failed)}):"",d=l.judge?s("frustration.judge-with",{judge:l.judge}):"",p=l.startedAt!==null&&l.finishedAt!==null?s("frustration.in-time",{time:RI(l.finishedAt-l.startedAt)}):"";switch(l.state){case"idle":return N.jsxDEV("p",{className:"muted",children:s("frustration.no-run-yet")},void 0,!1,void 0,this);case"running":return null;case"done":return N.jsxDEV("p",{className:"muted",children:s("frustration.run-done-line",{progress:c,failed:i,judge:d,elapsed:p,cost:da(l.cost)})},void 0,!1,void 0,this);case"cancelled":return N.jsxDEV("p",{className:"muted",children:s("frustration.run-cancelled-line",{progress:c,failed:i,cost:da(l.cost)})},void 0,!1,void 0,this);case"failed":return N.jsxDEV("p",{className:"muted",children:s("frustration.run-failed-line",{progress:c,failed:i,error:l.error??s("frustration.unknown-error"),cost:da(l.cost)})},void 0,!1,void 0,this)}}function nu(l){return`${l.modelClass}/${l.family??"unclassified"}`}function wi(l){return l.messages>0&&l.judged/l.messages<bb}function xD(l){let c=2166136261;for(let i=0;i<l.length;i++)c^=l.charCodeAt(i),c=Math.imul(c,16777619);return c>>>0}function AI(l){let c=[...new Set(l.map(nu))].sort(),i=new Set,d=new Map;for(let p of c){let x=xD(p)%Da.length;for(let g=0;g<Da.length&&i.has(x);g++)x=(x+1)%Da.length;i.add(x),d.set(p,Da[x])}return d}function SD(l,c){if(c==="angry")return`color-mix(in srgb, ${l} 55%, black)`;if(c==="other")return`color-mix(in srgb, ${l} 32%, transparent)`;return l}var LD=[{key:"angry",label:"Angry at assistant"},{key:"assistant",label:"At assistant, not angry"},{key:"other",label:"Annoyed at other targets"}];function CD(l,c){if(c==="angry")return l.angry;if(c==="assistant")return l.atAssistant-l.angry;return l.annoyed-l.atAssistant}function Vd(l,c){return c>0?l/c*100:0}function wD({models:l,stale:c}){let[i,d]=xt.useState(null),[p,x]=ur(),[g,b]=xt.useState(!1),[S,L]=xt.useState(!1),h=xt.useMemo(()=>AI(l),[l]),C=xt.useMemo(()=>{let W=new Map;for(let re of l)W.set(re.modelClass,(W.get(re.modelClass)??0)+re.messages);return W},[l]),w=xt.useMemo(()=>{let W=null,re=-1;for(let[K,G]of C)if(G>re)W=K,re=G;return W??Gd},[C]),T=i!==null&&(i===Gd||C.has(i))?i:w,k=xt.useMemo(()=>[{value:Gd,label:"All",title:"Every model class"},...[...C].map(([W,re])=>({value:W,label:W,title:`${B(re)} messages`}))],[C]),M=xt.useMemo(()=>T===Gd?l:l.filter((W)=>W.modelClass===T),[l,T]),E=xt.useMemo(()=>{let W=new Map;for(let re of M){let K=nu(re),G=W.get(K);if(G){G.messages+=re.messages;continue}let V=re.family??"unclassified";W.set(K,{key:K,label:T===Gd?`${re.modelClass} · ${V}`:V,messages:re.messages})}return[...W.values()]},[M,T]),U=xt.useMemo(()=>M.filter((W)=>!p.has(nu(W))),[M,p]),P=U.filter((W)=>W.messages<oh).length,X=U.filter(wi).length,F=xt.useMemo(()=>U.filter((W)=>(g||W.messages>=oh)&&!(S&&wi(W))),[U,g,S]);if(l.length===0)return N.jsxDEV(Be,{index:2,title:s("frustration.by-model"),stale:c,children:N.jsxDEV(gt,{title:s("frustration.no-messages"),hint:s("frustration.try-longer-range")},void 0,!1,void 0,this)},void 0,!1,void 0,this);let me=F.some(wi);return N.jsxDEV(N.Fragment,{children:[N.jsxDEV(Be,{index:2,title:s("frustration.by-model"),description:s("frustration.by-model-description"),stale:c,children:N.jsxDEV("div",{className:"stack frustration-chart-body",children:[N.jsxDEV("div",{className:"frustration-classes",children:N.jsxDEV(Fa,{size:"sm","aria-label":s("frustration.model-class"),options:k,value:T,onChange:d},void 0,!1,void 0,this)},void 0,!1,void 0,this),N.jsxDEV("div",{className:"row frustration-filters",children:[N.jsxDEV(Va,{items:E.map((W)=>({key:W.key,label:W.label,color:h.get(W.key)??Da[0],value:B(W.messages)})),hidden:p,onToggle:x},void 0,!1,void 0,this),N.jsxDEV("span",{className:"frustration-spacer"},void 0,!1,void 0,this),N.jsxDEV("label",{className:"check",title:s("frustration.small-models-title",{count:oh}),children:[N.jsxDEV("input",{type:"checkbox",checked:g,onChange:(W)=>b(W.target.checked)},void 0,!1,void 0,this),s("frustration.include-small",{count:oh}),P>0?` (${P})`:""]},void 0,!0,void 0,this),N.jsxDEV("label",{className:"check",title:s("frustration.hide-regex-title",{share:bb*100}),children:[N.jsxDEV("input",{type:"checkbox",checked:S,onChange:(W)=>L(W.target.checked)},void 0,!1,void 0,this),"Hide mostly regex",X>0?` (${X})`:""]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),N.jsxDEV(kD,{hasRegexRows:me},void 0,!1,void 0,this),N.jsxDEV(ID,{rows:F,familyColors:h},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this),N.jsxDEV(TD,{rows:F,familyColors:h,stale:c},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function kD({hasRegexRows:l}){return N.jsxDEV("div",{className:"legend frustration-key",children:[N.jsxDEV("span",{className:"legend-item",children:[N.jsxDEV("span",{className:"swatch frustration-key-swatch","data-variant":"angry"},void 0,!1,void 0,this),"Angry at assistant"]},void 0,!0,void 0,this),N.jsxDEV("span",{className:"legend-item",children:[N.jsxDEV("span",{className:"swatch frustration-key-swatch","data-variant":"assistant"},void 0,!1,void 0,this),"At assistant"]},void 0,!0,void 0,this),N.jsxDEV("span",{className:"legend-item",children:[N.jsxDEV("span",{className:"swatch frustration-key-swatch","data-variant":"other"},void 0,!1,void 0,this),"Annoyed at other targets"]},void 0,!0,void 0,this),N.jsxDEV("span",{className:"legend-item",children:[N.jsxDEV("span",{className:"frustration-key-line"},void 0,!1,void 0,this),s("frustration.legend-trend")]},void 0,!0,void 0,this),N.jsxDEV("span",{className:"legend-item frustration-key-wide",title:s("frustration.hatch-title",{share:bb*100}),children:[N.jsxDEV("span",{className:"swatch frustration-key-swatch","data-variant":"hatch"},void 0,!1,void 0,this),l?s("frustration.legend-hatched-run"):s("frustration.legend-hatched")]},void 0,!0,void 0,this),N.jsxDEV("span",{className:"legend-item dim",children:s("frustration.legend-hue")},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function ID({rows:l,familyColors:c}){let i=xt.useMemo(()=>{let d=new Map;l.forEach((x,g)=>{let b=nu(x),S=wi(x),L=`${b}|${S?"regex":"judged"}`,h=d.get(L);if(h)h.slots.push(g);else d.set(L,{family:b,regex:S,slots:[g]})});let p=[];for(let x of LD)for(let[g,b]of d){let S=l.map(()=>null);for(let L of b.slots)S[L]=Vd(CD(l[L],x.key),l[L].messages);p.push({key:`${x.key}|${g}`,label:x.label,color:SD(c.get(b.family)??Da[0],x.key),values:S,pattern:b.regex?"hatch":void 0})}return p.push({key:"trend",label:"At assistant (total)",color:"var(--ink-1)",values:l.map((x)=>Vd(x.atAssistant,x.messages)),kind:"line",tooltip:!1}),p},[l,c]);if(l.length===0)return N.jsxDEV("div",{className:"frustration-chart-empty",children:N.jsxDEV(gt,{title:s("frustration.no-model-match")},void 0,!1,void 0,this)},void 0,!1,void 0,this);return N.jsxDEV(Ir,{slots:l.length,tickLabel:(d)=>l[d].label,series:i,height:340,format:(d)=>`${d}%`,formatTooltip:(d)=>`${d.toFixed(1)}%`,showTotal:!1,emptyLabel:"No frustrated messages for these models",tooltipExtra:(d)=>{let p=l[d];return N.jsxDEV("div",{className:"frustration-tooltip-extra",children:[N.jsxDEV("div",{className:"chart-tooltip-row chart-tooltip-total",children:[N.jsxDEV("span",{className:"chart-tooltip-label",children:s("frustration.legend-annoyed-any")},void 0,!1,void 0,this),N.jsxDEV("span",{className:"chart-tooltip-value",children:ma(p.annoyed,p.messages)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),N.jsxDEV("div",{className:"micro dim",children:[B(p.messages)," messages · judged ",B(p.judged)," (",ma(p.judged,p.messages),")",wi(p)?s("frustration.row-mostly-regex"):""]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)}},void 0,!1,void 0,this)}function TD({rows:l,familyColors:c,stale:i}){let d=xt.useMemo(()=>[{key:"model",header:s("common.model"),sort:(p)=>p.label,render:(p)=>N.jsxDEV("span",{className:"row",title:p.key,children:[N.jsxDEV("span",{className:"swatch",style:{background:c.get(nu(p))??Da[0]}},void 0,!1,void 0,this),N.jsxDEV("span",{className:"cell-primary",children:p.label},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},{key:"ids",header:s("frustration.column-model-ids"),wrap:!0,render:(p)=>N.jsxDEV("span",{className:"mono micro dim",children:p.models.join(", ")},void 0,!1,void 0,this)},{key:"messages",header:s("frustration.column-messages"),align:"right",sort:(p)=>p.messages,render:(p)=>N.jsxDEV("span",{className:"num",children:B(p.messages)},void 0,!1,void 0,this)},{key:"judged",header:s("frustration.column-judged"),align:"right",sort:(p)=>p.messages>0?p.judged/p.messages:0,render:(p)=>wi(p)?N.jsxDEV("span",{className:"row frustration-judged",title:s("frustration.mostly-regex"),children:[N.jsxDEV(Ut,{tone:"warn",children:s("frustration.regex-badge")},void 0,!1,void 0,this),N.jsxDEV("span",{className:"num dim",children:ma(p.judged,p.messages)},void 0,!1,void 0,this)]},void 0,!0,void 0,this):N.jsxDEV("span",{className:"num",children:ma(p.judged,p.messages)},void 0,!1,void 0,this)},{key:"annoyed",header:s("frustration.annoyed"),align:"right",sort:(p)=>Vd(p.annoyed,p.messages),render:(p)=>N.jsxDEV("span",{className:"num",title:s("frustration.messages-n",{count:B(p.annoyed)}),children:ma(p.annoyed,p.messages)},void 0,!1,void 0,this)},{key:"atAssistant",header:s("frustration.at-assistant"),align:"right",sort:(p)=>Vd(p.atAssistant,p.messages),render:(p)=>N.jsxDEV("span",{className:"num",title:s("frustration.messages-n",{count:B(p.atAssistant)}),children:ma(p.atAssistant,p.messages)},void 0,!1,void 0,this)},{key:"angry",header:s("frustration.angry"),align:"right",sort:(p)=>Vd(p.angry,p.messages),render:(p)=>N.jsxDEV("span",{className:p.angry>0?"num tone-bad":"num",title:s("frustration.messages-n",{count:B(p.angry)}),children:ma(p.angry,p.messages)},void 0,!1,void 0,this)}],[c]);return N.jsxDEV(Be,{index:3,title:s("frustration.model-versions"),description:s("frustration.table-description"),flush:!0,stale:i,children:N.jsxDEV(Ht,{rows:l,rowKey:(p)=>p.key,columns:d,dense:!0,empty:N.jsxDEV(gt,{title:s("frustration.no-model-match")},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this)}function RD({overall:l,window:c}){let i=l.messages>0?(l.collapse/l.messages).toFixed(2):"–";return N.jsxDEV(N.Fragment,{children:[N.jsxDEV("div",{className:"card-titles",children:[N.jsxDEV("h2",{className:"page-title",children:s("frustration.model-side-title")},void 0,!1,void 0,this),N.jsxDEV("p",{className:"page-description",children:s("frustration.model-side-description",{window:c})},void 0,!1,void 0,this)]},void 0,!0,void 0,this),N.jsxDEV("div",{className:"frustration-model-notes",children:[N.jsxDEV(oa,{min:170,children:[N.jsxDEV(se,{label:s("frustration.model-turns"),title:s("frustration.model-turns-title"),value:B(l.messages)},void 0,!1,void 0,this),N.jsxDEV(se,{label:s("frustration.model-breakdown"),title:s("frustration.model-breakdown-title"),value:ma(l.breakdown,l.messages),hint:s("frustration.turns-n",{count:B(l.breakdown)})},void 0,!1,void 0,this),N.jsxDEV(se,{label:s("frustration.model-mean"),title:s("frustration.model-mean-title"),value:i,hint:s("frustration.model-hint-mean",{value:i})},void 0,!1,void 0,this),N.jsxDEV(se,{label:s("frustration.model-self-blame"),title:s("frustration.model-self-blame-title"),value:ma(l.blamed,l.messages)},void 0,!1,void 0,this),N.jsxDEV(se,{label:s("frustration.model-hedge"),title:s("frustration.model-hedge-title"),value:ma(l.hedged,l.messages)},void 0,!1,void 0,this),N.jsxDEV(se,{label:s("frustration.model-spiral"),title:s("frustration.model-spiral-title"),value:ma(l.spiraled,l.messages)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),l.unscored>0&&N.jsxDEV("p",{className:"micro dim",children:s("frustration.model-unscored-line",{count:B(l.unscored)})},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)}function Rr(l,c){return c>0?l/c*100:0}function AD({models:l,series:c,range:i,stale:d}){let p=sa(i),x=xt.useMemo(()=>AI(l),[l]),g=xt.useMemo(()=>ho(i,c.map((h)=>h.timestamp),p.bucketMs),[c,i,p.bucketMs]),b=xt.useMemo(()=>new Map(c.map((h)=>[h.timestamp,h])),[c]),S=xt.useMemo(()=>[{key:"breakdown",label:s("frustration.model-legend-breakdown"),color:"var(--chart-primary)",values:g.map((h)=>{let C=b.get(h);return C&&C.messages>0?Rr(C.breakdown,C.messages):null})}],[g,b]),L=xt.useMemo(()=>[...l].sort((h,C)=>Rr(C.breakdown,C.messages)-Rr(h.breakdown,h.messages)||C.messages-h.messages).slice(0,12),[l]);if(l.length===0)return N.jsxDEV(Be,{index:4,title:s("frustration.model-by-model"),stale:d,children:N.jsxDEV(gt,{title:s("frustration.model-no-turns"),hint:s("frustration.model-try-longer-range")},void 0,!1,void 0,this)},void 0,!1,void 0,this);return N.jsxDEV(N.Fragment,{children:[N.jsxDEV(Be,{index:4,title:s("frustration.model-by-model"),description:s("frustration.model-by-model-description"),stale:d,children:N.jsxDEV(au,{max:100,items:L.map((h)=>({key:h.key,label:h.label,value:Rr(h.breakdown,h.messages),display:ma(h.breakdown,h.messages),color:x.get(nu(h))??Da[0]}))},void 0,!1,void 0,this)},void 0,!1,void 0,this),N.jsxDEV(Be,{index:5,title:s("frustration.model-over-time"),description:s("frustration.model-over-time-description"),actions:N.jsxDEV(Va,{items:S.map((h)=>({key:h.key,label:h.label,color:h.color}))},void 0,!1,void 0,this),stale:d,children:N.jsxDEV(Tr,{buckets:g,bucketMs:p.bucketMs,series:S,height:260,yMax:100,format:(h)=>`${h}%`,formatTooltip:(h)=>`${h.toFixed(1)}%`,emptyLabel:s("frustration.model-no-turns")},void 0,!1,void 0,this)},void 0,!1,void 0,this),N.jsxDEV(MD,{rows:l,familyColors:x,stale:d},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function MD({rows:l,familyColors:c,stale:i}){let d=xt.useMemo(()=>[{key:"model",header:s("common.model"),sort:(p)=>p.label,render:(p)=>N.jsxDEV("span",{className:"row",title:p.key,children:[N.jsxDEV("span",{className:"swatch",style:{background:c.get(nu(p))??Da[0]}},void 0,!1,void 0,this),N.jsxDEV("span",{className:"cell-primary",children:p.label},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},{key:"ids",header:s("frustration.column-model-ids"),wrap:!0,render:(p)=>N.jsxDEV("span",{className:"mono micro dim",children:p.models.join(", ")},void 0,!1,void 0,this)},{key:"turns",header:s("frustration.column-turns"),align:"right",sort:(p)=>p.messages,render:(p)=>N.jsxDEV("span",{className:"num",children:B(p.messages)},void 0,!1,void 0,this)},{key:"selfBlame",header:s("frustration.model-self-blame"),align:"right",sort:(p)=>Rr(p.blamed,p.messages),render:(p)=>N.jsxDEV("span",{className:"num",title:s("frustration.turns-n",{count:B(p.blamed)}),children:ma(p.blamed,p.messages)},void 0,!1,void 0,this)},{key:"restatement",header:s("frustration.model-restatement"),title:s("frustration.model-restatement-title"),align:"right",sort:(p)=>Rr(p.restated,p.messages),render:(p)=>N.jsxDEV("span",{className:"num",title:s("frustration.turns-n",{count:B(p.restated)}),children:ma(p.restated,p.messages)},void 0,!1,void 0,this)},{key:"hedge",header:s("frustration.model-hedge"),align:"right",sort:(p)=>Rr(p.hedged,p.messages),render:(p)=>N.jsxDEV("span",{className:"num",title:s("frustration.turns-n",{count:B(p.hedged)}),children:ma(p.hedged,p.messages)},void 0,!1,void 0,this)},{key:"rambling",header:s("frustration.model-rambling"),title:s("frustration.model-rambling-title"),align:"right",sort:(p)=>Rr(p.verbose,p.messages),render:(p)=>N.jsxDEV("span",{className:"num",title:s("frustration.turns-n",{count:B(p.verbose)}),children:ma(p.verbose,p.messages)},void 0,!1,void 0,this)},{key:"spiral",header:s("frustration.model-spiral"),align:"right",sort:(p)=>Rr(p.spiraled,p.messages),render:(p)=>N.jsxDEV("span",{className:"num",title:s("frustration.turns-n",{count:B(p.spiraled)}),children:ma(p.spiraled,p.messages)},void 0,!1,void 0,this)},{key:"breakdown",header:s("frustration.model-breakdown"),align:"right",sort:(p)=>Rr(p.breakdown,p.messages),render:(p)=>N.jsxDEV("span",{className:"num",title:s("frustration.turns-n",{count:B(p.breakdown)}),children:ma(p.breakdown,p.messages)},void 0,!1,void 0,this)},{key:"mean",header:s("frustration.column-mean"),align:"right",sort:(p)=>p.messages>0?p.collapse/p.messages:0,render:(p)=>N.jsxDEV("span",{className:"num",children:p.messages>0?(p.collapse/p.messages).toFixed(2):"–"},void 0,!1,void 0,this)}],[c]);return N.jsxDEV(Be,{index:6,title:s("frustration.model-table-title"),description:s("frustration.model-table-description"),flush:!0,stale:i,children:N.jsxDEV(Ht,{rows:l,rowKey:(p)=>p.key,columns:d,dense:!0,empty:N.jsxDEV(gt,{title:s("frustration.model-no-turns")},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this)}function DD({sessions:l,stale:c}){let i=xt.useMemo(()=>[{key:"session",header:s("frustration.column-session"),render:(d)=>N.jsxDEV("span",{className:"stack",title:d.sessionFile,children:[N.jsxDEV("span",{className:"cell-primary mono micro",children:d.sessionFile.split(/[\\/]/).pop()??d.sessionFile},void 0,!1,void 0,this),N.jsxDEV("span",{className:"micro dim truncate",children:d.folder},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},{key:"models",header:s("common.model"),wrap:!0,render:(d)=>N.jsxDEV("span",{className:"mono micro dim",children:d.models.join(", ")},void 0,!1,void 0,this)},{key:"turns",header:s("frustration.column-turns"),align:"right",sort:(d)=>d.messages,render:(d)=>N.jsxDEV("span",{className:"num",children:B(d.messages)},void 0,!1,void 0,this)},{key:"breakdown",header:s("frustration.model-breakdown"),align:"right",sort:(d)=>Rr(d.breakdown,d.messages),render:(d)=>N.jsxDEV("span",{className:"num",title:s("frustration.turns-n",{count:B(d.breakdown)}),children:ma(d.breakdown,d.messages)},void 0,!1,void 0,this)},{key:"mean",header:s("frustration.column-mean"),align:"right",sort:(d)=>d.messages>0?d.collapse/d.messages:0,render:(d)=>N.jsxDEV("span",{className:"num",children:d.messages>0?(d.collapse/d.messages).toFixed(2):"–"},void 0,!1,void 0,this)},{key:"toolErrors",header:s("frustration.column-tool-errors"),align:"right",sort:(d)=>d.toolErrors,render:(d)=>N.jsxDEV("span",{className:d.toolErrors>0?"num tone-bad":"num",children:B(d.toolErrors)},void 0,!1,void 0,this)}],[]);return N.jsxDEV(Be,{index:7,title:s("frustration.model-sessions"),description:s("frustration.model-sessions-description"),flush:!0,stale:c,children:N.jsxDEV(Ht,{rows:l,rowKey:(d)=>d.sessionFile,columns:i,dense:!0,empty:N.jsxDEV(gt,{title:s("frustration.model-no-turns")},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this)}var jd=Q(ct(),1);var Ot=Q(ue(),1),ED=86400000,qD={snapcompact:"Snapcompact"},OD=new Intl.DateTimeFormat(void 0,{month:"short",day:"numeric",timeZone:"UTC"});function MI({active:l,range:c}){let[i,d]=jd.useState(null),p=Gt(["gain",c,i],({signal:w})=>M1(c,i,w),{enabled:l}),x=sa(c),g=p.data,b=jd.useMemo(()=>{let w=(g?.timeSeries??[]).map((U)=>({...U,timestamp:Date.parse(`${U.date}T00:00:00Z`)})),T=ho(c,w.map((U)=>U.timestamp),ED),k=La(w,T,(U)=>U.snapcompact),M=0,E=k.map((U)=>M+=U);return{buckets:T,daily:k,cumulative:E}},[g,c]),S=jd.useMemo(()=>{if(!g)return[];let w=g.overall.savedTokens;return Object.keys(g.bySource).map((T)=>({...g.bySource[T],source:T,share:w>0?g.bySource[T].savedTokens/w:0}))},[g]),L=g?.projects??[],h=i!==null&&!L.includes(i)?[i,...L]:L,C=[{key:"daily",label:s("gain.saved-per-day"),color:"var(--chart-primary)",values:b.daily},{key:"cumulative",label:s("gain.cumulative"),color:"var(--chart-secondary)",values:b.cumulative,kind:"line",axis:"right"}];return Ot.jsxDEV("div",{className:"page",children:[Ot.jsxDEV(ua,{title:s("gain.title"),description:i?s("gain.description-scoped",{project:i,window:s(x.windowKey)}):s("gain.description",{window:s(x.windowKey)}),actions:h.length>0&&Ot.jsxDEV("select",{className:"input","aria-label":s("common.project"),value:i??"",onChange:(w)=>d(w.target.value||null),style:{maxWidth:320},children:[Ot.jsxDEV("option",{value:"",children:s("gain.all-projects")},void 0,!1,void 0,this),h.map((w)=>Ot.jsxDEV("option",{value:w,children:w},w,!1,void 0,this))]},void 0,!0,void 0,this)},void 0,!1,void 0,this),Ot.jsxDEV(_e,{query:p,skeleton:Ot.jsxDEV(Mt,{height:96},void 0,!1,void 0,this),isEmpty:(w)=>w.overall.hits===0&&w.timeSeries.length===0,empty:Ot.jsxDEV(Be,{children:Ot.jsxDEV(gt,{title:i?s("gain.empty-title-scoped",{project:i,window:s(x.windowKey)}):s("gain.empty-title",{window:s(x.windowKey)}),hint:c==="all"?s("gain.empty-hint-all"):s("gain.empty-hint-longer-range")},void 0,!1,void 0,this)},void 0,!1,void 0,this),children:({overall:w})=>Ot.jsxDEV(Ot.Fragment,{children:[Ot.jsxDEV("div",{"data-stale":p.stale,children:Ot.jsxDEV(oa,{min:180,children:[Ot.jsxDEV(se,{label:s("gain.saved-tokens"),value:De(w.savedTokens),hint:B(w.savedTokens),spark:b.daily},void 0,!1,void 0,this),Ot.jsxDEV(se,{label:s("gain.saved-bytes"),value:sb(w.savedBytes)},void 0,!1,void 0,this),Ot.jsxDEV(se,{label:s("gain.reduction"),title:s("gain.reduction-title"),value:w.reductionPercent!==null?je(w.reductionPercent):"–",hint:w.reductionPercent===null?s("gain.reduction-unknown"):void 0},void 0,!1,void 0,this),Ot.jsxDEV(se,{label:s("gain.hits"),value:B(w.hits)},void 0,!1,void 0,this),Ot.jsxDEV(se,{label:s("gain.saved-per-hit"),value:w.hits>0?De(w.savedTokens/w.hits):"–",hint:s("common.tokens")},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this),Ot.jsxDEV(Be,{index:1,title:s("gain.savings-over-time"),description:s("gain.savings-over-time-description"),actions:Ot.jsxDEV(Va,{items:C.map((T)=>({key:T.key,label:T.label,color:T.color}))},void 0,!1,void 0,this),stale:p.stale,children:Ot.jsxDEV(Ir,{slots:b.buckets.length,tickLabel:(T)=>OD.format(b.buckets[T]),series:C,height:260,formatTooltip:B,formatRight:De},void 0,!1,void 0,this)},void 0,!1,void 0,this),Ot.jsxDEV(Be,{index:2,title:s("gain.by-source"),description:s("gain.by-source-description"),flush:!0,stale:p.stale,children:Ot.jsxDEV(Ht,{rows:S,rowKey:(T)=>T.source,columns:ND},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}var ND=[{key:"source",header:s("gain.source"),sort:(l)=>l.source,render:(l)=>Ot.jsxDEV("span",{className:"cell-primary",children:qD[l.source]},void 0,!1,void 0,this)},{key:"tokens",header:s("gain.saved-tokens"),align:"right",sort:(l)=>l.savedTokens,render:(l)=>Ot.jsxDEV("span",{title:B(l.savedTokens),children:Ot.jsxDEV(pa,{value:l.share,max:1,display:De(l.savedTokens)},void 0,!1,void 0,this)},void 0,!1,void 0,this)},{key:"share",header:s("common.share"),align:"right",sort:(l)=>l.share,render:(l)=>Ot.jsxDEV("span",{className:"num muted",children:je(l.share)},void 0,!1,void 0,this)},{key:"bytes",header:s("gain.saved-bytes"),align:"right",sort:(l)=>l.savedBytes,render:(l)=>Ot.jsxDEV("span",{className:"num",children:sb(l.savedBytes)},void 0,!1,void 0,this)},{key:"hits",header:s("gain.hits"),align:"right",sort:(l)=>l.hits,render:(l)=>Ot.jsxDEV("span",{className:"num",children:B(l.hits)},void 0,!1,void 0,this)},{key:"reduction",header:s("gain.reduction"),align:"right",sort:(l)=>l.reductionPercent??-1,render:(l)=>Ot.jsxDEV("span",{className:"num",children:l.reductionPercent!==null?je(l.reductionPercent):"–"},void 0,!1,void 0,this)}];var ki=Q(ct(),1);var ke=Q(ue(),1),BD=[{value:"share",label:s("common.share")},{value:"requests",label:s("common.requests")}],zD=6;function EI({active:l,range:c}){let i=Gt(["models",c],({signal:M})=>v1(c,M),{enabled:l}),d=sa(c),[p,x]=ki.useState("share"),[g,b]=ur(),[S,L]=ki.useState(null),h=ki.useMemo(()=>i.data?UD(i.data,c):null,[i.data,c]),C=FD(d.bucketMs),w=ki.useMemo(()=>h?_D(h,S,C):[],[h,S,C]),T=(M)=>M.byModel.length===0,k=ke.jsxDEV(gt,{title:s("models.empty-title"),hint:s("models.empty-hint")},void 0,!1,void 0,this);return ke.jsxDEV("div",{className:"page",children:[ke.jsxDEV(ua,{title:s("common.models"),description:s("models.subtitle",{window:s(d.windowKey)})},void 0,!1,void 0,this),ke.jsxDEV(_e,{query:i,skeleton:ke.jsxDEV(Ba,{height:112,style:{borderRadius:12}},void 0,!1,void 0,this),isEmpty:T,empty:k,children:()=>h&&ke.jsxDEV("div",{"data-stale":i.stale,children:ke.jsxDEV(oa,{min:200,children:[ke.jsxDEV(se,{label:s("models.used"),value:B(h.models.length),hint:h.providerCount===1?s("models.across-providers-one",{count:B(h.providerCount)}):s("models.across-providers",{count:B(h.providerCount)})},void 0,!1,void 0,this),ke.jsxDEV(se,{label:s("models.most-used"),title:h.top?`${h.top.model} (${h.top.provider})`:void 0,value:h.top?h.top.model:"–",hint:h.top?s("models.most-used-hint",{share:je(h.top.totalRequests/Math.max(1,h.totalRequests)),provider:h.top.provider}):void 0},void 0,!1,void 0,this),ke.jsxDEV(se,{label:s("common.requests"),value:B(h.totalRequests),hint:s("models.failed-n",{count:B(h.failedRequests)}),spark:h.requestTotals},void 0,!1,void 0,this),ke.jsxDEV(se,{label:s("models.api-cost"),title:s("models.api-cost-title"),value:Ft(h.totalCost,h.unpricedRequests),hint:h.unpricedRequests>0?s("models.unpriced-n",{count:B(h.unpricedRequests)}):void 0},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this),ke.jsxDEV(Be,{index:1,title:s("models.request-share"),description:p==="share"?s("models.share-desc",{bucket:C}):s("models.count-desc",{bucket:C}),actions:ke.jsxDEV(Fa,{size:"sm",options:BD,value:p,onChange:x,"aria-label":s("models.share-mode-aria")},void 0,!1,void 0,this),stale:i.stale,children:ke.jsxDEV(_e,{query:i,skeleton:ke.jsxDEV(Mt,{height:260},void 0,!1,void 0,this),isEmpty:T,empty:k,children:()=>h&&ke.jsxDEV("div",{className:"stack",style:{gap:12},children:[ke.jsxDEV(Tr,{buckets:h.buckets,bucketMs:d.bucketMs,series:p==="share"?h.shareSeries:h.countSeries,hidden:g,height:260,yMax:p==="share"?1:void 0,format:p==="share"?(M)=>je(M,0):De,formatTooltip:p==="share"?(M)=>je(M):B,showTotal:p==="requests"},void 0,!1,void 0,this),ke.jsxDEV(Va,{items:h.countSeries.map((M)=>({key:M.key,label:M.label,color:M.color,value:je(DI(M.values)/Math.max(1,DI(h.requestTotals)))})),hidden:g,onToggle:b},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this),ke.jsxDEV(Be,{index:2,title:s("models.all-models"),description:s("models.table-desc"),stale:i.stale,flush:!0,children:ke.jsxDEV(_e,{query:i,skeleton:ke.jsxDEV(ra,{rows:8},void 0,!1,void 0,this),isEmpty:T,empty:k,children:()=>h&&ke.jsxDEV(Ht,{rows:h.models,rowKey:(M)=>Sa(M.model,M.provider),columns:w,initialSort:{key:"requests",dir:"desc"},limit:25,onRowClick:(M)=>{let E=Sa(M.model,M.provider);L((U)=>U===E?null:E)},selectedKey:S,expanded:(M)=>{let E=Sa(M.model,M.provider);return E===S?ke.jsxDEV(HD,{model:M,color:h.swatches.get(E)??"var(--chart-primary)",points:h.performance.get(E)??[],bucketMs:d.bucketMs,bucketWord:C},void 0,!1,void 0,this):null}},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 UD(l,c){let i=l.byModel,d=th(i),p=PD(i),x=ho(c,l.modelSeries.map((E)=>E.timestamp)),g=La(l.modelSeries,x,(E)=>E.requests),b={buckets:x,key:(E)=>Sa(E.model,E.provider),label:(E)=>p.get(E)??E,value:(E)=>E.requests,colors:d},S=vn(l.modelSeries,{...b,limit:zD}).map((E)=>({...E,values:E.values.map((U)=>U||null)})),L=S.map((E)=>({...E,values:E.values.map((U,P)=>U===null?null:U/g[P])})),h=new Map(vn(l.modelSeries,b).map((E)=>[E.key,E.values])),C,w=0,T=0,k=0,M=0;for(let E of i){if(!C||E.totalRequests>C.totalRequests)C=E;w+=E.totalRequests,T+=E.failedRequests,k+=E.totalCost,M+=E.unpricedRequests}return{models:i,top:C,swatches:new Map(S.filter((E)=>E.key!=="__other__").map((E)=>[E.key,E.color])),labels:p,providerCount:new Set(i.map((E)=>E.provider)).size,totalRequests:w,failedRequests:T,totalCost:k,unpricedRequests:M,maxRequests:C?.totalRequests??0,buckets:x,requestTotals:g,countSeries:S,shareSeries:L,trends:h,performance:vI(l.modelPerformanceSeries)}}function PD(l){let c=new Map;for(let i of l)c.set(i.model,(c.get(i.model)??0)+1);return new Map(l.map((i)=>[Sa(i.model,i.provider),(c.get(i.model)??0)>1?`${i.model} · ${i.provider}`:i.model]))}function _D(l,c,i){return[{key:"expand",header:"",width:28,render:(d)=>ke.jsxDEV("span",{className:"models-chevron","data-open":Sa(d.model,d.provider)===c,children:ke.jsxDEV(Lr,{size:14},void 0,!1,void 0,this)},void 0,!1,void 0,this)},{key:"model",header:s("common.model"),sort:(d)=>d.model,render:(d)=>ke.jsxDEV(Ga,{lead:ke.jsxDEV(Cr,{color:l.swatches.get(Sa(d.model,d.provider))??ro},void 0,!1,void 0,this),primary:ke.jsxDEV("span",{className:"mono",children:d.model},void 0,!1,void 0,this),secondary:d.provider},void 0,!1,void 0,this)},{key:"requests",header:s("common.requests"),align:"right",sort:(d)=>d.totalRequests,render:(d)=>ke.jsxDEV(pa,{value:d.totalRequests,max:l.maxRequests,display:B(d.totalRequests),color:l.swatches.get(Sa(d.model,d.provider))??ro},void 0,!1,void 0,this)},{key:"cost",header:s("common.cost"),title:s("models.cost-title"),align:"right",sort:(d)=>d.totalCost,render:(d)=>ke.jsxDEV("span",{className:"num",children:Ft(d.totalCost,d.unpricedRequests)},void 0,!1,void 0,this)},{key:"tokens",header:s("common.tokens"),title:s("models.tokens-title"),align:"right",sort:(d)=>Jl(d),render:(d)=>{let p=Jl(d);return ke.jsxDEV("span",{className:"num",title:B(p),children:De(p)},void 0,!1,void 0,this)}},{key:"cache",header:s("models.cache-rate"),title:s("models.cache-title"),align:"right",sort:(d)=>d.cacheRate,render:(d)=>ke.jsxDEV("span",{className:"num",children:je(d.cacheRate)},void 0,!1,void 0,this)},{key:"errors",header:s("models.errors"),align:"right",sort:(d)=>d.errorRate,render:(d)=>d.failedRequests===0?ke.jsxDEV("span",{className:"num dim",children:"0%"},void 0,!1,void 0,this):ke.jsxDEV("span",{title:s("models.failed-n",{count:B(d.failedRequests)}),children:ke.jsxDEV(Ut,{tone:fn(d.errorRate),mono:!0,children:oo(d.errorRate)},void 0,!1,void 0,this)},void 0,!1,void 0,this)},{key:"tps",header:s("common.tokens-per-second"),title:s("models.tps-title"),align:"right",sort:(d)=>d.avgTokensPerSecond??-1,render:(d)=>ke.jsxDEV("span",{className:"num",children:mn(d.avgTokensPerSecond)},void 0,!1,void 0,this)},{key:"ttft",header:s("models.ttft"),title:s("models.ttft-title"),align:"right",sort:(d)=>d.avgTtft??-1,render:(d)=>ke.jsxDEV("span",{className:"num",children:Dt(d.avgTtft)},void 0,!1,void 0,this)},{key:"trend",header:s("models.trend"),title:s("models.trend-title",{bucket:i}),width:112,render:(d)=>{let p=Sa(d.model,d.provider),x=l.trends.get(p);return x?ke.jsxDEV(bi,{values:x.map((g)=>g??0),color:l.swatches.get(p)??ro,width:96,height:22},void 0,!1,void 0,this):ke.jsxDEV("span",{className:"dim",children:"–"},void 0,!1,void 0,this)}}]}function HD({model:l,color:c,points:i,bucketMs:d,bucketWord:p}){let[x,g]=ur(),b=[{key:"tps",label:s("common.tokens-per-second"),color:c,kind:i.length>1?"line":"bars",values:i.map((S)=>S.avgTokensPerSecond)},{key:"ttft",label:s("models.ttft"),color:ro,kind:i.length>1?"line":"bars",axis:"right",dashed:!0,values:i.map((S)=>S.avgTtftSeconds)}];return ke.jsxDEV("div",{className:"models-detail",children:[ke.jsxDEV("div",{className:"models-detail-facts",children:[ke.jsxDEV("div",{children:[ke.jsxDEV("div",{className:"section-label",children:s("models.efficiency")},void 0,!1,void 0,this),ke.jsxDEV(Go,{items:[{key:"err",label:s("common.error-rate"),value:ke.jsxDEV("span",{className:`tone-${fn(l.errorRate)}`,children:[oo(l.errorRate)," ",ke.jsxDEV("span",{className:"dim",children:["(",s("models.failed-n",{count:B(l.failedRequests)}),")"]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)},{key:"cache",label:s("models.cache-rate"),value:je(l.cacheRate)},{key:"savings",label:s("models.cache-savings"),value:ke.jsxDEV("span",{className:l.cacheSavings<0?"tone-bad":void 0,children:je(l.cacheSavings)},void 0,!1,void 0,this)},{key:"premium",label:s("common.premium-requests"),value:B(Math.round(l.totalPremiumRequests*100)/100)}]},void 0,!1,void 0,this)]},void 0,!0,void 0,this),ke.jsxDEV("div",{children:[ke.jsxDEV("div",{className:"section-label",children:s("models.latency")},void 0,!1,void 0,this),ke.jsxDEV(Go,{items:[{key:"dur",label:s("models.avg-duration"),value:Dt(l.avgDuration)},{key:"ttft",label:s("models.avg-ttft"),value:Dt(l.avgTtft)},{key:"tps",label:s("common.tokens-per-second"),value:mn(l.avgTokensPerSecond)}]},void 0,!1,void 0,this)]},void 0,!0,void 0,this),ke.jsxDEV("div",{children:[ke.jsxDEV("div",{className:"section-label",children:s("common.tokens")},void 0,!1,void 0,this),ke.jsxDEV(Go,{items:[{key:"in",label:s("models.uncached-input"),value:De(l.totalInputTokens)},{key:"cr",label:s("common.cache-read"),value:De(l.totalCacheReadTokens)},{key:"cw",label:s("common.cache-write"),value:De(l.totalCacheWriteTokens)},{key:"out",label:s("common.output"),value:De(l.totalOutputTokens)}]},void 0,!1,void 0,this)]},void 0,!0,void 0,this),ke.jsxDEV("div",{className:"micro dim",children:s("models.first-last-seen",{first:fa(l.firstTimestamp),last:fa(l.lastTimestamp)})},void 0,!1,void 0,this)]},void 0,!0,void 0,this),ke.jsxDEV("div",{className:"models-detail-chart",children:[ke.jsxDEV("div",{className:"row",style:{justifyContent:"space-between"},children:[ke.jsxDEV("div",{className:"section-label",style:{marginBottom:0},children:s("models.performance-per-bucket",{bucket:p})},void 0,!1,void 0,this),ke.jsxDEV(Va,{items:b.map((S)=>({key:S.key,label:S.label,color:S.color})),hidden:x,onToggle:g},void 0,!1,void 0,this)]},void 0,!0,void 0,this),i.length===0?ke.jsxDEV(gt,{title:s("models.no-samples-title"),hint:s("models.no-samples-hint")},void 0,!1,void 0,this):ke.jsxDEV(Tr,{buckets:i.map((S)=>S.timestamp),bucketMs:d,series:b,hidden:x,stacked:!1,height:240,format:De,formatTooltip:(S)=>s("models.tok-per-second",{value:mn(S)}),formatRight:(S)=>`${Number(S.toFixed(2))}s`,tooltipExtra:(S)=>ke.jsxDEV("div",{className:"chart-tooltip-row chart-tooltip-total",children:[ke.jsxDEV("span",{className:"chart-tooltip-label",children:s("common.requests")},void 0,!1,void 0,this),ke.jsxDEV("span",{className:"chart-tooltip-value",children:B(i[S].requests)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)}function FD(l){if(l<3600000)return s("models.bucket-5m");if(l<86400000)return s("models.bucket-hour");return s("models.bucket-day")}function DI(l){let c=0;for(let i of l)c+=i??0;return c}var rh=Q(ct(),1);var Ae=Q(ue(),1),GD=[{value:"requests",label:s("common.requests")},{value:"tokens",label:s("common.tokens")},{value:"cost",label:s("common.cost")}],qI={main:s("overview.main-agent"),subagent:s("overview.subagents"),advisor:s("overview.advisor")},OI={main:"var(--chart-primary)",subagent:"var(--chart-secondary)",advisor:"#9d7bff"},NI=[{key:"input",label:s("overview.uncached-input"),color:"#5b8cff"},{key:"cacheRead",label:s("common.cache-read"),color:"var(--chart-primary)"},{key:"cacheWrite",label:s("common.cache-write"),color:"#f5b54a"},{key:"output",label:s("common.output"),color:"var(--chart-secondary)"}];function BI({active:l,range:c,onRequestClick:i}){let d=Gt(["overview",c],({signal:h})=>y1(c,h),{enabled:l}),p=Gt(["recent-requests"],({signal:h})=>zm(12,h),{enabled:l}),[x,g]=rh.useState("requests"),b=sa(c),S=rh.useMemo(()=>{let h=d.data?.timeSeries??[],C=ho(c,h.map((w)=>w.timestamp));return{buckets:C,requests:La(h,C,(w)=>w.requests-w.errors),errors:La(h,C,(w)=>w.errors),tokens:La(h,C,(w)=>w.tokens),cost:La(h,C,(w)=>w.cost),all:La(h,C,(w)=>w.requests)}},[d.data,c]),L=x==="requests"?[{key:"ok",label:s("overview.succeeded"),color:"var(--chart-primary)",values:S.requests},{key:"err",label:s("common.failed"),color:"var(--bad)",values:S.errors}]:x==="tokens"?[{key:"tokens",label:s("common.tokens"),color:"var(--chart-primary)",values:S.tokens}]:[{key:"cost",label:s("overview.api-equivalent"),color:"var(--chart-secondary)",values:S.cost}];return Ae.jsxDEV("div",{className:"page",children:[Ae.jsxDEV(ua,{title:s("overview.title"),description:s("overview.description",{window:s(b.windowKey)})},void 0,!1,void 0,this),Ae.jsxDEV(_e,{query:d,skeleton:Ae.jsxDEV(Mt,{height:112},void 0,!1,void 0,this),children:({overall:h})=>Ae.jsxDEV("div",{"data-stale":d.stale,className:"stack",style:{gap:16},children:[Ae.jsxDEV(oa,{min:190,children:[Ae.jsxDEV(se,{label:s("overview.api-equivalent-cost"),title:s("overview.api-cost-title"),value:Ft(h.totalCost,h.unpricedRequests),hint:h.unpricedRequests>0?s("overview.unpriced-n",{count:B(h.unpricedRequests)}):void 0,spark:S.cost,sparkColor:"var(--chart-secondary)"},void 0,!1,void 0,this),Ae.jsxDEV(se,{label:s("common.requests"),value:B(h.totalRequests),hint:s("overview.failed-n",{count:B(h.failedRequests)}),spark:S.all},void 0,!1,void 0,this),Ae.jsxDEV(se,{label:s("overview.conversation-tokens"),title:s("overview.tokens-title"),value:De(Jl(h)),hint:s("overview.output-n",{count:De(h.totalOutputTokens)}),spark:S.tokens},void 0,!1,void 0,this),Ae.jsxDEV(se,{label:s("overview.cache-rate"),title:s("overview.cache-rate-title"),value:je(h.cacheRate),hint:s("overview.cache-saved",{value:je(h.cacheSavings)})},void 0,!1,void 0,this),Ae.jsxDEV(se,{label:s("common.error-rate"),value:oo(h.errorRate),hint:s("overview.succeeded-n",{count:B(h.successfulRequests)}),spark:S.errors,sparkColor:"var(--bad)"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),Ae.jsxDEV(oa,{min:140,children:[Ae.jsxDEV(se,{size:"sm",label:s("overview.uncached-input"),value:De(h.totalInputTokens)},void 0,!1,void 0,this),Ae.jsxDEV(se,{size:"sm",label:s("common.cache-read"),value:De(h.totalCacheReadTokens)},void 0,!1,void 0,this),Ae.jsxDEV(se,{size:"sm",label:s("common.cache-write"),value:De(h.totalCacheWriteTokens)},void 0,!1,void 0,this),Ae.jsxDEV(se,{size:"sm",label:s("common.output"),value:De(h.totalOutputTokens)},void 0,!1,void 0,this),Ae.jsxDEV(se,{size:"sm",label:s("common.premium-requests"),value:B(Math.round(h.totalPremiumRequests*100)/100)},void 0,!1,void 0,this),Ae.jsxDEV(se,{size:"sm",label:s("common.tokens-per-second"),value:mn(h.avgTokensPerSecond)},void 0,!1,void 0,this),Ae.jsxDEV(se,{size:"sm",label:s("overview.avg-latency"),value:Dt(h.avgDuration)},void 0,!1,void 0,this),Ae.jsxDEV(se,{size:"sm",label:s("overview.avg-ttft"),value:Dt(h.avgTtft)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this),Ae.jsxDEV("div",{className:"grid grid-main-side",children:[Ae.jsxDEV(Be,{index:1,title:s("overview.activity"),description:b.bucketMs<3600000?s("overview.per-5m"):b.bucketMs<86400000?s("overview.per-hour"):s("overview.per-day"),actions:Ae.jsxDEV(Fa,{size:"sm",options:GD,value:x,onChange:g},void 0,!1,void 0,this),stale:d.stale,children:Ae.jsxDEV(_e,{query:d,skeleton:Ae.jsxDEV(Mt,{height:260},void 0,!1,void 0,this),children:()=>Ae.jsxDEV(Tr,{buckets:S.buckets,bucketMs:b.bucketMs,series:L,height:260,format:x==="cost"?(h)=>Ft(h,0):De},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this),Ae.jsxDEV(Be,{index:2,title:s("overview.token-mix"),description:s("overview.token-mix-description"),stale:d.stale,children:Ae.jsxDEV(_e,{query:d,skeleton:Ae.jsxDEV(Mt,{height:260},void 0,!1,void 0,this),children:({overall:h,byAgentType:C})=>{let w={input:h.totalInputTokens,cacheRead:h.totalCacheReadTokens,cacheWrite:h.totalCacheWriteTokens,output:h.totalOutputTokens},T=Jl(h),k=gI(C);return Ae.jsxDEV("div",{className:"stack",style:{gap:18},children:[Ae.jsxDEV("div",{className:"stack",style:{gap:10},children:[Ae.jsxDEV(Wl,{segments:NI.map((M)=>({key:M.key,label:M.label,value:w[M.key],color:M.color}))},void 0,!1,void 0,this),Ae.jsxDEV(Va,{items:NI.map((M)=>({key:M.key,label:M.label,color:M.color,value:T>0?je(w[M.key]/T,0):"–"}))},void 0,!1,void 0,this)]},void 0,!0,void 0,this),Ae.jsxDEV("div",{className:"stack",style:{gap:10},children:[Ae.jsxDEV("div",{className:"section-label",style:{marginBottom:0},children:s("overview.by-agent")},void 0,!1,void 0,this),Ae.jsxDEV(Wl,{segments:k.segments.map((M)=>({key:M.agentType,label:qI[M.agentType],value:M.tokens,color:OI[M.agentType]}))},void 0,!1,void 0,this),k.segments.map((M)=>Ae.jsxDEV("div",{className:"row",style:{justifyContent:"space-between"},children:[Ae.jsxDEV("span",{className:"row",children:[Ae.jsxDEV("span",{className:"swatch",style:{background:OI[M.agentType]}},void 0,!1,void 0,this),qI[M.agentType],Ae.jsxDEV("span",{className:"dim num",children:s("overview.requests-short",{count:B(M.requests)})},void 0,!1,void 0,this)]},void 0,!0,void 0,this),Ae.jsxDEV("span",{className:"row",children:[Ae.jsxDEV("span",{className:"dim num",children:De(M.tokens)},void 0,!1,void 0,this),Ae.jsxDEV("span",{className:"num",style:{minWidth:48,textAlign:"right"},children:je(M.share)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},M.agentType,!0,void 0,this))]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)}},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),Ae.jsxDEV(Be,{index:3,title:Ae.jsxDEV(Ae.Fragment,{children:[Ae.jsxDEV(dn,{tone:"live",pulse:!0},void 0,!1,void 0,this)," ",s("overview.latest-requests")]},void 0,!0,void 0,this),description:s("overview.latest-requests-description"),actions:Ae.jsxDEV("a",{className:"btn","data-size":"sm","data-variant":"ghost",href:`#/requests?range=${c}`,children:[s("overview.all-requests")," ",Ae.jsxDEV(gd,{size:13},void 0,!1,void 0,this)]},void 0,!0,void 0,this),flush:!0,children:Ae.jsxDEV(_e,{query:p,skeleton:Ae.jsxDEV(ra,{rows:8},void 0,!1,void 0,this),children:(h)=>Ae.jsxDEV(Ht,{rows:h,rowKey:(C)=>C.id??`${C.sessionFile}:${C.entryId}`,onRowClick:(C)=>C.id!==void 0&&i(C.id),columns:VD,dense:!0},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}var VD=[{key:"model",header:s("common.model"),render:(l)=>Ae.jsxDEV(Ga,{primary:l.model,secondary:l.provider},void 0,!1,void 0,this)},{key:"time",header:s("overview.when"),render:(l)=>Ae.jsxDEV("span",{className:"muted",children:fa(l.timestamp)},void 0,!1,void 0,this)},{key:"tokens",header:s("common.tokens"),align:"right",render:(l)=>Ae.jsxDEV("span",{className:"num",children:B(l.usage.totalTokens)},void 0,!1,void 0,this)},{key:"cost",header:s("common.cost"),align:"right",render:(l)=>Ae.jsxDEV("span",{className:"num",children:Zl(l,4)},void 0,!1,void 0,this)},{key:"duration",header:s("common.duration"),align:"right",render:(l)=>Ae.jsxDEV("span",{className:"num",children:Dt(l.duration)},void 0,!1,void 0,this)},{key:"status",header:s("overview.status"),align:"right",render:(l)=>l.errorMessage?Ae.jsxDEV(Ut,{tone:"bad",children:s("common.failed")},void 0,!1,void 0,this):Ae.jsxDEV(Ut,{tone:"ok",children:s("overview.ok")},void 0,!1,void 0,this)}];var Ar=Q(ct(),1);var Ye=Q(ue(),1),jD=100,zI=8;function UI({active:l,range:c}){let i=Gt(["projects",c],({signal:M})=>A1(c,M),{enabled:l}),[d,p]=Ar.useState(""),[x,g]=Ar.useState(!0),b=Ar.useDeferredValue(d.trim().toLowerCase()),S=sa(c),L=Ar.useMemo(()=>bI(i.data??[]),[i.data]),h=Ar.useMemo(()=>x?L.rows.filter((M)=>!M.temporary):L.rows,[L,x]),C=Ar.useMemo(()=>b?h.filter((M)=>M.folder.toLowerCase().includes(b)):h,[h,b]),w=Ar.useMemo(()=>({cost:[...h].sort((M,E)=>E.totalCost-M.totalCost).slice(0,zI),requests:[...h].sort((M,E)=>E.totalRequests-M.totalRequests).slice(0,zI)}),[h]),T=Ye.jsxDEV(gt,{title:s(L.rows.length===0?"projects.empty-no-folders":"projects.empty-only-temporary")},void 0,!1,void 0,this),k=Ar.useMemo(()=>XD(L.maxRequests,L.maxCost),[L]);return Ye.jsxDEV("div",{className:"page",children:[Ye.jsxDEV(ua,{title:s("projects.title"),description:s("projects.description",{window:s(S.windowKey)})},void 0,!1,void 0,this),Ye.jsxDEV(_e,{query:i,skeleton:Ye.jsxDEV(Mt,{height:96},void 0,!1,void 0,this),children:()=>Ye.jsxDEV("div",{"data-stale":i.stale,children:Ye.jsxDEV(oa,{min:180,children:[Ye.jsxDEV(se,{label:s("projects.folders"),value:B(L.rows.length),hint:L.temporaryCount>0?s("projects.temporary-n",{count:B(L.temporaryCount)}):void 0},void 0,!1,void 0,this),Ye.jsxDEV(se,{label:s("common.requests"),value:B(L.totalRequests),hint:s("projects.failed-n",{count:B(L.failedRequests)})},void 0,!1,void 0,this),Ye.jsxDEV(se,{label:s("projects.api-equivalent-cost"),title:s("projects.api-equivalent-cost-hint"),value:Ft(L.totalCost,L.unpricedRequests),hint:L.unpricedRequests>0?s("projects.unpriced-n",{count:B(L.unpricedRequests)}):void 0},void 0,!1,void 0,this),Ye.jsxDEV(se,{label:s("projects.conversation-tokens"),title:s("projects.conversation-tokens-hint"),value:De(L.conversationTokens)},void 0,!1,void 0,this),Ye.jsxDEV(se,{label:s("projects.cache-rate"),title:s("projects.cache-rate-hint-all"),value:je(L.cacheRate)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this),Ye.jsxDEV("div",{className:"grid grid-2",children:[Ye.jsxDEV(Be,{index:1,title:s("projects.top-by-cost"),description:s("projects.top-by-cost-description"),stale:i.stale,children:Ye.jsxDEV(_e,{query:i,skeleton:Ye.jsxDEV(Mt,{height:236},void 0,!1,void 0,this),isEmpty:()=>w.cost.length===0,empty:T,children:()=>Ye.jsxDEV(au,{items:w.cost.map((M)=>({key:M.folder,label:Ye.jsxDEV("span",{className:"mono",children:hn(M.folder)},void 0,!1,void 0,this),value:M.totalCost,display:`${Ft(M.totalCost,M.unpricedRequests)} · ${je(M.costShare)}`,color:"var(--chart-secondary)"})),onSelect:p},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this),Ye.jsxDEV(Be,{index:2,title:s("projects.top-by-requests"),description:s("projects.top-by-requests-description"),stale:i.stale,children:Ye.jsxDEV(_e,{query:i,skeleton:Ye.jsxDEV(Mt,{height:236},void 0,!1,void 0,this),isEmpty:()=>w.requests.length===0,empty:T,children:()=>Ye.jsxDEV(au,{items:w.requests.map((M)=>({key:M.folder,label:Ye.jsxDEV("span",{className:"mono",children:hn(M.folder)},void 0,!1,void 0,this),value:M.totalRequests,display:`${B(M.totalRequests)} · ${je(M.requestShare)}`})),onSelect:p},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),Ye.jsxDEV(Be,{index:3,title:s("projects.folders"),description:i.data?C.length===L.rows.length?s("projects.folders-n",{count:B(L.rows.length)}):s("projects.folders-of-n",{count:B(C.length),total:B(L.rows.length)}):void 0,actions:Ye.jsxDEV(Ye.Fragment,{children:[L.temporaryCount>0&&Ye.jsxDEV("label",{className:"check",title:s("projects.hide-temporary-hint"),children:[Ye.jsxDEV("input",{type:"checkbox",checked:x,onChange:(M)=>g(M.target.checked)},void 0,!1,void 0,this),s("projects.hide-temporary",{count:B(L.temporaryCount)})]},void 0,!0,void 0,this),Ye.jsxDEV(pn,{value:d,onChange:p,placeholder:s("projects.filter-placeholder"),width:240},void 0,!1,void 0,this)]},void 0,!0,void 0,this),flush:!0,stale:i.stale,children:Ye.jsxDEV(_e,{query:i,skeleton:Ye.jsxDEV(ra,{rows:10},void 0,!1,void 0,this),children:()=>Ye.jsxDEV(Ht,{rows:C,rowKey:(M)=>M.folder,columns:k,initialSort:{key:"cost",dir:"desc"},limit:jD,dense:!0,empty:Ye.jsxDEV(gt,{title:s(L.rows.length===0?"projects.empty-no-folders":"projects.empty-no-match"),hint:L.rows.length===0?s("projects.hint-longer-range"):x&&L.temporaryCount>0?s("projects.hint-temporary-hidden"):void 0},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function XD(l,c){return[{key:"folder",header:s("projects.folder"),sort:(i)=>i.folder,render:(i)=>Ye.jsxDEV("span",{className:"row projects-folder",title:i.folder||s("common.root"),children:[Ye.jsxDEV("span",{className:"mono truncate",children:hn(i.folder)},void 0,!1,void 0,this),i.temporary&&Ye.jsxDEV(Ut,{children:s("projects.temp")},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},{key:"requests",header:s("common.requests"),align:"right",sort:(i)=>i.totalRequests,render:(i)=>Ye.jsxDEV("span",{title:s("projects.share-of-requests",{share:je(i.requestShare)}),children:Ye.jsxDEV(pa,{value:i.totalRequests,max:l,display:B(i.totalRequests)},void 0,!1,void 0,this)},void 0,!1,void 0,this)},{key:"cost",header:s("common.cost"),title:s("projects.api-equivalent-cost-rates"),align:"right",sort:(i)=>i.totalCost,render:(i)=>Ye.jsxDEV("span",{title:s("projects.share-of-cost",{share:je(i.costShare)}),children:Ye.jsxDEV(pa,{value:i.totalCost,max:c,display:Ft(i.totalCost,i.unpricedRequests),color:"var(--chart-secondary)"},void 0,!1,void 0,this)},void 0,!1,void 0,this)},{key:"tokens",header:s("common.tokens"),title:s("projects.conversation-tokens-hint"),align:"right",sort:(i)=>i.conversationTokens,render:(i)=>Ye.jsxDEV("span",{className:"num",title:B(i.conversationTokens),children:De(i.conversationTokens)},void 0,!1,void 0,this)},{key:"cacheRate",header:s("projects.cache-rate"),title:s("projects.cache-rate-hint"),align:"right",sort:(i)=>i.cacheRate,render:(i)=>Ye.jsxDEV("span",{className:"num",children:je(i.cacheRate)},void 0,!1,void 0,this)},{key:"cacheSavings",header:s("projects.cache-savings"),title:s("projects.cache-savings-hint"),align:"right",sort:(i)=>i.cacheSavings,render:(i)=>Ye.jsxDEV("span",{className:`num ${i.cacheSavings<0?"tone-bad":"muted"}`,children:je(i.cacheSavings)},void 0,!1,void 0,this)},{key:"errorRate",header:s("projects.errors"),align:"right",sort:(i)=>i.errorRate,render:(i)=>Ye.jsxDEV("span",{title:s("projects.failed-n",{count:B(i.failedRequests)}),children:Ye.jsxDEV(Ut,{tone:i.failedRequests>0?fn(i.errorRate):"neutral",mono:!0,children:oo(i.errorRate)},void 0,!1,void 0,this)},void 0,!1,void 0,this)},{key:"duration",header:s("projects.avg-duration"),align:"right",sort:(i)=>i.avgDuration??-1,render:(i)=>Ye.jsxDEV("span",{className:"num",children:Dt(i.avgDuration)},void 0,!1,void 0,this)},{key:"last",header:s("projects.last-active"),align:"right",sort:(i)=>i.lastTimestamp,render:(i)=>Ye.jsxDEV("span",{className:"dim",children:fa(i.lastTimestamp)},void 0,!1,void 0,this)}]}var go=Q(ct(),1);var te=Q(ue(),1),YD=[{value:"tokens",label:s("common.tokens")},{value:"cost",label:s("common.cost"),title:s("providers.cost-title")},{value:"requests",label:s("common.requests")}],PI=6,_I=[{key:"input",label:s("ui.uncached-input"),color:"#5b8cff"},{key:"cacheRead",label:s("common.cache-read"),color:"var(--chart-primary)"},{key:"cacheWrite",label:s("common.cache-write"),color:"#f5b54a"},{key:"output",label:s("common.output"),color:"var(--chart-secondary)"}];function HI({active:l,range:c}){let i=Gt(["providers",c],({signal:P})=>E1(c,P),{enabled:l}),[d,p]=go.useState("tokens"),[x,g]=ur(),b=sa(c),S=Gt(["provider-windows",c],({signal:P})=>Jv(c,null,P),{enabled:l}),[L,h]=go.useState(null),C=$D(S.data?.windowInsights??[],L),w=C?.provider??null,T=Gt(["provider-windows",c,w],({signal:P})=>Jv(c,w,P),{enabled:l&&w!==null}),k=go.useMemo(()=>{let P=i.data?.providers??[],X=i.data?.series??[],F=_d(P.map((K)=>({key:K.provider,weight:K.totalTokens}))),me=ho(c,X.map((K)=>K.timestamp)),W={requests:0,failed:0,tokens:0,cost:0,unpriced:0};for(let K of P)W.requests+=K.totalRequests,W.failed+=K.failedRequests,W.tokens+=K.totalTokens,W.cost+=K.totalCost,W.unpriced+=K.unpricedRequests;let re=(K)=>vn(X,{buckets:me,key:(G)=>G.provider,value:K,limit:PI,colors:F}).map((G)=>({...G,values:G.values.map((V)=>V||null)}));return{colors:F,buckets:me,totals:W,burn:{tokens:re((K)=>K.totalTokens),cost:re((K)=>K.cost),requests:re((K)=>K.requests)},spark:{tokens:La(X,me,(K)=>K.totalTokens),cost:La(X,me,(K)=>K.cost),requests:La(X,me,(K)=>K.requests)},topProvider:P.reduce((K,G)=>K===null||G.totalTokens>K.totalTokens?G:K,null)}},[i.data,c]),M=k.burn[d],E=d==="cost"?(P)=>da(P):De,U=k.totals;return te.jsxDEV("div",{className:"page",children:[te.jsxDEV(ua,{title:s("common.providers"),description:s("providers.description",{window:s(b.windowKey)})},void 0,!1,void 0,this),te.jsxDEV(_e,{query:i,skeleton:te.jsxDEV(Mt,{height:112},void 0,!1,void 0,this),children:({providers:P})=>te.jsxDEV("div",{"data-stale":i.stale,children:te.jsxDEV(oa,{min:190,children:[te.jsxDEV(se,{label:s("common.providers"),value:B(P.length),hint:k.topProvider?s("providers.most-tokens",{provider:k.topProvider.provider}):void 0},void 0,!1,void 0,this),te.jsxDEV(se,{label:s("common.requests"),value:B(U.requests),hint:s("providers.failed-n",{count:B(U.failed)}),spark:k.spark.requests},void 0,!1,void 0,this),te.jsxDEV(se,{label:s("common.tokens"),title:s("providers.tokens-title"),value:De(U.tokens),spark:k.spark.tokens},void 0,!1,void 0,this),te.jsxDEV(se,{label:s("providers.api-equivalent-cost"),title:s("providers.api-cost-title"),value:Ft(U.cost,U.unpriced),hint:U.unpriced>0?s("providers.unpriced-n",{count:B(U.unpriced)}):void 0,spark:k.spark.cost,sparkColor:"var(--chart-secondary)"},void 0,!1,void 0,this),te.jsxDEV(se,{label:s("common.error-rate"),value:oo(U.requests>0?U.failed/U.requests:0),hint:s("providers.succeeded-n",{count:B(U.requests-U.failed)})},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this),te.jsxDEV(Be,{index:1,title:s("providers.totals"),description:U.unpriced>0?s(U.unpriced===1?"providers.totals-description-unpriced-one":"providers.totals-description-unpriced-n",{count:B(U.unpriced)}):s("providers.totals-description"),flush:!0,stale:i.stale,children:te.jsxDEV(_e,{query:i,skeleton:te.jsxDEV(ra,{rows:6},void 0,!1,void 0,this),children:({providers:P})=>te.jsxDEV(QD,{providers:P,colors:k.colors},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this),te.jsxDEV("div",{className:"grid grid-main-side",children:[te.jsxDEV(Be,{index:2,title:s("providers.burn"),description:d==="cost"&&U.unpriced>0?s("providers.burn-estimate-description",{bucket:b.bucketMs<86400000?s("providers.bucket-hour"):s("providers.bucket-day")}):s("providers.burn-description",{bucket:b.bucketMs<3600000?s("providers.bucket-5m"):b.bucketMs<86400000?s("providers.bucket-hour"):s("providers.bucket-day"),count:PI}),actions:te.jsxDEV(Fa,{size:"sm",options:YD,value:d,onChange:p},void 0,!1,void 0,this),stale:i.stale,children:te.jsxDEV(_e,{query:i,skeleton:te.jsxDEV(Mt,{height:260},void 0,!1,void 0,this),children:()=>te.jsxDEV("div",{className:"stack",style:{gap:12},children:[te.jsxDEV(Tr,{buckets:k.buckets,bucketMs:b.bucketMs,series:M,hidden:x,height:260,format:E,formatTooltip:d==="cost"?(P)=>da(P):B,emptyLabel:s("providers.no-provider-activity")},void 0,!1,void 0,this),te.jsxDEV(Va,{items:M.map((P)=>({key:P.key,label:P.label,color:P.color,value:E(P.values.reduce((X,F)=>X+(F??0),0))})),hidden:x,onToggle:g},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this),te.jsxDEV(_e,{query:i,skeleton:te.jsxDEV(Mt,{height:320},void 0,!1,void 0,this),children:({hourly:P,providers:X})=>te.jsxDEV(ZD,{hourly:P,providers:X,stale:i.stale},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),te.jsxDEV(Be,{index:4,title:s("providers.subscription-windows"),description:s("providers.subscription-windows-description"),flush:!0,stale:S.stale,children:te.jsxDEV(_e,{query:S,skeleton:te.jsxDEV(ra,{rows:6},void 0,!1,void 0,this),children:(P)=>te.jsxDEV(WD,{insights:P.windowInsights,selected:C,onSelect:h},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this),te.jsxDEV(oE,{insights:S.data?.windowInsights??null,accounts:T,selected:C,onSelect:h},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function $D(l,c){if(c&&l.some((d)=>d.provider===c.provider&&d.windowKey===c.windowKey))return c;let i=c&&l.find((d)=>d.provider===c.provider)||l.reduce((d,p)=>d===void 0||p.fractionConsumed>d.fractionConsumed?p:d,void 0);return i?{provider:i.provider,windowKey:i.windowKey}:null}function QD({providers:l,colors:c}){let[i,d]=go.useState(null),p=go.useMemo(()=>{let x=0,g=0,b=0;for(let S of l)x=Math.max(x,S.totalRequests),g=Math.max(g,S.totalTokens),b+=S.totalTokens;return[{key:"provider",header:s("common.provider"),sort:(S)=>S.provider,render:(S)=>te.jsxDEV("span",{className:"row",style:{gap:8},children:[te.jsxDEV(Cr,{color:c.get(S.provider)??ro},void 0,!1,void 0,this),te.jsxDEV("span",{className:"mono cell-primary",children:S.provider},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},{key:"requests",header:s("common.requests"),align:"right",sort:(S)=>S.totalRequests,render:(S)=>te.jsxDEV(pa,{value:S.totalRequests,max:x,display:B(S.totalRequests)},void 0,!1,void 0,this)},{key:"errors",header:s("common.error-rate"),align:"right",sort:(S)=>S.totalRequests>0?S.failedRequests/S.totalRequests:0,render:(S)=>{let L=S.totalRequests>0?S.failedRequests/S.totalRequests:0;return te.jsxDEV("span",{className:"row",style:{gap:8,justifyContent:"flex-end"},children:[te.jsxDEV("span",{className:"num dim",children:B(S.failedRequests)},void 0,!1,void 0,this),te.jsxDEV(Ut,{tone:S.failedRequests>0?fn(L):"neutral",mono:!0,children:oo(L)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}},{key:"models",header:s("common.models"),title:s("providers.models-title"),align:"right",sort:(S)=>S.models,render:(S)=>te.jsxDEV("span",{className:"num",children:B(S.models)},void 0,!1,void 0,this)},{key:"tokens",header:s("common.tokens"),title:s("providers.tokens-title"),align:"right",sort:(S)=>S.totalTokens,render:(S)=>te.jsxDEV(pa,{value:S.totalTokens,max:g,display:De(S.totalTokens),color:c.get(S.provider)},void 0,!1,void 0,this)},{key:"share",header:s("common.share"),title:s("providers.share-title"),align:"right",sort:(S)=>S.totalTokens,render:(S)=>te.jsxDEV("span",{className:"num muted",children:je(b>0?S.totalTokens/b:0)},void 0,!1,void 0,this)},{key:"cost",header:s("common.cost"),title:s("providers.cost-title"),align:"right",sort:(S)=>S.totalCost,render:(S)=>te.jsxDEV("span",{className:"num",title:S.unpricedRequests>0?s("providers.unpriced-n",{count:B(S.unpricedRequests)}):void 0,children:Ft(S.totalCost,S.unpricedRequests)},void 0,!1,void 0,this)},{key:"tps",header:s("common.tokens-per-second"),title:s("providers.tps-title"),align:"right",sort:(S)=>S.avgTokensPerSecond??-1,render:(S)=>te.jsxDEV("span",{className:"num",children:mn(S.avgTokensPerSecond)},void 0,!1,void 0,this)},{key:"premium",header:s("common.premium"),title:s("providers.premium-title"),align:"right",sort:(S)=>S.totalPremiumRequests,render:(S)=>te.jsxDEV("span",{className:S.totalPremiumRequests>0?"num":"num dim",children:B(Math.round(S.totalPremiumRequests*100)/100)},void 0,!1,void 0,this)}]},[l,c]);return te.jsxDEV(Ht,{rows:l,rowKey:(x)=>x.provider,columns:p,initialSort:{key:"tokens",dir:"desc"},limit:12,selectedKey:i,onRowClick:(x)=>d((g)=>g===x.provider?null:x.provider),expanded:(x)=>x.provider===i?te.jsxDEV(KD,{provider:x},void 0,!1,void 0,this):null,empty:te.jsxDEV(gt,{title:s("providers.no-requests-in-range")},void 0,!1,void 0,this)},void 0,!1,void 0,this)}function KD({provider:l}){let c={input:l.totalInputTokens,cacheRead:l.totalCacheReadTokens,cacheWrite:l.totalCacheWriteTokens,output:l.totalOutputTokens};return te.jsxDEV("div",{className:"providers-mix",children:[te.jsxDEV(Wl,{segments:_I.map((i)=>({key:i.key,label:i.label,value:c[i.key],color:i.color}))},void 0,!1,void 0,this),te.jsxDEV(Va,{items:_I.map((i)=>({key:i.key,label:i.label,color:i.color,value:`${De(c[i.key])} · ${l.totalTokens>0?je(c[i.key]/l.totalTokens,0):"–"}`}))},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}var Xd="";function ZD({hourly:l,providers:c,stale:i}){let[d,p]=go.useState(Xd),x=d===Xd||c.some((S)=>S.provider===d)?d:Xd,g=go.useMemo(()=>{let S=Array.from({length:24},()=>0),L=Array.from({length:24},()=>0),h=Array.from({length:24},()=>0);for(let k of l){if(x!==Xd&&k.provider!==x)continue;S[k.hour]+=k.totalTokens,L[k.hour]+=k.outputTokens,h[k.hour]+=k.requests}let C=0;for(let k=1;k<24;k++)if(S[k]>S[C])C=k;let w=S[C]>0;return{series:[{key:"tokens",label:s("common.tokens"),color:"var(--chart-primary)",values:S.map((k,M)=>w&&M===C?null:k)},{key:"peak",label:s("providers.tokens-peak-hour"),color:"var(--chart-secondary)",values:S.map((k,M)=>w&&M===C?k:null)}],output:L,requests:h,peak:C,hasData:w}},[l,x]),b=(S)=>`${String(S).padStart(2,"0")}:00`;return te.jsxDEV(Be,{index:3,title:s("providers.peak-burn-hours"),description:g.hasData?s("providers.peak-hours-description",{hour:b(g.peak)}):s("providers.hours-description"),actions:te.jsxDEV("select",{className:"input providers-select",value:x,onChange:(S)=>p(S.target.value),"aria-label":s("common.provider"),children:[te.jsxDEV("option",{value:Xd,children:s("providers.all-providers")},void 0,!1,void 0,this),c.map((S)=>te.jsxDEV("option",{value:S.provider,children:S.provider},S.provider,!1,void 0,this))]},void 0,!0,void 0,this),stale:i,children:te.jsxDEV(Ir,{slots:24,tickLabel:(S)=>String(S).padStart(2,"0"),tooltipTitle:(S)=>`${b(S)}–${b((S+1)%24)}`,series:g.series,height:260,showTotal:!1,formatTooltip:B,emptyLabel:s("providers.no-activity-in-range"),tooltipExtra:(S)=>te.jsxDEV(te.Fragment,{children:[te.jsxDEV("div",{className:"chart-tooltip-row",children:[te.jsxDEV("span",{className:"chart-tooltip-label",children:s("common.output")},void 0,!1,void 0,this),te.jsxDEV("span",{className:"chart-tooltip-value",children:B(g.output[S])},void 0,!1,void 0,this)]},void 0,!0,void 0,this),te.jsxDEV("div",{className:"chart-tooltip-row",children:[te.jsxDEV("span",{className:"chart-tooltip-label",children:s("common.requests")},void 0,!1,void 0,this),te.jsxDEV("span",{className:"chart-tooltip-value",children:B(g.requests[S])},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,!1,void 0,this)}function WD({insights:l,selected:c,onSelect:i}){return te.jsxDEV(Ht,{rows:l,rowKey:(d)=>`${d.provider}::${d.windowKey}`,columns:JD,initialSort:{key:"consumed",dir:"desc"},limit:12,selectedKey:c?`${c.provider}::${c.windowKey}`:null,onRowClick:(d)=>i({provider:d.provider,windowKey:d.windowKey}),empty:te.jsxDEV(gt,{title:s("providers.no-snapshots-in-range"),hint:s("providers.snapshot-hint")},void 0,!1,void 0,this)},void 0,!1,void 0,this)}var JD=[{key:"window",header:s("providers.window"),sort:(l)=>`${l.provider} ${l.windowKey}`,render:(l)=>te.jsxDEV(Ga,{primary:l.windowKey,secondary:te.jsxDEV("span",{className:"mono",children:l.provider},void 0,!1,void 0,this)},void 0,!1,void 0,this)},{key:"accounts",header:s("providers.accounts"),title:s("providers.accounts-title"),align:"right",sort:(l)=>l.accounts,render:(l)=>te.jsxDEV("span",{className:"num",children:B(l.accounts)},void 0,!1,void 0,this)},{key:"cycles",header:s("providers.resets"),title:s("providers.resets-title"),align:"right",sort:(l)=>l.cycles,render:(l)=>te.jsxDEV("span",{className:"num muted",children:B(l.cycles)},void 0,!1,void 0,this)},{key:"consumed",header:s("providers.windows-burned"),title:s("providers.windows-burned-title"),align:"right",sort:(l)=>l.fractionConsumed,render:(l)=>te.jsxDEV("span",{className:"num",children:l.fractionConsumed.toFixed(2)},void 0,!1,void 0,this)},{key:"capacity",header:s("providers.tokens-per-window"),title:s("providers.tokens-per-window-title"),align:"right",sort:(l)=>l.estTokensPerWindow??-1,render:(l)=>l.estTokensPerWindow!==null?te.jsxDEV("span",{className:"num",children:De(l.estTokensPerWindow)},void 0,!1,void 0,this):te.jsxDEV("span",{className:"dim",title:s("providers.too-little-consumed"),children:"–"},void 0,!1,void 0,this)},{key:"peak",header:s("providers.peak-utilization"),title:s("providers.peak-utilization-title"),align:"right",sort:(l)=>l.peakConcurrentFraction,render:(l)=>{let c=l.accounts>0?l.peakConcurrentFraction/l.accounts:0;return te.jsxDEV(pa,{value:l.peakConcurrentFraction,max:l.accounts,display:je(l.peakConcurrentFraction,0),color:c>=0.9?"var(--warn)":void 0},void 0,!1,void 0,this)}},{key:"ideal",header:s("providers.accounts-needed"),title:s("providers.accounts-needed-title"),align:"right",sort:(l)=>l.idealAccounts-l.accounts,render:(l)=>l.idealAccounts>l.accounts?te.jsxDEV(Ut,{tone:"warn",mono:!0,children:s("providers.ideal-accounts",{ideal:B(l.idealAccounts),have:B(l.accounts)})},void 0,!1,void 0,this):te.jsxDEV("span",{className:"num",children:B(l.idealAccounts)},void 0,!1,void 0,this)},{key:"exhausted",header:s("providers.exhaustions"),title:s("providers.exhaustions-title"),align:"right",sort:(l)=>l.exhaustedEvents,render:(l)=>l.exhaustedEvents>0?te.jsxDEV(Ut,{tone:"warn",mono:!0,children:s("providers.exhausted-n",{count:B(l.exhaustedEvents)})},void 0,!1,void 0,this):te.jsxDEV("span",{className:"num dim",children:"0"},void 0,!1,void 0,this)}],nh=60000,Wn=60*nh,lh=24*Wn,eE=[5*nh,15*nh,30*nh,Wn,2*Wn,3*Wn,6*Wn,12*Wn,lh],tE=240,aE=6*Wn;function oE({insights:l,accounts:c,selected:i,onSelect:d}){let[p,x]=ur(),g=go.useMemo(()=>[...new Set((l??[]).map((k)=>k.provider))],[l]),b=go.useMemo(()=>(l??[]).filter((k)=>k.provider===i?.provider).map((k)=>({key:k.windowKey,label:k.windowKey})),[l,i?.provider]),S=go.useMemo(()=>(c.data?.usageSeries??[]).filter((k)=>k.provider===i?.provider),[c.data,i?.provider]),L=S.length===0&&(c.loading||c.stale),h=go.useMemo(()=>{let k=new Map;for(let E of S){let U=k.get(E.accountLabel)??[];if(!U.includes(E.accountKey))U.push(E.accountKey);k.set(E.accountLabel,U)}let M=new Map;for(let[E,U]of k)U.sort(),U.forEach((P,X)=>M.set(P,U.length>1?`${E} #${X+1}`:E));return M},[S]),C=go.useMemo(()=>rE(S.filter((k)=>k.windowKey===i?.windowKey),h),[S,h,i?.windowKey]),w=go.useMemo(()=>{let k=new Map(C.series.map((M)=>[M.key,M.color]));return S.map((M)=>{let E=null,U=null;for(let F of M.points){if(F.usedFraction===null)continue;if(U=Math.max(U??0,F.usedFraction),!E||F.timestamp>=E.timestamp)E={fraction:F.usedFraction,exhausted:F.exhausted,timestamp:F.timestamp}}let P=M.windowKey===i?.windowKey?k.get(M.accountKey)??null:null,X=h.get(M.accountKey)??M.accountLabel;return{series:M,name:X,color:P,latest:E,peak:U,samples:M.points.length}}).sort((M,E)=>Number(E.color!==null)-Number(M.color!==null)||M.series.windowKey.localeCompare(E.series.windowKey)||(E.latest?.fraction??-1)-(M.latest?.fraction??-1))},[S,h,C.series,i?.windowKey]),T=b.find((k)=>k.key===i?.windowKey)?.label;return te.jsxDEV(Be,{index:5,title:s("providers.utilization"),description:C.buckets.length>0?s("providers.utilization-description",{window:T??s("providers.window"),from:lb(C.first),to:lb(C.last)}):s("providers.utilization-description-plain"),actions:i&&te.jsxDEV("div",{className:"row",style:{gap:6},children:[te.jsxDEV("select",{className:"input providers-select",value:i.provider,onChange:(k)=>{let M=k.target.value,E=l?.find((U)=>U.provider===M);if(E)d({provider:M,windowKey:E.windowKey})},"aria-label":s("common.provider"),children:g.map((k)=>te.jsxDEV("option",{value:k,children:k},k,!1,void 0,this))},void 0,!1,void 0,this),te.jsxDEV("select",{className:"input providers-select",value:i.windowKey,onChange:(k)=>d({provider:i.provider,windowKey:k.target.value}),"aria-label":s("providers.window"),children:b.map((k)=>te.jsxDEV("option",{value:k.key,children:k.label},k.key,!1,void 0,this))},void 0,!1,void 0,this)]},void 0,!0,void 0,this),stale:c.stale,children:l===null?te.jsxDEV(Mt,{height:260},void 0,!1,void 0,this):i===null?te.jsxDEV(gt,{title:s("providers.no-snapshots-in-range"),hint:s("providers.snapshot-hint")},void 0,!1,void 0,this):te.jsxDEV(_e,{query:c,skeleton:te.jsxDEV(Mt,{height:260},void 0,!1,void 0,this),children:()=>L?te.jsxDEV(Mt,{height:260},void 0,!1,void 0,this):te.jsxDEV("div",{className:"stack",style:{gap:16},children:[te.jsxDEV("div",{className:"stack",style:{gap:12},children:[te.jsxDEV(Ir,{slots:C.buckets.length,tickLabel:(k)=>Bm(C.buckets[k],C.last-C.first>lh?lh:C.bucketMs),tooltipTitle:(k)=>Nm(C.buckets[k],Wn),series:C.series,hidden:p,kind:"line",stacked:!1,height:260,yMax:Math.max(1,C.max),format:(k)=>je(k,0),formatTooltip:(k)=>je(k,1),references:[{value:1,label:"100%"}],emptyLabel:s("providers.no-utilization-readings"),tooltipExtra:(k)=>{let M=C.exhausted[k];return M.length>0?te.jsxDEV("div",{className:"chart-tooltip-row",children:[te.jsxDEV("span",{className:"chart-tooltip-label tone-bad",children:s("providers.exhausted")},void 0,!1,void 0,this),te.jsxDEV("span",{className:"chart-tooltip-value",children:M.join(", ")},void 0,!1,void 0,this)]},void 0,!0,void 0,this):null}},void 0,!1,void 0,this),C.series.length>1&&te.jsxDEV(Va,{items:C.series.map((k)=>({key:k.key,label:k.label,color:k.color})),hidden:p,onToggle:x},void 0,!1,void 0,this)]},void 0,!0,void 0,this),te.jsxDEV("div",{className:"providers-accounts",children:te.jsxDEV(Ht,{rows:w,rowKey:(k)=>`${k.series.windowKey}::${k.series.accountKey}`,columns:lE,limit:16,onRowClick:(k)=>d({provider:k.series.provider,windowKey:k.series.windowKey}),dense:!0},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this)}function rE(l,c){let{POSITIVE_INFINITY:i,NEGATIVE_INFINITY:d}=Number;for(let T of l)for(let k of T.points){if(k.timestamp<i)i=k.timestamp;if(k.timestamp>d)d=k.timestamp}if(!(d>=i))return{buckets:[],bucketMs:Wn,first:0,last:0,max:0,series:[],exhausted:[]};let p=d-i,x=eE.find((T)=>p/T<tE)??lh,g=ho("all",[i],x,d),b=(T)=>Math.floor((T-g[0])/x),S=g.map(()=>[]),L=0,h=(T)=>c.get(T.accountKey)??T.accountLabel,w=[...l].sort((T,k)=>h(T).localeCompare(h(k))).map((T,k)=>{let M=g.map(()=>null),E=g.map(()=>0);for(let X of T.points){let F=b(X.timestamp);if(F<0||F>=g.length)continue;if(X.exhausted&&!S[F].includes(h(T)))S[F].push(h(T));if(X.usedFraction===null||X.timestamp<E[F])continue;M[F]=X.usedFraction,E[F]=X.timestamp,L=Math.max(L,X.usedFraction)}let U=null,P=0;for(let X=0;X<g.length;X++)if(M[X]!==null)U=M[X],P=E[X];else if(U!==null&&g[X]-P<=aE)M[X]=U;return{key:T.accountKey,label:h(T),color:Da[k%Da.length],values:M}});return{buckets:g,bucketMs:x,first:i,last:d,max:L,series:w,exhausted:S}}function nE(l){if(!l)return te.jsxDEV("span",{className:"dim",children:s("providers.no-reading")},void 0,!1,void 0,this);if(l.exhausted)return te.jsxDEV(Ut,{tone:"bad",children:s("providers.exhausted")},void 0,!1,void 0,this);if(l.fraction>=0.8)return te.jsxDEV(Ut,{tone:"warn",children:s("providers.high")},void 0,!1,void 0,this);return te.jsxDEV(Ut,{tone:"ok",children:s("ui.status-ok")},void 0,!1,void 0,this)}var lE=[{key:"account",header:s("providers.account"),sort:(l)=>l.name,render:(l)=>te.jsxDEV("span",{className:"row",style:{gap:8},children:[te.jsxDEV("span",{className:"providers-swatch-slot",children:l.color&&te.jsxDEV(Cr,{color:l.color},void 0,!1,void 0,this)},void 0,!1,void 0,this),te.jsxDEV("span",{className:"truncate providers-account",title:l.series.accountKey,children:l.name},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},{key:"window",header:s("providers.window"),sort:(l)=>l.series.windowKey,render:(l)=>te.jsxDEV("span",{className:l.color?void 0:"muted",children:l.series.windowKey},void 0,!1,void 0,this)},{key:"latest",header:s("providers.latest-used"),align:"right",sort:(l)=>l.latest?.fraction??-1,render:(l)=>l.latest?te.jsxDEV(pa,{value:l.latest.fraction,max:1,display:je(l.latest.fraction,0),color:l.latest.exhausted?"var(--bad)":l.latest.fraction>=0.8?"var(--warn)":"var(--ok)"},void 0,!1,void 0,this):te.jsxDEV("span",{className:"dim",children:"–"},void 0,!1,void 0,this)},{key:"status",header:s("providers.status"),sort:(l)=>l.latest?.exhausted?2:(l.latest?.fraction??0)>=0.8?1:0,render:(l)=>nE(l.latest)},{key:"peak",header:s("providers.peak-in-range"),align:"right",sort:(l)=>l.peak??-1,render:(l)=>te.jsxDEV("span",{className:"num",children:l.peak===null?"–":je(l.peak,0)},void 0,!1,void 0,this)},{key:"samples",header:s("providers.snapshots"),align:"right",sort:(l)=>l.samples,render:(l)=>te.jsxDEV("span",{className:"num muted",children:B(l.samples)},void 0,!1,void 0,this)},{key:"recorded",header:s("providers.recorded"),align:"right",sort:(l)=>l.latest?.timestamp??0,render:(l)=>te.jsxDEV("span",{className:"muted",children:l.latest?fa(l.latest.timestamp):"–"},void 0,!1,void 0,this)}];var lu=Q(ct(),1);var nt=Q(ue(),1),sh={ok:{label:s("ui.status-ok"),tone:"ok"},aborted:{label:s("common.aborted"),tone:"warn"},failed:{label:s("common.failed"),tone:"bad"}};function FI({id:l,onClose:c}){let i=Gt(["request",l],({signal:x})=>S1(l??0,x),{enabled:l!==null}),d=i.stale?null:i.data,p=d?sh[Kn(d)]:null;return nt.jsxDEV(Hm,{open:l!==null,onClose:c,width:620,title:d?nt.jsxDEV("span",{className:"mono",children:d.model},void 0,!1,void 0,this):s("common.request"),subtitle:d?nt.jsxDEV(nt.Fragment,{children:[d.provider," ·"," ",nt.jsxDEV("span",{title:sr(d.timestamp),children:fa(d.timestamp)},void 0,!1,void 0,this)]},void 0,!0,void 0,this):l!==null?nt.jsxDEV("span",{className:"mono",children:["#",l]},void 0,!0,void 0,this):void 0,actions:d&&p?nt.jsxDEV("div",{className:"row",style:{gap:6},children:[nt.jsxDEV("a",{className:"btn","data-size":"sm","data-variant":"ghost",href:Jm({...Pd(window.location.hash),section:"traces",session:d.sessionFile}),onClick:c,title:s("ui.open-trace"),children:[nt.jsxDEV(Cd,{size:13},void 0,!1,void 0,this)," Trace"]},void 0,!0,void 0,this),nt.jsxDEV(Ut,{tone:p.tone,children:p.label},void 0,!1,void 0,this)]},void 0,!0,void 0,this):void 0,children:d?nt.jsxDEV(sE,{details:d,aborted:Kn(d)==="aborted"},void 0,!1,void 0,this):i.error?nt.jsxDEV(Si,{error:i.error,onRetry:i.refetch},void 0,!1,void 0,this):nt.jsxDEV("div",{className:"stack",style:{gap:12},children:[nt.jsxDEV(Ba,{height:56},void 0,!1,void 0,this),nt.jsxDEV(Ba,{height:120},void 0,!1,void 0,this),nt.jsxDEV(Ba,{height:120},void 0,!1,void 0,this),nt.jsxDEV(Ba,{height:220},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)}function sE({details:l,aborted:c}){let{usage:i}=l,d=l.duration!==null&&l.duration>0&&i.output>0?i.output*1000/l.duration:null,{messages:p,output:x,...g}=l;return nt.jsxDEV(nt.Fragment,{children:[l.errorMessage&&nt.jsxDEV("section",{className:"request-drawer-error","data-tone":c?"warn":"bad",role:"note",children:[nt.jsxDEV("div",{className:"request-drawer-error-label",children:c?s("common.aborted"):s("common.error")},void 0,!1,void 0,this),nt.jsxDEV("pre",{className:"request-drawer-error-text",children:l.errorMessage},void 0,!1,void 0,this)]},void 0,!0,void 0,this),nt.jsxDEV("section",{children:[nt.jsxDEV("div",{className:"section-label",children:s("ui.section-timing")},void 0,!1,void 0,this),nt.jsxDEV(Go,{items:[{key:"at",label:s("common.started"),value:sr(l.timestamp)},{key:"duration",label:s("common.duration"),value:Dt(l.duration)},{key:"ttft",label:s("ui.time-to-first-token"),value:Dt(l.ttft)},{key:"tps",label:s("common.output-tokens-per-second"),value:mn(d)}]},void 0,!1,void 0,this)]},void 0,!0,void 0,this),nt.jsxDEV("section",{children:[nt.jsxDEV("div",{className:"section-label",children:s("common.tokens")},void 0,!1,void 0,this),nt.jsxDEV(Go,{items:[{key:"input",label:s("ui.uncached-input"),value:B(i.input)},{key:"cacheRead",label:s("common.cache-read"),value:B(i.cacheRead)},{key:"cacheWrite",label:s("common.cache-write"),value:B(i.cacheWrite)},{key:"output",label:s("common.output"),value:B(i.output)},{key:"total",label:s("common.total"),value:B(i.totalTokens)},{key:"premium",label:s("common.premium-requests"),value:B(Math.round((i.premiumRequests??0)*100)/100)}]},void 0,!1,void 0,this)]},void 0,!0,void 0,this),nt.jsxDEV("section",{children:[nt.jsxDEV("div",{className:"section-label",children:s("ui.section-cost")},void 0,!1,void 0,this),nt.jsxDEV(Go,{items:[{key:"total",label:"Total",value:Zl(l,4)},{key:"input",label:s("common.input"),value:da(i.cost.input,4)},{key:"cacheRead",label:"Cache read",value:da(i.cost.cacheRead,4)},{key:"cacheWrite",label:"Cache write",value:da(i.cost.cacheWrite,4)},{key:"output",label:"Output",value:da(i.cost.output,4)}]},void 0,!1,void 0,this)]},void 0,!0,void 0,this),nt.jsxDEV("section",{children:[nt.jsxDEV("div",{className:"section-label",children:s("ui.section-identity")},void 0,!1,void 0,this),nt.jsxDEV(Go,{items:[{key:"id",label:s("common.request-id"),value:l.id??"–"},{key:"entry",label:s("common.entry-id"),value:l.entryId},{key:"stop",label:s("ui.stop-reason"),value:l.stopReason},{key:"api",label:"API",value:l.api},{key:"project",label:s("common.project"),value:nt.jsxDEV("span",{title:l.folder,children:hn(l.folder)},void 0,!1,void 0,this)}]},void 0,!1,void 0,this),nt.jsxDEV("div",{className:"request-drawer-file",children:[nt.jsxDEV("span",{className:"kv-key",children:s("ui.session-file")},void 0,!1,void 0,this),nt.jsxDEV("span",{className:"kv-value",children:l.sessionFile},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),x!=null&&nt.jsxDEV(gi,{data:x,title:s("common.output-message")},void 0,!1,void 0,this),nt.jsxDEV(gi,{data:p,title:s("common.session-entry"),initialCollapsed:!0},void 0,!1,void 0,this),nt.jsxDEV(gi,{data:g,title:s("ui.stats-row"),initialCollapsed:!0},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}var ot=Q(ue(),1),xb=[500,2000,1e4];function GI({active:l,range:c,onRequestClick:i}){let[d,p]=lu.useState(0),x=xb[d],g=Gt(["requests-log",x],({signal:F})=>zm(x,F),{enabled:l}),[b,S]=lu.useState(""),[L,h]=lu.useState("all"),C=sa(c),w=lu.useMemo(()=>{let F=g.data??[],me=C.spanMs===null?null:Date.now()-C.spanMs,W=me===null?F:F.filter((G)=>G.timestamp>=me),re=!g.stale&&(F.length<x||me!==null&&W.length<F.length),K={all:W.length,ok:0,aborted:0,failed:0};for(let G of W)K[Kn(G)]++;return{loaded:F.length,inRange:W,complete:re,counts:K,summary:SI(W)}},[g.data,g.stale,x,C.spanMs]),T=lu.useMemo(()=>{let F=b.trim().toLowerCase();return w.inRange.filter((me)=>(L==="all"||Kn(me)===L)&&(F===""||me.model.toLowerCase().includes(F)||me.provider.toLowerCase().includes(F)||me.folder.toLowerCase().includes(F)))},[w.inRange,b,L]),{summary:k,counts:M,complete:E}=w,U=d+1<xb.length?xb[d+1]:null,P=U!==null?ot.jsxDEV("button",{type:"button",className:"btn","data-size":"sm",disabled:g.refreshing,onClick:()=>p(d+1),children:g.refreshing&&g.stale?s("requests.loading"):s("requests.load-latest",{count:B(U)})},void 0,!1,void 0,this):void 0,X=["all","ok","aborted","failed"].map((F)=>({value:F,label:ot.jsxDEV(ot.Fragment,{children:[F==="all"?s("requests.status-all"):sh[F].label," ",ot.jsxDEV("span",{className:"dim num",children:De(M[F])},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}));return ot.jsxDEV("div",{className:"page",children:[ot.jsxDEV(ua,{title:s("common.requests"),description:s("requests.description",{window:s(C.windowKey)})},void 0,!1,void 0,this),ot.jsxDEV(_e,{query:g,skeleton:ot.jsxDEV(Ba,{height:96,style:{borderRadius:12}},void 0,!1,void 0,this),children:()=>ot.jsxDEV("div",{"data-stale":g.stale,children:ot.jsxDEV(oa,{min:160,children:[ot.jsxDEV(se,{label:s("common.requests"),value:B(k.requests),hint:k.oldest===null?s("requests.none-in-window",{window:s(C.windowKey)}):s("requests.since",{time:fa(k.oldest)})},void 0,!1,void 0,this),ot.jsxDEV(se,{label:s("common.failed"),value:B(k.failed),hint:s("requests.failed-hint",{rate:k.requests>0?oo(k.failed/k.requests):"–",count:B(k.aborted)})},void 0,!1,void 0,this),ot.jsxDEV(se,{label:s("common.tokens"),title:s("requests.tokens-hint"),value:De(k.tokens)},void 0,!1,void 0,this),ot.jsxDEV(se,{label:s("requests.api-equivalent-cost"),title:s("requests.cost-hint"),value:Ft(k.cost,k.unpriced),hint:k.unpriced>0?s("requests.unpriced-n",{count:B(k.unpriced)}):void 0},void 0,!1,void 0,this),ot.jsxDEV(se,{label:s("requests.median-duration"),value:Dt(k.medianDuration),hint:s("requests.p95",{value:Dt(k.p95Duration)})},void 0,!1,void 0,this),ot.jsxDEV(se,{label:s("requests.median-ttft"),title:s("requests.ttft-hint"),value:Dt(k.medianTtft)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this),ot.jsxDEV(Be,{index:1,title:s("requests.log-title"),description:g.data===null?s("requests.log-loading"):E?s("requests.log-count-in-window",{shown:B(T.length),total:B(k.requests),window:s(C.windowKey)}):s("requests.log-count-latest",{shown:B(T.length),total:B(k.requests)}),actions:ot.jsxDEV(ot.Fragment,{children:[ot.jsxDEV(pn,{value:b,onChange:S,placeholder:s("requests.search-placeholder")},void 0,!1,void 0,this),ot.jsxDEV(Fa,{size:"sm","aria-label":s("requests.status"),options:X,value:L,onChange:h},void 0,!1,void 0,this)]},void 0,!0,void 0,this),flush:!0,stale:g.stale,footer:g.data!==null&&!E?ot.jsxDEV(ot.Fragment,{children:[ot.jsxDEV("span",{children:s("requests.footer",{count:B(w.loaded),time:k.oldest===null?"–":sr(k.oldest),window:s(C.windowKey)})},void 0,!1,void 0,this),P]},void 0,!0,void 0,this):void 0,children:ot.jsxDEV(_e,{query:g,skeleton:ot.jsxDEV(ra,{rows:12},void 0,!1,void 0,this),children:()=>ot.jsxDEV(Ht,{rows:T,rowKey:(F)=>F.id??`${F.sessionFile}:${F.entryId}`,onRowClick:(F)=>F.id!==void 0&&i(F.id),columns:uE,initialSort:{key:"time",dir:"desc"},limit:100,dense:!0,empty:ot.jsxDEV(gt,{title:k.requests===0?s("requests.empty-in-window",{window:s(C.windowKey)}):s("requests.empty-no-match"),hint:k.requests===0?void 0:s("requests.empty-no-match-hint")},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}var uE=[{key:"model",header:s("common.model"),sort:(l)=>l.model,render:(l)=>ot.jsxDEV(Ga,{primary:ot.jsxDEV("span",{className:"mono",children:l.model},void 0,!1,void 0,this),secondary:l.provider},void 0,!1,void 0,this)},{key:"time",header:s("requests.when"),sort:(l)=>l.timestamp,render:(l)=>ot.jsxDEV("span",{className:"muted",title:sr(l.timestamp),children:fa(l.timestamp)},void 0,!1,void 0,this)},{key:"project",header:s("common.project"),sort:(l)=>l.folder,render:(l)=>ot.jsxDEV("span",{className:"mono muted truncate",title:l.folder,style:{display:"block",maxWidth:180},children:hn(l.folder)},void 0,!1,void 0,this)},{key:"input",header:s("common.input"),title:s("requests.uncached-input"),align:"right",sort:(l)=>l.usage.input,render:(l)=>ot.jsxDEV("span",{className:"num",children:De(l.usage.input)},void 0,!1,void 0,this)},{key:"cache",header:s("common.cache-read"),title:s("requests.cache-read-title"),align:"right",sort:(l)=>l.usage.cacheRead,render:(l)=>ot.jsxDEV("span",{className:"num",title:s("requests.cache-write",{count:B(l.usage.cacheWrite)}),children:De(l.usage.cacheRead)},void 0,!1,void 0,this)},{key:"output",header:s("common.output"),align:"right",sort:(l)=>l.usage.output,render:(l)=>ot.jsxDEV("span",{className:"num",children:De(l.usage.output)},void 0,!1,void 0,this)},{key:"cost",header:s("common.cost"),title:s("requests.cost-estimate"),align:"right",sort:(l)=>l.usage.cost.total,render:(l)=>ot.jsxDEV("span",{className:"num",children:Zl(l,4)},void 0,!1,void 0,this)},{key:"duration",header:s("common.duration"),align:"right",sort:(l)=>l.duration??-1,render:(l)=>ot.jsxDEV("span",{className:"num",children:Dt(l.duration)},void 0,!1,void 0,this)},{key:"ttft",header:s("requests.ttft"),title:s("requests.ttft-hint"),align:"right",sort:(l)=>l.ttft??-1,render:(l)=>ot.jsxDEV("span",{className:"num muted",children:Dt(l.ttft)},void 0,!1,void 0,this)},{key:"status",header:s("requests.status"),sort:(l)=>Kn(l),render:(l)=>{let c=sh[Kn(l)];return ot.jsxDEV("span",{title:l.errorMessage??void 0,children:ot.jsxDEV(Ga,{lead:ot.jsxDEV(dn,{tone:c.tone},void 0,!1,void 0,this),primary:c.label,secondary:ot.jsxDEV("span",{className:"mono",children:l.stopReason},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this)}}];var su=Q(ct(),1);var ye=Q(ue(),1),iE=[{value:"calls",label:s("tools.calls")},{value:"errors",label:s("tools.errors")}],VI=6;function cE(l){if(l<3600000)return s("tools.bucket-5m");if(l<86400000)return s("tools.bucket-hour");return s("tools.bucket-day")}var Sb=ye.jsxDEV(gt,{title:s("tools.no-tool-calls")},void 0,!1,void 0,this);function jI({active:l,range:c}){let i=Gt(["tools",c],({signal:k})=>D1(c,k),{enabled:l}),[d,p]=su.useState("calls"),[x,g]=ur(),[b,S]=su.useState(null),L=sa(c),h=su.useMemo(()=>dE(i.data,c),[i.data,c]),C=b!==null&&h.toolNames.includes(b)?b:null,w=d==="calls"?h.callSeries:h.errorSeries,T=(k)=>k.byTool.length===0;return ye.jsxDEV("div",{className:"page",children:[ye.jsxDEV(ua,{title:s("tools.title"),description:s("tools.description",{window:s(L.windowKey)})},void 0,!1,void 0,this),ye.jsxDEV(_e,{query:i,skeleton:ye.jsxDEV(Mt,{height:112},void 0,!1,void 0,this),children:()=>{let k=h.totals;return ye.jsxDEV("div",{"data-stale":i.stale,className:"stack",style:{gap:16},children:[ye.jsxDEV(oa,{min:190,children:[ye.jsxDEV(se,{label:s("tools.tool-calls"),value:B(k.calls),hint:s("tools.failed-n",{count:B(k.errors)}),spark:h.totalCalls},void 0,!1,void 0,this),ye.jsxDEV(se,{label:s("tools.distinct-tools"),value:B(k.tools),hint:h.rows[0]?s("tools.most-used",{tool:h.rows[0].tool}):void 0},void 0,!1,void 0,this),ye.jsxDEV(se,{label:s("common.error-rate"),title:s("tools.error-rate-title"),value:oo(k.calls>0?k.errors/k.calls:0),hint:s("tools.succeeded-n",{count:B(k.calls-k.errors)}),spark:h.totalErrors,sparkColor:"var(--bad)"},void 0,!1,void 0,this),ye.jsxDEV(se,{label:s("tools.attributed-tokens"),title:s("tools.attribution-note"),value:De(Math.round(k.tokens)),hint:s("tools.tokens-output",{tokens:De(Math.round(k.output))})},void 0,!1,void 0,this),ye.jsxDEV(se,{label:s("tools.attributed-cost"),title:s("tools.attribution-estimate",{note:s("tools.attribution-note")}),value:Ft(k.cost,k.unpriced),hint:k.unpriced>0?s("tools.unpriced-requests-n",{count:B(Math.round(k.unpriced))}):s("tools.api-equivalent")},void 0,!1,void 0,this)]},void 0,!0,void 0,this),ye.jsxDEV(oa,{min:150,children:[ye.jsxDEV(se,{size:"sm",label:s("tools.result-text"),title:s("tools.result-chars-title"),value:s("tools.chars",{count:De(k.resultChars)})},void 0,!1,void 0,this),ye.jsxDEV(se,{size:"sm",label:s("tools.call-arguments"),title:s("tools.args-chars-title"),value:s("tools.chars",{count:De(k.argsChars)})},void 0,!1,void 0,this),ye.jsxDEV(se,{size:"sm",label:s("tools.avg-result-per-call"),value:s("tools.chars",{count:De(k.calls>0?Math.round(k.resultChars/k.calls):0)})},void 0,!1,void 0,this),ye.jsxDEV(se,{size:"sm",label:s("tools.avg-args-per-call"),value:s("tools.chars",{count:De(k.calls>0?Math.round(k.argsChars/k.calls):0)})},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)}},void 0,!1,void 0,this),ye.jsxDEV(Be,{index:1,title:d==="calls"?s("tools.calls-over-time"):s("tools.errors-over-time"),description:s("tools.chart-description",{bucket:cE(L.bucketMs),count:VI}),actions:ye.jsxDEV(Fa,{size:"sm",options:iE,value:d,onChange:p},void 0,!1,void 0,this),stale:i.stale,children:ye.jsxDEV(_e,{query:i,skeleton:ye.jsxDEV(Mt,{height:260},void 0,!1,void 0,this),isEmpty:T,empty:Sb,children:()=>ye.jsxDEV("div",{className:"stack",style:{gap:12},children:[ye.jsxDEV(Tr,{buckets:h.buckets,bucketMs:L.bucketMs,series:w,hidden:x,height:260,formatTooltip:B,emptyLabel:d==="errors"?s("tools.no-tool-errors"):void 0},void 0,!1,void 0,this),ye.jsxDEV(Va,{items:w.map((k)=>({key:k.key,label:k.label,color:k.color,value:De(k.values.reduce((M,E)=>M+(E??0),0))})),hidden:x,onToggle:g},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this),ye.jsxDEV(Be,{index:2,title:s("tools.by-tool"),description:s("tools.by-tool-description",{note:s("tools.attribution-note")}),flush:!0,stale:i.stale,children:ye.jsxDEV(_e,{query:i,skeleton:ye.jsxDEV(ra,{rows:8},void 0,!1,void 0,this),isEmpty:T,empty:Sb,children:()=>ye.jsxDEV(Ht,{rows:h.rows,rowKey:(k)=>k.tool,columns:h.toolColumns,initialSort:{key:"calls",dir:"desc"},limit:20,selectedKey:C,onRowClick:(k)=>S((M)=>M===k.tool?null:k.tool),dense:!0},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this),ye.jsxDEV(Be,{index:3,title:s("tools.by-tool-and-model"),description:s("tools.by-tool-and-model-description"),flush:!0,stale:i.stale,actions:ye.jsxDEV("div",{className:"row",style:{gap:6},children:[ye.jsxDEV("select",{className:"input tools-filter",value:C??"",onChange:(k)=>S(k.target.value||null),"aria-label":s("tools.filter-by-tool"),children:[ye.jsxDEV("option",{value:"",children:s("tools.all-tools")},void 0,!1,void 0,this),h.toolNames.map((k)=>ye.jsxDEV("option",{value:k,children:k},k,!1,void 0,this))]},void 0,!0,void 0,this),C!==null&&ye.jsxDEV("button",{type:"button",className:"btn","data-size":"sm","data-variant":"ghost","data-icon":"true",title:s("tools.clear-tool-filter"),"aria-label":s("tools.clear-tool-filter"),onClick:()=>S(null),children:ye.jsxDEV(ao,{size:13},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),children:ye.jsxDEV(_e,{query:i,skeleton:ye.jsxDEV(ra,{rows:8},void 0,!1,void 0,this),isEmpty:T,empty:Sb,children:(k)=>ye.jsxDEV(pE,{rows:k.byToolModel,tool:C,colors:h.colors},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 dE(l,c){let i=l?.byTool??[],d=l?.series??[],p=xI(i).sort((T,k)=>k.calls-T.calls),x=_d(i.map((T)=>({key:T.tool,weight:T.calls}))),g=ho(c,d.map((T)=>T.timestamp)),b={calls:0,errors:0,tools:i.length,tokens:0,output:0,cost:0,unpriced:0,resultChars:0,argsChars:0};for(let T of i)b.calls+=T.calls,b.errors+=T.errors,b.tokens+=T.totalTokensShare,b.output+=T.outputTokensShare,b.cost+=T.costShare,b.unpriced+=T.unpricedRequestsShare,b.resultChars+=T.resultChars,b.argsChars+=T.argsChars;let[S,L]=[(T)=>T.calls,(T)=>T.errors].map((T)=>vn(d,{buckets:g,key:(k)=>k.tool,value:T,limit:VI,colors:x}).map((k)=>({...k,values:k.values.map((M)=>M||null)}))),h=new Map(vn(d,{buckets:g,key:(T)=>T.tool,value:(T)=>T.calls}).map((T)=>[T.key,T.values])),C=p[0]?.calls??0,w=fE(C,x,h);return{rows:p,colors:x,buckets:g,totals:b,callSeries:S,errorSeries:L,totalCalls:La(d,g,(T)=>T.calls),totalErrors:La(d,g,(T)=>T.errors),toolNames:p.map((T)=>T.tool).sort((T,k)=>T.localeCompare(k)),toolColumns:w}}function fE(l,c,i){return[{key:"tool",header:s("tools.tool"),sort:(d)=>d.tool,render:(d)=>ye.jsxDEV("span",{className:"row",style:{gap:8},children:[ye.jsxDEV(Cr,{color:c.get(d.tool)??ro},void 0,!1,void 0,this),ye.jsxDEV("span",{className:"mono truncate tools-name",title:d.tool,children:d.tool},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},{key:"trend",header:s("tools.trend"),title:s("tools.trend-title"),render:(d)=>{let p=i.get(d.tool);return p&&p.length>1?ye.jsxDEV(bi,{values:p,width:80,height:20,color:c.get(d.tool)??ro},void 0,!1,void 0,this):ye.jsxDEV("span",{className:"dim",children:"–"},void 0,!1,void 0,this)}},{key:"calls",header:s("tools.calls"),align:"right",sort:(d)=>d.calls,render:(d)=>ye.jsxDEV(pa,{value:d.calls,max:l,display:ye.jsxDEV("span",{title:s("tools.share-of-calls",{percent:je(d.callFraction)}),children:[B(d.calls),ye.jsxDEV("span",{className:"dim tools-share",children:je(d.callFraction,0)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)},{key:"errorRate",header:s("tools.errors"),title:s("tools.errors-title"),align:"right",sort:(d)=>d.errorRate,render:(d)=>ye.jsxDEV("span",{className:"row",style:{gap:8,justifyContent:"flex-end"},children:[ye.jsxDEV("span",{className:"num dim",children:B(d.errors)},void 0,!1,void 0,this),ye.jsxDEV(Ut,{tone:d.errors>0?fn(d.errorRate):"neutral",mono:!0,children:oo(d.errorRate)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},{key:"args",header:s("tools.args"),title:s("tools.args-chars-title"),align:"right",sort:(d)=>d.argsChars,render:(d)=>ye.jsxDEV("span",{className:"num",children:De(d.argsChars)},void 0,!1,void 0,this)},{key:"result",header:s("tools.result"),title:s("tools.result-chars-title"),align:"right",sort:(d)=>d.resultChars,render:(d)=>ye.jsxDEV("span",{className:"num",children:De(d.resultChars)},void 0,!1,void 0,this)},{key:"avgResult",header:s("tools.result-per-call"),title:s("tools.result-per-call-title"),align:"right",sort:(d)=>d.avgResultChars,render:(d)=>ye.jsxDEV("span",{className:"num muted",children:De(Math.round(d.avgResultChars))},void 0,!1,void 0,this)},{key:"tokens",header:s("tools.attr-tokens"),title:s("tools.attribution-note"),align:"right",sort:(d)=>d.totalTokensShare,render:(d)=>ye.jsxDEV("span",{className:"num",title:s("tools.share-of-tokens",{percent:je(d.tokenFraction)}),children:[De(Math.round(d.totalTokensShare)),ye.jsxDEV("span",{className:"dim tools-share",children:je(d.tokenFraction,0)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},{key:"cost",header:s("tools.attr-cost"),title:s("tools.attribution-estimate",{note:s("tools.attribution-note")}),align:"right",sort:(d)=>d.costShare,render:(d)=>ye.jsxDEV("span",{className:"num",title:s("tools.share-of-cost",{percent:je(d.costFraction)}),children:[Ft(d.costShare,d.unpricedRequestsShare),ye.jsxDEV("span",{className:"dim tools-share",children:je(d.costFraction,0)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},{key:"lastUsed",header:s("tools.last-used"),align:"right",sort:(d)=>d.lastUsed,render:(d)=>ye.jsxDEV("span",{className:"muted",children:fa(d.lastUsed)},void 0,!1,void 0,this)}]}function pE({rows:l,tool:c,colors:i}){let d=su.useMemo(()=>(c===null?l:l.filter((x)=>x.tool===c)).map((x)=>({...x,errorRate:x.calls>0?x.errors/x.calls:0})),[l,c]),p=su.useMemo(()=>{let x=d.reduce((g,b)=>Math.max(g,b.calls),0);return[{key:"tool",header:s("tools.tool"),sort:(g)=>g.tool,render:(g)=>ye.jsxDEV("span",{className:"row",style:{gap:8},children:[ye.jsxDEV(Cr,{color:i.get(g.tool)??ro},void 0,!1,void 0,this),ye.jsxDEV("span",{className:"mono truncate tools-name",title:g.tool,children:g.tool},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},{key:"model",header:s("common.model"),sort:(g)=>g.model,render:(g)=>ye.jsxDEV(Ga,{primary:ye.jsxDEV("span",{className:"mono",children:g.model||s("common.unknown")},void 0,!1,void 0,this),secondary:g.provider},void 0,!1,void 0,this)},{key:"calls",header:s("tools.calls"),align:"right",sort:(g)=>g.calls,render:(g)=>ye.jsxDEV(pa,{value:g.calls,max:x,display:B(g.calls)},void 0,!1,void 0,this)},{key:"errorRate",header:s("tools.errors"),align:"right",sort:(g)=>g.errorRate,render:(g)=>ye.jsxDEV("span",{className:"row",style:{gap:8,justifyContent:"flex-end"},children:[ye.jsxDEV("span",{className:"num dim",children:B(g.errors)},void 0,!1,void 0,this),ye.jsxDEV(Ut,{tone:g.errors>0?fn(g.errorRate):"neutral",mono:!0,children:oo(g.errorRate)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},{key:"result",header:s("tools.result"),title:s("tools.result-chars-title"),align:"right",sort:(g)=>g.resultChars,render:(g)=>ye.jsxDEV("span",{className:"num",children:De(g.resultChars)},void 0,!1,void 0,this)},{key:"tokens",header:s("tools.attr-tokens"),title:s("tools.attribution-note"),align:"right",sort:(g)=>g.totalTokensShare,render:(g)=>ye.jsxDEV("span",{className:"num",children:De(Math.round(g.totalTokensShare))},void 0,!1,void 0,this)},{key:"cost",header:s("tools.attr-cost"),title:s("tools.attribution-estimate",{note:s("tools.attribution-note")}),align:"right",sort:(g)=>g.costShare,render:(g)=>ye.jsxDEV("span",{className:"num",children:Ft(g.costShare,g.unpricedRequestsShare)},void 0,!1,void 0,this)},{key:"lastUsed",header:s("tools.last-used"),align:"right",sort:(g)=>g.lastUsed,render:(g)=>ye.jsxDEV("span",{className:"muted",children:fa(g.lastUsed)},void 0,!1,void 0,this)}]},[d,i]);return ye.jsxDEV(Ht,{rows:d,rowKey:(x)=>`${x.tool}::${x.model}::${x.provider}`,columns:p,initialSort:{key:"calls",dir:"desc"},limit:25,dense:!0,empty:ye.jsxDEV(gt,{title:c?s("tools.no-calls-to-tool",{tool:c}):s("tools.no-tool-calls")},void 0,!1,void 0,this)},void 0,!1,void 0,this)}var Mi=Q(ct(),1);var qt=Q(ct(),1);var bn=Q(ue(),1);function XI({toolStats:l,index:c}){if(l.length===0)return null;let i=Math.max(...l.map((p)=>p.totalMs)),d=[{key:"tool",header:s("trace.tool"),render:(p)=>bn.jsxDEV("span",{className:"mono",children:p.tool},void 0,!1,void 0,this),sort:(p)=>p.tool},{key:"calls",header:s("trace.calls"),align:"right",render:(p)=>bn.jsxDEV("span",{className:"num",children:B(p.calls)},void 0,!1,void 0,this),sort:(p)=>p.calls},{key:"errors",header:s("trace.errors"),align:"right",render:(p)=>p.errors>0?bn.jsxDEV(Ut,{tone:"bad",children:s("trace.failed-n",{count:B(p.errors)})},void 0,!1,void 0,this):bn.jsxDEV("span",{className:"num dim",children:"0"},void 0,!1,void 0,this),sort:(p)=>p.errors},{key:"total",header:s("common.total"),align:"right",width:200,render:(p)=>bn.jsxDEV(pa,{value:p.totalMs,max:i,display:Dt(p.totalMs),color:"var(--warn)"},void 0,!1,void 0,this),sort:(p)=>p.totalMs},{key:"avg",header:s("trace.avg"),align:"right",render:(p)=>bn.jsxDEV("span",{className:"num",children:Dt(p.calls>0?p.totalMs/p.calls:0)},void 0,!1,void 0,this),sort:(p)=>p.calls>0?p.totalMs/p.calls:0},{key:"max",header:s("trace.max"),align:"right",render:(p)=>bn.jsxDEV("span",{className:"num",children:Dt(p.maxMs)},void 0,!1,void 0,this),sort:(p)=>p.maxMs}];return bn.jsxDEV(Be,{title:s("trace.tool-aggregates"),description:s("trace.tool-aggregates-desc",{count:l.length}),flush:!0,index:c,children:bn.jsxDEV(Ht,{columns:d,rows:l,rowKey:(p)=>p.tool,dense:!0,limit:12},void 0,!1,void 0,this)},void 0,!1,void 0,this)}var Vo=Q(ct(),1);var xn=Q(ct(),1),mE=xn.createContext(null),uu={turn:"--ink-2",model:"--chart-primary",tool:"--warn",subagent:"--chart-secondary",background:"--ink-4"};function hE(l){let c=getComputedStyle(l),i=(d,p)=>c.getPropertyValue(d).trim()||p;return{category:{turn:i(uu.turn,"#a0a0a8"),model:i(uu.model,"#5ad8e6"),tool:i(uu.tool,"#f5a524"),subagent:i(uu.subagent,"#ed4abf"),background:i(uu.background,"#46464c")},error:i("--bad","#ff6166"),errorSoft:i("--bad-soft","rgba(255, 97, 102, 0.13)"),marker:i("--ink-1","#ededef"),turnBand:i("--hover","rgba(255, 255, 255, 0.035)"),grid:i("--chart-grid","rgba(255, 255, 255, 0.055)"),tick:i("--chart-axis","#5c5c64"),spanText:i("--ink-inverse","#0a0a0b"),selection:i("--focus","#5ad8e6"),brush:i("--selected","rgba(255, 255, 255, 0.075)"),fontSans:i("--font-sans","system-ui, sans-serif"),fontMono:i("--font-mono","ui-monospace, monospace")}}function Ii(){let l=xn.useContext(mE)??document.documentElement,[c,i]=xn.useState(0);return xn.useEffect(()=>{let d=new MutationObserver(()=>i((x)=>x+1)),p={attributes:!0,attributeFilter:["data-theme","style","class"]};if(d.observe(document.documentElement,p),l!==document.documentElement)d.observe(l,p);return()=>d.disconnect()},[l]),xn.useMemo(()=>hE(l),[l,c])}var QI=Q(ue(),1),es=44,Yd=["turn","model","tool","subagent"],YI=6,Ti=10;function gE(l,c,i,d){let p=devicePixelRatio,x=Math.floor(i*p),g=Math.floor(es*p),b,S;if(typeof OffscreenCanvas>"u"){let k=document.createElement("canvas");k.width=x,k.height=g,b=k,S=k.getContext("2d")}else{let k=new OffscreenCanvas(x,g);b=k,S=k.getContext("2d")}if(!S)return b;S.setTransform(p,0,0,p,0,0);let[L,h]=c.domain,C=Math.max(h-L,0.000000001),w=Yd.map(()=>new Float32Array(i));for(let k of l)for(let M of k.spans){let E=Yd.indexOf(M.kind);if(E===-1)continue;let U=w[E],P=Math.max(0,Math.floor((c.toU(M.start)-L)/C*i)),X=Math.min(i-1,Math.ceil((c.toU(M.end)-L)/C*i));for(let F=P;F<=X;F++)U[F]=Math.min(1,U[F]+0.34)}let T=es/Yd.length;for(let k=0;k<Yd.length;k++){let M=w[k];S.fillStyle=d.category[Yd[k]];for(let E=0;E<i;E++){if(M[E]<=0)continue;S.globalAlpha=0.25+M[E]*0.75,S.fillRect(E,k*T+1,1,T-2)}S.globalAlpha=1}return b}function $I({tracks:l,scale:c,viewport:i,onViewportChange:d}){let p=Ii(),x=Vo.useRef(null),[g,b]=Vo.useState(800),S=Vo.useRef(null);Vo.useEffect(()=>{let P=x.current;if(!P)return;let X=new ResizeObserver((F)=>{b(Math.max(100,Math.floor(F[0].contentRect.width)))});return X.observe(P),()=>X.disconnect()},[]);let[L,h]=c.domain,C=Math.max(h-L,0.000000001),w=Vo.useCallback((P)=>(P-L)/C*g,[L,C,g]),T=Vo.useCallback((P)=>L+P/Math.max(g,1)*C,[L,C,g]),k=Vo.useMemo(()=>gE(l,c,g,p),[l,c,g,p]);Vo.useEffect(()=>{let P=x.current;if(!P)return;let X=P.getContext("2d");if(!X)return;let F=devicePixelRatio;X.setTransform(1,0,0,1,0,0),X.clearRect(0,0,P.width,P.height),X.drawImage(k,0,0),X.setTransform(F,0,0,F,0,0);let me=w(i.u0),W=w(i.u1);X.fillStyle=p.brush,X.fillRect(me,0,W-me,es),X.strokeStyle=p.selection,X.strokeRect(me+0.5,0.5,W-me-1,es-1),X.fillStyle=p.selection,X.fillRect(me,0,2,es),X.fillRect(W-2,0,2,es)},[k,i,p,w]);let M=(P)=>{let X=P.currentTarget.getBoundingClientRect(),F=P.clientX-X.left,me=w(i.u0),W=w(i.u1),re;if(Math.abs(F-me)<=YI)re="left";else if(Math.abs(F-W)<=YI)re="right";else if(F>me&&F<W)re="move";else{re="create";let K=T(F);d($d({u0:K,u1:K+Ti},L,h))}S.current={mode:re,startX:F,startViewport:i},P.currentTarget.setPointerCapture(P.pointerId)},E=(P)=>{let X=S.current;if(!X)return;let F=P.currentTarget.getBoundingClientRect(),me=P.clientX-F.left,W=T(me)-T(X.startX),{u0:re,u1:K}=X.startViewport;if(X.mode==="move")d($d({u0:re+W,u1:K+W},L,h));else if(X.mode==="left")d($d({u0:Math.min(re+W,K-Ti),u1:K},L,h));else if(X.mode==="right")d($d({u0:re,u1:Math.max(K+W,re+Ti)},L,h));else{let G=T(X.startX),V=T(me);d($d({u0:Math.min(G,V),u1:Math.max(G,V,Math.min(G,V)+Ti)},L,h))}},U=()=>{S.current=null};return QI.jsxDEV("canvas",{ref:x,width:Math.floor(g*devicePixelRatio),height:Math.floor(es*devicePixelRatio),className:"traces-minimap",style:{height:es},role:"slider","aria-label":s("trace.minimap-aria"),"aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":Math.round((i.u0-L)/C*100),tabIndex:-1,onPointerDown:M,onPointerMove:E,onPointerUp:U},void 0,!1,void 0,this)}function $d(l,c,i){let d=Math.max(Ti,l.u1-l.u0);d=Math.min(d,i-c||Ti);let p=l.u0;if(p<c)p=c;if(p+d>i)p=i-d;return{u0:p,u1:p+d}}var Sn=Q(ct(),1);var Ue=Q(ue(),1);function yE(l){let c=[];if(typeof l==="string"){if(l.trim())c.push({kind:"text",text:l});return c}if(!Array.isArray(l))return c;for(let i of l){if(!i||typeof i!=="object"||!("type"in i))continue;if((i.type==="text"||i.type==="thinking")&&"text"in i&&typeof i.text==="string")c.push({kind:String(i.type),text:i.text})}return c}function vE({title:l,subtitle:c,actions:i,onClose:d,children:p}){return Ue.jsxDEV("section",{className:"traces-inline-detail","aria-label":"Selected span details",children:[Ue.jsxDEV("header",{className:"drawer-header",children:[Ue.jsxDEV("div",{className:"drawer-titles",children:[Ue.jsxDEV("h2",{className:"drawer-title",children:l},void 0,!1,void 0,this),c!==void 0&&Ue.jsxDEV("div",{className:"drawer-subtitle",children:c},void 0,!1,void 0,this)]},void 0,!0,void 0,this),i,Ue.jsxDEV("button",{type:"button",className:"btn","data-icon":"true",onClick:d,"aria-label":"Close span details",children:Ue.jsxDEV(ao,{size:16},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),Ue.jsxDEV("div",{className:"drawer-body",children:p},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function KI({span:l,track:c,onClose:i,onOpenChildTrack:d,loadEntry:p=N1,inline:x=!1,onNavigate:g}){let[b,S]=Sn.useState(null),[L,h]=Sn.useState(!1),[C,w]=Sn.useState(null),[T,k]=Sn.useState(!1),M=Sn.useRef(0);if(Sn.useEffect(()=>{if(S(null),w(null),k(!1),h(!1),!l||!c||!l.entryId)return;h(!0);let W=new AbortController;return p(c.file,l.entryId,W.signal).then((re)=>{if(!W.signal.aborted)S(re.entry)}).catch((re)=>{if(W.signal.aborted)return;w(ah(re))}).finally(()=>{if(!W.signal.aborted)h(!1)}),()=>W.abort()},[l,c,p]),Sn.useEffect(()=>()=>window.clearTimeout(M.current),[]),!l)return null;let E=async()=>{try{await navigator.clipboard.writeText(JSON.stringify(b??l,null,2)),k(!0),window.clearTimeout(M.current),M.current=window.setTimeout(()=>k(!1),1500)}catch{}},P=(b&&typeof b==="object"?b:{}).message,X=P?.usage,F=[{key:"duration",label:s("common.duration"),value:Ue.jsxDEV("span",{className:"num",children:[Dt(l.end-l.start),l.unterminated&&Ue.jsxDEV("span",{className:"muted",children:[" · ",s("trace.unterminated")]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)},{key:"start",label:s("trace.start"),value:Ue.jsxDEV("span",{className:"num",children:new Date(l.start).toLocaleTimeString()},void 0,!1,void 0,this)},{key:"track",label:s("trace.track"),value:Ue.jsxDEV("span",{className:"mono",children:c?.label??"-"},void 0,!1,void 0,this)}];if(l.kind==="model"){if(F.push({key:"tokens",label:s("common.tokens"),value:Ue.jsxDEV("span",{className:"num",children:B(l.tokens??0)},void 0,!1,void 0,this)},{key:"cost",label:s("common.cost"),value:Ue.jsxDEV("span",{className:"num",children:["$",(l.cost??0).toFixed(4)]},void 0,!0,void 0,this)},{key:"ttft",label:s("trace.ttft"),value:Ue.jsxDEV("span",{className:"num",children:Dt(l.ttft??null)},void 0,!1,void 0,this)},{key:"model",label:s("common.model"),value:Ue.jsxDEV("span",{className:"mono",children:P?.model??l.model??"-"},void 0,!1,void 0,this)}),X)F.push({key:"split",label:s("trace.io-cached"),value:Ue.jsxDEV("span",{className:"num",children:[B(X.input??0)," / ",B(X.output??0)," /"," ",B(X.cacheRead??0)]},void 0,!0,void 0,this)});if(P?.provider)F.push({key:"provider",label:s("common.provider"),value:Ue.jsxDEV("span",{className:"mono",children:P.provider},void 0,!1,void 0,this)});if(P?.stopReason)F.push({key:"stop",label:s("trace.stop-reason"),value:Ue.jsxDEV("span",{className:"mono",children:P.stopReason},void 0,!1,void 0,this)})}return Ue.jsxDEV(x?vE:Hm,{open:!0,onClose:i,title:l.label,subtitle:Ue.jsxDEV("span",{className:"row",style:{gap:6},children:Ue.jsxDEV(Ut,{tone:l.isError?"bad":"neutral",children:l.isError?`${l.kind} · ${s("common.error")}`:l.kind},void 0,!1,void 0,this)},void 0,!1,void 0,this),actions:Ue.jsxDEV("button",{type:"button",className:"btn","data-variant":"ghost","data-icon":"true",onClick:E,"aria-label":s("trace.copy-json"),title:s("trace.copy-json"),children:T?Ue.jsxDEV(Ys,{size:15},void 0,!1,void 0,this):Ue.jsxDEV(Qs,{size:15},void 0,!1,void 0,this)},void 0,!1,void 0,this),children:Ue.jsxDEV("div",{className:"stack traces-drawer",children:[Ue.jsxDEV(Go,{items:F},void 0,!1,void 0,this),g&&c&&l.entryId&&Ue.jsxDEV("div",{children:Ue.jsxDEV("button",{type:"button",className:"btn","data-size":"sm",onClick:()=>{if(l.entryId)g(c.id,l.entryId)},children:"Jump to transcript"},void 0,!1,void 0,this)},void 0,!1,void 0,this),P?.errorMessage&&Ue.jsxDEV("div",{className:"stack",style:{gap:6},children:[Ue.jsxDEV("div",{className:"section-label tone-bad",children:s("trace.error-message")},void 0,!1,void 0,this),Ue.jsxDEV("pre",{className:"code-block traces-pre",children:P.errorMessage},void 0,!1,void 0,this)]},void 0,!0,void 0,this),l.kind==="subagent"&&Ue.jsxDEV("div",{className:"stack",style:{gap:8},children:[l.detail&&Ue.jsxDEV(Ue.Fragment,{children:[Ue.jsxDEV("div",{className:"section-label",children:s("trace.task")},void 0,!1,void 0,this),Ue.jsxDEV("pre",{className:"code-block traces-pre",children:l.detail},void 0,!1,void 0,this)]},void 0,!0,void 0,this),l.childTrackId&&d&&Ue.jsxDEV("div",{children:Ue.jsxDEV("button",{type:"button",className:"btn","data-size":"sm",onClick:()=>d(l.childTrackId??""),children:[s("trace.open-child-track")," ",Ue.jsxDEV("span",{className:"mono",children:l.childTrackId},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),l.kind==="tool"&&l.detail&&Ue.jsxDEV("div",{className:"stack",style:{gap:6},children:[Ue.jsxDEV("div",{className:"section-label",children:s("trace.args")},void 0,!1,void 0,this),Ue.jsxDEV("pre",{className:"code-block traces-pre",children:l.detail},void 0,!1,void 0,this)]},void 0,!0,void 0,this),L&&Ue.jsxDEV("div",{className:"stack",children:[Ue.jsxDEV(Ba,{height:80},void 0,!1,void 0,this),Ue.jsxDEV(Ba,{height:160},void 0,!1,void 0,this)]},void 0,!0,void 0,this),C&&Ue.jsxDEV(Si,{error:s("trace.load-failed",{message:C.message})},void 0,!1,void 0,this),!L&&b!==null&&yE(P?.content).map((W,re)=>Ue.jsxDEV("div",{className:"stack",style:{gap:6},children:[Ue.jsxDEV("div",{className:"section-label",children:W.kind==="thinking"?s("trace.thinking"):s("trace.text")},void 0,!1,void 0,this),Ue.jsxDEV("pre",{className:"code-block traces-pre","data-scroll":"true",children:W.text},void 0,!1,void 0,this)]},`${W.kind}-${re}`,!0,void 0,this)),!L&&b!==null&&Ue.jsxDEV(gi,{data:b,title:s("trace.raw-entry"),initialCollapsed:!0},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)}var Mr=Q(ue(),1);function ZI({summary:l}){let c=(i)=>l.wallMs>0?s("trace.of-wall",{percent:je(i/l.wallMs)}):void 0;return Mr.jsxDEV(oa,{min:112,children:[Mr.jsxDEV(se,{size:"sm",label:s("trace.wall-time"),value:Js(l.wallMs)},void 0,!1,void 0,this),Mr.jsxDEV(se,{size:"sm",label:s("trace.model-time"),value:Js(l.modelMs),hint:c(l.modelMs)},void 0,!1,void 0,this),Mr.jsxDEV(se,{size:"sm",label:s("trace.tool-time"),value:Js(l.toolMs),hint:c(l.toolMs)},void 0,!1,void 0,this),Mr.jsxDEV(se,{size:"sm",label:s("trace.idle"),value:Js(l.idleMs),hint:c(l.idleMs)},void 0,!1,void 0,this),Mr.jsxDEV(se,{size:"sm",label:s("trace.turns"),value:B(l.turns)},void 0,!1,void 0,this),Mr.jsxDEV(se,{size:"sm",label:s("common.requests"),value:B(l.requests),hint:s("trace.tool-calls-n",{count:B(l.toolCalls)})},void 0,!1,void 0,this),Mr.jsxDEV(se,{size:"sm",label:s("trace.agents"),value:B(l.subagents)},void 0,!1,void 0,this),Mr.jsxDEV(se,{size:"sm",label:s("common.tokens"),value:De(l.totalTokens)},void 0,!1,void 0,this),Mr.jsxDEV(se,{size:"sm",label:s("common.cost"),value:Ft(l.costTotal,l.unpricedRequests)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}var Nt=Q(ct(),1),rT=Q(cd(),1);function uh(l,c){let i=l.length,d=[c[0],c[i-1]],p=(x,g)=>{let b=0,S=i-1;while(b<S){let L=b+S+1>>1;if(x[L]<=g)b=L;else S=L-1}return Math.min(b,i-2)};return{toU(x){if(x<=l[0])return c[0];if(x>=l[i-1])return c[i-1];let g=p(l,x),b=l[g+1]-l[g];if(b<=0)return c[g];return c[g]+(x-l[g])/b*(c[g+1]-c[g])},toT(x){if(x<=c[0])return l[0];if(x>=c[i-1])return l[i-1];let g=p(c,x),b=c[g+1]-c[g];if(b<=0)return l[g];return l[g]+(x-c[g])/b*(l[g+1]-l[g])},domain:d,gaps:[]}}function bE(l){let c=[];for(let i of l)for(let d of i.spans)c.push([d.start,d.end]);return c.sort((i,d)=>i[0]-d[0]),c}function xE(l){let{POSITIVE_INFINITY:c,NEGATIVE_INFINITY:i}=Number;for(let d of l)for(let p of d.spans){if(p.start<c)c=p.start;if(p.end>i)i=p.end}if(!Number.isFinite(c))return[0,1];return[c,Math.max(i,c+1)]}function WI(l,c,i){let d=[...new Set(l.filter((b)=>b>=c&&b<=i))].sort((b,S)=>b-S);if(d[0]!==c)d.unshift(c);if(d[d.length-1]!==i)d.push(i);if(d.length<2)return uh([c,i],[c,i]);let x=(i-c)/(d.length-1),g=d.map((b,S)=>c+S*x);return uh(d,g)}function SE(l,c,i){let d=bE(l),p=[];for(let[h,C]of d){let w=h-2000,T=C+2000,k=p[p.length-1];if(k&&w<=k[1]){if(T>k[1])k[1]=T}else p.push([w,T])}if(p.length===0)p.push([c,i]);p[0][0]=Math.max(p[0][0],c),p[p.length-1][1]=Math.min(Math.max(p[p.length-1][1],p[p.length-1][0]),i);let x=[],g=[],b=[],S=p[0][0];for(let h=0;h<p.length;h++){let[C,w]=p[h];if(h===0)x.push(C),g.push(S);else{let T=p[h-1][1],k=C-T;if(k>30000)S+=8000,b.push({t0:T,t1:C,uMid:S-4000});else S+=k;x.push(C),g.push(S)}S+=Math.max(0,w-C),x.push(w),g.push(S)}return{...uh(x,g),gaps:b}}function JI(l,c,i){let[d,p]=xE(l);if(c==="turns"){let g=(l.find((b)=>b.id==="main")?.spans??[]).filter((b)=>b.kind==="turn").map((b)=>b.start);return WI(g,d,p)}if(c==="calls"){let x=[];for(let g of l)for(let b of g.spans)if(b.kind==="model"||b.kind==="tool"||b.kind==="background")x.push(b.start,b.end);return WI(x,d,p)}if(i)return SE(l,d,p);return uh([d,p],[d,p])}var LE=90;function CE(l){let c=10**Math.floor(Math.log10(Math.max(l,1)));for(let i of[1,2,5,10])if(c*i>=l)return c*i;return c*10}function wE(l){let c=new Date(l),i=String(c.getHours()).padStart(2,"0"),d=String(c.getMinutes()).padStart(2,"0"),p=String(c.getSeconds()).padStart(2,"0");return`${i}:${d}:${p}`}function Ri(l){let c=l<0?"-":"+",i=Math.abs(l),d=Math.floor(i/3600000),p=Math.floor(i%3600000/60000),x=Math.floor(i%60000/1000),g=Math.floor(i%1000),b=i%1000!==0,S=`${String(p).padStart(2,"0")}:${String(x).padStart(2,"0")}${b?".":""}${b?String(g).padStart(3,"0"):""}`;return d>0?`${c}${d}:${S}`:`${c}${S}`}function eT(l,c,i,d){let p=i-c;if(p<=0||d<=0)return[];let x=[],g=l.domain[0],b=CE(p*LE/d),S=g+Math.ceil((c-g)/b)*b,L=0;for(let h=S;h<=i&&L<200;h+=b,L++){let C=l.toT(h),w=Math.round((h-g)/b)%5===0;x.push({u:h,label:w?wE(C):Ri(h-g),major:w})}return x}var At=Q(ue(),1),Jn=28,kb=22,ko=18,tT=3,kE=14,aT=200,Lb=10,nT=2,IE=4,TE=56,ih=3,wb=0.3,RE=[{kind:"turn",label:s("common.input")},{kind:"model",label:s("common.model")},{kind:"tool",label:s("trace.tools")},{kind:"subagent",label:s("trace.agents")},{kind:"background",label:s("trace.bg")}];function AE(l,c){let i=new Map(l.map((S)=>[S.id,S])),d=new Set;for(let S of l)if(S.parentId)d.add(S.parentId);let p=(S)=>{let L=S.parentId;while(L){if(c.has(L))return!0;L=i.get(L)?.parentId??null}return!1},x=[],g=[],b=Jn+6;for(let S of l){if(p(S))continue;let L=S.id==="main"?0:S.id.split("/").length,h={turn:[],model:[],tool:[],subagent:[],background:[]};for(let w of S.spans)h[w.kind].push(w);let C={track:S,depth:L,hasChildren:d.has(S.id),headerY:b,lanes:[],turnSpans:h.turn,y0:b,y1:b};b+=kb;for(let{kind:w,label:T}of RE){let k=h[w],M=w==="turn"||w==="model"||w==="tool";if(k.length===0&&!(S.id==="main"&&M))continue;let E={track:S,kind:w,label:T,y:b,spans:k};C.lanes.push(E),g.push(E),b+=ko+tT}C.y1=b-tT,x.push(C),b+=kE}return{blocks:x,lanes:g,totalHeight:Math.max(b,Jn+48)}}function ME(l,c){return l.lanes.map((i)=>{let d=i.spans.length,p=new Float64Array(d),x=new Float64Array(d),g=new Float64Array(d),b=Number.NEGATIVE_INFINITY;for(let S=0;S<d;S++){let L=i.spans[S];p[S]=c.toU(L.start),x[S]=c.toU(L.end),b=Math.max(b,x[S]),g[S]=b}return{startU:p,endU:x,maxEndU:g}})}function DE(l,c){let i=0,d=l.length;while(i<d){let p=i+d>>>1;if(l[p]<c)i=p+1;else d=p}return i}function EE(l,c){if(l===null||c===null)return l===c;if(l.kind==="span")return c.kind==="span"&&l.span===c.span;return c.kind==="marker"&&l.marker===c.marker}function lT({tracks:l,scale:c,viewport:i,onViewportChange:d,selected:p,onSelect:x,matchIds:g,collapsed:b,onToggleCollapse:S,traceStart:L,autoFocus:h=!0}){let C=Ii(),w=Nt.useRef(null),T=Nt.useRef(null),k=Nt.useRef(null),[M,E]=Nt.useState(800),[U,P]=Nt.useState(null),X=Nt.useRef(null);X.current=U;let F=Nt.useRef({clientX:0,clientY:0}),me=Nt.useRef([]),W=Nt.useRef(null),re=Nt.useRef(null),K=Nt.useRef(i);K.current=i;let G=Nt.useMemo(()=>AE(l,b),[l,b]),V=Nt.useMemo(()=>ME(G,c),[G,c]);Nt.useEffect(()=>{let ne=w.current;if(!ne)return;let Y=new ResizeObserver((be)=>{let Ge=Math.max(100,Math.floor(be[0].contentRect.width-aT));E(Ge)});return Y.observe(ne),()=>Y.disconnect()},[]);let de=Nt.useCallback((ne,Y)=>{let[be,Ge]=c.domain,$e=Math.max(Lb,Y-ne);$e=Math.min($e,Ge-be||Lb);let Qe=ne;if(Qe<be)Qe=be;if(Qe+$e>Ge)Qe=Ge-$e;return{u0:Qe,u1:Qe+$e}},[c]),ve=Nt.useCallback((ne)=>{K.current=ne,d(ne)},[d]),Ce=Nt.useCallback((ne,Y)=>{let be=M,{u0:Ge,u1:$e}=K.current,Qe=$e-Ge,Xe=Y===null?0.5:Math.min(1,Math.max(0,Y/be)),yt=Ge+Qe*Xe,Se=Qe*ne;ve(de(yt-Se*Xe,yt+Se*(1-Xe)))},[M,ve,de]),Ie=Nt.useCallback((ne)=>{let{u0:Y,u1:be}=K.current;ve(de(Y+ne,be+ne))},[ve,de]),ae=Nt.useCallback((ne)=>{let Y=c.toU(ne.start),be=c.toU(ne.end),Ge=Math.max((be-Y)*0.1,Lb/2);ve(de(Y-Ge,be+Ge))},[c,ve,de]);Nt.useEffect(()=>{let ne=T.current;if(!ne)return;let Y=(be)=>{be.preventDefault();let Ge=ne.getBoundingClientRect(),$e=be.clientX-Ge.left;re.current=$e,P(null);let Qe=ne.clientWidth||1,Xe=()=>K.current.u1-K.current.u0;if(be.shiftKey){let yt=Math.abs(be.deltaY)>=Math.abs(be.deltaX)?be.deltaY:be.deltaX;Ie(yt/Qe*Xe());return}if(be.deltaX!==0)Ie(be.deltaX/Qe*Xe());if(be.deltaY!==0)Ce(1.0015**be.deltaY,$e)};return ne.addEventListener("wheel",Y,{passive:!1}),()=>ne.removeEventListener("wheel",Y)},[Ce,Ie]);let he=Nt.useCallback((ne,Y)=>{let be=T.current;if(!be)return null;let Ge=be.getBoundingClientRect(),$e=ne-Ge.left,Qe=Y-Ge.top,Xe=me.current;for(let yt=Xe.length-1;yt>=0;yt--){let Se=Xe[yt];if($e>=Se.x&&$e<=Se.x+Se.w&&Qe>=Se.y&&Qe<=Se.y+Se.h)return Se}return null},[]),we=Nt.useCallback(()=>{let ne=k.current;if(!ne)return;let{clientX:Y,clientY:be}=F.current,Ge=Math.min(Y+14,window.innerWidth-320),$e=be+16>window.innerHeight-140?be-120:be+16;ne.style.transform=`translate(${Ge}px, ${$e}px)`},[]),We=(ne)=>{ne.currentTarget.setPointerCapture(ne.pointerId),W.current={pointerId:ne.pointerId,lastX:ne.clientX,moved:!1},ne.currentTarget.focus()},St=(ne)=>{let Y=ne.currentTarget.getBoundingClientRect();re.current=ne.clientX-Y.left;let be=W.current;if(be&&be.pointerId===ne.pointerId){let $e=ne.clientX-be.lastX;if(Math.abs($e)>0){if(Math.abs($e)>2)be.moved=!0;be.lastX=ne.clientX;let Qe=K.current.u1-K.current.u0;Ie(-$e/(M||1)*Qe)}P(null);return}F.current={clientX:ne.clientX,clientY:ne.clientY};let Ge=he(ne.clientX,ne.clientY);if(EE(Ge,X.current))we();else P(Ge)},ee=(ne)=>{let Y=W.current;if(W.current=null,Y?.moved)return;let be=he(ne.clientX,ne.clientY);if(be?.kind==="span")x(be.span.id);else x(null)},ze=(ne)=>{let Y=he(ne.clientX,ne.clientY);if(Y?.kind==="span")ae(Y.span)},Lt=Nt.useCallback((ne)=>{let Y=p?.span.id;if(!Y)return;for(let be of G.lanes){let Ge=be.spans.findIndex((Xe)=>Xe.id===Y);if(Ge===-1)continue;let $e=be.spans[Ge+ne];if(!$e)return;x($e.id);let Qe=c.toU($e.start);if(Qe<i.u0||Qe>i.u1){let Xe=i.u1-i.u0;d(de(Qe-Xe/2,Qe+Xe/2))}return}},[p,G,x,c,i,d,de]),Ct=(ne)=>{let Y=i.u1-i.u0;switch(ne.key){case"w":case"W":Ce(0.7692307692307692,re.current);break;case"s":case"S":Ce(1.3,re.current);break;case"a":case"A":Ie(-Y*0.2);break;case"d":case"D":Ie(Y*0.2);break;case"0":d({u0:c.domain[0],u1:c.domain[1]});break;case"f":case"F":if(p)ae(p.span);break;case"Escape":x(null);break;case",":Lt(-1);break;case".":Lt(1);break;default:return}ne.preventDefault(),ne.stopPropagation()};Nt.useEffect(()=>{if(h)T.current?.focus({preventScroll:!0})},[h]),Nt.useEffect(()=>{let ne=T.current;if(!ne)return;let Y=requestAnimationFrame(()=>{me.current=qE(ne,G,V,c,i,C,M,g)});return()=>cancelAnimationFrame(Y)},[G,V,c,i,C,M,g]);let ie=U?.kind==="span"?oT(U,G,c,i,M):null,He=p?oT(p,G,c,i,M):null;Nt.useLayoutEffect(()=>{if(U)we()},[U,we]);let Fe=U?OE(U,L,k):null,J=Math.floor(M*devicePixelRatio),Me=Math.floor(G.totalHeight*devicePixelRatio),lt={width:M,height:G.totalHeight};return At.jsxDEV("div",{ref:w,className:"traces-timeline",children:[At.jsxDEV("div",{style:{width:aT,flexShrink:0,position:"relative",height:G.totalHeight},children:G.blocks.map((ne)=>At.jsxDEV("div",{children:[At.jsxDEV("div",{style:{position:"absolute",top:ne.headerY,left:4+ne.depth*14,right:8,height:kb,display:"flex",alignItems:"center",gap:5,minWidth:0},children:[ne.hasChildren?At.jsxDEV("button",{type:"button",onClick:()=>S(ne.track.id),"aria-label":b.has(ne.track.id)?s("trace.expand-track",{track:ne.track.label}):s("trace.collapse-track",{track:ne.track.label}),className:"traces-chevron",children:b.has(ne.track.id)?At.jsxDEV(Lr,{size:12},void 0,!1,void 0,this):At.jsxDEV($s,{size:12},void 0,!1,void 0,this)},void 0,!1,void 0,this):At.jsxDEV("span",{style:{width:12,flexShrink:0}},void 0,!1,void 0,this),At.jsxDEV("span",{className:"traces-gutter-track truncate",style:{minWidth:0},children:ne.track.label},void 0,!1,void 0,this),ne.track.model&&At.jsxDEV("span",{className:"traces-gutter-model mono truncate",style:{flexShrink:1,minWidth:0},children:ne.track.model},void 0,!1,void 0,this)]},void 0,!0,void 0,this),ne.lanes.map((Y)=>At.jsxDEV("div",{className:"traces-gutter-lane",style:{top:Y.y,left:20+ne.depth*14,lineHeight:`${ko}px`},children:Y.label},`${Y.track.id}:${Y.kind}`,!1,void 0,this))]},ne.track.id,!0,void 0,this))},void 0,!1,void 0,this),At.jsxDEV("div",{className:"traces-canvas-stack",style:lt,children:[At.jsxDEV("canvas",{ref:T,className:"traces-canvas",width:J,height:Me,style:lt,tabIndex:0,role:"application","aria-label":s("trace.canvas-aria"),onPointerDown:We,onPointerMove:St,onPointerUp:ee,onPointerLeave:()=>{re.current=null,P(null)},onDoubleClick:ze,onKeyDown:Ct},void 0,!1,void 0,this),ie&&U?.kind==="span"&&At.jsxDEV("div",{className:"traces-canvas-hover","aria-hidden":"true",style:{left:ie.x,top:ie.y,width:ie.w,height:ko,borderRadius:ih,opacity:g===null||g.has(U.span.id)?1:wb}},void 0,!1,void 0,this),He&&p&&At.jsxDEV("div",{className:"traces-canvas-selection","aria-hidden":"true",style:{left:He.x-1,top:He.y-1,width:He.w+2,height:ko+2,borderRadius:ih,borderColor:C.selection,opacity:g===null||g.has(p.span.id)?1:wb}},void 0,!1,void 0,this)]},void 0,!0,void 0,this),Fe&&rT.createPortal(Fe,w.current?.getRootNode()instanceof ShadowRoot?w.current.getRootNode():document.body)]},void 0,!0,void 0,this)}function Cb(l,c,i,d,p){if(l.beginPath(),d>=ih*2+1)l.roundRect(c,i,d,p,ih);else l.rect(c,i,d,p)}function qE(l,c,i,d,p,x,g,b){let S=[],L=l.getContext("2d");if(!L)return S;let h=c.totalHeight,C=devicePixelRatio;L.setTransform(C,0,0,C,0,0),L.clearRect(0,0,g,h);let{u0:w,u1:T}=p,k=Math.max(T-w,0.000000001),M=(E)=>(E-w)/k*g;for(let E of c.blocks){let U=E.turnSpans;for(let P=0;P<U.length;P++){let X=M(d.toU(U[P].start)),F=P+1<U.length?M(d.toU(U[P+1].start)):g;if(F<0||X>g)continue;if(P%2===1)L.fillStyle=x.turnBand,L.fillRect(Math.max(0,X),E.y0,Math.min(g,F)-Math.max(0,X),E.y1-E.y0);if(X>=0&&X<=g)L.strokeStyle=x.grid,L.beginPath(),L.moveTo(Math.round(X)+0.5,E.y0),L.lineTo(Math.round(X)+0.5,E.y1),L.stroke()}}L.font=`9px ${x.fontMono}`;for(let E of d.gaps){let U=M(E.uMid);if(U<-24||U>g+24)continue;L.save(),L.strokeStyle=x.grid,L.setLineDash([2,4]),L.beginPath(),L.moveTo(U,Jn),L.lineTo(U,h),L.stroke(),L.restore(),L.fillStyle=x.tick,L.textAlign="center",L.fillText(`⋯ ${Dt(E.t1-E.t0)}`,U,Jn-4),L.textAlign="left"}for(let E of eT(d,w,T,g)){let U=Math.round(M(E.u))+0.5;if(L.strokeStyle=x.grid,L.beginPath(),E.major)L.moveTo(U,4),L.lineTo(U,h);else L.moveTo(U,Jn-8),L.lineTo(U,Jn);if(L.stroke(),L.fillStyle=x.tick,E.major)L.fillText(E.label,U+4,11);else L.globalAlpha=0.75,L.fillText(E.label,U+3,Jn-10),L.globalAlpha=1}L.strokeStyle=x.grid,L.beginPath(),L.moveTo(0,Jn+0.5),L.lineTo(g,Jn+0.5),L.stroke(),L.font=`10px ${x.fontSans}`;for(let E=0;E<c.lanes.length;E++){let U=c.lanes[E],{startU:P,endU:X,maxEndU:F}=i[E],me=U.kind==="turn";for(let W=DE(F,w);W<U.spans.length;W++){let re=P[W];if(re>T)break;let K=X[W];if(K<w)continue;let G=U.spans[W],V=M(re),de=Math.max(nT,M(K)-V),ve=U.y,Ce=b===null||b.has(G.id)?1:wb,Ie=x.category[G.kind];if(L.globalAlpha=Ce,me)L.fillStyle=Ie,L.globalAlpha=Ce*0.23,Cb(L,V,ve,de,ko),L.fill(),L.globalAlpha=Ce,L.fillStyle=Ie,L.fillRect(V,ve,2,ko);else L.fillStyle=Ie,Cb(L,V,ve,de,ko),L.fill();if(G.isError)L.fillStyle=x.errorSoft,Cb(L,V,ve,de,ko),L.fill(),L.fillStyle=x.error,L.fillRect(V,ve,2,ko);if(G.kind==="model"&&typeof G.ttft==="number"&&G.ttft>0&&de>20){let he=M(d.toU(G.start+G.ttft));if(he>V+1&&he<V+de-1)L.fillStyle="rgba(0,0,0,0.5)",L.fillRect(he,ve+3,1,ko-6)}if(G.unterminated)L.save(),L.strokeStyle=x.tick,L.setLineDash([2,2]),L.beginPath(),L.moveTo(V+de-0.5,ve),L.lineTo(V+de-0.5,ve+ko),L.stroke(),L.restore();if(de>TE)L.save(),L.beginPath(),L.rect(V+3,ve,de-6,ko),L.clip(),L.fillStyle=me?x.tick:x.spanText,L.fillText(G.label,V+5,ve+ko-5),L.restore();L.globalAlpha=1;let ae=Math.max(de,IE);S.push({kind:"span",x:V-(ae-de)/2,y:ve,w:ae,h:ko,span:G,track:U.track})}}for(let E of c.blocks)for(let U of E.track.markers){let P=M(d.toU(U.time));if(P<-6||P>g+6)continue;let X=E.headerY+kb/2;L.fillStyle=x.marker,L.beginPath(),L.moveTo(P,X-4),L.lineTo(P+4,X),L.lineTo(P,X+4),L.lineTo(P-4,X),L.closePath(),L.fill(),S.push({kind:"marker",x:P-5,y:X-5,w:10,h:10,marker:U,track:E.track})}return S}function oT({span:l,track:c},i,d,p,x){let{u0:g,u1:b}=p,S=d.toU(l.start),L=d.toU(l.end);if(S>b||L<g)return null;let h=i.lanes.find((k)=>k.track===c&&k.kind===l.kind);if(!h)return null;let C=Math.max(b-g,0.000000001),w=(S-g)/C*x,T=(L-g)/C*x;return{x:w,y:h.y,w:Math.max(nT,T-w)}}function OE(l,c,i){let d={left:0,top:0};if(l.kind==="marker"){let{marker:x}=l;return At.jsxDEV("div",{ref:i,className:"traces-tooltip",style:d,children:[At.jsxDEV("div",{className:"traces-tooltip-title",children:x.label},void 0,!1,void 0,this),At.jsxDEV("div",{className:"muted num",children:[new Date(x.time).toLocaleTimeString()," (",Ri(x.time-c),")"]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)}let{span:p}=l;return At.jsxDEV("div",{ref:i,className:"traces-tooltip",style:d,children:[At.jsxDEV("div",{className:"traces-tooltip-title truncate",children:p.label},void 0,!1,void 0,this),At.jsxDEV("div",{className:"muted num",children:[Dt(p.end-p.start)," · ",new Date(p.start).toLocaleTimeString()," (",Ri(p.start-c),")",p.unterminated?` · ${s("trace.unterminated")}`:""]},void 0,!0,void 0,this),p.kind==="model"&&At.jsxDEV("div",{className:"muted num",children:[p.tokens!==void 0&&At.jsxDEV(At.Fragment,{children:[B(p.tokens)," ",s("trace.tok")]},void 0,!0,void 0,this),p.cost!==void 0&&At.jsxDEV(At.Fragment,{children:[" · $",p.cost.toFixed(4)]},void 0,!0,void 0,this),p.ttft!==void 0&&At.jsxDEV(At.Fragment,{children:[" ","· ",s("trace.ttft")," ",Dt(p.ttft)]},void 0,!0,void 0,this),p.isError&&At.jsxDEV(At.Fragment,{children:[" · ",s("common.error")]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),p.kind==="subagent"&&p.model&&At.jsxDEV("div",{className:"muted num",children:p.model},void 0,!1,void 0,this),p.detail&&At.jsxDEV("div",{className:"traces-tooltip-detail",children:p.detail},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}var Dr=Q(ct(),1);var ja=Q(ue(),1),Ai=28,sT=20,NE=340;function BE(l){let c=[];for(let i of l){let d=i.id==="main"?0:i.id.split("/").length;for(let p of i.spans)c.push({key:p.id,time:p.start,span:p,track:i,depth:d});for(let p=0;p<i.markers.length;p++){let x=i.markers[p];c.push({key:`${i.id}:marker:${p}`,time:x.time,marker:x,track:i,depth:d})}}return c.sort((i,d)=>i.time-d.time),c}var uT=Dr.memo(function({tracks:c,selection:i,onSelect:d,search:p,matchIds:x,traceStart:g}){let b=Ii(),S=Dr.useRef(null),[L,h]=Dr.useState(0),C=Dr.useMemo(()=>BE(c),[c]),w=Dr.useMemo(()=>{if(!x)return C;let E=p.trim().toLowerCase();return C.filter((U)=>U.span?x.has(U.span.id):(U.marker?.label??"").toLowerCase().includes(E))},[C,p,x]);Dr.useEffect(()=>{if(!i)return;let E=S.current;if(!E)return;let U=w.findIndex((X)=>X.span?.id===i);if(U===-1)return;let P=U*Ai;if(P<E.scrollTop||P+Ai>E.scrollTop+E.clientHeight)E.scrollTop=Math.max(0,P-E.clientHeight/2)},[i,w]);let T=Math.max(0,Math.floor(L/Ai)-sT),k=Math.min(w.length,Math.ceil((L+NE)/Ai)+sT),M=w.slice(T,k);return ja.jsxDEV("div",{ref:S,onScroll:(E)=>h(E.currentTarget.scrollTop),className:"traces-list",children:[ja.jsxDEV("div",{style:{height:w.length*Ai,position:"relative"},children:ja.jsxDEV("div",{style:{position:"absolute",top:T*Ai,left:0,right:0},children:M.map((E)=>{let U=E.span,P=U!==void 0&&U.id===i,X=E.span?b.category[E.span.kind]:b.marker,F=E.span?.label??E.marker?.label??"",me=E.span?.detail,W=E.span?Dt(E.span.end-E.span.start):"",re=E.span?.kind??E.marker?.kind??"",K=ja.jsxDEV(ja.Fragment,{children:[ja.jsxDEV("span",{className:"traces-kind",style:{"--traces-kind-color":X},children:re},void 0,!1,void 0,this),E.depth>0&&ja.jsxDEV("span",{className:"traces-row-track mono truncate",title:E.track.label,children:E.track.id},void 0,!1,void 0,this),ja.jsxDEV("span",{className:"traces-row-label truncate",children:F},void 0,!1,void 0,this),me&&ja.jsxDEV("span",{className:"traces-row-detail truncate",children:me},void 0,!1,void 0,this),ja.jsxDEV("span",{className:"traces-row-meta num",children:[E.span?.isError&&ja.jsxDEV("span",{className:"tone-bad",children:s("common.error")},void 0,!1,void 0,this),ja.jsxDEV("span",{children:W},void 0,!1,void 0,this),ja.jsxDEV("span",{children:Ri(E.time-g)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),G={paddingLeft:12+E.depth*12};return U?ja.jsxDEV("button",{type:"button",onClick:()=>d(U.id),className:"traces-row","data-selected":P?"true":"false",style:G,children:K},E.key,!1,void 0,this):ja.jsxDEV("div",{className:"traces-row","data-static":"true",style:G,children:K},E.key,!1,void 0,this)})},void 0,!1,void 0,this)},void 0,!1,void 0,this),w.length===0&&ja.jsxDEV(gt,{title:s("trace.no-matching-events")},void 0,!1,void 0,this)]},void 0,!0,void 0,this)});var at=Q(ue(),1),zE=[{value:"time",label:s("common.duration"),title:s("trace.mode-time-title")},{value:"turns",label:s("trace.turns"),title:s("trace.mode-turns-title")},{value:"calls",label:s("trace.calls"),title:s("trace.mode-calls-title")}],UE=[{kind:"turn",label:s("common.input")},{kind:"model",label:s("common.model")},{kind:"tool",label:s("trace.tool")},{kind:"subagent",label:s("trace.agent")},{kind:"background",label:s("trace.background")}];function iT({file:l,active:c,onBack:i}){let d=Gt(["trace",l],({signal:x},g)=>O1(l,x,g),{pollMs:15000,enabled:c}),p=d.stale?null:d.data;return at.jsxDEV("div",{className:"stack traces-view",children:[at.jsxDEV("div",{children:at.jsxDEV("button",{type:"button",className:"btn","data-variant":"ghost","data-size":"sm",onClick:i,children:[at.jsxDEV(hd,{size:14,"aria-hidden":"true"},void 0,!1,void 0,this),"Sessions"]},void 0,!0,void 0,this)},void 0,!1,void 0,this),at.jsxDEV(ua,{title:at.jsxDEV("span",{className:"traces-title truncate",children:p?.title??l.split("/").pop()},void 0,!1,void 0,this),description:p?.cwd?at.jsxDEV("span",{className:"mono",children:p.cwd},void 0,!1,void 0,this):void 0,actions:at.jsxDEV("button",{type:"button",className:"btn","data-variant":"ghost","data-icon":"true",onClick:d.refetch,"aria-label":"Refresh trace",title:"Refresh trace",children:at.jsxDEV($l,{size:14,className:d.refreshing?"traces-spin":void 0},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this),at.jsxDEV(_e,{query:{...d,data:p},skeleton:at.jsxDEV(Mt,{height:420},void 0,!1,void 0,this),children:(x)=>at.jsxDEV(PE,{trace:x},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function PE({trace:l,view:c="full",loadEntry:i,embedded:d=!1,onNavigate:p}){let[x,g]=qt.useState("time"),[b,S]=qt.useState(!0),[L,h]=qt.useState(null),[C,w]=qt.useState(!1),[T,k]=qt.useState(""),[M,E]=qt.useState(0),[U,P]=qt.useState(new Set),[X,F]=qt.useState(null),me=qt.useMemo(()=>l?.tracks??[],[l]),W=qt.useMemo(()=>JI(me,x,b),[me,x,b]),re=qt.useRef(W),K=qt.useRef(null);qt.useEffect(()=>{if(!l)return;if(K.current===l.file)return;K.current=l.file,h(null),k(""),F(null);let ie=new Set;for(let He of l.tracks)if((He.id==="main"?0:He.id.split("/").length)>=1)ie.add(He.id);P(ie)},[l]),qt.useEffect(()=>{let ie=re.current;re.current=W,F((He)=>{if(!He)return He;let Fe=ie.toT(He.u0),J=ie.toT(He.u1),Me=W.toU(Fe),lt=W.toU(J);return lt-Me>0?{u0:Me,u1:lt}:null})},[W]);let G=qt.useMemo(()=>X??{u0:W.domain[0],u1:W.domain[1]},[X,W]),V=qt.useMemo(()=>{let ie=[];for(let He of me)for(let Fe of He.spans)ie.push({span:Fe,track:He});return ie.sort((He,Fe)=>He.span.start-Fe.span.start),ie},[me]),de=qt.useMemo(()=>{let ie=T.trim().toLowerCase();if(!ie)return[];return V.filter(({span:He})=>`${He.label} ${He.detail??""}`.toLowerCase().includes(ie))},[V,T]),ve=qt.useMemo(()=>T.trim()?new Set(de.map(({span:ie})=>ie.id)):null,[de,T]),Ce=qt.useCallback((ie)=>{let He=W.toU(ie.start),Fe=W.toU(ie.end);F((J)=>{let Me=J??{u0:W.domain[0],u1:W.domain[1]};if(He>=Me.u0&&Fe<=Me.u1)return J;let lt=Me.u1-Me.u0,ne=(He+Fe)/2,[Y,be]=W.domain,Ge=ne-lt/2;if(Ge<Y)Ge=Y;if(Ge+lt>be)Ge=Math.max(Y,be-lt);return{u0:Ge,u1:Ge+lt}})},[W]),Ie=qt.useCallback((ie)=>{h(ie);let He=V.find(({span:Fe})=>Fe.id===ie);if(He)Ce(He.span)},[V,Ce]),ae=qt.useCallback((ie)=>{h(ie),w(ie!==null)},[]),he=qt.useCallback((ie)=>{if(de.length===0)return;let He=((M+ie)%de.length+de.length)%de.length;E(He),Ie(de[He].span.id)},[de,M,Ie]),we=qt.useCallback((ie)=>{P((He)=>{let Fe=new Set(He);if(Fe.has(ie))Fe.delete(ie);else Fe.add(ie);return Fe})},[]),We=qt.useMemo(()=>{if(!L)return null;return V.find(({span:ie})=>ie.id===L)??null},[L,V]),St=qt.useCallback((ie)=>{let He=me.find((J)=>J.id===ie),Fe=He?.spans[0];if(P((J)=>{let Me=new Set(J),lt=He;while(lt?.parentId)Me.delete(lt.parentId),lt=me.find((ne)=>ne.id===lt?.parentId);return Me}),Fe)Ie(Fe.id)},[me,Ie]),ee=qt.useCallback((ie)=>{if(!ie){P(new Set);return}let He=new Set;for(let Fe of me)if(Fe.id!=="main")He.add(Fe.id);P(He)},[me]),ze=qt.useCallback((ie)=>{Ie(ie),w(!0)},[Ie]),Lt=qt.useCallback(()=>w(!1),[]),Ct=l.startedAt;return at.jsxDEV("div",{className:"stack traces-view","data-view":c,children:[c==="full"&&at.jsxDEV(ZI,{summary:l.summary},void 0,!1,void 0,this),V.length===0&&at.jsxDEV("p",{className:"muted",children:"No spans recorded in this session."},void 0,!1,void 0,this),at.jsxDEV(Be,{index:1,title:s("trace.timeline"),description:s("trace.timeline-hint"),actions:at.jsxDEV(at.Fragment,{children:[at.jsxDEV("button",{type:"button",className:"btn","data-variant":"ghost","data-size":"sm",onClick:()=>ee(!1),children:s("trace.expand-all")},void 0,!1,void 0,this),at.jsxDEV("button",{type:"button",className:"btn","data-variant":"ghost","data-size":"sm",onClick:()=>ee(!0),children:s("trace.collapse-all")},void 0,!1,void 0,this)]},void 0,!0,void 0,this),children:at.jsxDEV("div",{className:"stack",children:[at.jsxDEV("div",{className:"traces-toolbar",children:[at.jsxDEV(Fa,{options:zE,value:x,onChange:g,size:"sm","aria-label":s("trace.axis-mode")},void 0,!1,void 0,this),x==="time"&&at.jsxDEV("label",{className:"traces-check",children:[at.jsxDEV("input",{type:"checkbox",checked:b,onChange:(ie)=>S(ie.target.checked)},void 0,!1,void 0,this),s("trace.compress-idle")]},void 0,!0,void 0,this),at.jsxDEV("div",{className:"traces-search",children:[at.jsxDEV(pn,{value:T,onChange:(ie)=>{k(ie),E(0)},label:s("trace.search-placeholder"),placeholder:s("trace.search-placeholder"),width:200},void 0,!1,void 0,this),T.trim()&&at.jsxDEV(at.Fragment,{children:[at.jsxDEV("span",{className:"num muted traces-match-count",children:de.length===0?"0":`${M%Math.max(de.length,1)+1}/${de.length}`},void 0,!1,void 0,this),at.jsxDEV("button",{type:"button",className:"btn","data-variant":"ghost","data-size":"sm","data-icon":"true",onClick:()=>he(-1),"aria-label":s("trace.previous-match"),disabled:de.length===0,children:at.jsxDEV(bd,{size:14},void 0,!1,void 0,this)},void 0,!1,void 0,this),at.jsxDEV("button",{type:"button",className:"btn","data-variant":"ghost","data-size":"sm","data-icon":"true",onClick:()=>he(1),"aria-label":s("trace.next-match"),disabled:de.length===0,children:at.jsxDEV(Lr,{size:14},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),at.jsxDEV("div",{className:"traces-legend",children:UE.map((ie)=>at.jsxDEV("span",{className:"traces-legend-item",children:[at.jsxDEV("span",{className:"swatch",style:{background:`var(${uu[ie.kind]})`}},void 0,!1,void 0,this),ie.label]},ie.kind,!0,void 0,this))},void 0,!1,void 0,this)]},void 0,!0,void 0,this),at.jsxDEV($I,{tracks:me,scale:W,viewport:G,onViewportChange:F},void 0,!1,void 0,this),at.jsxDEV(lT,{tracks:me,scale:W,viewport:G,onViewportChange:F,selected:We,onSelect:ae,matchIds:ve,collapsed:U,onToggleCollapse:we,traceStart:Ct,autoFocus:!d},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this),at.jsxDEV(KI,{span:C?We?.span??null:null,track:We?.track??null,onClose:Lt,onOpenChildTrack:St,loadEntry:i,inline:d,onNavigate:p},void 0,!1,void 0,this),c==="full"&&at.jsxDEV(Be,{index:2,title:s("trace.transcript"),description:s("trace.transcript-description"),flush:!0,children:at.jsxDEV(uT,{tracks:me,selection:L,onSelect:ze,search:T,matchIds:ve,traceStart:Ct},void 0,!1,void 0,this)},void 0,!1,void 0,this),c==="full"&&at.jsxDEV(XI,{toolStats:l.summary.toolStats,index:3},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}var ea=Q(ue(),1),cT=200;function _E({models:l}){if(l.length===0)return ea.jsxDEV("span",{className:"dim",children:"-"},void 0,!1,void 0,this);return ea.jsxDEV("span",{className:"traces-models",title:l.join(`
|
|
236
|
+
`),children:[ea.jsxDEV("span",{className:"mono truncate",children:l[0]},void 0,!1,void 0,this),l.length>1&&ea.jsxDEV("span",{className:"badge",children:["+",l.length-1]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)}function dT({active:l,session:c,onOpenSession:i}){let[d,p]=Mi.useState(""),x=Gt(["sessions",cT],({signal:h})=>q1(cT,void 0,h),{pollMs:30000,enabled:l&&c===null}),g=Mi.useMemo(()=>{let h=x.data??[],C=d.trim().toLowerCase();if(!C)return h;return h.filter((w)=>(w.title??"").toLowerCase().includes(C)||w.folder.toLowerCase().includes(C)||w.models.some((T)=>T.toLowerCase().includes(C)))},[x.data,d]),b=Mi.useMemo(()=>Math.max(0,...g.map((h)=>h.costTotal)),[g]),S=Mi.useMemo(()=>[{key:"title",header:s("trace.session"),width:"32%",render:(h)=>ea.jsxDEV(Ga,{primary:h.title??h.file.split("/").pop(),secondary:ea.jsxDEV("span",{className:"mono",children:h.folder.split("/").slice(-2).join("/")},void 0,!1,void 0,this)},void 0,!1,void 0,this),sort:(h)=>(h.title??h.file).toLowerCase()},{key:"models",header:s("common.models"),render:(h)=>ea.jsxDEV(_E,{models:h.models},void 0,!1,void 0,this)},{key:"started",header:s("common.started"),align:"right",render:(h)=>ea.jsxDEV("span",{className:"muted",title:new Date(h.startedAt).toLocaleString(),children:fa(h.startedAt)},void 0,!1,void 0,this),sort:(h)=>h.startedAt},{key:"duration",header:s("common.duration"),align:"right",render:(h)=>ea.jsxDEV("span",{className:"num",children:Js(h.endedAt-h.startedAt)},void 0,!1,void 0,this),sort:(h)=>h.endedAt-h.startedAt},{key:"requests",header:s("common.requests"),align:"right",render:(h)=>ea.jsxDEV("span",{className:"num",children:B(h.requests)},void 0,!1,void 0,this),sort:(h)=>h.requests},{key:"toolCalls",header:s("trace.tools"),align:"right",render:(h)=>ea.jsxDEV("span",{className:"num",children:B(h.toolCalls)},void 0,!1,void 0,this),sort:(h)=>h.toolCalls},{key:"subagents",header:s("trace.agents"),align:"right",render:(h)=>h.subagents>0?ea.jsxDEV("span",{className:"num",children:B(h.subagents)},void 0,!1,void 0,this):ea.jsxDEV("span",{className:"num dim",children:"0"},void 0,!1,void 0,this),sort:(h)=>h.subagents},{key:"tokens",header:s("common.tokens"),align:"right",render:(h)=>ea.jsxDEV("span",{className:"num",children:De(h.totalTokens)},void 0,!1,void 0,this),sort:(h)=>h.totalTokens},{key:"cost",header:s("common.cost"),align:"right",width:150,render:(h)=>ea.jsxDEV(pa,{value:h.costTotal,max:b,display:Ft(h.costTotal,h.unpricedRequests)},void 0,!1,void 0,this),sort:(h)=>h.costTotal}],[b]);if(c!==null)return ea.jsxDEV(iT,{file:c,active:l,onBack:()=>i(null)},void 0,!1,void 0,this);let L=x.data?.length??0;return ea.jsxDEV("div",{className:"stack traces-page",children:[ea.jsxDEV(ua,{title:s("trace.title"),description:s("trace.description")},void 0,!1,void 0,this),ea.jsxDEV(Be,{title:s("trace.sessions"),description:x.data?d.trim()?s("trace.most-recent-filtered",{shown:B(g.length),total:B(L)}):s("trace.most-recent",{count:B(L)}):void 0,actions:ea.jsxDEV(pn,{value:d,onChange:p,placeholder:s("trace.filter-placeholder"),width:260},void 0,!1,void 0,this),flush:!0,index:0,stale:x.stale,children:ea.jsxDEV(_e,{query:x,skeleton:ea.jsxDEV(ra,{rows:10},void 0,!1,void 0,this),isEmpty:(h)=>h.length===0,empty:ea.jsxDEV(gt,{title:s("trace.empty-title"),hint:s("trace.empty-hint")},void 0,!1,void 0,this),children:()=>ea.jsxDEV(Ht,{columns:S,rows:g,rowKey:(h)=>h.file,onRowClick:(h)=>i(h.file),initialSort:{key:"started",dir:"desc"},limit:50,empty:ea.jsxDEV(gt,{title:s("trace.no-matching-title"),hint:s("trace.no-matching-hint")},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}var Ea=Q(ue(),1);function Ib(){return Ea.jsxDEV(_1,{children:Ea.jsxDEV(HE,{},void 0,!1,void 0,this)},void 0,!1,void 0,this)}function HE(){Ql();let{section:l,setSection:c,range:i,setRange:d,session:p,setSession:x}=nI(),[g,b]=Di.useState(null),S=Di.useCallback(()=>b(null),[]),L=Di.useRef(new Set);L.current.add(l);let h=(C)=>{let w=C===l;switch(C){case"overview":return Ea.jsxDEV(BI,{active:w,range:i,onRequestClick:b},void 0,!1,void 0,this);case"requests":return Ea.jsxDEV(GI,{active:w,range:i,onRequestClick:b},void 0,!1,void 0,this);case"errors":return Ea.jsxDEV(kI,{active:w,range:i,onRequestClick:b},void 0,!1,void 0,this);case"traces":return Ea.jsxDEV(dT,{active:w,session:p,onOpenSession:x},void 0,!1,void 0,this);case"models":return Ea.jsxDEV(EI,{active:w,range:i},void 0,!1,void 0,this);case"providers":return Ea.jsxDEV(HI,{active:w,range:i},void 0,!1,void 0,this);case"costs":return Ea.jsxDEV(CI,{active:w,range:i},void 0,!1,void 0,this);case"tools":return Ea.jsxDEV(jI,{active:w,range:i},void 0,!1,void 0,this);case"frustration":return Ea.jsxDEV(TI,{active:w,range:i},void 0,!1,void 0,this);case"projects":return Ea.jsxDEV(UI,{active:w,range:i},void 0,!1,void 0,this);case"gain":return Ea.jsxDEV(MI,{active:w,range:i},void 0,!1,void 0,this)}};return Ea.jsxDEV(Ea.Fragment,{children:[Ea.jsxDEV(rI,{section:l,onSectionChange:c,range:i,onRangeChange:d,children:[...L.current].map((C)=>Ea.jsxDEV("div",{hidden:C!==l,children:h(C)},C,!1,void 0,this))},void 0,!1,void 0,this),Ea.jsxDEV(FI,{id:g,onClose:S},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}var mT=Q(ue(),1),pT=document.getElementById("root");if(!pT)throw Error("missing #root");fT.createRoot(pT).render(mT.jsxDEV(Ib,{},void 0,!1,void 0,this));
|