@linxiraos/pi-stats 1.4.13 → 1.5.0

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.
Files changed (32) hide show
  1. package/CHANGELOG.md +10 -5
  2. package/dist/client/index.js +86 -86
  3. package/dist/types/client/data/formatters.d.ts +9 -0
  4. package/dist/types/client/i18n/messages/common.d.ts +2 -2
  5. package/dist/types/client/i18n/messages/en.d.ts +2 -2
  6. package/dist/types/client/i18n/messages/models.d.ts +2 -2
  7. package/dist/types/client/i18n/messages/overview.d.ts +1 -1
  8. package/dist/types/client/ui/RequestDrawer.d.ts +2 -2
  9. package/dist/types/server.d.ts +3 -1
  10. package/dist/types/shared-types.d.ts +4 -3
  11. package/dist/types/trace.d.ts +8 -5
  12. package/package.json +4 -4
  13. package/src/client/data/formatters.ts +47 -6
  14. package/src/client/i18n/messages/common.ts +2 -2
  15. package/src/client/i18n/messages/models.ts +2 -2
  16. package/src/client/i18n/messages/overview.ts +1 -1
  17. package/src/client/routes/CostsRoute.tsx +24 -28
  18. package/src/client/routes/ErrorsRoute.tsx +57 -55
  19. package/src/client/routes/GainRoute.tsx +54 -54
  20. package/src/client/routes/ModelsRoute.tsx +7 -5
  21. package/src/client/routes/OverviewRoute.tsx +73 -62
  22. package/src/client/routes/ProvidersRoute.tsx +188 -176
  23. package/src/client/routes/RequestsRoute.tsx +98 -96
  24. package/src/client/routes/ToolsRoute.tsx +11 -10
  25. package/src/client/routes/TracesRoute.tsx +2 -1
  26. package/src/client/traces/SpanDrawer.tsx +2 -2
  27. package/src/client/traces/TimelineCanvas.tsx +16 -12
  28. package/src/client/traces/TraceView.tsx +18 -14
  29. package/src/client/ui/RequestDrawer.tsx +16 -6
  30. package/src/server.ts +7 -3
  31. package/src/shared-types.ts +4 -3
  32. package/src/trace.ts +43 -13
@@ -1,4 +1,4 @@
1
- var iE=Object.create;var{getPrototypeOf:uE,defineProperty:L1,getOwnPropertyNames:dE}=Object;var C1=Object.prototype.hasOwnProperty;function cE(r){return this[r]}var fE,pE,_=(r,i,l)=>{var c=r!=null&&typeof r==="object";if(c){var f=i?fE??=new WeakMap:pE??=new WeakMap,y=f.get(r);if(y)return y}l=r!=null?iE(uE(r)):{};let g=i||!r||!r.__esModule||!C1.call(r,"default")?L1(l,"default",{value:r,enumerable:!0}):l;if(r&&typeof r==="object"||typeof r==="function"){for(let v of dE(r))if(!C1.call(g,v))L1(g,v,{get:cE.bind(r,v),enumerable:!0})}if(c)f.set(r,g);return g};var Ii=(r,i)=>()=>(i||r((i={exports:{}}).exports,i),i.exports);var w1=Ii(function(Yu){(function(){function r(){if(K=!1,ee){var re=Yu.unstable_now();Le=re;var xe=!0;try{e:{P=!1,V&&(V=!1,W(H),H=-1),N=!0;var Ae=R;try{t:{y(re);for(I=l(C);I!==null&&!(I.expirationTime>re&&v());){var Je=I.callback;if(typeof Je==="function"){I.callback=null,R=I.priorityLevel;var ht=Je(I.expirationTime<=re);if(re=Yu.unstable_now(),typeof ht==="function"){I.callback=ht,y(re),xe=!0;break t}I===l(C)&&c(C),y(re)}else c(C);I=l(C)}if(I!==null)xe=!0;else{var Z=l(T);Z!==null&&h(g,Z.startTime-re),xe=!1}}break e}finally{I=null,R=Ae,N=!1}xe=void 0}}finally{xe?me():ee=!1}}}function i(re,xe){var Ae=re.length;re.push(xe);e:for(;0<Ae;){var Je=Ae-1>>>1,ht=re[Je];if(0<f(ht,xe))re[Je]=xe,re[Ae]=ht,Ae=Je;else break e}}function l(re){return re.length===0?null:re[0]}function c(re){if(re.length===0)return null;var xe=re[0],Ae=re.pop();if(Ae!==xe){re[0]=Ae;e:for(var Je=0,ht=re.length,Z=ht>>>1;Je<Z;){var He=2*(Je+1)-1,Ct=re[He],wt=He+1,he=re[wt];if(0>f(Ct,Ae))wt<ht&&0>f(he,Ct)?(re[Je]=he,re[wt]=Ae,Je=wt):(re[Je]=Ct,re[He]=Ae,Je=He);else if(wt<ht&&0>f(he,Ae))re[Je]=he,re[wt]=Ae,Je=wt;else break e}}return xe}function f(re,xe){var Ae=re.sortIndex-xe.sortIndex;return Ae!==0?Ae:re.id-xe.id}function y(re){for(var xe=l(T);xe!==null;){if(xe.callback===null)c(T);else if(xe.startTime<=re)c(T),xe.sortIndex=xe.expirationTime,i(C,xe);else break;xe=l(T)}}function g(re){if(V=!1,y(re),!P)if(l(C)!==null)P=!0,ee||(ee=!0,me());else{var xe=l(T);xe!==null&&h(g,xe.startTime-re)}}function v(){return K?!0:Yu.unstable_now()-Le<X?!1:!0}function h(re,xe){H=de(function(){re(Yu.unstable_now())},xe)}if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart==="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error()),Yu.unstable_now=void 0,typeof performance==="object"&&typeof performance.now==="function"){var x=performance;Yu.unstable_now=function(){return x.now()}}else{var m=Date,S=m.now();Yu.unstable_now=function(){return m.now()-S}}var C=[],T=[],w=1,I=null,R=3,N=!1,P=!1,V=!1,K=!1,de=typeof setTimeout==="function"?setTimeout:null,W=typeof clearTimeout==="function"?clearTimeout:null,fe=typeof setImmediate<"u"?setImmediate:null,ee=!1,H=-1,X=5,Le=-1;if(typeof fe==="function")var me=function(){fe(r)};else if(typeof MessageChannel<"u"){var Oe=new MessageChannel,we=Oe.port2;Oe.port1.onmessage=r,me=function(){we.postMessage(null)}}else me=function(){de(r,0)};Yu.unstable_IdlePriority=5,Yu.unstable_ImmediatePriority=1,Yu.unstable_LowPriority=4,Yu.unstable_NormalPriority=3,Yu.unstable_Profiling=null,Yu.unstable_UserBlockingPriority=2,Yu.unstable_cancelCallback=function(re){re.callback=null},Yu.unstable_forceFrameRate=function(re){0>re||125<re?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):X=0<re?Math.floor(1000/re):5},Yu.unstable_getCurrentPriorityLevel=function(){return R},Yu.unstable_next=function(re){switch(R){case 1:case 2:case 3:var xe=3;break;default:xe=R}var Ae=R;R=xe;try{return re()}finally{R=Ae}},Yu.unstable_requestPaint=function(){K=!0},Yu.unstable_runWithPriority=function(re,xe){switch(re){case 1:case 2:case 3:case 4:case 5:break;default:re=3}var Ae=R;R=re;try{return xe()}finally{R=Ae}},Yu.unstable_scheduleCallback=function(re,xe,Ae){var Je=Yu.unstable_now();switch(typeof Ae==="object"&&Ae!==null?(Ae=Ae.delay,Ae=typeof Ae==="number"&&0<Ae?Je+Ae:Je):Ae=Je,re){case 1:var ht=-1;break;case 2:ht=250;break;case 5:ht=1073741823;break;case 4:ht=1e4;break;default:ht=5000}return ht=Ae+ht,re={id:w++,callback:xe,priorityLevel:re,startTime:Ae,expirationTime:ht,sortIndex:-1},Ae>Je?(re.sortIndex=Ae,i(T,re),l(C)===null&&re===l(T)&&(V?(W(H),H=-1):V=!0,h(g,Ae-Je))):(re.sortIndex=ht,i(C,re),P||N||(P=!0,ee||(ee=!0,me()))),re},Yu.unstable_shouldYield=v,Yu.unstable_wrapCallback=function(re){var xe=R;return function(){var Ae=R;R=xe;try{return re.apply(this,arguments)}finally{R=Ae}}},typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop==="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()});var Qe=Ii(function(mE,ph){(function(){function r(L,U){Object.defineProperty(c.prototype,L,{get:function(){console.warn("%s(...) is deprecated in plain JavaScript React classes. %s",U[0],U[1])}})}function i(L){if(L===null||typeof L!=="object")return null;return L=te&&L[te]||L["@@iterator"],typeof L==="function"?L:null}function l(L,U){L=(L=L.constructor)&&(L.displayName||L.name)||"ReactClass";var ie=L+"."+U;Q[ie]||(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.",U,L),Q[ie]=!0)}function c(L,U,ie){this.props=L,this.context=U,this.refs=lt,this.updater=ie||ke}function f(){}function y(L,U,ie){this.props=L,this.context=U,this.refs=lt,this.updater=ie||ke}function g(){}function v(L){return""+L}function h(L){try{v(L);var U=!1}catch(Re){U=!0}if(U){U=console;var ie=U.error,ye=typeof Symbol==="function"&&Symbol.toStringTag&&L[Symbol.toStringTag]||L.constructor.name||"Object";return ie.call(U,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",ye),v(L)}}function x(L){if(L==null)return null;if(typeof L==="function")return L.$$typeof===va?null:L.displayName||L.name||null;if(typeof L==="string")return L;switch(L){case ht:return"Fragment";case He:return"Profiler";case Z:return"StrictMode";case Ye:return"Suspense";case Fe:return"SuspenseList";case G:return"Activity"}if(typeof L==="object")switch(typeof L.tag==="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),L.$$typeof){case Je:return"Portal";case wt:return L.displayName||"Context";case Ct:return(L._context.displayName||"Context")+".Consumer";case he:var U=L.render;return L=L.displayName,L||(L=U.displayName||U.name||"",L=L!==""?"ForwardRef("+L+")":"ForwardRef"),L;case ua:return U=L.displayName||null,U!==null?U:x(L.type)||"Memo";case na:U=L._payload,L=L._init;try{return x(L(U))}catch(ie){}}return null}function m(L){if(L===ht)return"<>";if(typeof L==="object"&&L!==null&&L.$$typeof===na)return"<...>";try{var U=x(L);return U?"<"+U+">":"<...>"}catch(ie){return"<...>"}}function S(){var L=Ne.A;return L===null?null:L.getOwner()}function C(){return Error("react-stack-top-frame")}function T(L){if(Pr.call(L,"key")){var U=Object.getOwnPropertyDescriptor(L,"key").get;if(U&&U.isReactWarning)return!1}return L.key!==void 0}function w(L,U){function ie(){Vi||(Vi=!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)",U))}ie.isReactWarning=!0,Object.defineProperty(L,"key",{get:ie,configurable:!0})}function I(){var L=x(this.type);return da[L]||(da[L]=!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.")),L=this.props.ref,L!==void 0?L:null}function R(L,U,ie,ye,Re,at){var ot=ie.ref;return L={$$typeof:Ae,type:L,key:U,props:ie,_owner:ye},(ot!==void 0?ot:null)!==null?Object.defineProperty(L,"ref",{enumerable:!1,get:I}):Object.defineProperty(L,"ref",{enumerable:!1,value:null}),L._store={},Object.defineProperty(L._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(L,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(L,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:Re}),Object.defineProperty(L,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:at}),Object.freeze&&(Object.freeze(L.props),Object.freeze(L)),L}function N(L,U){return U=R(L.type,U,L.props,L._owner,L._debugStack,L._debugTask),L._store&&(U._store.validated=L._store.validated),U}function P(L){V(L)?L._store&&(L._store.validated=1):typeof L==="object"&&L!==null&&L.$$typeof===na&&(L._payload.status==="fulfilled"?V(L._payload.value)&&L._payload.value._store&&(L._payload.value._store.validated=1):L._store&&(L._store.validated=1))}function V(L){return typeof L==="object"&&L!==null&&L.$$typeof===Ae}function K(L){var U={"=":"=0",":":"=2"};return"$"+L.replace(/[=:]/g,function(ie){return U[ie]})}function de(L,U){return typeof L==="object"&&L!==null&&L.key!=null?(h(L.key),K(""+L.key)):U.toString(36)}function W(L){switch(L.status){case"fulfilled":return L.value;case"rejected":throw L.reason;default:switch(typeof L.status==="string"?L.then(g,g):(L.status="pending",L.then(function(U){L.status==="pending"&&(L.status="fulfilled",L.value=U)},function(U){L.status==="pending"&&(L.status="rejected",L.reason=U)})),L.status){case"fulfilled":return L.value;case"rejected":throw L.reason}}throw L}function fe(L,U,ie,ye,Re){var at=typeof L;if(at==="undefined"||at==="boolean")L=null;var ot=!1;if(L===null)ot=!0;else switch(at){case"bigint":case"string":case"number":ot=!0;break;case"object":switch(L.$$typeof){case Ae:case Je:ot=!0;break;case na:return ot=L._init,fe(ot(L._payload),U,ie,ye,Re)}}if(ot){ot=L,Re=Re(ot);var zt=ye===""?"."+de(ot,0):ye;return Te(Re)?(ie="",zt!=null&&(ie=zt.replace($i,"$&/")+"/"),fe(Re,U,ie,"",function(bo){return bo})):Re!=null&&(V(Re)&&(Re.key!=null&&(ot&&ot.key===Re.key||h(Re.key)),ie=N(Re,ie+(Re.key==null||ot&&ot.key===Re.key?"":(""+Re.key).replace($i,"$&/")+"/")+zt),ye!==""&&ot!=null&&V(ot)&&ot.key==null&&ot._store&&!ot._store.validated&&(ie._store.validated=2),Re=ie),U.push(Re)),1}if(ot=0,zt=ye===""?".":ye+":",Te(L))for(var ze=0;ze<L.length;ze++)ye=L[ze],at=zt+de(ye,ze),ot+=fe(ye,U,ie,at,Re);else if(ze=i(L),typeof ze==="function")for(ze===L.entries&&(ji||console.warn("Using Maps as children is not supported. Use an array of keyed ReactElements instead."),ji=!0),L=ze.call(L),ze=0;!(ye=L.next()).done;)ye=ye.value,at=zt+de(ye,ze++),ot+=fe(ye,U,ie,at,Re);else if(at==="object"){if(typeof L.then==="function")return fe(W(L),U,ie,ye,Re);throw U=String(L),Error("Objects are not valid as a React child (found: "+(U==="[object Object]"?"object with keys {"+Object.keys(L).join(", ")+"}":U)+"). If you meant to render a collection of children, use an array instead.")}return ot}function ee(L,U,ie){if(L==null)return L;var ye=[],Re=0;return fe(L,ye,"","",function(at){return U.call(ie,at,Re++)}),ye}function H(L){if(L._status===-1){var U=L._ioInfo;U!=null&&(U.start=U.end=performance.now()),U=L._result;var ie=U();if(ie.then(function(Re){if(L._status===0||L._status===-1){L._status=1,L._result=Re;var at=L._ioInfo;at!=null&&(at.end=performance.now()),ie.status===void 0&&(ie.status="fulfilled",ie.value=Re)}},function(Re){if(L._status===0||L._status===-1){L._status=2,L._result=Re;var at=L._ioInfo;at!=null&&(at.end=performance.now()),ie.status===void 0&&(ie.status="rejected",ie.reason=Re)}}),U=L._ioInfo,U!=null){U.value=ie;var ye=ie.displayName;typeof ye==="string"&&(U.name=ye)}L._status===-1&&(L._status=0,L._result=ie)}if(L._status===1)return U=L._result,U===void 0&&console.error(`lazy: Expected the result of a dynamic import() call. Instead received: %s
1
+ var dE=Object.create;var{getPrototypeOf:cE,defineProperty:L1,getOwnPropertyNames:fE}=Object;var C1=Object.prototype.hasOwnProperty;function pE(n){return this[n]}var mE,hE,_=(n,i,l)=>{var c=n!=null&&typeof n==="object";if(c){var f=i?mE??=new WeakMap:hE??=new WeakMap,y=f.get(n);if(y)return y}l=n!=null?dE(cE(n)):{};let g=i||!n||!n.__esModule||!C1.call(n,"default")?L1(l,"default",{value:n,enumerable:!0}):l;if(n&&typeof n==="object"||typeof n==="function"){for(let v of fE(n))if(!C1.call(g,v))L1(g,v,{get:pE.bind(n,v),enumerable:!0})}if(c)f.set(n,g);return g};var Ii=(n,i)=>()=>(i||n((i={exports:{}}).exports,i),i.exports);var w1=Ii(function(Yu){(function(){function n(){if(Q=!1,ee){var oe=Yu.unstable_now();Ie=oe;var Se=!0;try{e:{P=!1,j&&(j=!1,Z(G),G=-1),O=!0;var Ae=R;try{t:{y(oe);for(T=l(C);T!==null&&!(T.expirationTime>oe&&v());){var Ye=T.callback;if(typeof Ye==="function"){T.callback=null,R=T.priorityLevel;var ht=Ye(T.expirationTime<=oe);if(oe=Yu.unstable_now(),typeof ht==="function"){T.callback=ht,y(oe),Se=!0;break t}T===l(C)&&c(C),y(oe)}else c(C);T=l(C)}if(T!==null)Se=!0;else{var W=l(I);W!==null&&h(g,W.startTime-oe),Se=!1}}break e}finally{T=null,R=Ae,O=!1}Se=void 0}}finally{Se?fe():ee=!1}}}function i(oe,Se){var Ae=oe.length;oe.push(Se);e:for(;0<Ae;){var Ye=Ae-1>>>1,ht=oe[Ye];if(0<f(ht,Se))oe[Ye]=Se,oe[Ae]=ht,Ae=Ye;else break e}}function l(oe){return oe.length===0?null:oe[0]}function c(oe){if(oe.length===0)return null;var Se=oe[0],Ae=oe.pop();if(Ae!==Se){oe[0]=Ae;e:for(var Ye=0,ht=oe.length,W=ht>>>1;Ye<W;){var He=2*(Ye+1)-1,Tt=oe[He],xt=He+1,ge=oe[xt];if(0>f(Tt,Ae))xt<ht&&0>f(ge,Tt)?(oe[Ye]=ge,oe[xt]=Ae,Ye=xt):(oe[Ye]=Tt,oe[He]=Ae,Ye=He);else if(xt<ht&&0>f(ge,Ae))oe[Ye]=ge,oe[xt]=Ae,Ye=xt;else break e}}return Se}function f(oe,Se){var Ae=oe.sortIndex-Se.sortIndex;return Ae!==0?Ae:oe.id-Se.id}function y(oe){for(var Se=l(I);Se!==null;){if(Se.callback===null)c(I);else if(Se.startTime<=oe)c(I),Se.sortIndex=Se.expirationTime,i(C,Se);else break;Se=l(I)}}function g(oe){if(j=!1,y(oe),!P)if(l(C)!==null)P=!0,ee||(ee=!0,fe());else{var Se=l(I);Se!==null&&h(g,Se.startTime-oe)}}function v(){return Q?!0:Yu.unstable_now()-Ie<V?!1:!0}function h(oe,Se){G=ue(function(){oe(Yu.unstable_now())},Se)}if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart==="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error()),Yu.unstable_now=void 0,typeof performance==="object"&&typeof performance.now==="function"){var x=performance;Yu.unstable_now=function(){return x.now()}}else{var m=Date,S=m.now();Yu.unstable_now=function(){return m.now()-S}}var C=[],I=[],w=1,T=null,R=3,O=!1,P=!1,j=!1,Q=!1,ue=typeof setTimeout==="function"?setTimeout:null,Z=typeof clearTimeout==="function"?clearTimeout:null,ce=typeof setImmediate<"u"?setImmediate:null,ee=!1,G=-1,V=5,Ie=-1;if(typeof ce==="function")var fe=function(){ce(n)};else if(typeof MessageChannel<"u"){var Ee=new MessageChannel,we=Ee.port2;Ee.port1.onmessage=n,fe=function(){we.postMessage(null)}}else fe=function(){ue(n,0)};Yu.unstable_IdlePriority=5,Yu.unstable_ImmediatePriority=1,Yu.unstable_LowPriority=4,Yu.unstable_NormalPriority=3,Yu.unstable_Profiling=null,Yu.unstable_UserBlockingPriority=2,Yu.unstable_cancelCallback=function(oe){oe.callback=null},Yu.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},Yu.unstable_getCurrentPriorityLevel=function(){return R},Yu.unstable_next=function(oe){switch(R){case 1:case 2:case 3:var Se=3;break;default:Se=R}var Ae=R;R=Se;try{return oe()}finally{R=Ae}},Yu.unstable_requestPaint=function(){Q=!0},Yu.unstable_runWithPriority=function(oe,Se){switch(oe){case 1:case 2:case 3:case 4:case 5:break;default:oe=3}var Ae=R;R=oe;try{return Se()}finally{R=Ae}},Yu.unstable_scheduleCallback=function(oe,Se,Ae){var Ye=Yu.unstable_now();switch(typeof Ae==="object"&&Ae!==null?(Ae=Ae.delay,Ae=typeof Ae==="number"&&0<Ae?Ye+Ae:Ye):Ae=Ye,oe){case 1:var ht=-1;break;case 2:ht=250;break;case 5:ht=1073741823;break;case 4:ht=1e4;break;default:ht=5000}return ht=Ae+ht,oe={id:w++,callback:Se,priorityLevel:oe,startTime:Ae,expirationTime:ht,sortIndex:-1},Ae>Ye?(oe.sortIndex=Ae,i(I,oe),l(C)===null&&oe===l(I)&&(j?(Z(G),G=-1):j=!0,h(g,Ae-Ye))):(oe.sortIndex=ht,i(C,oe),P||O||(P=!0,ee||(ee=!0,fe()))),oe},Yu.unstable_shouldYield=v,Yu.unstable_wrapCallback=function(oe){var Se=R;return function(){var Ae=R;R=Se;try{return oe.apply(this,arguments)}finally{R=Ae}}},typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop==="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()});var We=Ii(function(gE,gh){(function(){function n(L,U){Object.defineProperty(c.prototype,L,{get:function(){console.warn("%s(...) is deprecated in plain JavaScript React classes. %s",U[0],U[1])}})}function i(L){if(L===null||typeof L!=="object")return null;return L=Ke&&L[Ke]||L["@@iterator"],typeof L==="function"?L:null}function l(L,U){L=(L=L.constructor)&&(L.displayName||L.name)||"ReactClass";var le=L+"."+U;H[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.",U,L),H[le]=!0)}function c(L,U,le){this.props=L,this.context=U,this.refs=st,this.updater=le||Ce}function f(){}function y(L,U,le){this.props=L,this.context=U,this.refs=st,this.updater=le||Ce}function g(){}function v(L){return""+L}function h(L){try{v(L);var U=!1}catch(Re){U=!0}if(U){U=console;var le=U.error,ye=typeof Symbol==="function"&&Symbol.toStringTag&&L[Symbol.toStringTag]||L.constructor.name||"Object";return le.call(U,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",ye),v(L)}}function x(L){if(L==null)return null;if(typeof L==="function")return L.$$typeof===Xt?null:L.displayName||L.name||null;if(typeof L==="string")return L;switch(L){case ht:return"Fragment";case He:return"Profiler";case W:return"StrictMode";case Xe:return"Suspense";case Ue:return"SuspenseList";case X:return"Activity"}if(typeof L==="object")switch(typeof L.tag==="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),L.$$typeof){case Ye:return"Portal";case xt:return L.displayName||"Context";case Tt:return(L._context.displayName||"Context")+".Consumer";case ge:var U=L.render;return L=L.displayName,L||(L=U.displayName||U.name||"",L=L!==""?"ForwardRef("+L+")":"ForwardRef"),L;case sa:return U=L.displayName||null,U!==null?U:x(L.type)||"Memo";case la:U=L._payload,L=L._init;try{return x(L(U))}catch(le){}}return null}function m(L){if(L===ht)return"<>";if(typeof L==="object"&&L!==null&&L.$$typeof===la)return"<...>";try{var U=x(L);return U?"<"+U+">":"<...>"}catch(le){return"<...>"}}function S(){var L=Ne.A;return L===null?null:L.getOwner()}function C(){return Error("react-stack-top-frame")}function I(L){if(Aa.call(L,"key")){var U=Object.getOwnPropertyDescriptor(L,"key").get;if(U&&U.isReactWarning)return!1}return L.key!==void 0}function w(L,U){function le(){Vi||(Vi=!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)",U))}le.isReactWarning=!0,Object.defineProperty(L,"key",{get:le,configurable:!0})}function T(){var L=x(this.type);return ca[L]||(ca[L]=!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.")),L=this.props.ref,L!==void 0?L:null}function R(L,U,le,ye,Re,at){var ot=le.ref;return L={$$typeof:Ae,type:L,key:U,props:le,_owner:ye},(ot!==void 0?ot:null)!==null?Object.defineProperty(L,"ref",{enumerable:!1,get:T}):Object.defineProperty(L,"ref",{enumerable:!1,value:null}),L._store={},Object.defineProperty(L._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(L,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(L,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:Re}),Object.defineProperty(L,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:at}),Object.freeze&&(Object.freeze(L.props),Object.freeze(L)),L}function O(L,U){return U=R(L.type,U,L.props,L._owner,L._debugStack,L._debugTask),L._store&&(U._store.validated=L._store.validated),U}function P(L){j(L)?L._store&&(L._store.validated=1):typeof L==="object"&&L!==null&&L.$$typeof===la&&(L._payload.status==="fulfilled"?j(L._payload.value)&&L._payload.value._store&&(L._payload.value._store.validated=1):L._store&&(L._store.validated=1))}function j(L){return typeof L==="object"&&L!==null&&L.$$typeof===Ae}function Q(L){var U={"=":"=0",":":"=2"};return"$"+L.replace(/[=:]/g,function(le){return U[le]})}function ue(L,U){return typeof L==="object"&&L!==null&&L.key!=null?(h(L.key),Q(""+L.key)):U.toString(36)}function Z(L){switch(L.status){case"fulfilled":return L.value;case"rejected":throw L.reason;default:switch(typeof L.status==="string"?L.then(g,g):(L.status="pending",L.then(function(U){L.status==="pending"&&(L.status="fulfilled",L.value=U)},function(U){L.status==="pending"&&(L.status="rejected",L.reason=U)})),L.status){case"fulfilled":return L.value;case"rejected":throw L.reason}}throw L}function ce(L,U,le,ye,Re){var at=typeof L;if(at==="undefined"||at==="boolean")L=null;var ot=!1;if(L===null)ot=!0;else switch(at){case"bigint":case"string":case"number":ot=!0;break;case"object":switch(L.$$typeof){case Ae:case Ye:ot=!0;break;case la:return ot=L._init,ce(ot(L._payload),U,le,ye,Re)}}if(ot){ot=L,Re=Re(ot);var zt=ye===""?"."+ue(ot,0):ye;return ke(Re)?(le="",zt!=null&&(le=zt.replace($i,"$&/")+"/"),ce(Re,U,le,"",function(So){return So})):Re!=null&&(j(Re)&&(Re.key!=null&&(ot&&ot.key===Re.key||h(Re.key)),le=O(Re,le+(Re.key==null||ot&&ot.key===Re.key?"":(""+Re.key).replace($i,"$&/")+"/")+zt),ye!==""&&ot!=null&&j(ot)&&ot.key==null&&ot._store&&!ot._store.validated&&(le._store.validated=2),Re=le),U.push(Re)),1}if(ot=0,zt=ye===""?".":ye+":",ke(L))for(var ze=0;ze<L.length;ze++)ye=L[ze],at=zt+ue(ye,ze),ot+=ce(ye,U,le,at,Re);else if(ze=i(L),typeof ze==="function")for(ze===L.entries&&(ji||console.warn("Using Maps as children is not supported. Use an array of keyed ReactElements instead."),ji=!0),L=ze.call(L),ze=0;!(ye=L.next()).done;)ye=ye.value,at=zt+ue(ye,ze++),ot+=ce(ye,U,le,at,Re);else if(at==="object"){if(typeof L.then==="function")return ce(Z(L),U,le,ye,Re);throw U=String(L),Error("Objects are not valid as a React child (found: "+(U==="[object Object]"?"object with keys {"+Object.keys(L).join(", ")+"}":U)+"). If you meant to render a collection of children, use an array instead.")}return ot}function ee(L,U,le){if(L==null)return L;var ye=[],Re=0;return ce(L,ye,"","",function(at){return U.call(le,at,Re++)}),ye}function G(L){if(L._status===-1){var U=L._ioInfo;U!=null&&(U.start=U.end=performance.now()),U=L._result;var le=U();if(le.then(function(Re){if(L._status===0||L._status===-1){L._status=1,L._result=Re;var at=L._ioInfo;at!=null&&(at.end=performance.now()),le.status===void 0&&(le.status="fulfilled",le.value=Re)}},function(Re){if(L._status===0||L._status===-1){L._status=2,L._result=Re;var at=L._ioInfo;at!=null&&(at.end=performance.now()),le.status===void 0&&(le.status="rejected",le.reason=Re)}}),U=L._ioInfo,U!=null){U.value=le;var ye=le.displayName;typeof ye==="string"&&(U.name=ye)}L._status===-1&&(L._status=0,L._result=le)}if(L._status===1)return U=L._result,U===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?`,U),"default"in U||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'))`,U),U.default;throw L._result}function X(){var L=Ne.H;return L===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:
9
+ const MyComponent = lazy(() => import('./MyComponent'))`,U),U.default;throw L._result}function V(){var L=Ne.H;return L===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.`),L}function Le(){Ne.asyncTransitions--}function me(L){if(Ul===null)try{var U=("require"+Math.random()).slice(0,7);Ul=(ph&&ph[U]).call(ph,"timers").setImmediate}catch(ie){Ul=function(ye){Zf===!1&&(Zf=!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 Re=new MessageChannel;Re.port1.onmessage=ye,Re.port2.postMessage(void 0)}}return Ul(L)}function Oe(L){return 1<L.length&&typeof AggregateError==="function"?AggregateError(L):L[0]}function we(L,U){U!==_l-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. "),_l=U}function re(L,U,ie){var ye=Ne.actQueue;if(ye!==null)if(ye.length!==0)try{xe(ye),me(function(){return re(L,U,ie)});return}catch(Re){Ne.thrownErrors.push(Re)}else Ne.actQueue=null;0<Ne.thrownErrors.length?(ye=Oe(Ne.thrownErrors),Ne.thrownErrors.length=0,ie(ye)):U(L)}function xe(L){if(!Fl){Fl=!0;var U=0;try{for(;U<L.length;U++){var ie=L[U];do{Ne.didUsePromise=!1;var ye=ie(!1);if(ye!==null){if(Ne.didUsePromise){L[U]=ie,L.splice(0,U);return}ie=ye}else break}while(1)}L.length=0}catch(Re){L.splice(0,U+1),Ne.thrownErrors.push(Re)}finally{Fl=!1}}}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart==="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var Ae=Symbol.for("react.transitional.element"),Je=Symbol.for("react.portal"),ht=Symbol.for("react.fragment"),Z=Symbol.for("react.strict_mode"),He=Symbol.for("react.profiler"),Ct=Symbol.for("react.consumer"),wt=Symbol.for("react.context"),he=Symbol.for("react.forward_ref"),Ye=Symbol.for("react.suspense"),Fe=Symbol.for("react.suspense_list"),ua=Symbol.for("react.memo"),na=Symbol.for("react.lazy"),G=Symbol.for("react.activity"),te=Symbol.iterator,Q={},ke={isMounted:function(){return!1},enqueueForceUpdate:function(L){l(L,"forceUpdate")},enqueueReplaceState:function(L){l(L,"replaceState")},enqueueSetState:function(L){l(L,"setState")}},De=Object.assign,lt={};Object.freeze(lt),c.prototype.isReactComponent={},c.prototype.setState=function(L,U){if(typeof L!=="object"&&typeof L!=="function"&&L!=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,L,U,"setState")},c.prototype.forceUpdate=function(L){this.updater.enqueueForceUpdate(this,L,"forceUpdate")};var Ue={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(Ns in Ue)Ue.hasOwnProperty(Ns)&&r(Ns,Ue[Ns]);f.prototype=c.prototype,Ue=y.prototype=new f,Ue.constructor=y,De(Ue,c.prototype),Ue.isPureReactComponent=!0;var Te=Array.isArray,va=Symbol.for("react.client.reference"),Ne={H:null,A:null,T:null,S:null,actQueue:null,asyncTransitions:0,isBatchingLegacy:!1,didScheduleLegacyUpdate:!1,didUsePromise:!1,thrownErrors:[],getCurrentStack:null,recentlyCreatedOwnerStacks:0},Pr=Object.prototype.hasOwnProperty,Xt=console.createTask?console.createTask:function(){return null};Ue={react_stack_bottom_frame:function(L){return L()}};var Vi,qt,da={},co=Ue.react_stack_bottom_frame.bind(Ue,C)(),Pl=Xt(m(C)),ji=!1,$i=/\/+/g,Es=typeof reportError==="function"?reportError:function(L){if(typeof window==="object"&&typeof window.ErrorEvent==="function"){var U=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof L==="object"&&L!==null&&typeof L.message==="string"?String(L.message):String(L),error:L});if(!window.dispatchEvent(U))return}else if(typeof process==="object"&&typeof process.emit==="function"){process.emit("uncaughtException",L);return}console.error(L)},Zf=!1,Ul=null,_l=0,Hl=!1,Fl=!1,yd=typeof queueMicrotask==="function"?function(L){queueMicrotask(function(){return queueMicrotask(L)})}:me;Ue=Object.freeze({__proto__:null,c:function(L){return X().useMemoCache(L)}});var Ns={map:ee,forEach:function(L,U,ie){ee(L,function(){U.apply(this,arguments)},ie)},count:function(L){var U=0;return ee(L,function(){U++}),U},toArray:function(L){return ee(L,function(U){return U})||[]},only:function(L){if(!V(L))throw Error("React.Children.only expected to receive a single React element child.");return L}};mE.Activity=G,mE.Children=Ns,mE.Component=c,mE.Fragment=ht,mE.Profiler=He,mE.PureComponent=y,mE.StrictMode=Z,mE.Suspense=Ye,mE.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=Ne,mE.__COMPILER_RUNTIME=Ue,mE.act=function(L){var U=Ne.actQueue,ie=_l;_l++;var ye=Ne.actQueue=U!==null?U:[],Re=!1;try{var at=L()}catch(ze){Ne.thrownErrors.push(ze)}if(0<Ne.thrownErrors.length)throw we(U,ie),L=Oe(Ne.thrownErrors),Ne.thrownErrors.length=0,L;if(at!==null&&typeof at==="object"&&typeof at.then==="function"){var ot=at;return yd(function(){Re||Hl||(Hl=!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(ze,bo){Re=!0,ot.then(function(Ko){if(we(U,ie),ie===0){try{xe(ye),me(function(){return re(Ko,ze,bo)})}catch(vd){Ne.thrownErrors.push(vd)}if(0<Ne.thrownErrors.length){var qs=Oe(Ne.thrownErrors);Ne.thrownErrors.length=0,bo(qs)}}else ze(Ko)},function(Ko){we(U,ie),0<Ne.thrownErrors.length?(Ko=Oe(Ne.thrownErrors),Ne.thrownErrors.length=0,bo(Ko)):bo(Ko)})}}}var zt=at;if(we(U,ie),ie===0&&(xe(ye),ye.length!==0&&yd(function(){Re||Hl||(Hl=!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(() => ...)"))}),Ne.actQueue=null),0<Ne.thrownErrors.length)throw L=Oe(Ne.thrownErrors),Ne.thrownErrors.length=0,L;return{then:function(ze,bo){Re=!0,ie===0?(Ne.actQueue=ye,me(function(){return re(zt,ze,bo)})):ze(zt)}}},mE.cache=function(L){return function(){return L.apply(null,arguments)}},mE.cacheSignal=function(){return null},mE.captureOwnerStack=function(){var L=Ne.getCurrentStack;return L===null?null:L()},mE.cloneElement=function(L,U,ie){if(L===null||L===void 0)throw Error("The argument must be a React element, but you passed "+L+".");var ye=De({},L.props),{key:Re,_owner:at}=L;if(U!=null){var ot;e:{if(Pr.call(U,"ref")&&(ot=Object.getOwnPropertyDescriptor(U,"ref").get)&&ot.isReactWarning){ot=!1;break e}ot=U.ref!==void 0}ot&&(at=S()),T(U)&&(h(U.key),Re=""+U.key);for(zt in U)!Pr.call(U,zt)||zt==="key"||zt==="__self"||zt==="__source"||zt==="ref"&&U.ref===void 0||(ye[zt]=U[zt])}var zt=arguments.length-2;if(zt===1)ye.children=ie;else if(1<zt){ot=Array(zt);for(var ze=0;ze<zt;ze++)ot[ze]=arguments[ze+2];ye.children=ot}ye=R(L.type,Re,ye,at,L._debugStack,L._debugTask);for(Re=2;Re<arguments.length;Re++)P(arguments[Re]);return ye},mE.createContext=function(L){return L={$$typeof:wt,_currentValue:L,_currentValue2:L,_threadCount:0,Provider:null,Consumer:null},L.Provider=L,L.Consumer={$$typeof:Ct,_context:L},L._currentRenderer=null,L._currentRenderer2=null,L},mE.createElement=function(L,U,ie){for(var ye=2;ye<arguments.length;ye++)P(arguments[ye]);ye={};var Re=null;if(U!=null)for(ze in qt||!("__self"in U)||"key"in U||(qt=!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(U)&&(h(U.key),Re=""+U.key),U)Pr.call(U,ze)&&ze!=="key"&&ze!=="__self"&&ze!=="__source"&&(ye[ze]=U[ze]);var at=arguments.length-2;if(at===1)ye.children=ie;else if(1<at){for(var ot=Array(at),zt=0;zt<at;zt++)ot[zt]=arguments[zt+2];Object.freeze&&Object.freeze(ot),ye.children=ot}if(L&&L.defaultProps)for(ze in at=L.defaultProps,at)ye[ze]===void 0&&(ye[ze]=at[ze]);Re&&w(ye,typeof L==="function"?L.displayName||L.name||"Unknown":L);var ze=1e4>Ne.recentlyCreatedOwnerStacks++;return R(L,Re,ye,S(),ze?Error("react-stack-top-frame"):co,ze?Xt(m(L)):Pl)},mE.createRef=function(){var L={current:null};return Object.seal(L),L},mE.forwardRef=function(L){L!=null&&L.$$typeof===ua?console.error("forwardRef requires a render function but received a `memo` component. Instead of forwardRef(memo(...)), use memo(forwardRef(...))."):typeof L!=="function"?console.error("forwardRef requires a render function but was given %s.",L===null?"null":typeof L):L.length!==0&&L.length!==2&&console.error("forwardRef render functions accept exactly two parameters: props and ref. %s",L.length===1?"Did you forget to use the ref parameter?":"Any additional parameter will be undefined."),L!=null&&L.defaultProps!=null&&console.error("forwardRef render functions do not support defaultProps. Did you accidentally pass a React component?");var U={$$typeof:he,render:L},ie;return Object.defineProperty(U,"displayName",{enumerable:!1,configurable:!0,get:function(){return ie},set:function(ye){ie=ye,L.name||L.displayName||(Object.defineProperty(L,"name",{value:ye}),L.displayName=ye)}}),U},mE.isValidElement=V,mE.lazy=function(L){L={_status:-1,_result:L};var U={$$typeof:na,_payload:L,_init:H},ie={name:"lazy",start:-1,end:-1,value:null,owner:null,debugStack:Error("react-stack-top-frame"),debugTask:console.createTask?console.createTask("lazy()"):null};return L._ioInfo=ie,U._debugInfo=[{awaited:ie}],U},mE.memo=function(L,U){L==null&&console.error("memo: The first argument must be a component. Instead received: %s",L===null?"null":typeof L),U={$$typeof:ua,type:L,compare:U===void 0?null:U};var ie;return Object.defineProperty(U,"displayName",{enumerable:!1,configurable:!0,get:function(){return ie},set:function(ye){ie=ye,L.name||L.displayName||(Object.defineProperty(L,"name",{value:ye}),L.displayName=ye)}}),U},mE.startTransition=function(L){var U=Ne.T,ie={};ie._updatedFibers=new Set,Ne.T=ie;try{var ye=L(),Re=Ne.S;Re!==null&&Re(ie,ye),typeof ye==="object"&&ye!==null&&typeof ye.then==="function"&&(Ne.asyncTransitions++,ye.then(Le,Le),ye.then(g,Es))}catch(at){Es(at)}finally{U===null&&ie._updatedFibers&&(L=ie._updatedFibers.size,ie._updatedFibers.clear(),10<L&&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.")),U!==null&&ie.types!==null&&(U.types!==null&&U.types!==ie.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=ie.types),Ne.T=U}},mE.unstable_useCacheRefresh=function(){return X().useCacheRefresh()},mE.use=function(L){return X().use(L)},mE.useActionState=function(L,U,ie){return X().useActionState(L,U,ie)},mE.useCallback=function(L,U){return X().useCallback(L,U)},mE.useContext=function(L){var U=X();return L.$$typeof===Ct&&console.error("Calling useContext(Context.Consumer) is not supported and will cause bugs. Did you mean to call useContext(Context) instead?"),U.useContext(L)},mE.useDebugValue=function(L,U){return X().useDebugValue(L,U)},mE.useDeferredValue=function(L,U){return X().useDeferredValue(L,U)},mE.useEffect=function(L,U){return L==null&&console.warn("React Hook useEffect requires an effect callback. Did you forget to pass a callback to the hook?"),X().useEffect(L,U)},mE.useEffectEvent=function(L){return X().useEffectEvent(L)},mE.useId=function(){return X().useId()},mE.useImperativeHandle=function(L,U,ie){return X().useImperativeHandle(L,U,ie)},mE.useInsertionEffect=function(L,U){return L==null&&console.warn("React Hook useInsertionEffect requires an effect callback. Did you forget to pass a callback to the hook?"),X().useInsertionEffect(L,U)},mE.useLayoutEffect=function(L,U){return L==null&&console.warn("React Hook useLayoutEffect requires an effect callback. Did you forget to pass a callback to the hook?"),X().useLayoutEffect(L,U)},mE.useMemo=function(L,U){return X().useMemo(L,U)},mE.useOptimistic=function(L,U){return X().useOptimistic(L,U)},mE.useReducer=function(L,U,ie){return X().useReducer(L,U,ie)},mE.useRef=function(L){return X().useRef(L)},mE.useState=function(L){return X().useState(L)},mE.useSyncExternalStore=function(L,U,ie){return X().useSyncExternalStore(L,U,ie)},mE.useTransition=function(){return X().useTransition()},mE.version="19.2.7",typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop==="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()});var T1=Ii(function(hE){var Zb=_(Qe());(function(){function r(){}function i(m){return""+m}function l(m,S,C){var T=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;try{i(T);var w=!1}catch(I){w=!0}return w&&(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"),i(T)),{$$typeof:h,key:T==null?null:""+T,children:m,containerInfo:S,implementation:C}}function c(m,S){if(m==="font")return"";if(typeof S==="string")return S==="use-credentials"?S:""}function f(m){return m===null?"`null`":m===void 0?"`undefined`":m===""?"an empty string":'something with type "'+typeof m+'"'}function y(m){return m===null?"`null`":m===void 0?"`undefined`":m===""?"an empty string":typeof m==="string"?JSON.stringify(m):typeof m==="number"?"`"+m+"`":'something with type "'+typeof m+'"'}function g(){var m=x.H;return m===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.`),L}function Ie(){Ne.asyncTransitions--}function fe(L){if(Ul===null)try{var U=("require"+Math.random()).slice(0,7);Ul=(gh&&gh[U]).call(gh,"timers").setImmediate}catch(le){Ul=function(ye){tp===!1&&(tp=!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 Re=new MessageChannel;Re.port1.onmessage=ye,Re.port2.postMessage(void 0)}}return Ul(L)}function Ee(L){return 1<L.length&&typeof AggregateError==="function"?AggregateError(L):L[0]}function we(L,U){U!==_l-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. "),_l=U}function oe(L,U,le){var ye=Ne.actQueue;if(ye!==null)if(ye.length!==0)try{Se(ye),fe(function(){return oe(L,U,le)});return}catch(Re){Ne.thrownErrors.push(Re)}else Ne.actQueue=null;0<Ne.thrownErrors.length?(ye=Ee(Ne.thrownErrors),Ne.thrownErrors.length=0,le(ye)):U(L)}function Se(L){if(!Fl){Fl=!0;var U=0;try{for(;U<L.length;U++){var le=L[U];do{Ne.didUsePromise=!1;var ye=le(!1);if(ye!==null){if(Ne.didUsePromise){L[U]=le,L.splice(0,U);return}le=ye}else break}while(1)}L.length=0}catch(Re){L.splice(0,U+1),Ne.thrownErrors.push(Re)}finally{Fl=!1}}}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart==="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var Ae=Symbol.for("react.transitional.element"),Ye=Symbol.for("react.portal"),ht=Symbol.for("react.fragment"),W=Symbol.for("react.strict_mode"),He=Symbol.for("react.profiler"),Tt=Symbol.for("react.consumer"),xt=Symbol.for("react.context"),ge=Symbol.for("react.forward_ref"),Xe=Symbol.for("react.suspense"),Ue=Symbol.for("react.suspense_list"),sa=Symbol.for("react.memo"),la=Symbol.for("react.lazy"),X=Symbol.for("react.activity"),Ke=Symbol.iterator,H={},Ce={isMounted:function(){return!1},enqueueForceUpdate:function(L){l(L,"forceUpdate")},enqueueReplaceState:function(L){l(L,"replaceState")},enqueueSetState:function(L){l(L,"setState")}},he=Object.assign,st={};Object.freeze(st),c.prototype.isReactComponent={},c.prototype.setState=function(L,U){if(typeof L!=="object"&&typeof L!=="function"&&L!=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,L,U,"setState")},c.prototype.forceUpdate=function(L){this.updater.enqueueForceUpdate(this,L,"forceUpdate")};var Be={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(Os in Be)Be.hasOwnProperty(Os)&&n(Os,Be[Os]);f.prototype=c.prototype,Be=y.prototype=new f,Be.constructor=y,he(Be,c.prototype),Be.isPureReactComponent=!0;var ke=Array.isArray,Xt=Symbol.for("react.client.reference"),Ne={H:null,A:null,T:null,S:null,actQueue:null,asyncTransitions:0,isBatchingLegacy:!1,didScheduleLegacyUpdate:!1,didUsePromise:!1,thrownErrors:[],getCurrentStack:null,recentlyCreatedOwnerStacks:0},Aa=Object.prototype.hasOwnProperty,Yt=console.createTask?console.createTask:function(){return null};Be={react_stack_bottom_frame:function(L){return L()}};var Vi,qt,ca={},fo=Be.react_stack_bottom_frame.bind(Be,C)(),Pl=Yt(m(C)),ji=!1,$i=/\/+/g,qs=typeof reportError==="function"?reportError:function(L){if(typeof window==="object"&&typeof window.ErrorEvent==="function"){var U=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof L==="object"&&L!==null&&typeof L.message==="string"?String(L.message):String(L),error:L});if(!window.dispatchEvent(U))return}else if(typeof process==="object"&&typeof process.emit==="function"){process.emit("uncaughtException",L);return}console.error(L)},tp=!1,Ul=null,_l=0,Hl=!1,Fl=!1,vd=typeof queueMicrotask==="function"?function(L){queueMicrotask(function(){return queueMicrotask(L)})}:fe;Be=Object.freeze({__proto__:null,c:function(L){return V().useMemoCache(L)}});var Os={map:ee,forEach:function(L,U,le){ee(L,function(){U.apply(this,arguments)},le)},count:function(L){var U=0;return ee(L,function(){U++}),U},toArray:function(L){return ee(L,function(U){return U})||[]},only:function(L){if(!j(L))throw Error("React.Children.only expected to receive a single React element child.");return L}};gE.Activity=X,gE.Children=Os,gE.Component=c,gE.Fragment=ht,gE.Profiler=He,gE.PureComponent=y,gE.StrictMode=W,gE.Suspense=Xe,gE.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=Ne,gE.__COMPILER_RUNTIME=Be,gE.act=function(L){var U=Ne.actQueue,le=_l;_l++;var ye=Ne.actQueue=U!==null?U:[],Re=!1;try{var at=L()}catch(ze){Ne.thrownErrors.push(ze)}if(0<Ne.thrownErrors.length)throw we(U,le),L=Ee(Ne.thrownErrors),Ne.thrownErrors.length=0,L;if(at!==null&&typeof at==="object"&&typeof at.then==="function"){var ot=at;return vd(function(){Re||Hl||(Hl=!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(ze,So){Re=!0,ot.then(function(Wo){if(we(U,le),le===0){try{Se(ye),fe(function(){return oe(Wo,ze,So)})}catch(bd){Ne.thrownErrors.push(bd)}if(0<Ne.thrownErrors.length){var Bs=Ee(Ne.thrownErrors);Ne.thrownErrors.length=0,So(Bs)}}else ze(Wo)},function(Wo){we(U,le),0<Ne.thrownErrors.length?(Wo=Ee(Ne.thrownErrors),Ne.thrownErrors.length=0,So(Wo)):So(Wo)})}}}var zt=at;if(we(U,le),le===0&&(Se(ye),ye.length!==0&&vd(function(){Re||Hl||(Hl=!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(() => ...)"))}),Ne.actQueue=null),0<Ne.thrownErrors.length)throw L=Ee(Ne.thrownErrors),Ne.thrownErrors.length=0,L;return{then:function(ze,So){Re=!0,le===0?(Ne.actQueue=ye,fe(function(){return oe(zt,ze,So)})):ze(zt)}}},gE.cache=function(L){return function(){return L.apply(null,arguments)}},gE.cacheSignal=function(){return null},gE.captureOwnerStack=function(){var L=Ne.getCurrentStack;return L===null?null:L()},gE.cloneElement=function(L,U,le){if(L===null||L===void 0)throw Error("The argument must be a React element, but you passed "+L+".");var ye=he({},L.props),{key:Re,_owner:at}=L;if(U!=null){var ot;e:{if(Aa.call(U,"ref")&&(ot=Object.getOwnPropertyDescriptor(U,"ref").get)&&ot.isReactWarning){ot=!1;break e}ot=U.ref!==void 0}ot&&(at=S()),I(U)&&(h(U.key),Re=""+U.key);for(zt in U)!Aa.call(U,zt)||zt==="key"||zt==="__self"||zt==="__source"||zt==="ref"&&U.ref===void 0||(ye[zt]=U[zt])}var zt=arguments.length-2;if(zt===1)ye.children=le;else if(1<zt){ot=Array(zt);for(var ze=0;ze<zt;ze++)ot[ze]=arguments[ze+2];ye.children=ot}ye=R(L.type,Re,ye,at,L._debugStack,L._debugTask);for(Re=2;Re<arguments.length;Re++)P(arguments[Re]);return ye},gE.createContext=function(L){return L={$$typeof:xt,_currentValue:L,_currentValue2:L,_threadCount:0,Provider:null,Consumer:null},L.Provider=L,L.Consumer={$$typeof:Tt,_context:L},L._currentRenderer=null,L._currentRenderer2=null,L},gE.createElement=function(L,U,le){for(var ye=2;ye<arguments.length;ye++)P(arguments[ye]);ye={};var Re=null;if(U!=null)for(ze in qt||!("__self"in U)||"key"in U||(qt=!0,console.warn("Your app (or one of its dependencies) is using an outdated JSX transform. Update to the modern JSX transform for faster performance: https://react.dev/link/new-jsx-transform")),I(U)&&(h(U.key),Re=""+U.key),U)Aa.call(U,ze)&&ze!=="key"&&ze!=="__self"&&ze!=="__source"&&(ye[ze]=U[ze]);var at=arguments.length-2;if(at===1)ye.children=le;else if(1<at){for(var ot=Array(at),zt=0;zt<at;zt++)ot[zt]=arguments[zt+2];Object.freeze&&Object.freeze(ot),ye.children=ot}if(L&&L.defaultProps)for(ze in at=L.defaultProps,at)ye[ze]===void 0&&(ye[ze]=at[ze]);Re&&w(ye,typeof L==="function"?L.displayName||L.name||"Unknown":L);var ze=1e4>Ne.recentlyCreatedOwnerStacks++;return R(L,Re,ye,S(),ze?Error("react-stack-top-frame"):fo,ze?Yt(m(L)):Pl)},gE.createRef=function(){var L={current:null};return Object.seal(L),L},gE.forwardRef=function(L){L!=null&&L.$$typeof===sa?console.error("forwardRef requires a render function but received a `memo` component. Instead of forwardRef(memo(...)), use memo(forwardRef(...))."):typeof L!=="function"?console.error("forwardRef requires a render function but was given %s.",L===null?"null":typeof L):L.length!==0&&L.length!==2&&console.error("forwardRef render functions accept exactly two parameters: props and ref. %s",L.length===1?"Did you forget to use the ref parameter?":"Any additional parameter will be undefined."),L!=null&&L.defaultProps!=null&&console.error("forwardRef render functions do not support defaultProps. Did you accidentally pass a React component?");var U={$$typeof:ge,render:L},le;return Object.defineProperty(U,"displayName",{enumerable:!1,configurable:!0,get:function(){return le},set:function(ye){le=ye,L.name||L.displayName||(Object.defineProperty(L,"name",{value:ye}),L.displayName=ye)}}),U},gE.isValidElement=j,gE.lazy=function(L){L={_status:-1,_result:L};var U={$$typeof:la,_payload:L,_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 L._ioInfo=le,U._debugInfo=[{awaited:le}],U},gE.memo=function(L,U){L==null&&console.error("memo: The first argument must be a component. Instead received: %s",L===null?"null":typeof L),U={$$typeof:sa,type:L,compare:U===void 0?null:U};var le;return Object.defineProperty(U,"displayName",{enumerable:!1,configurable:!0,get:function(){return le},set:function(ye){le=ye,L.name||L.displayName||(Object.defineProperty(L,"name",{value:ye}),L.displayName=ye)}}),U},gE.startTransition=function(L){var U=Ne.T,le={};le._updatedFibers=new Set,Ne.T=le;try{var ye=L(),Re=Ne.S;Re!==null&&Re(le,ye),typeof ye==="object"&&ye!==null&&typeof ye.then==="function"&&(Ne.asyncTransitions++,ye.then(Ie,Ie),ye.then(g,qs))}catch(at){qs(at)}finally{U===null&&le._updatedFibers&&(L=le._updatedFibers.size,le._updatedFibers.clear(),10<L&&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.")),U!==null&&le.types!==null&&(U.types!==null&&U.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."),U.types=le.types),Ne.T=U}},gE.unstable_useCacheRefresh=function(){return V().useCacheRefresh()},gE.use=function(L){return V().use(L)},gE.useActionState=function(L,U,le){return V().useActionState(L,U,le)},gE.useCallback=function(L,U){return V().useCallback(L,U)},gE.useContext=function(L){var U=V();return L.$$typeof===Tt&&console.error("Calling useContext(Context.Consumer) is not supported and will cause bugs. Did you mean to call useContext(Context) instead?"),U.useContext(L)},gE.useDebugValue=function(L,U){return V().useDebugValue(L,U)},gE.useDeferredValue=function(L,U){return V().useDeferredValue(L,U)},gE.useEffect=function(L,U){return L==null&&console.warn("React Hook useEffect requires an effect callback. Did you forget to pass a callback to the hook?"),V().useEffect(L,U)},gE.useEffectEvent=function(L){return V().useEffectEvent(L)},gE.useId=function(){return V().useId()},gE.useImperativeHandle=function(L,U,le){return V().useImperativeHandle(L,U,le)},gE.useInsertionEffect=function(L,U){return L==null&&console.warn("React Hook useInsertionEffect requires an effect callback. Did you forget to pass a callback to the hook?"),V().useInsertionEffect(L,U)},gE.useLayoutEffect=function(L,U){return L==null&&console.warn("React Hook useLayoutEffect requires an effect callback. Did you forget to pass a callback to the hook?"),V().useLayoutEffect(L,U)},gE.useMemo=function(L,U){return V().useMemo(L,U)},gE.useOptimistic=function(L,U){return V().useOptimistic(L,U)},gE.useReducer=function(L,U,le){return V().useReducer(L,U,le)},gE.useRef=function(L){return V().useRef(L)},gE.useState=function(L){return V().useState(L)},gE.useSyncExternalStore=function(L,U,le){return V().useSyncExternalStore(L,U,le)},gE.useTransition=function(){return V().useTransition()},gE.version="19.2.7",typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop==="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()});var T1=Ii(function(yE){var ex=_(We());(function(){function n(){}function i(m){return""+m}function l(m,S,C){var I=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;try{i(I);var w=!1}catch(T){w=!0}return w&&(console.error("The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",typeof Symbol==="function"&&Symbol.toStringTag&&I[Symbol.toStringTag]||I.constructor.name||"Object"),i(I)),{$$typeof:h,key:I==null?null:""+I,children:m,containerInfo:S,implementation:C}}function c(m,S){if(m==="font")return"";if(typeof S==="string")return S==="use-credentials"?S:""}function f(m){return m===null?"`null`":m===void 0?"`undefined`":m===""?"an empty string":'something with type "'+typeof m+'"'}function y(m){return m===null?"`null`":m===void 0?"`undefined`":m===""?"an empty string":typeof m==="string"?JSON.stringify(m):typeof m==="number"?"`"+m+"`":'something with type "'+typeof m+'"'}function g(){var m=x.H;return m===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.`),m}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart==="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var v={d:{f:r,r:function(){throw Error("Invalid form element. requestFormReset must be passed a form that was rendered by React.")},D:r,C:r,L:r,m:r,X:r,S:r,M:r},p:0,findDOMNode:null},h=Symbol.for("react.portal"),x=Zb.__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"),hE.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=v,hE.createPortal=function(m,S){var C=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!S||S.nodeType!==1&&S.nodeType!==9&&S.nodeType!==11)throw Error("Target container is not a DOM element.");return l(m,S,null,C)},hE.flushSync=function(m){var S=x.T,C=v.p;try{if(x.T=null,v.p=2,m)return m()}finally{x.T=S,v.p=C,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.")}},hE.preconnect=function(m,S){typeof m==="string"&&m?S!=null&&typeof S!=="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.",y(S)):S!=null&&typeof S.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.",f(S.crossOrigin)):console.error("ReactDOM.preconnect(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.",f(m)),typeof m==="string"&&(S?(S=S.crossOrigin,S=typeof S==="string"?S==="use-credentials"?S:"":void 0):S=null,v.d.C(m,S))},hE.prefetchDNS=function(m){if(typeof m!=="string"||!m)console.error("ReactDOM.prefetchDNS(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.",f(m));else if(1<arguments.length){var S=arguments[1];typeof S==="object"&&S.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`.",y(S)):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`.",y(S))}typeof m==="string"&&v.d.D(m)},hE.preinit=function(m,S){if(typeof m==="string"&&m?S==null||typeof S!=="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.",y(S)):S.as!=="style"&&S.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".',y(S.as)):console.error("ReactDOM.preinit(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.",f(m)),typeof m==="string"&&S&&typeof S.as==="string"){var C=S.as,T=c(C,S.crossOrigin),w=typeof S.integrity==="string"?S.integrity:void 0,I=typeof S.fetchPriority==="string"?S.fetchPriority:void 0;C==="style"?v.d.S(m,typeof S.precedence==="string"?S.precedence:void 0,{crossOrigin:T,integrity:w,fetchPriority:I}):C==="script"&&v.d.X(m,{crossOrigin:T,integrity:w,fetchPriority:I,nonce:typeof S.nonce==="string"?S.nonce:void 0})}},hE.preinitModule=function(m,S){var C="";if(typeof m==="string"&&m||(C+=" The `href` argument encountered was "+f(m)+"."),S!==void 0&&typeof S!=="object"?C+=" The `options` argument encountered was "+f(S)+".":S&&("as"in S)&&S.as!=="script"&&(C+=" The `as` option encountered was "+y(S.as)+"."),C)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",C);else switch(C=S&&typeof S.as==="string"?S.as:"script",C){case"script":break;default:C=y(C),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)',C,m)}if(typeof m==="string")if(typeof S==="object"&&S!==null){if(S.as==null||S.as==="script")C=c(S.as,S.crossOrigin),v.d.M(m,{crossOrigin:C,integrity:typeof S.integrity==="string"?S.integrity:void 0,nonce:typeof S.nonce==="string"?S.nonce:void 0})}else S==null&&v.d.M(m)},hE.preload=function(m,S){var C="";if(typeof m==="string"&&m||(C+=" The `href` argument encountered was "+f(m)+"."),S==null||typeof S!=="object"?C+=" The `options` argument encountered was "+f(S)+".":typeof S.as==="string"&&S.as||(C+=" The `as` option encountered was "+f(S.as)+"."),C&&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',C),typeof m==="string"&&typeof S==="object"&&S!==null&&typeof S.as==="string"){C=S.as;var T=c(C,S.crossOrigin);v.d.L(m,C,{crossOrigin:T,integrity:typeof S.integrity==="string"?S.integrity:void 0,nonce:typeof S.nonce==="string"?S.nonce:void 0,type:typeof S.type==="string"?S.type:void 0,fetchPriority:typeof S.fetchPriority==="string"?S.fetchPriority:void 0,referrerPolicy:typeof S.referrerPolicy==="string"?S.referrerPolicy:void 0,imageSrcSet:typeof S.imageSrcSet==="string"?S.imageSrcSet:void 0,imageSizes:typeof S.imageSizes==="string"?S.imageSizes:void 0,media:typeof S.media==="string"?S.media:void 0})}},hE.preloadModule=function(m,S){var C="";typeof m==="string"&&m||(C+=" The `href` argument encountered was "+f(m)+"."),S!==void 0&&typeof S!=="object"?C+=" The `options` argument encountered was "+f(S)+".":S&&("as"in S)&&typeof S.as!=="string"&&(C+=" The `as` option encountered was "+f(S.as)+"."),C&&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',C),typeof m==="string"&&(S?(C=c(S.as,S.crossOrigin),v.d.m(m,{as:typeof S.as==="string"&&S.as!=="script"?S.as:void 0,crossOrigin:C,integrity:typeof S.integrity==="string"?S.integrity:void 0})):v.d.m(m))},hE.requestFormReset=function(m){v.d.r(m)},hE.unstable_batchedUpdates=function(m,S){return m(S)},hE.useFormState=function(m,S,C){return g().useFormState(m,S,C)},hE.useFormStatus=function(){return g().useHostTransitionStatus()},hE.version="19.2.7",typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop==="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()});var Kc=Ii(function(gE,mh){mh.exports=_(T1())});var I1=Ii(function(yE){var Pt=_(w1()),Ku=_(Qe()),Jb=_(Kc());(function(){function r(e,t){for(e=e.memoizedState;e!==null&&0<t;)e=e.next,t--;return e}function i(e,t,a,o){if(a>=t.length)return o;var n=t[a],s=Wa(e)?e.slice():St({},e);return s[n]=i(e[n],t,a+1,o),s}function l(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 c(e,t,a,0)}}function c(e,t,a,o){var n=t[o],s=Wa(e)?e.slice():St({},e);return o+1===t.length?(s[a[o]]=s[n],Wa(s)?s.splice(n,1):delete s[n]):s[n]=c(e[n],t,a,o+1),s}function f(e,t,a){var o=t[a],n=Wa(e)?e.slice():St({},e);if(a+1===t.length)return Wa(n)?n.splice(o,1):delete n[o],n;return n[o]=f(e[o],t,a+1),n}function y(){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 h(){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 m(){}function S(e){var t=[];return e.forEach(function(a){t.push(a)}),t.sort().join(", ")}function C(e,t,a,o){return new WR(e,t,a,o)}function T(e,t){e.context===el&&(vv(e.current,2,t,e,null,null),nu())}function w(e,t){if(Lr!==null){var a=t.staleFamilies;t=t.updatedFamilies,Vd(),M0(e.current,t,a),nu()}}function I(e){Lr=e}function R(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function N(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 V(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 K(e){if(N(e)!==e)throw Error("Unable to find node on an unmounted component.")}function de(e){var t=e.alternate;if(!t){if(t=N(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 s=n.alternate;if(s===null){if(o=n.return,o!==null){a=o;continue}break}if(n.child===s.child){for(s=n.child;s;){if(s===a)return K(n),e;if(s===o)return K(n),t;s=s.sibling}throw Error("Unable to find node on an unmounted component.")}if(a.return!==o.return)a=n,o=s;else{for(var d=!1,p=n.child;p;){if(p===a){d=!0,a=n,o=s;break}if(p===o){d=!0,o=n,a=s;break}p=p.sibling}if(!d){for(p=s.child;p;){if(p===a){d=!0,a=s,o=n;break}if(p===o){d=!0,o=s,a=n;break}p=p.sibling}if(!d)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 fe(e){if(e===null||typeof e!=="object")return null;return e=BL&&e[BL]||e["@@iterator"],typeof e==="function"?e:null}function ee(e){if(e==null)return null;if(typeof e==="function")return e.$$typeof===vA?null:e.displayName||e.name||null;if(typeof e==="string")return e;switch(e){case fu:return"Fragment";case Cv:return"Profiler";case lm:return"StrictMode";case Tv:return"Suspense";case Iv:return"SuspenseList";case Rv: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 cu:return"Portal";case Cn:return e.displayName||"Context";case wv:return(e._context.displayName||"Context")+".Consumer";case ec:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case im:return t=e.displayName||null,t!==null?t:ee(e.type)||"Memo";case rr:t=e._payload,e=e._init;try{return ee(e(t))}catch(a){}}return null}function H(e){return typeof e.tag==="number"?X(e):typeof e.name==="string"?e.name:null}function X(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 ee(t);case 8:return t===lm?"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 X(e.return)}return null}function Le(e){return{current:e}}function me(e,t){0>rs?console.error("Unexpected pop."):(t!==Av[rs]&&console.error("Unexpected Fiber popped."),e.current=Mv[rs],Mv[rs]=null,Av[rs]=null,rs--)}function Oe(e,t,a){rs++,Mv[rs]=e.current,Av[rs]=a,e.current=t}function we(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 re(e,t){Oe(Ys,t,e),Oe(tc,e,e),Oe(Xs,null,e);var a=t.nodeType;switch(a){case 9:case 11:a=a===9?"#document":"#fragment",t=(t=t.documentElement)?(t=t.namespaceURI)?sL(t):vs:vs;break;default:if(a=t.tagName,t=t.namespaceURI)t=sL(t),t=lL(t,a);else switch(a){case"svg":t=$u;break;case"math":t=sh;break;default:t=vs}}a=a.toLowerCase(),a=e0(null,a),a={context:t,ancestorInfo:a},me(Xs,e),Oe(Xs,a,e)}function xe(e){me(Xs,e),me(tc,e),me(Ys,e)}function Ae(){return we(Xs.current)}function Je(e){e.memoizedState!==null&&Oe(um,e,e);var t=we(Xs.current),a=e.type,o=lL(t.context,a);a=e0(t.ancestorInfo,a),o={context:o,ancestorInfo:a},t!==o&&(Oe(tc,e,e),Oe(Xs,o,e))}function ht(e){tc.current===e&&(me(Xs,e),me(tc,e)),um.current===e&&(me(um,e),$c._currentValue=Ti)}function Z(){}function He(){if(ac===0){zL=console.log,PL=console.info,UL=console.warn,_L=console.error,HL=console.group,FL=console.groupCollapsed,GL=console.groupEnd;var e={configurable:!0,enumerable:!0,value:Z,writable:!0};Object.defineProperties(console,{info:e,log:e,warn:e,error:e,group:e,groupCollapsed:e,groupEnd:e})}ac++}function Ct(){if(ac--,ac===0){var e={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:St({},e,{value:zL}),info:St({},e,{value:PL}),warn:St({},e,{value:UL}),error:St({},e,{value:_L}),group:St({},e,{value:HL}),groupCollapsed:St({},e,{value:FL}),groupEnd:St({},e,{value:GL})})}0>ac&&console.error("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}function wt(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.`),m}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart==="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var v={d:{f:n,r:function(){throw Error("Invalid form element. requestFormReset must be passed a form that was rendered by React.")},D:n,C:n,L:n,m:n,X:n,S:n,M:n},p:0,findDOMNode:null},h=Symbol.for("react.portal"),x=ex.__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"),yE.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=v,yE.createPortal=function(m,S){var C=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!S||S.nodeType!==1&&S.nodeType!==9&&S.nodeType!==11)throw Error("Target container is not a DOM element.");return l(m,S,null,C)},yE.flushSync=function(m){var S=x.T,C=v.p;try{if(x.T=null,v.p=2,m)return m()}finally{x.T=S,v.p=C,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.")}},yE.preconnect=function(m,S){typeof m==="string"&&m?S!=null&&typeof S!=="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.",y(S)):S!=null&&typeof S.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.",f(S.crossOrigin)):console.error("ReactDOM.preconnect(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.",f(m)),typeof m==="string"&&(S?(S=S.crossOrigin,S=typeof S==="string"?S==="use-credentials"?S:"":void 0):S=null,v.d.C(m,S))},yE.prefetchDNS=function(m){if(typeof m!=="string"||!m)console.error("ReactDOM.prefetchDNS(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.",f(m));else if(1<arguments.length){var S=arguments[1];typeof S==="object"&&S.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`.",y(S)):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`.",y(S))}typeof m==="string"&&v.d.D(m)},yE.preinit=function(m,S){if(typeof m==="string"&&m?S==null||typeof S!=="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.",y(S)):S.as!=="style"&&S.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".',y(S.as)):console.error("ReactDOM.preinit(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.",f(m)),typeof m==="string"&&S&&typeof S.as==="string"){var C=S.as,I=c(C,S.crossOrigin),w=typeof S.integrity==="string"?S.integrity:void 0,T=typeof S.fetchPriority==="string"?S.fetchPriority:void 0;C==="style"?v.d.S(m,typeof S.precedence==="string"?S.precedence:void 0,{crossOrigin:I,integrity:w,fetchPriority:T}):C==="script"&&v.d.X(m,{crossOrigin:I,integrity:w,fetchPriority:T,nonce:typeof S.nonce==="string"?S.nonce:void 0})}},yE.preinitModule=function(m,S){var C="";if(typeof m==="string"&&m||(C+=" The `href` argument encountered was "+f(m)+"."),S!==void 0&&typeof S!=="object"?C+=" The `options` argument encountered was "+f(S)+".":S&&("as"in S)&&S.as!=="script"&&(C+=" The `as` option encountered was "+y(S.as)+"."),C)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",C);else switch(C=S&&typeof S.as==="string"?S.as:"script",C){case"script":break;default:C=y(C),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)',C,m)}if(typeof m==="string")if(typeof S==="object"&&S!==null){if(S.as==null||S.as==="script")C=c(S.as,S.crossOrigin),v.d.M(m,{crossOrigin:C,integrity:typeof S.integrity==="string"?S.integrity:void 0,nonce:typeof S.nonce==="string"?S.nonce:void 0})}else S==null&&v.d.M(m)},yE.preload=function(m,S){var C="";if(typeof m==="string"&&m||(C+=" The `href` argument encountered was "+f(m)+"."),S==null||typeof S!=="object"?C+=" The `options` argument encountered was "+f(S)+".":typeof S.as==="string"&&S.as||(C+=" The `as` option encountered was "+f(S.as)+"."),C&&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',C),typeof m==="string"&&typeof S==="object"&&S!==null&&typeof S.as==="string"){C=S.as;var I=c(C,S.crossOrigin);v.d.L(m,C,{crossOrigin:I,integrity:typeof S.integrity==="string"?S.integrity:void 0,nonce:typeof S.nonce==="string"?S.nonce:void 0,type:typeof S.type==="string"?S.type:void 0,fetchPriority:typeof S.fetchPriority==="string"?S.fetchPriority:void 0,referrerPolicy:typeof S.referrerPolicy==="string"?S.referrerPolicy:void 0,imageSrcSet:typeof S.imageSrcSet==="string"?S.imageSrcSet:void 0,imageSizes:typeof S.imageSizes==="string"?S.imageSizes:void 0,media:typeof S.media==="string"?S.media:void 0})}},yE.preloadModule=function(m,S){var C="";typeof m==="string"&&m||(C+=" The `href` argument encountered was "+f(m)+"."),S!==void 0&&typeof S!=="object"?C+=" The `options` argument encountered was "+f(S)+".":S&&("as"in S)&&typeof S.as!=="string"&&(C+=" The `as` option encountered was "+f(S.as)+"."),C&&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',C),typeof m==="string"&&(S?(C=c(S.as,S.crossOrigin),v.d.m(m,{as:typeof S.as==="string"&&S.as!=="script"?S.as:void 0,crossOrigin:C,integrity:typeof S.integrity==="string"?S.integrity:void 0})):v.d.m(m))},yE.requestFormReset=function(m){v.d.r(m)},yE.unstable_batchedUpdates=function(m,S){return m(S)},yE.useFormState=function(m,S,C){return g().useFormState(m,S,C)},yE.useFormStatus=function(){return g().useHostTransitionStatus()},yE.version="19.2.7",typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop==="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()});var Qc=Ii(function(vE,yh){yh.exports=_(T1())});var I1=Ii(function(bE){var Pt=_(w1()),Ku=_(We()),tx=_(Qc());(function(){function n(e,t){for(e=e.memoizedState;e!==null&&0<t;)e=e.next,t--;return e}function i(e,t,a,o){if(a>=t.length)return o;var r=t[a],s=Za(e)?e.slice():kt({},e);return s[r]=i(e[r],t,a+1,o),s}function l(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 c(e,t,a,0)}}function c(e,t,a,o){var r=t[o],s=Za(e)?e.slice():kt({},e);return o+1===t.length?(s[a[o]]=s[r],Za(s)?s.splice(r,1):delete s[r]):s[r]=c(e[r],t,a,o+1),s}function f(e,t,a){var o=t[a],r=Za(e)?e.slice():kt({},e);if(a+1===t.length)return Za(r)?r.splice(o,1):delete r[o],r;return r[o]=f(e[o],t,a+1),r}function y(){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 h(){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 m(){}function S(e){var t=[];return e.forEach(function(a){t.push(a)}),t.sort().join(", ")}function C(e,t,a,o){return new JR(e,t,a,o)}function I(e,t){e.context===al&&(xv(e.current,2,t,e,null,null),ru())}function w(e,t){if(wn!==null){var a=t.staleFamilies;t=t.updatedFamilies,jd(),M0(e.current,t,a),ru()}}function T(e){wn=e}function R(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function O(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 j(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 Q(e){if(O(e)!==e)throw Error("Unable to find node on an unmounted component.")}function ue(e){var t=e.alternate;if(!t){if(t=O(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 s=r.alternate;if(s===null){if(o=r.return,o!==null){a=o;continue}break}if(r.child===s.child){for(s=r.child;s;){if(s===a)return Q(r),e;if(s===o)return Q(r),t;s=s.sibling}throw Error("Unable to find node on an unmounted component.")}if(a.return!==o.return)a=r,o=s;else{for(var d=!1,p=r.child;p;){if(p===a){d=!0,a=r,o=s;break}if(p===o){d=!0,o=r,a=s;break}p=p.sibling}if(!d){for(p=s.child;p;){if(p===a){d=!0,a=s,o=r;break}if(p===o){d=!0,o=s,a=r;break}p=p.sibling}if(!d)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 ce(e){if(e===null||typeof e!=="object")return null;return e=BL&&e[BL]||e["@@iterator"],typeof e==="function"?e:null}function ee(e){if(e==null)return null;if(typeof e==="function")return e.$$typeof===xA?null:e.displayName||e.name||null;if(typeof e==="string")return e;switch(e){case fu:return"Fragment";case Tv:return"Profiler";case dm:return"StrictMode";case Rv:return"Suspense";case Mv:return"SuspenseList";case Av: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 cu:return"Portal";case Tr:return e.displayName||"Context";case Iv:return(e._context.displayName||"Context")+".Consumer";case tc:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case cm:return t=e.displayName||null,t!==null?t:ee(e.type)||"Memo";case sn:t=e._payload,e=e._init;try{return ee(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 ee(t);case 8:return t===dm?"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 Ie(e){return{current:e}}function fe(e,t){0>ss?console.error("Unexpected pop."):(t!==Ev[ss]&&console.error("Unexpected Fiber popped."),e.current=Dv[ss],Dv[ss]=null,Ev[ss]=null,ss--)}function Ee(e,t,a){ss++,Dv[ss]=e.current,Ev[ss]=a,e.current=t}function we(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){Ee(Qs,t,e),Ee(ac,e,e),Ee(Ks,null,e);var a=t.nodeType;switch(a){case 9:case 11:a=a===9?"#document":"#fragment",t=(t=t.documentElement)?(t=t.namespaceURI)?sL(t):xs:xs;break;default:if(a=t.tagName,t=t.namespaceURI)t=sL(t),t=lL(t,a);else switch(a){case"svg":t=$u;break;case"math":t=uh;break;default:t=xs}}a=a.toLowerCase(),a=e0(null,a),a={context:t,ancestorInfo:a},fe(Ks,e),Ee(Ks,a,e)}function Se(e){fe(Ks,e),fe(ac,e),fe(Qs,e)}function Ae(){return we(Ks.current)}function Ye(e){e.memoizedState!==null&&Ee(fm,e,e);var t=we(Ks.current),a=e.type,o=lL(t.context,a);a=e0(t.ancestorInfo,a),o={context:o,ancestorInfo:a},t!==o&&(Ee(ac,e,e),Ee(Ks,o,e))}function ht(e){ac.current===e&&(fe(Ks,e),fe(ac,e)),fm.current===e&&(fe(fm,e),Xc._currentValue=Ti)}function W(){}function He(){if(oc===0){zL=console.log,PL=console.info,UL=console.warn,_L=console.error,HL=console.group,FL=console.groupCollapsed,GL=console.groupEnd;var e={configurable:!0,enumerable:!0,value:W,writable:!0};Object.defineProperties(console,{info:e,log:e,warn:e,error:e,group:e,groupCollapsed:e,groupEnd:e})}oc++}function Tt(){if(oc--,oc===0){var e={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:kt({},e,{value:zL}),info:kt({},e,{value:PL}),warn:kt({},e,{value:UL}),error:kt({},e,{value:_L}),group:kt({},e,{value:HL}),groupCollapsed:kt({},e,{value:FL}),groupEnd:kt({},e,{value:GL})})}0>oc&&console.error("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}function xt(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 he(e){if(Dv===void 0)try{throw Error()}catch(a){var t=a.stack.trim().match(/\n( *(at )?)/);Dv=t&&t[1]||"",VL=-1<a.stack.indexOf(`
20
+ `,t)),t!==-1)e=e.slice(0,t);else return"";return e}function ge(e){if(Nv===void 0)try{throw Error()}catch(a){var t=a.stack.trim().match(/\n( *(at )?)/);Nv=t&&t[1]||"",VL=-1<a.stack.indexOf(`
21
21
  at`)?" (<anonymous>)":-1<a.stack.indexOf("@")?"@unknown:0:0":""}return`
22
- `+Dv+e+VL}function Ye(e,t){if(!e||Ev)return"";var a=Nv.get(e);if(a!==void 0)return a;Ev=!0,a=Error.prepareStackTrace,Error.prepareStackTrace=void 0;var o=null;o=Y.H,Y.H=null,He();try{var n={DetermineComponentFrameRoot:function(){try{if(t){var D=function(){throw Error()};if(Object.defineProperty(D.prototype,"props",{set:function(){throw Error()}}),typeof Reflect==="object"&&Reflect.construct){try{Reflect.construct(D,[])}catch(pe){var F=pe}Reflect.construct(e,[],D)}else{try{D.call()}catch(pe){F=pe}e.call(D.prototype)}}else{try{throw Error()}catch(pe){F=pe}(D=e())&&typeof D.catch==="function"&&D.catch(function(){})}}catch(pe){if(pe&&F&&typeof pe.stack==="string")return[pe.stack,F.stack]}return[null,null]}};n.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var s=Object.getOwnPropertyDescriptor(n.DetermineComponentFrameRoot,"name");s&&s.configurable&&Object.defineProperty(n.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var d=n.DetermineComponentFrameRoot(),p=d[0],b=d[1];if(p&&b){var k=p.split(`
23
- `),O=b.split(`
24
- `);for(d=s=0;s<k.length&&!k[s].includes("DetermineComponentFrameRoot");)s++;for(;d<O.length&&!O[d].includes("DetermineComponentFrameRoot");)d++;if(s===k.length||d===O.length)for(s=k.length-1,d=O.length-1;1<=s&&0<=d&&k[s]!==O[d];)d--;for(;1<=s&&0<=d;s--,d--)if(k[s]!==O[d]){if(s!==1||d!==1)do if(s--,d--,0>d||k[s]!==O[d]){var B=`
25
- `+k[s].replace(" at new "," at ");return e.displayName&&B.includes("<anonymous>")&&(B=B.replace("<anonymous>",e.displayName)),typeof e==="function"&&Nv.set(e,B),B}while(1<=s&&0<=d);break}}}finally{Ev=!1,Y.H=o,Ct(),Error.prepareStackTrace=a}return k=(k=e?e.displayName||e.name:"")?he(k):"",typeof e==="function"&&Nv.set(e,k),k}function Fe(e,t){switch(e.tag){case 26:case 27:case 5:return he(e.type);case 16:return he("Lazy");case 13:return e.child!==t&&t!==null?he("Suspense Fallback"):he("Suspense");case 19:return he("SuspenseList");case 0:case 15:return Ye(e.type,!1);case 11:return Ye(e.type.render,!1);case 1:return Ye(e.type,!0);case 31:return he("Activity");default:return""}}function ua(e){try{var t="",a=null;do{t+=Fe(e,a);var o=e._debugInfo;if(o)for(var n=o.length-1;0<=n;n--){var s=o[n];if(typeof s.name==="string"){var d=t;e:{var{name:p,env:b,debugLocation:k}=s;if(k!=null){var O=wt(k),B=O.lastIndexOf(`
26
- `),D=B===-1?O:O.slice(B+1);if(D.indexOf(p)!==-1){var F=`
27
- `+D;break e}}F=he(p+(b?" ["+b+"]":""))}t=d+F}}a=e,e=e.return}while(e);return t}catch(pe){return`
22
+ `+Nv+e+VL}function Xe(e,t){if(!e||qv)return"";var a=Ov.get(e);if(a!==void 0)return a;qv=!0,a=Error.prepareStackTrace,Error.prepareStackTrace=void 0;var o=null;o=K.H,K.H=null,He();try{var r={DetermineComponentFrameRoot:function(){try{if(t){var D=function(){throw Error()};if(Object.defineProperty(D.prototype,"props",{set:function(){throw Error()}}),typeof Reflect==="object"&&Reflect.construct){try{Reflect.construct(D,[])}catch(pe){var F=pe}Reflect.construct(e,[],D)}else{try{D.call()}catch(pe){F=pe}e.call(D.prototype)}}else{try{throw Error()}catch(pe){F=pe}(D=e())&&typeof D.catch==="function"&&D.catch(function(){})}}catch(pe){if(pe&&F&&typeof pe.stack==="string")return[pe.stack,F.stack]}return[null,null]}};r.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var s=Object.getOwnPropertyDescriptor(r.DetermineComponentFrameRoot,"name");s&&s.configurable&&Object.defineProperty(r.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var d=r.DetermineComponentFrameRoot(),p=d[0],b=d[1];if(p&&b){var k=p.split(`
23
+ `),q=b.split(`
24
+ `);for(d=s=0;s<k.length&&!k[s].includes("DetermineComponentFrameRoot");)s++;for(;d<q.length&&!q[d].includes("DetermineComponentFrameRoot");)d++;if(s===k.length||d===q.length)for(s=k.length-1,d=q.length-1;1<=s&&0<=d&&k[s]!==q[d];)d--;for(;1<=s&&0<=d;s--,d--)if(k[s]!==q[d]){if(s!==1||d!==1)do if(s--,d--,0>d||k[s]!==q[d]){var B=`
25
+ `+k[s].replace(" at new "," at ");return e.displayName&&B.includes("<anonymous>")&&(B=B.replace("<anonymous>",e.displayName)),typeof e==="function"&&Ov.set(e,B),B}while(1<=s&&0<=d);break}}}finally{qv=!1,K.H=o,Tt(),Error.prepareStackTrace=a}return k=(k=e?e.displayName||e.name:"")?ge(k):"",typeof e==="function"&&Ov.set(e,k),k}function Ue(e,t){switch(e.tag){case 26:case 27:case 5:return ge(e.type);case 16:return ge("Lazy");case 13:return e.child!==t&&t!==null?ge("Suspense Fallback"):ge("Suspense");case 19:return ge("SuspenseList");case 0:case 15:return Xe(e.type,!1);case 11:return Xe(e.type.render,!1);case 1:return Xe(e.type,!0);case 31:return ge("Activity");default:return""}}function sa(e){try{var t="",a=null;do{t+=Ue(e,a);var o=e._debugInfo;if(o)for(var r=o.length-1;0<=r;r--){var s=o[r];if(typeof s.name==="string"){var d=t;e:{var{name:p,env:b,debugLocation:k}=s;if(k!=null){var q=xt(k),B=q.lastIndexOf(`
26
+ `),D=B===-1?q:q.slice(B+1);if(D.indexOf(p)!==-1){var F=`
27
+ `+D;break e}}F=ge(p+(b?" ["+b+"]":""))}t=d+F}}a=e,e=e.return}while(e);return t}catch(pe){return`
28
28
  Error generating stack: `+pe.message+`
29
- `+pe.stack}}function na(e){return(e=e?e.displayName||e.name:"")?he(e):""}function G(){if(nr===null)return null;var e=nr._debugOwner;return e!=null?H(e):null}function te(){if(nr===null)return"";var e=nr;try{var t="";switch(e.tag===6&&(e=e.return),e.tag){case 26:case 27:case 5:t+=he(e.type);break;case 13:t+=he("Suspense");break;case 19:t+=he("SuspenseList");break;case 31:t+=he("Activity");break;case 30:case 0:case 15:case 1:e._debugOwner||t!==""||(t+=na(e.type));break;case 11:e._debugOwner||t!==""||(t+=na(e.type.render))}for(;e;)if(typeof e.tag==="number"){var a=e;e=a._debugOwner;var o=a._debugStack;if(e&&o){var n=wt(o);n!==""&&(t+=`
30
- `+n)}}else if(e.debugStack!=null){var s=e.debugStack;(e=e.owner)&&s&&(t+=`
31
- `+wt(s))}else break;var d=t}catch(p){d=`
29
+ `+pe.stack}}function la(e){return(e=e?e.displayName||e.name:"")?ge(e):""}function X(){if(ln===null)return null;var e=ln._debugOwner;return e!=null?G(e):null}function Ke(){if(ln===null)return"";var e=ln;try{var t="";switch(e.tag===6&&(e=e.return),e.tag){case 26:case 27:case 5:t+=ge(e.type);break;case 13:t+=ge("Suspense");break;case 19:t+=ge("SuspenseList");break;case 31:t+=ge("Activity");break;case 30:case 0:case 15:case 1:e._debugOwner||t!==""||(t+=la(e.type));break;case 11:e._debugOwner||t!==""||(t+=la(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=xt(o);r!==""&&(t+=`
30
+ `+r)}}else if(e.debugStack!=null){var s=e.debugStack;(e=e.owner)&&s&&(t+=`
31
+ `+xt(s))}else break;var d=t}catch(p){d=`
32
32
  Error generating stack: `+p.message+`
33
- `+p.stack}return d}function Q(e,t,a,o,n,s,d){var p=nr;ke(e);try{return e!==null&&e._debugTask?e._debugTask.run(t.bind(null,a,o,n,s,d)):t(a,o,n,s,d)}finally{ke(p)}throw Error("runWithFiberInDEV should never be called in production. This is a bug in React.")}function ke(e){Y.getCurrentStack=e===null?null:te,wn=!1,nr=e}function De(e){return typeof Symbol==="function"&&Symbol.toStringTag&&e[Symbol.toStringTag]||e.constructor.name||"Object"}function lt(e){try{return Ue(e),!1}catch(t){return!0}}function Ue(e){return""+e}function Te(e,t){if(lt(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,De(e)),Ue(e)}function va(e,t){if(lt(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,De(e)),Ue(e)}function Ne(e){if(lt(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.",De(e)),Ue(e)}function Pr(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{mu=t.inject(e),So=t}catch(a){console.error("React instrumentation encountered an error: %o.",a)}return t.checkDCE?!0:!1}function Xt(e){if(typeof wA==="function"&&TA(e),So&&typeof So.setStrictMode==="function")try{So.setStrictMode(mu,e)}catch(t){Tn||(Tn=!0,console.error("React instrumentation encountered an error: %o",t))}}function Vi(e){return e>>>=0,e===0?32:31-(IA(e)/RA|0)|0}function qt(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 da(e,t,a){var o=e.pendingLanes;if(o===0)return 0;var n=0,s=e.suspendedLanes,d=e.pingedLanes;e=e.warmLanes;var p=o&134217727;return p!==0?(o=p&~s,o!==0?n=qt(o):(d&=p,d!==0?n=qt(d):a||(a=p&~e,a!==0&&(n=qt(a))))):(p=o&~s,p!==0?n=qt(p):d!==0?n=qt(d):a||(a=o&~e,a!==0&&(n=qt(a)))),n===0?0:t!==0&&t!==n&&(t&s)===0&&(s=n&-n,a=t&-t,s>=a||s===32&&(a&4194048)!==0)?t:n}function co(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function Pl(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 ji(){var e=fm;return fm<<=1,(fm&62914560)===0&&(fm=4194304),e}function $i(e){for(var t=[],a=0;31>a;a++)t.push(e);return t}function Es(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function Zf(e,t,a,o,n,s){var d=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:p,expirationTimes:b,hiddenUpdates:k}=e;for(a=d&~a;0<a;){var O=31-Io(a),B=1<<O;p[O]=0,b[O]=-1;var D=k[O];if(D!==null)for(k[O]=null,O=0;O<D.length;O++){var F=D[O];F!==null&&(F.lane&=-536870913)}a&=~B}o!==0&&Ul(e,o,0),s!==0&&n===0&&e.tag!==0&&(e.suspendedLanes|=s&~(d&~t))}function Ul(e,t,a){e.pendingLanes|=t,e.suspendedLanes&=~t;var o=31-Io(t);e.entangledLanes|=t,e.entanglements[o]=e.entanglements[o]|1073741824|a&261930}function _l(e,t){var a=e.entangledLanes|=t;for(e=e.entanglements;a;){var o=31-Io(a),n=1<<o;n&t|e[o]&t&&(e[o]|=t),a&=~n}}function Hl(e,t){var a=t&-t;return a=(a&42)!==0?1:Fl(a),(a&(e.suspendedLanes|t))!==0?0:a}function Fl(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 yd(e,t,a){if(In)for(e=e.pendingUpdatersLaneMap;0<a;){var o=31-Io(a),n=1<<o;e[o].add(t),a&=~n}}function Ns(e,t){if(In)for(var a=e.pendingUpdatersLaneMap,o=e.memoizedUpdaters;0<t;){var n=31-Io(t);e=1<<n,n=a[n],0<n.size&&(n.forEach(function(s){var d=s.alternate;d!==null&&o.has(d)||o.add(s)}),n.clear()),t&=~e}}function L(e){return e&=-e,sr!==0&&sr<e?Gr!==0&&Gr<e?(e&134217727)!==0?Rn:pm:Gr:sr}function U(){var e=Kt.p;if(e!==0)return e;return e=window.event,e===void 0?Rn:ML(e.type)}function ie(e,t){var a=Kt.p;try{return Kt.p=e,t()}finally{Kt.p=a}}function ye(e){delete e[ho],delete e[Ro],delete e[Pv],delete e[MA],delete e[AA]}function Re(e){var t=e[ho];if(t)return t;for(var a=e.parentNode;a;){if(t=a[Qs]||a[ho]){if(a=t.alternate,t.child!==null||a!==null&&a.child!==null)for(e=hL(e);e!==null;){if(a=e[ho])return a;e=hL(e)}return t}e=a,a=e.parentNode}return null}function at(e){if(e=e[ho]||e[Qs]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function ot(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error("getNodeFromInstance: Invalid argument.")}function zt(e){var t=e[jL];return t||(t=e[jL]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function ze(e){e[oc]=!0}function bo(e,t){Ko(e,t),Ko(e+"Capture",t)}function Ko(e,t){ri[e]&&console.error("EventRegistry: More than one plugin attempted to publish the same registration name, `%s`.",e),ri[e]=t;var a=e.toLowerCase();Uv[a]=e,e==="onDoubleClick"&&(Uv.ondblclick=e);for(e=0;e<t.length;e++)$L.add(t[e])}function qs(e,t){DA[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 vd(e){if(Fr.call(YL,e))return!0;if(Fr.call(XL,e))return!1;if(EA.test(e))return YL[e]=!0;return XL[e]=!0,console.error("Invalid attribute name: `%s`",e),!1}function Ux(e,t,a){if(vd(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 Te(a,t),e===""+a?a:e}}function Jf(e,t,a){if(vd(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}}Te(a,t),e.setAttribute(t,""+a)}}function ep(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}Te(a,t),e.setAttribute(t,""+a)}}function Kn(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}Te(o,a),e.setAttributeNS(t,a,""+o)}}function vr(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return Ne(e),e;default:return""}}function _x(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function RR(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:s}=o;return Object.defineProperty(e,t,{configurable:!0,get:function(){return n.call(this)},set:function(d){Ne(d),a=""+d,s.call(this,d)}}),Object.defineProperty(e,t,{enumerable:o.enumerable}),{getValue:function(){return a},setValue:function(d){Ne(d),a=""+d},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function bg(e){if(!e._valueTracker){var t=_x(e)?"checked":"value";e._valueTracker=RR(e,t,""+e[t])}}function Hx(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var a=t.getValue(),o="";return e&&(o=_x(e)?e.checked?"true":"false":e.value),e=o,e!==a?(t.setValue(e),!0):!1}function tp(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 br(e){return e.replace(NA,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function Fx(e,t){t.checked===void 0||t.defaultChecked===void 0||QL||(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",G()||"A component",t.type),QL=!0),t.value===void 0||t.defaultValue===void 0||KL||(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",G()||"A component",t.type),KL=!0)}function xg(e,t,a,o,n,s,d,p){if(e.name="",d!=null&&typeof d!=="function"&&typeof d!=="symbol"&&typeof d!=="boolean"?(Te(d,"type"),e.type=d):e.removeAttribute("type"),t!=null)if(d==="number"){if(t===0&&e.value===""||e.value!=t)e.value=""+vr(t)}else e.value!==""+vr(t)&&(e.value=""+vr(t));else d!=="submit"&&d!=="reset"||e.removeAttribute("value");t!=null?Sg(e,d,vr(t)):a!=null?Sg(e,d,vr(a)):o!=null&&e.removeAttribute("value"),n==null&&s!=null&&(e.defaultChecked=!!s),n!=null&&(e.checked=n&&typeof n!=="function"&&typeof n!=="symbol"),p!=null&&typeof p!=="function"&&typeof p!=="symbol"&&typeof p!=="boolean"?(Te(p,"name"),e.name=""+vr(p)):e.removeAttribute("name")}function Gx(e,t,a,o,n,s,d,p){if(s!=null&&typeof s!=="function"&&typeof s!=="symbol"&&typeof s!=="boolean"&&(Te(s,"type"),e.type=s),t!=null||a!=null){if(!(s!=="submit"&&s!=="reset"||t!==void 0&&t!==null)){bg(e);return}a=a!=null?""+vr(a):"",t=t!=null?""+vr(t):a,p||t===e.value||(e.value=t),e.defaultValue=t}o=o!=null?o:n,o=typeof o!=="function"&&typeof o!=="symbol"&&!!o,e.checked=p?e.checked:!!o,e.defaultChecked=!!o,d!=null&&typeof d!=="function"&&typeof d!=="symbol"&&typeof d!=="boolean"&&(Te(d,"name"),e.name=d),bg(e)}function Sg(e,t,a){t==="number"&&tp(e.ownerDocument)===e||e.defaultValue===""+a||(e.defaultValue=""+a)}function Vx(e,t){t.value==null&&(typeof t.children==="object"&&t.children!==null?Ku.Children.forEach(t.children,function(a){a==null||typeof a==="string"||typeof a==="number"||typeof a==="bigint"||ZL||(ZL=!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||JL||(JL=!0,console.error("Pass a `value` prop if you set dangerouslyInnerHTML so React knows which value should be selected."))),t.selected==null||WL||(console.error("Use the `defaultValue` or `value` props on <select> instead of setting `selected` on <option>."),WL=!0)}function jx(){var e=G();return e?`
34
-
35
- Check the render method of \``+e+"`.":""}function Xi(e,t,a,o){if(e=e.options,t){t={};for(var n=0;n<a.length;n++)t["$"+a[n]]=!0;for(a=0;a<e.length;a++)n=t.hasOwnProperty("$"+e[a].value),e[a].selected!==n&&(e[a].selected=n),n&&o&&(e[a].defaultSelected=!0)}else{a=""+vr(a),t=null;for(n=0;n<e.length;n++){if(e[n].value===a){e[n].selected=!0,o&&(e[n].defaultSelected=!0);return}t!==null||e[n].disabled||(t=e[n])}t!==null&&(t.selected=!0)}}function $x(e,t){for(e=0;e<tC.length;e++){var a=tC[e];if(t[a]!=null){var o=Wa(t[a]);t.multiple&&!o?console.error("The `%s` prop supplied to <select> must be an array if `multiple` is true.%s",a,jx()):!t.multiple&&o&&console.error("The `%s` prop supplied to <select> must be a scalar value if `multiple` is false.%s",a,jx())}}t.value===void 0||t.defaultValue===void 0||eC||(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"),eC=!0)}function Xx(e,t){t.value===void 0||t.defaultValue===void 0||aC||(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",G()||"A component"),aC=!0),t.children!=null&&t.value==null&&console.error("Use the `defaultValue` or `value` props instead of setting children on <textarea>.")}function Yx(e,t,a){if(t!=null&&(t=""+vr(t),t!==e.value&&(e.value=t),a==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=a!=null?""+vr(a):""}function Kx(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(Wa(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=vr(t),e.defaultValue=a,o=e.textContent,o===a&&o!==""&&o!==null&&(e.value=o),bg(e)}function Qx(e,t){return e.serverProps===void 0&&e.serverTail.length===0&&e.children.length===1&&3<e.distanceFromLeaf&&e.distanceFromLeaf>15-t?Qx(e.children[0],t):e}function Qo(e){return" "+" ".repeat(e)}function Yi(e){return"+ "+" ".repeat(e)}function Gl(e){return"- "+" ".repeat(e)}function Wx(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 bd(e,t){return oC.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 ap(e,t,a){var o=120-2*a;if(t===null)return Yi(a)+bd(e,o)+`
36
- `;if(typeof t==="string"){for(var n=0;n<t.length&&n<e.length&&t.charCodeAt(n)===e.charCodeAt(n);n++);return n>o-8&&10<n&&(e="..."+e.slice(n-8),t="..."+t.slice(n-8)),Yi(a)+bd(e,o)+`
37
- `+Gl(a)+bd(t,o)+`
38
- `}return Qo(a)+bd(e,o)+`
39
- `}function kg(e){return Object.prototype.toString.call(e).replace(/^\[object (.*)\]$/,function(t,a){return a})}function xd(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(Wa(e))return"[...]";if(e.$$typeof===Ln)return(t=ee(e.type))?"<"+t+">":"<...>";var a=kg(e);if(a==="Object"){a="",t-=2;for(var o in e)if(e.hasOwnProperty(o)){var n=JSON.stringify(o);if(n!=='"'+o+'"'&&(o=n),t-=o.length-2,n=xd(e[o],15>t?t:15),t-=n.length,0>t){a+=a===""?"...":", ...";break}a+=(a===""?"":",")+o+":"+n}return"{"+a+"}"}return a;case"function":return(t=e.displayName||e.name)?"function "+t:"function";default:return String(e)}}function Ki(e,t){return typeof e!=="string"||oC.test(e)?"{"+xd(e,t-2)+"}":e.length>t-2?5>t?'"..."':'"'+e.slice(0,t-5)+'..."':'"'+e+'"'}function Lg(e,t,a){var o=120-a.length-e.length,n=[],s;for(s in t)if(t.hasOwnProperty(s)&&s!=="children"){var d=Ki(t[s],120-a.length-s.length-1);o-=s.length+d.length+2,n.push(s+"="+d)}return n.length===0?a+"<"+e+`>
40
- `:0<o?a+"<"+e+" "+n.join(" ")+`>
33
+ `+p.stack}return d}function H(e,t,a,o,r,s,d){var p=ln;Ce(e);try{return e!==null&&e._debugTask?e._debugTask.run(t.bind(null,a,o,r,s,d)):t(a,o,r,s,d)}finally{Ce(p)}throw Error("runWithFiberInDEV should never be called in production. This is a bug in React.")}function Ce(e){K.getCurrentStack=e===null?null:Ke,Ir=!1,ln=e}function he(e){return typeof Symbol==="function"&&Symbol.toStringTag&&e[Symbol.toStringTag]||e.constructor.name||"Object"}function st(e){try{return Be(e),!1}catch(t){return!0}}function Be(e){return""+e}function ke(e,t){if(st(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,he(e)),Be(e)}function Xt(e,t){if(st(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,he(e)),Be(e)}function Ne(e){if(st(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.",he(e)),Be(e)}function Aa(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{mu=t.inject(e),Lo=t}catch(a){console.error("React instrumentation encountered an error: %o.",a)}return t.checkDCE?!0:!1}function Yt(e){if(typeof IA==="function"&&RA(e),Lo&&typeof Lo.setStrictMode==="function")try{Lo.setStrictMode(mu,e)}catch(t){Rr||(Rr=!0,console.error("React instrumentation encountered an error: %o",t))}}function Vi(e){return e>>>=0,e===0?32:31-(MA(e)/AA|0)|0}function qt(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 ca(e,t,a){var o=e.pendingLanes;if(o===0)return 0;var r=0,s=e.suspendedLanes,d=e.pingedLanes;e=e.warmLanes;var p=o&134217727;return p!==0?(o=p&~s,o!==0?r=qt(o):(d&=p,d!==0?r=qt(d):a||(a=p&~e,a!==0&&(r=qt(a))))):(p=o&~s,p!==0?r=qt(p):d!==0?r=qt(d):a||(a=o&~e,a!==0&&(r=qt(a)))),r===0?0:t!==0&&t!==r&&(t&s)===0&&(s=r&-r,a=t&-t,s>=a||s===32&&(a&4194048)!==0)?t:r}function fo(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function Pl(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 ji(){var e=hm;return hm<<=1,(hm&62914560)===0&&(hm=4194304),e}function $i(e){for(var t=[],a=0;31>a;a++)t.push(e);return t}function qs(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function tp(e,t,a,o,r,s){var d=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:p,expirationTimes:b,hiddenUpdates:k}=e;for(a=d&~a;0<a;){var q=31-Ao(a),B=1<<q;p[q]=0,b[q]=-1;var D=k[q];if(D!==null)for(k[q]=null,q=0;q<D.length;q++){var F=D[q];F!==null&&(F.lane&=-536870913)}a&=~B}o!==0&&Ul(e,o,0),s!==0&&r===0&&e.tag!==0&&(e.suspendedLanes|=s&~(d&~t))}function Ul(e,t,a){e.pendingLanes|=t,e.suspendedLanes&=~t;var o=31-Ao(t);e.entangledLanes|=t,e.entanglements[o]=e.entanglements[o]|1073741824|a&261930}function _l(e,t){var a=e.entangledLanes|=t;for(e=e.entanglements;a;){var o=31-Ao(a),r=1<<o;r&t|e[o]&t&&(e[o]|=t),a&=~r}}function Hl(e,t){var a=t&-t;return a=(a&42)!==0?1:Fl(a),(a&(e.suspendedLanes|t))!==0?0:a}function Fl(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 vd(e,t,a){if(Mr)for(e=e.pendingUpdatersLaneMap;0<a;){var o=31-Ao(a),r=1<<o;e[o].add(t),a&=~r}}function Os(e,t){if(Mr)for(var a=e.pendingUpdatersLaneMap,o=e.memoizedUpdaters;0<t;){var r=31-Ao(t);e=1<<r,r=a[r],0<r.size&&(r.forEach(function(s){var d=s.alternate;d!==null&&o.has(d)||o.add(s)}),r.clear()),t&=~e}}function L(e){return e&=-e,un!==0&&un<e?jn!==0&&jn<e?(e&134217727)!==0?Ar:gm:jn:un}function U(){var e=Qt.p;if(e!==0)return e;return e=window.event,e===void 0?Ar:ML(e.type)}function le(e,t){var a=Qt.p;try{return Qt.p=e,t()}finally{Qt.p=a}}function ye(e){delete e[go],delete e[Do],delete e[_v],delete e[DA],delete e[EA]}function Re(e){var t=e[go];if(t)return t;for(var a=e.parentNode;a;){if(t=a[Zs]||a[go]){if(a=t.alternate,t.child!==null||a!==null&&a.child!==null)for(e=hL(e);e!==null;){if(a=e[go])return a;e=hL(e)}return t}e=a,a=e.parentNode}return null}function at(e){if(e=e[go]||e[Zs]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function ot(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error("getNodeFromInstance: Invalid argument.")}function zt(e){var t=e[jL];return t||(t=e[jL]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function ze(e){e[nc]=!0}function So(e,t){Wo(e,t),Wo(e+"Capture",t)}function Wo(e,t){ni[e]&&console.error("EventRegistry: More than one plugin attempted to publish the same registration name, `%s`.",e),ni[e]=t;var a=e.toLowerCase();Hv[a]=e,e==="onDoubleClick"&&(Hv.ondblclick=e);for(e=0;e<t.length;e++)$L.add(t[e])}function Bs(e,t){NA[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 bd(e){if(Vn.call(YL,e))return!0;if(Vn.call(XL,e))return!1;if(qA.test(e))return YL[e]=!0;return XL[e]=!0,console.error("Invalid attribute name: `%s`",e),!1}function Ux(e,t,a){if(bd(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 ke(a,t),e===""+a?a:e}}function ap(e,t,a){if(bd(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}}ke(a,t),e.setAttribute(t,""+a)}}function op(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}ke(a,t),e.setAttribute(t,""+a)}}function Wr(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}ke(o,a),e.setAttributeNS(t,a,""+o)}}function xn(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return Ne(e),e;default:return""}}function _x(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function AR(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:s}=o;return Object.defineProperty(e,t,{configurable:!0,get:function(){return r.call(this)},set:function(d){Ne(d),a=""+d,s.call(this,d)}}),Object.defineProperty(e,t,{enumerable:o.enumerable}),{getValue:function(){return a},setValue:function(d){Ne(d),a=""+d},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Sg(e){if(!e._valueTracker){var t=_x(e)?"checked":"value";e._valueTracker=AR(e,t,""+e[t])}}function Hx(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var a=t.getValue(),o="";return e&&(o=_x(e)?e.checked?"true":"false":e.value),e=o,e!==a?(t.setValue(e),!0):!1}function np(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 Sn(e){return e.replace(OA,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function Fx(e,t){t.checked===void 0||t.defaultChecked===void 0||QL||(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",X()||"A component",t.type),QL=!0),t.value===void 0||t.defaultValue===void 0||KL||(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",X()||"A component",t.type),KL=!0)}function kg(e,t,a,o,r,s,d,p){if(e.name="",d!=null&&typeof d!=="function"&&typeof d!=="symbol"&&typeof d!=="boolean"?(ke(d,"type"),e.type=d):e.removeAttribute("type"),t!=null)if(d==="number"){if(t===0&&e.value===""||e.value!=t)e.value=""+xn(t)}else e.value!==""+xn(t)&&(e.value=""+xn(t));else d!=="submit"&&d!=="reset"||e.removeAttribute("value");t!=null?Lg(e,d,xn(t)):a!=null?Lg(e,d,xn(a)):o!=null&&e.removeAttribute("value"),r==null&&s!=null&&(e.defaultChecked=!!s),r!=null&&(e.checked=r&&typeof r!=="function"&&typeof r!=="symbol"),p!=null&&typeof p!=="function"&&typeof p!=="symbol"&&typeof p!=="boolean"?(ke(p,"name"),e.name=""+xn(p)):e.removeAttribute("name")}function Gx(e,t,a,o,r,s,d,p){if(s!=null&&typeof s!=="function"&&typeof s!=="symbol"&&typeof s!=="boolean"&&(ke(s,"type"),e.type=s),t!=null||a!=null){if(!(s!=="submit"&&s!=="reset"||t!==void 0&&t!==null)){Sg(e);return}a=a!=null?""+xn(a):"",t=t!=null?""+xn(t):a,p||t===e.value||(e.value=t),e.defaultValue=t}o=o!=null?o:r,o=typeof o!=="function"&&typeof o!=="symbol"&&!!o,e.checked=p?e.checked:!!o,e.defaultChecked=!!o,d!=null&&typeof d!=="function"&&typeof d!=="symbol"&&typeof d!=="boolean"&&(ke(d,"name"),e.name=d),Sg(e)}function Lg(e,t,a){t==="number"&&np(e.ownerDocument)===e||e.defaultValue===""+a||(e.defaultValue=""+a)}function Vx(e,t){t.value==null&&(typeof t.children==="object"&&t.children!==null?Ku.Children.forEach(t.children,function(a){a==null||typeof a==="string"||typeof a==="number"||typeof a==="bigint"||ZL||(ZL=!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||JL||(JL=!0,console.error("Pass a `value` prop if you set dangerouslyInnerHTML so React knows which value should be selected."))),t.selected==null||WL||(console.error("Use the `defaultValue` or `value` props on <select> instead of setting `selected` on <option>."),WL=!0)}function jx(){var e=X();return e?`
34
+
35
+ Check the render method of \``+e+"`.":""}function Xi(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=""+xn(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 $x(e,t){for(e=0;e<tC.length;e++){var a=tC[e];if(t[a]!=null){var o=Za(t[a]);t.multiple&&!o?console.error("The `%s` prop supplied to <select> must be an array if `multiple` is true.%s",a,jx()):!t.multiple&&o&&console.error("The `%s` prop supplied to <select> must be a scalar value if `multiple` is false.%s",a,jx())}}t.value===void 0||t.defaultValue===void 0||eC||(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"),eC=!0)}function Xx(e,t){t.value===void 0||t.defaultValue===void 0||aC||(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",X()||"A component"),aC=!0),t.children!=null&&t.value==null&&console.error("Use the `defaultValue` or `value` props instead of setting children on <textarea>.")}function Yx(e,t,a){if(t!=null&&(t=""+xn(t),t!==e.value&&(e.value=t),a==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=a!=null?""+xn(a):""}function Kx(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(Za(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=xn(t),e.defaultValue=a,o=e.textContent,o===a&&o!==""&&o!==null&&(e.value=o),Sg(e)}function Qx(e,t){return e.serverProps===void 0&&e.serverTail.length===0&&e.children.length===1&&3<e.distanceFromLeaf&&e.distanceFromLeaf>15-t?Qx(e.children[0],t):e}function Zo(e){return" "+" ".repeat(e)}function Yi(e){return"+ "+" ".repeat(e)}function Gl(e){return"- "+" ".repeat(e)}function Wx(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 xd(e,t){return oC.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 rp(e,t,a){var o=120-2*a;if(t===null)return Yi(a)+xd(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)),Yi(a)+xd(e,o)+`
37
+ `+Gl(a)+xd(t,o)+`
38
+ `}return Zo(a)+xd(e,o)+`
39
+ `}function Cg(e){return Object.prototype.toString.call(e).replace(/^\[object (.*)\]$/,function(t,a){return a})}function Sd(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(Za(e))return"[...]";if(e.$$typeof===wr)return(t=ee(e.type))?"<"+t+">":"<...>";var a=Cg(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=Sd(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 Ki(e,t){return typeof e!=="string"||oC.test(e)?"{"+Sd(e,t-2)+"}":e.length>t-2?5>t?'"..."':'"'+e.slice(0,t-5)+'..."':'"'+e+'"'}function wg(e,t,a){var o=120-a.length-e.length,r=[],s;for(s in t)if(t.hasOwnProperty(s)&&s!=="children"){var d=Ki(t[s],120-a.length-s.length-1);o-=s.length+d.length+2,r.push(s+"="+d)}return r.length===0?a+"<"+e+`>
40
+ `:0<o?a+"<"+e+" "+r.join(" ")+`>
41
41
  `:a+"<"+e+`
42
- `+a+" "+n.join(`
42
+ `+a+" "+r.join(`
43
43
  `+a+" ")+`
44
44
  `+a+`>
45
- `}function MR(e,t,a){var o="",n=St({},t),s;for(s in e)if(e.hasOwnProperty(s)){delete n[s];var d=120-2*a-s.length-2,p=xd(e[s],d);t.hasOwnProperty(s)?(d=xd(t[s],d),o+=Yi(a)+s+": "+p+`
45
+ `}function DR(e,t,a){var o="",r=kt({},t),s;for(s in e)if(e.hasOwnProperty(s)){delete r[s];var d=120-2*a-s.length-2,p=Sd(e[s],d);t.hasOwnProperty(s)?(d=Sd(t[s],d),o+=Yi(a)+s+": "+p+`
46
46
  `,o+=Gl(a)+s+": "+d+`
47
47
  `):o+=Yi(a)+s+": "+p+`
48
- `}for(var b in n)n.hasOwnProperty(b)&&(e=xd(n[b],120-2*a-b.length-2),o+=Gl(a)+b+": "+e+`
49
- `);return o}function AR(e,t,a,o){var n="",s=new Map;for(k in a)a.hasOwnProperty(k)&&s.set(k.toLowerCase(),k);if(s.size===1&&s.has("children"))n+=Lg(e,t,Qo(o));else{for(var d in t)if(t.hasOwnProperty(d)&&d!=="children"){var p=120-2*(o+1)-d.length-1,b=s.get(d.toLowerCase());if(b!==void 0){s.delete(d.toLowerCase());var k=t[d];b=a[b];var O=Ki(k,p);p=Ki(b,p),typeof k==="object"&&k!==null&&typeof b==="object"&&b!==null&&kg(k)==="Object"&&kg(b)==="Object"&&(2<Object.keys(k).length||2<Object.keys(b).length||-1<O.indexOf("...")||-1<p.indexOf("..."))?n+=Qo(o+1)+d+`={{
50
- `+MR(k,b,o+2)+Qo(o+1)+`}}
51
- `:(n+=Yi(o+1)+d+"="+O+`
52
- `,n+=Gl(o+1)+d+"="+p+`
53
- `)}else n+=Qo(o+1)+d+"="+Ki(t[d],p)+`
54
- `}s.forEach(function(B){if(B!=="children"){var D=120-2*(o+1)-B.length-1;n+=Gl(o+1)+B+"="+Ki(a[B],D)+`
55
- `}}),n=n===""?Qo(o)+"<"+e+`>
56
- `:Qo(o)+"<"+e+`
57
- `+n+Qo(o)+`>
58
- `}if(e=a.children,t=t.children,typeof e==="string"||typeof e==="number"||typeof e==="bigint"){if(s="",typeof t==="string"||typeof t==="number"||typeof t==="bigint")s=""+t;n+=ap(s,""+e,o+1)}else if(typeof t==="string"||typeof t==="number"||typeof t==="bigint")n=e==null?n+ap(""+t,null,o+1):n+ap(""+t,void 0,o+1);return n}function Zx(e,t){var a=Wx(e);if(a===null){a="";for(e=e.child;e;)a+=Zx(e,t),e=e.sibling;return a}return Qo(t)+"<"+a+`>
59
- `}function Cg(e,t){var a=Qx(e,t);if(a!==e&&(e.children.length!==1||e.children[0]!==a))return Qo(t)+`...
60
- `+Cg(a,t+1);a="";var o=e.fiber._debugInfo;if(o)for(var n=0;n<o.length;n++){var s=o[n].name;typeof s==="string"&&(a+=Qo(t)+"<"+s+`>
61
- `,t++)}if(o="",n=e.fiber.pendingProps,e.fiber.tag===6)o=ap(n,e.serverProps,t),t++;else if(s=Wx(e.fiber),s!==null)if(e.serverProps===void 0){o=t;var d=120-2*o-s.length-2,p="";for(k in n)if(n.hasOwnProperty(k)&&k!=="children"){var b=Ki(n[k],15);if(d-=k.length+b.length+2,0>d){p+=" ...";break}p+=" "+k+"="+b}o=Qo(o)+"<"+s+p+`>
62
- `,t++}else e.serverProps===null?(o=Lg(s,n,Yi(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=AR(s,n,e.serverProps,t),t++);var k="";n=e.fiber.child;for(s=0;n&&s<e.children.length;)d=e.children[s],d.fiber===n?(k+=Cg(d,t),s++):k+=Zx(n,t),n=n.sibling;n&&0<e.children.length&&(k+=Qo(t)+`...
63
- `),n=e.serverTail,e.serverProps===null&&t--;for(e=0;e<n.length;e++)s=n[e],k=typeof s==="string"?k+(Gl(t)+bd(s,120-2*t)+`
64
- `):k+Lg(s.type,s.props,Gl(t));return a+o+k}function wg(e){try{return`
65
-
66
- `+Cg(e,0)}catch(t){return""}}function Jx(e,t,a){for(var o=t,n=null,s=0;o;)o===e&&(s=0),n={fiber:o,children:n!==null?[n]:[],serverProps:o===t?a:o===e?null:void 0,serverTail:[],distanceFromLeaf:s},s++,o=o.return;return n!==null?wg(n).replaceAll(/^[+-]/gm,">"):""}function e0(e,t){var a=St({},e||nC),o={tag:t};if(rC.indexOf(t)!==-1&&(a.aTagInScope=null,a.buttonTagInScope=null,a.nobrTagInScope=null),OA.indexOf(t)!==-1&&(a.pTagInButtonScope=null),qA.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 t0(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 BA.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 DR(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 a0(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 Tg(e,t){t=t||nC;var a=t.current;if(t=(a=t0(e,a&&a.tag,t.implicitRootScope)?null:a)?null:DR(e,t),t=a||t,!t)return!0;var o=t.tag;if(t=String(!!a)+"|"+e+"|"+o,mm[t])return!1;mm[t]=!0;var n=(t=nr)?a0(t.return,o):null,s=t!==null&&n!==null?Jx(n,t,null):"",d="<"+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
48
+ `}for(var b in r)r.hasOwnProperty(b)&&(e=Sd(r[b],120-2*a-b.length-2),o+=Gl(a)+b+": "+e+`
49
+ `);return o}function ER(e,t,a,o){var r="",s=new Map;for(k in a)a.hasOwnProperty(k)&&s.set(k.toLowerCase(),k);if(s.size===1&&s.has("children"))r+=wg(e,t,Zo(o));else{for(var d in t)if(t.hasOwnProperty(d)&&d!=="children"){var p=120-2*(o+1)-d.length-1,b=s.get(d.toLowerCase());if(b!==void 0){s.delete(d.toLowerCase());var k=t[d];b=a[b];var q=Ki(k,p);p=Ki(b,p),typeof k==="object"&&k!==null&&typeof b==="object"&&b!==null&&Cg(k)==="Object"&&Cg(b)==="Object"&&(2<Object.keys(k).length||2<Object.keys(b).length||-1<q.indexOf("...")||-1<p.indexOf("..."))?r+=Zo(o+1)+d+`={{
50
+ `+DR(k,b,o+2)+Zo(o+1)+`}}
51
+ `:(r+=Yi(o+1)+d+"="+q+`
52
+ `,r+=Gl(o+1)+d+"="+p+`
53
+ `)}else r+=Zo(o+1)+d+"="+Ki(t[d],p)+`
54
+ `}s.forEach(function(B){if(B!=="children"){var D=120-2*(o+1)-B.length-1;r+=Gl(o+1)+B+"="+Ki(a[B],D)+`
55
+ `}}),r=r===""?Zo(o)+"<"+e+`>
56
+ `:Zo(o)+"<"+e+`
57
+ `+r+Zo(o)+`>
58
+ `}if(e=a.children,t=t.children,typeof e==="string"||typeof e==="number"||typeof e==="bigint"){if(s="",typeof t==="string"||typeof t==="number"||typeof t==="bigint")s=""+t;r+=rp(s,""+e,o+1)}else if(typeof t==="string"||typeof t==="number"||typeof t==="bigint")r=e==null?r+rp(""+t,null,o+1):r+rp(""+t,void 0,o+1);return r}function Zx(e,t){var a=Wx(e);if(a===null){a="";for(e=e.child;e;)a+=Zx(e,t),e=e.sibling;return a}return Zo(t)+"<"+a+`>
59
+ `}function Tg(e,t){var a=Qx(e,t);if(a!==e&&(e.children.length!==1||e.children[0]!==a))return Zo(t)+`...
60
+ `+Tg(a,t+1);a="";var o=e.fiber._debugInfo;if(o)for(var r=0;r<o.length;r++){var s=o[r].name;typeof s==="string"&&(a+=Zo(t)+"<"+s+`>
61
+ `,t++)}if(o="",r=e.fiber.pendingProps,e.fiber.tag===6)o=rp(r,e.serverProps,t),t++;else if(s=Wx(e.fiber),s!==null)if(e.serverProps===void 0){o=t;var d=120-2*o-s.length-2,p="";for(k in r)if(r.hasOwnProperty(k)&&k!=="children"){var b=Ki(r[k],15);if(d-=k.length+b.length+2,0>d){p+=" ...";break}p+=" "+k+"="+b}o=Zo(o)+"<"+s+p+`>
62
+ `,t++}else e.serverProps===null?(o=wg(s,r,Yi(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=ER(s,r,e.serverProps,t),t++);var k="";r=e.fiber.child;for(s=0;r&&s<e.children.length;)d=e.children[s],d.fiber===r?(k+=Tg(d,t),s++):k+=Zx(r,t),r=r.sibling;r&&0<e.children.length&&(k+=Zo(t)+`...
63
+ `),r=e.serverTail,e.serverProps===null&&t--;for(e=0;e<r.length;e++)s=r[e],k=typeof s==="string"?k+(Gl(t)+xd(s,120-2*t)+`
64
+ `):k+wg(s.type,s.props,Gl(t));return a+o+k}function Ig(e){try{return`
65
+
66
+ `+Tg(e,0)}catch(t){return""}}function Jx(e,t,a){for(var o=t,r=null,s=0;o;)o===e&&(s=0),r={fiber:o,children:r!==null?[r]:[],serverProps:o===t?a:o===e?null:void 0,serverTail:[],distanceFromLeaf:s},s++,o=o.return;return r!==null?Ig(r).replaceAll(/^[+-]/gm,">"):""}function e0(e,t){var a=kt({},e||rC),o={tag:t};if(nC.indexOf(t)!==-1&&(a.aTagInScope=null,a.buttonTagInScope=null,a.nobrTagInScope=null),zA.indexOf(t)!==-1&&(a.pTagInButtonScope=null),BA.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 t0(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 PA.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 NR(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 a0(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 Rg(e,t){t=t||rC;var a=t.current;if(t=(a=t0(e,a&&a.tag,t.implicitRootScope)?null:a)?null:NR(e,t),t=a||t,!t)return!0;var o=t.tag;if(t=String(!!a)+"|"+e+"|"+o,ym[t])return!1;ym[t]=!0;var r=(t=ln)?a0(t.return,o):null,s=t!==null&&r!==null?Jx(r,t,null):"",d="<"+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
67
  This will cause a hydration error.%s`,d,o,a,s)):console.error(`In HTML, %s cannot be a descendant of <%s>.
68
- This will cause a hydration error.%s`,d,o,s),t&&(e=t.return,n===null||e===null||n===e&&e._debugOwner===t._debugOwner||Q(n,function(){console.error(`<%s> cannot contain a nested %s.
69
- See this log for the ancestor stack trace.`,o,d)})),!1}function op(e,t,a){if(a||t0("#text",t,!1))return!0;if(a="#text|"+t,mm[a])return!1;mm[a]=!0;var o=(a=nr)?a0(a,t):null;return a=a!==null&&o!==null?Jx(o,a,a.tag!==6?{children:null}:null):"",/\S/.test(e)?console.error(`In HTML, text nodes cannot be a child of <%s>.
68
+ This will cause a hydration error.%s`,d,o,s),t&&(e=t.return,r===null||e===null||r===e&&e._debugOwner===t._debugOwner||H(r,function(){console.error(`<%s> cannot contain a nested %s.
69
+ See this log for the ancestor stack trace.`,o,d)})),!1}function sp(e,t,a){if(a||t0("#text",t,!1))return!0;if(a="#text|"+t,ym[a])return!1;ym[a]=!0;var o=(a=ln)?a0(a,t):null;return a=a!==null&&o!==null?Jx(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 Sd(e,t){if(t){var a=e.firstChild;if(a&&a===e.lastChild&&a.nodeType===3){a.nodeValue=t;return}}e.textContent=t}function ER(e){return e.replace(UA,function(t,a){return a.toUpperCase()})}function o0(e,t,a){var o=t.indexOf("--")===0;o||(-1<t.indexOf("-")?hu.hasOwnProperty(t)&&hu[t]||(hu[t]=!0,console.error("Unsupported style property %s. Did you mean %s?",t,ER(t.replace(PA,"ms-")))):zA.test(t)?hu.hasOwnProperty(t)&&hu[t]||(hu[t]=!0,console.error("Unsupported vendor-prefixed style property %s. Did you mean %s?",t,t.charAt(0).toUpperCase()+t.slice(1))):!iC.test(a)||Hv.hasOwnProperty(a)&&Hv[a]||(Hv[a]=!0,console.error(`Style property values shouldn't contain a semicolon. Try "%s: %s" instead.`,t,a.replace(iC,""))),typeof a==="number"&&(isNaN(a)?uC||(uC=!0,console.error("`NaN` is an invalid value for the `%s` css style property.",t)):isFinite(a)||dC||(dC=!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||cC.has(t)?t==="float"?e.cssFloat=a:(va(a,t),e[t]=(""+a).trim()):e[t]=a+"px"}function r0(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 s=_v[n]||[n],d=0;d<s.length;d++)o[s[d]]=n}for(var p in t)if(t.hasOwnProperty(p)&&(!a||a[p]!==t[p]))for(n=_v[p]||[p],s=0;s<n.length;s++)o[n[s]]=p;p={};for(var b in t)for(n=_v[b]||[b],s=0;s<n.length;s++)p[n[s]]=b;b={};for(var k in o)if(n=o[k],(s=p[k])&&n!==s&&(d=n+","+s,!b[d])){b[d]=!0,d=console;var O=t[n];d.error.call(d,"%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,s)}}for(var B in a)!a.hasOwnProperty(B)||t!=null&&t.hasOwnProperty(B)||(B.indexOf("--")===0?e.setProperty(B,""):B==="float"?e.cssFloat="":e[B]="");for(var D in t)k=t[D],t.hasOwnProperty(D)&&a[D]!==k&&o0(e,D,k)}else for(o in t)t.hasOwnProperty(o)&&o0(e,o,t[o])}function kd(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 n0(e){return _A.get(e)||e}function NR(e,t){if(Fr.call(yu,t)&&yu[t])return!0;if(FA.test(t)){if(e="aria-"+t.slice(4).toLowerCase(),e=fC.hasOwnProperty(e)?e:null,e==null)return console.error("Invalid ARIA attribute `%s`. ARIA attributes follow the pattern aria-* and must be lowercase.",t),yu[t]=!0;if(t!==e)return console.error("Invalid ARIA attribute `%s`. Did you mean `%s`?",t,e),yu[t]=!0}if(HA.test(t)){if(e=t.toLowerCase(),e=fC.hasOwnProperty(e)?e:null,e==null)return yu[t]=!0,!1;t!==e&&(console.error("Unknown ARIA attribute `%s`. Did you mean `%s`?",t,e),yu[t]=!0)}return!0}function qR(e,t){var a=[],o;for(o in t)NR(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 OR(e,t,a,o){if(Fr.call(Mo,t)&&Mo[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."),Mo[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),Mo[t]=!0;if(mC.test(t))return console.error("Unknown event handler property `%s`. It will be ignored.",t),Mo[t]=!0}else if(mC.test(t))return GA.test(t)&&console.error("Invalid event handler property `%s`. React events use the camelCase naming convention, for example `onClick`.",t),Mo[t]=!0;if(VA.test(t)||jA.test(t))return!0;if(n==="innerhtml")return console.error("Directly setting property `innerHTML` is not permitted. For more information, lookup documentation on `dangerouslySetInnerHTML`."),Mo[t]=!0;if(n==="aria")return console.error("The `aria` attribute is reserved for future use in React. Pass individual `aria-` attributes instead."),Mo[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),Mo[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),Mo[t]=!0;if(gm.hasOwnProperty(n)){if(n=gm[n],n!==t)return console.error("Invalid DOM property `%s`. Did you mean `%s`?",t,n),Mo[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),Mo[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),Mo[t]=!0}case"function":case"symbol":return Mo[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),Mo[t]=!0}}return!0}function BR(e,t,a){var o=[],n;for(n in t)OR(e,n,t[n],a)||o.push(n);t=o.map(function(s){return"`"+s+"`"}).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 Ld(e){return $A.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function Qn(){}function Ig(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}function s0(e){var t=at(e);if(t&&(e=t.stateNode)){var a=e[Ro]||null;e:switch(e=t.stateNode,t.type){case"input":if(xg(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;Te(t,"name"),a=a.querySelectorAll('input[name="'+br(""+t)+'"][type="radio"]');for(t=0;t<a.length;t++){var o=a[t];if(o!==e&&o.form===e.form){var n=o[Ro]||null;if(!n)throw Error("ReactDOMInput: Mixing React and non-React radio inputs with the same `name` is not supported.");xg(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&&Hx(o)}break e;case"textarea":Yx(e,a.value,a.defaultValue);break e;case"select":t=a.value,t!=null&&Xi(e,!!a.multiple,t,!1)}}}function l0(e,t,a){if(Fv)return e(t,a);Fv=!0;try{var o=e(t);return o}finally{if(Fv=!1,vu!==null||bu!==null){if(nu(),vu&&(t=vu,e=bu,bu=vu=null,s0(t),e))for(t=0;t<e.length;t++)s0(e[t])}}}function Cd(e,t){var a=e.stateNode;if(a===null)return null;var o=a[Ro]||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 i0(){if(ym)return ym;var e,t=Vv,a=t.length,o,n="value"in Ws?Ws.value:Ws.textContent,s=n.length;for(e=0;e<a&&t[e]===n[e];e++);var d=a-e;for(o=1;o<=d&&t[a-o]===n[s-o];o++);return ym=n.slice(e,1<o?1-o:void 0)}function rp(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 np(){return!0}function u0(){return!1}function Uo(e){function t(a,o,n,s,d){this._reactName=a,this._targetInst=n,this.type=o,this.nativeEvent=s,this.target=d,this.currentTarget=null;for(var p in e)e.hasOwnProperty(p)&&(a=e[p],this[p]=a?a(s):s[p]);return this.isDefaultPrevented=(s.defaultPrevented!=null?s.defaultPrevented:s.returnValue===!1)?np:u0,this.isPropagationStopped=u0,this}return St(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=np)},stopPropagation:function(){var a=this.nativeEvent;a&&(a.stopPropagation?a.stopPropagation():typeof a.cancelBubble!=="unknown"&&(a.cancelBubble=!0),this.isPropagationStopped=np)},persist:function(){},isPersistent:np}),t}function zR(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=nD[e])?!!t[e]:!1}function Rg(){return zR}function d0(e,t){switch(e){case"keyup":return yD.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==vC;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function c0(e){return e=e.detail,typeof e==="object"&&"data"in e?e.data:null}function PR(e,t){switch(e){case"compositionend":return c0(t);case"keypress":if(t.which!==xC)return null;return kC=!0,SC;case"textInput":return e=t.data,e===SC&&kC?null:e;default:return null}}function UR(e,t){if(xu)return e==="compositionend"||!Yv&&d0(e,t)?(e=i0(),ym=Vv=Ws=null,xu=!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 bC&&t.locale!=="ko"?null:t.data;default:return null}}function f0(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!bD[e.type]:t==="textarea"?!0:!1}function _R(e){if(!Mn)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 p0(e,t,a,o){vu?bu?bu.push(o):bu=[o]:vu=o,t=Wp(t,"onChange"),0<t.length&&(a=new vm("onChange","change",null,a,o),e.push({event:a,listeners:t}))}function HR(e){Kk(e,0)}function sp(e){var t=ot(e);if(Hx(t))return e}function m0(e,t){if(e==="change")return t}function h0(){uc&&(uc.detachEvent("onpropertychange",g0),dc=uc=null)}function g0(e){if(e.propertyName==="value"&&sp(dc)){var t=[];p0(t,dc,e,Ig(e)),l0(HR,t)}}function FR(e,t,a){e==="focusin"?(h0(),uc=t,dc=a,uc.attachEvent("onpropertychange",g0)):e==="focusout"&&h0()}function GR(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return sp(dc)}function VR(e,t){if(e==="click")return sp(t)}function jR(e,t){if(e==="input"||e==="change")return sp(t)}function $R(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}function wd(e,t){if(Ao(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(!Fr.call(t,n)||!Ao(e[n],t[n]))return!1}return!0}function y0(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function v0(e,t){var a=y0(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=y0(a)}}function b0(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?b0(e,t.parentNode):("contains"in e)?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function x0(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=tp(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=tp(e.document)}return t}function Mg(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 S0(e,t,a){var o=a.window===a?a.document:a.nodeType===9?a:a.ownerDocument;Qv||Su==null||Su!==tp(o)||(o=Su,("selectionStart"in o)&&Mg(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}),cc&&wd(cc,o)||(cc=o,o=Wp(Kv,"onSelect"),0<o.length&&(t=new vm("onSelect","select",null,t,a),e.push({event:t,listeners:o}),t.target=Su)))}function Vl(e,t){var a={};return a[e.toLowerCase()]=t.toLowerCase(),a["Webkit"+e]="webkit"+t,a["Moz"+e]="moz"+t,a}function jl(e){if(Wv[e])return Wv[e];if(!ku[e])return e;var t=ku[e],a;for(a in t)if(t.hasOwnProperty(a)&&a in CC)return Wv[e]=t[a];return e}function Ur(e,t){MC.set(e,t),bo(t,[e])}function XR(e){for(var t=xm,a=0;a<e.length;a++){var o=e[a];if(typeof o==="object"&&o!==null)if(Wa(o)&&o.length===2&&typeof o[0]==="string"){if(t!==xm&&t!==ab)return eb;t=ab}else return eb;else{if(typeof o==="function"||typeof o==="string"&&50<o.length||t!==xm&&t!==tb)return eb;t=tb}}return t}function Ag(e,t,a,o){for(var n in e)Fr.call(e,n)&&n[0]!=="_"&&sn(n,e[n],t,a,o)}function sn(e,t,a,o,n){switch(typeof t){case"object":if(t===null){t="null";break}else{if(t.$$typeof===Ln){var s=ee(t.type)||"…",d=t.key;t=t.props;var p=Object.keys(t),b=p.length;if(d==null&&b===0){t="<"+s+" />";break}if(3>o||b===1&&p[0]==="children"&&d==null){t="<"+s+" … />";break}a.push([n+"  ".repeat(o)+e,"<"+s]),d!==null&&sn("key",d,a,o+1,n),e=!1;for(var k in t)k==="children"?t.children!=null&&(!Wa(t.children)||0<t.children.length)&&(e=!0):Fr.call(t,k)&&k[0]!=="_"&&sn(k,t[k],a,o+1,n);a.push(["",e?">…</"+s+">":"/>"]);return}if(s=Object.prototype.toString.call(t),s=s.slice(8,s.length-1),s==="Array"){if(k=XR(t),k===tb||k===xm){t=JSON.stringify(t);break}else if(k===ab){a.push([n+"  ".repeat(o)+e,""]);for(e=0;e<t.length;e++)s=t[e],sn(s[0],s[1],a,o+1,n);return}}if(s==="Promise"){if(t.status==="fulfilled"){if(s=a.length,sn(e,t.value,a,o,n),a.length>s){a=a[s],a[1]="Promise<"+(a[1]||"Object")+">";return}}else if(t.status==="rejected"&&(s=a.length,sn(e,t.reason,a,o,n),a.length>s)){a=a[s],a[1]="Rejected Promise<"+a[1]+">";return}a.push(["  ".repeat(o)+e,"Promise"]);return}s==="Object"&&(k=Object.getPrototypeOf(t))&&typeof k.constructor==="function"&&(s=k.constructor.name),a.push([n+"  ".repeat(o)+e,s==="Object"?3>o?"":"…":s]),3>o&&Ag(t,a,o+1,n);return}case"function":t=t.name===""?"() => {}":t.name+"() {}";break;case"string":t=t===TD?"…":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 k0(e,t,a,o){var n=!0;for(d in e)d in t||(a.push([Sm+"  ".repeat(o)+d,"…"]),n=!1);for(var s in t)if(s in e){var d=e[s],p=t[s];if(d!==p){if(o===0&&s==="children")n="  ".repeat(o)+s,a.push([Sm+n,"…"],[km+n,"…"]);else{if(!(3<=o)){if(typeof d==="object"&&typeof p==="object"&&d!==null&&p!==null&&d.$$typeof===p.$$typeof)if(p.$$typeof===Ln){if(d.type===p.type&&d.key===p.key){d=ee(p.type)||"…",n="  ".repeat(o)+s,d="<"+d+" … />",a.push([Sm+n,d],[km+n,d]),n=!1;continue}}else{var b=Object.prototype.toString.call(d),k=Object.prototype.toString.call(p);if(b===k&&(k==="[object Object]"||k==="[object Array]")){b=[EC+"  ".repeat(o)+s,k==="[object Array]"?"Array":""],a.push(b),k=a.length,k0(d,p,a,o+1)?k===a.length&&(b[1]="Referentially unequal but deeply equal objects. Consider memoization."):n=!1;continue}}else if(typeof d==="function"&&typeof p==="function"&&d.name===p.name&&d.length===p.length&&(b=Function.prototype.toString.call(d),k=Function.prototype.toString.call(p),b===k)){d=p.name===""?"() => {}":p.name+"() {}",a.push([EC+"  ".repeat(o)+s,d+" Referentially unequal function closure. Consider memoization."]);continue}}sn(s,d,a,o,Sm),sn(s,p,a,o,km)}n=!1}}else a.push([km+"  ".repeat(o)+s,"…"]),n=!1;return n}function Wo(e){Tt=e&63?"Blocking":e&64?"Gesture":e&4194176?"Transition":e&62914560?"Suspense":e&2080374784?"Idle":"Other"}function ln(e,t,a,o){ca&&(Js.start=t,Js.end=a,ns.color="warning",ns.tooltipText=o,ns.properties=null,(e=e._debugTask)?e.run(performance.measure.bind(performance,o,Js)):performance.measure(o,Js))}function lp(e,t,a){ln(e,t,a,"Reconnect")}function ip(e,t,a,o,n){var s=X(e);if(s!==null&&ca){var{alternate:d,actualDuration:p}=e;if(d===null||d.child!==e.child)for(var b=e.child;b!==null;b=b.sibling)p-=b.actualDuration;o=0.5>p?o?"tertiary-light":"primary-light":10>p?o?"tertiary":"primary":100>p?o?"tertiary-dark":"primary-dark":"error";var k=e.memoizedProps;p=e._debugTask,k!==null&&d!==null&&d.memoizedProps!==k?(b=[ID],k=k0(d.memoizedProps,k,b,0),1<b.length&&(k&&!Zs&&(d.lanes&n)===0&&100<e.actualDuration?(Zs=!0,b[0]=RD,ns.color="warning",ns.tooltipText=NC):(ns.color=o,ns.tooltipText=s),ns.properties=b,Js.start=t,Js.end=a,p!=null?p.run(performance.measure.bind(performance,"​"+s,Js)):performance.measure("​"+s,Js))):p!=null?p.run(console.timeStamp.bind(console,s,t,a,Sr,void 0,o)):console.timeStamp(s,t,a,Sr,void 0,o)}}function Dg(e,t,a,o){if(ca){var n=X(e);if(n!==null){for(var s=null,d=[],p=0;p<o.length;p++){var b=o[p];s==null&&b.source!==null&&(s=b.source._debugTask),b=b.value,d.push(["Error",typeof b==="object"&&b!==null&&typeof b.message==="string"?String(b.message):String(b)])}e.key!==null&&sn("key",e.key,d,0,""),e.memoizedProps!==null&&Ag(e.memoizedProps,d,0,""),s==null&&(s=e._debugTask),e={start:t,end:a,detail:{devtools:{color:"error",track:Sr,tooltipText:e.tag===13?"Hydration failed":"Error boundary caught an error",properties:d}}},s?s.run(performance.measure.bind(performance,"​"+n,e)):performance.measure("​"+n,e)}}}function un(e,t,a,o,n){if(n!==null){if(ca){var s=X(e);if(s!==null){o=[];for(var d=0;d<n.length;d++){var p=n[d].value;o.push(["Error",typeof p==="object"&&p!==null&&typeof p.message==="string"?String(p.message):String(p)])}e.key!==null&&sn("key",e.key,o,0,""),e.memoizedProps!==null&&Ag(e.memoizedProps,o,0,""),t={start:t,end:a,detail:{devtools:{color:"error",track:Sr,tooltipText:"A lifecycle or effect errored",properties:o}}},(e=e._debugTask)?e.run(performance.measure.bind(performance,"​"+s,t)):performance.measure("​"+s,t)}}}else s=X(e),s!==null&&ca&&(n=1>o?"secondary-light":100>o?"secondary":500>o?"secondary-dark":"error",(e=e._debugTask)?e.run(console.timeStamp.bind(console,s,t,a,Sr,void 0,n)):console.timeStamp(s,t,a,Sr,void 0,n))}function YR(e,t,a,o){if(ca&&!(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,Tt,kt,n)):console.timeStamp(a,e,t,Tt,kt,n)}}function L0(e,t,a,o){!ca||t<=e||(a=(a&738197653)===a?"tertiary-dark":"primary-dark",o?o.run(console.timeStamp.bind(console,"Prewarm",e,t,Tt,kt,a)):console.timeStamp("Prewarm",e,t,Tt,kt,a))}function C0(e,t,a,o){!ca||t<=e||(a=(a&738197653)===a?"tertiary-dark":"primary-dark",o?o.run(console.timeStamp.bind(console,"Suspended",e,t,Tt,kt,a)):console.timeStamp("Suspended",e,t,Tt,kt,a))}function KR(e,t,a,o,n,s){if(ca&&!(t<=e)){a=[];for(var d=0;d<o.length;d++){var p=o[d].value;a.push(["Recoverable Error",typeof p==="object"&&p!==null&&typeof p.message==="string"?String(p.message):String(p)])}e={start:e,end:t,detail:{devtools:{color:"primary-dark",track:Tt,trackGroup:kt,tooltipText:n?"Hydration Failed":"Recovered after Error",properties:a}}},s?s.run(performance.measure.bind(performance,"Recovered",e)):performance.measure("Recovered",e)}}function Eg(e,t,a,o){!ca||t<=e||(o?o.run(console.timeStamp.bind(console,"Errored",e,t,Tt,kt,"error")):console.timeStamp("Errored",e,t,Tt,kt,"error"))}function QR(e,t,a,o){!ca||t<=e||(o?o.run(console.timeStamp.bind(console,a,e,t,Tt,kt,"secondary-light")):console.timeStamp(a,e,t,Tt,kt,"secondary-light"))}function w0(e,t,a,o,n){if(ca&&!(t<=e)){for(var s=[],d=0;d<a.length;d++){var p=a[d].value;s.push(["Error",typeof p==="object"&&p!==null&&typeof p.message==="string"?String(p.message):String(p)])}e={start:e,end:t,detail:{devtools:{color:"error",track:Tt,trackGroup:kt,tooltipText:o?"Remaining Effects Errored":"Commit Errored",properties:s}}},n?n.run(performance.measure.bind(performance,"Errored",e)):performance.measure("Errored",e)}}function Td(e,t,a){!ca||t<=e||(a?a.run(console.timeStamp.bind(console,"Animating",e,t,Tt,kt,"secondary-dark")):console.timeStamp("Animating",e,t,Tt,kt,"secondary-dark"))}function up(){for(var e=Lu,t=ob=Lu=0;t<e;){var a=kr[t];kr[t++]=null;var o=kr[t];kr[t++]=null;var n=kr[t];kr[t++]=null;var s=kr[t];if(kr[t++]=null,o!==null&&n!==null){var d=o.pending;d===null?n.next=n:(n.next=d.next,d.next=n),o.pending=n}s!==0&&T0(a,n,s)}}function dp(e,t,a,o){kr[Lu++]=e,kr[Lu++]=t,kr[Lu++]=a,kr[Lu++]=o,ob|=o,e.lanes|=o,e=e.alternate,e!==null&&(e.lanes|=o)}function Ng(e,t,a,o){return dp(e,t,a,o),cp(e)}function xo(e,t){return dp(e,null,null,t),cp(e)}function T0(e,t,a){e.lanes|=a;var o=e.alternate;o!==null&&(o.lanes|=a);for(var n=!1,s=e.return;s!==null;)s.childLanes|=a,o=s.alternate,o!==null&&(o.childLanes|=a),s.tag===22&&(e=s.stateNode,e===null||e._visibility&fc||(n=!0)),e=s,s=s.return;return e.tag===3?(s=e.stateNode,n&&t!==null&&(n=31-Io(a),e=s.hiddenUpdates,o=e[n],o===null?e[n]=[t]:o.push(t),t.lane=a|536870912),s):null}function cp(e){if(Uc>GD)throw xi=Uc=0,_c=Bb=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.");xi>VD&&(xi=0,_c=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&&Fk(e);for(var t=e,a=t.return;a!==null;)t.alternate===null&&(t.flags&4098)!==0&&Fk(e),t=a,a=t.return;return t.tag===3?t.stateNode:null}function $l(e){if(Lr===null)return e;var t=Lr(e);return t===void 0?e:t.current}function qg(e){if(Lr===null)return e;var t=Lr(e);return t===void 0?e!==null&&e!==void 0&&typeof e.render==="function"&&(t=$l(e.render),e.render!==t)?(t={$$typeof:ec,render:t},e.displayName!==void 0&&(t.displayName=e.displayName),t):e:t.current}function I0(e,t){if(Lr===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===rr&&(o=!0);break;case 11:n===ec?o=!0:n===rr&&(o=!0);break;case 14:case 15:n===im?o=!0:n===rr&&(o=!0);break;default:return!1}return o&&(e=Lr(a),e!==void 0&&e===Lr(t))?!0:!1}function R0(e){Lr!==null&&typeof WeakSet==="function"&&(Cu===null&&(Cu=new WeakSet),Cu.add(e))}function M0(e,t,a){do{var o=e,n=o.alternate,s=o.child,d=o.sibling,p=o.tag;o=o.type;var b=null;switch(p){case 0:case 15:case 1:b=o;break;case 11:b=o.render}if(Lr===null)throw Error("Expected resolveFamily to be set during hot reload.");var k=!1;if(o=!1,b!==null&&(b=Lr(b),b!==void 0&&(a.has(b)?o=!0:t.has(b)&&(p===1?o=!0:k=!0))),Cu!==null&&(Cu.has(e)||n!==null&&Cu.has(n))&&(o=!0),o&&(e._debugNeedsRemount=!0),o||k)n=xo(e,2),n!==null&&Ta(n,e,2);if(s===null||o||M0(s,t,a),d===null)break;e=d}while(1)}function WR(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,qC||typeof Object.preventExtensions!=="function"||Object.preventExtensions(this)}function Og(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Wn(e,t){var a=e.alternate;switch(a===null?(a=C(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=$l(e.type);break;case 1:a.type=$l(e.type);break;case 11:a.type=qg(e.type)}return a}function A0(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 Bg(e,t,a,o,n,s){var d=0,p=e;if(typeof e==="function")Og(e)&&(d=1),p=$l(p);else if(typeof e==="string")d=Ae(),d=sA(e,a,d)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case Rv:return t=C(31,a,t,n),t.elementType=Rv,t.lanes=s,t;case fu:return Xl(a.children,n,s,t);case lm:d=8,n|=ko,n|=Vr;break;case Cv: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=C(12,e,t,o|ct),t.elementType=Cv,t.lanes=s,t.stateNode={effectDuration:0,passiveEffectDuration:0},t;case Tv:return t=C(13,a,t,n),t.elementType=Tv,t.lanes=s,t;case Iv:return t=C(19,a,t,n),t.elementType=Iv,t.lanes=s,t;default:if(typeof e==="object"&&e!==null)switch(e.$$typeof){case Cn:d=10;break e;case wv:d=9;break e;case ec:d=11,p=qg(p);break e;case im:d=14;break e;case rr:d=16,p=null;break e}if(p="",e===void 0||typeof e==="object"&&e!==null&&Object.keys(e).length===0)p+=" 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":Wa(e)?a="array":e!==void 0&&e.$$typeof===Ln?(a="<"+(ee(e.type)||"Unknown")+" />",p=" Did you accidentally export a JSX literal instead of a component?"):a=typeof e,(d=o?H(o):null)&&(p+=`
71
+ This will cause a hydration error.%s`,t,a),!1}function kd(e,t){if(t){var a=e.firstChild;if(a&&a===e.lastChild&&a.nodeType===3){a.nodeValue=t;return}}e.textContent=t}function qR(e){return e.replace(HA,function(t,a){return a.toUpperCase()})}function o0(e,t,a){var o=t.indexOf("--")===0;o||(-1<t.indexOf("-")?hu.hasOwnProperty(t)&&hu[t]||(hu[t]=!0,console.error("Unsupported style property %s. Did you mean %s?",t,qR(t.replace(_A,"ms-")))):UA.test(t)?hu.hasOwnProperty(t)&&hu[t]||(hu[t]=!0,console.error("Unsupported vendor-prefixed style property %s. Did you mean %s?",t,t.charAt(0).toUpperCase()+t.slice(1))):!iC.test(a)||Gv.hasOwnProperty(a)&&Gv[a]||(Gv[a]=!0,console.error(`Style property values shouldn't contain a semicolon. Try "%s: %s" instead.`,t,a.replace(iC,""))),typeof a==="number"&&(isNaN(a)?uC||(uC=!0,console.error("`NaN` is an invalid value for the `%s` css style property.",t)):isFinite(a)||dC||(dC=!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||cC.has(t)?t==="float"?e.cssFloat=a:(Xt(a,t),e[t]=(""+a).trim()):e[t]=a+"px"}function n0(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 s=Fv[r]||[r],d=0;d<s.length;d++)o[s[d]]=r}for(var p in t)if(t.hasOwnProperty(p)&&(!a||a[p]!==t[p]))for(r=Fv[p]||[p],s=0;s<r.length;s++)o[r[s]]=p;p={};for(var b in t)for(r=Fv[b]||[b],s=0;s<r.length;s++)p[r[s]]=b;b={};for(var k in o)if(r=o[k],(s=p[k])&&r!==s&&(d=r+","+s,!b[d])){b[d]=!0,d=console;var q=t[r];d.error.call(d,"%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,s)}}for(var B in a)!a.hasOwnProperty(B)||t!=null&&t.hasOwnProperty(B)||(B.indexOf("--")===0?e.setProperty(B,""):B==="float"?e.cssFloat="":e[B]="");for(var D in t)k=t[D],t.hasOwnProperty(D)&&a[D]!==k&&o0(e,D,k)}else for(o in t)t.hasOwnProperty(o)&&o0(e,o,t[o])}function Ld(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 r0(e){return FA.get(e)||e}function OR(e,t){if(Vn.call(yu,t)&&yu[t])return!0;if(VA.test(t)){if(e="aria-"+t.slice(4).toLowerCase(),e=fC.hasOwnProperty(e)?e:null,e==null)return console.error("Invalid ARIA attribute `%s`. ARIA attributes follow the pattern aria-* and must be lowercase.",t),yu[t]=!0;if(t!==e)return console.error("Invalid ARIA attribute `%s`. Did you mean `%s`?",t,e),yu[t]=!0}if(GA.test(t)){if(e=t.toLowerCase(),e=fC.hasOwnProperty(e)?e:null,e==null)return yu[t]=!0,!1;t!==e&&(console.error("Unknown ARIA attribute `%s`. Did you mean `%s`?",t,e),yu[t]=!0)}return!0}function BR(e,t){var a=[],o;for(o in t)OR(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 zR(e,t,a,o){if(Vn.call(Eo,t)&&Eo[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."),Eo[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),Eo[t]=!0;if(mC.test(t))return console.error("Unknown event handler property `%s`. It will be ignored.",t),Eo[t]=!0}else if(mC.test(t))return jA.test(t)&&console.error("Invalid event handler property `%s`. React events use the camelCase naming convention, for example `onClick`.",t),Eo[t]=!0;if($A.test(t)||XA.test(t))return!0;if(r==="innerhtml")return console.error("Directly setting property `innerHTML` is not permitted. For more information, lookup documentation on `dangerouslySetInnerHTML`."),Eo[t]=!0;if(r==="aria")return console.error("The `aria` attribute is reserved for future use in React. Pass individual `aria-` attributes instead."),Eo[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),Eo[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),Eo[t]=!0;if(bm.hasOwnProperty(r)){if(r=bm[r],r!==t)return console.error("Invalid DOM property `%s`. Did you mean `%s`?",t,r),Eo[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),Eo[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),Eo[t]=!0}case"function":case"symbol":return Eo[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),Eo[t]=!0}}return!0}function PR(e,t,a){var o=[],r;for(r in t)zR(e,r,t[r],a)||o.push(r);t=o.map(function(s){return"`"+s+"`"}).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 Cd(e){return YA.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function Zr(){}function Mg(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}function s0(e){var t=at(e);if(t&&(e=t.stateNode)){var a=e[Do]||null;e:switch(e=t.stateNode,t.type){case"input":if(kg(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;ke(t,"name"),a=a.querySelectorAll('input[name="'+Sn(""+t)+'"][type="radio"]');for(t=0;t<a.length;t++){var o=a[t];if(o!==e&&o.form===e.form){var r=o[Do]||null;if(!r)throw Error("ReactDOMInput: Mixing React and non-React radio inputs with the same `name` is not supported.");kg(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&&Hx(o)}break e;case"textarea":Yx(e,a.value,a.defaultValue);break e;case"select":t=a.value,t!=null&&Xi(e,!!a.multiple,t,!1)}}}function l0(e,t,a){if(Vv)return e(t,a);Vv=!0;try{var o=e(t);return o}finally{if(Vv=!1,vu!==null||bu!==null){if(ru(),vu&&(t=vu,e=bu,bu=vu=null,s0(t),e))for(t=0;t<e.length;t++)s0(e[t])}}}function wd(e,t){var a=e.stateNode;if(a===null)return null;var o=a[Do]||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 i0(){if(xm)return xm;var e,t=$v,a=t.length,o,r="value"in Js?Js.value:Js.textContent,s=r.length;for(e=0;e<a&&t[e]===r[e];e++);var d=a-e;for(o=1;o<=d&&t[a-o]===r[s-o];o++);return xm=r.slice(e,1<o?1-o:void 0)}function lp(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 ip(){return!0}function u0(){return!1}function Ho(e){function t(a,o,r,s,d){this._reactName=a,this._targetInst=r,this.type=o,this.nativeEvent=s,this.target=d,this.currentTarget=null;for(var p in e)e.hasOwnProperty(p)&&(a=e[p],this[p]=a?a(s):s[p]);return this.isDefaultPrevented=(s.defaultPrevented!=null?s.defaultPrevented:s.returnValue===!1)?ip:u0,this.isPropagationStopped=u0,this}return kt(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=ip)},stopPropagation:function(){var a=this.nativeEvent;a&&(a.stopPropagation?a.stopPropagation():typeof a.cancelBubble!=="unknown"&&(a.cancelBubble=!0),this.isPropagationStopped=ip)},persist:function(){},isPersistent:ip}),t}function UR(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=lD[e])?!!t[e]:!1}function Ag(){return UR}function d0(e,t){switch(e){case"keyup":return bD.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==vC;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function c0(e){return e=e.detail,typeof e==="object"&&"data"in e?e.data:null}function _R(e,t){switch(e){case"compositionend":return c0(t);case"keypress":if(t.which!==xC)return null;return kC=!0,SC;case"textInput":return e=t.data,e===SC&&kC?null:e;default:return null}}function HR(e,t){if(xu)return e==="compositionend"||!Qv&&d0(e,t)?(e=i0(),xm=$v=Js=null,xu=!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 bC&&t.locale!=="ko"?null:t.data;default:return null}}function f0(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!SD[e.type]:t==="textarea"?!0:!1}function FR(e){if(!Dr)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 p0(e,t,a,o){vu?bu?bu.push(o):bu=[o]:vu=o,t=em(t,"onChange"),0<t.length&&(a=new Sm("onChange","change",null,a,o),e.push({event:a,listeners:t}))}function GR(e){Kk(e,0)}function up(e){var t=ot(e);if(Hx(t))return e}function m0(e,t){if(e==="change")return t}function h0(){dc&&(dc.detachEvent("onpropertychange",g0),cc=dc=null)}function g0(e){if(e.propertyName==="value"&&up(cc)){var t=[];p0(t,cc,e,Mg(e)),l0(GR,t)}}function VR(e,t,a){e==="focusin"?(h0(),dc=t,cc=a,dc.attachEvent("onpropertychange",g0)):e==="focusout"&&h0()}function jR(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return up(cc)}function $R(e,t){if(e==="click")return up(t)}function XR(e,t){if(e==="input"||e==="change")return up(t)}function YR(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}function Td(e,t){if(No(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(!Vn.call(t,r)||!No(e[r],t[r]))return!1}return!0}function y0(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function v0(e,t){var a=y0(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=y0(a)}}function b0(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?b0(e,t.parentNode):("contains"in e)?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function x0(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=np(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=np(e.document)}return t}function Dg(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 S0(e,t,a){var o=a.window===a?a.document:a.nodeType===9?a:a.ownerDocument;Zv||Su==null||Su!==np(o)||(o=Su,("selectionStart"in o)&&Dg(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}),fc&&Td(fc,o)||(fc=o,o=em(Wv,"onSelect"),0<o.length&&(t=new Sm("onSelect","select",null,t,a),e.push({event:t,listeners:o}),t.target=Su)))}function Vl(e,t){var a={};return a[e.toLowerCase()]=t.toLowerCase(),a["Webkit"+e]="webkit"+t,a["Moz"+e]="moz"+t,a}function jl(e){if(Jv[e])return Jv[e];if(!ku[e])return e;var t=ku[e],a;for(a in t)if(t.hasOwnProperty(a)&&a in CC)return Jv[e]=t[a];return e}function Hn(e,t){MC.set(e,t),So(t,[e])}function KR(e){for(var t=Lm,a=0;a<e.length;a++){var o=e[a];if(typeof o==="object"&&o!==null)if(Za(o)&&o.length===2&&typeof o[0]==="string"){if(t!==Lm&&t!==nb)return ab;t=nb}else return ab;else{if(typeof o==="function"||typeof o==="string"&&50<o.length||t!==Lm&&t!==ob)return ab;t=ob}}return t}function Eg(e,t,a,o){for(var r in e)Vn.call(e,r)&&r[0]!=="_"&&ur(r,e[r],t,a,o)}function ur(e,t,a,o,r){switch(typeof t){case"object":if(t===null){t="null";break}else{if(t.$$typeof===wr){var s=ee(t.type)||"…",d=t.key;t=t.props;var p=Object.keys(t),b=p.length;if(d==null&&b===0){t="<"+s+" />";break}if(3>o||b===1&&p[0]==="children"&&d==null){t="<"+s+" … />";break}a.push([r+"  ".repeat(o)+e,"<"+s]),d!==null&&ur("key",d,a,o+1,r),e=!1;for(var k in t)k==="children"?t.children!=null&&(!Za(t.children)||0<t.children.length)&&(e=!0):Vn.call(t,k)&&k[0]!=="_"&&ur(k,t[k],a,o+1,r);a.push(["",e?">…</"+s+">":"/>"]);return}if(s=Object.prototype.toString.call(t),s=s.slice(8,s.length-1),s==="Array"){if(k=KR(t),k===ob||k===Lm){t=JSON.stringify(t);break}else if(k===nb){a.push([r+"  ".repeat(o)+e,""]);for(e=0;e<t.length;e++)s=t[e],ur(s[0],s[1],a,o+1,r);return}}if(s==="Promise"){if(t.status==="fulfilled"){if(s=a.length,ur(e,t.value,a,o,r),a.length>s){a=a[s],a[1]="Promise<"+(a[1]||"Object")+">";return}}else if(t.status==="rejected"&&(s=a.length,ur(e,t.reason,a,o,r),a.length>s)){a=a[s],a[1]="Rejected Promise<"+a[1]+">";return}a.push(["  ".repeat(o)+e,"Promise"]);return}s==="Object"&&(k=Object.getPrototypeOf(t))&&typeof k.constructor==="function"&&(s=k.constructor.name),a.push([r+"  ".repeat(o)+e,s==="Object"?3>o?"":"…":s]),3>o&&Eg(t,a,o+1,r);return}case"function":t=t.name===""?"() => {}":t.name+"() {}";break;case"string":t=t===RD?"…":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 k0(e,t,a,o){var r=!0;for(d in e)d in t||(a.push([Cm+"  ".repeat(o)+d,"…"]),r=!1);for(var s in t)if(s in e){var d=e[s],p=t[s];if(d!==p){if(o===0&&s==="children")r="  ".repeat(o)+s,a.push([Cm+r,"…"],[wm+r,"…"]);else{if(!(3<=o)){if(typeof d==="object"&&typeof p==="object"&&d!==null&&p!==null&&d.$$typeof===p.$$typeof)if(p.$$typeof===wr){if(d.type===p.type&&d.key===p.key){d=ee(p.type)||"…",r="  ".repeat(o)+s,d="<"+d+" … />",a.push([Cm+r,d],[wm+r,d]),r=!1;continue}}else{var b=Object.prototype.toString.call(d),k=Object.prototype.toString.call(p);if(b===k&&(k==="[object Object]"||k==="[object Array]")){b=[EC+"  ".repeat(o)+s,k==="[object Array]"?"Array":""],a.push(b),k=a.length,k0(d,p,a,o+1)?k===a.length&&(b[1]="Referentially unequal but deeply equal objects. Consider memoization."):r=!1;continue}}else if(typeof d==="function"&&typeof p==="function"&&d.name===p.name&&d.length===p.length&&(b=Function.prototype.toString.call(d),k=Function.prototype.toString.call(p),b===k)){d=p.name===""?"() => {}":p.name+"() {}",a.push([EC+"  ".repeat(o)+s,d+" Referentially unequal function closure. Consider memoization."]);continue}}ur(s,d,a,o,Cm),ur(s,p,a,o,wm)}r=!1}}else a.push([wm+"  ".repeat(o)+s,"…"]),r=!1;return r}function Jo(e){wt=e&63?"Blocking":e&64?"Gesture":e&4194176?"Transition":e&62914560?"Suspense":e&2080374784?"Idle":"Other"}function dr(e,t,a,o){fa&&(tl.start=t,tl.end=a,ls.color="warning",ls.tooltipText=o,ls.properties=null,(e=e._debugTask)?e.run(performance.measure.bind(performance,o,tl)):performance.measure(o,tl))}function dp(e,t,a){dr(e,t,a,"Reconnect")}function cp(e,t,a,o,r){var s=V(e);if(s!==null&&fa){var{alternate:d,actualDuration:p}=e;if(d===null||d.child!==e.child)for(var b=e.child;b!==null;b=b.sibling)p-=b.actualDuration;o=0.5>p?o?"tertiary-light":"primary-light":10>p?o?"tertiary":"primary":100>p?o?"tertiary-dark":"primary-dark":"error";var k=e.memoizedProps;p=e._debugTask,k!==null&&d!==null&&d.memoizedProps!==k?(b=[MD],k=k0(d.memoizedProps,k,b,0),1<b.length&&(k&&!el&&(d.lanes&r)===0&&100<e.actualDuration?(el=!0,b[0]=AD,ls.color="warning",ls.tooltipText=NC):(ls.color=o,ls.tooltipText=s),ls.properties=b,tl.start=t,tl.end=a,p!=null?p.run(performance.measure.bind(performance,"​"+s,tl)):performance.measure("​"+s,tl))):p!=null?p.run(console.timeStamp.bind(console,s,t,a,Ln,void 0,o)):console.timeStamp(s,t,a,Ln,void 0,o)}}function Ng(e,t,a,o){if(fa){var r=V(e);if(r!==null){for(var s=null,d=[],p=0;p<o.length;p++){var b=o[p];s==null&&b.source!==null&&(s=b.source._debugTask),b=b.value,d.push(["Error",typeof b==="object"&&b!==null&&typeof b.message==="string"?String(b.message):String(b)])}e.key!==null&&ur("key",e.key,d,0,""),e.memoizedProps!==null&&Eg(e.memoizedProps,d,0,""),s==null&&(s=e._debugTask),e={start:t,end:a,detail:{devtools:{color:"error",track:Ln,tooltipText:e.tag===13?"Hydration failed":"Error boundary caught an error",properties:d}}},s?s.run(performance.measure.bind(performance,"​"+r,e)):performance.measure("​"+r,e)}}}function cr(e,t,a,o,r){if(r!==null){if(fa){var s=V(e);if(s!==null){o=[];for(var d=0;d<r.length;d++){var p=r[d].value;o.push(["Error",typeof p==="object"&&p!==null&&typeof p.message==="string"?String(p.message):String(p)])}e.key!==null&&ur("key",e.key,o,0,""),e.memoizedProps!==null&&Eg(e.memoizedProps,o,0,""),t={start:t,end:a,detail:{devtools:{color:"error",track:Ln,tooltipText:"A lifecycle or effect errored",properties:o}}},(e=e._debugTask)?e.run(performance.measure.bind(performance,"​"+s,t)):performance.measure("​"+s,t)}}}else s=V(e),s!==null&&fa&&(r=1>o?"secondary-light":100>o?"secondary":500>o?"secondary-dark":"error",(e=e._debugTask)?e.run(console.timeStamp.bind(console,s,t,a,Ln,void 0,r)):console.timeStamp(s,t,a,Ln,void 0,r))}function QR(e,t,a,o){if(fa&&!(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,wt,Lt,r)):console.timeStamp(a,e,t,wt,Lt,r)}}function L0(e,t,a,o){!fa||t<=e||(a=(a&738197653)===a?"tertiary-dark":"primary-dark",o?o.run(console.timeStamp.bind(console,"Prewarm",e,t,wt,Lt,a)):console.timeStamp("Prewarm",e,t,wt,Lt,a))}function C0(e,t,a,o){!fa||t<=e||(a=(a&738197653)===a?"tertiary-dark":"primary-dark",o?o.run(console.timeStamp.bind(console,"Suspended",e,t,wt,Lt,a)):console.timeStamp("Suspended",e,t,wt,Lt,a))}function WR(e,t,a,o,r,s){if(fa&&!(t<=e)){a=[];for(var d=0;d<o.length;d++){var p=o[d].value;a.push(["Recoverable Error",typeof p==="object"&&p!==null&&typeof p.message==="string"?String(p.message):String(p)])}e={start:e,end:t,detail:{devtools:{color:"primary-dark",track:wt,trackGroup:Lt,tooltipText:r?"Hydration Failed":"Recovered after Error",properties:a}}},s?s.run(performance.measure.bind(performance,"Recovered",e)):performance.measure("Recovered",e)}}function qg(e,t,a,o){!fa||t<=e||(o?o.run(console.timeStamp.bind(console,"Errored",e,t,wt,Lt,"error")):console.timeStamp("Errored",e,t,wt,Lt,"error"))}function ZR(e,t,a,o){!fa||t<=e||(o?o.run(console.timeStamp.bind(console,a,e,t,wt,Lt,"secondary-light")):console.timeStamp(a,e,t,wt,Lt,"secondary-light"))}function w0(e,t,a,o,r){if(fa&&!(t<=e)){for(var s=[],d=0;d<a.length;d++){var p=a[d].value;s.push(["Error",typeof p==="object"&&p!==null&&typeof p.message==="string"?String(p.message):String(p)])}e={start:e,end:t,detail:{devtools:{color:"error",track:wt,trackGroup:Lt,tooltipText:o?"Remaining Effects Errored":"Commit Errored",properties:s}}},r?r.run(performance.measure.bind(performance,"Errored",e)):performance.measure("Errored",e)}}function Id(e,t,a){!fa||t<=e||(a?a.run(console.timeStamp.bind(console,"Animating",e,t,wt,Lt,"secondary-dark")):console.timeStamp("Animating",e,t,wt,Lt,"secondary-dark"))}function fp(){for(var e=Lu,t=rb=Lu=0;t<e;){var a=Cn[t];Cn[t++]=null;var o=Cn[t];Cn[t++]=null;var r=Cn[t];Cn[t++]=null;var s=Cn[t];if(Cn[t++]=null,o!==null&&r!==null){var d=o.pending;d===null?r.next=r:(r.next=d.next,d.next=r),o.pending=r}s!==0&&T0(a,r,s)}}function pp(e,t,a,o){Cn[Lu++]=e,Cn[Lu++]=t,Cn[Lu++]=a,Cn[Lu++]=o,rb|=o,e.lanes|=o,e=e.alternate,e!==null&&(e.lanes|=o)}function Og(e,t,a,o){return pp(e,t,a,o),mp(e)}function ko(e,t){return pp(e,null,null,t),mp(e)}function T0(e,t,a){e.lanes|=a;var o=e.alternate;o!==null&&(o.lanes|=a);for(var r=!1,s=e.return;s!==null;)s.childLanes|=a,o=s.alternate,o!==null&&(o.childLanes|=a),s.tag===22&&(e=s.stateNode,e===null||e._visibility&pc||(r=!0)),e=s,s=s.return;return e.tag===3?(s=e.stateNode,r&&t!==null&&(r=31-Ao(a),e=s.hiddenUpdates,o=e[r],o===null?e[r]=[t]:o.push(t),t.lane=a|536870912),s):null}function mp(e){if(_c>jD)throw xi=_c=0,Hc=Pb=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.");xi>$D&&(xi=0,Hc=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&&Fk(e);for(var t=e,a=t.return;a!==null;)t.alternate===null&&(t.flags&4098)!==0&&Fk(e),t=a,a=t.return;return t.tag===3?t.stateNode:null}function $l(e){if(wn===null)return e;var t=wn(e);return t===void 0?e:t.current}function Bg(e){if(wn===null)return e;var t=wn(e);return t===void 0?e!==null&&e!==void 0&&typeof e.render==="function"&&(t=$l(e.render),e.render!==t)?(t={$$typeof:tc,render:t},e.displayName!==void 0&&(t.displayName=e.displayName),t):e:t.current}function I0(e,t){if(wn===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===sn&&(o=!0);break;case 11:r===tc?o=!0:r===sn&&(o=!0);break;case 14:case 15:r===cm?o=!0:r===sn&&(o=!0);break;default:return!1}return o&&(e=wn(a),e!==void 0&&e===wn(t))?!0:!1}function R0(e){wn!==null&&typeof WeakSet==="function"&&(Cu===null&&(Cu=new WeakSet),Cu.add(e))}function M0(e,t,a){do{var o=e,r=o.alternate,s=o.child,d=o.sibling,p=o.tag;o=o.type;var b=null;switch(p){case 0:case 15:case 1:b=o;break;case 11:b=o.render}if(wn===null)throw Error("Expected resolveFamily to be set during hot reload.");var k=!1;if(o=!1,b!==null&&(b=wn(b),b!==void 0&&(a.has(b)?o=!0:t.has(b)&&(p===1?o=!0:k=!0))),Cu!==null&&(Cu.has(e)||r!==null&&Cu.has(r))&&(o=!0),o&&(e._debugNeedsRemount=!0),o||k)r=ko(e,2),r!==null&&Ta(r,e,2);if(s===null||o||M0(s,t,a),d===null)break;e=d}while(1)}function JR(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,qC||typeof Object.preventExtensions!=="function"||Object.preventExtensions(this)}function zg(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Jr(e,t){var a=e.alternate;switch(a===null?(a=C(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=$l(e.type);break;case 1:a.type=$l(e.type);break;case 11:a.type=Bg(e.type)}return a}function A0(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 Pg(e,t,a,o,r,s){var d=0,p=e;if(typeof e==="function")zg(e)&&(d=1),p=$l(p);else if(typeof e==="string")d=Ae(),d=iA(e,a,d)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case Av:return t=C(31,a,t,r),t.elementType=Av,t.lanes=s,t;case fu:return Xl(a.children,r,s,t);case dm:d=8,r|=Co,r|=$n;break;case Tv: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=C(12,e,t,o|ct),t.elementType=Tv,t.lanes=s,t.stateNode={effectDuration:0,passiveEffectDuration:0},t;case Rv:return t=C(13,a,t,r),t.elementType=Rv,t.lanes=s,t;case Mv:return t=C(19,a,t,r),t.elementType=Mv,t.lanes=s,t;default:if(typeof e==="object"&&e!==null)switch(e.$$typeof){case Tr:d=10;break e;case Iv:d=9;break e;case tc:d=11,p=Bg(p);break e;case cm:d=14;break e;case sn:d=16,p=null;break e}if(p="",e===void 0||typeof e==="object"&&e!==null&&Object.keys(e).length===0)p+=" 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":Za(e)?a="array":e!==void 0&&e.$$typeof===wr?(a="<"+(ee(e.type)||"Unknown")+" />",p=" Did you accidentally export a JSX literal instead of a component?"):a=typeof e,(d=o?G(o):null)&&(p+=`
72
72
 
73
- Check the render method of \``+d+"`."),d=29,a=Error("Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) but got: "+(a+"."+p)),p=null}return t=C(d,a,t,n),t.elementType=e,t.type=p,t.lanes=s,t._debugOwner=o,t}function fp(e,t,a){return t=Bg(e.type,e.key,e.props,e._owner,t,a),t._debugOwner=e._owner,t._debugStack=e._debugStack,t._debugTask=e._debugTask,t}function Xl(e,t,a,o){return e=C(7,e,o,t),e.lanes=a,e}function zg(e,t,a){return e=C(6,e,null,t),e.lanes=a,e}function D0(e){var t=C(18,null,null,Ke);return t.stateNode=e,t}function Pg(e,t,a){return t=C(4,e.children!==null?e.children:[],e.key,t),t.lanes=a,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Zo(e,t){if(typeof e==="object"&&e!==null){var a=rb.get(e);if(a!==void 0)return a;return t={value:e,source:t,stack:ua(t)},rb.set(e,t),t}return{value:e,source:t,stack:ua(t)}}function Zn(e,t){Os(),wu[Tu++]=pc,wu[Tu++]=Lm,Lm=e,pc=t}function E0(e,t,a){Os(),Cr[wr++]=ls,Cr[wr++]=is,Cr[wr++]=si,si=e;var o=ls;e=is;var n=32-Io(o)-1;o&=~(1<<n),a+=1;var s=32-Io(t)+n;if(30<s){var d=n-n%5;s=(o&(1<<d)-1).toString(32),o>>=d,n-=d,ls=1<<32-Io(t)+n|a<<n|o,is=s+e}else ls=1<<s|a<<n|o,is=e}function Ug(e){Os(),e.return!==null&&(Zn(e,1),E0(e,1,0))}function _g(e){for(;e===Lm;)Lm=wu[--Tu],wu[Tu]=null,pc=wu[--Tu],wu[Tu]=null;for(;e===si;)si=Cr[--wr],Cr[wr]=null,is=Cr[--wr],Cr[wr]=null,ls=Cr[--wr],Cr[wr]=null}function N0(){return Os(),si!==null?{id:ls,overflow:is}:null}function q0(e,t){Os(),Cr[wr++]=ls,Cr[wr++]=is,Cr[wr++]=si,ls=t.id,is=t.overflow,si=e}function Os(){It||console.error("Expected to be hydrating. This is a bug in React. Please file an issue.")}function Yl(e,t){if(e.return===null){if(lr===null)lr={fiber:e,children:[],serverProps:void 0,serverTail:[],distanceFromLeaf:t};else{if(lr.fiber!==e)throw Error("Saw multiple hydration diff roots in a pass. This is a bug in React.");lr.distanceFromLeaf>t&&(lr.distanceFromLeaf=t)}return lr}var a=Yl(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 O0(){It&&console.error("We should not be hydrating here. This is a bug in React. Please file a bug.")}function pp(e,t){An||(e=Yl(e,0),e.serverProps=null,t!==null&&(t=pL(t),e.serverTail.push(t)))}function Bs(e){var t=1<arguments.length&&arguments[1]!==void 0?arguments[1]:!1,a="",o=lr;throw o!==null&&(lr=null,a=wg(o)),Id(Zo(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:
73
+ Check the render method of \``+d+"`."),d=29,a=Error("Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) but got: "+(a+"."+p)),p=null}return t=C(d,a,t,r),t.elementType=e,t.type=p,t.lanes=s,t._debugOwner=o,t}function hp(e,t,a){return t=Pg(e.type,e.key,e.props,e._owner,t,a),t._debugOwner=e._owner,t._debugStack=e._debugStack,t._debugTask=e._debugTask,t}function Xl(e,t,a,o){return e=C(7,e,o,t),e.lanes=a,e}function Ug(e,t,a){return e=C(6,e,null,t),e.lanes=a,e}function D0(e){var t=C(18,null,null,Qe);return t.stateNode=e,t}function _g(e,t,a){return t=C(4,e.children!==null?e.children:[],e.key,t),t.lanes=a,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function en(e,t){if(typeof e==="object"&&e!==null){var a=sb.get(e);if(a!==void 0)return a;return t={value:e,source:t,stack:sa(t)},sb.set(e,t),t}return{value:e,source:t,stack:sa(t)}}function es(e,t){zs(),wu[Tu++]=mc,wu[Tu++]=Tm,Tm=e,mc=t}function E0(e,t,a){zs(),Tn[In++]=us,Tn[In++]=ds,Tn[In++]=si,si=e;var o=us;e=ds;var r=32-Ao(o)-1;o&=~(1<<r),a+=1;var s=32-Ao(t)+r;if(30<s){var d=r-r%5;s=(o&(1<<d)-1).toString(32),o>>=d,r-=d,us=1<<32-Ao(t)+r|a<<r|o,ds=s+e}else us=1<<s|a<<r|o,ds=e}function Hg(e){zs(),e.return!==null&&(es(e,1),E0(e,1,0))}function Fg(e){for(;e===Tm;)Tm=wu[--Tu],wu[Tu]=null,mc=wu[--Tu],wu[Tu]=null;for(;e===si;)si=Tn[--In],Tn[In]=null,ds=Tn[--In],Tn[In]=null,us=Tn[--In],Tn[In]=null}function N0(){return zs(),si!==null?{id:us,overflow:ds}:null}function q0(e,t){zs(),Tn[In++]=us,Tn[In++]=ds,Tn[In++]=si,us=t.id,ds=t.overflow,si=e}function zs(){It||console.error("Expected to be hydrating. This is a bug in React. Please file an issue.")}function Yl(e,t){if(e.return===null){if(dn===null)dn={fiber:e,children:[],serverProps:void 0,serverTail:[],distanceFromLeaf:t};else{if(dn.fiber!==e)throw Error("Saw multiple hydration diff roots in a pass. This is a bug in React.");dn.distanceFromLeaf>t&&(dn.distanceFromLeaf=t)}return dn}var a=Yl(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 O0(){It&&console.error("We should not be hydrating here. This is a bug in React. Please file a bug.")}function gp(e,t){Er||(e=Yl(e,0),e.serverProps=null,t!==null&&(t=pL(t),e.serverTail.push(t)))}function Ps(e){var t=1<arguments.length&&arguments[1]!==void 0?arguments[1]:!1,a="",o=dn;throw o!==null&&(dn=null,a=Ig(o)),Rd(en(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 \``+d+"`."),d=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)),nb}function B0(e){var{stateNode:t,type:a,memoizedProps:o}=e;switch(t[ho]=e,t[Ro]=o,sv(a,o),a){case"dialog":At("cancel",t),At("close",t);break;case"iframe":case"object":case"embed":At("load",t);break;case"video":case"audio":for(a=0;a<Hc.length;a++)At(Hc[a],t);break;case"source":At("error",t);break;case"img":case"image":case"link":At("error",t),At("load",t);break;case"details":At("toggle",t);break;case"input":qs("input",o),At("invalid",t),Fx(t,o),Gx(t,o.value,o.defaultValue,o.checked,o.defaultChecked,o.type,o.name,!0);break;case"option":Vx(t,o);break;case"select":qs("select",o),At("invalid",t),$x(t,o);break;case"textarea":qs("textarea",o),At("invalid",t),Xx(t,o),Kx(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||Jk(t.textContent,a)?(o.popover!=null&&(At("beforetoggle",t),At("toggle",t)),o.onScroll!=null&&At("scroll",t),o.onScrollEnd!=null&&At("scrollend",t),o.onClick!=null&&(t.onclick=Qn),t=!0):t=!1,t||Bs(e,!0)}function z0(e){for(go=e.return;go;)switch(go.tag){case 5:case 31:case 13:Tr=!1;return;case 27:case 3:Tr=!0;return;default:go=go.return}}function Qi(e){if(e!==go)return!1;if(!It)return z0(e),It=!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")||cv(e.type,e.memoizedProps);a=!a}if(a&&fa){for(a=fa;a;){var o=Yl(e,0),n=pL(a);o.serverTail.push(n),a=n.type==="Suspense"?hv(a):or(a.nextSibling)}Bs(e)}if(z0(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.");fa=hv(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.");fa=hv(e)}else t===27?(t=fa,$s(e.type)?(e=Yb,Yb=null,fa=e):fa=t):fa=go?or(e.stateNode.nextSibling):null;return!0}function Kl(){fa=go=null,An=It=!1}function Hg(){var e=tl;return e!==null&&(qo===null?qo=e:qo.push.apply(qo,e),tl=null),e}function Id(e){tl===null?tl=[e]:tl.push(e)}function Fg(){var e=lr;if(e!==null){lr=null;for(var t=wg(e);0<e.children.length;)e=e.children[0];Q(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:
83
+ https://react.dev/link/hydration-mismatch`+a),e)),lb}function B0(e){var{stateNode:t,type:a,memoizedProps:o}=e;switch(t[go]=e,t[Do]=o,iv(a,o),a){case"dialog":At("cancel",t),At("close",t);break;case"iframe":case"object":case"embed":At("load",t);break;case"video":case"audio":for(a=0;a<Fc.length;a++)At(Fc[a],t);break;case"source":At("error",t);break;case"img":case"image":case"link":At("error",t),At("load",t);break;case"details":At("toggle",t);break;case"input":Bs("input",o),At("invalid",t),Fx(t,o),Gx(t,o.value,o.defaultValue,o.checked,o.defaultChecked,o.type,o.name,!0);break;case"option":Vx(t,o);break;case"select":Bs("select",o),At("invalid",t),$x(t,o);break;case"textarea":Bs("textarea",o),At("invalid",t),Xx(t,o),Kx(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||Jk(t.textContent,a)?(o.popover!=null&&(At("beforetoggle",t),At("toggle",t)),o.onScroll!=null&&At("scroll",t),o.onScrollEnd!=null&&At("scrollend",t),o.onClick!=null&&(t.onclick=Zr),t=!0):t=!1,t||Ps(e,!0)}function z0(e){for(yo=e.return;yo;)switch(yo.tag){case 5:case 31:case 13:Rn=!1;return;case 27:case 3:Rn=!0;return;default:yo=yo.return}}function Qi(e){if(e!==yo)return!1;if(!It)return z0(e),It=!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")||pv(e.type,e.memoizedProps);a=!a}if(a&&pa){for(a=pa;a;){var o=Yl(e,0),r=pL(a);o.serverTail.push(r),a=r.type==="Suspense"?yv(a):rn(a.nextSibling)}Ps(e)}if(z0(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.");pa=yv(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.");pa=yv(e)}else t===27?(t=pa,Ys(e.type)?(e=Qb,Qb=null,pa=e):pa=t):pa=yo?rn(e.stateNode.nextSibling):null;return!0}function Kl(){pa=yo=null,Er=It=!1}function Gg(){var e=ol;return e!==null&&(zo===null?zo=e:zo.push.apply(zo,e),ol=null),e}function Rd(e){ol===null?ol=[e]:ol.push(e)}function Vg(){var e=dn;if(e!==null){dn=null;for(var t=Ig(e);0<e.children.length;)e=e.children[0];H(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,45 +90,45 @@ https://react.dev/link/hydration-mismatch`+a),e)),nb}function B0(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 mp(){Iu=Cm=null,Ru=!1}function zs(e,t,a){Oe(sb,t._currentValue,e),t._currentValue=a,Oe(lb,t._currentRenderer,e),t._currentRenderer!==void 0&&t._currentRenderer!==null&&t._currentRenderer!==BC&&console.error("Detected multiple renderers concurrently rendering the same context provider. This is currently unsupported."),t._currentRenderer=BC}function Jn(e,t){e._currentValue=sb.current;var a=lb.current;me(lb,t),e._currentRenderer=a,me(sb,t)}function Gg(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 Vg(e,t,a,o){var n=e.child;n!==null&&(n.return=e);for(;n!==null;){var s=n.dependencies;if(s!==null){var d=n.child;s=s.firstContext;e:for(;s!==null;){var p=s;s=n;for(var b=0;b<t.length;b++)if(p.context===t[b]){s.lanes|=a,p=s.alternate,p!==null&&(p.lanes|=a),Gg(s.return,a,e),o||(d=null);break e}s=p.next}}else if(n.tag===18){if(d=n.return,d===null)throw Error("We just came from a parent so we must have had a parent. This is a bug in React.");d.lanes|=a,s=d.alternate,s!==null&&(s.lanes|=a),Gg(d,a,e),d=null}else d=n.child;if(d!==null)d.return=n;else for(d=n;d!==null;){if(d===e){d=null;break}if(n=d.sibling,n!==null){n.return=d.return,d=n;break}d=d.return}n=d}}function Wi(e,t,a,o){e=null;for(var n=t,s=!1;n!==null;){if(!s){if((n.flags&524288)!==0)s=!0;else if((n.flags&262144)!==0)break}if(n.tag===10){var d=n.alternate;if(d===null)throw Error("Should have a current fiber. This is a bug in React.");if(d=d.memoizedProps,d!==null){var p=n.type;Ao(n.pendingProps.value,d.value)||(e!==null?e.push(p):e=[p])}}else if(n===um.current){if(d=n.alternate,d===null)throw Error("Should have a current fiber. This is a bug in React.");d.memoizedState.memoizedState!==n.memoizedState.memoizedState&&(e!==null?e.push($c):e=[$c])}n=n.return}e!==null&&Vg(t,e,a,o),t.flags|=262144}function hp(e){for(e=e.firstContext;e!==null;){if(!Ao(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function Ql(e){Cm=e,Iu=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function ba(e){return Ru&&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()."),P0(Cm,e)}function gp(e,t){return Cm===null&&Ql(e),P0(e,t)}function P0(e,t){var a=t._currentValue;if(t={context:t,memoizedValue:a,next:null},Iu===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().");Iu=t,e.dependencies={lanes:0,firstContext:t,_debugThenableState:null},e.flags|=524288}else Iu=Iu.next=t;return a}function jg(){return{controller:new DD,data:new Map,refCount:0}}function Wl(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 Rd(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&&ED(ND,function(){e.controller.abort()})}function dn(e,t,a){if((e&127)!==0)0>Dn&&(Dn=Ga(),hc=wm(t),ib=t,a!=null&&(ub=X(a)),(Bt&(Ja|dr))!==so&&(Ia=!0,rl=mc),e=Kd(),t=Yd(),e!==Mu||t!==gc?Mu=-1.1:t!==null&&(rl=mc),ii=e,gc=t);else if((e&4194048)!==0&&0>Ir&&(Ir=Ga(),yc=wm(t),zC=t,a!=null&&(PC=X(a)),0>cs)){if(e=Kd(),t=Yd(),e!==sl||t!==ui)sl=-1.1;nl=e,ui=t}}function ZR(e){if(0>Dn){Dn=Ga(),hc=e._debugTask!=null?e._debugTask:null,(Bt&(Ja|dr))!==so&&(rl=mc);var t=Kd(),a=Yd();t!==Mu||a!==gc?Mu=-1.1:a!==null&&(rl=mc),ii=t,gc=a}if(0>Ir&&(Ir=Ga(),yc=e._debugTask!=null?e._debugTask:null,0>cs)){if(e=Kd(),t=Yd(),e!==sl||t!==ui)sl=-1.1;nl=e,ui=t}}function es(){var e=li;return li=0,e}function yp(e){var t=li;return li=e,t}function Md(e){var t=li;return li+=e,t}function vp(){$e=Pe=-1.1}function Jo(){var e=Pe;return Pe=-1.1,e}function er(e){0<=e&&(Pe=e)}function cn(){var e=Ca;return Ca=-0,e}function fn(e){0<=e&&(Ca=e)}function pn(){var e=xa;return xa=null,e}function mn(){var e=Ia;return Ia=!1,e}function $g(e){Do=Ga(),0>e.actualStartTime&&(e.actualStartTime=Do)}function Xg(e){if(0<=Do){var t=Ga()-Do;e.actualDuration+=t,e.selfBaseDuration=t,Do=-1}}function U0(e){if(0<=Do){var t=Ga()-Do;e.actualDuration+=t,Do=-1}}function hn(){if(0<=Do){var e=Ga(),t=e-Do;Do=-1,li+=t,Ca+=t,$e=e}}function _0(e){xa===null&&(xa=[]),xa.push(e),ds===null&&(ds=[]),ds.push(e)}function gn(){Do=Ga(),0>Pe&&(Pe=Do)}function Ad(e){for(var t=e.child;t;)e.actualDuration+=t.actualDuration,t=t.sibling}function JR(e,t){if(bc===null){var a=bc=[];cb=0,di=av(),Au={status:"pending",value:void 0,then:function(o){a.push(o)}}}return cb++,t.then(H0,H0),t}function H0(){if(--cb===0&&(-1<Ir||(cs=-1.1),bc!==null)){Au!==null&&(Au.status="fulfilled");var e=bc;bc=null,di=0,Au=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function eM(e,t){var a=[],o={status:"pending",value:null,reason:null,then:function(n){a.push(n)}};return e.then(function(){o.status="fulfilled",o.value=t;for(var n=0;n<a.length;n++)(0,a[n])(t)},function(n){o.status="rejected",o.reason=n;for(n=0;n<a.length;n++)(0,a[n])(void 0)}),o}function Yg(){var e=ci.current;return e!==null?e:oa.pooledCache}function bp(e,t){t===null?Oe(ci,ci.current,e):Oe(ci,t.pool,e)}function F0(){var e=Yg();return e===null?null:{parent:Fa._currentValue,pool:e}}function G0(){return{didWarnAboutUncachedPromise:!1,thenables:[]}}function V0(e){return e=e.status,e==="fulfilled"||e==="rejected"}function j0(e,t,a){Y.actQueue!==null&&(Y.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(Qn,Qn),t=a),t._debugInfo===void 0){e=performance.now(),o=t.displayName;var n={name:typeof o==="string"?o:"Promise",start:e,end:e,value:t};t._debugInfo=[{awaited:n}],t.status!=="fulfilled"&&t.status!=="rejected"&&(e=function(){n.end=performance.now()},t.then(e,e))}switch(t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,X0(e),e;default:if(typeof t.status==="string")t.then(Qn,Qn);else{if(e=oa,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(s){if(t.status==="pending"){var d=t;d.status="fulfilled",d.value=s}},function(s){if(t.status==="pending"){var d=t;d.status="rejected",d.reason=s}})}switch(t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,X0(e),e}throw pi=t,Tc=!0,Du}}function Ps(e){try{return zD(e)}catch(t){if(t!==null&&typeof t==="object"&&typeof t.then==="function")throw pi=t,Tc=!0,Du;throw t}}function $0(){if(pi===null)throw Error("Expected a suspended thenable. This is a bug in React. Please file an issue.");var e=pi;return pi=null,Tc=!1,e}function X0(e){if(e===Du||e===Nm)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 fo(e){var t=ft;return e!=null&&(ft=t===null?e:t.concat(e)),t}function Kg(){var e=ft;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 xp(e,t,a){for(var o=Object.keys(e.props),n=0;n<o.length;n++){var s=o[n];if(s!=="children"&&s!=="key"){t===null&&(t=fp(e,a.mode,0),t._debugInfo=ft,t.return=a),Q(t,function(d){console.error("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",d)},s);break}}}function Sp(e){var t=Ic;return Ic+=1,Eu===null&&(Eu=G0()),j0(Eu,e,t)}function Dd(e,t){t=t.props.ref,e.ref=t!==void 0?t:null}function Y0(e,t){if(t.$$typeof===gA)throw Error(`A React Element from an older version of React was rendered. This is not supported. It can happen if:
93
+ %s%s`,"https://react.dev/link/hydration-mismatch",t)})}}function yp(){Iu=Im=null,Ru=!1}function Us(e,t,a){Ee(ib,t._currentValue,e),t._currentValue=a,Ee(ub,t._currentRenderer,e),t._currentRenderer!==void 0&&t._currentRenderer!==null&&t._currentRenderer!==BC&&console.error("Detected multiple renderers concurrently rendering the same context provider. This is currently unsupported."),t._currentRenderer=BC}function ts(e,t){e._currentValue=ib.current;var a=ub.current;fe(ub,t),e._currentRenderer=a,fe(ib,t)}function jg(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 $g(e,t,a,o){var r=e.child;r!==null&&(r.return=e);for(;r!==null;){var s=r.dependencies;if(s!==null){var d=r.child;s=s.firstContext;e:for(;s!==null;){var p=s;s=r;for(var b=0;b<t.length;b++)if(p.context===t[b]){s.lanes|=a,p=s.alternate,p!==null&&(p.lanes|=a),jg(s.return,a,e),o||(d=null);break e}s=p.next}}else if(r.tag===18){if(d=r.return,d===null)throw Error("We just came from a parent so we must have had a parent. This is a bug in React.");d.lanes|=a,s=d.alternate,s!==null&&(s.lanes|=a),jg(d,a,e),d=null}else d=r.child;if(d!==null)d.return=r;else for(d=r;d!==null;){if(d===e){d=null;break}if(r=d.sibling,r!==null){r.return=d.return,d=r;break}d=d.return}r=d}}function Wi(e,t,a,o){e=null;for(var r=t,s=!1;r!==null;){if(!s){if((r.flags&524288)!==0)s=!0;else if((r.flags&262144)!==0)break}if(r.tag===10){var d=r.alternate;if(d===null)throw Error("Should have a current fiber. This is a bug in React.");if(d=d.memoizedProps,d!==null){var p=r.type;No(r.pendingProps.value,d.value)||(e!==null?e.push(p):e=[p])}}else if(r===fm.current){if(d=r.alternate,d===null)throw Error("Should have a current fiber. This is a bug in React.");d.memoizedState.memoizedState!==r.memoizedState.memoizedState&&(e!==null?e.push(Xc):e=[Xc])}r=r.return}e!==null&&$g(t,e,a,o),t.flags|=262144}function vp(e){for(e=e.firstContext;e!==null;){if(!No(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function Ql(e){Im=e,Iu=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function ba(e){return Ru&&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()."),P0(Im,e)}function bp(e,t){return Im===null&&Ql(e),P0(e,t)}function P0(e,t){var a=t._currentValue;if(t={context:t,memoizedValue:a,next:null},Iu===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().");Iu=t,e.dependencies={lanes:0,firstContext:t,_debugThenableState:null},e.flags|=524288}else Iu=Iu.next=t;return a}function Xg(){return{controller:new ND,data:new Map,refCount:0}}function Wl(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 Md(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&&qD(OD,function(){e.controller.abort()})}function fr(e,t,a){if((e&127)!==0)0>Nr&&(Nr=Va(),gc=Rm(t),db=t,a!=null&&(cb=V(a)),(Bt&(eo|pn))!==lo&&(Ia=!0,sl=hc),e=Qd(),t=Kd(),e!==Mu||t!==yc?Mu=-1.1:t!==null&&(sl=hc),ii=e,yc=t);else if((e&4194048)!==0&&0>Mn&&(Mn=Va(),vc=Rm(t),zC=t,a!=null&&(PC=V(a)),0>ps)){if(e=Qd(),t=Kd(),e!==il||t!==ui)il=-1.1;ll=e,ui=t}}function eM(e){if(0>Nr){Nr=Va(),gc=e._debugTask!=null?e._debugTask:null,(Bt&(eo|pn))!==lo&&(sl=hc);var t=Qd(),a=Kd();t!==Mu||a!==yc?Mu=-1.1:a!==null&&(sl=hc),ii=t,yc=a}if(0>Mn&&(Mn=Va(),vc=e._debugTask!=null?e._debugTask:null,0>ps)){if(e=Qd(),t=Kd(),e!==il||t!==ui)il=-1.1;ll=e,ui=t}}function as(){var e=li;return li=0,e}function xp(e){var t=li;return li=e,t}function Ad(e){var t=li;return li+=e,t}function Sp(){je=Pe=-1.1}function tn(){var e=Pe;return Pe=-1.1,e}function an(e){0<=e&&(Pe=e)}function pr(){var e=Ca;return Ca=-0,e}function mr(e){0<=e&&(Ca=e)}function hr(){var e=xa;return xa=null,e}function gr(){var e=Ia;return Ia=!1,e}function Yg(e){qo=Va(),0>e.actualStartTime&&(e.actualStartTime=qo)}function Kg(e){if(0<=qo){var t=Va()-qo;e.actualDuration+=t,e.selfBaseDuration=t,qo=-1}}function U0(e){if(0<=qo){var t=Va()-qo;e.actualDuration+=t,qo=-1}}function yr(){if(0<=qo){var e=Va(),t=e-qo;qo=-1,li+=t,Ca+=t,je=e}}function _0(e){xa===null&&(xa=[]),xa.push(e),fs===null&&(fs=[]),fs.push(e)}function vr(){qo=Va(),0>Pe&&(Pe=qo)}function Dd(e){for(var t=e.child;t;)e.actualDuration+=t.actualDuration,t=t.sibling}function tM(e,t){if(xc===null){var a=xc=[];pb=0,di=nv(),Au={status:"pending",value:void 0,then:function(o){a.push(o)}}}return pb++,t.then(H0,H0),t}function H0(){if(--pb===0&&(-1<Mn||(ps=-1.1),xc!==null)){Au!==null&&(Au.status="fulfilled");var e=xc;xc=null,di=0,Au=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function aM(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 Qg(){var e=ci.current;return e!==null?e:na.pooledCache}function kp(e,t){t===null?Ee(ci,ci.current,e):Ee(ci,t.pool,e)}function F0(){var e=Qg();return e===null?null:{parent:Ga._currentValue,pool:e}}function G0(){return{didWarnAboutUncachedPromise:!1,thenables:[]}}function V0(e){return e=e.status,e==="fulfilled"||e==="rejected"}function j0(e,t,a){K.actQueue!==null&&(K.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(Zr,Zr),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,X0(e),e;default:if(typeof t.status==="string")t.then(Zr,Zr);else{if(e=na,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(s){if(t.status==="pending"){var d=t;d.status="fulfilled",d.value=s}},function(s){if(t.status==="pending"){var d=t;d.status="rejected",d.reason=s}})}switch(t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,X0(e),e}throw pi=t,Ic=!0,Du}}function _s(e){try{return UD(e)}catch(t){if(t!==null&&typeof t==="object"&&typeof t.then==="function")throw pi=t,Ic=!0,Du;throw t}}function $0(){if(pi===null)throw Error("Expected a suspended thenable. This is a bug in React. Please file an issue.");var e=pi;return pi=null,Ic=!1,e}function X0(e){if(e===Du||e===Bm)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 po(e){var t=ft;return e!=null&&(ft=t===null?e:t.concat(e)),t}function Wg(){var e=ft;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 Lp(e,t,a){for(var o=Object.keys(e.props),r=0;r<o.length;r++){var s=o[r];if(s!=="children"&&s!=="key"){t===null&&(t=hp(e,a.mode,0),t._debugInfo=ft,t.return=a),H(t,function(d){console.error("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",d)},s);break}}}function Cp(e){var t=Rc;return Rc+=1,Eu===null&&(Eu=G0()),j0(Eu,e,t)}function Ed(e,t){t=t.props.ref,e.ref=t!==void 0?t:null}function Y0(e,t){if(t.$$typeof===vA)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 kp(e,t){var a=Kg();a!==null?a.run(Y0.bind(null,e,t)):Y0(e,t)}function K0(e,t){var a=X(e)||"Component";rw[a]||(rw[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.
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 wp(e,t){var a=Wg();a!==null?a.run(Y0.bind(null,e,t)):Y0(e,t)}function K0(e,t){var a=V(e)||"Component";nw[a]||(nw[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 Lp(e,t){var a=Kg();a!==null?a.run(K0.bind(null,e,t)):K0(e,t)}function Q0(e,t){var a=X(e)||"Component";nw[a]||(nw[a]=!0,t=String(t),e.tag===3?console.error(`Symbols are not valid as a React child.
98
+ <%s>{%s}</%s>`,t,t,a,t,a))}function Tp(e,t){var a=Wg();a!==null?a.run(K0.bind(null,e,t)):K0(e,t)}function Q0(e,t){var a=V(e)||"Component";rw[a]||(rw[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 Cp(e,t){var a=Kg();a!==null?a.run(Q0.bind(null,e,t)):Q0(e,t)}function W0(e){function t(A,E){if(e){var q=A.deletions;q===null?(A.deletions=[E],A.flags|=16):q.push(E)}}function a(A,E){if(!e)return null;for(;E!==null;)t(A,E),E=E.sibling;return null}function o(A){for(var E=new Map;A!==null;)A.key!==null?E.set(A.key,A):E.set(A.index,A),A=A.sibling;return E}function n(A,E){return A=Wn(A,E),A.index=0,A.sibling=null,A}function s(A,E,q){if(A.index=q,!e)return A.flags|=1048576,E;if(q=A.alternate,q!==null)return q=q.index,q<E?(A.flags|=67108866,E):q;return A.flags|=67108866,E}function d(A){return e&&A.alternate===null&&(A.flags|=67108866),A}function p(A,E,q,J){if(E===null||E.tag!==6)return E=zg(q,A.mode,J),E.return=A,E._debugOwner=A,E._debugTask=A._debugTask,E._debugInfo=ft,E;return E=n(E,q),E.return=A,E._debugInfo=ft,E}function b(A,E,q,J){var ve=q.type;if(ve===fu)return E=O(A,E,q.props.children,J,q.key),xp(q,E,A),E;if(E!==null&&(E.elementType===ve||I0(E,q)||typeof ve==="object"&&ve!==null&&ve.$$typeof===rr&&Ps(ve)===E.type))return E=n(E,q.props),Dd(E,q),E.return=A,E._debugOwner=q._owner,E._debugInfo=ft,E;return E=fp(q,A.mode,J),Dd(E,q),E.return=A,E._debugInfo=ft,E}function k(A,E,q,J){if(E===null||E.tag!==4||E.stateNode.containerInfo!==q.containerInfo||E.stateNode.implementation!==q.implementation)return E=Pg(q,A.mode,J),E.return=A,E._debugInfo=ft,E;return E=n(E,q.children||[]),E.return=A,E._debugInfo=ft,E}function O(A,E,q,J,ve){if(E===null||E.tag!==7)return E=Xl(q,A.mode,J,ve),E.return=A,E._debugOwner=A,E._debugTask=A._debugTask,E._debugInfo=ft,E;return E=n(E,q),E.return=A,E._debugInfo=ft,E}function B(A,E,q){if(typeof E==="string"&&E!==""||typeof E==="number"||typeof E==="bigint")return E=zg(""+E,A.mode,q),E.return=A,E._debugOwner=A,E._debugTask=A._debugTask,E._debugInfo=ft,E;if(typeof E==="object"&&E!==null){switch(E.$$typeof){case Ln:return q=fp(E,A.mode,q),Dd(q,E),q.return=A,A=fo(E._debugInfo),q._debugInfo=ft,ft=A,q;case cu:return E=Pg(E,A.mode,q),E.return=A,E._debugInfo=ft,E;case rr:var J=fo(E._debugInfo);return E=Ps(E),A=B(A,E,q),ft=J,A}if(Wa(E)||fe(E))return q=Xl(E,A.mode,q,null),q.return=A,q._debugOwner=A,q._debugTask=A._debugTask,A=fo(E._debugInfo),q._debugInfo=ft,ft=A,q;if(typeof E.then==="function")return J=fo(E._debugInfo),A=B(A,Sp(E),q),ft=J,A;if(E.$$typeof===Cn)return B(A,gp(A,E),q);kp(A,E)}return typeof E==="function"&&Lp(A,E),typeof E==="symbol"&&Cp(A,E),null}function D(A,E,q,J){var ve=E!==null?E.key:null;if(typeof q==="string"&&q!==""||typeof q==="number"||typeof q==="bigint")return ve!==null?null:p(A,E,""+q,J);if(typeof q==="object"&&q!==null){switch(q.$$typeof){case Ln:return q.key===ve?(ve=fo(q._debugInfo),A=b(A,E,q,J),ft=ve,A):null;case cu:return q.key===ve?k(A,E,q,J):null;case rr:return ve=fo(q._debugInfo),q=Ps(q),A=D(A,E,q,J),ft=ve,A}if(Wa(q)||fe(q)){if(ve!==null)return null;return ve=fo(q._debugInfo),A=O(A,E,q,J,null),ft=ve,A}if(typeof q.then==="function")return ve=fo(q._debugInfo),A=D(A,E,Sp(q),J),ft=ve,A;if(q.$$typeof===Cn)return D(A,E,gp(A,q),J);kp(A,q)}return typeof q==="function"&&Lp(A,q),typeof q==="symbol"&&Cp(A,q),null}function F(A,E,q,J,ve){if(typeof J==="string"&&J!==""||typeof J==="number"||typeof J==="bigint")return A=A.get(q)||null,p(E,A,""+J,ve);if(typeof J==="object"&&J!==null){switch(J.$$typeof){case Ln:return q=A.get(J.key===null?q:J.key)||null,A=fo(J._debugInfo),E=b(E,q,J,ve),ft=A,E;case cu:return A=A.get(J.key===null?q:J.key)||null,k(E,A,J,ve);case rr:var tt=fo(J._debugInfo);return J=Ps(J),E=F(A,E,q,J,ve),ft=tt,E}if(Wa(J)||fe(J))return q=A.get(q)||null,A=fo(J._debugInfo),E=O(E,q,J,ve,null),ft=A,E;if(typeof J.then==="function")return tt=fo(J._debugInfo),E=F(A,E,q,Sp(J),ve),ft=tt,E;if(J.$$typeof===Cn)return F(A,E,q,gp(E,J),ve);kp(E,J)}return typeof J==="function"&&Lp(E,J),typeof J==="symbol"&&Cp(E,J),null}function pe(A,E,q,J){if(typeof q!=="object"||q===null)return J;switch(q.$$typeof){case Ln:case cu:m(A,E,q);var ve=q.key;if(typeof ve!=="string")break;if(J===null){J=new Set,J.add(ve);break}if(!J.has(ve)){J.add(ve);break}Q(E,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.",ve)});break;case rr:q=Ps(q),pe(A,E,q,J)}return J}function be(A,E,q,J){for(var ve=null,tt=null,Be=null,Me=E,it=E=0,pa=null;Me!==null&&it<q.length;it++){Me.index>it?(pa=Me,Me=null):pa=Me.sibling;var Pa=D(A,Me,q[it],J);if(Pa===null){Me===null&&(Me=pa);break}ve=pe(A,Pa,q[it],ve),e&&Me&&Pa.alternate===null&&t(A,Me),E=s(Pa,E,it),Be===null?tt=Pa:Be.sibling=Pa,Be=Pa,Me=pa}if(it===q.length)return a(A,Me),It&&Zn(A,it),tt;if(Me===null){for(;it<q.length;it++)Me=B(A,q[it],J),Me!==null&&(ve=pe(A,Me,q[it],ve),E=s(Me,E,it),Be===null?tt=Me:Be.sibling=Me,Be=Me);return It&&Zn(A,it),tt}for(Me=o(Me);it<q.length;it++)pa=F(Me,A,it,q[it],J),pa!==null&&(ve=pe(A,pa,q[it],ve),e&&pa.alternate!==null&&Me.delete(pa.key===null?it:pa.key),E=s(pa,E,it),Be===null?tt=pa:Be.sibling=pa,Be=pa);return e&&Me.forEach(function(xs){return t(A,xs)}),It&&Zn(A,it),tt}function la(A,E,q,J){if(q==null)throw Error("An iterable object provided no iterator.");for(var ve=null,tt=null,Be=E,Me=E=0,it=null,pa=null,Pa=q.next();Be!==null&&!Pa.done;Me++,Pa=q.next()){Be.index>Me?(it=Be,Be=null):it=Be.sibling;var xs=D(A,Be,Pa.value,J);if(xs===null){Be===null&&(Be=it);break}pa=pe(A,xs,Pa.value,pa),e&&Be&&xs.alternate===null&&t(A,Be),E=s(xs,E,Me),tt===null?ve=xs:tt.sibling=xs,tt=xs,Be=it}if(Pa.done)return a(A,Be),It&&Zn(A,Me),ve;if(Be===null){for(;!Pa.done;Me++,Pa=q.next())Be=B(A,Pa.value,J),Be!==null&&(pa=pe(A,Be,Pa.value,pa),E=s(Be,E,Me),tt===null?ve=Be:tt.sibling=Be,tt=Be);return It&&Zn(A,Me),ve}for(Be=o(Be);!Pa.done;Me++,Pa=q.next())it=F(Be,A,Me,Pa.value,J),it!==null&&(pa=pe(A,it,Pa.value,pa),e&&it.alternate!==null&&Be.delete(it.key===null?Me:it.key),E=s(it,E,Me),tt===null?ve=it:tt.sibling=it,tt=it);return e&&Be.forEach(function(lE){return t(A,lE)}),It&&Zn(A,Me),ve}function Dt(A,E,q,J){if(typeof q==="object"&&q!==null&&q.type===fu&&q.key===null&&(xp(q,null,A),q=q.props.children),typeof q==="object"&&q!==null){switch(q.$$typeof){case Ln:var ve=fo(q._debugInfo);e:{for(var tt=q.key;E!==null;){if(E.key===tt){if(tt=q.type,tt===fu){if(E.tag===7){a(A,E.sibling),J=n(E,q.props.children),J.return=A,J._debugOwner=q._owner,J._debugInfo=ft,xp(q,J,A),A=J;break e}}else if(E.elementType===tt||I0(E,q)||typeof tt==="object"&&tt!==null&&tt.$$typeof===rr&&Ps(tt)===E.type){a(A,E.sibling),J=n(E,q.props),Dd(J,q),J.return=A,J._debugOwner=q._owner,J._debugInfo=ft,A=J;break e}a(A,E);break}else t(A,E);E=E.sibling}q.type===fu?(J=Xl(q.props.children,A.mode,J,q.key),J.return=A,J._debugOwner=A,J._debugTask=A._debugTask,J._debugInfo=ft,xp(q,J,A),A=J):(J=fp(q,A.mode,J),Dd(J,q),J.return=A,J._debugInfo=ft,A=J)}return A=d(A),ft=ve,A;case cu:e:{ve=q;for(q=ve.key;E!==null;){if(E.key===q)if(E.tag===4&&E.stateNode.containerInfo===ve.containerInfo&&E.stateNode.implementation===ve.implementation){a(A,E.sibling),J=n(E,ve.children||[]),J.return=A,A=J;break e}else{a(A,E);break}else t(A,E);E=E.sibling}J=Pg(ve,A.mode,J),J.return=A,A=J}return d(A);case rr:return ve=fo(q._debugInfo),q=Ps(q),A=Dt(A,E,q,J),ft=ve,A}if(Wa(q))return ve=fo(q._debugInfo),A=be(A,E,q,J),ft=ve,A;if(fe(q)){if(ve=fo(q._debugInfo),tt=fe(q),typeof tt!=="function")throw Error("An object is not an iterable. This error is likely caused by a bug in React. Please file an issue.");var Be=tt.call(q);if(Be===q){if(A.tag!==0||Object.prototype.toString.call(A.type)!=="[object GeneratorFunction]"||Object.prototype.toString.call(Be)!=="[object Generator]")aw||console.error("Using Iterators as children is unsupported and will likely yield unexpected results because enumerating a generator mutates it. You may convert it to an array with `Array.from()` or the `[...spread]` operator before rendering. You can also use an Iterable that can iterate multiple times over the same items."),aw=!0}else q.entries!==tt||hb||(console.error("Using Maps as children is not supported. Use an array of keyed ReactElements instead."),hb=!0);return A=la(A,E,Be,J),ft=ve,A}if(typeof q.then==="function")return ve=fo(q._debugInfo),A=Dt(A,E,Sp(q),J),ft=ve,A;if(q.$$typeof===Cn)return Dt(A,E,gp(A,q),J);kp(A,q)}if(typeof q==="string"&&q!==""||typeof q==="number"||typeof q==="bigint")return ve=""+q,E!==null&&E.tag===6?(a(A,E.sibling),J=n(E,ve),J.return=A,A=J):(a(A,E),J=zg(ve,A.mode,J),J.return=A,J._debugOwner=A,J._debugTask=A._debugTask,J._debugInfo=ft,A=J),d(A);return typeof q==="function"&&Lp(A,q),typeof q==="symbol"&&Cp(A,q),a(A,E)}return function(A,E,q,J){var ve=ft;ft=null;try{Ic=0;var tt=Dt(A,E,q,J);return Eu=null,tt}catch(pa){if(pa===Du||pa===Nm)throw pa;var Be=C(29,pa,null,A.mode);Be.lanes=J,Be.return=A;var Me=Be._debugInfo=ft;if(Be._debugOwner=A._debugOwner,Be._debugTask=A._debugTask,Me!=null){for(var it=Me.length-1;0<=it;it--)if(typeof Me[it].stack==="string"){Be._debugOwner=Me[it],Be._debugTask=Me[it].debugTask;break}}return Be}finally{ft=ve}}}function Z0(e,t){var a=Wa(e);return e=!a&&typeof fe(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 Qg(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Wg(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 Us(e){return{lane:e,tag:lw,payload:null,callback:null,next:null}}function _s(e,t,a){var o=e.updateQueue;if(o===null)return null;if(o=o.shared,yb===o&&!dw){var n=X(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 Ip(e,t){var a=Wg();a!==null?a.run(Q0.bind(null,e,t)):Q0(e,t)}function W0(e){function t(A,E){if(e){var N=A.deletions;N===null?(A.deletions=[E],A.flags|=16):N.push(E)}}function a(A,E){if(!e)return null;for(;E!==null;)t(A,E),E=E.sibling;return null}function o(A){for(var E=new Map;A!==null;)A.key!==null?E.set(A.key,A):E.set(A.index,A),A=A.sibling;return E}function r(A,E){return A=Jr(A,E),A.index=0,A.sibling=null,A}function s(A,E,N){if(A.index=N,!e)return A.flags|=1048576,E;if(N=A.alternate,N!==null)return N=N.index,N<E?(A.flags|=67108866,E):N;return A.flags|=67108866,E}function d(A){return e&&A.alternate===null&&(A.flags|=67108866),A}function p(A,E,N,J){if(E===null||E.tag!==6)return E=Ug(N,A.mode,J),E.return=A,E._debugOwner=A,E._debugTask=A._debugTask,E._debugInfo=ft,E;return E=r(E,N),E.return=A,E._debugInfo=ft,E}function b(A,E,N,J){var ve=N.type;if(ve===fu)return E=q(A,E,N.props.children,J,N.key),Lp(N,E,A),E;if(E!==null&&(E.elementType===ve||I0(E,N)||typeof ve==="object"&&ve!==null&&ve.$$typeof===sn&&_s(ve)===E.type))return E=r(E,N.props),Ed(E,N),E.return=A,E._debugOwner=N._owner,E._debugInfo=ft,E;return E=hp(N,A.mode,J),Ed(E,N),E.return=A,E._debugInfo=ft,E}function k(A,E,N,J){if(E===null||E.tag!==4||E.stateNode.containerInfo!==N.containerInfo||E.stateNode.implementation!==N.implementation)return E=_g(N,A.mode,J),E.return=A,E._debugInfo=ft,E;return E=r(E,N.children||[]),E.return=A,E._debugInfo=ft,E}function q(A,E,N,J,ve){if(E===null||E.tag!==7)return E=Xl(N,A.mode,J,ve),E.return=A,E._debugOwner=A,E._debugTask=A._debugTask,E._debugInfo=ft,E;return E=r(E,N),E.return=A,E._debugInfo=ft,E}function B(A,E,N){if(typeof E==="string"&&E!==""||typeof E==="number"||typeof E==="bigint")return E=Ug(""+E,A.mode,N),E.return=A,E._debugOwner=A,E._debugTask=A._debugTask,E._debugInfo=ft,E;if(typeof E==="object"&&E!==null){switch(E.$$typeof){case wr:return N=hp(E,A.mode,N),Ed(N,E),N.return=A,A=po(E._debugInfo),N._debugInfo=ft,ft=A,N;case cu:return E=_g(E,A.mode,N),E.return=A,E._debugInfo=ft,E;case sn:var J=po(E._debugInfo);return E=_s(E),A=B(A,E,N),ft=J,A}if(Za(E)||ce(E))return N=Xl(E,A.mode,N,null),N.return=A,N._debugOwner=A,N._debugTask=A._debugTask,A=po(E._debugInfo),N._debugInfo=ft,ft=A,N;if(typeof E.then==="function")return J=po(E._debugInfo),A=B(A,Cp(E),N),ft=J,A;if(E.$$typeof===Tr)return B(A,bp(A,E),N);wp(A,E)}return typeof E==="function"&&Tp(A,E),typeof E==="symbol"&&Ip(A,E),null}function D(A,E,N,J){var ve=E!==null?E.key:null;if(typeof N==="string"&&N!==""||typeof N==="number"||typeof N==="bigint")return ve!==null?null:p(A,E,""+N,J);if(typeof N==="object"&&N!==null){switch(N.$$typeof){case wr:return N.key===ve?(ve=po(N._debugInfo),A=b(A,E,N,J),ft=ve,A):null;case cu:return N.key===ve?k(A,E,N,J):null;case sn:return ve=po(N._debugInfo),N=_s(N),A=D(A,E,N,J),ft=ve,A}if(Za(N)||ce(N)){if(ve!==null)return null;return ve=po(N._debugInfo),A=q(A,E,N,J,null),ft=ve,A}if(typeof N.then==="function")return ve=po(N._debugInfo),A=D(A,E,Cp(N),J),ft=ve,A;if(N.$$typeof===Tr)return D(A,E,bp(A,N),J);wp(A,N)}return typeof N==="function"&&Tp(A,N),typeof N==="symbol"&&Ip(A,N),null}function F(A,E,N,J,ve){if(typeof J==="string"&&J!==""||typeof J==="number"||typeof J==="bigint")return A=A.get(N)||null,p(E,A,""+J,ve);if(typeof J==="object"&&J!==null){switch(J.$$typeof){case wr:return N=A.get(J.key===null?N:J.key)||null,A=po(J._debugInfo),E=b(E,N,J,ve),ft=A,E;case cu:return A=A.get(J.key===null?N:J.key)||null,k(E,A,J,ve);case sn:var tt=po(J._debugInfo);return J=_s(J),E=F(A,E,N,J,ve),ft=tt,E}if(Za(J)||ce(J))return N=A.get(N)||null,A=po(J._debugInfo),E=q(E,N,J,ve,null),ft=A,E;if(typeof J.then==="function")return tt=po(J._debugInfo),E=F(A,E,N,Cp(J),ve),ft=tt,E;if(J.$$typeof===Tr)return F(A,E,N,bp(E,J),ve);wp(E,J)}return typeof J==="function"&&Tp(E,J),typeof J==="symbol"&&Ip(E,J),null}function pe(A,E,N,J){if(typeof N!=="object"||N===null)return J;switch(N.$$typeof){case wr:case cu:m(A,E,N);var ve=N.key;if(typeof ve!=="string")break;if(J===null){J=new Set,J.add(ve);break}if(!J.has(ve)){J.add(ve);break}H(E,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.",ve)});break;case sn:N=_s(N),pe(A,E,N,J)}return J}function be(A,E,N,J){for(var ve=null,tt=null,Oe=null,Me=E,it=E=0,ma=null;Me!==null&&it<N.length;it++){Me.index>it?(ma=Me,Me=null):ma=Me.sibling;var Ua=D(A,Me,N[it],J);if(Ua===null){Me===null&&(Me=ma);break}ve=pe(A,Ua,N[it],ve),e&&Me&&Ua.alternate===null&&t(A,Me),E=s(Ua,E,it),Oe===null?tt=Ua:Oe.sibling=Ua,Oe=Ua,Me=ma}if(it===N.length)return a(A,Me),It&&es(A,it),tt;if(Me===null){for(;it<N.length;it++)Me=B(A,N[it],J),Me!==null&&(ve=pe(A,Me,N[it],ve),E=s(Me,E,it),Oe===null?tt=Me:Oe.sibling=Me,Oe=Me);return It&&es(A,it),tt}for(Me=o(Me);it<N.length;it++)ma=F(Me,A,it,N[it],J),ma!==null&&(ve=pe(A,ma,N[it],ve),e&&ma.alternate!==null&&Me.delete(ma.key===null?it:ma.key),E=s(ma,E,it),Oe===null?tt=ma:Oe.sibling=ma,Oe=ma);return e&&Me.forEach(function(ks){return t(A,ks)}),It&&es(A,it),tt}function ua(A,E,N,J){if(N==null)throw Error("An iterable object provided no iterator.");for(var ve=null,tt=null,Oe=E,Me=E=0,it=null,ma=null,Ua=N.next();Oe!==null&&!Ua.done;Me++,Ua=N.next()){Oe.index>Me?(it=Oe,Oe=null):it=Oe.sibling;var ks=D(A,Oe,Ua.value,J);if(ks===null){Oe===null&&(Oe=it);break}ma=pe(A,ks,Ua.value,ma),e&&Oe&&ks.alternate===null&&t(A,Oe),E=s(ks,E,Me),tt===null?ve=ks:tt.sibling=ks,tt=ks,Oe=it}if(Ua.done)return a(A,Oe),It&&es(A,Me),ve;if(Oe===null){for(;!Ua.done;Me++,Ua=N.next())Oe=B(A,Ua.value,J),Oe!==null&&(ma=pe(A,Oe,Ua.value,ma),E=s(Oe,E,Me),tt===null?ve=Oe:tt.sibling=Oe,tt=Oe);return It&&es(A,Me),ve}for(Oe=o(Oe);!Ua.done;Me++,Ua=N.next())it=F(Oe,A,Me,Ua.value,J),it!==null&&(ma=pe(A,it,Ua.value,ma),e&&it.alternate!==null&&Oe.delete(it.key===null?Me:it.key),E=s(it,E,Me),tt===null?ve=it:tt.sibling=it,tt=it);return e&&Oe.forEach(function(uE){return t(A,uE)}),It&&es(A,Me),ve}function Dt(A,E,N,J){if(typeof N==="object"&&N!==null&&N.type===fu&&N.key===null&&(Lp(N,null,A),N=N.props.children),typeof N==="object"&&N!==null){switch(N.$$typeof){case wr:var ve=po(N._debugInfo);e:{for(var tt=N.key;E!==null;){if(E.key===tt){if(tt=N.type,tt===fu){if(E.tag===7){a(A,E.sibling),J=r(E,N.props.children),J.return=A,J._debugOwner=N._owner,J._debugInfo=ft,Lp(N,J,A),A=J;break e}}else if(E.elementType===tt||I0(E,N)||typeof tt==="object"&&tt!==null&&tt.$$typeof===sn&&_s(tt)===E.type){a(A,E.sibling),J=r(E,N.props),Ed(J,N),J.return=A,J._debugOwner=N._owner,J._debugInfo=ft,A=J;break e}a(A,E);break}else t(A,E);E=E.sibling}N.type===fu?(J=Xl(N.props.children,A.mode,J,N.key),J.return=A,J._debugOwner=A,J._debugTask=A._debugTask,J._debugInfo=ft,Lp(N,J,A),A=J):(J=hp(N,A.mode,J),Ed(J,N),J.return=A,J._debugInfo=ft,A=J)}return A=d(A),ft=ve,A;case cu:e:{ve=N;for(N=ve.key;E!==null;){if(E.key===N)if(E.tag===4&&E.stateNode.containerInfo===ve.containerInfo&&E.stateNode.implementation===ve.implementation){a(A,E.sibling),J=r(E,ve.children||[]),J.return=A,A=J;break e}else{a(A,E);break}else t(A,E);E=E.sibling}J=_g(ve,A.mode,J),J.return=A,A=J}return d(A);case sn:return ve=po(N._debugInfo),N=_s(N),A=Dt(A,E,N,J),ft=ve,A}if(Za(N))return ve=po(N._debugInfo),A=be(A,E,N,J),ft=ve,A;if(ce(N)){if(ve=po(N._debugInfo),tt=ce(N),typeof tt!=="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=tt.call(N);if(Oe===N){if(A.tag!==0||Object.prototype.toString.call(A.type)!=="[object GeneratorFunction]"||Object.prototype.toString.call(Oe)!=="[object Generator]")aw||console.error("Using Iterators as children is unsupported and will likely yield unexpected results because enumerating a generator mutates it. You may convert it to an array with `Array.from()` or the `[...spread]` operator before rendering. You can also use an Iterable that can iterate multiple times over the same items."),aw=!0}else N.entries!==tt||yb||(console.error("Using Maps as children is not supported. Use an array of keyed ReactElements instead."),yb=!0);return A=ua(A,E,Oe,J),ft=ve,A}if(typeof N.then==="function")return ve=po(N._debugInfo),A=Dt(A,E,Cp(N),J),ft=ve,A;if(N.$$typeof===Tr)return Dt(A,E,bp(A,N),J);wp(A,N)}if(typeof N==="string"&&N!==""||typeof N==="number"||typeof N==="bigint")return ve=""+N,E!==null&&E.tag===6?(a(A,E.sibling),J=r(E,ve),J.return=A,A=J):(a(A,E),J=Ug(ve,A.mode,J),J.return=A,J._debugOwner=A,J._debugTask=A._debugTask,J._debugInfo=ft,A=J),d(A);return typeof N==="function"&&Tp(A,N),typeof N==="symbol"&&Ip(A,N),a(A,E)}return function(A,E,N,J){var ve=ft;ft=null;try{Rc=0;var tt=Dt(A,E,N,J);return Eu=null,tt}catch(ma){if(ma===Du||ma===Bm)throw ma;var Oe=C(29,ma,null,A.mode);Oe.lanes=J,Oe.return=A;var Me=Oe._debugInfo=ft;if(Oe._debugOwner=A._debugOwner,Oe._debugTask=A._debugTask,Me!=null){for(var it=Me.length-1;0<=it;it--)if(typeof Me[it].stack==="string"){Oe._debugOwner=Me[it],Oe._debugTask=Me[it].debugTask;break}}return Oe}finally{ft=ve}}}function Z0(e,t){var a=Za(e);return e=!a&&typeof ce(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 Zg(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Jg(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 Hs(e){return{lane:e,tag:lw,payload:null,callback:null,next:null}}function Fs(e,t,a){var o=e.updateQueue;if(o===null)return null;if(o=o.shared,bb===o&&!dw){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`,n),dw=!0}if((Bt&Ja)!==so)return n=o.pending,n===null?t.next=t:(t.next=n.next,n.next=t),o.pending=t,t=cp(e),T0(e,null,a),t;return dp(e,o,t,a),cp(e)}function Ed(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,_l(e,a)}}function wp(e,t){var a=e.updateQueue,o=e.alternate;if(o!==null&&(o=o.updateQueue,a===o)){var n=null,s=null;if(a=a.firstBaseUpdate,a!==null){do{var d={lane:a.lane,tag:a.tag,payload:a.payload,callback:null,next:null};s===null?n=s=d:s=s.next=d,a=a.next}while(a!==null);s===null?n=s=t:s=s.next=t}else n=s=t;a={baseState:o.baseState,firstBaseUpdate:n,lastBaseUpdate:s,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 Nd(){if(vb){var e=Au;if(e!==null)throw e}}function qd(e,t,a,o){vb=!1;var n=e.updateQueue;ll=!1,yb=n.shared;var{firstBaseUpdate:s,lastBaseUpdate:d}=n,p=n.shared.pending;if(p!==null){n.shared.pending=null;var b=p,k=b.next;b.next=null,d===null?s=k:d.next=k,d=b;var O=e.alternate;O!==null&&(O=O.updateQueue,p=O.lastBaseUpdate,p!==d&&(p===null?O.firstBaseUpdate=k:p.next=k,O.lastBaseUpdate=b))}if(s!==null){var B=n.baseState;d=0,O=k=b=null,p=s;do{var D=p.lane&-536870913,F=D!==p.lane;if(F?(pt&D)===D:(o&D)===D){D!==0&&D===di&&(vb=!0),O!==null&&(O=O.next={lane:0,tag:p.tag,payload:p.payload,callback:null,next:null});e:{D=e;var pe=p,be=t,la=a;switch(pe.tag){case iw:if(pe=pe.payload,typeof pe==="function"){Ru=!0;var Dt=pe.call(la,B,be);if(D.mode&ko){Xt(!0);try{pe.call(la,B,be)}finally{Xt(!1)}}Ru=!1,B=Dt;break e}B=pe;break e;case gb:D.flags=D.flags&-65537|128;case lw:if(Dt=pe.payload,typeof Dt==="function"){if(Ru=!0,pe=Dt.call(la,B,be),D.mode&ko){Xt(!0);try{Dt.call(la,B,be)}finally{Xt(!1)}}Ru=!1}else pe=Dt;if(pe===null||pe===void 0)break e;B=St({},B,pe);break e;case uw:ll=!0}}D=p.callback,D!==null&&(e.flags|=64,F&&(e.flags|=8192),F=n.callbacks,F===null?n.callbacks=[D]:F.push(D))}else F={lane:D,tag:p.tag,payload:p.payload,callback:p.callback,next:null},O===null?(k=O=F,b=B):O=O.next=F,d|=D;if(p=p.next,p===null)if(p=n.shared.pending,p===null)break;else F=p,p=F.next,F.next=null,n.lastBaseUpdate=F,n.shared.pending=null}while(1);O===null&&(b=B),n.baseState=b,n.firstBaseUpdate=k,n.lastBaseUpdate=O,s===null&&(n.shared.lanes=0),dl|=d,e.lanes=d,e.memoizedState=B}yb=null}function J0(e,t){if(typeof e!=="function")throw Error("Invalid argument passed as callback. Expected a function. Instead received: "+e);e.call(t)}function tM(e,t){var a=e.shared.hiddenCallbacks;if(a!==null)for(e.shared.hiddenCallbacks=null,e=0;e<a.length;e++)J0(a[e],t)}function eS(e,t){var a=e.callbacks;if(a!==null)for(e.callbacks=null,e=0;e<a.length;e++)J0(a[e],t)}function tS(e,t){var a=qn;Oe(Om,a,e),Oe(Nu,t,e),qn=a|t.baseLanes}function Zg(e){Oe(Om,qn,e),Oe(Nu,Nu.current,e)}function Jg(e){qn=Om.current,me(Nu,e),me(Om,e)}function Hs(e){var t=e.alternate;Oe(za,za.current&qu,e),Oe(ir,e,e),Rr===null&&(t===null||Nu.current!==null?Rr=e:t.memoizedState!==null&&(Rr=e))}function ey(e){Oe(za,za.current,e),Oe(ir,e,e),Rr===null&&(Rr=e)}function aS(e){e.tag===22?(Oe(za,za.current,e),Oe(ir,e,e),Rr===null&&(Rr=e)):Fs(e)}function Fs(e){Oe(za,za.current,e),Oe(ir,ir.current,e)}function tr(e){me(ir,e),Rr===e&&(Rr=null),me(za,e)}function Tp(e){for(var t=e;t!==null;){if(t.tag===13){var a=t.memoizedState;if(a!==null&&(a=a.dehydrated,a===null||pv(a)||mv(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 xt(){var e=j;Ar===null?Ar=[e]:Ar.push(e)}function se(){var e=j;if(Ar!==null&&(hs++,Ar[hs]!==e)){var t=X(et);if(!cw.has(t)&&(cw.add(t),Ar!==null)){for(var a="",o=0;o<=hs;o++){var n=Ar[o],s=o===hs?e:n;for(n=o+1+". "+n;30>n.length;)n+=" ";n+=s+`
103
- `,a+=n}console.error(`React has detected a change in the order of Hooks called by %s. This will lead to bugs and errors if not fixed. For more information, read the Rules of Hooks: https://react.dev/link/rules-of-hooks
102
+ Please update the following component: %s`,r),dw=!0}if((Bt&eo)!==lo)return r=o.pending,r===null?t.next=t:(t.next=r.next,r.next=t),o.pending=t,t=mp(e),T0(e,null,a),t;return pp(e,o,t,a),mp(e)}function Nd(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,_l(e,a)}}function Rp(e,t){var a=e.updateQueue,o=e.alternate;if(o!==null&&(o=o.updateQueue,a===o)){var r=null,s=null;if(a=a.firstBaseUpdate,a!==null){do{var d={lane:a.lane,tag:a.tag,payload:a.payload,callback:null,next:null};s===null?r=s=d:s=s.next=d,a=a.next}while(a!==null);s===null?r=s=t:s=s.next=t}else r=s=t;a={baseState:o.baseState,firstBaseUpdate:r,lastBaseUpdate:s,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 qd(){if(xb){var e=Au;if(e!==null)throw e}}function Od(e,t,a,o){xb=!1;var r=e.updateQueue;ul=!1,bb=r.shared;var{firstBaseUpdate:s,lastBaseUpdate:d}=r,p=r.shared.pending;if(p!==null){r.shared.pending=null;var b=p,k=b.next;b.next=null,d===null?s=k:d.next=k,d=b;var q=e.alternate;q!==null&&(q=q.updateQueue,p=q.lastBaseUpdate,p!==d&&(p===null?q.firstBaseUpdate=k:p.next=k,q.lastBaseUpdate=b))}if(s!==null){var B=r.baseState;d=0,q=k=b=null,p=s;do{var D=p.lane&-536870913,F=D!==p.lane;if(F?(pt&D)===D:(o&D)===D){D!==0&&D===di&&(xb=!0),q!==null&&(q=q.next={lane:0,tag:p.tag,payload:p.payload,callback:null,next:null});e:{D=e;var pe=p,be=t,ua=a;switch(pe.tag){case iw:if(pe=pe.payload,typeof pe==="function"){Ru=!0;var Dt=pe.call(ua,B,be);if(D.mode&Co){Yt(!0);try{pe.call(ua,B,be)}finally{Yt(!1)}}Ru=!1,B=Dt;break e}B=pe;break e;case vb:D.flags=D.flags&-65537|128;case lw:if(Dt=pe.payload,typeof Dt==="function"){if(Ru=!0,pe=Dt.call(ua,B,be),D.mode&Co){Yt(!0);try{Dt.call(ua,B,be)}finally{Yt(!1)}}Ru=!1}else pe=Dt;if(pe===null||pe===void 0)break e;B=kt({},B,pe);break e;case uw:ul=!0}}D=p.callback,D!==null&&(e.flags|=64,F&&(e.flags|=8192),F=r.callbacks,F===null?r.callbacks=[D]:F.push(D))}else F={lane:D,tag:p.tag,payload:p.payload,callback:p.callback,next:null},q===null?(k=q=F,b=B):q=q.next=F,d|=D;if(p=p.next,p===null)if(p=r.shared.pending,p===null)break;else F=p,p=F.next,F.next=null,r.lastBaseUpdate=F,r.shared.pending=null}while(1);q===null&&(b=B),r.baseState=b,r.firstBaseUpdate=k,r.lastBaseUpdate=q,s===null&&(r.shared.lanes=0),fl|=d,e.lanes=d,e.memoizedState=B}bb=null}function J0(e,t){if(typeof e!=="function")throw Error("Invalid argument passed as callback. Expected a function. Instead received: "+e);e.call(t)}function oM(e,t){var a=e.shared.hiddenCallbacks;if(a!==null)for(e.shared.hiddenCallbacks=null,e=0;e<a.length;e++)J0(a[e],t)}function eS(e,t){var a=e.callbacks;if(a!==null)for(e.callbacks=null,e=0;e<a.length;e++)J0(a[e],t)}function tS(e,t){var a=Br;Ee(Pm,a,e),Ee(Nu,t,e),Br=a|t.baseLanes}function ey(e){Ee(Pm,Br,e),Ee(Nu,Nu.current,e)}function ty(e){Br=Pm.current,fe(Nu,e),fe(Pm,e)}function Gs(e){var t=e.alternate;Ee(Pa,Pa.current&qu,e),Ee(cn,e,e),An===null&&(t===null||Nu.current!==null?An=e:t.memoizedState!==null&&(An=e))}function ay(e){Ee(Pa,Pa.current,e),Ee(cn,e,e),An===null&&(An=e)}function aS(e){e.tag===22?(Ee(Pa,Pa.current,e),Ee(cn,e,e),An===null&&(An=e)):Vs(e)}function Vs(e){Ee(Pa,Pa.current,e),Ee(cn,cn.current,e)}function on(e){fe(cn,e),An===e&&(An=null),fe(Pa,e)}function Mp(e){for(var t=e;t!==null;){if(t.tag===13){var a=t.memoizedState;if(a!==null&&(a=a.dehydrated,a===null||hv(a)||gv(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 St(){var e=Y;En===null?En=[e]:En.push(e)}function re(){var e=Y;if(En!==null&&(ys++,En[ys]!==e)){var t=V(et);if(!cw.has(t)&&(cw.add(t),En!==null)){for(var a="",o=0;o<=ys;o++){var r=En[o],s=o===ys?e:r;for(r=o+1+". "+r;30>r.length;)r+=" ";r+=s+`
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 Zi(e){e===void 0||e===null||Wa(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.",j,typeof e)}function Ip(){var e=X(et);pw.has(e)||(pw.add(e),console.error("ReactDOM.useFormState has been renamed to React.useActionState. Please update %s to use React.useActionState.",e))}function Aa(){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:
108
+ `,t,a)}}}function Zi(e){e===void 0||e===null||Za(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.",Y,typeof e)}function Ap(){var e=V(et);pw.has(e)||(pw.add(e),console.error("ReactDOM.useFormState has been renamed to React.useActionState. Please update %s to use React.useActionState.",e))}function Da(){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 ty(e,t){if(Ac)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.",j),!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.
112
+ See https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem.`)}function oy(e,t){if(Dc)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.",Y),!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`,j,"["+t.join(", ")+"]","["+e.join(", ")+"]");for(var a=0;a<t.length&&a<e.length;a++)if(!Ao(e[a],t[a]))return!1;return!0}function ay(e,t,a,o,n,s){if(ps=s,et=t,Ar=e!==null?e._debugHookTypes:null,hs=-1,Ac=e!==null&&e.type!==t.type,Object.prototype.toString.call(a)==="[object AsyncFunction]"||Object.prototype.toString.call(a)==="[object AsyncGeneratorFunction]")s=X(et),bb.has(s)||(bb.add(s),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.",s===null?"An unknown Component":"<"+s+">"));t.memoizedState=null,t.updateQueue=null,t.lanes=0,Y.H=e!==null&&e.memoizedState!==null?Sb:Ar!==null?mw:xb,hi=s=(t.mode&ko)!==Ke;var d=fb(a,o,n);if(hi=!1,Bu&&(d=oy(t,a,o,n)),s){Xt(!0);try{d=oy(t,a,o,n)}finally{Xt(!1)}}return oS(e,t),d}function oS(e,t){t._debugHookTypes=Ar,t.dependencies===null?ms!==null&&(t.dependencies={lanes:0,firstContext:null,_debugThenableState:ms}):t.dependencies._debugThenableState=ms,Y.H=Dc;var a=aa!==null&&aa.next!==null;if(ps=0,Ar=j=Va=aa=et=null,hs=-1,e!==null&&(e.flags&65011712)!==(t.flags&65011712)&&console.error("Internal React error: Expected static flag was missing. Please notify the React team."),zm=!1,Mc=0,ms=null,a)throw Error("Rendered fewer hooks than expected. This may be caused by an accidental early return statement.");e===null||ja||(e=e.dependencies,e!==null&&hp(e)&&(ja=!0)),Tc?(Tc=!1,e=!0):e=!1,e&&(t=X(t)||"Unknown",fw.has(t)||bb.has(t)||(fw.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 oy(e,t,a,o){et=e;var n=0;do{if(Bu&&(ms=null),Mc=0,Bu=!1,n>=UD)throw Error("Too many re-renders. React limits the number of renders to prevent an infinite loop.");if(n+=1,Ac=!1,Va=aa=null,e.updateQueue!=null){var s=e.updateQueue;s.lastEffect=null,s.events=null,s.stores=null,s.memoCache!=null&&(s.memoCache.index=0)}hs=-1,Y.H=hw,s=fb(t,a,o)}while(Bu);return s}function aM(){var e=Y.H,t=e.useState()[0];return t=typeof t.then==="function"?Od(t):t,e=e.useState()[0],(aa!==null?aa.memoizedState:null)!==e&&(et.flags|=1024),t}function ry(){var e=Pm!==0;return Pm=0,e}function ny(e,t,a){t.updateQueue=e.updateQueue,t.flags=(t.mode&Vr)!==Ke?t.flags&-402655237:t.flags&-2053,e.lanes&=~a}function sy(e){if(zm){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}zm=!1}ps=0,Ar=Va=aa=et=null,hs=-1,j=null,Bu=!1,Mc=Pm=0,ms=null}function To(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Va===null?et.memoizedState=Va=e:Va=Va.next=e,Va}function Wt(){if(aa===null){var e=et.alternate;e=e!==null?e.memoizedState:null}else e=aa.next;var t=Va===null?et.memoizedState:Va.next;if(t!==null)Va=t,aa=e;else{if(e===null){if(et.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.")}aa=e,e={memoizedState:aa.memoizedState,baseState:aa.baseState,baseQueue:aa.baseQueue,queue:aa.queue,next:null},Va===null?et.memoizedState=Va=e:Va=Va.next=e}return Va}function Rp(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Od(e){var t=Mc;return Mc+=1,ms===null&&(ms=G0()),e=j0(ms,e,t),t=et,(Va===null?t.memoizedState:Va.next)===null&&(t=t.alternate,Y.H=t!==null&&t.memoizedState!==null?Sb:xb),e}function Gs(e){if(e!==null&&typeof e==="object"){if(typeof e.then==="function")return Od(e);if(e.$$typeof===Cn)return ba(e)}throw Error("An unsupported type was passed to use(): "+String(e))}function Zl(e){var t=null,a=et.updateQueue;if(a!==null&&(t=a.memoCache),t==null){var o=et.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=Rp(),et.updateQueue=a),a.memoCache=t,a=t.data[t.index],a===void 0||Ac)for(a=t.data[t.index]=Array(e),o=0;o<e;o++)a[o]=yA;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 _r(e,t){return typeof t==="function"?t(e):t}function ly(e,t,a){var o=To();if(a!==void 0){var n=a(t);if(hi){Xt(!0);try{a(t)}finally{Xt(!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=lM.bind(null,et,e),[o.memoizedState,e]}function Ji(e){var t=Wt();return iy(t,aa,e)}function iy(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,s=o.pending;if(s!==null){if(n!==null){var d=n.next;n.next=s.next,s.next=d}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=s,o.pending=null}if(s=e.baseState,n===null)e.memoizedState=s;else{t=n.next;var p=d=null,b=null,k=t,O=!1;do{var B=k.lane&-536870913;if(B!==k.lane?(pt&B)===B:(ps&B)===B){var D=k.revertLane;if(D===0)b!==null&&(b=b.next={lane:0,revertLane:0,gesture:null,action:k.action,hasEagerState:k.hasEagerState,eagerState:k.eagerState,next:null}),B===di&&(O=!0);else if((ps&D)===D){k=k.next,D===di&&(O=!0);continue}else B={lane:0,revertLane:k.revertLane,gesture:null,action:k.action,hasEagerState:k.hasEagerState,eagerState:k.eagerState,next:null},b===null?(p=b=B,d=s):b=b.next=B,et.lanes|=D,dl|=D;B=k.action,hi&&a(s,B),s=k.hasEagerState?k.eagerState:a(s,B)}else D={lane:B,revertLane:k.revertLane,gesture:k.gesture,action:k.action,hasEagerState:k.hasEagerState,eagerState:k.eagerState,next:null},b===null?(p=b=D,d=s):b=b.next=D,et.lanes|=B,dl|=B;k=k.next}while(k!==null&&k!==t);if(b===null?d=s:b.next=p,!Ao(s,e.memoizedState)&&(ja=!0,O&&(a=Au,a!==null)))throw a;e.memoizedState=s,e.baseState=d,e.baseQueue=b,o.lastRenderedState=s}return n===null&&(o.lanes=0),[e.memoizedState,o.dispatch]}function Bd(e){var t=Wt(),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,s=t.memoizedState;if(n!==null){a.pending=null;var d=n=n.next;do s=e(s,d.action),d=d.next;while(d!==n);Ao(s,t.memoizedState)||(ja=!0),t.memoizedState=s,t.baseQueue===null&&(t.baseState=s),a.lastRenderedState=s}return[s,o]}function uy(e,t,a){var o=et,n=To();if(It){if(a===void 0)throw Error("Missing getServerSnapshot, which is required for server-rendered content. Will revert to client rendering.");var s=a();Ou||s===a()||(console.error("The result of getServerSnapshot should be cached to avoid an infinite loop"),Ou=!0)}else{if(s=t(),Ou||(a=t(),Ao(s,a)||(console.error("The result of getSnapshot should be cached to avoid an infinite loop"),Ou=!0)),oa===null)throw Error("Expected a work-in-progress root. This is a bug in React. Please file an issue.");(pt&127)!==0||rS(o,t,s)}return n.memoizedState=s,a={value:s,getSnapshot:t},n.queue=a,Ep(sS.bind(null,o,a,e),[e]),o.flags|=2048,tu(Mr|No,{destroy:void 0},nS.bind(null,o,a,s,t),null),s}function Mp(e,t,a){var o=et,n=Wt(),s=It;if(s){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(),!Ou){var d=t();Ao(a,d)||(console.error("The result of getSnapshot should be cached to avoid an infinite loop"),Ou=!0)}if(d=!Ao((aa||n).memoizedState,a))n.memoizedState=a,ja=!0;n=n.queue;var p=sS.bind(null,o,n,e);if(_o(2048,No,p,[e]),n.getSnapshot!==t||d||Va!==null&&Va.memoizedState.tag&Mr){if(o.flags|=2048,tu(Mr|No,{destroy:void 0},nS.bind(null,o,n,a,t),null),oa===null)throw Error("Expected a work-in-progress root. This is a bug in React. Please file an issue.");s||(ps&127)!==0||rS(o,t,a)}return a}function rS(e,t,a){e.flags|=16384,e={getSnapshot:t,value:a},t=et.updateQueue,t===null?(t=Rp(),et.updateQueue=t,t.stores=[e]):(a=t.stores,a===null?t.stores=[e]:a.push(e))}function nS(e,t,a,o){t.value=a,t.getSnapshot=o,lS(t)&&iS(e)}function sS(e,t,a){return a(function(){lS(t)&&(dn(2,"updateSyncExternalStore()",e),iS(e))})}function lS(e){var t=e.getSnapshot;e=e.value;try{var a=t();return!Ao(e,a)}catch(o){return!0}}function iS(e){var t=xo(e,2);t!==null&&Ta(t,e,2)}function dy(e){var t=To();if(typeof e==="function"){var a=e;if(e=a(),hi){Xt(!0);try{a()}finally{Xt(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:_r,lastRenderedState:e},t}function cy(e){e=dy(e);var t=e.queue,a=IS.bind(null,et,t);return t.dispatch=a,[e.memoizedState,a]}function fy(e){var t=To();t.memoizedState=t.baseState=e;var a={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=a,t=Ty.bind(null,et,!0,a),a.dispatch=t,[e,t]}function uS(e,t){var a=Wt();return dS(a,aa,e,t)}function dS(e,t,a,o){return e.baseState=a,iy(e,aa,typeof o==="function"?o:_r)}function cS(e,t){var a=Wt();if(aa!==null)return dS(a,aa,e,t);return a.baseState=e,[e,a.queue.dispatch]}function oM(e,t,a,o,n){if(Pp(e))throw Error("Cannot update form state while rendering.");if(e=t.action,e!==null){var s={payload:n,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(d){s.listeners.push(d)}};Y.T!==null?a(!0):s.isTransition=!1,o(s),a=t.pending,a===null?(s.next=t.pending=s,fS(t,s)):(s.next=a.next,t.pending=a.next=s)}}function fS(e,t){var{action:a,payload:o}=t,n=e.state;if(t.isTransition){var s=Y.T,d={};d._updatedFibers=new Set,Y.T=d;try{var p=a(n,o),b=Y.S;b!==null&&b(d,p),pS(e,t,p)}catch(k){py(e,t,k)}finally{s!==null&&d.types!==null&&(s.types!==null&&s.types!==d.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."),s.types=d.types),Y.T=s,s===null&&d._updatedFibers&&(e=d._updatedFibers.size,d._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{d=a(n,o),pS(e,t,d)}catch(k){py(e,t,k)}}function pS(e,t,a){a!==null&&typeof a==="object"&&typeof a.then==="function"?(Y.asyncTransitions++,a.then(zp,zp),a.then(function(o){mS(e,t,o)},function(o){return py(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.")):mS(e,t,a)}function mS(e,t,a){t.status="fulfilled",t.value=a,hS(t),e.state=a,t=e.pending,t!==null&&(a=t.next,a===t?e.pending=null:(a=a.next,t.next=a,fS(e,a)))}function py(e,t,a){var o=e.pending;if(e.pending=null,o!==null){o=o.next;do t.status="rejected",t.reason=a,hS(t),t=t.next;while(t!==o)}e.action=null}function hS(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function gS(e,t){return t}function eu(e,t){if(It){var a=oa.formState;if(a!==null){e:{var o=et;if(It){if(fa){t:{var n=fa;for(var s=Tr;n.nodeType!==8;){if(!s){n=null;break t}if(n=or(n.nextSibling),n===null){n=null;break t}}s=n.data,n=s===Vb||s===e1?n:null}if(n){fa=or(n.nextSibling),o=n.data===Vb;break e}}Bs(o)}o=!1}o&&(t=a[0])}}return a=To(),a.memoizedState=a.baseState=t,o={pending:null,lanes:0,dispatch:null,lastRenderedReducer:gS,lastRenderedState:t},a.queue=o,a=IS.bind(null,et,o),o.dispatch=a,o=dy(!1),s=Ty.bind(null,et,!1,o.queue),o=To(),n={state:t,dispatch:null,action:e,pending:null},o.queue=n,a=oM.bind(null,et,n,s,a),n.dispatch=a,o.memoizedState=e,[t,a,!1]}function Ap(e){var t=Wt();return yS(t,aa,e)}function yS(e,t,a){if(t=iy(e,t,gS)[0],e=Ji(_r)[0],typeof t==="object"&&t!==null&&typeof t.then==="function")try{var o=Od(t)}catch(d){if(d===Du)throw Nm;throw d}else o=t;t=Wt();var n=t.queue,s=n.dispatch;return a!==t.memoizedState&&(et.flags|=2048,tu(Mr|No,{destroy:void 0},rM.bind(null,n,a),null)),[o,s,e]}function rM(e,t){e.action=t}function Dp(e){var t=Wt(),a=aa;if(a!==null)return yS(t,a,e);Wt(),t=t.memoizedState,a=Wt();var o=a.queue.dispatch;return a.memoizedState=e,[t,o,!1]}function tu(e,t,a,o){return e={tag:e,create:a,deps:o,inst:t,next:null},t=et.updateQueue,t===null&&(t=Rp(),et.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 my(e){var t=To();return e={current:e},t.memoizedState=e}function Jl(e,t,a,o){var n=To();et.flags|=e,n.memoizedState=tu(Mr|t,{destroy:void 0},a,o===void 0?null:o)}function _o(e,t,a,o){var n=Wt();o=o===void 0?null:o;var s=n.memoizedState.inst;aa!==null&&o!==null&&ty(o,aa.memoizedState.deps)?n.memoizedState=tu(t,s,a,o):(et.flags|=e,n.memoizedState=tu(Mr|t,s,a,o))}function Ep(e,t){(et.mode&Vr)!==Ke?Jl(276826112,No,e,t):Jl(8390656,No,e,t)}function nM(e){et.flags|=4;var t=et.updateQueue;if(t===null)t=Rp(),et.updateQueue=t,t.events=[e];else{var a=t.events;a===null?t.events=[e]:a.push(e)}}function hy(e){var t=To(),a={impl:e};return t.memoizedState=a,function(){if((Bt&Ja)!==so)throw Error("A function wrapped in useEffectEvent can't be called during rendering.");return a.impl.apply(void 0,arguments)}}function Np(e){var t=Wt().memoizedState;return nM({ref:t,nextImpl:e}),function(){if((Bt&Ja)!==so)throw Error("A function wrapped in useEffectEvent can't be called during rendering.");return t.impl.apply(void 0,arguments)}}function gy(e,t){var a=4194308;return(et.mode&Vr)!==Ke&&(a|=134217728),Jl(a,ur,e,t)}function vS(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 yy(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;(et.mode&Vr)!==Ke&&(o|=134217728),Jl(o,ur,vS.bind(null,t,e),a)}function qp(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,_o(4,ur,vS.bind(null,t,e),a)}function vy(e,t){return To().memoizedState=[e,t===void 0?null:t],e}function Op(e,t){var a=Wt();t=t===void 0?null:t;var o=a.memoizedState;if(t!==null&&ty(t,o[1]))return o[0];return a.memoizedState=[e,t],e}function by(e,t){var a=To();t=t===void 0?null:t;var o=e();if(hi){Xt(!0);try{e()}finally{Xt(!1)}}return a.memoizedState=[o,t],o}function Bp(e,t){var a=Wt();t=t===void 0?null:t;var o=a.memoizedState;if(t!==null&&ty(t,o[1]))return o[0];if(o=e(),hi){Xt(!0);try{e()}finally{Xt(!1)}}return a.memoizedState=[o,t],o}function xy(e,t){var a=To();return Sy(a,e,t)}function bS(e,t){var a=Wt();return SS(a,aa.memoizedState,e,t)}function xS(e,t){var a=Wt();return aa===null?Sy(a,e,t):SS(a,aa.memoizedState,e,t)}function Sy(e,t,a){if(a===void 0||(ps&1073741824)!==0&&(pt&261930)===0)return e.memoizedState=t;return e.memoizedState=a,e=kk(),et.lanes|=e,dl|=e,a}function SS(e,t,a,o){if(Ao(a,t))return a;if(Nu.current!==null)return e=Sy(e,a,o),Ao(e,t)||(ja=!0),e;if((ps&42)===0||(ps&1073741824)!==0&&(pt&261930)===0)return ja=!0,e.memoizedState=a;return e=kk(),et.lanes|=e,dl|=e,t}function zp(){Y.asyncTransitions--}function kS(e,t,a,o,n){var s=Kt.p;Kt.p=s!==0&&s<Gr?s:Gr;var d=Y.T,p={};p._updatedFibers=new Set,Y.T=p,Ty(e,!1,t,a);try{var b=n(),k=Y.S;if(k!==null&&k(p,b),b!==null&&typeof b==="object"&&typeof b.then==="function"){Y.asyncTransitions++,b.then(zp,zp);var O=eM(b,o);zd(e,t,O,ar(e))}else zd(e,t,o,ar(e))}catch(B){zd(e,t,{then:function(){},status:"rejected",reason:B},ar(e))}finally{Kt.p=s,d!==null&&p.types!==null&&(d.types!==null&&d.types!==p.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."),d.types=p.types),Y.T=d,d===null&&p._updatedFibers&&(e=p._updatedFibers.size,p._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 ky(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=LS(e).queue;ZR(e),kS(e,n,t,Ti,a===null?x:function(){return CS(e),a(o)})}function LS(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:Ti,baseState:Ti,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:_r,lastRenderedState:Ti},next:null};var a={};return t.next={memoizedState:a,baseState:a,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:_r,lastRenderedState:a},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function CS(e){Y.T===null&&console.error("requestFormReset was called outside a transition or action. To fix, move to an action, or wrap with startTransition.");var t=LS(e);t.next===null&&(t=e.alternate.memoizedState),zd(e,t.next.queue,{},ar(e))}function Ly(){var e=dy(!1);return e=kS.bind(null,et,e.queue,!0,!1),To().memoizedState=e,[!1,e]}function wS(){var e=Ji(_r)[0],t=Wt().memoizedState;return[typeof e==="boolean"?e:Od(e),t]}function TS(){var e=Bd(_r)[0],t=Wt().memoizedState;return[typeof e==="boolean"?e:Od(e),t]}function ei(){return ba($c)}function Cy(){var e=To(),t=oa.identifierPrefix;if(It){var a=is,o=ls;a=(o&~(1<<32-Io(o)-1)).toString(32)+a,t="_"+t+"R_"+a,a=Pm++,0<a&&(t+="H"+a.toString(32)),t+="_"}else a=PD++,t="_"+t+"r_"+a.toString(32)+"_";return e.memoizedState=t}function wy(){return To().memoizedState=sM.bind(null,et)}function sM(e,t){for(var a=e.return;a!==null;){switch(a.tag){case 24:case 3:var o=ar(a),n=Us(o),s=_s(a,n,o);s!==null&&(dn(o,"refresh()",e),Ta(s,a,o),Ed(s,a,o)),e=jg(),t!==null&&t!==void 0&&s!==null&&console.error("The seed argument is not enabled outside experimental channels."),n.payload={cache:e};return}a=a.return}}function lM(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=ar(e);var n={lane:o,revertLane:0,gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null};Pp(e)?RS(t,n):(n=Ng(e,t,n,o),n!==null&&(dn(o,"dispatch()",e),Ta(n,e,o),MS(n,t,o)))}function IS(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=ar(e),zd(e,t,a,o)&&dn(o,"setState()",e)}function zd(e,t,a,o){var n={lane:o,revertLane:0,gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null};if(Pp(e))RS(t,n);else{var s=e.alternate;if(e.lanes===0&&(s===null||s.lanes===0)&&(s=t.lastRenderedReducer,s!==null)){var d=Y.H;Y.H=$r;try{var p=t.lastRenderedState,b=s(p,a);if(n.hasEagerState=!0,n.eagerState=b,Ao(b,p))return dp(e,t,n,0),oa===null&&up(),!1}catch(k){}finally{Y.H=d}}if(a=Ng(e,t,n,o),a!==null)return Ta(a,e,o),MS(a,t,o),!0}return!1}function Ty(e,t,a,o){if(Y.T===null&&di===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:av(),gesture:null,action:o,hasEagerState:!1,eagerState:null,next:null},Pp(e)){if(t)throw Error("Cannot update optimistic state while rendering.");console.error("Cannot call startTransition while rendering.")}else t=Ng(e,a,o,2),t!==null&&(dn(2,"setOptimistic()",e),Ta(t,e,2))}function Pp(e){var t=e.alternate;return e===et||t!==null&&t===et}function RS(e,t){Bu=zm=!0;var a=e.pending;a===null?t.next=t:(t.next=a.next,a.next=t),e.pending=t}function MS(e,t,a){if((a&4194048)!==0){var o=t.lanes;o&=e.pendingLanes,a|=o,t.lanes=a,_l(e,a)}}function Iy(e){if(e!==null&&typeof e!=="function"){var t=String(e);Tw.has(t)||(Tw.add(t),console.error("Expected the last optional `callback` argument to be a function. Instead received: %s.",e))}}function Ry(e,t,a,o){var n=e.memoizedState,s=a(o,n);if(e.mode&ko){Xt(!0);try{s=a(o,n)}finally{Xt(!1)}}s===void 0&&(t=ee(t)||"Component",kw.has(t)||(kw.add(t),console.error("%s.getDerivedStateFromProps(): A valid state object (or null) must be returned. You have returned undefined.",t))),n=s===null||s===void 0?n:St({},n,s),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}function AS(e,t,a,o,n,s,d){var p=e.stateNode;if(typeof p.shouldComponentUpdate==="function"){if(a=p.shouldComponentUpdate(o,s,d),e.mode&ko){Xt(!0);try{a=p.shouldComponentUpdate(o,s,d)}finally{Xt(!1)}}return a===void 0&&console.error("%s.shouldComponentUpdate(): Returned undefined instead of a boolean value. Make sure to return true or false.",ee(t)||"Component"),a}return t.prototype&&t.prototype.isPureReactComponent?!wd(a,o)||!wd(n,s):!0}function DS(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=X(e)||"Component",yw.has(e)||(yw.add(e),console.error("%s.componentWillReceiveProps(): Assigning directly to this.state is deprecated (except inside a component's constructor). Use setState instead.",e)),kb.enqueueReplaceState(t,t.state,null))}function ti(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=St({},a));for(var n in e)a[n]===void 0&&(a[n]=e[n])}return a}function ES(e){Jv(e),console.warn(`%s
115
+ Incoming: %s`,Y,"["+t.join(", ")+"]","["+e.join(", ")+"]");for(var a=0;a<t.length&&a<e.length;a++)if(!No(e[a],t[a]))return!1;return!0}function ny(e,t,a,o,r,s){if(hs=s,et=t,En=e!==null?e._debugHookTypes:null,ys=-1,Dc=e!==null&&e.type!==t.type,Object.prototype.toString.call(a)==="[object AsyncFunction]"||Object.prototype.toString.call(a)==="[object AsyncGeneratorFunction]")s=V(et),Sb.has(s)||(Sb.add(s),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.",s===null?"An unknown Component":"<"+s+">"));t.memoizedState=null,t.updateQueue=null,t.lanes=0,K.H=e!==null&&e.memoizedState!==null?Lb:En!==null?mw:kb,hi=s=(t.mode&Co)!==Qe;var d=mb(a,o,r);if(hi=!1,Bu&&(d=ry(t,a,o,r)),s){Yt(!0);try{d=ry(t,a,o,r)}finally{Yt(!1)}}return oS(e,t),d}function oS(e,t){t._debugHookTypes=En,t.dependencies===null?gs!==null&&(t.dependencies={lanes:0,firstContext:null,_debugThenableState:gs}):t.dependencies._debugThenableState=gs,K.H=Ec;var a=oa!==null&&oa.next!==null;if(hs=0,En=Y=ja=oa=et=null,ys=-1,e!==null&&(e.flags&65011712)!==(t.flags&65011712)&&console.error("Internal React error: Expected static flag was missing. Please notify the React team."),_m=!1,Ac=0,gs=null,a)throw Error("Rendered fewer hooks than expected. This may be caused by an accidental early return statement.");e===null||$a||(e=e.dependencies,e!==null&&vp(e)&&($a=!0)),Ic?(Ic=!1,e=!0):e=!1,e&&(t=V(t)||"Unknown",fw.has(t)||Sb.has(t)||(fw.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 ry(e,t,a,o){et=e;var r=0;do{if(Bu&&(gs=null),Ac=0,Bu=!1,r>=HD)throw Error("Too many re-renders. React limits the number of renders to prevent an infinite loop.");if(r+=1,Dc=!1,ja=oa=null,e.updateQueue!=null){var s=e.updateQueue;s.lastEffect=null,s.events=null,s.stores=null,s.memoCache!=null&&(s.memoCache.index=0)}ys=-1,K.H=hw,s=mb(t,a,o)}while(Bu);return s}function nM(){var e=K.H,t=e.useState()[0];return t=typeof t.then==="function"?Bd(t):t,e=e.useState()[0],(oa!==null?oa.memoizedState:null)!==e&&(et.flags|=1024),t}function sy(){var e=Hm!==0;return Hm=0,e}function ly(e,t,a){t.updateQueue=e.updateQueue,t.flags=(t.mode&$n)!==Qe?t.flags&-402655237:t.flags&-2053,e.lanes&=~a}function iy(e){if(_m){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}_m=!1}hs=0,En=ja=oa=et=null,ys=-1,Y=null,Bu=!1,Ac=Hm=0,gs=null}function Mo(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return ja===null?et.memoizedState=ja=e:ja=ja.next=e,ja}function Zt(){if(oa===null){var e=et.alternate;e=e!==null?e.memoizedState:null}else e=oa.next;var t=ja===null?et.memoizedState:ja.next;if(t!==null)ja=t,oa=e;else{if(e===null){if(et.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.")}oa=e,e={memoizedState:oa.memoizedState,baseState:oa.baseState,baseQueue:oa.baseQueue,queue:oa.queue,next:null},ja===null?et.memoizedState=ja=e:ja=ja.next=e}return ja}function Dp(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Bd(e){var t=Ac;return Ac+=1,gs===null&&(gs=G0()),e=j0(gs,e,t),t=et,(ja===null?t.memoizedState:ja.next)===null&&(t=t.alternate,K.H=t!==null&&t.memoizedState!==null?Lb:kb),e}function js(e){if(e!==null&&typeof e==="object"){if(typeof e.then==="function")return Bd(e);if(e.$$typeof===Tr)return ba(e)}throw Error("An unsupported type was passed to use(): "+String(e))}function Zl(e){var t=null,a=et.updateQueue;if(a!==null&&(t=a.memoCache),t==null){var o=et.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=Dp(),et.updateQueue=a),a.memoCache=t,a=t.data[t.index],a===void 0||Dc)for(a=t.data[t.index]=Array(e),o=0;o<e;o++)a[o]=bA;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 uy(e,t,a){var o=Mo();if(a!==void 0){var r=a(t);if(hi){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=uM.bind(null,et,e),[o.memoizedState,e]}function Ji(e){var t=Zt();return dy(t,oa,e)}function dy(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,s=o.pending;if(s!==null){if(r!==null){var d=r.next;r.next=s.next,s.next=d}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=s,o.pending=null}if(s=e.baseState,r===null)e.memoizedState=s;else{t=r.next;var p=d=null,b=null,k=t,q=!1;do{var B=k.lane&-536870913;if(B!==k.lane?(pt&B)===B:(hs&B)===B){var D=k.revertLane;if(D===0)b!==null&&(b=b.next={lane:0,revertLane:0,gesture:null,action:k.action,hasEagerState:k.hasEagerState,eagerState:k.eagerState,next:null}),B===di&&(q=!0);else if((hs&D)===D){k=k.next,D===di&&(q=!0);continue}else B={lane:0,revertLane:k.revertLane,gesture:null,action:k.action,hasEagerState:k.hasEagerState,eagerState:k.eagerState,next:null},b===null?(p=b=B,d=s):b=b.next=B,et.lanes|=D,fl|=D;B=k.action,hi&&a(s,B),s=k.hasEagerState?k.eagerState:a(s,B)}else D={lane:B,revertLane:k.revertLane,gesture:k.gesture,action:k.action,hasEagerState:k.hasEagerState,eagerState:k.eagerState,next:null},b===null?(p=b=D,d=s):b=b.next=D,et.lanes|=B,fl|=B;k=k.next}while(k!==null&&k!==t);if(b===null?d=s:b.next=p,!No(s,e.memoizedState)&&($a=!0,q&&(a=Au,a!==null)))throw a;e.memoizedState=s,e.baseState=d,e.baseQueue=b,o.lastRenderedState=s}return r===null&&(o.lanes=0),[e.memoizedState,o.dispatch]}function zd(e){var t=Zt(),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,s=t.memoizedState;if(r!==null){a.pending=null;var d=r=r.next;do s=e(s,d.action),d=d.next;while(d!==r);No(s,t.memoizedState)||($a=!0),t.memoizedState=s,t.baseQueue===null&&(t.baseState=s),a.lastRenderedState=s}return[s,o]}function cy(e,t,a){var o=et,r=Mo();if(It){if(a===void 0)throw Error("Missing getServerSnapshot, which is required for server-rendered content. Will revert to client rendering.");var s=a();Ou||s===a()||(console.error("The result of getServerSnapshot should be cached to avoid an infinite loop"),Ou=!0)}else{if(s=t(),Ou||(a=t(),No(s,a)||(console.error("The result of getSnapshot should be cached to avoid an infinite loop"),Ou=!0)),na===null)throw Error("Expected a work-in-progress root. This is a bug in React. Please file an issue.");(pt&127)!==0||nS(o,t,s)}return r.memoizedState=s,a={value:s,getSnapshot:t},r.queue=a,Op(sS.bind(null,o,a,e),[e]),o.flags|=2048,tu(Dn|Bo,{destroy:void 0},rS.bind(null,o,a,s,t),null),s}function Ep(e,t,a){var o=et,r=Zt(),s=It;if(s){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(),!Ou){var d=t();No(a,d)||(console.error("The result of getSnapshot should be cached to avoid an infinite loop"),Ou=!0)}if(d=!No((oa||r).memoizedState,a))r.memoizedState=a,$a=!0;r=r.queue;var p=sS.bind(null,o,r,e);if(Fo(2048,Bo,p,[e]),r.getSnapshot!==t||d||ja!==null&&ja.memoizedState.tag&Dn){if(o.flags|=2048,tu(Dn|Bo,{destroy:void 0},rS.bind(null,o,r,a,t),null),na===null)throw Error("Expected a work-in-progress root. This is a bug in React. Please file an issue.");s||(hs&127)!==0||nS(o,t,a)}return a}function nS(e,t,a){e.flags|=16384,e={getSnapshot:t,value:a},t=et.updateQueue,t===null?(t=Dp(),et.updateQueue=t,t.stores=[e]):(a=t.stores,a===null?t.stores=[e]:a.push(e))}function rS(e,t,a,o){t.value=a,t.getSnapshot=o,lS(t)&&iS(e)}function sS(e,t,a){return a(function(){lS(t)&&(fr(2,"updateSyncExternalStore()",e),iS(e))})}function lS(e){var t=e.getSnapshot;e=e.value;try{var a=t();return!No(e,a)}catch(o){return!0}}function iS(e){var t=ko(e,2);t!==null&&Ta(t,e,2)}function fy(e){var t=Mo();if(typeof e==="function"){var a=e;if(e=a(),hi){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 py(e){e=fy(e);var t=e.queue,a=IS.bind(null,et,t);return t.dispatch=a,[e.memoizedState,a]}function my(e){var t=Mo();t.memoizedState=t.baseState=e;var a={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=a,t=Ry.bind(null,et,!0,a),a.dispatch=t,[e,t]}function uS(e,t){var a=Zt();return dS(a,oa,e,t)}function dS(e,t,a,o){return e.baseState=a,dy(e,oa,typeof o==="function"?o:Fn)}function cS(e,t){var a=Zt();if(oa!==null)return dS(a,oa,e,t);return a.baseState=e,[e,a.queue.dispatch]}function rM(e,t,a,o,r){if(Hp(e))throw Error("Cannot update form state while rendering.");if(e=t.action,e!==null){var s={payload:r,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(d){s.listeners.push(d)}};K.T!==null?a(!0):s.isTransition=!1,o(s),a=t.pending,a===null?(s.next=t.pending=s,fS(t,s)):(s.next=a.next,t.pending=a.next=s)}}function fS(e,t){var{action:a,payload:o}=t,r=e.state;if(t.isTransition){var s=K.T,d={};d._updatedFibers=new Set,K.T=d;try{var p=a(r,o),b=K.S;b!==null&&b(d,p),pS(e,t,p)}catch(k){hy(e,t,k)}finally{s!==null&&d.types!==null&&(s.types!==null&&s.types!==d.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."),s.types=d.types),K.T=s,s===null&&d._updatedFibers&&(e=d._updatedFibers.size,d._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{d=a(r,o),pS(e,t,d)}catch(k){hy(e,t,k)}}function pS(e,t,a){a!==null&&typeof a==="object"&&typeof a.then==="function"?(K.asyncTransitions++,a.then(_p,_p),a.then(function(o){mS(e,t,o)},function(o){return hy(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.")):mS(e,t,a)}function mS(e,t,a){t.status="fulfilled",t.value=a,hS(t),e.state=a,t=e.pending,t!==null&&(a=t.next,a===t?e.pending=null:(a=a.next,t.next=a,fS(e,a)))}function hy(e,t,a){var o=e.pending;if(e.pending=null,o!==null){o=o.next;do t.status="rejected",t.reason=a,hS(t),t=t.next;while(t!==o)}e.action=null}function hS(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function gS(e,t){return t}function eu(e,t){if(It){var a=na.formState;if(a!==null){e:{var o=et;if(It){if(pa){t:{var r=pa;for(var s=Rn;r.nodeType!==8;){if(!s){r=null;break t}if(r=rn(r.nextSibling),r===null){r=null;break t}}s=r.data,r=s===$b||s===e1?r:null}if(r){pa=rn(r.nextSibling),o=r.data===$b;break e}}Ps(o)}o=!1}o&&(t=a[0])}}return a=Mo(),a.memoizedState=a.baseState=t,o={pending:null,lanes:0,dispatch:null,lastRenderedReducer:gS,lastRenderedState:t},a.queue=o,a=IS.bind(null,et,o),o.dispatch=a,o=fy(!1),s=Ry.bind(null,et,!1,o.queue),o=Mo(),r={state:t,dispatch:null,action:e,pending:null},o.queue=r,a=rM.bind(null,et,r,s,a),r.dispatch=a,o.memoizedState=e,[t,a,!1]}function Np(e){var t=Zt();return yS(t,oa,e)}function yS(e,t,a){if(t=dy(e,t,gS)[0],e=Ji(Fn)[0],typeof t==="object"&&t!==null&&typeof t.then==="function")try{var o=Bd(t)}catch(d){if(d===Du)throw Bm;throw d}else o=t;t=Zt();var r=t.queue,s=r.dispatch;return a!==t.memoizedState&&(et.flags|=2048,tu(Dn|Bo,{destroy:void 0},sM.bind(null,r,a),null)),[o,s,e]}function sM(e,t){e.action=t}function qp(e){var t=Zt(),a=oa;if(a!==null)return yS(t,a,e);Zt(),t=t.memoizedState,a=Zt();var o=a.queue.dispatch;return a.memoizedState=e,[t,o,!1]}function tu(e,t,a,o){return e={tag:e,create:a,deps:o,inst:t,next:null},t=et.updateQueue,t===null&&(t=Dp(),et.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 gy(e){var t=Mo();return e={current:e},t.memoizedState=e}function Jl(e,t,a,o){var r=Mo();et.flags|=e,r.memoizedState=tu(Dn|t,{destroy:void 0},a,o===void 0?null:o)}function Fo(e,t,a,o){var r=Zt();o=o===void 0?null:o;var s=r.memoizedState.inst;oa!==null&&o!==null&&oy(o,oa.memoizedState.deps)?r.memoizedState=tu(t,s,a,o):(et.flags|=e,r.memoizedState=tu(Dn|t,s,a,o))}function Op(e,t){(et.mode&$n)!==Qe?Jl(276826112,Bo,e,t):Jl(8390656,Bo,e,t)}function lM(e){et.flags|=4;var t=et.updateQueue;if(t===null)t=Dp(),et.updateQueue=t,t.events=[e];else{var a=t.events;a===null?t.events=[e]:a.push(e)}}function yy(e){var t=Mo(),a={impl:e};return t.memoizedState=a,function(){if((Bt&eo)!==lo)throw Error("A function wrapped in useEffectEvent can't be called during rendering.");return a.impl.apply(void 0,arguments)}}function Bp(e){var t=Zt().memoizedState;return lM({ref:t,nextImpl:e}),function(){if((Bt&eo)!==lo)throw Error("A function wrapped in useEffectEvent can't be called during rendering.");return t.impl.apply(void 0,arguments)}}function vy(e,t){var a=4194308;return(et.mode&$n)!==Qe&&(a|=134217728),Jl(a,fn,e,t)}function vS(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 by(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;(et.mode&$n)!==Qe&&(o|=134217728),Jl(o,fn,vS.bind(null,t,e),a)}function zp(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,Fo(4,fn,vS.bind(null,t,e),a)}function xy(e,t){return Mo().memoizedState=[e,t===void 0?null:t],e}function Pp(e,t){var a=Zt();t=t===void 0?null:t;var o=a.memoizedState;if(t!==null&&oy(t,o[1]))return o[0];return a.memoizedState=[e,t],e}function Sy(e,t){var a=Mo();t=t===void 0?null:t;var o=e();if(hi){Yt(!0);try{e()}finally{Yt(!1)}}return a.memoizedState=[o,t],o}function Up(e,t){var a=Zt();t=t===void 0?null:t;var o=a.memoizedState;if(t!==null&&oy(t,o[1]))return o[0];if(o=e(),hi){Yt(!0);try{e()}finally{Yt(!1)}}return a.memoizedState=[o,t],o}function ky(e,t){var a=Mo();return Ly(a,e,t)}function bS(e,t){var a=Zt();return SS(a,oa.memoizedState,e,t)}function xS(e,t){var a=Zt();return oa===null?Ly(a,e,t):SS(a,oa.memoizedState,e,t)}function Ly(e,t,a){if(a===void 0||(hs&1073741824)!==0&&(pt&261930)===0)return e.memoizedState=t;return e.memoizedState=a,e=kk(),et.lanes|=e,fl|=e,a}function SS(e,t,a,o){if(No(a,t))return a;if(Nu.current!==null)return e=Ly(e,a,o),No(e,t)||($a=!0),e;if((hs&42)===0||(hs&1073741824)!==0&&(pt&261930)===0)return $a=!0,e.memoizedState=a;return e=kk(),et.lanes|=e,fl|=e,t}function _p(){K.asyncTransitions--}function kS(e,t,a,o,r){var s=Qt.p;Qt.p=s!==0&&s<jn?s:jn;var d=K.T,p={};p._updatedFibers=new Set,K.T=p,Ry(e,!1,t,a);try{var b=r(),k=K.S;if(k!==null&&k(p,b),b!==null&&typeof b==="object"&&typeof b.then==="function"){K.asyncTransitions++,b.then(_p,_p);var q=aM(b,o);Pd(e,t,q,nn(e))}else Pd(e,t,o,nn(e))}catch(B){Pd(e,t,{then:function(){},status:"rejected",reason:B},nn(e))}finally{Qt.p=s,d!==null&&p.types!==null&&(d.types!==null&&d.types!==p.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."),d.types=p.types),K.T=d,d===null&&p._updatedFibers&&(e=p._updatedFibers.size,p._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 Cy(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=LS(e).queue;eM(e),kS(e,r,t,Ti,a===null?x:function(){return CS(e),a(o)})}function LS(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:Ti,baseState:Ti,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Fn,lastRenderedState:Ti},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 CS(e){K.T===null&&console.error("requestFormReset was called outside a transition or action. To fix, move to an action, or wrap with startTransition.");var t=LS(e);t.next===null&&(t=e.alternate.memoizedState),Pd(e,t.next.queue,{},nn(e))}function wy(){var e=fy(!1);return e=kS.bind(null,et,e.queue,!0,!1),Mo().memoizedState=e,[!1,e]}function wS(){var e=Ji(Fn)[0],t=Zt().memoizedState;return[typeof e==="boolean"?e:Bd(e),t]}function TS(){var e=zd(Fn)[0],t=Zt().memoizedState;return[typeof e==="boolean"?e:Bd(e),t]}function ei(){return ba(Xc)}function Ty(){var e=Mo(),t=na.identifierPrefix;if(It){var a=ds,o=us;a=(o&~(1<<32-Ao(o)-1)).toString(32)+a,t="_"+t+"R_"+a,a=Hm++,0<a&&(t+="H"+a.toString(32)),t+="_"}else a=_D++,t="_"+t+"r_"+a.toString(32)+"_";return e.memoizedState=t}function Iy(){return Mo().memoizedState=iM.bind(null,et)}function iM(e,t){for(var a=e.return;a!==null;){switch(a.tag){case 24:case 3:var o=nn(a),r=Hs(o),s=Fs(a,r,o);s!==null&&(fr(o,"refresh()",e),Ta(s,a,o),Nd(s,a,o)),e=Xg(),t!==null&&t!==void 0&&s!==null&&console.error("The seed argument is not enabled outside experimental channels."),r.payload={cache:e};return}a=a.return}}function uM(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=nn(e);var r={lane:o,revertLane:0,gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null};Hp(e)?RS(t,r):(r=Og(e,t,r,o),r!==null&&(fr(o,"dispatch()",e),Ta(r,e,o),MS(r,t,o)))}function IS(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=nn(e),Pd(e,t,a,o)&&fr(o,"setState()",e)}function Pd(e,t,a,o){var r={lane:o,revertLane:0,gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null};if(Hp(e))RS(t,r);else{var s=e.alternate;if(e.lanes===0&&(s===null||s.lanes===0)&&(s=t.lastRenderedReducer,s!==null)){var d=K.H;K.H=Yn;try{var p=t.lastRenderedState,b=s(p,a);if(r.hasEagerState=!0,r.eagerState=b,No(b,p))return pp(e,t,r,0),na===null&&fp(),!1}catch(k){}finally{K.H=d}}if(a=Og(e,t,r,o),a!==null)return Ta(a,e,o),MS(a,t,o),!0}return!1}function Ry(e,t,a,o){if(K.T===null&&di===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:nv(),gesture:null,action:o,hasEagerState:!1,eagerState:null,next:null},Hp(e)){if(t)throw Error("Cannot update optimistic state while rendering.");console.error("Cannot call startTransition while rendering.")}else t=Og(e,a,o,2),t!==null&&(fr(2,"setOptimistic()",e),Ta(t,e,2))}function Hp(e){var t=e.alternate;return e===et||t!==null&&t===et}function RS(e,t){Bu=_m=!0;var a=e.pending;a===null?t.next=t:(t.next=a.next,a.next=t),e.pending=t}function MS(e,t,a){if((a&4194048)!==0){var o=t.lanes;o&=e.pendingLanes,a|=o,t.lanes=a,_l(e,a)}}function My(e){if(e!==null&&typeof e!=="function"){var t=String(e);Tw.has(t)||(Tw.add(t),console.error("Expected the last optional `callback` argument to be a function. Instead received: %s.",e))}}function Ay(e,t,a,o){var r=e.memoizedState,s=a(o,r);if(e.mode&Co){Yt(!0);try{s=a(o,r)}finally{Yt(!1)}}s===void 0&&(t=ee(t)||"Component",kw.has(t)||(kw.add(t),console.error("%s.getDerivedStateFromProps(): A valid state object (or null) must be returned. You have returned undefined.",t))),r=s===null||s===void 0?r:kt({},r,s),e.memoizedState=r,e.lanes===0&&(e.updateQueue.baseState=r)}function AS(e,t,a,o,r,s,d){var p=e.stateNode;if(typeof p.shouldComponentUpdate==="function"){if(a=p.shouldComponentUpdate(o,s,d),e.mode&Co){Yt(!0);try{a=p.shouldComponentUpdate(o,s,d)}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.",ee(t)||"Component"),a}return t.prototype&&t.prototype.isPureReactComponent?!Td(a,o)||!Td(r,s):!0}function DS(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",yw.has(e)||(yw.add(e),console.error("%s.componentWillReceiveProps(): Assigning directly to this.state is deprecated (except inside a component's constructor). Use setState instead.",e)),Cb.enqueueReplaceState(t,t.state,null))}function ti(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=kt({},a));for(var r in e)a[r]===void 0&&(a[r]=e[r])}return a}function ES(e){tb(e),console.warn(`%s
116
116
 
117
117
  %s
118
118
  `,zu?"An error occurred in the <"+zu+"> 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 NS(e){var t=zu?"The above error occurred in the <"+zu+"> 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, "+((Lb||"Anonymous")+".");if(typeof e==="object"&&e!==null&&typeof e.environmentName==="string"){var o=e.environmentName;e=[`%o
119
+ Visit https://react.dev/link/error-boundaries to learn more about error boundaries.`)}function NS(e){var t=zu?"The above error occurred in the <"+zu+"> 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, "+((wb||"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,i1+" "+e[0],u1,uh+o+uh,d1):e.splice(0,0,i1,u1,uh+o+uh,d1),e.unshift(console),o=nE.apply(console.error,e),o()}else console.error(`%o
124
+ `,e,t,a].slice(0),typeof e[0]==="string"?e.splice(0,1,i1+" "+e[0],u1,fh+o+fh,d1):e.splice(0,0,i1,u1,fh+o+fh,d1),e.unshift(console),o=lE.apply(console.error,e),o()}else console.error(`%o
125
125
 
126
126
  %s
127
127
 
128
128
  %s
129
- `,e,t,a)}function qS(e){Jv(e)}function Up(e,t){try{zu=t.source?X(t.source):null,Lb=null;var a=t.value;if(Y.actQueue!==null)Y.thrownErrors.push(a);else{var o=e.onUncaughtError;o(a,{componentStack:t.stack})}}catch(n){setTimeout(function(){throw n})}}function OS(e,t,a){try{zu=a.source?X(a.source):null,Lb=X(t);var o=e.onCaughtError;o(a.value,{componentStack:a.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(n){setTimeout(function(){throw n})}}function My(e,t,a){return a=Us(a),a.tag=gb,a.payload={element:null},a.callback=function(){Q(t.source,Up,e,t)},a}function Ay(e){return e=Us(e),e.tag=gb,e}function Dy(e,t,a,o){var n=a.type.getDerivedStateFromError;if(typeof n==="function"){var s=o.value;e.payload=function(){return n(s)},e.callback=function(){R0(a),Q(o.source,OS,t,a,o)}}var d=a.stateNode;d!==null&&typeof d.componentDidCatch==="function"&&(e.callback=function(){R0(a),Q(o.source,OS,t,a,o),typeof n!=="function"&&(fl===null?fl=new Set([this]):fl.add(this)),qD(this,o),typeof n==="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.",X(a)||"Unknown")})}function iM(e,t,a,o,n){if(a.flags|=32768,In&&jd(e,n),o!==null&&typeof o==="object"&&typeof o.then==="function"){if(t=a.alternate,t!==null&&Wi(t,a,n,!0),It&&(An=!0),a=ir.current,a!==null){switch(a.tag){case 31:case 13:return Rr===null?Yp():a.alternate===null&&wa===ys&&(wa=Hm),a.flags&=-257,a.flags|=65536,a.lanes=n,o===qm?a.flags|=16384:(t=a.updateQueue,t===null?a.updateQueue=new Set([o]):t.add(o),Zy(e,o,n)),!1;case 22:return a.flags|=65536,o===qm?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)),Zy(e,o,n)),!1}throw Error("Unexpected Suspense handler tag ("+a.tag+"). This is a bug in React.")}return Zy(e,o,n),Yp(),!1}if(It)return An=!0,t=ir.current,t!==null?((t.flags&65536)===0&&(t.flags|=256),t.flags|=65536,t.lanes=n,o!==nb&&Id(Zo(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!==nb&&Id(Zo(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,n&=-n,e.lanes|=n,o=Zo(o,a),n=My(e.stateNode,o,n),wp(e,n),wa!==il&&(wa=gi)),!1;var s=Zo(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(zc===null?zc=[s]:zc.push(s),wa!==il&&(wa=gi),t===null)return!0;o=Zo(o,a),a=t;do{switch(a.tag){case 3:return a.flags|=65536,e=n&-n,a.lanes|=e,e=My(a.stateNode,o,e),wp(a,e),!1;case 1:if(t=a.type,s=a.stateNode,(a.flags&128)===0&&(typeof t.getDerivedStateFromError==="function"||s!==null&&typeof s.componentDidCatch==="function"&&(fl===null||!fl.has(s))))return a.flags|=65536,n&=-n,a.lanes|=n,n=Ay(n),Dy(n,e,a,o),wp(a,n),!1}a=a.return}while(a!==null);return!1}function po(e,t,a,o){t.child=e===null?sw(t,null,a,o):mi(t,e.child,a,o)}function BS(e,t,a,o,n){a=a.render;var s=t.ref;if("ref"in o){var d={};for(var p in o)p!=="ref"&&(d[p]=o[p])}else d=o;if(Ql(t),o=ay(e,t,a,d,s,n),p=ry(),e!==null&&!ja)return ny(e,t,n),ts(e,t,n);return It&&p&&Ug(t),t.flags|=1,po(e,t,o,n),t.child}function zS(e,t,a,o,n){if(e===null){var s=a.type;if(typeof s==="function"&&!Og(s)&&s.defaultProps===void 0&&a.compare===null)return a=$l(s),t.tag=15,t.type=a,Ny(t,s),PS(e,t,a,o,n);return e=Bg(a.type,null,o,t,t.mode,n),e.ref=t.ref,e.return=t,t.child=e}if(s=e.child,!Uy(e,n)){var d=s.memoizedProps;if(a=a.compare,a=a!==null?a:wd,a(d,o)&&e.ref===t.ref)return ts(e,t,n)}return t.flags|=1,e=Wn(s,o),e.ref=t.ref,e.return=t,t.child=e}function PS(e,t,a,o,n){if(e!==null){var s=e.memoizedProps;if(wd(s,o)&&e.ref===t.ref&&t.type===e.type)if(ja=!1,t.pendingProps=o=s,Uy(e,n))(e.flags&131072)!==0&&(ja=!0);else return t.lanes=e.lanes,ts(e,t,n)}return Ey(e,t,a,o,n)}function US(e,t,a,o){var n=o.children,s=e!==null?e.memoizedState:null;if(e===null&&t.stateNode===null&&(t.stateNode={_visibility:fc,_pendingMarkers:null,_retryCache:null,_transitions:null}),o.mode==="hidden"){if((t.flags&128)!==0){if(s=s!==null?s.baseLanes|a:a,e!==null){o=t.child=e.child;for(n=0;o!==null;)n=n|o.lanes|o.childLanes,o=o.sibling;o=n&~s}else o=0,t.child=null;return _S(e,t,s,a,o)}if((a&536870912)!==0)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&bp(t,s!==null?s.cachePool:null),s!==null?tS(t,s):Zg(t),aS(t);else return o=t.lanes=536870912,_S(e,t,s!==null?s.baseLanes|a:a,a,o)}else s!==null?(bp(t,s.cachePool),tS(t,s),Fs(t),t.memoizedState=null):(e!==null&&bp(t,null),Zg(t),Fs(t));return po(e,t,n,a),t.child}function Pd(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:fc,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function _S(e,t,a,o,n){var s=Yg();return s=s===null?null:{parent:Fa._currentValue,pool:s},t.memoizedState={baseLanes:a,cachePool:s},e!==null&&bp(t,null),Zg(t),aS(t),e!==null&&Wi(e,t,o,!0),t.childLanes=n,null}function _p(e,t){var a=t.hidden;return a!==void 0&&console.error(`<Activity> doesn't accept a hidden prop. Use mode="hidden" instead.
129
+ `,e,t,a)}function qS(e){tb(e)}function Fp(e,t){try{zu=t.source?V(t.source):null,wb=null;var a=t.value;if(K.actQueue!==null)K.thrownErrors.push(a);else{var o=e.onUncaughtError;o(a,{componentStack:t.stack})}}catch(r){setTimeout(function(){throw r})}}function OS(e,t,a){try{zu=a.source?V(a.source):null,wb=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 Dy(e,t,a){return a=Hs(a),a.tag=vb,a.payload={element:null},a.callback=function(){H(t.source,Fp,e,t)},a}function Ey(e){return e=Hs(e),e.tag=vb,e}function Ny(e,t,a,o){var r=a.type.getDerivedStateFromError;if(typeof r==="function"){var s=o.value;e.payload=function(){return r(s)},e.callback=function(){R0(a),H(o.source,OS,t,a,o)}}var d=a.stateNode;d!==null&&typeof d.componentDidCatch==="function"&&(e.callback=function(){R0(a),H(o.source,OS,t,a,o),typeof r!=="function"&&(ml===null?ml=new Set([this]):ml.add(this)),BD(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 dM(e,t,a,o,r){if(a.flags|=32768,Mr&&$d(e,r),o!==null&&typeof o==="object"&&typeof o.then==="function"){if(t=a.alternate,t!==null&&Wi(t,a,r,!0),It&&(Er=!0),a=cn.current,a!==null){switch(a.tag){case 31:case 13:return An===null?Wp():a.alternate===null&&wa===bs&&(wa=Vm),a.flags&=-257,a.flags|=65536,a.lanes=r,o===zm?a.flags|=16384:(t=a.updateQueue,t===null?a.updateQueue=new Set([o]):t.add(o),ev(e,o,r)),!1;case 22:return a.flags|=65536,o===zm?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)),ev(e,o,r)),!1}throw Error("Unexpected Suspense handler tag ("+a.tag+"). This is a bug in React.")}return ev(e,o,r),Wp(),!1}if(It)return Er=!0,t=cn.current,t!==null?((t.flags&65536)===0&&(t.flags|=256),t.flags|=65536,t.lanes=r,o!==lb&&Rd(en(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!==lb&&Rd(en(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=en(o,a),r=Dy(e.stateNode,o,r),Rp(e,r),wa!==dl&&(wa=gi)),!1;var s=en(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(Pc===null?Pc=[s]:Pc.push(s),wa!==dl&&(wa=gi),t===null)return!0;o=en(o,a),a=t;do{switch(a.tag){case 3:return a.flags|=65536,e=r&-r,a.lanes|=e,e=Dy(a.stateNode,o,e),Rp(a,e),!1;case 1:if(t=a.type,s=a.stateNode,(a.flags&128)===0&&(typeof t.getDerivedStateFromError==="function"||s!==null&&typeof s.componentDidCatch==="function"&&(ml===null||!ml.has(s))))return a.flags|=65536,r&=-r,a.lanes|=r,r=Ey(r),Ny(r,e,a,o),Rp(a,r),!1}a=a.return}while(a!==null);return!1}function mo(e,t,a,o){t.child=e===null?sw(t,null,a,o):mi(t,e.child,a,o)}function BS(e,t,a,o,r){a=a.render;var s=t.ref;if("ref"in o){var d={};for(var p in o)p!=="ref"&&(d[p]=o[p])}else d=o;if(Ql(t),o=ny(e,t,a,d,s,r),p=sy(),e!==null&&!$a)return ly(e,t,r),os(e,t,r);return It&&p&&Hg(t),t.flags|=1,mo(e,t,o,r),t.child}function zS(e,t,a,o,r){if(e===null){var s=a.type;if(typeof s==="function"&&!zg(s)&&s.defaultProps===void 0&&a.compare===null)return a=$l(s),t.tag=15,t.type=a,Oy(t,s),PS(e,t,a,o,r);return e=Pg(a.type,null,o,t,t.mode,r),e.ref=t.ref,e.return=t,t.child=e}if(s=e.child,!Hy(e,r)){var d=s.memoizedProps;if(a=a.compare,a=a!==null?a:Td,a(d,o)&&e.ref===t.ref)return os(e,t,r)}return t.flags|=1,e=Jr(s,o),e.ref=t.ref,e.return=t,t.child=e}function PS(e,t,a,o,r){if(e!==null){var s=e.memoizedProps;if(Td(s,o)&&e.ref===t.ref&&t.type===e.type)if($a=!1,t.pendingProps=o=s,Hy(e,r))(e.flags&131072)!==0&&($a=!0);else return t.lanes=e.lanes,os(e,t,r)}return qy(e,t,a,o,r)}function US(e,t,a,o){var r=o.children,s=e!==null?e.memoizedState:null;if(e===null&&t.stateNode===null&&(t.stateNode={_visibility:pc,_pendingMarkers:null,_retryCache:null,_transitions:null}),o.mode==="hidden"){if((t.flags&128)!==0){if(s=s!==null?s.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&~s}else o=0,t.child=null;return _S(e,t,s,a,o)}if((a&536870912)!==0)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&kp(t,s!==null?s.cachePool:null),s!==null?tS(t,s):ey(t),aS(t);else return o=t.lanes=536870912,_S(e,t,s!==null?s.baseLanes|a:a,a,o)}else s!==null?(kp(t,s.cachePool),tS(t,s),Vs(t),t.memoizedState=null):(e!==null&&kp(t,null),ey(t),Vs(t));return mo(e,t,r,a),t.child}function Ud(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:pc,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function _S(e,t,a,o,r){var s=Qg();return s=s===null?null:{parent:Ga._currentValue,pool:s},t.memoizedState={baseLanes:a,cachePool:s},e!==null&&kp(t,null),ey(t),aS(t),e!==null&&Wi(e,t,o,!0),t.childLanes=r,null}function Gp(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=Fp({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function HS(e,t,a){return mi(t,e.child,null,a),e=_p(t,t.pendingProps),e.flags|=2,tr(t),t.memoizedState=null,e}function uM(e,t,a){var o=t.pendingProps,n=(t.flags&128)!==0;if(t.flags&=-129,e===null){if(It){if(o.mode==="hidden")return e=_p(t,o),t.lanes=536870912,Pd(null,e);if(ey(t),(e=fa)?(a=fL(e,Tr),a=a!==null&&a.data===ki?a:null,a!==null&&(o={dehydrated:a,treeContext:N0(),retryLane:536870912,hydrationErrors:null},t.memoizedState=o,o=D0(a),o.return=t,t.child=o,go=t,fa=null)):a=null,a===null)throw pp(t,e),Bs(t);return t.lanes=536870912,null}return _p(t,o)}var s=e.memoizedState;if(s!==null){var d=s.dehydrated;if(ey(t),n)if(t.flags&256)t.flags&=-257,t=HS(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(O0(),(a&536870912)!==0&&Xp(t),ja||Wi(e,t,a,!1),n=(a&e.childLanes)!==0,ja||n){if(o=oa,o!==null&&(d=Hl(o,a),d!==0&&d!==s.retryLane))throw s.retryLane=d,xo(e,d),Ta(o,e,d),Cb;Yp(),t=HS(e,t,a)}else e=s.treeContext,fa=or(d.nextSibling),go=t,It=!0,tl=null,An=!1,lr=null,Tr=!1,e!==null&&q0(t,e),t=_p(t,o),t.flags|=4096;return t}return s=e.child,o={mode:o.mode,children:o.children},(a&536870912)!==0&&(a&e.lanes)!==0&&Xp(t),e=Wn(s,o),e.ref=t.ref,t.child=e,e.return=t,e}function Hp(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 Ey(e,t,a,o,n){if(a.prototype&&typeof a.prototype.render==="function"){var s=ee(a)||"Unknown";Iw[s]||(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.",s,s),Iw[s]=!0)}if(t.mode&ko&&jr.recordLegacyContextWarning(t,null),e===null&&(Ny(t,t.type),a.contextTypes&&(s=ee(a)||"Unknown",Mw[s]||(Mw[s]=!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)",s)))),Ql(t),a=ay(e,t,a,o,void 0,n),o=ry(),e!==null&&!ja)return ny(e,t,n),ts(e,t,n);return It&&o&&Ug(t),t.flags|=1,po(e,t,a,n),t.child}function FS(e,t,a,o,n,s){if(Ql(t),hs=-1,Ac=e!==null&&e.type!==t.type,t.updateQueue=null,a=oy(t,o,a,n),oS(e,t),o=ry(),e!==null&&!ja)return ny(e,t,s),ts(e,t,s);return It&&o&&Ug(t),t.flags|=1,po(e,t,a,s),t.child}function GS(e,t,a,o,n){switch(g(t)){case!1:var s=t.stateNode,d=new t.type(t.memoizedProps,s.context).state;s.updater.enqueueSetState(s,d,null);break;case!0:t.flags|=128,t.flags|=65536,s=Error("Simulated error coming from DevTools");var p=n&-n;if(t.lanes|=p,d=oa,d===null)throw Error("Expected a work-in-progress root. This is a bug in React. Please file an issue.");p=Ay(p),Dy(p,d,t,Zo(s,t)),wp(t,p)}if(Ql(t),t.stateNode===null){if(d=el,s=a.contextType,"contextType"in a&&s!==null&&(s===void 0||s.$$typeof!==Cn)&&!ww.has(a)&&(ww.add(a),p=s===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 s!=="object"?" However, it is set to a "+typeof s+".":s.$$typeof===wv?" Did you accidentally pass the Context.Consumer instead?":" However, it is set to an object with keys {"+Object.keys(s).join(", ")+"}.",console.error("%s defines an invalid contextType. contextType should point to the Context object returned by React.createContext().%s",ee(a)||"Component",p)),typeof s==="object"&&s!==null&&(d=ba(s)),s=new a(o,d),t.mode&ko){Xt(!0);try{s=new a(o,d)}finally{Xt(!1)}}if(d=t.memoizedState=s.state!==null&&s.state!==void 0?s.state:null,s.updater=kb,t.stateNode=s,s._reactInternals=t,s._reactInternalInstance=gw,typeof a.getDerivedStateFromProps==="function"&&d===null&&(d=ee(a)||"Component",vw.has(d)||(vw.add(d),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.",d,s.state===null?"null":"undefined",d))),typeof a.getDerivedStateFromProps==="function"||typeof s.getSnapshotBeforeUpdate==="function"){var b=p=d=null;if(typeof s.componentWillMount==="function"&&s.componentWillMount.__suppressDeprecationWarning!==!0?d="componentWillMount":typeof s.UNSAFE_componentWillMount==="function"&&(d="UNSAFE_componentWillMount"),typeof s.componentWillReceiveProps==="function"&&s.componentWillReceiveProps.__suppressDeprecationWarning!==!0?p="componentWillReceiveProps":typeof s.UNSAFE_componentWillReceiveProps==="function"&&(p="UNSAFE_componentWillReceiveProps"),typeof s.componentWillUpdate==="function"&&s.componentWillUpdate.__suppressDeprecationWarning!==!0?b="componentWillUpdate":typeof s.UNSAFE_componentWillUpdate==="function"&&(b="UNSAFE_componentWillUpdate"),d!==null||p!==null||b!==null){s=ee(a)||"Component";var k=typeof a.getDerivedStateFromProps==="function"?"getDerivedStateFromProps()":"getSnapshotBeforeUpdate()";xw.has(s)||(xw.add(s),console.error(`Unsafe legacy lifecycles will not be called for components using new component APIs.
131
+ + <Activity %s>`,a===!0?"hidden":a===!1?"hidden={false}":"hidden={...}",a?'mode="hidden"':'mode="visible"'),t=jp({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function HS(e,t,a){return mi(t,e.child,null,a),e=Gp(t,t.pendingProps),e.flags|=2,on(t),t.memoizedState=null,e}function cM(e,t,a){var o=t.pendingProps,r=(t.flags&128)!==0;if(t.flags&=-129,e===null){if(It){if(o.mode==="hidden")return e=Gp(t,o),t.lanes=536870912,Ud(null,e);if(ay(t),(e=pa)?(a=fL(e,Rn),a=a!==null&&a.data===ki?a:null,a!==null&&(o={dehydrated:a,treeContext:N0(),retryLane:536870912,hydrationErrors:null},t.memoizedState=o,o=D0(a),o.return=t,t.child=o,yo=t,pa=null)):a=null,a===null)throw gp(t,e),Ps(t);return t.lanes=536870912,null}return Gp(t,o)}var s=e.memoizedState;if(s!==null){var d=s.dehydrated;if(ay(t),r)if(t.flags&256)t.flags&=-257,t=HS(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(O0(),(a&536870912)!==0&&Qp(t),$a||Wi(e,t,a,!1),r=(a&e.childLanes)!==0,$a||r){if(o=na,o!==null&&(d=Hl(o,a),d!==0&&d!==s.retryLane))throw s.retryLane=d,ko(e,d),Ta(o,e,d),Tb;Wp(),t=HS(e,t,a)}else e=s.treeContext,pa=rn(d.nextSibling),yo=t,It=!0,ol=null,Er=!1,dn=null,Rn=!1,e!==null&&q0(t,e),t=Gp(t,o),t.flags|=4096;return t}return s=e.child,o={mode:o.mode,children:o.children},(a&536870912)!==0&&(a&e.lanes)!==0&&Qp(t),e=Jr(s,o),e.ref=t.ref,t.child=e,e.return=t,e}function Vp(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 qy(e,t,a,o,r){if(a.prototype&&typeof a.prototype.render==="function"){var s=ee(a)||"Unknown";Iw[s]||(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.",s,s),Iw[s]=!0)}if(t.mode&Co&&Xn.recordLegacyContextWarning(t,null),e===null&&(Oy(t,t.type),a.contextTypes&&(s=ee(a)||"Unknown",Mw[s]||(Mw[s]=!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)",s)))),Ql(t),a=ny(e,t,a,o,void 0,r),o=sy(),e!==null&&!$a)return ly(e,t,r),os(e,t,r);return It&&o&&Hg(t),t.flags|=1,mo(e,t,a,r),t.child}function FS(e,t,a,o,r,s){if(Ql(t),ys=-1,Dc=e!==null&&e.type!==t.type,t.updateQueue=null,a=ry(t,o,a,r),oS(e,t),o=sy(),e!==null&&!$a)return ly(e,t,s),os(e,t,s);return It&&o&&Hg(t),t.flags|=1,mo(e,t,a,s),t.child}function GS(e,t,a,o,r){switch(g(t)){case!1:var s=t.stateNode,d=new t.type(t.memoizedProps,s.context).state;s.updater.enqueueSetState(s,d,null);break;case!0:t.flags|=128,t.flags|=65536,s=Error("Simulated error coming from DevTools");var p=r&-r;if(t.lanes|=p,d=na,d===null)throw Error("Expected a work-in-progress root. This is a bug in React. Please file an issue.");p=Ey(p),Ny(p,d,t,en(s,t)),Rp(t,p)}if(Ql(t),t.stateNode===null){if(d=al,s=a.contextType,"contextType"in a&&s!==null&&(s===void 0||s.$$typeof!==Tr)&&!ww.has(a)&&(ww.add(a),p=s===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 s!=="object"?" However, it is set to a "+typeof s+".":s.$$typeof===Iv?" Did you accidentally pass the Context.Consumer instead?":" However, it is set to an object with keys {"+Object.keys(s).join(", ")+"}.",console.error("%s defines an invalid contextType. contextType should point to the Context object returned by React.createContext().%s",ee(a)||"Component",p)),typeof s==="object"&&s!==null&&(d=ba(s)),s=new a(o,d),t.mode&Co){Yt(!0);try{s=new a(o,d)}finally{Yt(!1)}}if(d=t.memoizedState=s.state!==null&&s.state!==void 0?s.state:null,s.updater=Cb,t.stateNode=s,s._reactInternals=t,s._reactInternalInstance=gw,typeof a.getDerivedStateFromProps==="function"&&d===null&&(d=ee(a)||"Component",vw.has(d)||(vw.add(d),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.",d,s.state===null?"null":"undefined",d))),typeof a.getDerivedStateFromProps==="function"||typeof s.getSnapshotBeforeUpdate==="function"){var b=p=d=null;if(typeof s.componentWillMount==="function"&&s.componentWillMount.__suppressDeprecationWarning!==!0?d="componentWillMount":typeof s.UNSAFE_componentWillMount==="function"&&(d="UNSAFE_componentWillMount"),typeof s.componentWillReceiveProps==="function"&&s.componentWillReceiveProps.__suppressDeprecationWarning!==!0?p="componentWillReceiveProps":typeof s.UNSAFE_componentWillReceiveProps==="function"&&(p="UNSAFE_componentWillReceiveProps"),typeof s.componentWillUpdate==="function"&&s.componentWillUpdate.__suppressDeprecationWarning!==!0?b="componentWillUpdate":typeof s.UNSAFE_componentWillUpdate==="function"&&(b="UNSAFE_componentWillUpdate"),d!==null||p!==null||b!==null){s=ee(a)||"Component";var k=typeof a.getDerivedStateFromProps==="function"?"getDerivedStateFromProps()":"getSnapshotBeforeUpdate()";xw.has(s)||(xw.add(s),console.error(`Unsafe legacy lifecycles will not be called for components using new component APIs.
132
132
 
133
133
  %s uses %s but also contains the following legacy lifecycles:%s%s%s
134
134
 
@@ -136,8 +136,8 @@ The above lifecycles should be removed. Learn more about this warning here:
136
136
  https://react.dev/link/unsafe-component-lifecycles`,s,k,d!==null?`
137
137
  `+d:"",p!==null?`
138
138
  `+p:"",b!==null?`
139
- `+b:""))}}s=t.stateNode,d=ee(a)||"Component",s.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?",d):console.error("No `render` method found on the %s instance: you may have forgotten to define `render`.",d)),!s.getInitialState||s.getInitialState.isReactClassApproved||s.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?",d),s.getDefaultProps&&!s.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.",d),s.contextType&&console.error("contextType was defined as an instance property on %s. Use a static property to define contextType instead.",d),a.childContextTypes&&!Cw.has(a)&&(Cw.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)",d)),a.contextTypes&&!Lw.has(a)&&(Lw.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)",d)),typeof s.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.",d),a.prototype&&a.prototype.isPureReactComponent&&typeof s.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.",ee(a)||"A pure component"),typeof s.componentDidUnmount==="function"&&console.error("%s has a method called componentDidUnmount(). But there is no such lifecycle method. Did you mean componentWillUnmount()?",d),typeof s.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().",d),typeof s.componentWillRecieveProps==="function"&&console.error("%s has a method called componentWillRecieveProps(). Did you mean componentWillReceiveProps()?",d),typeof s.UNSAFE_componentWillRecieveProps==="function"&&console.error("%s has a method called UNSAFE_componentWillRecieveProps(). Did you mean UNSAFE_componentWillReceiveProps()?",d),p=s.props!==o,s.props!==void 0&&p&&console.error("When calling super() in `%s`, make sure to pass up the same props that your component's constructor was passed.",d),s.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.",d,d),typeof s.getSnapshotBeforeUpdate!=="function"||typeof s.componentDidUpdate==="function"||bw.has(a)||(bw.add(a),console.error("%s: getSnapshotBeforeUpdate() should be used with componentDidUpdate(). This component defines getSnapshotBeforeUpdate() only.",ee(a))),typeof s.getDerivedStateFromProps==="function"&&console.error("%s: getDerivedStateFromProps() is defined as an instance method and will be ignored. Instead, declare it as a static method.",d),typeof s.getDerivedStateFromError==="function"&&console.error("%s: getDerivedStateFromError() is defined as an instance method and will be ignored. Instead, declare it as a static method.",d),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.",d),(p=s.state)&&(typeof p!=="object"||Wa(p))&&console.error("%s.state: must be set to an object or null",d),typeof s.getChildContext==="function"&&typeof a.childContextTypes!=="object"&&console.error("%s.getChildContext(): childContextTypes must be defined in order to use getChildContext().",d),s=t.stateNode,s.props=o,s.state=t.memoizedState,s.refs={},Qg(t),d=a.contextType,s.context=typeof d==="object"&&d!==null?ba(d):el,s.state===o&&(d=ee(a)||"Component",Sw.has(d)||(Sw.add(d),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.",d))),t.mode&ko&&jr.recordLegacyContextWarning(t,s),jr.recordUnsafeLifecycleWarnings(t,s),s.state=t.memoizedState,d=a.getDerivedStateFromProps,typeof d==="function"&&(Ry(t,a,d,o),s.state=t.memoizedState),typeof a.getDerivedStateFromProps==="function"||typeof s.getSnapshotBeforeUpdate==="function"||typeof s.UNSAFE_componentWillMount!=="function"&&typeof s.componentWillMount!=="function"||(d=s.state,typeof s.componentWillMount==="function"&&s.componentWillMount(),typeof s.UNSAFE_componentWillMount==="function"&&s.UNSAFE_componentWillMount(),d!==s.state&&(console.error("%s.componentWillMount(): Assigning directly to this.state is deprecated (except inside a component's constructor). Use setState instead.",X(t)||"Component"),kb.enqueueReplaceState(s,s.state,null)),qd(t,o,s,n),Nd(),s.state=t.memoizedState),typeof s.componentDidMount==="function"&&(t.flags|=4194308),(t.mode&Vr)!==Ke&&(t.flags|=134217728),s=!0}else if(e===null){s=t.stateNode;var O=t.memoizedProps;p=ti(a,O),s.props=p;var B=s.context;b=a.contextType,d=el,typeof b==="object"&&b!==null&&(d=ba(b)),k=a.getDerivedStateFromProps,b=typeof k==="function"||typeof s.getSnapshotBeforeUpdate==="function",O=t.pendingProps!==O,b||typeof s.UNSAFE_componentWillReceiveProps!=="function"&&typeof s.componentWillReceiveProps!=="function"||(O||B!==d)&&DS(t,s,o,d),ll=!1;var D=t.memoizedState;s.state=D,qd(t,o,s,n),Nd(),B=t.memoizedState,O||D!==B||ll?(typeof k==="function"&&(Ry(t,a,k,o),B=t.memoizedState),(p=ll||AS(t,a,p,o,D,B,d))?(b||typeof s.UNSAFE_componentWillMount!=="function"&&typeof s.componentWillMount!=="function"||(typeof s.componentWillMount==="function"&&s.componentWillMount(),typeof s.UNSAFE_componentWillMount==="function"&&s.UNSAFE_componentWillMount()),typeof s.componentDidMount==="function"&&(t.flags|=4194308),(t.mode&Vr)!==Ke&&(t.flags|=134217728)):(typeof s.componentDidMount==="function"&&(t.flags|=4194308),(t.mode&Vr)!==Ke&&(t.flags|=134217728),t.memoizedProps=o,t.memoizedState=B),s.props=o,s.state=B,s.context=d,s=p):(typeof s.componentDidMount==="function"&&(t.flags|=4194308),(t.mode&Vr)!==Ke&&(t.flags|=134217728),s=!1)}else{s=t.stateNode,Wg(e,t),d=t.memoizedProps,b=ti(a,d),s.props=b,k=t.pendingProps,D=s.context,B=a.contextType,p=el,typeof B==="object"&&B!==null&&(p=ba(B)),O=a.getDerivedStateFromProps,(B=typeof O==="function"||typeof s.getSnapshotBeforeUpdate==="function")||typeof s.UNSAFE_componentWillReceiveProps!=="function"&&typeof s.componentWillReceiveProps!=="function"||(d!==k||D!==p)&&DS(t,s,o,p),ll=!1,D=t.memoizedState,s.state=D,qd(t,o,s,n),Nd();var F=t.memoizedState;d!==k||D!==F||ll||e!==null&&e.dependencies!==null&&hp(e.dependencies)?(typeof O==="function"&&(Ry(t,a,O,o),F=t.memoizedState),(b=ll||AS(t,a,b,o,D,F,p)||e!==null&&e.dependencies!==null&&hp(e.dependencies))?(B||typeof s.UNSAFE_componentWillUpdate!=="function"&&typeof s.componentWillUpdate!=="function"||(typeof s.componentWillUpdate==="function"&&s.componentWillUpdate(o,F,p),typeof s.UNSAFE_componentWillUpdate==="function"&&s.UNSAFE_componentWillUpdate(o,F,p)),typeof s.componentDidUpdate==="function"&&(t.flags|=4),typeof s.getSnapshotBeforeUpdate==="function"&&(t.flags|=1024)):(typeof s.componentDidUpdate!=="function"||d===e.memoizedProps&&D===e.memoizedState||(t.flags|=4),typeof s.getSnapshotBeforeUpdate!=="function"||d===e.memoizedProps&&D===e.memoizedState||(t.flags|=1024),t.memoizedProps=o,t.memoizedState=F),s.props=o,s.state=F,s.context=p,s=b):(typeof s.componentDidUpdate!=="function"||d===e.memoizedProps&&D===e.memoizedState||(t.flags|=4),typeof s.getSnapshotBeforeUpdate!=="function"||d===e.memoizedProps&&D===e.memoizedState||(t.flags|=1024),s=!1)}if(p=s,Hp(e,t),d=(t.flags&128)!==0,p||d){if(p=t.stateNode,ke(t),d&&typeof a.getDerivedStateFromError!=="function")a=null,Do=-1;else if(a=$C(p),t.mode&ko){Xt(!0);try{$C(p)}finally{Xt(!1)}}t.flags|=1,e!==null&&d?(t.child=mi(t,e.child,null,n),t.child=mi(t,null,a,n)):po(e,t,a,n),t.memoizedState=p.state,e=t.child}else e=ts(e,t,n);return n=t.stateNode,s&&n.props!==o&&(Pu||console.error("It looks like %s is reassigning its own `this.props` while rendering. This is not supported and can lead to confusing bugs.",X(t)||"a component"),Pu=!0),e}function VS(e,t,a,o){return Kl(),t.flags|=256,po(e,t,a,o),t.child}function Ny(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=ee(t)||"Unknown",Aw[e]||(console.error("%s: Function components do not support getDerivedStateFromProps.",e),Aw[e]=!0)),typeof t.contextType==="object"&&t.contextType!==null&&(t=ee(t)||"Unknown",Rw[t]||(console.error("%s: Function components do not support contextType.",t),Rw[t]=!0))}function qy(e){return{baseLanes:e,cachePool:F0()}}function Oy(e,t,a){return e=e!==null?e.childLanes&~a:0,t&&(e|=jo),e}function jS(e,t,a){var o,n=t.pendingProps;y(t)&&(t.flags|=128);var s=!1,d=(t.flags&128)!==0;if((o=d)||(o=e!==null&&e.memoizedState===null?!1:(za.current&Rc)!==0),o&&(s=!0,t.flags&=-129),o=(t.flags&32)!==0,t.flags&=-33,e===null){if(It){if(s?Hs(t):Fs(t),(e=fa)?(a=fL(e,Tr),a=a!==null&&a.data!==ki?a:null,a!==null&&(o={dehydrated:a,treeContext:N0(),retryLane:536870912,hydrationErrors:null},t.memoizedState=o,o=D0(a),o.return=t,t.child=o,go=t,fa=null)):a=null,a===null)throw pp(t,e),Bs(t);return mv(a)?t.lanes=32:t.lanes=536870912,null}var p=n.children;if(n=n.fallback,s){Fs(t);var b=t.mode;return p=Fp({mode:"hidden",children:p},b),n=Xl(n,b,a,null),p.return=t,n.return=t,p.sibling=n,t.child=p,n=t.child,n.memoizedState=qy(a),n.childLanes=Oy(e,o,a),t.memoizedState=wb,Pd(null,n)}return Hs(t),By(t,p)}var k=e.memoizedState;if(k!==null){var O=k.dehydrated;if(O!==null){if(d)t.flags&256?(Hs(t),t.flags&=-257,t=zy(e,t,a)):t.memoizedState!==null?(Fs(t),t.child=e.child,t.flags|=128,t=null):(Fs(t),p=n.fallback,b=t.mode,n=Fp({mode:"visible",children:n.children},b),p=Xl(p,b,a,null),p.flags|=2,n.return=t,p.return=t,n.sibling=p,t.child=n,mi(t,e.child,null,a),n=t.child,n.memoizedState=qy(a),n.childLanes=Oy(e,o,a),t.memoizedState=wb,t=Pd(null,n));else if(Hs(t),O0(),(a&536870912)!==0&&Xp(t),mv(O)){if(o=O.nextSibling&&O.nextSibling.dataset,o){p=o.dgst;var B=o.msg;b=o.stck;var D=o.cstck}s=B,o=p,n=b,O=D,p=s,b=O,p=p?Error(p):Error("The server could not finish this Suspense boundary, likely due to an error during server rendering. Switched to client rendering."),p.stack=n||"",p.digest=o,o=b===void 0?null:b,n={value:p,source:null,stack:o},typeof o==="string"&&rb.set(p,n),Id(n),t=zy(e,t,a)}else if(ja||Wi(e,t,a,!1),o=(a&e.childLanes)!==0,ja||o){if(o=oa,o!==null&&(n=Hl(o,a),n!==0&&n!==k.retryLane))throw k.retryLane=n,xo(e,n),Ta(o,e,n),Cb;pv(O)||Yp(),t=zy(e,t,a)}else pv(O)?(t.flags|=192,t.child=e.child,t=null):(e=k.treeContext,fa=or(O.nextSibling),go=t,It=!0,tl=null,An=!1,lr=null,Tr=!1,e!==null&&q0(t,e),t=By(t,n.children),t.flags|=4096);return t}}if(s)return Fs(t),p=n.fallback,b=t.mode,D=e.child,O=D.sibling,n=Wn(D,{mode:"hidden",children:n.children}),n.subtreeFlags=D.subtreeFlags&65011712,O!==null?p=Wn(O,p):(p=Xl(p,b,a,null),p.flags|=2),p.return=t,n.return=t,n.sibling=p,t.child=n,Pd(null,n),n=t.child,p=e.child.memoizedState,p===null?p=qy(a):(b=p.cachePool,b!==null?(D=Fa._currentValue,b=b.parent!==D?{parent:D,pool:D}:b):b=F0(),p={baseLanes:p.baseLanes|a,cachePool:b}),n.memoizedState=p,n.childLanes=Oy(e,o,a),t.memoizedState=wb,Pd(e.child,n);return k!==null&&(a&62914560)===a&&(a&e.lanes)!==0&&Xp(t),Hs(t),a=e.child,e=a.sibling,a=Wn(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 By(e,t){return t=Fp({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function Fp(e,t){return e=C(22,e,null,t),e.lanes=0,e}function zy(e,t,a){return mi(t,e.child,null,a),e=By(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function $S(e,t,a){e.lanes|=t;var o=e.alternate;o!==null&&(o.lanes|=t),Gg(e.return,t,a)}function Py(e,t,a,o,n,s){var d=e.memoizedState;d===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:o,tail:a,tailMode:n,treeForkCount:s}:(d.isBackwards=t,d.rendering=null,d.renderingStartTime=0,d.last=o,d.tail=a,d.tailMode=n,d.treeForkCount=s)}function XS(e,t,a){var o=t.pendingProps,n=o.revealOrder,s=o.tail,d=o.children,p=za.current;if((o=(p&Rc)!==0)?(p=p&qu|Rc,t.flags|=128):p&=qu,Oe(za,p,t),p=n==null?"null":n,n!=="forwards"&&n!=="unstable_legacy-backwards"&&n!=="together"&&n!=="independent"&&!Dw[p])if(Dw[p]=!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(p=s==null?"null":s,!_m[p])if(s==null){if(n==="forwards"||n==="backwards"||n==="unstable_legacy-backwards")_m[p]=!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 s!=="visible"&&s!=="collapsed"&&s!=="hidden"?(_m[p]=!0,console.error('"%s" is not a supported value for tail on <SuspenseList />. Did you mean "visible", "collapsed" or "hidden"?',s)):n!=="forwards"&&n!=="backwards"&&n!=="unstable_legacy-backwards"&&(_m[p]=!0,console.error('<SuspenseList tail="%s" /> is only valid if revealOrder is "forwards" or "backwards". Did you mean to specify revealOrder="forwards"?',s));e:if((n==="forwards"||n==="backwards"||n==="unstable_legacy-backwards")&&d!==void 0&&d!==null&&d!==!1)if(Wa(d)){for(p=0;p<d.length;p++)if(!Z0(d[p],p))break e}else if(p=fe(d),typeof p==="function"){if(p=p.call(d))for(var b=p.next(),k=0;!b.done;b=p.next()){if(!Z0(b.value,k))break e;k++}}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(po(e,t,d,a),It?(Os(),d=pc):d=0,!o&&e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&$S(e,a,t);else if(e.tag===19)$S(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&&Tp(e)===null&&(n=a),a=a.sibling;a=n,a===null?(n=t.child,t.child=null):(n=a.sibling,a.sibling=null),Py(t,!1,n,a,s,d);break;case"backwards":case"unstable_legacy-backwards":a=null,n=t.child;for(t.child=null;n!==null;){if(e=n.alternate,e!==null&&Tp(e)===null){t.child=n;break}e=n.sibling,n.sibling=a,a=n,n=e}Py(t,!0,a,null,s,d);break;case"together":Py(t,!1,null,null,void 0,d);break;default:t.memoizedState=null}return t.child}function ts(e,t,a){if(e!==null&&(t.dependencies=e.dependencies),Do=-1,dl|=t.lanes,(a&t.childLanes)===0)if(e!==null){if(Wi(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 Uy(e,t){if((e.lanes&t)!==0)return!0;return e=e.dependencies,e!==null&&hp(e)?!0:!1}function dM(e,t,a){switch(t.tag){case 3:re(t,t.stateNode.containerInfo),zs(t,Fa,e.memoizedState.cache),Kl();break;case 27:case 5:Je(t);break;case 4:re(t,t.stateNode.containerInfo);break;case 10:zs(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,ey(t),null;break;case 13:if(o=t.memoizedState,o!==null){if(o.dehydrated!==null)return Hs(t),t.flags|=128,null;if((a&t.child.childLanes)!==0)return jS(e,t,a);return Hs(t),e=ts(e,t,a),e!==null?e.sibling:null}Hs(t);break;case 19:var n=(e.flags&128)!==0;if(o=(a&t.childLanes)!==0,o||(Wi(e,t,a,!1),o=(a&t.childLanes)!==0),n){if(o)return XS(e,t,a);t.flags|=128}if(n=t.memoizedState,n!==null&&(n.rendering=null,n.tail=null,n.lastEffect=null),Oe(za,za.current,t),o)break;else return null;case 22:return t.lanes=0,US(e,t,a,t.pendingProps);case 24:zs(t,Fa,e.memoizedState.cache)}return ts(e,t,a)}function _y(e,t,a){if(t._debugNeedsRemount&&e!==null){a=Bg(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)ja=!0;else{if(!Uy(e,a)&&(t.flags&128)===0)return ja=!1,dM(e,t,a);ja=(e.flags&131072)!==0?!0:!1}else{if(ja=!1,o=It)Os(),o=(t.flags&1048576)!==0;o&&(o=t.index,Os(),E0(t,pc,o))}switch(t.lanes=0,t.tag){case 16:e:if(o=t.pendingProps,e=Ps(t.elementType),t.type=e,typeof e==="function")Og(e)?(o=ti(e,o),t.tag=1,t.type=e=$l(e),t=GS(null,t,e,o,a)):(t.tag=0,Ny(t,e),t.type=e=$l(e),t=Ey(null,t,e,o,a));else{if(e!==void 0&&e!==null){if(n=e.$$typeof,n===ec){t.tag=11,t.type=e=qg(e),t=BS(null,t,e,o,a);break e}else if(n===im){t.tag=14,t=zS(null,t,e,o,a);break e}}throw t="",e!==null&&typeof e==="object"&&e.$$typeof===rr&&(t=" Did you wrap a component in React.lazy() more than once?"),a=ee(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 Ey(e,t,t.type,t.pendingProps,a);case 1:return o=t.type,n=ti(o,t.pendingProps),GS(e,t,o,n,a);case 3:e:{if(re(t,t.stateNode.containerInfo),e===null)throw Error("Should have a current fiber. This is a bug in React.");o=t.pendingProps;var s=t.memoizedState;n=s.element,Wg(e,t),qd(t,o,null,a);var d=t.memoizedState;if(o=d.cache,zs(t,Fa,o),o!==s.cache&&Vg(t,[Fa],a,!0),Nd(),o=d.element,s.isDehydrated)if(s={element:o,isDehydrated:!1,cache:d.cache},t.updateQueue.baseState=s,t.memoizedState=s,t.flags&256){t=VS(e,t,o,a);break e}else if(o!==n){n=Zo(Error("This root received an early update, before anything was able hydrate. Switched the entire root to client rendering."),t),Id(n),t=VS(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}fa=or(e.firstChild),go=t,It=!0,tl=null,An=!1,lr=null,Tr=!0,a=sw(t,null,o,a);for(t.child=a;a;)a.flags=a.flags&-3|4096,a=a.sibling}else{if(Kl(),o===n){t=ts(e,t,a);break e}po(e,t,o,a)}t=t.child}return t;case 26:return Hp(e,t),e===null?(a=vL(t.type,null,t.pendingProps,null))?t.memoizedState=a:It||(a=t.type,e=t.pendingProps,o=we(Ys.current),o=Zp(o).createElement(a),o[ho]=t,o[Ro]=e,mo(o,a,e),ze(o),t.stateNode=o):t.memoizedState=vL(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return Je(t),e===null&&It&&(o=we(Ys.current),n=Ae(),o=t.stateNode=gL(t.type,t.pendingProps,o,n,!1),An||(n=rL(o,t.type,t.pendingProps,n),n!==null&&(Yl(t,0).serverProps=n)),go=t,Tr=!0,n=fa,$s(t.type)?(Yb=n,fa=or(o.firstChild)):fa=n),po(e,t,t.pendingProps.children,a),Hp(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&It&&(s=Ae(),o=Tg(t.type,s.ancestorInfo),n=fa,(d=!n)||(d=ZM(n,t.type,t.pendingProps,Tr),d!==null?(t.stateNode=d,An||(s=rL(d,t.type,t.pendingProps,s),s!==null&&(Yl(t,0).serverProps=s)),go=t,fa=or(d.firstChild),Tr=!1,s=!0):s=!1,d=!s),d&&(o&&pp(t,n),Bs(t))),Je(t),n=t.type,s=t.pendingProps,d=e!==null?e.memoizedProps:null,o=s.children,cv(n,s)?o=null:d!==null&&cv(n,d)&&(t.flags|=32),t.memoizedState!==null&&(n=ay(e,t,aM,null,null,a),$c._currentValue=n),Hp(e,t),po(e,t,o,a),t.child;case 6:return e===null&&It&&(a=t.pendingProps,e=Ae(),o=e.ancestorInfo.current,a=o!=null?op(a,o.tag,e.ancestorInfo.implicitRootScope):!0,e=fa,(o=!e)||(o=JM(e,t.pendingProps,Tr),o!==null?(t.stateNode=o,go=t,fa=null,o=!0):o=!1,o=!o),o&&(a&&pp(t,e),Bs(t))),null;case 13:return jS(e,t,a);case 4:return re(t,t.stateNode.containerInfo),o=t.pendingProps,e===null?t.child=mi(t,null,o,a):po(e,t,o,a),t.child;case 11:return BS(e,t,t.type,t.pendingProps,a);case 7:return po(e,t,t.pendingProps,a),t.child;case 8:return po(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,po(e,t,t.pendingProps.children,a),t.child;case 10:return o=t.type,n=t.pendingProps,s=n.value,"value"in n||Ew||(Ew=!0,console.error("The `value` prop is required for the `<Context.Provider>`. Did you misspell it or forget to pass it?")),zs(t,o,s),po(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."),Ql(t),n=ba(n),o=fb(o,n,void 0),t.flags|=1,po(e,t,o,a),t.child;case 14:return zS(e,t,t.type,t.pendingProps,a);case 15:return PS(e,t,t.type,t.pendingProps,a);case 19:return XS(e,t,a);case 31:return uM(e,t,a);case 22:return US(e,t,a,t.pendingProps);case 24:return Ql(t),o=ba(Fa),e===null?(n=Yg(),n===null&&(n=oa,s=jg(),n.pooledCache=s,Wl(s),s!==null&&(n.pooledCacheLanes|=a),n=s),t.memoizedState={parent:o,cache:n},Qg(t),zs(t,Fa,n)):((e.lanes&a)!==0&&(Wg(e,t),qd(t,null,null,a),Nd()),n=e.memoizedState,s=t.memoizedState,n.parent!==o?(n={parent:o,cache:o},t.memoizedState=n,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=n),zs(t,Fa,o)):(o=s.cache,zs(t,Fa,o),o!==n.cache&&Vg(t,[Fa],a,!0))),po(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 as(e){e.flags|=4}function Hy(e,t,a,o,n){if(t=(e.mode&AD)!==Ke)t=!1;if(t){if(e.flags|=16777216,(n&335544128)===n)if(e.stateNode.complete)e.flags|=8192;else if(Tk())e.flags|=8192;else throw pi=qm,mb}else e.flags&=-16777217}function YS(e,t){if(t.type!=="stylesheet"||(t.state.loading&Dr)!==wi)e.flags&=-16777217;else if(e.flags|=16777216,!LL(t))if(Tk())e.flags|=8192;else throw pi=qm,mb}function Gp(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?ji():536870912,e.lanes|=t,bi|=t)}function Ud(e,t){if(!It)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 sa(e){var t=e.alternate!==null&&e.alternate.child===e.child,a=0,o=0;if(t)if((e.mode&ct)!==Ke){for(var{selfBaseDuration:n,child:s}=e;s!==null;)a|=s.lanes|s.childLanes,o|=s.subtreeFlags&65011712,o|=s.flags&65011712,n+=s.treeBaseDuration,s=s.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&ct)!==Ke){n=e.actualDuration,s=e.selfBaseDuration;for(var d=e.child;d!==null;)a|=d.lanes|d.childLanes,o|=d.subtreeFlags,o|=d.flags,n+=d.actualDuration,s+=d.treeBaseDuration,d=d.sibling;e.actualDuration=n,e.treeBaseDuration=s}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 cM(e,t,a){var o=t.pendingProps;switch(_g(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return sa(t),null;case 1:return sa(t),null;case 3:if(a=t.stateNode,o=null,e!==null&&(o=e.memoizedState.cache),t.memoizedState.cache!==o&&(t.flags|=2048),Jn(Fa,t),xe(t),a.pendingContext&&(a.context=a.pendingContext,a.pendingContext=null),e===null||e.child===null)Qi(t)?(Fg(),as(t)):e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,Hg());return sa(t),null;case 26:var{type:n,memoizedState:s}=t;return e===null?(as(t),s!==null?(sa(t),YS(t,s)):(sa(t),Hy(t,n,null,o,a))):s?s!==e.memoizedState?(as(t),sa(t),YS(t,s)):(sa(t),t.flags&=-16777217):(e=e.memoizedProps,e!==o&&as(t),sa(t),Hy(t,n,e,o,a)),null;case 27:if(ht(t),a=we(Ys.current),n=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==o&&as(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 sa(t),null}e=Ae(),Qi(t)?B0(t,e):(e=gL(n,o,a,e,!0),t.stateNode=e,as(t))}return sa(t),null;case 5:if(ht(t),n=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==o&&as(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 sa(t),null}var d=Ae();if(Qi(t))B0(t,d);else{switch(s=we(Ys.current),Tg(n,d.ancestorInfo),d=d.context,s=Zp(s),d){case $u:s=s.createElementNS(gu,n);break;case sh:s=s.createElementNS(hm,n);break;default:switch(n){case"svg":s=s.createElementNS(gu,n);break;case"math":s=s.createElementNS(hm,n);break;case"script":s=s.createElement("div"),s.innerHTML="<script></script>",s=s.removeChild(s.firstChild);break;case"select":s=typeof o.is==="string"?s.createElement("select",{is:o.is}):s.createElement("select"),o.multiple?s.multiple=!0:o.size&&(s.size=o.size);break;default:s=typeof o.is==="string"?s.createElement(n,{is:o.is}):s.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(s)!=="[object HTMLUnknownElement]"||Fr.call(a1,n)||(a1[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)))}}s[ho]=t,s[Ro]=o;e:for(d=t.child;d!==null;){if(d.tag===5||d.tag===6)s.appendChild(d.stateNode);else if(d.tag!==4&&d.tag!==27&&d.child!==null){d.child.return=d,d=d.child;continue}if(d===t)break e;for(;d.sibling===null;){if(d.return===null||d.return===t)break e;d=d.return}d.sibling.return=d.return,d=d.sibling}t.stateNode=s;e:switch(mo(s,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&&as(t)}}return sa(t),Hy(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,a),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==o&&as(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=we(Ys.current),a=Ae(),Qi(t)){if(e=t.stateNode,a=t.memoizedProps,n=!An,o=null,s=go,s!==null)switch(s.tag){case 3:n&&(n=mL(e,a,o),n!==null&&(Yl(t,0).serverProps=n));break;case 27:case 5:o=s.memoizedProps,n&&(n=mL(e,a,o),n!==null&&(Yl(t,0).serverProps=n))}e[ho]=t,e=e.nodeValue===a||o!==null&&o.suppressHydrationWarning===!0||Jk(e.nodeValue,a)?!0:!1,e||Bs(t,!0)}else n=a.ancestorInfo.current,n!=null&&op(o,n.tag,a.ancestorInfo.implicitRootScope),e=Zp(e).createTextNode(o),e[ho]=t,t.stateNode=e}return sa(t),null;case 31:if(a=t.memoizedState,e===null||e.memoizedState!==null){if(o=Qi(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[ho]=t,sa(t),(t.mode&ct)!==Ke&&a!==null&&(e=t.child,e!==null&&(t.treeBaseDuration-=e.treeBaseDuration))}else Fg(),Kl(),(t.flags&128)===0&&(a=t.memoizedState=null),t.flags|=4,sa(t),(t.mode&ct)!==Ke&&a!==null&&(e=t.child,e!==null&&(t.treeBaseDuration-=e.treeBaseDuration));e=!1}else a=Hg(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=a),e=!0;if(!e){if(t.flags&256)return tr(t),t;return tr(t),null}if((t.flags&128)!==0)throw Error("Client rendering an Activity suspended it again. This is a bug in React.")}return sa(t),null;case 13:if(o=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(n=o,s=Qi(t),n!==null&&n.dehydrated!==null){if(e===null){if(!s)throw Error("A dehydrated suspense component was completed without a hydrated node. This is probably a bug in React.");if(s=t.memoizedState,s=s!==null?s.dehydrated:null,!s)throw Error("Expected to have a hydrated suspense instance. This error is likely caused by a bug in React. Please file an issue.");s[ho]=t,sa(t),(t.mode&ct)!==Ke&&n!==null&&(n=t.child,n!==null&&(t.treeBaseDuration-=n.treeBaseDuration))}else Fg(),Kl(),(t.flags&128)===0&&(n=t.memoizedState=null),t.flags|=4,sa(t),(t.mode&ct)!==Ke&&n!==null&&(n=t.child,n!==null&&(t.treeBaseDuration-=n.treeBaseDuration));n=!1}else n=Hg(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=n),n=!0;if(!n){if(t.flags&256)return tr(t),t;return tr(t),null}}if(tr(t),(t.flags&128)!==0)return t.lanes=a,(t.mode&ct)!==Ke&&Ad(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),s=null,o.memoizedState!==null&&o.memoizedState.cachePool!==null&&(s=o.memoizedState.cachePool.pool),s!==n&&(o.flags|=2048)),a!==e&&a&&(t.child.flags|=8192),Gp(t,t.updateQueue),sa(t),(t.mode&ct)!==Ke&&a&&(e=t.child,e!==null&&(t.treeBaseDuration-=e.treeBaseDuration)),null;case 4:return xe(t),e===null&&rv(t.stateNode.containerInfo),sa(t),null;case 10:return Jn(t.type,t),sa(t),null;case 19:if(me(za,t),o=t.memoizedState,o===null)return sa(t),null;if(n=(t.flags&128)!==0,s=o.rendering,s===null)if(n)Ud(o,!1);else{if(wa!==ys||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(s=Tp(e),s!==null){t.flags|=128,Ud(o,!1),e=s.updateQueue,t.updateQueue=e,Gp(t,e),t.subtreeFlags=0,e=a;for(a=t.child;a!==null;)A0(a,e),a=a.sibling;return Oe(za,za.current&qu|Rc,t),It&&Zn(t,o.treeForkCount),t.child}e=e.sibling}o.tail!==null&&oo()>Xm&&(t.flags|=128,n=!0,Ud(o,!1),t.lanes=4194304)}else{if(!n)if(e=Tp(s),e!==null){if(t.flags|=128,n=!0,e=e.updateQueue,t.updateQueue=e,Gp(t,e),Ud(o,!0),o.tail===null&&o.tailMode==="hidden"&&!s.alternate&&!It)return sa(t),null}else 2*oo()-o.renderingStartTime>Xm&&a!==536870912&&(t.flags|=128,n=!0,Ud(o,!1),t.lanes=4194304);o.isBackwards?(s.sibling=t.child,t.child=s):(e=o.last,e!==null?e.sibling=s:t.child=s,o.last=s)}if(o.tail!==null)return e=o.tail,o.rendering=e,o.tail=e.sibling,o.renderingStartTime=oo(),e.sibling=null,a=za.current,a=n?a&qu|Rc:a&qu,Oe(za,a,t),It&&Zn(t,o.treeForkCount),e;return sa(t),null;case 22:case 23:return tr(t),Jg(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&&(sa(t),t.subtreeFlags&6&&(t.flags|=8192)):sa(t),a=t.updateQueue,a!==null&&Gp(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&&me(ci,t),null;case 24:return a=null,e!==null&&(a=e.memoizedState.cache),t.memoizedState.cache!==a&&(t.flags|=2048),Jn(Fa,t),sa(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 fM(e,t){switch(_g(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,(t.mode&ct)!==Ke&&Ad(t),t):null;case 3:return Jn(Fa,t),xe(t),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return ht(t),null;case 31:if(t.memoizedState!==null){if(tr(t),t.alternate===null)throw Error("Threw in newly mounted dehydrated component. This is likely a bug in React. Please file an issue.");Kl()}return e=t.flags,e&65536?(t.flags=e&-65537|128,(t.mode&ct)!==Ke&&Ad(t),t):null;case 13:if(tr(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.");Kl()}return e=t.flags,e&65536?(t.flags=e&-65537|128,(t.mode&ct)!==Ke&&Ad(t),t):null;case 19:return me(za,t),null;case 4:return xe(t),null;case 10:return Jn(t.type,t),null;case 22:case 23:return tr(t),Jg(t),e!==null&&me(ci,t),e=t.flags,e&65536?(t.flags=e&-65537|128,(t.mode&ct)!==Ke&&Ad(t),t):null;case 24:return Jn(Fa,t),null;case 25:return null;default:return null}}function KS(e,t){switch(_g(t),t.tag){case 3:Jn(Fa,t),xe(t);break;case 26:case 27:case 5:ht(t);break;case 4:xe(t);break;case 31:t.memoizedState!==null&&tr(t);break;case 13:tr(t);break;case 19:me(za,t);break;case 10:Jn(t.type,t);break;case 22:case 23:tr(t),Jg(t),e!==null&&me(ci,t);break;case 24:Jn(Fa,t)}}function yn(e){return(e.mode&ct)!==Ke}function QS(e,t){yn(e)?(gn(),_d(t,e),hn()):_d(t,e)}function Fy(e,t,a){yn(e)?(gn(),au(a,e,t),hn()):au(a,e,t)}function _d(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&Eo)!==Bm&&(Gu=!0),o=Q(t,OD,a),(e&Eo)!==Bm&&(Gu=!1),o!==void 0&&typeof o!=="function")){var s=void 0;s=(a.tag&ur)!==0?"useLayoutEffect":(a.tag&Eo)!==0?"useInsertionEffect":"useEffect";var d=void 0;d=o===null?" You returned null. If your effect does not require clean up, return undefined (or nothing).":typeof o.then==="function"?`
139
+ `+b:""))}}s=t.stateNode,d=ee(a)||"Component",s.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?",d):console.error("No `render` method found on the %s instance: you may have forgotten to define `render`.",d)),!s.getInitialState||s.getInitialState.isReactClassApproved||s.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?",d),s.getDefaultProps&&!s.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.",d),s.contextType&&console.error("contextType was defined as an instance property on %s. Use a static property to define contextType instead.",d),a.childContextTypes&&!Cw.has(a)&&(Cw.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)",d)),a.contextTypes&&!Lw.has(a)&&(Lw.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)",d)),typeof s.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.",d),a.prototype&&a.prototype.isPureReactComponent&&typeof s.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.",ee(a)||"A pure component"),typeof s.componentDidUnmount==="function"&&console.error("%s has a method called componentDidUnmount(). But there is no such lifecycle method. Did you mean componentWillUnmount()?",d),typeof s.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().",d),typeof s.componentWillRecieveProps==="function"&&console.error("%s has a method called componentWillRecieveProps(). Did you mean componentWillReceiveProps()?",d),typeof s.UNSAFE_componentWillRecieveProps==="function"&&console.error("%s has a method called UNSAFE_componentWillRecieveProps(). Did you mean UNSAFE_componentWillReceiveProps()?",d),p=s.props!==o,s.props!==void 0&&p&&console.error("When calling super() in `%s`, make sure to pass up the same props that your component's constructor was passed.",d),s.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.",d,d),typeof s.getSnapshotBeforeUpdate!=="function"||typeof s.componentDidUpdate==="function"||bw.has(a)||(bw.add(a),console.error("%s: getSnapshotBeforeUpdate() should be used with componentDidUpdate(). This component defines getSnapshotBeforeUpdate() only.",ee(a))),typeof s.getDerivedStateFromProps==="function"&&console.error("%s: getDerivedStateFromProps() is defined as an instance method and will be ignored. Instead, declare it as a static method.",d),typeof s.getDerivedStateFromError==="function"&&console.error("%s: getDerivedStateFromError() is defined as an instance method and will be ignored. Instead, declare it as a static method.",d),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.",d),(p=s.state)&&(typeof p!=="object"||Za(p))&&console.error("%s.state: must be set to an object or null",d),typeof s.getChildContext==="function"&&typeof a.childContextTypes!=="object"&&console.error("%s.getChildContext(): childContextTypes must be defined in order to use getChildContext().",d),s=t.stateNode,s.props=o,s.state=t.memoizedState,s.refs={},Zg(t),d=a.contextType,s.context=typeof d==="object"&&d!==null?ba(d):al,s.state===o&&(d=ee(a)||"Component",Sw.has(d)||(Sw.add(d),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.",d))),t.mode&Co&&Xn.recordLegacyContextWarning(t,s),Xn.recordUnsafeLifecycleWarnings(t,s),s.state=t.memoizedState,d=a.getDerivedStateFromProps,typeof d==="function"&&(Ay(t,a,d,o),s.state=t.memoizedState),typeof a.getDerivedStateFromProps==="function"||typeof s.getSnapshotBeforeUpdate==="function"||typeof s.UNSAFE_componentWillMount!=="function"&&typeof s.componentWillMount!=="function"||(d=s.state,typeof s.componentWillMount==="function"&&s.componentWillMount(),typeof s.UNSAFE_componentWillMount==="function"&&s.UNSAFE_componentWillMount(),d!==s.state&&(console.error("%s.componentWillMount(): Assigning directly to this.state is deprecated (except inside a component's constructor). Use setState instead.",V(t)||"Component"),Cb.enqueueReplaceState(s,s.state,null)),Od(t,o,s,r),qd(),s.state=t.memoizedState),typeof s.componentDidMount==="function"&&(t.flags|=4194308),(t.mode&$n)!==Qe&&(t.flags|=134217728),s=!0}else if(e===null){s=t.stateNode;var q=t.memoizedProps;p=ti(a,q),s.props=p;var B=s.context;b=a.contextType,d=al,typeof b==="object"&&b!==null&&(d=ba(b)),k=a.getDerivedStateFromProps,b=typeof k==="function"||typeof s.getSnapshotBeforeUpdate==="function",q=t.pendingProps!==q,b||typeof s.UNSAFE_componentWillReceiveProps!=="function"&&typeof s.componentWillReceiveProps!=="function"||(q||B!==d)&&DS(t,s,o,d),ul=!1;var D=t.memoizedState;s.state=D,Od(t,o,s,r),qd(),B=t.memoizedState,q||D!==B||ul?(typeof k==="function"&&(Ay(t,a,k,o),B=t.memoizedState),(p=ul||AS(t,a,p,o,D,B,d))?(b||typeof s.UNSAFE_componentWillMount!=="function"&&typeof s.componentWillMount!=="function"||(typeof s.componentWillMount==="function"&&s.componentWillMount(),typeof s.UNSAFE_componentWillMount==="function"&&s.UNSAFE_componentWillMount()),typeof s.componentDidMount==="function"&&(t.flags|=4194308),(t.mode&$n)!==Qe&&(t.flags|=134217728)):(typeof s.componentDidMount==="function"&&(t.flags|=4194308),(t.mode&$n)!==Qe&&(t.flags|=134217728),t.memoizedProps=o,t.memoizedState=B),s.props=o,s.state=B,s.context=d,s=p):(typeof s.componentDidMount==="function"&&(t.flags|=4194308),(t.mode&$n)!==Qe&&(t.flags|=134217728),s=!1)}else{s=t.stateNode,Jg(e,t),d=t.memoizedProps,b=ti(a,d),s.props=b,k=t.pendingProps,D=s.context,B=a.contextType,p=al,typeof B==="object"&&B!==null&&(p=ba(B)),q=a.getDerivedStateFromProps,(B=typeof q==="function"||typeof s.getSnapshotBeforeUpdate==="function")||typeof s.UNSAFE_componentWillReceiveProps!=="function"&&typeof s.componentWillReceiveProps!=="function"||(d!==k||D!==p)&&DS(t,s,o,p),ul=!1,D=t.memoizedState,s.state=D,Od(t,o,s,r),qd();var F=t.memoizedState;d!==k||D!==F||ul||e!==null&&e.dependencies!==null&&vp(e.dependencies)?(typeof q==="function"&&(Ay(t,a,q,o),F=t.memoizedState),(b=ul||AS(t,a,b,o,D,F,p)||e!==null&&e.dependencies!==null&&vp(e.dependencies))?(B||typeof s.UNSAFE_componentWillUpdate!=="function"&&typeof s.componentWillUpdate!=="function"||(typeof s.componentWillUpdate==="function"&&s.componentWillUpdate(o,F,p),typeof s.UNSAFE_componentWillUpdate==="function"&&s.UNSAFE_componentWillUpdate(o,F,p)),typeof s.componentDidUpdate==="function"&&(t.flags|=4),typeof s.getSnapshotBeforeUpdate==="function"&&(t.flags|=1024)):(typeof s.componentDidUpdate!=="function"||d===e.memoizedProps&&D===e.memoizedState||(t.flags|=4),typeof s.getSnapshotBeforeUpdate!=="function"||d===e.memoizedProps&&D===e.memoizedState||(t.flags|=1024),t.memoizedProps=o,t.memoizedState=F),s.props=o,s.state=F,s.context=p,s=b):(typeof s.componentDidUpdate!=="function"||d===e.memoizedProps&&D===e.memoizedState||(t.flags|=4),typeof s.getSnapshotBeforeUpdate!=="function"||d===e.memoizedProps&&D===e.memoizedState||(t.flags|=1024),s=!1)}if(p=s,Vp(e,t),d=(t.flags&128)!==0,p||d){if(p=t.stateNode,Ce(t),d&&typeof a.getDerivedStateFromError!=="function")a=null,qo=-1;else if(a=$C(p),t.mode&Co){Yt(!0);try{$C(p)}finally{Yt(!1)}}t.flags|=1,e!==null&&d?(t.child=mi(t,e.child,null,r),t.child=mi(t,null,a,r)):mo(e,t,a,r),t.memoizedState=p.state,e=t.child}else e=os(e,t,r);return r=t.stateNode,s&&r.props!==o&&(Pu||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"),Pu=!0),e}function VS(e,t,a,o){return Kl(),t.flags|=256,mo(e,t,a,o),t.child}function Oy(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=ee(t)||"Unknown",Aw[e]||(console.error("%s: Function components do not support getDerivedStateFromProps.",e),Aw[e]=!0)),typeof t.contextType==="object"&&t.contextType!==null&&(t=ee(t)||"Unknown",Rw[t]||(console.error("%s: Function components do not support contextType.",t),Rw[t]=!0))}function By(e){return{baseLanes:e,cachePool:F0()}}function zy(e,t,a){return e=e!==null?e.childLanes&~a:0,t&&(e|=Xo),e}function jS(e,t,a){var o,r=t.pendingProps;y(t)&&(t.flags|=128);var s=!1,d=(t.flags&128)!==0;if((o=d)||(o=e!==null&&e.memoizedState===null?!1:(Pa.current&Mc)!==0),o&&(s=!0,t.flags&=-129),o=(t.flags&32)!==0,t.flags&=-33,e===null){if(It){if(s?Gs(t):Vs(t),(e=pa)?(a=fL(e,Rn),a=a!==null&&a.data!==ki?a:null,a!==null&&(o={dehydrated:a,treeContext:N0(),retryLane:536870912,hydrationErrors:null},t.memoizedState=o,o=D0(a),o.return=t,t.child=o,yo=t,pa=null)):a=null,a===null)throw gp(t,e),Ps(t);return gv(a)?t.lanes=32:t.lanes=536870912,null}var p=r.children;if(r=r.fallback,s){Vs(t);var b=t.mode;return p=jp({mode:"hidden",children:p},b),r=Xl(r,b,a,null),p.return=t,r.return=t,p.sibling=r,t.child=p,r=t.child,r.memoizedState=By(a),r.childLanes=zy(e,o,a),t.memoizedState=Ib,Ud(null,r)}return Gs(t),Py(t,p)}var k=e.memoizedState;if(k!==null){var q=k.dehydrated;if(q!==null){if(d)t.flags&256?(Gs(t),t.flags&=-257,t=Uy(e,t,a)):t.memoizedState!==null?(Vs(t),t.child=e.child,t.flags|=128,t=null):(Vs(t),p=r.fallback,b=t.mode,r=jp({mode:"visible",children:r.children},b),p=Xl(p,b,a,null),p.flags|=2,r.return=t,p.return=t,r.sibling=p,t.child=r,mi(t,e.child,null,a),r=t.child,r.memoizedState=By(a),r.childLanes=zy(e,o,a),t.memoizedState=Ib,t=Ud(null,r));else if(Gs(t),O0(),(a&536870912)!==0&&Qp(t),gv(q)){if(o=q.nextSibling&&q.nextSibling.dataset,o){p=o.dgst;var B=o.msg;b=o.stck;var D=o.cstck}s=B,o=p,r=b,q=D,p=s,b=q,p=p?Error(p):Error("The server could not finish this Suspense boundary, likely due to an error during server rendering. Switched to client rendering."),p.stack=r||"",p.digest=o,o=b===void 0?null:b,r={value:p,source:null,stack:o},typeof o==="string"&&sb.set(p,r),Rd(r),t=Uy(e,t,a)}else if($a||Wi(e,t,a,!1),o=(a&e.childLanes)!==0,$a||o){if(o=na,o!==null&&(r=Hl(o,a),r!==0&&r!==k.retryLane))throw k.retryLane=r,ko(e,r),Ta(o,e,r),Tb;hv(q)||Wp(),t=Uy(e,t,a)}else hv(q)?(t.flags|=192,t.child=e.child,t=null):(e=k.treeContext,pa=rn(q.nextSibling),yo=t,It=!0,ol=null,Er=!1,dn=null,Rn=!1,e!==null&&q0(t,e),t=Py(t,r.children),t.flags|=4096);return t}}if(s)return Vs(t),p=r.fallback,b=t.mode,D=e.child,q=D.sibling,r=Jr(D,{mode:"hidden",children:r.children}),r.subtreeFlags=D.subtreeFlags&65011712,q!==null?p=Jr(q,p):(p=Xl(p,b,a,null),p.flags|=2),p.return=t,r.return=t,r.sibling=p,t.child=r,Ud(null,r),r=t.child,p=e.child.memoizedState,p===null?p=By(a):(b=p.cachePool,b!==null?(D=Ga._currentValue,b=b.parent!==D?{parent:D,pool:D}:b):b=F0(),p={baseLanes:p.baseLanes|a,cachePool:b}),r.memoizedState=p,r.childLanes=zy(e,o,a),t.memoizedState=Ib,Ud(e.child,r);return k!==null&&(a&62914560)===a&&(a&e.lanes)!==0&&Qp(t),Gs(t),a=e.child,e=a.sibling,a=Jr(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 Py(e,t){return t=jp({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function jp(e,t){return e=C(22,e,null,t),e.lanes=0,e}function Uy(e,t,a){return mi(t,e.child,null,a),e=Py(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function $S(e,t,a){e.lanes|=t;var o=e.alternate;o!==null&&(o.lanes|=t),jg(e.return,t,a)}function _y(e,t,a,o,r,s){var d=e.memoizedState;d===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:o,tail:a,tailMode:r,treeForkCount:s}:(d.isBackwards=t,d.rendering=null,d.renderingStartTime=0,d.last=o,d.tail=a,d.tailMode=r,d.treeForkCount=s)}function XS(e,t,a){var o=t.pendingProps,r=o.revealOrder,s=o.tail,d=o.children,p=Pa.current;if((o=(p&Mc)!==0)?(p=p&qu|Mc,t.flags|=128):p&=qu,Ee(Pa,p,t),p=r==null?"null":r,r!=="forwards"&&r!=="unstable_legacy-backwards"&&r!=="together"&&r!=="independent"&&!Dw[p])if(Dw[p]=!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(p=s==null?"null":s,!Gm[p])if(s==null){if(r==="forwards"||r==="backwards"||r==="unstable_legacy-backwards")Gm[p]=!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 s!=="visible"&&s!=="collapsed"&&s!=="hidden"?(Gm[p]=!0,console.error('"%s" is not a supported value for tail on <SuspenseList />. Did you mean "visible", "collapsed" or "hidden"?',s)):r!=="forwards"&&r!=="backwards"&&r!=="unstable_legacy-backwards"&&(Gm[p]=!0,console.error('<SuspenseList tail="%s" /> is only valid if revealOrder is "forwards" or "backwards". Did you mean to specify revealOrder="forwards"?',s));e:if((r==="forwards"||r==="backwards"||r==="unstable_legacy-backwards")&&d!==void 0&&d!==null&&d!==!1)if(Za(d)){for(p=0;p<d.length;p++)if(!Z0(d[p],p))break e}else if(p=ce(d),typeof p==="function"){if(p=p.call(d))for(var b=p.next(),k=0;!b.done;b=p.next()){if(!Z0(b.value,k))break e;k++}}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(mo(e,t,d,a),It?(zs(),d=mc):d=0,!o&&e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&$S(e,a,t);else if(e.tag===19)$S(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&&Mp(e)===null&&(r=a),a=a.sibling;a=r,a===null?(r=t.child,t.child=null):(r=a.sibling,a.sibling=null),_y(t,!1,r,a,s,d);break;case"backwards":case"unstable_legacy-backwards":a=null,r=t.child;for(t.child=null;r!==null;){if(e=r.alternate,e!==null&&Mp(e)===null){t.child=r;break}e=r.sibling,r.sibling=a,a=r,r=e}_y(t,!0,a,null,s,d);break;case"together":_y(t,!1,null,null,void 0,d);break;default:t.memoizedState=null}return t.child}function os(e,t,a){if(e!==null&&(t.dependencies=e.dependencies),qo=-1,fl|=t.lanes,(a&t.childLanes)===0)if(e!==null){if(Wi(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=Jr(e,e.pendingProps),t.child=a;for(a.return=t;e.sibling!==null;)e=e.sibling,a=a.sibling=Jr(e,e.pendingProps),a.return=t;a.sibling=null}return t.child}function Hy(e,t){if((e.lanes&t)!==0)return!0;return e=e.dependencies,e!==null&&vp(e)?!0:!1}function fM(e,t,a){switch(t.tag){case 3:oe(t,t.stateNode.containerInfo),Us(t,Ga,e.memoizedState.cache),Kl();break;case 27:case 5:Ye(t);break;case 4:oe(t,t.stateNode.containerInfo);break;case 10:Us(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,ay(t),null;break;case 13:if(o=t.memoizedState,o!==null){if(o.dehydrated!==null)return Gs(t),t.flags|=128,null;if((a&t.child.childLanes)!==0)return jS(e,t,a);return Gs(t),e=os(e,t,a),e!==null?e.sibling:null}Gs(t);break;case 19:var r=(e.flags&128)!==0;if(o=(a&t.childLanes)!==0,o||(Wi(e,t,a,!1),o=(a&t.childLanes)!==0),r){if(o)return XS(e,t,a);t.flags|=128}if(r=t.memoizedState,r!==null&&(r.rendering=null,r.tail=null,r.lastEffect=null),Ee(Pa,Pa.current,t),o)break;else return null;case 22:return t.lanes=0,US(e,t,a,t.pendingProps);case 24:Us(t,Ga,e.memoizedState.cache)}return os(e,t,a)}function Fy(e,t,a){if(t._debugNeedsRemount&&e!==null){a=Pg(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)$a=!0;else{if(!Hy(e,a)&&(t.flags&128)===0)return $a=!1,fM(e,t,a);$a=(e.flags&131072)!==0?!0:!1}else{if($a=!1,o=It)zs(),o=(t.flags&1048576)!==0;o&&(o=t.index,zs(),E0(t,mc,o))}switch(t.lanes=0,t.tag){case 16:e:if(o=t.pendingProps,e=_s(t.elementType),t.type=e,typeof e==="function")zg(e)?(o=ti(e,o),t.tag=1,t.type=e=$l(e),t=GS(null,t,e,o,a)):(t.tag=0,Oy(t,e),t.type=e=$l(e),t=qy(null,t,e,o,a));else{if(e!==void 0&&e!==null){if(r=e.$$typeof,r===tc){t.tag=11,t.type=e=Bg(e),t=BS(null,t,e,o,a);break e}else if(r===cm){t.tag=14,t=zS(null,t,e,o,a);break e}}throw t="",e!==null&&typeof e==="object"&&e.$$typeof===sn&&(t=" Did you wrap a component in React.lazy() more than once?"),a=ee(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 qy(e,t,t.type,t.pendingProps,a);case 1:return o=t.type,r=ti(o,t.pendingProps),GS(e,t,o,r,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 s=t.memoizedState;r=s.element,Jg(e,t),Od(t,o,null,a);var d=t.memoizedState;if(o=d.cache,Us(t,Ga,o),o!==s.cache&&$g(t,[Ga],a,!0),qd(),o=d.element,s.isDehydrated)if(s={element:o,isDehydrated:!1,cache:d.cache},t.updateQueue.baseState=s,t.memoizedState=s,t.flags&256){t=VS(e,t,o,a);break e}else if(o!==r){r=en(Error("This root received an early update, before anything was able hydrate. Switched the entire root to client rendering."),t),Rd(r),t=VS(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}pa=rn(e.firstChild),yo=t,It=!0,ol=null,Er=!1,dn=null,Rn=!0,a=sw(t,null,o,a);for(t.child=a;a;)a.flags=a.flags&-3|4096,a=a.sibling}else{if(Kl(),o===r){t=os(e,t,a);break e}mo(e,t,o,a)}t=t.child}return t;case 26:return Vp(e,t),e===null?(a=vL(t.type,null,t.pendingProps,null))?t.memoizedState=a:It||(a=t.type,e=t.pendingProps,o=we(Qs.current),o=tm(o).createElement(a),o[go]=t,o[Do]=e,ho(o,a,e),ze(o),t.stateNode=o):t.memoizedState=vL(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return Ye(t),e===null&&It&&(o=we(Qs.current),r=Ae(),o=t.stateNode=gL(t.type,t.pendingProps,o,r,!1),Er||(r=nL(o,t.type,t.pendingProps,r),r!==null&&(Yl(t,0).serverProps=r)),yo=t,Rn=!0,r=pa,Ys(t.type)?(Qb=r,pa=rn(o.firstChild)):pa=r),mo(e,t,t.pendingProps.children,a),Vp(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&It&&(s=Ae(),o=Rg(t.type,s.ancestorInfo),r=pa,(d=!r)||(d=eA(r,t.type,t.pendingProps,Rn),d!==null?(t.stateNode=d,Er||(s=nL(d,t.type,t.pendingProps,s),s!==null&&(Yl(t,0).serverProps=s)),yo=t,pa=rn(d.firstChild),Rn=!1,s=!0):s=!1,d=!s),d&&(o&&gp(t,r),Ps(t))),Ye(t),r=t.type,s=t.pendingProps,d=e!==null?e.memoizedProps:null,o=s.children,pv(r,s)?o=null:d!==null&&pv(r,d)&&(t.flags|=32),t.memoizedState!==null&&(r=ny(e,t,nM,null,null,a),Xc._currentValue=r),Vp(e,t),mo(e,t,o,a),t.child;case 6:return e===null&&It&&(a=t.pendingProps,e=Ae(),o=e.ancestorInfo.current,a=o!=null?sp(a,o.tag,e.ancestorInfo.implicitRootScope):!0,e=pa,(o=!e)||(o=tA(e,t.pendingProps,Rn),o!==null?(t.stateNode=o,yo=t,pa=null,o=!0):o=!1,o=!o),o&&(a&&gp(t,e),Ps(t))),null;case 13:return jS(e,t,a);case 4:return oe(t,t.stateNode.containerInfo),o=t.pendingProps,e===null?t.child=mi(t,null,o,a):mo(e,t,o,a),t.child;case 11:return BS(e,t,t.type,t.pendingProps,a);case 7:return mo(e,t,t.pendingProps,a),t.child;case 8:return mo(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,mo(e,t,t.pendingProps.children,a),t.child;case 10:return o=t.type,r=t.pendingProps,s=r.value,"value"in r||Ew||(Ew=!0,console.error("The `value` prop is required for the `<Context.Provider>`. Did you misspell it or forget to pass it?")),Us(t,o,s),mo(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."),Ql(t),r=ba(r),o=mb(o,r,void 0),t.flags|=1,mo(e,t,o,a),t.child;case 14:return zS(e,t,t.type,t.pendingProps,a);case 15:return PS(e,t,t.type,t.pendingProps,a);case 19:return XS(e,t,a);case 31:return cM(e,t,a);case 22:return US(e,t,a,t.pendingProps);case 24:return Ql(t),o=ba(Ga),e===null?(r=Qg(),r===null&&(r=na,s=Xg(),r.pooledCache=s,Wl(s),s!==null&&(r.pooledCacheLanes|=a),r=s),t.memoizedState={parent:o,cache:r},Zg(t),Us(t,Ga,r)):((e.lanes&a)!==0&&(Jg(e,t),Od(t,null,null,a),qd()),r=e.memoizedState,s=t.memoizedState,r.parent!==o?(r={parent:o,cache:o},t.memoizedState=r,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=r),Us(t,Ga,o)):(o=s.cache,Us(t,Ga,o),o!==r.cache&&$g(t,[Ga],a,!0))),mo(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 ns(e){e.flags|=4}function Gy(e,t,a,o,r){if(t=(e.mode&ED)!==Qe)t=!1;if(t){if(e.flags|=16777216,(r&335544128)===r)if(e.stateNode.complete)e.flags|=8192;else if(Tk())e.flags|=8192;else throw pi=zm,gb}else e.flags&=-16777217}function YS(e,t){if(t.type!=="stylesheet"||(t.state.loading&Nn)!==wi)e.flags&=-16777217;else if(e.flags|=16777216,!LL(t))if(Tk())e.flags|=8192;else throw pi=zm,gb}function $p(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?ji():536870912,e.lanes|=t,bi|=t)}function _d(e,t){if(!It)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 ia(e){var t=e.alternate!==null&&e.alternate.child===e.child,a=0,o=0;if(t)if((e.mode&ct)!==Qe){for(var{selfBaseDuration:r,child:s}=e;s!==null;)a|=s.lanes|s.childLanes,o|=s.subtreeFlags&65011712,o|=s.flags&65011712,r+=s.treeBaseDuration,s=s.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&ct)!==Qe){r=e.actualDuration,s=e.selfBaseDuration;for(var d=e.child;d!==null;)a|=d.lanes|d.childLanes,o|=d.subtreeFlags,o|=d.flags,r+=d.actualDuration,s+=d.treeBaseDuration,d=d.sibling;e.actualDuration=r,e.treeBaseDuration=s}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 pM(e,t,a){var o=t.pendingProps;switch(Fg(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return ia(t),null;case 1:return ia(t),null;case 3:if(a=t.stateNode,o=null,e!==null&&(o=e.memoizedState.cache),t.memoizedState.cache!==o&&(t.flags|=2048),ts(Ga,t),Se(t),a.pendingContext&&(a.context=a.pendingContext,a.pendingContext=null),e===null||e.child===null)Qi(t)?(Vg(),ns(t)):e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,Gg());return ia(t),null;case 26:var{type:r,memoizedState:s}=t;return e===null?(ns(t),s!==null?(ia(t),YS(t,s)):(ia(t),Gy(t,r,null,o,a))):s?s!==e.memoizedState?(ns(t),ia(t),YS(t,s)):(ia(t),t.flags&=-16777217):(e=e.memoizedProps,e!==o&&ns(t),ia(t),Gy(t,r,e,o,a)),null;case 27:if(ht(t),a=we(Qs.current),r=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==o&&ns(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 ia(t),null}e=Ae(),Qi(t)?B0(t,e):(e=gL(r,o,a,e,!0),t.stateNode=e,ns(t))}return ia(t),null;case 5:if(ht(t),r=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==o&&ns(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 ia(t),null}var d=Ae();if(Qi(t))B0(t,d);else{switch(s=we(Qs.current),Rg(r,d.ancestorInfo),d=d.context,s=tm(s),d){case $u:s=s.createElementNS(gu,r);break;case uh:s=s.createElementNS(vm,r);break;default:switch(r){case"svg":s=s.createElementNS(gu,r);break;case"math":s=s.createElementNS(vm,r);break;case"script":s=s.createElement("div"),s.innerHTML="<script></script>",s=s.removeChild(s.firstChild);break;case"select":s=typeof o.is==="string"?s.createElement("select",{is:o.is}):s.createElement("select"),o.multiple?s.multiple=!0:o.size&&(s.size=o.size);break;default:s=typeof o.is==="string"?s.createElement(r,{is:o.is}):s.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(s)!=="[object HTMLUnknownElement]"||Vn.call(a1,r)||(a1[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)))}}s[go]=t,s[Do]=o;e:for(d=t.child;d!==null;){if(d.tag===5||d.tag===6)s.appendChild(d.stateNode);else if(d.tag!==4&&d.tag!==27&&d.child!==null){d.child.return=d,d=d.child;continue}if(d===t)break e;for(;d.sibling===null;){if(d.return===null||d.return===t)break e;d=d.return}d.sibling.return=d.return,d=d.sibling}t.stateNode=s;e:switch(ho(s,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&&ns(t)}}return ia(t),Gy(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,a),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==o&&ns(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=we(Qs.current),a=Ae(),Qi(t)){if(e=t.stateNode,a=t.memoizedProps,r=!Er,o=null,s=yo,s!==null)switch(s.tag){case 3:r&&(r=mL(e,a,o),r!==null&&(Yl(t,0).serverProps=r));break;case 27:case 5:o=s.memoizedProps,r&&(r=mL(e,a,o),r!==null&&(Yl(t,0).serverProps=r))}e[go]=t,e=e.nodeValue===a||o!==null&&o.suppressHydrationWarning===!0||Jk(e.nodeValue,a)?!0:!1,e||Ps(t,!0)}else r=a.ancestorInfo.current,r!=null&&sp(o,r.tag,a.ancestorInfo.implicitRootScope),e=tm(e).createTextNode(o),e[go]=t,t.stateNode=e}return ia(t),null;case 31:if(a=t.memoizedState,e===null||e.memoizedState!==null){if(o=Qi(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[go]=t,ia(t),(t.mode&ct)!==Qe&&a!==null&&(e=t.child,e!==null&&(t.treeBaseDuration-=e.treeBaseDuration))}else Vg(),Kl(),(t.flags&128)===0&&(a=t.memoizedState=null),t.flags|=4,ia(t),(t.mode&ct)!==Qe&&a!==null&&(e=t.child,e!==null&&(t.treeBaseDuration-=e.treeBaseDuration));e=!1}else a=Gg(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=a),e=!0;if(!e){if(t.flags&256)return on(t),t;return on(t),null}if((t.flags&128)!==0)throw Error("Client rendering an Activity suspended it again. This is a bug in React.")}return ia(t),null;case 13:if(o=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(r=o,s=Qi(t),r!==null&&r.dehydrated!==null){if(e===null){if(!s)throw Error("A dehydrated suspense component was completed without a hydrated node. This is probably a bug in React.");if(s=t.memoizedState,s=s!==null?s.dehydrated:null,!s)throw Error("Expected to have a hydrated suspense instance. This error is likely caused by a bug in React. Please file an issue.");s[go]=t,ia(t),(t.mode&ct)!==Qe&&r!==null&&(r=t.child,r!==null&&(t.treeBaseDuration-=r.treeBaseDuration))}else Vg(),Kl(),(t.flags&128)===0&&(r=t.memoizedState=null),t.flags|=4,ia(t),(t.mode&ct)!==Qe&&r!==null&&(r=t.child,r!==null&&(t.treeBaseDuration-=r.treeBaseDuration));r=!1}else r=Gg(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=r),r=!0;if(!r){if(t.flags&256)return on(t),t;return on(t),null}}if(on(t),(t.flags&128)!==0)return t.lanes=a,(t.mode&ct)!==Qe&&Dd(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),s=null,o.memoizedState!==null&&o.memoizedState.cachePool!==null&&(s=o.memoizedState.cachePool.pool),s!==r&&(o.flags|=2048)),a!==e&&a&&(t.child.flags|=8192),$p(t,t.updateQueue),ia(t),(t.mode&ct)!==Qe&&a&&(e=t.child,e!==null&&(t.treeBaseDuration-=e.treeBaseDuration)),null;case 4:return Se(t),e===null&&sv(t.stateNode.containerInfo),ia(t),null;case 10:return ts(t.type,t),ia(t),null;case 19:if(fe(Pa,t),o=t.memoizedState,o===null)return ia(t),null;if(r=(t.flags&128)!==0,s=o.rendering,s===null)if(r)_d(o,!1);else{if(wa!==bs||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(s=Mp(e),s!==null){t.flags|=128,_d(o,!1),e=s.updateQueue,t.updateQueue=e,$p(t,e),t.subtreeFlags=0,e=a;for(a=t.child;a!==null;)A0(a,e),a=a.sibling;return Ee(Pa,Pa.current&qu|Mc,t),It&&es(t,o.treeForkCount),t.child}e=e.sibling}o.tail!==null&&no()>Qm&&(t.flags|=128,r=!0,_d(o,!1),t.lanes=4194304)}else{if(!r)if(e=Mp(s),e!==null){if(t.flags|=128,r=!0,e=e.updateQueue,t.updateQueue=e,$p(t,e),_d(o,!0),o.tail===null&&o.tailMode==="hidden"&&!s.alternate&&!It)return ia(t),null}else 2*no()-o.renderingStartTime>Qm&&a!==536870912&&(t.flags|=128,r=!0,_d(o,!1),t.lanes=4194304);o.isBackwards?(s.sibling=t.child,t.child=s):(e=o.last,e!==null?e.sibling=s:t.child=s,o.last=s)}if(o.tail!==null)return e=o.tail,o.rendering=e,o.tail=e.sibling,o.renderingStartTime=no(),e.sibling=null,a=Pa.current,a=r?a&qu|Mc:a&qu,Ee(Pa,a,t),It&&es(t,o.treeForkCount),e;return ia(t),null;case 22:case 23:return on(t),ty(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&&(ia(t),t.subtreeFlags&6&&(t.flags|=8192)):ia(t),a=t.updateQueue,a!==null&&$p(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&&fe(ci,t),null;case 24:return a=null,e!==null&&(a=e.memoizedState.cache),t.memoizedState.cache!==a&&(t.flags|=2048),ts(Ga,t),ia(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 mM(e,t){switch(Fg(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,(t.mode&ct)!==Qe&&Dd(t),t):null;case 3:return ts(Ga,t),Se(t),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return ht(t),null;case 31:if(t.memoizedState!==null){if(on(t),t.alternate===null)throw Error("Threw in newly mounted dehydrated component. This is likely a bug in React. Please file an issue.");Kl()}return e=t.flags,e&65536?(t.flags=e&-65537|128,(t.mode&ct)!==Qe&&Dd(t),t):null;case 13:if(on(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.");Kl()}return e=t.flags,e&65536?(t.flags=e&-65537|128,(t.mode&ct)!==Qe&&Dd(t),t):null;case 19:return fe(Pa,t),null;case 4:return Se(t),null;case 10:return ts(t.type,t),null;case 22:case 23:return on(t),ty(t),e!==null&&fe(ci,t),e=t.flags,e&65536?(t.flags=e&-65537|128,(t.mode&ct)!==Qe&&Dd(t),t):null;case 24:return ts(Ga,t),null;case 25:return null;default:return null}}function KS(e,t){switch(Fg(t),t.tag){case 3:ts(Ga,t),Se(t);break;case 26:case 27:case 5:ht(t);break;case 4:Se(t);break;case 31:t.memoizedState!==null&&on(t);break;case 13:on(t);break;case 19:fe(Pa,t);break;case 10:ts(t.type,t);break;case 22:case 23:on(t),ty(t),e!==null&&fe(ci,t);break;case 24:ts(Ga,t)}}function br(e){return(e.mode&ct)!==Qe}function QS(e,t){br(e)?(vr(),Hd(t,e),yr()):Hd(t,e)}function Vy(e,t,a){br(e)?(vr(),au(a,e,t),yr()):au(a,e,t)}function Hd(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&Oo)!==Um&&(Gu=!0),o=H(t,zD,a),(e&Oo)!==Um&&(Gu=!1),o!==void 0&&typeof o!=="function")){var s=void 0;s=(a.tag&fn)!==0?"useLayoutEffect":(a.tag&Oo)!==0?"useInsertionEffect":"useEffect";var d=void 0;d=o===null?" You returned null. If your effect does not require clean up, return undefined (or nothing).":typeof o.then==="function"?`
141
141
 
142
142
  It looks like you wrote `+s+`(async () => ...) or returned a Promise. Instead, write the async function inside your effect and call it immediately:
143
143
 
@@ -150,11 +150,11 @@ It looks like you wrote `+s+`(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,Q(t,function(p,b){console.error("%s must not return anything besides a function, which is used for clean-up.%s",p,b)},s,d)}a=a.next}while(a!==n)}}catch(p){Yt(t,t.return,p)}}function au(e,t,a){try{var o=t.updateQueue,n=o!==null?o.lastEffect:null;if(n!==null){var s=n.next;o=s;do{if((o.tag&e)===e){var d=o.inst,p=d.destroy;p!==void 0&&(d.destroy=void 0,(e&Eo)!==Bm&&(Gu=!0),n=t,Q(n,BD,n,a,p),(e&Eo)!==Bm&&(Gu=!1))}o=o.next}while(o!==s)}}catch(b){Yt(t,t.return,b)}}function WS(e,t){yn(e)?(gn(),_d(t,e),hn()):_d(t,e)}function Gy(e,t,a){yn(e)?(gn(),au(a,e,t),hn()):au(a,e,t)}function ZS(e){var t=e.updateQueue;if(t!==null){var a=e.stateNode;e.type.defaultProps||"ref"in e.memoizedProps||Pu||(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.",X(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.",X(e)||"instance"));try{Q(e,eS,t,a)}catch(o){Yt(e,e.return,o)}}}function pM(e,t,a){return e.getSnapshotBeforeUpdate(t,a)}function mM(e,t){var a=t.memoizedProps,o=t.memoizedState;t=e.stateNode,e.type.defaultProps||"ref"in e.memoizedProps||Pu||(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.",X(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.",X(e)||"instance"));try{var n=ti(e.type,a),s=Q(e,pM,t,n,o);a=Nw,s!==void 0||a.has(e.type)||(a.add(e.type),Q(e,function(){console.error("%s.getSnapshotBeforeUpdate(): A snapshot value (or null) must be returned. You have returned undefined.",X(e))})),t.__reactInternalSnapshotBeforeUpdate=s}catch(d){Yt(e,e.return,d)}}function JS(e,t,a){a.props=ti(e.type,e.memoizedProps),a.state=e.memoizedState,yn(e)?(gn(),Q(e,ZC,e,t,a),hn()):Q(e,ZC,e,t,a)}function hM(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(yn(e))try{gn(),e.refCleanup=t(a)}finally{hn()}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().",X(e)),t.current=a}}function Hd(e,t){try{Q(e,hM,e)}catch(a){Yt(e,t,a)}}function vn(e,t){var a=e.ref,o=e.refCleanup;if(a!==null)if(typeof o==="function")try{if(yn(e))try{gn(),Q(e,o)}finally{hn(e)}else Q(e,o)}catch(n){Yt(e,t,n)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof a==="function")try{if(yn(e))try{gn(),Q(e,a,null)}finally{hn(e)}else Q(e,a,null)}catch(n){Yt(e,t,n)}else a.current=null}function ek(e,t,a,o){var n=e.memoizedProps,s=n.id,d=n.onCommit;n=n.onRender,t=t===null?"mount":"update",Am&&(t="nested-update"),typeof n==="function"&&n(s,t,e.actualDuration,e.treeBaseDuration,e.actualStartTime,a),typeof d==="function"&&d(s,t,o,a)}function gM(e,t,a,o){var n=e.memoizedProps;e=n.id,n=n.onPostCommit,t=t===null?"mount":"update",Am&&(t="nested-update"),typeof n==="function"&&n(e,t,o,a)}function tk(e){var{type:t,memoizedProps:a,stateNode:o}=e;try{Q(e,_M,o,t,a,e)}catch(n){Yt(e,e.return,n)}}function Vy(e,t,a){try{Q(e,FM,e.stateNode,e.type,a,t,e)}catch(o){Yt(e,e.return,o)}}function ak(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&$s(e.type)||e.tag===4}function jy(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||ak(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&&$s(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 $y(e,t,a){var o=e.tag;if(o===5||o===6)e=e.stateNode,t?(uL(a),(a.nodeType===9?a.body:a.nodeName==="HTML"?a.ownerDocument.body:a).insertBefore(e,t)):(uL(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=Qn));else if(o!==4&&(o===27&&$s(e.type)&&(a=e.stateNode,t=null),e=e.child,e!==null))for($y(e,t,a),e=e.sibling;e!==null;)$y(e,t,a),e=e.sibling}function Vp(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&&$s(e.type)&&(a=e.stateNode),e=e.child,e!==null))for(Vp(e,t,a),e=e.sibling;e!==null;)Vp(e,t,a),e=e.sibling}function yM(e){for(var t,a=e.return;a!==null;){if(ak(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=jy(e),Vp(e,a,t);break;case 5:a=t.stateNode,t.flags&32&&(iL(a),t.flags&=-33),t=jy(e),Vp(e,t,a);break;case 3:case 4:t=t.stateNode.containerInfo,a=jy(e),$y(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 ok(e){var{stateNode:t,memoizedProps:a}=e;try{Q(e,rA,e.type,a,t,e)}catch(o){Yt(e,e.return,o)}}function rk(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 vM(e,t){if(e=e.containerInfo,jb=dh,e=x0(e),Mg(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,s=o.focusNode;o=o.focusOffset;try{a.nodeType,s.nodeType}catch(pe){a=null;break e}var d=0,p=-1,b=-1,k=0,O=0,B=e,D=null;t:for(;;){for(var F;;){if(B!==a||n!==0&&B.nodeType!==3||(p=d+n),B!==s||o!==0&&B.nodeType!==3||(b=d+o),B.nodeType===3&&(d+=B.nodeValue.length),(F=B.firstChild)===null)break;D=B,B=F}for(;;){if(B===e)break t;if(D===a&&++k===n&&(p=d),D===s&&++O===o&&(b=d),(F=B.nextSibling)!==null)break;B=D,D=B.parentNode}B=F}a=p===-1||b===-1?null:{start:p,end:b}}else a=null}a=a||{start:0,end:0}}else a=null;$b={focusedElem:e,selectionRange:a},dh=!1;for(no=t;no!==null;)if(t=no,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,no=e;else for(;no!==null;){switch(e=t=no,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&&mM(e,a);break;case 3:if((n&1024)!==0){if(e=e.stateNode.containerInfo,a=e.nodeType,a===9)fv(e);else if(a===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":fv(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,no=e;break}no=t.return}}function nk(e,t,a){var o=Jo(),n=cn(),s=pn(),d=mn(),p=a.flags;switch(a.tag){case 0:case 11:case 15:bn(e,a),p&4&&QS(a,ur|Mr);break;case 1:if(bn(e,a),p&4)if(e=a.stateNode,t===null)a.type.defaultProps||"ref"in a.memoizedProps||Pu||(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.",X(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.",X(a)||"instance")),yn(a)?(gn(),Q(a,pb,a,e),hn()):Q(a,pb,a,e);else{var b=ti(a.type,t.memoizedProps);t=t.memoizedState,a.type.defaultProps||"ref"in a.memoizedProps||Pu||(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.",X(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.",X(a)||"instance")),yn(a)?(gn(),Q(a,KC,a,e,b,t,e.__reactInternalSnapshotBeforeUpdate),hn()):Q(a,KC,a,e,b,t,e.__reactInternalSnapshotBeforeUpdate)}p&64&&ZS(a),p&512&&Hd(a,a.return);break;case 3:if(t=es(),bn(e,a),p&64&&(p=a.updateQueue,p!==null)){if(b=null,a.child!==null)switch(a.child.tag){case 27:case 5:b=a.child.stateNode;break;case 1:b=a.child.stateNode}try{Q(a,eS,p,b)}catch(O){Yt(a,a.return,O)}}e.effectDuration+=yp(t);break;case 27:t===null&&p&4&&ok(a);case 26:case 5:if(bn(e,a),t===null){if(p&4)tk(a);else if(p&64){e=a.type,t=a.memoizedProps,b=a.stateNode;try{Q(a,HM,b,e,t,a)}catch(O){Yt(a,a.return,O)}}}p&512&&Hd(a,a.return);break;case 12:if(p&4){p=es(),bn(e,a),e=a.stateNode,e.effectDuration+=Md(p);try{Q(a,ek,a,t,al,e.effectDuration)}catch(O){Yt(a,a.return,O)}}else bn(e,a);break;case 31:bn(e,a),p&4&&ik(e,a);break;case 13:bn(e,a),p&4&&uk(e,a),p&64&&(e=a.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(p=IM.bind(null,a),eA(e,p))));break;case 22:if(p=a.memoizedState!==null||gs,!p){t=t!==null&&t.memoizedState!==null||$a,b=gs;var k=$a;gs=p,($a=t)&&!k?(xn(e,a,(a.subtreeFlags&8772)!==0),(a.mode&ct)!==Ke&&0<=Pe&&0<=$e&&0.05<$e-Pe&&lp(a,Pe,$e)):bn(e,a),gs=b,$a=k}break;case 30:break;default:bn(e,a)}(a.mode&ct)!==Ke&&0<=Pe&&0<=$e&&((Ia||0.05<Ca)&&un(a,Pe,$e,Ca,xa),a.alternate===null&&a.return!==null&&a.return.alternate!==null&&0.05<$e-Pe&&(rk(a.return.alternate,a.return)||ln(a,Pe,$e,"Mount"))),er(o),fn(n),xa=s,Ia=d}function sk(e){var t=e.alternate;t!==null&&(e.alternate=null,sk(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&ye(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 os(e,t,a){for(a=a.child;a!==null;)lk(e,t,a),a=a.sibling}function lk(e,t,a){if(So&&typeof So.onCommitFiberUnmount==="function")try{So.onCommitFiberUnmount(mu,a)}catch(k){Tn||(Tn=!0,console.error("React instrumentation encountered an error: %o",k))}var o=Jo(),n=cn(),s=pn(),d=mn();switch(a.tag){case 26:$a||vn(a,t),os(e,t,a),a.memoizedState?a.memoizedState.count--:a.stateNode&&(e=a.stateNode,e.parentNode.removeChild(e));break;case 27:$a||vn(a,t);var p=Xa,b=Go;$s(a.type)&&(Xa=a.stateNode,Go=!1),os(e,t,a),Q(a,Qd,a.stateNode),Xa=p,Go=b;break;case 5:$a||vn(a,t);case 6:if(p=Xa,b=Go,Xa=null,os(e,t,a),Xa=p,Go=b,Xa!==null)if(Go)try{Q(a,jM,Xa,a.stateNode)}catch(k){Yt(a,t,k)}else try{Q(a,VM,Xa,a.stateNode)}catch(k){Yt(a,t,k)}break;case 18:Xa!==null&&(Go?(e=Xa,dL(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,a.stateNode),du(e)):dL(Xa,a.stateNode));break;case 4:p=Xa,b=Go,Xa=a.stateNode.containerInfo,Go=!0,os(e,t,a),Xa=p,Go=b;break;case 0:case 11:case 14:case 15:au(Eo,a,t),$a||Fy(a,t,ur),os(e,t,a);break;case 1:$a||(vn(a,t),p=a.stateNode,typeof p.componentWillUnmount==="function"&&JS(a,t,p)),os(e,t,a);break;case 21:os(e,t,a);break;case 22:$a=(p=$a)||a.memoizedState!==null,os(e,t,a),$a=p;break;default:os(e,t,a)}(a.mode&ct)!==Ke&&0<=Pe&&0<=$e&&(Ia||0.05<Ca)&&un(a,Pe,$e,Ca,xa),er(o),fn(n),xa=s,Ia=d}function ik(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{Q(t,aA,e)}catch(a){Yt(t,t.return,a)}}}function uk(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{Q(t,oA,e)}catch(a){Yt(t,t.return,a)}}function bM(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new qw),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new qw),t;default:throw Error("Unexpected Suspense handler tag ("+e.tag+"). This is a bug in React.")}}function jp(e,t){var a=bM(e);t.forEach(function(o){if(!a.has(o)){if(a.add(o),In)if(Uu!==null&&_u!==null)jd(_u,Uu);else throw Error("Expected finished root and lanes to be set. This is a bug in React.");var n=RM.bind(null,e,o);o.then(n,n)}})}function Ho(e,t){var a=t.deletions;if(a!==null)for(var o=0;o<a.length;o++){var n=e,s=t,d=a[o],p=Jo(),b=s;e:for(;b!==null;){switch(b.tag){case 27:if($s(b.type)){Xa=b.stateNode,Go=!1;break e}break;case 5:Xa=b.stateNode,Go=!1;break e;case 3:case 4:Xa=b.stateNode.containerInfo,Go=!0;break e}b=b.return}if(Xa===null)throw Error("Expected to find a host parent. This error is likely caused by a bug in React. Please file an issue.");lk(n,s,d),Xa=null,Go=!1,(d.mode&ct)!==Ke&&0<=Pe&&0<=$e&&0.05<$e-Pe&&ln(d,Pe,$e,"Unmount"),er(p),n=d,s=n.alternate,s!==null&&(s.return=null),n.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)dk(t,e),t=t.sibling}function dk(e,t){var a=Jo(),o=cn(),n=pn(),s=mn(),{alternate:d,flags:p}=e;switch(e.tag){case 0:case 11:case 14:case 15:Ho(t,e),Fo(e),p&4&&(au(Eo|Mr,e,e.return),_d(Eo|Mr,e),Fy(e,e.return,ur|Mr));break;case 1:if(Ho(t,e),Fo(e),p&512&&($a||d===null||vn(d,d.return)),p&64&&gs&&(p=e.updateQueue,p!==null&&(d=p.callbacks,d!==null))){var b=p.shared.hiddenCallbacks;p.shared.hiddenCallbacks=b===null?d:b.concat(d)}break;case 26:if(b=Xr,Ho(t,e),Fo(e),p&512&&($a||d===null||vn(d,d.return)),p&4){var k=d!==null?d.memoizedState:null;if(p=e.memoizedState,d===null)if(p===null)if(e.stateNode===null){e:{p=e.type,d=e.memoizedProps,b=b.ownerDocument||b;t:switch(p){case"title":if(k=b.getElementsByTagName("title")[0],!k||k[oc]||k[ho]||k.namespaceURI===gu||k.hasAttribute("itemprop"))k=b.createElement(p),b.head.insertBefore(k,b.querySelector("head > title"));mo(k,p,d),k[ho]=e,ze(k),p=k;break e;case"link":var O=SL("link","href",b).get(p+(d.href||""));if(O){for(var B=0;B<O.length;B++)if(k=O[B],k.getAttribute("href")===(d.href==null||d.href===""?null:d.href)&&k.getAttribute("rel")===(d.rel==null?null:d.rel)&&k.getAttribute("title")===(d.title==null?null:d.title)&&k.getAttribute("crossorigin")===(d.crossOrigin==null?null:d.crossOrigin)){O.splice(B,1);break t}}k=b.createElement(p),mo(k,p,d),b.head.appendChild(k);break;case"meta":if(O=SL("meta","content",b).get(p+(d.content||""))){for(B=0;B<O.length;B++)if(k=O[B],Te(d.content,"content"),k.getAttribute("content")===(d.content==null?null:""+d.content)&&k.getAttribute("name")===(d.name==null?null:d.name)&&k.getAttribute("property")===(d.property==null?null:d.property)&&k.getAttribute("http-equiv")===(d.httpEquiv==null?null:d.httpEquiv)&&k.getAttribute("charset")===(d.charSet==null?null:d.charSet)){O.splice(B,1);break t}}k=b.createElement(p),mo(k,p,d),b.head.appendChild(k);break;default:throw Error('getNodesForType encountered a type it did not expect: "'+p+'". This is a bug in React.')}k[ho]=e,ze(k),p=k}e.stateNode=p}else kL(b,e.type,e.stateNode);else e.stateNode=xL(b,p,e.memoizedProps);else k!==p?(k===null?d.stateNode!==null&&(d=d.stateNode,d.parentNode.removeChild(d)):k.count--,p===null?kL(b,e.type,e.stateNode):xL(b,p,e.memoizedProps)):p===null&&e.stateNode!==null&&Vy(e,e.memoizedProps,d.memoizedProps)}break;case 27:Ho(t,e),Fo(e),p&512&&($a||d===null||vn(d,d.return)),d!==null&&p&4&&Vy(e,e.memoizedProps,d.memoizedProps);break;case 5:if(Ho(t,e),Fo(e),p&512&&($a||d===null||vn(d,d.return)),e.flags&32){b=e.stateNode;try{Q(e,iL,b)}catch(be){Yt(e,e.return,be)}}p&4&&e.stateNode!=null&&(b=e.memoizedProps,Vy(e,b,d!==null?d.memoizedProps:b)),p&1024&&(Tb=!0,e.type!=="form"&&console.error("Unexpected host component type. Expected a form. This is a bug in React."));break;case 6:if(Ho(t,e),Fo(e),p&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.");p=e.memoizedProps,d=d!==null?d.memoizedProps:p,b=e.stateNode;try{Q(e,GM,b,d,p)}catch(be){Yt(e,e.return,be)}}break;case 3:if(b=es(),lh=null,k=Xr,Xr=Jp(t.containerInfo),Ho(t,e),Xr=k,Fo(e),p&4&&d!==null&&d.memoizedState.isDehydrated)try{Q(e,tA,t.containerInfo)}catch(be){Yt(e,e.return,be)}Tb&&(Tb=!1,ck(e)),t.effectDuration+=yp(b);break;case 4:p=Xr,Xr=Jp(e.stateNode.containerInfo),Ho(t,e),Fo(e),Xr=p;break;case 12:p=es(),Ho(t,e),Fo(e),e.stateNode.effectDuration+=Md(p);break;case 31:Ho(t,e),Fo(e),p&4&&(p=e.updateQueue,p!==null&&(e.updateQueue=null,jp(e,p)));break;case 13:Ho(t,e),Fo(e),e.child.flags&8192&&e.memoizedState!==null!==(d!==null&&d.memoizedState!==null)&&($m=oo()),p&4&&(p=e.updateQueue,p!==null&&(e.updateQueue=null,jp(e,p)));break;case 22:b=e.memoizedState!==null;var D=d!==null&&d.memoizedState!==null,F=gs,pe=$a;if(gs=F||b,$a=pe||D,Ho(t,e),$a=pe,gs=F,D&&!b&&!F&&!pe&&(e.mode&ct)!==Ke&&0<=Pe&&0<=$e&&0.05<$e-Pe&&lp(e,Pe,$e),Fo(e),p&8192)e:for(t=e.stateNode,t._visibility=b?t._visibility&~fc:t._visibility|fc,!b||d===null||D||gs||$a||(ai(e),(e.mode&ct)!==Ke&&0<=Pe&&0<=$e&&0.05<$e-Pe&&ln(e,Pe,$e,"Disconnect")),d=null,t=e;;){if(t.tag===5||t.tag===26){if(d===null){D=d=t;try{k=D.stateNode,b?Q(D,XM,k):Q(D,QM,D.stateNode,D.memoizedProps)}catch(be){Yt(D,D.return,be)}}}else if(t.tag===6){if(d===null){D=t;try{O=D.stateNode,b?Q(D,YM,O):Q(D,WM,O,D.memoizedProps)}catch(be){Yt(D,D.return,be)}}}else if(t.tag===18){if(d===null){D=t;try{B=D.stateNode,b?Q(D,$M,B):Q(D,KM,D.stateNode)}catch(be){Yt(D,D.return,be)}}}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;d===t&&(d=null),t=t.return}d===t&&(d=null),t.sibling.return=t.return,t=t.sibling}p&4&&(p=e.updateQueue,p!==null&&(d=p.retryQueue,d!==null&&(p.retryQueue=null,jp(e,d))));break;case 19:Ho(t,e),Fo(e),p&4&&(p=e.updateQueue,p!==null&&(e.updateQueue=null,jp(e,p)));break;case 30:break;case 21:break;default:Ho(t,e),Fo(e)}(e.mode&ct)!==Ke&&0<=Pe&&0<=$e&&((Ia||0.05<Ca)&&un(e,Pe,$e,Ca,xa),e.alternate===null&&e.return!==null&&e.return.alternate!==null&&0.05<$e-Pe&&(rk(e.return.alternate,e.return)||ln(e,Pe,$e,"Mount"))),er(a),fn(o),xa=n,Ia=s}function Fo(e){var t=e.flags;if(t&2){try{Q(e,yM,e)}catch(a){Yt(e,e.return,a)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function ck(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;ck(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function bn(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)nk(e,t.alternate,t),t=t.sibling}function fk(e){var t=Jo(),a=cn(),o=pn(),n=mn();switch(e.tag){case 0:case 11:case 14:case 15:Fy(e,e.return,ur),ai(e);break;case 1:vn(e,e.return);var s=e.stateNode;typeof s.componentWillUnmount==="function"&&JS(e,e.return,s),ai(e);break;case 27:Q(e,Qd,e.stateNode);case 26:case 5:vn(e,e.return),ai(e);break;case 22:e.memoizedState===null&&ai(e);break;case 30:ai(e);break;default:ai(e)}(e.mode&ct)!==Ke&&0<=Pe&&0<=$e&&(Ia||0.05<Ca)&&un(e,Pe,$e,Ca,xa),er(t),fn(a),xa=o,Ia=n}function ai(e){for(e=e.child;e!==null;)fk(e),e=e.sibling}function pk(e,t,a,o){var n=Jo(),s=cn(),d=pn(),p=mn(),b=a.flags;switch(a.tag){case 0:case 11:case 15:xn(e,a,o),QS(a,ur);break;case 1:if(xn(e,a,o),t=a.stateNode,typeof t.componentDidMount==="function"&&Q(a,pb,a,t),t=a.updateQueue,t!==null){e=a.stateNode;try{Q(a,tM,t,e)}catch(k){Yt(a,a.return,k)}}o&&b&64&&ZS(a),Hd(a,a.return);break;case 27:ok(a);case 26:case 5:xn(e,a,o),o&&t===null&&b&4&&tk(a),Hd(a,a.return);break;case 12:if(o&&b&4){b=es(),xn(e,a,o),o=a.stateNode,o.effectDuration+=Md(b);try{Q(a,ek,a,t,al,o.effectDuration)}catch(k){Yt(a,a.return,k)}}else xn(e,a,o);break;case 31:xn(e,a,o),o&&b&4&&ik(e,a);break;case 13:xn(e,a,o),o&&b&4&&uk(e,a);break;case 22:a.memoizedState===null&&xn(e,a,o),Hd(a,a.return);break;case 30:break;default:xn(e,a,o)}(a.mode&ct)!==Ke&&0<=Pe&&0<=$e&&(Ia||0.05<Ca)&&un(a,Pe,$e,Ca,xa),er(n),fn(s),xa=d,Ia=p}function xn(e,t,a){a=a&&(t.subtreeFlags&8772)!==0;for(t=t.child;t!==null;)pk(e,t.alternate,t,a),t=t.sibling}function Xy(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&&Wl(e),a!=null&&Rd(a))}function Yy(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(Wl(t),e!=null&&Rd(e))}function Hr(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 s=t.sibling;mk(e,t,a,o,s!==null?s.actualStartTime:n),t=s}}function mk(e,t,a,o,n){var s=Jo(),d=cn(),p=pn(),b=mn(),k=Zs,O=t.flags;switch(t.tag){case 0:case 11:case 15:(t.mode&ct)!==Ke&&0<t.actualStartTime&&(t.flags&1)!==0&&ip(t,t.actualStartTime,n,Za,a),Hr(e,t,a,o,n),O&2048&&WS(t,No|Mr);break;case 1:(t.mode&ct)!==Ke&&0<t.actualStartTime&&((t.flags&128)!==0?Dg(t,t.actualStartTime,n,[]):(t.flags&1)!==0&&ip(t,t.actualStartTime,n,Za,a)),Hr(e,t,a,o,n);break;case 3:var B=es(),D=Za;Za=t.alternate!==null&&t.alternate.memoizedState.isDehydrated&&(t.flags&256)===0,Hr(e,t,a,o,n),Za=D,O&2048&&(a=null,t.alternate!==null&&(a=t.alternate.memoizedState.cache),o=t.memoizedState.cache,o!==a&&(Wl(o),a!=null&&Rd(a))),e.passiveEffectDuration+=yp(B);break;case 12:if(O&2048){O=es(),Hr(e,t,a,o,n),e=t.stateNode,e.passiveEffectDuration+=Md(O);try{Q(t,gM,t,t.alternate,al,e.passiveEffectDuration)}catch(F){Yt(t,t.return,F)}}else Hr(e,t,a,o,n);break;case 31:O=Za,B=t.alternate!==null?t.alternate.memoizedState:null,D=t.memoizedState,B!==null&&D===null?(D=t.deletions,D!==null&&0<D.length&&D[0].tag===18?(Za=!1,B=B.hydrationErrors,B!==null&&Dg(t,t.actualStartTime,n,B)):Za=!0):Za=!1,Hr(e,t,a,o,n),Za=O;break;case 13:O=Za,B=t.alternate!==null?t.alternate.memoizedState:null,D=t.memoizedState,B===null||B.dehydrated===null||D!==null&&D.dehydrated!==null?Za=!1:(D=t.deletions,D!==null&&0<D.length&&D[0].tag===18?(Za=!1,B=B.hydrationErrors,B!==null&&Dg(t,t.actualStartTime,n,B)):Za=!0),Hr(e,t,a,o,n),Za=O;break;case 23:break;case 22:D=t.stateNode,B=t.alternate,t.memoizedState!==null?D._visibility&ss?Hr(e,t,a,o,n):Fd(e,t,a,o,n):D._visibility&ss?Hr(e,t,a,o,n):(D._visibility|=ss,ou(e,t,a,o,(t.subtreeFlags&10256)!==0||t.actualDuration!==0&&(t.alternate===null||t.alternate.child!==t.child),n),(t.mode&ct)===Ke||Za||(e=t.actualStartTime,0<=e&&0.05<n-e&&lp(t,e,n),0<=Pe&&0<=$e&&0.05<$e-Pe&&lp(t,Pe,$e))),O&2048&&Xy(B,t);break;case 24:Hr(e,t,a,o,n),O&2048&&Yy(t.alternate,t);break;default:Hr(e,t,a,o,n)}if((t.mode&ct)!==Ke){if(e=!Za&&t.alternate===null&&t.return!==null&&t.return.alternate!==null)a=t.actualStartTime,0<=a&&0.05<n-a&&ln(t,a,n,"Mount");0<=Pe&&0<=$e&&((Ia||0.05<Ca)&&un(t,Pe,$e,Ca,xa),e&&0.05<$e-Pe&&ln(t,Pe,$e,"Mount"))}er(s),fn(d),xa=p,Ia=b,Zs=k}function ou(e,t,a,o,n,s){n=n&&((t.subtreeFlags&10256)!==0||t.actualDuration!==0&&(t.alternate===null||t.alternate.child!==t.child));for(t=t.child;t!==null;){var d=t.sibling;hk(e,t,a,o,n,d!==null?d.actualStartTime:s),t=d}}function hk(e,t,a,o,n,s){var d=Jo(),p=cn(),b=pn(),k=mn(),O=Zs;n&&(t.mode&ct)!==Ke&&0<t.actualStartTime&&(t.flags&1)!==0&&ip(t,t.actualStartTime,s,Za,a);var B=t.flags;switch(t.tag){case 0:case 11:case 15:ou(e,t,a,o,n,s),WS(t,No);break;case 23:break;case 22:var D=t.stateNode;t.memoizedState!==null?D._visibility&ss?ou(e,t,a,o,n,s):Fd(e,t,a,o,s):(D._visibility|=ss,ou(e,t,a,o,n,s)),n&&B&2048&&Xy(t.alternate,t);break;case 24:ou(e,t,a,o,n,s),n&&B&2048&&Yy(t.alternate,t);break;default:ou(e,t,a,o,n,s)}(t.mode&ct)!==Ke&&0<=Pe&&0<=$e&&(Ia||0.05<Ca)&&un(t,Pe,$e,Ca,xa),er(d),fn(p),xa=b,Ia=k,Zs=O}function Fd(e,t,a,o,n){if(t.subtreeFlags&10256||t.actualDuration!==0&&(t.alternate===null||t.alternate.child!==t.child))for(var s=t.child;s!==null;){t=s.sibling;var d=e,p=a,b=o,k=t!==null?t.actualStartTime:n,O=Zs;(s.mode&ct)!==Ke&&0<s.actualStartTime&&(s.flags&1)!==0&&ip(s,s.actualStartTime,k,Za,p);var B=s.flags;switch(s.tag){case 22:Fd(d,s,p,b,k),B&2048&&Xy(s.alternate,s);break;case 24:Fd(d,s,p,b,k),B&2048&&Yy(s.alternate,s);break;default:Fd(d,s,p,b,k)}Zs=O,s=t}}function ru(e,t,a){if(e.subtreeFlags&Ec)for(e=e.child;e!==null;)gk(e,t,a),e=e.sibling}function gk(e,t,a){switch(e.tag){case 26:ru(e,t,a),e.flags&Ec&&e.memoizedState!==null&&lA(a,Xr,e.memoizedState,e.memoizedProps);break;case 5:ru(e,t,a);break;case 3:case 4:var o=Xr;Xr=Jp(e.stateNode.containerInfo),ru(e,t,a),Xr=o;break;case 22:e.memoizedState===null&&(o=e.alternate,o!==null&&o.memoizedState!==null?(o=Ec,Ec=16777216,ru(e,t,a),Ec=o):ru(e,t,a));break;default:ru(e,t,a)}}function yk(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 Gd(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=Jo();no=o,xk(o,e),(o.mode&ct)!==Ke&&0<=Pe&&0<=$e&&0.05<$e-Pe&&ln(o,Pe,$e,"Unmount"),er(n)}yk(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)vk(e),e=e.sibling}function vk(e){var t=Jo(),a=cn(),o=pn(),n=mn();switch(e.tag){case 0:case 11:case 15:Gd(e),e.flags&2048&&Gy(e,e.return,No|Mr);break;case 3:var s=es();Gd(e),e.stateNode.passiveEffectDuration+=yp(s);break;case 12:s=es(),Gd(e),e.stateNode.passiveEffectDuration+=Md(s);break;case 22:s=e.stateNode,e.memoizedState!==null&&s._visibility&ss&&(e.return===null||e.return.tag!==13)?(s._visibility&=~ss,$p(e),(e.mode&ct)!==Ke&&0<=Pe&&0<=$e&&0.05<$e-Pe&&ln(e,Pe,$e,"Disconnect")):Gd(e);break;default:Gd(e)}(e.mode&ct)!==Ke&&0<=Pe&&0<=$e&&(Ia||0.05<Ca)&&un(e,Pe,$e,Ca,xa),er(t),fn(a),Ia=n,xa=o}function $p(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=Jo();no=o,xk(o,e),(o.mode&ct)!==Ke&&0<=Pe&&0<=$e&&0.05<$e-Pe&&ln(o,Pe,$e,"Unmount"),er(n)}yk(e)}for(e=e.child;e!==null;)bk(e),e=e.sibling}function bk(e){var t=Jo(),a=cn(),o=pn(),n=mn();switch(e.tag){case 0:case 11:case 15:Gy(e,e.return,No),$p(e);break;case 22:var s=e.stateNode;s._visibility&ss&&(s._visibility&=~ss,$p(e));break;default:$p(e)}(e.mode&ct)!==Ke&&0<=Pe&&0<=$e&&(Ia||0.05<Ca)&&un(e,Pe,$e,Ca,xa),er(t),fn(a),Ia=n,xa=o}function xk(e,t){for(;no!==null;){var a=no,o=a,n=t,s=Jo(),d=cn(),p=pn(),b=mn();switch(o.tag){case 0:case 11:case 15:Gy(o,n,No);break;case 23:case 22:o.memoizedState!==null&&o.memoizedState.cachePool!==null&&(n=o.memoizedState.cachePool.pool,n!=null&&Wl(n));break;case 24:Rd(o.memoizedState.cache)}if((o.mode&ct)!==Ke&&0<=Pe&&0<=$e&&(Ia||0.05<Ca)&&un(o,Pe,$e,Ca,xa),er(s),fn(d),Ia=b,xa=p,o=a.child,o!==null)o.return=a,no=o;else e:for(a=e;no!==null;){if(o=no,s=o.sibling,d=o.return,sk(o),o===a){no=null;break e}if(s!==null){s.return=d,no=s;break e}no=d}}}function xM(){HD.forEach(function(e){return e()})}function Sk(){var e=typeof IS_REACT_ACT_ENVIRONMENT<"u"?IS_REACT_ACT_ENVIRONMENT:void 0;return e||Y.actQueue===null||console.error("The current testing environment is not configured to support act(...)"),e}function ar(e){if((Bt&Ja)!==so&&pt!==0)return pt&-pt;var t=Y.T;return t!==null?(t._updatedFibers||(t._updatedFibers=new Set),t._updatedFibers.add(e),av()):U()}function kk(){if(jo===0)if((pt&536870912)===0||It){var e=cm;cm<<=1,(cm&3932160)===0&&(cm=262144),jo=e}else jo=536870912;return e=ir.current,e!==null&&(e.flags|=32),jo}function Ta(e,t,a){if(Gu&&console.error("useInsertionEffect must not schedule updates."),zb&&(Qm=!0),e===oa&&(Zt===yi||Zt===vi)||e.cancelPendingCommit!==null)su(e,0),Vs(e,pt,jo,!1);if(Es(e,a),(Bt&Ja)!==so&&e===oa){if(wn)switch(t.tag){case 0:case 11:case 15:e=gt&&X(gt)||"Unknown",Kw.has(e)||(Kw.add(e),t=X(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:Yw||(console.error("Cannot update during an existing state transition (such as within `render`). Render methods should be a pure function of props and state."),Yw=!0)}}else In&&yd(e,t,a),AM(t),e===oa&&((Bt&Ja)===so&&(cl|=a),wa===il&&Vs(e,pt,jo,!1)),Sn(e)}function Lk(e,t,a){if((Bt&(Ja|dr))!==so)throw Error("Should not already be working.");if(pt!==0&&gt!==null){var o=gt,n=oo();switch(HC){case Oc:case yi:var s=vc;ca&&((o=o._debugTask)?o.run(console.timeStamp.bind(console,"Suspended",s,n,Sr,void 0,"primary-light")):console.timeStamp("Suspended",s,n,Sr,void 0,"primary-light"));break;case vi:s=vc,ca&&((o=o._debugTask)?o.run(console.timeStamp.bind(console,"Action",s,n,Sr,void 0,"primary-light")):console.timeStamp("Action",s,n,Sr,void 0,"primary-light"));break;default:ca&&(o=n-vc,3>o||console.timeStamp("Blocked",vc,n,Sr,void 0,5>o?"primary-light":10>o?"primary":100>o?"primary-dark":"error"))}}s=(a=!a&&(t&127)===0&&(t&e.expiredLanes)===0||co(e,t))?kM(e,t):Qy(e,t,!0);var d=a;do{if(s===ys){Hu&&!a&&Vs(e,t,0,!1),t=Zt,vc=Ga(),HC=t;break}else{if(o=oo(),n=e.current.alternate,d&&!SM(n)){Wo(t),n=ro,s=o,!ca||s<=n||(Da?Da.run(console.timeStamp.bind(console,"Teared Render",n,s,Tt,kt,"error")):console.timeStamp("Teared Render",n,s,Tt,kt,"error")),oi(t,o),s=Qy(e,t,!1),d=!1;continue}if(s===gi){if(d=t,e.errorRecoveryDisabledLanes&d)var p=0;else p=e.pendingLanes&-536870913,p=p!==0?p:p&536870912?536870912:0;if(p!==0){Wo(t),Eg(ro,o,t,Da),oi(t,o),t=p;e:{o=e,s=d,d=zc;var b=o.current.memoizedState.isDehydrated;if(b&&(su(o,p).flags|=256),p=Qy(o,p,!1),p!==gi){if(Mb&&!b){o.errorRecoveryDisabledLanes|=s,cl|=s,s=il;break e}o=qo,qo=d,o!==null&&(qo===null?qo=o:qo.push.apply(qo,o))}s=p}if(d=!1,s!==gi)continue;else o=oo()}}if(s===qc){Wo(t),Eg(ro,o,t,Da),oi(t,o),su(e,0),Vs(e,t,0,!0);break}e:{switch(a=e,s){case ys:case qc:throw Error("Root did not complete. This is a bug in React.");case il:if((t&4194048)!==t)break;case Fm:Wo(t),L0(ro,o,t,Da),oi(t,o),n=t,(n&127)!==0?Im=o:(n&4194048)!==0&&(Rm=o),Vs(a,t,jo,!ul);break e;case gi:qo=null;break;case Hm:case Ow:break;default:throw Error("Unknown root exit status.")}if(Y.actQueue!==null)Wy(a,n,t,qo,Pc,jm,jo,cl,bi,s,null,null,ro,o);else{if((t&62914560)===t&&(d=$m+Pw-oo(),10<d)){if(Vs(a,t,jo,!ul),da(a,0,!0)!==0)break e;Yr=t,a.timeoutHandle=o1(Ck.bind(null,a,n,qo,Pc,jm,t,jo,cl,bi,ul,s,"Throttled",ro,o),d);break e}Ck(a,n,qo,Pc,jm,t,jo,cl,bi,ul,s,null,ro,o)}}}break}while(1);Sn(e)}function Ck(e,t,a,o,n,s,d,p,b,k,O,B,D,F){e.timeoutHandle=Ci;var pe=t.subtreeFlags,be=null;if(pe&8192||(pe&16785408)===16785408){if(be={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:Qn},gk(t,s,be),pe=(s&62914560)===s?$m-oo():(s&4194048)===s?zw-oo():0,pe=iA(be,pe),pe!==null){Yr=s,e.cancelPendingCommit=pe(Wy.bind(null,e,t,s,a,o,n,d,p,b,O,be,be.waitingForViewTransition?"Waiting for the previous Animation":0<be.count?0<be.imgCount?"Suspended on CSS and Images":"Suspended on CSS":be.imgCount===1?"Suspended on an Image":0<be.imgCount?"Suspended on Images":null,D,F)),Vs(e,s,d,!k);return}}Wy(e,t,s,a,o,n,d,p,b,O,be,B,D,F)}function SM(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],s=n.getSnapshot;n=n.value;try{if(!Ao(s(),n))return!1}catch(d){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 Vs(e,t,a,o){t&=~Ab,t&=~cl,e.suspendedLanes|=t,e.pingedLanes&=~t,o&&(e.warmLanes|=t),o=e.expirationTimes;for(var n=t;0<n;){var s=31-Io(n),d=1<<s;o[s]=-1,n&=~d}a!==0&&Ul(e,a,t)}function nu(){return(Bt&(Ja|dr))===so?($d(0,!1),!1):!0}function Ky(){if(gt!==null){if(Zt===Vo)var e=gt.return;else e=gt,mp(),sy(e),Eu=null,Ic=0,e=gt;for(;e!==null;)KS(e.alternate,e),e=e.return;gt=null}}function oi(e,t){(e&127)!==0&&(ol=t),(e&4194048)!==0&&(En=t),(e&62914560)!==0&&(UC=t),(e&2080374784)!==0&&(_C=t)}function su(e,t){ca&&(console.timeStamp("Blocking Track",0.003,0.003,"Blocking",kt,"primary-light"),console.timeStamp("Transition Track",0.003,0.003,"Transition",kt,"primary-light"),console.timeStamp("Suspense Track",0.003,0.003,"Suspense",kt,"primary-light"),console.timeStamp("Idle Track",0.003,0.003,"Idle",kt,"primary-light"));var a=ro;if(ro=Ga(),pt!==0&&0<a){if(Wo(pt),wa===Hm||wa===il)L0(a,ro,t,Da);else{var o=ro,n=Da;if(ca&&!(o<=a)){var s=(t&738197653)===t?"tertiary-dark":"primary-dark",d=(t&536870912)===t?"Prewarm":(t&201326741)===t?"Interrupted Hydration":"Interrupted Render";n?n.run(console.timeStamp.bind(console,d,a,o,Tt,kt,s)):console.timeStamp(d,a,o,Tt,kt,s)}}oi(pt,ro)}if(a=Da,Da=null,(t&127)!==0){Da=hc,n=0<=Dn&&Dn<ol?ol:Dn,o=0<=ii&&ii<ol?ol:ii,s=0<=o?o:0<=n?n:ro,0<=Im?(Wo(2),C0(Im,s,t,a)):(Mm&127)!==0&&(Wo(2),Td(ol,s,fs)),a=n;var p=o,b=gc,k=0<Mu,O=rl===mc,B=rl===Tm;if(n=ro,o=hc,s=ib,d=ub,ca){if(Tt="Blocking",0<a?a>n&&(a=n):a=n,0<p?p>a&&(p=a):p=a,b!==null&&a>p){var D=k?"secondary-light":"warning";o?o.run(console.timeStamp.bind(console,k?"Consecutive":"Event: "+b,p,a,Tt,kt,D)):console.timeStamp(k?"Consecutive":"Event: "+b,p,a,Tt,kt,D)}n>a&&(p=O?"error":(t&738197653)===t?"tertiary-light":"primary-light",O=B?"Promise Resolved":O?"Cascading Update":5<n-a?"Update Blocked":"Update",B=[],d!=null&&B.push(["Component name",d]),s!=null&&B.push(["Method name",s]),a={start:a,end:n,detail:{devtools:{properties:B,track:Tt,trackGroup:kt,color:p}}},o?o.run(performance.measure.bind(performance,O,a)):performance.measure(O,a))}Dn=-1.1,rl=0,ub=ib=null,Im=-1.1,Mu=ii,ii=-1.1,ol=Ga()}if((t&4194048)!==0&&(Da=yc,n=0<=cs&&cs<En?En:cs,a=0<=Ir&&Ir<En?En:Ir,o=0<=nl&&nl<En?En:nl,s=0<=o?o:0<=a?a:ro,0<=Rm?(Wo(256),C0(Rm,s,t,Da)):(Mm&4194048)!==0&&(Wo(256),Td(En,s,fs)),B=o,p=ui,b=0<sl,k=db===Tm,s=ro,o=yc,d=zC,O=PC,ca&&(Tt="Transition",0<a?a>s&&(a=s):a=s,0<n?n>a&&(n=a):n=a,0<B?B>n&&(B=n):B=n,n>B&&p!==null&&(D=b?"secondary-light":"warning",o?o.run(console.timeStamp.bind(console,b?"Consecutive":"Event: "+p,B,n,Tt,kt,D)):console.timeStamp(b?"Consecutive":"Event: "+p,B,n,Tt,kt,D)),a>n&&(o?o.run(console.timeStamp.bind(console,"Action",n,a,Tt,kt,"primary-dark")):console.timeStamp("Action",n,a,Tt,kt,"primary-dark")),s>a&&(n=k?"Promise Resolved":5<s-a?"Update Blocked":"Update",B=[],O!=null&&B.push(["Component name",O]),d!=null&&B.push(["Method name",d]),a={start:a,end:s,detail:{devtools:{properties:B,track:Tt,trackGroup:kt,color:"primary-light"}}},o?o.run(performance.measure.bind(performance,n,a)):performance.measure(n,a))),Ir=cs=-1.1,db=0,Rm=-1.1,sl=nl,nl=-1.1,En=Ga()),(t&62914560)!==0&&(Mm&62914560)!==0&&(Wo(4194304),Td(UC,ro,fs)),(t&2080374784)!==0&&(Mm&2080374784)!==0&&(Wo(268435456),Td(_C,ro,fs)),a=e.timeoutHandle,a!==Ci&&(e.timeoutHandle=Ci,eE(a)),a=e.cancelPendingCommit,a!==null&&(e.cancelPendingCommit=null,a()),Yr=0,Ky(),oa=e,gt=a=Wn(e.current,null),pt=t,Zt=Vo,cr=null,ul=!1,Hu=co(e,t),Mb=!1,wa=ys,bi=jo=Ab=cl=dl=0,qo=zc=null,jm=!1,(t&8)!==0&&(t|=t&32),o=e.entangledLanes,o!==0)for(e=e.entanglements,o&=t;0<o;)n=31-Io(o),s=1<<n,t|=e[n],o&=~s;return qn=t,up(),e=DC(),1000<e-AC&&(Y.recentlyCreatedOwnerStacks=0,AC=e),jr.discardPendingWarnings(),a}function wk(e,t){et=null,Y.H=Dc,Y.getCurrentStack=null,wn=!1,nr=null,t===Du||t===Nm?(t=$0(),Zt=Oc):t===mb?(t=$0(),Zt=Bw):Zt=t===Cb?Rb:t!==null&&typeof t==="object"&&typeof t.then==="function"?Bc:Gm,cr=t;var a=gt;a===null?(wa=qc,Up(e,Zo(t,e.current))):a.mode&ct&&Xg(a)}function Tk(){var e=ir.current;return e===null?!0:(pt&4194048)===pt?Rr===null?!0:!1:(pt&62914560)===pt||(pt&536870912)!==0?e===Rr:!1}function Ik(){var e=Y.H;return Y.H=Dc,e===null?Dc:e}function Rk(){var e=Y.A;return Y.A=_D,e}function Xp(e){Da===null&&(Da=e._debugTask==null?null:e._debugTask)}function Yp(){wa=il,ul||(pt&4194048)!==pt&&ir.current!==null||(Hu=!0),(dl&134217727)===0&&(cl&134217727)===0||oa===null||Vs(oa,pt,jo,!1)}function Qy(e,t,a){var o=Bt;Bt|=Ja;var n=Ik(),s=Rk();if(oa!==e||pt!==t){if(In){var d=e.memoizedUpdaters;0<d.size&&(jd(e,pt),d.clear()),Ns(e,t)}Pc=null,su(e,t)}t=!1,d=wa;e:do try{if(Zt!==Vo&&gt!==null){var p=gt,b=cr;switch(Zt){case Rb:Ky(),d=Fm;break e;case Oc:case yi:case vi:case Bc:ir.current===null&&(t=!0);var k=Zt;if(Zt=Vo,cr=null,lu(e,p,b,k),a&&Hu){d=ys;break e}break;default:k=Zt,Zt=Vo,cr=null,lu(e,p,b,k)}}Mk(),d=wa;break}catch(O){wk(e,O)}while(1);return t&&e.shellSuspendCounter++,mp(),Bt=o,Y.H=n,Y.A=s,gt===null&&(oa=null,pt=0,up()),d}function Mk(){for(;gt!==null;)Ak(gt)}function kM(e,t){var a=Bt;Bt|=Ja;var o=Ik(),n=Rk();if(oa!==e||pt!==t){if(In){var s=e.memoizedUpdaters;0<s.size&&(jd(e,pt),s.clear()),Ns(e,t)}Pc=null,Xm=oo()+Uw,su(e,t)}else Hu=co(e,t);e:do try{if(Zt!==Vo&&gt!==null)t:switch(t=gt,s=cr,Zt){case Gm:Zt=Vo,cr=null,lu(e,t,s,Gm);break;case yi:case vi:if(V0(s)){Zt=Vo,cr=null,Dk(t);break}t=function(){Zt!==yi&&Zt!==vi||oa!==e||(Zt=Vm),Sn(e)},s.then(t,t);break e;case Oc:Zt=Vm;break e;case Bw:Zt=Ib;break e;case Vm:V0(s)?(Zt=Vo,cr=null,Dk(t)):(Zt=Vo,cr=null,lu(e,t,s,Vm));break;case Ib:var d=null;switch(gt.tag){case 26:d=gt.memoizedState;case 5:case 27:var p=gt;if(d?LL(d):p.stateNode.complete){Zt=Vo,cr=null;var b=p.sibling;if(b!==null)gt=b;else{var k=p.return;k!==null?(gt=k,Kp(k)):gt=null}break t}break;default:console.error("Unexpected type of fiber triggered a suspensey commit. This is a bug in React.")}Zt=Vo,cr=null,lu(e,t,s,Ib);break;case Bc:Zt=Vo,cr=null,lu(e,t,s,Bc);break;case Rb:Ky(),wa=Fm;break e;default:throw Error("Unexpected SuspendedReason. This is a bug in React.")}Y.actQueue!==null?Mk():LM();break}catch(O){wk(e,O)}while(1);if(mp(),Y.H=o,Y.A=n,Bt=a,gt!==null)return ys;return oa=null,pt=0,up(),wa}function LM(){for(;gt!==null&&!SA();)Ak(gt)}function Ak(e){var t=e.alternate;(e.mode&ct)!==Ke?($g(e),t=Q(e,_y,t,e,qn),Xg(e)):t=Q(e,_y,t,e,qn),e.memoizedProps=e.pendingProps,t===null?Kp(e):gt=t}function Dk(e){var t=Q(e,CM,e);e.memoizedProps=e.pendingProps,t===null?Kp(e):gt=t}function CM(e){var t=e.alternate,a=(e.mode&ct)!==Ke;switch(a&&$g(e),e.tag){case 15:case 0:t=FS(t,e,e.pendingProps,e.type,void 0,pt);break;case 11:t=FS(t,e,e.pendingProps,e.type.render,e.ref,pt);break;case 5:sy(e);default:KS(t,e),e=gt=A0(e,qn),t=_y(t,e,qn)}return a&&Xg(e),t}function lu(e,t,a,o){mp(),sy(t),Eu=null,Ic=0;var n=t.return;try{if(iM(e,n,t,a,pt)){wa=qc,Up(e,Zo(a,e.current)),gt=null;return}}catch(s){if(n!==null)throw gt=n,s;wa=qc,Up(e,Zo(a,e.current)),gt=null;return}if(t.flags&32768){if(It||o===Gm)e=!0;else if(Hu||(pt&536870912)!==0)e=!1;else if(ul=e=!0,o===yi||o===vi||o===Oc||o===Bc)o=ir.current,o!==null&&o.tag===13&&(o.flags|=16384);Ek(t,e)}else Kp(t)}function Kp(e){var t=e;do{if((t.flags&32768)!==0){Ek(t,ul);return}var a=t.alternate;if(e=t.return,$g(t),a=Q(t,cM,a,t,qn),(t.mode&ct)!==Ke&&U0(t),a!==null){gt=a;return}if(t=t.sibling,t!==null){gt=t;return}gt=t=e}while(t!==null);wa===ys&&(wa=Ow)}function Ek(e,t){do{var a=fM(e.alternate,e);if(a!==null){a.flags&=32767,gt=a;return}if((e.mode&ct)!==Ke){U0(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)){gt=e;return}gt=e=a}while(e!==null);wa=Fm,gt=null}function Wy(e,t,a,o,n,s,d,p,b,k,O,B,D,F){e.cancelPendingCommit=null;do Vd();while(Ya!==pl);if(jr.flushLegacyContextWarning(),jr.flushPendingUnsafeLifecycleWarnings(),(Bt&(Ja|dr))!==so)throw Error("Should not already be working.");if(Wo(a),k===gi?Eg(D,F,a,Da):o!==null?KR(D,F,a,o,t!==null&&t.alternate!==null&&t.alternate.memoizedState.isDehydrated&&(t.flags&256)!==0,Da):YR(D,F,a,Da),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(s=t.lanes|t.childLanes,s|=ob,Zf(e,a,s,d,p,b),e===oa&&(gt=oa=null,pt=0),Fu=t,ml=e,Yr=a,Nb=s,Ob=n,jw=o,qb=F,$w=B,Kr=Ym,Xw=null,t.actualDuration!==0||(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?(e.callbackNode=null,e.callbackPriority=0,MM(pu,function(){return Vc=window.event,Kr===Ym&&(Kr=Eb),zk(),null})):(e.callbackNode=null,e.callbackPriority=0),ds=null,al=Ga(),B!==null&&QR(F,al,B,Da),o=(t.flags&13878)!==0,(t.subtreeFlags&13878)!==0||o){o=Y.T,Y.T=null,n=Kt.p,Kt.p=sr,d=Bt,Bt|=dr;try{vM(e,t,a)}finally{Bt=d,Kt.p=n,Y.T=o}}Ya=Hw,Nk(),qk(),Ok()}}function Nk(){if(Ya===Hw){Ya=pl;var e=ml,t=Fu,a=Yr,o=(t.flags&13878)!==0;if((t.subtreeFlags&13878)!==0||o){o=Y.T,Y.T=null;var n=Kt.p;Kt.p=sr;var s=Bt;Bt|=dr;try{Uu=a,_u=e,vp(),dk(t,e),_u=Uu=null,a=$b;var d=x0(e.containerInfo),p=a.focusedElem,b=a.selectionRange;if(d!==p&&p&&p.ownerDocument&&b0(p.ownerDocument.documentElement,p)){if(b!==null&&Mg(p)){var{start:k,end:O}=b;if(O===void 0&&(O=k),"selectionStart"in p)p.selectionStart=k,p.selectionEnd=Math.min(O,p.value.length);else{var B=p.ownerDocument||document,D=B&&B.defaultView||window;if(D.getSelection){var F=D.getSelection(),pe=p.textContent.length,be=Math.min(b.start,pe),la=b.end===void 0?be:Math.min(b.end,pe);!F.extend&&be>la&&(d=la,la=be,be=d);var Dt=v0(p,be),A=v0(p,la);if(Dt&&A&&(F.rangeCount!==1||F.anchorNode!==Dt.node||F.anchorOffset!==Dt.offset||F.focusNode!==A.node||F.focusOffset!==A.offset)){var E=B.createRange();E.setStart(Dt.node,Dt.offset),F.removeAllRanges(),be>la?(F.addRange(E),F.extend(A.node,A.offset)):(E.setEnd(A.node,A.offset),F.addRange(E))}}}}B=[];for(F=p;F=F.parentNode;)F.nodeType===1&&B.push({element:F,left:F.scrollLeft,top:F.scrollTop});typeof p.focus==="function"&&p.focus();for(p=0;p<B.length;p++){var q=B[p];q.element.scrollLeft=q.left,q.element.scrollTop=q.top}}dh=!!jb,$b=jb=null}finally{Bt=s,Kt.p=n,Y.T=o}}e.current=t,Ya=Fw}}function qk(){if(Ya===Fw){Ya=pl;var e=Xw;if(e!==null){al=Ga();var t=us,a=al;!ca||a<=t||(fs?fs.run(console.timeStamp.bind(console,e,t,a,Tt,kt,"secondary-light")):console.timeStamp(e,t,a,Tt,kt,"secondary-light"))}e=ml,t=Fu,a=Yr;var o=(t.flags&8772)!==0;if((t.subtreeFlags&8772)!==0||o){o=Y.T,Y.T=null;var n=Kt.p;Kt.p=sr;var s=Bt;Bt|=dr;try{Uu=a,_u=e,vp(),nk(e,t.alternate,t),_u=Uu=null}finally{Bt=s,Kt.p=n,Y.T=o}}e=qb,t=$w,us=Ga(),e=t===null?e:al,t=us,a=Kr===Db,o=Da,ds!==null?w0(e,t,ds,!1,o):!ca||t<=e||(o?o.run(console.timeStamp.bind(console,a?"Commit Interrupted View Transition":"Commit",e,t,Tt,kt,a?"error":"secondary-dark")):console.timeStamp(a?"Commit Interrupted View Transition":"Commit",e,t,Tt,kt,a?"error":"secondary-dark")),Ya=Gw}}function Ok(){if(Ya===Vw||Ya===Gw){if(Ya===Vw){var e=us;us=Ga();var t=us,a=Kr===Db;!ca||t<=e||(fs?fs.run(console.timeStamp.bind(console,a?"Interrupted View Transition":"Starting Animation",e,t,Tt,kt,a?"error":"secondary-light")):console.timeStamp(a?"Interrupted View Transition":"Starting Animation",e,t,Tt,kt,a?" error":"secondary-light")),Kr!==Db&&(Kr=_w)}Ya=pl,kA(),e=ml;var o=Fu;t=Yr,a=jw;var n=o.actualDuration!==0||(o.subtreeFlags&10256)!==0||(o.flags&10256)!==0;n?Ya=Km:(Ya=pl,Fu=ml=null,Bk(e,e.pendingLanes),xi=0,_c=null);var s=e.pendingLanes;if(s===0&&(fl=null),n||Hk(e),s=L(t),o=o.stateNode,So&&typeof So.onCommitFiberRoot==="function")try{var d=(o.current.flags&128)===128;switch(s){case sr:var p=Ov;break;case Gr:p=Bv;break;case Rn:p=pu;break;case pm:p=zv;break;default:p=pu}So.onCommitFiberRoot(mu,o,p,d)}catch(B){Tn||(Tn=!0,console.error("React instrumentation encountered an error: %o",B))}if(In&&e.memoizedUpdaters.clear(),xM(),a!==null){d=Y.T,p=Kt.p,Kt.p=sr,Y.T=null;try{var b=e.onRecoverableError;for(o=0;o<a.length;o++){var k=a[o],O=wM(k.stack);Q(k.source,b,k.value,O)}}finally{Y.T=d,Kt.p=p}}(Yr&3)!==0&&Vd(),Sn(e),s=e.pendingLanes,(t&261930)!==0&&(s&42)!==0?(Dm=!0,e===Bb?Uc++:(Uc=0,Bb=e)):Uc=0,n||oi(t,us),$d(0,!1)}}function wM(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 Bk(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,Rd(t)))}function Vd(){return Nk(),qk(),Ok(),zk()}function zk(){if(Ya!==Km)return!1;var e=ml,t=Nb;Nb=0;var a=L(Yr),o=Rn===0||Rn>a?Rn:a;a=Y.T;var n=Kt.p;try{Kt.p=o,Y.T=null;var s=Ob;Ob=null,o=ml;var d=Yr;if(Ya=pl,Fu=ml=null,Yr=0,(Bt&(Ja|dr))!==so)throw Error("Cannot flush passive effects while already rendering.");Wo(d),zb=!0,Qm=!1;var p=0;if(ds=null,p=oo(),Kr===_w)Td(us,p,fs);else{var b=us,k=p,O=Kr===Eb;!ca||k<=b||(Da?Da.run(console.timeStamp.bind(console,O?"Waiting for Paint":"Waiting",b,k,Tt,kt,"secondary-light")):console.timeStamp(O?"Waiting for Paint":"Waiting",b,k,Tt,kt,"secondary-light"))}b=Bt,Bt|=dr;var B=o.current;vp(),vk(B);var D=o.current;B=qb,vp(),mk(o,D,d,s,B),Hk(o),Bt=b;var F=oo();if(D=p,B=Da,ds!==null?w0(D,F,ds,!0,B):!ca||F<=D||(B?B.run(console.timeStamp.bind(console,"Remaining Effects",D,F,Tt,kt,"secondary-dark")):console.timeStamp("Remaining Effects",D,F,Tt,kt,"secondary-dark")),oi(d,F),$d(0,!1),Qm?o===_c?xi++:(xi=0,_c=o):xi=0,Qm=zb=!1,So&&typeof So.onPostCommitFiberRoot==="function")try{So.onPostCommitFiberRoot(mu,o)}catch(be){Tn||(Tn=!0,console.error("React instrumentation encountered an error: %o",be))}var pe=o.current.stateNode;return pe.effectDuration=0,pe.passiveEffectDuration=0,!0}finally{Kt.p=n,Y.T=a,Bk(e,t)}}function Pk(e,t,a){t=Zo(a,t),_0(t),t=My(e.stateNode,t,2),e=_s(e,t,2),e!==null&&(Es(e,2),Sn(e))}function Yt(e,t,a){if(Gu=!1,e.tag===3)Pk(e,e,a);else{for(;t!==null;){if(t.tag===3){Pk(t,e,a);return}if(t.tag===1){var o=t.stateNode;if(typeof t.type.getDerivedStateFromError==="function"||typeof o.componentDidCatch==="function"&&(fl===null||!fl.has(o))){e=Zo(a,e),_0(e),a=Ay(2),o=_s(t,a,2),o!==null&&(Dy(a,o,t,e),Es(o,2),Sn(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,H(t,function(p,b){console.error("%s must not return anything besides a function, which is used for clean-up.%s",p,b)},s,d)}a=a.next}while(a!==r)}}catch(p){Kt(t,t.return,p)}}function au(e,t,a){try{var o=t.updateQueue,r=o!==null?o.lastEffect:null;if(r!==null){var s=r.next;o=s;do{if((o.tag&e)===e){var d=o.inst,p=d.destroy;p!==void 0&&(d.destroy=void 0,(e&Oo)!==Um&&(Gu=!0),r=t,H(r,PD,r,a,p),(e&Oo)!==Um&&(Gu=!1))}o=o.next}while(o!==s)}}catch(b){Kt(t,t.return,b)}}function WS(e,t){br(e)?(vr(),Hd(t,e),yr()):Hd(t,e)}function jy(e,t,a){br(e)?(vr(),au(a,e,t),yr()):au(a,e,t)}function ZS(e){var t=e.updateQueue;if(t!==null){var a=e.stateNode;e.type.defaultProps||"ref"in e.memoizedProps||Pu||(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{H(e,eS,t,a)}catch(o){Kt(e,e.return,o)}}}function hM(e,t,a){return e.getSnapshotBeforeUpdate(t,a)}function gM(e,t){var a=t.memoizedProps,o=t.memoizedState;t=e.stateNode,e.type.defaultProps||"ref"in e.memoizedProps||Pu||(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=ti(e.type,a),s=H(e,hM,t,r,o);a=Nw,s!==void 0||a.has(e.type)||(a.add(e.type),H(e,function(){console.error("%s.getSnapshotBeforeUpdate(): A snapshot value (or null) must be returned. You have returned undefined.",V(e))})),t.__reactInternalSnapshotBeforeUpdate=s}catch(d){Kt(e,e.return,d)}}function JS(e,t,a){a.props=ti(e.type,e.memoizedProps),a.state=e.memoizedState,br(e)?(vr(),H(e,ZC,e,t,a),yr()):H(e,ZC,e,t,a)}function yM(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(br(e))try{vr(),e.refCleanup=t(a)}finally{yr()}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 Fd(e,t){try{H(e,yM,e)}catch(a){Kt(e,t,a)}}function xr(e,t){var a=e.ref,o=e.refCleanup;if(a!==null)if(typeof o==="function")try{if(br(e))try{vr(),H(e,o)}finally{yr(e)}else H(e,o)}catch(r){Kt(e,t,r)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof a==="function")try{if(br(e))try{vr(),H(e,a,null)}finally{yr(e)}else H(e,a,null)}catch(r){Kt(e,t,r)}else a.current=null}function ek(e,t,a,o){var r=e.memoizedProps,s=r.id,d=r.onCommit;r=r.onRender,t=t===null?"mount":"update",Nm&&(t="nested-update"),typeof r==="function"&&r(s,t,e.actualDuration,e.treeBaseDuration,e.actualStartTime,a),typeof d==="function"&&d(s,t,o,a)}function vM(e,t,a,o){var r=e.memoizedProps;e=r.id,r=r.onPostCommit,t=t===null?"mount":"update",Nm&&(t="nested-update"),typeof r==="function"&&r(e,t,o,a)}function tk(e){var{type:t,memoizedProps:a,stateNode:o}=e;try{H(e,FM,o,t,a,e)}catch(r){Kt(e,e.return,r)}}function $y(e,t,a){try{H(e,VM,e.stateNode,e.type,a,t,e)}catch(o){Kt(e,e.return,o)}}function ak(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&Ys(e.type)||e.tag===4}function Xy(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||ak(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&&Ys(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 Yy(e,t,a){var o=e.tag;if(o===5||o===6)e=e.stateNode,t?(uL(a),(a.nodeType===9?a.body:a.nodeName==="HTML"?a.ownerDocument.body:a).insertBefore(e,t)):(uL(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=Zr));else if(o!==4&&(o===27&&Ys(e.type)&&(a=e.stateNode,t=null),e=e.child,e!==null))for(Yy(e,t,a),e=e.sibling;e!==null;)Yy(e,t,a),e=e.sibling}function Xp(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&&Ys(e.type)&&(a=e.stateNode),e=e.child,e!==null))for(Xp(e,t,a),e=e.sibling;e!==null;)Xp(e,t,a),e=e.sibling}function bM(e){for(var t,a=e.return;a!==null;){if(ak(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=Xy(e),Xp(e,a,t);break;case 5:a=t.stateNode,t.flags&32&&(iL(a),t.flags&=-33),t=Xy(e),Xp(e,t,a);break;case 3:case 4:t=t.stateNode.containerInfo,a=Xy(e),Yy(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 ok(e){var{stateNode:t,memoizedProps:a}=e;try{H(e,sA,e.type,a,t,e)}catch(o){Kt(e,e.return,o)}}function nk(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 xM(e,t){if(e=e.containerInfo,Xb=ph,e=x0(e),Dg(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,s=o.focusNode;o=o.focusOffset;try{a.nodeType,s.nodeType}catch(pe){a=null;break e}var d=0,p=-1,b=-1,k=0,q=0,B=e,D=null;t:for(;;){for(var F;;){if(B!==a||r!==0&&B.nodeType!==3||(p=d+r),B!==s||o!==0&&B.nodeType!==3||(b=d+o),B.nodeType===3&&(d+=B.nodeValue.length),(F=B.firstChild)===null)break;D=B,B=F}for(;;){if(B===e)break t;if(D===a&&++k===r&&(p=d),D===s&&++q===o&&(b=d),(F=B.nextSibling)!==null)break;B=D,D=B.parentNode}B=F}a=p===-1||b===-1?null:{start:p,end:b}}else a=null}a=a||{start:0,end:0}}else a=null;Yb={focusedElem:e,selectionRange:a},ph=!1;for(so=t;so!==null;)if(t=so,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,so=e;else for(;so!==null;){switch(e=t=so,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&&gM(e,a);break;case 3:if((r&1024)!==0){if(e=e.stateNode.containerInfo,a=e.nodeType,a===9)mv(e);else if(a===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":mv(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,so=e;break}so=t.return}}function rk(e,t,a){var o=tn(),r=pr(),s=hr(),d=gr(),p=a.flags;switch(a.tag){case 0:case 11:case 15:Sr(e,a),p&4&&QS(a,fn|Dn);break;case 1:if(Sr(e,a),p&4)if(e=a.stateNode,t===null)a.type.defaultProps||"ref"in a.memoizedProps||Pu||(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")),br(a)?(vr(),H(a,hb,a,e),yr()):H(a,hb,a,e);else{var b=ti(a.type,t.memoizedProps);t=t.memoizedState,a.type.defaultProps||"ref"in a.memoizedProps||Pu||(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")),br(a)?(vr(),H(a,KC,a,e,b,t,e.__reactInternalSnapshotBeforeUpdate),yr()):H(a,KC,a,e,b,t,e.__reactInternalSnapshotBeforeUpdate)}p&64&&ZS(a),p&512&&Fd(a,a.return);break;case 3:if(t=as(),Sr(e,a),p&64&&(p=a.updateQueue,p!==null)){if(b=null,a.child!==null)switch(a.child.tag){case 27:case 5:b=a.child.stateNode;break;case 1:b=a.child.stateNode}try{H(a,eS,p,b)}catch(q){Kt(a,a.return,q)}}e.effectDuration+=xp(t);break;case 27:t===null&&p&4&&ok(a);case 26:case 5:if(Sr(e,a),t===null){if(p&4)tk(a);else if(p&64){e=a.type,t=a.memoizedProps,b=a.stateNode;try{H(a,GM,b,e,t,a)}catch(q){Kt(a,a.return,q)}}}p&512&&Fd(a,a.return);break;case 12:if(p&4){p=as(),Sr(e,a),e=a.stateNode,e.effectDuration+=Ad(p);try{H(a,ek,a,t,nl,e.effectDuration)}catch(q){Kt(a,a.return,q)}}else Sr(e,a);break;case 31:Sr(e,a),p&4&&ik(e,a);break;case 13:Sr(e,a),p&4&&uk(e,a),p&64&&(e=a.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(p=MM.bind(null,a),aA(e,p))));break;case 22:if(p=a.memoizedState!==null||vs,!p){t=t!==null&&t.memoizedState!==null||Xa,b=vs;var k=Xa;vs=p,(Xa=t)&&!k?(kr(e,a,(a.subtreeFlags&8772)!==0),(a.mode&ct)!==Qe&&0<=Pe&&0<=je&&0.05<je-Pe&&dp(a,Pe,je)):Sr(e,a),vs=b,Xa=k}break;case 30:break;default:Sr(e,a)}(a.mode&ct)!==Qe&&0<=Pe&&0<=je&&((Ia||0.05<Ca)&&cr(a,Pe,je,Ca,xa),a.alternate===null&&a.return!==null&&a.return.alternate!==null&&0.05<je-Pe&&(nk(a.return.alternate,a.return)||dr(a,Pe,je,"Mount"))),an(o),mr(r),xa=s,Ia=d}function sk(e){var t=e.alternate;t!==null&&(e.alternate=null,sk(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&ye(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 rs(e,t,a){for(a=a.child;a!==null;)lk(e,t,a),a=a.sibling}function lk(e,t,a){if(Lo&&typeof Lo.onCommitFiberUnmount==="function")try{Lo.onCommitFiberUnmount(mu,a)}catch(k){Rr||(Rr=!0,console.error("React instrumentation encountered an error: %o",k))}var o=tn(),r=pr(),s=hr(),d=gr();switch(a.tag){case 26:Xa||xr(a,t),rs(e,t,a),a.memoizedState?a.memoizedState.count--:a.stateNode&&(e=a.stateNode,e.parentNode.removeChild(e));break;case 27:Xa||xr(a,t);var p=Ya,b=jo;Ys(a.type)&&(Ya=a.stateNode,jo=!1),rs(e,t,a),H(a,Wd,a.stateNode),Ya=p,jo=b;break;case 5:Xa||xr(a,t);case 6:if(p=Ya,b=jo,Ya=null,rs(e,t,a),Ya=p,jo=b,Ya!==null)if(jo)try{H(a,XM,Ya,a.stateNode)}catch(k){Kt(a,t,k)}else try{H(a,$M,Ya,a.stateNode)}catch(k){Kt(a,t,k)}break;case 18:Ya!==null&&(jo?(e=Ya,dL(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,a.stateNode),du(e)):dL(Ya,a.stateNode));break;case 4:p=Ya,b=jo,Ya=a.stateNode.containerInfo,jo=!0,rs(e,t,a),Ya=p,jo=b;break;case 0:case 11:case 14:case 15:au(Oo,a,t),Xa||Vy(a,t,fn),rs(e,t,a);break;case 1:Xa||(xr(a,t),p=a.stateNode,typeof p.componentWillUnmount==="function"&&JS(a,t,p)),rs(e,t,a);break;case 21:rs(e,t,a);break;case 22:Xa=(p=Xa)||a.memoizedState!==null,rs(e,t,a),Xa=p;break;default:rs(e,t,a)}(a.mode&ct)!==Qe&&0<=Pe&&0<=je&&(Ia||0.05<Ca)&&cr(a,Pe,je,Ca,xa),an(o),mr(r),xa=s,Ia=d}function ik(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{H(t,nA,e)}catch(a){Kt(t,t.return,a)}}}function uk(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{H(t,rA,e)}catch(a){Kt(t,t.return,a)}}function SM(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new qw),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new qw),t;default:throw Error("Unexpected Suspense handler tag ("+e.tag+"). This is a bug in React.")}}function Yp(e,t){var a=SM(e);t.forEach(function(o){if(!a.has(o)){if(a.add(o),Mr)if(Uu!==null&&_u!==null)$d(_u,Uu);else throw Error("Expected finished root and lanes to be set. This is a bug in React.");var r=AM.bind(null,e,o);o.then(r,r)}})}function Go(e,t){var a=t.deletions;if(a!==null)for(var o=0;o<a.length;o++){var r=e,s=t,d=a[o],p=tn(),b=s;e:for(;b!==null;){switch(b.tag){case 27:if(Ys(b.type)){Ya=b.stateNode,jo=!1;break e}break;case 5:Ya=b.stateNode,jo=!1;break e;case 3:case 4:Ya=b.stateNode.containerInfo,jo=!0;break e}b=b.return}if(Ya===null)throw Error("Expected to find a host parent. This error is likely caused by a bug in React. Please file an issue.");lk(r,s,d),Ya=null,jo=!1,(d.mode&ct)!==Qe&&0<=Pe&&0<=je&&0.05<je-Pe&&dr(d,Pe,je,"Unmount"),an(p),r=d,s=r.alternate,s!==null&&(s.return=null),r.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)dk(t,e),t=t.sibling}function dk(e,t){var a=tn(),o=pr(),r=hr(),s=gr(),{alternate:d,flags:p}=e;switch(e.tag){case 0:case 11:case 14:case 15:Go(t,e),Vo(e),p&4&&(au(Oo|Dn,e,e.return),Hd(Oo|Dn,e),Vy(e,e.return,fn|Dn));break;case 1:if(Go(t,e),Vo(e),p&512&&(Xa||d===null||xr(d,d.return)),p&64&&vs&&(p=e.updateQueue,p!==null&&(d=p.callbacks,d!==null))){var b=p.shared.hiddenCallbacks;p.shared.hiddenCallbacks=b===null?d:b.concat(d)}break;case 26:if(b=Kn,Go(t,e),Vo(e),p&512&&(Xa||d===null||xr(d,d.return)),p&4){var k=d!==null?d.memoizedState:null;if(p=e.memoizedState,d===null)if(p===null)if(e.stateNode===null){e:{p=e.type,d=e.memoizedProps,b=b.ownerDocument||b;t:switch(p){case"title":if(k=b.getElementsByTagName("title")[0],!k||k[nc]||k[go]||k.namespaceURI===gu||k.hasAttribute("itemprop"))k=b.createElement(p),b.head.insertBefore(k,b.querySelector("head > title"));ho(k,p,d),k[go]=e,ze(k),p=k;break e;case"link":var q=SL("link","href",b).get(p+(d.href||""));if(q){for(var B=0;B<q.length;B++)if(k=q[B],k.getAttribute("href")===(d.href==null||d.href===""?null:d.href)&&k.getAttribute("rel")===(d.rel==null?null:d.rel)&&k.getAttribute("title")===(d.title==null?null:d.title)&&k.getAttribute("crossorigin")===(d.crossOrigin==null?null:d.crossOrigin)){q.splice(B,1);break t}}k=b.createElement(p),ho(k,p,d),b.head.appendChild(k);break;case"meta":if(q=SL("meta","content",b).get(p+(d.content||""))){for(B=0;B<q.length;B++)if(k=q[B],ke(d.content,"content"),k.getAttribute("content")===(d.content==null?null:""+d.content)&&k.getAttribute("name")===(d.name==null?null:d.name)&&k.getAttribute("property")===(d.property==null?null:d.property)&&k.getAttribute("http-equiv")===(d.httpEquiv==null?null:d.httpEquiv)&&k.getAttribute("charset")===(d.charSet==null?null:d.charSet)){q.splice(B,1);break t}}k=b.createElement(p),ho(k,p,d),b.head.appendChild(k);break;default:throw Error('getNodesForType encountered a type it did not expect: "'+p+'". This is a bug in React.')}k[go]=e,ze(k),p=k}e.stateNode=p}else kL(b,e.type,e.stateNode);else e.stateNode=xL(b,p,e.memoizedProps);else k!==p?(k===null?d.stateNode!==null&&(d=d.stateNode,d.parentNode.removeChild(d)):k.count--,p===null?kL(b,e.type,e.stateNode):xL(b,p,e.memoizedProps)):p===null&&e.stateNode!==null&&$y(e,e.memoizedProps,d.memoizedProps)}break;case 27:Go(t,e),Vo(e),p&512&&(Xa||d===null||xr(d,d.return)),d!==null&&p&4&&$y(e,e.memoizedProps,d.memoizedProps);break;case 5:if(Go(t,e),Vo(e),p&512&&(Xa||d===null||xr(d,d.return)),e.flags&32){b=e.stateNode;try{H(e,iL,b)}catch(be){Kt(e,e.return,be)}}p&4&&e.stateNode!=null&&(b=e.memoizedProps,$y(e,b,d!==null?d.memoizedProps:b)),p&1024&&(Rb=!0,e.type!=="form"&&console.error("Unexpected host component type. Expected a form. This is a bug in React."));break;case 6:if(Go(t,e),Vo(e),p&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.");p=e.memoizedProps,d=d!==null?d.memoizedProps:p,b=e.stateNode;try{H(e,jM,b,d,p)}catch(be){Kt(e,e.return,be)}}break;case 3:if(b=as(),dh=null,k=Kn,Kn=am(t.containerInfo),Go(t,e),Kn=k,Vo(e),p&4&&d!==null&&d.memoizedState.isDehydrated)try{H(e,oA,t.containerInfo)}catch(be){Kt(e,e.return,be)}Rb&&(Rb=!1,ck(e)),t.effectDuration+=xp(b);break;case 4:p=Kn,Kn=am(e.stateNode.containerInfo),Go(t,e),Vo(e),Kn=p;break;case 12:p=as(),Go(t,e),Vo(e),e.stateNode.effectDuration+=Ad(p);break;case 31:Go(t,e),Vo(e),p&4&&(p=e.updateQueue,p!==null&&(e.updateQueue=null,Yp(e,p)));break;case 13:Go(t,e),Vo(e),e.child.flags&8192&&e.memoizedState!==null!==(d!==null&&d.memoizedState!==null)&&(Km=no()),p&4&&(p=e.updateQueue,p!==null&&(e.updateQueue=null,Yp(e,p)));break;case 22:b=e.memoizedState!==null;var D=d!==null&&d.memoizedState!==null,F=vs,pe=Xa;if(vs=F||b,Xa=pe||D,Go(t,e),Xa=pe,vs=F,D&&!b&&!F&&!pe&&(e.mode&ct)!==Qe&&0<=Pe&&0<=je&&0.05<je-Pe&&dp(e,Pe,je),Vo(e),p&8192)e:for(t=e.stateNode,t._visibility=b?t._visibility&~pc:t._visibility|pc,!b||d===null||D||vs||Xa||(ai(e),(e.mode&ct)!==Qe&&0<=Pe&&0<=je&&0.05<je-Pe&&dr(e,Pe,je,"Disconnect")),d=null,t=e;;){if(t.tag===5||t.tag===26){if(d===null){D=d=t;try{k=D.stateNode,b?H(D,KM,k):H(D,ZM,D.stateNode,D.memoizedProps)}catch(be){Kt(D,D.return,be)}}}else if(t.tag===6){if(d===null){D=t;try{q=D.stateNode,b?H(D,QM,q):H(D,JM,q,D.memoizedProps)}catch(be){Kt(D,D.return,be)}}}else if(t.tag===18){if(d===null){D=t;try{B=D.stateNode,b?H(D,YM,B):H(D,WM,D.stateNode)}catch(be){Kt(D,D.return,be)}}}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;d===t&&(d=null),t=t.return}d===t&&(d=null),t.sibling.return=t.return,t=t.sibling}p&4&&(p=e.updateQueue,p!==null&&(d=p.retryQueue,d!==null&&(p.retryQueue=null,Yp(e,d))));break;case 19:Go(t,e),Vo(e),p&4&&(p=e.updateQueue,p!==null&&(e.updateQueue=null,Yp(e,p)));break;case 30:break;case 21:break;default:Go(t,e),Vo(e)}(e.mode&ct)!==Qe&&0<=Pe&&0<=je&&((Ia||0.05<Ca)&&cr(e,Pe,je,Ca,xa),e.alternate===null&&e.return!==null&&e.return.alternate!==null&&0.05<je-Pe&&(nk(e.return.alternate,e.return)||dr(e,Pe,je,"Mount"))),an(a),mr(o),xa=r,Ia=s}function Vo(e){var t=e.flags;if(t&2){try{H(e,bM,e)}catch(a){Kt(e,e.return,a)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function ck(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;ck(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function Sr(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)rk(e,t.alternate,t),t=t.sibling}function fk(e){var t=tn(),a=pr(),o=hr(),r=gr();switch(e.tag){case 0:case 11:case 14:case 15:Vy(e,e.return,fn),ai(e);break;case 1:xr(e,e.return);var s=e.stateNode;typeof s.componentWillUnmount==="function"&&JS(e,e.return,s),ai(e);break;case 27:H(e,Wd,e.stateNode);case 26:case 5:xr(e,e.return),ai(e);break;case 22:e.memoizedState===null&&ai(e);break;case 30:ai(e);break;default:ai(e)}(e.mode&ct)!==Qe&&0<=Pe&&0<=je&&(Ia||0.05<Ca)&&cr(e,Pe,je,Ca,xa),an(t),mr(a),xa=o,Ia=r}function ai(e){for(e=e.child;e!==null;)fk(e),e=e.sibling}function pk(e,t,a,o){var r=tn(),s=pr(),d=hr(),p=gr(),b=a.flags;switch(a.tag){case 0:case 11:case 15:kr(e,a,o),QS(a,fn);break;case 1:if(kr(e,a,o),t=a.stateNode,typeof t.componentDidMount==="function"&&H(a,hb,a,t),t=a.updateQueue,t!==null){e=a.stateNode;try{H(a,oM,t,e)}catch(k){Kt(a,a.return,k)}}o&&b&64&&ZS(a),Fd(a,a.return);break;case 27:ok(a);case 26:case 5:kr(e,a,o),o&&t===null&&b&4&&tk(a),Fd(a,a.return);break;case 12:if(o&&b&4){b=as(),kr(e,a,o),o=a.stateNode,o.effectDuration+=Ad(b);try{H(a,ek,a,t,nl,o.effectDuration)}catch(k){Kt(a,a.return,k)}}else kr(e,a,o);break;case 31:kr(e,a,o),o&&b&4&&ik(e,a);break;case 13:kr(e,a,o),o&&b&4&&uk(e,a);break;case 22:a.memoizedState===null&&kr(e,a,o),Fd(a,a.return);break;case 30:break;default:kr(e,a,o)}(a.mode&ct)!==Qe&&0<=Pe&&0<=je&&(Ia||0.05<Ca)&&cr(a,Pe,je,Ca,xa),an(r),mr(s),xa=d,Ia=p}function kr(e,t,a){a=a&&(t.subtreeFlags&8772)!==0;for(t=t.child;t!==null;)pk(e,t.alternate,t,a),t=t.sibling}function Ky(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&&Wl(e),a!=null&&Md(a))}function Qy(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(Wl(t),e!=null&&Md(e))}function Gn(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 s=t.sibling;mk(e,t,a,o,s!==null?s.actualStartTime:r),t=s}}function mk(e,t,a,o,r){var s=tn(),d=pr(),p=hr(),b=gr(),k=el,q=t.flags;switch(t.tag){case 0:case 11:case 15:(t.mode&ct)!==Qe&&0<t.actualStartTime&&(t.flags&1)!==0&&cp(t,t.actualStartTime,r,Ja,a),Gn(e,t,a,o,r),q&2048&&WS(t,Bo|Dn);break;case 1:(t.mode&ct)!==Qe&&0<t.actualStartTime&&((t.flags&128)!==0?Ng(t,t.actualStartTime,r,[]):(t.flags&1)!==0&&cp(t,t.actualStartTime,r,Ja,a)),Gn(e,t,a,o,r);break;case 3:var B=as(),D=Ja;Ja=t.alternate!==null&&t.alternate.memoizedState.isDehydrated&&(t.flags&256)===0,Gn(e,t,a,o,r),Ja=D,q&2048&&(a=null,t.alternate!==null&&(a=t.alternate.memoizedState.cache),o=t.memoizedState.cache,o!==a&&(Wl(o),a!=null&&Md(a))),e.passiveEffectDuration+=xp(B);break;case 12:if(q&2048){q=as(),Gn(e,t,a,o,r),e=t.stateNode,e.passiveEffectDuration+=Ad(q);try{H(t,vM,t,t.alternate,nl,e.passiveEffectDuration)}catch(F){Kt(t,t.return,F)}}else Gn(e,t,a,o,r);break;case 31:q=Ja,B=t.alternate!==null?t.alternate.memoizedState:null,D=t.memoizedState,B!==null&&D===null?(D=t.deletions,D!==null&&0<D.length&&D[0].tag===18?(Ja=!1,B=B.hydrationErrors,B!==null&&Ng(t,t.actualStartTime,r,B)):Ja=!0):Ja=!1,Gn(e,t,a,o,r),Ja=q;break;case 13:q=Ja,B=t.alternate!==null?t.alternate.memoizedState:null,D=t.memoizedState,B===null||B.dehydrated===null||D!==null&&D.dehydrated!==null?Ja=!1:(D=t.deletions,D!==null&&0<D.length&&D[0].tag===18?(Ja=!1,B=B.hydrationErrors,B!==null&&Ng(t,t.actualStartTime,r,B)):Ja=!0),Gn(e,t,a,o,r),Ja=q;break;case 23:break;case 22:D=t.stateNode,B=t.alternate,t.memoizedState!==null?D._visibility&is?Gn(e,t,a,o,r):Gd(e,t,a,o,r):D._visibility&is?Gn(e,t,a,o,r):(D._visibility|=is,ou(e,t,a,o,(t.subtreeFlags&10256)!==0||t.actualDuration!==0&&(t.alternate===null||t.alternate.child!==t.child),r),(t.mode&ct)===Qe||Ja||(e=t.actualStartTime,0<=e&&0.05<r-e&&dp(t,e,r),0<=Pe&&0<=je&&0.05<je-Pe&&dp(t,Pe,je))),q&2048&&Ky(B,t);break;case 24:Gn(e,t,a,o,r),q&2048&&Qy(t.alternate,t);break;default:Gn(e,t,a,o,r)}if((t.mode&ct)!==Qe){if(e=!Ja&&t.alternate===null&&t.return!==null&&t.return.alternate!==null)a=t.actualStartTime,0<=a&&0.05<r-a&&dr(t,a,r,"Mount");0<=Pe&&0<=je&&((Ia||0.05<Ca)&&cr(t,Pe,je,Ca,xa),e&&0.05<je-Pe&&dr(t,Pe,je,"Mount"))}an(s),mr(d),xa=p,Ia=b,el=k}function ou(e,t,a,o,r,s){r=r&&((t.subtreeFlags&10256)!==0||t.actualDuration!==0&&(t.alternate===null||t.alternate.child!==t.child));for(t=t.child;t!==null;){var d=t.sibling;hk(e,t,a,o,r,d!==null?d.actualStartTime:s),t=d}}function hk(e,t,a,o,r,s){var d=tn(),p=pr(),b=hr(),k=gr(),q=el;r&&(t.mode&ct)!==Qe&&0<t.actualStartTime&&(t.flags&1)!==0&&cp(t,t.actualStartTime,s,Ja,a);var B=t.flags;switch(t.tag){case 0:case 11:case 15:ou(e,t,a,o,r,s),WS(t,Bo);break;case 23:break;case 22:var D=t.stateNode;t.memoizedState!==null?D._visibility&is?ou(e,t,a,o,r,s):Gd(e,t,a,o,s):(D._visibility|=is,ou(e,t,a,o,r,s)),r&&B&2048&&Ky(t.alternate,t);break;case 24:ou(e,t,a,o,r,s),r&&B&2048&&Qy(t.alternate,t);break;default:ou(e,t,a,o,r,s)}(t.mode&ct)!==Qe&&0<=Pe&&0<=je&&(Ia||0.05<Ca)&&cr(t,Pe,je,Ca,xa),an(d),mr(p),xa=b,Ia=k,el=q}function Gd(e,t,a,o,r){if(t.subtreeFlags&10256||t.actualDuration!==0&&(t.alternate===null||t.alternate.child!==t.child))for(var s=t.child;s!==null;){t=s.sibling;var d=e,p=a,b=o,k=t!==null?t.actualStartTime:r,q=el;(s.mode&ct)!==Qe&&0<s.actualStartTime&&(s.flags&1)!==0&&cp(s,s.actualStartTime,k,Ja,p);var B=s.flags;switch(s.tag){case 22:Gd(d,s,p,b,k),B&2048&&Ky(s.alternate,s);break;case 24:Gd(d,s,p,b,k),B&2048&&Qy(s.alternate,s);break;default:Gd(d,s,p,b,k)}el=q,s=t}}function nu(e,t,a){if(e.subtreeFlags&Nc)for(e=e.child;e!==null;)gk(e,t,a),e=e.sibling}function gk(e,t,a){switch(e.tag){case 26:nu(e,t,a),e.flags&Nc&&e.memoizedState!==null&&uA(a,Kn,e.memoizedState,e.memoizedProps);break;case 5:nu(e,t,a);break;case 3:case 4:var o=Kn;Kn=am(e.stateNode.containerInfo),nu(e,t,a),Kn=o;break;case 22:e.memoizedState===null&&(o=e.alternate,o!==null&&o.memoizedState!==null?(o=Nc,Nc=16777216,nu(e,t,a),Nc=o):nu(e,t,a));break;default:nu(e,t,a)}}function yk(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 Vd(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=tn();so=o,xk(o,e),(o.mode&ct)!==Qe&&0<=Pe&&0<=je&&0.05<je-Pe&&dr(o,Pe,je,"Unmount"),an(r)}yk(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)vk(e),e=e.sibling}function vk(e){var t=tn(),a=pr(),o=hr(),r=gr();switch(e.tag){case 0:case 11:case 15:Vd(e),e.flags&2048&&jy(e,e.return,Bo|Dn);break;case 3:var s=as();Vd(e),e.stateNode.passiveEffectDuration+=xp(s);break;case 12:s=as(),Vd(e),e.stateNode.passiveEffectDuration+=Ad(s);break;case 22:s=e.stateNode,e.memoizedState!==null&&s._visibility&is&&(e.return===null||e.return.tag!==13)?(s._visibility&=~is,Kp(e),(e.mode&ct)!==Qe&&0<=Pe&&0<=je&&0.05<je-Pe&&dr(e,Pe,je,"Disconnect")):Vd(e);break;default:Vd(e)}(e.mode&ct)!==Qe&&0<=Pe&&0<=je&&(Ia||0.05<Ca)&&cr(e,Pe,je,Ca,xa),an(t),mr(a),Ia=r,xa=o}function Kp(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=tn();so=o,xk(o,e),(o.mode&ct)!==Qe&&0<=Pe&&0<=je&&0.05<je-Pe&&dr(o,Pe,je,"Unmount"),an(r)}yk(e)}for(e=e.child;e!==null;)bk(e),e=e.sibling}function bk(e){var t=tn(),a=pr(),o=hr(),r=gr();switch(e.tag){case 0:case 11:case 15:jy(e,e.return,Bo),Kp(e);break;case 22:var s=e.stateNode;s._visibility&is&&(s._visibility&=~is,Kp(e));break;default:Kp(e)}(e.mode&ct)!==Qe&&0<=Pe&&0<=je&&(Ia||0.05<Ca)&&cr(e,Pe,je,Ca,xa),an(t),mr(a),Ia=r,xa=o}function xk(e,t){for(;so!==null;){var a=so,o=a,r=t,s=tn(),d=pr(),p=hr(),b=gr();switch(o.tag){case 0:case 11:case 15:jy(o,r,Bo);break;case 23:case 22:o.memoizedState!==null&&o.memoizedState.cachePool!==null&&(r=o.memoizedState.cachePool.pool,r!=null&&Wl(r));break;case 24:Md(o.memoizedState.cache)}if((o.mode&ct)!==Qe&&0<=Pe&&0<=je&&(Ia||0.05<Ca)&&cr(o,Pe,je,Ca,xa),an(s),mr(d),Ia=b,xa=p,o=a.child,o!==null)o.return=a,so=o;else e:for(a=e;so!==null;){if(o=so,s=o.sibling,d=o.return,sk(o),o===a){so=null;break e}if(s!==null){s.return=d,so=s;break e}so=d}}}function kM(){GD.forEach(function(e){return e()})}function Sk(){var e=typeof IS_REACT_ACT_ENVIRONMENT<"u"?IS_REACT_ACT_ENVIRONMENT:void 0;return e||K.actQueue===null||console.error("The current testing environment is not configured to support act(...)"),e}function nn(e){if((Bt&eo)!==lo&&pt!==0)return pt&-pt;var t=K.T;return t!==null?(t._updatedFibers||(t._updatedFibers=new Set),t._updatedFibers.add(e),nv()):U()}function kk(){if(Xo===0)if((pt&536870912)===0||It){var e=mm;mm<<=1,(mm&3932160)===0&&(mm=262144),Xo=e}else Xo=536870912;return e=cn.current,e!==null&&(e.flags|=32),Xo}function Ta(e,t,a){if(Gu&&console.error("useInsertionEffect must not schedule updates."),Ub&&(Jm=!0),e===na&&(Jt===yi||Jt===vi)||e.cancelPendingCommit!==null)su(e,0),$s(e,pt,Xo,!1);if(qs(e,a),(Bt&eo)!==lo&&e===na){if(Ir)switch(t.tag){case 0:case 11:case 15:e=gt&&V(gt)||"Unknown",Kw.has(e)||(Kw.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:Yw||(console.error("Cannot update during an existing state transition (such as within `render`). Render methods should be a pure function of props and state."),Yw=!0)}}else Mr&&vd(e,t,a),EM(t),e===na&&((Bt&eo)===lo&&(pl|=a),wa===dl&&$s(e,pt,Xo,!1)),Lr(e)}function Lk(e,t,a){if((Bt&(eo|pn))!==lo)throw Error("Should not already be working.");if(pt!==0&&gt!==null){var o=gt,r=no();switch(HC){case Bc:case yi:var s=bc;fa&&((o=o._debugTask)?o.run(console.timeStamp.bind(console,"Suspended",s,r,Ln,void 0,"primary-light")):console.timeStamp("Suspended",s,r,Ln,void 0,"primary-light"));break;case vi:s=bc,fa&&((o=o._debugTask)?o.run(console.timeStamp.bind(console,"Action",s,r,Ln,void 0,"primary-light")):console.timeStamp("Action",s,r,Ln,void 0,"primary-light"));break;default:fa&&(o=r-bc,3>o||console.timeStamp("Blocked",bc,r,Ln,void 0,5>o?"primary-light":10>o?"primary":100>o?"primary-dark":"error"))}}s=(a=!a&&(t&127)===0&&(t&e.expiredLanes)===0||fo(e,t))?CM(e,t):Zy(e,t,!0);var d=a;do{if(s===bs){Hu&&!a&&$s(e,t,0,!1),t=Jt,bc=Va(),HC=t;break}else{if(o=no(),r=e.current.alternate,d&&!LM(r)){Jo(t),r=ro,s=o,!fa||s<=r||(Ea?Ea.run(console.timeStamp.bind(console,"Teared Render",r,s,wt,Lt,"error")):console.timeStamp("Teared Render",r,s,wt,Lt,"error")),oi(t,o),s=Zy(e,t,!1),d=!1;continue}if(s===gi){if(d=t,e.errorRecoveryDisabledLanes&d)var p=0;else p=e.pendingLanes&-536870913,p=p!==0?p:p&536870912?536870912:0;if(p!==0){Jo(t),qg(ro,o,t,Ea),oi(t,o),t=p;e:{o=e,s=d,d=Pc;var b=o.current.memoizedState.isDehydrated;if(b&&(su(o,p).flags|=256),p=Zy(o,p,!1),p!==gi){if(Db&&!b){o.errorRecoveryDisabledLanes|=s,pl|=s,s=dl;break e}o=zo,zo=d,o!==null&&(zo===null?zo=o:zo.push.apply(zo,o))}s=p}if(d=!1,s!==gi)continue;else o=no()}}if(s===Oc){Jo(t),qg(ro,o,t,Ea),oi(t,o),su(e,0),$s(e,t,0,!0);break}e:{switch(a=e,s){case bs:case Oc:throw Error("Root did not complete. This is a bug in React.");case dl:if((t&4194048)!==t)break;case jm:Jo(t),L0(ro,o,t,Ea),oi(t,o),r=t,(r&127)!==0?Am=o:(r&4194048)!==0&&(Dm=o),$s(a,t,Xo,!cl);break e;case gi:zo=null;break;case Vm:case Ow:break;default:throw Error("Unknown root exit status.")}if(K.actQueue!==null)Jy(a,r,t,zo,Uc,Ym,Xo,pl,bi,s,null,null,ro,o);else{if((t&62914560)===t&&(d=Km+Pw-no(),10<d)){if($s(a,t,Xo,!cl),ca(a,0,!0)!==0)break e;Qn=t,a.timeoutHandle=o1(Ck.bind(null,a,r,zo,Uc,Ym,t,Xo,pl,bi,cl,s,"Throttled",ro,o),d);break e}Ck(a,r,zo,Uc,Ym,t,Xo,pl,bi,cl,s,null,ro,o)}}}break}while(1);Lr(e)}function Ck(e,t,a,o,r,s,d,p,b,k,q,B,D,F){e.timeoutHandle=Ci;var pe=t.subtreeFlags,be=null;if(pe&8192||(pe&16785408)===16785408){if(be={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:Zr},gk(t,s,be),pe=(s&62914560)===s?Km-no():(s&4194048)===s?zw-no():0,pe=dA(be,pe),pe!==null){Qn=s,e.cancelPendingCommit=pe(Jy.bind(null,e,t,s,a,o,r,d,p,b,q,be,be.waitingForViewTransition?"Waiting for the previous Animation":0<be.count?0<be.imgCount?"Suspended on CSS and Images":"Suspended on CSS":be.imgCount===1?"Suspended on an Image":0<be.imgCount?"Suspended on Images":null,D,F)),$s(e,s,d,!k);return}}Jy(e,t,s,a,o,r,d,p,b,q,be,B,D,F)}function LM(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],s=r.getSnapshot;r=r.value;try{if(!No(s(),r))return!1}catch(d){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 $s(e,t,a,o){t&=~Eb,t&=~pl,e.suspendedLanes|=t,e.pingedLanes&=~t,o&&(e.warmLanes|=t),o=e.expirationTimes;for(var r=t;0<r;){var s=31-Ao(r),d=1<<s;o[s]=-1,r&=~d}a!==0&&Ul(e,a,t)}function ru(){return(Bt&(eo|pn))===lo?(Xd(0,!1),!1):!0}function Wy(){if(gt!==null){if(Jt===$o)var e=gt.return;else e=gt,yp(),iy(e),Eu=null,Rc=0,e=gt;for(;e!==null;)KS(e.alternate,e),e=e.return;gt=null}}function oi(e,t){(e&127)!==0&&(rl=t),(e&4194048)!==0&&(qr=t),(e&62914560)!==0&&(UC=t),(e&2080374784)!==0&&(_C=t)}function su(e,t){fa&&(console.timeStamp("Blocking Track",0.003,0.003,"Blocking",Lt,"primary-light"),console.timeStamp("Transition Track",0.003,0.003,"Transition",Lt,"primary-light"),console.timeStamp("Suspense Track",0.003,0.003,"Suspense",Lt,"primary-light"),console.timeStamp("Idle Track",0.003,0.003,"Idle",Lt,"primary-light"));var a=ro;if(ro=Va(),pt!==0&&0<a){if(Jo(pt),wa===Vm||wa===dl)L0(a,ro,t,Ea);else{var o=ro,r=Ea;if(fa&&!(o<=a)){var s=(t&738197653)===t?"tertiary-dark":"primary-dark",d=(t&536870912)===t?"Prewarm":(t&201326741)===t?"Interrupted Hydration":"Interrupted Render";r?r.run(console.timeStamp.bind(console,d,a,o,wt,Lt,s)):console.timeStamp(d,a,o,wt,Lt,s)}}oi(pt,ro)}if(a=Ea,Ea=null,(t&127)!==0){Ea=gc,r=0<=Nr&&Nr<rl?rl:Nr,o=0<=ii&&ii<rl?rl:ii,s=0<=o?o:0<=r?r:ro,0<=Am?(Jo(2),C0(Am,s,t,a)):(Em&127)!==0&&(Jo(2),Id(rl,s,ms)),a=r;var p=o,b=yc,k=0<Mu,q=sl===hc,B=sl===Mm;if(r=ro,o=gc,s=db,d=cb,fa){if(wt="Blocking",0<a?a>r&&(a=r):a=r,0<p?p>a&&(p=a):p=a,b!==null&&a>p){var D=k?"secondary-light":"warning";o?o.run(console.timeStamp.bind(console,k?"Consecutive":"Event: "+b,p,a,wt,Lt,D)):console.timeStamp(k?"Consecutive":"Event: "+b,p,a,wt,Lt,D)}r>a&&(p=q?"error":(t&738197653)===t?"tertiary-light":"primary-light",q=B?"Promise Resolved":q?"Cascading Update":5<r-a?"Update Blocked":"Update",B=[],d!=null&&B.push(["Component name",d]),s!=null&&B.push(["Method name",s]),a={start:a,end:r,detail:{devtools:{properties:B,track:wt,trackGroup:Lt,color:p}}},o?o.run(performance.measure.bind(performance,q,a)):performance.measure(q,a))}Nr=-1.1,sl=0,cb=db=null,Am=-1.1,Mu=ii,ii=-1.1,rl=Va()}if((t&4194048)!==0&&(Ea=vc,r=0<=ps&&ps<qr?qr:ps,a=0<=Mn&&Mn<qr?qr:Mn,o=0<=ll&&ll<qr?qr:ll,s=0<=o?o:0<=a?a:ro,0<=Dm?(Jo(256),C0(Dm,s,t,Ea)):(Em&4194048)!==0&&(Jo(256),Id(qr,s,ms)),B=o,p=ui,b=0<il,k=fb===Mm,s=ro,o=vc,d=zC,q=PC,fa&&(wt="Transition",0<a?a>s&&(a=s):a=s,0<r?r>a&&(r=a):r=a,0<B?B>r&&(B=r):B=r,r>B&&p!==null&&(D=b?"secondary-light":"warning",o?o.run(console.timeStamp.bind(console,b?"Consecutive":"Event: "+p,B,r,wt,Lt,D)):console.timeStamp(b?"Consecutive":"Event: "+p,B,r,wt,Lt,D)),a>r&&(o?o.run(console.timeStamp.bind(console,"Action",r,a,wt,Lt,"primary-dark")):console.timeStamp("Action",r,a,wt,Lt,"primary-dark")),s>a&&(r=k?"Promise Resolved":5<s-a?"Update Blocked":"Update",B=[],q!=null&&B.push(["Component name",q]),d!=null&&B.push(["Method name",d]),a={start:a,end:s,detail:{devtools:{properties:B,track:wt,trackGroup:Lt,color:"primary-light"}}},o?o.run(performance.measure.bind(performance,r,a)):performance.measure(r,a))),Mn=ps=-1.1,fb=0,Dm=-1.1,il=ll,ll=-1.1,qr=Va()),(t&62914560)!==0&&(Em&62914560)!==0&&(Jo(4194304),Id(UC,ro,ms)),(t&2080374784)!==0&&(Em&2080374784)!==0&&(Jo(268435456),Id(_C,ro,ms)),a=e.timeoutHandle,a!==Ci&&(e.timeoutHandle=Ci,aE(a)),a=e.cancelPendingCommit,a!==null&&(e.cancelPendingCommit=null,a()),Qn=0,Wy(),na=e,gt=a=Jr(e.current,null),pt=t,Jt=$o,mn=null,cl=!1,Hu=fo(e,t),Db=!1,wa=bs,bi=Xo=Eb=pl=fl=0,zo=Pc=null,Ym=!1,(t&8)!==0&&(t|=t&32),o=e.entangledLanes,o!==0)for(e=e.entanglements,o&=t;0<o;)r=31-Ao(o),s=1<<r,t|=e[r],o&=~s;return Br=t,fp(),e=DC(),1000<e-AC&&(K.recentlyCreatedOwnerStacks=0,AC=e),Xn.discardPendingWarnings(),a}function wk(e,t){et=null,K.H=Ec,K.getCurrentStack=null,Ir=!1,ln=null,t===Du||t===Bm?(t=$0(),Jt=Bc):t===gb?(t=$0(),Jt=Bw):Jt=t===Tb?Ab:t!==null&&typeof t==="object"&&typeof t.then==="function"?zc:$m,mn=t;var a=gt;a===null?(wa=Oc,Fp(e,en(t,e.current))):a.mode&ct&&Kg(a)}function Tk(){var e=cn.current;return e===null?!0:(pt&4194048)===pt?An===null?!0:!1:(pt&62914560)===pt||(pt&536870912)!==0?e===An:!1}function Ik(){var e=K.H;return K.H=Ec,e===null?Ec:e}function Rk(){var e=K.A;return K.A=FD,e}function Qp(e){Ea===null&&(Ea=e._debugTask==null?null:e._debugTask)}function Wp(){wa=dl,cl||(pt&4194048)!==pt&&cn.current!==null||(Hu=!0),(fl&134217727)===0&&(pl&134217727)===0||na===null||$s(na,pt,Xo,!1)}function Zy(e,t,a){var o=Bt;Bt|=eo;var r=Ik(),s=Rk();if(na!==e||pt!==t){if(Mr){var d=e.memoizedUpdaters;0<d.size&&($d(e,pt),d.clear()),Os(e,t)}Uc=null,su(e,t)}t=!1,d=wa;e:do try{if(Jt!==$o&&gt!==null){var p=gt,b=mn;switch(Jt){case Ab:Wy(),d=jm;break e;case Bc:case yi:case vi:case zc:cn.current===null&&(t=!0);var k=Jt;if(Jt=$o,mn=null,lu(e,p,b,k),a&&Hu){d=bs;break e}break;default:k=Jt,Jt=$o,mn=null,lu(e,p,b,k)}}Mk(),d=wa;break}catch(q){wk(e,q)}while(1);return t&&e.shellSuspendCounter++,yp(),Bt=o,K.H=r,K.A=s,gt===null&&(na=null,pt=0,fp()),d}function Mk(){for(;gt!==null;)Ak(gt)}function CM(e,t){var a=Bt;Bt|=eo;var o=Ik(),r=Rk();if(na!==e||pt!==t){if(Mr){var s=e.memoizedUpdaters;0<s.size&&($d(e,pt),s.clear()),Os(e,t)}Uc=null,Qm=no()+Uw,su(e,t)}else Hu=fo(e,t);e:do try{if(Jt!==$o&&gt!==null)t:switch(t=gt,s=mn,Jt){case $m:Jt=$o,mn=null,lu(e,t,s,$m);break;case yi:case vi:if(V0(s)){Jt=$o,mn=null,Dk(t);break}t=function(){Jt!==yi&&Jt!==vi||na!==e||(Jt=Xm),Lr(e)},s.then(t,t);break e;case Bc:Jt=Xm;break e;case Bw:Jt=Mb;break e;case Xm:V0(s)?(Jt=$o,mn=null,Dk(t)):(Jt=$o,mn=null,lu(e,t,s,Xm));break;case Mb:var d=null;switch(gt.tag){case 26:d=gt.memoizedState;case 5:case 27:var p=gt;if(d?LL(d):p.stateNode.complete){Jt=$o,mn=null;var b=p.sibling;if(b!==null)gt=b;else{var k=p.return;k!==null?(gt=k,Zp(k)):gt=null}break t}break;default:console.error("Unexpected type of fiber triggered a suspensey commit. This is a bug in React.")}Jt=$o,mn=null,lu(e,t,s,Mb);break;case zc:Jt=$o,mn=null,lu(e,t,s,zc);break;case Ab:Wy(),wa=jm;break e;default:throw Error("Unexpected SuspendedReason. This is a bug in React.")}K.actQueue!==null?Mk():wM();break}catch(q){wk(e,q)}while(1);if(yp(),K.H=o,K.A=r,Bt=a,gt!==null)return bs;return na=null,pt=0,fp(),wa}function wM(){for(;gt!==null&&!LA();)Ak(gt)}function Ak(e){var t=e.alternate;(e.mode&ct)!==Qe?(Yg(e),t=H(e,Fy,t,e,Br),Kg(e)):t=H(e,Fy,t,e,Br),e.memoizedProps=e.pendingProps,t===null?Zp(e):gt=t}function Dk(e){var t=H(e,TM,e);e.memoizedProps=e.pendingProps,t===null?Zp(e):gt=t}function TM(e){var t=e.alternate,a=(e.mode&ct)!==Qe;switch(a&&Yg(e),e.tag){case 15:case 0:t=FS(t,e,e.pendingProps,e.type,void 0,pt);break;case 11:t=FS(t,e,e.pendingProps,e.type.render,e.ref,pt);break;case 5:iy(e);default:KS(t,e),e=gt=A0(e,Br),t=Fy(t,e,Br)}return a&&Kg(e),t}function lu(e,t,a,o){yp(),iy(t),Eu=null,Rc=0;var r=t.return;try{if(dM(e,r,t,a,pt)){wa=Oc,Fp(e,en(a,e.current)),gt=null;return}}catch(s){if(r!==null)throw gt=r,s;wa=Oc,Fp(e,en(a,e.current)),gt=null;return}if(t.flags&32768){if(It||o===$m)e=!0;else if(Hu||(pt&536870912)!==0)e=!1;else if(cl=e=!0,o===yi||o===vi||o===Bc||o===zc)o=cn.current,o!==null&&o.tag===13&&(o.flags|=16384);Ek(t,e)}else Zp(t)}function Zp(e){var t=e;do{if((t.flags&32768)!==0){Ek(t,cl);return}var a=t.alternate;if(e=t.return,Yg(t),a=H(t,pM,a,t,Br),(t.mode&ct)!==Qe&&U0(t),a!==null){gt=a;return}if(t=t.sibling,t!==null){gt=t;return}gt=t=e}while(t!==null);wa===bs&&(wa=Ow)}function Ek(e,t){do{var a=mM(e.alternate,e);if(a!==null){a.flags&=32767,gt=a;return}if((e.mode&ct)!==Qe){U0(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)){gt=e;return}gt=e=a}while(e!==null);wa=jm,gt=null}function Jy(e,t,a,o,r,s,d,p,b,k,q,B,D,F){e.cancelPendingCommit=null;do jd();while(Ka!==hl);if(Xn.flushLegacyContextWarning(),Xn.flushPendingUnsafeLifecycleWarnings(),(Bt&(eo|pn))!==lo)throw Error("Should not already be working.");if(Jo(a),k===gi?qg(D,F,a,Ea):o!==null?WR(D,F,a,o,t!==null&&t.alternate!==null&&t.alternate.memoizedState.isDehydrated&&(t.flags&256)!==0,Ea):QR(D,F,a,Ea),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(s=t.lanes|t.childLanes,s|=rb,tp(e,a,s,d,p,b),e===na&&(gt=na=null,pt=0),Fu=t,gl=e,Qn=a,Ob=s,zb=r,jw=o,Bb=F,$w=B,Wn=Wm,Xw=null,t.actualDuration!==0||(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?(e.callbackNode=null,e.callbackPriority=0,DM(pu,function(){return jc=window.event,Wn===Wm&&(Wn=qb),zk(),null})):(e.callbackNode=null,e.callbackPriority=0),fs=null,nl=Va(),B!==null&&ZR(F,nl,B,Ea),o=(t.flags&13878)!==0,(t.subtreeFlags&13878)!==0||o){o=K.T,K.T=null,r=Qt.p,Qt.p=un,d=Bt,Bt|=pn;try{xM(e,t,a)}finally{Bt=d,Qt.p=r,K.T=o}}Ka=Hw,Nk(),qk(),Ok()}}function Nk(){if(Ka===Hw){Ka=hl;var e=gl,t=Fu,a=Qn,o=(t.flags&13878)!==0;if((t.subtreeFlags&13878)!==0||o){o=K.T,K.T=null;var r=Qt.p;Qt.p=un;var s=Bt;Bt|=pn;try{Uu=a,_u=e,Sp(),dk(t,e),_u=Uu=null,a=Yb;var d=x0(e.containerInfo),p=a.focusedElem,b=a.selectionRange;if(d!==p&&p&&p.ownerDocument&&b0(p.ownerDocument.documentElement,p)){if(b!==null&&Dg(p)){var{start:k,end:q}=b;if(q===void 0&&(q=k),"selectionStart"in p)p.selectionStart=k,p.selectionEnd=Math.min(q,p.value.length);else{var B=p.ownerDocument||document,D=B&&B.defaultView||window;if(D.getSelection){var F=D.getSelection(),pe=p.textContent.length,be=Math.min(b.start,pe),ua=b.end===void 0?be:Math.min(b.end,pe);!F.extend&&be>ua&&(d=ua,ua=be,be=d);var Dt=v0(p,be),A=v0(p,ua);if(Dt&&A&&(F.rangeCount!==1||F.anchorNode!==Dt.node||F.anchorOffset!==Dt.offset||F.focusNode!==A.node||F.focusOffset!==A.offset)){var E=B.createRange();E.setStart(Dt.node,Dt.offset),F.removeAllRanges(),be>ua?(F.addRange(E),F.extend(A.node,A.offset)):(E.setEnd(A.node,A.offset),F.addRange(E))}}}}B=[];for(F=p;F=F.parentNode;)F.nodeType===1&&B.push({element:F,left:F.scrollLeft,top:F.scrollTop});typeof p.focus==="function"&&p.focus();for(p=0;p<B.length;p++){var N=B[p];N.element.scrollLeft=N.left,N.element.scrollTop=N.top}}ph=!!Xb,Yb=Xb=null}finally{Bt=s,Qt.p=r,K.T=o}}e.current=t,Ka=Fw}}function qk(){if(Ka===Fw){Ka=hl;var e=Xw;if(e!==null){nl=Va();var t=cs,a=nl;!fa||a<=t||(ms?ms.run(console.timeStamp.bind(console,e,t,a,wt,Lt,"secondary-light")):console.timeStamp(e,t,a,wt,Lt,"secondary-light"))}e=gl,t=Fu,a=Qn;var o=(t.flags&8772)!==0;if((t.subtreeFlags&8772)!==0||o){o=K.T,K.T=null;var r=Qt.p;Qt.p=un;var s=Bt;Bt|=pn;try{Uu=a,_u=e,Sp(),rk(e,t.alternate,t),_u=Uu=null}finally{Bt=s,Qt.p=r,K.T=o}}e=Bb,t=$w,cs=Va(),e=t===null?e:nl,t=cs,a=Wn===Nb,o=Ea,fs!==null?w0(e,t,fs,!1,o):!fa||t<=e||(o?o.run(console.timeStamp.bind(console,a?"Commit Interrupted View Transition":"Commit",e,t,wt,Lt,a?"error":"secondary-dark")):console.timeStamp(a?"Commit Interrupted View Transition":"Commit",e,t,wt,Lt,a?"error":"secondary-dark")),Ka=Gw}}function Ok(){if(Ka===Vw||Ka===Gw){if(Ka===Vw){var e=cs;cs=Va();var t=cs,a=Wn===Nb;!fa||t<=e||(ms?ms.run(console.timeStamp.bind(console,a?"Interrupted View Transition":"Starting Animation",e,t,wt,Lt,a?"error":"secondary-light")):console.timeStamp(a?"Interrupted View Transition":"Starting Animation",e,t,wt,Lt,a?" error":"secondary-light")),Wn!==Nb&&(Wn=_w)}Ka=hl,CA(),e=gl;var o=Fu;t=Qn,a=jw;var r=o.actualDuration!==0||(o.subtreeFlags&10256)!==0||(o.flags&10256)!==0;r?Ka=Zm:(Ka=hl,Fu=gl=null,Bk(e,e.pendingLanes),xi=0,Hc=null);var s=e.pendingLanes;if(s===0&&(ml=null),r||Hk(e),s=L(t),o=o.stateNode,Lo&&typeof Lo.onCommitFiberRoot==="function")try{var d=(o.current.flags&128)===128;switch(s){case un:var p=zv;break;case jn:p=Pv;break;case Ar:p=pu;break;case gm:p=Uv;break;default:p=pu}Lo.onCommitFiberRoot(mu,o,p,d)}catch(B){Rr||(Rr=!0,console.error("React instrumentation encountered an error: %o",B))}if(Mr&&e.memoizedUpdaters.clear(),kM(),a!==null){d=K.T,p=Qt.p,Qt.p=un,K.T=null;try{var b=e.onRecoverableError;for(o=0;o<a.length;o++){var k=a[o],q=IM(k.stack);H(k.source,b,k.value,q)}}finally{K.T=d,Qt.p=p}}(Qn&3)!==0&&jd(),Lr(e),s=e.pendingLanes,(t&261930)!==0&&(s&42)!==0?(qm=!0,e===Pb?_c++:(_c=0,Pb=e)):_c=0,r||oi(t,cs),Xd(0,!1)}}function IM(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 Bk(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,Md(t)))}function jd(){return Nk(),qk(),Ok(),zk()}function zk(){if(Ka!==Zm)return!1;var e=gl,t=Ob;Ob=0;var a=L(Qn),o=Ar===0||Ar>a?Ar:a;a=K.T;var r=Qt.p;try{Qt.p=o,K.T=null;var s=zb;zb=null,o=gl;var d=Qn;if(Ka=hl,Fu=gl=null,Qn=0,(Bt&(eo|pn))!==lo)throw Error("Cannot flush passive effects while already rendering.");Jo(d),Ub=!0,Jm=!1;var p=0;if(fs=null,p=no(),Wn===_w)Id(cs,p,ms);else{var b=cs,k=p,q=Wn===qb;!fa||k<=b||(Ea?Ea.run(console.timeStamp.bind(console,q?"Waiting for Paint":"Waiting",b,k,wt,Lt,"secondary-light")):console.timeStamp(q?"Waiting for Paint":"Waiting",b,k,wt,Lt,"secondary-light"))}b=Bt,Bt|=pn;var B=o.current;Sp(),vk(B);var D=o.current;B=Bb,Sp(),mk(o,D,d,s,B),Hk(o),Bt=b;var F=no();if(D=p,B=Ea,fs!==null?w0(D,F,fs,!0,B):!fa||F<=D||(B?B.run(console.timeStamp.bind(console,"Remaining Effects",D,F,wt,Lt,"secondary-dark")):console.timeStamp("Remaining Effects",D,F,wt,Lt,"secondary-dark")),oi(d,F),Xd(0,!1),Jm?o===Hc?xi++:(xi=0,Hc=o):xi=0,Jm=Ub=!1,Lo&&typeof Lo.onPostCommitFiberRoot==="function")try{Lo.onPostCommitFiberRoot(mu,o)}catch(be){Rr||(Rr=!0,console.error("React instrumentation encountered an error: %o",be))}var pe=o.current.stateNode;return pe.effectDuration=0,pe.passiveEffectDuration=0,!0}finally{Qt.p=r,K.T=a,Bk(e,t)}}function Pk(e,t,a){t=en(a,t),_0(t),t=Dy(e.stateNode,t,2),e=Fs(e,t,2),e!==null&&(qs(e,2),Lr(e))}function Kt(e,t,a){if(Gu=!1,e.tag===3)Pk(e,e,a);else{for(;t!==null;){if(t.tag===3){Pk(t,e,a);return}if(t.tag===1){var o=t.stateNode;if(typeof t.type.getDerivedStateFromError==="function"||typeof o.componentDidCatch==="function"&&(ml===null||!ml.has(o))){e=en(a,e),_0(e),a=Ey(2),o=Fs(t,a,2),o!==null&&(Ny(a,o,t,e),qs(o,2),Lr(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 Zy(e,t,a){var o=e.pingCache;if(o===null){o=e.pingCache=new FD;var n=new Set;o.set(t,n)}else n=o.get(t),n===void 0&&(n=new Set,o.set(t,n));n.has(a)||(Mb=!0,n.add(a),o=TM.bind(null,e,t,a),In&&jd(e,a),t.then(o,o))}function TM(e,t,a){var o=e.pingCache;o!==null&&o.delete(t),e.pingedLanes|=e.suspendedLanes&a,e.warmLanes&=~a,(a&127)!==0?0>Dn&&(ol=Dn=Ga(),hc=wm("Promise Resolved"),rl=Tm):(a&4194048)!==0&&0>Ir&&(En=Ir=Ga(),yc=wm("Promise Resolved"),db=Tm),Sk()&&Y.actQueue===null&&console.error(`A suspended resource finished loading inside a test, but the event was not wrapped in act(...).
157
+ %s`,a)}}function ev(e,t,a){var o=e.pingCache;if(o===null){o=e.pingCache=new VD;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)||(Db=!0,r.add(a),o=RM.bind(null,e,t,a),Mr&&$d(e,a),t.then(o,o))}function RM(e,t,a){var o=e.pingCache;o!==null&&o.delete(t),e.pingedLanes|=e.suspendedLanes&a,e.warmLanes&=~a,(a&127)!==0?0>Nr&&(rl=Nr=Va(),gc=Rm("Promise Resolved"),sl=Mm):(a&4194048)!==0&&0>Mn&&(qr=Mn=Va(),vc=Rm("Promise Resolved"),fb=Mm),Sk()&&K.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`),oa===e&&(pt&a)===a&&(wa===il||wa===Hm&&(pt&62914560)===pt&&oo()-$m<Pw?(Bt&Ja)===so&&su(e,0):Ab|=a,bi===pt&&(bi=0)),Sn(e)}function Uk(e,t){t===0&&(t=ji()),e=xo(e,t),e!==null&&(Es(e,t),Sn(e))}function IM(e){var t=e.memoizedState,a=0;t!==null&&(a=t.retryLane),Uk(e,a)}function RM(e,t){var a=0;switch(e.tag){case 31:case 13:var{stateNode:o,memoizedState:n}=e;n!==null&&(a=n.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),Uk(e,a)}function Jy(e,t,a){if((t.subtreeFlags&67117056)!==0)for(t=t.child;t!==null;){var o=e,n=t,s=n.type===lm;s=a||s,n.tag!==22?n.flags&67108864?s&&Q(n,_k,o,n):Jy(o,n,s):n.memoizedState===null&&(s&&n.flags&8192?Q(n,_k,o,n):n.subtreeFlags&67108864&&Q(n,Jy,o,n,s)),t=t.sibling}}function _k(e,t){Xt(!0);try{fk(t),bk(t),pk(e,t.alternate,t,!1),hk(e,t,0,null,!1,0)}finally{Xt(!1)}}function Hk(e){var t=!0;e.current.mode&(ko|Vr)||(t=!1),Jy(e,e.current,t)}function Fk(e){if((Bt&Ja)===so){var t=e.tag;if(t===3||t===1||t===0||t===11||t===14||t===15){if(t=X(e)||"ReactComponent",Wm!==null){if(Wm.has(t))return;Wm.add(t)}else Wm=new Set([t]);Q(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 jd(e,t){In&&e.memoizedUpdaters.forEach(function(a){yd(e,a,t)})}function MM(e,t){var a=Y.actQueue;return a!==null?(a.push(t),jD):qv(e,t)}function AM(e){Sk()&&Y.actQueue===null&&Q(e,function(){console.error(`An update to %s inside a test was not wrapped in act(...).
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`),na===e&&(pt&a)===a&&(wa===dl||wa===Vm&&(pt&62914560)===pt&&no()-Km<Pw?(Bt&eo)===lo&&su(e,0):Eb|=a,bi===pt&&(bi=0)),Lr(e)}function Uk(e,t){t===0&&(t=ji()),e=ko(e,t),e!==null&&(qs(e,t),Lr(e))}function MM(e){var t=e.memoizedState,a=0;t!==null&&(a=t.retryLane),Uk(e,a)}function AM(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),Uk(e,a)}function tv(e,t,a){if((t.subtreeFlags&67117056)!==0)for(t=t.child;t!==null;){var o=e,r=t,s=r.type===dm;s=a||s,r.tag!==22?r.flags&67108864?s&&H(r,_k,o,r):tv(o,r,s):r.memoizedState===null&&(s&&r.flags&8192?H(r,_k,o,r):r.subtreeFlags&67108864&&H(r,tv,o,r,s)),t=t.sibling}}function _k(e,t){Yt(!0);try{fk(t),bk(t),pk(e,t.alternate,t,!1),hk(e,t,0,null,!1,0)}finally{Yt(!1)}}function Hk(e){var t=!0;e.current.mode&(Co|$n)||(t=!1),tv(e,e.current,t)}function Fk(e){if((Bt&eo)===lo){var t=e.tag;if(t===3||t===1||t===0||t===11||t===14||t===15){if(t=V(e)||"ReactComponent",eh!==null){if(eh.has(t))return;eh.add(t)}else eh=new Set([t]);H(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 $d(e,t){Mr&&e.memoizedUpdaters.forEach(function(a){vd(e,a,t)})}function DM(e,t){var a=K.actQueue;return a!==null?(a.push(t),XD):Bv(e,t)}function EM(e){Sk()&&K.actQueue===null&&H(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`,X(e))})}function Sn(e){e!==Vu&&e.next===null&&(Vu===null?Zm=Vu=e:Vu=Vu.next=e),Jm=!0,Y.actQueue!==null?Ub||(Ub=!0,$k()):Pb||(Pb=!0,$k())}function $d(e,t){if(!_b&&Jm){_b=!0;do{var a=!1;for(var o=Zm;o!==null;){if(!t)if(e!==0){var n=o.pendingLanes;if(n===0)var s=0;else{var d=o.suspendedLanes,p=o.pingedLanes;s=(1<<31-Io(42|e)+1)-1,s&=n&~(d&~p),s=s&201326741?s&201326741|1:s?s|2:0}s!==0&&(a=!0,jk(o,s))}else s=pt,s=da(o,o===oa?s:0,o.cancelPendingCommit!==null||o.timeoutHandle!==Ci),(s&3)===0||co(o,s)||(a=!0,jk(o,s));o=o.next}}while(a);_b=!1}}function DM(){Vc=window.event,ev()}function ev(){Jm=Ub=Pb=!1;var e=0;hl!==0&&PM()&&(e=hl);for(var t=oo(),a=null,o=Zm;o!==null;){var n=o.next,s=Gk(o,t);if(s===0)o.next=null,a===null?Zm=n:a.next=n,n===null&&(Vu=a);else if(a=o,e!==0||(s&3)!==0)Jm=!0;o=n}Ya!==pl&&Ya!==Km||$d(e,!1),hl!==0&&(hl=0)}function Gk(e,t){for(var{suspendedLanes:a,pingedLanes:o,expirationTimes:n}=e,s=e.pendingLanes&-62914561;0<s;){var d=31-Io(s),p=1<<d,b=n[d];if(b===-1){if((p&a)===0||(p&o)!==0)n[d]=Pl(p,t)}else b<=t&&(e.expiredLanes|=p);s&=~p}if(t=oa,a=pt,a=da(e,e===t?a:0,e.cancelPendingCommit!==null||e.timeoutHandle!==Ci),o=e.callbackNode,a===0||e===t&&(Zt===yi||Zt===vi)||e.cancelPendingCommit!==null)return o!==null&&tv(o),e.callbackNode=null,e.callbackPriority=0;if((a&3)===0||co(e,a)){if(t=a&-a,t!==e.callbackPriority||Y.actQueue!==null&&o!==Hb)tv(o);else return t;switch(L(a)){case sr:case Gr:a=Bv;break;case Rn:a=pu;break;case pm:a=zv;break;default:a=pu}return o=Vk.bind(null,e),Y.actQueue!==null?(Y.actQueue.push(o),a=Hb):a=qv(a,o),e.callbackPriority=t,e.callbackNode=a,t}return o!==null&&tv(o),e.callbackPriority=2,e.callbackNode=null,2}function Vk(e,t){if(Dm=Am=!1,Vc=window.event,Ya!==pl&&Ya!==Km)return e.callbackNode=null,e.callbackPriority=0,null;var a=e.callbackNode;if(Kr===Ym&&(Kr=Eb),Vd()&&e.callbackNode!==a)return null;var o=pt;if(o=da(e,e===oa?o:0,e.cancelPendingCommit!==null||e.timeoutHandle!==Ci),o===0)return null;return Lk(e,o,t),Gk(e,oo()),e.callbackNode!=null&&e.callbackNode===a?Vk.bind(null,e):null}function jk(e,t){if(Vd())return null;Am=Dm,Dm=!1,Lk(e,t,!0)}function tv(e){e!==Hb&&e!==null&&xA(e)}function $k(){Y.actQueue!==null&&Y.actQueue.push(function(){return ev(),null}),tE(function(){(Bt&(Ja|dr))!==so?qv(Ov,DM):ev()})}function av(){if(hl===0){var e=di;e===0&&(e=dm,dm<<=1,(dm&261888)===0&&(dm=256)),hl=e}return hl}function Xk(e){if(e==null||typeof e==="symbol"||typeof e==="boolean")return null;if(typeof e==="function")return e;return Te(e,"action"),Ld(""+e)}function Yk(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 EM(e,t,a,o,n){if(t==="submit"&&a&&a.stateNode===n){var s=Xk((n[Ro]||null).action),d=o.submitter;d&&(t=(t=d[Ro]||null)?Xk(t.formAction):d.getAttribute("formAction"),t!==null&&(s=t,d=null));var p=new vm("action","action",null,o,n);e.push({event:p,listeners:[{instance:null,listener:function(){if(o.defaultPrevented){if(hl!==0){var b=d?Yk(n,d):new FormData(n),k={pending:!0,data:b,method:n.method,action:s};Object.freeze(k),ky(a,k,null,b)}}else typeof s==="function"&&(p.preventDefault(),b=d?Yk(n,d):new FormData(n),k={pending:!0,data:b,method:n.method,action:s},Object.freeze(k),ky(a,k,s,b))},currentTarget:n}]})}}function Qp(e,t,a){e.currentTarget=a;try{t(e)}catch(o){Jv(o)}e.currentTarget=null}function Kk(e,t){t=(t&4)!==0;for(var a=0;a<e.length;a++){var o=e[a];e:{var n=void 0,s=o.event;if(o=o.listeners,t)for(var d=o.length-1;0<=d;d--){var p=o[d],b=p.instance,k=p.currentTarget;if(p=p.listener,b!==n&&s.isPropagationStopped())break e;b!==null?Q(b,Qp,s,p,k):Qp(s,p,k),n=b}else for(d=0;d<o.length;d++){if(p=o[d],b=p.instance,k=p.currentTarget,p=p.listener,b!==n&&s.isPropagationStopped())break e;b!==null?Q(b,Qp,s,p,k):Qp(s,p,k),n=b}}}}function At(e,t){Fb.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[Pv];a===void 0&&(a=t[Pv]=new Set);var o=e+"__bubble";a.has(o)||(Qk(t,e,2,!1),a.add(o))}function ov(e,t,a){Fb.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),Qk(a,e,o,t)}function rv(e){if(!e[eh]){e[eh]=!0,$L.forEach(function(a){a!=="selectionchange"&&(Fb.has(a)||ov(a,!1,e),ov(a,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[eh]||(t[eh]=!0,ov("selectionchange",!1,t))}}function Qk(e,t,a,o){switch(ML(t)){case sr:var n=fA;break;case Gr:n=pA;break;default:n=xv}a=n.bind(null,t,a,e),n=void 0,!Gv||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 nv(e,t,a,o,n){var s=o;if((t&1)===0&&(t&2)===0&&o!==null)e:for(;;){if(o===null)return;var d=o.tag;if(d===3||d===4){var p=o.stateNode.containerInfo;if(p===n)break;if(d===4)for(d=o.return;d!==null;){var b=d.tag;if((b===3||b===4)&&d.stateNode.containerInfo===n)return;d=d.return}for(;p!==null;){if(d=Re(p),d===null)return;if(b=d.tag,b===5||b===6||b===26||b===27){o=s=d;continue e}p=p.parentNode}}o=o.return}l0(function(){var k=s,O=Ig(a),B=[];e:{var D=MC.get(e);if(D!==void 0){var F=vm,pe=e;switch(e){case"keypress":if(rp(a)===0)break e;case"keydown":case"keyup":F=lD;break;case"focusin":pe="focus",F=Xv;break;case"focusout":pe="blur",F=Xv;break;case"beforeblur":case"afterblur":F=Xv;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":F=hC;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":F=KA;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":F=dD;break;case wC:case TC:case IC:F=ZA;break;case RC:F=fD;break;case"scroll":case"scrollend":F=XA;break;case"wheel":F=mD;break;case"copy":case"cut":case"paste":F=eD;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":F=yC;break;case"toggle":case"beforetoggle":F=gD}var be=(t&4)!==0,la=!be&&(e==="scroll"||e==="scrollend"),Dt=be?D!==null?D+"Capture":null:D;be=[];for(var A=k,E;A!==null;){var q=A;if(E=q.stateNode,q=q.tag,q!==5&&q!==26&&q!==27||E===null||Dt===null||(q=Cd(A,Dt),q!=null&&be.push(Xd(A,q,E))),la)break;A=A.return}0<be.length&&(D=new F(D,pe,null,a,O),B.push({event:D,listeners:be}))}}if((t&7)===0){e:{if(D=e==="mouseover"||e==="pointerover",F=e==="mouseout"||e==="pointerout",D&&a!==rc&&(pe=a.relatedTarget||a.fromElement)&&(Re(pe)||pe[Qs]))break e;if(F||D){if(D=O.window===O?O:(D=O.ownerDocument)?D.defaultView||D.parentWindow:window,F){if(pe=a.relatedTarget||a.toElement,F=k,pe=pe?Re(pe):null,pe!==null&&(la=N(pe),be=pe.tag,pe!==la||be!==5&&be!==27&&be!==6))pe=null}else F=null,pe=k;if(F!==pe){if(be=hC,q="onMouseLeave",Dt="onMouseEnter",A="mouse",e==="pointerout"||e==="pointerover")be=yC,q="onPointerLeave",Dt="onPointerEnter",A="pointer";if(la=F==null?D:ot(F),E=pe==null?D:ot(pe),D=new be(q,A+"leave",F,a,O),D.target=la,D.relatedTarget=E,q=null,Re(O)===k&&(be=new be(Dt,A+"enter",pe,a,O),be.target=E,be.relatedTarget=la,q=be),la=q,F&&pe)t:{be=NM,Dt=F,A=pe,E=0;for(q=Dt;q;q=be(q))E++;q=0;for(var J=A;J;J=be(J))q++;for(;0<E-q;)Dt=be(Dt),E--;for(;0<q-E;)A=be(A),q--;for(;E--;){if(Dt===A||A!==null&&Dt===A.alternate){be=Dt;break t}Dt=be(Dt),A=be(A)}be=null}else be=null;F!==null&&Wk(B,D,F,be,!1),pe!==null&&la!==null&&Wk(B,la,pe,be,!0)}}}e:{if(D=k?ot(k):window,F=D.nodeName&&D.nodeName.toLowerCase(),F==="select"||F==="input"&&D.type==="file")var ve=m0;else if(f0(D))if(LC)ve=jR;else{ve=GR;var tt=FR}else F=D.nodeName,!F||F.toLowerCase()!=="input"||D.type!=="checkbox"&&D.type!=="radio"?k&&kd(k.elementType)&&(ve=m0):ve=VR;if(ve&&(ve=ve(e,k))){p0(B,ve,a,O);break e}tt&&tt(e,D,k),e==="focusout"&&k&&D.type==="number"&&k.memoizedProps.value!=null&&Sg(D,"number",D.value)}switch(tt=k?ot(k):window,e){case"focusin":if(f0(tt)||tt.contentEditable==="true")Su=tt,Kv=k,cc=null;break;case"focusout":cc=Kv=Su=null;break;case"mousedown":Qv=!0;break;case"contextmenu":case"mouseup":case"dragend":Qv=!1,S0(B,a,O);break;case"selectionchange":if(xD)break;case"keydown":case"keyup":S0(B,a,O)}var Be;if(Yv)e:{switch(e){case"compositionstart":var Me="onCompositionStart";break e;case"compositionend":Me="onCompositionEnd";break e;case"compositionupdate":Me="onCompositionUpdate";break e}Me=void 0}else xu?d0(e,a)&&(Me="onCompositionEnd"):e==="keydown"&&a.keyCode===vC&&(Me="onCompositionStart");if(Me&&(bC&&a.locale!=="ko"&&(xu||Me!=="onCompositionStart"?Me==="onCompositionEnd"&&xu&&(Be=i0()):(Ws=O,Vv=("value"in Ws)?Ws.value:Ws.textContent,xu=!0)),tt=Wp(k,Me),0<tt.length&&(Me=new gC(Me,e,null,a,O),B.push({event:Me,listeners:tt}),Be?Me.data=Be:(Be=c0(a),Be!==null&&(Me.data=Be)))),Be=vD?PR(e,a):UR(e,a))Me=Wp(k,"onBeforeInput"),0<Me.length&&(tt=new aD("onBeforeInput","beforeinput",null,a,O),B.push({event:tt,listeners:Me}),tt.data=Be);EM(B,e,k,a,O)}Kk(B,t)})}function Xd(e,t,a){return{instance:e,listener:t,currentTarget:a}}function Wp(e,t){for(var a=t+"Capture",o=[];e!==null;){var n=e,s=n.stateNode;if(n=n.tag,n!==5&&n!==26&&n!==27||s===null||(n=Cd(e,a),n!=null&&o.unshift(Xd(e,n,s)),n=Cd(e,t),n!=null&&o.push(Xd(e,n,s))),e.tag===3)return o;e=e.return}return[]}function NM(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e?e:null}function Wk(e,t,a,o,n){for(var s=t._reactName,d=[];a!==null&&a!==o;){var p=a,b=p.alternate,k=p.stateNode;if(p=p.tag,b!==null&&b===o)break;p!==5&&p!==26&&p!==27||k===null||(b=k,n?(k=Cd(a,s),k!=null&&d.unshift(Xd(a,k,b))):n||(k=Cd(a,s),k!=null&&d.push(Xd(a,k,b)))),a=a.return}d.length!==0&&e.push({event:t,listeners:d})}function sv(e,t){qR(e,t),e!=="input"&&e!=="textarea"&&e!=="select"||t==null||t.value!==null||pC||(pC=!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:ri,possibleRegistrationNames:Uv};kd(e)||typeof t.is==="string"||BR(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 ao(e,t,a,o){t!==a&&(a=js(a),js(t)!==a&&(o[e]=t))}function qM(e,t,a){t.forEach(function(o){a[eL(o)]=o==="style"?iv(e):e.getAttribute(o)})}function kn(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 Zk(e,t){return e=e.namespaceURI===hm||e.namespaceURI===gu?e.ownerDocument.createElementNS(e.namespaceURI,e.tagName):e.ownerDocument.createElement(e.tagName),e.innerHTML=t,e.innerHTML}function js(e){return lt(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.",De(e)),Ue(e)),(typeof e==="string"?e:""+e).replace($D,`
176
- `).replace(XD,"")}function Jk(e,t){return t=js(t),js(e)===t?!0:!1}function ta(e,t,a,o,n,s){switch(a){case"children":if(typeof o==="string")op(o,t,!1),t==="body"||t==="textarea"&&o===""||Sd(e,o);else if(typeof o==="number"||typeof o==="bigint")op(""+o,t,!1),t!=="body"&&Sd(e,""+o);break;case"className":ep(e,"class",o);break;case"tabIndex":ep(e,"tabindex",o);break;case"dir":case"role":case"viewBox":case"width":case"height":ep(e,a,o);break;case"style":r0(e,o,s);break;case"data":if(t!=="object"){ep(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}Te(o,a),o=Ld(""+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||oh||(oh=!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||ah||(ah=!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"||th?t!=="button"||n.type==null||n.type==="submit"||th?typeof o==="function"&&(n.name==null||Zw||(Zw=!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||oh||(oh=!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||ah||(ah=!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."))):(th=!0,console.error('A button can only specify a formAction along with type="submit" or no type.')):(th=!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 s==="function"&&(a==="formAction"?(t!=="input"&&ta(e,t,"name",n.name,n,null),ta(e,t,"formEncType",n.formEncType,n,null),ta(e,t,"formMethod",n.formMethod,n,null),ta(e,t,"formTarget",n.formTarget,n,null)):(ta(e,t,"encType",n.encType,n,null),ta(e,t,"method",n.method,n,null),ta(e,t,"target",n.target,n,null)));if(o==null||typeof o==="symbol"||typeof o==="boolean"){e.removeAttribute(a);break}Te(o,a),o=Ld(""+o),e.setAttribute(a,o);break;case"onClick":o!=null&&(typeof o!=="function"&&kn(a,o),e.onclick=Qn);break;case"onScroll":o!=null&&(typeof o!=="function"&&kn(a,o),At("scroll",e));break;case"onScrollEnd":o!=null&&(typeof o!=="function"&&kn(a,o),At("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}Te(o,a),a=Ld(""+o),e.setAttributeNS(Si,"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"?(Te(o,a),e.setAttribute(a,""+o)):e.removeAttribute(a);break;case"inert":o!==""||rh[a]||(rh[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"?(Te(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?(Te(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):(Te(o,a),e.setAttribute(a,o));break;case"popover":At("beforetoggle",e),At("toggle",e),Jf(e,"popover",o);break;case"xlinkActuate":Kn(e,Si,"xlink:actuate",o);break;case"xlinkArcrole":Kn(e,Si,"xlink:arcrole",o);break;case"xlinkRole":Kn(e,Si,"xlink:role",o);break;case"xlinkShow":Kn(e,Si,"xlink:show",o);break;case"xlinkTitle":Kn(e,Si,"xlink:title",o);break;case"xlinkType":Kn(e,Si,"xlink:type",o);break;case"xmlBase":Kn(e,Gb,"xml:base",o);break;case"xmlLang":Kn(e,Gb,"xml:lang",o);break;case"xmlSpace":Kn(e,Gb,"xml:space",o);break;case"is":s!=null&&console.error('Cannot update the "is" prop after it has been initialized.'),Jf(e,"is",o);break;case"innerText":case"textContent":break;case"popoverTarget":Jw||o==null||typeof o!=="object"||(Jw=!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=n0(a),Jf(e,a,o)):ri.hasOwnProperty(a)&&o!=null&&typeof o!=="function"&&kn(a,o)}}function lv(e,t,a,o,n,s){switch(a){case"style":r0(e,o,s);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"?Sd(e,o):(typeof o==="number"||typeof o==="bigint")&&Sd(e,""+o);break;case"onScroll":o!=null&&(typeof o!=="function"&&kn(a,o),At("scroll",e));break;case"onScrollEnd":o!=null&&(typeof o!=="function"&&kn(a,o),At("scrollend",e));break;case"onClick":o!=null&&(typeof o!=="function"&&kn(a,o),e.onclick=Qn);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(ri.hasOwnProperty(a))o!=null&&typeof o!=="function"&&kn(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),s=e[Ro]||null,s=s!=null?s[a]:null,typeof s==="function"&&e.removeEventListener(t,s,n),typeof o==="function")){typeof s!=="function"&&s!==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,""):Jf(e,a,o)}}}function mo(e,t,a){switch(sv(t,a),t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":At("error",e),At("load",e);var o=!1,n=!1,s;for(s in a)if(a.hasOwnProperty(s)){var d=a[s];if(d!=null)switch(s){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:ta(e,t,s,d,a,null)}}n&&ta(e,t,"srcSet",a.srcSet,a,null),o&&ta(e,t,"src",a.src,a,null);return;case"input":qs("input",a),At("invalid",e);var p=s=d=n=null,b=null,k=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":d=O;break;case"checked":b=O;break;case"defaultChecked":k=O;break;case"value":s=O;break;case"defaultValue":p=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:ta(e,t,o,O,a,null)}}Fx(e,a),Gx(e,s,p,b,k,d,n,!1);return;case"select":qs("select",a),At("invalid",e),o=d=s=null;for(n in a)if(a.hasOwnProperty(n)&&(p=a[n],p!=null))switch(n){case"value":s=p;break;case"defaultValue":d=p;break;case"multiple":o=p;default:ta(e,t,n,p,a,null)}$x(e,a),t=s,a=d,e.multiple=!!o,t!=null?Xi(e,!!o,t,!1):a!=null&&Xi(e,!!o,a,!0);return;case"textarea":qs("textarea",a),At("invalid",e),s=n=o=null;for(d in a)if(a.hasOwnProperty(d)&&(p=a[d],p!=null))switch(d){case"value":o=p;break;case"defaultValue":n=p;break;case"children":s=p;break;case"dangerouslySetInnerHTML":if(p!=null)throw Error("`dangerouslySetInnerHTML` does not make sense on <textarea>.");break;default:ta(e,t,d,p,a,null)}Xx(e,a),Kx(e,o,n,s);return;case"option":Vx(e,a);for(b in a)if(a.hasOwnProperty(b)&&(o=a[b],o!=null))switch(b){case"selected":e.selected=o&&typeof o!=="function"&&typeof o!=="symbol";break;default:ta(e,t,b,o,a,null)}return;case"dialog":At("beforetoggle",e),At("toggle",e),At("cancel",e),At("close",e);break;case"iframe":case"object":At("load",e);break;case"video":case"audio":for(o=0;o<Hc.length;o++)At(Hc[o],e);break;case"image":At("error",e),At("load",e);break;case"details":At("toggle",e);break;case"embed":case"source":case"link":At("error",e),At("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(k in a)if(a.hasOwnProperty(k)&&(o=a[k],o!=null))switch(k){case"children":case"dangerouslySetInnerHTML":throw Error(t+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");default:ta(e,t,k,o,a,null)}return;default:if(kd(t)){for(O in a)a.hasOwnProperty(O)&&(o=a[O],o!==void 0&&lv(e,t,O,o,a,void 0));return}}for(p in a)a.hasOwnProperty(p)&&(o=a[p],o!=null&&ta(e,t,p,o,a,null))}function OM(e,t,a,o){switch(sv(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,s=null,d=null,p=null,b=null,k=null,O=null;for(F in a){var B=a[F];if(a.hasOwnProperty(F)&&B!=null)switch(F){case"checked":break;case"value":break;case"defaultValue":b=B;default:o.hasOwnProperty(F)||ta(e,t,F,null,o,B)}}for(var D in o){var F=o[D];if(B=a[D],o.hasOwnProperty(D)&&(F!=null||B!=null))switch(D){case"type":s=F;break;case"name":n=F;break;case"checked":k=F;break;case"defaultChecked":O=F;break;case"value":d=F;break;case"defaultValue":p=F;break;case"children":case"dangerouslySetInnerHTML":if(F!=null)throw Error(t+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");break;default:F!==B&&ta(e,t,D,F,o,B)}}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||Ww||(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"),Ww=!0),!t||o||Qw||(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"),Qw=!0),xg(e,d,p,b,k,O,s,n);return;case"select":F=d=p=D=null;for(s in a)if(b=a[s],a.hasOwnProperty(s)&&b!=null)switch(s){case"value":break;case"multiple":F=b;default:o.hasOwnProperty(s)||ta(e,t,s,null,o,b)}for(n in o)if(s=o[n],b=a[n],o.hasOwnProperty(n)&&(s!=null||b!=null))switch(n){case"value":D=s;break;case"defaultValue":p=s;break;case"multiple":d=s;default:s!==b&&ta(e,t,n,s,o,b)}o=p,t=d,a=F,D!=null?Xi(e,!!t,D,!1):!!a!==!!t&&(o!=null?Xi(e,!!t,o,!0):Xi(e,!!t,t?[]:"",!1));return;case"textarea":F=D=null;for(p in a)if(n=a[p],a.hasOwnProperty(p)&&n!=null&&!o.hasOwnProperty(p))switch(p){case"value":break;case"children":break;default:ta(e,t,p,null,o,n)}for(d in o)if(n=o[d],s=a[d],o.hasOwnProperty(d)&&(n!=null||s!=null))switch(d){case"value":D=n;break;case"defaultValue":F=n;break;case"children":break;case"dangerouslySetInnerHTML":if(n!=null)throw Error("`dangerouslySetInnerHTML` does not make sense on <textarea>.");break;default:n!==s&&ta(e,t,d,n,o,s)}Yx(e,D,F);return;case"option":for(var pe in a)if(D=a[pe],a.hasOwnProperty(pe)&&D!=null&&!o.hasOwnProperty(pe))switch(pe){case"selected":e.selected=!1;break;default:ta(e,t,pe,null,o,D)}for(b in o)if(D=o[b],F=a[b],o.hasOwnProperty(b)&&D!==F&&(D!=null||F!=null))switch(b){case"selected":e.selected=D&&typeof D!=="function"&&typeof D!=="symbol";break;default:ta(e,t,b,D,o,F)}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 be in a)D=a[be],a.hasOwnProperty(be)&&D!=null&&!o.hasOwnProperty(be)&&ta(e,t,be,null,o,D);for(k in o)if(D=o[k],F=a[k],o.hasOwnProperty(k)&&D!==F&&(D!=null||F!=null))switch(k){case"children":case"dangerouslySetInnerHTML":if(D!=null)throw Error(t+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");break;default:ta(e,t,k,D,o,F)}return;default:if(kd(t)){for(var la in a)D=a[la],a.hasOwnProperty(la)&&D!==void 0&&!o.hasOwnProperty(la)&&lv(e,t,la,void 0,o,D);for(O in o)D=o[O],F=a[O],!o.hasOwnProperty(O)||D===F||D===void 0&&F===void 0||lv(e,t,O,D,o,F);return}}for(var Dt in a)D=a[Dt],a.hasOwnProperty(Dt)&&D!=null&&!o.hasOwnProperty(Dt)&&ta(e,t,Dt,null,o,D);for(B in o)D=o[B],F=a[B],!o.hasOwnProperty(B)||D===F||D==null&&F==null||ta(e,t,B,D,o,F)}function eL(e){switch(e){case"class":return"className";case"for":return"htmlFor";default:return e}}function iv(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 tL(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="",s;for(s in t)if(t.hasOwnProperty(s)){var d=t[s];d!=null&&typeof d!=="boolean"&&d!==""&&(s.indexOf("--")===0?(va(d,s),o+=n+s+":"+(""+d).trim()):typeof d!=="number"||d===0||cC.has(s)?(va(d,s),o+=n+s.replace(sC,"-$1").toLowerCase().replace(lC,"-ms-")+":"+(""+d).trim()):o+=n+s.replace(sC,"-$1").toLowerCase().replace(lC,"-ms-")+":"+d+"px",n=";")}o=o||null,t=e.getAttribute("style"),t!==o&&(o=js(o),js(t)!==o&&(a.style=iv(e)))}}function xr(e,t,a,o,n,s){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(Te(o,t),e===""+o)return}ao(t,e,o,s)}function aL(e,t,a,o,n,s){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}ao(t,e,o,s)}function uv(e,t,a,o,n,s){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(Te(o,a),e===""+o)return}ao(t,e,o,s)}function oL(e,t,a,o,n,s){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)&&(Te(o,t),e===""+o))return}ao(t,e,o,s)}function dv(e,t,a,o,n,s){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(Te(o,t),a=Ld(""+o),e===a)return}ao(t,e,o,s)}function rL(e,t,a,o){for(var n={},s=new Set,d=e.attributes,p=0;p<d.length;p++)switch(d[p].name.toLowerCase()){case"value":break;case"checked":break;case"selected":break;default:s.add(d[p].name)}if(kd(t)){for(var b in a)if(a.hasOwnProperty(b)){var k=a[b];if(k!=null){if(ri.hasOwnProperty(b))typeof k!=="function"&&kn(b,k);else if(a.suppressHydrationWarning!==!0)switch(b){case"children":typeof k!=="string"&&typeof k!=="number"||ao("children",e.textContent,k,n);continue;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":continue;case"dangerouslySetInnerHTML":d=e.innerHTML,k=k?k.__html:void 0,k!=null&&(k=Zk(e,k),ao(b,d,k,n));continue;case"style":s.delete(b),tL(e,k,n);continue;case"offsetParent":case"offsetTop":case"offsetLeft":case"offsetWidth":case"offsetHeight":case"isContentEditable":case"outerText":case"outerHTML":s.delete(b.toLowerCase()),console.error("Assignment to read-only property will result in a no-op: `%s`",b);continue;case"className":s.delete("class"),d=Ux(e,"class",k),ao("className",d,k,n);continue;default:o.context===vs&&t!=="svg"&&t!=="math"?s.delete(b.toLowerCase()):s.delete(b),d=Ux(e,b,k),ao(b,d,k,n)}}}}else for(k in a)if(a.hasOwnProperty(k)&&(b=a[k],b!=null)){if(ri.hasOwnProperty(k))typeof b!=="function"&&kn(k,b);else if(a.suppressHydrationWarning!==!0)switch(k){case"children":typeof b!=="string"&&typeof b!=="number"||ao("children",e.textContent,b,n);continue;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"value":case"checked":case"selected":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":continue;case"dangerouslySetInnerHTML":d=e.innerHTML,b=b?b.__html:void 0,b!=null&&(b=Zk(e,b),d!==b&&(n[k]={__html:d}));continue;case"className":xr(e,k,"class",b,s,n);continue;case"tabIndex":xr(e,k,"tabindex",b,s,n);continue;case"style":s.delete(k),tL(e,b,n);continue;case"multiple":s.delete(k),ao(k,e.multiple,b,n);continue;case"muted":s.delete(k),ao(k,e.muted,b,n);continue;case"autoFocus":s.delete("autofocus"),ao(k,e.autofocus,b,n);continue;case"data":if(t!=="object"){s.delete(k),d=e.getAttribute("data"),ao(k,d,b,n);continue}case"src":case"href":if(!(b!==""||t==="a"&&k==="href"||t==="object"&&k==="data")){k==="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.',k,k):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.',k,k);continue}dv(e,k,k,b,s,n);continue;case"action":case"formAction":if(d=e.getAttribute(k),typeof b==="function"){s.delete(k.toLowerCase()),k==="formAction"?(s.delete("name"),s.delete("formenctype"),s.delete("formmethod"),s.delete("formtarget")):(s.delete("enctype"),s.delete("method"),s.delete("target"));continue}else if(d===YD){s.delete(k.toLowerCase()),ao(k,"function",b,n);continue}dv(e,k,k.toLowerCase(),b,s,n);continue;case"xlinkHref":dv(e,k,"xlink:href",b,s,n);continue;case"contentEditable":uv(e,k,"contenteditable",b,s,n);continue;case"spellCheck":uv(e,k,"spellcheck",b,s,n);continue;case"draggable":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":uv(e,k,k,b,s,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":aL(e,k,k.toLowerCase(),b,s,n);continue;case"capture":case"download":e:{p=e;var O=d=k,B=n;if(s.delete(O),p=p.getAttribute(O),p===null)switch(typeof b){case"undefined":case"function":case"symbol":break e;default:if(b===!1)break e}else if(b!=null)switch(typeof b){case"function":case"symbol":break;case"boolean":if(b===!0&&p==="")break e;break;default:if(Te(b,d),p===""+b)break e}ao(d,p,b,B)}continue;case"cols":case"rows":case"size":case"span":e:{if(p=e,O=d=k,B=n,s.delete(O),p=p.getAttribute(O),p===null)switch(typeof b){case"undefined":case"function":case"symbol":case"boolean":break e;default:if(isNaN(b)||1>b)break e}else if(b!=null)switch(typeof b){case"function":case"symbol":case"boolean":break;default:if(!(isNaN(b)||1>b)&&(Te(b,d),p===""+b))break e}ao(d,p,b,B)}continue;case"rowSpan":oL(e,k,"rowspan",b,s,n);continue;case"start":oL(e,k,k,b,s,n);continue;case"xHeight":xr(e,k,"x-height",b,s,n);continue;case"xlinkActuate":xr(e,k,"xlink:actuate",b,s,n);continue;case"xlinkArcrole":xr(e,k,"xlink:arcrole",b,s,n);continue;case"xlinkRole":xr(e,k,"xlink:role",b,s,n);continue;case"xlinkShow":xr(e,k,"xlink:show",b,s,n);continue;case"xlinkTitle":xr(e,k,"xlink:title",b,s,n);continue;case"xlinkType":xr(e,k,"xlink:type",b,s,n);continue;case"xmlBase":xr(e,k,"xml:base",b,s,n);continue;case"xmlLang":xr(e,k,"xml:lang",b,s,n);continue;case"xmlSpace":xr(e,k,"xml:space",b,s,n);continue;case"inert":b!==""||rh[k]||(rh[k]=!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.",k)),aL(e,k,k,b,s,n);continue;default:if(!(2<k.length)||k[0]!=="o"&&k[0]!=="O"||k[1]!=="n"&&k[1]!=="N"){p=n0(k),d=!1,o.context===vs&&t!=="svg"&&t!=="math"?s.delete(p.toLowerCase()):(O=k.toLowerCase(),O=gm.hasOwnProperty(O)?gm[O]||null:null,O!==null&&O!==k&&(d=!0,s.delete(O)),s.delete(p));e:if(O=e,B=p,p=b,vd(B))if(O.hasAttribute(B))O=O.getAttribute(B),Te(p,B),p=O===""+p?p:O;else{switch(typeof p){case"function":case"symbol":break e;case"boolean":if(O=B.toLowerCase().slice(0,5),O!=="data-"&&O!=="aria-")break e}p=p===void 0?void 0:null}else p=void 0;d||ao(k,p,b,n)}}}return 0<s.size&&a.suppressHydrationWarning!==!0&&qM(e,s,n),Object.keys(n).length===0?null:n}function BM(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 nL(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function zM(){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:s,initiatorType:d,duration:p}=n;if(s&&p&&nL(d)){d=0,p=n.responseEnd;for(o+=1;o<a.length;o++){var b=a[o],k=b.startTime;if(k>p)break;var O=b.transferSize,B=b.initiatorType;O&&nL(B)&&(b=b.responseEnd,d+=O*(b<p?1:(p-k)/(b-k)))}if(--o,t+=8*(s+d)/(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 Zp(e){return e.nodeType===9?e:e.ownerDocument}function sL(e){switch(e){case gu:return $u;case hm:return sh;default:return vs}}function lL(e,t){if(e===vs)switch(t){case"svg":return $u;case"math":return sh;default:return vs}return e===$u&&t==="foreignObject"?vs:e}function cv(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 PM(){var e=window.event;if(e&&e.type==="popstate"){if(e===Xb)return!1;return Xb=e,!0}return Xb=null,!1}function Yd(){var e=window.event;return e&&e!==Vc?e.type:null}function Kd(){var e=window.event;return e&&e!==Vc?e.timeStamp:-1.1}function UM(e){setTimeout(function(){throw e})}function _M(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 HM(){}function FM(e,t,a,o){OM(e,t,a,o),e[Ro]=o}function iL(e){Sd(e,"")}function GM(e,t,a){e.nodeValue=a}function uL(e){if(!e.__reactWarnedAboutChildrenConflict){var t=e[Ro]||null;if(t!==null){var a=at(e);a!==null&&(typeof t.children==="string"||typeof t.children==="number"?(e.__reactWarnedAboutChildrenConflict=!0,Q(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,Q(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 $s(e){return e==="head"}function VM(e,t){e.removeChild(t)}function jM(e,t){(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e).removeChild(t)}function dL(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===Gc||a===nh){if(o===0){e.removeChild(n),du(t);return}o--}else if(a===Fc||a===gl||a===Li||a===ju||a===ki)o++;else if(a===QD)Qd(e.ownerDocument.documentElement);else if(a===ZD){a=e.ownerDocument.head,Qd(a);for(var s=a.firstChild;s;){var d=s.nextSibling,p=s.nodeName;s[oc]||p==="SCRIPT"||p==="STYLE"||p==="LINK"&&s.rel.toLowerCase()==="stylesheet"||a.removeChild(s),s=d}}else a===WD&&Qd(e.ownerDocument.body);a=n}while(a);du(t)}function cL(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===Gc)if(e===0)break;else e--;else a!==Fc&&a!==gl&&a!==Li&&a!==ju||e++;a=o}while(a)}function $M(e){cL(e,!0)}function XM(e){e=e.style,typeof e.setProperty==="function"?e.setProperty("display","none","important"):e.display="none"}function YM(e){e.nodeValue=""}function KM(e){cL(e,!1)}function QM(e,t){t=t[JD],t=t!==void 0&&t!==null&&t.hasOwnProperty("display")?t.display:null,e.style.display=t==null||typeof t==="boolean"?"":(""+t).trim()}function WM(e,t){e.nodeValue=t}function fv(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":fv(a),ye(a);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(a.rel.toLowerCase()==="stylesheet")continue}e.removeChild(a)}}function ZM(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"){Te(n.name,"name");var s=n.name==null?null:""+n.name;if(n.type==="hidden"&&e.getAttribute("name")===s)return e}else return e;else if(!e[oc])switch(t){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if(s=e.getAttribute("rel"),s==="stylesheet"&&e.hasAttribute("data-precedence"))break;else if(s!==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(s=e.getAttribute("src"),(s!==(n.src==null?null:n.src)||e.getAttribute("type")!==(n.type==null?null:n.type)||e.getAttribute("crossorigin")!==(n.crossOrigin==null?null:n.crossOrigin))&&s&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}if(e=or(e.nextSibling),e===null)break}return null}function JM(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=or(e.nextSibling),e===null)return null}return e}function fL(e,t){for(;e.nodeType!==8;){if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!t)return null;if(e=or(e.nextSibling),e===null)return null}return e}function pv(e){return e.data===gl||e.data===Li}function mv(e){return e.data===ju||e.data===gl&&e.ownerDocument.readyState!==t1}function eA(e,t){var a=e.ownerDocument;if(e.data===Li)e._reactRetry=t;else if(e.data!==gl||a.readyState!==t1)t();else{var o=function(){t(),a.removeEventListener("DOMContentLoaded",o)};a.addEventListener("DOMContentLoaded",o),e._reactRetry=o}}function or(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===Fc||t===ju||t===gl||t===Li||t===ki||t===Vb||t===e1)break;if(t===Gc||t===nh)return null}}return e}function pL(e){if(e.nodeType===1){for(var t=e.nodeName.toLowerCase(),a={},o=e.attributes,n=0;n<o.length;n++){var s=o[n];a[eL(s.name)]=s.name.toLowerCase()==="style"?iv(e):s.value}return{type:t,props:a}}return e.nodeType===8?e.data===ki?{type:"Activity",props:{}}:{type:"Suspense",props:{}}:e.nodeValue}function mL(e,t,a){return a===null||a[KD]!==!0?(e.nodeValue===t?e=null:(t=js(t),e=js(e.nodeValue)===t?null:e.nodeValue),e):null}function hv(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var a=e.data;if(a===Gc||a===nh){if(t===0)return or(e.nextSibling);t--}else a!==Fc&&a!==ju&&a!==gl&&a!==Li&&a!==ki||t++}e=e.nextSibling}return null}function hL(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var a=e.data;if(a===Fc||a===ju||a===gl||a===Li||a===ki){if(t===0)return e;t--}else a!==Gc&&a!==nh||t++}e=e.previousSibling}return null}function tA(e){du(e)}function aA(e){du(e)}function oA(e){du(e)}function gL(e,t,a,o,n){switch(n&&Tg(e,o.ancestorInfo),t=Zp(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 rA(e,t,a,o){if(!a[Qs]&&at(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]);mo(a,e,t),a[ho]=o,a[Ro]=t}function Qd(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);ye(e)}function Jp(e){return typeof e.getRootNode==="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}function yL(e,t,a){var o=Xu;if(o&&typeof t==="string"&&t){var n=br(t);n='link[rel="'+e+'"][href="'+n+'"]',typeof a==="string"&&(n+='[crossorigin="'+a+'"]'),l1.has(n)||(l1.add(n),e={rel:e,crossOrigin:a,href:t},o.querySelector(n)===null&&(t=o.createElement("link"),mo(t,"link",e),ze(t),o.head.appendChild(t)))}}function vL(e,t,a,o){var n=(n=Ys.current)?Jp(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=iu(a.href),t=zt(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=iu(a.href);var s=zt(n).hoistableStyles,d=s.get(e);if(!d&&(n=n.ownerDocument||n,d={type:"stylesheet",instance:null,count:0,state:{loading:wi,preload:null}},s.set(e,d),(s=n.querySelector(Wd(e)))&&!s._p&&(d.instance=s,d.state.loading=jc|Dr),!Er.has(e))){var p={rel:"preload",as:"style",href:a.href,crossOrigin:a.crossOrigin,integrity:a.integrity,media:a.media,hrefLang:a.hrefLang,referrerPolicy:a.referrerPolicy};Er.set(e,p),s||nA(n,e,p,d.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 Lr(e){e!==Vu&&e.next===null&&(Vu===null?th=Vu=e:Vu=Vu.next=e),ah=!0,K.actQueue!==null?Hb||(Hb=!0,$k()):_b||(_b=!0,$k())}function Xd(e,t){if(!Fb&&ah){Fb=!0;do{var a=!1;for(var o=th;o!==null;){if(!t)if(e!==0){var r=o.pendingLanes;if(r===0)var s=0;else{var d=o.suspendedLanes,p=o.pingedLanes;s=(1<<31-Ao(42|e)+1)-1,s&=r&~(d&~p),s=s&201326741?s&201326741|1:s?s|2:0}s!==0&&(a=!0,jk(o,s))}else s=pt,s=ca(o,o===na?s:0,o.cancelPendingCommit!==null||o.timeoutHandle!==Ci),(s&3)===0||fo(o,s)||(a=!0,jk(o,s));o=o.next}}while(a);Fb=!1}}function NM(){jc=window.event,av()}function av(){ah=Hb=_b=!1;var e=0;yl!==0&&_M()&&(e=yl);for(var t=no(),a=null,o=th;o!==null;){var r=o.next,s=Gk(o,t);if(s===0)o.next=null,a===null?th=r:a.next=r,r===null&&(Vu=a);else if(a=o,e!==0||(s&3)!==0)ah=!0;o=r}Ka!==hl&&Ka!==Zm||Xd(e,!1),yl!==0&&(yl=0)}function Gk(e,t){for(var{suspendedLanes:a,pingedLanes:o,expirationTimes:r}=e,s=e.pendingLanes&-62914561;0<s;){var d=31-Ao(s),p=1<<d,b=r[d];if(b===-1){if((p&a)===0||(p&o)!==0)r[d]=Pl(p,t)}else b<=t&&(e.expiredLanes|=p);s&=~p}if(t=na,a=pt,a=ca(e,e===t?a:0,e.cancelPendingCommit!==null||e.timeoutHandle!==Ci),o=e.callbackNode,a===0||e===t&&(Jt===yi||Jt===vi)||e.cancelPendingCommit!==null)return o!==null&&ov(o),e.callbackNode=null,e.callbackPriority=0;if((a&3)===0||fo(e,a)){if(t=a&-a,t!==e.callbackPriority||K.actQueue!==null&&o!==Gb)ov(o);else return t;switch(L(a)){case un:case jn:a=Pv;break;case Ar:a=pu;break;case gm:a=Uv;break;default:a=pu}return o=Vk.bind(null,e),K.actQueue!==null?(K.actQueue.push(o),a=Gb):a=Bv(a,o),e.callbackPriority=t,e.callbackNode=a,t}return o!==null&&ov(o),e.callbackPriority=2,e.callbackNode=null,2}function Vk(e,t){if(qm=Nm=!1,jc=window.event,Ka!==hl&&Ka!==Zm)return e.callbackNode=null,e.callbackPriority=0,null;var a=e.callbackNode;if(Wn===Wm&&(Wn=qb),jd()&&e.callbackNode!==a)return null;var o=pt;if(o=ca(e,e===na?o:0,e.cancelPendingCommit!==null||e.timeoutHandle!==Ci),o===0)return null;return Lk(e,o,t),Gk(e,no()),e.callbackNode!=null&&e.callbackNode===a?Vk.bind(null,e):null}function jk(e,t){if(jd())return null;Nm=qm,qm=!1,Lk(e,t,!0)}function ov(e){e!==Gb&&e!==null&&kA(e)}function $k(){K.actQueue!==null&&K.actQueue.push(function(){return av(),null}),oE(function(){(Bt&(eo|pn))!==lo?Bv(zv,NM):av()})}function nv(){if(yl===0){var e=di;e===0&&(e=pm,pm<<=1,(pm&261888)===0&&(pm=256)),yl=e}return yl}function Xk(e){if(e==null||typeof e==="symbol"||typeof e==="boolean")return null;if(typeof e==="function")return e;return ke(e,"action"),Cd(""+e)}function Yk(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 qM(e,t,a,o,r){if(t==="submit"&&a&&a.stateNode===r){var s=Xk((r[Do]||null).action),d=o.submitter;d&&(t=(t=d[Do]||null)?Xk(t.formAction):d.getAttribute("formAction"),t!==null&&(s=t,d=null));var p=new Sm("action","action",null,o,r);e.push({event:p,listeners:[{instance:null,listener:function(){if(o.defaultPrevented){if(yl!==0){var b=d?Yk(r,d):new FormData(r),k={pending:!0,data:b,method:r.method,action:s};Object.freeze(k),Cy(a,k,null,b)}}else typeof s==="function"&&(p.preventDefault(),b=d?Yk(r,d):new FormData(r),k={pending:!0,data:b,method:r.method,action:s},Object.freeze(k),Cy(a,k,s,b))},currentTarget:r}]})}}function Jp(e,t,a){e.currentTarget=a;try{t(e)}catch(o){tb(o)}e.currentTarget=null}function Kk(e,t){t=(t&4)!==0;for(var a=0;a<e.length;a++){var o=e[a];e:{var r=void 0,s=o.event;if(o=o.listeners,t)for(var d=o.length-1;0<=d;d--){var p=o[d],b=p.instance,k=p.currentTarget;if(p=p.listener,b!==r&&s.isPropagationStopped())break e;b!==null?H(b,Jp,s,p,k):Jp(s,p,k),r=b}else for(d=0;d<o.length;d++){if(p=o[d],b=p.instance,k=p.currentTarget,p=p.listener,b!==r&&s.isPropagationStopped())break e;b!==null?H(b,Jp,s,p,k):Jp(s,p,k),r=b}}}}function At(e,t){Vb.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[_v];a===void 0&&(a=t[_v]=new Set);var o=e+"__bubble";a.has(o)||(Qk(t,e,2,!1),a.add(o))}function rv(e,t,a){Vb.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),Qk(a,e,o,t)}function sv(e){if(!e[oh]){e[oh]=!0,$L.forEach(function(a){a!=="selectionchange"&&(Vb.has(a)||rv(a,!1,e),rv(a,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[oh]||(t[oh]=!0,rv("selectionchange",!1,t))}}function Qk(e,t,a,o){switch(ML(t)){case un:var r=mA;break;case jn:r=hA;break;default:r=kv}a=r.bind(null,t,a,e),r=void 0,!jv||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 lv(e,t,a,o,r){var s=o;if((t&1)===0&&(t&2)===0&&o!==null)e:for(;;){if(o===null)return;var d=o.tag;if(d===3||d===4){var p=o.stateNode.containerInfo;if(p===r)break;if(d===4)for(d=o.return;d!==null;){var b=d.tag;if((b===3||b===4)&&d.stateNode.containerInfo===r)return;d=d.return}for(;p!==null;){if(d=Re(p),d===null)return;if(b=d.tag,b===5||b===6||b===26||b===27){o=s=d;continue e}p=p.parentNode}}o=o.return}l0(function(){var k=s,q=Mg(a),B=[];e:{var D=MC.get(e);if(D!==void 0){var F=Sm,pe=e;switch(e){case"keypress":if(lp(a)===0)break e;case"keydown":case"keyup":F=uD;break;case"focusin":pe="focus",F=Kv;break;case"focusout":pe="blur",F=Kv;break;case"beforeblur":case"afterblur":F=Kv;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":F=hC;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":F=WA;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":F=fD;break;case wC:case TC:case IC:F=eD;break;case RC:F=mD;break;case"scroll":case"scrollend":F=KA;break;case"wheel":F=gD;break;case"copy":case"cut":case"paste":F=aD;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":F=yC;break;case"toggle":case"beforetoggle":F=vD}var be=(t&4)!==0,ua=!be&&(e==="scroll"||e==="scrollend"),Dt=be?D!==null?D+"Capture":null:D;be=[];for(var A=k,E;A!==null;){var N=A;if(E=N.stateNode,N=N.tag,N!==5&&N!==26&&N!==27||E===null||Dt===null||(N=wd(A,Dt),N!=null&&be.push(Yd(A,N,E))),ua)break;A=A.return}0<be.length&&(D=new F(D,pe,null,a,q),B.push({event:D,listeners:be}))}}if((t&7)===0){e:{if(D=e==="mouseover"||e==="pointerover",F=e==="mouseout"||e==="pointerout",D&&a!==rc&&(pe=a.relatedTarget||a.fromElement)&&(Re(pe)||pe[Zs]))break e;if(F||D){if(D=q.window===q?q:(D=q.ownerDocument)?D.defaultView||D.parentWindow:window,F){if(pe=a.relatedTarget||a.toElement,F=k,pe=pe?Re(pe):null,pe!==null&&(ua=O(pe),be=pe.tag,pe!==ua||be!==5&&be!==27&&be!==6))pe=null}else F=null,pe=k;if(F!==pe){if(be=hC,N="onMouseLeave",Dt="onMouseEnter",A="mouse",e==="pointerout"||e==="pointerover")be=yC,N="onPointerLeave",Dt="onPointerEnter",A="pointer";if(ua=F==null?D:ot(F),E=pe==null?D:ot(pe),D=new be(N,A+"leave",F,a,q),D.target=ua,D.relatedTarget=E,N=null,Re(q)===k&&(be=new be(Dt,A+"enter",pe,a,q),be.target=E,be.relatedTarget=ua,N=be),ua=N,F&&pe)t:{be=OM,Dt=F,A=pe,E=0;for(N=Dt;N;N=be(N))E++;N=0;for(var J=A;J;J=be(J))N++;for(;0<E-N;)Dt=be(Dt),E--;for(;0<N-E;)A=be(A),N--;for(;E--;){if(Dt===A||A!==null&&Dt===A.alternate){be=Dt;break t}Dt=be(Dt),A=be(A)}be=null}else be=null;F!==null&&Wk(B,D,F,be,!1),pe!==null&&ua!==null&&Wk(B,ua,pe,be,!0)}}}e:{if(D=k?ot(k):window,F=D.nodeName&&D.nodeName.toLowerCase(),F==="select"||F==="input"&&D.type==="file")var ve=m0;else if(f0(D))if(LC)ve=XR;else{ve=jR;var tt=VR}else F=D.nodeName,!F||F.toLowerCase()!=="input"||D.type!=="checkbox"&&D.type!=="radio"?k&&Ld(k.elementType)&&(ve=m0):ve=$R;if(ve&&(ve=ve(e,k))){p0(B,ve,a,q);break e}tt&&tt(e,D,k),e==="focusout"&&k&&D.type==="number"&&k.memoizedProps.value!=null&&Lg(D,"number",D.value)}switch(tt=k?ot(k):window,e){case"focusin":if(f0(tt)||tt.contentEditable==="true")Su=tt,Wv=k,fc=null;break;case"focusout":fc=Wv=Su=null;break;case"mousedown":Zv=!0;break;case"contextmenu":case"mouseup":case"dragend":Zv=!1,S0(B,a,q);break;case"selectionchange":if(kD)break;case"keydown":case"keyup":S0(B,a,q)}var Oe;if(Qv)e:{switch(e){case"compositionstart":var Me="onCompositionStart";break e;case"compositionend":Me="onCompositionEnd";break e;case"compositionupdate":Me="onCompositionUpdate";break e}Me=void 0}else xu?d0(e,a)&&(Me="onCompositionEnd"):e==="keydown"&&a.keyCode===vC&&(Me="onCompositionStart");if(Me&&(bC&&a.locale!=="ko"&&(xu||Me!=="onCompositionStart"?Me==="onCompositionEnd"&&xu&&(Oe=i0()):(Js=q,$v=("value"in Js)?Js.value:Js.textContent,xu=!0)),tt=em(k,Me),0<tt.length&&(Me=new gC(Me,e,null,a,q),B.push({event:Me,listeners:tt}),Oe?Me.data=Oe:(Oe=c0(a),Oe!==null&&(Me.data=Oe)))),Oe=xD?_R(e,a):HR(e,a))Me=em(k,"onBeforeInput"),0<Me.length&&(tt=new nD("onBeforeInput","beforeinput",null,a,q),B.push({event:tt,listeners:Me}),tt.data=Oe);qM(B,e,k,a,q)}Kk(B,t)})}function Yd(e,t,a){return{instance:e,listener:t,currentTarget:a}}function em(e,t){for(var a=t+"Capture",o=[];e!==null;){var r=e,s=r.stateNode;if(r=r.tag,r!==5&&r!==26&&r!==27||s===null||(r=wd(e,a),r!=null&&o.unshift(Yd(e,r,s)),r=wd(e,t),r!=null&&o.push(Yd(e,r,s))),e.tag===3)return o;e=e.return}return[]}function OM(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e?e:null}function Wk(e,t,a,o,r){for(var s=t._reactName,d=[];a!==null&&a!==o;){var p=a,b=p.alternate,k=p.stateNode;if(p=p.tag,b!==null&&b===o)break;p!==5&&p!==26&&p!==27||k===null||(b=k,r?(k=wd(a,s),k!=null&&d.unshift(Yd(a,k,b))):r||(k=wd(a,s),k!=null&&d.push(Yd(a,k,b)))),a=a.return}d.length!==0&&e.push({event:t,listeners:d})}function iv(e,t){BR(e,t),e!=="input"&&e!=="textarea"&&e!=="select"||t==null||t.value!==null||pC||(pC=!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:ni,possibleRegistrationNames:Hv};Ld(e)||typeof t.is==="string"||PR(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 oo(e,t,a,o){t!==a&&(a=Xs(a),Xs(t)!==a&&(o[e]=t))}function BM(e,t,a){t.forEach(function(o){a[eL(o)]=o==="style"?dv(e):e.getAttribute(o)})}function Cr(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 Zk(e,t){return e=e.namespaceURI===vm||e.namespaceURI===gu?e.ownerDocument.createElementNS(e.namespaceURI,e.tagName):e.ownerDocument.createElement(e.tagName),e.innerHTML=t,e.innerHTML}function Xs(e){return st(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.",he(e)),Be(e)),(typeof e==="string"?e:""+e).replace(YD,`
176
+ `).replace(KD,"")}function Jk(e,t){return t=Xs(t),Xs(e)===t?!0:!1}function aa(e,t,a,o,r,s){switch(a){case"children":if(typeof o==="string")sp(o,t,!1),t==="body"||t==="textarea"&&o===""||kd(e,o);else if(typeof o==="number"||typeof o==="bigint")sp(""+o,t,!1),t!=="body"&&kd(e,""+o);break;case"className":op(e,"class",o);break;case"tabIndex":op(e,"tabindex",o);break;case"dir":case"role":case"viewBox":case"width":case"height":op(e,a,o);break;case"style":n0(e,o,s);break;case"data":if(t!=="object"){op(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}ke(o,a),o=Cd(""+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||sh||(sh=!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||rh||(rh=!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"||nh?t!=="button"||r.type==null||r.type==="submit"||nh?typeof o==="function"&&(r.name==null||Zw||(Zw=!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||sh||(sh=!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||rh||(rh=!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."))):(nh=!0,console.error('A button can only specify a formAction along with type="submit" or no type.')):(nh=!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 s==="function"&&(a==="formAction"?(t!=="input"&&aa(e,t,"name",r.name,r,null),aa(e,t,"formEncType",r.formEncType,r,null),aa(e,t,"formMethod",r.formMethod,r,null),aa(e,t,"formTarget",r.formTarget,r,null)):(aa(e,t,"encType",r.encType,r,null),aa(e,t,"method",r.method,r,null),aa(e,t,"target",r.target,r,null)));if(o==null||typeof o==="symbol"||typeof o==="boolean"){e.removeAttribute(a);break}ke(o,a),o=Cd(""+o),e.setAttribute(a,o);break;case"onClick":o!=null&&(typeof o!=="function"&&Cr(a,o),e.onclick=Zr);break;case"onScroll":o!=null&&(typeof o!=="function"&&Cr(a,o),At("scroll",e));break;case"onScrollEnd":o!=null&&(typeof o!=="function"&&Cr(a,o),At("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}ke(o,a),a=Cd(""+o),e.setAttributeNS(Si,"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"?(ke(o,a),e.setAttribute(a,""+o)):e.removeAttribute(a);break;case"inert":o!==""||lh[a]||(lh[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"?(ke(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?(ke(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):(ke(o,a),e.setAttribute(a,o));break;case"popover":At("beforetoggle",e),At("toggle",e),ap(e,"popover",o);break;case"xlinkActuate":Wr(e,Si,"xlink:actuate",o);break;case"xlinkArcrole":Wr(e,Si,"xlink:arcrole",o);break;case"xlinkRole":Wr(e,Si,"xlink:role",o);break;case"xlinkShow":Wr(e,Si,"xlink:show",o);break;case"xlinkTitle":Wr(e,Si,"xlink:title",o);break;case"xlinkType":Wr(e,Si,"xlink:type",o);break;case"xmlBase":Wr(e,jb,"xml:base",o);break;case"xmlLang":Wr(e,jb,"xml:lang",o);break;case"xmlSpace":Wr(e,jb,"xml:space",o);break;case"is":s!=null&&console.error('Cannot update the "is" prop after it has been initialized.'),ap(e,"is",o);break;case"innerText":case"textContent":break;case"popoverTarget":Jw||o==null||typeof o!=="object"||(Jw=!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=r0(a),ap(e,a,o)):ni.hasOwnProperty(a)&&o!=null&&typeof o!=="function"&&Cr(a,o)}}function uv(e,t,a,o,r,s){switch(a){case"style":n0(e,o,s);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"?kd(e,o):(typeof o==="number"||typeof o==="bigint")&&kd(e,""+o);break;case"onScroll":o!=null&&(typeof o!=="function"&&Cr(a,o),At("scroll",e));break;case"onScrollEnd":o!=null&&(typeof o!=="function"&&Cr(a,o),At("scrollend",e));break;case"onClick":o!=null&&(typeof o!=="function"&&Cr(a,o),e.onclick=Zr);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(ni.hasOwnProperty(a))o!=null&&typeof o!=="function"&&Cr(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),s=e[Do]||null,s=s!=null?s[a]:null,typeof s==="function"&&e.removeEventListener(t,s,r),typeof o==="function")){typeof s!=="function"&&s!==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,""):ap(e,a,o)}}}function ho(e,t,a){switch(iv(t,a),t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":At("error",e),At("load",e);var o=!1,r=!1,s;for(s in a)if(a.hasOwnProperty(s)){var d=a[s];if(d!=null)switch(s){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:aa(e,t,s,d,a,null)}}r&&aa(e,t,"srcSet",a.srcSet,a,null),o&&aa(e,t,"src",a.src,a,null);return;case"input":Bs("input",a),At("invalid",e);var p=s=d=r=null,b=null,k=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":d=q;break;case"checked":b=q;break;case"defaultChecked":k=q;break;case"value":s=q;break;case"defaultValue":p=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:aa(e,t,o,q,a,null)}}Fx(e,a),Gx(e,s,p,b,k,d,r,!1);return;case"select":Bs("select",a),At("invalid",e),o=d=s=null;for(r in a)if(a.hasOwnProperty(r)&&(p=a[r],p!=null))switch(r){case"value":s=p;break;case"defaultValue":d=p;break;case"multiple":o=p;default:aa(e,t,r,p,a,null)}$x(e,a),t=s,a=d,e.multiple=!!o,t!=null?Xi(e,!!o,t,!1):a!=null&&Xi(e,!!o,a,!0);return;case"textarea":Bs("textarea",a),At("invalid",e),s=r=o=null;for(d in a)if(a.hasOwnProperty(d)&&(p=a[d],p!=null))switch(d){case"value":o=p;break;case"defaultValue":r=p;break;case"children":s=p;break;case"dangerouslySetInnerHTML":if(p!=null)throw Error("`dangerouslySetInnerHTML` does not make sense on <textarea>.");break;default:aa(e,t,d,p,a,null)}Xx(e,a),Kx(e,o,r,s);return;case"option":Vx(e,a);for(b in a)if(a.hasOwnProperty(b)&&(o=a[b],o!=null))switch(b){case"selected":e.selected=o&&typeof o!=="function"&&typeof o!=="symbol";break;default:aa(e,t,b,o,a,null)}return;case"dialog":At("beforetoggle",e),At("toggle",e),At("cancel",e),At("close",e);break;case"iframe":case"object":At("load",e);break;case"video":case"audio":for(o=0;o<Fc.length;o++)At(Fc[o],e);break;case"image":At("error",e),At("load",e);break;case"details":At("toggle",e);break;case"embed":case"source":case"link":At("error",e),At("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(k in a)if(a.hasOwnProperty(k)&&(o=a[k],o!=null))switch(k){case"children":case"dangerouslySetInnerHTML":throw Error(t+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");default:aa(e,t,k,o,a,null)}return;default:if(Ld(t)){for(q in a)a.hasOwnProperty(q)&&(o=a[q],o!==void 0&&uv(e,t,q,o,a,void 0));return}}for(p in a)a.hasOwnProperty(p)&&(o=a[p],o!=null&&aa(e,t,p,o,a,null))}function zM(e,t,a,o){switch(iv(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,s=null,d=null,p=null,b=null,k=null,q=null;for(F in a){var B=a[F];if(a.hasOwnProperty(F)&&B!=null)switch(F){case"checked":break;case"value":break;case"defaultValue":b=B;default:o.hasOwnProperty(F)||aa(e,t,F,null,o,B)}}for(var D in o){var F=o[D];if(B=a[D],o.hasOwnProperty(D)&&(F!=null||B!=null))switch(D){case"type":s=F;break;case"name":r=F;break;case"checked":k=F;break;case"defaultChecked":q=F;break;case"value":d=F;break;case"defaultValue":p=F;break;case"children":case"dangerouslySetInnerHTML":if(F!=null)throw Error(t+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");break;default:F!==B&&aa(e,t,D,F,o,B)}}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||Ww||(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"),Ww=!0),!t||o||Qw||(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"),Qw=!0),kg(e,d,p,b,k,q,s,r);return;case"select":F=d=p=D=null;for(s in a)if(b=a[s],a.hasOwnProperty(s)&&b!=null)switch(s){case"value":break;case"multiple":F=b;default:o.hasOwnProperty(s)||aa(e,t,s,null,o,b)}for(r in o)if(s=o[r],b=a[r],o.hasOwnProperty(r)&&(s!=null||b!=null))switch(r){case"value":D=s;break;case"defaultValue":p=s;break;case"multiple":d=s;default:s!==b&&aa(e,t,r,s,o,b)}o=p,t=d,a=F,D!=null?Xi(e,!!t,D,!1):!!a!==!!t&&(o!=null?Xi(e,!!t,o,!0):Xi(e,!!t,t?[]:"",!1));return;case"textarea":F=D=null;for(p in a)if(r=a[p],a.hasOwnProperty(p)&&r!=null&&!o.hasOwnProperty(p))switch(p){case"value":break;case"children":break;default:aa(e,t,p,null,o,r)}for(d in o)if(r=o[d],s=a[d],o.hasOwnProperty(d)&&(r!=null||s!=null))switch(d){case"value":D=r;break;case"defaultValue":F=r;break;case"children":break;case"dangerouslySetInnerHTML":if(r!=null)throw Error("`dangerouslySetInnerHTML` does not make sense on <textarea>.");break;default:r!==s&&aa(e,t,d,r,o,s)}Yx(e,D,F);return;case"option":for(var pe in a)if(D=a[pe],a.hasOwnProperty(pe)&&D!=null&&!o.hasOwnProperty(pe))switch(pe){case"selected":e.selected=!1;break;default:aa(e,t,pe,null,o,D)}for(b in o)if(D=o[b],F=a[b],o.hasOwnProperty(b)&&D!==F&&(D!=null||F!=null))switch(b){case"selected":e.selected=D&&typeof D!=="function"&&typeof D!=="symbol";break;default:aa(e,t,b,D,o,F)}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 be in a)D=a[be],a.hasOwnProperty(be)&&D!=null&&!o.hasOwnProperty(be)&&aa(e,t,be,null,o,D);for(k in o)if(D=o[k],F=a[k],o.hasOwnProperty(k)&&D!==F&&(D!=null||F!=null))switch(k){case"children":case"dangerouslySetInnerHTML":if(D!=null)throw Error(t+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");break;default:aa(e,t,k,D,o,F)}return;default:if(Ld(t)){for(var ua in a)D=a[ua],a.hasOwnProperty(ua)&&D!==void 0&&!o.hasOwnProperty(ua)&&uv(e,t,ua,void 0,o,D);for(q in o)D=o[q],F=a[q],!o.hasOwnProperty(q)||D===F||D===void 0&&F===void 0||uv(e,t,q,D,o,F);return}}for(var Dt in a)D=a[Dt],a.hasOwnProperty(Dt)&&D!=null&&!o.hasOwnProperty(Dt)&&aa(e,t,Dt,null,o,D);for(B in o)D=o[B],F=a[B],!o.hasOwnProperty(B)||D===F||D==null&&F==null||aa(e,t,B,D,o,F)}function eL(e){switch(e){case"class":return"className";case"for":return"htmlFor";default:return e}}function dv(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 tL(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="",s;for(s in t)if(t.hasOwnProperty(s)){var d=t[s];d!=null&&typeof d!=="boolean"&&d!==""&&(s.indexOf("--")===0?(Xt(d,s),o+=r+s+":"+(""+d).trim()):typeof d!=="number"||d===0||cC.has(s)?(Xt(d,s),o+=r+s.replace(sC,"-$1").toLowerCase().replace(lC,"-ms-")+":"+(""+d).trim()):o+=r+s.replace(sC,"-$1").toLowerCase().replace(lC,"-ms-")+":"+d+"px",r=";")}o=o||null,t=e.getAttribute("style"),t!==o&&(o=Xs(o),Xs(t)!==o&&(a.style=dv(e)))}}function kn(e,t,a,o,r,s){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(ke(o,t),e===""+o)return}oo(t,e,o,s)}function aL(e,t,a,o,r,s){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}oo(t,e,o,s)}function cv(e,t,a,o,r,s){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(ke(o,a),e===""+o)return}oo(t,e,o,s)}function oL(e,t,a,o,r,s){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)&&(ke(o,t),e===""+o))return}oo(t,e,o,s)}function fv(e,t,a,o,r,s){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(ke(o,t),a=Cd(""+o),e===a)return}oo(t,e,o,s)}function nL(e,t,a,o){for(var r={},s=new Set,d=e.attributes,p=0;p<d.length;p++)switch(d[p].name.toLowerCase()){case"value":break;case"checked":break;case"selected":break;default:s.add(d[p].name)}if(Ld(t)){for(var b in a)if(a.hasOwnProperty(b)){var k=a[b];if(k!=null){if(ni.hasOwnProperty(b))typeof k!=="function"&&Cr(b,k);else if(a.suppressHydrationWarning!==!0)switch(b){case"children":typeof k!=="string"&&typeof k!=="number"||oo("children",e.textContent,k,r);continue;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":continue;case"dangerouslySetInnerHTML":d=e.innerHTML,k=k?k.__html:void 0,k!=null&&(k=Zk(e,k),oo(b,d,k,r));continue;case"style":s.delete(b),tL(e,k,r);continue;case"offsetParent":case"offsetTop":case"offsetLeft":case"offsetWidth":case"offsetHeight":case"isContentEditable":case"outerText":case"outerHTML":s.delete(b.toLowerCase()),console.error("Assignment to read-only property will result in a no-op: `%s`",b);continue;case"className":s.delete("class"),d=Ux(e,"class",k),oo("className",d,k,r);continue;default:o.context===xs&&t!=="svg"&&t!=="math"?s.delete(b.toLowerCase()):s.delete(b),d=Ux(e,b,k),oo(b,d,k,r)}}}}else for(k in a)if(a.hasOwnProperty(k)&&(b=a[k],b!=null)){if(ni.hasOwnProperty(k))typeof b!=="function"&&Cr(k,b);else if(a.suppressHydrationWarning!==!0)switch(k){case"children":typeof b!=="string"&&typeof b!=="number"||oo("children",e.textContent,b,r);continue;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"value":case"checked":case"selected":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":continue;case"dangerouslySetInnerHTML":d=e.innerHTML,b=b?b.__html:void 0,b!=null&&(b=Zk(e,b),d!==b&&(r[k]={__html:d}));continue;case"className":kn(e,k,"class",b,s,r);continue;case"tabIndex":kn(e,k,"tabindex",b,s,r);continue;case"style":s.delete(k),tL(e,b,r);continue;case"multiple":s.delete(k),oo(k,e.multiple,b,r);continue;case"muted":s.delete(k),oo(k,e.muted,b,r);continue;case"autoFocus":s.delete("autofocus"),oo(k,e.autofocus,b,r);continue;case"data":if(t!=="object"){s.delete(k),d=e.getAttribute("data"),oo(k,d,b,r);continue}case"src":case"href":if(!(b!==""||t==="a"&&k==="href"||t==="object"&&k==="data")){k==="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.',k,k):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.',k,k);continue}fv(e,k,k,b,s,r);continue;case"action":case"formAction":if(d=e.getAttribute(k),typeof b==="function"){s.delete(k.toLowerCase()),k==="formAction"?(s.delete("name"),s.delete("formenctype"),s.delete("formmethod"),s.delete("formtarget")):(s.delete("enctype"),s.delete("method"),s.delete("target"));continue}else if(d===QD){s.delete(k.toLowerCase()),oo(k,"function",b,r);continue}fv(e,k,k.toLowerCase(),b,s,r);continue;case"xlinkHref":fv(e,k,"xlink:href",b,s,r);continue;case"contentEditable":cv(e,k,"contenteditable",b,s,r);continue;case"spellCheck":cv(e,k,"spellcheck",b,s,r);continue;case"draggable":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":cv(e,k,k,b,s,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":aL(e,k,k.toLowerCase(),b,s,r);continue;case"capture":case"download":e:{p=e;var q=d=k,B=r;if(s.delete(q),p=p.getAttribute(q),p===null)switch(typeof b){case"undefined":case"function":case"symbol":break e;default:if(b===!1)break e}else if(b!=null)switch(typeof b){case"function":case"symbol":break;case"boolean":if(b===!0&&p==="")break e;break;default:if(ke(b,d),p===""+b)break e}oo(d,p,b,B)}continue;case"cols":case"rows":case"size":case"span":e:{if(p=e,q=d=k,B=r,s.delete(q),p=p.getAttribute(q),p===null)switch(typeof b){case"undefined":case"function":case"symbol":case"boolean":break e;default:if(isNaN(b)||1>b)break e}else if(b!=null)switch(typeof b){case"function":case"symbol":case"boolean":break;default:if(!(isNaN(b)||1>b)&&(ke(b,d),p===""+b))break e}oo(d,p,b,B)}continue;case"rowSpan":oL(e,k,"rowspan",b,s,r);continue;case"start":oL(e,k,k,b,s,r);continue;case"xHeight":kn(e,k,"x-height",b,s,r);continue;case"xlinkActuate":kn(e,k,"xlink:actuate",b,s,r);continue;case"xlinkArcrole":kn(e,k,"xlink:arcrole",b,s,r);continue;case"xlinkRole":kn(e,k,"xlink:role",b,s,r);continue;case"xlinkShow":kn(e,k,"xlink:show",b,s,r);continue;case"xlinkTitle":kn(e,k,"xlink:title",b,s,r);continue;case"xlinkType":kn(e,k,"xlink:type",b,s,r);continue;case"xmlBase":kn(e,k,"xml:base",b,s,r);continue;case"xmlLang":kn(e,k,"xml:lang",b,s,r);continue;case"xmlSpace":kn(e,k,"xml:space",b,s,r);continue;case"inert":b!==""||lh[k]||(lh[k]=!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.",k)),aL(e,k,k,b,s,r);continue;default:if(!(2<k.length)||k[0]!=="o"&&k[0]!=="O"||k[1]!=="n"&&k[1]!=="N"){p=r0(k),d=!1,o.context===xs&&t!=="svg"&&t!=="math"?s.delete(p.toLowerCase()):(q=k.toLowerCase(),q=bm.hasOwnProperty(q)?bm[q]||null:null,q!==null&&q!==k&&(d=!0,s.delete(q)),s.delete(p));e:if(q=e,B=p,p=b,bd(B))if(q.hasAttribute(B))q=q.getAttribute(B),ke(p,B),p=q===""+p?p:q;else{switch(typeof p){case"function":case"symbol":break e;case"boolean":if(q=B.toLowerCase().slice(0,5),q!=="data-"&&q!=="aria-")break e}p=p===void 0?void 0:null}else p=void 0;d||oo(k,p,b,r)}}}return 0<s.size&&a.suppressHydrationWarning!==!0&&BM(e,s,r),Object.keys(r).length===0?null:r}function PM(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 rL(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function UM(){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:s,initiatorType:d,duration:p}=r;if(s&&p&&rL(d)){d=0,p=r.responseEnd;for(o+=1;o<a.length;o++){var b=a[o],k=b.startTime;if(k>p)break;var q=b.transferSize,B=b.initiatorType;q&&rL(B)&&(b=b.responseEnd,d+=q*(b<p?1:(p-k)/(b-k)))}if(--o,t+=8*(s+d)/(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 tm(e){return e.nodeType===9?e:e.ownerDocument}function sL(e){switch(e){case gu:return $u;case vm:return uh;default:return xs}}function lL(e,t){if(e===xs)switch(t){case"svg":return $u;case"math":return uh;default:return xs}return e===$u&&t==="foreignObject"?xs:e}function pv(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 _M(){var e=window.event;if(e&&e.type==="popstate"){if(e===Kb)return!1;return Kb=e,!0}return Kb=null,!1}function Kd(){var e=window.event;return e&&e!==jc?e.type:null}function Qd(){var e=window.event;return e&&e!==jc?e.timeStamp:-1.1}function HM(e){setTimeout(function(){throw e})}function FM(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 GM(){}function VM(e,t,a,o){zM(e,t,a,o),e[Do]=o}function iL(e){kd(e,"")}function jM(e,t,a){e.nodeValue=a}function uL(e){if(!e.__reactWarnedAboutChildrenConflict){var t=e[Do]||null;if(t!==null){var a=at(e);a!==null&&(typeof t.children==="string"||typeof t.children==="number"?(e.__reactWarnedAboutChildrenConflict=!0,H(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,H(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 Ys(e){return e==="head"}function $M(e,t){e.removeChild(t)}function XM(e,t){(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e).removeChild(t)}function dL(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===Vc||a===ih){if(o===0){e.removeChild(r),du(t);return}o--}else if(a===Gc||a===vl||a===Li||a===ju||a===ki)o++;else if(a===ZD)Wd(e.ownerDocument.documentElement);else if(a===eE){a=e.ownerDocument.head,Wd(a);for(var s=a.firstChild;s;){var d=s.nextSibling,p=s.nodeName;s[nc]||p==="SCRIPT"||p==="STYLE"||p==="LINK"&&s.rel.toLowerCase()==="stylesheet"||a.removeChild(s),s=d}}else a===JD&&Wd(e.ownerDocument.body);a=r}while(a);du(t)}function cL(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===Vc)if(e===0)break;else e--;else a!==Gc&&a!==vl&&a!==Li&&a!==ju||e++;a=o}while(a)}function YM(e){cL(e,!0)}function KM(e){e=e.style,typeof e.setProperty==="function"?e.setProperty("display","none","important"):e.display="none"}function QM(e){e.nodeValue=""}function WM(e){cL(e,!1)}function ZM(e,t){t=t[tE],t=t!==void 0&&t!==null&&t.hasOwnProperty("display")?t.display:null,e.style.display=t==null||typeof t==="boolean"?"":(""+t).trim()}function JM(e,t){e.nodeValue=t}function mv(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":mv(a),ye(a);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(a.rel.toLowerCase()==="stylesheet")continue}e.removeChild(a)}}function eA(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"){ke(r.name,"name");var s=r.name==null?null:""+r.name;if(r.type==="hidden"&&e.getAttribute("name")===s)return e}else return e;else if(!e[nc])switch(t){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if(s=e.getAttribute("rel"),s==="stylesheet"&&e.hasAttribute("data-precedence"))break;else if(s!==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(s=e.getAttribute("src"),(s!==(r.src==null?null:r.src)||e.getAttribute("type")!==(r.type==null?null:r.type)||e.getAttribute("crossorigin")!==(r.crossOrigin==null?null:r.crossOrigin))&&s&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}if(e=rn(e.nextSibling),e===null)break}return null}function tA(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=rn(e.nextSibling),e===null)return null}return e}function fL(e,t){for(;e.nodeType!==8;){if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!t)return null;if(e=rn(e.nextSibling),e===null)return null}return e}function hv(e){return e.data===vl||e.data===Li}function gv(e){return e.data===ju||e.data===vl&&e.ownerDocument.readyState!==t1}function aA(e,t){var a=e.ownerDocument;if(e.data===Li)e._reactRetry=t;else if(e.data!==vl||a.readyState!==t1)t();else{var o=function(){t(),a.removeEventListener("DOMContentLoaded",o)};a.addEventListener("DOMContentLoaded",o),e._reactRetry=o}}function rn(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===Gc||t===ju||t===vl||t===Li||t===ki||t===$b||t===e1)break;if(t===Vc||t===ih)return null}}return e}function pL(e){if(e.nodeType===1){for(var t=e.nodeName.toLowerCase(),a={},o=e.attributes,r=0;r<o.length;r++){var s=o[r];a[eL(s.name)]=s.name.toLowerCase()==="style"?dv(e):s.value}return{type:t,props:a}}return e.nodeType===8?e.data===ki?{type:"Activity",props:{}}:{type:"Suspense",props:{}}:e.nodeValue}function mL(e,t,a){return a===null||a[WD]!==!0?(e.nodeValue===t?e=null:(t=Xs(t),e=Xs(e.nodeValue)===t?null:e.nodeValue),e):null}function yv(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var a=e.data;if(a===Vc||a===ih){if(t===0)return rn(e.nextSibling);t--}else a!==Gc&&a!==ju&&a!==vl&&a!==Li&&a!==ki||t++}e=e.nextSibling}return null}function hL(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var a=e.data;if(a===Gc||a===ju||a===vl||a===Li||a===ki){if(t===0)return e;t--}else a!==Vc&&a!==ih||t++}e=e.previousSibling}return null}function oA(e){du(e)}function nA(e){du(e)}function rA(e){du(e)}function gL(e,t,a,o,r){switch(r&&Rg(e,o.ancestorInfo),t=tm(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 sA(e,t,a,o){if(!a[Zs]&&at(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]);ho(a,e,t),a[go]=o,a[Do]=t}function Wd(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);ye(e)}function am(e){return typeof e.getRootNode==="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}function yL(e,t,a){var o=Xu;if(o&&typeof t==="string"&&t){var r=Sn(t);r='link[rel="'+e+'"][href="'+r+'"]',typeof a==="string"&&(r+='[crossorigin="'+a+'"]'),l1.has(r)||(l1.add(r),e={rel:e,crossOrigin:a,href:t},o.querySelector(r)===null&&(t=o.createElement("link"),ho(t,"link",e),ze(t),o.head.appendChild(t)))}}function vL(e,t,a,o){var r=(r=Qs.current)?am(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=zt(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 s=zt(r).hoistableStyles,d=s.get(e);if(!d&&(r=r.ownerDocument||r,d={type:"stylesheet",instance:null,count:0,state:{loading:wi,preload:null}},s.set(e,d),(s=r.querySelector(Zd(e)))&&!s._p&&(d.instance=s,d.state.loading=$c|Nn),!qn.has(e))){var p={rel:"preload",as:"style",href:a.href,crossOrigin:a.crossOrigin,integrity:a.integrity,media:a.media,hrefLang:a.hrefLang,referrerPolicy:a.referrerPolicy};qn.set(e,p),s||lA(r,e,p,d.state)}if(t&&o===null)throw a=`
177
177
 
178
- - `+em(t)+`
179
- + `+em(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 d}if(t&&o!==null)throw a=`
178
+ - `+om(t)+`
179
+ + `+om(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 d}if(t&&o!==null)throw a=`
180
180
 
181
- - `+em(t)+`
182
- + `+em(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=uu(a),t=zt(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 em(e){var t=0,a="<link";return typeof e.rel==="string"?(t++,a+=' rel="'+e.rel+'"'):Fr.call(e,"rel")&&(t++,a+=' rel="'+(e.rel===null?"null":"invalid type "+typeof e.rel)+'"'),typeof e.href==="string"?(t++,a+=' href="'+e.href+'"'):Fr.call(e,"href")&&(t++,a+=' href="'+(e.href===null?"null":"invalid type "+typeof e.href)+'"'),typeof e.precedence==="string"?(t++,a+=' precedence="'+e.precedence+'"'):Fr.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="'+br(e)+'"'}function Wd(e){return'link[rel="stylesheet"]['+e+"]"}function bL(e){return St({},e,{"data-precedence":e.precedence,precedence:null})}function nA(e,t,a,o){e.querySelector('link[rel="preload"][as="style"]['+t+"]")?o.loading=jc:(t=e.createElement("link"),o.preload=t,t.addEventListener("load",function(){return o.loading|=jc}),t.addEventListener("error",function(){return o.loading|=n1}),mo(t,"link",a),ze(t),e.head.appendChild(t))}function uu(e){return'[src="'+br(e)+'"]'}function Zd(e){return"script[async]"+e}function xL(e,t,a){if(t.count++,t.instance===null)switch(t.type){case"style":var o=e.querySelector('style[data-href~="'+br(a.href)+'"]');if(o)return t.instance=o,ze(o),o;var n=St({},a,{"data-href":a.href,"data-precedence":a.precedence,href:null,precedence:null});return o=(e.ownerDocument||e).createElement("style"),ze(o),mo(o,"style",n),tm(o,a.precedence,e),t.instance=o;case"stylesheet":n=iu(a.href);var s=e.querySelector(Wd(n));if(s)return t.state.loading|=Dr,t.instance=s,ze(s),s;o=bL(a),(n=Er.get(n))&&gv(o,n),s=(e.ownerDocument||e).createElement("link"),ze(s);var d=s;return d._p=new Promise(function(p,b){d.onload=p,d.onerror=b}),mo(s,"link",o),t.state.loading|=Dr,tm(s,a.precedence,e),t.instance=s;case"script":if(s=uu(a.src),n=e.querySelector(Zd(s)))return t.instance=n,ze(n),n;if(o=a,n=Er.get(s))o=St({},a),yv(o,n);return e=e.ownerDocument||e,n=e.createElement("script"),ze(n),mo(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&Dr)===wi&&(o=t.instance,t.state.loading|=Dr,tm(o,a.precedence,e));return t.instance}function tm(e,t,a){for(var o=a.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),n=o.length?o[o.length-1]:null,s=n,d=0;d<o.length;d++){var p=o[d];if(p.dataset.precedence===t)s=p;else if(s!==n)break}s?s.parentNode.insertBefore(e,s.nextSibling):(t=a.nodeType===9?a.head:a,t.insertBefore(e,t.firstChild))}function gv(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.title==null&&(e.title=t.title)}function yv(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.integrity==null&&(e.integrity=t.integrity)}function SL(e,t,a){if(lh===null){var o=new Map,n=lh=new Map;n.set(a,o)}else n=lh,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 s=a[n];if(!(s[oc]||s[ho]||e==="link"&&s.getAttribute("rel")==="stylesheet")&&s.namespaceURI!==gu){var d=s.getAttribute(t)||"";d=e+d;var p=o.get(d);p?p.push(s):o.set(d,[s])}}return o}function kL(e,t,a){e=e.ownerDocument||e,e.head.insertBefore(a,t==="title"?e.querySelector("head > title"):null)}function sA(e,t,a){var o=!a.ancestorInfo.containerTagInScope;if(a.context===$u||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,s=t.disabled;a=[],t.onLoad&&a.push("`onLoad`"),n&&a.push("`onError`"),s!=null&&a.push("`disabled`"),n=BM(a,"and"),n+=a.length===1?" prop":" props",s=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,s,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 LL(e){return e.type==="stylesheet"&&(e.state.loading&s1)===wi?!1:!0}function lA(e,t,a,o){if(a.type==="stylesheet"&&(typeof o.media!=="string"||matchMedia(o.media).matches!==!1)&&(a.state.loading&Dr)===wi){if(a.instance===null){var n=iu(o.href),s=t.querySelector(Wd(n));if(s){t=s._p,t!==null&&typeof t==="object"&&typeof t.then==="function"&&(e.count++,e=am.bind(e),t.then(e,e)),a.state.loading|=Dr,a.instance=s,ze(s);return}s=t.ownerDocument||t,o=bL(o),(n=Er.get(n))&&gv(o,n),s=s.createElement("link"),ze(s);var d=s;d._p=new Promise(function(p,b){d.onload=p,d.onerror=b}),mo(s,"link",o),a.instance=s}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(a,t),(t=a.state.preload)&&(a.state.loading&s1)===wi&&(e.count++,a=am.bind(e),t.addEventListener("load",a),t.addEventListener("error",a))}}function iA(e,t){return e.stylesheets&&e.count===0&&om(e,e.stylesheets),0<e.count||0<e.imgCount?function(a){var o=setTimeout(function(){if(e.stylesheets&&om(e,e.stylesheets),e.unsuspend){var s=e.unsuspend;e.unsuspend=null,s()}},aE+t);0<e.imgBytes&&Kb===0&&(Kb=125*zM()*rE);var n=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&om(e,e.stylesheets),e.unsuspend)){var s=e.unsuspend;e.unsuspend=null,s()}},(e.imgBytes>Kb?50:oE)+t);return e.unsuspend=a,function(){e.unsuspend=null,clearTimeout(o),clearTimeout(n)}}:null}function am(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)om(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}function om(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,ih=new Map,t.forEach(uA,e),ih=null,am.call(e))}function uA(e,t){if(!(t.state.loading&Dr)){var a=ih.get(e);if(a)var o=a.get(Qb);else{a=new Map,ih.set(e,a);for(var n=e.querySelectorAll("link[data-precedence],style[data-precedence]"),s=0;s<n.length;s++){var d=n[s];if(d.nodeName==="LINK"||d.getAttribute("media")!=="not all")a.set(d.dataset.precedence,d),o=d}o&&a.set(Qb,o)}n=t.instance,d=n.getAttribute("data-precedence"),s=a.get(d)||o,s===o&&a.set(Qb,n),a.set(d,n),this.count++,o=am.bind(this),n.addEventListener("load",o),n.addEventListener("error",o),s?s.parentNode.insertBefore(n,s.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(n,e.firstChild)),t.state.loading|=Dr}}function dA(e,t,a,o,n,s,d,p,b){this.tag=1,this.containerInfo=e,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=Ci,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=$i(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=$i(0),this.hiddenUpdates=$i(null),this.identifierPrefix=o,this.onUncaughtError=n,this.onCaughtError=s,this.onRecoverableError=d,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=b,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 CL(e,t,a,o,n,s,d,p,b,k,O,B){return e=new dA(e,t,a,d,b,k,O,B,p),t=MD,s===!0&&(t|=ko|Vr),t|=ct,s=C(3,null,null,t),e.current=s,s.stateNode=e,t=jg(),Wl(t),e.pooledCache=t,Wl(t),s.memoizedState={element:o,isDehydrated:a,cache:t},Qg(s),e}function wL(e){if(!e)return el;return e=el,e}function vv(e,t,a,o,n,s){if(So&&typeof So.onScheduleFiberRoot==="function")try{So.onScheduleFiberRoot(mu,o,a)}catch(d){Tn||(Tn=!0,console.error("React instrumentation encountered an error: %o",d))}n=wL(n),o.context===null?o.context=n:o.pendingContext=n,wn&&nr!==null&&!c1&&(c1=!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
+ - `+om(t)+`
182
+ + `+om(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=uu(a),t=zt(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 om(e){var t=0,a="<link";return typeof e.rel==="string"?(t++,a+=' rel="'+e.rel+'"'):Vn.call(e,"rel")&&(t++,a+=' rel="'+(e.rel===null?"null":"invalid type "+typeof e.rel)+'"'),typeof e.href==="string"?(t++,a+=' href="'+e.href+'"'):Vn.call(e,"href")&&(t++,a+=' href="'+(e.href===null?"null":"invalid type "+typeof e.href)+'"'),typeof e.precedence==="string"?(t++,a+=' precedence="'+e.precedence+'"'):Vn.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="'+Sn(e)+'"'}function Zd(e){return'link[rel="stylesheet"]['+e+"]"}function bL(e){return kt({},e,{"data-precedence":e.precedence,precedence:null})}function lA(e,t,a,o){e.querySelector('link[rel="preload"][as="style"]['+t+"]")?o.loading=$c:(t=e.createElement("link"),o.preload=t,t.addEventListener("load",function(){return o.loading|=$c}),t.addEventListener("error",function(){return o.loading|=r1}),ho(t,"link",a),ze(t),e.head.appendChild(t))}function uu(e){return'[src="'+Sn(e)+'"]'}function Jd(e){return"script[async]"+e}function xL(e,t,a){if(t.count++,t.instance===null)switch(t.type){case"style":var o=e.querySelector('style[data-href~="'+Sn(a.href)+'"]');if(o)return t.instance=o,ze(o),o;var r=kt({},a,{"data-href":a.href,"data-precedence":a.precedence,href:null,precedence:null});return o=(e.ownerDocument||e).createElement("style"),ze(o),ho(o,"style",r),nm(o,a.precedence,e),t.instance=o;case"stylesheet":r=iu(a.href);var s=e.querySelector(Zd(r));if(s)return t.state.loading|=Nn,t.instance=s,ze(s),s;o=bL(a),(r=qn.get(r))&&vv(o,r),s=(e.ownerDocument||e).createElement("link"),ze(s);var d=s;return d._p=new Promise(function(p,b){d.onload=p,d.onerror=b}),ho(s,"link",o),t.state.loading|=Nn,nm(s,a.precedence,e),t.instance=s;case"script":if(s=uu(a.src),r=e.querySelector(Jd(s)))return t.instance=r,ze(r),r;if(o=a,r=qn.get(s))o=kt({},a),bv(o,r);return e=e.ownerDocument||e,r=e.createElement("script"),ze(r),ho(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&Nn)===wi&&(o=t.instance,t.state.loading|=Nn,nm(o,a.precedence,e));return t.instance}function nm(e,t,a){for(var o=a.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),r=o.length?o[o.length-1]:null,s=r,d=0;d<o.length;d++){var p=o[d];if(p.dataset.precedence===t)s=p;else if(s!==r)break}s?s.parentNode.insertBefore(e,s.nextSibling):(t=a.nodeType===9?a.head:a,t.insertBefore(e,t.firstChild))}function vv(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.title==null&&(e.title=t.title)}function bv(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.integrity==null&&(e.integrity=t.integrity)}function SL(e,t,a){if(dh===null){var o=new Map,r=dh=new Map;r.set(a,o)}else r=dh,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 s=a[r];if(!(s[nc]||s[go]||e==="link"&&s.getAttribute("rel")==="stylesheet")&&s.namespaceURI!==gu){var d=s.getAttribute(t)||"";d=e+d;var p=o.get(d);p?p.push(s):o.set(d,[s])}}return o}function kL(e,t,a){e=e.ownerDocument||e,e.head.insertBefore(a,t==="title"?e.querySelector("head > title"):null)}function iA(e,t,a){var o=!a.ancestorInfo.containerTagInScope;if(a.context===$u||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,s=t.disabled;a=[],t.onLoad&&a.push("`onLoad`"),r&&a.push("`onError`"),s!=null&&a.push("`disabled`"),r=PM(a,"and"),r+=a.length===1?" prop":" props",s=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,s,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 LL(e){return e.type==="stylesheet"&&(e.state.loading&s1)===wi?!1:!0}function uA(e,t,a,o){if(a.type==="stylesheet"&&(typeof o.media!=="string"||matchMedia(o.media).matches!==!1)&&(a.state.loading&Nn)===wi){if(a.instance===null){var r=iu(o.href),s=t.querySelector(Zd(r));if(s){t=s._p,t!==null&&typeof t==="object"&&typeof t.then==="function"&&(e.count++,e=rm.bind(e),t.then(e,e)),a.state.loading|=Nn,a.instance=s,ze(s);return}s=t.ownerDocument||t,o=bL(o),(r=qn.get(r))&&vv(o,r),s=s.createElement("link"),ze(s);var d=s;d._p=new Promise(function(p,b){d.onload=p,d.onerror=b}),ho(s,"link",o),a.instance=s}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(a,t),(t=a.state.preload)&&(a.state.loading&s1)===wi&&(e.count++,a=rm.bind(e),t.addEventListener("load",a),t.addEventListener("error",a))}}function dA(e,t){return e.stylesheets&&e.count===0&&sm(e,e.stylesheets),0<e.count||0<e.imgCount?function(a){var o=setTimeout(function(){if(e.stylesheets&&sm(e,e.stylesheets),e.unsuspend){var s=e.unsuspend;e.unsuspend=null,s()}},nE+t);0<e.imgBytes&&Wb===0&&(Wb=125*UM()*sE);var r=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&sm(e,e.stylesheets),e.unsuspend)){var s=e.unsuspend;e.unsuspend=null,s()}},(e.imgBytes>Wb?50:rE)+t);return e.unsuspend=a,function(){e.unsuspend=null,clearTimeout(o),clearTimeout(r)}}:null}function rm(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)sm(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}function sm(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,ch=new Map,t.forEach(cA,e),ch=null,rm.call(e))}function cA(e,t){if(!(t.state.loading&Nn)){var a=ch.get(e);if(a)var o=a.get(Zb);else{a=new Map,ch.set(e,a);for(var r=e.querySelectorAll("link[data-precedence],style[data-precedence]"),s=0;s<r.length;s++){var d=r[s];if(d.nodeName==="LINK"||d.getAttribute("media")!=="not all")a.set(d.dataset.precedence,d),o=d}o&&a.set(Zb,o)}r=t.instance,d=r.getAttribute("data-precedence"),s=a.get(d)||o,s===o&&a.set(Zb,r),a.set(d,r),this.count++,o=rm.bind(this),r.addEventListener("load",o),r.addEventListener("error",o),s?s.parentNode.insertBefore(r,s.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(r,e.firstChild)),t.state.loading|=Nn}}function fA(e,t,a,o,r,s,d,p,b){this.tag=1,this.containerInfo=e,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=Ci,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=$i(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=$i(0),this.hiddenUpdates=$i(null),this.identifierPrefix=o,this.onUncaughtError=r,this.onCaughtError=s,this.onRecoverableError=d,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=b,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 CL(e,t,a,o,r,s,d,p,b,k,q,B){return e=new fA(e,t,a,d,b,k,q,B,p),t=DD,s===!0&&(t|=Co|$n),t|=ct,s=C(3,null,null,t),e.current=s,s.stateNode=e,t=Xg(),Wl(t),e.pooledCache=t,Wl(t),s.memoizedState={element:o,isDehydrated:a,cache:t},Zg(s),e}function wL(e){if(!e)return al;return e=al,e}function xv(e,t,a,o,r,s){if(Lo&&typeof Lo.onScheduleFiberRoot==="function")try{Lo.onScheduleFiberRoot(mu,o,a)}catch(d){Rr||(Rr=!0,console.error("React instrumentation encountered an error: %o",d))}r=wL(r),o.context===null?o.context=r:o.pendingContext=r,Ir&&ln!==null&&!c1&&(c1=!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.`,X(nr)||"Unknown")),o=Us(t),o.payload={element:a},s=s===void 0?null:s,s!==null&&(typeof s!=="function"&&console.error("Expected the last optional `callback` argument to be a function. Instead received: %s.",s),o.callback=s),a=_s(e,o,t),a!==null&&(dn(t,"root.render()",null),Ta(a,e,t),Ed(a,e,t))}function TL(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var a=e.retryLane;e.retryLane=a!==0&&a<t?a:t}}function bv(e,t){TL(e,t),(e=e.alternate)&&TL(e,t)}function IL(e){if(e.tag===13||e.tag===31){var t=xo(e,67108864);t!==null&&Ta(t,e,67108864),bv(e,67108864)}}function RL(e){if(e.tag===13||e.tag===31){var t=ar(e);t=Fl(t);var a=xo(e,t);a!==null&&Ta(a,e,t),bv(e,t)}}function cA(){return nr}function fA(e,t,a,o){var n=Y.T;Y.T=null;var s=Kt.p;try{Kt.p=sr,xv(e,t,a,o)}finally{Kt.p=s,Y.T=n}}function pA(e,t,a,o){var n=Y.T;Y.T=null;var s=Kt.p;try{Kt.p=Gr,xv(e,t,a,o)}finally{Kt.p=s,Y.T=n}}function xv(e,t,a,o){if(dh){var n=Sv(o);if(n===null)nv(e,t,o,ch,a),AL(e,o);else if(mA(n,e,t,a,o))o.stopPropagation();else if(AL(e,o),t&4&&-1<sE.indexOf(e)){for(;n!==null;){var s=at(n);if(s!==null)switch(s.tag){case 3:if(s=s.stateNode,s.current.memoizedState.isDehydrated){var d=qt(s.pendingLanes);if(d!==0){var p=s;p.pendingLanes|=2;for(p.entangledLanes|=2;d;){var b=1<<31-Io(d);p.entanglements[1]|=b,d&=~b}Sn(s),(Bt&(Ja|dr))===so&&(Xm=oo()+Uw,$d(0,!1))}}break;case 31:case 13:p=xo(s,2),p!==null&&Ta(p,s,2),nu(),bv(s,2)}if(s=Sv(o),s===null&&nv(e,t,o,ch,a),s===n)break;n=s}n!==null&&o.stopPropagation()}else nv(e,t,o,null,a)}}function Sv(e){return e=Ig(e),kv(e)}function kv(e){if(ch=null,e=Re(e),e!==null){var t=N(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=V(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 ch=e,null}function ML(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 sr;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 Gr;case"message":switch(LA()){case Ov:return sr;case Bv:return Gr;case pu:case CA:return Rn;case zv:return pm;default:return Rn}default:return Rn}}function AL(e,t){switch(e){case"focusin":case"focusout":yl=null;break;case"dragenter":case"dragleave":vl=null;break;case"mouseover":case"mouseout":bl=null;break;case"pointerover":case"pointerout":Xc.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Yc.delete(t.pointerId)}}function Jd(e,t,a,o,n,s){if(e===null||e.nativeEvent!==s)return e={blockedOn:t,domEventName:a,eventSystemFlags:o,nativeEvent:s,targetContainers:[n]},t!==null&&(t=at(t),t!==null&&IL(t)),e;return e.eventSystemFlags|=o,t=e.targetContainers,n!==null&&t.indexOf(n)===-1&&t.push(n),e}function mA(e,t,a,o,n){switch(t){case"focusin":return yl=Jd(yl,e,t,a,o,n),!0;case"dragenter":return vl=Jd(vl,e,t,a,o,n),!0;case"mouseover":return bl=Jd(bl,e,t,a,o,n),!0;case"pointerover":var s=n.pointerId;return Xc.set(s,Jd(Xc.get(s)||null,e,t,a,o,n)),!0;case"gotpointercapture":return s=n.pointerId,Yc.set(s,Jd(Yc.get(s)||null,e,t,a,o,n)),!0}return!1}function DL(e){var t=Re(e.target);if(t!==null){var a=N(t);if(a!==null){if(t=a.tag,t===13){if(t=P(a),t!==null){e.blockedOn=t,ie(e.priority,function(){RL(a)});return}}else if(t===31){if(t=V(a),t!==null){e.blockedOn=t,ie(e.priority,function(){RL(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 rm(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var a=Sv(e.nativeEvent);if(a===null){a=e.nativeEvent;var o=new a.constructor(a.type,a),n=o;rc!==null&&console.error("Expected currently replaying event to be null. This error is likely caused by a bug in React. Please file an issue."),rc=n,a.target.dispatchEvent(o),rc===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."),rc=null}else return t=at(a),t!==null&&IL(t),e.blockedOn=a,!1;t.shift()}return!0}function EL(e,t,a){rm(e)&&a.delete(t)}function hA(){Wb=!1,yl!==null&&rm(yl)&&(yl=null),vl!==null&&rm(vl)&&(vl=null),bl!==null&&rm(bl)&&(bl=null),Xc.forEach(EL),Yc.forEach(EL)}function nm(e,t){e.blockedOn===t&&(e.blockedOn=null,Wb||(Wb=!0,Pt.unstable_scheduleCallback(Pt.unstable_NormalPriority,hA)))}function NL(e){fh!==e&&(fh=e,Pt.unstable_scheduleCallback(Pt.unstable_NormalPriority,function(){fh===e&&(fh=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(kv(o||a)===null)continue;else break;var s=at(a);s!==null&&(e.splice(t,3),t-=3,a={pending:!0,data:n,method:a.method,action:o},Object.freeze(a),ky(s,a,o,n))}}))}function du(e){function t(b){return nm(b,e)}yl!==null&&nm(yl,e),vl!==null&&nm(vl,e),bl!==null&&nm(bl,e),Xc.forEach(t),Yc.forEach(t);for(var a=0;a<xl.length;a++){var o=xl[a];o.blockedOn===e&&(o.blockedOn=null)}for(;0<xl.length&&(a=xl[0],a.blockedOn===null);)DL(a),a.blockedOn===null&&xl.shift();if(a=(e.ownerDocument||e).$$reactFormReplay,a!=null)for(o=0;o<a.length;o+=3){var n=a[o],s=a[o+1],d=n[Ro]||null;if(typeof s==="function")d||NL(a);else if(d){var p=null;if(s&&s.hasAttribute("formAction")){if(n=s,d=s[Ro]||null)p=d.formAction;else if(kv(n)!==null)continue}else p=d.action;typeof p==="function"?a[o+1]=p:(a.splice(o,3),o-=3),NL(a)}}}function qL(){function e(s){s.canIntercept&&s.info==="react-transition"&&s.intercept({handler:function(){return new Promise(function(d){return n=d})},focusReset:"manual",scroll:"manual"})}function t(){n!==null&&(n(),n=null),o||setTimeout(a,20)}function a(){if(!o&&!navigation.transition){var s=navigation.currentEntry;s&&s.url!=null&&navigation.navigate(s.url,{state:s.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 Lv(e){this._internalRoot=e}function sm(e){this._internalRoot=e}function OL(e){e[Qs]&&(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 St=Object.assign,gA=Symbol.for("react.element"),Ln=Symbol.for("react.transitional.element"),cu=Symbol.for("react.portal"),fu=Symbol.for("react.fragment"),lm=Symbol.for("react.strict_mode"),Cv=Symbol.for("react.profiler"),wv=Symbol.for("react.consumer"),Cn=Symbol.for("react.context"),ec=Symbol.for("react.forward_ref"),Tv=Symbol.for("react.suspense"),Iv=Symbol.for("react.suspense_list"),im=Symbol.for("react.memo"),rr=Symbol.for("react.lazy"),Rv=Symbol.for("react.activity"),yA=Symbol.for("react.memo_cache_sentinel"),BL=Symbol.iterator,vA=Symbol.for("react.client.reference"),Wa=Array.isArray,Y=Ku.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Kt=Jb.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,bA=Object.freeze({pending:!1,data:null,method:null,action:null}),Mv=[],Av=[],rs=-1,Xs=Le(null),tc=Le(null),Ys=Le(null),um=Le(null),ac=0,zL,PL,UL,_L,HL,FL,GL;Z.__reactDisabledLog=!0;var Dv,VL,Ev=!1,Nv=new(typeof WeakMap==="function"?WeakMap:Map),nr=null,wn=!1,Fr=Object.prototype.hasOwnProperty,qv=Pt.unstable_scheduleCallback,xA=Pt.unstable_cancelCallback,SA=Pt.unstable_shouldYield,kA=Pt.unstable_requestPaint,oo=Pt.unstable_now,LA=Pt.unstable_getCurrentPriorityLevel,Ov=Pt.unstable_ImmediatePriority,Bv=Pt.unstable_UserBlockingPriority,pu=Pt.unstable_NormalPriority,CA=Pt.unstable_LowPriority,zv=Pt.unstable_IdlePriority,wA=Pt.log,TA=Pt.unstable_setDisableYieldValue,mu=null,So=null,Tn=!1,In=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u",Io=Math.clz32?Math.clz32:Vi,{log:IA,LN2:RA}=Math,dm=256,cm=262144,fm=4194304,sr=2,Gr=8,Rn=32,pm=268435456,Ks=Math.random().toString(36).slice(2),ho="__reactFiber$"+Ks,Ro="__reactProps$"+Ks,Qs="__reactContainer$"+Ks,Pv="__reactEvents$"+Ks,MA="__reactListeners$"+Ks,AA="__reactHandles$"+Ks,jL="__reactResources$"+Ks,oc="__reactMarker$"+Ks,$L=new Set,ri={},Uv={},DA={button:!0,checkbox:!0,image:!0,hidden:!0,radio:!0,reset:!0,submit:!0},EA=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]*$"),XL={},YL={},NA=/[\n"\\]/g,KL=!1,QL=!1,WL=!1,ZL=!1,JL=!1,eC=!1,tC=["value","defaultValue"],aC=!1,oC=/["'&<>\n\t]|^\s|\s$/,qA="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(" "),rC="applet caption html table td th marquee object template foreignObject desc title".split(" "),OA=rC.concat(["button"]),BA="dd dt li option optgroup p rp rt".split(" "),nC={current:null,formTag:null,aTagInScope:null,buttonTagInScope:null,nobrTagInScope:null,pTagInButtonScope:null,listItemTagAutoclosing:null,dlItemTagAutoclosing:null,containerTagInScope:null,implicitRootScope:!1},mm={},_v={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"]},sC=/([A-Z])/g,lC=/^ms-/,zA=/^(?:webkit|moz|o)[A-Z]/,PA=/^-ms-/,UA=/-(.)/g,iC=/;\s*$/,hu={},Hv={},uC=!1,dC=!1,cC=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(" ")),hm="http://www.w3.org/1998/Math/MathML",gu="http://www.w3.org/2000/svg",_A=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"]]),gm={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"},fC={"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},yu={},HA=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]*$"),FA=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]*$"),pC=!1,Mo={},mC=/^on./,GA=/^on[^A-Z]/,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]*$"),jA=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]*$"),$A=/^[\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,rc=null,vu=null,bu=null,Fv=!1,Mn=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Gv=!1;if(Mn)try{var nc={};Object.defineProperty(nc,"passive",{get:function(){Gv=!0}}),window.addEventListener("test",nc,nc),window.removeEventListener("test",nc,nc)}catch(e){Gv=!1}var Ws=null,Vv=null,ym=null,ni={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},vm=Uo(ni),sc=St({},ni,{view:0,detail:0}),XA=Uo(sc),jv,$v,lc,bm=St({},sc,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Rg,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"?(jv=e.screenX-lc.screenX,$v=e.screenY-lc.screenY):$v=jv=0,lc=e),jv},movementY:function(e){return"movementY"in e?e.movementY:$v}}),hC=Uo(bm),YA=St({},bm,{dataTransfer:0}),KA=Uo(YA),QA=St({},sc,{relatedTarget:0}),Xv=Uo(QA),WA=St({},ni,{animationName:0,elapsedTime:0,pseudoElement:0}),ZA=Uo(WA),JA=St({},ni,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),eD=Uo(JA),tD=St({},ni,{data:0}),gC=Uo(tD),aD=gC,oD={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},rD={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"},nD={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"},sD=St({},sc,{key:function(e){if(e.key){var t=oD[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=rp(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?rD[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Rg,charCode:function(e){return e.type==="keypress"?rp(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?rp(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),lD=Uo(sD),iD=St({},bm,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),yC=Uo(iD),uD=St({},sc,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Rg}),dD=Uo(uD),cD=St({},ni,{propertyName:0,elapsedTime:0,pseudoElement:0}),fD=Uo(cD),pD=St({},bm,{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}),mD=Uo(pD),hD=St({},ni,{newState:0,oldState:0}),gD=Uo(hD),yD=[9,13,27,32],vC=229,Yv=Mn&&"CompositionEvent"in window,ic=null;Mn&&"documentMode"in document&&(ic=document.documentMode);var vD=Mn&&"TextEvent"in window&&!ic,bC=Mn&&(!Yv||ic&&8<ic&&11>=ic),xC=32,SC=String.fromCharCode(xC),kC=!1,xu=!1,bD={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},uc=null,dc=null,LC=!1;Mn&&(LC=_R("input")&&(!document.documentMode||9<document.documentMode));var Ao=typeof Object.is==="function"?Object.is:$R,xD=Mn&&"documentMode"in document&&11>=document.documentMode,Su=null,Kv=null,cc=null,Qv=!1,ku={animationend:Vl("Animation","AnimationEnd"),animationiteration:Vl("Animation","AnimationIteration"),animationstart:Vl("Animation","AnimationStart"),transitionrun:Vl("Transition","TransitionRun"),transitionstart:Vl("Transition","TransitionStart"),transitioncancel:Vl("Transition","TransitionCancel"),transitionend:Vl("Transition","TransitionEnd")},Wv={},CC={};Mn&&(CC=document.createElement("div").style,("AnimationEvent"in window)||(delete ku.animationend.animation,delete ku.animationiteration.animation,delete ku.animationstart.animation),("TransitionEvent"in window)||delete ku.transitionend.transition);var wC=jl("animationend"),TC=jl("animationiteration"),IC=jl("animationstart"),SD=jl("transitionrun"),kD=jl("transitionstart"),LD=jl("transitioncancel"),RC=jl("transitionend"),MC=new Map,Zv="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(" ");Zv.push("scrollEnd");var AC=0;if(typeof performance==="object"&&typeof performance.now==="function")var CD=performance,DC=function(){return CD.now()};else{var wD=Date;DC=function(){return wD.now()}}var Jv=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)},TD="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.",xm=0,eb=1,tb=2,ab=3,Sm="– ",km="+ ",EC="  ",ca=typeof console<"u"&&typeof console.timeStamp==="function"&&typeof performance<"u"&&typeof performance.measure==="function",Sr="Components ⚛",kt="Scheduler ⚛",Tt="Blocking",Zs=!1,ns={color:"primary",properties:null,tooltipText:"",track:Sr},Js={start:-0,end:-0,detail:{devtools:ns}},ID=["Changed Props",""],NC="This component received deeply equal props. It might benefit from useMemo or the React Compiler in its owner.",RD=["Changed Props",NC],fc=1,ss=2,kr=[],Lu=0,ob=0,el={};Object.freeze(el);var Lr=null,Cu=null,Ke=0,MD=1,ct=2,ko=8,Vr=16,AD=32,qC=!1;try{var OC=Object.preventExtensions({})}catch(e){qC=!0}var rb=new WeakMap,wu=[],Tu=0,Lm=null,pc=0,Cr=[],wr=0,si=null,ls=1,is="",go=null,fa=null,It=!1,An=!1,lr=null,tl=null,Tr=!1,nb=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."),sb=Le(null),lb=Le(null),BC={},Cm=null,Iu=null,Ru=!1,DD=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()})}},ED=Pt.unstable_scheduleCallback,ND=Pt.unstable_NormalPriority,Fa={$$typeof:Cn,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0,_currentRenderer:null,_currentRenderer2:null},Ga=Pt.unstable_now,wm=console.createTask?console.createTask:function(){return null},mc=1,Tm=2,ro=-0,al=-0,us=-0,ds=null,Do=-1.1,li=-0,Ca=-0,Pe=-1.1,$e=-1.1,xa=null,Ia=!1,ol=-0,Dn=-1.1,hc=null,rl=0,ib=null,ub=null,ii=-1.1,gc=null,Mu=-1.1,Im=-1.1,En=-0,cs=-1.1,Ir=-1.1,db=0,yc=null,zC=null,PC=null,nl=-1.1,ui=null,sl=-1.1,Rm=-1.1,UC=-0,_C=-0,Mm=0,fs=null,HC=0,vc=-1.1,Am=!1,Dm=!1,bc=null,cb=0,di=0,Au=null,FC=Y.S;Y.S=function(e,t){if(zw=oo(),typeof t==="object"&&t!==null&&typeof t.then==="function"){if(0>cs&&0>Ir){cs=Ga();var a=Kd(),o=Yd();if(a!==sl||o!==ui)sl=-1.1;nl=a,ui=o}JR(e,t)}FC!==null&&FC(e,t)};var ci=Le(null),jr={recordUnsafeLifecycleWarnings:function(){},flushPendingUnsafeLifecycleWarnings:function(){},recordLegacyContextWarning:function(){},flushLegacyContextWarning:function(){},discardPendingWarnings:function(){}},xc=[],Sc=[],kc=[],Lc=[],Cc=[],wc=[],fi=new Set;jr.recordUnsafeLifecycleWarnings=function(e,t){fi.has(e.type)||(typeof t.componentWillMount==="function"&&t.componentWillMount.__suppressDeprecationWarning!==!0&&xc.push(e),e.mode&ko&&typeof t.UNSAFE_componentWillMount==="function"&&Sc.push(e),typeof t.componentWillReceiveProps==="function"&&t.componentWillReceiveProps.__suppressDeprecationWarning!==!0&&kc.push(e),e.mode&ko&&typeof t.UNSAFE_componentWillReceiveProps==="function"&&Lc.push(e),typeof t.componentWillUpdate==="function"&&t.componentWillUpdate.__suppressDeprecationWarning!==!0&&Cc.push(e),e.mode&ko&&typeof t.UNSAFE_componentWillUpdate==="function"&&wc.push(e))},jr.flushPendingUnsafeLifecycleWarnings=function(){var e=new Set;0<xc.length&&(xc.forEach(function(p){e.add(X(p)||"Component"),fi.add(p.type)}),xc=[]);var t=new Set;0<Sc.length&&(Sc.forEach(function(p){t.add(X(p)||"Component"),fi.add(p.type)}),Sc=[]);var a=new Set;0<kc.length&&(kc.forEach(function(p){a.add(X(p)||"Component"),fi.add(p.type)}),kc=[]);var o=new Set;0<Lc.length&&(Lc.forEach(function(p){o.add(X(p)||"Component"),fi.add(p.type)}),Lc=[]);var n=new Set;0<Cc.length&&(Cc.forEach(function(p){n.add(X(p)||"Component"),fi.add(p.type)}),Cc=[]);var s=new Set;if(0<wc.length&&(wc.forEach(function(p){s.add(X(p)||"Component"),fi.add(p.type)}),wc=[]),0<t.size){var d=S(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(ln)||"Unknown")),o=Hs(t),o.payload={element:a},s=s===void 0?null:s,s!==null&&(typeof s!=="function"&&console.error("Expected the last optional `callback` argument to be a function. Instead received: %s.",s),o.callback=s),a=Fs(e,o,t),a!==null&&(fr(t,"root.render()",null),Ta(a,e,t),Nd(a,e,t))}function TL(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var a=e.retryLane;e.retryLane=a!==0&&a<t?a:t}}function Sv(e,t){TL(e,t),(e=e.alternate)&&TL(e,t)}function IL(e){if(e.tag===13||e.tag===31){var t=ko(e,67108864);t!==null&&Ta(t,e,67108864),Sv(e,67108864)}}function RL(e){if(e.tag===13||e.tag===31){var t=nn(e);t=Fl(t);var a=ko(e,t);a!==null&&Ta(a,e,t),Sv(e,t)}}function pA(){return ln}function mA(e,t,a,o){var r=K.T;K.T=null;var s=Qt.p;try{Qt.p=un,kv(e,t,a,o)}finally{Qt.p=s,K.T=r}}function hA(e,t,a,o){var r=K.T;K.T=null;var s=Qt.p;try{Qt.p=jn,kv(e,t,a,o)}finally{Qt.p=s,K.T=r}}function kv(e,t,a,o){if(ph){var r=Lv(o);if(r===null)lv(e,t,o,mh,a),AL(e,o);else if(gA(r,e,t,a,o))o.stopPropagation();else if(AL(e,o),t&4&&-1<iE.indexOf(e)){for(;r!==null;){var s=at(r);if(s!==null)switch(s.tag){case 3:if(s=s.stateNode,s.current.memoizedState.isDehydrated){var d=qt(s.pendingLanes);if(d!==0){var p=s;p.pendingLanes|=2;for(p.entangledLanes|=2;d;){var b=1<<31-Ao(d);p.entanglements[1]|=b,d&=~b}Lr(s),(Bt&(eo|pn))===lo&&(Qm=no()+Uw,Xd(0,!1))}}break;case 31:case 13:p=ko(s,2),p!==null&&Ta(p,s,2),ru(),Sv(s,2)}if(s=Lv(o),s===null&&lv(e,t,o,mh,a),s===r)break;r=s}r!==null&&o.stopPropagation()}else lv(e,t,o,null,a)}}function Lv(e){return e=Mg(e),Cv(e)}function Cv(e){if(mh=null,e=Re(e),e!==null){var t=O(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=j(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 mh=e,null}function ML(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 un;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 jn;case"message":switch(wA()){case zv:return un;case Pv:return jn;case pu:case TA:return Ar;case Uv:return gm;default:return Ar}default:return Ar}}function AL(e,t){switch(e){case"focusin":case"focusout":bl=null;break;case"dragenter":case"dragleave":xl=null;break;case"mouseover":case"mouseout":Sl=null;break;case"pointerover":case"pointerout":Yc.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Kc.delete(t.pointerId)}}function ec(e,t,a,o,r,s){if(e===null||e.nativeEvent!==s)return e={blockedOn:t,domEventName:a,eventSystemFlags:o,nativeEvent:s,targetContainers:[r]},t!==null&&(t=at(t),t!==null&&IL(t)),e;return e.eventSystemFlags|=o,t=e.targetContainers,r!==null&&t.indexOf(r)===-1&&t.push(r),e}function gA(e,t,a,o,r){switch(t){case"focusin":return bl=ec(bl,e,t,a,o,r),!0;case"dragenter":return xl=ec(xl,e,t,a,o,r),!0;case"mouseover":return Sl=ec(Sl,e,t,a,o,r),!0;case"pointerover":var s=r.pointerId;return Yc.set(s,ec(Yc.get(s)||null,e,t,a,o,r)),!0;case"gotpointercapture":return s=r.pointerId,Kc.set(s,ec(Kc.get(s)||null,e,t,a,o,r)),!0}return!1}function DL(e){var t=Re(e.target);if(t!==null){var a=O(t);if(a!==null){if(t=a.tag,t===13){if(t=P(a),t!==null){e.blockedOn=t,le(e.priority,function(){RL(a)});return}}else if(t===31){if(t=j(a),t!==null){e.blockedOn=t,le(e.priority,function(){RL(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 lm(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var a=Lv(e.nativeEvent);if(a===null){a=e.nativeEvent;var o=new a.constructor(a.type,a),r=o;rc!==null&&console.error("Expected currently replaying event to be null. This error is likely caused by a bug in React. Please file an issue."),rc=r,a.target.dispatchEvent(o),rc===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."),rc=null}else return t=at(a),t!==null&&IL(t),e.blockedOn=a,!1;t.shift()}return!0}function EL(e,t,a){lm(e)&&a.delete(t)}function yA(){Jb=!1,bl!==null&&lm(bl)&&(bl=null),xl!==null&&lm(xl)&&(xl=null),Sl!==null&&lm(Sl)&&(Sl=null),Yc.forEach(EL),Kc.forEach(EL)}function im(e,t){e.blockedOn===t&&(e.blockedOn=null,Jb||(Jb=!0,Pt.unstable_scheduleCallback(Pt.unstable_NormalPriority,yA)))}function NL(e){hh!==e&&(hh=e,Pt.unstable_scheduleCallback(Pt.unstable_NormalPriority,function(){hh===e&&(hh=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(Cv(o||a)===null)continue;else break;var s=at(a);s!==null&&(e.splice(t,3),t-=3,a={pending:!0,data:r,method:a.method,action:o},Object.freeze(a),Cy(s,a,o,r))}}))}function du(e){function t(b){return im(b,e)}bl!==null&&im(bl,e),xl!==null&&im(xl,e),Sl!==null&&im(Sl,e),Yc.forEach(t),Kc.forEach(t);for(var a=0;a<kl.length;a++){var o=kl[a];o.blockedOn===e&&(o.blockedOn=null)}for(;0<kl.length&&(a=kl[0],a.blockedOn===null);)DL(a),a.blockedOn===null&&kl.shift();if(a=(e.ownerDocument||e).$$reactFormReplay,a!=null)for(o=0;o<a.length;o+=3){var r=a[o],s=a[o+1],d=r[Do]||null;if(typeof s==="function")d||NL(a);else if(d){var p=null;if(s&&s.hasAttribute("formAction")){if(r=s,d=s[Do]||null)p=d.formAction;else if(Cv(r)!==null)continue}else p=d.action;typeof p==="function"?a[o+1]=p:(a.splice(o,3),o-=3),NL(a)}}}function qL(){function e(s){s.canIntercept&&s.info==="react-transition"&&s.intercept({handler:function(){return new Promise(function(d){return r=d})},focusReset:"manual",scroll:"manual"})}function t(){r!==null&&(r(),r=null),o||setTimeout(a,20)}function a(){if(!o&&!navigation.transition){var s=navigation.currentEntry;s&&s.url!=null&&navigation.navigate(s.url,{state:s.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 wv(e){this._internalRoot=e}function um(e){this._internalRoot=e}function OL(e){e[Zs]&&(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 kt=Object.assign,vA=Symbol.for("react.element"),wr=Symbol.for("react.transitional.element"),cu=Symbol.for("react.portal"),fu=Symbol.for("react.fragment"),dm=Symbol.for("react.strict_mode"),Tv=Symbol.for("react.profiler"),Iv=Symbol.for("react.consumer"),Tr=Symbol.for("react.context"),tc=Symbol.for("react.forward_ref"),Rv=Symbol.for("react.suspense"),Mv=Symbol.for("react.suspense_list"),cm=Symbol.for("react.memo"),sn=Symbol.for("react.lazy"),Av=Symbol.for("react.activity"),bA=Symbol.for("react.memo_cache_sentinel"),BL=Symbol.iterator,xA=Symbol.for("react.client.reference"),Za=Array.isArray,K=Ku.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Qt=tx.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,SA=Object.freeze({pending:!1,data:null,method:null,action:null}),Dv=[],Ev=[],ss=-1,Ks=Ie(null),ac=Ie(null),Qs=Ie(null),fm=Ie(null),oc=0,zL,PL,UL,_L,HL,FL,GL;W.__reactDisabledLog=!0;var Nv,VL,qv=!1,Ov=new(typeof WeakMap==="function"?WeakMap:Map),ln=null,Ir=!1,Vn=Object.prototype.hasOwnProperty,Bv=Pt.unstable_scheduleCallback,kA=Pt.unstable_cancelCallback,LA=Pt.unstable_shouldYield,CA=Pt.unstable_requestPaint,no=Pt.unstable_now,wA=Pt.unstable_getCurrentPriorityLevel,zv=Pt.unstable_ImmediatePriority,Pv=Pt.unstable_UserBlockingPriority,pu=Pt.unstable_NormalPriority,TA=Pt.unstable_LowPriority,Uv=Pt.unstable_IdlePriority,IA=Pt.log,RA=Pt.unstable_setDisableYieldValue,mu=null,Lo=null,Rr=!1,Mr=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u",Ao=Math.clz32?Math.clz32:Vi,{log:MA,LN2:AA}=Math,pm=256,mm=262144,hm=4194304,un=2,jn=8,Ar=32,gm=268435456,Ws=Math.random().toString(36).slice(2),go="__reactFiber$"+Ws,Do="__reactProps$"+Ws,Zs="__reactContainer$"+Ws,_v="__reactEvents$"+Ws,DA="__reactListeners$"+Ws,EA="__reactHandles$"+Ws,jL="__reactResources$"+Ws,nc="__reactMarker$"+Ws,$L=new Set,ni={},Hv={},NA={button:!0,checkbox:!0,image:!0,hidden:!0,radio:!0,reset:!0,submit:!0},qA=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]*$"),XL={},YL={},OA=/[\n"\\]/g,KL=!1,QL=!1,WL=!1,ZL=!1,JL=!1,eC=!1,tC=["value","defaultValue"],aC=!1,oC=/["'&<>\n\t]|^\s|\s$/,BA="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(" "),nC="applet caption html table td th marquee object template foreignObject desc title".split(" "),zA=nC.concat(["button"]),PA="dd dt li option optgroup p rp rt".split(" "),rC={current:null,formTag:null,aTagInScope:null,buttonTagInScope:null,nobrTagInScope:null,pTagInButtonScope:null,listItemTagAutoclosing:null,dlItemTagAutoclosing:null,containerTagInScope:null,implicitRootScope:!1},ym={},Fv={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"]},sC=/([A-Z])/g,lC=/^ms-/,UA=/^(?:webkit|moz|o)[A-Z]/,_A=/^-ms-/,HA=/-(.)/g,iC=/;\s*$/,hu={},Gv={},uC=!1,dC=!1,cC=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(" ")),vm="http://www.w3.org/1998/Math/MathML",gu="http://www.w3.org/2000/svg",FA=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"]]),bm={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"},fC={"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},yu={},GA=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]*$"),VA=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]*$"),pC=!1,Eo={},mC=/^on./,jA=/^on[^A-Z]/,$A=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]*$"),XA=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]*$"),YA=/^[\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,rc=null,vu=null,bu=null,Vv=!1,Dr=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),jv=!1;if(Dr)try{var sc={};Object.defineProperty(sc,"passive",{get:function(){jv=!0}}),window.addEventListener("test",sc,sc),window.removeEventListener("test",sc,sc)}catch(e){jv=!1}var Js=null,$v=null,xm=null,ri={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Sm=Ho(ri),lc=kt({},ri,{view:0,detail:0}),KA=Ho(lc),Xv,Yv,ic,km=kt({},lc,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Ag,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!==ic&&(ic&&e.type==="mousemove"?(Xv=e.screenX-ic.screenX,Yv=e.screenY-ic.screenY):Yv=Xv=0,ic=e),Xv},movementY:function(e){return"movementY"in e?e.movementY:Yv}}),hC=Ho(km),QA=kt({},km,{dataTransfer:0}),WA=Ho(QA),ZA=kt({},lc,{relatedTarget:0}),Kv=Ho(ZA),JA=kt({},ri,{animationName:0,elapsedTime:0,pseudoElement:0}),eD=Ho(JA),tD=kt({},ri,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),aD=Ho(tD),oD=kt({},ri,{data:0}),gC=Ho(oD),nD=gC,rD={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},sD={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"},lD={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"},iD=kt({},lc,{key:function(e){if(e.key){var t=rD[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=lp(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?sD[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Ag,charCode:function(e){return e.type==="keypress"?lp(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?lp(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),uD=Ho(iD),dD=kt({},km,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),yC=Ho(dD),cD=kt({},lc,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Ag}),fD=Ho(cD),pD=kt({},ri,{propertyName:0,elapsedTime:0,pseudoElement:0}),mD=Ho(pD),hD=kt({},km,{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}),gD=Ho(hD),yD=kt({},ri,{newState:0,oldState:0}),vD=Ho(yD),bD=[9,13,27,32],vC=229,Qv=Dr&&"CompositionEvent"in window,uc=null;Dr&&"documentMode"in document&&(uc=document.documentMode);var xD=Dr&&"TextEvent"in window&&!uc,bC=Dr&&(!Qv||uc&&8<uc&&11>=uc),xC=32,SC=String.fromCharCode(xC),kC=!1,xu=!1,SD={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},dc=null,cc=null,LC=!1;Dr&&(LC=FR("input")&&(!document.documentMode||9<document.documentMode));var No=typeof Object.is==="function"?Object.is:YR,kD=Dr&&"documentMode"in document&&11>=document.documentMode,Su=null,Wv=null,fc=null,Zv=!1,ku={animationend:Vl("Animation","AnimationEnd"),animationiteration:Vl("Animation","AnimationIteration"),animationstart:Vl("Animation","AnimationStart"),transitionrun:Vl("Transition","TransitionRun"),transitionstart:Vl("Transition","TransitionStart"),transitioncancel:Vl("Transition","TransitionCancel"),transitionend:Vl("Transition","TransitionEnd")},Jv={},CC={};Dr&&(CC=document.createElement("div").style,("AnimationEvent"in window)||(delete ku.animationend.animation,delete ku.animationiteration.animation,delete ku.animationstart.animation),("TransitionEvent"in window)||delete ku.transitionend.transition);var wC=jl("animationend"),TC=jl("animationiteration"),IC=jl("animationstart"),LD=jl("transitionrun"),CD=jl("transitionstart"),wD=jl("transitioncancel"),RC=jl("transitionend"),MC=new Map,eb="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(" ");eb.push("scrollEnd");var AC=0;if(typeof performance==="object"&&typeof performance.now==="function")var TD=performance,DC=function(){return TD.now()};else{var ID=Date;DC=function(){return ID.now()}}var tb=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)},RD="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.",Lm=0,ab=1,ob=2,nb=3,Cm="– ",wm="+ ",EC="  ",fa=typeof console<"u"&&typeof console.timeStamp==="function"&&typeof performance<"u"&&typeof performance.measure==="function",Ln="Components ⚛",Lt="Scheduler ⚛",wt="Blocking",el=!1,ls={color:"primary",properties:null,tooltipText:"",track:Ln},tl={start:-0,end:-0,detail:{devtools:ls}},MD=["Changed Props",""],NC="This component received deeply equal props. It might benefit from useMemo or the React Compiler in its owner.",AD=["Changed Props",NC],pc=1,is=2,Cn=[],Lu=0,rb=0,al={};Object.freeze(al);var wn=null,Cu=null,Qe=0,DD=1,ct=2,Co=8,$n=16,ED=32,qC=!1;try{var OC=Object.preventExtensions({})}catch(e){qC=!0}var sb=new WeakMap,wu=[],Tu=0,Tm=null,mc=0,Tn=[],In=0,si=null,us=1,ds="",yo=null,pa=null,It=!1,Er=!1,dn=null,ol=null,Rn=!1,lb=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."),ib=Ie(null),ub=Ie(null),BC={},Im=null,Iu=null,Ru=!1,ND=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()})}},qD=Pt.unstable_scheduleCallback,OD=Pt.unstable_NormalPriority,Ga={$$typeof:Tr,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0,_currentRenderer:null,_currentRenderer2:null},Va=Pt.unstable_now,Rm=console.createTask?console.createTask:function(){return null},hc=1,Mm=2,ro=-0,nl=-0,cs=-0,fs=null,qo=-1.1,li=-0,Ca=-0,Pe=-1.1,je=-1.1,xa=null,Ia=!1,rl=-0,Nr=-1.1,gc=null,sl=0,db=null,cb=null,ii=-1.1,yc=null,Mu=-1.1,Am=-1.1,qr=-0,ps=-1.1,Mn=-1.1,fb=0,vc=null,zC=null,PC=null,ll=-1.1,ui=null,il=-1.1,Dm=-1.1,UC=-0,_C=-0,Em=0,ms=null,HC=0,bc=-1.1,Nm=!1,qm=!1,xc=null,pb=0,di=0,Au=null,FC=K.S;K.S=function(e,t){if(zw=no(),typeof t==="object"&&t!==null&&typeof t.then==="function"){if(0>ps&&0>Mn){ps=Va();var a=Qd(),o=Kd();if(a!==il||o!==ui)il=-1.1;ll=a,ui=o}tM(e,t)}FC!==null&&FC(e,t)};var ci=Ie(null),Xn={recordUnsafeLifecycleWarnings:function(){},flushPendingUnsafeLifecycleWarnings:function(){},recordLegacyContextWarning:function(){},flushLegacyContextWarning:function(){},discardPendingWarnings:function(){}},Sc=[],kc=[],Lc=[],Cc=[],wc=[],Tc=[],fi=new Set;Xn.recordUnsafeLifecycleWarnings=function(e,t){fi.has(e.type)||(typeof t.componentWillMount==="function"&&t.componentWillMount.__suppressDeprecationWarning!==!0&&Sc.push(e),e.mode&Co&&typeof t.UNSAFE_componentWillMount==="function"&&kc.push(e),typeof t.componentWillReceiveProps==="function"&&t.componentWillReceiveProps.__suppressDeprecationWarning!==!0&&Lc.push(e),e.mode&Co&&typeof t.UNSAFE_componentWillReceiveProps==="function"&&Cc.push(e),typeof t.componentWillUpdate==="function"&&t.componentWillUpdate.__suppressDeprecationWarning!==!0&&wc.push(e),e.mode&Co&&typeof t.UNSAFE_componentWillUpdate==="function"&&Tc.push(e))},Xn.flushPendingUnsafeLifecycleWarnings=function(){var e=new Set;0<Sc.length&&(Sc.forEach(function(p){e.add(V(p)||"Component"),fi.add(p.type)}),Sc=[]);var t=new Set;0<kc.length&&(kc.forEach(function(p){t.add(V(p)||"Component"),fi.add(p.type)}),kc=[]);var a=new Set;0<Lc.length&&(Lc.forEach(function(p){a.add(V(p)||"Component"),fi.add(p.type)}),Lc=[]);var o=new Set;0<Cc.length&&(Cc.forEach(function(p){o.add(V(p)||"Component"),fi.add(p.type)}),Cc=[]);var r=new Set;0<wc.length&&(wc.forEach(function(p){r.add(V(p)||"Component"),fi.add(p.type)}),wc=[]);var s=new Set;if(0<Tc.length&&(Tc.forEach(function(p){s.add(V(p)||"Component"),fi.add(p.type)}),Tc=[]),0<t.size){var d=S(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
 
@@ -205,35 +205,35 @@ Please update the following components: %s`,d)),0<a.size&&(d=S(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`,d)),0<n.size&&(d=S(n),console.warn(`componentWillUpdate has been renamed, and is not recommended for use. See https://react.dev/link/unsafe-component-lifecycles for details.
208
+ Please update the following components: %s`,d)),0<r.size&&(d=S(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`,d))};var Em=new Map,GC=new Set;jr.recordLegacyContextWarning=function(e,t){var a=null;for(var o=e;o!==null;)o.mode&ko&&(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."):!GC.has(e.type)&&(o=Em.get(a),e.type.contextTypes!=null||e.type.childContextTypes!=null||t!==null&&typeof t.getChildContext==="function")&&(o===void 0&&(o=[],Em.set(a,o)),o.push(e))},jr.flushLegacyContextWarning=function(){Em.forEach(function(e){if(e.length!==0){var t=e[0],a=new Set;e.forEach(function(n){a.add(X(n)||"Component"),GC.add(n.type)});var o=S(a);Q(t,function(){console.error(`Legacy context API has been detected within a strict-mode tree.
213
+ Please update the following components: %s`,d))};var Om=new Map,GC=new Set;Xn.recordLegacyContextWarning=function(e,t){var a=null;for(var o=e;o!==null;)o.mode&Co&&(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."):!GC.has(e.type)&&(o=Om.get(a),e.type.contextTypes!=null||e.type.childContextTypes!=null||t!==null&&typeof t.getChildContext==="function")&&(o===void 0&&(o=[],Om.set(a,o)),o.push(e))},Xn.flushLegacyContextWarning=function(){Om.forEach(function(e){if(e.length!==0){var t=e[0],a=new Set;e.forEach(function(r){a.add(V(r)||"Component"),GC.add(r.type)});var o=S(a);H(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)})}})},jr.discardPendingWarnings=function(){xc=[],Sc=[],kc=[],Lc=[],Cc=[],wc=[],Em=new Map};var VC={react_stack_bottom_frame:function(e,t,a){var o=wn;wn=!0;try{return e(t,a)}finally{wn=o}}},fb=VC.react_stack_bottom_frame.bind(VC),jC={react_stack_bottom_frame:function(e){var t=wn;wn=!0;try{return e.render()}finally{wn=t}}},$C=jC.react_stack_bottom_frame.bind(jC),XC={react_stack_bottom_frame:function(e,t){try{t.componentDidMount()}catch(a){Yt(e,e.return,a)}}},pb=XC.react_stack_bottom_frame.bind(XC),YC={react_stack_bottom_frame:function(e,t,a,o,n){try{t.componentDidUpdate(a,o,n)}catch(s){Yt(e,e.return,s)}}},KC=YC.react_stack_bottom_frame.bind(YC),QC={react_stack_bottom_frame:function(e,t){var a=t.stack;e.componentDidCatch(t.value,{componentStack:a!==null?a:""})}},qD=QC.react_stack_bottom_frame.bind(QC),WC={react_stack_bottom_frame:function(e,t,a){try{a.componentWillUnmount()}catch(o){Yt(e,t,o)}}},ZC=WC.react_stack_bottom_frame.bind(WC),JC={react_stack_bottom_frame:function(e){var t=e.create;return e=e.inst,t=t(),e.destroy=t}},OD=JC.react_stack_bottom_frame.bind(JC),ew={react_stack_bottom_frame:function(e,t,a){try{a()}catch(o){Yt(e,t,o)}}},BD=ew.react_stack_bottom_frame.bind(ew),tw={react_stack_bottom_frame:function(e){var t=e._init;return t(e._payload)}},zD=tw.react_stack_bottom_frame.bind(tw),Du=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`."),mb=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."),Nm=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."),qm={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.')}},pi=null,Tc=!1,Eu=null,Ic=0,ft=null,hb,aw=hb=!1,ow={},rw={},nw={};m=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=X(e),n=o||"null";if(!ow[n]){ow[n]=!0,a=a._owner,e=e._debugOwner;var s="";e&&typeof e.tag==="number"&&(n=X(e))&&(s=`
219
+ Learn more about this warning here: https://react.dev/link/legacy-context`,o)})}})},Xn.discardPendingWarnings=function(){Sc=[],kc=[],Lc=[],Cc=[],wc=[],Tc=[],Om=new Map};var VC={react_stack_bottom_frame:function(e,t,a){var o=Ir;Ir=!0;try{return e(t,a)}finally{Ir=o}}},mb=VC.react_stack_bottom_frame.bind(VC),jC={react_stack_bottom_frame:function(e){var t=Ir;Ir=!0;try{return e.render()}finally{Ir=t}}},$C=jC.react_stack_bottom_frame.bind(jC),XC={react_stack_bottom_frame:function(e,t){try{t.componentDidMount()}catch(a){Kt(e,e.return,a)}}},hb=XC.react_stack_bottom_frame.bind(XC),YC={react_stack_bottom_frame:function(e,t,a,o,r){try{t.componentDidUpdate(a,o,r)}catch(s){Kt(e,e.return,s)}}},KC=YC.react_stack_bottom_frame.bind(YC),QC={react_stack_bottom_frame:function(e,t){var a=t.stack;e.componentDidCatch(t.value,{componentStack:a!==null?a:""})}},BD=QC.react_stack_bottom_frame.bind(QC),WC={react_stack_bottom_frame:function(e,t,a){try{a.componentWillUnmount()}catch(o){Kt(e,t,o)}}},ZC=WC.react_stack_bottom_frame.bind(WC),JC={react_stack_bottom_frame:function(e){var t=e.create;return e=e.inst,t=t(),e.destroy=t}},zD=JC.react_stack_bottom_frame.bind(JC),ew={react_stack_bottom_frame:function(e,t,a){try{a()}catch(o){Kt(e,t,o)}}},PD=ew.react_stack_bottom_frame.bind(ew),tw={react_stack_bottom_frame:function(e){var t=e._init;return t(e._payload)}},UD=tw.react_stack_bottom_frame.bind(tw),Du=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`."),gb=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."),Bm=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."),zm={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.')}},pi=null,Ic=!1,Eu=null,Rc=0,ft=null,yb,aw=yb=!1,ow={},nw={},rw={};m=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(!ow[r]){ow[r]=!0,a=a._owner,e=e._debugOwner;var s="";e&&typeof e.tag==="number"&&(r=V(e))&&(s=`
220
220
 
221
- Check the render method of \``+n+"`."),s||o&&(s=`
221
+ Check the render method of \``+r+"`."),s||o&&(s=`
222
222
 
223
- Check the top-level render call using <`+o+">.");var d="";a!=null&&e!==a&&(o=null,typeof a.tag==="number"?o=X(a):typeof a.name==="string"&&(o=a.name),o&&(d=" It was passed a child from "+o+".")),Q(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.',s,d)})}}};var mi=W0(!0),sw=W0(!1),lw=0,iw=1,uw=2,gb=3,ll=!1,dw=!1,yb=null,vb=!1,Nu=Le(null),Om=Le(0),ir=Le(null),Rr=null,qu=1,Rc=2,za=Le(0),Bm=0,Mr=1,Eo=2,ur=4,No=8,Ou,cw=new Set,fw=new Set,bb=new Set,pw=new Set,ps=0,et=null,aa=null,Va=null,zm=!1,Bu=!1,hi=!1,Pm=0,Mc=0,ms=null,PD=0,UD=25,j=null,Ar=null,hs=-1,Ac=!1,Dc={readContext:ba,use:Gs,useCallback:Aa,useContext:Aa,useEffect:Aa,useImperativeHandle:Aa,useLayoutEffect:Aa,useInsertionEffect:Aa,useMemo:Aa,useReducer:Aa,useRef:Aa,useState:Aa,useDebugValue:Aa,useDeferredValue:Aa,useTransition:Aa,useSyncExternalStore:Aa,useId:Aa,useHostTransitionStatus:Aa,useFormState:Aa,useActionState:Aa,useOptimistic:Aa,useMemoCache:Aa,useCacheRefresh:Aa};Dc.useEffectEvent=Aa;var xb=null,mw=null,Sb=null,hw=null,Nn=null,$r=null,Um=null;xb={readContext:function(e){return ba(e)},use:Gs,useCallback:function(e,t){return j="useCallback",xt(),Zi(t),vy(e,t)},useContext:function(e){return j="useContext",xt(),ba(e)},useEffect:function(e,t){return j="useEffect",xt(),Zi(t),Ep(e,t)},useImperativeHandle:function(e,t,a){return j="useImperativeHandle",xt(),Zi(a),yy(e,t,a)},useInsertionEffect:function(e,t){j="useInsertionEffect",xt(),Zi(t),Jl(4,Eo,e,t)},useLayoutEffect:function(e,t){return j="useLayoutEffect",xt(),Zi(t),gy(e,t)},useMemo:function(e,t){j="useMemo",xt(),Zi(t);var a=Y.H;Y.H=Nn;try{return by(e,t)}finally{Y.H=a}},useReducer:function(e,t,a){j="useReducer",xt();var o=Y.H;Y.H=Nn;try{return ly(e,t,a)}finally{Y.H=o}},useRef:function(e){return j="useRef",xt(),my(e)},useState:function(e){j="useState",xt();var t=Y.H;Y.H=Nn;try{return cy(e)}finally{Y.H=t}},useDebugValue:function(){j="useDebugValue",xt()},useDeferredValue:function(e,t){return j="useDeferredValue",xt(),xy(e,t)},useTransition:function(){return j="useTransition",xt(),Ly()},useSyncExternalStore:function(e,t,a){return j="useSyncExternalStore",xt(),uy(e,t,a)},useId:function(){return j="useId",xt(),Cy()},useFormState:function(e,t){return j="useFormState",xt(),Ip(),eu(e,t)},useActionState:function(e,t){return j="useActionState",xt(),eu(e,t)},useOptimistic:function(e){return j="useOptimistic",xt(),fy(e)},useHostTransitionStatus:ei,useMemoCache:Zl,useCacheRefresh:function(){return j="useCacheRefresh",xt(),wy()},useEffectEvent:function(e){return j="useEffectEvent",xt(),hy(e)}},mw={readContext:function(e){return ba(e)},use:Gs,useCallback:function(e,t){return j="useCallback",se(),vy(e,t)},useContext:function(e){return j="useContext",se(),ba(e)},useEffect:function(e,t){return j="useEffect",se(),Ep(e,t)},useImperativeHandle:function(e,t,a){return j="useImperativeHandle",se(),yy(e,t,a)},useInsertionEffect:function(e,t){j="useInsertionEffect",se(),Jl(4,Eo,e,t)},useLayoutEffect:function(e,t){return j="useLayoutEffect",se(),gy(e,t)},useMemo:function(e,t){j="useMemo",se();var a=Y.H;Y.H=Nn;try{return by(e,t)}finally{Y.H=a}},useReducer:function(e,t,a){j="useReducer",se();var o=Y.H;Y.H=Nn;try{return ly(e,t,a)}finally{Y.H=o}},useRef:function(e){return j="useRef",se(),my(e)},useState:function(e){j="useState",se();var t=Y.H;Y.H=Nn;try{return cy(e)}finally{Y.H=t}},useDebugValue:function(){j="useDebugValue",se()},useDeferredValue:function(e,t){return j="useDeferredValue",se(),xy(e,t)},useTransition:function(){return j="useTransition",se(),Ly()},useSyncExternalStore:function(e,t,a){return j="useSyncExternalStore",se(),uy(e,t,a)},useId:function(){return j="useId",se(),Cy()},useActionState:function(e,t){return j="useActionState",se(),eu(e,t)},useFormState:function(e,t){return j="useFormState",se(),Ip(),eu(e,t)},useOptimistic:function(e){return j="useOptimistic",se(),fy(e)},useHostTransitionStatus:ei,useMemoCache:Zl,useCacheRefresh:function(){return j="useCacheRefresh",se(),wy()},useEffectEvent:function(e){return j="useEffectEvent",se(),hy(e)}},Sb={readContext:function(e){return ba(e)},use:Gs,useCallback:function(e,t){return j="useCallback",se(),Op(e,t)},useContext:function(e){return j="useContext",se(),ba(e)},useEffect:function(e,t){j="useEffect",se(),_o(2048,No,e,t)},useImperativeHandle:function(e,t,a){return j="useImperativeHandle",se(),qp(e,t,a)},useInsertionEffect:function(e,t){return j="useInsertionEffect",se(),_o(4,Eo,e,t)},useLayoutEffect:function(e,t){return j="useLayoutEffect",se(),_o(4,ur,e,t)},useMemo:function(e,t){j="useMemo",se();var a=Y.H;Y.H=$r;try{return Bp(e,t)}finally{Y.H=a}},useReducer:function(e,t,a){j="useReducer",se();var o=Y.H;Y.H=$r;try{return Ji(e,t,a)}finally{Y.H=o}},useRef:function(){return j="useRef",se(),Wt().memoizedState},useState:function(){j="useState",se();var e=Y.H;Y.H=$r;try{return Ji(_r)}finally{Y.H=e}},useDebugValue:function(){j="useDebugValue",se()},useDeferredValue:function(e,t){return j="useDeferredValue",se(),bS(e,t)},useTransition:function(){return j="useTransition",se(),wS()},useSyncExternalStore:function(e,t,a){return j="useSyncExternalStore",se(),Mp(e,t,a)},useId:function(){return j="useId",se(),Wt().memoizedState},useFormState:function(e){return j="useFormState",se(),Ip(),Ap(e)},useActionState:function(e){return j="useActionState",se(),Ap(e)},useOptimistic:function(e,t){return j="useOptimistic",se(),uS(e,t)},useHostTransitionStatus:ei,useMemoCache:Zl,useCacheRefresh:function(){return j="useCacheRefresh",se(),Wt().memoizedState},useEffectEvent:function(e){return j="useEffectEvent",se(),Np(e)}},hw={readContext:function(e){return ba(e)},use:Gs,useCallback:function(e,t){return j="useCallback",se(),Op(e,t)},useContext:function(e){return j="useContext",se(),ba(e)},useEffect:function(e,t){j="useEffect",se(),_o(2048,No,e,t)},useImperativeHandle:function(e,t,a){return j="useImperativeHandle",se(),qp(e,t,a)},useInsertionEffect:function(e,t){return j="useInsertionEffect",se(),_o(4,Eo,e,t)},useLayoutEffect:function(e,t){return j="useLayoutEffect",se(),_o(4,ur,e,t)},useMemo:function(e,t){j="useMemo",se();var a=Y.H;Y.H=Um;try{return Bp(e,t)}finally{Y.H=a}},useReducer:function(e,t,a){j="useReducer",se();var o=Y.H;Y.H=Um;try{return Bd(e,t,a)}finally{Y.H=o}},useRef:function(){return j="useRef",se(),Wt().memoizedState},useState:function(){j="useState",se();var e=Y.H;Y.H=Um;try{return Bd(_r)}finally{Y.H=e}},useDebugValue:function(){j="useDebugValue",se()},useDeferredValue:function(e,t){return j="useDeferredValue",se(),xS(e,t)},useTransition:function(){return j="useTransition",se(),TS()},useSyncExternalStore:function(e,t,a){return j="useSyncExternalStore",se(),Mp(e,t,a)},useId:function(){return j="useId",se(),Wt().memoizedState},useFormState:function(e){return j="useFormState",se(),Ip(),Dp(e)},useActionState:function(e){return j="useActionState",se(),Dp(e)},useOptimistic:function(e,t){return j="useOptimistic",se(),cS(e,t)},useHostTransitionStatus:ei,useMemoCache:Zl,useCacheRefresh:function(){return j="useCacheRefresh",se(),Wt().memoizedState},useEffectEvent:function(e){return j="useEffectEvent",se(),Np(e)}},Nn={readContext:function(e){return h(),ba(e)},use:function(e){return v(),Gs(e)},useCallback:function(e,t){return j="useCallback",v(),xt(),vy(e,t)},useContext:function(e){return j="useContext",v(),xt(),ba(e)},useEffect:function(e,t){return j="useEffect",v(),xt(),Ep(e,t)},useImperativeHandle:function(e,t,a){return j="useImperativeHandle",v(),xt(),yy(e,t,a)},useInsertionEffect:function(e,t){j="useInsertionEffect",v(),xt(),Jl(4,Eo,e,t)},useLayoutEffect:function(e,t){return j="useLayoutEffect",v(),xt(),gy(e,t)},useMemo:function(e,t){j="useMemo",v(),xt();var a=Y.H;Y.H=Nn;try{return by(e,t)}finally{Y.H=a}},useReducer:function(e,t,a){j="useReducer",v(),xt();var o=Y.H;Y.H=Nn;try{return ly(e,t,a)}finally{Y.H=o}},useRef:function(e){return j="useRef",v(),xt(),my(e)},useState:function(e){j="useState",v(),xt();var t=Y.H;Y.H=Nn;try{return cy(e)}finally{Y.H=t}},useDebugValue:function(){j="useDebugValue",v(),xt()},useDeferredValue:function(e,t){return j="useDeferredValue",v(),xt(),xy(e,t)},useTransition:function(){return j="useTransition",v(),xt(),Ly()},useSyncExternalStore:function(e,t,a){return j="useSyncExternalStore",v(),xt(),uy(e,t,a)},useId:function(){return j="useId",v(),xt(),Cy()},useFormState:function(e,t){return j="useFormState",v(),xt(),eu(e,t)},useActionState:function(e,t){return j="useActionState",v(),xt(),eu(e,t)},useOptimistic:function(e){return j="useOptimistic",v(),xt(),fy(e)},useMemoCache:function(e){return v(),Zl(e)},useHostTransitionStatus:ei,useCacheRefresh:function(){return j="useCacheRefresh",xt(),wy()},useEffectEvent:function(e){return j="useEffectEvent",v(),xt(),hy(e)}},$r={readContext:function(e){return h(),ba(e)},use:function(e){return v(),Gs(e)},useCallback:function(e,t){return j="useCallback",v(),se(),Op(e,t)},useContext:function(e){return j="useContext",v(),se(),ba(e)},useEffect:function(e,t){j="useEffect",v(),se(),_o(2048,No,e,t)},useImperativeHandle:function(e,t,a){return j="useImperativeHandle",v(),se(),qp(e,t,a)},useInsertionEffect:function(e,t){return j="useInsertionEffect",v(),se(),_o(4,Eo,e,t)},useLayoutEffect:function(e,t){return j="useLayoutEffect",v(),se(),_o(4,ur,e,t)},useMemo:function(e,t){j="useMemo",v(),se();var a=Y.H;Y.H=$r;try{return Bp(e,t)}finally{Y.H=a}},useReducer:function(e,t,a){j="useReducer",v(),se();var o=Y.H;Y.H=$r;try{return Ji(e,t,a)}finally{Y.H=o}},useRef:function(){return j="useRef",v(),se(),Wt().memoizedState},useState:function(){j="useState",v(),se();var e=Y.H;Y.H=$r;try{return Ji(_r)}finally{Y.H=e}},useDebugValue:function(){j="useDebugValue",v(),se()},useDeferredValue:function(e,t){return j="useDeferredValue",v(),se(),bS(e,t)},useTransition:function(){return j="useTransition",v(),se(),wS()},useSyncExternalStore:function(e,t,a){return j="useSyncExternalStore",v(),se(),Mp(e,t,a)},useId:function(){return j="useId",v(),se(),Wt().memoizedState},useFormState:function(e){return j="useFormState",v(),se(),Ap(e)},useActionState:function(e){return j="useActionState",v(),se(),Ap(e)},useOptimistic:function(e,t){return j="useOptimistic",v(),se(),uS(e,t)},useMemoCache:function(e){return v(),Zl(e)},useHostTransitionStatus:ei,useCacheRefresh:function(){return j="useCacheRefresh",se(),Wt().memoizedState},useEffectEvent:function(e){return j="useEffectEvent",v(),se(),Np(e)}},Um={readContext:function(e){return h(),ba(e)},use:function(e){return v(),Gs(e)},useCallback:function(e,t){return j="useCallback",v(),se(),Op(e,t)},useContext:function(e){return j="useContext",v(),se(),ba(e)},useEffect:function(e,t){j="useEffect",v(),se(),_o(2048,No,e,t)},useImperativeHandle:function(e,t,a){return j="useImperativeHandle",v(),se(),qp(e,t,a)},useInsertionEffect:function(e,t){return j="useInsertionEffect",v(),se(),_o(4,Eo,e,t)},useLayoutEffect:function(e,t){return j="useLayoutEffect",v(),se(),_o(4,ur,e,t)},useMemo:function(e,t){j="useMemo",v(),se();var a=Y.H;Y.H=$r;try{return Bp(e,t)}finally{Y.H=a}},useReducer:function(e,t,a){j="useReducer",v(),se();var o=Y.H;Y.H=$r;try{return Bd(e,t,a)}finally{Y.H=o}},useRef:function(){return j="useRef",v(),se(),Wt().memoizedState},useState:function(){j="useState",v(),se();var e=Y.H;Y.H=$r;try{return Bd(_r)}finally{Y.H=e}},useDebugValue:function(){j="useDebugValue",v(),se()},useDeferredValue:function(e,t){return j="useDeferredValue",v(),se(),xS(e,t)},useTransition:function(){return j="useTransition",v(),se(),TS()},useSyncExternalStore:function(e,t,a){return j="useSyncExternalStore",v(),se(),Mp(e,t,a)},useId:function(){return j="useId",v(),se(),Wt().memoizedState},useFormState:function(e){return j="useFormState",v(),se(),Dp(e)},useActionState:function(e){return j="useActionState",v(),se(),Dp(e)},useOptimistic:function(e,t){return j="useOptimistic",v(),se(),cS(e,t)},useMemoCache:function(e){return v(),Zl(e)},useHostTransitionStatus:ei,useCacheRefresh:function(){return j="useCacheRefresh",se(),Wt().memoizedState},useEffectEvent:function(e){return j="useEffectEvent",v(),se(),Np(e)}};var gw={},yw=new Set,vw=new Set,bw=new Set,xw=new Set,Sw=new Set,kw=new Set,Lw=new Set,Cw=new Set,ww=new Set,Tw=new Set;Object.freeze(gw);var kb={enqueueSetState:function(e,t,a){e=e._reactInternals;var o=ar(e),n=Us(o);n.payload=t,a!==void 0&&a!==null&&(Iy(a),n.callback=a),t=_s(e,n,o),t!==null&&(dn(o,"this.setState()",e),Ta(t,e,o),Ed(t,e,o))},enqueueReplaceState:function(e,t,a){e=e._reactInternals;var o=ar(e),n=Us(o);n.tag=iw,n.payload=t,a!==void 0&&a!==null&&(Iy(a),n.callback=a),t=_s(e,n,o),t!==null&&(dn(o,"this.replaceState()",e),Ta(t,e,o),Ed(t,e,o))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var a=ar(e),o=Us(a);o.tag=uw,t!==void 0&&t!==null&&(Iy(t),o.callback=t),t=_s(e,o,a),t!==null&&(dn(a,"this.forceUpdate()",e),Ta(t,e,a),Ed(t,e,a))}},zu=null,Lb=null,Cb=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."),ja=!1,Iw={},Rw={},Mw={},Aw={},Pu=!1,Dw={},_m={},wb={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null},Ew=!1,Nw=null;Nw=new Set;var gs=!1,$a=!1,Tb=!1,qw=typeof WeakSet==="function"?WeakSet:Set,no=null,Uu=null,_u=null,Xa=null,Go=!1,Xr=null,Za=!1,Ec=8192,_D={getCacheForType:function(e){var t=ba(Fa),a=t.data.get(e);return a===void 0&&(a=e(),t.data.set(e,a)),a},cacheSignal:function(){return ba(Fa).controller.signal},getOwner:function(){return nr}};if(typeof Symbol==="function"&&Symbol.for){var Nc=Symbol.for;Nc("selector.component"),Nc("selector.has_pseudo_class"),Nc("selector.role"),Nc("selector.test_id"),Nc("selector.text")}var HD=[],FD=typeof WeakMap==="function"?WeakMap:Map,so=0,Ja=2,dr=4,ys=0,qc=1,gi=2,Hm=3,il=4,Fm=6,Ow=5,Bt=so,oa=null,gt=null,pt=0,Vo=0,Gm=1,yi=2,Oc=3,Bw=4,Ib=5,Bc=6,Vm=7,Rb=8,vi=9,Zt=Vo,cr=null,ul=!1,Hu=!1,Mb=!1,qn=0,wa=ys,dl=0,cl=0,Ab=0,jo=0,bi=0,zc=null,qo=null,jm=!1,$m=0,zw=0,Pw=300,Xm=1/0,Uw=500,Pc=null,Da=null,fl=null,Ym=0,Db=1,Eb=2,_w=3,pl=0,Hw=1,Fw=2,Gw=3,Vw=4,Km=5,Ya=0,ml=null,Fu=null,Yr=0,Nb=0,qb=-0,Ob=null,jw=null,$w=null,Kr=Ym,Xw=null,GD=50,Uc=0,Bb=null,zb=!1,Qm=!1,VD=50,xi=0,_c=null,Gu=!1,Wm=null,Yw=!1,Kw=new Set,jD={},Zm=null,Vu=null,Pb=!1,Ub=!1,Jm=!1,_b=!1,hl=0,Hb={};(function(){for(var e=0;e<Zv.length;e++){var t=Zv[e],a=t.toLowerCase();t=t[0].toUpperCase()+t.slice(1),Ur(a,"on"+t)}Ur(wC,"onAnimationEnd"),Ur(TC,"onAnimationIteration"),Ur(IC,"onAnimationStart"),Ur("dblclick","onDoubleClick"),Ur("focusin","onFocus"),Ur("focusout","onBlur"),Ur(SD,"onTransitionRun"),Ur(kD,"onTransitionStart"),Ur(LD,"onTransitionCancel"),Ur(RC,"onTransitionEnd")})(),Ko("onMouseEnter",["mouseout","mouseover"]),Ko("onMouseLeave",["mouseout","mouseover"]),Ko("onPointerEnter",["pointerout","pointerover"]),Ko("onPointerLeave",["pointerout","pointerover"]),bo("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),bo("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),bo("onBeforeInput",["compositionend","keypress","textInput","paste"]),bo("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),bo("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),bo("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Hc="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(" "),Fb=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Hc)),eh="_reactListening"+Math.random().toString(36).slice(2),Qw=!1,Ww=!1,th=!1,Zw=!1,ah=!1,oh=!1,Jw=!1,rh={},$D=/\r\n?/g,XD=/\u0000|\uFFFD/g,Si="http://www.w3.org/1999/xlink",Gb="http://www.w3.org/XML/1998/namespace",YD="javascript:throw new Error('React form unexpectedly submitted.')",KD="suppressHydrationWarning",ki="&",nh="/&",Fc="$",Gc="/$",gl="$?",Li="$~",ju="$!",QD="html",WD="body",ZD="head",Vb="F!",e1="F",t1="loading",JD="style",vs=0,$u=1,sh=2,jb=null,$b=null,a1={dialog:!0,webview:!0},Xb=null,Vc=void 0,o1=typeof setTimeout==="function"?setTimeout:void 0,eE=typeof clearTimeout==="function"?clearTimeout:void 0,Ci=-1,r1=typeof Promise==="function"?Promise:void 0,tE=typeof queueMicrotask==="function"?queueMicrotask:typeof r1<"u"?function(e){return r1.resolve(null).then(e).catch(UM)}:o1,Yb=null,wi=0,jc=1,n1=2,s1=3,Dr=4,Er=new Map,l1=new Set,bs=Kt.d;Kt.d={f:function(){var e=bs.f(),t=nu();return e||t},r:function(e){var t=at(e);t!==null&&t.tag===5&&t.type==="form"?CS(t):bs.r(e)},D:function(e){bs.D(e),yL("dns-prefetch",e,null)},C:function(e,t){bs.C(e,t),yL("preconnect",e,t)},L:function(e,t,a){bs.L(e,t,a);var o=Xu;if(o&&e&&t){var n='link[rel="preload"][as="'+br(t)+'"]';t==="image"?a&&a.imageSrcSet?(n+='[imagesrcset="'+br(a.imageSrcSet)+'"]',typeof a.imageSizes==="string"&&(n+='[imagesizes="'+br(a.imageSizes)+'"]')):n+='[href="'+br(e)+'"]':n+='[href="'+br(e)+'"]';var s=n;switch(t){case"style":s=iu(e);break;case"script":s=uu(e)}Er.has(s)||(e=St({rel:"preload",href:t==="image"&&a&&a.imageSrcSet?void 0:e,as:t},a),Er.set(s,e),o.querySelector(n)!==null||t==="style"&&o.querySelector(Wd(s))||t==="script"&&o.querySelector(Zd(s))||(t=o.createElement("link"),mo(t,"link",e),ze(t),o.head.appendChild(t)))}},m:function(e,t){bs.m(e,t);var a=Xu;if(a&&e){var o=t&&typeof t.as==="string"?t.as:"script",n='link[rel="modulepreload"][as="'+br(o)+'"][href="'+br(e)+'"]',s=n;switch(o){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":s=uu(e)}if(!Er.has(s)&&(e=St({rel:"modulepreload",href:e},t),Er.set(s,e),a.querySelector(n)===null)){switch(o){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(a.querySelector(Zd(s)))return}o=a.createElement("link"),mo(o,"link",e),ze(o),a.head.appendChild(o)}}},X:function(e,t){bs.X(e,t);var a=Xu;if(a&&e){var o=zt(a).hoistableScripts,n=uu(e),s=o.get(n);s||(s=a.querySelector(Zd(n)),s||(e=St({src:e,async:!0},t),(t=Er.get(n))&&yv(e,t),s=a.createElement("script"),ze(s),mo(s,"link",e),a.head.appendChild(s)),s={type:"script",instance:s,count:1,state:null},o.set(n,s))}},S:function(e,t,a){bs.S(e,t,a);var o=Xu;if(o&&e){var n=zt(o).hoistableStyles,s=iu(e);t=t||"default";var d=n.get(s);if(!d){var p={loading:wi,preload:null};if(d=o.querySelector(Wd(s)))p.loading=jc|Dr;else{e=St({rel:"stylesheet",href:e,"data-precedence":t},a),(a=Er.get(s))&&gv(e,a);var b=d=o.createElement("link");ze(b),mo(b,"link",e),b._p=new Promise(function(k,O){b.onload=k,b.onerror=O}),b.addEventListener("load",function(){p.loading|=jc}),b.addEventListener("error",function(){p.loading|=n1}),p.loading|=Dr,tm(d,t,o)}d={type:"stylesheet",instance:d,count:1,state:p},n.set(s,d)}}},M:function(e,t){bs.M(e,t);var a=Xu;if(a&&e){var o=zt(a).hoistableScripts,n=uu(e),s=o.get(n);s||(s=a.querySelector(Zd(n)),s||(e=St({src:e,async:!0,type:"module"},t),(t=Er.get(n))&&yv(e,t),s=a.createElement("script"),ze(s),mo(s,"link",e),a.head.appendChild(s)),s={type:"script",instance:s,count:1,state:null},o.set(n,s))}}};var Xu=typeof document>"u"?null:document,lh=null,aE=60000,oE=800,rE=500,Kb=0,Qb=null,ih=null,Ti=bA,$c={$$typeof:Cn,Provider:null,Consumer:null,_currentValue:Ti,_currentValue2:Ti,_threadCount:0},i1="%c%s%c",u1="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",d1="",uh=" ",nE=Function.prototype.bind,c1=!1,f1=null,p1=null,m1=null,h1=null,g1=null,y1=null,v1=null,b1=null,x1=null,S1=null;f1=function(e,t,a,o){t=r(e,t),t!==null&&(a=i(t.memoizedState,a,0,o),t.memoizedState=a,t.baseState=a,e.memoizedProps=St({},e.memoizedProps),a=xo(e,2),a!==null&&Ta(a,e,2))},p1=function(e,t,a){t=r(e,t),t!==null&&(a=f(t.memoizedState,a,0),t.memoizedState=a,t.baseState=a,e.memoizedProps=St({},e.memoizedProps),a=xo(e,2),a!==null&&Ta(a,e,2))},m1=function(e,t,a,o){t=r(e,t),t!==null&&(a=l(t.memoizedState,a,o),t.memoizedState=a,t.baseState=a,e.memoizedProps=St({},e.memoizedProps),a=xo(e,2),a!==null&&Ta(a,e,2))},h1=function(e,t,a){e.pendingProps=i(e.memoizedProps,t,0,a),e.alternate&&(e.alternate.pendingProps=e.pendingProps),t=xo(e,2),t!==null&&Ta(t,e,2)},g1=function(e,t){e.pendingProps=f(e.memoizedProps,t,0),e.alternate&&(e.alternate.pendingProps=e.pendingProps),t=xo(e,2),t!==null&&Ta(t,e,2)},y1=function(e,t,a){e.pendingProps=l(e.memoizedProps,t,a),e.alternate&&(e.alternate.pendingProps=e.pendingProps),t=xo(e,2),t!==null&&Ta(t,e,2)},v1=function(e){var t=xo(e,2);t!==null&&Ta(t,e,2)},b1=function(e){var t=ji(),a=xo(e,t);a!==null&&Ta(a,e,t)},x1=function(e){g=e},S1=function(e){y=e};var dh=!0,ch=null,Wb=!1,yl=null,vl=null,bl=null,Xc=new Map,Yc=new Map,xl=[],sE="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(" "),fh=null;if(sm.prototype.render=Lv.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()."):R(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=ar(o);vv(o,n,a,t,null,null)},sm.prototype.unmount=Lv.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;(Bt&(Ja|dr))!==so&&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."),vv(e.current,2,null,e,null,null),nu(),t[Qs]=null}},sm.prototype.unstable_scheduleHydration=function(e){if(e){var t=U();e={blockedOn:null,target:e,priority:t};for(var a=0;a<xl.length&&t!==0&&t<xl[a].priority;a++);xl.splice(a,0,e),a===0&&DL(e)}},function(){var e=Ku.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 d="";a!=null&&e!==a&&(o=null,typeof a.tag==="number"?o=V(a):typeof a.name==="string"&&(o=a.name),o&&(d=" It was passed a child from "+o+".")),H(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.',s,d)})}}};var mi=W0(!0),sw=W0(!1),lw=0,iw=1,uw=2,vb=3,ul=!1,dw=!1,bb=null,xb=!1,Nu=Ie(null),Pm=Ie(0),cn=Ie(null),An=null,qu=1,Mc=2,Pa=Ie(0),Um=0,Dn=1,Oo=2,fn=4,Bo=8,Ou,cw=new Set,fw=new Set,Sb=new Set,pw=new Set,hs=0,et=null,oa=null,ja=null,_m=!1,Bu=!1,hi=!1,Hm=0,Ac=0,gs=null,_D=0,HD=25,Y=null,En=null,ys=-1,Dc=!1,Ec={readContext:ba,use:js,useCallback:Da,useContext:Da,useEffect:Da,useImperativeHandle:Da,useLayoutEffect:Da,useInsertionEffect:Da,useMemo:Da,useReducer:Da,useRef:Da,useState:Da,useDebugValue:Da,useDeferredValue:Da,useTransition:Da,useSyncExternalStore:Da,useId:Da,useHostTransitionStatus:Da,useFormState:Da,useActionState:Da,useOptimistic:Da,useMemoCache:Da,useCacheRefresh:Da};Ec.useEffectEvent=Da;var kb=null,mw=null,Lb=null,hw=null,Or=null,Yn=null,Fm=null;kb={readContext:function(e){return ba(e)},use:js,useCallback:function(e,t){return Y="useCallback",St(),Zi(t),xy(e,t)},useContext:function(e){return Y="useContext",St(),ba(e)},useEffect:function(e,t){return Y="useEffect",St(),Zi(t),Op(e,t)},useImperativeHandle:function(e,t,a){return Y="useImperativeHandle",St(),Zi(a),by(e,t,a)},useInsertionEffect:function(e,t){Y="useInsertionEffect",St(),Zi(t),Jl(4,Oo,e,t)},useLayoutEffect:function(e,t){return Y="useLayoutEffect",St(),Zi(t),vy(e,t)},useMemo:function(e,t){Y="useMemo",St(),Zi(t);var a=K.H;K.H=Or;try{return Sy(e,t)}finally{K.H=a}},useReducer:function(e,t,a){Y="useReducer",St();var o=K.H;K.H=Or;try{return uy(e,t,a)}finally{K.H=o}},useRef:function(e){return Y="useRef",St(),gy(e)},useState:function(e){Y="useState",St();var t=K.H;K.H=Or;try{return py(e)}finally{K.H=t}},useDebugValue:function(){Y="useDebugValue",St()},useDeferredValue:function(e,t){return Y="useDeferredValue",St(),ky(e,t)},useTransition:function(){return Y="useTransition",St(),wy()},useSyncExternalStore:function(e,t,a){return Y="useSyncExternalStore",St(),cy(e,t,a)},useId:function(){return Y="useId",St(),Ty()},useFormState:function(e,t){return Y="useFormState",St(),Ap(),eu(e,t)},useActionState:function(e,t){return Y="useActionState",St(),eu(e,t)},useOptimistic:function(e){return Y="useOptimistic",St(),my(e)},useHostTransitionStatus:ei,useMemoCache:Zl,useCacheRefresh:function(){return Y="useCacheRefresh",St(),Iy()},useEffectEvent:function(e){return Y="useEffectEvent",St(),yy(e)}},mw={readContext:function(e){return ba(e)},use:js,useCallback:function(e,t){return Y="useCallback",re(),xy(e,t)},useContext:function(e){return Y="useContext",re(),ba(e)},useEffect:function(e,t){return Y="useEffect",re(),Op(e,t)},useImperativeHandle:function(e,t,a){return Y="useImperativeHandle",re(),by(e,t,a)},useInsertionEffect:function(e,t){Y="useInsertionEffect",re(),Jl(4,Oo,e,t)},useLayoutEffect:function(e,t){return Y="useLayoutEffect",re(),vy(e,t)},useMemo:function(e,t){Y="useMemo",re();var a=K.H;K.H=Or;try{return Sy(e,t)}finally{K.H=a}},useReducer:function(e,t,a){Y="useReducer",re();var o=K.H;K.H=Or;try{return uy(e,t,a)}finally{K.H=o}},useRef:function(e){return Y="useRef",re(),gy(e)},useState:function(e){Y="useState",re();var t=K.H;K.H=Or;try{return py(e)}finally{K.H=t}},useDebugValue:function(){Y="useDebugValue",re()},useDeferredValue:function(e,t){return Y="useDeferredValue",re(),ky(e,t)},useTransition:function(){return Y="useTransition",re(),wy()},useSyncExternalStore:function(e,t,a){return Y="useSyncExternalStore",re(),cy(e,t,a)},useId:function(){return Y="useId",re(),Ty()},useActionState:function(e,t){return Y="useActionState",re(),eu(e,t)},useFormState:function(e,t){return Y="useFormState",re(),Ap(),eu(e,t)},useOptimistic:function(e){return Y="useOptimistic",re(),my(e)},useHostTransitionStatus:ei,useMemoCache:Zl,useCacheRefresh:function(){return Y="useCacheRefresh",re(),Iy()},useEffectEvent:function(e){return Y="useEffectEvent",re(),yy(e)}},Lb={readContext:function(e){return ba(e)},use:js,useCallback:function(e,t){return Y="useCallback",re(),Pp(e,t)},useContext:function(e){return Y="useContext",re(),ba(e)},useEffect:function(e,t){Y="useEffect",re(),Fo(2048,Bo,e,t)},useImperativeHandle:function(e,t,a){return Y="useImperativeHandle",re(),zp(e,t,a)},useInsertionEffect:function(e,t){return Y="useInsertionEffect",re(),Fo(4,Oo,e,t)},useLayoutEffect:function(e,t){return Y="useLayoutEffect",re(),Fo(4,fn,e,t)},useMemo:function(e,t){Y="useMemo",re();var a=K.H;K.H=Yn;try{return Up(e,t)}finally{K.H=a}},useReducer:function(e,t,a){Y="useReducer",re();var o=K.H;K.H=Yn;try{return Ji(e,t,a)}finally{K.H=o}},useRef:function(){return Y="useRef",re(),Zt().memoizedState},useState:function(){Y="useState",re();var e=K.H;K.H=Yn;try{return Ji(Fn)}finally{K.H=e}},useDebugValue:function(){Y="useDebugValue",re()},useDeferredValue:function(e,t){return Y="useDeferredValue",re(),bS(e,t)},useTransition:function(){return Y="useTransition",re(),wS()},useSyncExternalStore:function(e,t,a){return Y="useSyncExternalStore",re(),Ep(e,t,a)},useId:function(){return Y="useId",re(),Zt().memoizedState},useFormState:function(e){return Y="useFormState",re(),Ap(),Np(e)},useActionState:function(e){return Y="useActionState",re(),Np(e)},useOptimistic:function(e,t){return Y="useOptimistic",re(),uS(e,t)},useHostTransitionStatus:ei,useMemoCache:Zl,useCacheRefresh:function(){return Y="useCacheRefresh",re(),Zt().memoizedState},useEffectEvent:function(e){return Y="useEffectEvent",re(),Bp(e)}},hw={readContext:function(e){return ba(e)},use:js,useCallback:function(e,t){return Y="useCallback",re(),Pp(e,t)},useContext:function(e){return Y="useContext",re(),ba(e)},useEffect:function(e,t){Y="useEffect",re(),Fo(2048,Bo,e,t)},useImperativeHandle:function(e,t,a){return Y="useImperativeHandle",re(),zp(e,t,a)},useInsertionEffect:function(e,t){return Y="useInsertionEffect",re(),Fo(4,Oo,e,t)},useLayoutEffect:function(e,t){return Y="useLayoutEffect",re(),Fo(4,fn,e,t)},useMemo:function(e,t){Y="useMemo",re();var a=K.H;K.H=Fm;try{return Up(e,t)}finally{K.H=a}},useReducer:function(e,t,a){Y="useReducer",re();var o=K.H;K.H=Fm;try{return zd(e,t,a)}finally{K.H=o}},useRef:function(){return Y="useRef",re(),Zt().memoizedState},useState:function(){Y="useState",re();var e=K.H;K.H=Fm;try{return zd(Fn)}finally{K.H=e}},useDebugValue:function(){Y="useDebugValue",re()},useDeferredValue:function(e,t){return Y="useDeferredValue",re(),xS(e,t)},useTransition:function(){return Y="useTransition",re(),TS()},useSyncExternalStore:function(e,t,a){return Y="useSyncExternalStore",re(),Ep(e,t,a)},useId:function(){return Y="useId",re(),Zt().memoizedState},useFormState:function(e){return Y="useFormState",re(),Ap(),qp(e)},useActionState:function(e){return Y="useActionState",re(),qp(e)},useOptimistic:function(e,t){return Y="useOptimistic",re(),cS(e,t)},useHostTransitionStatus:ei,useMemoCache:Zl,useCacheRefresh:function(){return Y="useCacheRefresh",re(),Zt().memoizedState},useEffectEvent:function(e){return Y="useEffectEvent",re(),Bp(e)}},Or={readContext:function(e){return h(),ba(e)},use:function(e){return v(),js(e)},useCallback:function(e,t){return Y="useCallback",v(),St(),xy(e,t)},useContext:function(e){return Y="useContext",v(),St(),ba(e)},useEffect:function(e,t){return Y="useEffect",v(),St(),Op(e,t)},useImperativeHandle:function(e,t,a){return Y="useImperativeHandle",v(),St(),by(e,t,a)},useInsertionEffect:function(e,t){Y="useInsertionEffect",v(),St(),Jl(4,Oo,e,t)},useLayoutEffect:function(e,t){return Y="useLayoutEffect",v(),St(),vy(e,t)},useMemo:function(e,t){Y="useMemo",v(),St();var a=K.H;K.H=Or;try{return Sy(e,t)}finally{K.H=a}},useReducer:function(e,t,a){Y="useReducer",v(),St();var o=K.H;K.H=Or;try{return uy(e,t,a)}finally{K.H=o}},useRef:function(e){return Y="useRef",v(),St(),gy(e)},useState:function(e){Y="useState",v(),St();var t=K.H;K.H=Or;try{return py(e)}finally{K.H=t}},useDebugValue:function(){Y="useDebugValue",v(),St()},useDeferredValue:function(e,t){return Y="useDeferredValue",v(),St(),ky(e,t)},useTransition:function(){return Y="useTransition",v(),St(),wy()},useSyncExternalStore:function(e,t,a){return Y="useSyncExternalStore",v(),St(),cy(e,t,a)},useId:function(){return Y="useId",v(),St(),Ty()},useFormState:function(e,t){return Y="useFormState",v(),St(),eu(e,t)},useActionState:function(e,t){return Y="useActionState",v(),St(),eu(e,t)},useOptimistic:function(e){return Y="useOptimistic",v(),St(),my(e)},useMemoCache:function(e){return v(),Zl(e)},useHostTransitionStatus:ei,useCacheRefresh:function(){return Y="useCacheRefresh",St(),Iy()},useEffectEvent:function(e){return Y="useEffectEvent",v(),St(),yy(e)}},Yn={readContext:function(e){return h(),ba(e)},use:function(e){return v(),js(e)},useCallback:function(e,t){return Y="useCallback",v(),re(),Pp(e,t)},useContext:function(e){return Y="useContext",v(),re(),ba(e)},useEffect:function(e,t){Y="useEffect",v(),re(),Fo(2048,Bo,e,t)},useImperativeHandle:function(e,t,a){return Y="useImperativeHandle",v(),re(),zp(e,t,a)},useInsertionEffect:function(e,t){return Y="useInsertionEffect",v(),re(),Fo(4,Oo,e,t)},useLayoutEffect:function(e,t){return Y="useLayoutEffect",v(),re(),Fo(4,fn,e,t)},useMemo:function(e,t){Y="useMemo",v(),re();var a=K.H;K.H=Yn;try{return Up(e,t)}finally{K.H=a}},useReducer:function(e,t,a){Y="useReducer",v(),re();var o=K.H;K.H=Yn;try{return Ji(e,t,a)}finally{K.H=o}},useRef:function(){return Y="useRef",v(),re(),Zt().memoizedState},useState:function(){Y="useState",v(),re();var e=K.H;K.H=Yn;try{return Ji(Fn)}finally{K.H=e}},useDebugValue:function(){Y="useDebugValue",v(),re()},useDeferredValue:function(e,t){return Y="useDeferredValue",v(),re(),bS(e,t)},useTransition:function(){return Y="useTransition",v(),re(),wS()},useSyncExternalStore:function(e,t,a){return Y="useSyncExternalStore",v(),re(),Ep(e,t,a)},useId:function(){return Y="useId",v(),re(),Zt().memoizedState},useFormState:function(e){return Y="useFormState",v(),re(),Np(e)},useActionState:function(e){return Y="useActionState",v(),re(),Np(e)},useOptimistic:function(e,t){return Y="useOptimistic",v(),re(),uS(e,t)},useMemoCache:function(e){return v(),Zl(e)},useHostTransitionStatus:ei,useCacheRefresh:function(){return Y="useCacheRefresh",re(),Zt().memoizedState},useEffectEvent:function(e){return Y="useEffectEvent",v(),re(),Bp(e)}},Fm={readContext:function(e){return h(),ba(e)},use:function(e){return v(),js(e)},useCallback:function(e,t){return Y="useCallback",v(),re(),Pp(e,t)},useContext:function(e){return Y="useContext",v(),re(),ba(e)},useEffect:function(e,t){Y="useEffect",v(),re(),Fo(2048,Bo,e,t)},useImperativeHandle:function(e,t,a){return Y="useImperativeHandle",v(),re(),zp(e,t,a)},useInsertionEffect:function(e,t){return Y="useInsertionEffect",v(),re(),Fo(4,Oo,e,t)},useLayoutEffect:function(e,t){return Y="useLayoutEffect",v(),re(),Fo(4,fn,e,t)},useMemo:function(e,t){Y="useMemo",v(),re();var a=K.H;K.H=Yn;try{return Up(e,t)}finally{K.H=a}},useReducer:function(e,t,a){Y="useReducer",v(),re();var o=K.H;K.H=Yn;try{return zd(e,t,a)}finally{K.H=o}},useRef:function(){return Y="useRef",v(),re(),Zt().memoizedState},useState:function(){Y="useState",v(),re();var e=K.H;K.H=Yn;try{return zd(Fn)}finally{K.H=e}},useDebugValue:function(){Y="useDebugValue",v(),re()},useDeferredValue:function(e,t){return Y="useDeferredValue",v(),re(),xS(e,t)},useTransition:function(){return Y="useTransition",v(),re(),TS()},useSyncExternalStore:function(e,t,a){return Y="useSyncExternalStore",v(),re(),Ep(e,t,a)},useId:function(){return Y="useId",v(),re(),Zt().memoizedState},useFormState:function(e){return Y="useFormState",v(),re(),qp(e)},useActionState:function(e){return Y="useActionState",v(),re(),qp(e)},useOptimistic:function(e,t){return Y="useOptimistic",v(),re(),cS(e,t)},useMemoCache:function(e){return v(),Zl(e)},useHostTransitionStatus:ei,useCacheRefresh:function(){return Y="useCacheRefresh",re(),Zt().memoizedState},useEffectEvent:function(e){return Y="useEffectEvent",v(),re(),Bp(e)}};var gw={},yw=new Set,vw=new Set,bw=new Set,xw=new Set,Sw=new Set,kw=new Set,Lw=new Set,Cw=new Set,ww=new Set,Tw=new Set;Object.freeze(gw);var Cb={enqueueSetState:function(e,t,a){e=e._reactInternals;var o=nn(e),r=Hs(o);r.payload=t,a!==void 0&&a!==null&&(My(a),r.callback=a),t=Fs(e,r,o),t!==null&&(fr(o,"this.setState()",e),Ta(t,e,o),Nd(t,e,o))},enqueueReplaceState:function(e,t,a){e=e._reactInternals;var o=nn(e),r=Hs(o);r.tag=iw,r.payload=t,a!==void 0&&a!==null&&(My(a),r.callback=a),t=Fs(e,r,o),t!==null&&(fr(o,"this.replaceState()",e),Ta(t,e,o),Nd(t,e,o))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var a=nn(e),o=Hs(a);o.tag=uw,t!==void 0&&t!==null&&(My(t),o.callback=t),t=Fs(e,o,a),t!==null&&(fr(a,"this.forceUpdate()",e),Ta(t,e,a),Nd(t,e,a))}},zu=null,wb=null,Tb=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."),$a=!1,Iw={},Rw={},Mw={},Aw={},Pu=!1,Dw={},Gm={},Ib={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null},Ew=!1,Nw=null;Nw=new Set;var vs=!1,Xa=!1,Rb=!1,qw=typeof WeakSet==="function"?WeakSet:Set,so=null,Uu=null,_u=null,Ya=null,jo=!1,Kn=null,Ja=!1,Nc=8192,FD={getCacheForType:function(e){var t=ba(Ga),a=t.data.get(e);return a===void 0&&(a=e(),t.data.set(e,a)),a},cacheSignal:function(){return ba(Ga).controller.signal},getOwner:function(){return ln}};if(typeof Symbol==="function"&&Symbol.for){var qc=Symbol.for;qc("selector.component"),qc("selector.has_pseudo_class"),qc("selector.role"),qc("selector.test_id"),qc("selector.text")}var GD=[],VD=typeof WeakMap==="function"?WeakMap:Map,lo=0,eo=2,pn=4,bs=0,Oc=1,gi=2,Vm=3,dl=4,jm=6,Ow=5,Bt=lo,na=null,gt=null,pt=0,$o=0,$m=1,yi=2,Bc=3,Bw=4,Mb=5,zc=6,Xm=7,Ab=8,vi=9,Jt=$o,mn=null,cl=!1,Hu=!1,Db=!1,Br=0,wa=bs,fl=0,pl=0,Eb=0,Xo=0,bi=0,Pc=null,zo=null,Ym=!1,Km=0,zw=0,Pw=300,Qm=1/0,Uw=500,Uc=null,Ea=null,ml=null,Wm=0,Nb=1,qb=2,_w=3,hl=0,Hw=1,Fw=2,Gw=3,Vw=4,Zm=5,Ka=0,gl=null,Fu=null,Qn=0,Ob=0,Bb=-0,zb=null,jw=null,$w=null,Wn=Wm,Xw=null,jD=50,_c=0,Pb=null,Ub=!1,Jm=!1,$D=50,xi=0,Hc=null,Gu=!1,eh=null,Yw=!1,Kw=new Set,XD={},th=null,Vu=null,_b=!1,Hb=!1,ah=!1,Fb=!1,yl=0,Gb={};(function(){for(var e=0;e<eb.length;e++){var t=eb[e],a=t.toLowerCase();t=t[0].toUpperCase()+t.slice(1),Hn(a,"on"+t)}Hn(wC,"onAnimationEnd"),Hn(TC,"onAnimationIteration"),Hn(IC,"onAnimationStart"),Hn("dblclick","onDoubleClick"),Hn("focusin","onFocus"),Hn("focusout","onBlur"),Hn(LD,"onTransitionRun"),Hn(CD,"onTransitionStart"),Hn(wD,"onTransitionCancel"),Hn(RC,"onTransitionEnd")})(),Wo("onMouseEnter",["mouseout","mouseover"]),Wo("onMouseLeave",["mouseout","mouseover"]),Wo("onPointerEnter",["pointerout","pointerover"]),Wo("onPointerLeave",["pointerout","pointerover"]),So("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),So("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),So("onBeforeInput",["compositionend","keypress","textInput","paste"]),So("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),So("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),So("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Fc="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(" "),Vb=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Fc)),oh="_reactListening"+Math.random().toString(36).slice(2),Qw=!1,Ww=!1,nh=!1,Zw=!1,rh=!1,sh=!1,Jw=!1,lh={},YD=/\r\n?/g,KD=/\u0000|\uFFFD/g,Si="http://www.w3.org/1999/xlink",jb="http://www.w3.org/XML/1998/namespace",QD="javascript:throw new Error('React form unexpectedly submitted.')",WD="suppressHydrationWarning",ki="&",ih="/&",Gc="$",Vc="/$",vl="$?",Li="$~",ju="$!",ZD="html",JD="body",eE="head",$b="F!",e1="F",t1="loading",tE="style",xs=0,$u=1,uh=2,Xb=null,Yb=null,a1={dialog:!0,webview:!0},Kb=null,jc=void 0,o1=typeof setTimeout==="function"?setTimeout:void 0,aE=typeof clearTimeout==="function"?clearTimeout:void 0,Ci=-1,n1=typeof Promise==="function"?Promise:void 0,oE=typeof queueMicrotask==="function"?queueMicrotask:typeof n1<"u"?function(e){return n1.resolve(null).then(e).catch(HM)}:o1,Qb=null,wi=0,$c=1,r1=2,s1=3,Nn=4,qn=new Map,l1=new Set,Ss=Qt.d;Qt.d={f:function(){var e=Ss.f(),t=ru();return e||t},r:function(e){var t=at(e);t!==null&&t.tag===5&&t.type==="form"?CS(t):Ss.r(e)},D:function(e){Ss.D(e),yL("dns-prefetch",e,null)},C:function(e,t){Ss.C(e,t),yL("preconnect",e,t)},L:function(e,t,a){Ss.L(e,t,a);var o=Xu;if(o&&e&&t){var r='link[rel="preload"][as="'+Sn(t)+'"]';t==="image"?a&&a.imageSrcSet?(r+='[imagesrcset="'+Sn(a.imageSrcSet)+'"]',typeof a.imageSizes==="string"&&(r+='[imagesizes="'+Sn(a.imageSizes)+'"]')):r+='[href="'+Sn(e)+'"]':r+='[href="'+Sn(e)+'"]';var s=r;switch(t){case"style":s=iu(e);break;case"script":s=uu(e)}qn.has(s)||(e=kt({rel:"preload",href:t==="image"&&a&&a.imageSrcSet?void 0:e,as:t},a),qn.set(s,e),o.querySelector(r)!==null||t==="style"&&o.querySelector(Zd(s))||t==="script"&&o.querySelector(Jd(s))||(t=o.createElement("link"),ho(t,"link",e),ze(t),o.head.appendChild(t)))}},m:function(e,t){Ss.m(e,t);var a=Xu;if(a&&e){var o=t&&typeof t.as==="string"?t.as:"script",r='link[rel="modulepreload"][as="'+Sn(o)+'"][href="'+Sn(e)+'"]',s=r;switch(o){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":s=uu(e)}if(!qn.has(s)&&(e=kt({rel:"modulepreload",href:e},t),qn.set(s,e),a.querySelector(r)===null)){switch(o){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(a.querySelector(Jd(s)))return}o=a.createElement("link"),ho(o,"link",e),ze(o),a.head.appendChild(o)}}},X:function(e,t){Ss.X(e,t);var a=Xu;if(a&&e){var o=zt(a).hoistableScripts,r=uu(e),s=o.get(r);s||(s=a.querySelector(Jd(r)),s||(e=kt({src:e,async:!0},t),(t=qn.get(r))&&bv(e,t),s=a.createElement("script"),ze(s),ho(s,"link",e),a.head.appendChild(s)),s={type:"script",instance:s,count:1,state:null},o.set(r,s))}},S:function(e,t,a){Ss.S(e,t,a);var o=Xu;if(o&&e){var r=zt(o).hoistableStyles,s=iu(e);t=t||"default";var d=r.get(s);if(!d){var p={loading:wi,preload:null};if(d=o.querySelector(Zd(s)))p.loading=$c|Nn;else{e=kt({rel:"stylesheet",href:e,"data-precedence":t},a),(a=qn.get(s))&&vv(e,a);var b=d=o.createElement("link");ze(b),ho(b,"link",e),b._p=new Promise(function(k,q){b.onload=k,b.onerror=q}),b.addEventListener("load",function(){p.loading|=$c}),b.addEventListener("error",function(){p.loading|=r1}),p.loading|=Nn,nm(d,t,o)}d={type:"stylesheet",instance:d,count:1,state:p},r.set(s,d)}}},M:function(e,t){Ss.M(e,t);var a=Xu;if(a&&e){var o=zt(a).hoistableScripts,r=uu(e),s=o.get(r);s||(s=a.querySelector(Jd(r)),s||(e=kt({src:e,async:!0,type:"module"},t),(t=qn.get(r))&&bv(e,t),s=a.createElement("script"),ze(s),ho(s,"link",e),a.head.appendChild(s)),s={type:"script",instance:s,count:1,state:null},o.set(r,s))}}};var Xu=typeof document>"u"?null:document,dh=null,nE=60000,rE=800,sE=500,Wb=0,Zb=null,ch=null,Ti=SA,Xc={$$typeof:Tr,Provider:null,Consumer:null,_currentValue:Ti,_currentValue2:Ti,_threadCount:0},i1="%c%s%c",u1="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",d1="",fh=" ",lE=Function.prototype.bind,c1=!1,f1=null,p1=null,m1=null,h1=null,g1=null,y1=null,v1=null,b1=null,x1=null,S1=null;f1=function(e,t,a,o){t=n(e,t),t!==null&&(a=i(t.memoizedState,a,0,o),t.memoizedState=a,t.baseState=a,e.memoizedProps=kt({},e.memoizedProps),a=ko(e,2),a!==null&&Ta(a,e,2))},p1=function(e,t,a){t=n(e,t),t!==null&&(a=f(t.memoizedState,a,0),t.memoizedState=a,t.baseState=a,e.memoizedProps=kt({},e.memoizedProps),a=ko(e,2),a!==null&&Ta(a,e,2))},m1=function(e,t,a,o){t=n(e,t),t!==null&&(a=l(t.memoizedState,a,o),t.memoizedState=a,t.baseState=a,e.memoizedProps=kt({},e.memoizedProps),a=ko(e,2),a!==null&&Ta(a,e,2))},h1=function(e,t,a){e.pendingProps=i(e.memoizedProps,t,0,a),e.alternate&&(e.alternate.pendingProps=e.pendingProps),t=ko(e,2),t!==null&&Ta(t,e,2)},g1=function(e,t){e.pendingProps=f(e.memoizedProps,t,0),e.alternate&&(e.alternate.pendingProps=e.pendingProps),t=ko(e,2),t!==null&&Ta(t,e,2)},y1=function(e,t,a){e.pendingProps=l(e.memoizedProps,t,a),e.alternate&&(e.alternate.pendingProps=e.pendingProps),t=ko(e,2),t!==null&&Ta(t,e,2)},v1=function(e){var t=ko(e,2);t!==null&&Ta(t,e,2)},b1=function(e){var t=ji(),a=ko(e,t);a!==null&&Ta(a,e,t)},x1=function(e){g=e},S1=function(e){y=e};var ph=!0,mh=null,Jb=!1,bl=null,xl=null,Sl=null,Yc=new Map,Kc=new Map,kl=[],iE="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(" "),hh=null;if(um.prototype.render=wv.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()."):R(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=nn(o);xv(o,r,a,t,null,null)},um.prototype.unmount=wv.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;(Bt&(eo|pn))!==lo&&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."),xv(e.current,2,null,e,null,null),ru(),t[Zs]=null}},um.prototype.unstable_scheduleHydration=function(e){if(e){var t=U();e={blockedOn:null,target:e,priority:t};for(var a=0;a<kl.length&&t!==0&&t<kl[a].priority;a++);kl.splice(a,0,e),a===0&&DL(e)}},function(){var e=Ku.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"),Kt.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=de(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:Y,reconcilerVersion:"19.2.7"};return e.overrideHookState=f1,e.overrideHookStateDeletePath=p1,e.overrideHookStateRenamePath=m1,e.overrideProps=h1,e.overridePropsDeletePath=g1,e.overridePropsRenamePath=y1,e.scheduleUpdate=v1,e.scheduleRetry=b1,e.setErrorHandler=x1,e.setSuspenseHandler=S1,e.scheduleRefresh=w,e.scheduleRoot=T,e.setRefreshHandler=I,e.getCurrentFiber=cA,Pr(e)}()&&Mn&&window.top===window.self&&(-1<navigator.userAgent.indexOf("Chrome")&&navigator.userAgent.indexOf("Edge")===-1||-1<navigator.userAgent.indexOf("Firefox"))){var k1=window.location.protocol;/^(https?|file):$/.test(k1)&&console.info("%cDownload the React DevTools for a better development experience: https://react.dev/link/react-devtools"+(k1==="file:"?`
227
- You might need to use a local HTTP server (instead of file://): https://react.dev/link/react-devtools-faq`:""),"font-weight:bold")}yE.createRoot=function(e,t){if(!R(e))throw Error("Target container is not a DOM element.");OL(e);var a=!1,o="",n=ES,s=NS,d=qS;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===Ln&&console.error(`You passed a JSX element to createRoot. You probably meant to call root.render instead. Example usage:
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"),Qt.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=ue(t),e=e!==null?Z(e):null,e=e===null?null:e.stateNode,e},!function(){var e={bundleType:1,version:"19.2.7",rendererPackageName:"react-dom",currentDispatcherRef:K,reconcilerVersion:"19.2.7"};return e.overrideHookState=f1,e.overrideHookStateDeletePath=p1,e.overrideHookStateRenamePath=m1,e.overrideProps=h1,e.overridePropsDeletePath=g1,e.overridePropsRenamePath=y1,e.scheduleUpdate=v1,e.scheduleRetry=b1,e.setErrorHandler=x1,e.setSuspenseHandler=S1,e.scheduleRefresh=w,e.scheduleRoot=I,e.setRefreshHandler=T,e.getCurrentFiber=pA,Aa(e)}()&&Dr&&window.top===window.self&&(-1<navigator.userAgent.indexOf("Chrome")&&navigator.userAgent.indexOf("Edge")===-1||-1<navigator.userAgent.indexOf("Firefox"))){var k1=window.location.protocol;/^(https?|file):$/.test(k1)&&console.info("%cDownload the React DevTools for a better development experience: https://react.dev/link/react-devtools"+(k1==="file:"?`
227
+ You might need to use a local HTTP server (instead of file://): https://react.dev/link/react-devtools-faq`:""),"font-weight:bold")}bE.createRoot=function(e,t){if(!R(e))throw Error("Target container is not a DOM element.");OL(e);var a=!1,o="",r=ES,s=NS,d=qS;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===wr&&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&&(n=t.onUncaughtError),t.onCaughtError!==void 0&&(s=t.onCaughtError),t.onRecoverableError!==void 0&&(d=t.onRecoverableError)),t=CL(e,1,!1,null,null,a,o,null,n,s,d,qL),e[Qs]=t.current,rv(e),new Lv(t)},yE.hydrateRoot=function(e,t,a){if(!R(e))throw Error("Target container is not a DOM element.");OL(e),t===void 0&&console.error("Must provide initial children as second argument to hydrateRoot. Example usage: hydrateRoot(domContainer, <App />)");var o=!1,n="",s=ES,d=NS,p=qS,b=null;return a!==null&&a!==void 0&&(a.unstable_strictMode===!0&&(o=!0),a.identifierPrefix!==void 0&&(n=a.identifierPrefix),a.onUncaughtError!==void 0&&(s=a.onUncaughtError),a.onCaughtError!==void 0&&(d=a.onCaughtError),a.onRecoverableError!==void 0&&(p=a.onRecoverableError),a.formState!==void 0&&(b=a.formState)),t=CL(e,1,!0,t,a!=null?a:null,o,n,b,s,d,p,qL),t.context=wL(null),a=t.current,o=ar(a),o=Fl(o),n=Us(o),n.callback=null,_s(a,n,o),dn(o,"hydrateRoot()",null),a=o,t.current.lanes=a,Es(t,a),Sn(t),e[Qs]=t.current,rv(e),new sm(t)},yE.version="19.2.7",typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop==="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()});var R1=Ii(function(vE,hh){hh.exports=_(I1())});var ae=Ii(function(BE){var Ni=_(Qe());(function(){function r(Z){if(Z==null)return null;if(typeof Z==="function")return Z.$$typeof===X?null:Z.displayName||Z.name||null;if(typeof Z==="string")return Z;switch(Z){case I:return"Fragment";case N:return"Profiler";case R:return"StrictMode";case de:return"Suspense";case W:return"SuspenseList";case H:return"Activity"}if(typeof Z==="object")switch(typeof Z.tag==="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),Z.$$typeof){case w:return"Portal";case V:return Z.displayName||"Context";case P:return(Z._context.displayName||"Context")+".Consumer";case K:var He=Z.render;return Z=Z.displayName,Z||(Z=He.displayName||He.name||"",Z=Z!==""?"ForwardRef("+Z+")":"ForwardRef"),Z;case fe:return He=Z.displayName||null,He!==null?He:r(Z.type)||"Memo";case ee:He=Z._payload,Z=Z._init;try{return r(Z(He))}catch(Ct){}}return null}function i(Z){return""+Z}function l(Z){try{i(Z);var He=!1}catch(he){He=!0}if(He){He=console;var Ct=He.error,wt=typeof Symbol==="function"&&Symbol.toStringTag&&Z[Symbol.toStringTag]||Z.constructor.name||"Object";return Ct.call(He,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",wt),i(Z)}}function c(Z){if(Z===I)return"<>";if(typeof Z==="object"&&Z!==null&&Z.$$typeof===ee)return"<...>";try{var He=r(Z);return He?"<"+He+">":"<...>"}catch(Ct){return"<...>"}}function f(){var Z=Le.A;return Z===null?null:Z.getOwner()}function y(){return Error("react-stack-top-frame")}function g(Z){if(me.call(Z,"key")){var He=Object.getOwnPropertyDescriptor(Z,"key").get;if(He&&He.isReactWarning)return!1}return Z.key!==void 0}function v(Z,He){function Ct(){re||(re=!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)",He))}Ct.isReactWarning=!0,Object.defineProperty(Z,"key",{get:Ct,configurable:!0})}function h(){var Z=r(this.type);return xe[Z]||(xe[Z]=!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.")),Z=this.props.ref,Z!==void 0?Z:null}function x(Z,He,Ct,wt,he,Ye){var Fe=Ct.ref;return Z={$$typeof:T,type:Z,key:He,props:Ct,_owner:wt},(Fe!==void 0?Fe:null)!==null?Object.defineProperty(Z,"ref",{enumerable:!1,get:h}):Object.defineProperty(Z,"ref",{enumerable:!1,value:null}),Z._store={},Object.defineProperty(Z._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(Z,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(Z,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:he}),Object.defineProperty(Z,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:Ye}),Object.freeze&&(Object.freeze(Z.props),Object.freeze(Z)),Z}function m(Z,He,Ct,wt,he,Ye){var Fe=He.children;if(Fe!==void 0)if(wt)if(Oe(Fe)){for(wt=0;wt<Fe.length;wt++)S(Fe[wt]);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 S(Fe);if(me.call(He,"key")){Fe=r(Z);var ua=Object.keys(He).filter(function(G){return G!=="key"});wt=0<ua.length?"{key: someKey, "+ua.join(": ..., ")+": ...}":"{key: someKey}",ht[Fe+wt]||(ua=0<ua.length?"{"+ua.join(": ..., ")+": ...}":"{}",console.error(`A props object containing a "key" prop is being spread into JSX:
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&&(s=t.onCaughtError),t.onRecoverableError!==void 0&&(d=t.onRecoverableError)),t=CL(e,1,!1,null,null,a,o,null,r,s,d,qL),e[Zs]=t.current,sv(e),new wv(t)},bE.hydrateRoot=function(e,t,a){if(!R(e))throw Error("Target container is not a DOM element.");OL(e),t===void 0&&console.error("Must provide initial children as second argument to hydrateRoot. Example usage: hydrateRoot(domContainer, <App />)");var o=!1,r="",s=ES,d=NS,p=qS,b=null;return a!==null&&a!==void 0&&(a.unstable_strictMode===!0&&(o=!0),a.identifierPrefix!==void 0&&(r=a.identifierPrefix),a.onUncaughtError!==void 0&&(s=a.onUncaughtError),a.onCaughtError!==void 0&&(d=a.onCaughtError),a.onRecoverableError!==void 0&&(p=a.onRecoverableError),a.formState!==void 0&&(b=a.formState)),t=CL(e,1,!0,t,a!=null?a:null,o,r,b,s,d,p,qL),t.context=wL(null),a=t.current,o=nn(a),o=Fl(o),r=Hs(o),r.callback=null,Fs(a,r,o),fr(o,"hydrateRoot()",null),a=o,t.current.lanes=a,qs(t,a),Lr(t),e[Zs]=t.current,sv(e),new um(t)},bE.version="19.2.7",typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop==="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()});var R1=Ii(function(xE,vh){vh.exports=_(I1())});var te=Ii(function(PE){var Ni=_(We());(function(){function n(W){if(W==null)return null;if(typeof W==="function")return W.$$typeof===V?null:W.displayName||W.name||null;if(typeof W==="string")return W;switch(W){case T:return"Fragment";case O:return"Profiler";case R:return"StrictMode";case ue:return"Suspense";case Z:return"SuspenseList";case G:return"Activity"}if(typeof W==="object")switch(typeof W.tag==="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),W.$$typeof){case w:return"Portal";case j:return W.displayName||"Context";case P:return(W._context.displayName||"Context")+".Consumer";case Q:var He=W.render;return W=W.displayName,W||(W=He.displayName||He.name||"",W=W!==""?"ForwardRef("+W+")":"ForwardRef"),W;case ce:return He=W.displayName||null,He!==null?He:n(W.type)||"Memo";case ee:He=W._payload,W=W._init;try{return n(W(He))}catch(Tt){}}return null}function i(W){return""+W}function l(W){try{i(W);var He=!1}catch(ge){He=!0}if(He){He=console;var Tt=He.error,xt=typeof Symbol==="function"&&Symbol.toStringTag&&W[Symbol.toStringTag]||W.constructor.name||"Object";return Tt.call(He,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",xt),i(W)}}function c(W){if(W===T)return"<>";if(typeof W==="object"&&W!==null&&W.$$typeof===ee)return"<...>";try{var He=n(W);return He?"<"+He+">":"<...>"}catch(Tt){return"<...>"}}function f(){var W=Ie.A;return W===null?null:W.getOwner()}function y(){return Error("react-stack-top-frame")}function g(W){if(fe.call(W,"key")){var He=Object.getOwnPropertyDescriptor(W,"key").get;if(He&&He.isReactWarning)return!1}return W.key!==void 0}function v(W,He){function Tt(){oe||(oe=!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)",He))}Tt.isReactWarning=!0,Object.defineProperty(W,"key",{get:Tt,configurable:!0})}function h(){var W=n(this.type);return Se[W]||(Se[W]=!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.")),W=this.props.ref,W!==void 0?W:null}function x(W,He,Tt,xt,ge,Xe){var Ue=Tt.ref;return W={$$typeof:I,type:W,key:He,props:Tt,_owner:xt},(Ue!==void 0?Ue:null)!==null?Object.defineProperty(W,"ref",{enumerable:!1,get:h}):Object.defineProperty(W,"ref",{enumerable:!1,value:null}),W._store={},Object.defineProperty(W._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(W,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(W,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:ge}),Object.defineProperty(W,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:Xe}),Object.freeze&&(Object.freeze(W.props),Object.freeze(W)),W}function m(W,He,Tt,xt,ge,Xe){var Ue=He.children;if(Ue!==void 0)if(xt)if(Ee(Ue)){for(xt=0;xt<Ue.length;xt++)S(Ue[xt]);Object.freeze&&Object.freeze(Ue)}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 S(Ue);if(fe.call(He,"key")){Ue=n(W);var sa=Object.keys(He).filter(function(X){return X!=="key"});xt=0<sa.length?"{key: someKey, "+sa.join(": ..., ")+": ...}":"{key: someKey}",ht[Ue+xt]||(sa=0<sa.length?"{"+sa.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} />`,wt,Fe,ua,Fe),ht[Fe+wt]=!0)}if(Fe=null,Ct!==void 0&&(l(Ct),Fe=""+Ct),g(He)&&(l(He.key),Fe=""+He.key),"key"in He){Ct={};for(var na in He)na!=="key"&&(Ct[na]=He[na])}else Ct=He;return Fe&&v(Ct,typeof Z==="function"?Z.displayName||Z.name||"Unknown":Z),x(Z,Fe,Ct,f(),he,Ye)}function S(Z){C(Z)?Z._store&&(Z._store.validated=1):typeof Z==="object"&&Z!==null&&Z.$$typeof===ee&&(Z._payload.status==="fulfilled"?C(Z._payload.value)&&Z._payload.value._store&&(Z._payload.value._store.validated=1):Z._store&&(Z._store.validated=1))}function C(Z){return typeof Z==="object"&&Z!==null&&Z.$$typeof===T}var T=Symbol.for("react.transitional.element"),w=Symbol.for("react.portal"),I=Symbol.for("react.fragment"),R=Symbol.for("react.strict_mode"),N=Symbol.for("react.profiler"),P=Symbol.for("react.consumer"),V=Symbol.for("react.context"),K=Symbol.for("react.forward_ref"),de=Symbol.for("react.suspense"),W=Symbol.for("react.suspense_list"),fe=Symbol.for("react.memo"),ee=Symbol.for("react.lazy"),H=Symbol.for("react.activity"),X=Symbol.for("react.client.reference"),Le=Ni.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,me=Object.prototype.hasOwnProperty,Oe=Array.isArray,we=console.createTask?console.createTask:function(){return null};Ni={react_stack_bottom_frame:function(Z){return Z()}};var re,xe={},Ae=Ni.react_stack_bottom_frame.bind(Ni,y)(),Je=we(c(y)),ht={};BE.Fragment=I,BE.jsxDEV=function(Z,He,Ct,wt){var he=1e4>Le.recentlyCreatedOwnerStacks++;return m(Z,He,Ct,wt,he?Error("react-stack-top-frame"):Ae,he?we(c(Z)):Je)}})()});var wR=_(R1(),1);var gd=_(Qe(),1);var gh=_(Qe(),1);var M1=(r)=>r?.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase();function A1(r,i,l=[]){if(i==null)throw Error("[lucide]: iconNode is required when icon name is used");return{name:M1(r),size:24,node:i,...l.length>0?{aliases:l}:{}}}var D1=(r)=>{let i="",l=!1;for(let c of r){if(c==="-"||c==="_"||c<=" "){l=i.length>0;continue}if(i.length===0)i+=c.toLowerCase();else i+=l?c.toUpperCase():c;l=!1}return i};var E1=(r)=>{let i=D1(r);return i.charAt(0).toUpperCase()+i.slice(1)};var Wc=_(Qe(),1);var Qc=(...r)=>r.filter((i,l,c)=>Boolean(i)&&i.trim()!==""&&c.indexOf(i)===l).join(" ").trim();var Sl={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 ex(r){return r!==null&&r!==void 0}function N1(r,i={}){let l=i.attributeNames??{},c=(C)=>l[C]??C,f=r.size??r.width??Sl.width,y=r.size??r.height??Sl.height,g=r.aliases?.filter((C)=>typeof C==="string"&&C.trim()!=="").map((C)=>`lucide-${C}`)??[],v=[...r.name?[`lucide-${r.name}`]:[],...g],h=i.className?.split(" ").filter(Boolean)??[],x=i.includeDefaultClasses===!1?Qc(...h):Qc("lucide",...v,...h),m=i.absoluteStrokeWidth?Number(i.strokeWidth??Sl["stroke-width"])*Number(r.size??r.width??Sl.width)/Number(i.size??i.width??Sl.width):i.strokeWidth??Sl["stroke-width"];return["svg",{...Object.entries(Sl).reduce((C,[T,w])=>(C[c(T)]=w,C),{}),..."color"in i&&i.color&&{[c("stroke")]:i.color},..."size"in i&&ex(i.size)&&{[c("width")]:i.size,[c("height")]:i.size},..."width"in i&&ex(i.width)&&{[c("width")]:i.width},..."height"in i&&ex(i.height)&&{[c("height")]:i.height},[c("stroke-width")]:m,...x&&{[c("class")]:x},[c("viewBox")]:`0 0 ${f} ${y}`,...i.hasA11yProp===!1?{[c("aria-hidden")]:"true"}:{},..."attributes"in i&&i.attributes},r.node.map((C)=>{let[T,w,I]=C,R=i.nonScalingStroke?{[c("vector-effect")]:"non-scaling-stroke",...w}:w;return I?[T,R,I]:[T,R]})]}function q1(r,i={}){return N1(r,{...i,attributeNames:{...i.attributeNames,class:"className","stroke-width":"strokeWidth","stroke-linecap":"strokeLinecap","stroke-linejoin":"strokeLinejoin","vector-effect":"vectorEffect"}})}var O1=(r)=>{for(let i in r)if(i.startsWith("aria-")||i==="role"||i==="title")return!0;return!1};var Qu=_(Qe(),1),bE=Qu.createContext({});var B1=()=>Qu.useContext(bE);var z1=Wc.forwardRef(({color:r,size:i,width:l,height:c,strokeWidth:f,absoluteStrokeWidth:y,nonScalingStroke:g,className:v="",children:h,iconNode:x=[],icon:m={node:x,aliases:[],size:24},...S},C)=>{let{size:T=24,strokeWidth:w=2,absoluteStrokeWidth:I=!1,nonScalingStroke:R=!1,color:N="currentColor",className:P=""}=B1()??{},V=Boolean(h)||O1(S),[K,de,W=[]]=q1(m,{color:r??N,width:l??i??T,height:c??i??T,strokeWidth:f??w,absoluteStrokeWidth:y??I,nonScalingStroke:g??R,className:Qc(P,v),hasA11yProp:V,attributes:S});return Wc.createElement(K,{ref:C,...de},[...W.map(([fe,ee])=>Wc.createElement(fe,ee)),...Array.isArray(h)?h:[h]])});function ne(r,i=[],l=[]){let c=typeof r==="string"?A1(r,i,l):r,f=gh.forwardRef(({className:y,...g},v)=>gh.createElement(z1,{ref:v,icon:c,className:y,...g}));if(c.name)f.displayName=E1(c.name);return f}var P1={name:"braces",size:24,node:[["path",{d:"M8 3H7a2 2 0 0 0-2 2v5a2 2 0 0 1-2 2 2 2 0 0 1 2 2v5c0 1.1.9 2 2 2h1",key:"ezmyqa"}],["path",{d:"M16 21h1a2 2 0 0 0 2-2v-5c0-1.1.9-2 2-2a2 2 0 0 1-2-2V5a2 2 0 0 0-2-2h-1",key:"e1hn23"}]],aliases:["curly-braces"]};P1.node;var kl=ne(P1);var U1={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"]};U1.node;var Ll=ne(U1);var _1={name:"cloud-download",size:24,node:[["path",{d:"M12 13v8l-4-4",key:"1f5nwf"}],["path",{d:"m12 21 4-4",key:"1lfcce"}],["path",{d:"M4.393 15.269A7 7 0 1 1 15.71 8h1.79a4.5 4.5 0 0 1 2.436 8.284",key:"ui1hmy"}]],aliases:["download-cloud"]};_1.node;var Cl=ne(_1);var H1={name:"ellipsis",size:24,node:[["circle",{cx:"12",cy:"12",r:"1",key:"41hilf"}],["circle",{cx:"19",cy:"12",r:"1",key:"1wjl8i"}],["circle",{cx:"5",cy:"12",r:"1",key:"1pcz8c"}]],aliases:["more-horizontal"]};H1.node;var wl=ne(H1);var F1={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"]};F1.node;var Tl=ne(F1);var G1={name:"file-pen-line",size:24,node:[["path",{d:"M14.364 13.634a2 2 0 0 0-.506.854l-.837 2.87a.5.5 0 0 0 .62.62l2.87-.837a2 2 0 0 0 .854-.506l4.013-4.009a1 1 0 0 0-3.004-3.004z",key:"ukzhwg"}],["path",{d:"M14.487 7.858A1 1 0 0 1 14 7V2",key:"1klhew"}],["path",{d:"M20 19.645V20a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l2.516 2.516",key:"rxaxab"}],["path",{d:"M8 18h1",key:"13wk12"}]],aliases:["file-signature"]};G1.node;var Il=ne(G1);var V1={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"]};V1.node;var Rl=ne(V1);var j1={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"]};j1.node;var On=ne(j1);var $1={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"]};$1.node;var Qr=ne($1);var X1={name:"square-terminal",size:24,node:[["path",{d:"m7 11 2-2-2-2",key:"1lz0vl"}],["path",{d:"M11 13h4",key:"1p7l4v"}],["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",ry:"2",key:"1m3agn"}]],aliases:["terminal-square"]};X1.node;var Ml=ne(X1);var Y1={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"]};Y1.node;var fr=ne(Y1);var K1={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"}]]};K1.node;var Zc=ne(K1);var Q1={name:"archive",size:24,node:[["rect",{width:"20",height:"5",x:"2",y:"3",rx:"1",key:"1wp1u1"}],["path",{d:"M4 8v11a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8",key:"1s80jp"}],["path",{d:"M10 12h4",key:"a56b0p"}]]};Q1.node;var Jc=ne(Q1);var W1={name:"arrow-down",size:24,node:[["path",{d:"M12 5v14",key:"s699le"}],["path",{d:"m19 12-7 7-7-7",key:"1idqje"}]]};W1.node;var ef=ne(W1);var Z1={name:"arrow-left",size:24,node:[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]]};Z1.node;var tf=ne(Z1);var J1={name:"arrow-right",size:24,node:[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]]};J1.node;var af=ne(J1);var eT={name:"arrow-up-right",size:24,node:[["path",{d:"M7 7h10v10",key:"1tivn9"}],["path",{d:"M7 17 17 7",key:"1vkiza"}]]};eT.node;var of=ne(eT);var tT={name:"arrow-up",size:24,node:[["path",{d:"m5 12 7-7 7 7",key:"hav0vg"}],["path",{d:"M12 19V5",key:"x0mq9r"}]]};tT.node;var rf=ne(tT);var aT={name:"bot",size:24,node:[["path",{d:"M12 8V4H8",key:"hb8ula"}],["rect",{width:"16",height:"12",x:"4",y:"8",rx:"2",key:"enze0r"}],["path",{d:"M2 14h2",key:"vft8re"}],["path",{d:"M20 14h2",key:"4cs60a"}],["path",{d:"M15 13v2",key:"1xurst"}],["path",{d:"M9 13v2",key:"rq6x2g"}]]};aT.node;var nf=ne(aT);var oT={name:"check",size:24,node:[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]};oT.node;var Mi=ne(oT);var rT={name:"chevron-down",size:24,node:[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]};rT.node;var Ai=ne(rT);var nT={name:"chevron-left",size:24,node:[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]]};nT.node;var sf=ne(nT);var sT={name:"chevron-right",size:24,node:[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]};sT.node;var Wr=ne(sT);var lT={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"}]]};lT.node;var lf=ne(lT);var iT={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"}]]};iT.node;var Di=ne(iT);var uT={name:"corner-down-right",size:24,node:[["path",{d:"m15 10 5 5-5 5",key:"qqa56n"}],["path",{d:"M4 4v7a4 4 0 0 0 4 4h12",key:"z08zvw"}]]};uT.node;var uf=ne(uT);var dT={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"}]]};dT.node;var df=ne(dT);var cT={name:"file-plus",size:24,node:[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",key:"1oefj6"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"M9 15h6",key:"cctwl0"}],["path",{d:"M12 18v-6",key:"17g6i2"}]]};cT.node;var cf=ne(cT);var fT={name:"file-search",size:24,node:[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",key:"1oefj6"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["circle",{cx:"11.5",cy:"14.5",r:"2.5",key:"1bq0ko"}],["path",{d:"M13.3 16.3 15 18",key:"2quom7"}]]};fT.node;var ff=ne(fT);var pT={name:"file-text",size:24,node:[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",key:"1oefj6"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"M10 9H8",key:"b1mrlr"}],["path",{d:"M16 13H8",key:"t4e002"}],["path",{d:"M16 17H8",key:"z1uh3a"}]]};pT.node;var pf=ne(pT);var mT={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"}]]};mT.node;var mf=ne(mT);var hT={name:"folder-search",size:24,node:[["path",{d:"M10.7 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 2v4.1",key:"1bw5m7"}],["path",{d:"m21 21-1.9-1.9",key:"1g2n9r"}],["circle",{cx:"17",cy:"17",r:"3",key:"18b49y"}]]};hT.node;var hf=ne(hT);var gT={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"}]]};gT.node;var gf=ne(gT);var yT={name:"globe",size:24,node:[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20",key:"13o1zl"}],["path",{d:"M2 12h20",key:"9i4pu4"}]]};yT.node;var yf=ne(yT);var vT={name:"hourglass",size:24,node:[["path",{d:"M5 22h14",key:"ehvnwv"}],["path",{d:"M5 2h14",key:"pdyrp9"}],["path",{d:"M17 22v-4.172a2 2 0 0 0-.586-1.414L12 12l-4.414 4.414A2 2 0 0 0 7 17.828V22",key:"1d314k"}],["path",{d:"M7 2v4.172a2 2 0 0 0 .586 1.414L12 12l4.414-4.414A2 2 0 0 0 17 6.172V2",key:"1vvvr6"}]]};vT.node;var vf=ne(vT);var bT={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"}]]};bT.node;var bf=ne(bT);var xT={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"}]]};xT.node;var xf=ne(xT);var ST={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"}]]};ST.node;var Sf=ne(ST);var kT={name:"list-todo",size:24,node:[["path",{d:"M13 5h8",key:"a7qcls"}],["path",{d:"M13 12h8",key:"h98zly"}],["path",{d:"M13 19h8",key:"c3s6r1"}],["path",{d:"m3 17 2 2 4-4",key:"1jhpwq"}],["rect",{x:"3",y:"4",width:"6",height:"6",rx:"1",key:"cif1o7"}]]};kT.node;var kf=ne(kT);var LT={name:"menu",size:24,node:[["path",{d:"M4 5h16",key:"1tepv9"}],["path",{d:"M4 12h16",key:"1lakjw"}],["path",{d:"M4 19h16",key:"1djgab"}]]};LT.node;var Lf=ne(LT);var CT={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"}]]};CT.node;var Cf=ne(CT);var wT={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"}]]};wT.node;var wf=ne(wT);var TT={name:"network",size:24,node:[["rect",{x:"16",y:"16",width:"6",height:"6",rx:"1",key:"4q2zg0"}],["rect",{x:"2",y:"16",width:"6",height:"6",rx:"1",key:"8cvhb9"}],["rect",{x:"9",y:"2",width:"6",height:"6",rx:"1",key:"1egb70"}],["path",{d:"M5 16v-3a1 1 0 0 1 1-1h12a1 1 0 0 1 1 1v3",key:"1jsf9p"}],["path",{d:"M12 12V8",key:"2874zd"}]]};TT.node;var Tf=ne(TT);var IT={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"}]]};IT.node;var Al=ne(IT);var RT={name:"repeat-2",size:24,node:[["path",{d:"m2 9 3-3 3 3",key:"1ltn5i"}],["path",{d:"M13 18H7a2 2 0 0 1-2-2V6",key:"1r6tfw"}],["path",{d:"m22 15-3 3-3-3",key:"4rnwn2"}],["path",{d:"M11 6h6a2 2 0 0 1 2 2v10",key:"2f72bc"}]]};RT.node;var If=ne(RT);var MT={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"}]]};MT.node;var Rf=ne(MT);var AT={name:"scan-search",size:24,node:[["path",{d:"M3 7V5a2 2 0 0 1 2-2h2",key:"aa7l1z"}],["path",{d:"M17 3h2a2 2 0 0 1 2 2v2",key:"4qcy5o"}],["path",{d:"M21 17v2a2 2 0 0 1-2 2h-2",key:"6vwrx8"}],["path",{d:"M7 21H5a2 2 0 0 1-2-2v-2",key:"ioqczr"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}],["path",{d:"m16 16-1.9-1.9",key:"1dq9hf"}]]};AT.node;var Ss=ne(AT);var DT={name:"scissors",size:24,node:[["circle",{cx:"6",cy:"6",r:"3",key:"1lh9wr"}],["path",{d:"M8.12 8.12 12 12",key:"1alkpv"}],["path",{d:"M20 4 8.12 15.88",key:"xgtan2"}],["circle",{cx:"6",cy:"18",r:"3",key:"fqmcym"}],["path",{d:"M14.8 14.8 20 20",key:"ptml3r"}]]};DT.node;var Mf=ne(DT);var ET={name:"search",size:24,node:[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]]};ET.node;var Af=ne(ET);var NT={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"}]]};NT.node;var Df=ne(NT);var qT={name:"text-search",size:24,node:[["path",{d:"M21 5H3",key:"1fi0y6"}],["path",{d:"M10 12H3",key:"1ulcyk"}],["path",{d:"M10 19H3",key:"108z41"}],["circle",{cx:"17",cy:"15",r:"3",key:"1upz2a"}],["path",{d:"m21 19-1.9-1.9",key:"dwi7p8"}]]};qT.node;var Ef=ne(qT);var OT={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"}]]};OT.node;var Ei=ne(OT);var BT={name:"x",size:24,node:[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]};BT.node;var Lo=ne(BT);var nd=_(Qe(),1);function yh(r){let i=r?.trim().toLowerCase()??"";if(i==="zh"||i.startsWith("zh-")||i.startsWith("zh_"))return"zh-CN";return"en"}function zT(r){for(let i of r??[]){let l=yh(i);if(l!=="en")return l}return"en"}function xE(r,i={}){return r.replace(/\{([\w.-]+)\}/g,(l,c)=>{let f=i[c];return f===void 0?l:String(f)})}function PT(r,i,l,c={}){let f=l[r]?.[i]??l.en?.[i];if(f===void 0)return console.warn(`[stats.i18n] missing translation: ${i}`),i;return xE(f,c)}var vh={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.spotlight":"Spotlight","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.spotlight":"亮点","nav.dashboard":"zeta 统计","nav.breadcrumb-stats":"统计","nav.pages":"导航","nav.open-navigation":"打开导航"}};var bh={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 xh={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 Sh={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 kh={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 Lh={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 Ch={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 wh={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 Th={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 Ih={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 Rh={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 Mh={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 Ah={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 Dh={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 Eh={en:{},"zh-CN":{}};var SE={...vh.en,...bh.en,...xh.en,...Sh.en,...kh.en,...Lh.en,...Ch.en,...wh.en,...Th.en,...Ih.en,...Rh.en,...Mh.en,...Ah.en,...Dh.en,...Eh.en},UT={id:"en",messages:SE};var kE={...vh["zh-CN"],...bh["zh-CN"],...xh["zh-CN"],...Sh["zh-CN"],...kh["zh-CN"],...Lh["zh-CN"],...Ch["zh-CN"],...wh["zh-CN"],...Th["zh-CN"],...Ih["zh-CN"],...Rh["zh-CN"],...Mh["zh-CN"],...Ah["zh-CN"],...Dh["zh-CN"],...Eh["zh-CN"]},_T={id:"zh-CN",messages:kE};function LE(){return globalThis.__ZETA_STATS_LOCALE__}var CE={en:UT.messages,"zh-CN":_T.messages},HT="zeta.stats.locale",tx=new Set,qh="en";TE();function Bn(){return qh}function FT(r){return tx.add(r),()=>{tx.delete(r)}}function Nh(r){return qh=yh(r),qh}function GT(r){let i=Nh(r);try{globalThis.localStorage?.setItem(HT,i)}catch{}for(let l of[...tx])l();return i}function wE(){try{let r=globalThis.localStorage?.getItem(HT);if(!r)return;let i=yh(r);return i==="en"||i==="zh-CN"?i:void 0}catch{return}}function TE(){let r=wE();if(r)return Nh(r);let i=LE();if(i)return Nh(i);if(typeof navigator>"u")return"en";return Nh(zT(navigator.languages))}function u(r,i){return PT(qh,r,CE,i)}var jT=60000,Oh=60*jT,zn=24*Oh,ax={"1h":{labelKey:"common.range-1h",windowKey:"common.window-1h",spanMs:Oh,bucketMs:5*jT},"24h":{labelKey:"common.range-24h",windowKey:"common.window-24h",spanMs:zn,bucketMs:Oh},"7d":{labelKey:"common.range-7d",windowKey:"common.window-7d",spanMs:7*zn,bucketMs:zn},"30d":{labelKey:"common.range-30d",windowKey:"common.window-30d",spanMs:30*zn,bucketMs:zn},"90d":{labelKey:"common.range-90d",windowKey:"common.window-90d",spanMs:90*zn,bucketMs:zn},all:{labelKey:"common.range-all",windowKey:"common.window-all",spanMs:null,bucketMs:zn}},IE=1500,Wu=["1h","24h","7d","30d","90d","all"];function Jt(r){return ax[r]}var ox={hour:"2-digit",minute:"2-digit",hourCycle:"h23"},rx={month:"short",day:"numeric"},VT=new Map;function Nf(r,i){let l=Bn(),c=`${l}:${r}`,f=VT.get(c);if(!f)f=new Intl.DateTimeFormat(l,i),VT.set(c,f);return f}function Zu(r,i){if(i<Oh)return Nf("hm",ox).format(r);if(i<zn)return Nf("mdhm",{...rx,...ox}).format(r);return Nf("md",rx).format(r)}function Bh(r,i){return i<zn?Nf("hm",ox).format(r):Nf("md",rx).format(r)}function eo(r,i,l=ax[r].bucketMs,c=Date.now()){let f=Math.floor(c/l)*l,y=ax[r].spanMs,g;if(y!==null)g=Math.floor((c-y)/l)*l;else{g=f;for(let h of i)if(h<g)g=h;g=Math.floor(g/l)*l}g=Math.max(g,f-(IE-1)*l);let v=[];for(let h=g;h<=f;h+=l)v.push(h);return v}var $T=_(Qe(),1);function Dl(){return $T.useSyncExternalStore(FT,Bn,Bn)}var qf=_(Qe(),1);class nx extends Error{status;endpoint;constructor(r,i,l){super(l);this.name="ApiError",this.status=r,this.endpoint=i}}async function YT(r,i){try{let l=await r.json();if(typeof l==="object"&&l!==null&&"error"in l&&typeof l.error==="string")return l.error}catch{}return`HTTP error ${r.status} on ${i}`}var XT=new WeakMap;async function Ea(r,i,l){let c=typeof l==="object"&&l!==null?XT.get(l):void 0,f=i;if(c){let h=new Headers(i?.headers);h.set("If-None-Match",c),f={...i,headers:h}}let y=await fetch(r,f);if(y.status===304&&c)return l;if(!y.ok)throw new nx(y.status,r,await YT(y,r));let g=await y.json(),v=y.headers.get("ETag");if(v&&typeof g==="object"&&g!==null)XT.set(g,v);return g}var sx={"X-Zeta-Stats-Action":"1"};async function KT(r="24h",i){return Ea(`/api/stats/overview?range=${encodeURIComponent(r)}`,{signal:i})}async function QT(r="24h",i){return Ea(`/api/stats/model-dashboard?range=${encodeURIComponent(r)}`,{signal:i})}async function WT(r="24h",i){return Ea(`/api/stats/costs?range=${encodeURIComponent(r)}`,{signal:i})}async function zh(r=50,i){return Ea(`/api/stats/recent?limit=${r}`,{signal:i})}async function ZT(r="24h",i=50,l){return Ea(`/api/stats/errors?range=${encodeURIComponent(r)}&limit=${i}`,{signal:l})}async function JT(r,i){return Ea(`/api/request/${r}`,{signal:i})}async function eI(r){let{closable:i}=await Ea("/api/close",{signal:r});return i}async function tI(){let i=await fetch("/api/close",{method:"POST",headers:sx});if(!i.ok)throw new nx(i.status,"/api/close",await YT(i,"/api/close"))}async function aI(){return Ea("/api/sync",{method:"POST"})}async function oI(r="24h",i){return Ea(`/api/stats/frustration?range=${encodeURIComponent(r)}`,{signal:i})}async function rI(r,i){return Ea(`/api/frustration/estimate?range=${encodeURIComponent(r)}`,{signal:i})}async function nI(r){return Ea(`/api/frustration/judge?range=${encodeURIComponent(r)}`,{method:"POST",headers:sx})}async function sI(){return Ea("/api/frustration/cancel",{method:"POST",headers:sx})}async function lI(r="24h",i){return Ea(`/api/stats/folders?range=${encodeURIComponent(r)}`,{signal:i})}async function iI(r="24h",i,l){let c=new URLSearchParams({range:r});if(i)c.set("project",i);return Ea(`/api/stats/gain?${c}`,{signal:l})}async function uI(r="24h",i="all",l){return Ea(`/api/stats/spotlight?range=${encodeURIComponent(r)}&agent=${encodeURIComponent(i)}`,{signal:l})}async function dI(r,i){return Ea(`/api/stats/spotlight/session?file=${encodeURIComponent(r)}`,{signal:i})}async function cI(r="24h",i){return Ea(`/api/stats/tools?range=${encodeURIComponent(r)}`,{signal:i})}async function fI(r="24h",i){return Ea(`/api/stats/providers?range=${encodeURIComponent(r)}`,{signal:i})}async function lx(r,i,l){let c=new URLSearchParams({range:r});if(i!==null)c.set("provider",i);return Ea(`/api/stats/provider-windows?${c}`,{signal:l})}async function pI(r=100,i,l){let c=new URLSearchParams({limit:String(r)});if(i)c.set("q",i);return Ea(`/api/sessions?${c}`,{signal:l})}async function mI(r,i,l){return Ea(`/api/session/trace?file=${encodeURIComponent(r)}`,{signal:i,cache:"no-store"},l)}async function hI(r,i,l){return Ea(`/api/session/entry?file=${encodeURIComponent(r)}&id=${encodeURIComponent(i)}`,{signal:l})}var ME={phase:"idle",current:0,total:0,processed:0,lastSyncedAt:null,error:null};function AE(){aI().catch(()=>{})}var gI=null,yI=0,Ph=0,El={sync:ME,indexingHours:0,connected:!1,requestSync:AE},ux=new Set;function vI(r){return ux.add(r),()=>ux.delete(r)}function bI(){for(let r of ux)r()}function DE(r,i){return r.phase===i.phase&&r.current===i.current&&r.total===i.total&&r.processed===i.processed&&r.lastSyncedAt===i.lastSyncedAt&&r.error===i.error}function EE(r){if(gI!==r.version)gI=r.version,yI++;let i=Math.max(0,yI-1),l=r.indexingHours!==El.indexingHours||!DE(r.sync,El.sync);if(!l&&i===Ph)return;if(Ph=i,l)El={...El,sync:r.sync,indexingHours:r.indexingHours};bI()}function ix(r){if(r===El.connected)return;El={...El,connected:r},bI()}var NE=()=>El,qE=()=>Ph,OE=()=>-1;function dx(){return Ph}function xI({children:r}){return qf.useEffect(()=>{let i=new EventSource("/api/events");return i.onopen=()=>ix(!0),i.onerror=()=>ix(!1),i.onmessage=(l)=>EE(JSON.parse(l.data)),()=>{i.close(),ix(!1)}},[]),r}function Uh(){return qf.useSyncExternalStore(vI,NE)}function SI(r=!0){return qf.useSyncExternalStore(vI,r?qE:OE)}var _h=_(ae(),1);function yt({tone:r="neutral",mono:i,children:l}){return _h.jsxDEV("span",{className:"badge","data-tone":r,"data-mono":i??!1,children:l},void 0,!1,void 0,this)}function Pn({tone:r="neutral",pulse:i}){return _h.jsxDEV("span",{className:"dot","data-tone":r,"data-pulse":i??!1},void 0,!1,void 0,this)}function Zr({color:r}){return _h.jsxDEV("span",{className:"swatch",style:{background:r}},void 0,!1,void 0,this)}function pr(r){if(r>=0.05)return"bad";if(r>=0.01)return"warn";return"ok"}var $o=_(ae(),1);function ge({title:r,description:i,actions:l,flush:c,footer:f,className:y,index:g,stale:v,children:h}){let x=r!==void 0||i!==void 0||l!==void 0;return $o.jsxDEV("section",{className:y?`card rise ${y}`:"card rise",style:g!==void 0?{"--i":g}:void 0,children:[x&&$o.jsxDEV("header",{className:"card-header",children:[$o.jsxDEV("div",{className:"card-titles",children:[r!==void 0&&$o.jsxDEV("h2",{className:"card-title",children:r},void 0,!1,void 0,this),i!==void 0&&$o.jsxDEV("p",{className:"card-description",children:i},void 0,!1,void 0,this)]},void 0,!0,void 0,this),l!==void 0&&$o.jsxDEV("div",{className:"card-actions",children:l},void 0,!1,void 0,this)]},void 0,!0,void 0,this),$o.jsxDEV("div",{className:"card-body","data-flush":c??!1,"data-stale":v??!1,children:h},void 0,!1,void 0,this),f!==void 0&&$o.jsxDEV("footer",{className:"card-footer",children:f},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function ma({title:r,description:i,actions:l}){return $o.jsxDEV("header",{className:"page-header rise",children:[$o.jsxDEV("div",{children:[$o.jsxDEV("h1",{className:"page-title",children:r},void 0,!1,void 0,this),i!==void 0&&$o.jsxDEV("p",{className:"page-description",children:i},void 0,!1,void 0,this)]},void 0,!0,void 0,this),l!==void 0&&$o.jsxDEV("div",{className:"page-actions",children:l},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}var Of=_(Qe(),1),kI=_(Kc(),1),yo=_(ae(),1);function Ju({open:r,onClose:i,title:l,subtitle:c,actions:f,width:y,children:g}){let v=Of.useRef(i);v.current=i;let h=Of.useRef(null);if(Of.useEffect(()=>{if(!r)return;let x=document.activeElement instanceof HTMLElement?document.activeElement:null;h.current?.focus();let m=(S)=>{if(S.key==="Escape")S.preventDefault(),v.current()};return window.addEventListener("keydown",m),()=>{window.removeEventListener("keydown",m),x?.focus()}},[r]),!r)return null;return kI.createPortal(yo.jsxDEV(yo.Fragment,{children:[yo.jsxDEV("div",{className:"drawer-scrim",onClick:i,role:"presentation"},void 0,!1,void 0,this),yo.jsxDEV("div",{ref:h,className:"drawer",role:"dialog","aria-modal":"true",tabIndex:-1,style:y!==void 0?{"--drawer-w":`${y}px`}:void 0,children:[yo.jsxDEV("header",{className:"drawer-header",children:[yo.jsxDEV("div",{className:"drawer-titles",children:[yo.jsxDEV("h2",{className:"drawer-title",children:l},void 0,!1,void 0,this),c!==void 0&&yo.jsxDEV("div",{className:"drawer-subtitle",children:c},void 0,!1,void 0,this)]},void 0,!0,void 0,this),f,yo.jsxDEV("button",{type:"button",className:"btn","data-variant":"ghost","data-icon":"true",onClick:i,"aria-label":"Close",children:yo.jsxDEV(Lo,{size:16},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),yo.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 Oo({items:r}){return yo.jsxDEV("dl",{className:"kv",style:{margin:0},children:r.map((i)=>yo.jsxDEV("div",{className:"kv-item",children:[yo.jsxDEV("dt",{className:"kv-key",children:i.label},void 0,!1,void 0,this),yo.jsxDEV("dd",{className:"kv-value",style:{margin:0},children:i.value},void 0,!1,void 0,this)]},i.key,!0,void 0,this))},void 0,!1,void 0,this)}var qi=_(Qe(),1);var Jr=_(ae(),1);function ed({data:r,title:i=u("ui.json"),initialCollapsed:l=!1}){let[c,f]=qi.useState(l),[y,g]=qi.useState(!1),v=qi.useRef(0),h=JSON.stringify(r,null,2);return qi.useEffect(()=>()=>window.clearTimeout(v.current),[]),Jr.jsxDEV("div",{className:"stack",style:{gap:6},children:[Jr.jsxDEV("div",{className:"row",style:{justifyContent:"space-between"},children:[Jr.jsxDEV("button",{type:"button",className:"btn","data-variant":"ghost","data-size":"sm",onClick:()=>f((m)=>!m),"aria-expanded":!c,children:[c?Jr.jsxDEV(Wr,{size:13},void 0,!1,void 0,this):Jr.jsxDEV(Ai,{size:13},void 0,!1,void 0,this),i]},void 0,!0,void 0,this),Jr.jsxDEV("button",{type:"button",className:"btn","data-variant":"ghost","data-size":"sm",onClick:async()=>{try{await navigator.clipboard.writeText(h),g(!0),window.clearTimeout(v.current),v.current=window.setTimeout(()=>g(!1),1500)}catch{}},children:[y?Jr.jsxDEV(Mi,{size:13},void 0,!1,void 0,this):Jr.jsxDEV(Di,{size:13},void 0,!1,void 0,this),y?u("common.copied"):u("common.copy")]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),!c&&Jr.jsxDEV("pre",{className:"code-block",children:Jr.jsxDEV("code",{children:h},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}var Oi=_(Qe(),1),LI=_(Kc(),1);var en=_(ae(),1);function CI({open:r,title:i,onClose:l,primaryAction:c,cancelLabel:f=u("common.cancel"),children:y}){let g=Oi.useRef(null),v=Oi.useRef(null),h=Oi.useRef(l);h.current=l,Oi.useEffect(()=>{if(!r)return;let C=document.activeElement instanceof HTMLElement?document.activeElement:null,T=(w)=>{if(w.key==="Escape")w.preventDefault(),h.current()};return window.addEventListener("keydown",T),()=>{window.removeEventListener("keydown",T),C?.focus()}},[r]);let x=c!==void 0,m=c?.disabled??!1;if(Oi.useEffect(()=>{if(!r)return;(x&&!m?g.current:v.current)?.focus()},[r,x,m]),!r)return null;return LI.createPortal(en.jsxDEV("div",{className:"modal-overlay",onClick:(C)=>{if(C.target===C.currentTarget)l()},role:"presentation",children:en.jsxDEV("div",{className:"modal",role:"dialog","aria-modal":"true","aria-labelledby":"modal-title",children:[en.jsxDEV("div",{className:"modal-header",children:[en.jsxDEV("h2",{id:"modal-title",className:"modal-title",children:i},void 0,!1,void 0,this),en.jsxDEV("button",{type:"button",className:"btn","data-variant":"ghost","data-icon":"true","data-size":"sm",onClick:l,"aria-label":u("common.close"),children:en.jsxDEV(Lo,{size:15},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),en.jsxDEV("div",{className:"modal-body",children:y},void 0,!1,void 0,this),en.jsxDEV("div",{className:"modal-footer",children:[en.jsxDEV("button",{ref:v,type:"button",className:"btn",onClick:l,children:f},void 0,!1,void 0,this),c&&en.jsxDEV("button",{ref:g,type:"button",className:"btn","data-variant":"primary",onClick:c.onClick,disabled:c.disabled,children:c.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 Hh=_(ae(),1);function Un({value:r,onChange:i,placeholder:l=u("common.filter"),label:c="Filter",width:f}){return Hh.jsxDEV("label",{className:"search",children:[Hh.jsxDEV(Af,{size:14},void 0,!1,void 0,this),Hh.jsxDEV("input",{className:"input",type:"search","aria-label":c,value:r,placeholder:l,onChange:(y)=>i(y.target.value),style:f!==void 0?{width:f}:void 0},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}var td=_(Qe(),1),Fh=_(ae(),1);function Na({options:r,value:i,onChange:l,size:c="md","aria-label":f}){let y=td.useRef(null),[g,v]=td.useState(null);return td.useLayoutEffect(()=>{let h=y.current,x=h?.querySelector('[data-active="true"]');if(!h||!x){v(null);return}let m=()=>v({left:x.offsetLeft,width:x.offsetWidth});m();let S=new ResizeObserver(m);return S.observe(h),()=>S.disconnect()},[i,r]),Fh.jsxDEV("div",{ref:y,className:"segmented","data-size":c,role:"radiogroup","aria-label":f,children:[g&&Fh.jsxDEV("span",{className:"segmented-thumb",style:{left:g.left,width:g.width}},void 0,!1,void 0,this),r.map((h)=>Fh.jsxDEV("button",{type:"button",role:"radio","aria-checked":h.value===i,className:"segmented-option","data-active":h.value===i,title:h.title,onClick:()=>l(h.value),children:h.label},h.value,!1,void 0,this))]},void 0,!0,void 0,this)}var rd=_(Qe(),1);var ad=_(Qe(),1);function Gh(){let r=ad.useRef(null),[i,l]=ad.useState(0);return ad.useLayoutEffect(()=>{let c=r.current;if(!c)return;l(c.clientWidth);let f=new ResizeObserver((y)=>{let g=Math.round(y[0]?.contentRect.width??0);l((v)=>v===g?v:g)});return f.observe(c),()=>f.disconnect()},[]),[r,i]}var Bf=_(ae(),1);function od({values:r,color:i="var(--chart-primary)",height:l=28,width:c,area:f=!0}){let[y,g]=Gh(),v=c??g,h=Math.max(0,...r),x=Math.min(0,...r),m=r.length,S="";if(v>0&&m>0){let C=m>1?v/(m-1):0;for(let T=0;T<m;T++){let w=m>1?T*C:v/2,I=h>x?l-2-(r[T]-x)/(h-x)*(l-4):l-2;S+=`${T===0?"M":"L"}${w.toFixed(1)},${I.toFixed(1)}`}}return Bf.jsxDEV("div",{ref:y,className:"sparkline",style:{width:c??"100%",height:l},children:v>0&&m>0&&Bf.jsxDEV("svg",{width:v,height:l,"aria-hidden":"true",children:[f&&Bf.jsxDEV("path",{className:"area",d:`${S}L${v},${l}L0,${l}Z`,fill:i},void 0,!1,void 0,this),Bf.jsxDEV("path",{className:"chart-line",d:S,stroke:i},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)}var Nr=_(ae(),1);function ue({label:r,value:i,hint:l,delta:c,spark:f,sparkColor:y,size:g="md",title:v}){let h=PE(typeof i==="string"||typeof i==="number"?i:null);return Nr.jsxDEV("div",{className:"stat","data-size":g,title:v,children:[Nr.jsxDEV("div",{className:"stat-label",children:r},void 0,!1,void 0,this),Nr.jsxDEV("div",{className:"stat-value","data-flash":h,children:i},void 0,!1,void 0,this),(l!==void 0||c)&&Nr.jsxDEV("div",{className:"stat-foot",children:[c&&Nr.jsxDEV(zE,{...c},void 0,!1,void 0,this),l!==void 0&&Nr.jsxDEV("span",{className:"truncate",children:l},void 0,!1,void 0,this)]},void 0,!0,void 0,this),f&&f.length>1&&Nr.jsxDEV("div",{className:"stat-spark",children:Nr.jsxDEV(od,{values:f,color:y},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function Sa({min:r,children:i}){return Nr.jsxDEV("div",{className:"stat-grid rise",style:r!==void 0?{"--stat-min":`${r}px`}:void 0,children:i},void 0,!1,void 0,this)}function zE({change:r,good:i="up"}){if(r===null||!Number.isFinite(r))return Nr.jsxDEV("span",{className:"delta",children:"new"},void 0,!1,void 0,this);let l=Math.abs(r)<0.0005?0:r,c=l===0?void 0:l>0===(i==="up")?"good":"bad",f=l>0?"+":l<0?"−":"±",y=Math.abs(l)*100;return Nr.jsxDEV("span",{className:"delta","data-tone":c,children:[f,y>=100?y.toFixed(0):y.toFixed(1),"%"]},void 0,!0,void 0,this)}function PE(r){let i=rd.useRef(r),[l,c]=rd.useState(!1);return rd.useEffect(()=>{if(i.current===r)return;let f=i.current!==null;if(i.current=r,!f)return;c(!0);let y=setTimeout(()=>c(!1),900);return()=>clearTimeout(y)},[r]),l}var qa=_(ae(),1);function mt({title:r=u("common.nothing-here-yet"),hint:i}){return qa.jsxDEV("div",{className:"empty",children:[qa.jsxDEV(bf,{size:20},void 0,!1,void 0,this),qa.jsxDEV("div",{className:"empty-title",children:r},void 0,!1,void 0,this),i!==void 0&&qa.jsxDEV("div",{className:"empty-hint",children:i},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function Nl({error:r,onRetry:i}){return qa.jsxDEV("div",{className:"error-state",role:"alert",children:[qa.jsxDEV(fr,{size:15},void 0,!1,void 0,this),qa.jsxDEV("span",{className:"error-state-message",children:typeof r==="string"?r:r.message},void 0,!1,void 0,this),i&&qa.jsxDEV("button",{type:"button",className:"btn","data-size":"sm","data-variant":"ghost",onClick:i,children:[qa.jsxDEV(Rf,{size:13},void 0,!1,void 0,this)," ",u("ui.retry")]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)}function to({width:r="100%",height:i=14,style:l}){return qa.jsxDEV("div",{className:"skeleton",style:{width:r,height:i,...l}},void 0,!1,void 0,this)}function Et({height:r=220}){return qa.jsxDEV(to,{height:r,style:{borderRadius:8}},void 0,!1,void 0,this)}function ka({rows:r=6}){return qa.jsxDEV("div",{style:{display:"flex",flexDirection:"column",gap:10,padding:"8px 16px 16px"},children:Array.from({length:r},(i,l)=>qa.jsxDEV(to,{height:16,width:`${92-l*13%30}%`},l,!1,void 0,this))},void 0,!1,void 0,this)}function _e({query:r,skeleton:i,isEmpty:l,empty:c,children:f}){if(r.data===null){if(r.error)return qa.jsxDEV(Nl,{error:r.error,onRetry:r.refetch},void 0,!1,void 0,this);return qa.jsxDEV(qa.Fragment,{children:i},void 0,!1,void 0,this)}return qa.jsxDEV(qa.Fragment,{children:[r.error&&qa.jsxDEV(Nl,{error:r.error,onRetry:r.refetch},void 0,!1,void 0,this),l?.(r.data)?c??qa.jsxDEV(mt,{},void 0,!1,void 0,this):f(r.data)]},void 0,!0,void 0,this)}var Bi=_(Qe(),1);function fx(){return Bn()}function M(r){return r.toLocaleString(fx())}function le(r){return r.toLocaleString(fx(),{notation:"compact"})}function Ot(r,i){if(r===0)return"$0";let l=i!==void 0?i:r>0&&r<0.01?4:2;return`$${r.toLocaleString(fx(),{minimumFractionDigits:l,maximumFractionDigits:l})}`}function ea(r,i,l){return r===0&&i>0?"N/A":Ot(r,l)}function px(r){return r.usage.totalTokens>0&&r.usage.cost.total===0&&(r.provider==="xai-oauth"||r.costUnpriced===!0)}function ql(r,i){return ea(r.usage.cost.total,px(r)?1:0,i)}function Ge(r,i=1){return`${(r*100).toFixed(i)}%`}function Co(r){let i=r*100;if(i>0&&i<0.005)return"<0.01%";return Ge(r,i>0&&i<0.1?2:1)}function Lt(r,i){if(r===null)return"-";let l=r/1000,c=i!==void 0?i:l<1?2:1;return`${l.toFixed(c)}s`}function mr(r){if(r<60000)return Lt(r);let i=Math.floor(r/60000);if(i<60)return`${i}m ${String(Math.floor(r%60000/1000)).padStart(2,"0")}s`;return`${Math.floor(i/60)}h ${String(i%60).padStart(2,"0")}m`}function _n(r){if(r===null)return"-";return r.toFixed(1)}var cx=[["second",1000],["minute",60000],["hour",3600000],["day",86400000],["month",2629800000],["year",31557600000]],wI=new Map,Vh=new Map;function La(r,i=Date.now()){let l=Bn(),c=wI.get(l);if(!c)c=new Intl.RelativeTimeFormat(l,{numeric:"auto"}),wI.set(l,c);let f=r-i,y=0;for(let h=1;h<cx.length;h++)if(Math.abs(f)>=cx[h][1])y=h;let[g,v]=cx[y];return c.format(Math.round(f/v),g)}function mx(r){let i=Bn(),l=`${i}:mdhm`,c=Vh.get(l);if(!c)c=new Intl.DateTimeFormat(i,{month:"short",day:"numeric",hour:"2-digit",minute:"2-digit",hourCycle:"h23"}),Vh.set(l,c);return c.format(r)}function Bo(r){let i=Bn(),l=Vh.get(i);if(!l)l=new Intl.DateTimeFormat(i,{month:"short",day:"numeric",hour:"2-digit",minute:"2-digit",second:"2-digit",hourCycle:"h23"}),Vh.set(i,l);return l.format(r)}function qr(r){return r.replace(/^\/+|\/+$/g,"")||u("common.root")}function hx(r){if(r>=1e9)return`${(r/1e9).toFixed(1)} GB`;if(r>=1e6)return`${(r/1e6).toFixed(1)} MB`;if(r>=1000)return`${(r/1000).toFixed(1)} KB`;return`${r} B`}var Ht=_(ae(),1);function Ut({columns:r,rows:i,rowKey:l,onRowClick:c,selectedKey:f,initialSort:y,limit:g,dense:v,empty:h,expanded:x}){let[m,S]=Bi.useState(y??null),[C,T]=Bi.useState(g??Number.POSITIVE_INFINITY),w=Bi.useMemo(()=>{let N=m?r.find((K)=>K.key===m.key):void 0;if(!m||!N?.sort)return i;let P=N.sort,V=m.dir==="asc"?1:-1;return[...i].sort((K,de)=>{let W=P(K),fe=P(de);if(typeof W==="number"&&typeof fe==="number")return(W-fe)*V;return String(W).localeCompare(String(fe))*V})},[i,r,m]);if(i.length===0)return Ht.jsxDEV(Ht.Fragment,{children:h??Ht.jsxDEV(mt,{},void 0,!1,void 0,this)},void 0,!1,void 0,this);let I=w.length>C?w.slice(0,C):w,R=(N)=>{if(!N.sort)return;S((P)=>P?.key===N.key?{key:N.key,dir:P.dir==="asc"?"desc":"asc"}:{key:N.key,dir:N.align==="right"?"desc":"asc"})};return Ht.jsxDEV(Ht.Fragment,{children:[Ht.jsxDEV("div",{className:"table-wrap",children:Ht.jsxDEV("table",{className:"table","data-dense":v??!1,children:[Ht.jsxDEV("thead",{children:Ht.jsxDEV("tr",{children:r.map((N)=>{let P=m?.key===N.key?m.dir:void 0;return Ht.jsxDEV("th",{"data-align":N.align??"left","data-sortable":N.sort!==void 0,"data-sorted":P,style:N.width!==void 0?{width:N.width}:void 0,title:N.title,onClick:()=>R(N),"aria-sort":P==="asc"?"ascending":P==="desc"?"descending":void 0,children:[N.header,P&&Ht.jsxDEV("span",{className:"sort-arrow",children:P==="asc"?Ht.jsxDEV(rf,{size:11},void 0,!1,void 0,this):Ht.jsxDEV(ef,{size:11},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},N.key,!0,void 0,this)})},void 0,!1,void 0,this)},void 0,!1,void 0,this),Ht.jsxDEV("tbody",{children:I.map((N)=>{let P=l(N),V=x?.(N)??null;return Ht.jsxDEV(Bi.Fragment,{children:[Ht.jsxDEV("tr",{"data-clickable":c!==void 0,"data-selected":f===P,onClick:c?()=>c(N):void 0,onKeyDown:c?(K)=>{if(K.key==="Enter"||K.key===" ")K.preventDefault(),c(N)}:void 0,tabIndex:c?0:void 0,children:r.map((K)=>Ht.jsxDEV("td",{"data-align":K.align??"left","data-wrap":K.wrap??!1,children:K.render(N)},K.key,!1,void 0,this))},void 0,!1,void 0,this),V!==null&&Ht.jsxDEV("tr",{children:Ht.jsxDEV("td",{colSpan:r.length,"data-wrap":"true",style:{padding:0},children:V},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&&w.length>g&&Ht.jsxDEV("div",{className:"table-more",children:[Ht.jsxDEV("span",{className:"micro",children:u("ui.table-shown-of",{shown:M(I.length),total:M(w.length)})},void 0,!1,void 0,this),w.length>C&&Ht.jsxDEV("button",{type:"button",className:"btn","data-size":"sm","data-variant":"ghost",onClick:()=>T((N)=>N+g*4),children:u("common.show-more")},void 0,!1,void 0,this),C>g&&Ht.jsxDEV("button",{type:"button",className:"btn","data-size":"sm","data-variant":"ghost",onClick:()=>T(g),children:u("ui.show-fewer")},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)}function Ra({value:r,max:i,display:l,color:c}){let f=i>0?Math.min(100,r/i*100):0;return Ht.jsxDEV("div",{className:"meter-cell",children:[Ht.jsxDEV("span",{className:"num",children:l},void 0,!1,void 0,this),Ht.jsxDEV("div",{className:"meter",children:Ht.jsxDEV("div",{className:"meter-fill",style:{width:`${f}%`,background:c}},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function lo({primary:r,secondary:i,lead:l}){return Ht.jsxDEV("div",{className:"row",style:{gap:10},children:[l,Ht.jsxDEV("div",{className:"stack",style:{gap:0},children:[Ht.jsxDEV("span",{className:"cell-primary truncate",children:r},void 0,!1,void 0,this),i!==void 0&&Ht.jsxDEV("span",{className:"cell-secondary truncate",children:i},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)}var zf=_(Qe(),1);function jh(r){return r instanceof HTMLElement&&(r.isContentEditable||r.tagName==="INPUT"||r.tagName==="TEXTAREA"||r.tagName==="SELECT")}function $h(){return document.querySelector('[aria-modal="true"]')!==null}var Xh=_(ae(),1);function II(){let r=UE();if(zf.useEffect(()=>{if(!r)return;let i=(l)=>{if(!_E(l))return;l.preventDefault(),TI()};return window.addEventListener("keydown",i),()=>window.removeEventListener("keydown",i)},[r]),!r)return null;return Xh.jsxDEV("button",{type:"button",className:"btn","data-variant":"ghost",onClick:TI,title:"Close the dashboard (Esc)",children:[Xh.jsxDEV(Lo,{size:15},void 0,!1,void 0,this),"Close",Xh.jsxDEV("span",{className:"kbd",children:"Esc"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function TI(){tI().catch((r)=>console.error("Closing the dashboard failed",r))}function UE(){let[r,i]=zf.useState(!1);return zf.useEffect(()=>{let l=new AbortController;return eI(l.signal).then(i,()=>{}),()=>l.abort()},[]),r}function _E(r){if(r.defaultPrevented||r.altKey||r.metaKey||r.shiftKey)return!1;if(jh(r.target)||$h())return!1;if(r.key==="Escape")return!r.ctrlKey;return r.ctrlKey&&r.key.toLowerCase()==="c"&&!window.getSelection()?.toString()}var Yh=_(ae(),1);function RI(){let r=Dl(),i=r==="en"?"zh-CN":"en",l=r==="en"?"中文":"EN";return Yh.jsxDEV("button",{type:"button",className:"btn","data-variant":"ghost","data-locale-toggle":r,onClick:()=>GT(i),"aria-label":u("shell.switch-language"),title:`${u("shell.language")}: ${l}`,children:[Yh.jsxDEV(xf,{size:15},void 0,!1,void 0,this),Yh.jsxDEV("span",{className:"topbar-locale-label",children:l},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}var Kh=_(Qe(),1);var ha=_(ae(),1);function MI(){let{sync:r,indexingHours:i,connected:l,requestSync:c}=Uh(),f=FE(r.phase==="idle"?15000:null),y,g;if(!l)y=ha.jsxDEV(ha.Fragment,{children:[ha.jsxDEV(Pn,{tone:"warn"},void 0,!1,void 0,this),ha.jsxDEV("span",{children:u("shell.reconnecting")},void 0,!1,void 0,this)]},void 0,!0,void 0,this),g=u("shell.lost-connection");else if(r.phase==="syncing")y=ha.jsxDEV(ha.Fragment,{children:[ha.jsxDEV(Al,{size:13,className:"spin"},void 0,!1,void 0,this),ha.jsxDEV("span",{children:u("shell.syncing")},void 0,!1,void 0,this),r.total>0&&ha.jsxDEV("span",{className:"live-chip-count",children:[M(r.current),"/",M(r.total)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),g=u("shell.ingesting");else if(r.phase==="error")y=ha.jsxDEV(ha.Fragment,{children:[ha.jsxDEV(Pn,{tone:"bad"},void 0,!1,void 0,this),ha.jsxDEV("span",{children:u("shell.sync-failed")},void 0,!1,void 0,this)]},void 0,!0,void 0,this),g=`${r.error??u("shell.sync-failed")} — click to retry`;else if(i>HE)y=ha.jsxDEV(ha.Fragment,{children:[ha.jsxDEV(Al,{size:13,className:"spin"},void 0,!1,void 0,this),ha.jsxDEV("span",{children:u("shell.indexing")},void 0,!1,void 0,this),ha.jsxDEV("span",{className:"live-chip-count",children:[M(i),"h left"]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),g=u("shell.building-rollups");else y=ha.jsxDEV(ha.Fragment,{children:[ha.jsxDEV(Pn,{tone:"live",pulse:!0},void 0,!1,void 0,this),ha.jsxDEV("span",{children:u("shell.live")},void 0,!1,void 0,this),r.lastSyncedAt!==null&&ha.jsxDEV("span",{className:"live-chip-count",children:GE(f-r.lastSyncedAt)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),g=u("shell.sync-now");return ha.jsxDEV("button",{type:"button",className:"live-chip",onClick:c,disabled:r.phase==="syncing",title:g,children:y},void 0,!1,void 0,this)}var HE=24;function FE(r){let[i,l]=Kh.useState(Date.now);return Kh.useEffect(()=>{if(r===null)return;l(Date.now());let c=setInterval(()=>l(Date.now()),r);return()=>clearInterval(c)},[r]),i}function GE(r){let i=Math.max(0,Math.round(r/1000));if(i<45)return u("shell.just-now");let l=Math.round(i/60);if(l<60)return`${l}m ago`;let c=Math.round(l/60);return c<24?`${c}h ago`:`${Math.round(c/24)}d ago`}var Qh=[{headingKey:"nav.usage",items:[{id:"overview",labelKey:"nav.overview",icon:Sf,hotkey:"o"},{id:"models",labelKey:"nav.models",icon:df,hotkey:"m"},{id:"providers",labelKey:"nav.providers",icon:Rl,hotkey:"p"},{id:"costs",labelKey:"nav.costs",icon:lf,hotkey:"c"}]},{headingKey:"nav.activity",items:[{id:"requests",labelKey:"nav.requests",icon:Zc,hotkey:"r"},{id:"errors",labelKey:"nav.errors",icon:Ll,hotkey:"e"},{id:"traces",labelKey:"nav.traces",icon:Qr,hotkey:"t"}]},{headingKey:"nav.insights",items:[{id:"tools",labelKey:"nav.tools",icon:Ei,hotkey:"l"},{id:"frustration",labelKey:"nav.frustration",icon:Tl,hotkey:"f"},{id:"projects",labelKey:"nav.projects",icon:mf,hotkey:"j"},{id:"gain",labelKey:"nav.gain",icon:On,hotkey:"g"},{id:"spotlight",labelKey:"nav.spotlight",icon:Ss,hotkey:"s"}]}],VE=Qh.flatMap((r)=>r.items),AI=VE.map((r)=>r.id);var gx=_(Qe(),1),EI="zeta-stats-theme",NI="(prefers-color-scheme: dark)";function jE(){if(typeof localStorage>"u")return"system";let r=localStorage.getItem(EI);return r==="light"||r==="dark"||r==="system"?r:"system"}function qI(){if(typeof window>"u")return"dark";return window.matchMedia(NI).matches?"dark":"light"}var zi=jE(),Wh=zi==="system"?qI():zi,yx=new Set;function OI(){for(let r of yx)r()}function vx(){if(Wh=zi==="system"?qI():zi,typeof document<"u")document.documentElement.dataset.theme=Wh,document.documentElement.style.colorScheme=Wh}if(typeof window<"u")vx(),window.matchMedia(NI).addEventListener("change",()=>{if(zi==="system")vx(),OI()});function $E(r){if(zi=r,typeof localStorage<"u")localStorage.setItem(EI,r);vx(),OI()}function DI(r){return yx.add(r),()=>yx.delete(r)}function BI(){let r=gx.useSyncExternalStore(DI,()=>zi,()=>"system"),i=gx.useSyncExternalStore(DI,()=>Wh,()=>"dark");return{preference:r,resolved:i,setPreference:$E}}var bx=_(ae(),1),XE={system:"light",light:"dark",dark:"system"},YE={system:"shell.system-theme",light:"shell.light-theme",dark:"shell.dark-theme"},KE={system:Cf,light:Df,dark:wf};function zI(){Dl();let{preference:r,setPreference:i}=BI(),l=KE[r],c=u(YE[r]);return bx.jsxDEV("button",{type:"button",className:"btn","data-variant":"ghost","data-icon":"true",onClick:()=>i(XE[r]),"aria-label":`${c} (click to switch)`,title:`${c} — click to switch`,children:bx.jsxDEV(l,{size:15},void 0,!1,void 0,this)},void 0,!1,void 0,this)}var rt=_(ae(),1);function PI({section:r,onSectionChange:i,range:l,onRangeChange:c,children:f}){Dl();let y=Wu.map((C,T)=>({value:C,label:u(Jt(C).labelKey),title:`${u(Jt(C).windowKey)} (${T+1})`})),[g,v]=nd.useState(!1),h=QE(),{sync:x}=Uh();WE(i,c);let m=(C)=>{i(C),v(!1),window.scrollTo({top:0})},S=x.phase==="syncing"?x.total>0?x.current/x.total:null:void 0;return rt.jsxDEV(rt.Fragment,{children:[rt.jsxDEV("div",{className:"shell-ambient"},void 0,!1,void 0,this),rt.jsxDEV("header",{className:"topbar","data-scrolled":h,children:[rt.jsxDEV("button",{type:"button",className:"btn topbar-menu","data-variant":"ghost","data-icon":"true",onClick:()=>v(!0),"aria-label":u("nav.open-navigation"),children:rt.jsxDEV(Lf,{size:16},void 0,!1,void 0,this)},void 0,!1,void 0,this),rt.jsxDEV("div",{className:"topbar-brand",children:[rt.jsxDEV("svg",{className:"topbar-mark",viewBox:"0 0 64 64",width:"22",height:"22","aria-hidden":"true",children:[rt.jsxDEV("defs",{children:rt.jsxDEV("linearGradient",{id:"zeta-mark-grad",x1:"0",y1:"0",x2:"1",y2:"1",children:[rt.jsxDEV("stop",{offset:"0",stopColor:"oklch(0.7 0.24 340)"},void 0,!1,void 0,this),rt.jsxDEV("stop",{offset:".5",stopColor:"oklch(0.62 0.21 295)"},void 0,!1,void 0,this),rt.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),rt.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),rt.jsxDEV("span",{children:"zeta"},void 0,!1,void 0,this),rt.jsxDEV("span",{className:"topbar-slash",children:"/"},void 0,!1,void 0,this),rt.jsxDEV("span",{className:"topbar-title",children:u("nav.breadcrumb-stats")},void 0,!1,void 0,this)]},void 0,!0,void 0,this),rt.jsxDEV("div",{className:"topbar-spacer"},void 0,!1,void 0,this),rt.jsxDEV("div",{className:"topbar-actions",children:[rt.jsxDEV("span",{className:"topbar-hide-narrow",children:rt.jsxDEV(MI,{},void 0,!1,void 0,this)},void 0,!1,void 0,this),rt.jsxDEV(Na,{options:y,value:l,onChange:c,"aria-label":u("common.time-range")},void 0,!1,void 0,this),rt.jsxDEV(RI,{},void 0,!1,void 0,this),rt.jsxDEV(zI,{},void 0,!1,void 0,this),rt.jsxDEV(II,{},void 0,!1,void 0,this)]},void 0,!0,void 0,this),S!==void 0&&rt.jsxDEV("div",{className:"topbar-progress",children:rt.jsxDEV("div",{className:"topbar-progress-fill","data-indeterminate":S===null,style:{width:`${(S??0)*100}%`}},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),g&&rt.jsxDEV("div",{className:"drawer-scrim",onClick:()=>v(!1),role:"presentation"},void 0,!1,void 0,this),rt.jsxDEV("nav",{className:"sidebar","data-open":g,"aria-label":u("nav.pages"),children:[Qh.map((C)=>rt.jsxDEV("div",{className:"nav-group",children:[rt.jsxDEV("div",{className:"nav-heading",children:u(C.headingKey)},void 0,!1,void 0,this),C.items.map((T)=>rt.jsxDEV("button",{type:"button",className:"nav-row","data-active":T.id===r,"aria-current":T.id===r?"page":void 0,onClick:()=>m(T.id),children:[rt.jsxDEV(T.icon,{size:15},void 0,!1,void 0,this),rt.jsxDEV("span",{className:"nav-row-label",children:u(T.labelKey)},void 0,!1,void 0,this),rt.jsxDEV("kbd",{children:["G ",T.hotkey.toUpperCase()]},void 0,!0,void 0,this)]},T.id,!0,void 0,this))]},C.headingKey,!0,void 0,this)),rt.jsxDEV("div",{className:"sidebar-foot micro",children:[rt.jsxDEV("span",{children:[rt.jsxDEV("span",{className:"kbd",children:"1"},void 0,!1,void 0,this),"–",rt.jsxDEV("span",{className:"kbd",children:"6"},void 0,!1,void 0,this)," ",u("shell.range-suffix")]},void 0,!0,void 0,this),rt.jsxDEV("span",{children:[rt.jsxDEV("span",{className:"kbd",children:"G"},void 0,!1,void 0,this)," ",u("shell.jump-hint")]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),rt.jsxDEV("main",{className:"shell-panel",children:rt.jsxDEV("div",{className:"shell-content",children:f},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function QE(){let[r,i]=nd.useState(!1);return nd.useEffect(()=>{let l=()=>i(window.scrollY>4);return l(),window.addEventListener("scroll",l,{passive:!0}),()=>window.removeEventListener("scroll",l)},[]),r}function WE(r,i){nd.useEffect(()=>{let l=0,c=(f)=>{if(f.metaKey||f.ctrlKey||f.altKey||f.defaultPrevented)return;if(jh(f.target)||$h())return;let y=f.key.toLowerCase();if(l&&Date.now()-l<1200){l=0;let v=Qh.flatMap((h)=>h.items).find((h)=>h.hotkey===y);if(v)f.preventDefault(),r(v.id),window.scrollTo({top:0});return}if(y==="g"){l=Date.now();return}let g=Number(y)-1;if(Number.isInteger(g)&&g>=0&&g<Wu.length)f.preventDefault(),i(Wu[g])};return window.addEventListener("keydown",c),()=>window.removeEventListener("keydown",c)},[r,i])}var ks=_(Qe(),1);function Pf(r){let[i,l]=r.replace(/^#\/?/,"").split("?"),c=AI.includes(i)?i:"overview",f=new URLSearchParams(l??""),y=f.get("range"),g=Wu.includes(y??"")?y:"24h";return{section:c,range:g,session:f.get("s")}}function Zh({section:r,range:i,session:l}){let c=l?`&s=${encodeURIComponent(l)}`:"";return`#/${r}?range=${i}${c}`}function UI(){let[r,i]=ks.useState(()=>Pf(window.location.hash));ks.useEffect(()=>{let g=()=>i(Pf(window.location.hash));window.addEventListener("hashchange",g),window.addEventListener("popstate",g);let v=Zh(Pf(window.location.hash));if(window.location.hash!==v)history.replaceState(null,"",v);return()=>{window.removeEventListener("hashchange",g),window.removeEventListener("popstate",g)}},[]);let l=ks.useCallback((g)=>{i(g);let v=Zh(g);if(window.location.hash!==v)history.pushState(null,"",v)},[]),c=ks.useCallback((g)=>l({...r,section:g,session:g==="traces"?r.session:null}),[r,l]),f=ks.useCallback((g)=>l({...r,range:g}),[r,l]),y=ks.useCallback((g)=>l({...r,session:g}),[r,l]);return{...r,setSection:c,setRange:f,setSession:y}}var _f=_(Qe(),1);var Hn=_(ae(),1);function Ls({items:r,max:i,onSelect:l}){let c=i??Math.max(0,...r.map((f)=>f.value));return Hn.jsxDEV("div",{className:"bar-list",children:r.map((f)=>{let y=c>0?Math.max(0.5,f.value/c*100):0,g=Hn.jsxDEV(Hn.Fragment,{children:[Hn.jsxDEV("span",{className:"bar-list-fill",style:{width:`${y}%`,background:f.color??"var(--chart-primary)"}},void 0,!1,void 0,this),Hn.jsxDEV("span",{className:"bar-list-label",children:f.label},void 0,!1,void 0,this),Hn.jsxDEV("span",{className:"bar-list-value",children:f.display??M(f.value)},void 0,!1,void 0,this)]},void 0,!0,void 0,this);return l?Hn.jsxDEV("button",{type:"button",className:"bar-list-row",onClick:()=>l(f.key),children:g},f.key,!1,void 0,this):Hn.jsxDEV("div",{className:"bar-list-row",children:g},f.key,!1,void 0,this)})},void 0,!1,void 0,this)}var ws=_(Qe(),1);var ut=_(ae(),1),Cs=10,ZE=24,JE=68,eN=4;function hr({slots:r,tickLabel:i,tooltipTitle:l,series:c,kind:f="bars",stacked:y=!0,height:g=220,format:v=le,formatRight:h,formatTooltip:x,yMax:m,yMaxRight:S,hidden:C,showTotal:T,references:w,markers:I,onSelect:R,emptyLabel:N="No data in this range",tooltipExtra:P}){let[V,K]=Gh(),[de,W]=ws.useState(null),fe=ws.useId().replace(/:/g,""),ee=ws.useMemo(()=>c.filter((G)=>!C?.has(G.key)),[c,C]),H=ws.useMemo(()=>{let G=ee.filter((qt)=>qt.axis!=="right"),te=ee.filter((qt)=>qt.axis==="right"),Q=(qt)=>{let da=qt.kind??f;return y&&(da==="bars"||da==="area")},ke=new Map,De=Array.from({length:r},()=>0),lt=Array.from({length:r},()=>0),Ue=0,Te=0;for(let qt of G)if(Q(qt)){let da=Array.from({length:r},()=>0);for(let co=0;co<r;co++){let Pl=qt.values[co]??0;if(Pl<0)da[co]=lt[co],lt[co]+=Pl;else da[co]=De[co],De[co]+=Pl}ke.set(qt.key,da)}else for(let da=0;da<r;da++)Ue=Math.max(Ue,qt.values[da]??0),Te=Math.min(Te,qt.values[da]??0);for(let qt=0;qt<r;qt++)Ue=Math.max(Ue,De[qt]),Te=Math.min(Te,lt[qt]);let va=0,Ne=0;for(let qt of te)for(let da=0;da<r;da++)va=Math.max(va,qt.values[da]??0),Ne=Math.min(Ne,qt.values[da]??0);for(let qt of w??[])if(qt.axis==="right")va=Math.max(va,qt.value);else Ue=Math.max(Ue,qt.value);let Pr=Jh(m??Ue,Te),Xt=te.length>0?Jh(S??va,Ne):null,Vi=ee.every((qt)=>qt.values.every((da)=>!da));return{left:G,right:te,bases:ke,stackable:Q,leftScale:Pr,rightScale:Xt,empty:Vi}},[ee,r,y,f,m,S,w]),X=H.leftScale.ticks.map((G)=>v(G)),Le=H.rightScale?.ticks.map((G)=>(h??v)(G))??[],me=Math.max(28,_I(X)+12),Oe=H.rightScale?Math.max(28,_I(Le)+12):8,we=Math.max(0,K-me-Oe),re=g-Cs-ZE,xe=r>0?we/r:0,Ae=(G,te)=>Cs+re-(te-G.min)/(G.max-G.min)*re,Je=(G)=>Ae(H.leftScale,G),ht=(G)=>H.rightScale?Ae(H.rightScale,G):Je(G),Z=(G)=>me+(G+0.5)*xe,He=ee.filter((G)=>(G.kind??f)==="bars"),Ct=He.filter((G)=>!H.stackable(G)||G.axis==="right"),wt=Math.max(1,Math.min(56,xe*(xe>6?0.72:0.9))),he=Math.max(1,Math.ceil(r/Math.max(1,Math.floor(we/JE)))),Ye=(G)=>{let te=G.currentTarget.getBoundingClientRect(),Q=Math.floor((G.clientX-te.left)/(te.width/r));W(Q>=0&&Q<r?Q:null)},Fe=de===null?[]:ee.filter((G)=>G.tooltip!==!1).map((G)=>({s:G,v:G.values[de]})).filter((G)=>G.v!==null&&G.v!==void 0&&(G.v!==0||ee.length===1)).sort((G,te)=>ee.length>1?te.v-G.v:0),ua=Fe.filter((G)=>G.s.axis!=="right").reduce((G,te)=>G+te.v,0),na=T??(y&&H.left.length>1);return ut.jsxDEV("div",{className:"chart",ref:V,"data-hovering":de!==null,style:{height:g},children:[K>0&&ut.jsxDEV("svg",{width:K,height:g,role:"img",children:[ut.jsxDEV("defs",{children:ee.filter((G)=>G.pattern==="hatch").map((G)=>ut.jsxDEV("pattern",{id:`${fe}-${xx(G.key)}`,width:"5",height:"5",patternUnits:"userSpaceOnUse",patternTransform:"rotate(45)",children:[ut.jsxDEV("rect",{width:"5",height:"5",fill:G.color,fillOpacity:"0.14"},void 0,!1,void 0,this),ut.jsxDEV("rect",{width:"1.6",height:"5",fill:G.color},void 0,!1,void 0,this)]},G.key,!0,void 0,this))},void 0,!1,void 0,this),ut.jsxDEV("g",{className:"chart-grid",children:H.leftScale.ticks.map((G)=>ut.jsxDEV("line",{x1:me,x2:me+we,y1:Je(G),y2:Je(G)},G,!1,void 0,this))},void 0,!1,void 0,this),ut.jsxDEV("g",{className:"chart-axis",children:[H.leftScale.ticks.map((G,te)=>ut.jsxDEV("text",{x:me-8,y:Je(G),dy:"0.32em",textAnchor:"end",children:X[te]},G,!1,void 0,this)),H.rightScale?.ticks.map((G,te)=>ut.jsxDEV("text",{x:me+we+8,y:ht(G),dy:"0.32em",textAnchor:"start",children:Le[te]},G,!1,void 0,this)),Array.from({length:r},(G,te)=>te%he===0?ut.jsxDEV("text",{x:Z(te),y:g-6,textAnchor:"middle",children:i(te)},te,!1,void 0,this):null)]},void 0,!0,void 0,this),de!==null&&ut.jsxDEV("rect",{className:"chart-cursor",x:me+de*xe,y:Cs,width:xe,height:re},void 0,!1,void 0,this),ee.filter((G)=>(G.kind??f)==="area").map((G)=>{let te=G.axis==="right"?ht:Je,Q=H.bases.get(G.key),ke=(Te)=>(Q?.[Te]??0)+(G.values[Te]??0),De=HI(r,Z,(Te)=>te(ke(Te))),lt=Array.from({length:r},(Te,va)=>r-1-va).map((Te)=>`L${Z(Te).toFixed(1)},${te(Q?.[Te]??0).toFixed(1)}`).join(""),Ue=G.pattern==="hatch"?`url(#${fe}-${xx(G.key)})`:G.color;return ut.jsxDEV("g",{children:[ut.jsxDEV("path",{d:`${De}${lt}Z`,fill:Ue,fillOpacity:G.pattern?1:0.2},void 0,!1,void 0,this),ut.jsxDEV("path",{className:"chart-line",d:De,stroke:G.color,strokeDasharray:G.dashed?"4 3":void 0},void 0,!1,void 0,this)]},G.key,!0,void 0,this)}),He.map((G)=>{let te=G.axis==="right"?ht:Je,Q=H.bases.get(G.key),ke=Ct.indexOf(G),De=ke>=0?wt/Ct.length:wt,lt=G.pattern==="hatch"?`url(#${fe}-${xx(G.key)})`:G.color;return ut.jsxDEV("g",{children:G.values.map((Ue,Te)=>{if(!Ue)return null;let va=ke>=0?0:Q?.[Te]??0,Ne=te(va),Pr=te(va+Ue),Xt=Z(Te)-wt/2+(ke>=0?ke*De:0);return ut.jsxDEV("rect",{className:"chart-bar","data-hover":de===Te,x:Xt,y:Math.min(Ne,Pr),width:Math.max(1,De-(ke>=0&&Ct.length>1?1:0)),height:Math.max(Ue>0?1:0,Math.abs(Ne-Pr)),fill:lt},Te,!1,void 0,this)})},G.key,!1,void 0,this)}),ee.filter((G)=>(G.kind??f)==="line").map((G)=>{let te=G.axis==="right"?ht:Je,Q=(ke)=>{let De=G.values[ke];return De===null||De===void 0?null:te(De)};return ut.jsxDEV("g",{children:[ut.jsxDEV("path",{className:"chart-line",d:HI(r,Z,Q),stroke:G.color,strokeDasharray:G.dashed?"4 3":void 0},void 0,!1,void 0,this),G.values.map((ke,De)=>{let lt=Q(De);if(lt===null||De>0&&Q(De-1)!==null||De<r-1&&Q(De+1)!==null)return null;return ut.jsxDEV("circle",{cx:Z(De),cy:lt,r:2.5,fill:G.color},De,!1,void 0,this)})]},G.key,!0,void 0,this)}),ee.filter((G)=>(G.kind??f)==="dots").map((G)=>{let te=G.axis==="right"?ht:Je;return ut.jsxDEV("g",{className:"chart-dots",fill:G.color,children:G.values.map((Q,ke)=>Q===null||Q===void 0?null:ut.jsxDEV("circle",{cx:Z(ke),cy:te(Q),r:de===ke?3.5:2.5},ke,!1,void 0,this))},G.key,!1,void 0,this)}),I?.map((G)=>G.index>=0&&G.index<r?ut.jsxDEV("g",{className:"chart-marker",children:[ut.jsxDEV("line",{x1:Z(G.index),x2:Z(G.index),y1:Cs,y2:Cs+re},void 0,!1,void 0,this),G.label&&ut.jsxDEV("text",{x:Z(G.index)+(Z(G.index)>me+we/2?-5:5),y:Cs+9,textAnchor:Z(G.index)>me+we/2?"end":"start",children:G.label},void 0,!1,void 0,this)]},`marker:${G.index}`,!0,void 0,this):null),w?.map((G)=>{let te=G.axis==="right"?ht(G.value):Je(G.value);return ut.jsxDEV("g",{className:"chart-axis",children:[ut.jsxDEV("line",{x1:me,x2:me+we,y1:te,y2:te,stroke:"var(--line-4)",strokeDasharray:"3 3"},void 0,!1,void 0,this),G.label&&ut.jsxDEV("text",{x:me+we-4,y:te-5,textAnchor:"end",children:G.label},void 0,!1,void 0,this)]},`${G.axis??"left"}:${G.value}`,!0,void 0,this)}),ut.jsxDEV("line",{className:"chart-baseline",x1:me,x2:me+we,y1:Je(0),y2:Je(0)},void 0,!1,void 0,this),ut.jsxDEV("rect",{x:me,y:Cs,width:we,height:re,fill:"transparent",onPointerMove:Ye,onPointerLeave:()=>W(null),onClick:R&&de!==null?()=>R(de):void 0,style:{cursor:R?"pointer":"crosshair"}},void 0,!1,void 0,this)]},void 0,!0,void 0,this),H.empty&&ut.jsxDEV("div",{className:"chart-empty",children:N},void 0,!1,void 0,this),de!==null&&!H.empty&&ut.jsxDEV("div",{className:"chart-tooltip",style:Z(de)>K/2?{right:K-Z(de)+Math.min(xe/2,24)+8,top:Cs}:{left:Z(de)+Math.min(xe/2,24)+8,top:Cs},children:[ut.jsxDEV("div",{className:"chart-tooltip-title",children:(l??i)(de)},void 0,!1,void 0,this),Fe.map(({s:G,v:te})=>ut.jsxDEV("div",{className:"chart-tooltip-row",children:[ut.jsxDEV("span",{className:"swatch",style:{background:G.color}},void 0,!1,void 0,this),ut.jsxDEV("span",{className:"chart-tooltip-label",children:G.label},void 0,!1,void 0,this),ut.jsxDEV("span",{className:"chart-tooltip-value",children:G.axis==="right"?(h??v)(te):(x??v)(te)},void 0,!1,void 0,this)]},G.key,!0,void 0,this)),na&&Fe.length>1&&ut.jsxDEV("div",{className:"chart-tooltip-row chart-tooltip-total",children:[ut.jsxDEV("span",{className:"chart-tooltip-label",children:"Total"},void 0,!1,void 0,this),ut.jsxDEV("span",{className:"chart-tooltip-value",children:(x??v)(ua)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),P&&ut.jsxDEV(ws.Fragment,{children:P(de)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)}function Jh(r,i=0){let l=Math.max(0,r),c=Math.min(0,i);if(!(l-c>0))return{min:0,max:1,ticks:[0]};let f=(l-c)/eN,y=10**Math.floor(Math.log10(f)),g=[1,2,2.5,5,10].map((m)=>m*y).find((m)=>m>=f)??10*y,v=Math.ceil(l/g)*g,h=Math.floor(c/g)*g,x=[];for(let m=h;m<=v+g/2;m+=g)x.push(Number(m.toPrecision(12)));return{min:h,max:v>h?v:h+g,ticks:x}}function _I(r){return r.reduce((i,l)=>Math.max(i,l.length*6.3),0)}function HI(r,i,l){let c="",f=!1;for(let y=0;y<r;y++){let g=l(y);if(g===null){f=!1;continue}c+=`${f?"L":"M"}${i(y).toFixed(1)},${g.toFixed(1)}`,f=!0}return c}function xx(r){return r.replace(/[^a-zA-Z0-9_-]/g,"_")}var Ua=_(ae(),1);function eg({rows:r,guides:i,band:l,format:c,formatTick:f}){let y=0,g=0,v=(T)=>{if(T===null)return;y=Math.max(y,T),g=Math.min(g,T)};for(let T of r)for(let w of T.marks)v(w.value),v(w.lo),v(w.hi);for(let T of i??[])v(T.value);if(l)v(l.lo),v(l.hi);let h=Jh(y,g),x=h.max-h.min,m=(T)=>(Math.min(h.max,Math.max(h.min,T))-h.min)/x*100,S=(T)=>`${m(T)}%`,C=Ua.jsxDEV(Ua.Fragment,{children:[l&&Ua.jsxDEV("span",{className:"dw-band",style:{left:S(l.lo),width:`${m(l.hi)-m(l.lo)}%`,"--band":l.color}},void 0,!1,void 0,this),i?.map((T)=>Ua.jsxDEV("span",{className:"dw-guide",style:{left:S(T.value),"--guide":T.color}},T.key,!1,void 0,this))]},void 0,!0,void 0,this);return Ua.jsxDEV("div",{className:"dw",children:[r.map((T)=>{let w=T.marks[0],I=w!==void 0&&w.lo!==null&&w.hi!==null?`${c(w.lo)}–${c(w.hi)}`:"";return Ua.jsxDEV("div",{className:"dw-row",children:[Ua.jsxDEV("div",{className:"dw-label",children:T.label},void 0,!1,void 0,this),Ua.jsxDEV("div",{className:"dw-track",children:[C,T.marks.map((R)=>Ua.jsxDEV("span",{className:"dw-mark","data-shape":R.shape??"dot",style:{"--dot":R.color,"--dy":`${R.offset??0}px`},children:[R.lo!==null&&R.hi!==null&&Ua.jsxDEV("span",{className:"dw-whisker",style:{left:S(R.lo),width:`${m(R.hi)-m(R.lo)}%`}},void 0,!1,void 0,this),R.value!==null&&Ua.jsxDEV("span",{className:"dw-dot",style:{left:S(R.value)},title:R.title},void 0,!1,void 0,this)]},R.key,!0,void 0,this))]},void 0,!0,void 0,this),Ua.jsxDEV("div",{className:"dw-value",children:[Ua.jsxDEV("span",{className:"num",children:T.figure??(w?.value===null||w===void 0?"–":c(w.value))},void 0,!1,void 0,this),Ua.jsxDEV("span",{className:"dw-detail",children:T.detail??I},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},T.key,!0,void 0,this)}),Ua.jsxDEV("div",{className:"dw-row dw-axis","aria-hidden":"true",children:[Ua.jsxDEV("div",{},void 0,!1,void 0,this),Ua.jsxDEV("div",{className:"dw-track",children:h.ticks.map((T)=>Ua.jsxDEV("span",{className:"dw-tick",style:{left:S(T)},children:(f??c)(T)},T,!1,void 0,this))},void 0,!1,void 0,this),Ua.jsxDEV("div",{},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)}var tg=_(Qe(),1),Fn=_(ae(),1);function ra({items:r,hidden:i,onToggle:l}){return Fn.jsxDEV("div",{className:"legend",children:r.map((c)=>{let f=Fn.jsxDEV(Fn.Fragment,{children:[Fn.jsxDEV("span",{className:"swatch",style:{background:c.color}},void 0,!1,void 0,this),Fn.jsxDEV("span",{className:"truncate",children:c.label},void 0,!1,void 0,this),c.value&&Fn.jsxDEV("span",{className:"legend-value",children:c.value},void 0,!1,void 0,this)]},void 0,!0,void 0,this);return l?Fn.jsxDEV("button",{type:"button",className:"legend-item","data-off":i?.has(c.key)??!1,onClick:()=>l(c.key),title:c.label,children:f},c.key,!1,void 0,this):Fn.jsxDEV("span",{className:"legend-item",title:c.label,children:f},c.key,!1,void 0,this)})},void 0,!1,void 0,this)}function Or(){let[r,i]=tg.useState(()=>new Set),l=tg.useCallback((c)=>{i((f)=>{let y=new Set(f);if(!y.delete(c))y.add(c);return y})},[]);return[r,l]}var Sx=_(ae(),1);function Gn({segments:r,height:i=8}){let l=r.reduce((c,f)=>c+Math.max(0,f.value),0);return Sx.jsxDEV("div",{className:"share-bar",style:{height:i},role:"img",children:l>0&&r.filter((c)=>c.value>0).map((c)=>Sx.jsxDEV("div",{className:"share-bar-seg",style:{flexGrow:c.value/l,background:c.color},title:`${c.label}: ${(c.value/l*100).toFixed(1)}%`},c.key,!1,void 0,this))},void 0,!1,void 0,this)}var FI=_(ae(),1);function zo({buckets:r,bucketMs:i,onSelectBucket:l,...c}){return FI.jsxDEV(hr,{...c,slots:r.length,tickLabel:(f)=>Bh(r[f],i),tooltipTitle:(f)=>Zu(r[f],i),onSelect:l?(f)=>l(r[f]):void 0},void 0,!1,void 0,this)}var tn=_(ae(),1);function GI({steps:r,format:i}){let l=0,c=r.map((h)=>{let x=l;if(h.kind==="total")return l=h.value,{...h,from:0,to:h.value,before:x};return l+=h.value,{...h,from:x,to:l,before:x}}),f=0,y=0;for(let h of c)f=Math.min(f,h.from,h.to),y=Math.max(y,h.from,h.to);let g=y-f||1,v=(h)=>(h-f)/g*100;return tn.jsxDEV("ol",{className:"waterfall",children:c.map((h,x)=>{let m=v(Math.min(h.from,h.to)),S=Math.abs(v(h.to)-v(h.from)),C=h.kind==="delta"?h.value<0?"−":"+":h.value<0?"−":"";return tn.jsxDEV("li",{className:"waterfall-row","data-kind":h.kind,title:h.title,children:[tn.jsxDEV("span",{className:"waterfall-label",children:h.label},void 0,!1,void 0,this),tn.jsxDEV("span",{className:"waterfall-track",children:[f<0&&tn.jsxDEV("span",{className:"waterfall-zero",style:{left:`${v(0)}%`}},void 0,!1,void 0,this),x>0&&tn.jsxDEV("span",{className:"waterfall-link",style:{left:`${v(h.before)}%`}},void 0,!1,void 0,this),tn.jsxDEV("span",{className:"waterfall-bar","data-empty":h.value===0,style:{left:`${m}%`,width:`${S}%`,"--bar":h.color}},void 0,!1,void 0,this)]},void 0,!0,void 0,this),tn.jsxDEV("span",{className:"waterfall-value",children:[tn.jsxDEV("span",{className:"num",children:[C,i(Math.abs(h.value))]},void 0,!0,void 0,this),h.note!==void 0&&tn.jsxDEV("span",{className:"waterfall-note",children:h.note},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},h.key,!0,void 0,this)})},void 0,!1,void 0,this)}var Ka=["#5ad8e6","#ed4abf","#9d7bff","#f5b54a","#4ade80","#5b8cff","#ff7a59","#2dd4bf","#c3e94f","#fb7185"],wo="#6c6c74";function _a(r,i){return`${r}::${i}`}function ag(r){return Uf(r.map((i)=>({key:_a(i.model,i.provider),weight:i.totalRequests})))}function Uf(r){let i=[...r].sort((l,c)=>c.weight-l.weight||l.key.localeCompare(c.key));return new Map(i.map((l,c)=>[l.key,Ka[c%Ka.length]]))}function og(r){return r instanceof Error?r:Error(String(r))}var Oa=_(Qe(),1);var tN={entries:new Map,limit:128},aN={entries:new Map,limit:4},oN={entries:new Map,limit:16},Pi=new Map;function VI(r){if(r.startsWith('["trace",'))return aN;if(r.startsWith('["request",'))return oN;return tN}function sd(r){return VI(r).entries.get(r)}function jI(r){return Pi.get(r)}function rN(r,i){let{entries:l,limit:c}=VI(r);if(l.delete(r),l.set(r,i),l.size>c){let f=l.keys().next().value;if(f!==void 0)l.delete(f)}}function $I(r,i,l){let c=Pi.get(r);if(c)return c.waiters++,c;let f=new AbortController,y=sd(r)?.data,g={promise:l({signal:f.signal},y).then((v)=>(rN(r,{data:v,updatedAt:Date.now(),version:i}),v)).finally(()=>{if(Pi.get(r)===g)Pi.delete(r)}),controller:f,waiters:1};return Pi.set(r,g),g}function kx(r,i){if(i.waiters--,i.waiters>0)return;if(Pi.get(r)===i)Pi.delete(r);i.controller.abort()}var nN=1500;function Ft(r,i,l){let c=JSON.stringify(r),f=l?.enabled??!0,y=l?.pollMs,g=SI(f),[,v]=Oa.useReducer((H)=>H+1,0),[h,x]=Oa.useReducer((H)=>H+1,0),[m,S]=Oa.useState(null),[C,T]=Oa.useState(!1),w=Oa.useRef(i);w.current=i;let I=Oa.useRef(c);I.current=c;let R=Oa.useRef(null),N=Oa.useRef(0),P=Oa.useRef(null),V=Oa.useCallback((H)=>{N.current=Date.now();let X=P.current;if(X?.key===H&&jI(H)===X.request)return;let Le=sd(H)?.data;T(!0);let me=$I(H,dx(),w.current);if(P.current={key:H,request:me},X)kx(X.key,X.request);let Oe=!1;me.promise.then((we)=>{if(Oe=!0,I.current!==H)return;if(we===Le){S((re)=>re===null?re:null);return}Oa.startTransition(()=>{S(null),v()})}).catch((we)=>{if(I.current!==H||me.controller.signal.aborted)return;S({key:H,error:og(we)})}).finally(()=>{if(P.current?.request!==me)return;if(P.current=null,I.current!==H)return;if(T(!1),Oe&&(sd(H)?.version??-1)<dx())x()})},[]),K=Oa.useCallback(()=>{let H=P.current;if(P.current=null,H)kx(H.key,H.request)},[]);Oa.useEffect(()=>K,[K]),Oa.useEffect(()=>{if(!f||P.current&&P.current.key!==c)K();if(!f)return;let H=sd(c);if(H&&H.version>=g)return;let X=H?N.current+nN-Date.now():0;if(X<=0){V(c);return}let Le=setTimeout(()=>V(c),X);return()=>clearTimeout(Le)},[c,f,g,h,V,K]),Oa.useEffect(()=>{if(!f||!y)return;let H=setInterval(()=>{if(!document.hidden)V(I.current)},y);return()=>clearInterval(H)},[f,y,V]);let de=Oa.useCallback(()=>V(I.current),[V]),W=sd(c);if(W)R.current={key:c,data:W.data,updatedAt:W.updatedAt};let fe=R.current,ee=m?.key===c?m.error:null;return{data:fe?.data??null,error:ee,loading:!fe&&!ee,stale:!!fe&&fe.key!==c,refreshing:C,updatedAt:fe?.updatedAt??null,refetch:de}}function ia(r,i,l){let c=XI(i),f=Array.from({length:i.length},()=>0);for(let y of r){let g=c.get(y.timestamp);if(g!==void 0)f[g]+=l(y)}return f}function Vn(r,i){let l=XI(i.buckets),c=new Map;for(let x of r){let m=l.get(x.timestamp);if(m===void 0)continue;let S=i.key(x),C=c.get(S);if(!C)C=Array.from({length:i.buckets.length},()=>0),c.set(S,C);C[m]+=i.value(x)}let f=[...c.entries()].map(([x,m])=>({key:x,values:m,total:m.reduce((S,C)=>S+C,0)})).filter((x)=>x.total!==0).sort((x,m)=>m.total-x.total||x.key.localeCompare(m.key)),y=i.limit??Number.POSITIVE_INFINITY,g=f.slice(0,y),v=f.slice(y),h=g.map((x,m)=>({key:x.key,label:i.label?i.label(x.key):x.key,color:i.colors?.get(x.key)??Ka[m%Ka.length],values:x.values}));if(v.length>0){let x=Array.from({length:i.buckets.length},()=>0);for(let m of v)for(let S=0;S<x.length;S++)x[S]+=m.values[S];h.push({key:"__other__",label:u("common.other-n",{count:v.length}),color:wo,values:x})}return h}function XI(r){let i=new Map;for(let l=0;l<r.length;l++)i.set(r[l],l);return i}var sN=["main","subagent","advisor"];function Ol(r){return r.totalInputTokens+r.totalOutputTokens+r.totalCacheReadTokens+r.totalCacheWriteTokens}function QI(r){let i=new Map;for(let g of r)i.set(g.agentType,g);let l=sN.map((g)=>i.get(g)).filter((g)=>g!==void 0),c=l.reduce((g,v)=>g+Ol(v),0),f=l.reduce((g,v)=>g+v.totalCost,0),y=l.map((g)=>{let v=Ol(g);return{agentType:g.agentType,tokens:v,requests:g.totalRequests,cost:g.totalCost,share:c>0?v/c:0}});return{totalTokens:c,totalCost:f,segments:y}}function WI(r){let i={totalCost:0,requests:0,unpricedRequests:0,activeDays:new Set(r.map((f)=>f.timestamp)).size,avgDailyCost:0,costInput:0,costOutput:0,costCacheRead:0,costCacheWrite:0,models:[],topModel:null},l=new Map;for(let f of r){let y=_a(f.model,f.provider),g=l.get(y);if(!g)g={key:y,model:f.model,provider:f.provider,cost:0,requests:0,unpricedRequests:0,costInput:0,costOutput:0,costCacheRead:0,costCacheWrite:0,share:0},l.set(y,g);YI(g,f),YI(i,f),g.cost+=f.cost,i.totalCost+=f.cost}i.avgDailyCost=i.activeDays>0?i.totalCost/i.activeDays:0,i.models=[...l.values()].sort((f,y)=>y.cost-f.cost||y.requests-f.requests||f.key.localeCompare(y.key));for(let f of i.models)f.share=i.totalCost>0?f.cost/i.totalCost:0;let c=i.models[0];return i.topModel=c!==void 0&&c.cost>0?c:null,i}function YI(r,i){r.costInput+=i.costInput,r.costOutput+=i.costOutput,r.costCacheRead+=i.costCacheRead,r.costCacheWrite+=i.costCacheWrite,r.requests+=i.requests,r.unpricedRequests+=i.unpricedRequests}function ZI(r){let i=new Map;for(let l of r){let c=_a(l.model,l.provider),f=i.get(c);if(!f)f=[],i.set(c,f);f.push({timestamp:l.timestamp,avgTtftSeconds:l.avgTtft!==null?l.avgTtft/1000:null,avgTokensPerSecond:l.avgTokensPerSecond,requests:l.requests})}for(let l of i.values())l.sort((c,f)=>c.timestamp-f.timestamp);return i}var lN=/^\/?-?(?:private-)?(?:tmp|var-folders)(?:[-/]|$)/;function JI(r){let i=0,l=0,c=0,f=0,y=0,g=0,v=0,h=0,x=0;for(let C of r){if(i+=C.totalRequests,l+=C.failedRequests,c+=C.totalCost,f+=C.unpricedRequests,y+=C.totalInputTokens+C.totalCacheReadTokens+C.totalCacheWriteTokens+C.totalOutputTokens,g+=C.totalInputTokens,v+=C.totalCacheReadTokens,C.totalRequests>h)h=C.totalRequests;if(C.totalCost>x)x=C.totalCost}let m=0;return{rows:r.map((C)=>{let T=lN.test(C.folder);if(T)m++;return{...C,conversationTokens:C.totalInputTokens+C.totalCacheReadTokens+C.totalCacheWriteTokens+C.totalOutputTokens,requestShare:i>0?C.totalRequests/i:0,costShare:c>0?C.totalCost/c:0,temporary:T}}),totalRequests:i,failedRequests:l,totalCost:c,unpricedRequests:f,conversationTokens:y,cacheRate:g+v>0?v/(g+v):0,maxRequests:h,maxCost:x,temporaryCount:m}}function e2(r){let i=0,l=0,c=0;for(let f of r)i+=f.calls,l+=f.totalTokensShare,c+=f.costShare;return r.map((f)=>({...f,errorRate:f.calls>0?f.errors/f.calls:0,callFraction:i>0?f.calls/i:0,tokenFraction:l>0?f.totalTokensShare/l:0,costFraction:c>0?f.costShare/c:0,avgResultChars:f.calls>0?f.resultChars/f.calls:0}))}function Ts(r){if(r.stopReason==="aborted")return"aborted";if(r.stopReason==="error"||r.errorMessage)return"failed";return"ok"}function Lx(r,i){if(r.length===0)return null;return r[Math.min(r.length-1,Math.max(0,Math.ceil(i*r.length)-1))]}function t2(r){let i=0,l=0,c=0,f=0,y=0,g=null,v=null,h=[],x=[];for(let m of r){let S=Ts(m);if(S==="failed")i++;else if(S==="aborted")l++;if(c+=m.usage.totalTokens,f+=m.usage.cost.total,px(m))y++;if(m.duration!==null)h.push(m.duration);if(m.ttft!==null)x.push(m.ttft);if(g===null||m.timestamp<g)g=m.timestamp;if(v===null||m.timestamp>v)v=m.timestamp}return h.sort((m,S)=>m-S),x.sort((m,S)=>m-S),{requests:r.length,failed:i,aborted:l,tokens:c,cost:f,unpriced:y,medianDuration:Lx(h,0.5),p95Duration:Lx(h,0.95),medianTtft:Lx(x,0.5),oldest:g,newest:v}}var KI=180,iN=/\b[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}\b/gi,uN=/\b(?:req|msg|call|toolu|chatcmpl|resp|run|gen)[-_][A-Za-z0-9_-]{6,}/g,dN=/\b[0-9a-f]{12,}\b/gi,cN=/(?<![\w.-])\d+(?:\.\d+)?/g,fN=/^[1-5]\d\d$/;function Cx(r){if(!r?.trim())return"Unknown error";let i=r.replace(/\s+/g," ").trim().replace(iN,"<id>").replace(uN,"<id>").replace(dN,"<hex>").replace(cN,(l)=>fN.test(l)?l:"N");return i.length>KI?`${i.slice(0,KI-1)}…`:i}function a2(r){let i=new Map;for(let l of r){let c=Cx(l.errorMessage),f=i.get(c);if(!f)f={signature:c,count:0,firstSeen:l.timestamp,lastSeen:l.timestamp,latest:l,models:[],byModel:new Map},i.set(c,f);if(f.count++,l.timestamp<f.firstSeen)f.firstSeen=l.timestamp;if(l.timestamp>f.lastSeen)f.lastSeen=l.timestamp,f.latest=l;let y=_a(l.model,l.provider),g=f.byModel.get(y);if(g)g.count++;else f.byModel.set(y,{model:l.model,provider:l.provider,count:1})}return[...i.values()].map(({byModel:l,...c})=>({...c,models:[...l.values()].sort((f,y)=>y.count-f.count||f.model.localeCompare(y.model))})).sort((l,c)=>c.count-l.count||c.lastSeen-l.lastSeen)}var qe=_(ae(),1),pN=[{value:"model",label:u("costs.by-model")},{value:"component",label:u("costs.by-component")}],mN=6,hN=86400000,Hf=[{key:"costInput",label:u("common.input"),color:"#5b8cff"},{key:"costOutput",label:u("common.output"),color:"var(--chart-secondary)"},{key:"costCacheRead",label:u("common.cache-read"),color:"var(--chart-primary)"},{key:"costCacheWrite",label:u("common.cache-write"),color:"#f5b54a"}],gN=new Intl.DateTimeFormat(void 0,{month:"short",day:"numeric",timeZone:"UTC"}),yN=new Intl.DateTimeFormat(void 0,{weekday:"short",month:"short",day:"numeric",year:"numeric",timeZone:"UTC"});function o2({active:r,range:i}){let l=Ft(["costs",i],({signal:C})=>WT(i,C),{enabled:r}),c=Jt(i),[f,y]=_f.useState("model"),[g,v]=Or(),h=_f.useMemo(()=>l.data?vN(l.data,i):null,[l.data,i]),x=_f.useMemo(()=>h?SN(h):[],[h]),m=(C)=>C.costSeries.length===0,S=qe.jsxDEV(mt,{title:u("costs.no-usage-in-range"),hint:u("costs.empty-hint")},void 0,!1,void 0,this);return qe.jsxDEV("div",{className:"page",children:[qe.jsxDEV(ma,{title:u("costs.title"),description:u("costs.description",{window:u(c.windowKey)})},void 0,!1,void 0,this),qe.jsxDEV(_e,{query:l,skeleton:qe.jsxDEV(to,{height:112,style:{borderRadius:12}},void 0,!1,void 0,this),isEmpty:m,empty:S,children:()=>h&&qe.jsxDEV(bN,{view:h,stale:l.stale},void 0,!1,void 0,this)},void 0,!1,void 0,this),qe.jsxDEV("div",{className:"grid grid-main-side",children:[qe.jsxDEV(ge,{index:1,title:u("costs.daily-estimate"),description:f==="model"?u("costs.daily-by-model"):u("costs.daily-by-component"),actions:qe.jsxDEV(Na,{size:"sm",options:pN,value:f,onChange:y,"aria-label":u("costs.split-by")},void 0,!1,void 0,this),stale:l.stale,children:qe.jsxDEV(_e,{query:l,skeleton:qe.jsxDEV(Et,{height:280},void 0,!1,void 0,this),isEmpty:m,empty:S,children:()=>{if(!h)return null;let C=f==="model"?h.modelSeries:h.componentSeries;return qe.jsxDEV("div",{className:"stack",style:{gap:12},children:[qe.jsxDEV(hr,{slots:h.buckets.length,tickLabel:(T)=>gN.format(h.buckets[T]),tooltipTitle:(T)=>yN.format(h.buckets[T]),series:C,hidden:g,height:280,format:(T)=>Ot(T,Number.isInteger(T)?0:2),formatTooltip:(T)=>Ot(T),emptyLabel:u("costs.no-priced-usage"),tooltipExtra:(T)=>h.unpricedPerDay[T]>0?qe.jsxDEV("div",{className:"chart-tooltip-row chart-tooltip-total",children:[qe.jsxDEV("span",{className:"chart-tooltip-label",children:u("costs.unpriced-requests")},void 0,!1,void 0,this),qe.jsxDEV("span",{className:"chart-tooltip-value",children:M(h.unpricedPerDay[T])},void 0,!1,void 0,this)]},void 0,!0,void 0,this):null},void 0,!1,void 0,this),qe.jsxDEV(ra,{items:C.map((T)=>({key:T.key,label:T.label,color:T.color,value:Ot(kN(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),qe.jsxDEV(ge,{index:2,title:u("costs.where-it-went"),description:u("costs.estimate-by-component"),stale:l.stale,children:qe.jsxDEV(_e,{query:l,skeleton:qe.jsxDEV(Et,{height:280},void 0,!1,void 0,this),isEmpty:m,empty:S,children:()=>h&&qe.jsxDEV(xN,{summary:h.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),qe.jsxDEV(ge,{index:3,title:u("costs.by-model"),description:u("costs.by-model-description"),stale:l.stale,flush:!0,children:qe.jsxDEV(_e,{query:l,skeleton:qe.jsxDEV(ka,{rows:8},void 0,!1,void 0,this),isEmpty:m,empty:S,children:()=>h&&qe.jsxDEV(Ut,{rows:h.summary.models,rowKey:(C)=>C.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 vN(r,i){let l=r.costSeries,c=WI(l),f=ag(c.models.map((x)=>({model:x.model,provider:x.provider,totalRequests:x.requests}))),y=new Map(c.models.map((x)=>[x.key,x])),g=eo(i,l.map((x)=>x.timestamp),hN),v=Vn(l,{buckets:g,key:(x)=>_a(x.model,x.provider),label:(x)=>y.get(x)?.model??x,value:(x)=>x.cost,limit:mN,colors:f}).map((x)=>({...x,values:x.values.map((m)=>m||null)})),h=new Set;for(let x of v){if(x.key==="__other__")continue;if(h.has(x.color))x.color=Ka.find((m)=>!h.has(m))??x.color;h.add(x.color)}return{summary:c,swatches:new Map(v.filter((x)=>x.key!=="__other__").map((x)=>[x.key,x.color])),buckets:g,dailyTotals:ia(l,g,(x)=>x.cost),unpricedPerDay:ia(l,g,(x)=>x.unpricedRequests),modelSeries:v,componentSeries:Hf.map((x)=>({key:x.key,label:x.label,color:x.color,values:ia(l,g,(m)=>m[x.key]).map((m)=>m||null)})),maxModelCost:c.models[0]?.cost??0}}function bN({view:r,stale:i}){let{summary:l}=r,c=l.requests-l.unpricedRequests,f=l.topModel;return qe.jsxDEV("div",{"data-stale":i,children:qe.jsxDEV(Sa,{min:180,children:[qe.jsxDEV(ue,{label:u("costs.api-equivalent-estimate"),title:u("costs.api-estimate-title"),value:ea(l.totalCost,l.unpricedRequests),hint:u("costs.requests-n",{count:M(l.requests)}),spark:r.dailyTotals,sparkColor:"var(--chart-secondary)"},void 0,!1,void 0,this),qe.jsxDEV(ue,{label:u("costs.average-per-day"),title:u("costs.average-per-day-title"),value:ea(l.avgDailyCost,l.unpricedRequests),hint:u(l.activeDays===1?"costs.active-days-one":"costs.active-days-n",{count:M(l.activeDays)})},void 0,!1,void 0,this),qe.jsxDEV(ue,{label:u("costs.top-model"),title:f?`${f.model} (${f.provider})`:void 0,value:f?f.model:"–",hint:f?u("costs.top-model-hint",{cost:Ot(f.cost),share:Ge(f.share)}):u("costs.nothing-priced-yet")},void 0,!1,void 0,this),qe.jsxDEV(ue,{label:u("costs.per-priced-request"),title:u("costs.per-priced-request-title"),value:c>0?r2(l.totalCost/c):"–",hint:u("costs.priced-n",{count:M(c)})},void 0,!1,void 0,this),qe.jsxDEV(ue,{label:u("costs.unpriced-requests"),title:u("costs.unpriced-title"),value:M(l.unpricedRequests),hint:l.unpricedRequests>0?u("costs.unpriced-hint"):u("costs.all-priced")},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)}function xN({summary:r}){return qe.jsxDEV("div",{className:"stack",style:{gap:14},children:[qe.jsxDEV(Gn,{height:10,segments:Hf.map((i)=>({key:i.key,label:i.label,value:r[i.key],color:i.color}))},void 0,!1,void 0,this),qe.jsxDEV("div",{className:"costs-components",children:[Hf.map((i)=>qe.jsxDEV("div",{className:"costs-component-row",children:[qe.jsxDEV("span",{className:"row",children:[qe.jsxDEV(Zr,{color:i.color},void 0,!1,void 0,this),i.label]},void 0,!0,void 0,this),qe.jsxDEV("span",{className:"num",children:Ot(r[i.key])},void 0,!1,void 0,this),qe.jsxDEV("span",{className:"num dim costs-component-share",children:r.totalCost>0?Ge(r[i.key]/r.totalCost):"–"},void 0,!1,void 0,this)]},i.key,!0,void 0,this)),qe.jsxDEV("div",{className:"costs-component-row costs-component-total",children:[qe.jsxDEV("span",{children:u("common.total")},void 0,!1,void 0,this),qe.jsxDEV("span",{className:"num",children:ea(r.totalCost,r.unpricedRequests)},void 0,!1,void 0,this),qe.jsxDEV("span",{className:"costs-component-share"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),r.unpricedRequests>0&&qe.jsxDEV("p",{className:"micro dim",children:u(r.unpricedRequests===1?"costs.unpriced-note-one":"costs.unpriced-note-n",{count:M(r.unpricedRequests)})},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function SN(r){let i=Hf.map((l)=>({key:l.key,header:l.label,align:"right",sort:(c)=>c[l.key],render:(c)=>qe.jsxDEV("span",{className:"num",children:Ot(c[l.key])},void 0,!1,void 0,this)}));return[{key:"model",header:u("common.model"),sort:(l)=>l.model,render:(l)=>qe.jsxDEV(lo,{lead:qe.jsxDEV(Zr,{color:r.swatches.get(l.key)??wo},void 0,!1,void 0,this),primary:qe.jsxDEV("span",{className:"mono",children:l.model},void 0,!1,void 0,this),secondary:l.provider},void 0,!1,void 0,this)},{key:"requests",header:u("common.requests"),align:"right",sort:(l)=>l.requests,render:(l)=>qe.jsxDEV("span",{className:"num",children:M(l.requests)},void 0,!1,void 0,this)},{key:"cost",header:u("costs.estimate"),title:u("costs.estimate-title"),align:"right",sort:(l)=>l.cost,render:(l)=>qe.jsxDEV(Ra,{value:l.cost,max:r.maxModelCost,display:ea(l.cost,l.unpricedRequests),color:r.swatches.get(l.key)??wo},void 0,!1,void 0,this)},{key:"share",header:u("common.share"),align:"right",sort:(l)=>l.share,render:(l)=>qe.jsxDEV("span",{className:"num muted",children:l.cost>0?Ge(l.share):"–"},void 0,!1,void 0,this)},{key:"split",header:u("costs.split"),title:"Input · output · cache read · cache write",width:150,render:(l)=>l.cost>0?qe.jsxDEV(Gn,{segments:Hf.map((c)=>({key:c.key,label:c.label,value:l[c.key],color:c.color}))},void 0,!1,void 0,this):qe.jsxDEV("span",{className:"dim",children:"–"},void 0,!1,void 0,this)},...i,{key:"perRequest",header:u("costs.per-request"),title:"Estimate ÷ priced requests",align:"right",sort:(l)=>l.requests>l.unpricedRequests?l.cost/(l.requests-l.unpricedRequests):-1,render:(l)=>qe.jsxDEV("span",{className:"num",children:l.requests>l.unpricedRequests?r2(l.cost/(l.requests-l.unpricedRequests)):"–"},void 0,!1,void 0,this)},{key:"unpriced",header:u("costs.unpriced"),title:"Requests with no public-equivalent price",align:"right",sort:(l)=>l.unpricedRequests,render:(l)=>l.unpricedRequests>0?qe.jsxDEV("span",{className:"num tone-warn",children:M(l.unpricedRequests)},void 0,!1,void 0,this):qe.jsxDEV("span",{className:"num dim",children:"–"},void 0,!1,void 0,this)}]}function r2(r){return r>0&&r<0.0001?"<$0.0001":Ot(r)}function kN(r){let i=0;for(let l of r)i+=l??0;return i}var Is=_(Qe(),1);var Ce=_(ae(),1),wx=[50,200,1000];function n2({active:r,range:i,onRequestClick:l}){let[c,f]=Is.useState(0),y=wx[c],g=Ft(["errors",i,y],({signal:H})=>ZT(i,y,H),{enabled:r}),[v,h]=Is.useState(null),[x,m]=Is.useState(null),[S,C]=Is.useState(""),T=Jt(i),w=Is.useMemo(()=>{let H=(g.data??[]).map((we)=>({row:we,signature:Cx(we.errorMessage)})),X=a2(g.data??[]),Le=new Map;for(let{row:we}of H){let re=_a(we.model,we.provider),xe=Le.get(re);if(xe)xe.count++;else Le.set(re,{model:we.model,provider:we.provider,count:1})}let me=[...Le.entries()].map(([we,re])=>({key:we,...re})).sort((we,re)=>re.count-we.count||we.model.localeCompare(re.model)),Oe=H.reduce((we,{row:re})=>!we||re.timestamp>we.timestamp?re:we,null);return{rows:H,groups:X,models:me,newest:Oe}},[g.data]),I=w.groups.some((H)=>H.signature===v)?v:null,R=w.models.some((H)=>H.key===x)?x:null,N=Is.useMemo(()=>{let H=S.trim().toLowerCase();return w.rows.filter((X)=>(I===null||X.signature===I)&&(R===null||_a(X.row.model,X.row.provider)===R)&&(H===""||X.row.model.toLowerCase().includes(H)||X.row.provider.toLowerCase().includes(H)||X.row.folder.toLowerCase().includes(H)||(X.row.errorMessage??"").toLowerCase().includes(H))).map((X)=>X.row)},[w.rows,I,R,S]),P=g.data?.length??0,V=!g.stale&&P<y,K=c+1<wx.length?wx[c+1]:null,de=g.data!==null&&!V?Ce.jsxDEV(Ce.Fragment,{children:[Ce.jsxDEV("span",{children:u("errors.footer",{count:M(P),window:u(T.windowKey)})},void 0,!1,void 0,this),K!==null&&Ce.jsxDEV("button",{type:"button",className:"btn","data-size":"sm",disabled:g.refreshing,onClick:()=>f(c+1),children:g.refreshing&&g.stale?u("errors.loading"):u("errors.load-latest",{count:M(K)})},void 0,!1,void 0,this)]},void 0,!0,void 0,this):void 0,W=w.groups[0]?.count??0,fe=Is.useMemo(()=>LN(W),[W]),ee=w.models.find((H)=>H.key===R);return Ce.jsxDEV("div",{className:"page",children:[Ce.jsxDEV(ma,{title:u("errors.title"),description:u("errors.description",{window:u(T.windowKey)})},void 0,!1,void 0,this),Ce.jsxDEV(_e,{query:g,skeleton:Ce.jsxDEV(to,{height:96,style:{borderRadius:12}},void 0,!1,void 0,this),children:()=>Ce.jsxDEV("div",{"data-stale":g.stale,children:Ce.jsxDEV(Sa,{min:170,children:[Ce.jsxDEV(ue,{label:u("errors.failures"),value:M(P),hint:V?u("errors.hint-in-window",{window:u(T.windowKey)}):u("errors.hint-latest-loaded",{count:M(P)})},void 0,!1,void 0,this),Ce.jsxDEV(ue,{label:u("errors.signatures"),title:u("errors.signatures-hint"),value:M(w.groups.length),hint:w.groups[0]?u("errors.signatures-top",{count:M(w.groups[0].count)}):void 0},void 0,!1,void 0,this),Ce.jsxDEV(ue,{label:u("errors.affected-models"),value:M(w.models.length),hint:w.models[0]?.model},void 0,!1,void 0,this),Ce.jsxDEV(ue,{label:u("errors.last-failure"),value:w.newest?La(w.newest.timestamp):"–",hint:w.newest?Bo(w.newest.timestamp):u("errors.none-in-window",{window:u(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),Ce.jsxDEV("div",{className:"grid grid-main-side",children:[Ce.jsxDEV(ge,{index:1,title:u("errors.error-signatures"),description:u("errors.signatures-card-description"),flush:!0,stale:g.stale,children:Ce.jsxDEV(_e,{query:g,skeleton:Ce.jsxDEV(ka,{rows:8},void 0,!1,void 0,this),isEmpty:(H)=>H.length===0,empty:Ce.jsxDEV(mt,{title:u("errors.empty-no-failures",{window:u(T.windowKey)}),hint:u("errors.empty-all-succeeded")},void 0,!1,void 0,this),children:()=>Ce.jsxDEV(Ut,{rows:w.groups,rowKey:(H)=>H.signature,columns:fe,onRowClick:(H)=>h(I===H.signature?null:H.signature),selectedKey:I,expanded:(H)=>H.signature===I?Ce.jsxDEV(CN,{group:H,onRequestClick:l},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),Ce.jsxDEV(ge,{index:2,title:u("errors.by-model"),description:u("errors.by-model-description"),stale:g.stale,children:Ce.jsxDEV(_e,{query:g,skeleton:Ce.jsxDEV(to,{height:180},void 0,!1,void 0,this),isEmpty:(H)=>H.length===0,empty:Ce.jsxDEV(mt,{title:u("errors.empty-no-affected-models")},void 0,!1,void 0,this),children:()=>Ce.jsxDEV(Ls,{items:w.models.slice(0,12).map((H)=>({key:H.key,label:Ce.jsxDEV("span",{className:"row",style:{gap:6,minWidth:0},children:[Ce.jsxDEV("span",{className:"mono truncate",children:H.model},void 0,!1,void 0,this),Ce.jsxDEV("span",{className:"dim truncate",children:H.provider},void 0,!1,void 0,this)]},void 0,!0,void 0,this),value:H.count,color:H.key===R?"var(--bad)":"color-mix(in srgb, var(--bad) 45%, transparent)"})),onSelect:(H)=>m(R===H?null:H)},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),Ce.jsxDEV(ge,{index:3,title:u("errors.failures"),description:g.data===null?u("errors.loading-failures"):u("errors.filtered-of-total",{shown:M(N.length),total:M(P)}),actions:Ce.jsxDEV(Ce.Fragment,{children:[I!==null&&Ce.jsxDEV("button",{type:"button",className:"btn errors-filter","data-size":"sm",onClick:()=>h(null),title:I,children:[Ce.jsxDEV("span",{className:"mono truncate",children:I},void 0,!1,void 0,this),Ce.jsxDEV(Lo,{size:12},void 0,!1,void 0,this)]},void 0,!0,void 0,this),ee&&Ce.jsxDEV("button",{type:"button",className:"btn errors-filter","data-size":"sm",onClick:()=>m(null),children:[Ce.jsxDEV("span",{className:"mono truncate",children:ee.model},void 0,!1,void 0,this),Ce.jsxDEV(Lo,{size:12},void 0,!1,void 0,this)]},void 0,!0,void 0,this),Ce.jsxDEV(Un,{value:S,onChange:C,placeholder:u("errors.search-placeholder")},void 0,!1,void 0,this)]},void 0,!0,void 0,this),flush:!0,stale:g.stale,footer:de,children:Ce.jsxDEV(_e,{query:g,skeleton:Ce.jsxDEV(ka,{rows:10},void 0,!1,void 0,this),isEmpty:(H)=>H.length===0,empty:Ce.jsxDEV(mt,{title:u("errors.empty-no-failures",{window:u(T.windowKey)})},void 0,!1,void 0,this),children:()=>Ce.jsxDEV(Ut,{rows:N,rowKey:(H)=>H.id??`${H.sessionFile}:${H.entryId}`,onRowClick:(H)=>H.id!==void 0&&l(H.id),columns:wN,initialSort:{key:"time",dir:"desc"},limit:50,dense:!0,empty:Ce.jsxDEV(mt,{title:u("errors.no-match"),hint:u("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 LN(r){return[{key:"signature",header:u("errors.signature"),wrap:!0,sort:(i)=>i.signature,render:(i)=>Ce.jsxDEV("span",{className:"errors-signature",title:i.latest.errorMessage??void 0,children:i.signature},void 0,!1,void 0,this)},{key:"models",header:u("common.models"),sort:(i)=>i.models.length,render:(i)=>Ce.jsxDEV(lo,{primary:Ce.jsxDEV("span",{className:"mono",children:i.models[0]?.model},void 0,!1,void 0,this),secondary:i.models.length>1?u("errors.more-models",{count:M(i.models.length-1)}):i.models[0]?.provider},void 0,!1,void 0,this)},{key:"last",header:u("errors.last-seen"),sort:(i)=>i.lastSeen,render:(i)=>Ce.jsxDEV("span",{className:"muted",title:Bo(i.lastSeen),children:La(i.lastSeen)},void 0,!1,void 0,this)},{key:"count",header:u("errors.failures"),align:"right",width:120,sort:(i)=>i.count,render:(i)=>Ce.jsxDEV(Ra,{value:i.count,max:r,display:M(i.count),color:"var(--bad)"},void 0,!1,void 0,this)}]}function CN({group:r,onRequestClick:i}){let l=r.latest.id;return Ce.jsxDEV("div",{className:"errors-detail",children:[Ce.jsxDEV("pre",{className:"code-block errors-detail-message",children:r.latest.errorMessage??u("errors.unknown-error")},void 0,!1,void 0,this),Ce.jsxDEV("div",{className:"errors-detail-meta",children:[Ce.jsxDEV("span",{className:"muted",children:u("errors.group-meta",{count:M(r.count),first:Bo(r.firstSeen),last:Bo(r.lastSeen)})},void 0,!1,void 0,this),l!==void 0&&Ce.jsxDEV("button",{type:"button",className:"btn","data-size":"sm",onClick:()=>i(l),children:[u("errors.open-latest")," ",Ce.jsxDEV(of,{size:13},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),Ce.jsxDEV("div",{className:"errors-detail-models",children:r.models.map((c)=>Ce.jsxDEV("span",{className:"badge","data-mono":"true",children:[c.model," ",Ce.jsxDEV("span",{className:"dim",children:c.provider},void 0,!1,void 0,this)," ",Ce.jsxDEV("span",{className:"num",children:le(c.count)},void 0,!1,void 0,this)]},_a(c.model,c.provider),!0,void 0,this))},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}var wN=[{key:"time",header:u("errors.when"),width:120,sort:(r)=>r.timestamp,render:(r)=>Ce.jsxDEV("span",{className:"muted",title:Bo(r.timestamp),children:La(r.timestamp)},void 0,!1,void 0,this)},{key:"model",header:u("common.model"),sort:(r)=>r.model,render:(r)=>Ce.jsxDEV(lo,{primary:Ce.jsxDEV("span",{className:"mono",children:r.model},void 0,!1,void 0,this),secondary:r.provider},void 0,!1,void 0,this)},{key:"error",header:u("common.error"),sort:(r)=>r.errorMessage??"",render:(r)=>Ce.jsxDEV("span",{className:"errors-message",title:r.errorMessage??void 0,children:r.errorMessage??u("errors.unknown-error")},void 0,!1,void 0,this)},{key:"project",header:u("common.project"),sort:(r)=>r.folder,render:(r)=>Ce.jsxDEV("span",{className:"mono muted",title:r.folder,children:qr(r.folder)},void 0,!1,void 0,this)},{key:"tokens",header:u("common.tokens"),align:"right",sort:(r)=>r.usage.totalTokens,render:(r)=>Ce.jsxDEV("span",{className:"num",children:M(r.usage.totalTokens)},void 0,!1,void 0,this)},{key:"cost",header:u("common.cost"),title:u("errors.cost-hint"),align:"right",sort:(r)=>r.usage.cost.total,render:(r)=>Ce.jsxDEV("span",{className:"num",children:ql(r,4)},void 0,!1,void 0,this)}];var Rt=_(Qe(),1);var z=_(ae(),1),TN=1000,rg=50,Ix=0.5,Ff="*";function l2({active:r,range:i}){let[l,c]=Rt.useState(!1),f=Ft(["frustration",i],({signal:x})=>oI(i,x),{enabled:r,pollMs:l?TN:void 0}),y=Jt(i),g=f.data?.job.state;Rt.useEffect(()=>{if(g!==void 0)c(g==="running")},[g]);let{refetch:v}=f,h=Rt.useCallback(()=>{c(!0),v()},[v]);return z.jsxDEV("div",{className:"page",children:[z.jsxDEV(ma,{title:u("frustration.title"),description:u("frustration.description",{window:u(y.windowKey)})},void 0,!1,void 0,this),z.jsxDEV(_e,{query:f,skeleton:z.jsxDEV(Et,{height:96},void 0,!1,void 0,this),children:(x)=>z.jsxDEV("div",{"data-stale":f.stale,children:z.jsxDEV(IN,{overall:x.overall},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this),z.jsxDEV(_e,{query:f,skeleton:z.jsxDEV(Et,{height:120},void 0,!1,void 0,this),children:(x)=>z.jsxDEV(RN,{active:r,range:i,judgeAvailable:x.judgeAvailable,job:x.job,onRunStarted:h,onRunChanged:v},void 0,!1,void 0,this)},void 0,!1,void 0,this),z.jsxDEV(_e,{query:f,skeleton:z.jsxDEV(ge,{index:2,title:u("frustration.by-model"),children:[z.jsxDEV(Et,{height:340},void 0,!1,void 0,this),z.jsxDEV(ka,{rows:6},void 0,!1,void 0,this)]},void 0,!0,void 0,this),children:(x)=>z.jsxDEV(zN,{models:x.byModel,stale:f.stale},void 0,!1,void 0,this)},void 0,!1,void 0,this),z.jsxDEV(_e,{query:f,skeleton:z.jsxDEV(Et,{height:96},void 0,!1,void 0,this),children:(x)=>z.jsxDEV("div",{className:"frustration-model-summary","data-stale":f.stale,children:z.jsxDEV(HN,{overall:x.modelSide.overall,window:u(y.windowKey)},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this),z.jsxDEV(_e,{query:f,skeleton:z.jsxDEV(ge,{index:4,title:u("frustration.model-by-model"),children:[z.jsxDEV(Et,{height:300},void 0,!1,void 0,this),z.jsxDEV(ka,{rows:5},void 0,!1,void 0,this)]},void 0,!0,void 0,this),children:(x)=>z.jsxDEV(FN,{models:x.modelSide.byModel,series:x.modelSide.series,range:i,stale:f.stale},void 0,!1,void 0,this)},void 0,!1,void 0,this),z.jsxDEV(_e,{query:f,skeleton:z.jsxDEV(ge,{index:7,title:u("frustration.model-sessions"),children:z.jsxDEV(ka,{rows:5},void 0,!1,void 0,this)},void 0,!1,void 0,this),children:(x)=>z.jsxDEV(VN,{sessions:x.modelSide.bySession,stale:f.stale},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function Ma(r,i){return i>0?Ge(r/i):"–"}function Tx(r){return r instanceof Error?r.message:String(r)}function i2(r){let i=Math.max(0,Math.floor(r/1000)),l=Math.floor(i/60),c=i%60;return l>0?`${l}m ${String(c).padStart(2,"0")}s`:`${c}s`}function IN({overall:r}){let i=r.messages-r.judged,l=r.unscored>0?u("frustration.coverage-unscored",{count:M(r.unscored)}):"";return z.jsxDEV(z.Fragment,{children:[z.jsxDEV(Sa,{min:170,children:[z.jsxDEV(ue,{label:u("frustration.user-messages"),title:u("frustration.user-messages-title"),value:M(r.messages)},void 0,!1,void 0,this),z.jsxDEV(ue,{label:u("frustration.judge-coverage"),title:u("frustration.judge-coverage-title"),value:Ma(r.judged,r.messages),hint:`${u("frustration.coverage-hint",{judged:M(r.judged),regex:M(i)})}${l}`},void 0,!1,void 0,this),z.jsxDEV(ue,{label:u("frustration.annoyed"),title:u("frustration.annoyed-title"),value:Ma(r.annoyed,r.messages),hint:u("frustration.messages-n",{count:M(r.annoyed)})},void 0,!1,void 0,this),z.jsxDEV(ue,{label:u("frustration.at-assistant"),title:u("frustration.at-assistant-title"),value:Ma(r.atAssistant,r.messages),hint:u("frustration.messages-n",{count:M(r.atAssistant)})},void 0,!1,void 0,this),z.jsxDEV(ue,{label:u("frustration.angry"),title:u("frustration.angry-title"),value:Ma(r.angry,r.messages),hint:u("frustration.messages-n",{count:M(r.angry)})},void 0,!1,void 0,this)]},void 0,!0,void 0,this),r.unscored>0&&z.jsxDEV("p",{className:"micro dim",children:u("frustration.unscored-line",{count:M(r.unscored)})},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}var s2="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 RN({active:r,range:i,judgeAvailable:l,job:c,onRunStarted:f,onRunChanged:y}){let[g,v]=Rt.useState(!1),[h,x]=Rt.useState({status:"loading"}),[m,S]=Rt.useState(!1),[C,T]=Rt.useState(null),[w,I]=Rt.useState(!1),[R,N]=Rt.useState(null),P=Rt.useRef(null),V=c.state==="running",K=Rt.useCallback(()=>{P.current?.abort(),P.current=null,v(!1)},[]);Rt.useEffect(()=>{if(!r)K()},[r,K]),Rt.useEffect(()=>()=>P.current?.abort(),[]);let de=()=>{P.current?.abort();let X=new AbortController;P.current=X;let Le=i;x({status:"loading"}),T(null),N(null),v(!0),rI(Le,X.signal).then((me)=>{if(!X.signal.aborted)x({status:"ready",estimate:me,range:Le})},(me)=>{if(!X.signal.aborted)x({status:"error",message:Tx(me)})})},W=async()=>{if(h.status!=="ready")return;S(!0),T(null);try{await nI(h.range),K(),f()}catch(X){T(Tx(X))}finally{S(!1)}},fe=async()=>{I(!0),N(null);try{await sI(),y()}catch(X){N(Tx(X))}finally{I(!1)}},ee=h.status==="ready"?h.estimate:null,H=h.status==="loading"?{label:"Proceed",onClick:W,disabled:!0}:ee?.available?{label:m?"Starting…":"Proceed",onClick:W,disabled:m||ee.messages===0}:void 0;return z.jsxDEV(ge,{index:1,title:z.jsxDEV(z.Fragment,{children:[u("frustration.judge-panel")," ",z.jsxDEV(MN,{job:c,judgeAvailable:l},void 0,!1,void 0,this)]},void 0,!0,void 0,this),description:u("frustration.judge-description"),actions:z.jsxDEV("button",{type:"button",className:"btn","data-variant":"accent","data-size":"sm",onClick:de,disabled:!l||V,title:!l?s2:V?u("frustration.judge-running"):u("frustration.quote-title"),children:[z.jsxDEV(On,{size:13},void 0,!1,void 0,this)," ",u("frustration.classify")]},void 0,!0,void 0,this),children:[z.jsxDEV("div",{className:"stack frustration-judge",children:[V?z.jsxDEV(DN,{job:c,cancelling:w,onCancel:fe},void 0,!1,void 0,this):z.jsxDEV(EN,{job:c},void 0,!1,void 0,this),!l&&z.jsxDEV("p",{className:"micro dim",children:s2},void 0,!1,void 0,this),R&&z.jsxDEV("p",{className:"micro tone-bad",role:"alert",children:R},void 0,!1,void 0,this)]},void 0,!0,void 0,this),z.jsxDEV(CI,{open:g,title:u("frustration.classify"),onClose:K,primaryAction:H,children:[z.jsxDEV(AN,{estimate:h},void 0,!1,void 0,this),C&&z.jsxDEV("p",{className:"micro tone-bad",role:"alert",children:C},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)}function MN({job:r,judgeAvailable:i}){switch(r.state){case"running":return z.jsxDEV(yt,{tone:"ok",children:[z.jsxDEV(Pn,{tone:"live",pulse:!0},void 0,!1,void 0,this)," ",u("frustration.running")]},void 0,!0,void 0,this);case"done":return z.jsxDEV(yt,{tone:"ok",children:u("frustration.last-run-done")},void 0,!1,void 0,this);case"cancelled":return z.jsxDEV(yt,{tone:"warn",children:u("frustration.last-run-cancelled")},void 0,!1,void 0,this);case"failed":return z.jsxDEV(yt,{tone:"bad",children:u("frustration.last-run-failed")},void 0,!1,void 0,this);case"idle":return z.jsxDEV(yt,{children:i?u("frustration.not-run-yet"):u("frustration.regex-only")},void 0,!1,void 0,this)}}function AN({estimate:r}){if(r.status==="loading")return z.jsxDEV("p",{className:"muted",children:u("frustration.estimating")},void 0,!1,void 0,this);if(r.status==="error")return z.jsxDEV("p",{className:"tone-bad",children:r.message},void 0,!1,void 0,this);let i=r.estimate;if(!i.available)return z.jsxDEV("p",{children:i.reason},void 0,!1,void 0,this);if(i.messages===0)return z.jsxDEV("p",{children:u("frustration.all-judged")},void 0,!1,void 0,this);return z.jsxDEV(z.Fragment,{children:[z.jsxDEV("div",{className:"frustration-quote",children:[z.jsxDEV("span",{className:"dim micro",children:u("frustration.estimated-cost")},void 0,!1,void 0,this),z.jsxDEV("span",{className:"num frustration-quote-value",children:["≈ ",Ot(i.cost)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),z.jsxDEV(Oo,{items:[{key:"messages",label:u("frustration.unjudged-messages"),value:M(i.messages)},{key:"chars",label:u("frustration.prose-chars"),value:M(i.chars)},{key:"tokens",label:u("frustration.input-tokens"),value:M(i.inputTokens)},{key:"judge",label:u("frustration.judge-model"),value:i.judge}]},void 0,!1,void 0,this),z.jsxDEV("p",{className:"micro dim",children:u("frustration.estimate-note")},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function DN({job:r,cancelling:i,onCancel:l}){let c=r.done+r.failed,f=r.total>0?Math.min(1,c/r.total):0;return z.jsxDEV("div",{className:"stack frustration-progress",children:[z.jsxDEV("div",{className:"row frustration-progress-head",children:[z.jsxDEV("span",{className:"num",children:[M(r.done),"/",M(r.total)," judged"]},void 0,!0,void 0,this),z.jsxDEV("span",{className:"num dim",children:Ge(f)},void 0,!1,void 0,this),z.jsxDEV("span",{className:"frustration-spacer"},void 0,!1,void 0,this),z.jsxDEV("button",{type:"button",className:"btn","data-variant":"danger","data-size":"sm",onClick:l,disabled:i,children:i?u("frustration.cancelling"):u("frustration.cancel-run")},void 0,!1,void 0,this)]},void 0,!0,void 0,this),z.jsxDEV("div",{className:"meter frustration-progress-track",role:"progressbar","aria-valuemin":0,"aria-valuemax":r.total,"aria-valuenow":c,children:z.jsxDEV("div",{className:"meter-fill frustration-progress-fill",style:{width:`${f*100}%`}},void 0,!1,void 0,this)},void 0,!1,void 0,this),z.jsxDEV("div",{className:"row micro muted frustration-progress-meta",children:[z.jsxDEV("span",{className:r.failed>0?"tone-bad":void 0,children:u("frustration.failed-n",{count:M(r.failed)})},void 0,!1,void 0,this),z.jsxDEV("span",{children:[u("frustration.cost-so-far")," ",z.jsxDEV("span",{className:"num",children:Ot(r.cost)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),r.judge&&z.jsxDEV("span",{className:"mono",children:r.judge},void 0,!1,void 0,this),r.startedAt!==null&&z.jsxDEV("span",{children:u("frustration.elapsed",{time:i2(Date.now()-r.startedAt)})},void 0,!1,void 0,this),r.startedAt!==null&&r.done>0&&z.jsxDEV("span",{className:"num",children:[(r.done/Math.max(1,(Date.now()-r.startedAt)/1000)).toFixed(0),"/s"]},void 0,!0,void 0,this),r.concurrency>0&&z.jsxDEV("span",{className:"num",children:u("frustration.in-flight",{count:M(r.concurrency)})},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)}function EN({job:r}){let i=u("frustration.messages-progress",{done:M(r.done),total:M(r.total)}),l=r.failed>0?u("frustration.failed-suffix",{count:M(r.failed)}):"",c=r.judge?u("frustration.judge-with",{judge:r.judge}):"",f=r.startedAt!==null&&r.finishedAt!==null?u("frustration.in-time",{time:i2(r.finishedAt-r.startedAt)}):"";switch(r.state){case"idle":return z.jsxDEV("p",{className:"muted",children:u("frustration.no-run-yet")},void 0,!1,void 0,this);case"running":return null;case"done":return z.jsxDEV("p",{className:"muted",children:u("frustration.run-done-line",{progress:i,failed:l,judge:c,elapsed:f,cost:Ot(r.cost)})},void 0,!1,void 0,this);case"cancelled":return z.jsxDEV("p",{className:"muted",children:u("frustration.run-cancelled-line",{progress:i,failed:l,cost:Ot(r.cost)})},void 0,!1,void 0,this);case"failed":return z.jsxDEV("p",{className:"muted",children:u("frustration.run-failed-line",{progress:i,failed:l,error:r.error??u("frustration.unknown-error"),cost:Ot(r.cost)})},void 0,!1,void 0,this)}}function Ui(r){return`${r.modelClass}/${r.family??"unclassified"}`}function ld(r){return r.messages>0&&r.judged/r.messages<Ix}function NN(r){let i=2166136261;for(let l=0;l<r.length;l++)i^=r.charCodeAt(l),i=Math.imul(i,16777619);return i>>>0}function u2(r){let i=[...new Set(r.map(Ui))].sort(),l=new Set,c=new Map;for(let f of i){let y=NN(f)%Ka.length;for(let g=0;g<Ka.length&&l.has(y);g++)y=(y+1)%Ka.length;l.add(y),c.set(f,Ka[y])}return c}function qN(r,i){if(i==="angry")return`color-mix(in srgb, ${r} 55%, black)`;if(i==="other")return`color-mix(in srgb, ${r} 32%, transparent)`;return r}var ON=[{key:"angry",label:"Angry at assistant"},{key:"assistant",label:"At assistant, not angry"},{key:"other",label:"Annoyed at other targets"}];function BN(r,i){if(i==="angry")return r.angry;if(i==="assistant")return r.atAssistant-r.angry;return r.annoyed-r.atAssistant}function Gf(r,i){return i>0?r/i*100:0}function zN({models:r,stale:i}){let[l,c]=Rt.useState(null),[f,y]=Or(),[g,v]=Rt.useState(!1),[h,x]=Rt.useState(!1),m=Rt.useMemo(()=>u2(r),[r]),S=Rt.useMemo(()=>{let W=new Map;for(let fe of r)W.set(fe.modelClass,(W.get(fe.modelClass)??0)+fe.messages);return W},[r]),C=Rt.useMemo(()=>{let W=null,fe=-1;for(let[ee,H]of S)if(H>fe)W=ee,fe=H;return W??Ff},[S]),T=l!==null&&(l===Ff||S.has(l))?l:C,w=Rt.useMemo(()=>[{value:Ff,label:"All",title:"Every model class"},...[...S].map(([W,fe])=>({value:W,label:W,title:`${M(fe)} messages`}))],[S]),I=Rt.useMemo(()=>T===Ff?r:r.filter((W)=>W.modelClass===T),[r,T]),R=Rt.useMemo(()=>{let W=new Map;for(let fe of I){let ee=Ui(fe),H=W.get(ee);if(H){H.messages+=fe.messages;continue}let X=fe.family??"unclassified";W.set(ee,{key:ee,label:T===Ff?`${fe.modelClass} · ${X}`:X,messages:fe.messages})}return[...W.values()]},[I,T]),N=Rt.useMemo(()=>I.filter((W)=>!f.has(Ui(W))),[I,f]),P=N.filter((W)=>W.messages<rg).length,V=N.filter(ld).length,K=Rt.useMemo(()=>N.filter((W)=>(g||W.messages>=rg)&&!(h&&ld(W))),[N,g,h]);if(r.length===0)return z.jsxDEV(ge,{index:2,title:u("frustration.by-model"),stale:i,children:z.jsxDEV(mt,{title:u("frustration.no-messages"),hint:u("frustration.try-longer-range")},void 0,!1,void 0,this)},void 0,!1,void 0,this);let de=K.some(ld);return z.jsxDEV(z.Fragment,{children:[z.jsxDEV(ge,{index:2,title:u("frustration.by-model"),description:u("frustration.by-model-description"),stale:i,children:z.jsxDEV("div",{className:"stack frustration-chart-body",children:[z.jsxDEV("div",{className:"frustration-classes",children:z.jsxDEV(Na,{size:"sm","aria-label":u("frustration.model-class"),options:w,value:T,onChange:c},void 0,!1,void 0,this)},void 0,!1,void 0,this),z.jsxDEV("div",{className:"row frustration-filters",children:[z.jsxDEV(ra,{items:R.map((W)=>({key:W.key,label:W.label,color:m.get(W.key)??Ka[0],value:M(W.messages)})),hidden:f,onToggle:y},void 0,!1,void 0,this),z.jsxDEV("span",{className:"frustration-spacer"},void 0,!1,void 0,this),z.jsxDEV("label",{className:"check",title:u("frustration.small-models-title",{count:rg}),children:[z.jsxDEV("input",{type:"checkbox",checked:g,onChange:(W)=>v(W.target.checked)},void 0,!1,void 0,this),u("frustration.include-small",{count:rg}),P>0?` (${P})`:""]},void 0,!0,void 0,this),z.jsxDEV("label",{className:"check",title:u("frustration.hide-regex-title",{share:Ix*100}),children:[z.jsxDEV("input",{type:"checkbox",checked:h,onChange:(W)=>x(W.target.checked)},void 0,!1,void 0,this),"Hide mostly regex",V>0?` (${V})`:""]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),z.jsxDEV(PN,{hasRegexRows:de},void 0,!1,void 0,this),z.jsxDEV(UN,{rows:K,familyColors:m},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this),z.jsxDEV(_N,{rows:K,familyColors:m,stale:i},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function PN({hasRegexRows:r}){return z.jsxDEV("div",{className:"legend frustration-key",children:[z.jsxDEV("span",{className:"legend-item",children:[z.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),z.jsxDEV("span",{className:"legend-item",children:[z.jsxDEV("span",{className:"swatch frustration-key-swatch","data-variant":"assistant"},void 0,!1,void 0,this),"At assistant"]},void 0,!0,void 0,this),z.jsxDEV("span",{className:"legend-item",children:[z.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),z.jsxDEV("span",{className:"legend-item",children:[z.jsxDEV("span",{className:"frustration-key-line"},void 0,!1,void 0,this),u("frustration.legend-trend")]},void 0,!0,void 0,this),z.jsxDEV("span",{className:"legend-item frustration-key-wide",title:u("frustration.hatch-title",{share:Ix*100}),children:[z.jsxDEV("span",{className:"swatch frustration-key-swatch","data-variant":"hatch"},void 0,!1,void 0,this),r?u("frustration.legend-hatched-run"):u("frustration.legend-hatched")]},void 0,!0,void 0,this),z.jsxDEV("span",{className:"legend-item dim",children:u("frustration.legend-hue")},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function UN({rows:r,familyColors:i}){let l=Rt.useMemo(()=>{let c=new Map;r.forEach((y,g)=>{let v=Ui(y),h=ld(y),x=`${v}|${h?"regex":"judged"}`,m=c.get(x);if(m)m.slots.push(g);else c.set(x,{family:v,regex:h,slots:[g]})});let f=[];for(let y of ON)for(let[g,v]of c){let h=r.map(()=>null);for(let x of v.slots)h[x]=Gf(BN(r[x],y.key),r[x].messages);f.push({key:`${y.key}|${g}`,label:y.label,color:qN(i.get(v.family)??Ka[0],y.key),values:h,pattern:v.regex?"hatch":void 0})}return f.push({key:"trend",label:"At assistant (total)",color:"var(--ink-1)",values:r.map((y)=>Gf(y.atAssistant,y.messages)),kind:"line",tooltip:!1}),f},[r,i]);if(r.length===0)return z.jsxDEV("div",{className:"frustration-chart-empty",children:z.jsxDEV(mt,{title:u("frustration.no-model-match")},void 0,!1,void 0,this)},void 0,!1,void 0,this);return z.jsxDEV(hr,{slots:r.length,tickLabel:(c)=>r[c].label,series:l,height:340,format:(c)=>`${c}%`,formatTooltip:(c)=>`${c.toFixed(1)}%`,showTotal:!1,emptyLabel:"No frustrated messages for these models",tooltipExtra:(c)=>{let f=r[c];return z.jsxDEV("div",{className:"frustration-tooltip-extra",children:[z.jsxDEV("div",{className:"chart-tooltip-row chart-tooltip-total",children:[z.jsxDEV("span",{className:"chart-tooltip-label",children:u("frustration.legend-annoyed-any")},void 0,!1,void 0,this),z.jsxDEV("span",{className:"chart-tooltip-value",children:Ma(f.annoyed,f.messages)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),z.jsxDEV("div",{className:"micro dim",children:[M(f.messages)," messages · judged ",M(f.judged)," (",Ma(f.judged,f.messages),")",ld(f)?u("frustration.row-mostly-regex"):""]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)}},void 0,!1,void 0,this)}function _N({rows:r,familyColors:i,stale:l}){let c=Rt.useMemo(()=>[{key:"model",header:u("common.model"),sort:(f)=>f.label,render:(f)=>z.jsxDEV("span",{className:"row",title:f.key,children:[z.jsxDEV("span",{className:"swatch",style:{background:i.get(Ui(f))??Ka[0]}},void 0,!1,void 0,this),z.jsxDEV("span",{className:"cell-primary",children:f.label},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},{key:"ids",header:u("frustration.column-model-ids"),wrap:!0,render:(f)=>z.jsxDEV("span",{className:"mono micro dim",children:f.models.join(", ")},void 0,!1,void 0,this)},{key:"messages",header:u("frustration.column-messages"),align:"right",sort:(f)=>f.messages,render:(f)=>z.jsxDEV("span",{className:"num",children:M(f.messages)},void 0,!1,void 0,this)},{key:"judged",header:u("frustration.column-judged"),align:"right",sort:(f)=>f.messages>0?f.judged/f.messages:0,render:(f)=>ld(f)?z.jsxDEV("span",{className:"row frustration-judged",title:u("frustration.mostly-regex"),children:[z.jsxDEV(yt,{tone:"warn",children:u("frustration.regex-badge")},void 0,!1,void 0,this),z.jsxDEV("span",{className:"num dim",children:Ma(f.judged,f.messages)},void 0,!1,void 0,this)]},void 0,!0,void 0,this):z.jsxDEV("span",{className:"num",children:Ma(f.judged,f.messages)},void 0,!1,void 0,this)},{key:"annoyed",header:u("frustration.annoyed"),align:"right",sort:(f)=>Gf(f.annoyed,f.messages),render:(f)=>z.jsxDEV("span",{className:"num",title:u("frustration.messages-n",{count:M(f.annoyed)}),children:Ma(f.annoyed,f.messages)},void 0,!1,void 0,this)},{key:"atAssistant",header:u("frustration.at-assistant"),align:"right",sort:(f)=>Gf(f.atAssistant,f.messages),render:(f)=>z.jsxDEV("span",{className:"num",title:u("frustration.messages-n",{count:M(f.atAssistant)}),children:Ma(f.atAssistant,f.messages)},void 0,!1,void 0,this)},{key:"angry",header:u("frustration.angry"),align:"right",sort:(f)=>Gf(f.angry,f.messages),render:(f)=>z.jsxDEV("span",{className:f.angry>0?"num tone-bad":"num",title:u("frustration.messages-n",{count:M(f.angry)}),children:Ma(f.angry,f.messages)},void 0,!1,void 0,this)}],[i]);return z.jsxDEV(ge,{index:3,title:u("frustration.model-versions"),description:u("frustration.table-description"),flush:!0,stale:l,children:z.jsxDEV(Ut,{rows:r,rowKey:(f)=>f.key,columns:c,dense:!0,empty:z.jsxDEV(mt,{title:u("frustration.no-model-match")},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this)}function HN({overall:r,window:i}){let l=r.messages>0?(r.collapse/r.messages).toFixed(2):"–";return z.jsxDEV(z.Fragment,{children:[z.jsxDEV("div",{className:"card-titles",children:[z.jsxDEV("h2",{className:"page-title",children:u("frustration.model-side-title")},void 0,!1,void 0,this),z.jsxDEV("p",{className:"page-description",children:u("frustration.model-side-description",{window:i})},void 0,!1,void 0,this)]},void 0,!0,void 0,this),z.jsxDEV("div",{className:"frustration-model-notes",children:[z.jsxDEV(Sa,{min:170,children:[z.jsxDEV(ue,{label:u("frustration.model-turns"),title:u("frustration.model-turns-title"),value:M(r.messages)},void 0,!1,void 0,this),z.jsxDEV(ue,{label:u("frustration.model-breakdown"),title:u("frustration.model-breakdown-title"),value:Ma(r.breakdown,r.messages),hint:u("frustration.turns-n",{count:M(r.breakdown)})},void 0,!1,void 0,this),z.jsxDEV(ue,{label:u("frustration.model-mean"),title:u("frustration.model-mean-title"),value:l,hint:u("frustration.model-hint-mean",{value:l})},void 0,!1,void 0,this),z.jsxDEV(ue,{label:u("frustration.model-self-blame"),title:u("frustration.model-self-blame-title"),value:Ma(r.blamed,r.messages)},void 0,!1,void 0,this),z.jsxDEV(ue,{label:u("frustration.model-hedge"),title:u("frustration.model-hedge-title"),value:Ma(r.hedged,r.messages)},void 0,!1,void 0,this),z.jsxDEV(ue,{label:u("frustration.model-spiral"),title:u("frustration.model-spiral-title"),value:Ma(r.spiraled,r.messages)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),r.unscored>0&&z.jsxDEV("p",{className:"micro dim",children:u("frustration.model-unscored-line",{count:M(r.unscored)})},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)}function an(r,i){return i>0?r/i*100:0}function FN({models:r,series:i,range:l,stale:c}){let f=Jt(l),y=Rt.useMemo(()=>u2(r),[r]),g=Rt.useMemo(()=>eo(l,i.map((m)=>m.timestamp),f.bucketMs),[i,l,f.bucketMs]),v=Rt.useMemo(()=>new Map(i.map((m)=>[m.timestamp,m])),[i]),h=Rt.useMemo(()=>[{key:"breakdown",label:u("frustration.model-legend-breakdown"),color:"var(--chart-primary)",values:g.map((m)=>{let S=v.get(m);return S&&S.messages>0?an(S.breakdown,S.messages):null})}],[g,v]),x=Rt.useMemo(()=>[...r].sort((m,S)=>an(S.breakdown,S.messages)-an(m.breakdown,m.messages)||S.messages-m.messages).slice(0,12),[r]);if(r.length===0)return z.jsxDEV(ge,{index:4,title:u("frustration.model-by-model"),stale:c,children:z.jsxDEV(mt,{title:u("frustration.model-no-turns"),hint:u("frustration.model-try-longer-range")},void 0,!1,void 0,this)},void 0,!1,void 0,this);return z.jsxDEV(z.Fragment,{children:[z.jsxDEV(ge,{index:4,title:u("frustration.model-by-model"),description:u("frustration.model-by-model-description"),stale:c,children:z.jsxDEV(Ls,{max:100,items:x.map((m)=>({key:m.key,label:m.label,value:an(m.breakdown,m.messages),display:Ma(m.breakdown,m.messages),color:y.get(Ui(m))??Ka[0]}))},void 0,!1,void 0,this)},void 0,!1,void 0,this),z.jsxDEV(ge,{index:5,title:u("frustration.model-over-time"),description:u("frustration.model-over-time-description"),actions:z.jsxDEV(ra,{items:h.map((m)=>({key:m.key,label:m.label,color:m.color}))},void 0,!1,void 0,this),stale:c,children:z.jsxDEV(zo,{buckets:g,bucketMs:f.bucketMs,series:h,height:260,yMax:100,format:(m)=>`${m}%`,formatTooltip:(m)=>`${m.toFixed(1)}%`,emptyLabel:u("frustration.model-no-turns")},void 0,!1,void 0,this)},void 0,!1,void 0,this),z.jsxDEV(GN,{rows:r,familyColors:y,stale:c},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function GN({rows:r,familyColors:i,stale:l}){let c=Rt.useMemo(()=>[{key:"model",header:u("common.model"),sort:(f)=>f.label,render:(f)=>z.jsxDEV("span",{className:"row",title:f.key,children:[z.jsxDEV("span",{className:"swatch",style:{background:i.get(Ui(f))??Ka[0]}},void 0,!1,void 0,this),z.jsxDEV("span",{className:"cell-primary",children:f.label},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},{key:"ids",header:u("frustration.column-model-ids"),wrap:!0,render:(f)=>z.jsxDEV("span",{className:"mono micro dim",children:f.models.join(", ")},void 0,!1,void 0,this)},{key:"turns",header:u("frustration.column-turns"),align:"right",sort:(f)=>f.messages,render:(f)=>z.jsxDEV("span",{className:"num",children:M(f.messages)},void 0,!1,void 0,this)},{key:"selfBlame",header:u("frustration.model-self-blame"),align:"right",sort:(f)=>an(f.blamed,f.messages),render:(f)=>z.jsxDEV("span",{className:"num",title:u("frustration.turns-n",{count:M(f.blamed)}),children:Ma(f.blamed,f.messages)},void 0,!1,void 0,this)},{key:"restatement",header:u("frustration.model-restatement"),title:u("frustration.model-restatement-title"),align:"right",sort:(f)=>an(f.restated,f.messages),render:(f)=>z.jsxDEV("span",{className:"num",title:u("frustration.turns-n",{count:M(f.restated)}),children:Ma(f.restated,f.messages)},void 0,!1,void 0,this)},{key:"hedge",header:u("frustration.model-hedge"),align:"right",sort:(f)=>an(f.hedged,f.messages),render:(f)=>z.jsxDEV("span",{className:"num",title:u("frustration.turns-n",{count:M(f.hedged)}),children:Ma(f.hedged,f.messages)},void 0,!1,void 0,this)},{key:"rambling",header:u("frustration.model-rambling"),title:u("frustration.model-rambling-title"),align:"right",sort:(f)=>an(f.verbose,f.messages),render:(f)=>z.jsxDEV("span",{className:"num",title:u("frustration.turns-n",{count:M(f.verbose)}),children:Ma(f.verbose,f.messages)},void 0,!1,void 0,this)},{key:"spiral",header:u("frustration.model-spiral"),align:"right",sort:(f)=>an(f.spiraled,f.messages),render:(f)=>z.jsxDEV("span",{className:"num",title:u("frustration.turns-n",{count:M(f.spiraled)}),children:Ma(f.spiraled,f.messages)},void 0,!1,void 0,this)},{key:"breakdown",header:u("frustration.model-breakdown"),align:"right",sort:(f)=>an(f.breakdown,f.messages),render:(f)=>z.jsxDEV("span",{className:"num",title:u("frustration.turns-n",{count:M(f.breakdown)}),children:Ma(f.breakdown,f.messages)},void 0,!1,void 0,this)},{key:"mean",header:u("frustration.column-mean"),align:"right",sort:(f)=>f.messages>0?f.collapse/f.messages:0,render:(f)=>z.jsxDEV("span",{className:"num",children:f.messages>0?(f.collapse/f.messages).toFixed(2):"–"},void 0,!1,void 0,this)}],[i]);return z.jsxDEV(ge,{index:6,title:u("frustration.model-table-title"),description:u("frustration.model-table-description"),flush:!0,stale:l,children:z.jsxDEV(Ut,{rows:r,rowKey:(f)=>f.key,columns:c,dense:!0,empty:z.jsxDEV(mt,{title:u("frustration.model-no-turns")},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this)}function VN({sessions:r,stale:i}){let l=Rt.useMemo(()=>[{key:"session",header:u("frustration.column-session"),render:(c)=>z.jsxDEV("span",{className:"stack",title:c.sessionFile,children:[z.jsxDEV("span",{className:"cell-primary mono micro",children:c.sessionFile.split(/[\\/]/).pop()??c.sessionFile},void 0,!1,void 0,this),z.jsxDEV("span",{className:"micro dim truncate",children:c.folder},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},{key:"models",header:u("common.model"),wrap:!0,render:(c)=>z.jsxDEV("span",{className:"mono micro dim",children:c.models.join(", ")},void 0,!1,void 0,this)},{key:"turns",header:u("frustration.column-turns"),align:"right",sort:(c)=>c.messages,render:(c)=>z.jsxDEV("span",{className:"num",children:M(c.messages)},void 0,!1,void 0,this)},{key:"breakdown",header:u("frustration.model-breakdown"),align:"right",sort:(c)=>an(c.breakdown,c.messages),render:(c)=>z.jsxDEV("span",{className:"num",title:u("frustration.turns-n",{count:M(c.breakdown)}),children:Ma(c.breakdown,c.messages)},void 0,!1,void 0,this)},{key:"mean",header:u("frustration.column-mean"),align:"right",sort:(c)=>c.messages>0?c.collapse/c.messages:0,render:(c)=>z.jsxDEV("span",{className:"num",children:c.messages>0?(c.collapse/c.messages).toFixed(2):"–"},void 0,!1,void 0,this)},{key:"toolErrors",header:u("frustration.column-tool-errors"),align:"right",sort:(c)=>c.toolErrors,render:(c)=>z.jsxDEV("span",{className:c.toolErrors>0?"num tone-bad":"num",children:M(c.toolErrors)},void 0,!1,void 0,this)}],[]);return z.jsxDEV(ge,{index:7,title:u("frustration.model-sessions"),description:u("frustration.model-sessions-description"),flush:!0,stale:i,children:z.jsxDEV(Ut,{rows:r,rowKey:(c)=>c.sessionFile,columns:l,dense:!0,empty:z.jsxDEV(mt,{title:u("frustration.model-no-turns")},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this)}var Vf=_(Qe(),1);var jt=_(ae(),1),jN=86400000,$N={snapcompact:"Snapcompact"},XN=new Intl.DateTimeFormat(void 0,{month:"short",day:"numeric",timeZone:"UTC"});function d2({active:r,range:i}){let[l,c]=Vf.useState(null),f=Ft(["gain",i,l],({signal:C})=>iI(i,l,C),{enabled:r}),y=Jt(i),g=f.data,v=Vf.useMemo(()=>{let C=(g?.timeSeries??[]).map((N)=>({...N,timestamp:Date.parse(`${N.date}T00:00:00Z`)})),T=eo(i,C.map((N)=>N.timestamp),jN),w=ia(C,T,(N)=>N.snapcompact),I=0,R=w.map((N)=>I+=N);return{buckets:T,daily:w,cumulative:R}},[g,i]),h=Vf.useMemo(()=>{if(!g)return[];let C=g.overall.savedTokens;return Object.keys(g.bySource).map((T)=>({...g.bySource[T],source:T,share:C>0?g.bySource[T].savedTokens/C:0}))},[g]),x=g?.projects??[],m=l!==null&&!x.includes(l)?[l,...x]:x,S=[{key:"daily",label:u("gain.saved-per-day"),color:"var(--chart-primary)",values:v.daily},{key:"cumulative",label:u("gain.cumulative"),color:"var(--chart-secondary)",values:v.cumulative,kind:"line",axis:"right"}];return jt.jsxDEV("div",{className:"page",children:[jt.jsxDEV(ma,{title:u("gain.title"),description:l?u("gain.description-scoped",{project:l,window:u(y.windowKey)}):u("gain.description",{window:u(y.windowKey)}),actions:m.length>0&&jt.jsxDEV("select",{className:"input","aria-label":u("common.project"),value:l??"",onChange:(C)=>c(C.target.value||null),style:{maxWidth:320},children:[jt.jsxDEV("option",{value:"",children:u("gain.all-projects")},void 0,!1,void 0,this),m.map((C)=>jt.jsxDEV("option",{value:C,children:C},C,!1,void 0,this))]},void 0,!0,void 0,this)},void 0,!1,void 0,this),jt.jsxDEV(_e,{query:f,skeleton:jt.jsxDEV(Et,{height:96},void 0,!1,void 0,this),isEmpty:(C)=>C.overall.hits===0&&C.timeSeries.length===0,empty:jt.jsxDEV(ge,{children:jt.jsxDEV(mt,{title:l?u("gain.empty-title-scoped",{project:l,window:u(y.windowKey)}):u("gain.empty-title",{window:u(y.windowKey)}),hint:i==="all"?u("gain.empty-hint-all"):u("gain.empty-hint-longer-range")},void 0,!1,void 0,this)},void 0,!1,void 0,this),children:({overall:C})=>jt.jsxDEV(jt.Fragment,{children:[jt.jsxDEV("div",{"data-stale":f.stale,children:jt.jsxDEV(Sa,{min:180,children:[jt.jsxDEV(ue,{label:u("gain.saved-tokens"),value:le(C.savedTokens),hint:M(C.savedTokens),spark:v.daily},void 0,!1,void 0,this),jt.jsxDEV(ue,{label:u("gain.saved-bytes"),value:hx(C.savedBytes)},void 0,!1,void 0,this),jt.jsxDEV(ue,{label:u("gain.reduction"),title:u("gain.reduction-title"),value:C.reductionPercent!==null?Ge(C.reductionPercent):"–",hint:C.reductionPercent===null?u("gain.reduction-unknown"):void 0},void 0,!1,void 0,this),jt.jsxDEV(ue,{label:u("gain.hits"),value:M(C.hits)},void 0,!1,void 0,this),jt.jsxDEV(ue,{label:u("gain.saved-per-hit"),value:C.hits>0?le(C.savedTokens/C.hits):"–",hint:u("common.tokens")},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this),jt.jsxDEV(ge,{index:1,title:u("gain.savings-over-time"),description:u("gain.savings-over-time-description"),actions:jt.jsxDEV(ra,{items:S.map((T)=>({key:T.key,label:T.label,color:T.color}))},void 0,!1,void 0,this),stale:f.stale,children:jt.jsxDEV(hr,{slots:v.buckets.length,tickLabel:(T)=>XN.format(v.buckets[T]),series:S,height:260,formatTooltip:M,formatRight:le},void 0,!1,void 0,this)},void 0,!1,void 0,this),jt.jsxDEV(ge,{index:2,title:u("gain.by-source"),description:u("gain.by-source-description"),flush:!0,stale:f.stale,children:jt.jsxDEV(Ut,{rows:h,rowKey:(T)=>T.source,columns:YN},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 YN=[{key:"source",header:u("gain.source"),sort:(r)=>r.source,render:(r)=>jt.jsxDEV("span",{className:"cell-primary",children:$N[r.source]},void 0,!1,void 0,this)},{key:"tokens",header:u("gain.saved-tokens"),align:"right",sort:(r)=>r.savedTokens,render:(r)=>jt.jsxDEV("span",{title:M(r.savedTokens),children:jt.jsxDEV(Ra,{value:r.share,max:1,display:le(r.savedTokens)},void 0,!1,void 0,this)},void 0,!1,void 0,this)},{key:"share",header:u("common.share"),align:"right",sort:(r)=>r.share,render:(r)=>jt.jsxDEV("span",{className:"num muted",children:Ge(r.share)},void 0,!1,void 0,this)},{key:"bytes",header:u("gain.saved-bytes"),align:"right",sort:(r)=>r.savedBytes,render:(r)=>jt.jsxDEV("span",{className:"num",children:hx(r.savedBytes)},void 0,!1,void 0,this)},{key:"hits",header:u("gain.hits"),align:"right",sort:(r)=>r.hits,render:(r)=>jt.jsxDEV("span",{className:"num",children:M(r.hits)},void 0,!1,void 0,this)},{key:"reduction",header:u("gain.reduction"),align:"right",sort:(r)=>r.reductionPercent??-1,render:(r)=>jt.jsxDEV("span",{className:"num",children:r.reductionPercent!==null?Ge(r.reductionPercent):"–"},void 0,!1,void 0,this)}];var id=_(Qe(),1);var Ie=_(ae(),1),KN=[{value:"share",label:u("common.share")},{value:"requests",label:u("common.requests")}],QN=6;function f2({active:r,range:i}){let l=Ft(["models",i],({signal:I})=>QT(i,I),{enabled:r}),c=Jt(i),[f,y]=id.useState("share"),[g,v]=Or(),[h,x]=id.useState(null),m=id.useMemo(()=>l.data?WN(l.data,i):null,[l.data,i]),S=tq(c.bucketMs),C=id.useMemo(()=>m?JN(m,h,S):[],[m,h,S]),T=(I)=>I.byModel.length===0,w=Ie.jsxDEV(mt,{title:u("models.empty-title"),hint:u("models.empty-hint")},void 0,!1,void 0,this);return Ie.jsxDEV("div",{className:"page",children:[Ie.jsxDEV(ma,{title:u("common.models"),description:u("models.subtitle",{window:u(c.windowKey)})},void 0,!1,void 0,this),Ie.jsxDEV(_e,{query:l,skeleton:Ie.jsxDEV(to,{height:112,style:{borderRadius:12}},void 0,!1,void 0,this),isEmpty:T,empty:w,children:()=>m&&Ie.jsxDEV("div",{"data-stale":l.stale,children:Ie.jsxDEV(Sa,{min:200,children:[Ie.jsxDEV(ue,{label:u("models.used"),value:M(m.models.length),hint:m.providerCount===1?u("models.across-providers-one",{count:M(m.providerCount)}):u("models.across-providers",{count:M(m.providerCount)})},void 0,!1,void 0,this),Ie.jsxDEV(ue,{label:u("models.most-used"),title:m.top?`${m.top.model} (${m.top.provider})`:void 0,value:m.top?m.top.model:"–",hint:m.top?u("models.most-used-hint",{share:Ge(m.top.totalRequests/Math.max(1,m.totalRequests)),provider:m.top.provider}):void 0},void 0,!1,void 0,this),Ie.jsxDEV(ue,{label:u("common.requests"),value:M(m.totalRequests),hint:u("models.failed-n",{count:M(m.failedRequests)}),spark:m.requestTotals},void 0,!1,void 0,this),Ie.jsxDEV(ue,{label:u("models.api-cost"),title:u("models.api-cost-title"),value:ea(m.totalCost,m.unpricedRequests),hint:m.unpricedRequests>0?u("models.unpriced-n",{count:M(m.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),Ie.jsxDEV(ge,{index:1,title:u("models.request-share"),description:f==="share"?u("models.share-desc",{bucket:S}):u("models.count-desc",{bucket:S}),actions:Ie.jsxDEV(Na,{size:"sm",options:KN,value:f,onChange:y,"aria-label":u("models.share-mode-aria")},void 0,!1,void 0,this),stale:l.stale,children:Ie.jsxDEV(_e,{query:l,skeleton:Ie.jsxDEV(Et,{height:260},void 0,!1,void 0,this),isEmpty:T,empty:w,children:()=>m&&Ie.jsxDEV("div",{className:"stack",style:{gap:12},children:[Ie.jsxDEV(zo,{buckets:m.buckets,bucketMs:c.bucketMs,series:f==="share"?m.shareSeries:m.countSeries,hidden:g,height:260,yMax:f==="share"?1:void 0,format:f==="share"?(I)=>Ge(I,0):le,formatTooltip:f==="share"?(I)=>Ge(I):M,showTotal:f==="requests"},void 0,!1,void 0,this),Ie.jsxDEV(ra,{items:m.countSeries.map((I)=>({key:I.key,label:I.label,color:I.color,value:Ge(c2(I.values)/Math.max(1,c2(m.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),Ie.jsxDEV(ge,{index:2,title:u("models.all-models"),description:u("models.table-desc"),stale:l.stale,flush:!0,children:Ie.jsxDEV(_e,{query:l,skeleton:Ie.jsxDEV(ka,{rows:8},void 0,!1,void 0,this),isEmpty:T,empty:w,children:()=>m&&Ie.jsxDEV(Ut,{rows:m.models,rowKey:(I)=>_a(I.model,I.provider),columns:C,initialSort:{key:"requests",dir:"desc"},limit:25,onRowClick:(I)=>{let R=_a(I.model,I.provider);x((N)=>N===R?null:R)},selectedKey:h,expanded:(I)=>{let R=_a(I.model,I.provider);return R===h?Ie.jsxDEV(eq,{model:I,color:m.swatches.get(R)??"var(--chart-primary)",points:m.performance.get(R)??[],bucketMs:c.bucketMs,bucketWord:S},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 WN(r,i){let l=r.byModel,c=ag(l),f=ZN(l),y=eo(i,r.modelSeries.map((R)=>R.timestamp)),g=ia(r.modelSeries,y,(R)=>R.requests),v={buckets:y,key:(R)=>_a(R.model,R.provider),label:(R)=>f.get(R)??R,value:(R)=>R.requests,colors:c},h=Vn(r.modelSeries,{...v,limit:QN}).map((R)=>({...R,values:R.values.map((N)=>N||null)})),x=h.map((R)=>({...R,values:R.values.map((N,P)=>N===null?null:N/g[P])})),m=new Map(Vn(r.modelSeries,v).map((R)=>[R.key,R.values])),S,C=0,T=0,w=0,I=0;for(let R of l){if(!S||R.totalRequests>S.totalRequests)S=R;C+=R.totalRequests,T+=R.failedRequests,w+=R.totalCost,I+=R.unpricedRequests}return{models:l,top:S,swatches:new Map(h.filter((R)=>R.key!=="__other__").map((R)=>[R.key,R.color])),labels:f,providerCount:new Set(l.map((R)=>R.provider)).size,totalRequests:C,failedRequests:T,totalCost:w,unpricedRequests:I,maxRequests:S?.totalRequests??0,buckets:y,requestTotals:g,countSeries:h,shareSeries:x,trends:m,performance:ZI(r.modelPerformanceSeries)}}function ZN(r){let i=new Map;for(let l of r)i.set(l.model,(i.get(l.model)??0)+1);return new Map(r.map((l)=>[_a(l.model,l.provider),(i.get(l.model)??0)>1?`${l.model} · ${l.provider}`:l.model]))}function JN(r,i,l){return[{key:"expand",header:"",width:28,render:(c)=>Ie.jsxDEV("span",{className:"models-chevron","data-open":_a(c.model,c.provider)===i,children:Ie.jsxDEV(Wr,{size:14},void 0,!1,void 0,this)},void 0,!1,void 0,this)},{key:"model",header:u("common.model"),sort:(c)=>c.model,render:(c)=>Ie.jsxDEV(lo,{lead:Ie.jsxDEV(Zr,{color:r.swatches.get(_a(c.model,c.provider))??wo},void 0,!1,void 0,this),primary:Ie.jsxDEV("span",{className:"mono",children:c.model},void 0,!1,void 0,this),secondary:c.provider},void 0,!1,void 0,this)},{key:"requests",header:u("common.requests"),align:"right",sort:(c)=>c.totalRequests,render:(c)=>Ie.jsxDEV(Ra,{value:c.totalRequests,max:r.maxRequests,display:M(c.totalRequests),color:r.swatches.get(_a(c.model,c.provider))??wo},void 0,!1,void 0,this)},{key:"cost",header:u("common.cost"),title:u("models.cost-title"),align:"right",sort:(c)=>c.totalCost,render:(c)=>Ie.jsxDEV("span",{className:"num",children:ea(c.totalCost,c.unpricedRequests)},void 0,!1,void 0,this)},{key:"tokens",header:u("common.tokens"),title:u("models.tokens-title"),align:"right",sort:(c)=>Ol(c),render:(c)=>{let f=Ol(c);return Ie.jsxDEV("span",{className:"num",title:M(f),children:le(f)},void 0,!1,void 0,this)}},{key:"cache",header:u("models.cache-rate"),title:u("models.cache-title"),align:"right",sort:(c)=>c.cacheRate,render:(c)=>Ie.jsxDEV("span",{className:"num",children:Ge(c.cacheRate)},void 0,!1,void 0,this)},{key:"errors",header:u("models.errors"),align:"right",sort:(c)=>c.errorRate,render:(c)=>c.failedRequests===0?Ie.jsxDEV("span",{className:"num dim",children:"0%"},void 0,!1,void 0,this):Ie.jsxDEV("span",{title:u("models.failed-n",{count:M(c.failedRequests)}),children:Ie.jsxDEV(yt,{tone:pr(c.errorRate),mono:!0,children:Co(c.errorRate)},void 0,!1,void 0,this)},void 0,!1,void 0,this)},{key:"tps",header:u("common.tokens-per-second"),title:u("models.tps-title"),align:"right",sort:(c)=>c.avgTokensPerSecond??-1,render:(c)=>Ie.jsxDEV("span",{className:"num",children:_n(c.avgTokensPerSecond)},void 0,!1,void 0,this)},{key:"ttft",header:u("models.ttft"),title:u("models.ttft-title"),align:"right",sort:(c)=>c.avgTtft??-1,render:(c)=>Ie.jsxDEV("span",{className:"num",children:Lt(c.avgTtft)},void 0,!1,void 0,this)},{key:"trend",header:u("models.trend"),title:u("models.trend-title",{bucket:l}),width:112,render:(c)=>{let f=_a(c.model,c.provider),y=r.trends.get(f);return y?Ie.jsxDEV(od,{values:y.map((g)=>g??0),color:r.swatches.get(f)??wo,width:96,height:22},void 0,!1,void 0,this):Ie.jsxDEV("span",{className:"dim",children:"–"},void 0,!1,void 0,this)}}]}function eq({model:r,color:i,points:l,bucketMs:c,bucketWord:f}){let[y,g]=Or(),v=[{key:"tps",label:u("common.tokens-per-second"),color:i,kind:l.length>1?"line":"bars",values:l.map((h)=>h.avgTokensPerSecond)},{key:"ttft",label:u("models.ttft"),color:wo,kind:l.length>1?"line":"bars",axis:"right",dashed:!0,values:l.map((h)=>h.avgTtftSeconds)}];return Ie.jsxDEV("div",{className:"models-detail",children:[Ie.jsxDEV("div",{className:"models-detail-facts",children:[Ie.jsxDEV("div",{children:[Ie.jsxDEV("div",{className:"section-label",children:u("models.efficiency")},void 0,!1,void 0,this),Ie.jsxDEV(Oo,{items:[{key:"err",label:u("common.error-rate"),value:Ie.jsxDEV("span",{className:`tone-${pr(r.errorRate)}`,children:[Co(r.errorRate)," ",Ie.jsxDEV("span",{className:"dim",children:["(",u("models.failed-n",{count:M(r.failedRequests)}),")"]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)},{key:"cache",label:u("models.cache-rate"),value:Ge(r.cacheRate)},{key:"savings",label:u("models.cache-savings"),value:Ie.jsxDEV("span",{className:r.cacheSavings<0?"tone-bad":void 0,children:Ge(r.cacheSavings)},void 0,!1,void 0,this)},{key:"premium",label:u("common.premium-requests"),value:M(Math.round(r.totalPremiumRequests*100)/100)}]},void 0,!1,void 0,this)]},void 0,!0,void 0,this),Ie.jsxDEV("div",{children:[Ie.jsxDEV("div",{className:"section-label",children:u("models.latency")},void 0,!1,void 0,this),Ie.jsxDEV(Oo,{items:[{key:"dur",label:u("models.avg-duration"),value:Lt(r.avgDuration)},{key:"ttft",label:u("models.avg-ttft"),value:Lt(r.avgTtft)},{key:"tps",label:u("common.tokens-per-second"),value:_n(r.avgTokensPerSecond)}]},void 0,!1,void 0,this)]},void 0,!0,void 0,this),Ie.jsxDEV("div",{children:[Ie.jsxDEV("div",{className:"section-label",children:u("common.tokens")},void 0,!1,void 0,this),Ie.jsxDEV(Oo,{items:[{key:"in",label:u("models.uncached-input"),value:le(r.totalInputTokens)},{key:"cr",label:u("common.cache-read"),value:le(r.totalCacheReadTokens)},{key:"cw",label:u("common.cache-write"),value:le(r.totalCacheWriteTokens)},{key:"out",label:u("common.output"),value:le(r.totalOutputTokens)}]},void 0,!1,void 0,this)]},void 0,!0,void 0,this),Ie.jsxDEV("div",{className:"micro dim",children:u("models.first-last-seen",{first:La(r.firstTimestamp),last:La(r.lastTimestamp)})},void 0,!1,void 0,this)]},void 0,!0,void 0,this),Ie.jsxDEV("div",{className:"models-detail-chart",children:[Ie.jsxDEV("div",{className:"row",style:{justifyContent:"space-between"},children:[Ie.jsxDEV("div",{className:"section-label",style:{marginBottom:0},children:u("models.performance-per-bucket",{bucket:f})},void 0,!1,void 0,this),Ie.jsxDEV(ra,{items:v.map((h)=>({key:h.key,label:h.label,color:h.color})),hidden:y,onToggle:g},void 0,!1,void 0,this)]},void 0,!0,void 0,this),l.length===0?Ie.jsxDEV(mt,{title:u("models.no-samples-title"),hint:u("models.no-samples-hint")},void 0,!1,void 0,this):Ie.jsxDEV(zo,{buckets:l.map((h)=>h.timestamp),bucketMs:c,series:v,hidden:y,stacked:!1,height:240,format:le,formatTooltip:(h)=>u("models.tok-per-second",{value:_n(h)}),formatRight:(h)=>`${Number(h.toFixed(2))}s`,tooltipExtra:(h)=>Ie.jsxDEV("div",{className:"chart-tooltip-row chart-tooltip-total",children:[Ie.jsxDEV("span",{className:"chart-tooltip-label",children:u("common.requests")},void 0,!1,void 0,this),Ie.jsxDEV("span",{className:"chart-tooltip-value",children:M(l[h].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 tq(r){if(r<3600000)return u("models.bucket-5m");if(r<86400000)return u("models.bucket-hour");return u("models.bucket-day")}function c2(r){let i=0;for(let l of r)i+=l??0;return i}var ng=_(Qe(),1);var Ee=_(ae(),1),aq=[{value:"requests",label:u("common.requests")},{value:"tokens",label:u("common.tokens")},{value:"cost",label:u("common.cost")}],p2={main:u("overview.main-agent"),subagent:u("overview.subagents"),advisor:u("overview.advisor")},m2={main:"var(--chart-primary)",subagent:"var(--chart-secondary)",advisor:"#9d7bff"},h2=[{key:"input",label:u("overview.uncached-input"),color:"#5b8cff"},{key:"cacheRead",label:u("common.cache-read"),color:"var(--chart-primary)"},{key:"cacheWrite",label:u("common.cache-write"),color:"#f5b54a"},{key:"output",label:u("common.output"),color:"var(--chart-secondary)"}];function g2({active:r,range:i,onRequestClick:l}){let c=Ft(["overview",i],({signal:m})=>KT(i,m),{enabled:r}),f=Ft(["recent-requests"],({signal:m})=>zh(12,m),{enabled:r}),[y,g]=ng.useState("requests"),v=Jt(i),h=ng.useMemo(()=>{let m=c.data?.timeSeries??[],S=eo(i,m.map((C)=>C.timestamp));return{buckets:S,requests:ia(m,S,(C)=>C.requests-C.errors),errors:ia(m,S,(C)=>C.errors),tokens:ia(m,S,(C)=>C.tokens),cost:ia(m,S,(C)=>C.cost),all:ia(m,S,(C)=>C.requests)}},[c.data,i]),x=y==="requests"?[{key:"ok",label:u("overview.succeeded"),color:"var(--chart-primary)",values:h.requests},{key:"err",label:u("common.failed"),color:"var(--bad)",values:h.errors}]:y==="tokens"?[{key:"tokens",label:u("common.tokens"),color:"var(--chart-primary)",values:h.tokens}]:[{key:"cost",label:u("overview.api-equivalent"),color:"var(--chart-secondary)",values:h.cost}];return Ee.jsxDEV("div",{className:"page",children:[Ee.jsxDEV(ma,{title:u("overview.title"),description:u("overview.description",{window:u(v.windowKey)})},void 0,!1,void 0,this),Ee.jsxDEV(_e,{query:c,skeleton:Ee.jsxDEV(Et,{height:112},void 0,!1,void 0,this),children:({overall:m})=>Ee.jsxDEV("div",{"data-stale":c.stale,className:"stack",style:{gap:16},children:[Ee.jsxDEV(Sa,{min:190,children:[Ee.jsxDEV(ue,{label:u("overview.api-equivalent-cost"),title:u("overview.api-cost-title"),value:ea(m.totalCost,m.unpricedRequests),hint:m.unpricedRequests>0?u("overview.unpriced-n",{count:M(m.unpricedRequests)}):void 0,spark:h.cost,sparkColor:"var(--chart-secondary)"},void 0,!1,void 0,this),Ee.jsxDEV(ue,{label:u("common.requests"),value:M(m.totalRequests),hint:u("overview.failed-n",{count:M(m.failedRequests)}),spark:h.all},void 0,!1,void 0,this),Ee.jsxDEV(ue,{label:u("overview.conversation-tokens"),title:u("overview.tokens-title"),value:le(Ol(m)),hint:u("overview.output-n",{count:le(m.totalOutputTokens)}),spark:h.tokens},void 0,!1,void 0,this),Ee.jsxDEV(ue,{label:u("overview.cache-rate"),title:u("overview.cache-rate-title"),value:Ge(m.cacheRate),hint:u("overview.cache-saved",{value:Ge(m.cacheSavings)})},void 0,!1,void 0,this),Ee.jsxDEV(ue,{label:u("common.error-rate"),value:Co(m.errorRate),hint:u("overview.succeeded-n",{count:M(m.successfulRequests)}),spark:h.errors,sparkColor:"var(--bad)"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),Ee.jsxDEV(Sa,{min:140,children:[Ee.jsxDEV(ue,{size:"sm",label:u("overview.uncached-input"),value:le(m.totalInputTokens)},void 0,!1,void 0,this),Ee.jsxDEV(ue,{size:"sm",label:u("common.cache-read"),value:le(m.totalCacheReadTokens)},void 0,!1,void 0,this),Ee.jsxDEV(ue,{size:"sm",label:u("common.cache-write"),value:le(m.totalCacheWriteTokens)},void 0,!1,void 0,this),Ee.jsxDEV(ue,{size:"sm",label:u("common.output"),value:le(m.totalOutputTokens)},void 0,!1,void 0,this),Ee.jsxDEV(ue,{size:"sm",label:u("common.premium-requests"),value:M(Math.round(m.totalPremiumRequests*100)/100)},void 0,!1,void 0,this),Ee.jsxDEV(ue,{size:"sm",label:u("common.tokens-per-second"),value:_n(m.avgTokensPerSecond)},void 0,!1,void 0,this),Ee.jsxDEV(ue,{size:"sm",label:u("overview.avg-latency"),value:Lt(m.avgDuration)},void 0,!1,void 0,this),Ee.jsxDEV(ue,{size:"sm",label:u("overview.avg-ttft"),value:Lt(m.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),Ee.jsxDEV("div",{className:"grid grid-main-side",children:[Ee.jsxDEV(ge,{index:1,title:u("overview.activity"),description:v.bucketMs<3600000?u("overview.per-5m"):v.bucketMs<86400000?u("overview.per-hour"):u("overview.per-day"),actions:Ee.jsxDEV(Na,{size:"sm",options:aq,value:y,onChange:g},void 0,!1,void 0,this),stale:c.stale,children:Ee.jsxDEV(_e,{query:c,skeleton:Ee.jsxDEV(Et,{height:260},void 0,!1,void 0,this),children:()=>Ee.jsxDEV(zo,{buckets:h.buckets,bucketMs:v.bucketMs,series:x,height:260,format:y==="cost"?(m)=>ea(m,0):le},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this),Ee.jsxDEV(ge,{index:2,title:u("overview.token-mix"),description:u("overview.token-mix-description"),stale:c.stale,children:Ee.jsxDEV(_e,{query:c,skeleton:Ee.jsxDEV(Et,{height:260},void 0,!1,void 0,this),children:({overall:m,byAgentType:S})=>{let C={input:m.totalInputTokens,cacheRead:m.totalCacheReadTokens,cacheWrite:m.totalCacheWriteTokens,output:m.totalOutputTokens},T=Ol(m),w=QI(S);return Ee.jsxDEV("div",{className:"stack",style:{gap:18},children:[Ee.jsxDEV("div",{className:"stack",style:{gap:10},children:[Ee.jsxDEV(Gn,{segments:h2.map((I)=>({key:I.key,label:I.label,value:C[I.key],color:I.color}))},void 0,!1,void 0,this),Ee.jsxDEV(ra,{items:h2.map((I)=>({key:I.key,label:I.label,color:I.color,value:T>0?Ge(C[I.key]/T,0):"–"}))},void 0,!1,void 0,this)]},void 0,!0,void 0,this),Ee.jsxDEV("div",{className:"stack",style:{gap:10},children:[Ee.jsxDEV("div",{className:"section-label",style:{marginBottom:0},children:u("overview.by-agent")},void 0,!1,void 0,this),Ee.jsxDEV(Gn,{segments:w.segments.map((I)=>({key:I.agentType,label:p2[I.agentType],value:I.tokens,color:m2[I.agentType]}))},void 0,!1,void 0,this),w.segments.map((I)=>Ee.jsxDEV("div",{className:"row",style:{justifyContent:"space-between"},children:[Ee.jsxDEV("span",{className:"row",children:[Ee.jsxDEV("span",{className:"swatch",style:{background:m2[I.agentType]}},void 0,!1,void 0,this),p2[I.agentType],Ee.jsxDEV("span",{className:"dim num",children:u("overview.requests-short",{count:M(I.requests)})},void 0,!1,void 0,this)]},void 0,!0,void 0,this),Ee.jsxDEV("span",{className:"row",children:[Ee.jsxDEV("span",{className:"dim num",children:le(I.tokens)},void 0,!1,void 0,this),Ee.jsxDEV("span",{className:"num",style:{minWidth:48,textAlign:"right"},children:Ge(I.share)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},I.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),Ee.jsxDEV(ge,{index:3,title:Ee.jsxDEV(Ee.Fragment,{children:[Ee.jsxDEV(Pn,{tone:"live",pulse:!0},void 0,!1,void 0,this)," ",u("overview.latest-requests")]},void 0,!0,void 0,this),description:u("overview.latest-requests-description"),actions:Ee.jsxDEV("a",{className:"btn","data-size":"sm","data-variant":"ghost",href:`#/requests?range=${i}`,children:[u("overview.all-requests")," ",Ee.jsxDEV(af,{size:13},void 0,!1,void 0,this)]},void 0,!0,void 0,this),flush:!0,children:Ee.jsxDEV(_e,{query:f,skeleton:Ee.jsxDEV(ka,{rows:8},void 0,!1,void 0,this),children:(m)=>Ee.jsxDEV(Ut,{rows:m,rowKey:(S)=>S.id??`${S.sessionFile}:${S.entryId}`,onRowClick:(S)=>S.id!==void 0&&l(S.id),columns:oq,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 oq=[{key:"model",header:u("common.model"),render:(r)=>Ee.jsxDEV(lo,{primary:r.model,secondary:r.provider},void 0,!1,void 0,this)},{key:"time",header:u("overview.when"),render:(r)=>Ee.jsxDEV("span",{className:"muted",children:La(r.timestamp)},void 0,!1,void 0,this)},{key:"tokens",header:u("common.tokens"),align:"right",render:(r)=>Ee.jsxDEV("span",{className:"num",children:M(r.usage.totalTokens)},void 0,!1,void 0,this)},{key:"cost",header:u("common.cost"),align:"right",render:(r)=>Ee.jsxDEV("span",{className:"num",children:ql(r,4)},void 0,!1,void 0,this)},{key:"duration",header:u("common.duration"),align:"right",render:(r)=>Ee.jsxDEV("span",{className:"num",children:Lt(r.duration)},void 0,!1,void 0,this)},{key:"status",header:u("overview.status"),align:"right",render:(r)=>r.errorMessage?Ee.jsxDEV(yt,{tone:"bad",children:u("common.failed")},void 0,!1,void 0,this):Ee.jsxDEV(yt,{tone:"ok",children:u("overview.ok")},void 0,!1,void 0,this)}];var on=_(Qe(),1);var We=_(ae(),1),rq=100,y2=8;function v2({active:r,range:i}){let l=Ft(["projects",i],({signal:I})=>lI(i,I),{enabled:r}),[c,f]=on.useState(""),[y,g]=on.useState(!0),v=on.useDeferredValue(c.trim().toLowerCase()),h=Jt(i),x=on.useMemo(()=>JI(l.data??[]),[l.data]),m=on.useMemo(()=>y?x.rows.filter((I)=>!I.temporary):x.rows,[x,y]),S=on.useMemo(()=>v?m.filter((I)=>I.folder.toLowerCase().includes(v)):m,[m,v]),C=on.useMemo(()=>({cost:[...m].sort((I,R)=>R.totalCost-I.totalCost).slice(0,y2),requests:[...m].sort((I,R)=>R.totalRequests-I.totalRequests).slice(0,y2)}),[m]),T=We.jsxDEV(mt,{title:u(x.rows.length===0?"projects.empty-no-folders":"projects.empty-only-temporary")},void 0,!1,void 0,this),w=on.useMemo(()=>nq(x.maxRequests,x.maxCost),[x]);return We.jsxDEV("div",{className:"page",children:[We.jsxDEV(ma,{title:u("projects.title"),description:u("projects.description",{window:u(h.windowKey)})},void 0,!1,void 0,this),We.jsxDEV(_e,{query:l,skeleton:We.jsxDEV(Et,{height:96},void 0,!1,void 0,this),children:()=>We.jsxDEV("div",{"data-stale":l.stale,children:We.jsxDEV(Sa,{min:180,children:[We.jsxDEV(ue,{label:u("projects.folders"),value:M(x.rows.length),hint:x.temporaryCount>0?u("projects.temporary-n",{count:M(x.temporaryCount)}):void 0},void 0,!1,void 0,this),We.jsxDEV(ue,{label:u("common.requests"),value:M(x.totalRequests),hint:u("projects.failed-n",{count:M(x.failedRequests)})},void 0,!1,void 0,this),We.jsxDEV(ue,{label:u("projects.api-equivalent-cost"),title:u("projects.api-equivalent-cost-hint"),value:ea(x.totalCost,x.unpricedRequests),hint:x.unpricedRequests>0?u("projects.unpriced-n",{count:M(x.unpricedRequests)}):void 0},void 0,!1,void 0,this),We.jsxDEV(ue,{label:u("projects.conversation-tokens"),title:u("projects.conversation-tokens-hint"),value:le(x.conversationTokens)},void 0,!1,void 0,this),We.jsxDEV(ue,{label:u("projects.cache-rate"),title:u("projects.cache-rate-hint-all"),value:Ge(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),We.jsxDEV("div",{className:"grid grid-2",children:[We.jsxDEV(ge,{index:1,title:u("projects.top-by-cost"),description:u("projects.top-by-cost-description"),stale:l.stale,children:We.jsxDEV(_e,{query:l,skeleton:We.jsxDEV(Et,{height:236},void 0,!1,void 0,this),isEmpty:()=>C.cost.length===0,empty:T,children:()=>We.jsxDEV(Ls,{items:C.cost.map((I)=>({key:I.folder,label:We.jsxDEV("span",{className:"mono",children:qr(I.folder)},void 0,!1,void 0,this),value:I.totalCost,display:`${ea(I.totalCost,I.unpricedRequests)} · ${Ge(I.costShare)}`,color:"var(--chart-secondary)"})),onSelect:f},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this),We.jsxDEV(ge,{index:2,title:u("projects.top-by-requests"),description:u("projects.top-by-requests-description"),stale:l.stale,children:We.jsxDEV(_e,{query:l,skeleton:We.jsxDEV(Et,{height:236},void 0,!1,void 0,this),isEmpty:()=>C.requests.length===0,empty:T,children:()=>We.jsxDEV(Ls,{items:C.requests.map((I)=>({key:I.folder,label:We.jsxDEV("span",{className:"mono",children:qr(I.folder)},void 0,!1,void 0,this),value:I.totalRequests,display:`${M(I.totalRequests)} · ${Ge(I.requestShare)}`})),onSelect:f},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),We.jsxDEV(ge,{index:3,title:u("projects.folders"),description:l.data?S.length===x.rows.length?u("projects.folders-n",{count:M(x.rows.length)}):u("projects.folders-of-n",{count:M(S.length),total:M(x.rows.length)}):void 0,actions:We.jsxDEV(We.Fragment,{children:[x.temporaryCount>0&&We.jsxDEV("label",{className:"check",title:u("projects.hide-temporary-hint"),children:[We.jsxDEV("input",{type:"checkbox",checked:y,onChange:(I)=>g(I.target.checked)},void 0,!1,void 0,this),u("projects.hide-temporary",{count:M(x.temporaryCount)})]},void 0,!0,void 0,this),We.jsxDEV(Un,{value:c,onChange:f,placeholder:u("projects.filter-placeholder"),width:240},void 0,!1,void 0,this)]},void 0,!0,void 0,this),flush:!0,stale:l.stale,children:We.jsxDEV(_e,{query:l,skeleton:We.jsxDEV(ka,{rows:10},void 0,!1,void 0,this),children:()=>We.jsxDEV(Ut,{rows:S,rowKey:(I)=>I.folder,columns:w,initialSort:{key:"cost",dir:"desc"},limit:rq,dense:!0,empty:We.jsxDEV(mt,{title:u(x.rows.length===0?"projects.empty-no-folders":"projects.empty-no-match"),hint:x.rows.length===0?u("projects.hint-longer-range"):y&&x.temporaryCount>0?u("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 nq(r,i){return[{key:"folder",header:u("projects.folder"),sort:(l)=>l.folder,render:(l)=>We.jsxDEV("span",{className:"row projects-folder",title:l.folder||u("common.root"),children:[We.jsxDEV("span",{className:"mono truncate",children:qr(l.folder)},void 0,!1,void 0,this),l.temporary&&We.jsxDEV(yt,{children:u("projects.temp")},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},{key:"requests",header:u("common.requests"),align:"right",sort:(l)=>l.totalRequests,render:(l)=>We.jsxDEV("span",{title:u("projects.share-of-requests",{share:Ge(l.requestShare)}),children:We.jsxDEV(Ra,{value:l.totalRequests,max:r,display:M(l.totalRequests)},void 0,!1,void 0,this)},void 0,!1,void 0,this)},{key:"cost",header:u("common.cost"),title:u("projects.api-equivalent-cost-rates"),align:"right",sort:(l)=>l.totalCost,render:(l)=>We.jsxDEV("span",{title:u("projects.share-of-cost",{share:Ge(l.costShare)}),children:We.jsxDEV(Ra,{value:l.totalCost,max:i,display:ea(l.totalCost,l.unpricedRequests),color:"var(--chart-secondary)"},void 0,!1,void 0,this)},void 0,!1,void 0,this)},{key:"tokens",header:u("common.tokens"),title:u("projects.conversation-tokens-hint"),align:"right",sort:(l)=>l.conversationTokens,render:(l)=>We.jsxDEV("span",{className:"num",title:M(l.conversationTokens),children:le(l.conversationTokens)},void 0,!1,void 0,this)},{key:"cacheRate",header:u("projects.cache-rate"),title:u("projects.cache-rate-hint"),align:"right",sort:(l)=>l.cacheRate,render:(l)=>We.jsxDEV("span",{className:"num",children:Ge(l.cacheRate)},void 0,!1,void 0,this)},{key:"cacheSavings",header:u("projects.cache-savings"),title:u("projects.cache-savings-hint"),align:"right",sort:(l)=>l.cacheSavings,render:(l)=>We.jsxDEV("span",{className:`num ${l.cacheSavings<0?"tone-bad":"muted"}`,children:Ge(l.cacheSavings)},void 0,!1,void 0,this)},{key:"errorRate",header:u("projects.errors"),align:"right",sort:(l)=>l.errorRate,render:(l)=>We.jsxDEV("span",{title:u("projects.failed-n",{count:M(l.failedRequests)}),children:We.jsxDEV(yt,{tone:l.failedRequests>0?pr(l.errorRate):"neutral",mono:!0,children:Co(l.errorRate)},void 0,!1,void 0,this)},void 0,!1,void 0,this)},{key:"duration",header:u("projects.avg-duration"),align:"right",sort:(l)=>l.avgDuration??-1,render:(l)=>We.jsxDEV("span",{className:"num",children:Lt(l.avgDuration)},void 0,!1,void 0,this)},{key:"last",header:u("projects.last-active"),align:"right",sort:(l)=>l.lastTimestamp,render:(l)=>We.jsxDEV("span",{className:"dim",children:La(l.lastTimestamp)},void 0,!1,void 0,this)}]}var Po=_(Qe(),1);var oe=_(ae(),1),sq=[{value:"tokens",label:u("common.tokens")},{value:"cost",label:u("common.cost"),title:u("providers.cost-title")},{value:"requests",label:u("common.requests")}],b2=6,x2=[{key:"input",label:u("ui.uncached-input"),color:"#5b8cff"},{key:"cacheRead",label:u("common.cache-read"),color:"var(--chart-primary)"},{key:"cacheWrite",label:u("common.cache-write"),color:"#f5b54a"},{key:"output",label:u("common.output"),color:"var(--chart-secondary)"}];function S2({active:r,range:i}){let l=Ft(["providers",i],({signal:P})=>fI(i,P),{enabled:r}),[c,f]=Po.useState("tokens"),[y,g]=Or(),v=Jt(i),h=Ft(["provider-windows",i],({signal:P})=>lx(i,null,P),{enabled:r}),[x,m]=Po.useState(null),S=lq(h.data?.windowInsights??[],x),C=S?.provider??null,T=Ft(["provider-windows",i,C],({signal:P})=>lx(i,C,P),{enabled:r&&C!==null}),w=Po.useMemo(()=>{let P=l.data?.providers??[],V=l.data?.series??[],K=Uf(P.map((ee)=>({key:ee.provider,weight:ee.totalTokens}))),de=eo(i,V.map((ee)=>ee.timestamp)),W={requests:0,failed:0,tokens:0,cost:0,unpriced:0};for(let ee of P)W.requests+=ee.totalRequests,W.failed+=ee.failedRequests,W.tokens+=ee.totalTokens,W.cost+=ee.totalCost,W.unpriced+=ee.unpricedRequests;let fe=(ee)=>Vn(V,{buckets:de,key:(H)=>H.provider,value:ee,limit:b2,colors:K}).map((H)=>({...H,values:H.values.map((X)=>X||null)}));return{colors:K,buckets:de,totals:W,burn:{tokens:fe((ee)=>ee.totalTokens),cost:fe((ee)=>ee.cost),requests:fe((ee)=>ee.requests)},spark:{tokens:ia(V,de,(ee)=>ee.totalTokens),cost:ia(V,de,(ee)=>ee.cost),requests:ia(V,de,(ee)=>ee.requests)},topProvider:P.reduce((ee,H)=>ee===null||H.totalTokens>ee.totalTokens?H:ee,null)}},[l.data,i]),I=w.burn[c],R=c==="cost"?(P)=>Ot(P):le,N=w.totals;return oe.jsxDEV("div",{className:"page",children:[oe.jsxDEV(ma,{title:u("common.providers"),description:u("providers.description",{window:u(v.windowKey)})},void 0,!1,void 0,this),oe.jsxDEV(_e,{query:l,skeleton:oe.jsxDEV(Et,{height:112},void 0,!1,void 0,this),children:({providers:P})=>oe.jsxDEV("div",{"data-stale":l.stale,children:oe.jsxDEV(Sa,{min:190,children:[oe.jsxDEV(ue,{label:u("common.providers"),value:M(P.length),hint:w.topProvider?u("providers.most-tokens",{provider:w.topProvider.provider}):void 0},void 0,!1,void 0,this),oe.jsxDEV(ue,{label:u("common.requests"),value:M(N.requests),hint:u("providers.failed-n",{count:M(N.failed)}),spark:w.spark.requests},void 0,!1,void 0,this),oe.jsxDEV(ue,{label:u("common.tokens"),title:u("providers.tokens-title"),value:le(N.tokens),spark:w.spark.tokens},void 0,!1,void 0,this),oe.jsxDEV(ue,{label:u("providers.api-equivalent-cost"),title:u("providers.api-cost-title"),value:ea(N.cost,N.unpriced),hint:N.unpriced>0?u("providers.unpriced-n",{count:M(N.unpriced)}):void 0,spark:w.spark.cost,sparkColor:"var(--chart-secondary)"},void 0,!1,void 0,this),oe.jsxDEV(ue,{label:u("common.error-rate"),value:Co(N.requests>0?N.failed/N.requests:0),hint:u("providers.succeeded-n",{count:M(N.requests-N.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),oe.jsxDEV(ge,{index:1,title:u("providers.totals"),description:N.unpriced>0?u(N.unpriced===1?"providers.totals-description-unpriced-one":"providers.totals-description-unpriced-n",{count:M(N.unpriced)}):u("providers.totals-description"),flush:!0,stale:l.stale,children:oe.jsxDEV(_e,{query:l,skeleton:oe.jsxDEV(ka,{rows:6},void 0,!1,void 0,this),children:({providers:P})=>oe.jsxDEV(iq,{providers:P,colors:w.colors},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this),oe.jsxDEV("div",{className:"grid grid-main-side",children:[oe.jsxDEV(ge,{index:2,title:u("providers.burn"),description:c==="cost"&&N.unpriced>0?u("providers.burn-estimate-description",{bucket:v.bucketMs<86400000?u("providers.bucket-hour"):u("providers.bucket-day")}):u("providers.burn-description",{bucket:v.bucketMs<3600000?u("providers.bucket-5m"):v.bucketMs<86400000?u("providers.bucket-hour"):u("providers.bucket-day"),count:b2}),actions:oe.jsxDEV(Na,{size:"sm",options:sq,value:c,onChange:f},void 0,!1,void 0,this),stale:l.stale,children:oe.jsxDEV(_e,{query:l,skeleton:oe.jsxDEV(Et,{height:260},void 0,!1,void 0,this),children:()=>oe.jsxDEV("div",{className:"stack",style:{gap:12},children:[oe.jsxDEV(zo,{buckets:w.buckets,bucketMs:v.bucketMs,series:I,hidden:y,height:260,format:R,formatTooltip:c==="cost"?(P)=>Ot(P):M,emptyLabel:u("providers.no-provider-activity")},void 0,!1,void 0,this),oe.jsxDEV(ra,{items:I.map((P)=>({key:P.key,label:P.label,color:P.color,value:R(P.values.reduce((V,K)=>V+(K??0),0))})),hidden:y,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),oe.jsxDEV(_e,{query:l,skeleton:oe.jsxDEV(Et,{height:320},void 0,!1,void 0,this),children:({hourly:P,providers:V})=>oe.jsxDEV(dq,{hourly:P,providers:V,stale:l.stale},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),oe.jsxDEV(ge,{index:4,title:u("providers.subscription-windows"),description:u("providers.subscription-windows-description"),flush:!0,stale:h.stale,children:oe.jsxDEV(_e,{query:h,skeleton:oe.jsxDEV(ka,{rows:6},void 0,!1,void 0,this),children:(P)=>oe.jsxDEV(cq,{insights:P.windowInsights,selected:S,onSelect:m},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this),oe.jsxDEV(gq,{insights:h.data?.windowInsights??null,accounts:T,selected:S,onSelect:m},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function lq(r,i){if(i&&r.some((c)=>c.provider===i.provider&&c.windowKey===i.windowKey))return i;let l=i&&r.find((c)=>c.provider===i.provider)||r.reduce((c,f)=>c===void 0||f.fractionConsumed>c.fractionConsumed?f:c,void 0);return l?{provider:l.provider,windowKey:l.windowKey}:null}function iq({providers:r,colors:i}){let[l,c]=Po.useState(null),f=Po.useMemo(()=>{let y=0,g=0,v=0;for(let h of r)y=Math.max(y,h.totalRequests),g=Math.max(g,h.totalTokens),v+=h.totalTokens;return[{key:"provider",header:u("common.provider"),sort:(h)=>h.provider,render:(h)=>oe.jsxDEV("span",{className:"row",style:{gap:8},children:[oe.jsxDEV(Zr,{color:i.get(h.provider)??wo},void 0,!1,void 0,this),oe.jsxDEV("span",{className:"mono cell-primary",children:h.provider},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},{key:"requests",header:u("common.requests"),align:"right",sort:(h)=>h.totalRequests,render:(h)=>oe.jsxDEV(Ra,{value:h.totalRequests,max:y,display:M(h.totalRequests)},void 0,!1,void 0,this)},{key:"errors",header:u("common.error-rate"),align:"right",sort:(h)=>h.totalRequests>0?h.failedRequests/h.totalRequests:0,render:(h)=>{let x=h.totalRequests>0?h.failedRequests/h.totalRequests:0;return oe.jsxDEV("span",{className:"row",style:{gap:8,justifyContent:"flex-end"},children:[oe.jsxDEV("span",{className:"num dim",children:M(h.failedRequests)},void 0,!1,void 0,this),oe.jsxDEV(yt,{tone:h.failedRequests>0?pr(x):"neutral",mono:!0,children:Co(x)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}},{key:"models",header:u("common.models"),title:u("providers.models-title"),align:"right",sort:(h)=>h.models,render:(h)=>oe.jsxDEV("span",{className:"num",children:M(h.models)},void 0,!1,void 0,this)},{key:"tokens",header:u("common.tokens"),title:u("providers.tokens-title"),align:"right",sort:(h)=>h.totalTokens,render:(h)=>oe.jsxDEV(Ra,{value:h.totalTokens,max:g,display:le(h.totalTokens),color:i.get(h.provider)},void 0,!1,void 0,this)},{key:"share",header:u("common.share"),title:u("providers.share-title"),align:"right",sort:(h)=>h.totalTokens,render:(h)=>oe.jsxDEV("span",{className:"num muted",children:Ge(v>0?h.totalTokens/v:0)},void 0,!1,void 0,this)},{key:"cost",header:u("common.cost"),title:u("providers.cost-title"),align:"right",sort:(h)=>h.totalCost,render:(h)=>oe.jsxDEV("span",{className:"num",title:h.unpricedRequests>0?u("providers.unpriced-n",{count:M(h.unpricedRequests)}):void 0,children:ea(h.totalCost,h.unpricedRequests)},void 0,!1,void 0,this)},{key:"tps",header:u("common.tokens-per-second"),title:u("providers.tps-title"),align:"right",sort:(h)=>h.avgTokensPerSecond??-1,render:(h)=>oe.jsxDEV("span",{className:"num",children:_n(h.avgTokensPerSecond)},void 0,!1,void 0,this)},{key:"premium",header:u("common.premium"),title:u("providers.premium-title"),align:"right",sort:(h)=>h.totalPremiumRequests,render:(h)=>oe.jsxDEV("span",{className:h.totalPremiumRequests>0?"num":"num dim",children:M(Math.round(h.totalPremiumRequests*100)/100)},void 0,!1,void 0,this)}]},[r,i]);return oe.jsxDEV(Ut,{rows:r,rowKey:(y)=>y.provider,columns:f,initialSort:{key:"tokens",dir:"desc"},limit:12,selectedKey:l,onRowClick:(y)=>c((g)=>g===y.provider?null:y.provider),expanded:(y)=>y.provider===l?oe.jsxDEV(uq,{provider:y},void 0,!1,void 0,this):null,empty:oe.jsxDEV(mt,{title:u("providers.no-requests-in-range")},void 0,!1,void 0,this)},void 0,!1,void 0,this)}function uq({provider:r}){let i={input:r.totalInputTokens,cacheRead:r.totalCacheReadTokens,cacheWrite:r.totalCacheWriteTokens,output:r.totalOutputTokens};return oe.jsxDEV("div",{className:"providers-mix",children:[oe.jsxDEV(Gn,{segments:x2.map((l)=>({key:l.key,label:l.label,value:i[l.key],color:l.color}))},void 0,!1,void 0,this),oe.jsxDEV(ra,{items:x2.map((l)=>({key:l.key,label:l.label,color:l.color,value:`${le(i[l.key])} · ${r.totalTokens>0?Ge(i[l.key]/r.totalTokens,0):"–"}`}))},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}var jf="";function dq({hourly:r,providers:i,stale:l}){let[c,f]=Po.useState(jf),y=c===jf||i.some((h)=>h.provider===c)?c:jf,g=Po.useMemo(()=>{let h=Array.from({length:24},()=>0),x=Array.from({length:24},()=>0),m=Array.from({length:24},()=>0);for(let w of r){if(y!==jf&&w.provider!==y)continue;h[w.hour]+=w.totalTokens,x[w.hour]+=w.outputTokens,m[w.hour]+=w.requests}let S=0;for(let w=1;w<24;w++)if(h[w]>h[S])S=w;let C=h[S]>0;return{series:[{key:"tokens",label:u("common.tokens"),color:"var(--chart-primary)",values:h.map((w,I)=>C&&I===S?null:w)},{key:"peak",label:u("providers.tokens-peak-hour"),color:"var(--chart-secondary)",values:h.map((w,I)=>C&&I===S?w:null)}],output:x,requests:m,peak:S,hasData:C}},[r,y]),v=(h)=>`${String(h).padStart(2,"0")}:00`;return oe.jsxDEV(ge,{index:3,title:u("providers.peak-burn-hours"),description:g.hasData?u("providers.peak-hours-description",{hour:v(g.peak)}):u("providers.hours-description"),actions:oe.jsxDEV("select",{className:"input providers-select",value:y,onChange:(h)=>f(h.target.value),"aria-label":u("common.provider"),children:[oe.jsxDEV("option",{value:jf,children:u("providers.all-providers")},void 0,!1,void 0,this),i.map((h)=>oe.jsxDEV("option",{value:h.provider,children:h.provider},h.provider,!1,void 0,this))]},void 0,!0,void 0,this),stale:l,children:oe.jsxDEV(hr,{slots:24,tickLabel:(h)=>String(h).padStart(2,"0"),tooltipTitle:(h)=>`${v(h)}–${v((h+1)%24)}`,series:g.series,height:260,showTotal:!1,formatTooltip:M,emptyLabel:u("providers.no-activity-in-range"),tooltipExtra:(h)=>oe.jsxDEV(oe.Fragment,{children:[oe.jsxDEV("div",{className:"chart-tooltip-row",children:[oe.jsxDEV("span",{className:"chart-tooltip-label",children:u("common.output")},void 0,!1,void 0,this),oe.jsxDEV("span",{className:"chart-tooltip-value",children:M(g.output[h])},void 0,!1,void 0,this)]},void 0,!0,void 0,this),oe.jsxDEV("div",{className:"chart-tooltip-row",children:[oe.jsxDEV("span",{className:"chart-tooltip-label",children:u("common.requests")},void 0,!1,void 0,this),oe.jsxDEV("span",{className:"chart-tooltip-value",children:M(g.requests[h])},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 cq({insights:r,selected:i,onSelect:l}){return oe.jsxDEV(Ut,{rows:r,rowKey:(c)=>`${c.provider}::${c.windowKey}`,columns:fq,initialSort:{key:"consumed",dir:"desc"},limit:12,selectedKey:i?`${i.provider}::${i.windowKey}`:null,onRowClick:(c)=>l({provider:c.provider,windowKey:c.windowKey}),empty:oe.jsxDEV(mt,{title:u("providers.no-snapshots-in-range"),hint:u("providers.snapshot-hint")},void 0,!1,void 0,this)},void 0,!1,void 0,this)}var fq=[{key:"window",header:u("providers.window"),sort:(r)=>`${r.provider} ${r.windowKey}`,render:(r)=>oe.jsxDEV(lo,{primary:r.windowKey,secondary:oe.jsxDEV("span",{className:"mono",children:r.provider},void 0,!1,void 0,this)},void 0,!1,void 0,this)},{key:"accounts",header:u("providers.accounts"),title:u("providers.accounts-title"),align:"right",sort:(r)=>r.accounts,render:(r)=>oe.jsxDEV("span",{className:"num",children:M(r.accounts)},void 0,!1,void 0,this)},{key:"cycles",header:u("providers.resets"),title:u("providers.resets-title"),align:"right",sort:(r)=>r.cycles,render:(r)=>oe.jsxDEV("span",{className:"num muted",children:M(r.cycles)},void 0,!1,void 0,this)},{key:"consumed",header:u("providers.windows-burned"),title:u("providers.windows-burned-title"),align:"right",sort:(r)=>r.fractionConsumed,render:(r)=>oe.jsxDEV("span",{className:"num",children:r.fractionConsumed.toFixed(2)},void 0,!1,void 0,this)},{key:"capacity",header:u("providers.tokens-per-window"),title:u("providers.tokens-per-window-title"),align:"right",sort:(r)=>r.estTokensPerWindow??-1,render:(r)=>r.estTokensPerWindow!==null?oe.jsxDEV("span",{className:"num",children:le(r.estTokensPerWindow)},void 0,!1,void 0,this):oe.jsxDEV("span",{className:"dim",title:u("providers.too-little-consumed"),children:"–"},void 0,!1,void 0,this)},{key:"peak",header:u("providers.peak-utilization"),title:u("providers.peak-utilization-title"),align:"right",sort:(r)=>r.peakConcurrentFraction,render:(r)=>{let i=r.accounts>0?r.peakConcurrentFraction/r.accounts:0;return oe.jsxDEV(Ra,{value:r.peakConcurrentFraction,max:r.accounts,display:Ge(r.peakConcurrentFraction,0),color:i>=0.9?"var(--warn)":void 0},void 0,!1,void 0,this)}},{key:"ideal",header:u("providers.accounts-needed"),title:u("providers.accounts-needed-title"),align:"right",sort:(r)=>r.idealAccounts-r.accounts,render:(r)=>r.idealAccounts>r.accounts?oe.jsxDEV(yt,{tone:"warn",mono:!0,children:u("providers.ideal-accounts",{ideal:M(r.idealAccounts),have:M(r.accounts)})},void 0,!1,void 0,this):oe.jsxDEV("span",{className:"num",children:M(r.idealAccounts)},void 0,!1,void 0,this)},{key:"exhausted",header:u("providers.exhaustions"),title:u("providers.exhaustions-title"),align:"right",sort:(r)=>r.exhaustedEvents,render:(r)=>r.exhaustedEvents>0?oe.jsxDEV(yt,{tone:"warn",mono:!0,children:u("providers.exhausted-n",{count:M(r.exhaustedEvents)})},void 0,!1,void 0,this):oe.jsxDEV("span",{className:"num dim",children:"0"},void 0,!1,void 0,this)}],sg=60000,Rs=60*sg,lg=24*Rs,pq=[5*sg,15*sg,30*sg,Rs,2*Rs,3*Rs,6*Rs,12*Rs,lg],mq=240,hq=6*Rs;function gq({insights:r,accounts:i,selected:l,onSelect:c}){let[f,y]=Or(),g=Po.useMemo(()=>[...new Set((r??[]).map((w)=>w.provider))],[r]),v=Po.useMemo(()=>(r??[]).filter((w)=>w.provider===l?.provider).map((w)=>({key:w.windowKey,label:w.windowKey})),[r,l?.provider]),h=Po.useMemo(()=>(i.data?.usageSeries??[]).filter((w)=>w.provider===l?.provider),[i.data,l?.provider]),x=h.length===0&&(i.loading||i.stale),m=Po.useMemo(()=>{let w=new Map;for(let R of h){let N=w.get(R.accountLabel)??[];if(!N.includes(R.accountKey))N.push(R.accountKey);w.set(R.accountLabel,N)}let I=new Map;for(let[R,N]of w)N.sort(),N.forEach((P,V)=>I.set(P,N.length>1?`${R} #${V+1}`:R));return I},[h]),S=Po.useMemo(()=>yq(h.filter((w)=>w.windowKey===l?.windowKey),m),[h,m,l?.windowKey]),C=Po.useMemo(()=>{let w=new Map(S.series.map((I)=>[I.key,I.color]));return h.map((I)=>{let R=null,N=null;for(let K of I.points){if(K.usedFraction===null)continue;if(N=Math.max(N??0,K.usedFraction),!R||K.timestamp>=R.timestamp)R={fraction:K.usedFraction,exhausted:K.exhausted,timestamp:K.timestamp}}let P=I.windowKey===l?.windowKey?w.get(I.accountKey)??null:null,V=m.get(I.accountKey)??I.accountLabel;return{series:I,name:V,color:P,latest:R,peak:N,samples:I.points.length}}).sort((I,R)=>Number(R.color!==null)-Number(I.color!==null)||I.series.windowKey.localeCompare(R.series.windowKey)||(R.latest?.fraction??-1)-(I.latest?.fraction??-1))},[h,m,S.series,l?.windowKey]),T=v.find((w)=>w.key===l?.windowKey)?.label;return oe.jsxDEV(ge,{index:5,title:u("providers.utilization"),description:S.buckets.length>0?u("providers.utilization-description",{window:T??u("providers.window"),from:mx(S.first),to:mx(S.last)}):u("providers.utilization-description-plain"),actions:l&&oe.jsxDEV("div",{className:"row",style:{gap:6},children:[oe.jsxDEV("select",{className:"input providers-select",value:l.provider,onChange:(w)=>{let I=w.target.value,R=r?.find((N)=>N.provider===I);if(R)c({provider:I,windowKey:R.windowKey})},"aria-label":u("common.provider"),children:g.map((w)=>oe.jsxDEV("option",{value:w,children:w},w,!1,void 0,this))},void 0,!1,void 0,this),oe.jsxDEV("select",{className:"input providers-select",value:l.windowKey,onChange:(w)=>c({provider:l.provider,windowKey:w.target.value}),"aria-label":u("providers.window"),children:v.map((w)=>oe.jsxDEV("option",{value:w.key,children:w.label},w.key,!1,void 0,this))},void 0,!1,void 0,this)]},void 0,!0,void 0,this),stale:i.stale,children:r===null?oe.jsxDEV(Et,{height:260},void 0,!1,void 0,this):l===null?oe.jsxDEV(mt,{title:u("providers.no-snapshots-in-range"),hint:u("providers.snapshot-hint")},void 0,!1,void 0,this):oe.jsxDEV(_e,{query:i,skeleton:oe.jsxDEV(Et,{height:260},void 0,!1,void 0,this),children:()=>x?oe.jsxDEV(Et,{height:260},void 0,!1,void 0,this):oe.jsxDEV("div",{className:"stack",style:{gap:16},children:[oe.jsxDEV("div",{className:"stack",style:{gap:12},children:[oe.jsxDEV(hr,{slots:S.buckets.length,tickLabel:(w)=>Bh(S.buckets[w],S.last-S.first>lg?lg:S.bucketMs),tooltipTitle:(w)=>Zu(S.buckets[w],Rs),series:S.series,hidden:f,kind:"line",stacked:!1,height:260,yMax:Math.max(1,S.max),format:(w)=>Ge(w,0),formatTooltip:(w)=>Ge(w,1),references:[{value:1,label:"100%"}],emptyLabel:u("providers.no-utilization-readings"),tooltipExtra:(w)=>{let I=S.exhausted[w];return I.length>0?oe.jsxDEV("div",{className:"chart-tooltip-row",children:[oe.jsxDEV("span",{className:"chart-tooltip-label tone-bad",children:u("providers.exhausted")},void 0,!1,void 0,this),oe.jsxDEV("span",{className:"chart-tooltip-value",children:I.join(", ")},void 0,!1,void 0,this)]},void 0,!0,void 0,this):null}},void 0,!1,void 0,this),S.series.length>1&&oe.jsxDEV(ra,{items:S.series.map((w)=>({key:w.key,label:w.label,color:w.color})),hidden:f,onToggle:y},void 0,!1,void 0,this)]},void 0,!0,void 0,this),oe.jsxDEV("div",{className:"providers-accounts",children:oe.jsxDEV(Ut,{rows:C,rowKey:(w)=>`${w.series.windowKey}::${w.series.accountKey}`,columns:bq,limit:16,onRowClick:(w)=>c({provider:w.series.provider,windowKey:w.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 yq(r,i){let{POSITIVE_INFINITY:l,NEGATIVE_INFINITY:c}=Number;for(let T of r)for(let w of T.points){if(w.timestamp<l)l=w.timestamp;if(w.timestamp>c)c=w.timestamp}if(!(c>=l))return{buckets:[],bucketMs:Rs,first:0,last:0,max:0,series:[],exhausted:[]};let f=c-l,y=pq.find((T)=>f/T<mq)??lg,g=eo("all",[l],y,c),v=(T)=>Math.floor((T-g[0])/y),h=g.map(()=>[]),x=0,m=(T)=>i.get(T.accountKey)??T.accountLabel,C=[...r].sort((T,w)=>m(T).localeCompare(m(w))).map((T,w)=>{let I=g.map(()=>null),R=g.map(()=>0);for(let V of T.points){let K=v(V.timestamp);if(K<0||K>=g.length)continue;if(V.exhausted&&!h[K].includes(m(T)))h[K].push(m(T));if(V.usedFraction===null||V.timestamp<R[K])continue;I[K]=V.usedFraction,R[K]=V.timestamp,x=Math.max(x,V.usedFraction)}let N=null,P=0;for(let V=0;V<g.length;V++)if(I[V]!==null)N=I[V],P=R[V];else if(N!==null&&g[V]-P<=hq)I[V]=N;return{key:T.accountKey,label:m(T),color:Ka[w%Ka.length],values:I}});return{buckets:g,bucketMs:y,first:l,last:c,max:x,series:C,exhausted:h}}function vq(r){if(!r)return oe.jsxDEV("span",{className:"dim",children:u("providers.no-reading")},void 0,!1,void 0,this);if(r.exhausted)return oe.jsxDEV(yt,{tone:"bad",children:u("providers.exhausted")},void 0,!1,void 0,this);if(r.fraction>=0.8)return oe.jsxDEV(yt,{tone:"warn",children:u("providers.high")},void 0,!1,void 0,this);return oe.jsxDEV(yt,{tone:"ok",children:u("ui.status-ok")},void 0,!1,void 0,this)}var bq=[{key:"account",header:u("providers.account"),sort:(r)=>r.name,render:(r)=>oe.jsxDEV("span",{className:"row",style:{gap:8},children:[oe.jsxDEV("span",{className:"providers-swatch-slot",children:r.color&&oe.jsxDEV(Zr,{color:r.color},void 0,!1,void 0,this)},void 0,!1,void 0,this),oe.jsxDEV("span",{className:"truncate providers-account",title:r.series.accountKey,children:r.name},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},{key:"window",header:u("providers.window"),sort:(r)=>r.series.windowKey,render:(r)=>oe.jsxDEV("span",{className:r.color?void 0:"muted",children:r.series.windowKey},void 0,!1,void 0,this)},{key:"latest",header:u("providers.latest-used"),align:"right",sort:(r)=>r.latest?.fraction??-1,render:(r)=>r.latest?oe.jsxDEV(Ra,{value:r.latest.fraction,max:1,display:Ge(r.latest.fraction,0),color:r.latest.exhausted?"var(--bad)":r.latest.fraction>=0.8?"var(--warn)":"var(--ok)"},void 0,!1,void 0,this):oe.jsxDEV("span",{className:"dim",children:"–"},void 0,!1,void 0,this)},{key:"status",header:u("providers.status"),sort:(r)=>r.latest?.exhausted?2:(r.latest?.fraction??0)>=0.8?1:0,render:(r)=>vq(r.latest)},{key:"peak",header:u("providers.peak-in-range"),align:"right",sort:(r)=>r.peak??-1,render:(r)=>oe.jsxDEV("span",{className:"num",children:r.peak===null?"–":Ge(r.peak,0)},void 0,!1,void 0,this)},{key:"samples",header:u("providers.snapshots"),align:"right",sort:(r)=>r.samples,render:(r)=>oe.jsxDEV("span",{className:"num muted",children:M(r.samples)},void 0,!1,void 0,this)},{key:"recorded",header:u("providers.recorded"),align:"right",sort:(r)=>r.latest?.timestamp??0,render:(r)=>oe.jsxDEV("span",{className:"muted",children:r.latest?La(r.latest.timestamp):"–"},void 0,!1,void 0,this)}];var _i=_(Qe(),1);var dt=_(ae(),1),ig={ok:{label:u("ui.status-ok"),tone:"ok"},aborted:{label:u("common.aborted"),tone:"warn"},failed:{label:u("common.failed"),tone:"bad"}};function k2({id:r,onClose:i}){let l=Ft(["request",r],({signal:y})=>JT(r??0,y),{enabled:r!==null}),c=l.stale?null:l.data,f=c?ig[Ts(c)]:null;return dt.jsxDEV(Ju,{open:r!==null,onClose:i,width:620,title:c?dt.jsxDEV("span",{className:"mono",children:c.model},void 0,!1,void 0,this):u("common.request"),subtitle:c?dt.jsxDEV(dt.Fragment,{children:[c.provider," ·"," ",dt.jsxDEV("span",{title:Bo(c.timestamp),children:La(c.timestamp)},void 0,!1,void 0,this)]},void 0,!0,void 0,this):r!==null?dt.jsxDEV("span",{className:"mono",children:["#",r]},void 0,!0,void 0,this):void 0,actions:c&&f?dt.jsxDEV("div",{className:"row",style:{gap:6},children:[dt.jsxDEV("a",{className:"btn","data-size":"sm","data-variant":"ghost",href:Zh({...Pf(window.location.hash),section:"traces",session:c.sessionFile}),onClick:i,title:u("ui.open-trace"),children:[dt.jsxDEV(gf,{size:13},void 0,!1,void 0,this)," Trace"]},void 0,!0,void 0,this),dt.jsxDEV(yt,{tone:f.tone,children:f.label},void 0,!1,void 0,this)]},void 0,!0,void 0,this):void 0,children:c?dt.jsxDEV(xq,{details:c,aborted:Ts(c)==="aborted"},void 0,!1,void 0,this):l.error?dt.jsxDEV(Nl,{error:l.error,onRetry:l.refetch},void 0,!1,void 0,this):dt.jsxDEV("div",{className:"stack",style:{gap:12},children:[dt.jsxDEV(to,{height:56},void 0,!1,void 0,this),dt.jsxDEV(to,{height:120},void 0,!1,void 0,this),dt.jsxDEV(to,{height:120},void 0,!1,void 0,this),dt.jsxDEV(to,{height:220},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)}function xq({details:r,aborted:i}){let{usage:l}=r,c=r.duration!==null&&r.duration>0&&l.output>0?l.output*1000/r.duration:null,{messages:f,output:y,...g}=r;return dt.jsxDEV(dt.Fragment,{children:[r.errorMessage&&dt.jsxDEV("section",{className:"request-drawer-error","data-tone":i?"warn":"bad",role:"note",children:[dt.jsxDEV("div",{className:"request-drawer-error-label",children:i?u("common.aborted"):u("common.error")},void 0,!1,void 0,this),dt.jsxDEV("pre",{className:"request-drawer-error-text",children:r.errorMessage},void 0,!1,void 0,this)]},void 0,!0,void 0,this),dt.jsxDEV("section",{children:[dt.jsxDEV("div",{className:"section-label",children:u("ui.section-timing")},void 0,!1,void 0,this),dt.jsxDEV(Oo,{items:[{key:"at",label:u("common.started"),value:Bo(r.timestamp)},{key:"duration",label:u("common.duration"),value:Lt(r.duration)},{key:"ttft",label:u("ui.time-to-first-token"),value:Lt(r.ttft)},{key:"tps",label:u("common.output-tokens-per-second"),value:_n(c)}]},void 0,!1,void 0,this)]},void 0,!0,void 0,this),dt.jsxDEV("section",{children:[dt.jsxDEV("div",{className:"section-label",children:u("common.tokens")},void 0,!1,void 0,this),dt.jsxDEV(Oo,{items:[{key:"input",label:u("ui.uncached-input"),value:M(l.input)},{key:"cacheRead",label:u("common.cache-read"),value:M(l.cacheRead)},{key:"cacheWrite",label:u("common.cache-write"),value:M(l.cacheWrite)},{key:"output",label:u("common.output"),value:M(l.output)},{key:"total",label:u("common.total"),value:M(l.totalTokens)},{key:"premium",label:u("common.premium-requests"),value:M(Math.round((l.premiumRequests??0)*100)/100)}]},void 0,!1,void 0,this)]},void 0,!0,void 0,this),dt.jsxDEV("section",{children:[dt.jsxDEV("div",{className:"section-label",children:u("ui.section-cost")},void 0,!1,void 0,this),dt.jsxDEV(Oo,{items:[{key:"total",label:"Total",value:ql(r,4)},{key:"input",label:u("common.input"),value:Ot(l.cost.input,4)},{key:"cacheRead",label:"Cache read",value:Ot(l.cost.cacheRead,4)},{key:"cacheWrite",label:"Cache write",value:Ot(l.cost.cacheWrite,4)},{key:"output",label:"Output",value:Ot(l.cost.output,4)}]},void 0,!1,void 0,this)]},void 0,!0,void 0,this),dt.jsxDEV("section",{children:[dt.jsxDEV("div",{className:"section-label",children:u("ui.section-identity")},void 0,!1,void 0,this),dt.jsxDEV(Oo,{items:[{key:"id",label:u("common.request-id"),value:r.id??"–"},{key:"entry",label:u("common.entry-id"),value:r.entryId},{key:"stop",label:u("ui.stop-reason"),value:r.stopReason},{key:"api",label:"API",value:r.api},{key:"project",label:u("common.project"),value:dt.jsxDEV("span",{title:r.folder,children:qr(r.folder)},void 0,!1,void 0,this)}]},void 0,!1,void 0,this),dt.jsxDEV("div",{className:"request-drawer-file",children:[dt.jsxDEV("span",{className:"kv-key",children:u("ui.session-file")},void 0,!1,void 0,this),dt.jsxDEV("span",{className:"kv-value",children:r.sessionFile},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),y!=null&&dt.jsxDEV(ed,{data:y,title:u("common.output-message")},void 0,!1,void 0,this),dt.jsxDEV(ed,{data:f,title:u("common.session-entry"),initialCollapsed:!0},void 0,!1,void 0,this),dt.jsxDEV(ed,{data:g,title:u("ui.stats-row"),initialCollapsed:!0},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}var st=_(ae(),1),Rx=[500,2000,1e4];function L2({active:r,range:i,onRequestClick:l}){let[c,f]=_i.useState(0),y=Rx[c],g=Ft(["requests-log",y],({signal:K})=>zh(y,K),{enabled:r}),[v,h]=_i.useState(""),[x,m]=_i.useState("all"),S=Jt(i),C=_i.useMemo(()=>{let K=g.data??[],de=S.spanMs===null?null:Date.now()-S.spanMs,W=de===null?K:K.filter((H)=>H.timestamp>=de),fe=!g.stale&&(K.length<y||de!==null&&W.length<K.length),ee={all:W.length,ok:0,aborted:0,failed:0};for(let H of W)ee[Ts(H)]++;return{loaded:K.length,inRange:W,complete:fe,counts:ee,summary:t2(W)}},[g.data,g.stale,y,S.spanMs]),T=_i.useMemo(()=>{let K=v.trim().toLowerCase();return C.inRange.filter((de)=>(x==="all"||Ts(de)===x)&&(K===""||de.model.toLowerCase().includes(K)||de.provider.toLowerCase().includes(K)||de.folder.toLowerCase().includes(K)))},[C.inRange,v,x]),{summary:w,counts:I,complete:R}=C,N=c+1<Rx.length?Rx[c+1]:null,P=N!==null?st.jsxDEV("button",{type:"button",className:"btn","data-size":"sm",disabled:g.refreshing,onClick:()=>f(c+1),children:g.refreshing&&g.stale?u("requests.loading"):u("requests.load-latest",{count:M(N)})},void 0,!1,void 0,this):void 0,V=["all","ok","aborted","failed"].map((K)=>({value:K,label:st.jsxDEV(st.Fragment,{children:[K==="all"?u("requests.status-all"):ig[K].label," ",st.jsxDEV("span",{className:"dim num",children:le(I[K])},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}));return st.jsxDEV("div",{className:"page",children:[st.jsxDEV(ma,{title:u("common.requests"),description:u("requests.description",{window:u(S.windowKey)})},void 0,!1,void 0,this),st.jsxDEV(_e,{query:g,skeleton:st.jsxDEV(to,{height:96,style:{borderRadius:12}},void 0,!1,void 0,this),children:()=>st.jsxDEV("div",{"data-stale":g.stale,children:st.jsxDEV(Sa,{min:160,children:[st.jsxDEV(ue,{label:u("common.requests"),value:M(w.requests),hint:w.oldest===null?u("requests.none-in-window",{window:u(S.windowKey)}):u("requests.since",{time:La(w.oldest)})},void 0,!1,void 0,this),st.jsxDEV(ue,{label:u("common.failed"),value:M(w.failed),hint:u("requests.failed-hint",{rate:w.requests>0?Co(w.failed/w.requests):"–",count:M(w.aborted)})},void 0,!1,void 0,this),st.jsxDEV(ue,{label:u("common.tokens"),title:u("requests.tokens-hint"),value:le(w.tokens)},void 0,!1,void 0,this),st.jsxDEV(ue,{label:u("requests.api-equivalent-cost"),title:u("requests.cost-hint"),value:ea(w.cost,w.unpriced),hint:w.unpriced>0?u("requests.unpriced-n",{count:M(w.unpriced)}):void 0},void 0,!1,void 0,this),st.jsxDEV(ue,{label:u("requests.median-duration"),value:Lt(w.medianDuration),hint:u("requests.p95",{value:Lt(w.p95Duration)})},void 0,!1,void 0,this),st.jsxDEV(ue,{label:u("requests.median-ttft"),title:u("requests.ttft-hint"),value:Lt(w.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),st.jsxDEV(ge,{index:1,title:u("requests.log-title"),description:g.data===null?u("requests.log-loading"):R?u("requests.log-count-in-window",{shown:M(T.length),total:M(w.requests),window:u(S.windowKey)}):u("requests.log-count-latest",{shown:M(T.length),total:M(w.requests)}),actions:st.jsxDEV(st.Fragment,{children:[st.jsxDEV(Un,{value:v,onChange:h,placeholder:u("requests.search-placeholder")},void 0,!1,void 0,this),st.jsxDEV(Na,{size:"sm","aria-label":u("requests.status"),options:V,value:x,onChange:m},void 0,!1,void 0,this)]},void 0,!0,void 0,this),flush:!0,stale:g.stale,footer:g.data!==null&&!R?st.jsxDEV(st.Fragment,{children:[st.jsxDEV("span",{children:u("requests.footer",{count:M(C.loaded),time:w.oldest===null?"–":Bo(w.oldest),window:u(S.windowKey)})},void 0,!1,void 0,this),P]},void 0,!0,void 0,this):void 0,children:st.jsxDEV(_e,{query:g,skeleton:st.jsxDEV(ka,{rows:12},void 0,!1,void 0,this),children:()=>st.jsxDEV(Ut,{rows:T,rowKey:(K)=>K.id??`${K.sessionFile}:${K.entryId}`,onRowClick:(K)=>K.id!==void 0&&l(K.id),columns:Sq,initialSort:{key:"time",dir:"desc"},limit:100,dense:!0,empty:st.jsxDEV(mt,{title:w.requests===0?u("requests.empty-in-window",{window:u(S.windowKey)}):u("requests.empty-no-match"),hint:w.requests===0?void 0:u("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 Sq=[{key:"model",header:u("common.model"),sort:(r)=>r.model,render:(r)=>st.jsxDEV(lo,{primary:st.jsxDEV("span",{className:"mono",children:r.model},void 0,!1,void 0,this),secondary:r.provider},void 0,!1,void 0,this)},{key:"time",header:u("requests.when"),sort:(r)=>r.timestamp,render:(r)=>st.jsxDEV("span",{className:"muted",title:Bo(r.timestamp),children:La(r.timestamp)},void 0,!1,void 0,this)},{key:"project",header:u("common.project"),sort:(r)=>r.folder,render:(r)=>st.jsxDEV("span",{className:"mono muted truncate",title:r.folder,style:{display:"block",maxWidth:180},children:qr(r.folder)},void 0,!1,void 0,this)},{key:"input",header:u("common.input"),title:u("requests.uncached-input"),align:"right",sort:(r)=>r.usage.input,render:(r)=>st.jsxDEV("span",{className:"num",children:le(r.usage.input)},void 0,!1,void 0,this)},{key:"cache",header:u("common.cache-read"),title:u("requests.cache-read-title"),align:"right",sort:(r)=>r.usage.cacheRead,render:(r)=>st.jsxDEV("span",{className:"num",title:u("requests.cache-write",{count:M(r.usage.cacheWrite)}),children:le(r.usage.cacheRead)},void 0,!1,void 0,this)},{key:"output",header:u("common.output"),align:"right",sort:(r)=>r.usage.output,render:(r)=>st.jsxDEV("span",{className:"num",children:le(r.usage.output)},void 0,!1,void 0,this)},{key:"cost",header:u("common.cost"),title:u("requests.cost-estimate"),align:"right",sort:(r)=>r.usage.cost.total,render:(r)=>st.jsxDEV("span",{className:"num",children:ql(r,4)},void 0,!1,void 0,this)},{key:"duration",header:u("common.duration"),align:"right",sort:(r)=>r.duration??-1,render:(r)=>st.jsxDEV("span",{className:"num",children:Lt(r.duration)},void 0,!1,void 0,this)},{key:"ttft",header:u("requests.ttft"),title:u("requests.ttft-hint"),align:"right",sort:(r)=>r.ttft??-1,render:(r)=>st.jsxDEV("span",{className:"num muted",children:Lt(r.ttft)},void 0,!1,void 0,this)},{key:"status",header:u("requests.status"),sort:(r)=>Ts(r),render:(r)=>{let i=ig[Ts(r)];return st.jsxDEV("span",{title:r.errorMessage??void 0,children:st.jsxDEV(lo,{lead:st.jsxDEV(Pn,{tone:i.tone},void 0,!1,void 0,this),primary:i.label,secondary:st.jsxDEV("span",{className:"mono",children:r.stopReason},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this)}}];var tR=_(Qe(),1);var C2=["January","February","March","April","May","June","July","August","September","October","November","December"],w2=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],kq=["MMMM","yyyy","EEEE","MMM","EEE","yy","MM","dd","HH","hh","mm","ss","M","d","H","h","m","s","a"];function Bl(r,i=2){return String(r).padStart(i,"0")}function Lq(r,i){let l=r.getMonth(),c=r.getDay(),f=r.getHours(),y=f%12||12;switch(i){case"yyyy":return Bl(r.getFullYear(),4);case"yy":return Bl(r.getFullYear()%100);case"MMMM":return C2[l];case"MMM":return C2[l].slice(0,3);case"MM":return Bl(l+1);case"M":return String(l+1);case"dd":return Bl(r.getDate());case"d":return String(r.getDate());case"EEEE":return w2[c];case"EEE":return w2[c].slice(0,3);case"HH":return Bl(f);case"H":return String(f);case"hh":return Bl(y);case"h":return String(y);case"mm":return Bl(r.getMinutes());case"m":return String(r.getMinutes());case"ss":return Bl(r.getSeconds());case"s":return String(r.getSeconds());case"a":return f<12?"AM":"PM"}}function Cq(r){let i=r instanceof Date?new Date(r.getTime()):new Date(r);if(Number.isNaN(i.getTime()))throw RangeError("Invalid time value");return i}function T2(r,i){let l=Cq(r),c="";for(let f=0;f<i.length;){if(i[f]==="'"){if(i[f+1]==="'"){c+="'",f+=2;continue}f++;while(f<i.length){if(i[f]!=="'"){c+=i[f++];continue}if(i[f+1]==="'"){c+="'",f+=2;continue}f++;break}continue}let y=i.slice(f),g=kq.find((h)=>y.startsWith(h));if(g){c+=Lq(l,g),f+=g.length;continue}let v=i[f++];if(/[A-Za-z]/.test(v))throw RangeError(`Format string contains an unescaped latin alphabet character \`${v}\``);c+=v}return c}var $f=_(Qe(),1);var ug=["artifact","reread","rerun"],Ms={artifact:{label:"Artifact dive",plural:"Artifact dives",icon:Jc,color:"var(--spot-artifact)",rule:"A later call read or searched an artifact the shortened result named"},reread:{label:"Re-read",plural:"Re-reads",icon:ff,color:"var(--spot-reread)",rule:"A later read of the same file overlapping the hidden lines, or the whole file again"},rerun:{label:"Rerun",plural:"Reruns",icon:If,color:"var(--spot-rerun)",rule:"A call of the same tool within 12 calls repeating the shortened one: a bash command the same, with a pipe or redirect added, or ≥ 60% shared tokens; any other tool with ≥ 60% shared argument tokens"}};function Hi(r){return r.gross.byTool.map((i)=>i.tool)}var wq=6,Br="other";function Xo(r,i=wq){if(r.length<=i+1)return{listed:r,rest:[]};return{listed:r.slice(0,i),rest:r.slice(i)}}var Ba={applied:{label:"Shortened",color:"var(--spot-applied)",shape:"dot",rule:"Spotlight scored the result, shaping shortened it and the model saw the cut"},scoreFree:{label:"Score-free",color:"var(--spot-score-free)",shape:"square",rule:"A random coin skipped Spotlight: the no-score fallback rules shortened it and the model saw the cut"},holdout:{label:"Held out",color:"var(--spot-holdout)",shape:"ring",rule:"Spotlight would have shortened it, but it was held out at random and the model saw it whole"},reference:{label:"Unchanged",color:"var(--spot-reference)",shape:"diamond",rule:"Results shaping left unchanged, re-weighted to the cuts' original-size mix"},gated:{label:"Gated",color:"var(--spot-gated)",shape:"ring",rule:"A read pi's former edit gate (removed) kept whole: the model saw it uncut"}},Mx=["applied","scoreFree","holdout","gated","reference"],dg=["<250","250–1k","1k–4k","≥4k"],R2=["1","2","3","4–6","7–12"],I2={read:pf,bash:Ml,eval:kl,grep:Ef,find:Ss,glob:hf,edit:Il,write:cf,web_search:yf,task:nf,todo:kf,wait:vf,fetch:Cl,lsp:Tf,[Br]:wl};function zr(r){return Object.hasOwn(I2,r)?I2[r]:Ei}function cg(r){if(r>=86400000)return"day";if(r>=3600000)return"hour";return`${Math.round(r/60000)} minutes`}function io(r){return r<0?`−${le(-r)}`:le(r)}function gr(r){return r<0?`−${Ot(-r)}`:Ot(r)}function jn(r,i){return r.lo===null||r.hi===null?"":`${i(r.lo)}–${i(r.hi)}`}function Qt(r){if(r===null||!Number.isFinite(r))return"–";if(r===0)return"0%";let i=Math.abs(r*100);return`${r<0?"−":""}${i>=10?i.toFixed(0):i.toFixed(1)}%`}var Ze=_(ae(),1);function Tq(r){let i=r.agentType==="main",l=(r.sessionFile.split("/").pop()??"").replace(/\.jsonl$/,""),c=r.title?.trim()||(i?qr(r.folder):l);return`${i?c:`↳ ${c} (${r.agentType})`} · ${le(r.savedTokens)} saved`}function M2({stats:r,active:i,stale:l}){let{compounding:c}=r,[f,y]=$f.useState(null),g=r.sessionList,v=g.find((w)=>w.savedTokens>0)??g[0],h=f!==null&&g.some((w)=>w.sessionFile===f)?f:v?.sessionFile,x=Ft(["spotlight-session",h??null],({signal:w})=>dI(h??"",w),{enabled:i&&h!==void 0}),m=c.avoidedTokens-c.recoveredCarriedTokens,S=r.gross.savedTokens>0?c.avoidedTokens/r.gross.savedTokens:null,C=x.data?.points,T=$f.useMemo(()=>{if(!C)return null;let w=0,I=0;for(let R of C)w+=R.withoutTokens-R.contextTokens,I+=R.withoutTokens;return I>0?{share:w/I,tokens:w}:null},[C]);return Ze.jsxDEV(ge,{index:3,title:"Compounding",description:"A cut is never re-read: each later request of the session carries a smaller context",actions:g.length>0&&Ze.jsxDEV("select",{className:"input spot-session-select","aria-label":"Session",value:h??"",onChange:(w)=>y(w.target.value),children:g.map((w)=>Ze.jsxDEV("option",{value:w.sessionFile,children:Tq(w)},w.sessionFile,!1,void 0,this))},void 0,!1,void 0,this),stale:l,footer:"Context = input + cache read + cache write of each request. A compaction is a request whose context is under 60% of the previous one's; it ends the carry.",children:Ze.jsxDEV("div",{className:"spot-compounding",children:[Ze.jsxDEV("div",{className:"spot-compounding-chart",children:h===void 0?Ze.jsxDEV(mt,{title:"No experiment sessions in this range"},void 0,!1,void 0,this):x.data===null?x.error?Ze.jsxDEV(Nl,{error:x.error,onRetry:x.refetch},void 0,!1,void 0,this):Ze.jsxDEV(Et,{height:280},void 0,!1,void 0,this):Ze.jsxDEV(Mq,{context:x.data,stale:x.stale},void 0,!1,void 0,this)},void 0,!1,void 0,this),Ze.jsxDEV("aside",{className:"spot-compounding-side",children:[Ze.jsxDEV("div",{className:"spot-eyebrow",children:"Context avoided in this session"},void 0,!1,void 0,this),Ze.jsxDEV("div",{className:"spot-side-value",children:Qt(T?.share??null)},void 0,!1,void 0,this),C!==void 0&&Ze.jsxDEV("p",{className:"spot-side-copy",children:T===null?"This session has no recorded requests.":`of what its requests would have carried without Spotlight: ${io(T.tokens)} prompt tokens, net of recoveries.`},void 0,!1,void 0,this),x.data&&Ze.jsxDEV(Iq,{session:x.data.session},void 0,!1,void 0,this),Ze.jsxDEV("p",{className:"spot-side-range",children:[Ze.jsxDEV("span",{className:"spot-side-range-value",children:Qt(c.avoidedShare)},void 0,!1,void 0,this)," across all the sessions shown: cuts kept ",le(Math.max(0,m))," tokens out of later requests",S!==null&&Ze.jsxDEV(Ze.Fragment,{children:[", each saved token re-sent ",S.toFixed(1)," times on average"]},void 0,!0,void 0,this),"."]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)}function Iq({session:r}){return Ze.jsxDEV("dl",{className:"spot-facts",children:[Ze.jsxDEV("div",{children:[Ze.jsxDEV("dt",{children:"Agent"},void 0,!1,void 0,this),Ze.jsxDEV("dd",{className:"row",children:Ze.jsxDEV(yt,{children:r.agentType},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),Ze.jsxDEV("div",{children:[Ze.jsxDEV("dt",{children:"Requests"},void 0,!1,void 0,this),Ze.jsxDEV("dd",{className:"num",children:M(r.requests)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),Ze.jsxDEV("div",{children:[Ze.jsxDEV("dt",{children:"Saved"},void 0,!1,void 0,this),Ze.jsxDEV("dd",{className:"num",children:io(r.savedTokens)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),Ze.jsxDEV("div",{children:[Ze.jsxDEV("dt",{children:"Net $"},void 0,!1,void 0,this),Ze.jsxDEV("dd",{className:"num",children:gr(r.netUsd)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)}var Rq=[{key:"actual",label:"Context",color:"var(--spot-gross)"},{key:"ghost",label:"Without Spotlight",color:"var(--spot-ghost)"},{key:"compaction",label:"Compaction",color:"var(--line-4)"}];function Mq({context:r,stale:i}){let{points:l}=r,c=$f.useMemo(()=>{let f=[{key:"actual",label:"Context",color:"var(--spot-gross)",kind:"area",values:l.map((g)=>g.contextTokens)},{key:"ghost",label:"Avoided",color:"var(--spot-ghost)",kind:"area",pattern:"hatch",dashed:!0,values:l.map((g)=>Math.max(0,g.withoutTokens-g.contextTokens))}],y=[];return l.forEach((g,v)=>{if(g.compacted)y.push({index:v})}),{series:f,markers:y}},[l]);if(l.length===0)return Ze.jsxDEV(mt,{title:"No requests recorded for this session"},void 0,!1,void 0,this);return Ze.jsxDEV("div",{className:"spot-context","data-stale":i,children:[Ze.jsxDEV(ra,{items:Rq},void 0,!1,void 0,this),Ze.jsxDEV(hr,{slots:l.length,series:c.series,markers:c.markers,height:280,tickLabel:(f)=>`#${f+1}`,tooltipTitle:(f)=>`Request ${f+1} · ${T2(new Date(l[f].timestamp),"MMM d HH:mm:ss")}`,formatTooltip:M,showTotal:!1,tooltipExtra:(f)=>{let y=l[f];return Ze.jsxDEV("div",{className:"spot-tooltip-extra",children:[Ze.jsxDEV("div",{className:"chart-tooltip-row chart-tooltip-total",children:[Ze.jsxDEV("span",{className:"chart-tooltip-label",children:"Without Spotlight"},void 0,!1,void 0,this),Ze.jsxDEV("span",{className:"chart-tooltip-value",children:M(y.withoutTokens)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),y.saved>0&&Ze.jsxDEV("div",{className:"chart-tooltip-row",children:[Ze.jsxDEV("span",{className:"chart-tooltip-label",children:"Cut since last request"},void 0,!1,void 0,this),Ze.jsxDEV("span",{className:"chart-tooltip-value",children:M(y.saved)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),y.recovered>0&&Ze.jsxDEV("div",{className:"chart-tooltip-row",children:[Ze.jsxDEV("span",{className:"chart-tooltip-label",children:"Fetched back"},void 0,!1,void 0,this),Ze.jsxDEV("span",{className:"chart-tooltip-value",children:M(y.recovered)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),y.compacted&&Ze.jsxDEV("div",{className:"chart-tooltip-row dim",children:"Compaction before this request"},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 Qa=_(ae(),1),fg="var(--spot-applied)",pg="var(--spot-unshaped)";function A2({stats:r,stale:i}){let l=[...r.coverage].sort((h,x)=>x.tokens-h.tokens),{listed:c,rest:f}=Xo(l),y=0,g=0;for(let h of l)if(h.shaped)y+=h.share;else g+=h.share;let v=c.map((h)=>({key:h.tool,label:Qa.jsxDEV(Qa.Fragment,{children:[Qa.jsxDEV("span",{className:"spot-coverage-tool",children:h.tool},void 0,!1,void 0,this),h.shaped&&Qa.jsxDEV(yt,{children:"shaped"},void 0,!1,void 0,this),Qa.jsxDEV("span",{className:"dim num",children:[M(h.calls)," calls"]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),value:h.share,display:`${Qt(h.share)} · ${le(h.tokens)}`,color:h.shaped?fg:pg}));if(f.length>0){let h=0,x=0,m=0;for(let S of f)h+=S.share,x+=S.tokens,m+=S.calls;v.push({key:"\x00rest",label:Qa.jsxDEV(Qa.Fragment,{children:[Qa.jsxDEV("span",{className:"spot-coverage-tool",children:[M(f.length)," more ",f.length===1?"tool":"tools"]},void 0,!0,void 0,this),Qa.jsxDEV("span",{className:"dim num",children:[M(m)," calls"]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),value:h,display:`${Qt(h)} · ${le(x)}`,color:f.some((S)=>S.shaped)?fg:pg})}return Qa.jsxDEV(ge,{index:5,title:"Not shaped yet",description:"Share of the tool output experiment sessions' models saw, by tool: the unshaped ones are where shaping could reach next",actions:Qa.jsxDEV(ra,{items:[{key:"shaped",label:"Shaped",color:fg},{key:"unshaped",label:"Not shaped",color:pg}]},void 0,!1,void 0,this),stale:i,footer:"Tokens are tool-result chars ÷ 4 over the experiment's sessions in the range; a tool counts as shaped when the experiment evaluated any of its results in the range.",children:l.length===0?Qa.jsxDEV("div",{className:"empty",children:"No tool output in this range."},void 0,!1,void 0,this):Qa.jsxDEV("div",{className:"spot-coverage",children:[Qa.jsxDEV("div",{className:"spot-coverage-summary",children:[Qa.jsxDEV("div",{className:"spot-coverage-headline",children:[Qa.jsxDEV("span",{className:"num",children:Qt(g)},void 0,!1,void 0,this)," of tool output comes from tools the experiment did not shape in this range"]},void 0,!0,void 0,this),Qa.jsxDEV(Gn,{height:8,segments:[{key:"shaped",label:"Shaped",value:y,color:fg},{key:"unshaped",label:"Not shaped",value:g,color:pg}]},void 0,!1,void 0,this)]},void 0,!0,void 0,this),Qa.jsxDEV(Ls,{items:v},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)}var Gt=_(ae(),1),Aq=30,D2=5,Dq=120;function Eq(r){return[`${r.tool}: ${M(r.cuts)} cuts`,`Saved ${le(r.savedTokens)} tokens (${Ot(r.savedUsd)})`,`Fetched back ${le(r.recoveredTokens)} tokens (${Ot(r.recoveryUsd)})`,`${M(r.extraTurns)} extra turns (${Ot(r.turnUsd)})`,`Net ${gr(r.netUsd)}`].join(`
236
- `)}function Nq(r){if(r.length===0)return;let i={tool:Br,cuts:0,savedTokens:0,recoveredTokens:0,extraTurns:0,savedUsd:0,recoveryUsd:0,turnUsd:0,netUsd:0,extraTurnsPer100Cuts:0,netUsdPer100Cuts:0};for(let l of r)i.cuts+=l.cuts,i.savedTokens+=l.savedTokens,i.recoveredTokens+=l.recoveredTokens,i.extraTurns+=l.extraTurns,i.savedUsd+=l.savedUsd,i.recoveryUsd+=l.recoveryUsd,i.turnUsd+=l.turnUsd,i.netUsd+=l.netUsd;if(i.cuts>0)i.extraTurnsPer100Cuts=i.extraTurns*100/i.cuts,i.netUsdPer100Cuts=i.netUsd*100/i.cuts;return i}function E2({stats:r,stale:i}){let l=new Set(r.economics.filter((m)=>m.cuts>0).map((m)=>m.tool)),{listed:c,rest:f}=Xo(Hi(r).filter((m)=>l.has(m))),y=new Set(f),g=new Map(r.economics.filter((m)=>!y.has(m.tool)).map((m)=>[m.tool,m])),v=Nq(r.economics.filter((m)=>y.has(m.tool)));if(v)g.set(Br,v);let h=f.length>0?[...c,Br]:c,x=0;for(let m of g.values())if(m.cuts>0)x=Math.max(x,Math.abs(m.netUsdPer100Cuts));return Gt.jsxDEV(ge,{index:3,title:"What cuts earn, by tool",description:"Net dollars per 100 cuts after fetch-backs, extra turns and Spotlight's own bill",actions:x>0&&Gt.jsxDEV("span",{className:"spot-econ-scale","aria-hidden":"true",children:[Gt.jsxDEV("span",{className:"num",children:gr(-x)},void 0,!1,void 0,this),Gt.jsxDEV("span",{className:"spot-econ-ramp"},void 0,!1,void 0,this),Gt.jsxDEV("span",{className:"num",children:gr(x)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),stale:i,footer:"Shortened results only; held-out ones save nothing. Every fetch-back counts against the cut here, the share held-out results show comes back anyway included, so this is the cautious view. An extra turn is a request whose every tool call fetched back output these cuts hid. Dollars price saved and fetched-back tokens as carried context, like Compounding.",children:h.length===0?Gt.jsxDEV("div",{className:"empty",children:"No shortened results in this range."},void 0,!1,void 0,this):Gt.jsxDEV("div",{className:"spot-econ-scroll",children:Gt.jsxDEV("table",{className:"spot-econ",style:{minWidth:`${h.length*Dq}px`},children:[Gt.jsxDEV("thead",{children:Gt.jsxDEV("tr",{children:h.map((m)=>{let S=zr(m);return Gt.jsxDEV("th",{scope:"col",title:m===Br?f.join(", "):m,children:Gt.jsxDEV("span",{className:"row spot-econ-tool",children:[Gt.jsxDEV(S,{size:13,"aria-hidden":"true"},void 0,!1,void 0,this),Gt.jsxDEV("span",{className:"spot-econ-tool-name",children:m},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},m,!1,void 0,this)})},void 0,!1,void 0,this)},void 0,!1,void 0,this),Gt.jsxDEV("tbody",{children:Gt.jsxDEV("tr",{children:h.map((m)=>{let S=g.get(m);if(S===void 0||S.cuts===0)return Gt.jsxDEV("td",{children:Gt.jsxDEV("div",{className:"spot-econ-cell","data-empty":"true",children:Gt.jsxDEV("span",{className:"dim",children:"No cuts"},void 0,!1,void 0,this)},void 0,!1,void 0,this)},m,!1,void 0,this);let C=S.netUsdPer100Cuts,T=x>0?D2+Math.sqrt(Math.abs(C)/x)*(Aq-D2):0,w=C<0?"bad":C>0?"ok":"neutral";return Gt.jsxDEV("td",{children:Gt.jsxDEV("div",{className:"spot-econ-cell","data-tone":w,style:{"--tint":`${T}%`},title:Eq(S),children:[Gt.jsxDEV("span",{className:"spot-econ-net num",children:gr(C)},void 0,!1,void 0,this),Gt.jsxDEV("dl",{className:"spot-econ-facts",children:[Gt.jsxDEV("div",{children:[Gt.jsxDEV("dt",{children:"cuts"},void 0,!1,void 0,this),Gt.jsxDEV("dd",{className:"num",children:M(S.cuts)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),Gt.jsxDEV("div",{children:[Gt.jsxDEV("dt",{children:"saved"},void 0,!1,void 0,this),Gt.jsxDEV("dd",{className:"num",children:le(S.savedTokens)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),Gt.jsxDEV("div",{children:[Gt.jsxDEV("dt",{children:"extra turns /100"},void 0,!1,void 0,this),Gt.jsxDEV("dd",{className:"num",children:S.extraTurnsPer100Cuts.toFixed(1)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)},m,!1,void 0,this)})},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)}var Dx=_(Qe(),1);var As=_(ae(),1);function Xf({groups:r}){return As.jsxDEV("div",{className:"legend spot-group-legend",children:r.map((i)=>As.jsxDEV("span",{className:"legend-item",title:Ba[i].rule,style:{"--dot":Ba[i].color},children:[As.jsxDEV("span",{className:"spot-group-mark","data-shape":Ba[i].shape,"aria-hidden":"true"},void 0,!1,void 0,this),Ba[i].label]},i,!0,void 0,this))},void 0,!1,void 0,this)}function Yf({hidden:r,expanded:i,onToggle:l}){return As.jsxDEV("button",{type:"button",className:"btn spot-more-tools","data-variant":"ghost","data-size":"sm","aria-expanded":i,title:i?void 0:r.join(", "),onClick:l,children:i?"Show fewer tools":`Show ${r.length} more tools`},void 0,!1,void 0,this)}function Ax({kind:r,count:i}){let l=Ms[r],c=l.icon;return As.jsxDEV("span",{className:"spot-kind",style:{"--kind":l.color},title:i===void 0?l.rule:`${i} × ${l.label.toLowerCase()}: ${l.rule}`,children:[As.jsxDEV(c,{size:12,"aria-hidden":"true"},void 0,!1,void 0,this),i===void 0?l.label:As.jsxDEV("span",{className:"num",children:i},void 0,!1,void 0,this),i!==void 0&&As.jsxDEV("span",{className:"sr-only",children:l.plural},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}var Mt=_(ae(),1),qq={applied:-12,scoreFree:-6,holdout:0,gated:6,reference:12},Oq=["scoreFree","holdout","reference"],N2=["applied","holdout"],Bq="One rule for every group: within 12 calls, a read of the same path overlapping the result's own window (the whole file without a selector), a rerun of the call (a similar bash command; for other tools, ≥ 60% shared argument tokens), or a read of an artifact it named; not after an edit of that path (reads) or any edit (reruns), nor from the same request.";function q2({stats:r,stale:i}){let[l,c]=Dx.useState(!1),f=new Map;for(let m of r.fetchBack)f.set(`${m.tool}/${m.group}`,m);let y=new Set(r.fetchBack.filter((m)=>m.results>0).map((m)=>m.tool)),{listed:g,rest:v}=Xo(Hi(r).filter((m)=>y.has(m))),h=Mx.filter((m)=>m!=="gated"||r.fetchBack.some((S)=>S.group==="gated"&&S.results>0)),x=[];for(let m of l?[...g,...v]:g){let S=zr(m),C=Mx.flatMap((R)=>{let N=f.get(`${m}/${R}`);return N!==void 0&&N.results>0?[N]:[]});if(C.length===0)continue;let T=new Map(C.map((R)=>[R.group,R])),w=T.get("applied"),I=C.map((R)=>({key:R.group,...R.rate,color:Ba[R.group].color,shape:Ba[R.group].shape,offset:qq[R.group],title:`${Ba[R.group].label}: ${Qt(R.rate.value)} of ${M(R.results)} results in ${M(R.sessions)} sessions`}));x.push({key:m,label:Mt.jsxDEV("span",{className:"spot-fb-tool",title:m,children:[Mt.jsxDEV(S,{size:13,"aria-hidden":"true"},void 0,!1,void 0,this),Mt.jsxDEV("span",{className:"spot-fb-tool-name",children:m},void 0,!1,void 0,this)]},void 0,!0,void 0,this),marks:I,figure:Mt.jsxDEV("span",{style:{color:Ba.applied.color},title:Ba.applied.rule,children:w===void 0?"–":Qt(w.rate.value)},void 0,!1,void 0,this),detail:Mt.jsxDEV(Mt.Fragment,{children:Oq.map((R,N)=>{let P=T.get(R);return Mt.jsxDEV("span",{title:`${Ba[R].label}: ${Ba[R].rule}`,children:[N>0&&" · ",Mt.jsxDEV("span",{className:"spot-fb-detail","data-group":R,children:P===void 0?"–":Qt(P.rate.value)},void 0,!1,void 0,this)]},R,!0,void 0,this)})},void 0,!1,void 0,this)})}return Mt.jsxDEV(ge,{index:3,title:"Does the agent come back for it?",description:"Share of results the agent fetched more of within 12 calls: cut with Spotlight's scores, cut without them, held out at random, kept whole by pi's former edit gate, and left unchanged",stale:i,footer:`${Bq} Held-out results are the true counterfactual: drawn at random from the would-be cuts and shown whole; until they accumulate, unchanged results stand in, re-weighted to the cuts' size mix. Score-free cuts skip Spotlight by a second coin and take the no-score fallback rules: if they come back as often as scored cuts, the scores add nothing. Gated reads are reads pi's former edit gate (removed) kept whole, listed only where the range has any. Small print: score-free · held out · unchanged. Whiskers are 90% session bootstrap intervals, from 3 sessions.`,children:x.length===0?Mt.jsxDEV("div",{className:"empty",children:"No evaluated results in this range."},void 0,!1,void 0,this):Mt.jsxDEV("div",{className:"spot-fb",children:[Mt.jsxDEV(Xf,{groups:h},void 0,!1,void 0,this),Mt.jsxDEV(eg,{rows:x,format:Qt,formatTick:(m)=>`${Math.round(m*100)}%`},void 0,!1,void 0,this),v.length>0&&Mt.jsxDEV(Yf,{hidden:v,expanded:l,onToggle:()=>c((m)=>!m)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)}function zq({tool:r,counts:i}){let l=zr(r),c=new Map(i.map((h)=>[h.gap,h])),f=0,y=0;for(let h of i)f+=h.applied,y+=h.holdout;let g={applied:f,holdout:y},v=0;for(let h of i){if(f>0)v=Math.max(v,h.applied/f);if(y>0)v=Math.max(v,h.holdout/y)}return Mt.jsxDEV("section",{className:"spot-gap","aria-label":`${r} fetch-back gaps`,children:[Mt.jsxDEV("h3",{className:"spot-panel-title row spot-gap-title",children:[Mt.jsxDEV(l,{size:13,"aria-hidden":"true"},void 0,!1,void 0,this),r,Mt.jsxDEV("span",{className:"dim",children:[Mt.jsxDEV("span",{className:"num",children:M(f)},void 0,!1,void 0,this)," shortened ·"," ",Mt.jsxDEV("span",{className:"num",children:M(y)},void 0,!1,void 0,this)," held out"]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),f+y===0?Mt.jsxDEV("div",{className:"spot-gap-empty dim",children:"No fetch-backs"},void 0,!1,void 0,this):Mt.jsxDEV("div",{className:"spot-gap-bins",children:R2.map((h)=>{let x=c.get(h);return Mt.jsxDEV("div",{className:"spot-gap-bin",children:[Mt.jsxDEV("div",{className:"spot-gap-bars",children:N2.map((m)=>{let S=x?.[m]??0,C=g[m],T=C>0?S/C:0;return Mt.jsxDEV("span",{className:"spot-gap-bar","data-group":m,"data-empty":C===0,title:`${h} ${h==="1"?"call":"calls"} later: ${M(S)} of ${M(C)} ${Ba[m].label.toLowerCase()} fetch-backs`,children:[C>0&&Mt.jsxDEV("span",{className:"spot-gap-value num",children:Qt(T)},void 0,!1,void 0,this),Mt.jsxDEV("span",{className:"spot-gap-fill",style:{height:`${v>0?T/v*100:0}%`}},void 0,!1,void 0,this)]},m,!0,void 0,this)})},void 0,!1,void 0,this),Mt.jsxDEV("span",{className:"spot-gap-label num",children:h},void 0,!1,void 0,this)]},h,!0,void 0,this)})},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function O2({stats:r,stale:i}){let[l,c]=Dx.useState(!1),f=new Set(r.gaps.map((v)=>v.tool)),{listed:y,rest:g}=Xo(Hi(r).filter((v)=>f.has(v)));return Mt.jsxDEV(ge,{index:3,title:"How soon it comes back",description:"Calls between a result and the first fetch-back after it",stale:i,footer:"Bars are each group's share of its own fetch-backs, so shortened and held-out results compare despite their different counts (next to each tool). Same rule as above; nothing after 12 calls counts.",children:y.length===0?Mt.jsxDEV("div",{className:"empty",children:"No fetch-backs in this range."},void 0,!1,void 0,this):Mt.jsxDEV(Mt.Fragment,{children:[Mt.jsxDEV(Xf,{groups:N2},void 0,!1,void 0,this),Mt.jsxDEV("div",{className:"spot-gaps",children:(l?[...y,...g]:y).map((v)=>Mt.jsxDEV(zq,{tool:v,counts:r.gaps.filter((h)=>h.tool===v)},v,!1,void 0,this))},void 0,!1,void 0,this),g.length>0&&Mt.jsxDEV(Yf,{hidden:g,expanded:l,onToggle:()=>c((v)=>!v)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)}var Nt=_(ae(),1);function B2({stats:r,windowLabel:i,stale:l}){let{gross:c,clawback:f,adjusted:y}=r,{netTokens:g,netUsd:v}=y,h=jn(g,io),x=jn(v,gr),m=y.byTool.filter((N)=>N.cuts>0&&N.holdouts<y.minHoldouts).map((N)=>N.tool),S=Xo(m),C=S.rest.length>0?[...S.listed,`${S.rest.length} more tools`]:m,T=C.length<2?C[0]??"":`${C.slice(0,-1).join(", ")} and ${C.at(-1)}`,w=Xo(y.byTool),I=w.listed.map((N)=>({tool:N.tool,holdouts:N.holdouts,thin:m.includes(N.tool)}));if(w.rest.length>0)I.push({tool:Br,holdouts:w.rest.reduce((N,P)=>N+P.holdouts,0),thin:w.rest.some((N)=>m.includes(N.tool))});let R=c.fullSavedTokens>0?1-c.savedTokens/c.fullSavedTokens:null;return Nt.jsxDEV("section",{className:"card rise spot-hero","data-stale":l,"aria-label":"Spotlight savings summary",children:[Nt.jsxDEV("div",{className:"spot-hero-main",children:[Nt.jsxDEV("div",{className:"spot-hero-headline",children:[Nt.jsxDEV("div",{className:"spot-eyebrow",children:["Net saved in ",i,", after fetch-backs a cut caused"]},void 0,!0,void 0,this),Nt.jsxDEV("div",{className:"spot-hero-figures",children:[Nt.jsxDEV("span",{className:"spot-hero-value gradient-text",title:g.value===null?void 0:`${M(g.value)} tokens`,children:g.value===null?"–":io(g.value)},void 0,!1,void 0,this),Nt.jsxDEV("span",{className:"spot-hero-unit",children:"tokens"},void 0,!1,void 0,this),v.value!==null&&Nt.jsxDEV("span",{className:"spot-hero-usd","data-negative":v.value<0,title:"Avoided context priced at each later request's cache rates, minus the fetch-backs beyond the holdout baseline (priced the same way) and Spotlight's own bill",children:gr(v.value)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),(h!==""||x!=="")&&Nt.jsxDEV("div",{className:"spot-hero-interval",children:["90% interval"," ",Nt.jsxDEV("span",{className:"num",children:[h,x].filter(Boolean).join(" · ")},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),Nt.jsxDEV("div",{className:"spot-hero-aside",children:[Nt.jsxDEV("p",{className:"spot-hero-note",children:["Counted against what pi would have shown unshaped (",Nt.jsxDEV("code",{children:"plain"},void 0,!1,void 0,this),") for the same call (its inline cap and read page), with fetch-backs that held-out results show happen anyway added back."," ",c.fullSavedTokens>c.savedTokens&&Nt.jsxDEV(Nt.Fragment,{children:["Against the full output the shaping read, the cuts would claim"," ",Nt.jsxDEV("s",{className:"spot-struck num",children:le(c.fullSavedTokens)},void 0,!1,void 0,this),", overstating the gross by ",Qt(R),"."," "]},void 0,!0,void 0,this),c.widerThanPlain>0&&`${M(c.widerThanPlain)} ${c.widerThanPlain===1?"result was":"results were"} wider than plain would have shown: cuts shown that way count as losses, results pi capped at plain's text save nothing. `,c.estimatedPlain>0&&`${M(c.estimatedPlain)} older ${c.estimatedPlain===1?"result estimates":"results estimate"} plain from the inline cap.`]},void 0,!0,void 0,this),m.length>0&&Nt.jsxDEV("p",{className:"spot-hero-warn",role:"note",children:[Nt.jsxDEV(fr,{size:14,"aria-hidden":"true"},void 0,!1,void 0,this),Nt.jsxDEV("span",{children:[T," ",m.length===1?"has":"have"," fewer than"," ",M(y.minHoldouts)," held-out results: ",m.length===1?"its":"their"," ","part of the net rests on a thin baseline."]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),Nt.jsxDEV("div",{className:"spot-hero-stats",children:[Nt.jsxDEV(ue,{size:"sm",label:"Gross vs plain",title:"Σ (plain − shortened) tokens over shortened results; a cut that showed more than plain counts negative",value:io(c.savedTokens),hint:`${Qt(c.ofToolOutput)} of tool output · ${M(c.shaped)} of ${M(c.results)} results shortened`},void 0,!1,void 0,this),Nt.jsxDEV(ue,{size:"sm",label:"Fetched back beyond baseline",title:"Fetch-back tokens beyond what held-out results (shown whole) fetch anyway, per tool (reads split by whether the agent was likely to edit them); 90% interval below",value:y.excessTokens.value===null?"–":io(-y.excessTokens.value),hint:Nt.jsxDEV(Nt.Fragment,{children:["of ",le(f.tokens)," fetched back",y.excessTokens.lo!==null&&y.excessTokens.hi!==null&&Nt.jsxDEV(Nt.Fragment,{children:[" ",Nt.jsxDEV("span",{className:"dim",children:["·"," ",Nt.jsxDEV("span",{className:"spot-nowrap",children:["90% ",jn(y.excessTokens,le)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this),Nt.jsxDEV(ue,{size:"sm",label:"Held out",title:`Would-be cuts shown whole at random: the baseline per tool (under ${y.minHoldouts} is thin)`,value:M(r.holdouts),hint:Nt.jsxDEV("span",{className:"spot-hero-tools",children:I.map((N)=>Nt.jsxDEV("span",{"data-thin":N.thin,title:N.tool===Br?w.rest.map((P)=>`${P.tool} ${M(P.holdouts)}`).join(", "):N.thin?`${N.tool}: under ${y.minHoldouts} held out`:void 0,children:[N.tool," ",Nt.jsxDEV("span",{className:"num",children:M(N.holdouts)},void 0,!1,void 0,this),N.thin&&Nt.jsxDEV(fr,{size:11,"aria-label":"thin baseline"},void 0,!1,void 0,this)]},N.tool,!0,void 0,this))},void 0,!1,void 0,this)},void 0,!1,void 0,this),Nt.jsxDEV(ue,{size:"sm",label:"Score-free cuts",title:"Cuts a random coin made without Spotlight (the no-score fallback rules): what Spotlight's scores add is the difference",value:M(r.scoreFree),hint:"cut without Spotlight, for comparison"},void 0,!1,void 0,this),Nt.jsxDEV(ue,{size:"sm",label:"Sessions",value:M(r.sessions),hint:"experiment sessions, all shaped"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)}var ga=_(ae(),1);function z2({p50:r,p90:i}){if(r===null)return ga.jsxDEV("span",{className:"dim",children:"–"},void 0,!1,void 0,this);return ga.jsxDEV("span",{className:"num",children:[Lt(r),ga.jsxDEV("span",{className:"dim",children:[" / ",Lt(i)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)}var Pq=[{key:"failures",header:"Spotlight failures",align:"right",sort:(r)=>r.failureRate??-1,title:"Results whose Spotlight calls failed or timed out, of those that called it: they were cut by the no-score fallback",render:(r)=>r.failureRate===null?ga.jsxDEV("span",{className:"dim",children:"–"},void 0,!1,void 0,this):ga.jsxDEV(yt,{tone:pr(r.failureRate),mono:!0,children:Qt(r.failureRate)},void 0,!1,void 0,this)},{key:"failedWait",header:"Waited on failures",align:"right",sort:(r)=>r.failedWaitMs,title:"Wall time tool calls spent on Spotlight calls that failed or timed out",render:(r)=>r.failedWaitMs>0?ga.jsxDEV("span",{className:"num",children:Lt(r.failedWaitMs)},void 0,!1,void 0,this):ga.jsxDEV("span",{className:"dim",children:"–"},void 0,!1,void 0,this)},{key:"results",header:"Results",align:"right",sort:(r)=>r.results,title:"Results Spotlight evaluated, held-out ones included",render:(r)=>ga.jsxDEV("span",{className:"num",children:M(r.results)},void 0,!1,void 0,this)},{key:"shape",header:"Shaping p50 / p90",align:"right",sort:(r)=>r.shapeMsP50??-1,title:"Wall time shaping added to a tool call",render:(r)=>ga.jsxDEV(z2,{p50:r.shapeMsP50,p90:r.shapeMsP90},void 0,!1,void 0,this)},{key:"spotlight",header:"Spotlight p50 / p90",align:"right",sort:(r)=>r.spotlightMsP50??-1,title:"Spotlight's own request time, over results whose calls all answered",render:(r)=>ga.jsxDEV(z2,{p50:r.spotlightMsP50,p90:r.spotlightMsP90},void 0,!1,void 0,this)},{key:"usd",header:"Spotlight $",align:"right",sort:(r)=>r.spotlightUsd,render:(r)=>ga.jsxDEV("span",{className:"num",children:Ot(r.spotlightUsd)},void 0,!1,void 0,this)}];function Uq({overhead:r}){let i=r.failureRate;if(i===null)return null;let l=pr(i);if(l==="ok")return null;let c=r.failedWaitMs;return ga.jsxDEV("div",{className:"spot-callout","data-tone":l,role:"note",children:[ga.jsxDEV(fr,{size:16,"aria-hidden":"true"},void 0,!1,void 0,this),ga.jsxDEV("div",{children:[ga.jsxDEV("div",{className:"spot-callout-head",children:[ga.jsxDEV("span",{className:"num",children:Qt(i)},void 0,!1,void 0,this)," of results that called Spotlight failed"]},void 0,!0,void 0,this),ga.jsxDEV("p",{className:"spot-callout-copy",children:["A failed or timed-out call leaves the cut to the no-score fallback, so those results measure the fallback rather than Spotlight's scorer. Read every comparison on this page with that share in mind.",c>0&&ga.jsxDEV(ga.Fragment,{children:[" ","Tool calls waited ",ga.jsxDEV("span",{className:"num",children:Lt(c)},void 0,!1,void 0,this)," on those failures."]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)}function P2({stats:r,stale:i}){let{overhead:l}=r,c=l.results>0?[l]:[];return ga.jsxDEV(ge,{index:3,title:"Overhead",description:"What shaping costs: Spotlight failures, added latency and its bill",flush:!0,stale:i,footer:"Every evaluated result counts, held-out ones included: they were shaped too, just not shown.",children:[l.results>0&&ga.jsxDEV(Uq,{overhead:l},void 0,!1,void 0,this),ga.jsxDEV(Ut,{rows:c,rowKey:()=>"overhead",columns:Pq,dense:!0,empty:ga.jsxDEV("div",{className:"empty",children:"No evaluated results in this range."},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}var Ve=_(ae(),1),Kf=["applied","scoreFree","holdout"],_q={applied:-7,scoreFree:0,holdout:7},Hq=[{key:"auc",title:"Heat ranks needed lines higher",chanceLabel:"AUC · chance 0.5",chance:0.5,rule:"P(a needed line is hotter than an unneeded line of the same result), ties half",format:(r)=>r.toFixed(2)},{key:"topLift",title:"Hottest tenth holds them",chanceLabel:"lift · chance 1.0",chance:1,rule:"Needed-line rate among each result's hottest 10% of lines over its rate among all lines",format:(r)=>`${r.toFixed(2)}×`},{key:"keptLift",title:"The cut keeps them",chanceLabel:"lift · random cut 1.0",chance:1,rule:"Share of needed lines the cut kept over the share of all lines it kept",format:(r)=>`${r.toFixed(2)}×`}],Fq=[{key:"reread",label:"Read again",rule:"A later read of the same file selected the lines"},{key:"edit",label:"Edited",rule:"A later edit's Find text matched the lines"}];function U2({stats:r,stale:i}){let{ranking:l}=r,c=new Map(l.cells.map((y)=>[y.group,y])),f=Kf.some((y)=>(c.get(y)?.results??0)>0);return Ve.jsxDEV(ge,{index:4,title:"Does Spotlight keep what the agent needs?",description:"Lines of a shaped read the agent read again or edited later, against Spotlight's heat and the cut",actions:Ve.jsxDEV(Xf,{groups:Kf},void 0,!1,void 0,this),stale:i,footer:"Shaped reads with at least one needed line, until the file's first edit or a later whole-file read. Scored and score-free cuts are biased alike (the agent re-reads what a cut hid), so compare them with each other; held-out would-be cuts, shown whole, are the unbiased measure. Score-free cuts have no heat, so only the cut's lift exists for them. Dashed lines are chance; whiskers are 90% session bootstrap intervals, from 3 sessions.",children:!f?Ve.jsxDEV("div",{className:"empty",children:"No shaped read was needed again in this range."},void 0,!1,void 0,this):Ve.jsxDEV("div",{className:"spot-rank",children:[Ve.jsxDEV("div",{className:"spot-rank-panels",children:Hq.map((y)=>Ve.jsxDEV(Gq,{measure:y,cells:c},y.key,!1,void 0,this))},void 0,!1,void 0,this),Ve.jsxDEV("div",{className:"spot-rank-foot",children:[Ve.jsxDEV(Vq,{cells:c},void 0,!1,void 0,this),Ve.jsxDEV(jq,{positions:l.position},void 0,!1,void 0,this),Ve.jsxDEV("section",{className:"spot-rank-sources","aria-label":"How the need was seen",children:[Ve.jsxDEV("h3",{className:"spot-panel-title",children:"How the need was seen"},void 0,!1,void 0,this),Ve.jsxDEV("dl",{className:"spot-facts spot-rank-facts",children:Fq.map((y)=>Ve.jsxDEV("div",{title:y.rule,children:[Ve.jsxDEV("dt",{children:y.label},void 0,!1,void 0,this),Ve.jsxDEV("dd",{className:"num",children:[M(l.sources[y.key]),Ve.jsxDEV("span",{className:"dim",children:" results"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},y.key,!0,void 0,this))},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)}function Gq({measure:r,cells:i}){let l=Kf.flatMap((y)=>{let g=i.get(y);if(g===void 0||g.results===0)return[];let v=g[r.key],h=jn(v,r.format);return[{key:y,...v,color:Ba[y].color,shape:Ba[y].shape,offset:_q[y],title:`${Ba[y].label}: ${v.value===null?"–":r.format(v.value)}${h===""?"":` (${h})`} over ${M(g.results)} results, ${M(g.neededLines)} needed lines`}]}),c=i.get("applied")?.[r.key].value??null,f=[{key:"reads",label:"Shaped reads",marks:l,figure:Ve.jsxDEV("span",{style:{color:Ba.applied.color},children:c===null?"–":r.format(c)},void 0,!1,void 0,this),detail:Ve.jsxDEV(Ve.Fragment,{children:["scoreFree","holdout"].map((y,g)=>{let v=i.get(y)?.[r.key].value??null;return Ve.jsxDEV("span",{title:Ba[y].label,children:[g>0&&" · ",Ve.jsxDEV("span",{className:"spot-fb-detail","data-group":y,children:v===null?"–":r.format(v)},void 0,!1,void 0,this)]},y,!0,void 0,this)})},void 0,!1,void 0,this)}];return Ve.jsxDEV("section",{className:"spot-rank-panel","aria-label":r.title,children:[Ve.jsxDEV("h3",{className:"spot-panel-title",title:r.rule,children:[r.title,Ve.jsxDEV("span",{className:"spot-rank-chance",children:r.chanceLabel},void 0,!1,void 0,this)]},void 0,!0,void 0,this),Ve.jsxDEV(eg,{rows:f,guides:[{key:"chance",value:r.chance,color:"var(--ink-3)"}],format:r.format,formatTick:(y)=>String(Number(y.toFixed(2)))},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function Vq({cells:r}){return Ve.jsxDEV("section",{"aria-label":"Sample per cell",children:[Ve.jsxDEV("h3",{className:"spot-panel-title",children:["Sample per cell",Ve.jsxDEV("span",{className:"spot-rank-chance",children:"results · needed lines"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),Ve.jsxDEV("table",{className:"spot-rank-n",children:[Ve.jsxDEV("thead",{children:Ve.jsxDEV("tr",{children:Kf.map((i)=>Ve.jsxDEV("th",{scope:"col",title:Ba[i].rule,children:Ba[i].label},i,!1,void 0,this))},void 0,!1,void 0,this)},void 0,!1,void 0,this),Ve.jsxDEV("tbody",{children:Ve.jsxDEV("tr",{children:Kf.map((i)=>{let l=r.get(i);return Ve.jsxDEV("td",{className:"num","data-thin":l!==void 0&&l.results<20,children:l===void 0||l.results===0?Ve.jsxDEV("span",{className:"dim",children:"–"},void 0,!1,void 0,this):Ve.jsxDEV("span",{title:`${M(l.neededLines)} needed lines`,children:[M(l.results),Ve.jsxDEV("span",{className:"dim",children:[" · ",le(l.neededLines)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)},i,!1,void 0,this)})},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)}function jq({positions:r}){let i=Math.max(0,...r.map((l)=>l.meanHeat));return Ve.jsxDEV("section",{className:"spot-rank-pos","aria-label":"Mean heat by position",children:[Ve.jsxDEV("h3",{className:"spot-panel-title",children:["Mean heat by position",Ve.jsxDEV("span",{className:"spot-rank-chance",children:"0–9, outputs ≥ 40 lines"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),r.length===0||i===0?Ve.jsxDEV("div",{className:"dim spot-gap-empty",children:"No heat recorded"},void 0,!1,void 0,this):Ve.jsxDEV(Ve.Fragment,{children:[Ve.jsxDEV("div",{className:"spot-rank-bars",children:r.map((l)=>Ve.jsxDEV("div",{className:"spot-rank-bar",title:`${l.label}: mean heat ${l.meanHeat.toFixed(2)} over ${M(l.lines)} lines`,children:[Ve.jsxDEV("span",{className:"spot-rank-bar-track",children:[Ve.jsxDEV("span",{className:"spot-rank-bar-value num",children:l.meanHeat.toFixed(1)},void 0,!1,void 0,this),Ve.jsxDEV("span",{className:"spot-rank-bar-fill",style:{height:`calc((100% - 14px) * ${l.meanHeat/i})`}},void 0,!1,void 0,this)]},void 0,!0,void 0,this),Ve.jsxDEV("span",{className:"spot-rank-bar-label num",children:l.label.replace(/^lines? /,"L").replace(/%$/,"")},void 0,!1,void 0,this)]},l.label,!0,void 0,this))},void 0,!1,void 0,this),Ve.jsxDEV("div",{className:"micro spot-rank-axis",children:"L = line of the output, then each tenth of it (% into it)"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)}var ud=_(Qe(),1);var ce=_(ae(),1);function Ex(r){return`${r.sessionFile}\x00${r.toolCallId}`}function _2({value:r}){return ce.jsxDEV("span",{className:r<0?"num tone-bad":r>0?"num tone-ok":"num",children:io(r)},void 0,!1,void 0,this)}function $q({row:r}){let{plainTokens:i,outTokens:l}=r,c=i>0?Math.min(1,l/i):1;return ce.jsxDEV("div",{className:"spot-shrink","data-holdout":r.holdout,title:`plain would show ${M(i)} tokens, the cut ${r.holdout?"would show":"showed"} ${M(l)} (shaping read ${M(r.inTokens)})`,children:[ce.jsxDEV("span",{className:"num",children:[le(i),ce.jsxDEV("span",{className:"dim",children:" → "},void 0,!1,void 0,this),le(l)]},void 0,!0,void 0,this),ce.jsxDEV("span",{className:"spot-shrink-bar","aria-hidden":"true",children:ce.jsxDEV("span",{className:"spot-shrink-kept",style:{width:`${c*100}%`}},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function Xq(r){let i=new Map;for(let l of r.recoveries)i.set(l.kind,(i.get(l.kind)??0)+1);return ug.flatMap((l)=>{let c=i.get(l);return c?[[l,c]]:[]})}var Yq=[{key:"target",header:"Result",width:"40%",sort:(r)=>r.timestamp,render:(r)=>{let i=zr(r.tool);return ce.jsxDEV("div",{className:"spot-result",children:[ce.jsxDEV("span",{className:"spot-tool",title:r.tool,children:[ce.jsxDEV(i,{size:14,"aria-hidden":"true"},void 0,!1,void 0,this),ce.jsxDEV("span",{className:"sr-only",children:r.tool},void 0,!1,void 0,this)]},void 0,!0,void 0,this),ce.jsxDEV("div",{className:"stack spot-result-text",children:[ce.jsxDEV("span",{className:"spot-target truncate",title:r.target,children:r.target},void 0,!1,void 0,this),ce.jsxDEV("span",{className:"row spot-result-meta",children:[r.holdout&&ce.jsxDEV(H2,{},void 0,!1,void 0,this),r.scoreFree&&ce.jsxDEV(F2,{},void 0,!1,void 0,this),ce.jsxDEV("span",{className:"dim",title:Bo(r.timestamp),children:La(r.timestamp)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)}},{key:"shrink",header:"Plain → out",align:"right",sort:(r)=>r.plainTokens>0?r.outTokens/r.plainTokens:1,title:"What pi would have shown unshaped (plain) for the call, and what the cut showed; the bar is the share that survived",render:(r)=>ce.jsxDEV($q,{row:r},void 0,!1,void 0,this)},{key:"saved",header:"Saved",align:"right",sort:(r)=>r.savedTokens,render:(r)=>r.holdout?ce.jsxDEV("span",{className:"spot-would-save",title:"Held out: what the cut would have saved",children:[ce.jsxDEV("span",{className:"dim",children:"would save "},void 0,!1,void 0,this),ce.jsxDEV("span",{className:"num",children:io(r.savedTokens)},void 0,!1,void 0,this)]},void 0,!0,void 0,this):ce.jsxDEV("span",{className:"num",children:io(r.savedTokens)},void 0,!1,void 0,this)},{key:"hidden",header:"Hidden lines",align:"right",sort:(r)=>r.hiddenLines,render:(r)=>r.hiddenLines>0?ce.jsxDEV("span",{className:"num",children:M(r.hiddenLines)},void 0,!1,void 0,this):ce.jsxDEV("span",{className:"dim",children:"–"},void 0,!1,void 0,this)},{key:"recoveries",header:"Fetched back",sort:(r)=>r.recoveries.length,render:(r)=>{let i=Xq(r);return i.length===0?ce.jsxDEV("span",{className:"dim",title:"Nothing fetched back",children:"–"},void 0,!1,void 0,this):ce.jsxDEV("span",{className:"row spot-kinds",children:i.map(([l,c])=>ce.jsxDEV(Ax,{kind:l,count:c},l,!1,void 0,this))},void 0,!1,void 0,this)}},{key:"net",header:"Net",align:"right",sort:(r)=>r.netTokens,title:"Saved tokens minus the tokens of the calls that fetched hidden output back",render:(r)=>r.holdout?ce.jsxDEV("span",{className:"dim",title:"Held out: the model saw the whole result, so nothing was saved",children:"–"},void 0,!1,void 0,this):ce.jsxDEV(_2,{value:r.netTokens},void 0,!1,void 0,this)}];function H2(){return ce.jsxDEV("span",{title:"Held out at random: the model saw the original, unshortened result",children:ce.jsxDEV(yt,{children:"held out"},void 0,!1,void 0,this)},void 0,!1,void 0,this)}function F2(){return ce.jsxDEV("span",{title:"A random coin skipped Spotlight: the no-score fallback rules made this cut",children:ce.jsxDEV(yt,{children:"score-free"},void 0,!1,void 0,this)},void 0,!1,void 0,this)}function G2({rows:r,stale:i}){let[l,c]=ud.useState(null),f=ud.useCallback(()=>c(null),[]),y=ud.useMemo(()=>r.find((g)=>Ex(g)===l)??null,[r,l]);return ce.jsxDEV(ce.Fragment,{children:[ce.jsxDEV(ge,{index:6,title:"Recent results",description:"The newest shortened and held-out tool results and what the agent fetched back",flush:!0,stale:i,footer:"Saved is what plain would have shown minus what the cut showed (the would-be cut for held-out ones, which save nothing); recovery tokens are the recovery calls' results (chars ÷ 4 when no exact count exists).",children:ce.jsxDEV(Ut,{rows:r,rowKey:Ex,columns:Yq,onRowClick:(g)=>c(Ex(g)),selectedKey:l,limit:15,empty:ce.jsxDEV("div",{className:"empty",children:"No shortened or held-out results in this range."},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this),ce.jsxDEV(Kq,{row:y,onClose:f},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function Kq({row:r,onClose:i}){if(r===null)return null;let l=zr(r.tool),c=r.savedTokens-r.netTokens;return ce.jsxDEV(Ju,{open:!0,onClose:i,width:600,title:ce.jsxDEV("span",{className:"spot-drawer-title",title:r.target,children:r.target},void 0,!1,void 0,this),subtitle:ce.jsxDEV("span",{className:"row spot-drawer-subtitle",children:[ce.jsxDEV(l,{size:13,"aria-hidden":"true"},void 0,!1,void 0,this),r.tool,r.holdout&&ce.jsxDEV(H2,{},void 0,!1,void 0,this),r.scoreFree&&ce.jsxDEV(F2,{},void 0,!1,void 0,this),ce.jsxDEV("span",{children:Bo(r.timestamp)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),children:[ce.jsxDEV("div",{className:"spot-drawer-summary",children:[ce.jsxDEV("div",{children:[ce.jsxDEV("div",{className:"spot-eyebrow",children:r.holdout?"Would save":"Saved"},void 0,!1,void 0,this),ce.jsxDEV("div",{className:"spot-drawer-figure num",children:io(r.savedTokens)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),ce.jsxDEV("div",{children:[ce.jsxDEV("div",{className:"spot-eyebrow",children:"Fetched back"},void 0,!1,void 0,this),ce.jsxDEV("div",{className:c>0?"spot-drawer-figure num tone-warn":"spot-drawer-figure num",children:le(c)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),ce.jsxDEV("div",{children:[ce.jsxDEV("div",{className:"spot-eyebrow",children:"Net"},void 0,!1,void 0,this),r.holdout?ce.jsxDEV("div",{className:"spot-drawer-figure dim",title:"Held out: the model saw the whole result",children:"–"},void 0,!1,void 0,this):ce.jsxDEV("div",{className:r.netTokens<0?"spot-drawer-figure num tone-bad":"spot-drawer-figure num tone-ok",children:io(r.netTokens)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),ce.jsxDEV(Oo,{items:[{key:"plain",label:"Plain would show",value:M(r.plainTokens)},{key:"out",label:"Tokens out",value:M(r.outTokens)},{key:"in",label:"Full output read",value:M(r.inTokens)},{key:"hidden",label:r.holdout?"Lines it would hide":"Hidden lines",value:M(r.hiddenLines)},{key:"steps",label:"Steps",value:r.steps.length>0?r.steps.join(" → "):"–"},{key:"cost",label:"Spotlight cost",value:Ot(r.spotlightUsd)},{key:"ms",label:"Shaping time",value:Lt(r.shapeMs)}]},void 0,!1,void 0,this),ce.jsxDEV("div",{children:[ce.jsxDEV("div",{className:"section-label",children:"Call"},void 0,!1,void 0,this),ce.jsxDEV("pre",{className:"code-block spot-drawer-call",children:r.target},void 0,!1,void 0,this)]},void 0,!0,void 0,this),ce.jsxDEV("div",{children:[ce.jsxDEV("div",{className:"section-label",children:"Recovery timeline"},void 0,!1,void 0,this),ce.jsxDEV("ol",{className:"spot-timeline",children:[ce.jsxDEV("li",{className:"spot-timeline-item","data-kind":r.holdout?"holdout":"cut",children:[ce.jsxDEV("span",{className:"spot-timeline-node","aria-hidden":"true",children:ce.jsxDEV(Mf,{size:12},void 0,!1,void 0,this)},void 0,!1,void 0,this),ce.jsxDEV("div",{className:"spot-timeline-body",children:ce.jsxDEV("div",{className:"row spot-timeline-head",children:[ce.jsxDEV("span",{className:"cell-primary",children:r.holdout?"Held out: the model saw the original":"Shortened"},void 0,!1,void 0,this),ce.jsxDEV("span",{className:"dim num",children:[r.holdout&&"would be ",le(r.plainTokens)," → ",le(r.outTokens)," tokens",r.hiddenLines>0&&`, ${M(r.hiddenLines)} lines hidden`]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),r.recoveries.map((f)=>ce.jsxDEV("li",{className:"spot-timeline-item","data-kind":f.kind,style:{"--kind":Ms[f.kind].color},children:[ce.jsxDEV("span",{className:"spot-timeline-node","aria-hidden":"true",children:ce.jsxDEV(uf,{size:12},void 0,!1,void 0,this)},void 0,!1,void 0,this),ce.jsxDEV("div",{className:"spot-timeline-body",children:[ce.jsxDEV("div",{className:"row spot-timeline-head",children:[ce.jsxDEV(Ax,{kind:f.kind},void 0,!1,void 0,this),f.turn&&ce.jsxDEV(yt,{tone:"warn",children:"extra turn"},void 0,!1,void 0,this),ce.jsxDEV("span",{className:"spot-timeline-spacer"},void 0,!1,void 0,this),ce.jsxDEV("span",{className:"num tone-warn",children:["+",le(f.tokens)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),ce.jsxDEV("code",{className:"spot-timeline-target",title:f.target,children:[ce.jsxDEV("span",{className:"dim",children:[f.tool," "]},void 0,!0,void 0,this),f.target]},void 0,!0,void 0,this),ce.jsxDEV("div",{className:"micro",children:[f.after===0?"The next call":`${M(f.after)} ${f.after===1?"call":"calls"} later`,` · ${mr(Math.max(0,f.timestamp-r.timestamp))} after the cut`]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)]},f.toolCallId,!0,void 0,this)),ce.jsxDEV("li",{className:"spot-timeline-item","data-kind":"net",children:[ce.jsxDEV("span",{className:"spot-timeline-node","aria-hidden":"true"},void 0,!1,void 0,this),ce.jsxDEV("div",{className:"spot-timeline-body",children:ce.jsxDEV("div",{className:"row spot-timeline-head",children:[ce.jsxDEV("span",{className:"cell-primary",children:r.holdout?r.recoveries.length===0?"Nothing fetched back":"Fetched more although it saw everything":r.recoveries.length===0?"Nothing fetched back: the full saving stands":"Net"},void 0,!1,void 0,this),ce.jsxDEV("span",{className:"spot-timeline-spacer"},void 0,!1,void 0,this),r.holdout?ce.jsxDEV("span",{className:"dim",children:"saves nothing"},void 0,!1,void 0,this):ce.jsxDEV(_2,{value:r.netTokens},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)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)}var dd=_(Qe(),1);var vt=_(ae(),1),Qq=[{value:"tokens",label:"Tokens"},{value:"usd",label:"$"}];function V2({value:r,onChange:i}){return vt.jsxDEV(Na,{size:"sm","aria-label":"Unit",options:Qq,value:r,onChange:i},void 0,!1,void 0,this)}function j2({stats:r,range:i,stale:l}){let[c,f]=dd.useState("tokens"),y=Jt(i),g=dd.useMemo(()=>{let h=eo(i,r.series.map((I)=>I.timestamp),y.bucketMs),x=c==="usd",m=ia(r.series,h,(I)=>x?I.savedUsd:I.savedTokens),S=ia(r.series,h,(I)=>x?I.netUsd:I.netTokens),C=0,T=0,w=[{key:"gross",label:"Gross (cumulative)",color:"var(--spot-gross)",kind:"area",values:m.map((I)=>C+=I)},{key:"clawback",label:x?"Recoveries + Spotlight cost":"Fetched back",color:"var(--spot-clawback)",kind:"bars",values:m.map((I,R)=>S[R]-I)},{key:"net",label:"Net of every fetch-back (cumulative)",color:"var(--spot-net)",kind:"line",values:S.map((I)=>T+=I)}];return{buckets:h,series:w}},[r.series,i,y.bucketMs,c]),v=c==="usd"?gr:io;return vt.jsxDEV(ge,{index:1,title:"Savings over time",description:`Running gross and net per ${cg(y.bucketMs)}; what recoveries took back hangs below zero`,actions:vt.jsxDEV(V2,{value:c,onChange:f},void 0,!1,void 0,this),stale:l,footer:c==="usd"?"Dollars price each saved token at the cache-read rate of every later request that would have carried it (plus one cache write); recoveries are priced the same way.":"Gross is what the cuts removed against what plain would have shown; this net subtracts every later call that fetched hidden output back, including the share held-out results show comes back anyway (the headline adds that back). Each lands in the bucket of its own timestamp.",children:[vt.jsxDEV("div",{className:"spot-chart-legend",children:vt.jsxDEV(ra,{items:g.series.map((h)=>({key:h.key,label:h.label,color:h.color}))},void 0,!1,void 0,this)},void 0,!1,void 0,this),vt.jsxDEV(zo,{buckets:g.buckets,bucketMs:y.bucketMs,series:g.series,stacked:!1,height:480,format:v,formatTooltip:c==="usd"?gr:(h)=>h<0?`−${M(-h)}`:M(h),showTotal:!1,emptyLabel:"No shortened results in this range"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function $2({stats:r,stale:i}){let[l,c]=dd.useState("tokens"),{gross:f,clawback:y,compounding:g,adjusted:v}=r,h=dd.useMemo(()=>{let x=l==="usd",m=x?g.savedUsd:f.savedTokens,S=(N)=>m>0?Qt(N/m):"",C=ug.map((N)=>{let P=y.byKind[N],V=x?P.usd:P.tokens;return{key:N,label:vt.jsxDEV(vt.Fragment,{children:[vt.jsxDEV("span",{className:"spot-step-swatch",style:{background:Ms[N].color}},void 0,!1,void 0,this),Ms[N].plural,vt.jsxDEV("span",{className:"dim num",children:M(P.events)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),kind:"delta",value:-V,color:Ms[N].color,note:S(V),title:Ms[N].rule}}),T=[{key:"gross",label:x?"Gross saved":"Gross vs plain",kind:"total",value:m,color:"var(--spot-gross)",title:x?"Avoided context priced at each later request's cache-read rate, plus one cache write":"Σ (plain − shortened) tokens over shortened results; a cut that showed more than plain counts negative"},...C];if(x)T.push({key:"turns",label:vt.jsxDEV(vt.Fragment,{children:[vt.jsxDEV("span",{className:"spot-step-swatch",style:{background:"var(--spot-turns)"}},void 0,!1,void 0,this),"Extra turns",vt.jsxDEV("span",{className:"dim num",children:M(y.turns)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),kind:"delta",value:-y.turnsUsd,color:"var(--spot-turns)",note:S(y.turnsUsd),title:"Provider cost of requests that issued nothing but recovery calls"},{key:"spotlight",label:vt.jsxDEV(vt.Fragment,{children:[vt.jsxDEV("span",{className:"spot-step-swatch",style:{background:"var(--spot-cost)"}},void 0,!1,void 0,this),"Spotlight cost"]},void 0,!0,void 0,this),kind:"delta",value:-g.spotlightUsd,color:"var(--spot-cost)",note:S(g.spotlightUsd),title:"Spotlight's own scoring bill"});let w=x?g.netUsd:y.netTokens,I=x?v.netUsd.value:v.netTokens.value;if(I!==null){let N=I-w;T.push({key:"anyway",label:vt.jsxDEV(vt.Fragment,{children:[vt.jsxDEV("span",{className:"spot-step-swatch",style:{background:"var(--spot-anyway)"}},void 0,!1,void 0,this),"Back anyway"]},void 0,!0,void 0,this),kind:"delta",value:N,color:"var(--spot-anyway)",note:S(N),title:"Fetch-backs held-out results (shown whole) show the agent makes regardless, per tool: not the cut's cost"})}let R=I??w;return T.push({key:"net",label:I===null?"Net (no holdout baseline yet)":"Net",kind:"total",value:R,color:"var(--spot-net-fill)",note:S(R)}),T},[l,f,y,g,v]);return vt.jsxDEV(ge,{index:2,title:"Where the savings went",description:"Gross, minus each way hidden output came back",actions:vt.jsxDEV(V2,{value:l,onChange:c},void 0,!1,void 0,this),stale:i,footer:l==="usd"?"Recoveries are priced as carried context; extra turns are requests that only recovered; Spotlight cost is its own scoring bill. What comes back anyway is the recovery $ in proportion to the tokens held-out results fetch regardless.":"Recovered tokens are the full results of the recovery calls (estimated as chars ÷ 4 where no exact count exists). What comes back anyway is, per tool, the tokens a held-out result gets fetched back times the tool's cuts.",children:[vt.jsxDEV(GI,{steps:h,format:l==="usd"?Ot:le},void 0,!1,void 0,this),vt.jsxDEV("div",{className:"spot-by-tool",children:[vt.jsxDEV("div",{className:"section-label",children:"Net by tool, tokens"},void 0,!1,void 0,this),vt.jsxDEV(Zq,{byTool:f.byTool,adjusted:v.byTool},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)}var Wq=3;function Zq({byTool:r,adjusted:i}){let l=new Map(i.map((v)=>[v.tool,v])),{listed:c,rest:f}=Xo(r,Wq),y=c.map((v)=>{let h=l.get(v.tool),x=h===void 0?"":jn(h.excessTokens,le),m=h?.baselinePerCut.value??null;return{tool:v.tool,totals:v,excess:h?.excessTokens.value??null,title:h===void 0?void 0:[`${M(h.cuts)} cuts fetched back ${le(h.recoveredTokens)} tokens`,m===null?"No held-out baseline yet":`${M(h.holdouts)} held-out results get ${le(m)} each fetched back anyway`,x===""?"":`Beyond the baseline: ${x} (90%)`].filter(Boolean).join(`
237
- `)}});if(f.length>0){let v={tool:Br,results:0,shaped:0,inTokens:0,plainTokens:0,outTokens:0,savedTokens:0,fullSavedTokens:0},h=null;for(let x of f){v.results+=x.results,v.shaped+=x.shaped,v.savedTokens+=x.savedTokens;let m=l.get(x.tool)?.excessTokens.value??null;if(m!==null)h=(h??0)+m}y.push({tool:Br,totals:v,excess:h,title:`${M(f.length)} more tools: ${f.map((x)=>x.tool).join(", ")}`})}let g=Math.max(0,...y.map((v)=>v.totals.savedTokens));return vt.jsxDEV("ul",{className:"spot-tool-net",children:y.map(({tool:v,totals:h,excess:x,title:m})=>{let S=x===null?null:h.savedTokens-x,C=zr(v),T=g>0?Math.max(0,h.savedTokens)/g*100:0,w=x!==null&&h.savedTokens>0?Math.min(1,x/h.savedTokens):0;return vt.jsxDEV("li",{className:"spot-tool-net-row",title:m,children:[vt.jsxDEV("div",{className:"row spot-tool-net-head",children:[vt.jsxDEV(C,{size:13,"aria-hidden":"true"},void 0,!1,void 0,this),vt.jsxDEV("span",{className:"cell-primary",children:v},void 0,!1,void 0,this),vt.jsxDEV("span",{className:"dim num",children:[M(h.shaped)," of ",M(h.results)," shortened"]},void 0,!0,void 0,this),vt.jsxDEV("span",{className:"spot-tool-net-value num",title:S===null?"No holdout baseline yet":void 0,children:io(S??h.savedTokens)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),vt.jsxDEV("div",{className:"spot-tool-net-track","aria-hidden":"true",children:vt.jsxDEV("span",{className:"spot-tool-net-bar",style:{width:`${T}%`},children:vt.jsxDEV("span",{className:"spot-tool-net-excess",style:{width:`${w*100}%`}},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this),vt.jsxDEV("div",{className:"micro spot-tool-net-detail",children:[io(h.savedTokens)," gross",x!==null&&vt.jsxDEV(vt.Fragment,{children:[" − ",le(x)," beyond baseline"]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)]},v,!0,void 0,this)})},void 0,!1,void 0,this)}var Y2=_(Qe(),1);var mg=_(ae(),1),X2=7,Jq=[{group:"shaped",label:"Shaped sessions",color:"var(--spot-shaped)"},{group:"outside",label:"Outside the experiment",color:"var(--spot-outside)"}];function K2({stats:r,range:i,stale:l}){let c=Jt(i),f=Y2.useMemo(()=>{let y=eo(i,r.share.map((x)=>x.timestamp),c.bucketMs),g=[],v=[];for(let{group:x,label:m,color:S}of Jq){let C=r.share.filter((P)=>P.group===x),T=ia(C,y,(P)=>P.toolTokens),w=ia(C,y,(P)=>P.contextTokens),I=0,R=0,N=y.map((P,V)=>{let K=0,de=0;for(let W=Math.max(0,V-X2+1);W<=V;W++)K+=T[W],de+=w[W];return I+=T[V],R+=w[V],de>0?K/de:null});if(R===0)continue;g.push({key:`${x}:raw`,label:`${m} · bucket`,color:S,kind:"dots",values:y.map((P,V)=>w[V]>0?T[V]/w[V]:null)},{key:`${x}:avg`,label:`${m} · rolling`,color:S,kind:"line",values:N}),v.push({key:x,label:m,color:S,value:Qt(I/R)})}let h=[];if(r.experimentStart!==null){let x=Math.floor(r.experimentStart/c.bucketMs)*c.bucketMs,m=y.indexOf(x);if(m>=0)h.push({index:m,label:"experiment starts"})}return{buckets:y,series:g,legend:v,markers:h}},[r.share,r.experimentStart,i,c.bucketMs]);return mg.jsxDEV(ge,{index:4,title:"Tool-output share of context",description:r.experimentStart!==null&&f.markers.length===0?`Since ${Zu(r.experimentStart,86400000)}, shaped sessions should carry less tool output`:"Shaped sessions should carry less tool output than the rest of your history",actions:mg.jsxDEV(ra,{items:f.legend},void 0,!1,void 0,this),stale:l,footer:`Tool tokens are result chars ÷ 4; context adds assistant output, your prompts (chars ÷ 4) and each session's first prompt. Dots are single buckets (one ${cg(c.bucketMs)}); lines are the trailing ${X2}-bucket ratio of sums.`,children:mg.jsxDEV(zo,{buckets:f.buckets,bucketMs:c.bucketMs,series:f.series,markers:f.markers,stacked:!1,height:260,format:(y)=>Ge(y,0),formatTooltip:(y)=>Ge(y),showTotal:!1,emptyLabel:"No tool calls in this range"},void 0,!1,void 0,this)},void 0,!1,void 0,this)}var hg=_(Qe(),1);var Xe=_(ae(),1),Z2=10,eO=30,Q2=4;function tO(r,i){let l=new Map;for(let c of r){if(c.tool!==i)continue;let f=l.get(c.steps);if(f===void 0)f={steps:c.steps,bySize:new Map,total:{cuts:0,savedTokens:0,excessTokens:0}},l.set(c.steps,f);f.bySize.set(c.size,c),f.total.cuts+=c.cuts,f.total.savedTokens+=c.savedTokens,f.total.excessTokens+=c.excessTokens}return[...l.values()].sort((c,f)=>Number(c.steps==="other")-Number(f.steps==="other")||f.total.savedTokens-c.total.savedTokens)}function W2({kept:r,cuts:i,title:l,children:c}){if(r===null)return Xe.jsxDEV("div",{className:"spot-econ-cell","data-empty":"true",title:l,children:Xe.jsxDEV("span",{className:"dim",children:"No saving"},void 0,!1,void 0,this)},void 0,!1,void 0,this);let f=Q2+Math.min(1,Math.abs(r-0.5)*2)*(eO-Q2);return Xe.jsxDEV("div",{className:"spot-econ-cell","data-tone":r>=0.5?"ok":"bad","data-thin":i<Z2,style:{"--tint":`${f}%`},title:l,children:[Xe.jsxDEV("span",{className:"spot-econ-net num",children:[Qt(r),Xe.jsxDEV("span",{className:"spot-steps-unit",children:" kept"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),Xe.jsxDEV("dl",{className:"spot-econ-facts",children:c},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function J2({stats:r,stale:i}){let[l,c]=hg.useState(!1),f=Hi(r).flatMap((h)=>{let x=tO(r.steps,h);return x.length===0?[]:[{tool:h,rows:x}]}),{listed:y,rest:g}=Xo(f),v=l?f:y;return Xe.jsxDEV(ge,{index:5,title:"Which cuts pay",description:"Share of each kind of cut's saving that stays saved after fetch-backs beyond the holdout baseline, by size",actions:Xe.jsxDEV("span",{className:"spot-econ-scale","aria-hidden":"true",children:[Xe.jsxDEV("span",{className:"num",children:"0%"},void 0,!1,void 0,this),Xe.jsxDEV("span",{className:"spot-econ-ramp"},void 0,!1,void 0,this),Xe.jsxDEV("span",{className:"num",children:"100% kept"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),stale:i,footer:`Scored and score-free cuts. Kept = (saved − fetch-back beyond the tool's holdout baseline) ÷ saved; fetched back is the share of cuts the agent came back for within 12 calls. Sizes are the tokens a cut saved against plain; step combinations under 10 cuts fold into "other". Cells under ${Z2} cuts are dimmed.`,children:v.length===0?Xe.jsxDEV("div",{className:"empty",children:"No shortened results in this range."},void 0,!1,void 0,this):Xe.jsxDEV(Xe.Fragment,{children:[Xe.jsxDEV("div",{className:"spot-steps-scroll",children:Xe.jsxDEV("table",{className:"spot-econ spot-steps",children:[Xe.jsxDEV("thead",{children:Xe.jsxDEV("tr",{children:[Xe.jsxDEV("th",{scope:"col",children:"Steps"},void 0,!1,void 0,this),dg.map((h)=>Xe.jsxDEV("th",{scope:"col",className:"num",children:[h," ",Xe.jsxDEV("span",{className:"dim",children:"saved"},void 0,!1,void 0,this)]},h,!0,void 0,this)),Xe.jsxDEV("th",{scope:"col",children:"All sizes"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this),Xe.jsxDEV("tbody",{children:v.map(({tool:h,rows:x})=>{let m=zr(h);return Xe.jsxDEV(hg.Fragment,{children:[Xe.jsxDEV("tr",{className:"spot-steps-tool",children:Xe.jsxDEV("th",{scope:"rowgroup",colSpan:dg.length+2,children:Xe.jsxDEV("span",{className:"row spot-econ-tool",children:[Xe.jsxDEV(m,{size:13,"aria-hidden":"true"},void 0,!1,void 0,this),h]},void 0,!0,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this),x.map((S)=>{let{total:C}=S,T=C.savedTokens>0?(C.savedTokens-C.excessTokens)/C.savedTokens:null;return Xe.jsxDEV("tr",{children:[Xe.jsxDEV("th",{scope:"row",className:"spot-steps-name",title:S.steps,children:S.steps},void 0,!1,void 0,this),dg.map((w)=>{let I=S.bySize.get(w);if(I===void 0||I.cuts===0)return Xe.jsxDEV("td",{children:Xe.jsxDEV("div",{className:"spot-econ-cell","data-empty":"true",children:Xe.jsxDEV("span",{className:"dim",children:"–"},void 0,!1,void 0,this)},void 0,!1,void 0,this)},w,!1,void 0,this);let R=jn(I.fetchBackRate,Qt);return Xe.jsxDEV("td",{children:Xe.jsxDEV(W2,{kept:I.keptShare,cuts:I.cuts,title:[`${h} · ${S.steps} · ${w} saved: ${M(I.cuts)} cuts`,`Saved ${le(I.savedTokens)}, fetched back ${le(I.recoveredTokens)}, ${le(I.excessTokens)} beyond the baseline`,`Fetched back after ${Qt(I.fetchBackRate.value)} of cuts${R===""?"":` (${R})`}`].join(`
238
- `),children:[Xe.jsxDEV("div",{children:[Xe.jsxDEV("dt",{children:"cuts"},void 0,!1,void 0,this),Xe.jsxDEV("dd",{className:"num",children:M(I.cuts)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),Xe.jsxDEV("div",{children:[Xe.jsxDEV("dt",{children:"fetched back"},void 0,!1,void 0,this),Xe.jsxDEV("dd",{className:"num",children:Qt(I.fetchBackRate.value)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)},w,!1,void 0,this)}),Xe.jsxDEV("td",{children:Xe.jsxDEV(W2,{kept:T,cuts:C.cuts,title:`${h} · ${S.steps}: ${M(C.cuts)} cuts saved ${le(C.savedTokens)}, ${le(C.excessTokens)} fetched back beyond the baseline`,children:[Xe.jsxDEV("div",{children:[Xe.jsxDEV("dt",{children:"cuts"},void 0,!1,void 0,this),Xe.jsxDEV("dd",{className:"num",children:M(C.cuts)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),Xe.jsxDEV("div",{children:[Xe.jsxDEV("dt",{children:"saved"},void 0,!1,void 0,this),Xe.jsxDEV("dd",{className:"num",children:le(C.savedTokens)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)]},S.steps,!0,void 0,this)})]},h,!0,void 0,this)})},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this),g.length>0&&Xe.jsxDEV(Yf,{hidden:g.map((h)=>h.tool),expanded:l,onToggle:()=>c((h)=>!h)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)}var vo=_(ae(),1),aO=[{key:"fetch",label:"Fetch-back turns",color:"var(--spot-turns)"},{key:"shape",label:"Shaping",color:"var(--spot-cost)"}];function eR({stats:r,stale:i}){let l=r.timeCost,c=l.agentMs>0?l.fetchBackMs/l.agentMs:0,f=l.agentMs>0?l.shapeMs/l.agentMs:0,y=c+f,g=y>0?y*1.15:1,v=c/g*100,h=f/g*100;return vo.jsxDEV(ge,{index:3,title:"Time cost",description:"Share of the experiment sessions' model time spent on requests that only fetched cut output back, plus the time tool calls spent shaping",actions:vo.jsxDEV(ra,{items:aO},void 0,!1,void 0,this),stale:i,footer:`Model time is the summed duration of the experiment sessions' requests. A fetch-back turn is a request whose every tool call fetched back output a cut hid; shaping is the wall time tool calls spent shaping (Spotlight's requests included, held-out results too). Bars run to ${Qt(g)} of model time.`,children:l.agentMs===0?vo.jsxDEV("div",{className:"empty",children:"No experiment requests in this range."},void 0,!1,void 0,this):vo.jsxDEV("ul",{className:"spot-time",children:vo.jsxDEV("li",{className:"spot-time-row",children:[vo.jsxDEV("span",{className:"spot-time-label",children:"Shaped sessions"},void 0,!1,void 0,this),vo.jsxDEV("span",{className:"spot-time-track","aria-hidden":"true",children:[vo.jsxDEV("span",{className:"spot-time-fill",style:{width:`${v}%`,background:"var(--spot-turns)"}},void 0,!1,void 0,this),vo.jsxDEV("span",{className:"spot-time-fill",style:{width:`${h}%`,background:"var(--spot-cost)"}},void 0,!1,void 0,this)]},void 0,!0,void 0,this),vo.jsxDEV("span",{className:"spot-time-share num",children:Qt(y)},void 0,!1,void 0,this),vo.jsxDEV("span",{className:"spot-time-detail",children:[vo.jsxDEV("span",{className:"num",children:mr(l.fetchBackMs)},void 0,!1,void 0,this)," in"," ",vo.jsxDEV("span",{className:"num",children:M(l.fetchBackTurns)},void 0,!1,void 0,this)," ",l.fetchBackTurns===1?"turn":"turns"," ·"," ",vo.jsxDEV("span",{className:"num",children:mr(l.shapeMs)},void 0,!1,void 0,this)," shaping",vo.jsxDEV("span",{className:"dim",children:[" ","of ",vo.jsxDEV("span",{className:"num",children:mr(l.agentMs)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this)}var bt=_(ae(),1),oO=[{value:"all",label:"All",title:"Every experiment session, subagents and advisors included"},{value:"main",label:"Main",title:"Sessions you drove: the main agent only"},{value:"subagent",label:"Subagents",title:"Sessions the task tool spawned"}],rO={all:"",main:"main-agent ",subagent:"subagent "};function gg({id:r,title:i,children:l}){return bt.jsxDEV("header",{className:"spot-section rise",id:r,children:[bt.jsxDEV("h2",{className:"spot-section-title",children:i},void 0,!1,void 0,this),bt.jsxDEV("p",{className:"spot-section-copy",children:l},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function aR({active:r,range:i}){let[l,c]=tR.useState("all"),f=Ft(["spotlight",i,l],({signal:v})=>uI(i,l,v),{enabled:r}),y=Jt(i),g=f.data?.experimentStart??null;return bt.jsxDEV("div",{className:"page spot-page",children:[bt.jsxDEV(ma,{title:"Spotlight",description:`What shaping tool output saved in ${u(y.windowKey)} against what pi would have shown unshaped, after taking back what the agent fetched again because of a cut.`,actions:bt.jsxDEV(Na,{"aria-label":"Sessions",options:oO,value:l,onChange:c},void 0,!1,void 0,this)},void 0,!1,void 0,this),bt.jsxDEV(_e,{query:f,skeleton:bt.jsxDEV(Et,{height:220},void 0,!1,void 0,this),isEmpty:(v)=>v.sessions===0&&v.recent.length===0,empty:bt.jsxDEV(ge,{children:bt.jsxDEV("div",{className:"spot-empty",children:[bt.jsxDEV("span",{className:"spot-empty-icon","aria-hidden":"true",children:bt.jsxDEV(Ss,{size:20},void 0,!1,void 0,this)},void 0,!1,void 0,this),bt.jsxDEV("h2",{className:"spot-empty-title",children:g===null?"The Spotlight experiment hasn't run yet":`No ${rO[l]}experiment sessions in ${u(y.windowKey)}`},void 0,!1,void 0,this),bt.jsxDEV("p",{className:"spot-empty-hint",children:g===null?bt.jsxDEV(bt.Fragment,{children:["Turn it on with ",bt.jsxDEV("code",{children:"spotlight.experiment.enabled"},void 0,!1,void 0,this)," in your settings or"," ",bt.jsxDEV("code",{children:"PI_SPOTLIGHT_EXPERIMENT=1"},void 0,!1,void 0,this),". Every session then shapes tool output, a random share of results is held out unshaped as the counterfactual, and this page tracks what the cuts save as you work."]},void 0,!0,void 0,this):l==="all"?"Try a longer range, or start a session with the experiment enabled.":"Try a longer range, or switch to All sessions."},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this),children:(v)=>bt.jsxDEV(bt.Fragment,{children:[bt.jsxDEV(B2,{stats:v,windowLabel:u(y.windowKey),stale:f.stale},void 0,!1,void 0,this),bt.jsxDEV(gg,{id:"spot-saved",title:"What it saved",children:"Where the saving came from, what fetch-backs took back, and what later requests no longer carry."},void 0,!1,void 0,this),bt.jsxDEV("div",{className:"grid grid-main-side",children:[bt.jsxDEV(j2,{stats:v,range:i,stale:f.stale},void 0,!1,void 0,this),bt.jsxDEV($2,{stats:v,stale:f.stale},void 0,!1,void 0,this)]},void 0,!0,void 0,this),bt.jsxDEV(M2,{stats:v,active:r,stale:f.stale},void 0,!1,void 0,this),bt.jsxDEV(K2,{stats:v,range:i,stale:f.stale},void 0,!1,void 0,this),bt.jsxDEV(gg,{id:"spot-cost",title:"What it cost",children:"Agent time, Spotlight's latency and failures, and whether shaped sessions got worse."},void 0,!1,void 0,this),bt.jsxDEV(eR,{stats:v,stale:f.stale},void 0,!1,void 0,this),bt.jsxDEV(P2,{stats:v,stale:f.stale},void 0,!1,void 0,this),bt.jsxDEV(gg,{id:"spot-work",title:"Is Spotlight doing the work?",children:"Whether its heat finds the lines the agent needs, and whether its cuts come back less than cuts made without it."},void 0,!1,void 0,this),bt.jsxDEV(U2,{stats:v,stale:f.stale},void 0,!1,void 0,this),bt.jsxDEV(q2,{stats:v,stale:f.stale},void 0,!1,void 0,this),bt.jsxDEV(O2,{stats:v,stale:f.stale},void 0,!1,void 0,this),bt.jsxDEV(gg,{id:"spot-tune",title:"Where to tune",children:"Which steps, sizes and tools pay, and which tools Spotlight doesn't shape yet."},void 0,!1,void 0,this),bt.jsxDEV(J2,{stats:v,stale:f.stale},void 0,!1,void 0,this),bt.jsxDEV(E2,{stats:v,stale:f.stale},void 0,!1,void 0,this),bt.jsxDEV(A2,{stats:v,stale:f.stale},void 0,!1,void 0,this),bt.jsxDEV(G2,{rows:v.recent,stale:f.stale},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 Fi=_(Qe(),1);var Se=_(ae(),1),nO=[{value:"calls",label:u("tools.calls")},{value:"errors",label:u("tools.errors")}],oR=6;function sO(r){if(r<3600000)return u("tools.bucket-5m");if(r<86400000)return u("tools.bucket-hour");return u("tools.bucket-day")}var Nx=Se.jsxDEV(mt,{title:u("tools.no-tool-calls")},void 0,!1,void 0,this);function rR({active:r,range:i}){let l=Ft(["tools",i],({signal:w})=>cI(i,w),{enabled:r}),[c,f]=Fi.useState("calls"),[y,g]=Or(),[v,h]=Fi.useState(null),x=Jt(i),m=Fi.useMemo(()=>lO(l.data,i),[l.data,i]),S=v!==null&&m.toolNames.includes(v)?v:null,C=c==="calls"?m.callSeries:m.errorSeries,T=(w)=>w.byTool.length===0;return Se.jsxDEV("div",{className:"page",children:[Se.jsxDEV(ma,{title:u("tools.title"),description:u("tools.description",{window:u(x.windowKey)})},void 0,!1,void 0,this),Se.jsxDEV(_e,{query:l,skeleton:Se.jsxDEV(Et,{height:112},void 0,!1,void 0,this),children:()=>{let w=m.totals;return Se.jsxDEV("div",{"data-stale":l.stale,className:"stack",style:{gap:16},children:[Se.jsxDEV(Sa,{min:190,children:[Se.jsxDEV(ue,{label:u("tools.tool-calls"),value:M(w.calls),hint:u("tools.failed-n",{count:M(w.errors)}),spark:m.totalCalls},void 0,!1,void 0,this),Se.jsxDEV(ue,{label:u("tools.distinct-tools"),value:M(w.tools),hint:m.rows[0]?u("tools.most-used",{tool:m.rows[0].tool}):void 0},void 0,!1,void 0,this),Se.jsxDEV(ue,{label:u("common.error-rate"),title:u("tools.error-rate-title"),value:Co(w.calls>0?w.errors/w.calls:0),hint:u("tools.succeeded-n",{count:M(w.calls-w.errors)}),spark:m.totalErrors,sparkColor:"var(--bad)"},void 0,!1,void 0,this),Se.jsxDEV(ue,{label:u("tools.attributed-tokens"),title:u("tools.attribution-note"),value:le(Math.round(w.tokens)),hint:u("tools.tokens-output",{tokens:le(Math.round(w.output))})},void 0,!1,void 0,this),Se.jsxDEV(ue,{label:u("tools.attributed-cost"),title:u("tools.attribution-estimate",{note:u("tools.attribution-note")}),value:ea(w.cost,w.unpriced),hint:w.unpriced>0?u("tools.unpriced-requests-n",{count:M(Math.round(w.unpriced))}):u("tools.api-equivalent")},void 0,!1,void 0,this)]},void 0,!0,void 0,this),Se.jsxDEV(Sa,{min:150,children:[Se.jsxDEV(ue,{size:"sm",label:u("tools.result-text"),title:u("tools.result-chars-title"),value:u("tools.chars",{count:le(w.resultChars)})},void 0,!1,void 0,this),Se.jsxDEV(ue,{size:"sm",label:u("tools.call-arguments"),title:u("tools.args-chars-title"),value:u("tools.chars",{count:le(w.argsChars)})},void 0,!1,void 0,this),Se.jsxDEV(ue,{size:"sm",label:u("tools.avg-result-per-call"),value:u("tools.chars",{count:le(w.calls>0?Math.round(w.resultChars/w.calls):0)})},void 0,!1,void 0,this),Se.jsxDEV(ue,{size:"sm",label:u("tools.avg-args-per-call"),value:u("tools.chars",{count:le(w.calls>0?Math.round(w.argsChars/w.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),Se.jsxDEV(ge,{index:1,title:c==="calls"?u("tools.calls-over-time"):u("tools.errors-over-time"),description:u("tools.chart-description",{bucket:sO(x.bucketMs),count:oR}),actions:Se.jsxDEV(Na,{size:"sm",options:nO,value:c,onChange:f},void 0,!1,void 0,this),stale:l.stale,children:Se.jsxDEV(_e,{query:l,skeleton:Se.jsxDEV(Et,{height:260},void 0,!1,void 0,this),isEmpty:T,empty:Nx,children:()=>Se.jsxDEV("div",{className:"stack",style:{gap:12},children:[Se.jsxDEV(zo,{buckets:m.buckets,bucketMs:x.bucketMs,series:C,hidden:y,height:260,formatTooltip:M,emptyLabel:c==="errors"?u("tools.no-tool-errors"):void 0},void 0,!1,void 0,this),Se.jsxDEV(ra,{items:C.map((w)=>({key:w.key,label:w.label,color:w.color,value:le(w.values.reduce((I,R)=>I+(R??0),0))})),hidden:y,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),Se.jsxDEV(ge,{index:2,title:u("tools.by-tool"),description:u("tools.by-tool-description",{note:u("tools.attribution-note")}),flush:!0,stale:l.stale,children:Se.jsxDEV(_e,{query:l,skeleton:Se.jsxDEV(ka,{rows:8},void 0,!1,void 0,this),isEmpty:T,empty:Nx,children:()=>Se.jsxDEV(Ut,{rows:m.rows,rowKey:(w)=>w.tool,columns:m.toolColumns,initialSort:{key:"calls",dir:"desc"},limit:20,selectedKey:S,onRowClick:(w)=>h((I)=>I===w.tool?null:w.tool),dense:!0},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this),Se.jsxDEV(ge,{index:3,title:u("tools.by-tool-and-model"),description:u("tools.by-tool-and-model-description"),flush:!0,stale:l.stale,actions:Se.jsxDEV("div",{className:"row",style:{gap:6},children:[Se.jsxDEV("select",{className:"input tools-filter",value:S??"",onChange:(w)=>h(w.target.value||null),"aria-label":u("tools.filter-by-tool"),children:[Se.jsxDEV("option",{value:"",children:u("tools.all-tools")},void 0,!1,void 0,this),m.toolNames.map((w)=>Se.jsxDEV("option",{value:w,children:w},w,!1,void 0,this))]},void 0,!0,void 0,this),S!==null&&Se.jsxDEV("button",{type:"button",className:"btn","data-size":"sm","data-variant":"ghost","data-icon":"true",title:u("tools.clear-tool-filter"),"aria-label":u("tools.clear-tool-filter"),onClick:()=>h(null),children:Se.jsxDEV(Lo,{size:13},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),children:Se.jsxDEV(_e,{query:l,skeleton:Se.jsxDEV(ka,{rows:8},void 0,!1,void 0,this),isEmpty:T,empty:Nx,children:(w)=>Se.jsxDEV(uO,{rows:w.byToolModel,tool:S,colors:m.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 lO(r,i){let l=r?.byTool??[],c=r?.series??[],f=e2(l).sort((T,w)=>w.calls-T.calls),y=Uf(l.map((T)=>({key:T.tool,weight:T.calls}))),g=eo(i,c.map((T)=>T.timestamp)),v={calls:0,errors:0,tools:l.length,tokens:0,output:0,cost:0,unpriced:0,resultChars:0,argsChars:0};for(let T of l)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[h,x]=[(T)=>T.calls,(T)=>T.errors].map((T)=>Vn(c,{buckets:g,key:(w)=>w.tool,value:T,limit:oR,colors:y}).map((w)=>({...w,values:w.values.map((I)=>I||null)}))),m=new Map(Vn(c,{buckets:g,key:(T)=>T.tool,value:(T)=>T.calls}).map((T)=>[T.key,T.values])),S=f[0]?.calls??0,C=iO(S,y,m);return{rows:f,colors:y,buckets:g,totals:v,callSeries:h,errorSeries:x,totalCalls:ia(c,g,(T)=>T.calls),totalErrors:ia(c,g,(T)=>T.errors),toolNames:f.map((T)=>T.tool).sort((T,w)=>T.localeCompare(w)),toolColumns:C}}function iO(r,i,l){return[{key:"tool",header:u("tools.tool"),sort:(c)=>c.tool,render:(c)=>Se.jsxDEV("span",{className:"row",style:{gap:8},children:[Se.jsxDEV(Zr,{color:i.get(c.tool)??wo},void 0,!1,void 0,this),Se.jsxDEV("span",{className:"mono truncate tools-name",title:c.tool,children:c.tool},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},{key:"trend",header:u("tools.trend"),title:u("tools.trend-title"),render:(c)=>{let f=l.get(c.tool);return f&&f.length>1?Se.jsxDEV(od,{values:f,width:80,height:20,color:i.get(c.tool)??wo},void 0,!1,void 0,this):Se.jsxDEV("span",{className:"dim",children:"–"},void 0,!1,void 0,this)}},{key:"calls",header:u("tools.calls"),align:"right",sort:(c)=>c.calls,render:(c)=>Se.jsxDEV(Ra,{value:c.calls,max:r,display:Se.jsxDEV("span",{title:u("tools.share-of-calls",{percent:Ge(c.callFraction)}),children:[M(c.calls),Se.jsxDEV("span",{className:"dim tools-share",children:Ge(c.callFraction,0)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)},{key:"errorRate",header:u("tools.errors"),title:u("tools.errors-title"),align:"right",sort:(c)=>c.errorRate,render:(c)=>Se.jsxDEV("span",{className:"row",style:{gap:8,justifyContent:"flex-end"},children:[Se.jsxDEV("span",{className:"num dim",children:M(c.errors)},void 0,!1,void 0,this),Se.jsxDEV(yt,{tone:c.errors>0?pr(c.errorRate):"neutral",mono:!0,children:Co(c.errorRate)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},{key:"args",header:u("tools.args"),title:u("tools.args-chars-title"),align:"right",sort:(c)=>c.argsChars,render:(c)=>Se.jsxDEV("span",{className:"num",children:le(c.argsChars)},void 0,!1,void 0,this)},{key:"result",header:u("tools.result"),title:u("tools.result-chars-title"),align:"right",sort:(c)=>c.resultChars,render:(c)=>Se.jsxDEV("span",{className:"num",children:le(c.resultChars)},void 0,!1,void 0,this)},{key:"avgResult",header:u("tools.result-per-call"),title:u("tools.result-per-call-title"),align:"right",sort:(c)=>c.avgResultChars,render:(c)=>Se.jsxDEV("span",{className:"num muted",children:le(Math.round(c.avgResultChars))},void 0,!1,void 0,this)},{key:"tokens",header:u("tools.attr-tokens"),title:u("tools.attribution-note"),align:"right",sort:(c)=>c.totalTokensShare,render:(c)=>Se.jsxDEV("span",{className:"num",title:u("tools.share-of-tokens",{percent:Ge(c.tokenFraction)}),children:[le(Math.round(c.totalTokensShare)),Se.jsxDEV("span",{className:"dim tools-share",children:Ge(c.tokenFraction,0)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},{key:"cost",header:u("tools.attr-cost"),title:u("tools.attribution-estimate",{note:u("tools.attribution-note")}),align:"right",sort:(c)=>c.costShare,render:(c)=>Se.jsxDEV("span",{className:"num",title:u("tools.share-of-cost",{percent:Ge(c.costFraction)}),children:[ea(c.costShare,c.unpricedRequestsShare),Se.jsxDEV("span",{className:"dim tools-share",children:Ge(c.costFraction,0)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},{key:"lastUsed",header:u("tools.last-used"),align:"right",sort:(c)=>c.lastUsed,render:(c)=>Se.jsxDEV("span",{className:"muted",children:La(c.lastUsed)},void 0,!1,void 0,this)}]}function uO({rows:r,tool:i,colors:l}){let c=Fi.useMemo(()=>(i===null?r:r.filter((y)=>y.tool===i)).map((y)=>({...y,errorRate:y.calls>0?y.errors/y.calls:0})),[r,i]),f=Fi.useMemo(()=>{let y=c.reduce((g,v)=>Math.max(g,v.calls),0);return[{key:"tool",header:u("tools.tool"),sort:(g)=>g.tool,render:(g)=>Se.jsxDEV("span",{className:"row",style:{gap:8},children:[Se.jsxDEV(Zr,{color:l.get(g.tool)??wo},void 0,!1,void 0,this),Se.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:u("common.model"),sort:(g)=>g.model,render:(g)=>Se.jsxDEV(lo,{primary:Se.jsxDEV("span",{className:"mono",children:g.model||u("common.unknown")},void 0,!1,void 0,this),secondary:g.provider},void 0,!1,void 0,this)},{key:"calls",header:u("tools.calls"),align:"right",sort:(g)=>g.calls,render:(g)=>Se.jsxDEV(Ra,{value:g.calls,max:y,display:M(g.calls)},void 0,!1,void 0,this)},{key:"errorRate",header:u("tools.errors"),align:"right",sort:(g)=>g.errorRate,render:(g)=>Se.jsxDEV("span",{className:"row",style:{gap:8,justifyContent:"flex-end"},children:[Se.jsxDEV("span",{className:"num dim",children:M(g.errors)},void 0,!1,void 0,this),Se.jsxDEV(yt,{tone:g.errors>0?pr(g.errorRate):"neutral",mono:!0,children:Co(g.errorRate)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},{key:"result",header:u("tools.result"),title:u("tools.result-chars-title"),align:"right",sort:(g)=>g.resultChars,render:(g)=>Se.jsxDEV("span",{className:"num",children:le(g.resultChars)},void 0,!1,void 0,this)},{key:"tokens",header:u("tools.attr-tokens"),title:u("tools.attribution-note"),align:"right",sort:(g)=>g.totalTokensShare,render:(g)=>Se.jsxDEV("span",{className:"num",children:le(Math.round(g.totalTokensShare))},void 0,!1,void 0,this)},{key:"cost",header:u("tools.attr-cost"),title:u("tools.attribution-estimate",{note:u("tools.attribution-note")}),align:"right",sort:(g)=>g.costShare,render:(g)=>Se.jsxDEV("span",{className:"num",children:ea(g.costShare,g.unpricedRequestsShare)},void 0,!1,void 0,this)},{key:"lastUsed",header:u("tools.last-used"),align:"right",sort:(g)=>g.lastUsed,render:(g)=>Se.jsxDEV("span",{className:"muted",children:La(g.lastUsed)},void 0,!1,void 0,this)}]},[c,l]);return Se.jsxDEV(Ut,{rows:c,rowKey:(y)=>`${y.tool}::${y.model}::${y.provider}`,columns:f,initialSort:{key:"calls",dir:"desc"},limit:25,dense:!0,empty:Se.jsxDEV(mt,{title:i?u("tools.no-calls-to-tool",{tool:i}):u("tools.no-tool-calls")},void 0,!1,void 0,this)},void 0,!1,void 0,this)}var hd=_(Qe(),1);var Vt=_(Qe(),1);var $n=_(ae(),1);function nR({toolStats:r,index:i}){if(r.length===0)return null;let l=Math.max(...r.map((f)=>f.totalMs)),c=[{key:"tool",header:u("trace.tool"),render:(f)=>$n.jsxDEV("span",{className:"mono",children:f.tool},void 0,!1,void 0,this),sort:(f)=>f.tool},{key:"calls",header:u("trace.calls"),align:"right",render:(f)=>$n.jsxDEV("span",{className:"num",children:M(f.calls)},void 0,!1,void 0,this),sort:(f)=>f.calls},{key:"errors",header:u("trace.errors"),align:"right",render:(f)=>f.errors>0?$n.jsxDEV(yt,{tone:"bad",children:u("trace.failed-n",{count:M(f.errors)})},void 0,!1,void 0,this):$n.jsxDEV("span",{className:"num dim",children:"0"},void 0,!1,void 0,this),sort:(f)=>f.errors},{key:"total",header:u("common.total"),align:"right",width:200,render:(f)=>$n.jsxDEV(Ra,{value:f.totalMs,max:l,display:Lt(f.totalMs),color:"var(--warn)"},void 0,!1,void 0,this),sort:(f)=>f.totalMs},{key:"avg",header:u("trace.avg"),align:"right",render:(f)=>$n.jsxDEV("span",{className:"num",children:Lt(f.calls>0?f.totalMs/f.calls:0)},void 0,!1,void 0,this),sort:(f)=>f.calls>0?f.totalMs/f.calls:0},{key:"max",header:u("trace.max"),align:"right",render:(f)=>$n.jsxDEV("span",{className:"num",children:Lt(f.maxMs)},void 0,!1,void 0,this),sort:(f)=>f.maxMs}];return $n.jsxDEV(ge,{title:u("trace.tool-aggregates"),description:u("trace.tool-aggregates-desc",{count:r.length}),flush:!0,index:i,children:$n.jsxDEV(Ut,{columns:c,rows:r,rowKey:(f)=>f.tool,dense:!0,limit:12},void 0,!1,void 0,this)},void 0,!1,void 0,this)}var yr=_(Qe(),1);var Xn=_(Qe(),1),dO=Xn.createContext(null),Gi={turn:"--ink-2",model:"--chart-primary",tool:"--warn",subagent:"--chart-secondary",background:"--ink-4"};function cO(r){let i=getComputedStyle(r),l=(c,f)=>i.getPropertyValue(c).trim()||f;return{category:{turn:l(Gi.turn,"#a0a0a8"),model:l(Gi.model,"#5ad8e6"),tool:l(Gi.tool,"#f5a524"),subagent:l(Gi.subagent,"#ed4abf"),background:l(Gi.background,"#46464c")},error:l("--bad","#ff6166"),errorSoft:l("--bad-soft","rgba(255, 97, 102, 0.13)"),marker:l("--ink-1","#ededef"),turnBand:l("--hover","rgba(255, 255, 255, 0.035)"),grid:l("--chart-grid","rgba(255, 255, 255, 0.055)"),tick:l("--chart-axis","#5c5c64"),spanText:l("--ink-inverse","#0a0a0b"),selection:l("--focus","#5ad8e6"),brush:l("--selected","rgba(255, 255, 255, 0.075)"),fontSans:l("--font-sans","system-ui, sans-serif"),fontMono:l("--font-mono","ui-monospace, monospace")}}function cd(){let r=Xn.useContext(dO)??document.documentElement,[i,l]=Xn.useState(0);return Xn.useEffect(()=>{let c=new MutationObserver(()=>l((y)=>y+1)),f={attributes:!0,attributeFilter:["data-theme","style","class"]};if(c.observe(document.documentElement,f),r!==document.documentElement)c.observe(r,f);return()=>c.disconnect()},[r]),Xn.useMemo(()=>cO(r),[r,i])}var iR=_(ae(),1),zl=44,Qf=["turn","model","tool","subagent"],sR=6,fd=10;function fO(r,i,l,c){let f=devicePixelRatio,y=Math.floor(l*f),g=Math.floor(zl*f),v,h;if(typeof OffscreenCanvas>"u"){let w=document.createElement("canvas");w.width=y,w.height=g,v=w,h=w.getContext("2d")}else{let w=new OffscreenCanvas(y,g);v=w,h=w.getContext("2d")}if(!h)return v;h.setTransform(f,0,0,f,0,0);let[x,m]=i.domain,S=Math.max(m-x,0.000000001),C=Qf.map(()=>new Float32Array(l));for(let w of r)for(let I of w.spans){let R=Qf.indexOf(I.kind);if(R===-1)continue;let N=C[R],P=Math.max(0,Math.floor((i.toU(I.start)-x)/S*l)),V=Math.min(l-1,Math.ceil((i.toU(I.end)-x)/S*l));for(let K=P;K<=V;K++)N[K]=Math.min(1,N[K]+0.34)}let T=zl/Qf.length;for(let w=0;w<Qf.length;w++){let I=C[w];h.fillStyle=c.category[Qf[w]];for(let R=0;R<l;R++){if(I[R]<=0)continue;h.globalAlpha=0.25+I[R]*0.75,h.fillRect(R,w*T+1,1,T-2)}h.globalAlpha=1}return v}function lR({tracks:r,scale:i,viewport:l,onViewportChange:c}){let f=cd(),y=yr.useRef(null),[g,v]=yr.useState(800),h=yr.useRef(null);yr.useEffect(()=>{let P=y.current;if(!P)return;let V=new ResizeObserver((K)=>{v(Math.max(100,Math.floor(K[0].contentRect.width)))});return V.observe(P),()=>V.disconnect()},[]);let[x,m]=i.domain,S=Math.max(m-x,0.000000001),C=yr.useCallback((P)=>(P-x)/S*g,[x,S,g]),T=yr.useCallback((P)=>x+P/Math.max(g,1)*S,[x,S,g]),w=yr.useMemo(()=>fO(r,i,g,f),[r,i,g,f]);yr.useEffect(()=>{let P=y.current;if(!P)return;let V=P.getContext("2d");if(!V)return;let K=devicePixelRatio;V.setTransform(1,0,0,1,0,0),V.clearRect(0,0,P.width,P.height),V.drawImage(w,0,0),V.setTransform(K,0,0,K,0,0);let de=C(l.u0),W=C(l.u1);V.fillStyle=f.brush,V.fillRect(de,0,W-de,zl),V.strokeStyle=f.selection,V.strokeRect(de+0.5,0.5,W-de-1,zl-1),V.fillStyle=f.selection,V.fillRect(de,0,2,zl),V.fillRect(W-2,0,2,zl)},[w,l,f,C]);let I=(P)=>{let V=P.currentTarget.getBoundingClientRect(),K=P.clientX-V.left,de=C(l.u0),W=C(l.u1),fe;if(Math.abs(K-de)<=sR)fe="left";else if(Math.abs(K-W)<=sR)fe="right";else if(K>de&&K<W)fe="move";else{fe="create";let ee=T(K);c(Wf({u0:ee,u1:ee+fd},x,m))}h.current={mode:fe,startX:K,startViewport:l},P.currentTarget.setPointerCapture(P.pointerId)},R=(P)=>{let V=h.current;if(!V)return;let K=P.currentTarget.getBoundingClientRect(),de=P.clientX-K.left,W=T(de)-T(V.startX),{u0:fe,u1:ee}=V.startViewport;if(V.mode==="move")c(Wf({u0:fe+W,u1:ee+W},x,m));else if(V.mode==="left")c(Wf({u0:Math.min(fe+W,ee-fd),u1:ee},x,m));else if(V.mode==="right")c(Wf({u0:fe,u1:Math.max(ee+W,fe+fd)},x,m));else{let H=T(V.startX),X=T(de);c(Wf({u0:Math.min(H,X),u1:Math.max(H,X,Math.min(H,X)+fd)},x,m))}},N=()=>{h.current=null};return iR.jsxDEV("canvas",{ref:y,width:Math.floor(g*devicePixelRatio),height:Math.floor(zl*devicePixelRatio),className:"traces-minimap",style:{height:zl},role:"slider","aria-label":u("trace.minimap-aria"),"aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":Math.round((l.u0-x)/S*100),tabIndex:-1,onPointerDown:I,onPointerMove:R,onPointerUp:N},void 0,!1,void 0,this)}function Wf(r,i,l){let c=Math.max(fd,r.u1-r.u0);c=Math.min(c,l-i||fd);let f=r.u0;if(f<i)f=i;if(f+c>l)f=l-c;return{u0:f,u1:f+c}}var Yn=_(Qe(),1);var je=_(ae(),1);function pO(r){let i=[];if(typeof r==="string"){if(r.trim())i.push({kind:"text",text:r});return i}if(!Array.isArray(r))return i;for(let l of r){if(!l||typeof l!=="object"||!("type"in l))continue;if((l.type==="text"||l.type==="thinking")&&"text"in l&&typeof l.text==="string")i.push({kind:String(l.type),text:l.text})}return i}function mO({title:r,subtitle:i,actions:l,onClose:c,children:f}){return je.jsxDEV("section",{className:"traces-inline-detail","aria-label":"Selected span details",children:[je.jsxDEV("header",{className:"drawer-header",children:[je.jsxDEV("div",{className:"drawer-titles",children:[je.jsxDEV("h2",{className:"drawer-title",children:r},void 0,!1,void 0,this),i!==void 0&&je.jsxDEV("div",{className:"drawer-subtitle",children:i},void 0,!1,void 0,this)]},void 0,!0,void 0,this),l,je.jsxDEV("button",{type:"button",className:"btn","data-icon":"true",onClick:c,"aria-label":"Close span details",children:je.jsxDEV(Lo,{size:16},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),je.jsxDEV("div",{className:"drawer-body",children:f},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function uR({span:r,track:i,onClose:l,onOpenChildTrack:c,loadEntry:f=hI,inline:y=!1,onNavigate:g}){let[v,h]=Yn.useState(null),[x,m]=Yn.useState(!1),[S,C]=Yn.useState(null),[T,w]=Yn.useState(!1),I=Yn.useRef(0);if(Yn.useEffect(()=>{if(h(null),C(null),w(!1),m(!1),!r||!i||!r.entryId)return;m(!0);let W=new AbortController;return f(i.file,r.entryId,W.signal).then((fe)=>{if(!W.signal.aborted)h(fe.entry)}).catch((fe)=>{if(W.signal.aborted)return;C(og(fe))}).finally(()=>{if(!W.signal.aborted)m(!1)}),()=>W.abort()},[r,i,f]),Yn.useEffect(()=>()=>window.clearTimeout(I.current),[]),!r)return null;let R=async()=>{try{await navigator.clipboard.writeText(JSON.stringify(v??r,null,2)),w(!0),window.clearTimeout(I.current),I.current=window.setTimeout(()=>w(!1),1500)}catch{}},P=(v&&typeof v==="object"?v:{}).message,V=P?.usage,K=[{key:"duration",label:u("common.duration"),value:je.jsxDEV("span",{className:"num",children:[Lt(r.end-r.start),r.unterminated&&je.jsxDEV("span",{className:"muted",children:[" · ",u("trace.unterminated")]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)},{key:"start",label:u("trace.start"),value:je.jsxDEV("span",{className:"num",children:new Date(r.start).toLocaleTimeString()},void 0,!1,void 0,this)},{key:"track",label:u("trace.track"),value:je.jsxDEV("span",{className:"mono",children:i?.label??"-"},void 0,!1,void 0,this)}];if(r.kind==="model"){if(K.push({key:"tokens",label:u("common.tokens"),value:je.jsxDEV("span",{className:"num",children:M(r.tokens??0)},void 0,!1,void 0,this)},{key:"cost",label:u("common.cost"),value:je.jsxDEV("span",{className:"num",children:["$",(r.cost??0).toFixed(4)]},void 0,!0,void 0,this)},{key:"ttft",label:u("trace.ttft"),value:je.jsxDEV("span",{className:"num",children:Lt(r.ttft??null)},void 0,!1,void 0,this)},{key:"model",label:u("common.model"),value:je.jsxDEV("span",{className:"mono",children:P?.model??r.model??"-"},void 0,!1,void 0,this)}),V)K.push({key:"split",label:u("trace.io-cached"),value:je.jsxDEV("span",{className:"num",children:[M(V.input??0)," / ",M(V.output??0)," /"," ",M(V.cacheRead??0)]},void 0,!0,void 0,this)});if(P?.provider)K.push({key:"provider",label:u("common.provider"),value:je.jsxDEV("span",{className:"mono",children:P.provider},void 0,!1,void 0,this)});if(P?.stopReason)K.push({key:"stop",label:u("trace.stop-reason"),value:je.jsxDEV("span",{className:"mono",children:P.stopReason},void 0,!1,void 0,this)})}return je.jsxDEV(y?mO:Ju,{open:!0,onClose:l,title:r.label,subtitle:je.jsxDEV("span",{className:"row",style:{gap:6},children:je.jsxDEV(yt,{tone:r.isError?"bad":"neutral",children:r.isError?`${r.kind} · ${u("common.error")}`:r.kind},void 0,!1,void 0,this)},void 0,!1,void 0,this),actions:je.jsxDEV("button",{type:"button",className:"btn","data-variant":"ghost","data-icon":"true",onClick:R,"aria-label":u("trace.copy-json"),title:u("trace.copy-json"),children:T?je.jsxDEV(Mi,{size:15},void 0,!1,void 0,this):je.jsxDEV(Di,{size:15},void 0,!1,void 0,this)},void 0,!1,void 0,this),children:je.jsxDEV("div",{className:"stack traces-drawer",children:[je.jsxDEV(Oo,{items:K},void 0,!1,void 0,this),g&&i&&r.entryId&&je.jsxDEV("div",{children:je.jsxDEV("button",{type:"button",className:"btn","data-size":"sm",onClick:()=>{if(r.entryId)g(i.id,r.entryId)},children:"Jump to transcript"},void 0,!1,void 0,this)},void 0,!1,void 0,this),P?.errorMessage&&je.jsxDEV("div",{className:"stack",style:{gap:6},children:[je.jsxDEV("div",{className:"section-label tone-bad",children:u("trace.error-message")},void 0,!1,void 0,this),je.jsxDEV("pre",{className:"code-block traces-pre",children:P.errorMessage},void 0,!1,void 0,this)]},void 0,!0,void 0,this),r.kind==="subagent"&&je.jsxDEV("div",{className:"stack",style:{gap:8},children:[r.detail&&je.jsxDEV(je.Fragment,{children:[je.jsxDEV("div",{className:"section-label",children:u("trace.task")},void 0,!1,void 0,this),je.jsxDEV("pre",{className:"code-block traces-pre",children:r.detail},void 0,!1,void 0,this)]},void 0,!0,void 0,this),r.childTrackId&&c&&je.jsxDEV("div",{children:je.jsxDEV("button",{type:"button",className:"btn","data-size":"sm",onClick:()=>c(r.childTrackId??""),children:[u("trace.open-child-track")," ",je.jsxDEV("span",{className:"mono",children:r.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),r.kind==="tool"&&r.detail&&je.jsxDEV("div",{className:"stack",style:{gap:6},children:[je.jsxDEV("div",{className:"section-label",children:u("trace.args")},void 0,!1,void 0,this),je.jsxDEV("pre",{className:"code-block traces-pre",children:r.detail},void 0,!1,void 0,this)]},void 0,!0,void 0,this),x&&je.jsxDEV("div",{className:"stack",children:[je.jsxDEV(to,{height:80},void 0,!1,void 0,this),je.jsxDEV(to,{height:160},void 0,!1,void 0,this)]},void 0,!0,void 0,this),S&&je.jsxDEV(Nl,{error:u("trace.load-failed",{message:S.message})},void 0,!1,void 0,this),!x&&v!==null&&pO(P?.content).map((W,fe)=>je.jsxDEV("div",{className:"stack",style:{gap:6},children:[je.jsxDEV("div",{className:"section-label",children:W.kind==="thinking"?u("trace.thinking"):u("trace.text")},void 0,!1,void 0,this),je.jsxDEV("pre",{className:"code-block traces-pre","data-scroll":"true",children:W.text},void 0,!1,void 0,this)]},`${W.kind}-${fe}`,!0,void 0,this)),!x&&v!==null&&je.jsxDEV(ed,{data:v,title:u("trace.raw-entry"),initialCollapsed:!0},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)}var rn=_(ae(),1);function dR({summary:r}){let i=(l)=>r.wallMs>0?u("trace.of-wall",{percent:Ge(l/r.wallMs)}):void 0;return rn.jsxDEV(Sa,{min:112,children:[rn.jsxDEV(ue,{size:"sm",label:u("trace.wall-time"),value:mr(r.wallMs)},void 0,!1,void 0,this),rn.jsxDEV(ue,{size:"sm",label:u("trace.model-time"),value:mr(r.modelMs),hint:i(r.modelMs)},void 0,!1,void 0,this),rn.jsxDEV(ue,{size:"sm",label:u("trace.tool-time"),value:mr(r.toolMs),hint:i(r.toolMs)},void 0,!1,void 0,this),rn.jsxDEV(ue,{size:"sm",label:u("trace.idle"),value:mr(r.idleMs),hint:i(r.idleMs)},void 0,!1,void 0,this),rn.jsxDEV(ue,{size:"sm",label:u("trace.turns"),value:M(r.turns)},void 0,!1,void 0,this),rn.jsxDEV(ue,{size:"sm",label:u("common.requests"),value:M(r.requests),hint:u("trace.tool-calls-n",{count:M(r.toolCalls)})},void 0,!1,void 0,this),rn.jsxDEV(ue,{size:"sm",label:u("trace.agents"),value:M(r.subagents)},void 0,!1,void 0,this),rn.jsxDEV(ue,{size:"sm",label:u("common.tokens"),value:le(r.totalTokens)},void 0,!1,void 0,this),rn.jsxDEV(ue,{size:"sm",label:u("common.cost"),value:ea(r.costTotal,r.unpricedRequests)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}var $t=_(Qe(),1),yR=_(Kc(),1);function yg(r,i){let l=r.length,c=[i[0],i[l-1]],f=(y,g)=>{let v=0,h=l-1;while(v<h){let x=v+h+1>>1;if(y[x]<=g)v=x;else h=x-1}return Math.min(v,l-2)};return{toU(y){if(y<=r[0])return i[0];if(y>=r[l-1])return i[l-1];let g=f(r,y),v=r[g+1]-r[g];if(v<=0)return i[g];return i[g]+(y-r[g])/v*(i[g+1]-i[g])},toT(y){if(y<=i[0])return r[0];if(y>=i[l-1])return r[l-1];let g=f(i,y),v=i[g+1]-i[g];if(v<=0)return r[g];return r[g]+(y-i[g])/v*(r[g+1]-r[g])},domain:c,gaps:[]}}function hO(r){let i=[];for(let l of r)for(let c of l.spans)i.push([c.start,c.end]);return i.sort((l,c)=>l[0]-c[0]),i}function gO(r){let{POSITIVE_INFINITY:i,NEGATIVE_INFINITY:l}=Number;for(let c of r)for(let f of c.spans){if(f.start<i)i=f.start;if(f.end>l)l=f.end}if(!Number.isFinite(i))return[0,1];return[i,Math.max(l,i+1)]}function cR(r,i,l){let c=[...new Set(r.filter((v)=>v>=i&&v<=l))].sort((v,h)=>v-h);if(c[0]!==i)c.unshift(i);if(c[c.length-1]!==l)c.push(l);if(c.length<2)return yg([i,l],[i,l]);let y=(l-i)/(c.length-1),g=c.map((v,h)=>i+h*y);return yg(c,g)}function yO(r,i,l){let c=hO(r),f=[];for(let[m,S]of c){let C=m-2000,T=S+2000,w=f[f.length-1];if(w&&C<=w[1]){if(T>w[1])w[1]=T}else f.push([C,T])}if(f.length===0)f.push([i,l]);f[0][0]=Math.max(f[0][0],i),f[f.length-1][1]=Math.min(Math.max(f[f.length-1][1],f[f.length-1][0]),l);let y=[],g=[],v=[],h=f[0][0];for(let m=0;m<f.length;m++){let[S,C]=f[m];if(m===0)y.push(S),g.push(h);else{let T=f[m-1][1],w=S-T;if(w>30000)h+=8000,v.push({t0:T,t1:S,uMid:h-4000});else h+=w;y.push(S),g.push(h)}h+=Math.max(0,C-S),y.push(C),g.push(h)}return{...yg(y,g),gaps:v}}function fR(r,i,l){let[c,f]=gO(r);if(i==="turns"){let g=(r.find((v)=>v.id==="main")?.spans??[]).filter((v)=>v.kind==="turn").map((v)=>v.start);return cR(g,c,f)}if(i==="calls"){let y=[];for(let g of r)for(let v of g.spans)if(v.kind==="model"||v.kind==="tool"||v.kind==="background")y.push(v.start,v.end);return cR(y,c,f)}if(l)return yO(r,c,f);return yg([c,f],[c,f])}var vO=90;function bO(r){let i=10**Math.floor(Math.log10(Math.max(r,1)));for(let l of[1,2,5,10])if(i*l>=r)return i*l;return i*10}function xO(r){let i=new Date(r),l=String(i.getHours()).padStart(2,"0"),c=String(i.getMinutes()).padStart(2,"0"),f=String(i.getSeconds()).padStart(2,"0");return`${l}:${c}:${f}`}function pd(r){let i=r<0?"-":"+",l=Math.abs(r),c=Math.floor(l/3600000),f=Math.floor(l%3600000/60000),y=Math.floor(l%60000/1000),g=Math.floor(l%1000),v=l%1000!==0,h=`${String(f).padStart(2,"0")}:${String(y).padStart(2,"0")}${v?".":""}${v?String(g).padStart(3,"0"):""}`;return c>0?`${i}${c}:${h}`:`${i}${h}`}function pR(r,i,l,c){let f=l-i;if(f<=0||c<=0)return[];let y=[],g=r.domain[0],v=bO(f*vO/c),h=g+Math.ceil((i-g)/v)*v,x=0;for(let m=h;m<=l&&x<200;m+=v,x++){let S=r.toT(m),C=Math.round((m-g)/v)%5===0;y.push({u:m,label:C?xO(S):pd(m-g),major:C})}return y}var _t=_(ae(),1),Ds=28,zx=22,Yo=18,mR=3,SO=14,hR=200,qx=10,vR=2,kO=4,LO=56,vg=3,Bx=0.3,CO=[{kind:"turn",label:u("common.input")},{kind:"model",label:u("common.model")},{kind:"tool",label:u("trace.tools")},{kind:"subagent",label:u("trace.agents")},{kind:"background",label:u("trace.bg")}];function wO(r,i){let l=new Map(r.map((h)=>[h.id,h])),c=new Set;for(let h of r)if(h.parentId)c.add(h.parentId);let f=(h)=>{let x=h.parentId;while(x){if(i.has(x))return!0;x=l.get(x)?.parentId??null}return!1},y=[],g=[],v=Ds+6;for(let h of r){if(f(h))continue;let x=h.id==="main"?0:h.id.split("/").length,m={turn:[],model:[],tool:[],subagent:[],background:[]};for(let C of h.spans)m[C.kind].push(C);let S={track:h,depth:x,hasChildren:c.has(h.id),headerY:v,lanes:[],turnSpans:m.turn,y0:v,y1:v};v+=zx;for(let{kind:C,label:T}of CO){let w=m[C],I=C==="turn"||C==="model"||C==="tool";if(w.length===0&&!(h.id==="main"&&I))continue;let R={track:h,kind:C,label:T,y:v,spans:w};S.lanes.push(R),g.push(R),v+=Yo+mR}S.y1=v-mR,y.push(S),v+=SO}return{blocks:y,lanes:g,totalHeight:Math.max(v,Ds+48)}}function TO(r,i){return r.lanes.map((l)=>{let c=l.spans.length,f=new Float64Array(c),y=new Float64Array(c),g=new Float64Array(c),v=Number.NEGATIVE_INFINITY;for(let h=0;h<c;h++){let x=l.spans[h];f[h]=i.toU(x.start),y[h]=i.toU(x.end),v=Math.max(v,y[h]),g[h]=v}return{startU:f,endU:y,maxEndU:g}})}function IO(r,i){let l=0,c=r.length;while(l<c){let f=l+c>>>1;if(r[f]<i)l=f+1;else c=f}return l}function RO(r,i){if(r===null||i===null)return r===i;if(r.kind==="span")return i.kind==="span"&&r.span===i.span;return i.kind==="marker"&&r.marker===i.marker}function bR({tracks:r,scale:i,viewport:l,onViewportChange:c,selected:f,onSelect:y,matchIds:g,collapsed:v,onToggleCollapse:h,traceStart:x,autoFocus:m=!0}){let S=cd(),C=$t.useRef(null),T=$t.useRef(null),w=$t.useRef(null),[I,R]=$t.useState(800),[N,P]=$t.useState(null),V=$t.useRef(null);V.current=N;let K=$t.useRef({clientX:0,clientY:0}),de=$t.useRef([]),W=$t.useRef(null),fe=$t.useRef(null),ee=$t.useRef(l);ee.current=l;let H=$t.useMemo(()=>wO(r,v),[r,v]),X=$t.useMemo(()=>TO(H,i),[H,i]);$t.useEffect(()=>{let te=C.current;if(!te)return;let Q=new ResizeObserver((ke)=>{let De=Math.max(100,Math.floor(ke[0].contentRect.width-hR));R(De)});return Q.observe(te),()=>Q.disconnect()},[]);let Le=$t.useCallback((te,Q)=>{let[ke,De]=i.domain,lt=Math.max(qx,Q-te);lt=Math.min(lt,De-ke||qx);let Ue=te;if(Ue<ke)Ue=ke;if(Ue+lt>De)Ue=De-lt;return{u0:Ue,u1:Ue+lt}},[i]),me=$t.useCallback((te)=>{ee.current=te,c(te)},[c]),Oe=$t.useCallback((te,Q)=>{let ke=I,{u0:De,u1:lt}=ee.current,Ue=lt-De,Te=Q===null?0.5:Math.min(1,Math.max(0,Q/ke)),va=De+Ue*Te,Ne=Ue*te;me(Le(va-Ne*Te,va+Ne*(1-Te)))},[I,me,Le]),we=$t.useCallback((te)=>{let{u0:Q,u1:ke}=ee.current;me(Le(Q+te,ke+te))},[me,Le]),re=$t.useCallback((te)=>{let Q=i.toU(te.start),ke=i.toU(te.end),De=Math.max((ke-Q)*0.1,qx/2);me(Le(Q-De,ke+De))},[i,me,Le]);$t.useEffect(()=>{let te=T.current;if(!te)return;let Q=(ke)=>{ke.preventDefault();let De=te.getBoundingClientRect(),lt=ke.clientX-De.left;fe.current=lt,P(null);let Ue=te.clientWidth||1,Te=()=>ee.current.u1-ee.current.u0;if(ke.shiftKey){let va=Math.abs(ke.deltaY)>=Math.abs(ke.deltaX)?ke.deltaY:ke.deltaX;we(va/Ue*Te());return}if(ke.deltaX!==0)we(ke.deltaX/Ue*Te());if(ke.deltaY!==0)Oe(1.0015**ke.deltaY,lt)};return te.addEventListener("wheel",Q,{passive:!1}),()=>te.removeEventListener("wheel",Q)},[Oe,we]);let xe=$t.useCallback((te,Q)=>{let ke=T.current;if(!ke)return null;let De=ke.getBoundingClientRect(),lt=te-De.left,Ue=Q-De.top,Te=de.current;for(let va=Te.length-1;va>=0;va--){let Ne=Te[va];if(lt>=Ne.x&&lt<=Ne.x+Ne.w&&Ue>=Ne.y&&Ue<=Ne.y+Ne.h)return Ne}return null},[]),Ae=$t.useCallback(()=>{let te=w.current;if(!te)return;let{clientX:Q,clientY:ke}=K.current,De=Math.min(Q+14,window.innerWidth-320),lt=ke+16>window.innerHeight-140?ke-120:ke+16;te.style.transform=`translate(${De}px, ${lt}px)`},[]),Je=(te)=>{te.currentTarget.setPointerCapture(te.pointerId),W.current={pointerId:te.pointerId,lastX:te.clientX,moved:!1},te.currentTarget.focus()},ht=(te)=>{let Q=te.currentTarget.getBoundingClientRect();fe.current=te.clientX-Q.left;let ke=W.current;if(ke&&ke.pointerId===te.pointerId){let lt=te.clientX-ke.lastX;if(Math.abs(lt)>0){if(Math.abs(lt)>2)ke.moved=!0;ke.lastX=te.clientX;let Ue=ee.current.u1-ee.current.u0;we(-lt/(I||1)*Ue)}P(null);return}K.current={clientX:te.clientX,clientY:te.clientY};let De=xe(te.clientX,te.clientY);if(RO(De,V.current))Ae();else P(De)},Z=(te)=>{let Q=W.current;if(W.current=null,Q?.moved)return;let ke=xe(te.clientX,te.clientY);if(ke?.kind==="span")y(ke.span.id);else y(null)},He=(te)=>{let Q=xe(te.clientX,te.clientY);if(Q?.kind==="span")re(Q.span)},Ct=$t.useCallback((te)=>{let Q=f?.span.id;if(!Q)return;for(let ke of H.lanes){let De=ke.spans.findIndex((Te)=>Te.id===Q);if(De===-1)continue;let lt=ke.spans[De+te];if(!lt)return;y(lt.id);let Ue=i.toU(lt.start);if(Ue<l.u0||Ue>l.u1){let Te=l.u1-l.u0;c(Le(Ue-Te/2,Ue+Te/2))}return}},[f,H,y,i,l,c,Le]),wt=(te)=>{let Q=l.u1-l.u0;switch(te.key){case"w":case"W":Oe(0.7692307692307692,fe.current);break;case"s":case"S":Oe(1.3,fe.current);break;case"a":case"A":we(-Q*0.2);break;case"d":case"D":we(Q*0.2);break;case"0":c({u0:i.domain[0],u1:i.domain[1]});break;case"f":case"F":if(f)re(f.span);break;case"Escape":y(null);break;case",":Ct(-1);break;case".":Ct(1);break;default:return}te.preventDefault(),te.stopPropagation()};$t.useEffect(()=>{if(m)T.current?.focus({preventScroll:!0})},[m]),$t.useEffect(()=>{let te=T.current;if(!te)return;let Q=requestAnimationFrame(()=>{de.current=MO(te,H,X,i,l,S,I,g)});return()=>cancelAnimationFrame(Q)},[H,X,i,l,S,I,g]);let he=N?.kind==="span"?gR(N,H,i,l,I):null,Ye=f?gR(f,H,i,l,I):null;$t.useLayoutEffect(()=>{if(N)Ae()},[N,Ae]);let Fe=N?AO(N,x,w):null,ua=Math.floor(I*devicePixelRatio),na=Math.floor(H.totalHeight*devicePixelRatio),G={width:I,height:H.totalHeight};return _t.jsxDEV("div",{ref:C,className:"traces-timeline",children:[_t.jsxDEV("div",{style:{width:hR,flexShrink:0,position:"relative",height:H.totalHeight},children:H.blocks.map((te)=>_t.jsxDEV("div",{children:[_t.jsxDEV("div",{style:{position:"absolute",top:te.headerY,left:4+te.depth*14,right:8,height:zx,display:"flex",alignItems:"center",gap:5,minWidth:0},children:[te.hasChildren?_t.jsxDEV("button",{type:"button",onClick:()=>h(te.track.id),"aria-label":v.has(te.track.id)?u("trace.expand-track",{track:te.track.label}):u("trace.collapse-track",{track:te.track.label}),className:"traces-chevron",children:v.has(te.track.id)?_t.jsxDEV(Wr,{size:12},void 0,!1,void 0,this):_t.jsxDEV(Ai,{size:12},void 0,!1,void 0,this)},void 0,!1,void 0,this):_t.jsxDEV("span",{style:{width:12,flexShrink:0}},void 0,!1,void 0,this),_t.jsxDEV("span",{className:"traces-gutter-track truncate",style:{minWidth:0},children:te.track.label},void 0,!1,void 0,this),te.track.model&&_t.jsxDEV("span",{className:"traces-gutter-model mono truncate",style:{flexShrink:1,minWidth:0},children:te.track.model},void 0,!1,void 0,this)]},void 0,!0,void 0,this),te.lanes.map((Q)=>_t.jsxDEV("div",{className:"traces-gutter-lane",style:{top:Q.y,left:20+te.depth*14,lineHeight:`${Yo}px`},children:Q.label},`${Q.track.id}:${Q.kind}`,!1,void 0,this))]},te.track.id,!0,void 0,this))},void 0,!1,void 0,this),_t.jsxDEV("div",{className:"traces-canvas-stack",style:G,children:[_t.jsxDEV("canvas",{ref:T,className:"traces-canvas",width:ua,height:na,style:G,tabIndex:0,role:"application","aria-label":u("trace.canvas-aria"),onPointerDown:Je,onPointerMove:ht,onPointerUp:Z,onPointerLeave:()=>{fe.current=null,P(null)},onDoubleClick:He,onKeyDown:wt},void 0,!1,void 0,this),he&&N?.kind==="span"&&_t.jsxDEV("div",{className:"traces-canvas-hover","aria-hidden":"true",style:{left:he.x,top:he.y,width:he.w,height:Yo,borderRadius:vg,opacity:g===null||g.has(N.span.id)?1:Bx}},void 0,!1,void 0,this),Ye&&f&&_t.jsxDEV("div",{className:"traces-canvas-selection","aria-hidden":"true",style:{left:Ye.x-1,top:Ye.y-1,width:Ye.w+2,height:Yo+2,borderRadius:vg,borderColor:S.selection,opacity:g===null||g.has(f.span.id)?1:Bx}},void 0,!1,void 0,this)]},void 0,!0,void 0,this),Fe&&yR.createPortal(Fe,C.current?.getRootNode()instanceof ShadowRoot?C.current.getRootNode():document.body)]},void 0,!0,void 0,this)}function Ox(r,i,l,c,f){if(r.beginPath(),c>=vg*2+1)r.roundRect(i,l,c,f,vg);else r.rect(i,l,c,f)}function MO(r,i,l,c,f,y,g,v){let h=[],x=r.getContext("2d");if(!x)return h;let m=i.totalHeight,S=devicePixelRatio;x.setTransform(S,0,0,S,0,0),x.clearRect(0,0,g,m);let{u0:C,u1:T}=f,w=Math.max(T-C,0.000000001),I=(R)=>(R-C)/w*g;for(let R of i.blocks){let N=R.turnSpans;for(let P=0;P<N.length;P++){let V=I(c.toU(N[P].start)),K=P+1<N.length?I(c.toU(N[P+1].start)):g;if(K<0||V>g)continue;if(P%2===1)x.fillStyle=y.turnBand,x.fillRect(Math.max(0,V),R.y0,Math.min(g,K)-Math.max(0,V),R.y1-R.y0);if(V>=0&&V<=g)x.strokeStyle=y.grid,x.beginPath(),x.moveTo(Math.round(V)+0.5,R.y0),x.lineTo(Math.round(V)+0.5,R.y1),x.stroke()}}x.font=`9px ${y.fontMono}`;for(let R of c.gaps){let N=I(R.uMid);if(N<-24||N>g+24)continue;x.save(),x.strokeStyle=y.grid,x.setLineDash([2,4]),x.beginPath(),x.moveTo(N,Ds),x.lineTo(N,m),x.stroke(),x.restore(),x.fillStyle=y.tick,x.textAlign="center",x.fillText(`⋯ ${Lt(R.t1-R.t0)}`,N,Ds-4),x.textAlign="left"}for(let R of pR(c,C,T,g)){let N=Math.round(I(R.u))+0.5;if(x.strokeStyle=y.grid,x.beginPath(),R.major)x.moveTo(N,4),x.lineTo(N,m);else x.moveTo(N,Ds-8),x.lineTo(N,Ds);if(x.stroke(),x.fillStyle=y.tick,R.major)x.fillText(R.label,N+4,11);else x.globalAlpha=0.75,x.fillText(R.label,N+3,Ds-10),x.globalAlpha=1}x.strokeStyle=y.grid,x.beginPath(),x.moveTo(0,Ds+0.5),x.lineTo(g,Ds+0.5),x.stroke(),x.font=`10px ${y.fontSans}`;for(let R=0;R<i.lanes.length;R++){let N=i.lanes[R],{startU:P,endU:V,maxEndU:K}=l[R],de=N.kind==="turn";for(let W=IO(K,C);W<N.spans.length;W++){let fe=P[W];if(fe>T)break;let ee=V[W];if(ee<C)continue;let H=N.spans[W],X=I(fe),Le=Math.max(vR,I(ee)-X),me=N.y,Oe=v===null||v.has(H.id)?1:Bx,we=y.category[H.kind];if(x.globalAlpha=Oe,de)x.fillStyle=we,x.globalAlpha=Oe*0.23,Ox(x,X,me,Le,Yo),x.fill(),x.globalAlpha=Oe,x.fillStyle=we,x.fillRect(X,me,2,Yo);else x.fillStyle=we,Ox(x,X,me,Le,Yo),x.fill();if(H.isError)x.fillStyle=y.errorSoft,Ox(x,X,me,Le,Yo),x.fill(),x.fillStyle=y.error,x.fillRect(X,me,2,Yo);if(H.kind==="model"&&typeof H.ttft==="number"&&H.ttft>0&&Le>20){let xe=I(c.toU(H.start+H.ttft));if(xe>X+1&&xe<X+Le-1)x.fillStyle="rgba(0,0,0,0.5)",x.fillRect(xe,me+3,1,Yo-6)}if(H.unterminated)x.save(),x.strokeStyle=y.tick,x.setLineDash([2,2]),x.beginPath(),x.moveTo(X+Le-0.5,me),x.lineTo(X+Le-0.5,me+Yo),x.stroke(),x.restore();if(Le>LO)x.save(),x.beginPath(),x.rect(X+3,me,Le-6,Yo),x.clip(),x.fillStyle=de?y.tick:y.spanText,x.fillText(H.label,X+5,me+Yo-5),x.restore();x.globalAlpha=1;let re=Math.max(Le,kO);h.push({kind:"span",x:X-(re-Le)/2,y:me,w:re,h:Yo,span:H,track:N.track})}}for(let R of i.blocks)for(let N of R.track.markers){let P=I(c.toU(N.time));if(P<-6||P>g+6)continue;let V=R.headerY+zx/2;x.fillStyle=y.marker,x.beginPath(),x.moveTo(P,V-4),x.lineTo(P+4,V),x.lineTo(P,V+4),x.lineTo(P-4,V),x.closePath(),x.fill(),h.push({kind:"marker",x:P-5,y:V-5,w:10,h:10,marker:N,track:R.track})}return h}function gR({span:r,track:i},l,c,f,y){let{u0:g,u1:v}=f,h=c.toU(r.start),x=c.toU(r.end);if(h>v||x<g)return null;let m=l.lanes.find((w)=>w.track===i&&w.kind===r.kind);if(!m)return null;let S=Math.max(v-g,0.000000001),C=(h-g)/S*y,T=(x-g)/S*y;return{x:C,y:m.y,w:Math.max(vR,T-C)}}function AO(r,i,l){let c={left:0,top:0};if(r.kind==="marker"){let{marker:y}=r;return _t.jsxDEV("div",{ref:l,className:"traces-tooltip",style:c,children:[_t.jsxDEV("div",{className:"traces-tooltip-title",children:y.label},void 0,!1,void 0,this),_t.jsxDEV("div",{className:"muted num",children:[new Date(y.time).toLocaleTimeString()," (",pd(y.time-i),")"]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)}let{span:f}=r;return _t.jsxDEV("div",{ref:l,className:"traces-tooltip",style:c,children:[_t.jsxDEV("div",{className:"traces-tooltip-title truncate",children:f.label},void 0,!1,void 0,this),_t.jsxDEV("div",{className:"muted num",children:[Lt(f.end-f.start)," · ",new Date(f.start).toLocaleTimeString()," (",pd(f.start-i),")",f.unterminated?` · ${u("trace.unterminated")}`:""]},void 0,!0,void 0,this),f.kind==="model"&&_t.jsxDEV("div",{className:"muted num",children:[f.tokens!==void 0&&_t.jsxDEV(_t.Fragment,{children:[M(f.tokens)," ",u("trace.tok")]},void 0,!0,void 0,this),f.cost!==void 0&&_t.jsxDEV(_t.Fragment,{children:[" · $",f.cost.toFixed(4)]},void 0,!0,void 0,this),f.ttft!==void 0&&_t.jsxDEV(_t.Fragment,{children:[" ","· ",u("trace.ttft")," ",Lt(f.ttft)]},void 0,!0,void 0,this),f.isError&&_t.jsxDEV(_t.Fragment,{children:[" · ",u("common.error")]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),f.kind==="subagent"&&f.model&&_t.jsxDEV("div",{className:"muted num",children:f.model},void 0,!1,void 0,this),f.detail&&_t.jsxDEV("div",{className:"traces-tooltip-detail",children:f.detail},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}var nn=_(Qe(),1);var uo=_(ae(),1),md=28,xR=20,DO=340;function EO(r){let i=[];for(let l of r){let c=l.id==="main"?0:l.id.split("/").length;for(let f of l.spans)i.push({key:f.id,time:f.start,span:f,track:l,depth:c});for(let f=0;f<l.markers.length;f++){let y=l.markers[f];i.push({key:`${l.id}:marker:${f}`,time:y.time,marker:y,track:l,depth:c})}}return i.sort((l,c)=>l.time-c.time),i}var SR=nn.memo(function({tracks:i,selection:l,onSelect:c,search:f,matchIds:y,traceStart:g}){let v=cd(),h=nn.useRef(null),[x,m]=nn.useState(0),S=nn.useMemo(()=>EO(i),[i]),C=nn.useMemo(()=>{if(!y)return S;let R=f.trim().toLowerCase();return S.filter((N)=>N.span?y.has(N.span.id):(N.marker?.label??"").toLowerCase().includes(R))},[S,f,y]);nn.useEffect(()=>{if(!l)return;let R=h.current;if(!R)return;let N=C.findIndex((V)=>V.span?.id===l);if(N===-1)return;let P=N*md;if(P<R.scrollTop||P+md>R.scrollTop+R.clientHeight)R.scrollTop=Math.max(0,P-R.clientHeight/2)},[l,C]);let T=Math.max(0,Math.floor(x/md)-xR),w=Math.min(C.length,Math.ceil((x+DO)/md)+xR),I=C.slice(T,w);return uo.jsxDEV("div",{ref:h,onScroll:(R)=>m(R.currentTarget.scrollTop),className:"traces-list",children:[uo.jsxDEV("div",{style:{height:C.length*md,position:"relative"},children:uo.jsxDEV("div",{style:{position:"absolute",top:T*md,left:0,right:0},children:I.map((R)=>{let N=R.span,P=N!==void 0&&N.id===l,V=R.span?v.category[R.span.kind]:v.marker,K=R.span?.label??R.marker?.label??"",de=R.span?.detail,W=R.span?Lt(R.span.end-R.span.start):"",fe=R.span?.kind??R.marker?.kind??"",ee=uo.jsxDEV(uo.Fragment,{children:[uo.jsxDEV("span",{className:"traces-kind",style:{"--traces-kind-color":V},children:fe},void 0,!1,void 0,this),R.depth>0&&uo.jsxDEV("span",{className:"traces-row-track mono truncate",title:R.track.label,children:R.track.id},void 0,!1,void 0,this),uo.jsxDEV("span",{className:"traces-row-label truncate",children:K},void 0,!1,void 0,this),de&&uo.jsxDEV("span",{className:"traces-row-detail truncate",children:de},void 0,!1,void 0,this),uo.jsxDEV("span",{className:"traces-row-meta num",children:[R.span?.isError&&uo.jsxDEV("span",{className:"tone-bad",children:u("common.error")},void 0,!1,void 0,this),uo.jsxDEV("span",{children:W},void 0,!1,void 0,this),uo.jsxDEV("span",{children:pd(R.time-g)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),H={paddingLeft:12+R.depth*12};return N?uo.jsxDEV("button",{type:"button",onClick:()=>c(N.id),className:"traces-row","data-selected":P?"true":"false",style:H,children:ee},R.key,!1,void 0,this):uo.jsxDEV("div",{className:"traces-row","data-static":"true",style:H,children:ee},R.key,!1,void 0,this)})},void 0,!1,void 0,this)},void 0,!1,void 0,this),C.length===0&&uo.jsxDEV(mt,{title:u("trace.no-matching-events")},void 0,!1,void 0,this)]},void 0,!0,void 0,this)});var nt=_(ae(),1),NO=[{value:"time",label:u("common.duration"),title:u("trace.mode-time-title")},{value:"turns",label:u("trace.turns"),title:u("trace.mode-turns-title")},{value:"calls",label:u("trace.calls"),title:u("trace.mode-calls-title")}],qO=[{kind:"turn",label:u("common.input")},{kind:"model",label:u("common.model")},{kind:"tool",label:u("trace.tool")},{kind:"subagent",label:u("trace.agent")},{kind:"background",label:u("trace.background")}];function kR({file:r,active:i,onBack:l}){let c=Ft(["trace",r],({signal:y},g)=>mI(r,y,g),{pollMs:15000,enabled:i}),f=c.stale?null:c.data;return nt.jsxDEV("div",{className:"stack traces-view",children:[nt.jsxDEV("div",{children:nt.jsxDEV("button",{type:"button",className:"btn","data-variant":"ghost","data-size":"sm",onClick:l,children:[nt.jsxDEV(tf,{size:14,"aria-hidden":"true"},void 0,!1,void 0,this),"Sessions"]},void 0,!0,void 0,this)},void 0,!1,void 0,this),nt.jsxDEV(ma,{title:nt.jsxDEV("span",{className:"traces-title truncate",children:f?.title??r.split("/").pop()},void 0,!1,void 0,this),description:f?.cwd?nt.jsxDEV("span",{className:"mono",children:f.cwd},void 0,!1,void 0,this):void 0,actions:nt.jsxDEV("button",{type:"button",className:"btn","data-variant":"ghost","data-icon":"true",onClick:c.refetch,"aria-label":"Refresh trace",title:"Refresh trace",children:nt.jsxDEV(Al,{size:14,className:c.refreshing?"traces-spin":void 0},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this),nt.jsxDEV(_e,{query:{...c,data:f},skeleton:nt.jsxDEV(Et,{height:420},void 0,!1,void 0,this),children:(y)=>nt.jsxDEV(OO,{trace:y},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function OO({trace:r,view:i="full",loadEntry:l,embedded:c=!1,onNavigate:f}){let[y,g]=Vt.useState("time"),[v,h]=Vt.useState(!0),[x,m]=Vt.useState(null),[S,C]=Vt.useState(!1),[T,w]=Vt.useState(""),[I,R]=Vt.useState(0),[N,P]=Vt.useState(new Set),[V,K]=Vt.useState(null),de=Vt.useMemo(()=>r?.tracks??[],[r]),W=Vt.useMemo(()=>fR(de,y,v),[de,y,v]),fe=Vt.useRef(W),ee=Vt.useRef(null);Vt.useEffect(()=>{if(!r)return;if(ee.current===r.file)return;ee.current=r.file,m(null),w(""),K(null);let he=new Set;for(let Ye of r.tracks)if((Ye.id==="main"?0:Ye.id.split("/").length)>=1)he.add(Ye.id);P(he)},[r]),Vt.useEffect(()=>{let he=fe.current;fe.current=W,K((Ye)=>{if(!Ye)return Ye;let Fe=he.toT(Ye.u0),ua=he.toT(Ye.u1),na=W.toU(Fe),G=W.toU(ua);return G-na>0?{u0:na,u1:G}:null})},[W]);let H=Vt.useMemo(()=>V??{u0:W.domain[0],u1:W.domain[1]},[V,W]),X=Vt.useMemo(()=>{let he=[];for(let Ye of de)for(let Fe of Ye.spans)he.push({span:Fe,track:Ye});return he.sort((Ye,Fe)=>Ye.span.start-Fe.span.start),he},[de]),Le=Vt.useMemo(()=>{let he=T.trim().toLowerCase();if(!he)return[];return X.filter(({span:Ye})=>`${Ye.label} ${Ye.detail??""}`.toLowerCase().includes(he))},[X,T]),me=Vt.useMemo(()=>T.trim()?new Set(Le.map(({span:he})=>he.id)):null,[Le,T]),Oe=Vt.useCallback((he)=>{let Ye=W.toU(he.start),Fe=W.toU(he.end);K((ua)=>{let na=ua??{u0:W.domain[0],u1:W.domain[1]};if(Ye>=na.u0&&Fe<=na.u1)return ua;let G=na.u1-na.u0,te=(Ye+Fe)/2,[Q,ke]=W.domain,De=te-G/2;if(De<Q)De=Q;if(De+G>ke)De=Math.max(Q,ke-G);return{u0:De,u1:De+G}})},[W]),we=Vt.useCallback((he)=>{m(he);let Ye=X.find(({span:Fe})=>Fe.id===he);if(Ye)Oe(Ye.span)},[X,Oe]),re=Vt.useCallback((he)=>{m(he),C(he!==null)},[]),xe=Vt.useCallback((he)=>{if(Le.length===0)return;let Ye=((I+he)%Le.length+Le.length)%Le.length;R(Ye),we(Le[Ye].span.id)},[Le,I,we]),Ae=Vt.useCallback((he)=>{P((Ye)=>{let Fe=new Set(Ye);if(Fe.has(he))Fe.delete(he);else Fe.add(he);return Fe})},[]),Je=Vt.useMemo(()=>{if(!x)return null;return X.find(({span:he})=>he.id===x)??null},[x,X]),ht=Vt.useCallback((he)=>{let Ye=de.find((ua)=>ua.id===he),Fe=Ye?.spans[0];if(P((ua)=>{let na=new Set(ua),G=Ye;while(G?.parentId)na.delete(G.parentId),G=de.find((te)=>te.id===G?.parentId);return na}),Fe)we(Fe.id)},[de,we]),Z=Vt.useCallback((he)=>{if(!he){P(new Set);return}let Ye=new Set;for(let Fe of de)if(Fe.id!=="main")Ye.add(Fe.id);P(Ye)},[de]),He=Vt.useCallback((he)=>{we(he),C(!0)},[we]),Ct=Vt.useCallback(()=>C(!1),[]),wt=r.startedAt;return nt.jsxDEV("div",{className:"stack traces-view","data-view":i,children:[i==="full"&&nt.jsxDEV(dR,{summary:r.summary},void 0,!1,void 0,this),X.length===0&&nt.jsxDEV("p",{className:"muted",children:"No spans recorded in this session."},void 0,!1,void 0,this),nt.jsxDEV(ge,{index:1,title:u("trace.timeline"),description:u("trace.timeline-hint"),actions:nt.jsxDEV(nt.Fragment,{children:[nt.jsxDEV("button",{type:"button",className:"btn","data-variant":"ghost","data-size":"sm",onClick:()=>Z(!1),children:u("trace.expand-all")},void 0,!1,void 0,this),nt.jsxDEV("button",{type:"button",className:"btn","data-variant":"ghost","data-size":"sm",onClick:()=>Z(!0),children:u("trace.collapse-all")},void 0,!1,void 0,this)]},void 0,!0,void 0,this),children:nt.jsxDEV("div",{className:"stack",children:[nt.jsxDEV("div",{className:"traces-toolbar",children:[nt.jsxDEV(Na,{options:NO,value:y,onChange:g,size:"sm","aria-label":u("trace.axis-mode")},void 0,!1,void 0,this),y==="time"&&nt.jsxDEV("label",{className:"traces-check",children:[nt.jsxDEV("input",{type:"checkbox",checked:v,onChange:(he)=>h(he.target.checked)},void 0,!1,void 0,this),u("trace.compress-idle")]},void 0,!0,void 0,this),nt.jsxDEV("div",{className:"traces-search",children:[nt.jsxDEV(Un,{value:T,onChange:(he)=>{w(he),R(0)},label:u("trace.search-placeholder"),placeholder:u("trace.search-placeholder"),width:200},void 0,!1,void 0,this),T.trim()&&nt.jsxDEV(nt.Fragment,{children:[nt.jsxDEV("span",{className:"num muted traces-match-count",children:Le.length===0?"0":`${I%Math.max(Le.length,1)+1}/${Le.length}`},void 0,!1,void 0,this),nt.jsxDEV("button",{type:"button",className:"btn","data-variant":"ghost","data-size":"sm","data-icon":"true",onClick:()=>xe(-1),"aria-label":u("trace.previous-match"),disabled:Le.length===0,children:nt.jsxDEV(sf,{size:14},void 0,!1,void 0,this)},void 0,!1,void 0,this),nt.jsxDEV("button",{type:"button",className:"btn","data-variant":"ghost","data-size":"sm","data-icon":"true",onClick:()=>xe(1),"aria-label":u("trace.next-match"),disabled:Le.length===0,children:nt.jsxDEV(Wr,{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),nt.jsxDEV("div",{className:"traces-legend",children:qO.map((he)=>nt.jsxDEV("span",{className:"traces-legend-item",children:[nt.jsxDEV("span",{className:"swatch",style:{background:`var(${Gi[he.kind]})`}},void 0,!1,void 0,this),he.label]},he.kind,!0,void 0,this))},void 0,!1,void 0,this)]},void 0,!0,void 0,this),nt.jsxDEV(lR,{tracks:de,scale:W,viewport:H,onViewportChange:K},void 0,!1,void 0,this),nt.jsxDEV(bR,{tracks:de,scale:W,viewport:H,onViewportChange:K,selected:Je,onSelect:re,matchIds:me,collapsed:N,onToggleCollapse:Ae,traceStart:wt,autoFocus:!c},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this),nt.jsxDEV(uR,{span:S?Je?.span??null:null,track:Je?.track??null,onClose:Ct,onOpenChildTrack:ht,loadEntry:l,inline:c,onNavigate:f},void 0,!1,void 0,this),i==="full"&&nt.jsxDEV(ge,{index:2,title:u("trace.transcript"),description:u("trace.transcript-description"),flush:!0,children:nt.jsxDEV(SR,{tracks:de,selection:x,onSelect:He,search:T,matchIds:me,traceStart:wt},void 0,!1,void 0,this)},void 0,!1,void 0,this),i==="full"&&nt.jsxDEV(nR,{toolStats:r.summary.toolStats,index:3},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}var ya=_(ae(),1),LR=200;function BO({models:r}){if(r.length===0)return ya.jsxDEV("span",{className:"dim",children:"-"},void 0,!1,void 0,this);return ya.jsxDEV("span",{className:"traces-models",title:r.join(`
239
- `),children:[ya.jsxDEV("span",{className:"mono truncate",children:r[0]},void 0,!1,void 0,this),r.length>1&&ya.jsxDEV("span",{className:"badge",children:["+",r.length-1]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)}function CR({active:r,session:i,onOpenSession:l}){let[c,f]=hd.useState(""),y=Ft(["sessions",LR],({signal:m})=>pI(LR,void 0,m),{pollMs:30000,enabled:r&&i===null}),g=hd.useMemo(()=>{let m=y.data??[],S=c.trim().toLowerCase();if(!S)return m;return m.filter((C)=>(C.title??"").toLowerCase().includes(S)||C.folder.toLowerCase().includes(S)||C.models.some((T)=>T.toLowerCase().includes(S)))},[y.data,c]),v=hd.useMemo(()=>Math.max(0,...g.map((m)=>m.costTotal)),[g]),h=hd.useMemo(()=>[{key:"title",header:u("trace.session"),width:"32%",render:(m)=>ya.jsxDEV(lo,{primary:m.title??m.file.split("/").pop(),secondary:ya.jsxDEV("span",{className:"mono",children:m.folder.split("/").slice(-2).join("/")},void 0,!1,void 0,this)},void 0,!1,void 0,this),sort:(m)=>(m.title??m.file).toLowerCase()},{key:"models",header:u("common.models"),render:(m)=>ya.jsxDEV(BO,{models:m.models},void 0,!1,void 0,this)},{key:"started",header:u("common.started"),align:"right",render:(m)=>ya.jsxDEV("span",{className:"muted",title:new Date(m.startedAt).toLocaleString(),children:La(m.startedAt)},void 0,!1,void 0,this),sort:(m)=>m.startedAt},{key:"duration",header:u("common.duration"),align:"right",render:(m)=>ya.jsxDEV("span",{className:"num",children:mr(m.endedAt-m.startedAt)},void 0,!1,void 0,this),sort:(m)=>m.endedAt-m.startedAt},{key:"requests",header:u("common.requests"),align:"right",render:(m)=>ya.jsxDEV("span",{className:"num",children:M(m.requests)},void 0,!1,void 0,this),sort:(m)=>m.requests},{key:"toolCalls",header:u("trace.tools"),align:"right",render:(m)=>ya.jsxDEV("span",{className:"num",children:M(m.toolCalls)},void 0,!1,void 0,this),sort:(m)=>m.toolCalls},{key:"subagents",header:u("trace.agents"),align:"right",render:(m)=>m.subagents>0?ya.jsxDEV("span",{className:"num",children:M(m.subagents)},void 0,!1,void 0,this):ya.jsxDEV("span",{className:"num dim",children:"0"},void 0,!1,void 0,this),sort:(m)=>m.subagents},{key:"tokens",header:u("common.tokens"),align:"right",render:(m)=>ya.jsxDEV("span",{className:"num",children:le(m.totalTokens)},void 0,!1,void 0,this),sort:(m)=>m.totalTokens},{key:"cost",header:u("common.cost"),align:"right",width:150,render:(m)=>ya.jsxDEV(Ra,{value:m.costTotal,max:v,display:ea(m.costTotal,m.unpricedRequests)},void 0,!1,void 0,this),sort:(m)=>m.costTotal}],[v]);if(i!==null)return ya.jsxDEV(kR,{file:i,active:r,onBack:()=>l(null)},void 0,!1,void 0,this);let x=y.data?.length??0;return ya.jsxDEV("div",{className:"stack traces-page",children:[ya.jsxDEV(ma,{title:u("trace.title"),description:u("trace.description")},void 0,!1,void 0,this),ya.jsxDEV(ge,{title:u("trace.sessions"),description:y.data?c.trim()?u("trace.most-recent-filtered",{shown:M(g.length),total:M(x)}):u("trace.most-recent",{count:M(x)}):void 0,actions:ya.jsxDEV(Un,{value:c,onChange:f,placeholder:u("trace.filter-placeholder"),width:260},void 0,!1,void 0,this),flush:!0,index:0,stale:y.stale,children:ya.jsxDEV(_e,{query:y,skeleton:ya.jsxDEV(ka,{rows:10},void 0,!1,void 0,this),isEmpty:(m)=>m.length===0,empty:ya.jsxDEV(mt,{title:u("trace.empty-title"),hint:u("trace.empty-hint")},void 0,!1,void 0,this),children:()=>ya.jsxDEV(Ut,{columns:h,rows:g,rowKey:(m)=>m.file,onRowClick:(m)=>l(m.file),initialSort:{key:"started",dir:"desc"},limit:50,empty:ya.jsxDEV(mt,{title:u("trace.no-matching-title"),hint:u("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 Ha=_(ae(),1);function Px(){return Ha.jsxDEV(xI,{children:Ha.jsxDEV(zO,{},void 0,!1,void 0,this)},void 0,!1,void 0,this)}function zO(){Dl();let{section:r,setSection:i,range:l,setRange:c,session:f,setSession:y}=UI(),[g,v]=gd.useState(null),h=gd.useCallback(()=>v(null),[]),x=gd.useRef(new Set);x.current.add(r);let m=(S)=>{let C=S===r;switch(S){case"overview":return Ha.jsxDEV(g2,{active:C,range:l,onRequestClick:v},void 0,!1,void 0,this);case"requests":return Ha.jsxDEV(L2,{active:C,range:l,onRequestClick:v},void 0,!1,void 0,this);case"errors":return Ha.jsxDEV(n2,{active:C,range:l,onRequestClick:v},void 0,!1,void 0,this);case"traces":return Ha.jsxDEV(CR,{active:C,session:f,onOpenSession:y},void 0,!1,void 0,this);case"models":return Ha.jsxDEV(f2,{active:C,range:l},void 0,!1,void 0,this);case"providers":return Ha.jsxDEV(S2,{active:C,range:l},void 0,!1,void 0,this);case"costs":return Ha.jsxDEV(o2,{active:C,range:l},void 0,!1,void 0,this);case"tools":return Ha.jsxDEV(rR,{active:C,range:l},void 0,!1,void 0,this);case"frustration":return Ha.jsxDEV(l2,{active:C,range:l},void 0,!1,void 0,this);case"projects":return Ha.jsxDEV(v2,{active:C,range:l},void 0,!1,void 0,this);case"gain":return Ha.jsxDEV(d2,{active:C,range:l},void 0,!1,void 0,this);case"spotlight":return Ha.jsxDEV(aR,{active:C,range:l},void 0,!1,void 0,this)}};return Ha.jsxDEV(Ha.Fragment,{children:[Ha.jsxDEV(PI,{section:r,onSectionChange:i,range:l,onRangeChange:c,children:[...x.current].map((S)=>Ha.jsxDEV("div",{hidden:S!==r,children:m(S)},S,!1,void 0,this))},void 0,!1,void 0,this),Ha.jsxDEV(k2,{id:g,onClose:h},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}var IR=_(ae(),1),TR=document.getElementById("root");if(!TR)throw Error("missing #root");wR.createRoot(TR).render(IR.jsxDEV(Px,{},void 0,!1,void 0,this));
235
+ <%s key={someKey} {...props} />`,xt,Ue,sa,Ue),ht[Ue+xt]=!0)}if(Ue=null,Tt!==void 0&&(l(Tt),Ue=""+Tt),g(He)&&(l(He.key),Ue=""+He.key),"key"in He){Tt={};for(var la in He)la!=="key"&&(Tt[la]=He[la])}else Tt=He;return Ue&&v(Tt,typeof W==="function"?W.displayName||W.name||"Unknown":W),x(W,Ue,Tt,f(),ge,Xe)}function S(W){C(W)?W._store&&(W._store.validated=1):typeof W==="object"&&W!==null&&W.$$typeof===ee&&(W._payload.status==="fulfilled"?C(W._payload.value)&&W._payload.value._store&&(W._payload.value._store.validated=1):W._store&&(W._store.validated=1))}function C(W){return typeof W==="object"&&W!==null&&W.$$typeof===I}var I=Symbol.for("react.transitional.element"),w=Symbol.for("react.portal"),T=Symbol.for("react.fragment"),R=Symbol.for("react.strict_mode"),O=Symbol.for("react.profiler"),P=Symbol.for("react.consumer"),j=Symbol.for("react.context"),Q=Symbol.for("react.forward_ref"),ue=Symbol.for("react.suspense"),Z=Symbol.for("react.suspense_list"),ce=Symbol.for("react.memo"),ee=Symbol.for("react.lazy"),G=Symbol.for("react.activity"),V=Symbol.for("react.client.reference"),Ie=Ni.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,fe=Object.prototype.hasOwnProperty,Ee=Array.isArray,we=console.createTask?console.createTask:function(){return null};Ni={react_stack_bottom_frame:function(W){return W()}};var oe,Se={},Ae=Ni.react_stack_bottom_frame.bind(Ni,y)(),Ye=we(c(y)),ht={};PE.Fragment=T,PE.jsxDEV=function(W,He,Tt,xt){var ge=1e4>Ie.recentlyCreatedOwnerStacks++;return m(W,He,Tt,xt,ge?Error("react-stack-top-frame"):Ae,ge?we(c(W)):Ye)}})()});var IR=_(R1(),1);var yd=_(We(),1);var bh=_(We(),1);var M1=(n)=>n?.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase();function A1(n,i,l=[]){if(i==null)throw Error("[lucide]: iconNode is required when icon name is used");return{name:M1(n),size:24,node:i,...l.length>0?{aliases:l}:{}}}var D1=(n)=>{let i="",l=!1;for(let c of n){if(c==="-"||c==="_"||c<=" "){l=i.length>0;continue}if(i.length===0)i+=c.toLowerCase();else i+=l?c.toUpperCase():c;l=!1}return i};var E1=(n)=>{let i=D1(n);return i.charAt(0).toUpperCase()+i.slice(1)};var Zc=_(We(),1);var Wc=(...n)=>n.filter((i,l,c)=>Boolean(i)&&i.trim()!==""&&c.indexOf(i)===l).join(" ").trim();var Ll={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 ax(n){return n!==null&&n!==void 0}function N1(n,i={}){let l=i.attributeNames??{},c=(C)=>l[C]??C,f=n.size??n.width??Ll.width,y=n.size??n.height??Ll.height,g=n.aliases?.filter((C)=>typeof C==="string"&&C.trim()!=="").map((C)=>`lucide-${C}`)??[],v=[...n.name?[`lucide-${n.name}`]:[],...g],h=i.className?.split(" ").filter(Boolean)??[],x=i.includeDefaultClasses===!1?Wc(...h):Wc("lucide",...v,...h),m=i.absoluteStrokeWidth?Number(i.strokeWidth??Ll["stroke-width"])*Number(n.size??n.width??Ll.width)/Number(i.size??i.width??Ll.width):i.strokeWidth??Ll["stroke-width"];return["svg",{...Object.entries(Ll).reduce((C,[I,w])=>(C[c(I)]=w,C),{}),..."color"in i&&i.color&&{[c("stroke")]:i.color},..."size"in i&&ax(i.size)&&{[c("width")]:i.size,[c("height")]:i.size},..."width"in i&&ax(i.width)&&{[c("width")]:i.width},..."height"in i&&ax(i.height)&&{[c("height")]:i.height},[c("stroke-width")]:m,...x&&{[c("class")]:x},[c("viewBox")]:`0 0 ${f} ${y}`,...i.hasA11yProp===!1?{[c("aria-hidden")]:"true"}:{},..."attributes"in i&&i.attributes},n.node.map((C)=>{let[I,w,T]=C,R=i.nonScalingStroke?{[c("vector-effect")]:"non-scaling-stroke",...w}:w;return T?[I,R,T]:[I,R]})]}function q1(n,i={}){return N1(n,{...i,attributeNames:{...i.attributeNames,class:"className","stroke-width":"strokeWidth","stroke-linecap":"strokeLinecap","stroke-linejoin":"strokeLinejoin","vector-effect":"vectorEffect"}})}var O1=(n)=>{for(let i in n)if(i.startsWith("aria-")||i==="role"||i==="title")return!0;return!1};var Qu=_(We(),1),SE=Qu.createContext({});var B1=()=>Qu.useContext(SE);var z1=Zc.forwardRef(({color:n,size:i,width:l,height:c,strokeWidth:f,absoluteStrokeWidth:y,nonScalingStroke:g,className:v="",children:h,iconNode:x=[],icon:m={node:x,aliases:[],size:24},...S},C)=>{let{size:I=24,strokeWidth:w=2,absoluteStrokeWidth:T=!1,nonScalingStroke:R=!1,color:O="currentColor",className:P=""}=B1()??{},j=Boolean(h)||O1(S),[Q,ue,Z=[]]=q1(m,{color:n??O,width:l??i??I,height:c??i??I,strokeWidth:f??w,absoluteStrokeWidth:y??T,nonScalingStroke:g??R,className:Wc(P,v),hasA11yProp:j,attributes:S});return Zc.createElement(Q,{ref:C,...ue},[...Z.map(([ce,ee])=>Zc.createElement(ce,ee)),...Array.isArray(h)?h:[h]])});function ne(n,i=[],l=[]){let c=typeof n==="string"?A1(n,i,l):n,f=bh.forwardRef(({className:y,...g},v)=>bh.createElement(z1,{ref:v,icon:c,className:y,...g}));if(c.name)f.displayName=E1(c.name);return f}var P1={name:"braces",size:24,node:[["path",{d:"M8 3H7a2 2 0 0 0-2 2v5a2 2 0 0 1-2 2 2 2 0 0 1 2 2v5c0 1.1.9 2 2 2h1",key:"ezmyqa"}],["path",{d:"M16 21h1a2 2 0 0 0 2-2v-5c0-1.1.9-2 2-2a2 2 0 0 1-2-2V5a2 2 0 0 0-2-2h-1",key:"e1hn23"}]],aliases:["curly-braces"]};P1.node;var Cl=ne(P1);var U1={name:"circle-exclamation-point",size:24,node:[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]],aliases:["alert-circle","circle-alert"]};U1.node;var Zn=ne(U1);var _1={name:"cloud-download",size:24,node:[["path",{d:"M12 13v8l-4-4",key:"1f5nwf"}],["path",{d:"m12 21 4-4",key:"1lfcce"}],["path",{d:"M4.393 15.269A7 7 0 1 1 15.71 8h1.79a4.5 4.5 0 0 1 2.436 8.284",key:"ui1hmy"}]],aliases:["download-cloud"]};_1.node;var wl=ne(_1);var H1={name:"ellipsis",size:24,node:[["circle",{cx:"12",cy:"12",r:"1",key:"41hilf"}],["circle",{cx:"19",cy:"12",r:"1",key:"1wjl8i"}],["circle",{cx:"5",cy:"12",r:"1",key:"1pcz8c"}]],aliases:["more-horizontal"]};H1.node;var Tl=ne(H1);var F1={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"]};F1.node;var Il=ne(F1);var G1={name:"file-pen-line",size:24,node:[["path",{d:"M14.364 13.634a2 2 0 0 0-.506.854l-.837 2.87a.5.5 0 0 0 .62.62l2.87-.837a2 2 0 0 0 .854-.506l4.013-4.009a1 1 0 0 0-3.004-3.004z",key:"ukzhwg"}],["path",{d:"M14.487 7.858A1 1 0 0 1 14 7V2",key:"1klhew"}],["path",{d:"M20 19.645V20a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l2.516 2.516",key:"rxaxab"}],["path",{d:"M8 18h1",key:"13wk12"}]],aliases:["file-signature"]};G1.node;var Rl=ne(G1);var V1={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"]};V1.node;var Ml=ne(V1);var j1={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"]};j1.node;var zr=ne(j1);var $1={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"]};$1.node;var Jn=ne($1);var X1={name:"square-terminal",size:24,node:[["path",{d:"m7 11 2-2-2-2",key:"1lz0vl"}],["path",{d:"M11 13h4",key:"1p7l4v"}],["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",ry:"2",key:"1m3agn"}]],aliases:["terminal-square"]};X1.node;var Al=ne(X1);var Y1={name:"triangle-exclamation-point",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","triangle-alert"]};Y1.node;var wo=ne(Y1);var K1={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"}]]};K1.node;var Jc=ne(K1);var Q1={name:"archive",size:24,node:[["rect",{width:"20",height:"5",x:"2",y:"3",rx:"1",key:"1wp1u1"}],["path",{d:"M4 8v11a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8",key:"1s80jp"}],["path",{d:"M10 12h4",key:"a56b0p"}]]};Q1.node;var ef=ne(Q1);var W1={name:"arrow-down",size:24,node:[["path",{d:"M12 5v14",key:"s699le"}],["path",{d:"m19 12-7 7-7-7",key:"1idqje"}]]};W1.node;var tf=ne(W1);var Z1={name:"arrow-left",size:24,node:[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]]};Z1.node;var af=ne(Z1);var J1={name:"arrow-right",size:24,node:[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]]};J1.node;var of=ne(J1);var eT={name:"arrow-up-right",size:24,node:[["path",{d:"M7 7h10v10",key:"1tivn9"}],["path",{d:"M7 17 17 7",key:"1vkiza"}]]};eT.node;var nf=ne(eT);var tT={name:"arrow-up",size:24,node:[["path",{d:"m5 12 7-7 7 7",key:"hav0vg"}],["path",{d:"M12 19V5",key:"x0mq9r"}]]};tT.node;var rf=ne(tT);var aT={name:"bot",size:24,node:[["path",{d:"M12 8V4H8",key:"hb8ula"}],["rect",{width:"16",height:"12",x:"4",y:"8",rx:"2",key:"enze0r"}],["path",{d:"M2 14h2",key:"vft8re"}],["path",{d:"M20 14h2",key:"4cs60a"}],["path",{d:"M15 13v2",key:"1xurst"}],["path",{d:"M9 13v2",key:"rq6x2g"}]]};aT.node;var sf=ne(aT);var oT={name:"check",size:24,node:[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]};oT.node;var Mi=ne(oT);var nT={name:"chevron-down",size:24,node:[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]};nT.node;var Ai=ne(nT);var rT={name:"chevron-left",size:24,node:[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]]};rT.node;var lf=ne(rT);var sT={name:"chevron-right",size:24,node:[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]};sT.node;var er=ne(sT);var lT={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"}]]};lT.node;var uf=ne(lT);var iT={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"}]]};iT.node;var Di=ne(iT);var uT={name:"corner-down-right",size:24,node:[["path",{d:"m15 10 5 5-5 5",key:"qqa56n"}],["path",{d:"M4 4v7a4 4 0 0 0 4 4h12",key:"z08zvw"}]]};uT.node;var df=ne(uT);var dT={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"}]]};dT.node;var cf=ne(dT);var cT={name:"file-plus",size:24,node:[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",key:"1oefj6"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"M9 15h6",key:"cctwl0"}],["path",{d:"M12 18v-6",key:"17g6i2"}]]};cT.node;var ff=ne(cT);var fT={name:"file-search",size:24,node:[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",key:"1oefj6"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["circle",{cx:"11.5",cy:"14.5",r:"2.5",key:"1bq0ko"}],["path",{d:"M13.3 16.3 15 18",key:"2quom7"}]]};fT.node;var pf=ne(fT);var pT={name:"file-text",size:24,node:[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",key:"1oefj6"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"M10 9H8",key:"b1mrlr"}],["path",{d:"M16 13H8",key:"t4e002"}],["path",{d:"M16 17H8",key:"z1uh3a"}]]};pT.node;var mf=ne(pT);var mT={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"}]]};mT.node;var hf=ne(mT);var hT={name:"folder-search",size:24,node:[["path",{d:"M10.7 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 2v4.1",key:"1bw5m7"}],["path",{d:"m21 21-1.9-1.9",key:"1g2n9r"}],["circle",{cx:"17",cy:"17",r:"3",key:"18b49y"}]]};hT.node;var gf=ne(hT);var gT={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"}]]};gT.node;var yf=ne(gT);var yT={name:"globe",size:24,node:[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20",key:"13o1zl"}],["path",{d:"M2 12h20",key:"9i4pu4"}]]};yT.node;var vf=ne(yT);var vT={name:"hourglass",size:24,node:[["path",{d:"M5 22h14",key:"ehvnwv"}],["path",{d:"M5 2h14",key:"pdyrp9"}],["path",{d:"M17 22v-4.172a2 2 0 0 0-.586-1.414L12 12l-4.414 4.414A2 2 0 0 0 7 17.828V22",key:"1d314k"}],["path",{d:"M7 2v4.172a2 2 0 0 0 .586 1.414L12 12l4.414-4.414A2 2 0 0 0 17 6.172V2",key:"1vvvr6"}]]};vT.node;var bf=ne(vT);var bT={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"}]]};bT.node;var xf=ne(bT);var xT={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"}]]};xT.node;var Sf=ne(xT);var ST={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"}]]};ST.node;var kf=ne(ST);var kT={name:"list-todo",size:24,node:[["path",{d:"M13 5h8",key:"a7qcls"}],["path",{d:"M13 12h8",key:"h98zly"}],["path",{d:"M13 19h8",key:"c3s6r1"}],["path",{d:"m3 17 2 2 4-4",key:"1jhpwq"}],["rect",{x:"3",y:"4",width:"6",height:"6",rx:"1",key:"cif1o7"}]]};kT.node;var Lf=ne(kT);var LT={name:"menu",size:24,node:[["path",{d:"M4 5h16",key:"1tepv9"}],["path",{d:"M4 12h16",key:"1lakjw"}],["path",{d:"M4 19h16",key:"1djgab"}]]};LT.node;var Cf=ne(LT);var CT={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"}]]};CT.node;var wf=ne(CT);var wT={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"}]]};wT.node;var Tf=ne(wT);var TT={name:"network",size:24,node:[["rect",{x:"16",y:"16",width:"6",height:"6",rx:"1",key:"4q2zg0"}],["rect",{x:"2",y:"16",width:"6",height:"6",rx:"1",key:"8cvhb9"}],["rect",{x:"9",y:"2",width:"6",height:"6",rx:"1",key:"1egb70"}],["path",{d:"M5 16v-3a1 1 0 0 1 1-1h12a1 1 0 0 1 1 1v3",key:"1jsf9p"}],["path",{d:"M12 12V8",key:"2874zd"}]]};TT.node;var If=ne(TT);var IT={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"}]]};IT.node;var Dl=ne(IT);var RT={name:"repeat-2",size:24,node:[["path",{d:"m2 9 3-3 3 3",key:"1ltn5i"}],["path",{d:"M13 18H7a2 2 0 0 1-2-2V6",key:"1r6tfw"}],["path",{d:"m22 15-3 3-3-3",key:"4rnwn2"}],["path",{d:"M11 6h6a2 2 0 0 1 2 2v10",key:"2f72bc"}]]};RT.node;var Rf=ne(RT);var MT={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"}]]};MT.node;var Mf=ne(MT);var AT={name:"scan-search",size:24,node:[["path",{d:"M3 7V5a2 2 0 0 1 2-2h2",key:"aa7l1z"}],["path",{d:"M17 3h2a2 2 0 0 1 2 2v2",key:"4qcy5o"}],["path",{d:"M21 17v2a2 2 0 0 1-2 2h-2",key:"6vwrx8"}],["path",{d:"M7 21H5a2 2 0 0 1-2-2v-2",key:"ioqczr"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}],["path",{d:"m16 16-1.9-1.9",key:"1dq9hf"}]]};AT.node;var Ls=ne(AT);var DT={name:"scissors",size:24,node:[["circle",{cx:"6",cy:"6",r:"3",key:"1lh9wr"}],["path",{d:"M8.12 8.12 12 12",key:"1alkpv"}],["path",{d:"M20 4 8.12 15.88",key:"xgtan2"}],["circle",{cx:"6",cy:"18",r:"3",key:"fqmcym"}],["path",{d:"M14.8 14.8 20 20",key:"ptml3r"}]]};DT.node;var Af=ne(DT);var ET={name:"search",size:24,node:[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]]};ET.node;var Df=ne(ET);var NT={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"}]]};NT.node;var Ef=ne(NT);var qT={name:"text-search",size:24,node:[["path",{d:"M21 5H3",key:"1fi0y6"}],["path",{d:"M10 12H3",key:"1ulcyk"}],["path",{d:"M10 19H3",key:"108z41"}],["circle",{cx:"17",cy:"15",r:"3",key:"1upz2a"}],["path",{d:"m21 19-1.9-1.9",key:"dwi7p8"}]]};qT.node;var Nf=ne(qT);var OT={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"}]]};OT.node;var Ei=ne(OT);var BT={name:"x",size:24,node:[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]};BT.node;var To=ne(BT);var sd=_(We(),1);function xh(n){let i=n?.trim().toLowerCase()??"";if(i==="zh"||i.startsWith("zh-")||i.startsWith("zh_"))return"zh-CN";return"en"}function zT(n){for(let i of n??[]){let l=xh(i);if(l!=="en")return l}return"en"}function kE(n,i={}){return n.replace(/\{([\w.-]+)\}/g,(l,c)=>{let f=i[c];return f===void 0?l:String(f)})}function PT(n,i,l,c={}){let f=l[n]?.[i]??l.en?.[i];if(f===void 0)return console.warn(`[stats.i18n] missing translation: ${i}`),i;return kE(f,c)}var Sh={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.spotlight":"Spotlight","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.spotlight":"亮点","nav.dashboard":"zeta 统计","nav.breadcrumb-stats":"统计","nav.pages":"导航","nav.open-navigation":"打开导航"}};var kh={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/s","common.output-tokens-per-second":"输出 Token/s","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 Lh={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":"Subagent","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 Ch={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/s","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/s","models.bucket-5m":"5 分钟","models.bucket-hour":"小时","models.bucket-day":"天"}};var wh={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 Th={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 Ih={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 Rh={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 Mh={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 Ah={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 Dh={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 Eh={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 Nh={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 qh={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 Oh={en:{},"zh-CN":{}};var LE={...Sh.en,...kh.en,...Lh.en,...Ch.en,...wh.en,...Th.en,...Ih.en,...Rh.en,...Mh.en,...Ah.en,...Dh.en,...Eh.en,...Nh.en,...qh.en,...Oh.en},UT={id:"en",messages:LE};var CE={...Sh["zh-CN"],...kh["zh-CN"],...Lh["zh-CN"],...Ch["zh-CN"],...wh["zh-CN"],...Th["zh-CN"],...Ih["zh-CN"],...Rh["zh-CN"],...Mh["zh-CN"],...Ah["zh-CN"],...Dh["zh-CN"],...Eh["zh-CN"],...Nh["zh-CN"],...qh["zh-CN"],...Oh["zh-CN"]},_T={id:"zh-CN",messages:CE};function wE(){return globalThis.__ZETA_STATS_LOCALE__}var TE={en:UT.messages,"zh-CN":_T.messages},HT="zeta.stats.locale",ox=new Set,zh="en";RE();function On(){return zh}function FT(n){return ox.add(n),()=>{ox.delete(n)}}function Bh(n){return zh=xh(n),zh}function GT(n){let i=Bh(n);try{globalThis.localStorage?.setItem(HT,i)}catch{}for(let l of[...ox])l();return i}function IE(){try{let n=globalThis.localStorage?.getItem(HT);if(!n)return;let i=xh(n);return i==="en"||i==="zh-CN"?i:void 0}catch{return}}function RE(){let n=IE();if(n)return Bh(n);let i=wE();if(i)return Bh(i);if(typeof navigator>"u")return"en";return Bh(zT(navigator.languages))}function u(n,i){return PT(zh,n,TE,i)}var jT=60000,Ph=60*jT,Pr=24*Ph,nx={"1h":{labelKey:"common.range-1h",windowKey:"common.window-1h",spanMs:Ph,bucketMs:5*jT},"24h":{labelKey:"common.range-24h",windowKey:"common.window-24h",spanMs:Pr,bucketMs:Ph},"7d":{labelKey:"common.range-7d",windowKey:"common.window-7d",spanMs:7*Pr,bucketMs:Pr},"30d":{labelKey:"common.range-30d",windowKey:"common.window-30d",spanMs:30*Pr,bucketMs:Pr},"90d":{labelKey:"common.range-90d",windowKey:"common.window-90d",spanMs:90*Pr,bucketMs:Pr},all:{labelKey:"common.range-all",windowKey:"common.window-all",spanMs:null,bucketMs:Pr}},ME=1500,Wu=["1h","24h","7d","30d","90d","all"];function ea(n){return nx[n]}var rx={hour:"2-digit",minute:"2-digit",hourCycle:"h23"},sx={month:"short",day:"numeric"},VT=new Map;function qf(n,i){let l=On(),c=`${l}:${n}`,f=VT.get(c);if(!f)f=new Intl.DateTimeFormat(l,i),VT.set(c,f);return f}function Zu(n,i){if(i<Ph)return qf("hm",rx).format(n);if(i<Pr)return qf("mdhm",{...sx,...rx}).format(n);return qf("md",sx).format(n)}function Uh(n,i){return i<Pr?qf("hm",rx).format(n):qf("md",sx).format(n)}function to(n,i,l=nx[n].bucketMs,c=Date.now()){let f=Math.floor(c/l)*l,y=nx[n].spanMs,g;if(y!==null)g=Math.floor((c-y)/l)*l;else{g=f;for(let h of i)if(h<g)g=h;g=Math.floor(g/l)*l}g=Math.max(g,f-(ME-1)*l);let v=[];for(let h=g;h<=f;h+=l)v.push(h);return v}var $T=_(We(),1);function Ur(){return $T.useSyncExternalStore(FT,On,On)}var Of=_(We(),1);class lx extends Error{status;endpoint;constructor(n,i,l){super(l);this.name="ApiError",this.status=n,this.endpoint=i}}async function YT(n,i){try{let l=await n.json();if(typeof l==="object"&&l!==null&&"error"in l&&typeof l.error==="string")return l.error}catch{}return`HTTP error ${n.status} on ${i}`}var XT=new WeakMap;async function Na(n,i,l){let c=typeof l==="object"&&l!==null?XT.get(l):void 0,f=i;if(c){let h=new Headers(i?.headers);h.set("If-None-Match",c),f={...i,headers:h}}let y=await fetch(n,f);if(y.status===304&&c)return l;if(!y.ok)throw new lx(y.status,n,await YT(y,n));let g=await y.json(),v=y.headers.get("ETag");if(v&&typeof g==="object"&&g!==null)XT.set(g,v);return g}var ix={"X-Zeta-Stats-Action":"1"};async function KT(n="24h",i){return Na(`/api/stats/overview?range=${encodeURIComponent(n)}`,{signal:i})}async function QT(n="24h",i){return Na(`/api/stats/model-dashboard?range=${encodeURIComponent(n)}`,{signal:i})}async function WT(n="24h",i){return Na(`/api/stats/costs?range=${encodeURIComponent(n)}`,{signal:i})}async function _h(n=50,i){return Na(`/api/stats/recent?limit=${n}`,{signal:i})}async function ZT(n="24h",i=50,l){return Na(`/api/stats/errors?range=${encodeURIComponent(n)}&limit=${i}`,{signal:l})}async function JT(n,i){return Na(`/api/request/${n}`,{signal:i})}async function eI(n){let{closable:i}=await Na("/api/close",{signal:n});return i}async function tI(){let i=await fetch("/api/close",{method:"POST",headers:ix});if(!i.ok)throw new lx(i.status,"/api/close",await YT(i,"/api/close"))}async function aI(){return Na("/api/sync",{method:"POST"})}async function oI(n="24h",i){return Na(`/api/stats/frustration?range=${encodeURIComponent(n)}`,{signal:i})}async function nI(n,i){return Na(`/api/frustration/estimate?range=${encodeURIComponent(n)}`,{signal:i})}async function rI(n){return Na(`/api/frustration/judge?range=${encodeURIComponent(n)}`,{method:"POST",headers:ix})}async function sI(){return Na("/api/frustration/cancel",{method:"POST",headers:ix})}async function lI(n="24h",i){return Na(`/api/stats/folders?range=${encodeURIComponent(n)}`,{signal:i})}async function iI(n="24h",i,l){let c=new URLSearchParams({range:n});if(i)c.set("project",i);return Na(`/api/stats/gain?${c}`,{signal:l})}async function uI(n="24h",i="all",l){return Na(`/api/stats/spotlight?range=${encodeURIComponent(n)}&agent=${encodeURIComponent(i)}`,{signal:l})}async function dI(n,i){return Na(`/api/stats/spotlight/session?file=${encodeURIComponent(n)}`,{signal:i})}async function cI(n="24h",i){return Na(`/api/stats/tools?range=${encodeURIComponent(n)}`,{signal:i})}async function fI(n="24h",i){return Na(`/api/stats/providers?range=${encodeURIComponent(n)}`,{signal:i})}async function ux(n,i,l){let c=new URLSearchParams({range:n});if(i!==null)c.set("provider",i);return Na(`/api/stats/provider-windows?${c}`,{signal:l})}async function pI(n=100,i,l){let c=new URLSearchParams({limit:String(n)});if(i)c.set("q",i);return Na(`/api/sessions?${c}`,{signal:l})}async function mI(n,i,l){return Na(`/api/session/trace?file=${encodeURIComponent(n)}`,{signal:i,cache:"no-store"},l)}async function hI(n,i,l){return Na(`/api/session/entry?file=${encodeURIComponent(n)}&id=${encodeURIComponent(i)}`,{signal:l})}var DE={phase:"idle",current:0,total:0,processed:0,lastSyncedAt:null,error:null};function EE(){aI().catch(()=>{})}var gI=null,yI=0,Hh=0,El={sync:DE,indexingHours:0,connected:!1,requestSync:EE},cx=new Set;function vI(n){return cx.add(n),()=>cx.delete(n)}function bI(){for(let n of cx)n()}function NE(n,i){return n.phase===i.phase&&n.current===i.current&&n.total===i.total&&n.processed===i.processed&&n.lastSyncedAt===i.lastSyncedAt&&n.error===i.error}function qE(n){if(gI!==n.version)gI=n.version,yI++;let i=Math.max(0,yI-1),l=n.indexingHours!==El.indexingHours||!NE(n.sync,El.sync);if(!l&&i===Hh)return;if(Hh=i,l)El={...El,sync:n.sync,indexingHours:n.indexingHours};bI()}function dx(n){if(n===El.connected)return;El={...El,connected:n},bI()}var OE=()=>El,BE=()=>Hh,zE=()=>-1;function fx(){return Hh}function xI({children:n}){return Of.useEffect(()=>{let i=new EventSource("/api/events");return i.onopen=()=>dx(!0),i.onerror=()=>dx(!1),i.onmessage=(l)=>qE(JSON.parse(l.data)),()=>{i.close(),dx(!1)}},[]),n}function Fh(){return Of.useSyncExternalStore(vI,OE)}function SI(n=!0){return Of.useSyncExternalStore(vI,n?BE:zE)}var Gh=_(te(),1);function yt({tone:n="neutral",mono:i,children:l}){return Gh.jsxDEV("span",{className:"badge","data-tone":n,"data-mono":i??!1,children:l},void 0,!1,void 0,this)}function _r({tone:n="neutral",pulse:i}){return Gh.jsxDEV("span",{className:"dot","data-tone":n,"data-pulse":i??!1},void 0,!1,void 0,this)}function tr({color:n}){return Gh.jsxDEV("span",{className:"swatch",style:{background:n}},void 0,!1,void 0,this)}function hn(n){if(n>=0.05)return"bad";if(n>=0.01)return"warn";return"ok"}var Yo=_(te(),1);function me({title:n,description:i,actions:l,flush:c,footer:f,className:y,index:g,stale:v,children:h}){let x=n!==void 0||i!==void 0||l!==void 0;return Yo.jsxDEV("section",{className:y?`card rise ${y}`:"card rise",style:g!==void 0?{"--i":g}:void 0,children:[x&&Yo.jsxDEV("header",{className:"card-header",children:[Yo.jsxDEV("div",{className:"card-titles",children:[n!==void 0&&Yo.jsxDEV("h2",{className:"card-title",children:n},void 0,!1,void 0,this),i!==void 0&&Yo.jsxDEV("p",{className:"card-description",children:i},void 0,!1,void 0,this)]},void 0,!0,void 0,this),l!==void 0&&Yo.jsxDEV("div",{className:"card-actions",children:l},void 0,!1,void 0,this)]},void 0,!0,void 0,this),Yo.jsxDEV("div",{className:"card-body","data-flush":c??!1,"data-stale":v??!1,children:h},void 0,!1,void 0,this),f!==void 0&&Yo.jsxDEV("footer",{className:"card-footer",children:f},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function ha({title:n,description:i,actions:l}){return Yo.jsxDEV("header",{className:"page-header rise",children:[Yo.jsxDEV("div",{children:[Yo.jsxDEV("h1",{className:"page-title",children:n},void 0,!1,void 0,this),i!==void 0&&Yo.jsxDEV("p",{className:"page-description",children:i},void 0,!1,void 0,this)]},void 0,!0,void 0,this),l!==void 0&&Yo.jsxDEV("div",{className:"page-actions",children:l},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}var Bf=_(We(),1),kI=_(Qc(),1),vo=_(te(),1);function Ju({open:n,onClose:i,title:l,subtitle:c,actions:f,width:y,children:g}){let v=Bf.useRef(i);v.current=i;let h=Bf.useRef(null);if(Bf.useEffect(()=>{if(!n)return;let x=document.activeElement instanceof HTMLElement?document.activeElement:null;h.current?.focus();let m=(S)=>{if(S.key==="Escape")S.preventDefault(),v.current()};return window.addEventListener("keydown",m),()=>{window.removeEventListener("keydown",m),x?.focus()}},[n]),!n)return null;return kI.createPortal(vo.jsxDEV(vo.Fragment,{children:[vo.jsxDEV("div",{className:"drawer-scrim",onClick:i,role:"presentation"},void 0,!1,void 0,this),vo.jsxDEV("div",{ref:h,className:"drawer",role:"dialog","aria-modal":"true",tabIndex:-1,style:y!==void 0?{"--drawer-w":`${y}px`}:void 0,children:[vo.jsxDEV("header",{className:"drawer-header",children:[vo.jsxDEV("div",{className:"drawer-titles",children:[vo.jsxDEV("h2",{className:"drawer-title",children:l},void 0,!1,void 0,this),c!==void 0&&vo.jsxDEV("div",{className:"drawer-subtitle",children:c},void 0,!1,void 0,this)]},void 0,!0,void 0,this),f,vo.jsxDEV("button",{type:"button",className:"btn","data-variant":"ghost","data-icon":"true",onClick:i,"aria-label":"Close",children:vo.jsxDEV(To,{size:16},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),vo.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 Po({items:n}){return vo.jsxDEV("dl",{className:"kv",style:{margin:0},children:n.map((i)=>vo.jsxDEV("div",{className:"kv-item",children:[vo.jsxDEV("dt",{className:"kv-key",children:i.label},void 0,!1,void 0,this),vo.jsxDEV("dd",{className:"kv-value",style:{margin:0},children:i.value},void 0,!1,void 0,this)]},i.key,!0,void 0,this))},void 0,!1,void 0,this)}var qi=_(We(),1);var ar=_(te(),1);function ed({data:n,title:i=u("ui.json"),initialCollapsed:l=!1}){let[c,f]=qi.useState(l),[y,g]=qi.useState(!1),v=qi.useRef(0),h=JSON.stringify(n,null,2);return qi.useEffect(()=>()=>window.clearTimeout(v.current),[]),ar.jsxDEV("div",{className:"stack",style:{gap:6},children:[ar.jsxDEV("div",{className:"row",style:{justifyContent:"space-between"},children:[ar.jsxDEV("button",{type:"button",className:"btn","data-variant":"ghost","data-size":"sm",onClick:()=>f((m)=>!m),"aria-expanded":!c,children:[c?ar.jsxDEV(er,{size:13},void 0,!1,void 0,this):ar.jsxDEV(Ai,{size:13},void 0,!1,void 0,this),i]},void 0,!0,void 0,this),ar.jsxDEV("button",{type:"button",className:"btn","data-variant":"ghost","data-size":"sm",onClick:async()=>{try{await navigator.clipboard.writeText(h),g(!0),window.clearTimeout(v.current),v.current=window.setTimeout(()=>g(!1),1500)}catch{}},children:[y?ar.jsxDEV(Mi,{size:13},void 0,!1,void 0,this):ar.jsxDEV(Di,{size:13},void 0,!1,void 0,this),y?u("common.copied"):u("common.copy")]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),!c&&ar.jsxDEV("pre",{className:"code-block",children:ar.jsxDEV("code",{children:h},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}var Oi=_(We(),1),LI=_(Qc(),1);var or=_(te(),1);function CI({open:n,title:i,onClose:l,primaryAction:c,cancelLabel:f=u("common.cancel"),children:y}){let g=Oi.useRef(null),v=Oi.useRef(null),h=Oi.useRef(l);h.current=l,Oi.useEffect(()=>{if(!n)return;let C=document.activeElement instanceof HTMLElement?document.activeElement:null,I=(w)=>{if(w.key==="Escape")w.preventDefault(),h.current()};return window.addEventListener("keydown",I),()=>{window.removeEventListener("keydown",I),C?.focus()}},[n]);let x=c!==void 0,m=c?.disabled??!1;if(Oi.useEffect(()=>{if(!n)return;(x&&!m?g.current:v.current)?.focus()},[n,x,m]),!n)return null;return LI.createPortal(or.jsxDEV("div",{className:"modal-overlay",onClick:(C)=>{if(C.target===C.currentTarget)l()},role:"presentation",children:or.jsxDEV("div",{className:"modal",role:"dialog","aria-modal":"true","aria-labelledby":"modal-title",children:[or.jsxDEV("div",{className:"modal-header",children:[or.jsxDEV("h2",{id:"modal-title",className:"modal-title",children:i},void 0,!1,void 0,this),or.jsxDEV("button",{type:"button",className:"btn","data-variant":"ghost","data-icon":"true","data-size":"sm",onClick:l,"aria-label":u("common.close"),children:or.jsxDEV(To,{size:15},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),or.jsxDEV("div",{className:"modal-body",children:y},void 0,!1,void 0,this),or.jsxDEV("div",{className:"modal-footer",children:[or.jsxDEV("button",{ref:v,type:"button",className:"btn",onClick:l,children:f},void 0,!1,void 0,this),c&&or.jsxDEV("button",{ref:g,type:"button",className:"btn","data-variant":"primary",onClick:c.onClick,disabled:c.disabled,children:c.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 Vh=_(te(),1);function Hr({value:n,onChange:i,placeholder:l=u("common.filter"),label:c="Filter",width:f}){return Vh.jsxDEV("label",{className:"search",children:[Vh.jsxDEV(Df,{size:14},void 0,!1,void 0,this),Vh.jsxDEV("input",{className:"input",type:"search","aria-label":c,value:n,placeholder:l,onChange:(y)=>i(y.target.value),style:f!==void 0?{width:f}:void 0},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}var td=_(We(),1),jh=_(te(),1);function qa({options:n,value:i,onChange:l,size:c="md","aria-label":f}){let y=td.useRef(null),[g,v]=td.useState(null);return td.useLayoutEffect(()=>{let h=y.current,x=h?.querySelector('[data-active="true"]');if(!h||!x){v(null);return}let m=()=>v({left:x.offsetLeft,width:x.offsetWidth});m();let S=new ResizeObserver(m);return S.observe(h),()=>S.disconnect()},[i,n]),jh.jsxDEV("div",{ref:y,className:"segmented","data-size":c,role:"radiogroup","aria-label":f,children:[g&&jh.jsxDEV("span",{className:"segmented-thumb",style:{left:g.left,width:g.width}},void 0,!1,void 0,this),n.map((h)=>jh.jsxDEV("button",{type:"button",role:"radio","aria-checked":h.value===i,className:"segmented-option","data-active":h.value===i,title:h.title,onClick:()=>l(h.value),children:h.label},h.value,!1,void 0,this))]},void 0,!0,void 0,this)}var nd=_(We(),1);var ad=_(We(),1);function $h(){let n=ad.useRef(null),[i,l]=ad.useState(0);return ad.useLayoutEffect(()=>{let c=n.current;if(!c)return;l(c.clientWidth);let f=new ResizeObserver((y)=>{let g=Math.round(y[0]?.contentRect.width??0);l((v)=>v===g?v:g)});return f.observe(c),()=>f.disconnect()},[]),[n,i]}var zf=_(te(),1);function od({values:n,color:i="var(--chart-primary)",height:l=28,width:c,area:f=!0}){let[y,g]=$h(),v=c??g,h=Math.max(0,...n),x=Math.min(0,...n),m=n.length,S="";if(v>0&&m>0){let C=m>1?v/(m-1):0;for(let I=0;I<m;I++){let w=m>1?I*C:v/2,T=h>x?l-2-(n[I]-x)/(h-x)*(l-4):l-2;S+=`${I===0?"M":"L"}${w.toFixed(1)},${T.toFixed(1)}`}}return zf.jsxDEV("div",{ref:y,className:"sparkline",style:{width:c??"100%",height:l},children:v>0&&m>0&&zf.jsxDEV("svg",{width:v,height:l,"aria-hidden":"true",children:[f&&zf.jsxDEV("path",{className:"area",d:`${S}L${v},${l}L0,${l}Z`,fill:i},void 0,!1,void 0,this),zf.jsxDEV("path",{className:"chart-line",d:S,stroke:i},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)}var Bn=_(te(),1);function ie({label:n,value:i,hint:l,delta:c,spark:f,sparkColor:y,size:g="md",title:v}){let h=_E(typeof i==="string"||typeof i==="number"?i:null);return Bn.jsxDEV("div",{className:"stat","data-size":g,title:v,children:[Bn.jsxDEV("div",{className:"stat-label",children:n},void 0,!1,void 0,this),Bn.jsxDEV("div",{className:"stat-value","data-flash":h,children:i},void 0,!1,void 0,this),(l!==void 0||c)&&Bn.jsxDEV("div",{className:"stat-foot",children:[c&&Bn.jsxDEV(UE,{...c},void 0,!1,void 0,this),l!==void 0&&Bn.jsxDEV("span",{className:"truncate",children:l},void 0,!1,void 0,this)]},void 0,!0,void 0,this),f&&f.length>1&&Bn.jsxDEV("div",{className:"stat-spark",children:Bn.jsxDEV(od,{values:f,color:y},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function Sa({min:n,children:i}){return Bn.jsxDEV("div",{className:"stat-grid rise",style:n!==void 0?{"--stat-min":`${n}px`}:void 0,children:i},void 0,!1,void 0,this)}function UE({change:n,good:i="up"}){if(n===null||!Number.isFinite(n))return Bn.jsxDEV("span",{className:"delta",children:"new"},void 0,!1,void 0,this);let l=Math.abs(n)<0.0005?0:n,c=l===0?void 0:l>0===(i==="up")?"good":"bad",f=l>0?"+":l<0?"−":"±",y=Math.abs(l)*100;return Bn.jsxDEV("span",{className:"delta","data-tone":c,children:[f,y>=100?y.toFixed(0):y.toFixed(1),"%"]},void 0,!0,void 0,this)}function _E(n){let i=nd.useRef(n),[l,c]=nd.useState(!1);return nd.useEffect(()=>{if(i.current===n)return;let f=i.current!==null;if(i.current=n,!f)return;c(!0);let y=setTimeout(()=>c(!1),900);return()=>clearTimeout(y)},[n]),l}var Oa=_(te(),1);function mt({title:n=u("common.nothing-here-yet"),hint:i}){return Oa.jsxDEV("div",{className:"empty",children:[Oa.jsxDEV(xf,{size:20},void 0,!1,void 0,this),Oa.jsxDEV("div",{className:"empty-title",children:n},void 0,!1,void 0,this),i!==void 0&&Oa.jsxDEV("div",{className:"empty-hint",children:i},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function Nl({error:n,onRetry:i}){return Oa.jsxDEV("div",{className:"error-state",role:"alert",children:[Oa.jsxDEV(wo,{size:15},void 0,!1,void 0,this),Oa.jsxDEV("span",{className:"error-state-message",children:typeof n==="string"?n:n.message},void 0,!1,void 0,this),i&&Oa.jsxDEV("button",{type:"button",className:"btn","data-size":"sm","data-variant":"ghost",onClick:i,children:[Oa.jsxDEV(Mf,{size:13},void 0,!1,void 0,this)," ",u("ui.retry")]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)}function ao({width:n="100%",height:i=14,style:l}){return Oa.jsxDEV("div",{className:"skeleton",style:{width:n,height:i,...l}},void 0,!1,void 0,this)}function Et({height:n=220}){return Oa.jsxDEV(ao,{height:n,style:{borderRadius:8}},void 0,!1,void 0,this)}function ka({rows:n=6}){return Oa.jsxDEV("div",{style:{display:"flex",flexDirection:"column",gap:10,padding:"8px 16px 16px"},children:Array.from({length:n},(i,l)=>Oa.jsxDEV(ao,{height:16,width:`${92-l*13%30}%`},l,!1,void 0,this))},void 0,!1,void 0,this)}function _e({query:n,skeleton:i,isEmpty:l,empty:c,children:f}){if(n.data===null){if(n.error)return Oa.jsxDEV(Nl,{error:n.error,onRetry:n.refetch},void 0,!1,void 0,this);return Oa.jsxDEV(Oa.Fragment,{children:i},void 0,!1,void 0,this)}return Oa.jsxDEV(Oa.Fragment,{children:[n.error&&Oa.jsxDEV(Nl,{error:n.error,onRetry:n.refetch},void 0,!1,void 0,this),l?.(n.data)?c??Oa.jsxDEV(mt,{},void 0,!1,void 0,this):f(n.data)]},void 0,!0,void 0,this)}var Bi=_(We(),1);function II(){return On()}function M(n){return n.toLocaleString(II())}function se(n){return n.toLocaleString("en",{notation:"compact"})}function Ot(n,i){if(n===0)return"$0";let l=i!==void 0?i:n>0&&n<0.01?4:2;return`$${n.toLocaleString(II(),{minimumFractionDigits:l,maximumFractionDigits:l})}`}function ta(n,i,l){return n===0&&i>0?"N/A":Ot(n,l)}function mx(n){return n.usage.totalTokens>0&&n.usage.cost.total===0&&(n.provider==="xai-oauth"||n.costUnpriced===!0)}function ql(n,i){return ta(n.usage.cost.total,mx(n)?1:0,i)}function Fe(n,i=1){return`${(n*100).toFixed(i)}%`}function Io(n){let i=n*100;if(i>0&&i<0.005)return"<0.01%";return Fe(n,i>0&&i<0.1?2:1)}function Ct(n,i){if(n===null)return"-";let l=n/1000,c=i!==void 0?i:l<1?2:1;return`${l.toFixed(c)}s`}function gn(n){if(n<60000)return Ct(n);let i=Math.floor(n/60000);if(i<60)return`${i}m ${String(Math.floor(n%60000/1000)).padStart(2,"0")}s`;return`${Math.floor(i/60)}h ${String(i%60).padStart(2,"0")}m`}function Fr(n){if(n===null)return"-";return n.toFixed(1)}var px=[["second",1000],["minute",60000],["hour",3600000],["day",86400000],["month",2629800000],["year",31557600000]],wI=new Map,rd=new Map;function La(n,i=Date.now()){let l=On(),c=wI.get(l);if(!c)c=new Intl.RelativeTimeFormat(l,{numeric:"auto"}),wI.set(l,c);let f=n-i,y=0;for(let h=1;h<px.length;h++)if(Math.abs(f)>=px[h][1])y=h;let[g,v]=px[y];return c.format(Math.round(f/v),g)}function hx(n){let i=On(),l=`${i}:mdhm`,c=rd.get(l);if(!c)c=new Intl.DateTimeFormat(i,{month:"short",day:"numeric",hour:"2-digit",minute:"2-digit",hourCycle:"h23"}),rd.set(l,c);return c.format(n)}function bo(n){let i=On(),l=rd.get(i);if(!l)l=new Intl.DateTimeFormat(i,{month:"short",day:"numeric",hour:"2-digit",minute:"2-digit",second:"2-digit",hourCycle:"h23"}),rd.set(i,l);return l.format(n)}var TI=new Map;function Pf(n,i=!1){let l=On(),c=`${l}:${i?"long":"short"}`,f=TI.get(c);if(!f)f=new Intl.DateTimeFormat(l,i?{weekday:"short",month:"short",day:"numeric",year:"numeric",timeZone:"UTC"}:{month:"short",day:"numeric",timeZone:"UTC"}),TI.set(c,f);return f.format(n)}function Uf(n){let i=On(),l=`${i}:time`,c=rd.get(l);if(!c)c=new Intl.DateTimeFormat(i,{hour:"2-digit",minute:"2-digit",second:"2-digit",hourCycle:"h23"}),rd.set(l,c);return c.format(n)}function zn(n){return n.replace(/^\/+|\/+$/g,"")||u("common.root")}function gx(n){if(n>=1e9)return`${(n/1e9).toFixed(1)} GB`;if(n>=1e6)return`${(n/1e6).toFixed(1)} MB`;if(n>=1000)return`${(n/1000).toFixed(1)} KB`;return`${n} B`}var Ht=_(te(),1);function Ut({columns:n,rows:i,rowKey:l,onRowClick:c,selectedKey:f,initialSort:y,limit:g,dense:v,empty:h,expanded:x}){let[m,S]=Bi.useState(y??null),[C,I]=Bi.useState(g??Number.POSITIVE_INFINITY),w=Bi.useMemo(()=>{let O=m?n.find((Q)=>Q.key===m.key):void 0;if(!m||!O?.sort)return i;let P=O.sort,j=m.dir==="asc"?1:-1;return[...i].sort((Q,ue)=>{let Z=P(Q),ce=P(ue);if(typeof Z==="number"&&typeof ce==="number")return(Z-ce)*j;return String(Z).localeCompare(String(ce))*j})},[i,n,m]);if(i.length===0)return Ht.jsxDEV(Ht.Fragment,{children:h??Ht.jsxDEV(mt,{},void 0,!1,void 0,this)},void 0,!1,void 0,this);let T=w.length>C?w.slice(0,C):w,R=(O)=>{if(!O.sort)return;S((P)=>P?.key===O.key?{key:O.key,dir:P.dir==="asc"?"desc":"asc"}:{key:O.key,dir:O.align==="right"?"desc":"asc"})};return Ht.jsxDEV(Ht.Fragment,{children:[Ht.jsxDEV("div",{className:"table-wrap",children:Ht.jsxDEV("table",{className:"table","data-dense":v??!1,children:[Ht.jsxDEV("thead",{children:Ht.jsxDEV("tr",{children:n.map((O)=>{let P=m?.key===O.key?m.dir:void 0;return Ht.jsxDEV("th",{"data-align":O.align??"left","data-sortable":O.sort!==void 0,"data-sorted":P,style:O.width!==void 0?{width:O.width}:void 0,title:O.title,onClick:()=>R(O),"aria-sort":P==="asc"?"ascending":P==="desc"?"descending":void 0,children:[O.header,P&&Ht.jsxDEV("span",{className:"sort-arrow",children:P==="asc"?Ht.jsxDEV(rf,{size:11},void 0,!1,void 0,this):Ht.jsxDEV(tf,{size:11},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},O.key,!0,void 0,this)})},void 0,!1,void 0,this)},void 0,!1,void 0,this),Ht.jsxDEV("tbody",{children:T.map((O)=>{let P=l(O),j=x?.(O)??null;return Ht.jsxDEV(Bi.Fragment,{children:[Ht.jsxDEV("tr",{"data-clickable":c!==void 0,"data-selected":f===P,onClick:c?()=>c(O):void 0,onKeyDown:c?(Q)=>{if(Q.key==="Enter"||Q.key===" ")Q.preventDefault(),c(O)}:void 0,tabIndex:c?0:void 0,children:n.map((Q)=>Ht.jsxDEV("td",{"data-align":Q.align??"left","data-wrap":Q.wrap??!1,children:Q.render(O)},Q.key,!1,void 0,this))},void 0,!1,void 0,this),j!==null&&Ht.jsxDEV("tr",{children:Ht.jsxDEV("td",{colSpan:n.length,"data-wrap":"true",style:{padding:0},children:j},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&&w.length>g&&Ht.jsxDEV("div",{className:"table-more",children:[Ht.jsxDEV("span",{className:"micro",children:u("ui.table-shown-of",{shown:M(T.length),total:M(w.length)})},void 0,!1,void 0,this),w.length>C&&Ht.jsxDEV("button",{type:"button",className:"btn","data-size":"sm","data-variant":"ghost",onClick:()=>I((O)=>O+g*4),children:u("common.show-more")},void 0,!1,void 0,this),C>g&&Ht.jsxDEV("button",{type:"button",className:"btn","data-size":"sm","data-variant":"ghost",onClick:()=>I(g),children:u("ui.show-fewer")},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)}function Ra({value:n,max:i,display:l,color:c}){let f=i>0?Math.min(100,n/i*100):0;return Ht.jsxDEV("div",{className:"meter-cell",children:[Ht.jsxDEV("span",{className:"num",children:l},void 0,!1,void 0,this),Ht.jsxDEV("div",{className:"meter",children:Ht.jsxDEV("div",{className:"meter-fill",style:{width:`${f}%`,background:c}},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function io({primary:n,secondary:i,lead:l}){return Ht.jsxDEV("div",{className:"row",style:{gap:10},children:[l,Ht.jsxDEV("div",{className:"stack",style:{gap:0},children:[Ht.jsxDEV("span",{className:"cell-primary truncate",children:n},void 0,!1,void 0,this),i!==void 0&&Ht.jsxDEV("span",{className:"cell-secondary truncate",children:i},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)}var _f=_(We(),1);function Xh(n){return n instanceof HTMLElement&&(n.isContentEditable||n.tagName==="INPUT"||n.tagName==="TEXTAREA"||n.tagName==="SELECT")}function Yh(){return document.querySelector('[aria-modal="true"]')!==null}var Kh=_(te(),1);function MI(){let n=HE();if(_f.useEffect(()=>{if(!n)return;let i=(l)=>{if(!FE(l))return;l.preventDefault(),RI()};return window.addEventListener("keydown",i),()=>window.removeEventListener("keydown",i)},[n]),!n)return null;return Kh.jsxDEV("button",{type:"button",className:"btn","data-variant":"ghost",onClick:RI,title:"Close the dashboard (Esc)",children:[Kh.jsxDEV(To,{size:15},void 0,!1,void 0,this),"Close",Kh.jsxDEV("span",{className:"kbd",children:"Esc"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function RI(){tI().catch((n)=>console.error("Closing the dashboard failed",n))}function HE(){let[n,i]=_f.useState(!1);return _f.useEffect(()=>{let l=new AbortController;return eI(l.signal).then(i,()=>{}),()=>l.abort()},[]),n}function FE(n){if(n.defaultPrevented||n.altKey||n.metaKey||n.shiftKey)return!1;if(Xh(n.target)||Yh())return!1;if(n.key==="Escape")return!n.ctrlKey;return n.ctrlKey&&n.key.toLowerCase()==="c"&&!window.getSelection()?.toString()}var Qh=_(te(),1);function AI(){let n=Ur(),i=n==="en"?"zh-CN":"en",l=n==="en"?"中文":"EN";return Qh.jsxDEV("button",{type:"button",className:"btn","data-variant":"ghost","data-locale-toggle":n,onClick:()=>GT(i),"aria-label":u("shell.switch-language"),title:`${u("shell.language")}: ${l}`,children:[Qh.jsxDEV(Sf,{size:15},void 0,!1,void 0,this),Qh.jsxDEV("span",{className:"topbar-locale-label",children:l},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}var Wh=_(We(),1);var ga=_(te(),1);function DI(){let{sync:n,indexingHours:i,connected:l,requestSync:c}=Fh(),f=VE(n.phase==="idle"?15000:null),y,g;if(!l)y=ga.jsxDEV(ga.Fragment,{children:[ga.jsxDEV(_r,{tone:"warn"},void 0,!1,void 0,this),ga.jsxDEV("span",{children:u("shell.reconnecting")},void 0,!1,void 0,this)]},void 0,!0,void 0,this),g=u("shell.lost-connection");else if(n.phase==="syncing")y=ga.jsxDEV(ga.Fragment,{children:[ga.jsxDEV(Dl,{size:13,className:"spin"},void 0,!1,void 0,this),ga.jsxDEV("span",{children:u("shell.syncing")},void 0,!1,void 0,this),n.total>0&&ga.jsxDEV("span",{className:"live-chip-count",children:[M(n.current),"/",M(n.total)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),g=u("shell.ingesting");else if(n.phase==="error")y=ga.jsxDEV(ga.Fragment,{children:[ga.jsxDEV(_r,{tone:"bad"},void 0,!1,void 0,this),ga.jsxDEV("span",{children:u("shell.sync-failed")},void 0,!1,void 0,this)]},void 0,!0,void 0,this),g=`${n.error??u("shell.sync-failed")} — click to retry`;else if(i>GE)y=ga.jsxDEV(ga.Fragment,{children:[ga.jsxDEV(Dl,{size:13,className:"spin"},void 0,!1,void 0,this),ga.jsxDEV("span",{children:u("shell.indexing")},void 0,!1,void 0,this),ga.jsxDEV("span",{className:"live-chip-count",children:[M(i),"h left"]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),g=u("shell.building-rollups");else y=ga.jsxDEV(ga.Fragment,{children:[ga.jsxDEV(_r,{tone:"live",pulse:!0},void 0,!1,void 0,this),ga.jsxDEV("span",{children:u("shell.live")},void 0,!1,void 0,this),n.lastSyncedAt!==null&&ga.jsxDEV("span",{className:"live-chip-count",children:jE(f-n.lastSyncedAt)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),g=u("shell.sync-now");return ga.jsxDEV("button",{type:"button",className:"live-chip",onClick:c,disabled:n.phase==="syncing",title:g,children:y},void 0,!1,void 0,this)}var GE=24;function VE(n){let[i,l]=Wh.useState(Date.now);return Wh.useEffect(()=>{if(n===null)return;l(Date.now());let c=setInterval(()=>l(Date.now()),n);return()=>clearInterval(c)},[n]),i}function jE(n){let i=Math.max(0,Math.round(n/1000));if(i<45)return u("shell.just-now");let l=Math.round(i/60);if(l<60)return`${l}m ago`;let c=Math.round(l/60);return c<24?`${c}h ago`:`${Math.round(c/24)}d ago`}var Zh=[{headingKey:"nav.usage",items:[{id:"overview",labelKey:"nav.overview",icon:kf,hotkey:"o"},{id:"models",labelKey:"nav.models",icon:cf,hotkey:"m"},{id:"providers",labelKey:"nav.providers",icon:Ml,hotkey:"p"},{id:"costs",labelKey:"nav.costs",icon:uf,hotkey:"c"}]},{headingKey:"nav.activity",items:[{id:"requests",labelKey:"nav.requests",icon:Jc,hotkey:"r"},{id:"errors",labelKey:"nav.errors",icon:Zn,hotkey:"e"},{id:"traces",labelKey:"nav.traces",icon:Jn,hotkey:"t"}]},{headingKey:"nav.insights",items:[{id:"tools",labelKey:"nav.tools",icon:Ei,hotkey:"l"},{id:"frustration",labelKey:"nav.frustration",icon:Il,hotkey:"f"},{id:"projects",labelKey:"nav.projects",icon:hf,hotkey:"j"},{id:"gain",labelKey:"nav.gain",icon:zr,hotkey:"g"},{id:"spotlight",labelKey:"nav.spotlight",icon:Ls,hotkey:"s"}]}],$E=Zh.flatMap((n)=>n.items),EI=$E.map((n)=>n.id);var yx=_(We(),1),qI="zeta-stats-theme",OI="(prefers-color-scheme: dark)";function XE(){if(typeof localStorage>"u")return"system";let n=localStorage.getItem(qI);return n==="light"||n==="dark"||n==="system"?n:"system"}function BI(){if(typeof window>"u")return"dark";return window.matchMedia(OI).matches?"dark":"light"}var zi=XE(),Jh=zi==="system"?BI():zi,vx=new Set;function zI(){for(let n of vx)n()}function bx(){if(Jh=zi==="system"?BI():zi,typeof document<"u")document.documentElement.dataset.theme=Jh,document.documentElement.style.colorScheme=Jh}if(typeof window<"u")bx(),window.matchMedia(OI).addEventListener("change",()=>{if(zi==="system")bx(),zI()});function YE(n){if(zi=n,typeof localStorage<"u")localStorage.setItem(qI,n);bx(),zI()}function NI(n){return vx.add(n),()=>vx.delete(n)}function PI(){let n=yx.useSyncExternalStore(NI,()=>zi,()=>"system"),i=yx.useSyncExternalStore(NI,()=>Jh,()=>"dark");return{preference:n,resolved:i,setPreference:YE}}var xx=_(te(),1),KE={system:"light",light:"dark",dark:"system"},QE={system:"shell.system-theme",light:"shell.light-theme",dark:"shell.dark-theme"},WE={system:wf,light:Ef,dark:Tf};function UI(){Ur();let{preference:n,setPreference:i}=PI(),l=WE[n],c=u(QE[n]);return xx.jsxDEV("button",{type:"button",className:"btn","data-variant":"ghost","data-icon":"true",onClick:()=>i(KE[n]),"aria-label":`${c} (click to switch)`,title:`${c} — click to switch`,children:xx.jsxDEV(l,{size:15},void 0,!1,void 0,this)},void 0,!1,void 0,this)}var nt=_(te(),1);function _I({section:n,onSectionChange:i,range:l,onRangeChange:c,children:f}){Ur();let y=Wu.map((C,I)=>({value:C,label:u(ea(C).labelKey),title:`${u(ea(C).windowKey)} (${I+1})`})),[g,v]=sd.useState(!1),h=ZE(),{sync:x}=Fh();JE(i,c);let m=(C)=>{i(C),v(!1),window.scrollTo({top:0})},S=x.phase==="syncing"?x.total>0?x.current/x.total:null:void 0;return nt.jsxDEV(nt.Fragment,{children:[nt.jsxDEV("div",{className:"shell-ambient"},void 0,!1,void 0,this),nt.jsxDEV("header",{className:"topbar","data-scrolled":h,children:[nt.jsxDEV("button",{type:"button",className:"btn topbar-menu","data-variant":"ghost","data-icon":"true",onClick:()=>v(!0),"aria-label":u("nav.open-navigation"),children:nt.jsxDEV(Cf,{size:16},void 0,!1,void 0,this)},void 0,!1,void 0,this),nt.jsxDEV("div",{className:"topbar-brand",children:[nt.jsxDEV("svg",{className:"topbar-mark",viewBox:"0 0 64 64",width:"22",height:"22","aria-hidden":"true",children:[nt.jsxDEV("defs",{children:nt.jsxDEV("linearGradient",{id:"zeta-mark-grad",x1:"0",y1:"0",x2:"1",y2:"1",children:[nt.jsxDEV("stop",{offset:"0",stopColor:"oklch(0.7 0.24 340)"},void 0,!1,void 0,this),nt.jsxDEV("stop",{offset:".5",stopColor:"oklch(0.62 0.21 295)"},void 0,!1,void 0,this),nt.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),nt.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),nt.jsxDEV("span",{children:"zeta"},void 0,!1,void 0,this),nt.jsxDEV("span",{className:"topbar-slash",children:"/"},void 0,!1,void 0,this),nt.jsxDEV("span",{className:"topbar-title",children:u("nav.breadcrumb-stats")},void 0,!1,void 0,this)]},void 0,!0,void 0,this),nt.jsxDEV("div",{className:"topbar-spacer"},void 0,!1,void 0,this),nt.jsxDEV("div",{className:"topbar-actions",children:[nt.jsxDEV("span",{className:"topbar-hide-narrow",children:nt.jsxDEV(DI,{},void 0,!1,void 0,this)},void 0,!1,void 0,this),nt.jsxDEV(qa,{options:y,value:l,onChange:c,"aria-label":u("common.time-range")},void 0,!1,void 0,this),nt.jsxDEV(AI,{},void 0,!1,void 0,this),nt.jsxDEV(UI,{},void 0,!1,void 0,this),nt.jsxDEV(MI,{},void 0,!1,void 0,this)]},void 0,!0,void 0,this),S!==void 0&&nt.jsxDEV("div",{className:"topbar-progress",children:nt.jsxDEV("div",{className:"topbar-progress-fill","data-indeterminate":S===null,style:{width:`${(S??0)*100}%`}},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),g&&nt.jsxDEV("div",{className:"drawer-scrim",onClick:()=>v(!1),role:"presentation"},void 0,!1,void 0,this),nt.jsxDEV("nav",{className:"sidebar","data-open":g,"aria-label":u("nav.pages"),children:[Zh.map((C)=>nt.jsxDEV("div",{className:"nav-group",children:[nt.jsxDEV("div",{className:"nav-heading",children:u(C.headingKey)},void 0,!1,void 0,this),C.items.map((I)=>nt.jsxDEV("button",{type:"button",className:"nav-row","data-active":I.id===n,"aria-current":I.id===n?"page":void 0,onClick:()=>m(I.id),children:[nt.jsxDEV(I.icon,{size:15},void 0,!1,void 0,this),nt.jsxDEV("span",{className:"nav-row-label",children:u(I.labelKey)},void 0,!1,void 0,this),nt.jsxDEV("kbd",{children:["G ",I.hotkey.toUpperCase()]},void 0,!0,void 0,this)]},I.id,!0,void 0,this))]},C.headingKey,!0,void 0,this)),nt.jsxDEV("div",{className:"sidebar-foot micro",children:[nt.jsxDEV("span",{children:[nt.jsxDEV("span",{className:"kbd",children:"1"},void 0,!1,void 0,this),"–",nt.jsxDEV("span",{className:"kbd",children:"6"},void 0,!1,void 0,this)," ",u("shell.range-suffix")]},void 0,!0,void 0,this),nt.jsxDEV("span",{children:[nt.jsxDEV("span",{className:"kbd",children:"G"},void 0,!1,void 0,this)," ",u("shell.jump-hint")]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),nt.jsxDEV("main",{className:"shell-panel",children:nt.jsxDEV("div",{className:"shell-content",children:f},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function ZE(){let[n,i]=sd.useState(!1);return sd.useEffect(()=>{let l=()=>i(window.scrollY>4);return l(),window.addEventListener("scroll",l,{passive:!0}),()=>window.removeEventListener("scroll",l)},[]),n}function JE(n,i){sd.useEffect(()=>{let l=0,c=(f)=>{if(f.metaKey||f.ctrlKey||f.altKey||f.defaultPrevented)return;if(Xh(f.target)||Yh())return;let y=f.key.toLowerCase();if(l&&Date.now()-l<1200){l=0;let v=Zh.flatMap((h)=>h.items).find((h)=>h.hotkey===y);if(v)f.preventDefault(),n(v.id),window.scrollTo({top:0});return}if(y==="g"){l=Date.now();return}let g=Number(y)-1;if(Number.isInteger(g)&&g>=0&&g<Wu.length)f.preventDefault(),i(Wu[g])};return window.addEventListener("keydown",c),()=>window.removeEventListener("keydown",c)},[n,i])}var Cs=_(We(),1);function Hf(n){let[i,l]=n.replace(/^#\/?/,"").split("?"),c=EI.includes(i)?i:"overview",f=new URLSearchParams(l??""),y=f.get("range"),g=Wu.includes(y??"")?y:"24h";return{section:c,range:g,session:f.get("s")}}function eg({section:n,range:i,session:l}){let c=l?`&s=${encodeURIComponent(l)}`:"";return`#/${n}?range=${i}${c}`}function HI(){let[n,i]=Cs.useState(()=>Hf(window.location.hash));Cs.useEffect(()=>{let g=()=>i(Hf(window.location.hash));window.addEventListener("hashchange",g),window.addEventListener("popstate",g);let v=eg(Hf(window.location.hash));if(window.location.hash!==v)history.replaceState(null,"",v);return()=>{window.removeEventListener("hashchange",g),window.removeEventListener("popstate",g)}},[]);let l=Cs.useCallback((g)=>{i(g);let v=eg(g);if(window.location.hash!==v)history.pushState(null,"",v)},[]),c=Cs.useCallback((g)=>l({...n,section:g,session:g==="traces"?n.session:null}),[n,l]),f=Cs.useCallback((g)=>l({...n,range:g}),[n,l]),y=Cs.useCallback((g)=>l({...n,session:g}),[n,l]);return{...n,setSection:c,setRange:f,setSession:y}}var Gf=_(We(),1);var Gr=_(te(),1);function ws({items:n,max:i,onSelect:l}){let c=i??Math.max(0,...n.map((f)=>f.value));return Gr.jsxDEV("div",{className:"bar-list",children:n.map((f)=>{let y=c>0?Math.max(0.5,f.value/c*100):0,g=Gr.jsxDEV(Gr.Fragment,{children:[Gr.jsxDEV("span",{className:"bar-list-fill",style:{width:`${y}%`,background:f.color??"var(--chart-primary)"}},void 0,!1,void 0,this),Gr.jsxDEV("span",{className:"bar-list-label",children:f.label},void 0,!1,void 0,this),Gr.jsxDEV("span",{className:"bar-list-value",children:f.display??M(f.value)},void 0,!1,void 0,this)]},void 0,!0,void 0,this);return l?Gr.jsxDEV("button",{type:"button",className:"bar-list-row",onClick:()=>l(f.key),children:g},f.key,!1,void 0,this):Gr.jsxDEV("div",{className:"bar-list-row",children:g},f.key,!1,void 0,this)})},void 0,!1,void 0,this)}var Is=_(We(),1);var ut=_(te(),1),Ts=10,eN=24,tN=68,aN=4;function yn({slots:n,tickLabel:i,tooltipTitle:l,series:c,kind:f="bars",stacked:y=!0,height:g=220,format:v=se,formatRight:h,formatTooltip:x,yMax:m,yMaxRight:S,hidden:C,showTotal:I,references:w,markers:T,onSelect:R,emptyLabel:O="No data in this range",tooltipExtra:P}){let[j,Q]=$h(),[ue,Z]=Is.useState(null),ce=Is.useId().replace(/:/g,""),ee=Is.useMemo(()=>c.filter((X)=>!C?.has(X.key)),[c,C]),G=Is.useMemo(()=>{let X=ee.filter((qt)=>qt.axis!=="right"),Ke=ee.filter((qt)=>qt.axis==="right"),H=(qt)=>{let ca=qt.kind??f;return y&&(ca==="bars"||ca==="area")},Ce=new Map,he=Array.from({length:n},()=>0),st=Array.from({length:n},()=>0),Be=0,ke=0;for(let qt of X)if(H(qt)){let ca=Array.from({length:n},()=>0);for(let fo=0;fo<n;fo++){let Pl=qt.values[fo]??0;if(Pl<0)ca[fo]=st[fo],st[fo]+=Pl;else ca[fo]=he[fo],he[fo]+=Pl}Ce.set(qt.key,ca)}else for(let ca=0;ca<n;ca++)Be=Math.max(Be,qt.values[ca]??0),ke=Math.min(ke,qt.values[ca]??0);for(let qt=0;qt<n;qt++)Be=Math.max(Be,he[qt]),ke=Math.min(ke,st[qt]);let Xt=0,Ne=0;for(let qt of Ke)for(let ca=0;ca<n;ca++)Xt=Math.max(Xt,qt.values[ca]??0),Ne=Math.min(Ne,qt.values[ca]??0);for(let qt of w??[])if(qt.axis==="right")Xt=Math.max(Xt,qt.value);else Be=Math.max(Be,qt.value);let Aa=tg(m??Be,ke),Yt=Ke.length>0?tg(S??Xt,Ne):null,Vi=ee.every((qt)=>qt.values.every((ca)=>!ca));return{left:X,right:Ke,bases:Ce,stackable:H,leftScale:Aa,rightScale:Yt,empty:Vi}},[ee,n,y,f,m,S,w]),V=G.leftScale.ticks.map((X)=>v(X)),Ie=G.rightScale?.ticks.map((X)=>(h??v)(X))??[],fe=Math.max(28,FI(V)+12),Ee=G.rightScale?Math.max(28,FI(Ie)+12):8,we=Math.max(0,Q-fe-Ee),oe=g-Ts-eN,Se=n>0?we/n:0,Ae=(X,Ke)=>Ts+oe-(Ke-X.min)/(X.max-X.min)*oe,Ye=(X)=>Ae(G.leftScale,X),ht=(X)=>G.rightScale?Ae(G.rightScale,X):Ye(X),W=(X)=>fe+(X+0.5)*Se,He=ee.filter((X)=>(X.kind??f)==="bars"),Tt=He.filter((X)=>!G.stackable(X)||X.axis==="right"),xt=Math.max(1,Math.min(56,Se*(Se>6?0.72:0.9))),ge=Math.max(1,Math.ceil(n/Math.max(1,Math.floor(we/tN)))),Xe=(X)=>{let Ke=X.currentTarget.getBoundingClientRect(),H=Math.floor((X.clientX-Ke.left)/(Ke.width/n));Z(H>=0&&H<n?H:null)},Ue=ue===null?[]:ee.filter((X)=>X.tooltip!==!1).map((X)=>({s:X,v:X.values[ue]})).filter((X)=>X.v!==null&&X.v!==void 0&&(X.v!==0||ee.length===1)).sort((X,Ke)=>ee.length>1?Ke.v-X.v:0),sa=Ue.filter((X)=>X.s.axis!=="right").reduce((X,Ke)=>X+Ke.v,0),la=I??(y&&G.left.length>1);return ut.jsxDEV("div",{className:"chart",ref:j,"data-hovering":ue!==null,style:{height:g},children:[Q>0&&ut.jsxDEV("svg",{width:Q,height:g,role:"img",children:[ut.jsxDEV("defs",{children:ee.filter((X)=>X.pattern==="hatch").map((X)=>ut.jsxDEV("pattern",{id:`${ce}-${Sx(X.key)}`,width:"5",height:"5",patternUnits:"userSpaceOnUse",patternTransform:"rotate(45)",children:[ut.jsxDEV("rect",{width:"5",height:"5",fill:X.color,fillOpacity:"0.14"},void 0,!1,void 0,this),ut.jsxDEV("rect",{width:"1.6",height:"5",fill:X.color},void 0,!1,void 0,this)]},X.key,!0,void 0,this))},void 0,!1,void 0,this),ut.jsxDEV("g",{className:"chart-grid",children:G.leftScale.ticks.map((X)=>ut.jsxDEV("line",{x1:fe,x2:fe+we,y1:Ye(X),y2:Ye(X)},X,!1,void 0,this))},void 0,!1,void 0,this),ut.jsxDEV("g",{className:"chart-axis",children:[G.leftScale.ticks.map((X,Ke)=>ut.jsxDEV("text",{x:fe-8,y:Ye(X),dy:"0.32em",textAnchor:"end",children:V[Ke]},X,!1,void 0,this)),G.rightScale?.ticks.map((X,Ke)=>ut.jsxDEV("text",{x:fe+we+8,y:ht(X),dy:"0.32em",textAnchor:"start",children:Ie[Ke]},X,!1,void 0,this)),Array.from({length:n},(X,Ke)=>Ke%ge===0?ut.jsxDEV("text",{x:W(Ke),y:g-6,textAnchor:"middle",children:i(Ke)},Ke,!1,void 0,this):null)]},void 0,!0,void 0,this),ue!==null&&ut.jsxDEV("rect",{className:"chart-cursor",x:fe+ue*Se,y:Ts,width:Se,height:oe},void 0,!1,void 0,this),ee.filter((X)=>(X.kind??f)==="area").map((X)=>{let Ke=X.axis==="right"?ht:Ye,H=G.bases.get(X.key),Ce=(ke)=>(H?.[ke]??0)+(X.values[ke]??0),he=GI(n,W,(ke)=>Ke(Ce(ke))),st=Array.from({length:n},(ke,Xt)=>n-1-Xt).map((ke)=>`L${W(ke).toFixed(1)},${Ke(H?.[ke]??0).toFixed(1)}`).join(""),Be=X.pattern==="hatch"?`url(#${ce}-${Sx(X.key)})`:X.color;return ut.jsxDEV("g",{children:[ut.jsxDEV("path",{d:`${he}${st}Z`,fill:Be,fillOpacity:X.pattern?1:0.2},void 0,!1,void 0,this),ut.jsxDEV("path",{className:"chart-line",d:he,stroke:X.color,strokeDasharray:X.dashed?"4 3":void 0},void 0,!1,void 0,this)]},X.key,!0,void 0,this)}),He.map((X)=>{let Ke=X.axis==="right"?ht:Ye,H=G.bases.get(X.key),Ce=Tt.indexOf(X),he=Ce>=0?xt/Tt.length:xt,st=X.pattern==="hatch"?`url(#${ce}-${Sx(X.key)})`:X.color;return ut.jsxDEV("g",{children:X.values.map((Be,ke)=>{if(!Be)return null;let Xt=Ce>=0?0:H?.[ke]??0,Ne=Ke(Xt),Aa=Ke(Xt+Be),Yt=W(ke)-xt/2+(Ce>=0?Ce*he:0);return ut.jsxDEV("rect",{className:"chart-bar","data-hover":ue===ke,x:Yt,y:Math.min(Ne,Aa),width:Math.max(1,he-(Ce>=0&&Tt.length>1?1:0)),height:Math.max(Be>0?1:0,Math.abs(Ne-Aa)),fill:st},ke,!1,void 0,this)})},X.key,!1,void 0,this)}),ee.filter((X)=>(X.kind??f)==="line").map((X)=>{let Ke=X.axis==="right"?ht:Ye,H=(Ce)=>{let he=X.values[Ce];return he===null||he===void 0?null:Ke(he)};return ut.jsxDEV("g",{children:[ut.jsxDEV("path",{className:"chart-line",d:GI(n,W,H),stroke:X.color,strokeDasharray:X.dashed?"4 3":void 0},void 0,!1,void 0,this),X.values.map((Ce,he)=>{let st=H(he);if(st===null||he>0&&H(he-1)!==null||he<n-1&&H(he+1)!==null)return null;return ut.jsxDEV("circle",{cx:W(he),cy:st,r:2.5,fill:X.color},he,!1,void 0,this)})]},X.key,!0,void 0,this)}),ee.filter((X)=>(X.kind??f)==="dots").map((X)=>{let Ke=X.axis==="right"?ht:Ye;return ut.jsxDEV("g",{className:"chart-dots",fill:X.color,children:X.values.map((H,Ce)=>H===null||H===void 0?null:ut.jsxDEV("circle",{cx:W(Ce),cy:Ke(H),r:ue===Ce?3.5:2.5},Ce,!1,void 0,this))},X.key,!1,void 0,this)}),T?.map((X)=>X.index>=0&&X.index<n?ut.jsxDEV("g",{className:"chart-marker",children:[ut.jsxDEV("line",{x1:W(X.index),x2:W(X.index),y1:Ts,y2:Ts+oe},void 0,!1,void 0,this),X.label&&ut.jsxDEV("text",{x:W(X.index)+(W(X.index)>fe+we/2?-5:5),y:Ts+9,textAnchor:W(X.index)>fe+we/2?"end":"start",children:X.label},void 0,!1,void 0,this)]},`marker:${X.index}`,!0,void 0,this):null),w?.map((X)=>{let Ke=X.axis==="right"?ht(X.value):Ye(X.value);return ut.jsxDEV("g",{className:"chart-axis",children:[ut.jsxDEV("line",{x1:fe,x2:fe+we,y1:Ke,y2:Ke,stroke:"var(--line-4)",strokeDasharray:"3 3"},void 0,!1,void 0,this),X.label&&ut.jsxDEV("text",{x:fe+we-4,y:Ke-5,textAnchor:"end",children:X.label},void 0,!1,void 0,this)]},`${X.axis??"left"}:${X.value}`,!0,void 0,this)}),ut.jsxDEV("line",{className:"chart-baseline",x1:fe,x2:fe+we,y1:Ye(0),y2:Ye(0)},void 0,!1,void 0,this),ut.jsxDEV("rect",{x:fe,y:Ts,width:we,height:oe,fill:"transparent",onPointerMove:Xe,onPointerLeave:()=>Z(null),onClick:R&&ue!==null?()=>R(ue):void 0,style:{cursor:R?"pointer":"crosshair"}},void 0,!1,void 0,this)]},void 0,!0,void 0,this),G.empty&&ut.jsxDEV("div",{className:"chart-empty",children:O},void 0,!1,void 0,this),ue!==null&&!G.empty&&ut.jsxDEV("div",{className:"chart-tooltip",style:W(ue)>Q/2?{right:Q-W(ue)+Math.min(Se/2,24)+8,top:Ts}:{left:W(ue)+Math.min(Se/2,24)+8,top:Ts},children:[ut.jsxDEV("div",{className:"chart-tooltip-title",children:(l??i)(ue)},void 0,!1,void 0,this),Ue.map(({s:X,v:Ke})=>ut.jsxDEV("div",{className:"chart-tooltip-row",children:[ut.jsxDEV("span",{className:"swatch",style:{background:X.color}},void 0,!1,void 0,this),ut.jsxDEV("span",{className:"chart-tooltip-label",children:X.label},void 0,!1,void 0,this),ut.jsxDEV("span",{className:"chart-tooltip-value",children:X.axis==="right"?(h??v)(Ke):(x??v)(Ke)},void 0,!1,void 0,this)]},X.key,!0,void 0,this)),la&&Ue.length>1&&ut.jsxDEV("div",{className:"chart-tooltip-row chart-tooltip-total",children:[ut.jsxDEV("span",{className:"chart-tooltip-label",children:"Total"},void 0,!1,void 0,this),ut.jsxDEV("span",{className:"chart-tooltip-value",children:(x??v)(sa)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),P&&ut.jsxDEV(Is.Fragment,{children:P(ue)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)}function tg(n,i=0){let l=Math.max(0,n),c=Math.min(0,i);if(!(l-c>0))return{min:0,max:1,ticks:[0]};let f=(l-c)/aN,y=10**Math.floor(Math.log10(f)),g=[1,2,2.5,5,10].map((m)=>m*y).find((m)=>m>=f)??10*y,v=Math.ceil(l/g)*g,h=Math.floor(c/g)*g,x=[];for(let m=h;m<=v+g/2;m+=g)x.push(Number(m.toPrecision(12)));return{min:h,max:v>h?v:h+g,ticks:x}}function FI(n){return n.reduce((i,l)=>Math.max(i,l.length*6.3),0)}function GI(n,i,l){let c="",f=!1;for(let y=0;y<n;y++){let g=l(y);if(g===null){f=!1;continue}c+=`${f?"L":"M"}${i(y).toFixed(1)},${g.toFixed(1)}`,f=!0}return c}function Sx(n){return n.replace(/[^a-zA-Z0-9_-]/g,"_")}var _a=_(te(),1);function ag({rows:n,guides:i,band:l,format:c,formatTick:f}){let y=0,g=0,v=(I)=>{if(I===null)return;y=Math.max(y,I),g=Math.min(g,I)};for(let I of n)for(let w of I.marks)v(w.value),v(w.lo),v(w.hi);for(let I of i??[])v(I.value);if(l)v(l.lo),v(l.hi);let h=tg(y,g),x=h.max-h.min,m=(I)=>(Math.min(h.max,Math.max(h.min,I))-h.min)/x*100,S=(I)=>`${m(I)}%`,C=_a.jsxDEV(_a.Fragment,{children:[l&&_a.jsxDEV("span",{className:"dw-band",style:{left:S(l.lo),width:`${m(l.hi)-m(l.lo)}%`,"--band":l.color}},void 0,!1,void 0,this),i?.map((I)=>_a.jsxDEV("span",{className:"dw-guide",style:{left:S(I.value),"--guide":I.color}},I.key,!1,void 0,this))]},void 0,!0,void 0,this);return _a.jsxDEV("div",{className:"dw",children:[n.map((I)=>{let w=I.marks[0],T=w!==void 0&&w.lo!==null&&w.hi!==null?`${c(w.lo)}–${c(w.hi)}`:"";return _a.jsxDEV("div",{className:"dw-row",children:[_a.jsxDEV("div",{className:"dw-label",children:I.label},void 0,!1,void 0,this),_a.jsxDEV("div",{className:"dw-track",children:[C,I.marks.map((R)=>_a.jsxDEV("span",{className:"dw-mark","data-shape":R.shape??"dot",style:{"--dot":R.color,"--dy":`${R.offset??0}px`},children:[R.lo!==null&&R.hi!==null&&_a.jsxDEV("span",{className:"dw-whisker",style:{left:S(R.lo),width:`${m(R.hi)-m(R.lo)}%`}},void 0,!1,void 0,this),R.value!==null&&_a.jsxDEV("span",{className:"dw-dot",style:{left:S(R.value)},title:R.title},void 0,!1,void 0,this)]},R.key,!0,void 0,this))]},void 0,!0,void 0,this),_a.jsxDEV("div",{className:"dw-value",children:[_a.jsxDEV("span",{className:"num",children:I.figure??(w?.value===null||w===void 0?"–":c(w.value))},void 0,!1,void 0,this),_a.jsxDEV("span",{className:"dw-detail",children:I.detail??T},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},I.key,!0,void 0,this)}),_a.jsxDEV("div",{className:"dw-row dw-axis","aria-hidden":"true",children:[_a.jsxDEV("div",{},void 0,!1,void 0,this),_a.jsxDEV("div",{className:"dw-track",children:h.ticks.map((I)=>_a.jsxDEV("span",{className:"dw-tick",style:{left:S(I)},children:(f??c)(I)},I,!1,void 0,this))},void 0,!1,void 0,this),_a.jsxDEV("div",{},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)}var og=_(We(),1),Vr=_(te(),1);function ra({items:n,hidden:i,onToggle:l}){return Vr.jsxDEV("div",{className:"legend",children:n.map((c)=>{let f=Vr.jsxDEV(Vr.Fragment,{children:[Vr.jsxDEV("span",{className:"swatch",style:{background:c.color}},void 0,!1,void 0,this),Vr.jsxDEV("span",{className:"truncate",children:c.label},void 0,!1,void 0,this),c.value&&Vr.jsxDEV("span",{className:"legend-value",children:c.value},void 0,!1,void 0,this)]},void 0,!0,void 0,this);return l?Vr.jsxDEV("button",{type:"button",className:"legend-item","data-off":i?.has(c.key)??!1,onClick:()=>l(c.key),title:c.label,children:f},c.key,!1,void 0,this):Vr.jsxDEV("span",{className:"legend-item",title:c.label,children:f},c.key,!1,void 0,this)})},void 0,!1,void 0,this)}function Pn(){let[n,i]=og.useState(()=>new Set),l=og.useCallback((c)=>{i((f)=>{let y=new Set(f);if(!y.delete(c))y.add(c);return y})},[]);return[n,l]}var kx=_(te(),1);function jr({segments:n,height:i=8}){let l=n.reduce((c,f)=>c+Math.max(0,f.value),0);return kx.jsxDEV("div",{className:"share-bar",style:{height:i},role:"img",children:l>0&&n.filter((c)=>c.value>0).map((c)=>kx.jsxDEV("div",{className:"share-bar-seg",style:{flexGrow:c.value/l,background:c.color},title:`${c.label}: ${(c.value/l*100).toFixed(1)}%`},c.key,!1,void 0,this))},void 0,!1,void 0,this)}var VI=_(te(),1);function Uo({buckets:n,bucketMs:i,onSelectBucket:l,...c}){return VI.jsxDEV(yn,{...c,slots:n.length,tickLabel:(f)=>Uh(n[f],i),tooltipTitle:(f)=>Zu(n[f],i),onSelect:l?(f)=>l(n[f]):void 0},void 0,!1,void 0,this)}var nr=_(te(),1);function jI({steps:n,format:i}){let l=0,c=n.map((h)=>{let x=l;if(h.kind==="total")return l=h.value,{...h,from:0,to:h.value,before:x};return l+=h.value,{...h,from:x,to:l,before:x}}),f=0,y=0;for(let h of c)f=Math.min(f,h.from,h.to),y=Math.max(y,h.from,h.to);let g=y-f||1,v=(h)=>(h-f)/g*100;return nr.jsxDEV("ol",{className:"waterfall",children:c.map((h,x)=>{let m=v(Math.min(h.from,h.to)),S=Math.abs(v(h.to)-v(h.from)),C=h.kind==="delta"?h.value<0?"−":"+":h.value<0?"−":"";return nr.jsxDEV("li",{className:"waterfall-row","data-kind":h.kind,title:h.title,children:[nr.jsxDEV("span",{className:"waterfall-label",children:h.label},void 0,!1,void 0,this),nr.jsxDEV("span",{className:"waterfall-track",children:[f<0&&nr.jsxDEV("span",{className:"waterfall-zero",style:{left:`${v(0)}%`}},void 0,!1,void 0,this),x>0&&nr.jsxDEV("span",{className:"waterfall-link",style:{left:`${v(h.before)}%`}},void 0,!1,void 0,this),nr.jsxDEV("span",{className:"waterfall-bar","data-empty":h.value===0,style:{left:`${m}%`,width:`${S}%`,"--bar":h.color}},void 0,!1,void 0,this)]},void 0,!0,void 0,this),nr.jsxDEV("span",{className:"waterfall-value",children:[nr.jsxDEV("span",{className:"num",children:[C,i(Math.abs(h.value))]},void 0,!0,void 0,this),h.note!==void 0&&nr.jsxDEV("span",{className:"waterfall-note",children:h.note},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},h.key,!0,void 0,this)})},void 0,!1,void 0,this)}var Qa=["#5ad8e6","#ed4abf","#9d7bff","#f5b54a","#4ade80","#5b8cff","#ff7a59","#2dd4bf","#c3e94f","#fb7185"],Ro="#6c6c74";function Ha(n,i){return`${n}::${i}`}function ng(n){return Ff(n.map((i)=>({key:Ha(i.model,i.provider),weight:i.totalRequests})))}function Ff(n){let i=[...n].sort((l,c)=>c.weight-l.weight||l.key.localeCompare(c.key));return new Map(i.map((l,c)=>[l.key,Qa[c%Qa.length]]))}function rg(n){return n instanceof Error?n:Error(String(n))}var Ba=_(We(),1);var oN={entries:new Map,limit:128},nN={entries:new Map,limit:4},rN={entries:new Map,limit:16},Pi=new Map;function $I(n){if(n.startsWith('["trace",'))return nN;if(n.startsWith('["request",'))return rN;return oN}function ld(n){return $I(n).entries.get(n)}function XI(n){return Pi.get(n)}function sN(n,i){let{entries:l,limit:c}=$I(n);if(l.delete(n),l.set(n,i),l.size>c){let f=l.keys().next().value;if(f!==void 0)l.delete(f)}}function YI(n,i,l){let c=Pi.get(n);if(c)return c.waiters++,c;let f=new AbortController,y=ld(n)?.data,g={promise:l({signal:f.signal},y).then((v)=>(sN(n,{data:v,updatedAt:Date.now(),version:i}),v)).finally(()=>{if(Pi.get(n)===g)Pi.delete(n)}),controller:f,waiters:1};return Pi.set(n,g),g}function Lx(n,i){if(i.waiters--,i.waiters>0)return;if(Pi.get(n)===i)Pi.delete(n);i.controller.abort()}var lN=1500;function Ft(n,i,l){let c=JSON.stringify(n),f=l?.enabled??!0,y=l?.pollMs,g=SI(f),[,v]=Ba.useReducer((G)=>G+1,0),[h,x]=Ba.useReducer((G)=>G+1,0),[m,S]=Ba.useState(null),[C,I]=Ba.useState(!1),w=Ba.useRef(i);w.current=i;let T=Ba.useRef(c);T.current=c;let R=Ba.useRef(null),O=Ba.useRef(0),P=Ba.useRef(null),j=Ba.useCallback((G)=>{O.current=Date.now();let V=P.current;if(V?.key===G&&XI(G)===V.request)return;let Ie=ld(G)?.data;I(!0);let fe=YI(G,fx(),w.current);if(P.current={key:G,request:fe},V)Lx(V.key,V.request);let Ee=!1;fe.promise.then((we)=>{if(Ee=!0,T.current!==G)return;if(we===Ie){S((oe)=>oe===null?oe:null);return}Ba.startTransition(()=>{S(null),v()})}).catch((we)=>{if(T.current!==G||fe.controller.signal.aborted)return;S({key:G,error:rg(we)})}).finally(()=>{if(P.current?.request!==fe)return;if(P.current=null,T.current!==G)return;if(I(!1),Ee&&(ld(G)?.version??-1)<fx())x()})},[]),Q=Ba.useCallback(()=>{let G=P.current;if(P.current=null,G)Lx(G.key,G.request)},[]);Ba.useEffect(()=>Q,[Q]),Ba.useEffect(()=>{if(!f||P.current&&P.current.key!==c)Q();if(!f)return;let G=ld(c);if(G&&G.version>=g)return;let V=G?O.current+lN-Date.now():0;if(V<=0){j(c);return}let Ie=setTimeout(()=>j(c),V);return()=>clearTimeout(Ie)},[c,f,g,h,j,Q]),Ba.useEffect(()=>{if(!f||!y)return;let G=setInterval(()=>{if(!document.hidden)j(T.current)},y);return()=>clearInterval(G)},[f,y,j]);let ue=Ba.useCallback(()=>j(T.current),[j]),Z=ld(c);if(Z)R.current={key:c,data:Z.data,updatedAt:Z.updatedAt};let ce=R.current,ee=m?.key===c?m.error:null;return{data:ce?.data??null,error:ee,loading:!ce&&!ee,stale:!!ce&&ce.key!==c,refreshing:C,updatedAt:ce?.updatedAt??null,refetch:ue}}function da(n,i,l){let c=KI(i),f=Array.from({length:i.length},()=>0);for(let y of n){let g=c.get(y.timestamp);if(g!==void 0)f[g]+=l(y)}return f}function $r(n,i){let l=KI(i.buckets),c=new Map;for(let x of n){let m=l.get(x.timestamp);if(m===void 0)continue;let S=i.key(x),C=c.get(S);if(!C)C=Array.from({length:i.buckets.length},()=>0),c.set(S,C);C[m]+=i.value(x)}let f=[...c.entries()].map(([x,m])=>({key:x,values:m,total:m.reduce((S,C)=>S+C,0)})).filter((x)=>x.total!==0).sort((x,m)=>m.total-x.total||x.key.localeCompare(m.key)),y=i.limit??Number.POSITIVE_INFINITY,g=f.slice(0,y),v=f.slice(y),h=g.map((x,m)=>({key:x.key,label:i.label?i.label(x.key):x.key,color:i.colors?.get(x.key)??Qa[m%Qa.length],values:x.values}));if(v.length>0){let x=Array.from({length:i.buckets.length},()=>0);for(let m of v)for(let S=0;S<x.length;S++)x[S]+=m.values[S];h.push({key:"__other__",label:u("common.other-n",{count:v.length}),color:Ro,values:x})}return h}function KI(n){let i=new Map;for(let l=0;l<n.length;l++)i.set(n[l],l);return i}var iN=["main","subagent","advisor"];function Ol(n){return n.totalInputTokens+n.totalOutputTokens+n.totalCacheReadTokens+n.totalCacheWriteTokens}function ZI(n){let i=new Map;for(let g of n)i.set(g.agentType,g);let l=iN.map((g)=>i.get(g)).filter((g)=>g!==void 0),c=l.reduce((g,v)=>g+Ol(v),0),f=l.reduce((g,v)=>g+v.totalCost,0),y=l.map((g)=>{let v=Ol(g);return{agentType:g.agentType,tokens:v,requests:g.totalRequests,cost:g.totalCost,share:c>0?v/c:0}});return{totalTokens:c,totalCost:f,segments:y}}function JI(n){let i={totalCost:0,requests:0,unpricedRequests:0,activeDays:new Set(n.map((f)=>f.timestamp)).size,avgDailyCost:0,costInput:0,costOutput:0,costCacheRead:0,costCacheWrite:0,models:[],topModel:null},l=new Map;for(let f of n){let y=Ha(f.model,f.provider),g=l.get(y);if(!g)g={key:y,model:f.model,provider:f.provider,cost:0,requests:0,unpricedRequests:0,costInput:0,costOutput:0,costCacheRead:0,costCacheWrite:0,share:0},l.set(y,g);QI(g,f),QI(i,f),g.cost+=f.cost,i.totalCost+=f.cost}i.avgDailyCost=i.activeDays>0?i.totalCost/i.activeDays:0,i.models=[...l.values()].sort((f,y)=>y.cost-f.cost||y.requests-f.requests||f.key.localeCompare(y.key));for(let f of i.models)f.share=i.totalCost>0?f.cost/i.totalCost:0;let c=i.models[0];return i.topModel=c!==void 0&&c.cost>0?c:null,i}function QI(n,i){n.costInput+=i.costInput,n.costOutput+=i.costOutput,n.costCacheRead+=i.costCacheRead,n.costCacheWrite+=i.costCacheWrite,n.requests+=i.requests,n.unpricedRequests+=i.unpricedRequests}function e2(n){let i=new Map;for(let l of n){let c=Ha(l.model,l.provider),f=i.get(c);if(!f)f=[],i.set(c,f);f.push({timestamp:l.timestamp,avgTtftSeconds:l.avgTtft!==null?l.avgTtft/1000:null,avgTokensPerSecond:l.avgTokensPerSecond,requests:l.requests})}for(let l of i.values())l.sort((c,f)=>c.timestamp-f.timestamp);return i}var uN=/^\/?-?(?:private-)?(?:tmp|var-folders)(?:[-/]|$)/;function t2(n){let i=0,l=0,c=0,f=0,y=0,g=0,v=0,h=0,x=0;for(let C of n){if(i+=C.totalRequests,l+=C.failedRequests,c+=C.totalCost,f+=C.unpricedRequests,y+=C.totalInputTokens+C.totalCacheReadTokens+C.totalCacheWriteTokens+C.totalOutputTokens,g+=C.totalInputTokens,v+=C.totalCacheReadTokens,C.totalRequests>h)h=C.totalRequests;if(C.totalCost>x)x=C.totalCost}let m=0;return{rows:n.map((C)=>{let I=uN.test(C.folder);if(I)m++;return{...C,conversationTokens:C.totalInputTokens+C.totalCacheReadTokens+C.totalCacheWriteTokens+C.totalOutputTokens,requestShare:i>0?C.totalRequests/i:0,costShare:c>0?C.totalCost/c:0,temporary:I}}),totalRequests:i,failedRequests:l,totalCost:c,unpricedRequests:f,conversationTokens:y,cacheRate:g+v>0?v/(g+v):0,maxRequests:h,maxCost:x,temporaryCount:m}}function a2(n){let i=0,l=0,c=0;for(let f of n)i+=f.calls,l+=f.totalTokensShare,c+=f.costShare;return n.map((f)=>({...f,errorRate:f.calls>0?f.errors/f.calls:0,callFraction:i>0?f.calls/i:0,tokenFraction:l>0?f.totalTokensShare/l:0,costFraction:c>0?f.costShare/c:0,avgResultChars:f.calls>0?f.resultChars/f.calls:0}))}function Rs(n){if(n.stopReason==="aborted")return"aborted";if(n.stopReason==="error"||n.errorMessage)return"failed";return"ok"}function Cx(n,i){if(n.length===0)return null;return n[Math.min(n.length-1,Math.max(0,Math.ceil(i*n.length)-1))]}function o2(n){let i=0,l=0,c=0,f=0,y=0,g=null,v=null,h=[],x=[];for(let m of n){let S=Rs(m);if(S==="failed")i++;else if(S==="aborted")l++;if(c+=m.usage.totalTokens,f+=m.usage.cost.total,mx(m))y++;if(m.duration!==null)h.push(m.duration);if(m.ttft!==null)x.push(m.ttft);if(g===null||m.timestamp<g)g=m.timestamp;if(v===null||m.timestamp>v)v=m.timestamp}return h.sort((m,S)=>m-S),x.sort((m,S)=>m-S),{requests:n.length,failed:i,aborted:l,tokens:c,cost:f,unpriced:y,medianDuration:Cx(h,0.5),p95Duration:Cx(h,0.95),medianTtft:Cx(x,0.5),oldest:g,newest:v}}var WI=180,dN=/\b[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}\b/gi,cN=/\b(?:req|msg|call|toolu|chatcmpl|resp|run|gen)[-_][A-Za-z0-9_-]{6,}/g,fN=/\b[0-9a-f]{12,}\b/gi,pN=/(?<![\w.-])\d+(?:\.\d+)?/g,mN=/^[1-5]\d\d$/;function wx(n){if(!n?.trim())return"Unknown error";let i=n.replace(/\s+/g," ").trim().replace(dN,"<id>").replace(cN,"<id>").replace(fN,"<hex>").replace(pN,(l)=>mN.test(l)?l:"N");return i.length>WI?`${i.slice(0,WI-1)}…`:i}function n2(n){let i=new Map;for(let l of n){let c=wx(l.errorMessage),f=i.get(c);if(!f)f={signature:c,count:0,firstSeen:l.timestamp,lastSeen:l.timestamp,latest:l,models:[],byModel:new Map},i.set(c,f);if(f.count++,l.timestamp<f.firstSeen)f.firstSeen=l.timestamp;if(l.timestamp>f.lastSeen)f.lastSeen=l.timestamp,f.latest=l;let y=Ha(l.model,l.provider),g=f.byModel.get(y);if(g)g.count++;else f.byModel.set(y,{model:l.model,provider:l.provider,count:1})}return[...i.values()].map(({byModel:l,...c})=>({...c,models:[...l.values()].sort((f,y)=>y.count-f.count||f.model.localeCompare(y.model))})).sort((l,c)=>c.count-l.count||c.lastSeen-l.lastSeen)}var qe=_(te(),1);function hN(){return[{value:"model",label:u("costs.by-model")},{value:"component",label:u("costs.by-component")}]}var gN=6,yN=86400000;function Vf(){return[{key:"costInput",label:u("common.input"),color:"#5b8cff"},{key:"costOutput",label:u("common.output"),color:"var(--chart-secondary)"},{key:"costCacheRead",label:u("common.cache-read"),color:"var(--chart-primary)"},{key:"costCacheWrite",label:u("common.cache-write"),color:"#f5b54a"}]}function r2({active:n,range:i}){let l=Ft(["costs",i],({signal:C})=>WT(i,C),{enabled:n}),c=ea(i),[f,y]=Gf.useState("model"),[g,v]=Pn(),h=Gf.useMemo(()=>l.data?vN(l.data,i):null,[l.data,i]),x=Gf.useMemo(()=>h?SN(h):[],[h]),m=(C)=>C.costSeries.length===0,S=qe.jsxDEV(mt,{title:u("costs.no-usage-in-range"),hint:u("costs.empty-hint")},void 0,!1,void 0,this);return qe.jsxDEV("div",{className:"page",children:[qe.jsxDEV(ha,{title:u("costs.title"),description:u("costs.description",{window:u(c.windowKey)})},void 0,!1,void 0,this),qe.jsxDEV(_e,{query:l,skeleton:qe.jsxDEV(ao,{height:112,style:{borderRadius:12}},void 0,!1,void 0,this),isEmpty:m,empty:S,children:()=>h&&qe.jsxDEV(bN,{view:h,stale:l.stale},void 0,!1,void 0,this)},void 0,!1,void 0,this),qe.jsxDEV("div",{className:"grid grid-main-side",children:[qe.jsxDEV(me,{index:1,title:u("costs.daily-estimate"),description:f==="model"?u("costs.daily-by-model"):u("costs.daily-by-component"),actions:qe.jsxDEV(qa,{size:"sm",options:hN(),value:f,onChange:y,"aria-label":u("costs.split-by")},void 0,!1,void 0,this),stale:l.stale,children:qe.jsxDEV(_e,{query:l,skeleton:qe.jsxDEV(Et,{height:280},void 0,!1,void 0,this),isEmpty:m,empty:S,children:()=>{if(!h)return null;let C=f==="model"?h.modelSeries:h.componentSeries;return qe.jsxDEV("div",{className:"stack",style:{gap:12},children:[qe.jsxDEV(yn,{slots:h.buckets.length,tickLabel:(I)=>Pf(h.buckets[I]),tooltipTitle:(I)=>Pf(h.buckets[I],!0),series:C,hidden:g,height:280,format:(I)=>Ot(I,Number.isInteger(I)?0:2),formatTooltip:(I)=>Ot(I),emptyLabel:u("costs.no-priced-usage"),tooltipExtra:(I)=>h.unpricedPerDay[I]>0?qe.jsxDEV("div",{className:"chart-tooltip-row chart-tooltip-total",children:[qe.jsxDEV("span",{className:"chart-tooltip-label",children:u("costs.unpriced-requests")},void 0,!1,void 0,this),qe.jsxDEV("span",{className:"chart-tooltip-value",children:M(h.unpricedPerDay[I])},void 0,!1,void 0,this)]},void 0,!0,void 0,this):null},void 0,!1,void 0,this),qe.jsxDEV(ra,{items:C.map((I)=>({key:I.key,label:I.label,color:I.color,value:Ot(kN(I.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),qe.jsxDEV(me,{index:2,title:u("costs.where-it-went"),description:u("costs.estimate-by-component"),stale:l.stale,children:qe.jsxDEV(_e,{query:l,skeleton:qe.jsxDEV(Et,{height:280},void 0,!1,void 0,this),isEmpty:m,empty:S,children:()=>h&&qe.jsxDEV(xN,{summary:h.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),qe.jsxDEV(me,{index:3,title:u("costs.by-model"),description:u("costs.by-model-description"),stale:l.stale,flush:!0,children:qe.jsxDEV(_e,{query:l,skeleton:qe.jsxDEV(ka,{rows:8},void 0,!1,void 0,this),isEmpty:m,empty:S,children:()=>h&&qe.jsxDEV(Ut,{rows:h.summary.models,rowKey:(C)=>C.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 vN(n,i){let l=n.costSeries,c=JI(l),f=ng(c.models.map((x)=>({model:x.model,provider:x.provider,totalRequests:x.requests}))),y=new Map(c.models.map((x)=>[x.key,x])),g=to(i,l.map((x)=>x.timestamp),yN),v=$r(l,{buckets:g,key:(x)=>Ha(x.model,x.provider),label:(x)=>y.get(x)?.model??x,value:(x)=>x.cost,limit:gN,colors:f}).map((x)=>({...x,values:x.values.map((m)=>m||null)})),h=new Set;for(let x of v){if(x.key==="__other__")continue;if(h.has(x.color))x.color=Qa.find((m)=>!h.has(m))??x.color;h.add(x.color)}return{summary:c,swatches:new Map(v.filter((x)=>x.key!=="__other__").map((x)=>[x.key,x.color])),buckets:g,dailyTotals:da(l,g,(x)=>x.cost),unpricedPerDay:da(l,g,(x)=>x.unpricedRequests),modelSeries:v,componentSeries:Vf().map((x)=>({key:x.key,label:x.label,color:x.color,values:da(l,g,(m)=>m[x.key]).map((m)=>m||null)})),maxModelCost:c.models[0]?.cost??0}}function bN({view:n,stale:i}){let{summary:l}=n,c=l.requests-l.unpricedRequests,f=l.topModel;return qe.jsxDEV("div",{"data-stale":i,children:qe.jsxDEV(Sa,{min:180,children:[qe.jsxDEV(ie,{label:u("costs.api-equivalent-estimate"),title:u("costs.api-estimate-title"),value:ta(l.totalCost,l.unpricedRequests),hint:u("costs.requests-n",{count:M(l.requests)}),spark:n.dailyTotals,sparkColor:"var(--chart-secondary)"},void 0,!1,void 0,this),qe.jsxDEV(ie,{label:u("costs.average-per-day"),title:u("costs.average-per-day-title"),value:ta(l.avgDailyCost,l.unpricedRequests),hint:u(l.activeDays===1?"costs.active-days-one":"costs.active-days-n",{count:M(l.activeDays)})},void 0,!1,void 0,this),qe.jsxDEV(ie,{label:u("costs.top-model"),title:f?`${f.model} (${f.provider})`:void 0,value:f?f.model:"–",hint:f?u("costs.top-model-hint",{cost:Ot(f.cost),share:Fe(f.share)}):u("costs.nothing-priced-yet")},void 0,!1,void 0,this),qe.jsxDEV(ie,{label:u("costs.per-priced-request"),title:u("costs.per-priced-request-title"),value:c>0?s2(l.totalCost/c):"–",hint:u("costs.priced-n",{count:M(c)})},void 0,!1,void 0,this),qe.jsxDEV(ie,{label:u("costs.unpriced-requests"),title:u("costs.unpriced-title"),value:M(l.unpricedRequests),hint:l.unpricedRequests>0?u("costs.unpriced-hint"):u("costs.all-priced")},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)}function xN({summary:n}){return qe.jsxDEV("div",{className:"stack",style:{gap:14},children:[qe.jsxDEV(jr,{height:10,segments:Vf().map((i)=>({key:i.key,label:i.label,value:n[i.key],color:i.color}))},void 0,!1,void 0,this),qe.jsxDEV("div",{className:"costs-components",children:[Vf().map((i)=>qe.jsxDEV("div",{className:"costs-component-row",children:[qe.jsxDEV("span",{className:"row",children:[qe.jsxDEV(tr,{color:i.color},void 0,!1,void 0,this),i.label]},void 0,!0,void 0,this),qe.jsxDEV("span",{className:"num",children:Ot(n[i.key])},void 0,!1,void 0,this),qe.jsxDEV("span",{className:"num dim costs-component-share",children:n.totalCost>0?Fe(n[i.key]/n.totalCost):"–"},void 0,!1,void 0,this)]},i.key,!0,void 0,this)),qe.jsxDEV("div",{className:"costs-component-row costs-component-total",children:[qe.jsxDEV("span",{children:u("common.total")},void 0,!1,void 0,this),qe.jsxDEV("span",{className:"num",children:ta(n.totalCost,n.unpricedRequests)},void 0,!1,void 0,this),qe.jsxDEV("span",{className:"costs-component-share"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),n.unpricedRequests>0&&qe.jsxDEV("p",{className:"micro dim",children:u(n.unpricedRequests===1?"costs.unpriced-note-one":"costs.unpriced-note-n",{count:M(n.unpricedRequests)})},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function SN(n){let i=Vf().map((l)=>({key:l.key,header:l.label,align:"right",sort:(c)=>c[l.key],render:(c)=>qe.jsxDEV("span",{className:"num",children:Ot(c[l.key])},void 0,!1,void 0,this)}));return[{key:"model",header:u("common.model"),sort:(l)=>l.model,render:(l)=>qe.jsxDEV(io,{lead:qe.jsxDEV(tr,{color:n.swatches.get(l.key)??Ro},void 0,!1,void 0,this),primary:qe.jsxDEV("span",{className:"mono",children:l.model},void 0,!1,void 0,this),secondary:l.provider},void 0,!1,void 0,this)},{key:"requests",header:u("common.requests"),align:"right",sort:(l)=>l.requests,render:(l)=>qe.jsxDEV("span",{className:"num",children:M(l.requests)},void 0,!1,void 0,this)},{key:"cost",header:u("costs.estimate"),title:u("costs.estimate-title"),align:"right",sort:(l)=>l.cost,render:(l)=>qe.jsxDEV(Ra,{value:l.cost,max:n.maxModelCost,display:ta(l.cost,l.unpricedRequests),color:n.swatches.get(l.key)??Ro},void 0,!1,void 0,this)},{key:"share",header:u("common.share"),align:"right",sort:(l)=>l.share,render:(l)=>qe.jsxDEV("span",{className:"num muted",children:l.cost>0?Fe(l.share):"–"},void 0,!1,void 0,this)},{key:"split",header:u("costs.split"),title:"Input · output · cache read · cache write",width:150,render:(l)=>l.cost>0?qe.jsxDEV(jr,{segments:Vf().map((c)=>({key:c.key,label:c.label,value:l[c.key],color:c.color}))},void 0,!1,void 0,this):qe.jsxDEV("span",{className:"dim",children:"–"},void 0,!1,void 0,this)},...i,{key:"perRequest",header:u("costs.per-request"),title:"Estimate ÷ priced requests",align:"right",sort:(l)=>l.requests>l.unpricedRequests?l.cost/(l.requests-l.unpricedRequests):-1,render:(l)=>qe.jsxDEV("span",{className:"num",children:l.requests>l.unpricedRequests?s2(l.cost/(l.requests-l.unpricedRequests)):"–"},void 0,!1,void 0,this)},{key:"unpriced",header:u("costs.unpriced"),title:"Requests with no public-equivalent price",align:"right",sort:(l)=>l.unpricedRequests,render:(l)=>l.unpricedRequests>0?qe.jsxDEV("span",{className:"num tone-warn",children:M(l.unpricedRequests)},void 0,!1,void 0,this):qe.jsxDEV("span",{className:"num dim",children:"–"},void 0,!1,void 0,this)}]}function s2(n){return n>0&&n<0.0001?"<$0.0001":Ot(n)}function kN(n){let i=0;for(let l of n)i+=l??0;return i}var Ms=_(We(),1);var Le=_(te(),1),Tx=[50,200,1000];function l2({active:n,range:i,onRequestClick:l}){let[c,f]=Ms.useState(0),y=Tx[c],g=Ft(["errors",i,y],({signal:G})=>ZT(i,y,G),{enabled:n}),[v,h]=Ms.useState(null),[x,m]=Ms.useState(null),[S,C]=Ms.useState(""),I=ea(i),w=Ms.useMemo(()=>{let G=(g.data??[]).map((we)=>({row:we,signature:wx(we.errorMessage)})),V=n2(g.data??[]),Ie=new Map;for(let{row:we}of G){let oe=Ha(we.model,we.provider),Se=Ie.get(oe);if(Se)Se.count++;else Ie.set(oe,{model:we.model,provider:we.provider,count:1})}let fe=[...Ie.entries()].map(([we,oe])=>({key:we,...oe})).sort((we,oe)=>oe.count-we.count||we.model.localeCompare(oe.model)),Ee=G.reduce((we,{row:oe})=>!we||oe.timestamp>we.timestamp?oe:we,null);return{rows:G,groups:V,models:fe,newest:Ee}},[g.data]),T=w.groups.some((G)=>G.signature===v)?v:null,R=w.models.some((G)=>G.key===x)?x:null,O=Ms.useMemo(()=>{let G=S.trim().toLowerCase();return w.rows.filter((V)=>(T===null||V.signature===T)&&(R===null||Ha(V.row.model,V.row.provider)===R)&&(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)},[w.rows,T,R,S]),P=g.data?.length??0,j=!g.stale&&P<y,Q=c+1<Tx.length?Tx[c+1]:null,ue=g.data!==null&&!j?Le.jsxDEV(Le.Fragment,{children:[Le.jsxDEV("span",{children:u("errors.footer",{count:M(P),window:u(I.windowKey)})},void 0,!1,void 0,this),Q!==null&&Le.jsxDEV("button",{type:"button",className:"btn","data-size":"sm",disabled:g.refreshing,onClick:()=>f(c+1),children:g.refreshing&&g.stale?u("errors.loading"):u("errors.load-latest",{count:M(Q)})},void 0,!1,void 0,this)]},void 0,!0,void 0,this):void 0,Z=w.groups[0]?.count??0,ce=Ms.useMemo(()=>LN(Z),[Z]),ee=w.models.find((G)=>G.key===R);return Le.jsxDEV("div",{className:"page",children:[Le.jsxDEV(ha,{title:u("errors.title"),description:u("errors.description",{window:u(I.windowKey)})},void 0,!1,void 0,this),Le.jsxDEV(_e,{query:g,skeleton:Le.jsxDEV(ao,{height:96,style:{borderRadius:12}},void 0,!1,void 0,this),children:()=>Le.jsxDEV("div",{"data-stale":g.stale,children:Le.jsxDEV(Sa,{min:170,children:[Le.jsxDEV(ie,{label:u("errors.failures"),value:M(P),hint:j?u("errors.hint-in-window",{window:u(I.windowKey)}):u("errors.hint-latest-loaded",{count:M(P)})},void 0,!1,void 0,this),Le.jsxDEV(ie,{label:u("errors.signatures"),title:u("errors.signatures-hint"),value:M(w.groups.length),hint:w.groups[0]?u("errors.signatures-top",{count:M(w.groups[0].count)}):void 0},void 0,!1,void 0,this),Le.jsxDEV(ie,{label:u("errors.affected-models"),value:M(w.models.length),hint:w.models[0]?.model},void 0,!1,void 0,this),Le.jsxDEV(ie,{label:u("errors.last-failure"),value:w.newest?La(w.newest.timestamp):"–",hint:w.newest?bo(w.newest.timestamp):u("errors.none-in-window",{window:u(I.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),Le.jsxDEV("div",{className:"grid grid-main-side",children:[Le.jsxDEV(me,{index:1,title:u("errors.error-signatures"),description:u("errors.signatures-card-description"),flush:!0,stale:g.stale,children:Le.jsxDEV(_e,{query:g,skeleton:Le.jsxDEV(ka,{rows:8},void 0,!1,void 0,this),isEmpty:(G)=>G.length===0,empty:Le.jsxDEV(mt,{title:u("errors.empty-no-failures",{window:u(I.windowKey)}),hint:u("errors.empty-all-succeeded")},void 0,!1,void 0,this),children:()=>Le.jsxDEV(Ut,{rows:w.groups,rowKey:(G)=>G.signature,columns:ce,onRowClick:(G)=>h(T===G.signature?null:G.signature),selectedKey:T,expanded:(G)=>G.signature===T?Le.jsxDEV(CN,{group:G,onRequestClick:l},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),Le.jsxDEV(me,{index:2,title:u("errors.by-model"),description:u("errors.by-model-description"),stale:g.stale,children:Le.jsxDEV(_e,{query:g,skeleton:Le.jsxDEV(ao,{height:180},void 0,!1,void 0,this),isEmpty:(G)=>G.length===0,empty:Le.jsxDEV(mt,{title:u("errors.empty-no-affected-models")},void 0,!1,void 0,this),children:()=>Le.jsxDEV(ws,{items:w.models.slice(0,12).map((G)=>({key:G.key,label:Le.jsxDEV("span",{className:"row",style:{gap:6,minWidth:0},children:[Le.jsxDEV("span",{className:"mono truncate",children:G.model},void 0,!1,void 0,this),Le.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===R?"var(--bad)":"color-mix(in srgb, var(--bad) 45%, transparent)"})),onSelect:(G)=>m(R===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),Le.jsxDEV(me,{index:3,title:u("errors.failures"),description:g.data===null?u("errors.loading-failures"):u("errors.filtered-of-total",{shown:M(O.length),total:M(P)}),actions:Le.jsxDEV(Le.Fragment,{children:[T!==null&&Le.jsxDEV("button",{type:"button",className:"btn errors-filter","data-size":"sm",onClick:()=>h(null),title:T,children:[Le.jsxDEV("span",{className:"mono truncate",children:T},void 0,!1,void 0,this),Le.jsxDEV(To,{size:12},void 0,!1,void 0,this)]},void 0,!0,void 0,this),ee&&Le.jsxDEV("button",{type:"button",className:"btn errors-filter","data-size":"sm",onClick:()=>m(null),children:[Le.jsxDEV("span",{className:"mono truncate",children:ee.model},void 0,!1,void 0,this),Le.jsxDEV(To,{size:12},void 0,!1,void 0,this)]},void 0,!0,void 0,this),Le.jsxDEV(Hr,{value:S,onChange:C,placeholder:u("errors.search-placeholder")},void 0,!1,void 0,this)]},void 0,!0,void 0,this),flush:!0,stale:g.stale,footer:ue,children:Le.jsxDEV(_e,{query:g,skeleton:Le.jsxDEV(ka,{rows:10},void 0,!1,void 0,this),isEmpty:(G)=>G.length===0,empty:Le.jsxDEV(mt,{title:u("errors.empty-no-failures",{window:u(I.windowKey)})},void 0,!1,void 0,this),children:()=>Le.jsxDEV(Ut,{rows:O,rowKey:(G)=>G.id??`${G.sessionFile}:${G.entryId}`,onRowClick:(G)=>G.id!==void 0&&l(G.id),columns:wN(),initialSort:{key:"time",dir:"desc"},limit:50,dense:!0,empty:Le.jsxDEV(mt,{title:u("errors.no-match"),hint:u("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 LN(n){return[{key:"signature",header:u("errors.signature"),wrap:!0,sort:(i)=>i.signature,render:(i)=>Le.jsxDEV("span",{className:"errors-signature",title:i.latest.errorMessage??void 0,children:i.signature},void 0,!1,void 0,this)},{key:"models",header:u("common.models"),sort:(i)=>i.models.length,render:(i)=>Le.jsxDEV(io,{primary:Le.jsxDEV("span",{className:"mono",children:i.models[0]?.model},void 0,!1,void 0,this),secondary:i.models.length>1?u("errors.more-models",{count:M(i.models.length-1)}):i.models[0]?.provider},void 0,!1,void 0,this)},{key:"last",header:u("errors.last-seen"),sort:(i)=>i.lastSeen,render:(i)=>Le.jsxDEV("span",{className:"muted",title:bo(i.lastSeen),children:La(i.lastSeen)},void 0,!1,void 0,this)},{key:"count",header:u("errors.failures"),align:"right",width:120,sort:(i)=>i.count,render:(i)=>Le.jsxDEV(Ra,{value:i.count,max:n,display:M(i.count),color:"var(--bad)"},void 0,!1,void 0,this)}]}function CN({group:n,onRequestClick:i}){let l=n.latest.id;return Le.jsxDEV("div",{className:"errors-detail",children:[Le.jsxDEV("pre",{className:"code-block errors-detail-message",children:n.latest.errorMessage??u("errors.unknown-error")},void 0,!1,void 0,this),Le.jsxDEV("div",{className:"errors-detail-meta",children:[Le.jsxDEV("span",{className:"muted",children:u("errors.group-meta",{count:M(n.count),first:bo(n.firstSeen),last:bo(n.lastSeen)})},void 0,!1,void 0,this),l!==void 0&&Le.jsxDEV("button",{type:"button",className:"btn","data-size":"sm",onClick:()=>i(l),children:[u("errors.open-latest")," ",Le.jsxDEV(nf,{size:13},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),Le.jsxDEV("div",{className:"errors-detail-models",children:n.models.map((c)=>Le.jsxDEV("span",{className:"badge","data-mono":"true",children:[c.model," ",Le.jsxDEV("span",{className:"dim",children:c.provider},void 0,!1,void 0,this)," ",Le.jsxDEV("span",{className:"num",children:se(c.count)},void 0,!1,void 0,this)]},Ha(c.model,c.provider),!0,void 0,this))},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function wN(){return[{key:"time",header:u("errors.when"),width:120,sort:(n)=>n.timestamp,render:(n)=>Le.jsxDEV("span",{className:"muted",title:bo(n.timestamp),children:La(n.timestamp)},void 0,!1,void 0,this)},{key:"model",header:u("common.model"),sort:(n)=>n.model,render:(n)=>Le.jsxDEV(io,{primary:Le.jsxDEV("span",{className:"mono",children:n.model},void 0,!1,void 0,this),secondary:n.provider},void 0,!1,void 0,this)},{key:"error",header:u("common.error"),sort:(n)=>n.errorMessage??"",render:(n)=>Le.jsxDEV("span",{className:"errors-message",title:n.errorMessage??void 0,children:n.errorMessage??u("errors.unknown-error")},void 0,!1,void 0,this)},{key:"project",header:u("common.project"),sort:(n)=>n.folder,render:(n)=>Le.jsxDEV("span",{className:"mono muted",title:n.folder,children:zn(n.folder)},void 0,!1,void 0,this)},{key:"tokens",header:u("common.tokens"),align:"right",sort:(n)=>n.usage.totalTokens,render:(n)=>Le.jsxDEV("span",{className:"num",children:M(n.usage.totalTokens)},void 0,!1,void 0,this)},{key:"cost",header:u("common.cost"),title:u("errors.cost-hint"),align:"right",sort:(n)=>n.usage.cost.total,render:(n)=>Le.jsxDEV("span",{className:"num",children:ql(n,4)},void 0,!1,void 0,this)}]}var Rt=_(We(),1);var z=_(te(),1),TN=1000,sg=50,Rx=0.5,jf="*";function u2({active:n,range:i}){let[l,c]=Rt.useState(!1),f=Ft(["frustration",i],({signal:x})=>oI(i,x),{enabled:n,pollMs:l?TN:void 0}),y=ea(i),g=f.data?.job.state;Rt.useEffect(()=>{if(g!==void 0)c(g==="running")},[g]);let{refetch:v}=f,h=Rt.useCallback(()=>{c(!0),v()},[v]);return z.jsxDEV("div",{className:"page",children:[z.jsxDEV(ha,{title:u("frustration.title"),description:u("frustration.description",{window:u(y.windowKey)})},void 0,!1,void 0,this),z.jsxDEV(_e,{query:f,skeleton:z.jsxDEV(Et,{height:96},void 0,!1,void 0,this),children:(x)=>z.jsxDEV("div",{"data-stale":f.stale,children:z.jsxDEV(IN,{overall:x.overall},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this),z.jsxDEV(_e,{query:f,skeleton:z.jsxDEV(Et,{height:120},void 0,!1,void 0,this),children:(x)=>z.jsxDEV(RN,{active:n,range:i,judgeAvailable:x.judgeAvailable,job:x.job,onRunStarted:h,onRunChanged:v},void 0,!1,void 0,this)},void 0,!1,void 0,this),z.jsxDEV(_e,{query:f,skeleton:z.jsxDEV(me,{index:2,title:u("frustration.by-model"),children:[z.jsxDEV(Et,{height:340},void 0,!1,void 0,this),z.jsxDEV(ka,{rows:6},void 0,!1,void 0,this)]},void 0,!0,void 0,this),children:(x)=>z.jsxDEV(zN,{models:x.byModel,stale:f.stale},void 0,!1,void 0,this)},void 0,!1,void 0,this),z.jsxDEV(_e,{query:f,skeleton:z.jsxDEV(Et,{height:96},void 0,!1,void 0,this),children:(x)=>z.jsxDEV("div",{className:"frustration-model-summary","data-stale":f.stale,children:z.jsxDEV(HN,{overall:x.modelSide.overall,window:u(y.windowKey)},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this),z.jsxDEV(_e,{query:f,skeleton:z.jsxDEV(me,{index:4,title:u("frustration.model-by-model"),children:[z.jsxDEV(Et,{height:300},void 0,!1,void 0,this),z.jsxDEV(ka,{rows:5},void 0,!1,void 0,this)]},void 0,!0,void 0,this),children:(x)=>z.jsxDEV(FN,{models:x.modelSide.byModel,series:x.modelSide.series,range:i,stale:f.stale},void 0,!1,void 0,this)},void 0,!1,void 0,this),z.jsxDEV(_e,{query:f,skeleton:z.jsxDEV(me,{index:7,title:u("frustration.model-sessions"),children:z.jsxDEV(ka,{rows:5},void 0,!1,void 0,this)},void 0,!1,void 0,this),children:(x)=>z.jsxDEV(VN,{sessions:x.modelSide.bySession,stale:f.stale},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function Ma(n,i){return i>0?Fe(n/i):"–"}function Ix(n){return n instanceof Error?n.message:String(n)}function d2(n){let i=Math.max(0,Math.floor(n/1000)),l=Math.floor(i/60),c=i%60;return l>0?`${l}m ${String(c).padStart(2,"0")}s`:`${c}s`}function IN({overall:n}){let i=n.messages-n.judged,l=n.unscored>0?u("frustration.coverage-unscored",{count:M(n.unscored)}):"";return z.jsxDEV(z.Fragment,{children:[z.jsxDEV(Sa,{min:170,children:[z.jsxDEV(ie,{label:u("frustration.user-messages"),title:u("frustration.user-messages-title"),value:M(n.messages)},void 0,!1,void 0,this),z.jsxDEV(ie,{label:u("frustration.judge-coverage"),title:u("frustration.judge-coverage-title"),value:Ma(n.judged,n.messages),hint:`${u("frustration.coverage-hint",{judged:M(n.judged),regex:M(i)})}${l}`},void 0,!1,void 0,this),z.jsxDEV(ie,{label:u("frustration.annoyed"),title:u("frustration.annoyed-title"),value:Ma(n.annoyed,n.messages),hint:u("frustration.messages-n",{count:M(n.annoyed)})},void 0,!1,void 0,this),z.jsxDEV(ie,{label:u("frustration.at-assistant"),title:u("frustration.at-assistant-title"),value:Ma(n.atAssistant,n.messages),hint:u("frustration.messages-n",{count:M(n.atAssistant)})},void 0,!1,void 0,this),z.jsxDEV(ie,{label:u("frustration.angry"),title:u("frustration.angry-title"),value:Ma(n.angry,n.messages),hint:u("frustration.messages-n",{count:M(n.angry)})},void 0,!1,void 0,this)]},void 0,!0,void 0,this),n.unscored>0&&z.jsxDEV("p",{className:"micro dim",children:u("frustration.unscored-line",{count:M(n.unscored)})},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}var i2="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 RN({active:n,range:i,judgeAvailable:l,job:c,onRunStarted:f,onRunChanged:y}){let[g,v]=Rt.useState(!1),[h,x]=Rt.useState({status:"loading"}),[m,S]=Rt.useState(!1),[C,I]=Rt.useState(null),[w,T]=Rt.useState(!1),[R,O]=Rt.useState(null),P=Rt.useRef(null),j=c.state==="running",Q=Rt.useCallback(()=>{P.current?.abort(),P.current=null,v(!1)},[]);Rt.useEffect(()=>{if(!n)Q()},[n,Q]),Rt.useEffect(()=>()=>P.current?.abort(),[]);let ue=()=>{P.current?.abort();let V=new AbortController;P.current=V;let Ie=i;x({status:"loading"}),I(null),O(null),v(!0),nI(Ie,V.signal).then((fe)=>{if(!V.signal.aborted)x({status:"ready",estimate:fe,range:Ie})},(fe)=>{if(!V.signal.aborted)x({status:"error",message:Ix(fe)})})},Z=async()=>{if(h.status!=="ready")return;S(!0),I(null);try{await rI(h.range),Q(),f()}catch(V){I(Ix(V))}finally{S(!1)}},ce=async()=>{T(!0),O(null);try{await sI(),y()}catch(V){O(Ix(V))}finally{T(!1)}},ee=h.status==="ready"?h.estimate:null,G=h.status==="loading"?{label:"Proceed",onClick:Z,disabled:!0}:ee?.available?{label:m?"Starting…":"Proceed",onClick:Z,disabled:m||ee.messages===0}:void 0;return z.jsxDEV(me,{index:1,title:z.jsxDEV(z.Fragment,{children:[u("frustration.judge-panel")," ",z.jsxDEV(MN,{job:c,judgeAvailable:l},void 0,!1,void 0,this)]},void 0,!0,void 0,this),description:u("frustration.judge-description"),actions:z.jsxDEV("button",{type:"button",className:"btn","data-variant":"accent","data-size":"sm",onClick:ue,disabled:!l||j,title:!l?i2:j?u("frustration.judge-running"):u("frustration.quote-title"),children:[z.jsxDEV(zr,{size:13},void 0,!1,void 0,this)," ",u("frustration.classify")]},void 0,!0,void 0,this),children:[z.jsxDEV("div",{className:"stack frustration-judge",children:[j?z.jsxDEV(DN,{job:c,cancelling:w,onCancel:ce},void 0,!1,void 0,this):z.jsxDEV(EN,{job:c},void 0,!1,void 0,this),!l&&z.jsxDEV("p",{className:"micro dim",children:i2},void 0,!1,void 0,this),R&&z.jsxDEV("p",{className:"micro tone-bad",role:"alert",children:R},void 0,!1,void 0,this)]},void 0,!0,void 0,this),z.jsxDEV(CI,{open:g,title:u("frustration.classify"),onClose:Q,primaryAction:G,children:[z.jsxDEV(AN,{estimate:h},void 0,!1,void 0,this),C&&z.jsxDEV("p",{className:"micro tone-bad",role:"alert",children:C},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)}function MN({job:n,judgeAvailable:i}){switch(n.state){case"running":return z.jsxDEV(yt,{tone:"ok",children:[z.jsxDEV(_r,{tone:"live",pulse:!0},void 0,!1,void 0,this)," ",u("frustration.running")]},void 0,!0,void 0,this);case"done":return z.jsxDEV(yt,{tone:"ok",children:u("frustration.last-run-done")},void 0,!1,void 0,this);case"cancelled":return z.jsxDEV(yt,{tone:"warn",children:u("frustration.last-run-cancelled")},void 0,!1,void 0,this);case"failed":return z.jsxDEV(yt,{tone:"bad",children:u("frustration.last-run-failed")},void 0,!1,void 0,this);case"idle":return z.jsxDEV(yt,{children:i?u("frustration.not-run-yet"):u("frustration.regex-only")},void 0,!1,void 0,this)}}function AN({estimate:n}){if(n.status==="loading")return z.jsxDEV("p",{className:"muted",children:u("frustration.estimating")},void 0,!1,void 0,this);if(n.status==="error")return z.jsxDEV("p",{className:"tone-bad",children:n.message},void 0,!1,void 0,this);let i=n.estimate;if(!i.available)return z.jsxDEV("p",{children:i.reason},void 0,!1,void 0,this);if(i.messages===0)return z.jsxDEV("p",{children:u("frustration.all-judged")},void 0,!1,void 0,this);return z.jsxDEV(z.Fragment,{children:[z.jsxDEV("div",{className:"frustration-quote",children:[z.jsxDEV("span",{className:"dim micro",children:u("frustration.estimated-cost")},void 0,!1,void 0,this),z.jsxDEV("span",{className:"num frustration-quote-value",children:["≈ ",Ot(i.cost)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),z.jsxDEV(Po,{items:[{key:"messages",label:u("frustration.unjudged-messages"),value:M(i.messages)},{key:"chars",label:u("frustration.prose-chars"),value:M(i.chars)},{key:"tokens",label:u("frustration.input-tokens"),value:M(i.inputTokens)},{key:"judge",label:u("frustration.judge-model"),value:i.judge}]},void 0,!1,void 0,this),z.jsxDEV("p",{className:"micro dim",children:u("frustration.estimate-note")},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function DN({job:n,cancelling:i,onCancel:l}){let c=n.done+n.failed,f=n.total>0?Math.min(1,c/n.total):0;return z.jsxDEV("div",{className:"stack frustration-progress",children:[z.jsxDEV("div",{className:"row frustration-progress-head",children:[z.jsxDEV("span",{className:"num",children:[M(n.done),"/",M(n.total)," judged"]},void 0,!0,void 0,this),z.jsxDEV("span",{className:"num dim",children:Fe(f)},void 0,!1,void 0,this),z.jsxDEV("span",{className:"frustration-spacer"},void 0,!1,void 0,this),z.jsxDEV("button",{type:"button",className:"btn","data-variant":"danger","data-size":"sm",onClick:l,disabled:i,children:i?u("frustration.cancelling"):u("frustration.cancel-run")},void 0,!1,void 0,this)]},void 0,!0,void 0,this),z.jsxDEV("div",{className:"meter frustration-progress-track",role:"progressbar","aria-valuemin":0,"aria-valuemax":n.total,"aria-valuenow":c,children:z.jsxDEV("div",{className:"meter-fill frustration-progress-fill",style:{width:`${f*100}%`}},void 0,!1,void 0,this)},void 0,!1,void 0,this),z.jsxDEV("div",{className:"row micro muted frustration-progress-meta",children:[z.jsxDEV("span",{className:n.failed>0?"tone-bad":void 0,children:u("frustration.failed-n",{count:M(n.failed)})},void 0,!1,void 0,this),z.jsxDEV("span",{children:[u("frustration.cost-so-far")," ",z.jsxDEV("span",{className:"num",children:Ot(n.cost)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),n.judge&&z.jsxDEV("span",{className:"mono",children:n.judge},void 0,!1,void 0,this),n.startedAt!==null&&z.jsxDEV("span",{children:u("frustration.elapsed",{time:d2(Date.now()-n.startedAt)})},void 0,!1,void 0,this),n.startedAt!==null&&n.done>0&&z.jsxDEV("span",{className:"num",children:[(n.done/Math.max(1,(Date.now()-n.startedAt)/1000)).toFixed(0),"/s"]},void 0,!0,void 0,this),n.concurrency>0&&z.jsxDEV("span",{className:"num",children:u("frustration.in-flight",{count:M(n.concurrency)})},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)}function EN({job:n}){let i=u("frustration.messages-progress",{done:M(n.done),total:M(n.total)}),l=n.failed>0?u("frustration.failed-suffix",{count:M(n.failed)}):"",c=n.judge?u("frustration.judge-with",{judge:n.judge}):"",f=n.startedAt!==null&&n.finishedAt!==null?u("frustration.in-time",{time:d2(n.finishedAt-n.startedAt)}):"";switch(n.state){case"idle":return z.jsxDEV("p",{className:"muted",children:u("frustration.no-run-yet")},void 0,!1,void 0,this);case"running":return null;case"done":return z.jsxDEV("p",{className:"muted",children:u("frustration.run-done-line",{progress:i,failed:l,judge:c,elapsed:f,cost:Ot(n.cost)})},void 0,!1,void 0,this);case"cancelled":return z.jsxDEV("p",{className:"muted",children:u("frustration.run-cancelled-line",{progress:i,failed:l,cost:Ot(n.cost)})},void 0,!1,void 0,this);case"failed":return z.jsxDEV("p",{className:"muted",children:u("frustration.run-failed-line",{progress:i,failed:l,error:n.error??u("frustration.unknown-error"),cost:Ot(n.cost)})},void 0,!1,void 0,this)}}function Ui(n){return`${n.modelClass}/${n.family??"unclassified"}`}function id(n){return n.messages>0&&n.judged/n.messages<Rx}function NN(n){let i=2166136261;for(let l=0;l<n.length;l++)i^=n.charCodeAt(l),i=Math.imul(i,16777619);return i>>>0}function c2(n){let i=[...new Set(n.map(Ui))].sort(),l=new Set,c=new Map;for(let f of i){let y=NN(f)%Qa.length;for(let g=0;g<Qa.length&&l.has(y);g++)y=(y+1)%Qa.length;l.add(y),c.set(f,Qa[y])}return c}function qN(n,i){if(i==="angry")return`color-mix(in srgb, ${n} 55%, black)`;if(i==="other")return`color-mix(in srgb, ${n} 32%, transparent)`;return n}var ON=[{key:"angry",label:"Angry at assistant"},{key:"assistant",label:"At assistant, not angry"},{key:"other",label:"Annoyed at other targets"}];function BN(n,i){if(i==="angry")return n.angry;if(i==="assistant")return n.atAssistant-n.angry;return n.annoyed-n.atAssistant}function $f(n,i){return i>0?n/i*100:0}function zN({models:n,stale:i}){let[l,c]=Rt.useState(null),[f,y]=Pn(),[g,v]=Rt.useState(!1),[h,x]=Rt.useState(!1),m=Rt.useMemo(()=>c2(n),[n]),S=Rt.useMemo(()=>{let Z=new Map;for(let ce of n)Z.set(ce.modelClass,(Z.get(ce.modelClass)??0)+ce.messages);return Z},[n]),C=Rt.useMemo(()=>{let Z=null,ce=-1;for(let[ee,G]of S)if(G>ce)Z=ee,ce=G;return Z??jf},[S]),I=l!==null&&(l===jf||S.has(l))?l:C,w=Rt.useMemo(()=>[{value:jf,label:"All",title:"Every model class"},...[...S].map(([Z,ce])=>({value:Z,label:Z,title:`${M(ce)} messages`}))],[S]),T=Rt.useMemo(()=>I===jf?n:n.filter((Z)=>Z.modelClass===I),[n,I]),R=Rt.useMemo(()=>{let Z=new Map;for(let ce of T){let ee=Ui(ce),G=Z.get(ee);if(G){G.messages+=ce.messages;continue}let V=ce.family??"unclassified";Z.set(ee,{key:ee,label:I===jf?`${ce.modelClass} · ${V}`:V,messages:ce.messages})}return[...Z.values()]},[T,I]),O=Rt.useMemo(()=>T.filter((Z)=>!f.has(Ui(Z))),[T,f]),P=O.filter((Z)=>Z.messages<sg).length,j=O.filter(id).length,Q=Rt.useMemo(()=>O.filter((Z)=>(g||Z.messages>=sg)&&!(h&&id(Z))),[O,g,h]);if(n.length===0)return z.jsxDEV(me,{index:2,title:u("frustration.by-model"),stale:i,children:z.jsxDEV(mt,{title:u("frustration.no-messages"),hint:u("frustration.try-longer-range")},void 0,!1,void 0,this)},void 0,!1,void 0,this);let ue=Q.some(id);return z.jsxDEV(z.Fragment,{children:[z.jsxDEV(me,{index:2,title:u("frustration.by-model"),description:u("frustration.by-model-description"),stale:i,children:z.jsxDEV("div",{className:"stack frustration-chart-body",children:[z.jsxDEV("div",{className:"frustration-classes",children:z.jsxDEV(qa,{size:"sm","aria-label":u("frustration.model-class"),options:w,value:I,onChange:c},void 0,!1,void 0,this)},void 0,!1,void 0,this),z.jsxDEV("div",{className:"row frustration-filters",children:[z.jsxDEV(ra,{items:R.map((Z)=>({key:Z.key,label:Z.label,color:m.get(Z.key)??Qa[0],value:M(Z.messages)})),hidden:f,onToggle:y},void 0,!1,void 0,this),z.jsxDEV("span",{className:"frustration-spacer"},void 0,!1,void 0,this),z.jsxDEV("label",{className:"check",title:u("frustration.small-models-title",{count:sg}),children:[z.jsxDEV("input",{type:"checkbox",checked:g,onChange:(Z)=>v(Z.target.checked)},void 0,!1,void 0,this),u("frustration.include-small",{count:sg}),P>0?` (${P})`:""]},void 0,!0,void 0,this),z.jsxDEV("label",{className:"check",title:u("frustration.hide-regex-title",{share:Rx*100}),children:[z.jsxDEV("input",{type:"checkbox",checked:h,onChange:(Z)=>x(Z.target.checked)},void 0,!1,void 0,this),"Hide mostly regex",j>0?` (${j})`:""]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),z.jsxDEV(PN,{hasRegexRows:ue},void 0,!1,void 0,this),z.jsxDEV(UN,{rows:Q,familyColors:m},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this),z.jsxDEV(_N,{rows:Q,familyColors:m,stale:i},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function PN({hasRegexRows:n}){return z.jsxDEV("div",{className:"legend frustration-key",children:[z.jsxDEV("span",{className:"legend-item",children:[z.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),z.jsxDEV("span",{className:"legend-item",children:[z.jsxDEV("span",{className:"swatch frustration-key-swatch","data-variant":"assistant"},void 0,!1,void 0,this),"At assistant"]},void 0,!0,void 0,this),z.jsxDEV("span",{className:"legend-item",children:[z.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),z.jsxDEV("span",{className:"legend-item",children:[z.jsxDEV("span",{className:"frustration-key-line"},void 0,!1,void 0,this),u("frustration.legend-trend")]},void 0,!0,void 0,this),z.jsxDEV("span",{className:"legend-item frustration-key-wide",title:u("frustration.hatch-title",{share:Rx*100}),children:[z.jsxDEV("span",{className:"swatch frustration-key-swatch","data-variant":"hatch"},void 0,!1,void 0,this),n?u("frustration.legend-hatched-run"):u("frustration.legend-hatched")]},void 0,!0,void 0,this),z.jsxDEV("span",{className:"legend-item dim",children:u("frustration.legend-hue")},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function UN({rows:n,familyColors:i}){let l=Rt.useMemo(()=>{let c=new Map;n.forEach((y,g)=>{let v=Ui(y),h=id(y),x=`${v}|${h?"regex":"judged"}`,m=c.get(x);if(m)m.slots.push(g);else c.set(x,{family:v,regex:h,slots:[g]})});let f=[];for(let y of ON)for(let[g,v]of c){let h=n.map(()=>null);for(let x of v.slots)h[x]=$f(BN(n[x],y.key),n[x].messages);f.push({key:`${y.key}|${g}`,label:y.label,color:qN(i.get(v.family)??Qa[0],y.key),values:h,pattern:v.regex?"hatch":void 0})}return f.push({key:"trend",label:"At assistant (total)",color:"var(--ink-1)",values:n.map((y)=>$f(y.atAssistant,y.messages)),kind:"line",tooltip:!1}),f},[n,i]);if(n.length===0)return z.jsxDEV("div",{className:"frustration-chart-empty",children:z.jsxDEV(mt,{title:u("frustration.no-model-match")},void 0,!1,void 0,this)},void 0,!1,void 0,this);return z.jsxDEV(yn,{slots:n.length,tickLabel:(c)=>n[c].label,series:l,height:340,format:(c)=>`${c}%`,formatTooltip:(c)=>`${c.toFixed(1)}%`,showTotal:!1,emptyLabel:"No frustrated messages for these models",tooltipExtra:(c)=>{let f=n[c];return z.jsxDEV("div",{className:"frustration-tooltip-extra",children:[z.jsxDEV("div",{className:"chart-tooltip-row chart-tooltip-total",children:[z.jsxDEV("span",{className:"chart-tooltip-label",children:u("frustration.legend-annoyed-any")},void 0,!1,void 0,this),z.jsxDEV("span",{className:"chart-tooltip-value",children:Ma(f.annoyed,f.messages)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),z.jsxDEV("div",{className:"micro dim",children:[M(f.messages)," messages · judged ",M(f.judged)," (",Ma(f.judged,f.messages),")",id(f)?u("frustration.row-mostly-regex"):""]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)}},void 0,!1,void 0,this)}function _N({rows:n,familyColors:i,stale:l}){let c=Rt.useMemo(()=>[{key:"model",header:u("common.model"),sort:(f)=>f.label,render:(f)=>z.jsxDEV("span",{className:"row",title:f.key,children:[z.jsxDEV("span",{className:"swatch",style:{background:i.get(Ui(f))??Qa[0]}},void 0,!1,void 0,this),z.jsxDEV("span",{className:"cell-primary",children:f.label},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},{key:"ids",header:u("frustration.column-model-ids"),wrap:!0,render:(f)=>z.jsxDEV("span",{className:"mono micro dim",children:f.models.join(", ")},void 0,!1,void 0,this)},{key:"messages",header:u("frustration.column-messages"),align:"right",sort:(f)=>f.messages,render:(f)=>z.jsxDEV("span",{className:"num",children:M(f.messages)},void 0,!1,void 0,this)},{key:"judged",header:u("frustration.column-judged"),align:"right",sort:(f)=>f.messages>0?f.judged/f.messages:0,render:(f)=>id(f)?z.jsxDEV("span",{className:"row frustration-judged",title:u("frustration.mostly-regex"),children:[z.jsxDEV(yt,{tone:"warn",children:u("frustration.regex-badge")},void 0,!1,void 0,this),z.jsxDEV("span",{className:"num dim",children:Ma(f.judged,f.messages)},void 0,!1,void 0,this)]},void 0,!0,void 0,this):z.jsxDEV("span",{className:"num",children:Ma(f.judged,f.messages)},void 0,!1,void 0,this)},{key:"annoyed",header:u("frustration.annoyed"),align:"right",sort:(f)=>$f(f.annoyed,f.messages),render:(f)=>z.jsxDEV("span",{className:"num",title:u("frustration.messages-n",{count:M(f.annoyed)}),children:Ma(f.annoyed,f.messages)},void 0,!1,void 0,this)},{key:"atAssistant",header:u("frustration.at-assistant"),align:"right",sort:(f)=>$f(f.atAssistant,f.messages),render:(f)=>z.jsxDEV("span",{className:"num",title:u("frustration.messages-n",{count:M(f.atAssistant)}),children:Ma(f.atAssistant,f.messages)},void 0,!1,void 0,this)},{key:"angry",header:u("frustration.angry"),align:"right",sort:(f)=>$f(f.angry,f.messages),render:(f)=>z.jsxDEV("span",{className:f.angry>0?"num tone-bad":"num",title:u("frustration.messages-n",{count:M(f.angry)}),children:Ma(f.angry,f.messages)},void 0,!1,void 0,this)}],[i]);return z.jsxDEV(me,{index:3,title:u("frustration.model-versions"),description:u("frustration.table-description"),flush:!0,stale:l,children:z.jsxDEV(Ut,{rows:n,rowKey:(f)=>f.key,columns:c,dense:!0,empty:z.jsxDEV(mt,{title:u("frustration.no-model-match")},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this)}function HN({overall:n,window:i}){let l=n.messages>0?(n.collapse/n.messages).toFixed(2):"–";return z.jsxDEV(z.Fragment,{children:[z.jsxDEV("div",{className:"card-titles",children:[z.jsxDEV("h2",{className:"page-title",children:u("frustration.model-side-title")},void 0,!1,void 0,this),z.jsxDEV("p",{className:"page-description",children:u("frustration.model-side-description",{window:i})},void 0,!1,void 0,this)]},void 0,!0,void 0,this),z.jsxDEV("div",{className:"frustration-model-notes",children:[z.jsxDEV(Sa,{min:170,children:[z.jsxDEV(ie,{label:u("frustration.model-turns"),title:u("frustration.model-turns-title"),value:M(n.messages)},void 0,!1,void 0,this),z.jsxDEV(ie,{label:u("frustration.model-breakdown"),title:u("frustration.model-breakdown-title"),value:Ma(n.breakdown,n.messages),hint:u("frustration.turns-n",{count:M(n.breakdown)})},void 0,!1,void 0,this),z.jsxDEV(ie,{label:u("frustration.model-mean"),title:u("frustration.model-mean-title"),value:l,hint:u("frustration.model-hint-mean",{value:l})},void 0,!1,void 0,this),z.jsxDEV(ie,{label:u("frustration.model-self-blame"),title:u("frustration.model-self-blame-title"),value:Ma(n.blamed,n.messages)},void 0,!1,void 0,this),z.jsxDEV(ie,{label:u("frustration.model-hedge"),title:u("frustration.model-hedge-title"),value:Ma(n.hedged,n.messages)},void 0,!1,void 0,this),z.jsxDEV(ie,{label:u("frustration.model-spiral"),title:u("frustration.model-spiral-title"),value:Ma(n.spiraled,n.messages)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),n.unscored>0&&z.jsxDEV("p",{className:"micro dim",children:u("frustration.model-unscored-line",{count:M(n.unscored)})},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)}function rr(n,i){return i>0?n/i*100:0}function FN({models:n,series:i,range:l,stale:c}){let f=ea(l),y=Rt.useMemo(()=>c2(n),[n]),g=Rt.useMemo(()=>to(l,i.map((m)=>m.timestamp),f.bucketMs),[i,l,f.bucketMs]),v=Rt.useMemo(()=>new Map(i.map((m)=>[m.timestamp,m])),[i]),h=Rt.useMemo(()=>[{key:"breakdown",label:u("frustration.model-legend-breakdown"),color:"var(--chart-primary)",values:g.map((m)=>{let S=v.get(m);return S&&S.messages>0?rr(S.breakdown,S.messages):null})}],[g,v]),x=Rt.useMemo(()=>[...n].sort((m,S)=>rr(S.breakdown,S.messages)-rr(m.breakdown,m.messages)||S.messages-m.messages).slice(0,12),[n]);if(n.length===0)return z.jsxDEV(me,{index:4,title:u("frustration.model-by-model"),stale:c,children:z.jsxDEV(mt,{title:u("frustration.model-no-turns"),hint:u("frustration.model-try-longer-range")},void 0,!1,void 0,this)},void 0,!1,void 0,this);return z.jsxDEV(z.Fragment,{children:[z.jsxDEV(me,{index:4,title:u("frustration.model-by-model"),description:u("frustration.model-by-model-description"),stale:c,children:z.jsxDEV(ws,{max:100,items:x.map((m)=>({key:m.key,label:m.label,value:rr(m.breakdown,m.messages),display:Ma(m.breakdown,m.messages),color:y.get(Ui(m))??Qa[0]}))},void 0,!1,void 0,this)},void 0,!1,void 0,this),z.jsxDEV(me,{index:5,title:u("frustration.model-over-time"),description:u("frustration.model-over-time-description"),actions:z.jsxDEV(ra,{items:h.map((m)=>({key:m.key,label:m.label,color:m.color}))},void 0,!1,void 0,this),stale:c,children:z.jsxDEV(Uo,{buckets:g,bucketMs:f.bucketMs,series:h,height:260,yMax:100,format:(m)=>`${m}%`,formatTooltip:(m)=>`${m.toFixed(1)}%`,emptyLabel:u("frustration.model-no-turns")},void 0,!1,void 0,this)},void 0,!1,void 0,this),z.jsxDEV(GN,{rows:n,familyColors:y,stale:c},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function GN({rows:n,familyColors:i,stale:l}){let c=Rt.useMemo(()=>[{key:"model",header:u("common.model"),sort:(f)=>f.label,render:(f)=>z.jsxDEV("span",{className:"row",title:f.key,children:[z.jsxDEV("span",{className:"swatch",style:{background:i.get(Ui(f))??Qa[0]}},void 0,!1,void 0,this),z.jsxDEV("span",{className:"cell-primary",children:f.label},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},{key:"ids",header:u("frustration.column-model-ids"),wrap:!0,render:(f)=>z.jsxDEV("span",{className:"mono micro dim",children:f.models.join(", ")},void 0,!1,void 0,this)},{key:"turns",header:u("frustration.column-turns"),align:"right",sort:(f)=>f.messages,render:(f)=>z.jsxDEV("span",{className:"num",children:M(f.messages)},void 0,!1,void 0,this)},{key:"selfBlame",header:u("frustration.model-self-blame"),align:"right",sort:(f)=>rr(f.blamed,f.messages),render:(f)=>z.jsxDEV("span",{className:"num",title:u("frustration.turns-n",{count:M(f.blamed)}),children:Ma(f.blamed,f.messages)},void 0,!1,void 0,this)},{key:"restatement",header:u("frustration.model-restatement"),title:u("frustration.model-restatement-title"),align:"right",sort:(f)=>rr(f.restated,f.messages),render:(f)=>z.jsxDEV("span",{className:"num",title:u("frustration.turns-n",{count:M(f.restated)}),children:Ma(f.restated,f.messages)},void 0,!1,void 0,this)},{key:"hedge",header:u("frustration.model-hedge"),align:"right",sort:(f)=>rr(f.hedged,f.messages),render:(f)=>z.jsxDEV("span",{className:"num",title:u("frustration.turns-n",{count:M(f.hedged)}),children:Ma(f.hedged,f.messages)},void 0,!1,void 0,this)},{key:"rambling",header:u("frustration.model-rambling"),title:u("frustration.model-rambling-title"),align:"right",sort:(f)=>rr(f.verbose,f.messages),render:(f)=>z.jsxDEV("span",{className:"num",title:u("frustration.turns-n",{count:M(f.verbose)}),children:Ma(f.verbose,f.messages)},void 0,!1,void 0,this)},{key:"spiral",header:u("frustration.model-spiral"),align:"right",sort:(f)=>rr(f.spiraled,f.messages),render:(f)=>z.jsxDEV("span",{className:"num",title:u("frustration.turns-n",{count:M(f.spiraled)}),children:Ma(f.spiraled,f.messages)},void 0,!1,void 0,this)},{key:"breakdown",header:u("frustration.model-breakdown"),align:"right",sort:(f)=>rr(f.breakdown,f.messages),render:(f)=>z.jsxDEV("span",{className:"num",title:u("frustration.turns-n",{count:M(f.breakdown)}),children:Ma(f.breakdown,f.messages)},void 0,!1,void 0,this)},{key:"mean",header:u("frustration.column-mean"),align:"right",sort:(f)=>f.messages>0?f.collapse/f.messages:0,render:(f)=>z.jsxDEV("span",{className:"num",children:f.messages>0?(f.collapse/f.messages).toFixed(2):"–"},void 0,!1,void 0,this)}],[i]);return z.jsxDEV(me,{index:6,title:u("frustration.model-table-title"),description:u("frustration.model-table-description"),flush:!0,stale:l,children:z.jsxDEV(Ut,{rows:n,rowKey:(f)=>f.key,columns:c,dense:!0,empty:z.jsxDEV(mt,{title:u("frustration.model-no-turns")},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this)}function VN({sessions:n,stale:i}){let l=Rt.useMemo(()=>[{key:"session",header:u("frustration.column-session"),render:(c)=>z.jsxDEV("span",{className:"stack",title:c.sessionFile,children:[z.jsxDEV("span",{className:"cell-primary mono micro",children:c.sessionFile.split(/[\\/]/).pop()??c.sessionFile},void 0,!1,void 0,this),z.jsxDEV("span",{className:"micro dim truncate",children:c.folder},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},{key:"models",header:u("common.model"),wrap:!0,render:(c)=>z.jsxDEV("span",{className:"mono micro dim",children:c.models.join(", ")},void 0,!1,void 0,this)},{key:"turns",header:u("frustration.column-turns"),align:"right",sort:(c)=>c.messages,render:(c)=>z.jsxDEV("span",{className:"num",children:M(c.messages)},void 0,!1,void 0,this)},{key:"breakdown",header:u("frustration.model-breakdown"),align:"right",sort:(c)=>rr(c.breakdown,c.messages),render:(c)=>z.jsxDEV("span",{className:"num",title:u("frustration.turns-n",{count:M(c.breakdown)}),children:Ma(c.breakdown,c.messages)},void 0,!1,void 0,this)},{key:"mean",header:u("frustration.column-mean"),align:"right",sort:(c)=>c.messages>0?c.collapse/c.messages:0,render:(c)=>z.jsxDEV("span",{className:"num",children:c.messages>0?(c.collapse/c.messages).toFixed(2):"–"},void 0,!1,void 0,this)},{key:"toolErrors",header:u("frustration.column-tool-errors"),align:"right",sort:(c)=>c.toolErrors,render:(c)=>z.jsxDEV("span",{className:c.toolErrors>0?"num tone-bad":"num",children:M(c.toolErrors)},void 0,!1,void 0,this)}],[]);return z.jsxDEV(me,{index:7,title:u("frustration.model-sessions"),description:u("frustration.model-sessions-description"),flush:!0,stale:i,children:z.jsxDEV(Ut,{rows:n,rowKey:(c)=>c.sessionFile,columns:l,dense:!0,empty:z.jsxDEV(mt,{title:u("frustration.model-no-turns")},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this)}var Xf=_(We(),1);var jt=_(te(),1),jN=86400000,$N={snapcompact:"Snapcompact"};function f2({active:n,range:i}){let[l,c]=Xf.useState(null),f=Ft(["gain",i,l],({signal:C})=>iI(i,l,C),{enabled:n}),y=ea(i),g=f.data,v=Xf.useMemo(()=>{let C=(g?.timeSeries??[]).map((O)=>({...O,timestamp:Date.parse(`${O.date}T00:00:00Z`)})),I=to(i,C.map((O)=>O.timestamp),jN),w=da(C,I,(O)=>O.snapcompact),T=0,R=w.map((O)=>T+=O);return{buckets:I,daily:w,cumulative:R}},[g,i]),h=Xf.useMemo(()=>{if(!g)return[];let C=g.overall.savedTokens;return Object.keys(g.bySource).map((I)=>({...g.bySource[I],source:I,share:C>0?g.bySource[I].savedTokens/C:0}))},[g]),x=g?.projects??[],m=l!==null&&!x.includes(l)?[l,...x]:x,S=[{key:"daily",label:u("gain.saved-per-day"),color:"var(--chart-primary)",values:v.daily},{key:"cumulative",label:u("gain.cumulative"),color:"var(--chart-secondary)",values:v.cumulative,kind:"line",axis:"right"}];return jt.jsxDEV("div",{className:"page",children:[jt.jsxDEV(ha,{title:u("gain.title"),description:l?u("gain.description-scoped",{project:l,window:u(y.windowKey)}):u("gain.description",{window:u(y.windowKey)}),actions:m.length>0&&jt.jsxDEV("select",{className:"input","aria-label":u("common.project"),value:l??"",onChange:(C)=>c(C.target.value||null),style:{maxWidth:320},children:[jt.jsxDEV("option",{value:"",children:u("gain.all-projects")},void 0,!1,void 0,this),m.map((C)=>jt.jsxDEV("option",{value:C,children:C},C,!1,void 0,this))]},void 0,!0,void 0,this)},void 0,!1,void 0,this),jt.jsxDEV(_e,{query:f,skeleton:jt.jsxDEV(Et,{height:96},void 0,!1,void 0,this),isEmpty:(C)=>C.overall.hits===0&&C.timeSeries.length===0,empty:jt.jsxDEV(me,{children:jt.jsxDEV(mt,{title:l?u("gain.empty-title-scoped",{project:l,window:u(y.windowKey)}):u("gain.empty-title",{window:u(y.windowKey)}),hint:i==="all"?u("gain.empty-hint-all"):u("gain.empty-hint-longer-range")},void 0,!1,void 0,this)},void 0,!1,void 0,this),children:({overall:C})=>jt.jsxDEV(jt.Fragment,{children:[jt.jsxDEV("div",{"data-stale":f.stale,children:jt.jsxDEV(Sa,{min:180,children:[jt.jsxDEV(ie,{label:u("gain.saved-tokens"),value:se(C.savedTokens),hint:M(C.savedTokens),spark:v.daily},void 0,!1,void 0,this),jt.jsxDEV(ie,{label:u("gain.saved-bytes"),value:gx(C.savedBytes)},void 0,!1,void 0,this),jt.jsxDEV(ie,{label:u("gain.reduction"),title:u("gain.reduction-title"),value:C.reductionPercent!==null?Fe(C.reductionPercent):"–",hint:C.reductionPercent===null?u("gain.reduction-unknown"):void 0},void 0,!1,void 0,this),jt.jsxDEV(ie,{label:u("gain.hits"),value:M(C.hits)},void 0,!1,void 0,this),jt.jsxDEV(ie,{label:u("gain.saved-per-hit"),value:C.hits>0?se(C.savedTokens/C.hits):"–",hint:u("common.tokens")},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this),jt.jsxDEV(me,{index:1,title:u("gain.savings-over-time"),description:u("gain.savings-over-time-description"),actions:jt.jsxDEV(ra,{items:S.map((I)=>({key:I.key,label:I.label,color:I.color}))},void 0,!1,void 0,this),stale:f.stale,children:jt.jsxDEV(yn,{slots:v.buckets.length,tickLabel:(I)=>Pf(v.buckets[I]),series:S,height:260,formatTooltip:M,formatRight:se},void 0,!1,void 0,this)},void 0,!1,void 0,this),jt.jsxDEV(me,{index:2,title:u("gain.by-source"),description:u("gain.by-source-description"),flush:!0,stale:f.stale,children:jt.jsxDEV(Ut,{rows:h,rowKey:(I)=>I.source,columns:XN()},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)}function XN(){return[{key:"source",header:u("gain.source"),sort:(n)=>n.source,render:(n)=>jt.jsxDEV("span",{className:"cell-primary",children:$N[n.source]},void 0,!1,void 0,this)},{key:"tokens",header:u("gain.saved-tokens"),align:"right",sort:(n)=>n.savedTokens,render:(n)=>jt.jsxDEV("span",{title:M(n.savedTokens),children:jt.jsxDEV(Ra,{value:n.share,max:1,display:se(n.savedTokens)},void 0,!1,void 0,this)},void 0,!1,void 0,this)},{key:"share",header:u("common.share"),align:"right",sort:(n)=>n.share,render:(n)=>jt.jsxDEV("span",{className:"num muted",children:Fe(n.share)},void 0,!1,void 0,this)},{key:"bytes",header:u("gain.saved-bytes"),align:"right",sort:(n)=>n.savedBytes,render:(n)=>jt.jsxDEV("span",{className:"num",children:gx(n.savedBytes)},void 0,!1,void 0,this)},{key:"hits",header:u("gain.hits"),align:"right",sort:(n)=>n.hits,render:(n)=>jt.jsxDEV("span",{className:"num",children:M(n.hits)},void 0,!1,void 0,this)},{key:"reduction",header:u("gain.reduction"),align:"right",sort:(n)=>n.reductionPercent??-1,render:(n)=>jt.jsxDEV("span",{className:"num",children:n.reductionPercent!==null?Fe(n.reductionPercent):"–"},void 0,!1,void 0,this)}]}var ud=_(We(),1);var Te=_(te(),1);function YN(){return[{value:"share",label:u("common.share")},{value:"requests",label:u("common.requests")}]}var KN=6;function m2({active:n,range:i}){let l=Ft(["models",i],({signal:T})=>QT(i,T),{enabled:n}),c=ea(i),[f,y]=ud.useState("share"),[g,v]=Pn(),[h,x]=ud.useState(null),m=ud.useMemo(()=>l.data?QN(l.data,i):null,[l.data,i]),S=eq(c.bucketMs),C=ud.useMemo(()=>m?ZN(m,h,S):[],[m,h,S]),I=(T)=>T.byModel.length===0,w=Te.jsxDEV(mt,{title:u("models.empty-title"),hint:u("models.empty-hint")},void 0,!1,void 0,this);return Te.jsxDEV("div",{className:"page",children:[Te.jsxDEV(ha,{title:u("common.models"),description:u("models.subtitle",{window:u(c.windowKey)})},void 0,!1,void 0,this),Te.jsxDEV(_e,{query:l,skeleton:Te.jsxDEV(ao,{height:112,style:{borderRadius:12}},void 0,!1,void 0,this),isEmpty:I,empty:w,children:()=>m&&Te.jsxDEV("div",{"data-stale":l.stale,children:Te.jsxDEV(Sa,{min:200,children:[Te.jsxDEV(ie,{label:u("models.used"),value:M(m.models.length),hint:m.providerCount===1?u("models.across-providers-one",{count:M(m.providerCount)}):u("models.across-providers",{count:M(m.providerCount)})},void 0,!1,void 0,this),Te.jsxDEV(ie,{label:u("models.most-used"),title:m.top?`${m.top.model} (${m.top.provider})`:void 0,value:m.top?m.top.model:"–",hint:m.top?u("models.most-used-hint",{share:Fe(m.top.totalRequests/Math.max(1,m.totalRequests)),provider:m.top.provider}):void 0},void 0,!1,void 0,this),Te.jsxDEV(ie,{label:u("common.requests"),value:M(m.totalRequests),hint:u("models.failed-n",{count:M(m.failedRequests)}),spark:m.requestTotals},void 0,!1,void 0,this),Te.jsxDEV(ie,{label:u("models.api-cost"),title:u("models.api-cost-title"),value:ta(m.totalCost,m.unpricedRequests),hint:m.unpricedRequests>0?u("models.unpriced-n",{count:M(m.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),Te.jsxDEV(me,{index:1,title:u("models.request-share"),description:f==="share"?u("models.share-desc",{bucket:S}):u("models.count-desc",{bucket:S}),actions:Te.jsxDEV(qa,{size:"sm",options:YN(),value:f,onChange:y,"aria-label":u("models.share-mode-aria")},void 0,!1,void 0,this),stale:l.stale,children:Te.jsxDEV(_e,{query:l,skeleton:Te.jsxDEV(Et,{height:260},void 0,!1,void 0,this),isEmpty:I,empty:w,children:()=>m&&Te.jsxDEV("div",{className:"stack",style:{gap:12},children:[Te.jsxDEV(Uo,{buckets:m.buckets,bucketMs:c.bucketMs,series:f==="share"?m.shareSeries:m.countSeries,hidden:g,height:260,yMax:f==="share"?1:void 0,format:f==="share"?(T)=>Fe(T,0):se,formatTooltip:f==="share"?(T)=>Fe(T):M,showTotal:f==="requests"},void 0,!1,void 0,this),Te.jsxDEV(ra,{items:m.countSeries.map((T)=>({key:T.key,label:T.label,color:T.color,value:Fe(p2(T.values)/Math.max(1,p2(m.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),Te.jsxDEV(me,{index:2,title:u("models.all-models"),description:u("models.table-desc"),stale:l.stale,flush:!0,children:Te.jsxDEV(_e,{query:l,skeleton:Te.jsxDEV(ka,{rows:8},void 0,!1,void 0,this),isEmpty:I,empty:w,children:()=>m&&Te.jsxDEV(Ut,{rows:m.models,rowKey:(T)=>Ha(T.model,T.provider),columns:C,initialSort:{key:"requests",dir:"desc"},limit:25,onRowClick:(T)=>{let R=Ha(T.model,T.provider);x((O)=>O===R?null:R)},selectedKey:h,expanded:(T)=>{let R=Ha(T.model,T.provider);return R===h?Te.jsxDEV(JN,{model:T,color:m.swatches.get(R)??"var(--chart-primary)",points:m.performance.get(R)??[],bucketMs:c.bucketMs,bucketWord:S},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 QN(n,i){let l=n.byModel,c=ng(l),f=WN(l),y=to(i,n.modelSeries.map((R)=>R.timestamp)),g=da(n.modelSeries,y,(R)=>R.requests),v={buckets:y,key:(R)=>Ha(R.model,R.provider),label:(R)=>f.get(R)??R,value:(R)=>R.requests,colors:c},h=$r(n.modelSeries,{...v,limit:KN}).map((R)=>({...R,values:R.values.map((O)=>O||null)})),x=h.map((R)=>({...R,values:R.values.map((O,P)=>O===null?null:O/g[P])})),m=new Map($r(n.modelSeries,v).map((R)=>[R.key,R.values])),S,C=0,I=0,w=0,T=0;for(let R of l){if(!S||R.totalRequests>S.totalRequests)S=R;C+=R.totalRequests,I+=R.failedRequests,w+=R.totalCost,T+=R.unpricedRequests}return{models:l,top:S,swatches:new Map(h.filter((R)=>R.key!=="__other__").map((R)=>[R.key,R.color])),labels:f,providerCount:new Set(l.map((R)=>R.provider)).size,totalRequests:C,failedRequests:I,totalCost:w,unpricedRequests:T,maxRequests:S?.totalRequests??0,buckets:y,requestTotals:g,countSeries:h,shareSeries:x,trends:m,performance:e2(n.modelPerformanceSeries)}}function WN(n){let i=new Map;for(let l of n)i.set(l.model,(i.get(l.model)??0)+1);return new Map(n.map((l)=>[Ha(l.model,l.provider),(i.get(l.model)??0)>1?`${l.model} · ${l.provider}`:l.model]))}function ZN(n,i,l){return[{key:"expand",header:"",width:28,render:(c)=>Te.jsxDEV("span",{className:"models-chevron","data-open":Ha(c.model,c.provider)===i,children:Te.jsxDEV(er,{size:14},void 0,!1,void 0,this)},void 0,!1,void 0,this)},{key:"model",header:u("common.model"),sort:(c)=>c.model,render:(c)=>Te.jsxDEV(io,{lead:Te.jsxDEV(tr,{color:n.swatches.get(Ha(c.model,c.provider))??Ro},void 0,!1,void 0,this),primary:Te.jsxDEV("span",{className:"mono",children:c.model},void 0,!1,void 0,this),secondary:c.provider},void 0,!1,void 0,this)},{key:"requests",header:u("common.requests"),align:"right",sort:(c)=>c.totalRequests,render:(c)=>Te.jsxDEV(Ra,{value:c.totalRequests,max:n.maxRequests,display:M(c.totalRequests),color:n.swatches.get(Ha(c.model,c.provider))??Ro},void 0,!1,void 0,this)},{key:"cost",header:u("common.cost"),title:u("models.cost-title"),align:"right",sort:(c)=>c.totalCost,render:(c)=>Te.jsxDEV("span",{className:"num",children:ta(c.totalCost,c.unpricedRequests)},void 0,!1,void 0,this)},{key:"tokens",header:u("common.tokens"),title:u("models.tokens-title"),align:"right",sort:(c)=>Ol(c),render:(c)=>{let f=Ol(c);return Te.jsxDEV("span",{className:"num",title:M(f),children:se(f)},void 0,!1,void 0,this)}},{key:"cache",header:u("models.cache-rate"),title:u("models.cache-title"),align:"right",sort:(c)=>c.cacheRate,render:(c)=>Te.jsxDEV("span",{className:"num",children:Fe(c.cacheRate)},void 0,!1,void 0,this)},{key:"errors",header:u("models.errors"),align:"right",sort:(c)=>c.errorRate,render:(c)=>c.failedRequests===0?Te.jsxDEV("span",{className:"num dim",children:"0%"},void 0,!1,void 0,this):Te.jsxDEV("span",{title:u("models.failed-n",{count:M(c.failedRequests)}),children:Te.jsxDEV(yt,{tone:hn(c.errorRate),mono:!0,children:Io(c.errorRate)},void 0,!1,void 0,this)},void 0,!1,void 0,this)},{key:"tps",header:u("common.tokens-per-second"),title:u("models.tps-title"),align:"right",sort:(c)=>c.avgTokensPerSecond??-1,render:(c)=>Te.jsxDEV("span",{className:"num",children:Fr(c.avgTokensPerSecond)},void 0,!1,void 0,this)},{key:"ttft",header:u("models.ttft"),title:u("models.ttft-title"),align:"right",sort:(c)=>c.avgTtft??-1,render:(c)=>Te.jsxDEV("span",{className:"num",children:Ct(c.avgTtft)},void 0,!1,void 0,this)},{key:"trend",header:u("models.trend"),title:u("models.trend-title",{bucket:l}),width:112,render:(c)=>{let f=Ha(c.model,c.provider),y=n.trends.get(f);return y?Te.jsxDEV(od,{values:y.map((g)=>g??0),color:n.swatches.get(f)??Ro,width:96,height:22},void 0,!1,void 0,this):Te.jsxDEV("span",{className:"dim",children:"–"},void 0,!1,void 0,this)}}]}function JN({model:n,color:i,points:l,bucketMs:c,bucketWord:f}){let[y,g]=Pn(),v=[{key:"tps",label:u("common.tokens-per-second"),color:i,kind:l.length>1?"line":"bars",values:l.map((h)=>h.avgTokensPerSecond)},{key:"ttft",label:u("models.ttft"),color:Ro,kind:l.length>1?"line":"bars",axis:"right",dashed:!0,values:l.map((h)=>h.avgTtftSeconds)}];return Te.jsxDEV("div",{className:"models-detail",children:[Te.jsxDEV("div",{className:"models-detail-facts",children:[Te.jsxDEV("div",{children:[Te.jsxDEV("div",{className:"section-label",children:u("models.efficiency")},void 0,!1,void 0,this),Te.jsxDEV(Po,{items:[{key:"err",label:u("common.error-rate"),value:Te.jsxDEV("span",{className:`tone-${hn(n.errorRate)}`,children:[Io(n.errorRate)," ",Te.jsxDEV("span",{className:"dim",children:["(",u("models.failed-n",{count:M(n.failedRequests)}),")"]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)},{key:"cache",label:u("models.cache-rate"),value:Fe(n.cacheRate)},{key:"savings",label:u("models.cache-savings"),value:Te.jsxDEV("span",{className:n.cacheSavings<0?"tone-bad":void 0,children:Fe(n.cacheSavings)},void 0,!1,void 0,this)},{key:"premium",label:u("common.premium-requests"),value:M(Math.round(n.totalPremiumRequests*100)/100)}]},void 0,!1,void 0,this)]},void 0,!0,void 0,this),Te.jsxDEV("div",{children:[Te.jsxDEV("div",{className:"section-label",children:u("models.latency")},void 0,!1,void 0,this),Te.jsxDEV(Po,{items:[{key:"dur",label:u("models.avg-duration"),value:Ct(n.avgDuration)},{key:"ttft",label:u("models.avg-ttft"),value:Ct(n.avgTtft)},{key:"tps",label:u("common.tokens-per-second"),value:Fr(n.avgTokensPerSecond)}]},void 0,!1,void 0,this)]},void 0,!0,void 0,this),Te.jsxDEV("div",{children:[Te.jsxDEV("div",{className:"section-label",children:u("common.tokens")},void 0,!1,void 0,this),Te.jsxDEV(Po,{items:[{key:"in",label:u("models.uncached-input"),value:se(n.totalInputTokens)},{key:"cr",label:u("common.cache-read"),value:se(n.totalCacheReadTokens)},{key:"cw",label:u("common.cache-write"),value:se(n.totalCacheWriteTokens)},{key:"out",label:u("common.output"),value:se(n.totalOutputTokens)}]},void 0,!1,void 0,this)]},void 0,!0,void 0,this),Te.jsxDEV("div",{className:"micro dim",children:u("models.first-last-seen",{first:La(n.firstTimestamp),last:La(n.lastTimestamp)})},void 0,!1,void 0,this)]},void 0,!0,void 0,this),Te.jsxDEV("div",{className:"models-detail-chart",children:[Te.jsxDEV("div",{className:"row",style:{justifyContent:"space-between"},children:[Te.jsxDEV("div",{className:"section-label",style:{marginBottom:0},children:u("models.performance-per-bucket",{bucket:f})},void 0,!1,void 0,this),Te.jsxDEV(ra,{items:v.map((h)=>({key:h.key,label:h.label,color:h.color})),hidden:y,onToggle:g},void 0,!1,void 0,this)]},void 0,!0,void 0,this),l.length===0?Te.jsxDEV(mt,{title:u("models.no-samples-title"),hint:u("models.no-samples-hint")},void 0,!1,void 0,this):Te.jsxDEV(Uo,{buckets:l.map((h)=>h.timestamp),bucketMs:c,series:v,hidden:y,stacked:!1,height:240,format:se,formatTooltip:(h)=>u("models.tok-per-second",{value:Fr(h)}),formatRight:(h)=>`${Number(h.toFixed(2))}s`,tooltipExtra:(h)=>Te.jsxDEV("div",{className:"chart-tooltip-row chart-tooltip-total",children:[Te.jsxDEV("span",{className:"chart-tooltip-label",children:u("common.requests")},void 0,!1,void 0,this),Te.jsxDEV("span",{className:"chart-tooltip-value",children:M(l[h].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 eq(n){if(n<3600000)return u("models.bucket-5m");if(n<86400000)return u("models.bucket-hour");return u("models.bucket-day")}function p2(n){let i=0;for(let l of n)i+=l??0;return i}var lg=_(We(),1);var De=_(te(),1);function tq(){return[{value:"requests",label:u("common.requests")},{value:"tokens",label:u("common.tokens")},{value:"cost",label:u("common.cost")}]}var h2={main:"overview.main-agent",subagent:"overview.subagents",advisor:"overview.advisor"},g2={main:"var(--chart-primary)",subagent:"var(--chart-secondary)",advisor:"#9d7bff"};function y2(){return[{key:"input",label:u("overview.uncached-input"),color:"#5b8cff"},{key:"cacheRead",label:u("common.cache-read"),color:"var(--chart-primary)"},{key:"cacheWrite",label:u("common.cache-write"),color:"#f5b54a"},{key:"output",label:u("common.output"),color:"var(--chart-secondary)"}]}function v2({active:n,range:i,onRequestClick:l}){let c=Ft(["overview",i],({signal:m})=>KT(i,m),{enabled:n}),f=Ft(["recent-requests"],({signal:m})=>_h(12,m),{enabled:n}),[y,g]=lg.useState("requests"),v=ea(i),h=lg.useMemo(()=>{let m=c.data?.timeSeries??[],S=to(i,m.map((C)=>C.timestamp));return{buckets:S,requests:da(m,S,(C)=>C.requests-C.errors),errors:da(m,S,(C)=>C.errors),tokens:da(m,S,(C)=>C.tokens),cost:da(m,S,(C)=>C.cost),all:da(m,S,(C)=>C.requests)}},[c.data,i]),x=y==="requests"?[{key:"ok",label:u("overview.succeeded"),color:"var(--chart-primary)",values:h.requests},{key:"err",label:u("common.failed"),color:"var(--bad)",values:h.errors}]:y==="tokens"?[{key:"tokens",label:u("common.tokens"),color:"var(--chart-primary)",values:h.tokens}]:[{key:"cost",label:u("overview.api-equivalent"),color:"var(--chart-secondary)",values:h.cost}];return De.jsxDEV("div",{className:"page",children:[De.jsxDEV(ha,{title:u("overview.title"),description:u("overview.description",{window:u(v.windowKey)})},void 0,!1,void 0,this),De.jsxDEV(_e,{query:c,skeleton:De.jsxDEV(Et,{height:112},void 0,!1,void 0,this),children:({overall:m})=>De.jsxDEV("div",{"data-stale":c.stale,className:"stack",style:{gap:16},children:[De.jsxDEV(Sa,{min:190,children:[De.jsxDEV(ie,{label:u("overview.api-equivalent-cost"),title:u("overview.api-cost-title"),value:ta(m.totalCost,m.unpricedRequests),hint:m.unpricedRequests>0?u("overview.unpriced-n",{count:M(m.unpricedRequests)}):void 0,spark:h.cost,sparkColor:"var(--chart-secondary)"},void 0,!1,void 0,this),De.jsxDEV(ie,{label:u("common.requests"),value:M(m.totalRequests),hint:u("overview.failed-n",{count:M(m.failedRequests)}),spark:h.all},void 0,!1,void 0,this),De.jsxDEV(ie,{label:u("overview.conversation-tokens"),title:u("overview.tokens-title"),value:se(Ol(m)),hint:u("overview.output-n",{count:se(m.totalOutputTokens)}),spark:h.tokens},void 0,!1,void 0,this),De.jsxDEV(ie,{label:u("overview.cache-rate"),title:u("overview.cache-rate-title"),value:Fe(m.cacheRate),hint:u("overview.cache-saved",{value:Fe(m.cacheSavings)})},void 0,!1,void 0,this),De.jsxDEV(ie,{label:u("common.error-rate"),value:Io(m.errorRate),hint:u("overview.succeeded-n",{count:M(m.successfulRequests)}),spark:h.errors,sparkColor:"var(--bad)"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),De.jsxDEV(Sa,{min:140,children:[De.jsxDEV(ie,{size:"sm",label:u("overview.uncached-input"),value:se(m.totalInputTokens)},void 0,!1,void 0,this),De.jsxDEV(ie,{size:"sm",label:u("common.cache-read"),value:se(m.totalCacheReadTokens)},void 0,!1,void 0,this),De.jsxDEV(ie,{size:"sm",label:u("common.cache-write"),value:se(m.totalCacheWriteTokens)},void 0,!1,void 0,this),De.jsxDEV(ie,{size:"sm",label:u("common.output"),value:se(m.totalOutputTokens)},void 0,!1,void 0,this),De.jsxDEV(ie,{size:"sm",label:u("common.premium-requests"),value:M(Math.round(m.totalPremiumRequests*100)/100)},void 0,!1,void 0,this),De.jsxDEV(ie,{size:"sm",label:u("common.tokens-per-second"),value:Fr(m.avgTokensPerSecond)},void 0,!1,void 0,this),De.jsxDEV(ie,{size:"sm",label:u("overview.avg-latency"),value:Ct(m.avgDuration)},void 0,!1,void 0,this),De.jsxDEV(ie,{size:"sm",label:u("overview.avg-ttft"),value:Ct(m.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),De.jsxDEV("div",{className:"grid grid-main-side",children:[De.jsxDEV(me,{index:1,title:u("overview.activity"),description:v.bucketMs<3600000?u("overview.per-5m"):v.bucketMs<86400000?u("overview.per-hour"):u("overview.per-day"),actions:De.jsxDEV(qa,{size:"sm",options:tq(),value:y,onChange:g},void 0,!1,void 0,this),stale:c.stale,children:De.jsxDEV(_e,{query:c,skeleton:De.jsxDEV(Et,{height:260},void 0,!1,void 0,this),children:()=>De.jsxDEV(Uo,{buckets:h.buckets,bucketMs:v.bucketMs,series:x,height:260,format:y==="cost"?(m)=>ta(m,0):se},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this),De.jsxDEV(me,{index:2,title:u("overview.token-mix"),description:u("overview.token-mix-description"),stale:c.stale,children:De.jsxDEV(_e,{query:c,skeleton:De.jsxDEV(Et,{height:260},void 0,!1,void 0,this),children:({overall:m,byAgentType:S})=>{let C={input:m.totalInputTokens,cacheRead:m.totalCacheReadTokens,cacheWrite:m.totalCacheWriteTokens,output:m.totalOutputTokens},I=Ol(m),w=ZI(S);return De.jsxDEV("div",{className:"stack",style:{gap:18},children:[De.jsxDEV("div",{className:"stack",style:{gap:10},children:[De.jsxDEV(jr,{segments:y2().map((T)=>({key:T.key,label:T.label,value:C[T.key],color:T.color}))},void 0,!1,void 0,this),De.jsxDEV(ra,{items:y2().map((T)=>({key:T.key,label:T.label,color:T.color,value:I>0?Fe(C[T.key]/I,0):"–"}))},void 0,!1,void 0,this)]},void 0,!0,void 0,this),De.jsxDEV("div",{className:"stack",style:{gap:10},children:[De.jsxDEV("div",{className:"section-label",style:{marginBottom:0},children:u("overview.by-agent")},void 0,!1,void 0,this),De.jsxDEV(jr,{segments:w.segments.map((T)=>({key:T.agentType,label:u(h2[T.agentType]),value:T.tokens,color:g2[T.agentType]}))},void 0,!1,void 0,this),w.segments.map((T)=>De.jsxDEV("div",{className:"row",style:{justifyContent:"space-between"},children:[De.jsxDEV("span",{className:"row",children:[De.jsxDEV("span",{className:"swatch",style:{background:g2[T.agentType]}},void 0,!1,void 0,this),u(h2[T.agentType]),De.jsxDEV("span",{className:"dim num",children:u("overview.requests-short",{count:M(T.requests)})},void 0,!1,void 0,this)]},void 0,!0,void 0,this),De.jsxDEV("span",{className:"row",children:[De.jsxDEV("span",{className:"dim num",children:se(T.tokens)},void 0,!1,void 0,this),De.jsxDEV("span",{className:"num",style:{minWidth:48,textAlign:"right"},children:Fe(T.share)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},T.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),De.jsxDEV(me,{index:3,title:De.jsxDEV(De.Fragment,{children:[De.jsxDEV(_r,{tone:"live",pulse:!0},void 0,!1,void 0,this)," ",u("overview.latest-requests")]},void 0,!0,void 0,this),description:u("overview.latest-requests-description"),actions:De.jsxDEV("a",{className:"btn","data-size":"sm","data-variant":"ghost",href:`#/requests?range=${i}`,children:[u("overview.all-requests")," ",De.jsxDEV(of,{size:13},void 0,!1,void 0,this)]},void 0,!0,void 0,this),flush:!0,children:De.jsxDEV(_e,{query:f,skeleton:De.jsxDEV(ka,{rows:8},void 0,!1,void 0,this),children:(m)=>De.jsxDEV(Ut,{rows:m,rowKey:(S)=>S.id??`${S.sessionFile}:${S.entryId}`,onRowClick:(S)=>S.id!==void 0&&l(S.id),columns:aq(),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)}function aq(){return[{key:"model",header:u("common.model"),render:(n)=>De.jsxDEV(io,{primary:n.model,secondary:n.provider},void 0,!1,void 0,this)},{key:"time",header:u("overview.when"),render:(n)=>De.jsxDEV("span",{className:"muted",children:La(n.timestamp)},void 0,!1,void 0,this)},{key:"tokens",header:u("common.tokens"),align:"right",render:(n)=>De.jsxDEV("span",{className:"num",children:M(n.usage.totalTokens)},void 0,!1,void 0,this)},{key:"cost",header:u("common.cost"),align:"right",render:(n)=>De.jsxDEV("span",{className:"num",children:ql(n,4)},void 0,!1,void 0,this)},{key:"duration",header:u("common.duration"),align:"right",render:(n)=>De.jsxDEV("span",{className:"num",children:Ct(n.duration)},void 0,!1,void 0,this)},{key:"status",header:u("overview.status"),align:"right",render:(n)=>n.errorMessage?De.jsxDEV(yt,{tone:"bad",children:u("common.failed")},void 0,!1,void 0,this):De.jsxDEV(yt,{tone:"ok",children:u("overview.ok")},void 0,!1,void 0,this)}]}var sr=_(We(),1);var Ze=_(te(),1),oq=100,b2=8;function x2({active:n,range:i}){let l=Ft(["projects",i],({signal:T})=>lI(i,T),{enabled:n}),[c,f]=sr.useState(""),[y,g]=sr.useState(!0),v=sr.useDeferredValue(c.trim().toLowerCase()),h=ea(i),x=sr.useMemo(()=>t2(l.data??[]),[l.data]),m=sr.useMemo(()=>y?x.rows.filter((T)=>!T.temporary):x.rows,[x,y]),S=sr.useMemo(()=>v?m.filter((T)=>T.folder.toLowerCase().includes(v)):m,[m,v]),C=sr.useMemo(()=>({cost:[...m].sort((T,R)=>R.totalCost-T.totalCost).slice(0,b2),requests:[...m].sort((T,R)=>R.totalRequests-T.totalRequests).slice(0,b2)}),[m]),I=Ze.jsxDEV(mt,{title:u(x.rows.length===0?"projects.empty-no-folders":"projects.empty-only-temporary")},void 0,!1,void 0,this),w=sr.useMemo(()=>nq(x.maxRequests,x.maxCost),[x]);return Ze.jsxDEV("div",{className:"page",children:[Ze.jsxDEV(ha,{title:u("projects.title"),description:u("projects.description",{window:u(h.windowKey)})},void 0,!1,void 0,this),Ze.jsxDEV(_e,{query:l,skeleton:Ze.jsxDEV(Et,{height:96},void 0,!1,void 0,this),children:()=>Ze.jsxDEV("div",{"data-stale":l.stale,children:Ze.jsxDEV(Sa,{min:180,children:[Ze.jsxDEV(ie,{label:u("projects.folders"),value:M(x.rows.length),hint:x.temporaryCount>0?u("projects.temporary-n",{count:M(x.temporaryCount)}):void 0},void 0,!1,void 0,this),Ze.jsxDEV(ie,{label:u("common.requests"),value:M(x.totalRequests),hint:u("projects.failed-n",{count:M(x.failedRequests)})},void 0,!1,void 0,this),Ze.jsxDEV(ie,{label:u("projects.api-equivalent-cost"),title:u("projects.api-equivalent-cost-hint"),value:ta(x.totalCost,x.unpricedRequests),hint:x.unpricedRequests>0?u("projects.unpriced-n",{count:M(x.unpricedRequests)}):void 0},void 0,!1,void 0,this),Ze.jsxDEV(ie,{label:u("projects.conversation-tokens"),title:u("projects.conversation-tokens-hint"),value:se(x.conversationTokens)},void 0,!1,void 0,this),Ze.jsxDEV(ie,{label:u("projects.cache-rate"),title:u("projects.cache-rate-hint-all"),value:Fe(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),Ze.jsxDEV("div",{className:"grid grid-2",children:[Ze.jsxDEV(me,{index:1,title:u("projects.top-by-cost"),description:u("projects.top-by-cost-description"),stale:l.stale,children:Ze.jsxDEV(_e,{query:l,skeleton:Ze.jsxDEV(Et,{height:236},void 0,!1,void 0,this),isEmpty:()=>C.cost.length===0,empty:I,children:()=>Ze.jsxDEV(ws,{items:C.cost.map((T)=>({key:T.folder,label:Ze.jsxDEV("span",{className:"mono",children:zn(T.folder)},void 0,!1,void 0,this),value:T.totalCost,display:`${ta(T.totalCost,T.unpricedRequests)} · ${Fe(T.costShare)}`,color:"var(--chart-secondary)"})),onSelect:f},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this),Ze.jsxDEV(me,{index:2,title:u("projects.top-by-requests"),description:u("projects.top-by-requests-description"),stale:l.stale,children:Ze.jsxDEV(_e,{query:l,skeleton:Ze.jsxDEV(Et,{height:236},void 0,!1,void 0,this),isEmpty:()=>C.requests.length===0,empty:I,children:()=>Ze.jsxDEV(ws,{items:C.requests.map((T)=>({key:T.folder,label:Ze.jsxDEV("span",{className:"mono",children:zn(T.folder)},void 0,!1,void 0,this),value:T.totalRequests,display:`${M(T.totalRequests)} · ${Fe(T.requestShare)}`})),onSelect:f},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),Ze.jsxDEV(me,{index:3,title:u("projects.folders"),description:l.data?S.length===x.rows.length?u("projects.folders-n",{count:M(x.rows.length)}):u("projects.folders-of-n",{count:M(S.length),total:M(x.rows.length)}):void 0,actions:Ze.jsxDEV(Ze.Fragment,{children:[x.temporaryCount>0&&Ze.jsxDEV("label",{className:"check",title:u("projects.hide-temporary-hint"),children:[Ze.jsxDEV("input",{type:"checkbox",checked:y,onChange:(T)=>g(T.target.checked)},void 0,!1,void 0,this),u("projects.hide-temporary",{count:M(x.temporaryCount)})]},void 0,!0,void 0,this),Ze.jsxDEV(Hr,{value:c,onChange:f,placeholder:u("projects.filter-placeholder"),width:240},void 0,!1,void 0,this)]},void 0,!0,void 0,this),flush:!0,stale:l.stale,children:Ze.jsxDEV(_e,{query:l,skeleton:Ze.jsxDEV(ka,{rows:10},void 0,!1,void 0,this),children:()=>Ze.jsxDEV(Ut,{rows:S,rowKey:(T)=>T.folder,columns:w,initialSort:{key:"cost",dir:"desc"},limit:oq,dense:!0,empty:Ze.jsxDEV(mt,{title:u(x.rows.length===0?"projects.empty-no-folders":"projects.empty-no-match"),hint:x.rows.length===0?u("projects.hint-longer-range"):y&&x.temporaryCount>0?u("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 nq(n,i){return[{key:"folder",header:u("projects.folder"),sort:(l)=>l.folder,render:(l)=>Ze.jsxDEV("span",{className:"row projects-folder",title:l.folder||u("common.root"),children:[Ze.jsxDEV("span",{className:"mono truncate",children:zn(l.folder)},void 0,!1,void 0,this),l.temporary&&Ze.jsxDEV(yt,{children:u("projects.temp")},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},{key:"requests",header:u("common.requests"),align:"right",sort:(l)=>l.totalRequests,render:(l)=>Ze.jsxDEV("span",{title:u("projects.share-of-requests",{share:Fe(l.requestShare)}),children:Ze.jsxDEV(Ra,{value:l.totalRequests,max:n,display:M(l.totalRequests)},void 0,!1,void 0,this)},void 0,!1,void 0,this)},{key:"cost",header:u("common.cost"),title:u("projects.api-equivalent-cost-rates"),align:"right",sort:(l)=>l.totalCost,render:(l)=>Ze.jsxDEV("span",{title:u("projects.share-of-cost",{share:Fe(l.costShare)}),children:Ze.jsxDEV(Ra,{value:l.totalCost,max:i,display:ta(l.totalCost,l.unpricedRequests),color:"var(--chart-secondary)"},void 0,!1,void 0,this)},void 0,!1,void 0,this)},{key:"tokens",header:u("common.tokens"),title:u("projects.conversation-tokens-hint"),align:"right",sort:(l)=>l.conversationTokens,render:(l)=>Ze.jsxDEV("span",{className:"num",title:M(l.conversationTokens),children:se(l.conversationTokens)},void 0,!1,void 0,this)},{key:"cacheRate",header:u("projects.cache-rate"),title:u("projects.cache-rate-hint"),align:"right",sort:(l)=>l.cacheRate,render:(l)=>Ze.jsxDEV("span",{className:"num",children:Fe(l.cacheRate)},void 0,!1,void 0,this)},{key:"cacheSavings",header:u("projects.cache-savings"),title:u("projects.cache-savings-hint"),align:"right",sort:(l)=>l.cacheSavings,render:(l)=>Ze.jsxDEV("span",{className:`num ${l.cacheSavings<0?"tone-bad":"muted"}`,children:Fe(l.cacheSavings)},void 0,!1,void 0,this)},{key:"errorRate",header:u("projects.errors"),align:"right",sort:(l)=>l.errorRate,render:(l)=>Ze.jsxDEV("span",{title:u("projects.failed-n",{count:M(l.failedRequests)}),children:Ze.jsxDEV(yt,{tone:l.failedRequests>0?hn(l.errorRate):"neutral",mono:!0,children:Io(l.errorRate)},void 0,!1,void 0,this)},void 0,!1,void 0,this)},{key:"duration",header:u("projects.avg-duration"),align:"right",sort:(l)=>l.avgDuration??-1,render:(l)=>Ze.jsxDEV("span",{className:"num",children:Ct(l.avgDuration)},void 0,!1,void 0,this)},{key:"last",header:u("projects.last-active"),align:"right",sort:(l)=>l.lastTimestamp,render:(l)=>Ze.jsxDEV("span",{className:"dim",children:La(l.lastTimestamp)},void 0,!1,void 0,this)}]}var _o=_(We(),1);var ae=_(te(),1);function rq(){return[{value:"tokens",label:u("common.tokens")},{value:"cost",label:u("common.cost"),title:u("providers.cost-title")},{value:"requests",label:u("common.requests")}]}var S2=6;function k2(){return[{key:"input",label:u("ui.uncached-input"),color:"#5b8cff"},{key:"cacheRead",label:u("common.cache-read"),color:"var(--chart-primary)"},{key:"cacheWrite",label:u("common.cache-write"),color:"#f5b54a"},{key:"output",label:u("common.output"),color:"var(--chart-secondary)"}]}function L2({active:n,range:i}){let l=Ft(["providers",i],({signal:P})=>fI(i,P),{enabled:n}),[c,f]=_o.useState("tokens"),[y,g]=Pn(),v=ea(i),h=Ft(["provider-windows",i],({signal:P})=>ux(i,null,P),{enabled:n}),[x,m]=_o.useState(null),S=sq(h.data?.windowInsights??[],x),C=S?.provider??null,I=Ft(["provider-windows",i,C],({signal:P})=>ux(i,C,P),{enabled:n&&C!==null}),w=_o.useMemo(()=>{let P=l.data?.providers??[],j=l.data?.series??[],Q=Ff(P.map((ee)=>({key:ee.provider,weight:ee.totalTokens}))),ue=to(i,j.map((ee)=>ee.timestamp)),Z={requests:0,failed:0,tokens:0,cost:0,unpriced:0};for(let ee of P)Z.requests+=ee.totalRequests,Z.failed+=ee.failedRequests,Z.tokens+=ee.totalTokens,Z.cost+=ee.totalCost,Z.unpriced+=ee.unpricedRequests;let ce=(ee)=>$r(j,{buckets:ue,key:(G)=>G.provider,value:ee,limit:S2,colors:Q}).map((G)=>({...G,values:G.values.map((V)=>V||null)}));return{colors:Q,buckets:ue,totals:Z,burn:{tokens:ce((ee)=>ee.totalTokens),cost:ce((ee)=>ee.cost),requests:ce((ee)=>ee.requests)},spark:{tokens:da(j,ue,(ee)=>ee.totalTokens),cost:da(j,ue,(ee)=>ee.cost),requests:da(j,ue,(ee)=>ee.requests)},topProvider:P.reduce((ee,G)=>ee===null||G.totalTokens>ee.totalTokens?G:ee,null)}},[l.data,i]),T=w.burn[c],R=c==="cost"?(P)=>Ot(P):se,O=w.totals;return ae.jsxDEV("div",{className:"page",children:[ae.jsxDEV(ha,{title:u("common.providers"),description:u("providers.description",{window:u(v.windowKey)})},void 0,!1,void 0,this),ae.jsxDEV(_e,{query:l,skeleton:ae.jsxDEV(Et,{height:112},void 0,!1,void 0,this),children:({providers:P})=>ae.jsxDEV("div",{"data-stale":l.stale,children:ae.jsxDEV(Sa,{min:190,children:[ae.jsxDEV(ie,{label:u("common.providers"),value:M(P.length),hint:w.topProvider?u("providers.most-tokens",{provider:w.topProvider.provider}):void 0},void 0,!1,void 0,this),ae.jsxDEV(ie,{label:u("common.requests"),value:M(O.requests),hint:u("providers.failed-n",{count:M(O.failed)}),spark:w.spark.requests},void 0,!1,void 0,this),ae.jsxDEV(ie,{label:u("common.tokens"),title:u("providers.tokens-title"),value:se(O.tokens),spark:w.spark.tokens},void 0,!1,void 0,this),ae.jsxDEV(ie,{label:u("providers.api-equivalent-cost"),title:u("providers.api-cost-title"),value:ta(O.cost,O.unpriced),hint:O.unpriced>0?u("providers.unpriced-n",{count:M(O.unpriced)}):void 0,spark:w.spark.cost,sparkColor:"var(--chart-secondary)"},void 0,!1,void 0,this),ae.jsxDEV(ie,{label:u("common.error-rate"),value:Io(O.requests>0?O.failed/O.requests:0),hint:u("providers.succeeded-n",{count:M(O.requests-O.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(me,{index:1,title:u("providers.totals"),description:O.unpriced>0?u(O.unpriced===1?"providers.totals-description-unpriced-one":"providers.totals-description-unpriced-n",{count:M(O.unpriced)}):u("providers.totals-description"),flush:!0,stale:l.stale,children:ae.jsxDEV(_e,{query:l,skeleton:ae.jsxDEV(ka,{rows:6},void 0,!1,void 0,this),children:({providers:P})=>ae.jsxDEV(lq,{providers:P,colors:w.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(me,{index:2,title:u("providers.burn"),description:c==="cost"&&O.unpriced>0?u("providers.burn-estimate-description",{bucket:v.bucketMs<86400000?u("providers.bucket-hour"):u("providers.bucket-day")}):u("providers.burn-description",{bucket:v.bucketMs<3600000?u("providers.bucket-5m"):v.bucketMs<86400000?u("providers.bucket-hour"):u("providers.bucket-day"),count:S2}),actions:ae.jsxDEV(qa,{size:"sm",options:rq(),value:c,onChange:f},void 0,!1,void 0,this),stale:l.stale,children:ae.jsxDEV(_e,{query:l,skeleton:ae.jsxDEV(Et,{height:260},void 0,!1,void 0,this),children:()=>ae.jsxDEV("div",{className:"stack",style:{gap:12},children:[ae.jsxDEV(Uo,{buckets:w.buckets,bucketMs:v.bucketMs,series:T,hidden:y,height:260,format:R,formatTooltip:c==="cost"?(P)=>Ot(P):M,emptyLabel:u("providers.no-provider-activity")},void 0,!1,void 0,this),ae.jsxDEV(ra,{items:T.map((P)=>({key:P.key,label:P.label,color:P.color,value:R(P.values.reduce((j,Q)=>j+(Q??0),0))})),hidden:y,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:l,skeleton:ae.jsxDEV(Et,{height:320},void 0,!1,void 0,this),children:({hourly:P,providers:j})=>ae.jsxDEV(uq,{hourly:P,providers:j,stale:l.stale},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),ae.jsxDEV(me,{index:4,title:u("providers.subscription-windows"),description:u("providers.subscription-windows-description"),flush:!0,stale:h.stale,children:ae.jsxDEV(_e,{query:h,skeleton:ae.jsxDEV(ka,{rows:6},void 0,!1,void 0,this),children:(P)=>ae.jsxDEV(dq,{insights:P.windowInsights,selected:S,onSelect:m},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this),ae.jsxDEV(hq,{insights:h.data?.windowInsights??null,accounts:I,selected:S,onSelect:m},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function sq(n,i){if(i&&n.some((c)=>c.provider===i.provider&&c.windowKey===i.windowKey))return i;let l=i&&n.find((c)=>c.provider===i.provider)||n.reduce((c,f)=>c===void 0||f.fractionConsumed>c.fractionConsumed?f:c,void 0);return l?{provider:l.provider,windowKey:l.windowKey}:null}function lq({providers:n,colors:i}){let[l,c]=_o.useState(null),f=_o.useMemo(()=>{let y=0,g=0,v=0;for(let h of n)y=Math.max(y,h.totalRequests),g=Math.max(g,h.totalTokens),v+=h.totalTokens;return[{key:"provider",header:u("common.provider"),sort:(h)=>h.provider,render:(h)=>ae.jsxDEV("span",{className:"row",style:{gap:8},children:[ae.jsxDEV(tr,{color:i.get(h.provider)??Ro},void 0,!1,void 0,this),ae.jsxDEV("span",{className:"mono cell-primary",children:h.provider},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},{key:"requests",header:u("common.requests"),align:"right",sort:(h)=>h.totalRequests,render:(h)=>ae.jsxDEV(Ra,{value:h.totalRequests,max:y,display:M(h.totalRequests)},void 0,!1,void 0,this)},{key:"errors",header:u("common.error-rate"),align:"right",sort:(h)=>h.totalRequests>0?h.failedRequests/h.totalRequests:0,render:(h)=>{let x=h.totalRequests>0?h.failedRequests/h.totalRequests:0;return ae.jsxDEV("span",{className:"row",style:{gap:8,justifyContent:"flex-end"},children:[ae.jsxDEV("span",{className:"num dim",children:M(h.failedRequests)},void 0,!1,void 0,this),ae.jsxDEV(yt,{tone:h.failedRequests>0?hn(x):"neutral",mono:!0,children:Io(x)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}},{key:"models",header:u("common.models"),title:u("providers.models-title"),align:"right",sort:(h)=>h.models,render:(h)=>ae.jsxDEV("span",{className:"num",children:M(h.models)},void 0,!1,void 0,this)},{key:"tokens",header:u("common.tokens"),title:u("providers.tokens-title"),align:"right",sort:(h)=>h.totalTokens,render:(h)=>ae.jsxDEV(Ra,{value:h.totalTokens,max:g,display:se(h.totalTokens),color:i.get(h.provider)},void 0,!1,void 0,this)},{key:"share",header:u("common.share"),title:u("providers.share-title"),align:"right",sort:(h)=>h.totalTokens,render:(h)=>ae.jsxDEV("span",{className:"num muted",children:Fe(v>0?h.totalTokens/v:0)},void 0,!1,void 0,this)},{key:"cost",header:u("common.cost"),title:u("providers.cost-title"),align:"right",sort:(h)=>h.totalCost,render:(h)=>ae.jsxDEV("span",{className:"num",title:h.unpricedRequests>0?u("providers.unpriced-n",{count:M(h.unpricedRequests)}):void 0,children:ta(h.totalCost,h.unpricedRequests)},void 0,!1,void 0,this)},{key:"tps",header:u("common.tokens-per-second"),title:u("providers.tps-title"),align:"right",sort:(h)=>h.avgTokensPerSecond??-1,render:(h)=>ae.jsxDEV("span",{className:"num",children:Fr(h.avgTokensPerSecond)},void 0,!1,void 0,this)},{key:"premium",header:u("common.premium"),title:u("providers.premium-title"),align:"right",sort:(h)=>h.totalPremiumRequests,render:(h)=>ae.jsxDEV("span",{className:h.totalPremiumRequests>0?"num":"num dim",children:M(Math.round(h.totalPremiumRequests*100)/100)},void 0,!1,void 0,this)}]},[n,i]);return ae.jsxDEV(Ut,{rows:n,rowKey:(y)=>y.provider,columns:f,initialSort:{key:"tokens",dir:"desc"},limit:12,selectedKey:l,onRowClick:(y)=>c((g)=>g===y.provider?null:y.provider),expanded:(y)=>y.provider===l?ae.jsxDEV(iq,{provider:y},void 0,!1,void 0,this):null,empty:ae.jsxDEV(mt,{title:u("providers.no-requests-in-range")},void 0,!1,void 0,this)},void 0,!1,void 0,this)}function iq({provider:n}){let i={input:n.totalInputTokens,cacheRead:n.totalCacheReadTokens,cacheWrite:n.totalCacheWriteTokens,output:n.totalOutputTokens};return ae.jsxDEV("div",{className:"providers-mix",children:[ae.jsxDEV(jr,{segments:k2().map((l)=>({key:l.key,label:l.label,value:i[l.key],color:l.color}))},void 0,!1,void 0,this),ae.jsxDEV(ra,{items:k2().map((l)=>({key:l.key,label:l.label,color:l.color,value:`${se(i[l.key])} · ${n.totalTokens>0?Fe(i[l.key]/n.totalTokens,0):"–"}`}))},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}var Yf="";function uq({hourly:n,providers:i,stale:l}){let[c,f]=_o.useState(Yf),y=c===Yf||i.some((h)=>h.provider===c)?c:Yf,g=_o.useMemo(()=>{let h=Array.from({length:24},()=>0),x=Array.from({length:24},()=>0),m=Array.from({length:24},()=>0);for(let w of n){if(y!==Yf&&w.provider!==y)continue;h[w.hour]+=w.totalTokens,x[w.hour]+=w.outputTokens,m[w.hour]+=w.requests}let S=0;for(let w=1;w<24;w++)if(h[w]>h[S])S=w;let C=h[S]>0;return{series:[{key:"tokens",label:u("common.tokens"),color:"var(--chart-primary)",values:h.map((w,T)=>C&&T===S?null:w)},{key:"peak",label:u("providers.tokens-peak-hour"),color:"var(--chart-secondary)",values:h.map((w,T)=>C&&T===S?w:null)}],output:x,requests:m,peak:S,hasData:C}},[n,y]),v=(h)=>`${String(h).padStart(2,"0")}:00`;return ae.jsxDEV(me,{index:3,title:u("providers.peak-burn-hours"),description:g.hasData?u("providers.peak-hours-description",{hour:v(g.peak)}):u("providers.hours-description"),actions:ae.jsxDEV("select",{className:"input providers-select",value:y,onChange:(h)=>f(h.target.value),"aria-label":u("common.provider"),children:[ae.jsxDEV("option",{value:Yf,children:u("providers.all-providers")},void 0,!1,void 0,this),i.map((h)=>ae.jsxDEV("option",{value:h.provider,children:h.provider},h.provider,!1,void 0,this))]},void 0,!0,void 0,this),stale:l,children:ae.jsxDEV(yn,{slots:24,tickLabel:(h)=>String(h).padStart(2,"0"),tooltipTitle:(h)=>`${v(h)}–${v((h+1)%24)}`,series:g.series,height:260,showTotal:!1,formatTooltip:M,emptyLabel:u("providers.no-activity-in-range"),tooltipExtra:(h)=>ae.jsxDEV(ae.Fragment,{children:[ae.jsxDEV("div",{className:"chart-tooltip-row",children:[ae.jsxDEV("span",{className:"chart-tooltip-label",children:u("common.output")},void 0,!1,void 0,this),ae.jsxDEV("span",{className:"chart-tooltip-value",children:M(g.output[h])},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:u("common.requests")},void 0,!1,void 0,this),ae.jsxDEV("span",{className:"chart-tooltip-value",children:M(g.requests[h])},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 dq({insights:n,selected:i,onSelect:l}){return ae.jsxDEV(Ut,{rows:n,rowKey:(c)=>`${c.provider}::${c.windowKey}`,columns:cq(),initialSort:{key:"consumed",dir:"desc"},limit:12,selectedKey:i?`${i.provider}::${i.windowKey}`:null,onRowClick:(c)=>l({provider:c.provider,windowKey:c.windowKey}),empty:ae.jsxDEV(mt,{title:u("providers.no-snapshots-in-range"),hint:u("providers.snapshot-hint")},void 0,!1,void 0,this)},void 0,!1,void 0,this)}function cq(){return[{key:"window",header:u("providers.window"),sort:(n)=>`${n.provider} ${n.windowKey}`,render:(n)=>ae.jsxDEV(io,{primary:n.windowKey,secondary:ae.jsxDEV("span",{className:"mono",children:n.provider},void 0,!1,void 0,this)},void 0,!1,void 0,this)},{key:"accounts",header:u("providers.accounts"),title:u("providers.accounts-title"),align:"right",sort:(n)=>n.accounts,render:(n)=>ae.jsxDEV("span",{className:"num",children:M(n.accounts)},void 0,!1,void 0,this)},{key:"cycles",header:u("providers.resets"),title:u("providers.resets-title"),align:"right",sort:(n)=>n.cycles,render:(n)=>ae.jsxDEV("span",{className:"num muted",children:M(n.cycles)},void 0,!1,void 0,this)},{key:"consumed",header:u("providers.windows-burned"),title:u("providers.windows-burned-title"),align:"right",sort:(n)=>n.fractionConsumed,render:(n)=>ae.jsxDEV("span",{className:"num",children:n.fractionConsumed.toFixed(2)},void 0,!1,void 0,this)},{key:"capacity",header:u("providers.tokens-per-window"),title:u("providers.tokens-per-window-title"),align:"right",sort:(n)=>n.estTokensPerWindow??-1,render:(n)=>n.estTokensPerWindow!==null?ae.jsxDEV("span",{className:"num",children:se(n.estTokensPerWindow)},void 0,!1,void 0,this):ae.jsxDEV("span",{className:"dim",title:u("providers.too-little-consumed"),children:"–"},void 0,!1,void 0,this)},{key:"peak",header:u("providers.peak-utilization"),title:u("providers.peak-utilization-title"),align:"right",sort:(n)=>n.peakConcurrentFraction,render:(n)=>{let i=n.accounts>0?n.peakConcurrentFraction/n.accounts:0;return ae.jsxDEV(Ra,{value:n.peakConcurrentFraction,max:n.accounts,display:Fe(n.peakConcurrentFraction,0),color:i>=0.9?"var(--warn)":void 0},void 0,!1,void 0,this)}},{key:"ideal",header:u("providers.accounts-needed"),title:u("providers.accounts-needed-title"),align:"right",sort:(n)=>n.idealAccounts-n.accounts,render:(n)=>n.idealAccounts>n.accounts?ae.jsxDEV(yt,{tone:"warn",mono:!0,children:u("providers.ideal-accounts",{ideal:M(n.idealAccounts),have:M(n.accounts)})},void 0,!1,void 0,this):ae.jsxDEV("span",{className:"num",children:M(n.idealAccounts)},void 0,!1,void 0,this)},{key:"exhausted",header:u("providers.exhaustions"),title:u("providers.exhaustions-title"),align:"right",sort:(n)=>n.exhaustedEvents,render:(n)=>n.exhaustedEvents>0?ae.jsxDEV(yt,{tone:"warn",mono:!0,children:u("providers.exhausted-n",{count:M(n.exhaustedEvents)})},void 0,!1,void 0,this):ae.jsxDEV("span",{className:"num dim",children:"0"},void 0,!1,void 0,this)}]}var ig=60000,As=60*ig,ug=24*As,fq=[5*ig,15*ig,30*ig,As,2*As,3*As,6*As,12*As,ug],pq=240,mq=6*As;function hq({insights:n,accounts:i,selected:l,onSelect:c}){let[f,y]=Pn(),g=_o.useMemo(()=>[...new Set((n??[]).map((w)=>w.provider))],[n]),v=_o.useMemo(()=>(n??[]).filter((w)=>w.provider===l?.provider).map((w)=>({key:w.windowKey,label:w.windowKey})),[n,l?.provider]),h=_o.useMemo(()=>(i.data?.usageSeries??[]).filter((w)=>w.provider===l?.provider),[i.data,l?.provider]),x=h.length===0&&(i.loading||i.stale),m=_o.useMemo(()=>{let w=new Map;for(let R of h){let O=w.get(R.accountLabel)??[];if(!O.includes(R.accountKey))O.push(R.accountKey);w.set(R.accountLabel,O)}let T=new Map;for(let[R,O]of w)O.sort(),O.forEach((P,j)=>T.set(P,O.length>1?`${R} #${j+1}`:R));return T},[h]),S=_o.useMemo(()=>gq(h.filter((w)=>w.windowKey===l?.windowKey),m),[h,m,l?.windowKey]),C=_o.useMemo(()=>{let w=new Map(S.series.map((T)=>[T.key,T.color]));return h.map((T)=>{let R=null,O=null;for(let Q of T.points){if(Q.usedFraction===null)continue;if(O=Math.max(O??0,Q.usedFraction),!R||Q.timestamp>=R.timestamp)R={fraction:Q.usedFraction,exhausted:Q.exhausted,timestamp:Q.timestamp}}let P=T.windowKey===l?.windowKey?w.get(T.accountKey)??null:null,j=m.get(T.accountKey)??T.accountLabel;return{series:T,name:j,color:P,latest:R,peak:O,samples:T.points.length}}).sort((T,R)=>Number(R.color!==null)-Number(T.color!==null)||T.series.windowKey.localeCompare(R.series.windowKey)||(R.latest?.fraction??-1)-(T.latest?.fraction??-1))},[h,m,S.series,l?.windowKey]),I=v.find((w)=>w.key===l?.windowKey)?.label;return ae.jsxDEV(me,{index:5,title:u("providers.utilization"),description:S.buckets.length>0?u("providers.utilization-description",{window:I??u("providers.window"),from:hx(S.first),to:hx(S.last)}):u("providers.utilization-description-plain"),actions:l&&ae.jsxDEV("div",{className:"row",style:{gap:6},children:[ae.jsxDEV("select",{className:"input providers-select",value:l.provider,onChange:(w)=>{let T=w.target.value,R=n?.find((O)=>O.provider===T);if(R)c({provider:T,windowKey:R.windowKey})},"aria-label":u("common.provider"),children:g.map((w)=>ae.jsxDEV("option",{value:w,children:w},w,!1,void 0,this))},void 0,!1,void 0,this),ae.jsxDEV("select",{className:"input providers-select",value:l.windowKey,onChange:(w)=>c({provider:l.provider,windowKey:w.target.value}),"aria-label":u("providers.window"),children:v.map((w)=>ae.jsxDEV("option",{value:w.key,children:w.label},w.key,!1,void 0,this))},void 0,!1,void 0,this)]},void 0,!0,void 0,this),stale:i.stale,children:n===null?ae.jsxDEV(Et,{height:260},void 0,!1,void 0,this):l===null?ae.jsxDEV(mt,{title:u("providers.no-snapshots-in-range"),hint:u("providers.snapshot-hint")},void 0,!1,void 0,this):ae.jsxDEV(_e,{query:i,skeleton:ae.jsxDEV(Et,{height:260},void 0,!1,void 0,this),children:()=>x?ae.jsxDEV(Et,{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(yn,{slots:S.buckets.length,tickLabel:(w)=>Uh(S.buckets[w],S.last-S.first>ug?ug:S.bucketMs),tooltipTitle:(w)=>Zu(S.buckets[w],As),series:S.series,hidden:f,kind:"line",stacked:!1,height:260,yMax:Math.max(1,S.max),format:(w)=>Fe(w,0),formatTooltip:(w)=>Fe(w,1),references:[{value:1,label:"100%"}],emptyLabel:u("providers.no-utilization-readings"),tooltipExtra:(w)=>{let T=S.exhausted[w];return T.length>0?ae.jsxDEV("div",{className:"chart-tooltip-row",children:[ae.jsxDEV("span",{className:"chart-tooltip-label tone-bad",children:u("providers.exhausted")},void 0,!1,void 0,this),ae.jsxDEV("span",{className:"chart-tooltip-value",children:T.join(", ")},void 0,!1,void 0,this)]},void 0,!0,void 0,this):null}},void 0,!1,void 0,this),S.series.length>1&&ae.jsxDEV(ra,{items:S.series.map((w)=>({key:w.key,label:w.label,color:w.color})),hidden:f,onToggle:y},void 0,!1,void 0,this)]},void 0,!0,void 0,this),ae.jsxDEV("div",{className:"providers-accounts",children:ae.jsxDEV(Ut,{rows:C,rowKey:(w)=>`${w.series.windowKey}::${w.series.accountKey}`,columns:vq(),limit:16,onRowClick:(w)=>c({provider:w.series.provider,windowKey:w.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 gq(n,i){let{POSITIVE_INFINITY:l,NEGATIVE_INFINITY:c}=Number;for(let I of n)for(let w of I.points){if(w.timestamp<l)l=w.timestamp;if(w.timestamp>c)c=w.timestamp}if(!(c>=l))return{buckets:[],bucketMs:As,first:0,last:0,max:0,series:[],exhausted:[]};let f=c-l,y=fq.find((I)=>f/I<pq)??ug,g=to("all",[l],y,c),v=(I)=>Math.floor((I-g[0])/y),h=g.map(()=>[]),x=0,m=(I)=>i.get(I.accountKey)??I.accountLabel,C=[...n].sort((I,w)=>m(I).localeCompare(m(w))).map((I,w)=>{let T=g.map(()=>null),R=g.map(()=>0);for(let j of I.points){let Q=v(j.timestamp);if(Q<0||Q>=g.length)continue;if(j.exhausted&&!h[Q].includes(m(I)))h[Q].push(m(I));if(j.usedFraction===null||j.timestamp<R[Q])continue;T[Q]=j.usedFraction,R[Q]=j.timestamp,x=Math.max(x,j.usedFraction)}let O=null,P=0;for(let j=0;j<g.length;j++)if(T[j]!==null)O=T[j],P=R[j];else if(O!==null&&g[j]-P<=mq)T[j]=O;return{key:I.accountKey,label:m(I),color:Qa[w%Qa.length],values:T}});return{buckets:g,bucketMs:y,first:l,last:c,max:x,series:C,exhausted:h}}function yq(n){if(!n)return ae.jsxDEV("span",{className:"dim",children:u("providers.no-reading")},void 0,!1,void 0,this);if(n.exhausted)return ae.jsxDEV(yt,{tone:"bad",children:u("providers.exhausted")},void 0,!1,void 0,this);if(n.fraction>=0.8)return ae.jsxDEV(yt,{tone:"warn",children:u("providers.high")},void 0,!1,void 0,this);return ae.jsxDEV(yt,{tone:"ok",children:u("ui.status-ok")},void 0,!1,void 0,this)}function vq(){return[{key:"account",header:u("providers.account"),sort:(n)=>n.name,render:(n)=>ae.jsxDEV("span",{className:"row",style:{gap:8},children:[ae.jsxDEV("span",{className:"providers-swatch-slot",children:n.color&&ae.jsxDEV(tr,{color:n.color},void 0,!1,void 0,this)},void 0,!1,void 0,this),ae.jsxDEV("span",{className:"truncate providers-account",title:n.series.accountKey,children:n.name},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},{key:"window",header:u("providers.window"),sort:(n)=>n.series.windowKey,render:(n)=>ae.jsxDEV("span",{className:n.color?void 0:"muted",children:n.series.windowKey},void 0,!1,void 0,this)},{key:"latest",header:u("providers.latest-used"),align:"right",sort:(n)=>n.latest?.fraction??-1,render:(n)=>n.latest?ae.jsxDEV(Ra,{value:n.latest.fraction,max:1,display:Fe(n.latest.fraction,0),color:n.latest.exhausted?"var(--bad)":n.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:u("providers.status"),sort:(n)=>n.latest?.exhausted?2:(n.latest?.fraction??0)>=0.8?1:0,render:(n)=>yq(n.latest)},{key:"peak",header:u("providers.peak-in-range"),align:"right",sort:(n)=>n.peak??-1,render:(n)=>ae.jsxDEV("span",{className:"num",children:n.peak===null?"–":Fe(n.peak,0)},void 0,!1,void 0,this)},{key:"samples",header:u("providers.snapshots"),align:"right",sort:(n)=>n.samples,render:(n)=>ae.jsxDEV("span",{className:"num muted",children:M(n.samples)},void 0,!1,void 0,this)},{key:"recorded",header:u("providers.recorded"),align:"right",sort:(n)=>n.latest?.timestamp??0,render:(n)=>ae.jsxDEV("span",{className:"muted",children:n.latest?La(n.latest.timestamp):"–"},void 0,!1,void 0,this)}]}var _i=_(We(),1);var dt=_(te(),1),bq={ok:"ok",aborted:"warn",failed:"bad"},xq={ok:"ui.status-ok",aborted:"common.aborted",failed:"common.failed"};function dg(n){return{label:u(xq[n]),tone:bq[n]}}function C2({id:n,onClose:i}){let l=Ft(["request",n],({signal:y})=>JT(n??0,y),{enabled:n!==null}),c=l.stale?null:l.data,f=c?dg(Rs(c)):null;return dt.jsxDEV(Ju,{open:n!==null,onClose:i,width:620,title:c?dt.jsxDEV("span",{className:"mono",children:c.model},void 0,!1,void 0,this):u("common.request"),subtitle:c?dt.jsxDEV(dt.Fragment,{children:[c.provider," ·"," ",dt.jsxDEV("span",{title:bo(c.timestamp),children:La(c.timestamp)},void 0,!1,void 0,this)]},void 0,!0,void 0,this):n!==null?dt.jsxDEV("span",{className:"mono",children:["#",n]},void 0,!0,void 0,this):void 0,actions:c&&f?dt.jsxDEV("div",{className:"row",style:{gap:6},children:[dt.jsxDEV("a",{className:"btn","data-size":"sm","data-variant":"ghost",href:eg({...Hf(window.location.hash),section:"traces",session:c.sessionFile}),onClick:i,title:u("ui.open-trace"),children:[dt.jsxDEV(yf,{size:13},void 0,!1,void 0,this)," Trace"]},void 0,!0,void 0,this),dt.jsxDEV(yt,{tone:f.tone,children:f.label},void 0,!1,void 0,this)]},void 0,!0,void 0,this):void 0,children:c?dt.jsxDEV(Sq,{details:c,aborted:Rs(c)==="aborted"},void 0,!1,void 0,this):l.error?dt.jsxDEV(Nl,{error:l.error,onRetry:l.refetch},void 0,!1,void 0,this):dt.jsxDEV("div",{className:"stack",style:{gap:12},children:[dt.jsxDEV(ao,{height:56},void 0,!1,void 0,this),dt.jsxDEV(ao,{height:120},void 0,!1,void 0,this),dt.jsxDEV(ao,{height:120},void 0,!1,void 0,this),dt.jsxDEV(ao,{height:220},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)}function Sq({details:n,aborted:i}){let{usage:l}=n,c=n.duration!==null&&n.duration>0&&l.output>0?l.output*1000/n.duration:null,{messages:f,output:y,...g}=n;return dt.jsxDEV(dt.Fragment,{children:[n.errorMessage&&dt.jsxDEV("section",{className:"request-drawer-error","data-tone":i?"warn":"bad",role:"note",children:[dt.jsxDEV("div",{className:"request-drawer-error-label",children:i?u("common.aborted"):u("common.error")},void 0,!1,void 0,this),dt.jsxDEV("pre",{className:"request-drawer-error-text",children:n.errorMessage},void 0,!1,void 0,this)]},void 0,!0,void 0,this),dt.jsxDEV("section",{children:[dt.jsxDEV("div",{className:"section-label",children:u("ui.section-timing")},void 0,!1,void 0,this),dt.jsxDEV(Po,{items:[{key:"at",label:u("common.started"),value:bo(n.timestamp)},{key:"duration",label:u("common.duration"),value:Ct(n.duration)},{key:"ttft",label:u("ui.time-to-first-token"),value:Ct(n.ttft)},{key:"tps",label:u("common.output-tokens-per-second"),value:Fr(c)}]},void 0,!1,void 0,this)]},void 0,!0,void 0,this),dt.jsxDEV("section",{children:[dt.jsxDEV("div",{className:"section-label",children:u("common.tokens")},void 0,!1,void 0,this),dt.jsxDEV(Po,{items:[{key:"input",label:u("ui.uncached-input"),value:M(l.input)},{key:"cacheRead",label:u("common.cache-read"),value:M(l.cacheRead)},{key:"cacheWrite",label:u("common.cache-write"),value:M(l.cacheWrite)},{key:"output",label:u("common.output"),value:M(l.output)},{key:"total",label:u("common.total"),value:M(l.totalTokens)},{key:"premium",label:u("common.premium-requests"),value:M(Math.round((l.premiumRequests??0)*100)/100)}]},void 0,!1,void 0,this)]},void 0,!0,void 0,this),dt.jsxDEV("section",{children:[dt.jsxDEV("div",{className:"section-label",children:u("ui.section-cost")},void 0,!1,void 0,this),dt.jsxDEV(Po,{items:[{key:"total",label:"Total",value:ql(n,4)},{key:"input",label:u("common.input"),value:Ot(l.cost.input,4)},{key:"cacheRead",label:"Cache read",value:Ot(l.cost.cacheRead,4)},{key:"cacheWrite",label:"Cache write",value:Ot(l.cost.cacheWrite,4)},{key:"output",label:"Output",value:Ot(l.cost.output,4)}]},void 0,!1,void 0,this)]},void 0,!0,void 0,this),dt.jsxDEV("section",{children:[dt.jsxDEV("div",{className:"section-label",children:u("ui.section-identity")},void 0,!1,void 0,this),dt.jsxDEV(Po,{items:[{key:"id",label:u("common.request-id"),value:n.id??"–"},{key:"entry",label:u("common.entry-id"),value:n.entryId},{key:"stop",label:u("ui.stop-reason"),value:n.stopReason},{key:"api",label:"API",value:n.api},{key:"project",label:u("common.project"),value:dt.jsxDEV("span",{title:n.folder,children:zn(n.folder)},void 0,!1,void 0,this)}]},void 0,!1,void 0,this),dt.jsxDEV("div",{className:"request-drawer-file",children:[dt.jsxDEV("span",{className:"kv-key",children:u("ui.session-file")},void 0,!1,void 0,this),dt.jsxDEV("span",{className:"kv-value",children:n.sessionFile},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),y!=null&&dt.jsxDEV(ed,{data:y,title:u("common.output-message")},void 0,!1,void 0,this),dt.jsxDEV(ed,{data:f,title:u("common.session-entry"),initialCollapsed:!0},void 0,!1,void 0,this),dt.jsxDEV(ed,{data:g,title:u("ui.stats-row"),initialCollapsed:!0},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}var lt=_(te(),1),Mx=[500,2000,1e4];function w2({active:n,range:i,onRequestClick:l}){let[c,f]=_i.useState(0),y=Mx[c],g=Ft(["requests-log",y],({signal:Q})=>_h(y,Q),{enabled:n}),[v,h]=_i.useState(""),[x,m]=_i.useState("all"),S=ea(i),C=_i.useMemo(()=>{let Q=g.data??[],ue=S.spanMs===null?null:Date.now()-S.spanMs,Z=ue===null?Q:Q.filter((G)=>G.timestamp>=ue),ce=!g.stale&&(Q.length<y||ue!==null&&Z.length<Q.length),ee={all:Z.length,ok:0,aborted:0,failed:0};for(let G of Z)ee[Rs(G)]++;return{loaded:Q.length,inRange:Z,complete:ce,counts:ee,summary:o2(Z)}},[g.data,g.stale,y,S.spanMs]),I=_i.useMemo(()=>{let Q=v.trim().toLowerCase();return C.inRange.filter((ue)=>(x==="all"||Rs(ue)===x)&&(Q===""||ue.model.toLowerCase().includes(Q)||ue.provider.toLowerCase().includes(Q)||ue.folder.toLowerCase().includes(Q)))},[C.inRange,v,x]),{summary:w,counts:T,complete:R}=C,O=c+1<Mx.length?Mx[c+1]:null,P=O!==null?lt.jsxDEV("button",{type:"button",className:"btn","data-size":"sm",disabled:g.refreshing,onClick:()=>f(c+1),children:g.refreshing&&g.stale?u("requests.loading"):u("requests.load-latest",{count:M(O)})},void 0,!1,void 0,this):void 0,j=["all","ok","aborted","failed"].map((Q)=>({value:Q,label:lt.jsxDEV(lt.Fragment,{children:[Q==="all"?u("requests.status-all"):dg(Q).label," ",lt.jsxDEV("span",{className:"dim num",children:se(T[Q])},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}));return lt.jsxDEV("div",{className:"page",children:[lt.jsxDEV(ha,{title:u("common.requests"),description:u("requests.description",{window:u(S.windowKey)})},void 0,!1,void 0,this),lt.jsxDEV(_e,{query:g,skeleton:lt.jsxDEV(ao,{height:96,style:{borderRadius:12}},void 0,!1,void 0,this),children:()=>lt.jsxDEV("div",{"data-stale":g.stale,children:lt.jsxDEV(Sa,{min:160,children:[lt.jsxDEV(ie,{label:u("common.requests"),value:M(w.requests),hint:w.oldest===null?u("requests.none-in-window",{window:u(S.windowKey)}):u("requests.since",{time:La(w.oldest)})},void 0,!1,void 0,this),lt.jsxDEV(ie,{label:u("common.failed"),value:M(w.failed),hint:u("requests.failed-hint",{rate:w.requests>0?Io(w.failed/w.requests):"–",count:M(w.aborted)})},void 0,!1,void 0,this),lt.jsxDEV(ie,{label:u("common.tokens"),title:u("requests.tokens-hint"),value:se(w.tokens)},void 0,!1,void 0,this),lt.jsxDEV(ie,{label:u("requests.api-equivalent-cost"),title:u("requests.cost-hint"),value:ta(w.cost,w.unpriced),hint:w.unpriced>0?u("requests.unpriced-n",{count:M(w.unpriced)}):void 0},void 0,!1,void 0,this),lt.jsxDEV(ie,{label:u("requests.median-duration"),value:Ct(w.medianDuration),hint:u("requests.p95",{value:Ct(w.p95Duration)})},void 0,!1,void 0,this),lt.jsxDEV(ie,{label:u("requests.median-ttft"),title:u("requests.ttft-hint"),value:Ct(w.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),lt.jsxDEV(me,{index:1,title:u("requests.log-title"),description:g.data===null?u("requests.log-loading"):R?u("requests.log-count-in-window",{shown:M(I.length),total:M(w.requests),window:u(S.windowKey)}):u("requests.log-count-latest",{shown:M(I.length),total:M(w.requests)}),actions:lt.jsxDEV(lt.Fragment,{children:[lt.jsxDEV(Hr,{value:v,onChange:h,placeholder:u("requests.search-placeholder")},void 0,!1,void 0,this),lt.jsxDEV(qa,{size:"sm","aria-label":u("requests.status"),options:j,value:x,onChange:m},void 0,!1,void 0,this)]},void 0,!0,void 0,this),flush:!0,stale:g.stale,footer:g.data!==null&&!R?lt.jsxDEV(lt.Fragment,{children:[lt.jsxDEV("span",{children:u("requests.footer",{count:M(C.loaded),time:w.oldest===null?"–":bo(w.oldest),window:u(S.windowKey)})},void 0,!1,void 0,this),P]},void 0,!0,void 0,this):void 0,children:lt.jsxDEV(_e,{query:g,skeleton:lt.jsxDEV(ka,{rows:12},void 0,!1,void 0,this),children:()=>lt.jsxDEV(Ut,{rows:I,rowKey:(Q)=>Q.id??`${Q.sessionFile}:${Q.entryId}`,onRowClick:(Q)=>Q.id!==void 0&&l(Q.id),columns:kq(),initialSort:{key:"time",dir:"desc"},limit:100,dense:!0,empty:lt.jsxDEV(mt,{title:w.requests===0?u("requests.empty-in-window",{window:u(S.windowKey)}):u("requests.empty-no-match"),hint:w.requests===0?void 0:u("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)}function kq(){return[{key:"model",header:u("common.model"),sort:(n)=>n.model,render:(n)=>lt.jsxDEV(io,{primary:lt.jsxDEV("span",{className:"mono",children:n.model},void 0,!1,void 0,this),secondary:n.provider},void 0,!1,void 0,this)},{key:"time",header:u("requests.when"),sort:(n)=>n.timestamp,render:(n)=>lt.jsxDEV("span",{className:"muted",title:bo(n.timestamp),children:La(n.timestamp)},void 0,!1,void 0,this)},{key:"project",header:u("common.project"),sort:(n)=>n.folder,render:(n)=>lt.jsxDEV("span",{className:"mono muted truncate",title:n.folder,style:{display:"block",maxWidth:180},children:zn(n.folder)},void 0,!1,void 0,this)},{key:"input",header:u("common.input"),title:u("requests.uncached-input"),align:"right",sort:(n)=>n.usage.input,render:(n)=>lt.jsxDEV("span",{className:"num",children:se(n.usage.input)},void 0,!1,void 0,this)},{key:"cache",header:u("common.cache-read"),title:u("requests.cache-read-title"),align:"right",sort:(n)=>n.usage.cacheRead,render:(n)=>lt.jsxDEV("span",{className:"num",title:u("requests.cache-write",{count:M(n.usage.cacheWrite)}),children:se(n.usage.cacheRead)},void 0,!1,void 0,this)},{key:"output",header:u("common.output"),align:"right",sort:(n)=>n.usage.output,render:(n)=>lt.jsxDEV("span",{className:"num",children:se(n.usage.output)},void 0,!1,void 0,this)},{key:"cost",header:u("common.cost"),title:u("requests.cost-estimate"),align:"right",sort:(n)=>n.usage.cost.total,render:(n)=>lt.jsxDEV("span",{className:"num",children:ql(n,4)},void 0,!1,void 0,this)},{key:"duration",header:u("common.duration"),align:"right",sort:(n)=>n.duration??-1,render:(n)=>lt.jsxDEV("span",{className:"num",children:Ct(n.duration)},void 0,!1,void 0,this)},{key:"ttft",header:u("requests.ttft"),title:u("requests.ttft-hint"),align:"right",sort:(n)=>n.ttft??-1,render:(n)=>lt.jsxDEV("span",{className:"num muted",children:Ct(n.ttft)},void 0,!1,void 0,this)},{key:"status",header:u("requests.status"),sort:(n)=>Rs(n),render:(n)=>{let i=dg(Rs(n));return lt.jsxDEV("span",{title:n.errorMessage??void 0,children:lt.jsxDEV(io,{lead:lt.jsxDEV(_r,{tone:i.tone},void 0,!1,void 0,this),primary:i.label,secondary:lt.jsxDEV("span",{className:"mono",children:n.stopReason},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this)}}]}var oR=_(We(),1);var T2=["January","February","March","April","May","June","July","August","September","October","November","December"],I2=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],Lq=["MMMM","yyyy","EEEE","MMM","EEE","yy","MM","dd","HH","hh","mm","ss","M","d","H","h","m","s","a"];function Bl(n,i=2){return String(n).padStart(i,"0")}function Cq(n,i){let l=n.getMonth(),c=n.getDay(),f=n.getHours(),y=f%12||12;switch(i){case"yyyy":return Bl(n.getFullYear(),4);case"yy":return Bl(n.getFullYear()%100);case"MMMM":return T2[l];case"MMM":return T2[l].slice(0,3);case"MM":return Bl(l+1);case"M":return String(l+1);case"dd":return Bl(n.getDate());case"d":return String(n.getDate());case"EEEE":return I2[c];case"EEE":return I2[c].slice(0,3);case"HH":return Bl(f);case"H":return String(f);case"hh":return Bl(y);case"h":return String(y);case"mm":return Bl(n.getMinutes());case"m":return String(n.getMinutes());case"ss":return Bl(n.getSeconds());case"s":return String(n.getSeconds());case"a":return f<12?"AM":"PM"}}function wq(n){let i=n instanceof Date?new Date(n.getTime()):new Date(n);if(Number.isNaN(i.getTime()))throw RangeError("Invalid time value");return i}function R2(n,i){let l=wq(n),c="";for(let f=0;f<i.length;){if(i[f]==="'"){if(i[f+1]==="'"){c+="'",f+=2;continue}f++;while(f<i.length){if(i[f]!=="'"){c+=i[f++];continue}if(i[f+1]==="'"){c+="'",f+=2;continue}f++;break}continue}let y=i.slice(f),g=Lq.find((h)=>y.startsWith(h));if(g){c+=Cq(l,g),f+=g.length;continue}let v=i[f++];if(/[A-Za-z]/.test(v))throw RangeError(`Format string contains an unescaped latin alphabet character \`${v}\``);c+=v}return c}var Kf=_(We(),1);var cg=["artifact","reread","rerun"],Ds={artifact:{label:"Artifact dive",plural:"Artifact dives",icon:ef,color:"var(--spot-artifact)",rule:"A later call read or searched an artifact the shortened result named"},reread:{label:"Re-read",plural:"Re-reads",icon:pf,color:"var(--spot-reread)",rule:"A later read of the same file overlapping the hidden lines, or the whole file again"},rerun:{label:"Rerun",plural:"Reruns",icon:Rf,color:"var(--spot-rerun)",rule:"A call of the same tool within 12 calls repeating the shortened one: a bash command the same, with a pipe or redirect added, or ≥ 60% shared tokens; any other tool with ≥ 60% shared argument tokens"}};function Hi(n){return n.gross.byTool.map((i)=>i.tool)}var Tq=6,Un="other";function Ko(n,i=Tq){if(n.length<=i+1)return{listed:n,rest:[]};return{listed:n.slice(0,i),rest:n.slice(i)}}var za={applied:{label:"Shortened",color:"var(--spot-applied)",shape:"dot",rule:"Spotlight scored the result, shaping shortened it and the model saw the cut"},scoreFree:{label:"Score-free",color:"var(--spot-score-free)",shape:"square",rule:"A random coin skipped Spotlight: the no-score fallback rules shortened it and the model saw the cut"},holdout:{label:"Held out",color:"var(--spot-holdout)",shape:"ring",rule:"Spotlight would have shortened it, but it was held out at random and the model saw it whole"},reference:{label:"Unchanged",color:"var(--spot-reference)",shape:"diamond",rule:"Results shaping left unchanged, re-weighted to the cuts' original-size mix"},gated:{label:"Gated",color:"var(--spot-gated)",shape:"ring",rule:"A read pi's former edit gate (removed) kept whole: the model saw it uncut"}},Ax=["applied","scoreFree","holdout","gated","reference"],fg=["<250","250–1k","1k–4k","≥4k"],A2=["1","2","3","4–6","7–12"],M2={read:mf,bash:Al,eval:Cl,grep:Nf,find:Ls,glob:gf,edit:Rl,write:ff,web_search:vf,task:sf,todo:Lf,wait:bf,fetch:wl,lsp:If,[Un]:Tl};function _n(n){return Object.hasOwn(M2,n)?M2[n]:Ei}function pg(n){if(n>=86400000)return"day";if(n>=3600000)return"hour";return`${Math.round(n/60000)} minutes`}function uo(n){return n<0?`−${se(-n)}`:se(n)}function vn(n){return n<0?`−${Ot(-n)}`:Ot(n)}function Xr(n,i){return n.lo===null||n.hi===null?"":`${i(n.lo)}–${i(n.hi)}`}function Wt(n){if(n===null||!Number.isFinite(n))return"–";if(n===0)return"0%";let i=Math.abs(n*100);return`${n<0?"−":""}${i>=10?i.toFixed(0):i.toFixed(1)}%`}var Je=_(te(),1);function Iq(n){let i=n.agentType==="main",l=(n.sessionFile.split("/").pop()??"").replace(/\.jsonl$/,""),c=n.title?.trim()||(i?zn(n.folder):l);return`${i?c:`↳ ${c} (${n.agentType})`} · ${se(n.savedTokens)} saved`}function D2({stats:n,active:i,stale:l}){let{compounding:c}=n,[f,y]=Kf.useState(null),g=n.sessionList,v=g.find((w)=>w.savedTokens>0)??g[0],h=f!==null&&g.some((w)=>w.sessionFile===f)?f:v?.sessionFile,x=Ft(["spotlight-session",h??null],({signal:w})=>dI(h??"",w),{enabled:i&&h!==void 0}),m=c.avoidedTokens-c.recoveredCarriedTokens,S=n.gross.savedTokens>0?c.avoidedTokens/n.gross.savedTokens:null,C=x.data?.points,I=Kf.useMemo(()=>{if(!C)return null;let w=0,T=0;for(let R of C)w+=R.withoutTokens-R.contextTokens,T+=R.withoutTokens;return T>0?{share:w/T,tokens:w}:null},[C]);return Je.jsxDEV(me,{index:3,title:"Compounding",description:"A cut is never re-read: each later request of the session carries a smaller context",actions:g.length>0&&Je.jsxDEV("select",{className:"input spot-session-select","aria-label":"Session",value:h??"",onChange:(w)=>y(w.target.value),children:g.map((w)=>Je.jsxDEV("option",{value:w.sessionFile,children:Iq(w)},w.sessionFile,!1,void 0,this))},void 0,!1,void 0,this),stale:l,footer:"Context = input + cache read + cache write of each request. A compaction is a request whose context is under 60% of the previous one's; it ends the carry.",children:Je.jsxDEV("div",{className:"spot-compounding",children:[Je.jsxDEV("div",{className:"spot-compounding-chart",children:h===void 0?Je.jsxDEV(mt,{title:"No experiment sessions in this range"},void 0,!1,void 0,this):x.data===null?x.error?Je.jsxDEV(Nl,{error:x.error,onRetry:x.refetch},void 0,!1,void 0,this):Je.jsxDEV(Et,{height:280},void 0,!1,void 0,this):Je.jsxDEV(Aq,{context:x.data,stale:x.stale},void 0,!1,void 0,this)},void 0,!1,void 0,this),Je.jsxDEV("aside",{className:"spot-compounding-side",children:[Je.jsxDEV("div",{className:"spot-eyebrow",children:"Context avoided in this session"},void 0,!1,void 0,this),Je.jsxDEV("div",{className:"spot-side-value",children:Wt(I?.share??null)},void 0,!1,void 0,this),C!==void 0&&Je.jsxDEV("p",{className:"spot-side-copy",children:I===null?"This session has no recorded requests.":`of what its requests would have carried without Spotlight: ${uo(I.tokens)} prompt tokens, net of recoveries.`},void 0,!1,void 0,this),x.data&&Je.jsxDEV(Rq,{session:x.data.session},void 0,!1,void 0,this),Je.jsxDEV("p",{className:"spot-side-range",children:[Je.jsxDEV("span",{className:"spot-side-range-value",children:Wt(c.avoidedShare)},void 0,!1,void 0,this)," across all the sessions shown: cuts kept ",se(Math.max(0,m))," tokens out of later requests",S!==null&&Je.jsxDEV(Je.Fragment,{children:[", each saved token re-sent ",S.toFixed(1)," times on average"]},void 0,!0,void 0,this),"."]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)}function Rq({session:n}){return Je.jsxDEV("dl",{className:"spot-facts",children:[Je.jsxDEV("div",{children:[Je.jsxDEV("dt",{children:"Agent"},void 0,!1,void 0,this),Je.jsxDEV("dd",{className:"row",children:Je.jsxDEV(yt,{children:n.agentType},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),Je.jsxDEV("div",{children:[Je.jsxDEV("dt",{children:"Requests"},void 0,!1,void 0,this),Je.jsxDEV("dd",{className:"num",children:M(n.requests)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),Je.jsxDEV("div",{children:[Je.jsxDEV("dt",{children:"Saved"},void 0,!1,void 0,this),Je.jsxDEV("dd",{className:"num",children:uo(n.savedTokens)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),Je.jsxDEV("div",{children:[Je.jsxDEV("dt",{children:"Net $"},void 0,!1,void 0,this),Je.jsxDEV("dd",{className:"num",children:vn(n.netUsd)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)}var Mq=[{key:"actual",label:"Context",color:"var(--spot-gross)"},{key:"ghost",label:"Without Spotlight",color:"var(--spot-ghost)"},{key:"compaction",label:"Compaction",color:"var(--line-4)"}];function Aq({context:n,stale:i}){let{points:l}=n,c=Kf.useMemo(()=>{let f=[{key:"actual",label:"Context",color:"var(--spot-gross)",kind:"area",values:l.map((g)=>g.contextTokens)},{key:"ghost",label:"Avoided",color:"var(--spot-ghost)",kind:"area",pattern:"hatch",dashed:!0,values:l.map((g)=>Math.max(0,g.withoutTokens-g.contextTokens))}],y=[];return l.forEach((g,v)=>{if(g.compacted)y.push({index:v})}),{series:f,markers:y}},[l]);if(l.length===0)return Je.jsxDEV(mt,{title:"No requests recorded for this session"},void 0,!1,void 0,this);return Je.jsxDEV("div",{className:"spot-context","data-stale":i,children:[Je.jsxDEV(ra,{items:Mq},void 0,!1,void 0,this),Je.jsxDEV(yn,{slots:l.length,series:c.series,markers:c.markers,height:280,tickLabel:(f)=>`#${f+1}`,tooltipTitle:(f)=>`Request ${f+1} · ${R2(new Date(l[f].timestamp),"MMM d HH:mm:ss")}`,formatTooltip:M,showTotal:!1,tooltipExtra:(f)=>{let y=l[f];return Je.jsxDEV("div",{className:"spot-tooltip-extra",children:[Je.jsxDEV("div",{className:"chart-tooltip-row chart-tooltip-total",children:[Je.jsxDEV("span",{className:"chart-tooltip-label",children:"Without Spotlight"},void 0,!1,void 0,this),Je.jsxDEV("span",{className:"chart-tooltip-value",children:M(y.withoutTokens)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),y.saved>0&&Je.jsxDEV("div",{className:"chart-tooltip-row",children:[Je.jsxDEV("span",{className:"chart-tooltip-label",children:"Cut since last request"},void 0,!1,void 0,this),Je.jsxDEV("span",{className:"chart-tooltip-value",children:M(y.saved)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),y.recovered>0&&Je.jsxDEV("div",{className:"chart-tooltip-row",children:[Je.jsxDEV("span",{className:"chart-tooltip-label",children:"Fetched back"},void 0,!1,void 0,this),Je.jsxDEV("span",{className:"chart-tooltip-value",children:M(y.recovered)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),y.compacted&&Je.jsxDEV("div",{className:"chart-tooltip-row dim",children:"Compaction before this request"},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 Wa=_(te(),1),mg="var(--spot-applied)",hg="var(--spot-unshaped)";function E2({stats:n,stale:i}){let l=[...n.coverage].sort((h,x)=>x.tokens-h.tokens),{listed:c,rest:f}=Ko(l),y=0,g=0;for(let h of l)if(h.shaped)y+=h.share;else g+=h.share;let v=c.map((h)=>({key:h.tool,label:Wa.jsxDEV(Wa.Fragment,{children:[Wa.jsxDEV("span",{className:"spot-coverage-tool",children:h.tool},void 0,!1,void 0,this),h.shaped&&Wa.jsxDEV(yt,{children:"shaped"},void 0,!1,void 0,this),Wa.jsxDEV("span",{className:"dim num",children:[M(h.calls)," calls"]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),value:h.share,display:`${Wt(h.share)} · ${se(h.tokens)}`,color:h.shaped?mg:hg}));if(f.length>0){let h=0,x=0,m=0;for(let S of f)h+=S.share,x+=S.tokens,m+=S.calls;v.push({key:"\x00rest",label:Wa.jsxDEV(Wa.Fragment,{children:[Wa.jsxDEV("span",{className:"spot-coverage-tool",children:[M(f.length)," more ",f.length===1?"tool":"tools"]},void 0,!0,void 0,this),Wa.jsxDEV("span",{className:"dim num",children:[M(m)," calls"]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),value:h,display:`${Wt(h)} · ${se(x)}`,color:f.some((S)=>S.shaped)?mg:hg})}return Wa.jsxDEV(me,{index:5,title:"Not shaped yet",description:"Share of the tool output experiment sessions' models saw, by tool: the unshaped ones are where shaping could reach next",actions:Wa.jsxDEV(ra,{items:[{key:"shaped",label:"Shaped",color:mg},{key:"unshaped",label:"Not shaped",color:hg}]},void 0,!1,void 0,this),stale:i,footer:"Tokens are tool-result chars ÷ 4 over the experiment's sessions in the range; a tool counts as shaped when the experiment evaluated any of its results in the range.",children:l.length===0?Wa.jsxDEV("div",{className:"empty",children:"No tool output in this range."},void 0,!1,void 0,this):Wa.jsxDEV("div",{className:"spot-coverage",children:[Wa.jsxDEV("div",{className:"spot-coverage-summary",children:[Wa.jsxDEV("div",{className:"spot-coverage-headline",children:[Wa.jsxDEV("span",{className:"num",children:Wt(g)},void 0,!1,void 0,this)," of tool output comes from tools the experiment did not shape in this range"]},void 0,!0,void 0,this),Wa.jsxDEV(jr,{height:8,segments:[{key:"shaped",label:"Shaped",value:y,color:mg},{key:"unshaped",label:"Not shaped",value:g,color:hg}]},void 0,!1,void 0,this)]},void 0,!0,void 0,this),Wa.jsxDEV(ws,{items:v},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)}var Gt=_(te(),1),Dq=30,N2=5,Eq=120;function Nq(n){return[`${n.tool}: ${M(n.cuts)} cuts`,`Saved ${se(n.savedTokens)} tokens (${Ot(n.savedUsd)})`,`Fetched back ${se(n.recoveredTokens)} tokens (${Ot(n.recoveryUsd)})`,`${M(n.extraTurns)} extra turns (${Ot(n.turnUsd)})`,`Net ${vn(n.netUsd)}`].join(`
236
+ `)}function qq(n){if(n.length===0)return;let i={tool:Un,cuts:0,savedTokens:0,recoveredTokens:0,extraTurns:0,savedUsd:0,recoveryUsd:0,turnUsd:0,netUsd:0,extraTurnsPer100Cuts:0,netUsdPer100Cuts:0};for(let l of n)i.cuts+=l.cuts,i.savedTokens+=l.savedTokens,i.recoveredTokens+=l.recoveredTokens,i.extraTurns+=l.extraTurns,i.savedUsd+=l.savedUsd,i.recoveryUsd+=l.recoveryUsd,i.turnUsd+=l.turnUsd,i.netUsd+=l.netUsd;if(i.cuts>0)i.extraTurnsPer100Cuts=i.extraTurns*100/i.cuts,i.netUsdPer100Cuts=i.netUsd*100/i.cuts;return i}function q2({stats:n,stale:i}){let l=new Set(n.economics.filter((m)=>m.cuts>0).map((m)=>m.tool)),{listed:c,rest:f}=Ko(Hi(n).filter((m)=>l.has(m))),y=new Set(f),g=new Map(n.economics.filter((m)=>!y.has(m.tool)).map((m)=>[m.tool,m])),v=qq(n.economics.filter((m)=>y.has(m.tool)));if(v)g.set(Un,v);let h=f.length>0?[...c,Un]:c,x=0;for(let m of g.values())if(m.cuts>0)x=Math.max(x,Math.abs(m.netUsdPer100Cuts));return Gt.jsxDEV(me,{index:3,title:"What cuts earn, by tool",description:"Net dollars per 100 cuts after fetch-backs, extra turns and Spotlight's own bill",actions:x>0&&Gt.jsxDEV("span",{className:"spot-econ-scale","aria-hidden":"true",children:[Gt.jsxDEV("span",{className:"num",children:vn(-x)},void 0,!1,void 0,this),Gt.jsxDEV("span",{className:"spot-econ-ramp"},void 0,!1,void 0,this),Gt.jsxDEV("span",{className:"num",children:vn(x)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),stale:i,footer:"Shortened results only; held-out ones save nothing. Every fetch-back counts against the cut here, the share held-out results show comes back anyway included, so this is the cautious view. An extra turn is a request whose every tool call fetched back output these cuts hid. Dollars price saved and fetched-back tokens as carried context, like Compounding.",children:h.length===0?Gt.jsxDEV("div",{className:"empty",children:"No shortened results in this range."},void 0,!1,void 0,this):Gt.jsxDEV("div",{className:"spot-econ-scroll",children:Gt.jsxDEV("table",{className:"spot-econ",style:{minWidth:`${h.length*Eq}px`},children:[Gt.jsxDEV("thead",{children:Gt.jsxDEV("tr",{children:h.map((m)=>{let S=_n(m);return Gt.jsxDEV("th",{scope:"col",title:m===Un?f.join(", "):m,children:Gt.jsxDEV("span",{className:"row spot-econ-tool",children:[Gt.jsxDEV(S,{size:13,"aria-hidden":"true"},void 0,!1,void 0,this),Gt.jsxDEV("span",{className:"spot-econ-tool-name",children:m},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},m,!1,void 0,this)})},void 0,!1,void 0,this)},void 0,!1,void 0,this),Gt.jsxDEV("tbody",{children:Gt.jsxDEV("tr",{children:h.map((m)=>{let S=g.get(m);if(S===void 0||S.cuts===0)return Gt.jsxDEV("td",{children:Gt.jsxDEV("div",{className:"spot-econ-cell","data-empty":"true",children:Gt.jsxDEV("span",{className:"dim",children:"No cuts"},void 0,!1,void 0,this)},void 0,!1,void 0,this)},m,!1,void 0,this);let C=S.netUsdPer100Cuts,I=x>0?N2+Math.sqrt(Math.abs(C)/x)*(Dq-N2):0,w=C<0?"bad":C>0?"ok":"neutral";return Gt.jsxDEV("td",{children:Gt.jsxDEV("div",{className:"spot-econ-cell","data-tone":w,style:{"--tint":`${I}%`},title:Nq(S),children:[Gt.jsxDEV("span",{className:"spot-econ-net num",children:vn(C)},void 0,!1,void 0,this),Gt.jsxDEV("dl",{className:"spot-econ-facts",children:[Gt.jsxDEV("div",{children:[Gt.jsxDEV("dt",{children:"cuts"},void 0,!1,void 0,this),Gt.jsxDEV("dd",{className:"num",children:M(S.cuts)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),Gt.jsxDEV("div",{children:[Gt.jsxDEV("dt",{children:"saved"},void 0,!1,void 0,this),Gt.jsxDEV("dd",{className:"num",children:se(S.savedTokens)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),Gt.jsxDEV("div",{children:[Gt.jsxDEV("dt",{children:"extra turns /100"},void 0,!1,void 0,this),Gt.jsxDEV("dd",{className:"num",children:S.extraTurnsPer100Cuts.toFixed(1)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)},m,!1,void 0,this)})},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)}var Ex=_(We(),1);var Es=_(te(),1);function Qf({groups:n}){return Es.jsxDEV("div",{className:"legend spot-group-legend",children:n.map((i)=>Es.jsxDEV("span",{className:"legend-item",title:za[i].rule,style:{"--dot":za[i].color},children:[Es.jsxDEV("span",{className:"spot-group-mark","data-shape":za[i].shape,"aria-hidden":"true"},void 0,!1,void 0,this),za[i].label]},i,!0,void 0,this))},void 0,!1,void 0,this)}function Wf({hidden:n,expanded:i,onToggle:l}){return Es.jsxDEV("button",{type:"button",className:"btn spot-more-tools","data-variant":"ghost","data-size":"sm","aria-expanded":i,title:i?void 0:n.join(", "),onClick:l,children:i?"Show fewer tools":`Show ${n.length} more tools`},void 0,!1,void 0,this)}function Dx({kind:n,count:i}){let l=Ds[n],c=l.icon;return Es.jsxDEV("span",{className:"spot-kind",style:{"--kind":l.color},title:i===void 0?l.rule:`${i} × ${l.label.toLowerCase()}: ${l.rule}`,children:[Es.jsxDEV(c,{size:12,"aria-hidden":"true"},void 0,!1,void 0,this),i===void 0?l.label:Es.jsxDEV("span",{className:"num",children:i},void 0,!1,void 0,this),i!==void 0&&Es.jsxDEV("span",{className:"sr-only",children:l.plural},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}var Mt=_(te(),1),Oq={applied:-12,scoreFree:-6,holdout:0,gated:6,reference:12},Bq=["scoreFree","holdout","reference"],O2=["applied","holdout"],zq="One rule for every group: within 12 calls, a read of the same path overlapping the result's own window (the whole file without a selector), a rerun of the call (a similar bash command; for other tools, ≥ 60% shared argument tokens), or a read of an artifact it named; not after an edit of that path (reads) or any edit (reruns), nor from the same request.";function B2({stats:n,stale:i}){let[l,c]=Ex.useState(!1),f=new Map;for(let m of n.fetchBack)f.set(`${m.tool}/${m.group}`,m);let y=new Set(n.fetchBack.filter((m)=>m.results>0).map((m)=>m.tool)),{listed:g,rest:v}=Ko(Hi(n).filter((m)=>y.has(m))),h=Ax.filter((m)=>m!=="gated"||n.fetchBack.some((S)=>S.group==="gated"&&S.results>0)),x=[];for(let m of l?[...g,...v]:g){let S=_n(m),C=Ax.flatMap((R)=>{let O=f.get(`${m}/${R}`);return O!==void 0&&O.results>0?[O]:[]});if(C.length===0)continue;let I=new Map(C.map((R)=>[R.group,R])),w=I.get("applied"),T=C.map((R)=>({key:R.group,...R.rate,color:za[R.group].color,shape:za[R.group].shape,offset:Oq[R.group],title:`${za[R.group].label}: ${Wt(R.rate.value)} of ${M(R.results)} results in ${M(R.sessions)} sessions`}));x.push({key:m,label:Mt.jsxDEV("span",{className:"spot-fb-tool",title:m,children:[Mt.jsxDEV(S,{size:13,"aria-hidden":"true"},void 0,!1,void 0,this),Mt.jsxDEV("span",{className:"spot-fb-tool-name",children:m},void 0,!1,void 0,this)]},void 0,!0,void 0,this),marks:T,figure:Mt.jsxDEV("span",{style:{color:za.applied.color},title:za.applied.rule,children:w===void 0?"–":Wt(w.rate.value)},void 0,!1,void 0,this),detail:Mt.jsxDEV(Mt.Fragment,{children:Bq.map((R,O)=>{let P=I.get(R);return Mt.jsxDEV("span",{title:`${za[R].label}: ${za[R].rule}`,children:[O>0&&" · ",Mt.jsxDEV("span",{className:"spot-fb-detail","data-group":R,children:P===void 0?"–":Wt(P.rate.value)},void 0,!1,void 0,this)]},R,!0,void 0,this)})},void 0,!1,void 0,this)})}return Mt.jsxDEV(me,{index:3,title:"Does the agent come back for it?",description:"Share of results the agent fetched more of within 12 calls: cut with Spotlight's scores, cut without them, held out at random, kept whole by pi's former edit gate, and left unchanged",stale:i,footer:`${zq} Held-out results are the true counterfactual: drawn at random from the would-be cuts and shown whole; until they accumulate, unchanged results stand in, re-weighted to the cuts' size mix. Score-free cuts skip Spotlight by a second coin and take the no-score fallback rules: if they come back as often as scored cuts, the scores add nothing. Gated reads are reads pi's former edit gate (removed) kept whole, listed only where the range has any. Small print: score-free · held out · unchanged. Whiskers are 90% session bootstrap intervals, from 3 sessions.`,children:x.length===0?Mt.jsxDEV("div",{className:"empty",children:"No evaluated results in this range."},void 0,!1,void 0,this):Mt.jsxDEV("div",{className:"spot-fb",children:[Mt.jsxDEV(Qf,{groups:h},void 0,!1,void 0,this),Mt.jsxDEV(ag,{rows:x,format:Wt,formatTick:(m)=>`${Math.round(m*100)}%`},void 0,!1,void 0,this),v.length>0&&Mt.jsxDEV(Wf,{hidden:v,expanded:l,onToggle:()=>c((m)=>!m)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)}function Pq({tool:n,counts:i}){let l=_n(n),c=new Map(i.map((h)=>[h.gap,h])),f=0,y=0;for(let h of i)f+=h.applied,y+=h.holdout;let g={applied:f,holdout:y},v=0;for(let h of i){if(f>0)v=Math.max(v,h.applied/f);if(y>0)v=Math.max(v,h.holdout/y)}return Mt.jsxDEV("section",{className:"spot-gap","aria-label":`${n} fetch-back gaps`,children:[Mt.jsxDEV("h3",{className:"spot-panel-title row spot-gap-title",children:[Mt.jsxDEV(l,{size:13,"aria-hidden":"true"},void 0,!1,void 0,this),n,Mt.jsxDEV("span",{className:"dim",children:[Mt.jsxDEV("span",{className:"num",children:M(f)},void 0,!1,void 0,this)," shortened ·"," ",Mt.jsxDEV("span",{className:"num",children:M(y)},void 0,!1,void 0,this)," held out"]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),f+y===0?Mt.jsxDEV("div",{className:"spot-gap-empty dim",children:"No fetch-backs"},void 0,!1,void 0,this):Mt.jsxDEV("div",{className:"spot-gap-bins",children:A2.map((h)=>{let x=c.get(h);return Mt.jsxDEV("div",{className:"spot-gap-bin",children:[Mt.jsxDEV("div",{className:"spot-gap-bars",children:O2.map((m)=>{let S=x?.[m]??0,C=g[m],I=C>0?S/C:0;return Mt.jsxDEV("span",{className:"spot-gap-bar","data-group":m,"data-empty":C===0,title:`${h} ${h==="1"?"call":"calls"} later: ${M(S)} of ${M(C)} ${za[m].label.toLowerCase()} fetch-backs`,children:[C>0&&Mt.jsxDEV("span",{className:"spot-gap-value num",children:Wt(I)},void 0,!1,void 0,this),Mt.jsxDEV("span",{className:"spot-gap-fill",style:{height:`${v>0?I/v*100:0}%`}},void 0,!1,void 0,this)]},m,!0,void 0,this)})},void 0,!1,void 0,this),Mt.jsxDEV("span",{className:"spot-gap-label num",children:h},void 0,!1,void 0,this)]},h,!0,void 0,this)})},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function z2({stats:n,stale:i}){let[l,c]=Ex.useState(!1),f=new Set(n.gaps.map((v)=>v.tool)),{listed:y,rest:g}=Ko(Hi(n).filter((v)=>f.has(v)));return Mt.jsxDEV(me,{index:3,title:"How soon it comes back",description:"Calls between a result and the first fetch-back after it",stale:i,footer:"Bars are each group's share of its own fetch-backs, so shortened and held-out results compare despite their different counts (next to each tool). Same rule as above; nothing after 12 calls counts.",children:y.length===0?Mt.jsxDEV("div",{className:"empty",children:"No fetch-backs in this range."},void 0,!1,void 0,this):Mt.jsxDEV(Mt.Fragment,{children:[Mt.jsxDEV(Qf,{groups:O2},void 0,!1,void 0,this),Mt.jsxDEV("div",{className:"spot-gaps",children:(l?[...y,...g]:y).map((v)=>Mt.jsxDEV(Pq,{tool:v,counts:n.gaps.filter((h)=>h.tool===v)},v,!1,void 0,this))},void 0,!1,void 0,this),g.length>0&&Mt.jsxDEV(Wf,{hidden:g,expanded:l,onToggle:()=>c((v)=>!v)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)}var Nt=_(te(),1);function P2({stats:n,windowLabel:i,stale:l}){let{gross:c,clawback:f,adjusted:y}=n,{netTokens:g,netUsd:v}=y,h=Xr(g,uo),x=Xr(v,vn),m=y.byTool.filter((O)=>O.cuts>0&&O.holdouts<y.minHoldouts).map((O)=>O.tool),S=Ko(m),C=S.rest.length>0?[...S.listed,`${S.rest.length} more tools`]:m,I=C.length<2?C[0]??"":`${C.slice(0,-1).join(", ")} and ${C.at(-1)}`,w=Ko(y.byTool),T=w.listed.map((O)=>({tool:O.tool,holdouts:O.holdouts,thin:m.includes(O.tool)}));if(w.rest.length>0)T.push({tool:Un,holdouts:w.rest.reduce((O,P)=>O+P.holdouts,0),thin:w.rest.some((O)=>m.includes(O.tool))});let R=c.fullSavedTokens>0?1-c.savedTokens/c.fullSavedTokens:null;return Nt.jsxDEV("section",{className:"card rise spot-hero","data-stale":l,"aria-label":"Spotlight savings summary",children:[Nt.jsxDEV("div",{className:"spot-hero-main",children:[Nt.jsxDEV("div",{className:"spot-hero-headline",children:[Nt.jsxDEV("div",{className:"spot-eyebrow",children:["Net saved in ",i,", after fetch-backs a cut caused"]},void 0,!0,void 0,this),Nt.jsxDEV("div",{className:"spot-hero-figures",children:[Nt.jsxDEV("span",{className:"spot-hero-value gradient-text",title:g.value===null?void 0:`${M(g.value)} tokens`,children:g.value===null?"–":uo(g.value)},void 0,!1,void 0,this),Nt.jsxDEV("span",{className:"spot-hero-unit",children:"tokens"},void 0,!1,void 0,this),v.value!==null&&Nt.jsxDEV("span",{className:"spot-hero-usd","data-negative":v.value<0,title:"Avoided context priced at each later request's cache rates, minus the fetch-backs beyond the holdout baseline (priced the same way) and Spotlight's own bill",children:vn(v.value)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),(h!==""||x!=="")&&Nt.jsxDEV("div",{className:"spot-hero-interval",children:["90% interval"," ",Nt.jsxDEV("span",{className:"num",children:[h,x].filter(Boolean).join(" · ")},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),Nt.jsxDEV("div",{className:"spot-hero-aside",children:[Nt.jsxDEV("p",{className:"spot-hero-note",children:["Counted against what pi would have shown unshaped (",Nt.jsxDEV("code",{children:"plain"},void 0,!1,void 0,this),") for the same call (its inline cap and read page), with fetch-backs that held-out results show happen anyway added back."," ",c.fullSavedTokens>c.savedTokens&&Nt.jsxDEV(Nt.Fragment,{children:["Against the full output the shaping read, the cuts would claim"," ",Nt.jsxDEV("s",{className:"spot-struck num",children:se(c.fullSavedTokens)},void 0,!1,void 0,this),", overstating the gross by ",Wt(R),"."," "]},void 0,!0,void 0,this),c.widerThanPlain>0&&`${M(c.widerThanPlain)} ${c.widerThanPlain===1?"result was":"results were"} wider than plain would have shown: cuts shown that way count as losses, results pi capped at plain's text save nothing. `,c.estimatedPlain>0&&`${M(c.estimatedPlain)} older ${c.estimatedPlain===1?"result estimates":"results estimate"} plain from the inline cap.`]},void 0,!0,void 0,this),m.length>0&&Nt.jsxDEV("p",{className:"spot-hero-warn",role:"note",children:[Nt.jsxDEV(wo,{size:14,"aria-hidden":"true"},void 0,!1,void 0,this),Nt.jsxDEV("span",{children:[I," ",m.length===1?"has":"have"," fewer than"," ",M(y.minHoldouts)," held-out results: ",m.length===1?"its":"their"," ","part of the net rests on a thin baseline."]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),Nt.jsxDEV("div",{className:"spot-hero-stats",children:[Nt.jsxDEV(ie,{size:"sm",label:"Gross vs plain",title:"Σ (plain − shortened) tokens over shortened results; a cut that showed more than plain counts negative",value:uo(c.savedTokens),hint:`${Wt(c.ofToolOutput)} of tool output · ${M(c.shaped)} of ${M(c.results)} results shortened`},void 0,!1,void 0,this),Nt.jsxDEV(ie,{size:"sm",label:"Fetched back beyond baseline",title:"Fetch-back tokens beyond what held-out results (shown whole) fetch anyway, per tool (reads split by whether the agent was likely to edit them); 90% interval below",value:y.excessTokens.value===null?"–":uo(-y.excessTokens.value),hint:Nt.jsxDEV(Nt.Fragment,{children:["of ",se(f.tokens)," fetched back",y.excessTokens.lo!==null&&y.excessTokens.hi!==null&&Nt.jsxDEV(Nt.Fragment,{children:[" ",Nt.jsxDEV("span",{className:"dim",children:["·"," ",Nt.jsxDEV("span",{className:"spot-nowrap",children:["90% ",Xr(y.excessTokens,se)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this),Nt.jsxDEV(ie,{size:"sm",label:"Held out",title:`Would-be cuts shown whole at random: the baseline per tool (under ${y.minHoldouts} is thin)`,value:M(n.holdouts),hint:Nt.jsxDEV("span",{className:"spot-hero-tools",children:T.map((O)=>Nt.jsxDEV("span",{"data-thin":O.thin,title:O.tool===Un?w.rest.map((P)=>`${P.tool} ${M(P.holdouts)}`).join(", "):O.thin?`${O.tool}: under ${y.minHoldouts} held out`:void 0,children:[O.tool," ",Nt.jsxDEV("span",{className:"num",children:M(O.holdouts)},void 0,!1,void 0,this),O.thin&&Nt.jsxDEV(wo,{size:11,"aria-label":"thin baseline"},void 0,!1,void 0,this)]},O.tool,!0,void 0,this))},void 0,!1,void 0,this)},void 0,!1,void 0,this),Nt.jsxDEV(ie,{size:"sm",label:"Score-free cuts",title:"Cuts a random coin made without Spotlight (the no-score fallback rules): what Spotlight's scores add is the difference",value:M(n.scoreFree),hint:"cut without Spotlight, for comparison"},void 0,!1,void 0,this),Nt.jsxDEV(ie,{size:"sm",label:"Sessions",value:M(n.sessions),hint:"experiment sessions, all shaped"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)}var ya=_(te(),1);function U2({p50:n,p90:i}){if(n===null)return ya.jsxDEV("span",{className:"dim",children:"–"},void 0,!1,void 0,this);return ya.jsxDEV("span",{className:"num",children:[Ct(n),ya.jsxDEV("span",{className:"dim",children:[" / ",Ct(i)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)}var Uq=[{key:"failures",header:"Spotlight failures",align:"right",sort:(n)=>n.failureRate??-1,title:"Results whose Spotlight calls failed or timed out, of those that called it: they were cut by the no-score fallback",render:(n)=>n.failureRate===null?ya.jsxDEV("span",{className:"dim",children:"–"},void 0,!1,void 0,this):ya.jsxDEV(yt,{tone:hn(n.failureRate),mono:!0,children:Wt(n.failureRate)},void 0,!1,void 0,this)},{key:"failedWait",header:"Waited on failures",align:"right",sort:(n)=>n.failedWaitMs,title:"Wall time tool calls spent on Spotlight calls that failed or timed out",render:(n)=>n.failedWaitMs>0?ya.jsxDEV("span",{className:"num",children:Ct(n.failedWaitMs)},void 0,!1,void 0,this):ya.jsxDEV("span",{className:"dim",children:"–"},void 0,!1,void 0,this)},{key:"results",header:"Results",align:"right",sort:(n)=>n.results,title:"Results Spotlight evaluated, held-out ones included",render:(n)=>ya.jsxDEV("span",{className:"num",children:M(n.results)},void 0,!1,void 0,this)},{key:"shape",header:"Shaping p50 / p90",align:"right",sort:(n)=>n.shapeMsP50??-1,title:"Wall time shaping added to a tool call",render:(n)=>ya.jsxDEV(U2,{p50:n.shapeMsP50,p90:n.shapeMsP90},void 0,!1,void 0,this)},{key:"spotlight",header:"Spotlight p50 / p90",align:"right",sort:(n)=>n.spotlightMsP50??-1,title:"Spotlight's own request time, over results whose calls all answered",render:(n)=>ya.jsxDEV(U2,{p50:n.spotlightMsP50,p90:n.spotlightMsP90},void 0,!1,void 0,this)},{key:"usd",header:"Spotlight $",align:"right",sort:(n)=>n.spotlightUsd,render:(n)=>ya.jsxDEV("span",{className:"num",children:Ot(n.spotlightUsd)},void 0,!1,void 0,this)}];function _q({overhead:n}){let i=n.failureRate;if(i===null)return null;let l=hn(i);if(l==="ok")return null;let c=n.failedWaitMs;return ya.jsxDEV("div",{className:"spot-callout","data-tone":l,role:"note",children:[ya.jsxDEV(wo,{size:16,"aria-hidden":"true"},void 0,!1,void 0,this),ya.jsxDEV("div",{children:[ya.jsxDEV("div",{className:"spot-callout-head",children:[ya.jsxDEV("span",{className:"num",children:Wt(i)},void 0,!1,void 0,this)," of results that called Spotlight failed"]},void 0,!0,void 0,this),ya.jsxDEV("p",{className:"spot-callout-copy",children:["A failed or timed-out call leaves the cut to the no-score fallback, so those results measure the fallback rather than Spotlight's scorer. Read every comparison on this page with that share in mind.",c>0&&ya.jsxDEV(ya.Fragment,{children:[" ","Tool calls waited ",ya.jsxDEV("span",{className:"num",children:Ct(c)},void 0,!1,void 0,this)," on those failures."]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)}function _2({stats:n,stale:i}){let{overhead:l}=n,c=l.results>0?[l]:[];return ya.jsxDEV(me,{index:3,title:"Overhead",description:"What shaping costs: Spotlight failures, added latency and its bill",flush:!0,stale:i,footer:"Every evaluated result counts, held-out ones included: they were shaped too, just not shown.",children:[l.results>0&&ya.jsxDEV(_q,{overhead:l},void 0,!1,void 0,this),ya.jsxDEV(Ut,{rows:c,rowKey:()=>"overhead",columns:Uq,dense:!0,empty:ya.jsxDEV("div",{className:"empty",children:"No evaluated results in this range."},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}var Ge=_(te(),1),Zf=["applied","scoreFree","holdout"],Hq={applied:-7,scoreFree:0,holdout:7},Fq=[{key:"auc",title:"Heat ranks needed lines higher",chanceLabel:"AUC · chance 0.5",chance:0.5,rule:"P(a needed line is hotter than an unneeded line of the same result), ties half",format:(n)=>n.toFixed(2)},{key:"topLift",title:"Hottest tenth holds them",chanceLabel:"lift · chance 1.0",chance:1,rule:"Needed-line rate among each result's hottest 10% of lines over its rate among all lines",format:(n)=>`${n.toFixed(2)}×`},{key:"keptLift",title:"The cut keeps them",chanceLabel:"lift · random cut 1.0",chance:1,rule:"Share of needed lines the cut kept over the share of all lines it kept",format:(n)=>`${n.toFixed(2)}×`}],Gq=[{key:"reread",label:"Read again",rule:"A later read of the same file selected the lines"},{key:"edit",label:"Edited",rule:"A later edit's Find text matched the lines"}];function H2({stats:n,stale:i}){let{ranking:l}=n,c=new Map(l.cells.map((y)=>[y.group,y])),f=Zf.some((y)=>(c.get(y)?.results??0)>0);return Ge.jsxDEV(me,{index:4,title:"Does Spotlight keep what the agent needs?",description:"Lines of a shaped read the agent read again or edited later, against Spotlight's heat and the cut",actions:Ge.jsxDEV(Qf,{groups:Zf},void 0,!1,void 0,this),stale:i,footer:"Shaped reads with at least one needed line, until the file's first edit or a later whole-file read. Scored and score-free cuts are biased alike (the agent re-reads what a cut hid), so compare them with each other; held-out would-be cuts, shown whole, are the unbiased measure. Score-free cuts have no heat, so only the cut's lift exists for them. Dashed lines are chance; whiskers are 90% session bootstrap intervals, from 3 sessions.",children:!f?Ge.jsxDEV("div",{className:"empty",children:"No shaped read was needed again in this range."},void 0,!1,void 0,this):Ge.jsxDEV("div",{className:"spot-rank",children:[Ge.jsxDEV("div",{className:"spot-rank-panels",children:Fq.map((y)=>Ge.jsxDEV(Vq,{measure:y,cells:c},y.key,!1,void 0,this))},void 0,!1,void 0,this),Ge.jsxDEV("div",{className:"spot-rank-foot",children:[Ge.jsxDEV(jq,{cells:c},void 0,!1,void 0,this),Ge.jsxDEV($q,{positions:l.position},void 0,!1,void 0,this),Ge.jsxDEV("section",{className:"spot-rank-sources","aria-label":"How the need was seen",children:[Ge.jsxDEV("h3",{className:"spot-panel-title",children:"How the need was seen"},void 0,!1,void 0,this),Ge.jsxDEV("dl",{className:"spot-facts spot-rank-facts",children:Gq.map((y)=>Ge.jsxDEV("div",{title:y.rule,children:[Ge.jsxDEV("dt",{children:y.label},void 0,!1,void 0,this),Ge.jsxDEV("dd",{className:"num",children:[M(l.sources[y.key]),Ge.jsxDEV("span",{className:"dim",children:" results"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},y.key,!0,void 0,this))},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)}function Vq({measure:n,cells:i}){let l=Zf.flatMap((y)=>{let g=i.get(y);if(g===void 0||g.results===0)return[];let v=g[n.key],h=Xr(v,n.format);return[{key:y,...v,color:za[y].color,shape:za[y].shape,offset:Hq[y],title:`${za[y].label}: ${v.value===null?"–":n.format(v.value)}${h===""?"":` (${h})`} over ${M(g.results)} results, ${M(g.neededLines)} needed lines`}]}),c=i.get("applied")?.[n.key].value??null,f=[{key:"reads",label:"Shaped reads",marks:l,figure:Ge.jsxDEV("span",{style:{color:za.applied.color},children:c===null?"–":n.format(c)},void 0,!1,void 0,this),detail:Ge.jsxDEV(Ge.Fragment,{children:["scoreFree","holdout"].map((y,g)=>{let v=i.get(y)?.[n.key].value??null;return Ge.jsxDEV("span",{title:za[y].label,children:[g>0&&" · ",Ge.jsxDEV("span",{className:"spot-fb-detail","data-group":y,children:v===null?"–":n.format(v)},void 0,!1,void 0,this)]},y,!0,void 0,this)})},void 0,!1,void 0,this)}];return Ge.jsxDEV("section",{className:"spot-rank-panel","aria-label":n.title,children:[Ge.jsxDEV("h3",{className:"spot-panel-title",title:n.rule,children:[n.title,Ge.jsxDEV("span",{className:"spot-rank-chance",children:n.chanceLabel},void 0,!1,void 0,this)]},void 0,!0,void 0,this),Ge.jsxDEV(ag,{rows:f,guides:[{key:"chance",value:n.chance,color:"var(--ink-3)"}],format:n.format,formatTick:(y)=>String(Number(y.toFixed(2)))},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function jq({cells:n}){return Ge.jsxDEV("section",{"aria-label":"Sample per cell",children:[Ge.jsxDEV("h3",{className:"spot-panel-title",children:["Sample per cell",Ge.jsxDEV("span",{className:"spot-rank-chance",children:"results · needed lines"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),Ge.jsxDEV("table",{className:"spot-rank-n",children:[Ge.jsxDEV("thead",{children:Ge.jsxDEV("tr",{children:Zf.map((i)=>Ge.jsxDEV("th",{scope:"col",title:za[i].rule,children:za[i].label},i,!1,void 0,this))},void 0,!1,void 0,this)},void 0,!1,void 0,this),Ge.jsxDEV("tbody",{children:Ge.jsxDEV("tr",{children:Zf.map((i)=>{let l=n.get(i);return Ge.jsxDEV("td",{className:"num","data-thin":l!==void 0&&l.results<20,children:l===void 0||l.results===0?Ge.jsxDEV("span",{className:"dim",children:"–"},void 0,!1,void 0,this):Ge.jsxDEV("span",{title:`${M(l.neededLines)} needed lines`,children:[M(l.results),Ge.jsxDEV("span",{className:"dim",children:[" · ",se(l.neededLines)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)},i,!1,void 0,this)})},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)}function $q({positions:n}){let i=Math.max(0,...n.map((l)=>l.meanHeat));return Ge.jsxDEV("section",{className:"spot-rank-pos","aria-label":"Mean heat by position",children:[Ge.jsxDEV("h3",{className:"spot-panel-title",children:["Mean heat by position",Ge.jsxDEV("span",{className:"spot-rank-chance",children:"0–9, outputs ≥ 40 lines"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),n.length===0||i===0?Ge.jsxDEV("div",{className:"dim spot-gap-empty",children:"No heat recorded"},void 0,!1,void 0,this):Ge.jsxDEV(Ge.Fragment,{children:[Ge.jsxDEV("div",{className:"spot-rank-bars",children:n.map((l)=>Ge.jsxDEV("div",{className:"spot-rank-bar",title:`${l.label}: mean heat ${l.meanHeat.toFixed(2)} over ${M(l.lines)} lines`,children:[Ge.jsxDEV("span",{className:"spot-rank-bar-track",children:[Ge.jsxDEV("span",{className:"spot-rank-bar-value num",children:l.meanHeat.toFixed(1)},void 0,!1,void 0,this),Ge.jsxDEV("span",{className:"spot-rank-bar-fill",style:{height:`calc((100% - 14px) * ${l.meanHeat/i})`}},void 0,!1,void 0,this)]},void 0,!0,void 0,this),Ge.jsxDEV("span",{className:"spot-rank-bar-label num",children:l.label.replace(/^lines? /,"L").replace(/%$/,"")},void 0,!1,void 0,this)]},l.label,!0,void 0,this))},void 0,!1,void 0,this),Ge.jsxDEV("div",{className:"micro spot-rank-axis",children:"L = line of the output, then each tenth of it (% into it)"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)}var dd=_(We(),1);var de=_(te(),1);function Nx(n){return`${n.sessionFile}\x00${n.toolCallId}`}function F2({value:n}){return de.jsxDEV("span",{className:n<0?"num tone-bad":n>0?"num tone-ok":"num",children:uo(n)},void 0,!1,void 0,this)}function Xq({row:n}){let{plainTokens:i,outTokens:l}=n,c=i>0?Math.min(1,l/i):1;return de.jsxDEV("div",{className:"spot-shrink","data-holdout":n.holdout,title:`plain would show ${M(i)} tokens, the cut ${n.holdout?"would show":"showed"} ${M(l)} (shaping read ${M(n.inTokens)})`,children:[de.jsxDEV("span",{className:"num",children:[se(i),de.jsxDEV("span",{className:"dim",children:" → "},void 0,!1,void 0,this),se(l)]},void 0,!0,void 0,this),de.jsxDEV("span",{className:"spot-shrink-bar","aria-hidden":"true",children:de.jsxDEV("span",{className:"spot-shrink-kept",style:{width:`${c*100}%`}},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function Yq(n){let i=new Map;for(let l of n.recoveries)i.set(l.kind,(i.get(l.kind)??0)+1);return cg.flatMap((l)=>{let c=i.get(l);return c?[[l,c]]:[]})}var Kq=[{key:"target",header:"Result",width:"40%",sort:(n)=>n.timestamp,render:(n)=>{let i=_n(n.tool);return de.jsxDEV("div",{className:"spot-result",children:[de.jsxDEV("span",{className:"spot-tool",title:n.tool,children:[de.jsxDEV(i,{size:14,"aria-hidden":"true"},void 0,!1,void 0,this),de.jsxDEV("span",{className:"sr-only",children:n.tool},void 0,!1,void 0,this)]},void 0,!0,void 0,this),de.jsxDEV("div",{className:"stack spot-result-text",children:[de.jsxDEV("span",{className:"spot-target truncate",title:n.target,children:n.target},void 0,!1,void 0,this),de.jsxDEV("span",{className:"row spot-result-meta",children:[n.holdout&&de.jsxDEV(G2,{},void 0,!1,void 0,this),n.scoreFree&&de.jsxDEV(V2,{},void 0,!1,void 0,this),de.jsxDEV("span",{className:"dim",title:bo(n.timestamp),children:La(n.timestamp)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)}},{key:"shrink",header:"Plain → out",align:"right",sort:(n)=>n.plainTokens>0?n.outTokens/n.plainTokens:1,title:"What pi would have shown unshaped (plain) for the call, and what the cut showed; the bar is the share that survived",render:(n)=>de.jsxDEV(Xq,{row:n},void 0,!1,void 0,this)},{key:"saved",header:"Saved",align:"right",sort:(n)=>n.savedTokens,render:(n)=>n.holdout?de.jsxDEV("span",{className:"spot-would-save",title:"Held out: what the cut would have saved",children:[de.jsxDEV("span",{className:"dim",children:"would save "},void 0,!1,void 0,this),de.jsxDEV("span",{className:"num",children:uo(n.savedTokens)},void 0,!1,void 0,this)]},void 0,!0,void 0,this):de.jsxDEV("span",{className:"num",children:uo(n.savedTokens)},void 0,!1,void 0,this)},{key:"hidden",header:"Hidden lines",align:"right",sort:(n)=>n.hiddenLines,render:(n)=>n.hiddenLines>0?de.jsxDEV("span",{className:"num",children:M(n.hiddenLines)},void 0,!1,void 0,this):de.jsxDEV("span",{className:"dim",children:"–"},void 0,!1,void 0,this)},{key:"recoveries",header:"Fetched back",sort:(n)=>n.recoveries.length,render:(n)=>{let i=Yq(n);return i.length===0?de.jsxDEV("span",{className:"dim",title:"Nothing fetched back",children:"–"},void 0,!1,void 0,this):de.jsxDEV("span",{className:"row spot-kinds",children:i.map(([l,c])=>de.jsxDEV(Dx,{kind:l,count:c},l,!1,void 0,this))},void 0,!1,void 0,this)}},{key:"net",header:"Net",align:"right",sort:(n)=>n.netTokens,title:"Saved tokens minus the tokens of the calls that fetched hidden output back",render:(n)=>n.holdout?de.jsxDEV("span",{className:"dim",title:"Held out: the model saw the whole result, so nothing was saved",children:"–"},void 0,!1,void 0,this):de.jsxDEV(F2,{value:n.netTokens},void 0,!1,void 0,this)}];function G2(){return de.jsxDEV("span",{title:"Held out at random: the model saw the original, unshortened result",children:de.jsxDEV(yt,{children:"held out"},void 0,!1,void 0,this)},void 0,!1,void 0,this)}function V2(){return de.jsxDEV("span",{title:"A random coin skipped Spotlight: the no-score fallback rules made this cut",children:de.jsxDEV(yt,{children:"score-free"},void 0,!1,void 0,this)},void 0,!1,void 0,this)}function j2({rows:n,stale:i}){let[l,c]=dd.useState(null),f=dd.useCallback(()=>c(null),[]),y=dd.useMemo(()=>n.find((g)=>Nx(g)===l)??null,[n,l]);return de.jsxDEV(de.Fragment,{children:[de.jsxDEV(me,{index:6,title:"Recent results",description:"The newest shortened and held-out tool results and what the agent fetched back",flush:!0,stale:i,footer:"Saved is what plain would have shown minus what the cut showed (the would-be cut for held-out ones, which save nothing); recovery tokens are the recovery calls' results (chars ÷ 4 when no exact count exists).",children:de.jsxDEV(Ut,{rows:n,rowKey:Nx,columns:Kq,onRowClick:(g)=>c(Nx(g)),selectedKey:l,limit:15,empty:de.jsxDEV("div",{className:"empty",children:"No shortened or held-out results in this range."},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this),de.jsxDEV(Qq,{row:y,onClose:f},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function Qq({row:n,onClose:i}){if(n===null)return null;let l=_n(n.tool),c=n.savedTokens-n.netTokens;return de.jsxDEV(Ju,{open:!0,onClose:i,width:600,title:de.jsxDEV("span",{className:"spot-drawer-title",title:n.target,children:n.target},void 0,!1,void 0,this),subtitle:de.jsxDEV("span",{className:"row spot-drawer-subtitle",children:[de.jsxDEV(l,{size:13,"aria-hidden":"true"},void 0,!1,void 0,this),n.tool,n.holdout&&de.jsxDEV(G2,{},void 0,!1,void 0,this),n.scoreFree&&de.jsxDEV(V2,{},void 0,!1,void 0,this),de.jsxDEV("span",{children:bo(n.timestamp)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),children:[de.jsxDEV("div",{className:"spot-drawer-summary",children:[de.jsxDEV("div",{children:[de.jsxDEV("div",{className:"spot-eyebrow",children:n.holdout?"Would save":"Saved"},void 0,!1,void 0,this),de.jsxDEV("div",{className:"spot-drawer-figure num",children:uo(n.savedTokens)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),de.jsxDEV("div",{children:[de.jsxDEV("div",{className:"spot-eyebrow",children:"Fetched back"},void 0,!1,void 0,this),de.jsxDEV("div",{className:c>0?"spot-drawer-figure num tone-warn":"spot-drawer-figure num",children:se(c)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),de.jsxDEV("div",{children:[de.jsxDEV("div",{className:"spot-eyebrow",children:"Net"},void 0,!1,void 0,this),n.holdout?de.jsxDEV("div",{className:"spot-drawer-figure dim",title:"Held out: the model saw the whole result",children:"–"},void 0,!1,void 0,this):de.jsxDEV("div",{className:n.netTokens<0?"spot-drawer-figure num tone-bad":"spot-drawer-figure num tone-ok",children:uo(n.netTokens)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),de.jsxDEV(Po,{items:[{key:"plain",label:"Plain would show",value:M(n.plainTokens)},{key:"out",label:"Tokens out",value:M(n.outTokens)},{key:"in",label:"Full output read",value:M(n.inTokens)},{key:"hidden",label:n.holdout?"Lines it would hide":"Hidden lines",value:M(n.hiddenLines)},{key:"steps",label:"Steps",value:n.steps.length>0?n.steps.join(" → "):"–"},{key:"cost",label:"Spotlight cost",value:Ot(n.spotlightUsd)},{key:"ms",label:"Shaping time",value:Ct(n.shapeMs)}]},void 0,!1,void 0,this),de.jsxDEV("div",{children:[de.jsxDEV("div",{className:"section-label",children:"Call"},void 0,!1,void 0,this),de.jsxDEV("pre",{className:"code-block spot-drawer-call",children:n.target},void 0,!1,void 0,this)]},void 0,!0,void 0,this),de.jsxDEV("div",{children:[de.jsxDEV("div",{className:"section-label",children:"Recovery timeline"},void 0,!1,void 0,this),de.jsxDEV("ol",{className:"spot-timeline",children:[de.jsxDEV("li",{className:"spot-timeline-item","data-kind":n.holdout?"holdout":"cut",children:[de.jsxDEV("span",{className:"spot-timeline-node","aria-hidden":"true",children:de.jsxDEV(Af,{size:12},void 0,!1,void 0,this)},void 0,!1,void 0,this),de.jsxDEV("div",{className:"spot-timeline-body",children:de.jsxDEV("div",{className:"row spot-timeline-head",children:[de.jsxDEV("span",{className:"cell-primary",children:n.holdout?"Held out: the model saw the original":"Shortened"},void 0,!1,void 0,this),de.jsxDEV("span",{className:"dim num",children:[n.holdout&&"would be ",se(n.plainTokens)," → ",se(n.outTokens)," tokens",n.hiddenLines>0&&`, ${M(n.hiddenLines)} lines hidden`]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),n.recoveries.map((f)=>de.jsxDEV("li",{className:"spot-timeline-item","data-kind":f.kind,style:{"--kind":Ds[f.kind].color},children:[de.jsxDEV("span",{className:"spot-timeline-node","aria-hidden":"true",children:de.jsxDEV(df,{size:12},void 0,!1,void 0,this)},void 0,!1,void 0,this),de.jsxDEV("div",{className:"spot-timeline-body",children:[de.jsxDEV("div",{className:"row spot-timeline-head",children:[de.jsxDEV(Dx,{kind:f.kind},void 0,!1,void 0,this),f.turn&&de.jsxDEV(yt,{tone:"warn",children:"extra turn"},void 0,!1,void 0,this),de.jsxDEV("span",{className:"spot-timeline-spacer"},void 0,!1,void 0,this),de.jsxDEV("span",{className:"num tone-warn",children:["+",se(f.tokens)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),de.jsxDEV("code",{className:"spot-timeline-target",title:f.target,children:[de.jsxDEV("span",{className:"dim",children:[f.tool," "]},void 0,!0,void 0,this),f.target]},void 0,!0,void 0,this),de.jsxDEV("div",{className:"micro",children:[f.after===0?"The next call":`${M(f.after)} ${f.after===1?"call":"calls"} later`,` · ${gn(Math.max(0,f.timestamp-n.timestamp))} after the cut`]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)]},f.toolCallId,!0,void 0,this)),de.jsxDEV("li",{className:"spot-timeline-item","data-kind":"net",children:[de.jsxDEV("span",{className:"spot-timeline-node","aria-hidden":"true"},void 0,!1,void 0,this),de.jsxDEV("div",{className:"spot-timeline-body",children:de.jsxDEV("div",{className:"row spot-timeline-head",children:[de.jsxDEV("span",{className:"cell-primary",children:n.holdout?n.recoveries.length===0?"Nothing fetched back":"Fetched more although it saw everything":n.recoveries.length===0?"Nothing fetched back: the full saving stands":"Net"},void 0,!1,void 0,this),de.jsxDEV("span",{className:"spot-timeline-spacer"},void 0,!1,void 0,this),n.holdout?de.jsxDEV("span",{className:"dim",children:"saves nothing"},void 0,!1,void 0,this):de.jsxDEV(F2,{value:n.netTokens},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)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)}var cd=_(We(),1);var vt=_(te(),1),Wq=[{value:"tokens",label:"Tokens"},{value:"usd",label:"$"}];function $2({value:n,onChange:i}){return vt.jsxDEV(qa,{size:"sm","aria-label":"Unit",options:Wq,value:n,onChange:i},void 0,!1,void 0,this)}function X2({stats:n,range:i,stale:l}){let[c,f]=cd.useState("tokens"),y=ea(i),g=cd.useMemo(()=>{let h=to(i,n.series.map((T)=>T.timestamp),y.bucketMs),x=c==="usd",m=da(n.series,h,(T)=>x?T.savedUsd:T.savedTokens),S=da(n.series,h,(T)=>x?T.netUsd:T.netTokens),C=0,I=0,w=[{key:"gross",label:"Gross (cumulative)",color:"var(--spot-gross)",kind:"area",values:m.map((T)=>C+=T)},{key:"clawback",label:x?"Recoveries + Spotlight cost":"Fetched back",color:"var(--spot-clawback)",kind:"bars",values:m.map((T,R)=>S[R]-T)},{key:"net",label:"Net of every fetch-back (cumulative)",color:"var(--spot-net)",kind:"line",values:S.map((T)=>I+=T)}];return{buckets:h,series:w}},[n.series,i,y.bucketMs,c]),v=c==="usd"?vn:uo;return vt.jsxDEV(me,{index:1,title:"Savings over time",description:`Running gross and net per ${pg(y.bucketMs)}; what recoveries took back hangs below zero`,actions:vt.jsxDEV($2,{value:c,onChange:f},void 0,!1,void 0,this),stale:l,footer:c==="usd"?"Dollars price each saved token at the cache-read rate of every later request that would have carried it (plus one cache write); recoveries are priced the same way.":"Gross is what the cuts removed against what plain would have shown; this net subtracts every later call that fetched hidden output back, including the share held-out results show comes back anyway (the headline adds that back). Each lands in the bucket of its own timestamp.",children:[vt.jsxDEV("div",{className:"spot-chart-legend",children:vt.jsxDEV(ra,{items:g.series.map((h)=>({key:h.key,label:h.label,color:h.color}))},void 0,!1,void 0,this)},void 0,!1,void 0,this),vt.jsxDEV(Uo,{buckets:g.buckets,bucketMs:y.bucketMs,series:g.series,stacked:!1,height:480,format:v,formatTooltip:c==="usd"?vn:(h)=>h<0?`−${M(-h)}`:M(h),showTotal:!1,emptyLabel:"No shortened results in this range"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function Y2({stats:n,stale:i}){let[l,c]=cd.useState("tokens"),{gross:f,clawback:y,compounding:g,adjusted:v}=n,h=cd.useMemo(()=>{let x=l==="usd",m=x?g.savedUsd:f.savedTokens,S=(O)=>m>0?Wt(O/m):"",C=cg.map((O)=>{let P=y.byKind[O],j=x?P.usd:P.tokens;return{key:O,label:vt.jsxDEV(vt.Fragment,{children:[vt.jsxDEV("span",{className:"spot-step-swatch",style:{background:Ds[O].color}},void 0,!1,void 0,this),Ds[O].plural,vt.jsxDEV("span",{className:"dim num",children:M(P.events)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),kind:"delta",value:-j,color:Ds[O].color,note:S(j),title:Ds[O].rule}}),I=[{key:"gross",label:x?"Gross saved":"Gross vs plain",kind:"total",value:m,color:"var(--spot-gross)",title:x?"Avoided context priced at each later request's cache-read rate, plus one cache write":"Σ (plain − shortened) tokens over shortened results; a cut that showed more than plain counts negative"},...C];if(x)I.push({key:"turns",label:vt.jsxDEV(vt.Fragment,{children:[vt.jsxDEV("span",{className:"spot-step-swatch",style:{background:"var(--spot-turns)"}},void 0,!1,void 0,this),"Extra turns",vt.jsxDEV("span",{className:"dim num",children:M(y.turns)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),kind:"delta",value:-y.turnsUsd,color:"var(--spot-turns)",note:S(y.turnsUsd),title:"Provider cost of requests that issued nothing but recovery calls"},{key:"spotlight",label:vt.jsxDEV(vt.Fragment,{children:[vt.jsxDEV("span",{className:"spot-step-swatch",style:{background:"var(--spot-cost)"}},void 0,!1,void 0,this),"Spotlight cost"]},void 0,!0,void 0,this),kind:"delta",value:-g.spotlightUsd,color:"var(--spot-cost)",note:S(g.spotlightUsd),title:"Spotlight's own scoring bill"});let w=x?g.netUsd:y.netTokens,T=x?v.netUsd.value:v.netTokens.value;if(T!==null){let O=T-w;I.push({key:"anyway",label:vt.jsxDEV(vt.Fragment,{children:[vt.jsxDEV("span",{className:"spot-step-swatch",style:{background:"var(--spot-anyway)"}},void 0,!1,void 0,this),"Back anyway"]},void 0,!0,void 0,this),kind:"delta",value:O,color:"var(--spot-anyway)",note:S(O),title:"Fetch-backs held-out results (shown whole) show the agent makes regardless, per tool: not the cut's cost"})}let R=T??w;return I.push({key:"net",label:T===null?"Net (no holdout baseline yet)":"Net",kind:"total",value:R,color:"var(--spot-net-fill)",note:S(R)}),I},[l,f,y,g,v]);return vt.jsxDEV(me,{index:2,title:"Where the savings went",description:"Gross, minus each way hidden output came back",actions:vt.jsxDEV($2,{value:l,onChange:c},void 0,!1,void 0,this),stale:i,footer:l==="usd"?"Recoveries are priced as carried context; extra turns are requests that only recovered; Spotlight cost is its own scoring bill. What comes back anyway is the recovery $ in proportion to the tokens held-out results fetch regardless.":"Recovered tokens are the full results of the recovery calls (estimated as chars ÷ 4 where no exact count exists). What comes back anyway is, per tool, the tokens a held-out result gets fetched back times the tool's cuts.",children:[vt.jsxDEV(jI,{steps:h,format:l==="usd"?Ot:se},void 0,!1,void 0,this),vt.jsxDEV("div",{className:"spot-by-tool",children:[vt.jsxDEV("div",{className:"section-label",children:"Net by tool, tokens"},void 0,!1,void 0,this),vt.jsxDEV(Jq,{byTool:f.byTool,adjusted:v.byTool},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)}var Zq=3;function Jq({byTool:n,adjusted:i}){let l=new Map(i.map((v)=>[v.tool,v])),{listed:c,rest:f}=Ko(n,Zq),y=c.map((v)=>{let h=l.get(v.tool),x=h===void 0?"":Xr(h.excessTokens,se),m=h?.baselinePerCut.value??null;return{tool:v.tool,totals:v,excess:h?.excessTokens.value??null,title:h===void 0?void 0:[`${M(h.cuts)} cuts fetched back ${se(h.recoveredTokens)} tokens`,m===null?"No held-out baseline yet":`${M(h.holdouts)} held-out results get ${se(m)} each fetched back anyway`,x===""?"":`Beyond the baseline: ${x} (90%)`].filter(Boolean).join(`
237
+ `)}});if(f.length>0){let v={tool:Un,results:0,shaped:0,inTokens:0,plainTokens:0,outTokens:0,savedTokens:0,fullSavedTokens:0},h=null;for(let x of f){v.results+=x.results,v.shaped+=x.shaped,v.savedTokens+=x.savedTokens;let m=l.get(x.tool)?.excessTokens.value??null;if(m!==null)h=(h??0)+m}y.push({tool:Un,totals:v,excess:h,title:`${M(f.length)} more tools: ${f.map((x)=>x.tool).join(", ")}`})}let g=Math.max(0,...y.map((v)=>v.totals.savedTokens));return vt.jsxDEV("ul",{className:"spot-tool-net",children:y.map(({tool:v,totals:h,excess:x,title:m})=>{let S=x===null?null:h.savedTokens-x,C=_n(v),I=g>0?Math.max(0,h.savedTokens)/g*100:0,w=x!==null&&h.savedTokens>0?Math.min(1,x/h.savedTokens):0;return vt.jsxDEV("li",{className:"spot-tool-net-row",title:m,children:[vt.jsxDEV("div",{className:"row spot-tool-net-head",children:[vt.jsxDEV(C,{size:13,"aria-hidden":"true"},void 0,!1,void 0,this),vt.jsxDEV("span",{className:"cell-primary",children:v},void 0,!1,void 0,this),vt.jsxDEV("span",{className:"dim num",children:[M(h.shaped)," of ",M(h.results)," shortened"]},void 0,!0,void 0,this),vt.jsxDEV("span",{className:"spot-tool-net-value num",title:S===null?"No holdout baseline yet":void 0,children:uo(S??h.savedTokens)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),vt.jsxDEV("div",{className:"spot-tool-net-track","aria-hidden":"true",children:vt.jsxDEV("span",{className:"spot-tool-net-bar",style:{width:`${I}%`},children:vt.jsxDEV("span",{className:"spot-tool-net-excess",style:{width:`${w*100}%`}},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this),vt.jsxDEV("div",{className:"micro spot-tool-net-detail",children:[uo(h.savedTokens)," gross",x!==null&&vt.jsxDEV(vt.Fragment,{children:[" − ",se(x)," beyond baseline"]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)]},v,!0,void 0,this)})},void 0,!1,void 0,this)}var Q2=_(We(),1);var gg=_(te(),1),K2=7,eO=[{group:"shaped",label:"Shaped sessions",color:"var(--spot-shaped)"},{group:"outside",label:"Outside the experiment",color:"var(--spot-outside)"}];function W2({stats:n,range:i,stale:l}){let c=ea(i),f=Q2.useMemo(()=>{let y=to(i,n.share.map((x)=>x.timestamp),c.bucketMs),g=[],v=[];for(let{group:x,label:m,color:S}of eO){let C=n.share.filter((P)=>P.group===x),I=da(C,y,(P)=>P.toolTokens),w=da(C,y,(P)=>P.contextTokens),T=0,R=0,O=y.map((P,j)=>{let Q=0,ue=0;for(let Z=Math.max(0,j-K2+1);Z<=j;Z++)Q+=I[Z],ue+=w[Z];return T+=I[j],R+=w[j],ue>0?Q/ue:null});if(R===0)continue;g.push({key:`${x}:raw`,label:`${m} · bucket`,color:S,kind:"dots",values:y.map((P,j)=>w[j]>0?I[j]/w[j]:null)},{key:`${x}:avg`,label:`${m} · rolling`,color:S,kind:"line",values:O}),v.push({key:x,label:m,color:S,value:Wt(T/R)})}let h=[];if(n.experimentStart!==null){let x=Math.floor(n.experimentStart/c.bucketMs)*c.bucketMs,m=y.indexOf(x);if(m>=0)h.push({index:m,label:"experiment starts"})}return{buckets:y,series:g,legend:v,markers:h}},[n.share,n.experimentStart,i,c.bucketMs]);return gg.jsxDEV(me,{index:4,title:"Tool-output share of context",description:n.experimentStart!==null&&f.markers.length===0?`Since ${Zu(n.experimentStart,86400000)}, shaped sessions should carry less tool output`:"Shaped sessions should carry less tool output than the rest of your history",actions:gg.jsxDEV(ra,{items:f.legend},void 0,!1,void 0,this),stale:l,footer:`Tool tokens are result chars ÷ 4; context adds assistant output, your prompts (chars ÷ 4) and each session's first prompt. Dots are single buckets (one ${pg(c.bucketMs)}); lines are the trailing ${K2}-bucket ratio of sums.`,children:gg.jsxDEV(Uo,{buckets:f.buckets,bucketMs:c.bucketMs,series:f.series,markers:f.markers,stacked:!1,height:260,format:(y)=>Fe(y,0),formatTooltip:(y)=>Fe(y),showTotal:!1,emptyLabel:"No tool calls in this range"},void 0,!1,void 0,this)},void 0,!1,void 0,this)}var yg=_(We(),1);var $e=_(te(),1),eR=10,tO=30,Z2=4;function aO(n,i){let l=new Map;for(let c of n){if(c.tool!==i)continue;let f=l.get(c.steps);if(f===void 0)f={steps:c.steps,bySize:new Map,total:{cuts:0,savedTokens:0,excessTokens:0}},l.set(c.steps,f);f.bySize.set(c.size,c),f.total.cuts+=c.cuts,f.total.savedTokens+=c.savedTokens,f.total.excessTokens+=c.excessTokens}return[...l.values()].sort((c,f)=>Number(c.steps==="other")-Number(f.steps==="other")||f.total.savedTokens-c.total.savedTokens)}function J2({kept:n,cuts:i,title:l,children:c}){if(n===null)return $e.jsxDEV("div",{className:"spot-econ-cell","data-empty":"true",title:l,children:$e.jsxDEV("span",{className:"dim",children:"No saving"},void 0,!1,void 0,this)},void 0,!1,void 0,this);let f=Z2+Math.min(1,Math.abs(n-0.5)*2)*(tO-Z2);return $e.jsxDEV("div",{className:"spot-econ-cell","data-tone":n>=0.5?"ok":"bad","data-thin":i<eR,style:{"--tint":`${f}%`},title:l,children:[$e.jsxDEV("span",{className:"spot-econ-net num",children:[Wt(n),$e.jsxDEV("span",{className:"spot-steps-unit",children:" kept"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),$e.jsxDEV("dl",{className:"spot-econ-facts",children:c},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function tR({stats:n,stale:i}){let[l,c]=yg.useState(!1),f=Hi(n).flatMap((h)=>{let x=aO(n.steps,h);return x.length===0?[]:[{tool:h,rows:x}]}),{listed:y,rest:g}=Ko(f),v=l?f:y;return $e.jsxDEV(me,{index:5,title:"Which cuts pay",description:"Share of each kind of cut's saving that stays saved after fetch-backs beyond the holdout baseline, by size",actions:$e.jsxDEV("span",{className:"spot-econ-scale","aria-hidden":"true",children:[$e.jsxDEV("span",{className:"num",children:"0%"},void 0,!1,void 0,this),$e.jsxDEV("span",{className:"spot-econ-ramp"},void 0,!1,void 0,this),$e.jsxDEV("span",{className:"num",children:"100% kept"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),stale:i,footer:`Scored and score-free cuts. Kept = (saved − fetch-back beyond the tool's holdout baseline) ÷ saved; fetched back is the share of cuts the agent came back for within 12 calls. Sizes are the tokens a cut saved against plain; step combinations under 10 cuts fold into "other". Cells under ${eR} cuts are dimmed.`,children:v.length===0?$e.jsxDEV("div",{className:"empty",children:"No shortened results in this range."},void 0,!1,void 0,this):$e.jsxDEV($e.Fragment,{children:[$e.jsxDEV("div",{className:"spot-steps-scroll",children:$e.jsxDEV("table",{className:"spot-econ spot-steps",children:[$e.jsxDEV("thead",{children:$e.jsxDEV("tr",{children:[$e.jsxDEV("th",{scope:"col",children:"Steps"},void 0,!1,void 0,this),fg.map((h)=>$e.jsxDEV("th",{scope:"col",className:"num",children:[h," ",$e.jsxDEV("span",{className:"dim",children:"saved"},void 0,!1,void 0,this)]},h,!0,void 0,this)),$e.jsxDEV("th",{scope:"col",children:"All sizes"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this),$e.jsxDEV("tbody",{children:v.map(({tool:h,rows:x})=>{let m=_n(h);return $e.jsxDEV(yg.Fragment,{children:[$e.jsxDEV("tr",{className:"spot-steps-tool",children:$e.jsxDEV("th",{scope:"rowgroup",colSpan:fg.length+2,children:$e.jsxDEV("span",{className:"row spot-econ-tool",children:[$e.jsxDEV(m,{size:13,"aria-hidden":"true"},void 0,!1,void 0,this),h]},void 0,!0,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this),x.map((S)=>{let{total:C}=S,I=C.savedTokens>0?(C.savedTokens-C.excessTokens)/C.savedTokens:null;return $e.jsxDEV("tr",{children:[$e.jsxDEV("th",{scope:"row",className:"spot-steps-name",title:S.steps,children:S.steps},void 0,!1,void 0,this),fg.map((w)=>{let T=S.bySize.get(w);if(T===void 0||T.cuts===0)return $e.jsxDEV("td",{children:$e.jsxDEV("div",{className:"spot-econ-cell","data-empty":"true",children:$e.jsxDEV("span",{className:"dim",children:"–"},void 0,!1,void 0,this)},void 0,!1,void 0,this)},w,!1,void 0,this);let R=Xr(T.fetchBackRate,Wt);return $e.jsxDEV("td",{children:$e.jsxDEV(J2,{kept:T.keptShare,cuts:T.cuts,title:[`${h} · ${S.steps} · ${w} saved: ${M(T.cuts)} cuts`,`Saved ${se(T.savedTokens)}, fetched back ${se(T.recoveredTokens)}, ${se(T.excessTokens)} beyond the baseline`,`Fetched back after ${Wt(T.fetchBackRate.value)} of cuts${R===""?"":` (${R})`}`].join(`
238
+ `),children:[$e.jsxDEV("div",{children:[$e.jsxDEV("dt",{children:"cuts"},void 0,!1,void 0,this),$e.jsxDEV("dd",{className:"num",children:M(T.cuts)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),$e.jsxDEV("div",{children:[$e.jsxDEV("dt",{children:"fetched back"},void 0,!1,void 0,this),$e.jsxDEV("dd",{className:"num",children:Wt(T.fetchBackRate.value)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)},w,!1,void 0,this)}),$e.jsxDEV("td",{children:$e.jsxDEV(J2,{kept:I,cuts:C.cuts,title:`${h} · ${S.steps}: ${M(C.cuts)} cuts saved ${se(C.savedTokens)}, ${se(C.excessTokens)} fetched back beyond the baseline`,children:[$e.jsxDEV("div",{children:[$e.jsxDEV("dt",{children:"cuts"},void 0,!1,void 0,this),$e.jsxDEV("dd",{className:"num",children:M(C.cuts)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),$e.jsxDEV("div",{children:[$e.jsxDEV("dt",{children:"saved"},void 0,!1,void 0,this),$e.jsxDEV("dd",{className:"num",children:se(C.savedTokens)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)]},S.steps,!0,void 0,this)})]},h,!0,void 0,this)})},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this),g.length>0&&$e.jsxDEV(Wf,{hidden:g.map((h)=>h.tool),expanded:l,onToggle:()=>c((h)=>!h)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)}var xo=_(te(),1),oO=[{key:"fetch",label:"Fetch-back turns",color:"var(--spot-turns)"},{key:"shape",label:"Shaping",color:"var(--spot-cost)"}];function aR({stats:n,stale:i}){let l=n.timeCost,c=l.agentMs>0?l.fetchBackMs/l.agentMs:0,f=l.agentMs>0?l.shapeMs/l.agentMs:0,y=c+f,g=y>0?y*1.15:1,v=c/g*100,h=f/g*100;return xo.jsxDEV(me,{index:3,title:"Time cost",description:"Share of the experiment sessions' model time spent on requests that only fetched cut output back, plus the time tool calls spent shaping",actions:xo.jsxDEV(ra,{items:oO},void 0,!1,void 0,this),stale:i,footer:`Model time is the summed duration of the experiment sessions' requests. A fetch-back turn is a request whose every tool call fetched back output a cut hid; shaping is the wall time tool calls spent shaping (Spotlight's requests included, held-out results too). Bars run to ${Wt(g)} of model time.`,children:l.agentMs===0?xo.jsxDEV("div",{className:"empty",children:"No experiment requests in this range."},void 0,!1,void 0,this):xo.jsxDEV("ul",{className:"spot-time",children:xo.jsxDEV("li",{className:"spot-time-row",children:[xo.jsxDEV("span",{className:"spot-time-label",children:"Shaped sessions"},void 0,!1,void 0,this),xo.jsxDEV("span",{className:"spot-time-track","aria-hidden":"true",children:[xo.jsxDEV("span",{className:"spot-time-fill",style:{width:`${v}%`,background:"var(--spot-turns)"}},void 0,!1,void 0,this),xo.jsxDEV("span",{className:"spot-time-fill",style:{width:`${h}%`,background:"var(--spot-cost)"}},void 0,!1,void 0,this)]},void 0,!0,void 0,this),xo.jsxDEV("span",{className:"spot-time-share num",children:Wt(y)},void 0,!1,void 0,this),xo.jsxDEV("span",{className:"spot-time-detail",children:[xo.jsxDEV("span",{className:"num",children:gn(l.fetchBackMs)},void 0,!1,void 0,this)," in"," ",xo.jsxDEV("span",{className:"num",children:M(l.fetchBackTurns)},void 0,!1,void 0,this)," ",l.fetchBackTurns===1?"turn":"turns"," ·"," ",xo.jsxDEV("span",{className:"num",children:gn(l.shapeMs)},void 0,!1,void 0,this)," shaping",xo.jsxDEV("span",{className:"dim",children:[" ","of ",xo.jsxDEV("span",{className:"num",children:gn(l.agentMs)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this)}var bt=_(te(),1),nO=[{value:"all",label:"All",title:"Every experiment session, subagents and advisors included"},{value:"main",label:"Main",title:"Sessions you drove: the main agent only"},{value:"subagent",label:"Subagents",title:"Sessions the task tool spawned"}],rO={all:"",main:"main-agent ",subagent:"subagent "};function vg({id:n,title:i,children:l}){return bt.jsxDEV("header",{className:"spot-section rise",id:n,children:[bt.jsxDEV("h2",{className:"spot-section-title",children:i},void 0,!1,void 0,this),bt.jsxDEV("p",{className:"spot-section-copy",children:l},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function nR({active:n,range:i}){let[l,c]=oR.useState("all"),f=Ft(["spotlight",i,l],({signal:v})=>uI(i,l,v),{enabled:n}),y=ea(i),g=f.data?.experimentStart??null;return bt.jsxDEV("div",{className:"page spot-page",children:[bt.jsxDEV(ha,{title:"Spotlight",description:`What shaping tool output saved in ${u(y.windowKey)} against what pi would have shown unshaped, after taking back what the agent fetched again because of a cut.`,actions:bt.jsxDEV(qa,{"aria-label":"Sessions",options:nO,value:l,onChange:c},void 0,!1,void 0,this)},void 0,!1,void 0,this),bt.jsxDEV(_e,{query:f,skeleton:bt.jsxDEV(Et,{height:220},void 0,!1,void 0,this),isEmpty:(v)=>v.sessions===0&&v.recent.length===0,empty:bt.jsxDEV(me,{children:bt.jsxDEV("div",{className:"spot-empty",children:[bt.jsxDEV("span",{className:"spot-empty-icon","aria-hidden":"true",children:bt.jsxDEV(Ls,{size:20},void 0,!1,void 0,this)},void 0,!1,void 0,this),bt.jsxDEV("h2",{className:"spot-empty-title",children:g===null?"The Spotlight experiment hasn't run yet":`No ${rO[l]}experiment sessions in ${u(y.windowKey)}`},void 0,!1,void 0,this),bt.jsxDEV("p",{className:"spot-empty-hint",children:g===null?bt.jsxDEV(bt.Fragment,{children:["Turn it on with ",bt.jsxDEV("code",{children:"spotlight.experiment.enabled"},void 0,!1,void 0,this)," in your settings or"," ",bt.jsxDEV("code",{children:"PI_SPOTLIGHT_EXPERIMENT=1"},void 0,!1,void 0,this),". Every session then shapes tool output, a random share of results is held out unshaped as the counterfactual, and this page tracks what the cuts save as you work."]},void 0,!0,void 0,this):l==="all"?"Try a longer range, or start a session with the experiment enabled.":"Try a longer range, or switch to All sessions."},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this),children:(v)=>bt.jsxDEV(bt.Fragment,{children:[bt.jsxDEV(P2,{stats:v,windowLabel:u(y.windowKey),stale:f.stale},void 0,!1,void 0,this),bt.jsxDEV(vg,{id:"spot-saved",title:"What it saved",children:"Where the saving came from, what fetch-backs took back, and what later requests no longer carry."},void 0,!1,void 0,this),bt.jsxDEV("div",{className:"grid grid-main-side",children:[bt.jsxDEV(X2,{stats:v,range:i,stale:f.stale},void 0,!1,void 0,this),bt.jsxDEV(Y2,{stats:v,stale:f.stale},void 0,!1,void 0,this)]},void 0,!0,void 0,this),bt.jsxDEV(D2,{stats:v,active:n,stale:f.stale},void 0,!1,void 0,this),bt.jsxDEV(W2,{stats:v,range:i,stale:f.stale},void 0,!1,void 0,this),bt.jsxDEV(vg,{id:"spot-cost",title:"What it cost",children:"Agent time, Spotlight's latency and failures, and whether shaped sessions got worse."},void 0,!1,void 0,this),bt.jsxDEV(aR,{stats:v,stale:f.stale},void 0,!1,void 0,this),bt.jsxDEV(_2,{stats:v,stale:f.stale},void 0,!1,void 0,this),bt.jsxDEV(vg,{id:"spot-work",title:"Is Spotlight doing the work?",children:"Whether its heat finds the lines the agent needs, and whether its cuts come back less than cuts made without it."},void 0,!1,void 0,this),bt.jsxDEV(H2,{stats:v,stale:f.stale},void 0,!1,void 0,this),bt.jsxDEV(B2,{stats:v,stale:f.stale},void 0,!1,void 0,this),bt.jsxDEV(z2,{stats:v,stale:f.stale},void 0,!1,void 0,this),bt.jsxDEV(vg,{id:"spot-tune",title:"Where to tune",children:"Which steps, sizes and tools pay, and which tools Spotlight doesn't shape yet."},void 0,!1,void 0,this),bt.jsxDEV(tR,{stats:v,stale:f.stale},void 0,!1,void 0,this),bt.jsxDEV(q2,{stats:v,stale:f.stale},void 0,!1,void 0,this),bt.jsxDEV(E2,{stats:v,stale:f.stale},void 0,!1,void 0,this),bt.jsxDEV(j2,{rows:v.recent,stale:f.stale},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 Fi=_(We(),1);var xe=_(te(),1);function sO(){return[{value:"calls",label:u("tools.calls")},{value:"errors",label:u("tools.errors")}]}var rR=6;function lO(n){if(n<3600000)return u("tools.bucket-5m");if(n<86400000)return u("tools.bucket-hour");return u("tools.bucket-day")}function sR({active:n,range:i}){let l=xe.jsxDEV(mt,{title:u("tools.no-tool-calls")},void 0,!1,void 0,this),c=Ft(["tools",i],({signal:T})=>cI(i,T),{enabled:n}),[f,y]=Fi.useState("calls"),[g,v]=Pn(),[h,x]=Fi.useState(null),m=ea(i),S=Fi.useMemo(()=>iO(c.data,i),[c.data,i]),C=h!==null&&S.toolNames.includes(h)?h:null,I=f==="calls"?S.callSeries:S.errorSeries,w=(T)=>T.byTool.length===0;return xe.jsxDEV("div",{className:"page",children:[xe.jsxDEV(ha,{title:u("tools.title"),description:u("tools.description",{window:u(m.windowKey)})},void 0,!1,void 0,this),xe.jsxDEV(_e,{query:c,skeleton:xe.jsxDEV(Et,{height:112},void 0,!1,void 0,this),children:()=>{let T=S.totals;return xe.jsxDEV("div",{"data-stale":c.stale,className:"stack",style:{gap:16},children:[xe.jsxDEV(Sa,{min:190,children:[xe.jsxDEV(ie,{label:u("tools.tool-calls"),value:M(T.calls),hint:u("tools.failed-n",{count:M(T.errors)}),spark:S.totalCalls},void 0,!1,void 0,this),xe.jsxDEV(ie,{label:u("tools.distinct-tools"),value:M(T.tools),hint:S.rows[0]?u("tools.most-used",{tool:S.rows[0].tool}):void 0},void 0,!1,void 0,this),xe.jsxDEV(ie,{label:u("common.error-rate"),title:u("tools.error-rate-title"),value:Io(T.calls>0?T.errors/T.calls:0),hint:u("tools.succeeded-n",{count:M(T.calls-T.errors)}),spark:S.totalErrors,sparkColor:"var(--bad)"},void 0,!1,void 0,this),xe.jsxDEV(ie,{label:u("tools.attributed-tokens"),title:u("tools.attribution-note"),value:se(Math.round(T.tokens)),hint:u("tools.tokens-output",{tokens:se(Math.round(T.output))})},void 0,!1,void 0,this),xe.jsxDEV(ie,{label:u("tools.attributed-cost"),title:u("tools.attribution-estimate",{note:u("tools.attribution-note")}),value:ta(T.cost,T.unpriced),hint:T.unpriced>0?u("tools.unpriced-requests-n",{count:M(Math.round(T.unpriced))}):u("tools.api-equivalent")},void 0,!1,void 0,this)]},void 0,!0,void 0,this),xe.jsxDEV(Sa,{min:150,children:[xe.jsxDEV(ie,{size:"sm",label:u("tools.result-text"),title:u("tools.result-chars-title"),value:u("tools.chars",{count:se(T.resultChars)})},void 0,!1,void 0,this),xe.jsxDEV(ie,{size:"sm",label:u("tools.call-arguments"),title:u("tools.args-chars-title"),value:u("tools.chars",{count:se(T.argsChars)})},void 0,!1,void 0,this),xe.jsxDEV(ie,{size:"sm",label:u("tools.avg-result-per-call"),value:u("tools.chars",{count:se(T.calls>0?Math.round(T.resultChars/T.calls):0)})},void 0,!1,void 0,this),xe.jsxDEV(ie,{size:"sm",label:u("tools.avg-args-per-call"),value:u("tools.chars",{count:se(T.calls>0?Math.round(T.argsChars/T.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),xe.jsxDEV(me,{index:1,title:f==="calls"?u("tools.calls-over-time"):u("tools.errors-over-time"),description:u("tools.chart-description",{bucket:lO(m.bucketMs),count:rR}),actions:xe.jsxDEV(qa,{size:"sm",options:sO(),value:f,onChange:y},void 0,!1,void 0,this),stale:c.stale,children:xe.jsxDEV(_e,{query:c,skeleton:xe.jsxDEV(Et,{height:260},void 0,!1,void 0,this),isEmpty:w,empty:l,children:()=>xe.jsxDEV("div",{className:"stack",style:{gap:12},children:[xe.jsxDEV(Uo,{buckets:S.buckets,bucketMs:m.bucketMs,series:I,hidden:g,height:260,formatTooltip:M,emptyLabel:f==="errors"?u("tools.no-tool-errors"):void 0},void 0,!1,void 0,this),xe.jsxDEV(ra,{items:I.map((T)=>({key:T.key,label:T.label,color:T.color,value:se(T.values.reduce((R,O)=>R+(O??0),0))})),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),xe.jsxDEV(me,{index:2,title:u("tools.by-tool"),description:u("tools.by-tool-description",{note:u("tools.attribution-note")}),flush:!0,stale:c.stale,children:xe.jsxDEV(_e,{query:c,skeleton:xe.jsxDEV(ka,{rows:8},void 0,!1,void 0,this),isEmpty:w,empty:l,children:()=>xe.jsxDEV(Ut,{rows:S.rows,rowKey:(T)=>T.tool,columns:S.toolColumns,initialSort:{key:"calls",dir:"desc"},limit:20,selectedKey:C,onRowClick:(T)=>x((R)=>R===T.tool?null:T.tool),dense:!0},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this),xe.jsxDEV(me,{index:3,title:u("tools.by-tool-and-model"),description:u("tools.by-tool-and-model-description"),flush:!0,stale:c.stale,actions:xe.jsxDEV("div",{className:"row",style:{gap:6},children:[xe.jsxDEV("select",{className:"input tools-filter",value:C??"",onChange:(T)=>x(T.target.value||null),"aria-label":u("tools.filter-by-tool"),children:[xe.jsxDEV("option",{value:"",children:u("tools.all-tools")},void 0,!1,void 0,this),S.toolNames.map((T)=>xe.jsxDEV("option",{value:T,children:T},T,!1,void 0,this))]},void 0,!0,void 0,this),C!==null&&xe.jsxDEV("button",{type:"button",className:"btn","data-size":"sm","data-variant":"ghost","data-icon":"true",title:u("tools.clear-tool-filter"),"aria-label":u("tools.clear-tool-filter"),onClick:()=>x(null),children:xe.jsxDEV(To,{size:13},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),children:xe.jsxDEV(_e,{query:c,skeleton:xe.jsxDEV(ka,{rows:8},void 0,!1,void 0,this),isEmpty:w,empty:l,children:(T)=>xe.jsxDEV(dO,{rows:T.byToolModel,tool:C,colors:S.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 iO(n,i){let l=n?.byTool??[],c=n?.series??[],f=a2(l).sort((I,w)=>w.calls-I.calls),y=Ff(l.map((I)=>({key:I.tool,weight:I.calls}))),g=to(i,c.map((I)=>I.timestamp)),v={calls:0,errors:0,tools:l.length,tokens:0,output:0,cost:0,unpriced:0,resultChars:0,argsChars:0};for(let I of l)v.calls+=I.calls,v.errors+=I.errors,v.tokens+=I.totalTokensShare,v.output+=I.outputTokensShare,v.cost+=I.costShare,v.unpriced+=I.unpricedRequestsShare,v.resultChars+=I.resultChars,v.argsChars+=I.argsChars;let[h,x]=[(I)=>I.calls,(I)=>I.errors].map((I)=>$r(c,{buckets:g,key:(w)=>w.tool,value:I,limit:rR,colors:y}).map((w)=>({...w,values:w.values.map((T)=>T||null)}))),m=new Map($r(c,{buckets:g,key:(I)=>I.tool,value:(I)=>I.calls}).map((I)=>[I.key,I.values])),S=f[0]?.calls??0,C=uO(S,y,m);return{rows:f,colors:y,buckets:g,totals:v,callSeries:h,errorSeries:x,totalCalls:da(c,g,(I)=>I.calls),totalErrors:da(c,g,(I)=>I.errors),toolNames:f.map((I)=>I.tool).sort((I,w)=>I.localeCompare(w)),toolColumns:C}}function uO(n,i,l){return[{key:"tool",header:u("tools.tool"),sort:(c)=>c.tool,render:(c)=>xe.jsxDEV("span",{className:"row",style:{gap:8},children:[xe.jsxDEV(tr,{color:i.get(c.tool)??Ro},void 0,!1,void 0,this),xe.jsxDEV("span",{className:"mono truncate tools-name",title:c.tool,children:c.tool},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},{key:"trend",header:u("tools.trend"),title:u("tools.trend-title"),render:(c)=>{let f=l.get(c.tool);return f&&f.length>1?xe.jsxDEV(od,{values:f,width:80,height:20,color:i.get(c.tool)??Ro},void 0,!1,void 0,this):xe.jsxDEV("span",{className:"dim",children:"–"},void 0,!1,void 0,this)}},{key:"calls",header:u("tools.calls"),align:"right",sort:(c)=>c.calls,render:(c)=>xe.jsxDEV(Ra,{value:c.calls,max:n,display:xe.jsxDEV("span",{title:u("tools.share-of-calls",{percent:Fe(c.callFraction)}),children:[M(c.calls),xe.jsxDEV("span",{className:"dim tools-share",children:Fe(c.callFraction,0)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)},{key:"errorRate",header:u("tools.errors"),title:u("tools.errors-title"),align:"right",sort:(c)=>c.errorRate,render:(c)=>xe.jsxDEV("span",{className:"row",style:{gap:8,justifyContent:"flex-end"},children:[xe.jsxDEV("span",{className:"num dim",children:M(c.errors)},void 0,!1,void 0,this),xe.jsxDEV(yt,{tone:c.errors>0?hn(c.errorRate):"neutral",mono:!0,children:Io(c.errorRate)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},{key:"args",header:u("tools.args"),title:u("tools.args-chars-title"),align:"right",sort:(c)=>c.argsChars,render:(c)=>xe.jsxDEV("span",{className:"num",children:se(c.argsChars)},void 0,!1,void 0,this)},{key:"result",header:u("tools.result"),title:u("tools.result-chars-title"),align:"right",sort:(c)=>c.resultChars,render:(c)=>xe.jsxDEV("span",{className:"num",children:se(c.resultChars)},void 0,!1,void 0,this)},{key:"avgResult",header:u("tools.result-per-call"),title:u("tools.result-per-call-title"),align:"right",sort:(c)=>c.avgResultChars,render:(c)=>xe.jsxDEV("span",{className:"num muted",children:se(Math.round(c.avgResultChars))},void 0,!1,void 0,this)},{key:"tokens",header:u("tools.attr-tokens"),title:u("tools.attribution-note"),align:"right",sort:(c)=>c.totalTokensShare,render:(c)=>xe.jsxDEV("span",{className:"num",title:u("tools.share-of-tokens",{percent:Fe(c.tokenFraction)}),children:[se(Math.round(c.totalTokensShare)),xe.jsxDEV("span",{className:"dim tools-share",children:Fe(c.tokenFraction,0)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},{key:"cost",header:u("tools.attr-cost"),title:u("tools.attribution-estimate",{note:u("tools.attribution-note")}),align:"right",sort:(c)=>c.costShare,render:(c)=>xe.jsxDEV("span",{className:"num",title:u("tools.share-of-cost",{percent:Fe(c.costFraction)}),children:[ta(c.costShare,c.unpricedRequestsShare),xe.jsxDEV("span",{className:"dim tools-share",children:Fe(c.costFraction,0)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},{key:"lastUsed",header:u("tools.last-used"),align:"right",sort:(c)=>c.lastUsed,render:(c)=>xe.jsxDEV("span",{className:"muted",children:La(c.lastUsed)},void 0,!1,void 0,this)}]}function dO({rows:n,tool:i,colors:l}){let c=Fi.useMemo(()=>(i===null?n:n.filter((y)=>y.tool===i)).map((y)=>({...y,errorRate:y.calls>0?y.errors/y.calls:0})),[n,i]),f=Fi.useMemo(()=>{let y=c.reduce((g,v)=>Math.max(g,v.calls),0);return[{key:"tool",header:u("tools.tool"),sort:(g)=>g.tool,render:(g)=>xe.jsxDEV("span",{className:"row",style:{gap:8},children:[xe.jsxDEV(tr,{color:l.get(g.tool)??Ro},void 0,!1,void 0,this),xe.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:u("common.model"),sort:(g)=>g.model,render:(g)=>xe.jsxDEV(io,{primary:xe.jsxDEV("span",{className:"mono",children:g.model||u("common.unknown")},void 0,!1,void 0,this),secondary:g.provider},void 0,!1,void 0,this)},{key:"calls",header:u("tools.calls"),align:"right",sort:(g)=>g.calls,render:(g)=>xe.jsxDEV(Ra,{value:g.calls,max:y,display:M(g.calls)},void 0,!1,void 0,this)},{key:"errorRate",header:u("tools.errors"),align:"right",sort:(g)=>g.errorRate,render:(g)=>xe.jsxDEV("span",{className:"row",style:{gap:8,justifyContent:"flex-end"},children:[xe.jsxDEV("span",{className:"num dim",children:M(g.errors)},void 0,!1,void 0,this),xe.jsxDEV(yt,{tone:g.errors>0?hn(g.errorRate):"neutral",mono:!0,children:Io(g.errorRate)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},{key:"result",header:u("tools.result"),title:u("tools.result-chars-title"),align:"right",sort:(g)=>g.resultChars,render:(g)=>xe.jsxDEV("span",{className:"num",children:se(g.resultChars)},void 0,!1,void 0,this)},{key:"tokens",header:u("tools.attr-tokens"),title:u("tools.attribution-note"),align:"right",sort:(g)=>g.totalTokensShare,render:(g)=>xe.jsxDEV("span",{className:"num",children:se(Math.round(g.totalTokensShare))},void 0,!1,void 0,this)},{key:"cost",header:u("tools.attr-cost"),title:u("tools.attribution-estimate",{note:u("tools.attribution-note")}),align:"right",sort:(g)=>g.costShare,render:(g)=>xe.jsxDEV("span",{className:"num",children:ta(g.costShare,g.unpricedRequestsShare)},void 0,!1,void 0,this)},{key:"lastUsed",header:u("tools.last-used"),align:"right",sort:(g)=>g.lastUsed,render:(g)=>xe.jsxDEV("span",{className:"muted",children:La(g.lastUsed)},void 0,!1,void 0,this)}]},[c,l]);return xe.jsxDEV(Ut,{rows:c,rowKey:(y)=>`${y.tool}::${y.model}::${y.provider}`,columns:f,initialSort:{key:"calls",dir:"desc"},limit:25,dense:!0,empty:xe.jsxDEV(mt,{title:i?u("tools.no-calls-to-tool",{tool:i}):u("tools.no-tool-calls")},void 0,!1,void 0,this)},void 0,!1,void 0,this)}var gd=_(We(),1);var Vt=_(We(),1);var Yr=_(te(),1);function lR({toolStats:n,index:i}){if(n.length===0)return null;let l=Math.max(...n.map((f)=>f.totalMs)),c=[{key:"tool",header:u("trace.tool"),render:(f)=>Yr.jsxDEV("span",{className:"mono",children:f.tool},void 0,!1,void 0,this),sort:(f)=>f.tool},{key:"calls",header:u("trace.calls"),align:"right",render:(f)=>Yr.jsxDEV("span",{className:"num",children:M(f.calls)},void 0,!1,void 0,this),sort:(f)=>f.calls},{key:"errors",header:u("trace.errors"),align:"right",render:(f)=>f.errors>0?Yr.jsxDEV(yt,{tone:"bad",children:u("trace.failed-n",{count:M(f.errors)})},void 0,!1,void 0,this):Yr.jsxDEV("span",{className:"num dim",children:"0"},void 0,!1,void 0,this),sort:(f)=>f.errors},{key:"total",header:u("common.total"),align:"right",width:200,render:(f)=>Yr.jsxDEV(Ra,{value:f.totalMs,max:l,display:Ct(f.totalMs),color:"var(--warn)"},void 0,!1,void 0,this),sort:(f)=>f.totalMs},{key:"avg",header:u("trace.avg"),align:"right",render:(f)=>Yr.jsxDEV("span",{className:"num",children:Ct(f.calls>0?f.totalMs/f.calls:0)},void 0,!1,void 0,this),sort:(f)=>f.calls>0?f.totalMs/f.calls:0},{key:"max",header:u("trace.max"),align:"right",render:(f)=>Yr.jsxDEV("span",{className:"num",children:Ct(f.maxMs)},void 0,!1,void 0,this),sort:(f)=>f.maxMs}];return Yr.jsxDEV(me,{title:u("trace.tool-aggregates"),description:u("trace.tool-aggregates-desc",{count:n.length}),flush:!0,index:i,children:Yr.jsxDEV(Ut,{columns:c,rows:n,rowKey:(f)=>f.tool,dense:!0,limit:12},void 0,!1,void 0,this)},void 0,!1,void 0,this)}var bn=_(We(),1);var Kr=_(We(),1),cO=Kr.createContext(null),Gi={turn:"--ink-2",model:"--chart-primary",tool:"--warn",subagent:"--chart-secondary",background:"--ink-4"};function fO(n){let i=getComputedStyle(n),l=(c,f)=>i.getPropertyValue(c).trim()||f;return{category:{turn:l(Gi.turn,"#a0a0a8"),model:l(Gi.model,"#5ad8e6"),tool:l(Gi.tool,"#f5a524"),subagent:l(Gi.subagent,"#ed4abf"),background:l(Gi.background,"#46464c")},error:l("--bad","#ff6166"),errorSoft:l("--bad-soft","rgba(255, 97, 102, 0.13)"),marker:l("--ink-1","#ededef"),turnBand:l("--hover","rgba(255, 255, 255, 0.035)"),grid:l("--chart-grid","rgba(255, 255, 255, 0.055)"),tick:l("--chart-axis","#5c5c64"),spanText:l("--ink-inverse","#0a0a0b"),selection:l("--focus","#5ad8e6"),brush:l("--selected","rgba(255, 255, 255, 0.075)"),fontSans:l("--font-sans","system-ui, sans-serif"),fontMono:l("--font-mono","ui-monospace, monospace")}}function fd(){let n=Kr.useContext(cO)??document.documentElement,[i,l]=Kr.useState(0);return Kr.useEffect(()=>{let c=new MutationObserver(()=>l((y)=>y+1)),f={attributes:!0,attributeFilter:["data-theme","style","class"]};if(c.observe(document.documentElement,f),n!==document.documentElement)c.observe(n,f);return()=>c.disconnect()},[n]),Kr.useMemo(()=>fO(n),[n,i])}var dR=_(te(),1),zl=44,Jf=["turn","model","tool","subagent"],iR=6,pd=10;function pO(n,i,l,c){let f=devicePixelRatio,y=Math.floor(l*f),g=Math.floor(zl*f),v,h;if(typeof OffscreenCanvas>"u"){let w=document.createElement("canvas");w.width=y,w.height=g,v=w,h=w.getContext("2d")}else{let w=new OffscreenCanvas(y,g);v=w,h=w.getContext("2d")}if(!h)return v;h.setTransform(f,0,0,f,0,0);let[x,m]=i.domain,S=Math.max(m-x,0.000000001),C=Jf.map(()=>new Float32Array(l));for(let w of n)for(let T of w.spans){let R=Jf.indexOf(T.kind);if(R===-1)continue;let O=C[R],P=Math.max(0,Math.floor((i.toU(T.start)-x)/S*l)),j=Math.min(l-1,Math.ceil((i.toU(T.end)-x)/S*l));for(let Q=P;Q<=j;Q++)O[Q]=Math.min(1,O[Q]+0.34)}let I=zl/Jf.length;for(let w=0;w<Jf.length;w++){let T=C[w];h.fillStyle=c.category[Jf[w]];for(let R=0;R<l;R++){if(T[R]<=0)continue;h.globalAlpha=0.25+T[R]*0.75,h.fillRect(R,w*I+1,1,I-2)}h.globalAlpha=1}return v}function uR({tracks:n,scale:i,viewport:l,onViewportChange:c}){let f=fd(),y=bn.useRef(null),[g,v]=bn.useState(800),h=bn.useRef(null);bn.useEffect(()=>{let P=y.current;if(!P)return;let j=new ResizeObserver((Q)=>{v(Math.max(100,Math.floor(Q[0].contentRect.width)))});return j.observe(P),()=>j.disconnect()},[]);let[x,m]=i.domain,S=Math.max(m-x,0.000000001),C=bn.useCallback((P)=>(P-x)/S*g,[x,S,g]),I=bn.useCallback((P)=>x+P/Math.max(g,1)*S,[x,S,g]),w=bn.useMemo(()=>pO(n,i,g,f),[n,i,g,f]);bn.useEffect(()=>{let P=y.current;if(!P)return;let j=P.getContext("2d");if(!j)return;let Q=devicePixelRatio;j.setTransform(1,0,0,1,0,0),j.clearRect(0,0,P.width,P.height),j.drawImage(w,0,0),j.setTransform(Q,0,0,Q,0,0);let ue=C(l.u0),Z=C(l.u1);j.fillStyle=f.brush,j.fillRect(ue,0,Z-ue,zl),j.strokeStyle=f.selection,j.strokeRect(ue+0.5,0.5,Z-ue-1,zl-1),j.fillStyle=f.selection,j.fillRect(ue,0,2,zl),j.fillRect(Z-2,0,2,zl)},[w,l,f,C]);let T=(P)=>{let j=P.currentTarget.getBoundingClientRect(),Q=P.clientX-j.left,ue=C(l.u0),Z=C(l.u1),ce;if(Math.abs(Q-ue)<=iR)ce="left";else if(Math.abs(Q-Z)<=iR)ce="right";else if(Q>ue&&Q<Z)ce="move";else{ce="create";let ee=I(Q);c(ep({u0:ee,u1:ee+pd},x,m))}h.current={mode:ce,startX:Q,startViewport:l},P.currentTarget.setPointerCapture(P.pointerId)},R=(P)=>{let j=h.current;if(!j)return;let Q=P.currentTarget.getBoundingClientRect(),ue=P.clientX-Q.left,Z=I(ue)-I(j.startX),{u0:ce,u1:ee}=j.startViewport;if(j.mode==="move")c(ep({u0:ce+Z,u1:ee+Z},x,m));else if(j.mode==="left")c(ep({u0:Math.min(ce+Z,ee-pd),u1:ee},x,m));else if(j.mode==="right")c(ep({u0:ce,u1:Math.max(ee+Z,ce+pd)},x,m));else{let G=I(j.startX),V=I(ue);c(ep({u0:Math.min(G,V),u1:Math.max(G,V,Math.min(G,V)+pd)},x,m))}},O=()=>{h.current=null};return dR.jsxDEV("canvas",{ref:y,width:Math.floor(g*devicePixelRatio),height:Math.floor(zl*devicePixelRatio),className:"traces-minimap",style:{height:zl},role:"slider","aria-label":u("trace.minimap-aria"),"aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":Math.round((l.u0-x)/S*100),tabIndex:-1,onPointerDown:T,onPointerMove:R,onPointerUp:O},void 0,!1,void 0,this)}function ep(n,i,l){let c=Math.max(pd,n.u1-n.u0);c=Math.min(c,l-i||pd);let f=n.u0;if(f<i)f=i;if(f+c>l)f=l-c;return{u0:f,u1:f+c}}var Qr=_(We(),1);var Ve=_(te(),1);function mO(n){let i=[];if(typeof n==="string"){if(n.trim())i.push({kind:"text",text:n});return i}if(!Array.isArray(n))return i;for(let l of n){if(!l||typeof l!=="object"||!("type"in l))continue;if((l.type==="text"||l.type==="thinking")&&"text"in l&&typeof l.text==="string")i.push({kind:String(l.type),text:l.text})}return i}function hO({title:n,subtitle:i,actions:l,onClose:c,children:f}){return Ve.jsxDEV("section",{className:"traces-inline-detail","aria-label":"Selected span details",children:[Ve.jsxDEV("header",{className:"drawer-header",children:[Ve.jsxDEV("div",{className:"drawer-titles",children:[Ve.jsxDEV("h2",{className:"drawer-title",children:n},void 0,!1,void 0,this),i!==void 0&&Ve.jsxDEV("div",{className:"drawer-subtitle",children:i},void 0,!1,void 0,this)]},void 0,!0,void 0,this),l,Ve.jsxDEV("button",{type:"button",className:"btn","data-icon":"true",onClick:c,"aria-label":"Close span details",children:Ve.jsxDEV(To,{size:16},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),Ve.jsxDEV("div",{className:"drawer-body",children:f},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function cR({span:n,track:i,onClose:l,onOpenChildTrack:c,loadEntry:f=hI,inline:y=!1,onNavigate:g}){let[v,h]=Qr.useState(null),[x,m]=Qr.useState(!1),[S,C]=Qr.useState(null),[I,w]=Qr.useState(!1),T=Qr.useRef(0);if(Qr.useEffect(()=>{if(h(null),C(null),w(!1),m(!1),!n||!i||!n.entryId)return;m(!0);let Z=new AbortController;return f(i.file,n.entryId,Z.signal).then((ce)=>{if(!Z.signal.aborted)h(ce.entry)}).catch((ce)=>{if(Z.signal.aborted)return;C(rg(ce))}).finally(()=>{if(!Z.signal.aborted)m(!1)}),()=>Z.abort()},[n,i,f]),Qr.useEffect(()=>()=>window.clearTimeout(T.current),[]),!n)return null;let R=async()=>{try{await navigator.clipboard.writeText(JSON.stringify(v??n,null,2)),w(!0),window.clearTimeout(T.current),T.current=window.setTimeout(()=>w(!1),1500)}catch{}},P=(v&&typeof v==="object"?v:{}).message,j=P?.usage,Q=[{key:"duration",label:u("common.duration"),value:Ve.jsxDEV("span",{className:"num",children:[Ct(n.end-n.start),n.unterminated&&Ve.jsxDEV("span",{className:"muted",children:[" · ",u("trace.unterminated")]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)},{key:"start",label:u("trace.start"),value:Ve.jsxDEV("span",{className:"num",children:Uf(n.start)},void 0,!1,void 0,this)},{key:"track",label:u("trace.track"),value:Ve.jsxDEV("span",{className:"mono",children:i?.label??"-"},void 0,!1,void 0,this)}];if(n.kind==="model"){if(Q.push({key:"tokens",label:u("common.tokens"),value:Ve.jsxDEV("span",{className:"num",children:M(n.tokens??0)},void 0,!1,void 0,this)},{key:"cost",label:u("common.cost"),value:Ve.jsxDEV("span",{className:"num",children:["$",(n.cost??0).toFixed(4)]},void 0,!0,void 0,this)},{key:"ttft",label:u("trace.ttft"),value:Ve.jsxDEV("span",{className:"num",children:Ct(n.ttft??null)},void 0,!1,void 0,this)},{key:"model",label:u("common.model"),value:Ve.jsxDEV("span",{className:"mono",children:P?.model??n.model??"-"},void 0,!1,void 0,this)}),j)Q.push({key:"split",label:u("trace.io-cached"),value:Ve.jsxDEV("span",{className:"num",children:[M(j.input??0)," / ",M(j.output??0)," /"," ",M(j.cacheRead??0)]},void 0,!0,void 0,this)});if(P?.provider)Q.push({key:"provider",label:u("common.provider"),value:Ve.jsxDEV("span",{className:"mono",children:P.provider},void 0,!1,void 0,this)});if(P?.stopReason)Q.push({key:"stop",label:u("trace.stop-reason"),value:Ve.jsxDEV("span",{className:"mono",children:P.stopReason},void 0,!1,void 0,this)})}return Ve.jsxDEV(y?hO:Ju,{open:!0,onClose:l,title:n.label,subtitle:Ve.jsxDEV("span",{className:"row",style:{gap:6},children:Ve.jsxDEV(yt,{tone:n.isError?"bad":"neutral",children:n.isError?`${n.kind} · ${u("common.error")}`:n.kind},void 0,!1,void 0,this)},void 0,!1,void 0,this),actions:Ve.jsxDEV("button",{type:"button",className:"btn","data-variant":"ghost","data-icon":"true",onClick:R,"aria-label":u("trace.copy-json"),title:u("trace.copy-json"),children:I?Ve.jsxDEV(Mi,{size:15},void 0,!1,void 0,this):Ve.jsxDEV(Di,{size:15},void 0,!1,void 0,this)},void 0,!1,void 0,this),children:Ve.jsxDEV("div",{className:"stack traces-drawer",children:[Ve.jsxDEV(Po,{items:Q},void 0,!1,void 0,this),g&&i&&n.entryId&&Ve.jsxDEV("div",{children:Ve.jsxDEV("button",{type:"button",className:"btn","data-size":"sm",onClick:()=>{if(n.entryId)g(i.id,n.entryId)},children:"Jump to transcript"},void 0,!1,void 0,this)},void 0,!1,void 0,this),P?.errorMessage&&Ve.jsxDEV("div",{className:"stack",style:{gap:6},children:[Ve.jsxDEV("div",{className:"section-label tone-bad",children:u("trace.error-message")},void 0,!1,void 0,this),Ve.jsxDEV("pre",{className:"code-block traces-pre",children:P.errorMessage},void 0,!1,void 0,this)]},void 0,!0,void 0,this),n.kind==="subagent"&&Ve.jsxDEV("div",{className:"stack",style:{gap:8},children:[n.detail&&Ve.jsxDEV(Ve.Fragment,{children:[Ve.jsxDEV("div",{className:"section-label",children:u("trace.task")},void 0,!1,void 0,this),Ve.jsxDEV("pre",{className:"code-block traces-pre",children:n.detail},void 0,!1,void 0,this)]},void 0,!0,void 0,this),n.childTrackId&&c&&Ve.jsxDEV("div",{children:Ve.jsxDEV("button",{type:"button",className:"btn","data-size":"sm",onClick:()=>c(n.childTrackId??""),children:[u("trace.open-child-track")," ",Ve.jsxDEV("span",{className:"mono",children:n.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),n.kind==="tool"&&n.detail&&Ve.jsxDEV("div",{className:"stack",style:{gap:6},children:[Ve.jsxDEV("div",{className:"section-label",children:u("trace.args")},void 0,!1,void 0,this),Ve.jsxDEV("pre",{className:"code-block traces-pre",children:n.detail},void 0,!1,void 0,this)]},void 0,!0,void 0,this),x&&Ve.jsxDEV("div",{className:"stack",children:[Ve.jsxDEV(ao,{height:80},void 0,!1,void 0,this),Ve.jsxDEV(ao,{height:160},void 0,!1,void 0,this)]},void 0,!0,void 0,this),S&&Ve.jsxDEV(Nl,{error:u("trace.load-failed",{message:S.message})},void 0,!1,void 0,this),!x&&v!==null&&mO(P?.content).map((Z,ce)=>Ve.jsxDEV("div",{className:"stack",style:{gap:6},children:[Ve.jsxDEV("div",{className:"section-label",children:Z.kind==="thinking"?u("trace.thinking"):u("trace.text")},void 0,!1,void 0,this),Ve.jsxDEV("pre",{className:"code-block traces-pre","data-scroll":"true",children:Z.text},void 0,!1,void 0,this)]},`${Z.kind}-${ce}`,!0,void 0,this)),!x&&v!==null&&Ve.jsxDEV(ed,{data:v,title:u("trace.raw-entry"),initialCollapsed:!0},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)}var lr=_(te(),1);function fR({summary:n}){let i=(l)=>n.wallMs>0?u("trace.of-wall",{percent:Fe(l/n.wallMs)}):void 0;return lr.jsxDEV(Sa,{min:112,children:[lr.jsxDEV(ie,{size:"sm",label:u("trace.wall-time"),value:gn(n.wallMs)},void 0,!1,void 0,this),lr.jsxDEV(ie,{size:"sm",label:u("trace.model-time"),value:gn(n.modelMs),hint:i(n.modelMs)},void 0,!1,void 0,this),lr.jsxDEV(ie,{size:"sm",label:u("trace.tool-time"),value:gn(n.toolMs),hint:i(n.toolMs)},void 0,!1,void 0,this),lr.jsxDEV(ie,{size:"sm",label:u("trace.idle"),value:gn(n.idleMs),hint:i(n.idleMs)},void 0,!1,void 0,this),lr.jsxDEV(ie,{size:"sm",label:u("trace.turns"),value:M(n.turns)},void 0,!1,void 0,this),lr.jsxDEV(ie,{size:"sm",label:u("common.requests"),value:M(n.requests),hint:u("trace.tool-calls-n",{count:M(n.toolCalls)})},void 0,!1,void 0,this),lr.jsxDEV(ie,{size:"sm",label:u("trace.agents"),value:M(n.subagents)},void 0,!1,void 0,this),lr.jsxDEV(ie,{size:"sm",label:u("common.tokens"),value:se(n.totalTokens)},void 0,!1,void 0,this),lr.jsxDEV(ie,{size:"sm",label:u("common.cost"),value:ta(n.costTotal,n.unpricedRequests)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}var $t=_(We(),1),bR=_(Qc(),1);function bg(n,i){let l=n.length,c=[i[0],i[l-1]],f=(y,g)=>{let v=0,h=l-1;while(v<h){let x=v+h+1>>1;if(y[x]<=g)v=x;else h=x-1}return Math.min(v,l-2)};return{toU(y){if(y<=n[0])return i[0];if(y>=n[l-1])return i[l-1];let g=f(n,y),v=n[g+1]-n[g];if(v<=0)return i[g];return i[g]+(y-n[g])/v*(i[g+1]-i[g])},toT(y){if(y<=i[0])return n[0];if(y>=i[l-1])return n[l-1];let g=f(i,y),v=i[g+1]-i[g];if(v<=0)return n[g];return n[g]+(y-i[g])/v*(n[g+1]-n[g])},domain:c,gaps:[]}}function gO(n){let i=[];for(let l of n)for(let c of l.spans)i.push([c.start,c.end]);return i.sort((l,c)=>l[0]-c[0]),i}function yO(n){let{POSITIVE_INFINITY:i,NEGATIVE_INFINITY:l}=Number;for(let c of n)for(let f of c.spans){if(f.start<i)i=f.start;if(f.end>l)l=f.end}if(!Number.isFinite(i))return[0,1];return[i,Math.max(l,i+1)]}function pR(n,i,l){let c=[...new Set(n.filter((v)=>v>=i&&v<=l))].sort((v,h)=>v-h);if(c[0]!==i)c.unshift(i);if(c[c.length-1]!==l)c.push(l);if(c.length<2)return bg([i,l],[i,l]);let y=(l-i)/(c.length-1),g=c.map((v,h)=>i+h*y);return bg(c,g)}function vO(n,i,l){let c=gO(n),f=[];for(let[m,S]of c){let C=m-2000,I=S+2000,w=f[f.length-1];if(w&&C<=w[1]){if(I>w[1])w[1]=I}else f.push([C,I])}if(f.length===0)f.push([i,l]);f[0][0]=Math.max(f[0][0],i),f[f.length-1][1]=Math.min(Math.max(f[f.length-1][1],f[f.length-1][0]),l);let y=[],g=[],v=[],h=f[0][0];for(let m=0;m<f.length;m++){let[S,C]=f[m];if(m===0)y.push(S),g.push(h);else{let I=f[m-1][1],w=S-I;if(w>30000)h+=8000,v.push({t0:I,t1:S,uMid:h-4000});else h+=w;y.push(S),g.push(h)}h+=Math.max(0,C-S),y.push(C),g.push(h)}return{...bg(y,g),gaps:v}}function mR(n,i,l){let[c,f]=yO(n);if(i==="turns"){let g=(n.find((v)=>v.id==="main")?.spans??[]).filter((v)=>v.kind==="turn").map((v)=>v.start);return pR(g,c,f)}if(i==="calls"){let y=[];for(let g of n)for(let v of g.spans)if(v.kind==="model"||v.kind==="tool"||v.kind==="background")y.push(v.start,v.end);return pR(y,c,f)}if(l)return vO(n,c,f);return bg([c,f],[c,f])}var bO=90;function xO(n){let i=10**Math.floor(Math.log10(Math.max(n,1)));for(let l of[1,2,5,10])if(i*l>=n)return i*l;return i*10}function SO(n){let i=new Date(n),l=String(i.getHours()).padStart(2,"0"),c=String(i.getMinutes()).padStart(2,"0"),f=String(i.getSeconds()).padStart(2,"0");return`${l}:${c}:${f}`}function md(n){let i=n<0?"-":"+",l=Math.abs(n),c=Math.floor(l/3600000),f=Math.floor(l%3600000/60000),y=Math.floor(l%60000/1000),g=Math.floor(l%1000),v=l%1000!==0,h=`${String(f).padStart(2,"0")}:${String(y).padStart(2,"0")}${v?".":""}${v?String(g).padStart(3,"0"):""}`;return c>0?`${i}${c}:${h}`:`${i}${h}`}function hR(n,i,l,c){let f=l-i;if(f<=0||c<=0)return[];let y=[],g=n.domain[0],v=xO(f*bO/c),h=g+Math.ceil((i-g)/v)*v,x=0;for(let m=h;m<=l&&x<200;m+=v,x++){let S=n.toT(m),C=Math.round((m-g)/v)%5===0;y.push({u:m,label:C?SO(S):md(m-g),major:C})}return y}var _t=_(te(),1),Ns=28,zx=22,Qo=18,gR=3,kO=14,yR=200,qx=10,xR=2,LO=4,CO=56,xg=3,Bx=0.3;function wO(){return[{kind:"turn",label:u("common.input")},{kind:"model",label:u("common.model")},{kind:"tool",label:u("trace.tools")},{kind:"subagent",label:u("trace.agents")},{kind:"background",label:u("trace.bg")}]}function TO(n,i){let l=new Map(n.map((h)=>[h.id,h])),c=new Set;for(let h of n)if(h.parentId)c.add(h.parentId);let f=(h)=>{let x=h.parentId;while(x){if(i.has(x))return!0;x=l.get(x)?.parentId??null}return!1},y=[],g=[],v=Ns+6;for(let h of n){if(f(h))continue;let x=h.id==="main"?0:h.id.split("/").length,m={turn:[],model:[],tool:[],subagent:[],background:[]};for(let C of h.spans)m[C.kind].push(C);let S={track:h,depth:x,hasChildren:c.has(h.id),headerY:v,lanes:[],turnSpans:m.turn,y0:v,y1:v};v+=zx;for(let{kind:C,label:I}of wO()){let w=m[C],T=C==="turn"||C==="model"||C==="tool";if(w.length===0&&!(h.id==="main"&&T))continue;let R={track:h,kind:C,label:I,y:v,spans:w};S.lanes.push(R),g.push(R),v+=Qo+gR}S.y1=v-gR,y.push(S),v+=kO}return{blocks:y,lanes:g,totalHeight:Math.max(v,Ns+48)}}function IO(n,i){return n.lanes.map((l)=>{let c=l.spans.length,f=new Float64Array(c),y=new Float64Array(c),g=new Float64Array(c),v=Number.NEGATIVE_INFINITY;for(let h=0;h<c;h++){let x=l.spans[h];f[h]=i.toU(x.start),y[h]=i.toU(x.end),v=Math.max(v,y[h]),g[h]=v}return{startU:f,endU:y,maxEndU:g}})}function RO(n,i){let l=0,c=n.length;while(l<c){let f=l+c>>>1;if(n[f]<i)l=f+1;else c=f}return l}function MO(n,i){if(n===null||i===null)return n===i;if(n.kind==="span")return i.kind==="span"&&n.span===i.span;return i.kind==="marker"&&n.marker===i.marker}function SR({tracks:n,scale:i,viewport:l,onViewportChange:c,selected:f,onSelect:y,matchIds:g,collapsed:v,onToggleCollapse:h,traceStart:x,autoFocus:m=!0}){let S=Ur(),C=fd(),I=$t.useRef(null),w=$t.useRef(null),T=$t.useRef(null),[R,O]=$t.useState(800),[P,j]=$t.useState(null),Q=$t.useRef(null);Q.current=P;let ue=$t.useRef({clientX:0,clientY:0}),Z=$t.useRef([]),ce=$t.useRef(null),ee=$t.useRef(null),G=$t.useRef(l);G.current=l;let V=$t.useMemo(()=>TO(n,v),[n,v,S]),Ie=$t.useMemo(()=>IO(V,i),[V,i]);$t.useEffect(()=>{let H=I.current;if(!H)return;let Ce=new ResizeObserver((he)=>{let st=Math.max(100,Math.floor(he[0].contentRect.width-yR));O(st)});return Ce.observe(H),()=>Ce.disconnect()},[]);let fe=$t.useCallback((H,Ce)=>{let[he,st]=i.domain,Be=Math.max(qx,Ce-H);Be=Math.min(Be,st-he||qx);let ke=H;if(ke<he)ke=he;if(ke+Be>st)ke=st-Be;return{u0:ke,u1:ke+Be}},[i]),Ee=$t.useCallback((H)=>{G.current=H,c(H)},[c]),we=$t.useCallback((H,Ce)=>{let he=R,{u0:st,u1:Be}=G.current,ke=Be-st,Xt=Ce===null?0.5:Math.min(1,Math.max(0,Ce/he)),Ne=st+ke*Xt,Aa=ke*H;Ee(fe(Ne-Aa*Xt,Ne+Aa*(1-Xt)))},[R,Ee,fe]),oe=$t.useCallback((H)=>{let{u0:Ce,u1:he}=G.current;Ee(fe(Ce+H,he+H))},[Ee,fe]),Se=$t.useCallback((H)=>{let Ce=i.toU(H.start),he=i.toU(H.end),st=Math.max((he-Ce)*0.1,qx/2);Ee(fe(Ce-st,he+st))},[i,Ee,fe]);$t.useEffect(()=>{let H=w.current;if(!H)return;let Ce=(he)=>{he.preventDefault();let st=H.getBoundingClientRect(),Be=he.clientX-st.left;ee.current=Be,j(null);let ke=H.clientWidth||1,Xt=()=>G.current.u1-G.current.u0;if(he.shiftKey){let Ne=Math.abs(he.deltaY)>=Math.abs(he.deltaX)?he.deltaY:he.deltaX;oe(Ne/ke*Xt());return}if(he.deltaX!==0)oe(he.deltaX/ke*Xt());if(he.deltaY!==0)we(1.0015**he.deltaY,Be)};return H.addEventListener("wheel",Ce,{passive:!1}),()=>H.removeEventListener("wheel",Ce)},[we,oe]);let Ae=$t.useCallback((H,Ce)=>{let he=w.current;if(!he)return null;let st=he.getBoundingClientRect(),Be=H-st.left,ke=Ce-st.top,Xt=Z.current;for(let Ne=Xt.length-1;Ne>=0;Ne--){let Aa=Xt[Ne];if(Be>=Aa.x&&Be<=Aa.x+Aa.w&&ke>=Aa.y&&ke<=Aa.y+Aa.h)return Aa}return null},[]),Ye=$t.useCallback(()=>{let H=T.current;if(!H)return;let{clientX:Ce,clientY:he}=ue.current,st=Math.min(Ce+14,window.innerWidth-320),Be=he+16>window.innerHeight-140?he-120:he+16;H.style.transform=`translate(${st}px, ${Be}px)`},[]),ht=(H)=>{H.currentTarget.setPointerCapture(H.pointerId),ce.current={pointerId:H.pointerId,lastX:H.clientX,moved:!1},H.currentTarget.focus()},W=(H)=>{let Ce=H.currentTarget.getBoundingClientRect();ee.current=H.clientX-Ce.left;let he=ce.current;if(he&&he.pointerId===H.pointerId){let Be=H.clientX-he.lastX;if(Math.abs(Be)>0){if(Math.abs(Be)>2)he.moved=!0;he.lastX=H.clientX;let ke=G.current.u1-G.current.u0;oe(-Be/(R||1)*ke)}j(null);return}ue.current={clientX:H.clientX,clientY:H.clientY};let st=Ae(H.clientX,H.clientY);if(MO(st,Q.current))Ye();else j(st)},He=(H)=>{let Ce=ce.current;if(ce.current=null,Ce?.moved)return;let he=Ae(H.clientX,H.clientY);if(he?.kind==="span")y(he.span.id);else y(null)},Tt=(H)=>{let Ce=Ae(H.clientX,H.clientY);if(Ce?.kind==="span")Se(Ce.span)},xt=$t.useCallback((H)=>{let Ce=f?.span.id;if(!Ce)return;for(let he of V.lanes){let st=he.spans.findIndex((Xt)=>Xt.id===Ce);if(st===-1)continue;let Be=he.spans[st+H];if(!Be)return;y(Be.id);let ke=i.toU(Be.start);if(ke<l.u0||ke>l.u1){let Xt=l.u1-l.u0;c(fe(ke-Xt/2,ke+Xt/2))}return}},[f,V,y,i,l,c,fe]),ge=(H)=>{let Ce=l.u1-l.u0;switch(H.key){case"w":case"W":we(0.7692307692307692,ee.current);break;case"s":case"S":we(1.3,ee.current);break;case"a":case"A":oe(-Ce*0.2);break;case"d":case"D":oe(Ce*0.2);break;case"0":c({u0:i.domain[0],u1:i.domain[1]});break;case"f":case"F":if(f)Se(f.span);break;case"Escape":y(null);break;case",":xt(-1);break;case".":xt(1);break;default:return}H.preventDefault(),H.stopPropagation()};$t.useEffect(()=>{if(m)w.current?.focus({preventScroll:!0})},[m]),$t.useEffect(()=>{let H=w.current;if(!H)return;let Ce=requestAnimationFrame(()=>{Z.current=AO(H,V,Ie,i,l,C,R,g)});return()=>cancelAnimationFrame(Ce)},[V,Ie,i,l,C,R,g]);let Xe=P?.kind==="span"?vR(P,V,i,l,R):null,Ue=f?vR(f,V,i,l,R):null;$t.useLayoutEffect(()=>{if(P)Ye()},[P,Ye]);let sa=P?DO(P,x,T):null,la=Math.floor(R*devicePixelRatio),X=Math.floor(V.totalHeight*devicePixelRatio),Ke={width:R,height:V.totalHeight};return _t.jsxDEV("div",{ref:I,className:"traces-timeline",children:[_t.jsxDEV("div",{style:{width:yR,flexShrink:0,position:"relative",height:V.totalHeight},children:V.blocks.map((H)=>_t.jsxDEV("div",{children:[_t.jsxDEV("div",{style:{position:"absolute",top:H.headerY,left:4+H.depth*14,right:8,height:zx,display:"flex",alignItems:"center",gap:5,minWidth:0},children:[H.hasChildren?_t.jsxDEV("button",{type:"button",onClick:()=>h(H.track.id),"aria-label":v.has(H.track.id)?u("trace.expand-track",{track:H.track.label}):u("trace.collapse-track",{track:H.track.label}),className:"traces-chevron",children:v.has(H.track.id)?_t.jsxDEV(er,{size:12},void 0,!1,void 0,this):_t.jsxDEV(Ai,{size:12},void 0,!1,void 0,this)},void 0,!1,void 0,this):_t.jsxDEV("span",{style:{width:12,flexShrink:0}},void 0,!1,void 0,this),_t.jsxDEV("span",{className:"traces-gutter-track truncate",style:{minWidth:0},children:H.track.label},void 0,!1,void 0,this),H.track.model&&_t.jsxDEV("span",{className:"traces-gutter-model mono truncate",style:{flexShrink:1,minWidth:0},children:H.track.model},void 0,!1,void 0,this)]},void 0,!0,void 0,this),H.lanes.map((Ce)=>_t.jsxDEV("div",{className:"traces-gutter-lane",style:{top:Ce.y,left:20+H.depth*14,lineHeight:`${Qo}px`},children:Ce.label},`${Ce.track.id}:${Ce.kind}`,!1,void 0,this))]},H.track.id,!0,void 0,this))},void 0,!1,void 0,this),_t.jsxDEV("div",{className:"traces-canvas-stack",style:Ke,children:[_t.jsxDEV("canvas",{ref:w,className:"traces-canvas",width:la,height:X,style:Ke,tabIndex:0,role:"application","aria-label":u("trace.canvas-aria"),onPointerDown:ht,onPointerMove:W,onPointerUp:He,onPointerLeave:()=>{ee.current=null,j(null)},onDoubleClick:Tt,onKeyDown:ge},void 0,!1,void 0,this),Xe&&P?.kind==="span"&&_t.jsxDEV("div",{className:"traces-canvas-hover","aria-hidden":"true",style:{left:Xe.x,top:Xe.y,width:Xe.w,height:Qo,borderRadius:xg,opacity:g===null||g.has(P.span.id)?1:Bx}},void 0,!1,void 0,this),Ue&&f&&_t.jsxDEV("div",{className:"traces-canvas-selection","aria-hidden":"true",style:{left:Ue.x-1,top:Ue.y-1,width:Ue.w+2,height:Qo+2,borderRadius:xg,borderColor:C.selection,opacity:g===null||g.has(f.span.id)?1:Bx}},void 0,!1,void 0,this)]},void 0,!0,void 0,this),sa&&bR.createPortal(sa,I.current?.getRootNode()instanceof ShadowRoot?I.current.getRootNode():document.body)]},void 0,!0,void 0,this)}function Ox(n,i,l,c,f){if(n.beginPath(),c>=xg*2+1)n.roundRect(i,l,c,f,xg);else n.rect(i,l,c,f)}function AO(n,i,l,c,f,y,g,v){let h=[],x=n.getContext("2d");if(!x)return h;let m=i.totalHeight,S=devicePixelRatio;x.setTransform(S,0,0,S,0,0),x.clearRect(0,0,g,m);let{u0:C,u1:I}=f,w=Math.max(I-C,0.000000001),T=(R)=>(R-C)/w*g;for(let R of i.blocks){let O=R.turnSpans;for(let P=0;P<O.length;P++){let j=T(c.toU(O[P].start)),Q=P+1<O.length?T(c.toU(O[P+1].start)):g;if(Q<0||j>g)continue;if(P%2===1)x.fillStyle=y.turnBand,x.fillRect(Math.max(0,j),R.y0,Math.min(g,Q)-Math.max(0,j),R.y1-R.y0);if(j>=0&&j<=g)x.strokeStyle=y.grid,x.beginPath(),x.moveTo(Math.round(j)+0.5,R.y0),x.lineTo(Math.round(j)+0.5,R.y1),x.stroke()}}x.font=`9px ${y.fontMono}`;for(let R of c.gaps){let O=T(R.uMid);if(O<-24||O>g+24)continue;x.save(),x.strokeStyle=y.grid,x.setLineDash([2,4]),x.beginPath(),x.moveTo(O,Ns),x.lineTo(O,m),x.stroke(),x.restore(),x.fillStyle=y.tick,x.textAlign="center",x.fillText(`⋯ ${Ct(R.t1-R.t0)}`,O,Ns-4),x.textAlign="left"}for(let R of hR(c,C,I,g)){let O=Math.round(T(R.u))+0.5;if(x.strokeStyle=y.grid,x.beginPath(),R.major)x.moveTo(O,4),x.lineTo(O,m);else x.moveTo(O,Ns-8),x.lineTo(O,Ns);if(x.stroke(),x.fillStyle=y.tick,R.major)x.fillText(R.label,O+4,11);else x.globalAlpha=0.75,x.fillText(R.label,O+3,Ns-10),x.globalAlpha=1}x.strokeStyle=y.grid,x.beginPath(),x.moveTo(0,Ns+0.5),x.lineTo(g,Ns+0.5),x.stroke(),x.font=`10px ${y.fontSans}`;for(let R=0;R<i.lanes.length;R++){let O=i.lanes[R],{startU:P,endU:j,maxEndU:Q}=l[R],ue=O.kind==="turn";for(let Z=RO(Q,C);Z<O.spans.length;Z++){let ce=P[Z];if(ce>I)break;let ee=j[Z];if(ee<C)continue;let G=O.spans[Z],V=T(ce),Ie=Math.max(xR,T(ee)-V),fe=O.y,Ee=v===null||v.has(G.id)?1:Bx,we=y.category[G.kind];if(x.globalAlpha=Ee,ue)x.fillStyle=we,x.globalAlpha=Ee*0.23,Ox(x,V,fe,Ie,Qo),x.fill(),x.globalAlpha=Ee,x.fillStyle=we,x.fillRect(V,fe,2,Qo);else x.fillStyle=we,Ox(x,V,fe,Ie,Qo),x.fill();if(G.isError)x.fillStyle=y.errorSoft,Ox(x,V,fe,Ie,Qo),x.fill(),x.fillStyle=y.error,x.fillRect(V,fe,2,Qo);if(G.kind==="model"&&typeof G.ttft==="number"&&G.ttft>0&&Ie>20){let Se=T(c.toU(G.start+G.ttft));if(Se>V+1&&Se<V+Ie-1)x.fillStyle="rgba(0,0,0,0.5)",x.fillRect(Se,fe+3,1,Qo-6)}if(G.unterminated)x.save(),x.strokeStyle=y.tick,x.setLineDash([2,2]),x.beginPath(),x.moveTo(V+Ie-0.5,fe),x.lineTo(V+Ie-0.5,fe+Qo),x.stroke(),x.restore();if(Ie>CO)x.save(),x.beginPath(),x.rect(V+3,fe,Ie-6,Qo),x.clip(),x.fillStyle=ue?y.tick:y.spanText,x.fillText(G.label,V+5,fe+Qo-5),x.restore();x.globalAlpha=1;let oe=Math.max(Ie,LO);h.push({kind:"span",x:V-(oe-Ie)/2,y:fe,w:oe,h:Qo,span:G,track:O.track})}}for(let R of i.blocks)for(let O of R.track.markers){let P=T(c.toU(O.time));if(P<-6||P>g+6)continue;let j=R.headerY+zx/2;x.fillStyle=y.marker,x.beginPath(),x.moveTo(P,j-4),x.lineTo(P+4,j),x.lineTo(P,j+4),x.lineTo(P-4,j),x.closePath(),x.fill(),h.push({kind:"marker",x:P-5,y:j-5,w:10,h:10,marker:O,track:R.track})}return h}function vR({span:n,track:i},l,c,f,y){let{u0:g,u1:v}=f,h=c.toU(n.start),x=c.toU(n.end);if(h>v||x<g)return null;let m=l.lanes.find((w)=>w.track===i&&w.kind===n.kind);if(!m)return null;let S=Math.max(v-g,0.000000001),C=(h-g)/S*y,I=(x-g)/S*y;return{x:C,y:m.y,w:Math.max(xR,I-C)}}function DO(n,i,l){let c={left:0,top:0};if(n.kind==="marker"){let{marker:y}=n;return _t.jsxDEV("div",{ref:l,className:"traces-tooltip",style:c,children:[_t.jsxDEV("div",{className:"traces-tooltip-title",children:y.label},void 0,!1,void 0,this),_t.jsxDEV("div",{className:"muted num",children:[Uf(y.time)," (",md(y.time-i),")"]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)}let{span:f}=n;return _t.jsxDEV("div",{ref:l,className:"traces-tooltip",style:c,children:[_t.jsxDEV("div",{className:"traces-tooltip-title truncate",children:f.label},void 0,!1,void 0,this),_t.jsxDEV("div",{className:"muted num",children:[Ct(f.end-f.start)," · ",Uf(f.start)," (",md(f.start-i),")",f.unterminated?` · ${u("trace.unterminated")}`:""]},void 0,!0,void 0,this),f.kind==="model"&&_t.jsxDEV("div",{className:"muted num",children:[f.tokens!==void 0&&_t.jsxDEV(_t.Fragment,{children:[M(f.tokens)," ",u("trace.tok")]},void 0,!0,void 0,this),f.cost!==void 0&&_t.jsxDEV(_t.Fragment,{children:[" · $",f.cost.toFixed(4)]},void 0,!0,void 0,this),f.ttft!==void 0&&_t.jsxDEV(_t.Fragment,{children:[" ","· ",u("trace.ttft")," ",Ct(f.ttft)]},void 0,!0,void 0,this),f.isError&&_t.jsxDEV(_t.Fragment,{children:[" · ",u("common.error")]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),f.kind==="subagent"&&f.model&&_t.jsxDEV("div",{className:"muted num",children:f.model},void 0,!1,void 0,this),f.detail&&_t.jsxDEV("div",{className:"traces-tooltip-detail",children:f.detail},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}var ir=_(We(),1);var co=_(te(),1),hd=28,kR=20,EO=340;function NO(n){let i=[];for(let l of n){let c=l.id==="main"?0:l.id.split("/").length;for(let f of l.spans)i.push({key:f.id,time:f.start,span:f,track:l,depth:c});for(let f=0;f<l.markers.length;f++){let y=l.markers[f];i.push({key:`${l.id}:marker:${f}`,time:y.time,marker:y,track:l,depth:c})}}return i.sort((l,c)=>l.time-c.time),i}var LR=ir.memo(function({tracks:i,selection:l,onSelect:c,search:f,matchIds:y,traceStart:g}){let v=fd(),h=ir.useRef(null),[x,m]=ir.useState(0),S=ir.useMemo(()=>NO(i),[i]),C=ir.useMemo(()=>{if(!y)return S;let R=f.trim().toLowerCase();return S.filter((O)=>O.span?y.has(O.span.id):(O.marker?.label??"").toLowerCase().includes(R))},[S,f,y]);ir.useEffect(()=>{if(!l)return;let R=h.current;if(!R)return;let O=C.findIndex((j)=>j.span?.id===l);if(O===-1)return;let P=O*hd;if(P<R.scrollTop||P+hd>R.scrollTop+R.clientHeight)R.scrollTop=Math.max(0,P-R.clientHeight/2)},[l,C]);let I=Math.max(0,Math.floor(x/hd)-kR),w=Math.min(C.length,Math.ceil((x+EO)/hd)+kR),T=C.slice(I,w);return co.jsxDEV("div",{ref:h,onScroll:(R)=>m(R.currentTarget.scrollTop),className:"traces-list",children:[co.jsxDEV("div",{style:{height:C.length*hd,position:"relative"},children:co.jsxDEV("div",{style:{position:"absolute",top:I*hd,left:0,right:0},children:T.map((R)=>{let O=R.span,P=O!==void 0&&O.id===l,j=R.span?v.category[R.span.kind]:v.marker,Q=R.span?.label??R.marker?.label??"",ue=R.span?.detail,Z=R.span?Ct(R.span.end-R.span.start):"",ce=R.span?.kind??R.marker?.kind??"",ee=co.jsxDEV(co.Fragment,{children:[co.jsxDEV("span",{className:"traces-kind",style:{"--traces-kind-color":j},children:ce},void 0,!1,void 0,this),R.depth>0&&co.jsxDEV("span",{className:"traces-row-track mono truncate",title:R.track.label,children:R.track.id},void 0,!1,void 0,this),co.jsxDEV("span",{className:"traces-row-label truncate",children:Q},void 0,!1,void 0,this),ue&&co.jsxDEV("span",{className:"traces-row-detail truncate",children:ue},void 0,!1,void 0,this),co.jsxDEV("span",{className:"traces-row-meta num",children:[R.span?.isError&&co.jsxDEV("span",{className:"tone-bad",children:u("common.error")},void 0,!1,void 0,this),co.jsxDEV("span",{children:Z},void 0,!1,void 0,this),co.jsxDEV("span",{children:md(R.time-g)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),G={paddingLeft:12+R.depth*12};return O?co.jsxDEV("button",{type:"button",onClick:()=>c(O.id),className:"traces-row","data-selected":P?"true":"false",style:G,children:ee},R.key,!1,void 0,this):co.jsxDEV("div",{className:"traces-row","data-static":"true",style:G,children:ee},R.key,!1,void 0,this)})},void 0,!1,void 0,this)},void 0,!1,void 0,this),C.length===0&&co.jsxDEV(mt,{title:u("trace.no-matching-events")},void 0,!1,void 0,this)]},void 0,!0,void 0,this)});var rt=_(te(),1);function qO(){return[{value:"time",label:u("common.duration"),title:u("trace.mode-time-title")},{value:"turns",label:u("trace.turns"),title:u("trace.mode-turns-title")},{value:"calls",label:u("trace.calls"),title:u("trace.mode-calls-title")}]}function OO(){return[{kind:"turn",label:u("common.input")},{kind:"model",label:u("common.model")},{kind:"tool",label:u("trace.tool")},{kind:"subagent",label:u("trace.agent")},{kind:"background",label:u("trace.background")}]}function CR({file:n,active:i,onBack:l}){let c=Ft(["trace",n],({signal:y},g)=>mI(n,y,g),{pollMs:15000,enabled:i}),f=c.stale?null:c.data;return rt.jsxDEV("div",{className:"stack traces-view",children:[rt.jsxDEV("div",{children:rt.jsxDEV("button",{type:"button",className:"btn","data-variant":"ghost","data-size":"sm",onClick:l,children:[rt.jsxDEV(af,{size:14,"aria-hidden":"true"},void 0,!1,void 0,this),"Sessions"]},void 0,!0,void 0,this)},void 0,!1,void 0,this),rt.jsxDEV(ha,{title:rt.jsxDEV("span",{className:"traces-title truncate",children:f?.title??n.split("/").pop()},void 0,!1,void 0,this),description:f?.cwd?rt.jsxDEV("span",{className:"mono",children:f.cwd},void 0,!1,void 0,this):void 0,actions:rt.jsxDEV("button",{type:"button",className:"btn","data-variant":"ghost","data-icon":"true",onClick:c.refetch,"aria-label":"Refresh trace",title:"Refresh trace",children:rt.jsxDEV(Dl,{size:14,className:c.refreshing?"traces-spin":void 0},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this),rt.jsxDEV(_e,{query:{...c,data:f},skeleton:rt.jsxDEV(Et,{height:420},void 0,!1,void 0,this),children:(y)=>rt.jsxDEV(BO,{trace:y},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function BO({trace:n,view:i="full",loadEntry:l,embedded:c=!1,onNavigate:f}){let[y,g]=Vt.useState("time"),[v,h]=Vt.useState(!0),[x,m]=Vt.useState(null),[S,C]=Vt.useState(!1),[I,w]=Vt.useState(""),[T,R]=Vt.useState(0),[O,P]=Vt.useState(new Set),[j,Q]=Vt.useState(null),ue=Vt.useMemo(()=>n?.tracks??[],[n]),Z=Vt.useMemo(()=>mR(ue,y,v),[ue,y,v]),ce=Vt.useRef(Z),ee=Vt.useRef(null);Vt.useEffect(()=>{if(!n)return;if(ee.current===n.file)return;ee.current=n.file,m(null),w(""),Q(null);let ge=new Set;for(let Xe of n.tracks)if((Xe.id==="main"?0:Xe.id.split("/").length)>=1)ge.add(Xe.id);P(ge)},[n]),Vt.useEffect(()=>{let ge=ce.current;ce.current=Z,Q((Xe)=>{if(!Xe)return Xe;let Ue=ge.toT(Xe.u0),sa=ge.toT(Xe.u1),la=Z.toU(Ue),X=Z.toU(sa);return X-la>0?{u0:la,u1:X}:null})},[Z]);let G=Vt.useMemo(()=>j??{u0:Z.domain[0],u1:Z.domain[1]},[j,Z]),V=Vt.useMemo(()=>{let ge=[];for(let Xe of ue)for(let Ue of Xe.spans)ge.push({span:Ue,track:Xe});return ge.sort((Xe,Ue)=>Xe.span.start-Ue.span.start),ge},[ue]),Ie=Vt.useMemo(()=>{let ge=I.trim().toLowerCase();if(!ge)return[];return V.filter(({span:Xe})=>`${Xe.label} ${Xe.detail??""}`.toLowerCase().includes(ge))},[V,I]),fe=Vt.useMemo(()=>I.trim()?new Set(Ie.map(({span:ge})=>ge.id)):null,[Ie,I]),Ee=Vt.useCallback((ge)=>{let Xe=Z.toU(ge.start),Ue=Z.toU(ge.end);Q((sa)=>{let la=sa??{u0:Z.domain[0],u1:Z.domain[1]};if(Xe>=la.u0&&Ue<=la.u1)return sa;let X=la.u1-la.u0,Ke=(Xe+Ue)/2,[H,Ce]=Z.domain,he=Ke-X/2;if(he<H)he=H;if(he+X>Ce)he=Math.max(H,Ce-X);return{u0:he,u1:he+X}})},[Z]),we=Vt.useCallback((ge)=>{m(ge);let Xe=V.find(({span:Ue})=>Ue.id===ge);if(Xe)Ee(Xe.span)},[V,Ee]),oe=Vt.useCallback((ge)=>{m(ge),C(ge!==null)},[]),Se=Vt.useCallback((ge)=>{if(Ie.length===0)return;let Xe=((T+ge)%Ie.length+Ie.length)%Ie.length;R(Xe),we(Ie[Xe].span.id)},[Ie,T,we]),Ae=Vt.useCallback((ge)=>{P((Xe)=>{let Ue=new Set(Xe);if(Ue.has(ge))Ue.delete(ge);else Ue.add(ge);return Ue})},[]),Ye=Vt.useMemo(()=>{if(!x)return null;return V.find(({span:ge})=>ge.id===x)??null},[x,V]),ht=Vt.useCallback((ge)=>{let Xe=ue.find((sa)=>sa.id===ge),Ue=Xe?.spans[0];if(P((sa)=>{let la=new Set(sa),X=Xe;while(X?.parentId)la.delete(X.parentId),X=ue.find((Ke)=>Ke.id===X?.parentId);return la}),Ue)we(Ue.id)},[ue,we]),W=Vt.useCallback((ge)=>{if(!ge){P(new Set);return}let Xe=new Set;for(let Ue of ue)if(Ue.id!=="main")Xe.add(Ue.id);P(Xe)},[ue]),He=Vt.useCallback((ge)=>{we(ge),C(!0)},[we]),Tt=Vt.useCallback(()=>C(!1),[]),xt=n.startedAt;return rt.jsxDEV("div",{className:"stack traces-view","data-view":i,children:[i==="full"&&rt.jsxDEV(fR,{summary:n.summary},void 0,!1,void 0,this),V.length===0&&rt.jsxDEV("p",{className:"muted",children:"No spans recorded in this session."},void 0,!1,void 0,this),rt.jsxDEV(me,{index:1,title:u("trace.timeline"),description:u("trace.timeline-hint"),actions:rt.jsxDEV(rt.Fragment,{children:[rt.jsxDEV("button",{type:"button",className:"btn","data-variant":"ghost","data-size":"sm",onClick:()=>W(!1),children:u("trace.expand-all")},void 0,!1,void 0,this),rt.jsxDEV("button",{type:"button",className:"btn","data-variant":"ghost","data-size":"sm",onClick:()=>W(!0),children:u("trace.collapse-all")},void 0,!1,void 0,this)]},void 0,!0,void 0,this),children:rt.jsxDEV("div",{className:"stack",children:[rt.jsxDEV("div",{className:"traces-toolbar",children:[rt.jsxDEV(qa,{options:qO(),value:y,onChange:g,size:"sm","aria-label":u("trace.axis-mode")},void 0,!1,void 0,this),y==="time"&&rt.jsxDEV("label",{className:"traces-check",children:[rt.jsxDEV("input",{type:"checkbox",checked:v,onChange:(ge)=>h(ge.target.checked)},void 0,!1,void 0,this),u("trace.compress-idle")]},void 0,!0,void 0,this),rt.jsxDEV("div",{className:"traces-search",children:[rt.jsxDEV(Hr,{value:I,onChange:(ge)=>{w(ge),R(0)},label:u("trace.search-placeholder"),placeholder:u("trace.search-placeholder"),width:200},void 0,!1,void 0,this),I.trim()&&rt.jsxDEV(rt.Fragment,{children:[rt.jsxDEV("span",{className:"num muted traces-match-count",children:Ie.length===0?"0":`${T%Math.max(Ie.length,1)+1}/${Ie.length}`},void 0,!1,void 0,this),rt.jsxDEV("button",{type:"button",className:"btn","data-variant":"ghost","data-size":"sm","data-icon":"true",onClick:()=>Se(-1),"aria-label":u("trace.previous-match"),disabled:Ie.length===0,children:rt.jsxDEV(lf,{size:14},void 0,!1,void 0,this)},void 0,!1,void 0,this),rt.jsxDEV("button",{type:"button",className:"btn","data-variant":"ghost","data-size":"sm","data-icon":"true",onClick:()=>Se(1),"aria-label":u("trace.next-match"),disabled:Ie.length===0,children:rt.jsxDEV(er,{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),rt.jsxDEV("div",{className:"traces-legend",children:OO().map((ge)=>rt.jsxDEV("span",{className:"traces-legend-item",children:[rt.jsxDEV("span",{className:"swatch",style:{background:`var(${Gi[ge.kind]})`}},void 0,!1,void 0,this),ge.label]},ge.kind,!0,void 0,this))},void 0,!1,void 0,this)]},void 0,!0,void 0,this),rt.jsxDEV(uR,{tracks:ue,scale:Z,viewport:G,onViewportChange:Q},void 0,!1,void 0,this),rt.jsxDEV(SR,{tracks:ue,scale:Z,viewport:G,onViewportChange:Q,selected:Ye,onSelect:oe,matchIds:fe,collapsed:O,onToggleCollapse:Ae,traceStart:xt,autoFocus:!c},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this),rt.jsxDEV(cR,{span:S?Ye?.span??null:null,track:Ye?.track??null,onClose:Tt,onOpenChildTrack:ht,loadEntry:l,inline:c,onNavigate:f},void 0,!1,void 0,this),i==="full"&&rt.jsxDEV(me,{index:2,title:u("trace.transcript"),description:u("trace.transcript-description"),flush:!0,children:rt.jsxDEV(LR,{tracks:ue,selection:x,onSelect:He,search:I,matchIds:fe,traceStart:xt},void 0,!1,void 0,this)},void 0,!1,void 0,this),i==="full"&&rt.jsxDEV(lR,{toolStats:n.summary.toolStats,index:3},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}var va=_(te(),1),wR=200;function zO({models:n}){if(n.length===0)return va.jsxDEV("span",{className:"dim",children:"-"},void 0,!1,void 0,this);return va.jsxDEV("span",{className:"traces-models",title:n.join(`
239
+ `),children:[va.jsxDEV("span",{className:"mono truncate",children:n[0]},void 0,!1,void 0,this),n.length>1&&va.jsxDEV("span",{className:"badge",children:["+",n.length-1]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)}function TR({active:n,session:i,onOpenSession:l}){let[c,f]=gd.useState(""),y=Ft(["sessions",wR],({signal:m})=>pI(wR,void 0,m),{pollMs:30000,enabled:n&&i===null}),g=gd.useMemo(()=>{let m=y.data??[],S=c.trim().toLowerCase();if(!S)return m;return m.filter((C)=>(C.title??"").toLowerCase().includes(S)||C.folder.toLowerCase().includes(S)||C.models.some((I)=>I.toLowerCase().includes(S)))},[y.data,c]),v=gd.useMemo(()=>Math.max(0,...g.map((m)=>m.costTotal)),[g]),h=gd.useMemo(()=>[{key:"title",header:u("trace.session"),width:"32%",render:(m)=>va.jsxDEV(io,{primary:m.title??m.file.split("/").pop(),secondary:va.jsxDEV("span",{className:"mono",children:m.folder.split("/").slice(-2).join("/")},void 0,!1,void 0,this)},void 0,!1,void 0,this),sort:(m)=>(m.title??m.file).toLowerCase()},{key:"models",header:u("common.models"),render:(m)=>va.jsxDEV(zO,{models:m.models},void 0,!1,void 0,this)},{key:"started",header:u("common.started"),align:"right",render:(m)=>va.jsxDEV("span",{className:"muted",title:bo(m.startedAt),children:La(m.startedAt)},void 0,!1,void 0,this),sort:(m)=>m.startedAt},{key:"duration",header:u("common.duration"),align:"right",render:(m)=>va.jsxDEV("span",{className:"num",children:gn(m.endedAt-m.startedAt)},void 0,!1,void 0,this),sort:(m)=>m.endedAt-m.startedAt},{key:"requests",header:u("common.requests"),align:"right",render:(m)=>va.jsxDEV("span",{className:"num",children:M(m.requests)},void 0,!1,void 0,this),sort:(m)=>m.requests},{key:"toolCalls",header:u("trace.tools"),align:"right",render:(m)=>va.jsxDEV("span",{className:"num",children:M(m.toolCalls)},void 0,!1,void 0,this),sort:(m)=>m.toolCalls},{key:"subagents",header:u("trace.agents"),align:"right",render:(m)=>m.subagents>0?va.jsxDEV("span",{className:"num",children:M(m.subagents)},void 0,!1,void 0,this):va.jsxDEV("span",{className:"num dim",children:"0"},void 0,!1,void 0,this),sort:(m)=>m.subagents},{key:"tokens",header:u("common.tokens"),align:"right",render:(m)=>va.jsxDEV("span",{className:"num",children:se(m.totalTokens)},void 0,!1,void 0,this),sort:(m)=>m.totalTokens},{key:"cost",header:u("common.cost"),align:"right",width:150,render:(m)=>va.jsxDEV(Ra,{value:m.costTotal,max:v,display:ta(m.costTotal,m.unpricedRequests)},void 0,!1,void 0,this),sort:(m)=>m.costTotal}],[v]);if(i!==null)return va.jsxDEV(CR,{file:i,active:n,onBack:()=>l(null)},void 0,!1,void 0,this);let x=y.data?.length??0;return va.jsxDEV("div",{className:"stack traces-page",children:[va.jsxDEV(ha,{title:u("trace.title"),description:u("trace.description")},void 0,!1,void 0,this),va.jsxDEV(me,{title:u("trace.sessions"),description:y.data?c.trim()?u("trace.most-recent-filtered",{shown:M(g.length),total:M(x)}):u("trace.most-recent",{count:M(x)}):void 0,actions:va.jsxDEV(Hr,{value:c,onChange:f,placeholder:u("trace.filter-placeholder"),width:260},void 0,!1,void 0,this),flush:!0,index:0,stale:y.stale,children:va.jsxDEV(_e,{query:y,skeleton:va.jsxDEV(ka,{rows:10},void 0,!1,void 0,this),isEmpty:(m)=>m.length===0,empty:va.jsxDEV(mt,{title:u("trace.empty-title"),hint:u("trace.empty-hint")},void 0,!1,void 0,this),children:()=>va.jsxDEV(Ut,{columns:h,rows:g,rowKey:(m)=>m.file,onRowClick:(m)=>l(m.file),initialSort:{key:"started",dir:"desc"},limit:50,empty:va.jsxDEV(mt,{title:u("trace.no-matching-title"),hint:u("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 Fa=_(te(),1);function Px(){return Fa.jsxDEV(xI,{children:Fa.jsxDEV(PO,{},void 0,!1,void 0,this)},void 0,!1,void 0,this)}function PO(){Ur();let{section:n,setSection:i,range:l,setRange:c,session:f,setSession:y}=HI(),[g,v]=yd.useState(null),h=yd.useCallback(()=>v(null),[]),x=yd.useRef(new Set);x.current.add(n);let m=(S)=>{let C=S===n;switch(S){case"overview":return Fa.jsxDEV(v2,{active:C,range:l,onRequestClick:v},void 0,!1,void 0,this);case"requests":return Fa.jsxDEV(w2,{active:C,range:l,onRequestClick:v},void 0,!1,void 0,this);case"errors":return Fa.jsxDEV(l2,{active:C,range:l,onRequestClick:v},void 0,!1,void 0,this);case"traces":return Fa.jsxDEV(TR,{active:C,session:f,onOpenSession:y},void 0,!1,void 0,this);case"models":return Fa.jsxDEV(m2,{active:C,range:l},void 0,!1,void 0,this);case"providers":return Fa.jsxDEV(L2,{active:C,range:l},void 0,!1,void 0,this);case"costs":return Fa.jsxDEV(r2,{active:C,range:l},void 0,!1,void 0,this);case"tools":return Fa.jsxDEV(sR,{active:C,range:l},void 0,!1,void 0,this);case"frustration":return Fa.jsxDEV(u2,{active:C,range:l},void 0,!1,void 0,this);case"projects":return Fa.jsxDEV(x2,{active:C,range:l},void 0,!1,void 0,this);case"gain":return Fa.jsxDEV(f2,{active:C,range:l},void 0,!1,void 0,this);case"spotlight":return Fa.jsxDEV(nR,{active:C,range:l},void 0,!1,void 0,this)}};return Fa.jsxDEV(Fa.Fragment,{children:[Fa.jsxDEV(_I,{section:n,onSectionChange:i,range:l,onRangeChange:c,children:[...x.current].map((S)=>Fa.jsxDEV("div",{hidden:S!==n,children:m(S)},S,!1,void 0,this))},void 0,!1,void 0,this),Fa.jsxDEV(C2,{id:g,onClose:h},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}var MR=_(te(),1),RR=document.getElementById("root");if(!RR)throw Error("missing #root");IR.createRoot(RR).render(MR.jsxDEV(Px,{},void 0,!1,void 0,this));